uawdijnntqw1x1x1
IP : 216.73.216.163
Hostname : yjpwxulqtt
Kernel : Linux yjpwxulqtt 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
OS : Linux
PATH:
/
home
/
user
/
web
/
pansionat-v-yaroslavle.ru
/
public_html
/
bitrix
/
tmp
/
..
/
js
/
main
/
sidepanel
/
slider.min.js
/
/
(function(){"use strict";BX.namespace("BX.SidePanel");BX.SidePanel.Slider=function(t,e){this.url=BX.util.remove_url_param(t,["IFRAME","IFRAME_TYPE"]);e=BX.type.isPlainObject(e)?e:{};this.options=e;this.slider=null;this.contentCallback=BX.type.isFunction(e.contentCallback)?e.contentCallback:null;this.contentCallbackInvoved=false;this.zIndex=3e3;this.offset=0;this.width=BX.type.isNumber(e.width)?e.width:null;this.cacheable=e.cacheable!==false;this.autoFocus=e.autoFocus!==false;this.allowChangeHistory=e.allowChangeHistory!==false;this.data=new BX.SidePanel.Dictionary(BX.type.isPlainObject(e.data)?e.data:{});this.iframe=null;this.iframeSrc=null;this.iframeId=null;this.requestMethod=BX.type.isNotEmptyString(e.requestMethod)&&e.requestMethod.toLowerCase()==="post"?"post":"get";this.requestParams=BX.type.isPlainObject(e.requestParams)?e.requestParams:{};this.opened=false;this.hidden=false;this.destroyed=false;this.loaded=false;this.layout={overlay:null,container:null,loader:null,content:null,closeBtn:null};this.loader=BX.type.isNotEmptyString(e.loader)?e.loader:BX.type.isNotEmptyString(e.typeLoader)?e.typeLoader:"default-loader";this.animation=null;this.animationDuration=BX.type.isNumber(e.animationDuration)?e.animationDuration:200;this.startParams={translateX:100,opacity:0};this.endParams={translateX:0,opacity:40};this.currentParams=null;if(this.url.indexOf("crm.activity.planner/slider.php")!==-1&&e.events&&BX.type.isFunction(e.events.onOpen)&&e.events.compatibleEvents!==false){var i=e.events.onOpen;delete e.events.onOpen;e.events.onLoad=function(t){i(t.getSlider())}}if(e.events){for(var n in e.events){if(BX.type.isFunction(e.events[n])){BX.addCustomEvent(this,BX.SidePanel.Slider.getEventFullName(n),e.events[n])}}}};BX.SidePanel.Slider.getEventFullName=function(t){return"SidePanel.Slider:"+t};BX.SidePanel.Slider.prototype={open:function(){if(this.isOpen()){return false}if(!this.canOpen()){return false}this.createLayout();this.adjustLayout();this.opened=true;this.animateOpening();return true},close:function(t,e){if(!this.isOpen()){return false}if(!this.canClose()){return false}this.opened=false;if(this.animation){this.animation.stop()}if(t===true||BX.browser.IsMobile()){this.currentParams=this.startParams;this.completeAnimation(e)}else{this.animation=new BX.easing({duration:this.animationDuration,start:this.currentParams,finish:this.startParams,transition:BX.easing.transitions.linear,step:BX.delegate(function(t){this.currentParams=t;this.animateStep(t)},this),complete:BX.delegate(function(){this.completeAnimation(e)},this)});this.animation.animate()}return true},getUrl:function(){return this.url},focus:function(){this.getWindow().focus()},isOpen:function(){return this.opened},setZindex:function(t){if(BX.type.isNumber(t)){this.zIndex=t}},getZindex:function(){return this.zIndex},setOffset:function(t){if(BX.type.isNumber(t)){this.offset=t}},getOffset:function(){return this.offset},setWidth:function(t){if(BX.type.isNumber(t)){this.width=t}},getWidth:function(){return this.width},getData:function(){return this.data},isSelfContained:function(){return this.contentCallback!==null},isPostMethod:function(){return this.requestMethod==="post"},getRequestParams:function(){return this.requestParams},getFrameId:function(){if(this.iframeId===null){this.iframeId="iframe_"+BX.util.getRandomString(10).toLowerCase()}return this.iframeId},getWindow:function(){return this.iframe?this.iframe.contentWindow:window},getFrameWindow:function(){return this.iframe?this.iframe.contentWindow:null},isHidden:function(){return this.hidden},isCacheable:function(){return this.cacheable},isFocusable:function(){return this.autoFocus},isDestroyed:function(){return this.destroyed},isLoaded:function(){return this.loaded},canChangeHistory:function(){return this.allowChangeHistory&&!this.isSelfContained()&&!this.getUrl().match(/^\/bitrix\/(components|tools)\//i)},setCacheable:function(t){this.cacheable=t!==false},setAutoFocus:function(t){this.autoFocus=t!==false},getLoader:function(){return this.loader},showLoader:function(){var t=this.getLoader();if(!this.layout.loader||this.layout.loader.dataset.loader!==t){this.createLoader(t)}this.layout.loader.style.opacity=1;this.layout.loader.style.display="block"},closeLoader:function(){this.layout.loader.style.display="none";this.layout.loader.style.opacity=0},showCloseBtn:function(){this.getCloseBtn().style.removeProperty("opacity")},hideCLoseBtn:function(){this.getCloseBtn().style.opacity=0},applyHacks:function(){},applyPostHacks:function(){},resetHacks:function(){},resetPostHacks:function(){},getTopBoundary:function(){return 0},getLeftBoundary:function(){var t=BX.browser.IsMobile()?window.innerWidth:document.documentElement.clientWidth;return t<1160?this.getMinLeftBoundary():300},getMinLeftBoundary:function(){return 65},getRightBoundary:function(){return-window.pageXOffset},destroy:function(){this.firePageEvent("onDestroy");this.fireFrameEvent("onDestroy");BX.remove(this.layout.overlay);this.layout.container=null;this.layout.overlay=null;this.layout.content=null;this.layout.closeBtn=null;this.iframe=null;this.destroyed=true;if(this.options.events){for(var t in this.options.events){BX.removeCustomEvent(this,BX.SidePanel.Slider.getEventFullName(t),this.options.events[t])}}return true},hide:function(){this.hidden=true;this.getContainer().style.display="none";this.getOverlay().style.display="none"},unhide:function(){this.hidden=false;this.getContainer().style.removeProperty("display");this.getOverlay().style.removeProperty("display")},adjustLayout:function(){var t=window.pageYOffset||document.documentElement.scrollTop;var e=BX.browser.IsMobile()?window.innerHeight:document.documentElement.clientHeight;var i=this.getTopBoundary();var n=i-t>0;i=n?i:t;var a=n>0?e-i+t:e;var s=Math.max(this.getLeftBoundary(),this.getMinLeftBoundary())+this.getOffset();this.getOverlay().style.left=window.pageXOffset+"px";this.getOverlay().style.top=i+"px";this.getOverlay().style.right=this.getRightBoundary()+"px";this.getOverlay().style.height=a+"px";this.getContainer().style.width="calc(100% - "+s+"px)";this.getContainer().style.height=a+"px";if(this.getWidth()!==null){this.getContainer().style.maxWidth=this.getWidth()+"px"}},createLayout:function(){if(this.layout.overlay!==null&&this.layout.overlay.parentNode){return}if(this.isSelfContained()){this.getContentContainer().style.overflow="auto";document.body.appendChild(this.getOverlay());this.setContent()}else{this.getContentContainer().appendChild(this.getFrame());document.body.appendChild(this.getOverlay());this.setFrameSrc()}},getFrame:function(){if(this.iframe!==null){return this.iframe}this.iframe=BX.create("iframe",{attrs:{src:"about:blank",frameborder:"0"},props:{className:"side-panel-iframe",name:this.getFrameId(),id:this.getFrameId()},events:{load:this.handleFrameLoad.bind(this)}});return this.iframe},getOverlay:function(){if(this.layout.overlay!==null){return this.layout.overlay}this.layout.overlay=BX.create("div",{props:{className:"side-panel side-panel-overlay"},events:{click:this.handleOverlayClick.bind(this)},style:{zIndex:this.getZindex()},children:[this.getContainer()]});return this.layout.overlay},getContainer:function(){if(this.layout.container!==null){return this.layout.container}this.layout.container=BX.create("div",{props:{className:"side-panel side-panel-container"},style:{zIndex:this.getZindex()+1},children:[this.getContentContainer(),this.getCloseBtn()]});return this.layout.container},getContentContainer:function(){if(this.layout.content!==null){return this.layout.content}this.layout.content=BX.create("div",{props:{className:"side-panel-content-container"}});return this.layout.content},getCloseBtn:function(){if(this.layout.closeBtn!==null){return this.layout.closeBtn}this.layout.closeBtn=BX.create("span",{props:{className:"side-panel-close"},children:[BX.create("span",{props:{className:"side-panel-close-inner"}})],events:{click:this.handleCloseBtnClick.bind(this)}});return this.layout.closeBtn},setContent:function(){if(this.contentCallbackInvoved){return}this.contentCallbackInvoved=true;this.showLoader();var t=new BX.Promise;t.then(this.contentCallback).then(function(t){if(this.isDestroyed()){return}if(BX.type.isDomNode(t)){this.getContentContainer().appendChild(t)}else if(BX.type.isNotEmptyString(t)){this.getContentContainer().innerHTML=t}this.loaded=true;this.firePageEvent("onLoad");this.closeLoader()}.bind(this),function(t){this.destroy();BX.debug("error",t)});t.fulfill(this)},setFrameSrc:function(){if(this.iframeSrc===this.getUrl()){return}var t=BX.util.add_url_param(this.getUrl(),{IFRAME:"Y",IFRAME_TYPE:"SIDE_SLIDER"});if(this.isPostMethod()){var e=document.createElement("form");e.method="POST";e.action=t;e.target=this.getFrameId();e.style.display="none";BX.util.addObjectToForm(this.getRequestParams(),e);document.body.appendChild(e);e.submit();BX.remove(e)}else{this.iframeSrc=this.getUrl();this.iframe.src=t}this.showLoader()},createLoader:function(t){BX.remove(this.layout.loader);t=BX.type.isNotEmptyString(t)?t:"default-loader";var e=["task-new-loader","task-edit-loader","task-view-loader","crm-entity-details-loader","crm-button-view-loader","crm-webform-view-loader","create-mail-loader","view-mail-loader"];var i=null;if(BX.util.in_array(t,e)&&this.loaderExists(t)){this.layout.loader=this.createOldLoader(t)}else if(t.charAt(0)==="/"){this.layout.loader=this.createSvgLoader(t)}else if(i=t.match(/^([a-z0-9-_.]+):([a-z0-9-_.]+)$/i)){var n=i[1];var a=i[2];var s="/bitrix/images/"+n+"/slider/"+a+".svg";this.layout.loader=this.createSvgLoader(s)}else{t="default-loader";this.layout.loader=this.createDefaultLoader()}this.layout.loader.dataset.loader=t;this.getContentContainer().appendChild(this.layout.loader)},createSvgLoader:function(t){return BX.create("div",{props:{className:"side-panel-loader-container"},style:{backgroundImage:'url("'+t+'")'}})},createDefaultLoader:function(){return BX.create("div",{props:{className:"side-panel-default-loader-container"},html:'<svg class="side-panel-default-loader-circular" viewBox="25 25 50 50">'+"<circle "+'class="side-panel-default-loader-path" '+'cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"'+"/>"+"</svg>"})},createOldLoader:function(t){if(t==="crm-entity-details-loader"){return BX.create("div",{props:{className:"side-panel-loader "+t},children:[BX.create("img",{attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAMAAABhq6zVAAAAA1BMVEX"+"///+nxBvIAAAAAXRSTlMAQObYZgAAAAtJREFUeAFjGMQAAACcAAG25ruvAAAAAElFTkSuQmCC"},props:{className:"side-panel-loader-mask top"}}),BX.create("div",{props:{className:"side-panel-loader-bg left"},children:[BX.create("img",{attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAMAAABhq6zVAAAAA1B"+"MVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAAtJREFUeAFjGMQAAACcAAG25ruvAAAAAElFTkSuQmCC"},props:{className:"side-panel-loader-mask left"}})]}),BX.create("div",{props:{className:"side-panel-loader-bg right"},children:[BX.create("img",{attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAMAAABhq6zVAAAAA1BM"+"VEX///+nxBvIAAAAAXRSTlMAQObYZgAAAAtJREFUeAFjGMQAAACcAAG25ruvAAAAAElFTkSuQmCC"},props:{className:"side-panel-loader-mask right"}})]})]})}else{return BX.create("div",{props:{className:"side-panel-loader "+t},children:[BX.create("img",{attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAMAAABhq6zVAAAAA1BMVEX"+"///+nxBvIAAAAAXRSTlMAQObYZgAAAAtJREFUeAFjGMQAAACcAAG25ruvAAAAAElFTkSuQmCC"},props:{className:"side-panel-loader-mask left"}}),BX.create("img",{attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAMAAABhq6zVAAAAA"+"1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAAAtJREFUeAFjGMQAAACcAAG25ruvAAAAAElFTkSuQmCC"},props:{className:"side-panel-loader-mask right"}})]})}},loaderExists:function(t){if(!BX.type.isNotEmptyString(t)){return false}for(var e=0;e<document.styleSheets.length;e++){var i=document.styleSheets[e];if(!BX.type.isNotEmptyString(i.href)||i.href.indexOf("sidepanel")===-1){continue}var n=i.rules||i.cssRules;for(var a=0;a<n.length;a++){var s=n[a];if(BX.type.isNotEmptyString(s.selectorText)&&s.selectorText.indexOf(t)!==-1){return true}}}return false},animateOpening:function(){BX.addClass(this.getOverlay(),"side-panel-overlay-open");BX.addClass(this.getContainer(),"side-panel-container-open");if(this.animation){this.animation.stop()}if(BX.browser.IsMobile()){this.currentParams=this.endParams;this.animateStep(this.currentParams);this.completeAnimation();return}this.currentParams=this.currentParams?this.currentParams:this.startParams;this.animation=new BX.easing({duration:this.animationDuration,start:this.currentParams,finish:this.endParams,transition:BX.easing.transitions.linear,step:BX.delegate(function(t){this.currentParams=t;this.animateStep(t)},this),complete:BX.delegate(function(){this.completeAnimation()},this)});this.animation.animate()},animateStep:function(t){this.getContainer().style.transform="translateX("+t.translateX+"%)";this.getOverlay().style.backgroundColor="rgba(0, 0, 0, "+t.opacity/100+")"},completeAnimation:function(t){this.animation=null;if(this.isOpen()){this.currentParams=this.endParams;this.firePageEvent("onOpenComplete");this.fireFrameEvent("onOpenComplete")}else{this.currentParams=this.startParams;BX.removeClass(this.getOverlay(),"side-panel-overlay-open");BX.removeClass(this.getContainer(),"side-panel-container-open");this.getContainer().style.removeProperty("width");this.getContainer().style.removeProperty("right");this.getContainer().style.removeProperty("max-width");this.getContainer().style.removeProperty("min-width");this.getCloseBtn().style.removeProperty("opacity");this.firePageEvent("onCloseComplete");this.fireFrameEvent("onCloseComplete");if(BX.type.isFunction(t)){t(this)}if(!this.isCacheable()){this.destroy()}}},firePageEvent:function(t){var e=this.getEvent(t);if(e===null){throw new Error("'eventName' is invalid.")}BX.onCustomEvent(this,e.getFullName(),[e]);if(BX.util.in_array(t,["onClose","onOpen"])){BX.onCustomEvent("BX.Bitrix24.PageSlider:"+t,[this]);BX.onCustomEvent("Bitrix24.Slider:"+t,[this])}return e},fireFrameEvent:function(t){var e=this.getEvent(t);if(e===null){throw new Error("'eventName' is invalid.")}var i=this.getFrameWindow();if(i&&i.BX){i.BX.onCustomEvent(this,e.getFullName(),[e]);if(BX.util.in_array(t,["onClose","onOpen"])){i.BX.onCustomEvent("BX.Bitrix24.PageSlider:"+t,[this]);i.BX.onCustomEvent("Bitrix24.Slider:"+t,[this])}}return e},getEvent:function(t){var e=null;if(BX.type.isNotEmptyString(t)){e=new BX.SidePanel.Event;e.setSlider(this);e.setName(t)}else if(t instanceof BX.SidePanel.Event){e=t}return e},canOpen:function(){return this.canAction("open")},canClose:function(){return this.canAction("close")},canCloseByEsc:function(){return this.canAction("closeByEsc")},canAction:function(t){if(!BX.type.isNotEmptyString(t)){return false}var e="on"+t.charAt(0).toUpperCase()+t.slice(1);var i=this.firePageEvent(e);var n=this.fireFrameEvent(e);return i.isActionAllowed()&&n.isActionAllowed()},handleFrameLoad:function(t){var e=this.iframe.contentWindow;var i=e.location;if(i.toString()==="about:blank"){return}e.addEventListener("keydown",this.handleFrameKeyDown.bind(this));e.addEventListener("focus",this.handleFrameFocus.bind(this));if(BX.browser.IsMobile()){e.document.body.style.paddingBottom=window.innerHeight*2/3+"px"}var n=i.pathname+i.search+i.hash;this.iframeSrc=BX.util.remove_url_param(n,["IFRAME","IFRAME_TYPE"]);this.url=this.iframeSrc;if(this.loaded){this.firePageEvent("onLoad");this.fireFrameEvent("onLoad");this.firePageEvent("onReload");this.fireFrameEvent("onReload")}else{this.loaded=true;this.firePageEvent("onLoad");this.fireFrameEvent("onLoad")}if(this.isFocusable()){this.focus()}this.closeLoader()},handleFrameKeyDown:function(t){if(t.keyCode!==27){return}var e=BX.findChildren(this.getWindow().document.body,{className:"popup-window"},false);for(var i=0;i<e.length;i++){var n=e[i];if(n.style.display==="block"){return}}var a=this.getWindow().document.documentElement.clientWidth/2;var s=this.getWindow().document.documentElement.clientHeight/2;var r=this.getWindow().document.elementFromPoint(a,s);if(BX.hasClass(r,"bx-core-dialog-overlay")||BX.hasClass(r,"bx-core-window")){return}if(BX.findParent(r,{className:"bx-core-window"})){return}if(this.canCloseByEsc()){this.close()}},handleFrameFocus:function(t){this.firePageEvent("onFrameFocus")},handleOverlayClick:function(t){if(t.target!==this.getOverlay()||this.animation!==null){return}this.close();t.stopPropagation()},handleCloseBtnClick:function(t){this.close();t.stopPropagation()}};BX.SidePanel.Event=function(){this.slider=null;this.action=true;this.name=null};BX.SidePanel.Event.prototype={allowAction:function(){this.action=true},denyAction:function(){this.action=false},isActionAllowed:function(){return this.action},getSliderPage:function(){return this.slider},getSlider:function(){return this.slider},setSlider:function(t){if(t instanceof BX.SidePanel.Slider){this.slider=t}},getName:function(){return this.name},setName:function(t){if(BX.type.isNotEmptyString(t)){this.name=t}},getFullName:function(){return BX.SidePanel.Slider.getEventFullName(this.getName())}};BX.SidePanel.MessageEvent=function(t){BX.SidePanel.Event.apply(this);t=BX.type.isPlainObject(t)?t:{};if(!(t.sender instanceof BX.SidePanel.Slider)){throw new Error("'sender' is not an instance of BX.SidePanel.Slider")}this.setName("onMessage");this.setSlider(t.slider);this.sender=t.sender;this.data="data"in t?t.data:null;this.eventId=BX.type.isNotEmptyString(t.eventId)?t.eventId:null};BX.SidePanel.MessageEvent.prototype={__proto__:BX.SidePanel.Event.prototype,constructor:BX.SidePanel.MessageEvent,getSlider:function(){return this.slider},getSender:function(){return this.sender},getData:function(){return this.data},getEventId:function(){return this.eventId}};BX.SidePanel.Dictionary=function(t){if(t&&!BX.type.isPlainObject(t)){throw new Error("The argument must be a plain object.")}this.data=t?t:{}};BX.SidePanel.Dictionary.prototype={set:function(t,e){if(!BX.type.isNotEmptyString(t)){throw new Error("The 'key' must be a string.")}this.data[t]=e},get:function(t){return this.data[t]},delete:function(t){delete this.data[t]},has:function(t){return t in this.data},clear:function(){this.data={}},entries:function(){return this.data}}})();
/home/user/web/pansionat-v-yaroslavle.ru/public_html/bitrix/tmp/../js/main/sidepanel/slider.min.js