Your IP : 3.23.103.203


Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/main/sidepanel/
Upload File :
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/main/sidepanel/manager.map.js

{"version":3,"file":"manager.map.js","names":["BX","namespace","instance","Object","defineProperty","SidePanel","enumerable","get","topWindow","PageObject","getRootWindow","window","Instance","Manager","options","this","anchorRules","anchorBinding","openSliders","lastOpenSlider","opened","hidden","hacksApplied","pageUrl","getCurrentUrl","pageTitle","getCurrentTitle","titleChanged","toolbar","fullScreenSlider","handleAnchorClick","bind","handleDocumentKeyDown","handleWindowResize","throttle","handleWindowScroll","handleTouchMove","handleSliderOpenStart","handleSliderOpenComplete","handleSliderMaximizeStart","handleSliderCloseStart","handleSliderCloseComplete","handleSliderMinimizeStart","handleSliderLoad","handleSliderDestroy","handleEscapePress","handleFullScreenChange","addCustomEvent","open","close","closeAll","destroy","hide","unhide","postMessage","postMessageAll","postMessageTop","handlePostMessageCompatible","sliderClassName","registerSliderClass","className","type","isNotEmptyString","getSliderClass","sliderClass","getClass","Slider","prototype","url","slider","createSlider","tryApplyHacks","refineUrl","isHidden","topSlider","getTopSlider","isOpen","getUrl","getLastOpenSlider","rule","getUrlRule","ruleOptions","Type","isPlainObject","isUndefined","minimizeOptions","getToolbar","offset","getWidth","getCustomLeftBoundary","lastOffset","getLastOffset","Math","min","getMinOffset","getMaxOffset","setOffset","getCustomRightBoundary","rightBoundary","calculateRightBoundary","setCustomRightBoundary","getMinimizeOptions","maximize","cb","applyHacks","success","resetHacks","immediately","callback","getOpenSliders","i","length","minimize","forEach","setTimeout","sliderToDestroy","getSlider","reload","count","getPreviousSlider","currentSlider","previousSlider","getSliderByWindow","getFrameWindow","getOpenSlidersCount","addOpenSlider","Error","push","removeOpenSlider","openSlider","splice","setLastOpenSlider","resetLastOpenSlider","adjustLayout","createToolbar","Toolbar","getOffset","match","util","remove_url_param","getPageUrl","location","pathname","search","hash","getPageTitle","title","document","BXIM","replace","enterFullScreen","getFullScreenSlider","container","body","requestFullscreen","webkitRequestFullScreen","msRequestFullscreen","mozRequestFullScreen","console","log","exitFullScreen","exitFullscreen","webkitExitFullscreen","msExitFullscreen","mozCancelFullScreen","getFullScreenElement","fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement","event","addClass","getOverlay","fireEvent","removeClass","unbind","scrollTo","pageScrollTop","createEvent","initEvent","dispatchEvent","source","eventId","data","sender","getSliderFromSource","sliderWindow","getWindow","onCustomEvent","MessageEvent","firePageEvent","fireFrameEvent","getFullName","bindAnchors","parameters","isArray","rules","registerAnchorListener","error","trace","condition","m","isString","RegExp","loader","isAnchorBinding","enableAnchorBinding","disableAnchorBinding","targetDocument","addEventListener","unregisterAnchorListener","removeEventListener","isActionAllowed","isDestroyed","hideOverlay","sameWidth","showShadow","hideOrDarkenCloseBtn","hidePrintBtn","hideExtraLabels","setOverlayAnimation","index","getLabel","moveAt","losePageFocus","setBrowserHistory","updateBrowserTitle","setAnimation","unhideOverlay","hideShadow","showOrLightenCloseBtn","entityType","entityId","item","getItem","request","origin","getItemOrigin","isShown","show","getTitle","expand","minimizeItem","isStringFilled","getContainer","offsetWidth","rect","getBoundingClientRect","left","width","top","cleanUpClosedSlider","removeCustomEvent","frameWindow","allowCrossOrigin","isOnTop","canCloseByEsc","showExtraLabels","isPrintable","showPrintBtn","focus","resetBrowserHistory","disablePageScrollbar","bindEvents","applyPostHacks","resetPostHacks","enablePageScrollbar","unbindEvents","browser","IsMobile","scrollWidth","innerWidth","documentElement","clientWidth","style","paddingRight","Dom","pageYOffset","scrollTop","removeProperty","isDomNode","activeElement","blur","keyCode","preventDefault","centerX","centerY","clientHeight","element","elementFromPoint","hasClass","findParent","extractLinkFromEvent","target","which","ctrlKey","metaKey","a","nodeName","tag","href","getAttribute","anchor","link","isValidLink","isFunction","handler","emulateAnchorClick","Event","bubbles","cancelable","createElement","k","matches","hasStopParams","stopParameters","allowCrossDomain","ajax","isCrossDomain","mobileFriendly","validate","canChangeHistory","isLoaded","history","replaceState","getBrowserTitle","canChangeTitle","isSelfContained","params","questionPos","indexOf","query","substring","param","getLastOpenPage","getCurrentPage","EventEmitter","constructor","toolbarOptions","super","setEventNamespace","context","items","rendered","refs","Cache","MemoryCache","lsKey","initialPosition","right","bottom","shiftedPosition","position","collapsed","muted","shifted","maxVisibleItems","isNumber","max","addItems","restoreItemFromLocalStorage","clearLocalStorage","mute","unmute","isMuted","toggleMuteness","canShowOnTop","shift","setPosition","unshift","isShifted","toggleShift","sliders","prop","collapse","getContentContainer","unbindAll","requestAnimationFrame","bindOnce","toggle","isCollapsed","getItems","getItemsCount","itemsOptions","isArrayFilled","itemOptions","addItem","createItem","redraw","prependItem","ToolbarItem","getEntityName","entityName","setEntityName","subscribe","handleItemRemove","itemExists","saveItemToLocalStorage","then","response","status","catch","removeItem","cache","ttl","Date","now","localStorage","setItem","JSON","stringify","parse","getContext","action","additional","runAction","json","toJSON","getTarget","hideTooltip","handleMenuItemRemove","stopPropagation","itemId","currentTarget","dataset","menuItemId","itemToRemove","getItemById","menu","getMenu","removeMenuItem","invisibleItemsCount","reduce","isRendered","getPopupWindow","adjustPosition","remove","filter","restored","getEntityType","getEntityId","visibleItemsCount","previousItem","nextItem","insertAfter","insertBefore","appendTo","getItemsContainer","removeAll","innerHTML","find","getItemByUrl","id","getId","remember","classes","Tag","render","join","handleToggleClick","append","ZIndexManager","register","alwaysOnTop","Runtime","debounce","forceCollapsed","onSliderClose","getMoreButton","slice","handleMoreBtnClick","targetNode","targetNodeWidth","map","html","createMenuItemText","onclick","delimiter","text","Loc","getMessage","Main","MenuManager","create","cacheable","bindElement","bindOptions","forceBindPosition","forceTop","maxWidth","fixed","offsetTop","maxHeight","events","onShow","popup","popupWidth","getPopupContainer","offsetLeft","angleShift","Popup","getOption","setAngle","popups","PopupManager","getPopups","startsWith","Reflection","UI","Viewer","sliderId","toString","stack","getStack","components","getComponents","component","getMenuById","Text","encode","getRandom","toLowerCase","setTitle","setUrl","setEntityType","setEntityId","getTitleContainer","textContent","handleClick","handleMouseEnter","handleMouseLeave","handleRemoveBtnClick","encodeURI","prependTo","node","prepend","showTooltip","hint","content","darkMode","getPopupById","emit"],"sources":["manager.js"],"mappings":"CAAA,WAEA,aAuDAA,GAAGC,UAAU,gBAEb,IAAIC,EAAW,KASfC,OAAOC,eAAeJ,GAAGK,UAAW,WAAY,CAC/CC,WAAY,MACZC,IAAK,WAEJ,IAAIC,EAAYR,GAAGS,WAAWC,gBAC9B,GAAIF,IAAcG,OAClB,CACC,OAAOH,EAAUR,GAAGK,UAAUO,QAC/B,CAEA,GAAIV,IAAa,KACjB,CACCA,EAAW,IAAIF,GAAGK,UAAUQ,QAAQ,CAAC,EACtC,CAEA,OAAOX,CACR,IAQDF,GAAGK,UAAUQ,QAAU,SAASC,GAE/BC,KAAKC,YAAc,GACnBD,KAAKE,cAAgB,KAErBF,KAAKG,YAAc,GACnBH,KAAKI,eAAiB,KAEtBJ,KAAKK,OAAS,MACdL,KAAKM,OAAS,MACdN,KAAKO,aAAe,MAEpBP,KAAKQ,QAAUR,KAAKS,gBACpBT,KAAKU,UAAYV,KAAKW,kBACtBX,KAAKY,aAAe,MAEpBZ,KAAKa,QAAU,KAEfb,KAAKc,iBAAmB,KAExBd,KAAKe,kBAAoBf,KAAKe,kBAAkBC,KAAKhB,MACrDA,KAAKiB,sBAAwBjB,KAAKiB,sBAAsBD,KAAKhB,MAC7DA,KAAKkB,mBAAqBjC,GAAGkC,SAASnB,KAAKkB,mBAAoB,IAAKlB,MACpEA,KAAKoB,mBAAqBpB,KAAKoB,mBAAmBJ,KAAKhB,MACvDA,KAAKqB,gBAAkBrB,KAAKqB,gBAAgBL,KAAKhB,MAEjDA,KAAKsB,sBAAwBtB,KAAKsB,sBAAsBN,KAAKhB,MAC7DA,KAAKuB,yBAA2BvB,KAAKuB,yBAAyBP,KAAKhB,MACnEA,KAAKwB,0BAA4BxB,KAAKwB,0BAA0BR,KAAKhB,MACrEA,KA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