HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/school/wp-content/themes/blocksy/static/bundle/421.ce4ad28a75c193e8a1a7.js
"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[421],{9257:function(e,t,n){n.d(t,{O:function(){return o}});const o=function(){return"undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)}},8222:function(e,t,n){function o(e,t){let n=null,o=!1;const r=function(){clearTimeout(n),e.removeEventListener("transitionend",i),o||(o=!0,t())},i=function(t){t.target===e&&r()},c=1e3*parseFloat(getComputedStyle(e).transitionDuration);e.addEventListener("transitionend",i),n=setTimeout((function(){r()}),c)}n.d(t,{k:function(){return o}})},3421:function(e,t,n){n.r(t),n.d(t,{handleClick:function(){return U},mount:function(){return H}});var o=!1;if("undefined"!=typeof window){var r={get passive(){o=!0}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}var i="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),c=[],a=!1,l=-1,s=void 0,u=void 0,d=function(e){return c.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},f=function(e){var t=e||window.event;return!!d(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},m=function(){void 0!==u&&(document.body.style.paddingRight=u,u=void 0),void 0!==s&&(document.body.style.overflow=s,s=void 0)},v=function(e,t){if(e){if(!c.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};c=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(c),[n]),i?(e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-l;!d(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?f(e):e.stopPropagation())}(t,e)},a||(document.addEventListener("touchmove",f,o?{passive:!1}:void 0),a=!0)):function(e){if(void 0===u){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(u=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===s&&(s=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},g=n(9257),p=function(){(0,g.O)()?(i?(c.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),a&&(document.removeEventListener("touchmove",f,o?{passive:!1}:void 0),a=!1),l=-1):m(),c=[]):(document.body.style.overflow="",document.body.style.removeProperty("--scrollbar-width"))},y=function(e){if((0,g.O)())e&&v(e,{allowTouchMove:function(e){return!!e.closest(".select2-container")||!!e.closest(".flexy")}});else{let e=window.innerWidth-document.documentElement.clientWidth;e>0&&document.body.style.setProperty("--scrollbar-width",`${e}px`),document.body.style.overflow="hidden"}};const b=function(){return window.ctFrontend&&window.ctFrontend.scrollLockManager||(window.ctFrontend=window.ctFrontend||{},window.ctFrontend.scrollLockManager={enable:p,disable:y}),window.ctFrontend.scrollLockManager};var h=n(1601),w=n.n(h);const L=function(e){if(!e)return;const t=e.querySelector(".ct-toggle-dropdown-mobile");e.classList.contains("dropdown-active")?(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-label",ct_localizations.expand_submenu),function(e,t){const n=e.querySelector("ul");requestAnimationFrame((function(){const e=n.getBoundingClientRect().height;n.style.height=`${e}px`,n.classList.add("is-animating"),requestAnimationFrame((function(){n.style.height="0px",O(n,(function(){n.classList.remove("is-animating"),n.removeAttribute("style"),t()}))}))}))}(e,(function(){e.classList.toggle("dropdown-active"),[...e.querySelectorAll(".menu-item-has-children.dropdown-active, .page_item_has_children.dropdown-active")].map((function(e){return e.classList.remove("dropdown-active")}))}))):(t.setAttribute("aria-expanded","true"),t.setAttribute("aria-label",ct_localizations.collapse_submenu),[...e.parentNode.children].map((function(e){return e.classList.contains("dropdown-active")&&L(e)})),e.classList.toggle("dropdown-active"),function(e){const t=e.querySelector("ul");requestAnimationFrame((function(){const e=t.getBoundingClientRect().height;t.style.height="0px",t.classList.add("is-animating"),requestAnimationFrame((function(){t.style.height=`${e}px`,O(t,(function(){t.classList.remove("is-animating"),t.removeAttribute("style")}))}))}))}(e))};function O(e,t){const n=function(o){o.target===e&&(e.removeEventListener("transitionend",n),t())};e.addEventListener("transitionend",n)}var S=n(6130),k=n(3846);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const A=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])",'input:enabled:not([readonly]):not([type="hidden"])',"a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];let P=null;const q=function(e){if(!P)return;let t=[...P.querySelectorAll(A.join(","))];P.querySelector('[data-device="mobile"]')&&"mobile"!==(0,S.C)()&&(t=t.filter((function(e){return!e.closest('[data-device="mobile"]')})));const n=t[0],o=t[t.length-1];if("Tab"!==e.key&&9!==e.keyCode)return;let r=t.includes(document.activeElement);P.contains(document.activeElement)&&document.activeElement.scrollHeight>document.activeElement.clientHeight&&(r=!0),r||(n.focus(),e.preventDefault()),e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusOnMount:!0},t),P&&P!==e)return;const n=e.querySelectorAll(A.join(","));0!==n.length&&(P=e,document.addEventListener("keydown",q),t.focusOnMount&&!(0,k.b)()&&setTimeout((function(){n[0].focus()}),200))},C=function(e){e.removeEventListener("keydown",q),P=null},T=function(){return window.ctFrontend&&window.ctFrontend.focusLockManager||(window.ctFrontend=window.ctFrontend||{},window.ctFrontend.focusLockManager={focusLockOn:j,focusLockOff:C}),window.ctFrontend.focusLockManager};var D=n(8222),F=n(6081);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const B=function(e){if(!e.container)throw new Error("No container provided");return e.container.__overlay_settings__||{}},I=function(e){e.container.__overlay_settings__=null};let N=null;const W=function(e){const t=x({onClose:function(){},container:null,focus:!0},B(e));[...document.querySelectorAll(`[data-toggle-panel*="${t.container.id}"]`),...document.querySelectorAll(`[href*="${t.container.id}"]`)].map((function(e){e.setAttribute("aria-expanded","true")})),t.shouldBeInert&&(t.container.inert=!1,t.container.setAttribute("aria-modal","true")),t.focus&&setTimeout((function(){const e=t.container.querySelector("input");if(e){const t=e.value.length;e.setSelectionRange(t,t),e.focus()}}),200),t.container.querySelector(".ct-panel-content")&&t.container.querySelector(".ct-panel-content").addEventListener("click",(function(e){Array.from(t.container.querySelectorAll("select")).map((function(t){return t.selectr&&t.selectr.events.dismiss(e)}))})),t.clickOutside&&t.container.querySelector(".ct-panel-content")&&t.container.addEventListener("click",t.handleContainerClick);const n=function(e){const{keyCode:o,target:r}=e;27===o&&(e.preventDefault(),document.body.hasAttribute("data-panel")&&$(t),document.removeEventListener("keyup",n))};document.addEventListener("keyup",n);let o=t.container&&t.container.querySelector(".ct-toggle-close");if(o&&(o.addEventListener("click",(function(e){e.preventDefault(),$(t)}),{once:!0}),o.hasEnterListener||(o.hasEnterListener=!0,o.addEventListener("keyup",(function(e){13==e.keyCode&&(e.preventDefault(),$(t))})))),t.computeScrollContainer||t.container.querySelector(".ct-panel-content")){const e=t.computeScrollContainer?t.computeScrollContainer():t.container.querySelector(".ct-panel-content");if(b().disable(e),(0,g.O)()){const n=new MutationObserver((function(n){e.isConnected||(b().enable(),setTimeout((function(){document.body.hasAttribute("data-panel")&&b().disable(t.computeScrollContainer?t.computeScrollContainer():t.container.querySelector(".ct-panel-content"))}),1e3))}));n.observe(t.container,{childList:!0,subtree:!0}),t.container.__overlay_observer__=n}setTimeout((function(){T().focusLockOn(t.container.querySelector(".ct-panel-content").parentNode,{focusOnMount:!t.focus})}))}"AbortController"in window&&(N=new AbortController),window.addEventListener("click",t.handleWindowClick,{capture:!0,signal:N?N.signal:void 0}),w().trigger("ct:modal:opened",t.container),w().trigger("blocksy:frontend:init"),[...t.container.querySelectorAll(".ct-toggle-dropdown-mobile")].map((function(e){!function(e){if(e.hasListener)return;e.hasListener=!0;let t=e.previousElementSibling.getAttribute("href");t&&"#"!==t||e.previousElementSibling.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),L(e.closest(".menu-item-has-children, .page_item_has_children"))})),e.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),L(e.closest(".menu-item-has-children, .page_item_has_children"))}))}(e)}))},$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=x({onClose:function(){},container:null},B(e));if(t=x({onlyUnmountEvents:!1,shouldFocusOriginalTrigger:!0},t),n.shouldBeInert&&(n.container.inert=!0,n.container.removeAttribute("aria-modal")),!document.body.hasAttribute("data-panel"))return n.container.classList.remove("active"),void n.onClose();[...document.querySelectorAll(`[data-toggle-panel*="${n.container.id}"]`),...document.querySelectorAll(`[href*="${n.container.id}"]`)].map((function(e,n){e.setAttribute("aria-expanded","false"),t.shouldFocusOriginalTrigger&&!(0,k.b)()&&(e.focusDisabled||setTimeout((function(){0===n&&e.focus()}),50),e.focusDisabled=!1)})),t.onlyUnmountEvents?(b().enable(),T().focusLockOff(n.container.querySelector(".ct-panel-content").parentNode),I(n)):(document.body.dataset.panel="out",(0,D.k)(n.container,(function(){document.body.removeAttribute("data-panel"),n.container.classList.remove("active"),b().enable(),T().focusLockOff(n.container.querySelector(".ct-panel-content").parentNode),I(n),w().trigger("ct:modal:closed",n.container)}))),n.container.__overlay_observer__&&(n.container.__overlay_observer__.disconnect(),n.container.__overlay_observer__=null),N&&N.abort(),n.container.removeEventListener("click",n.handleContainerClick),n.onClose()},U=function(e,t){e&&e.preventDefault&&e.preventDefault(),t=x({onClose:function(){},container:null,focus:!1,clickOutside:!0,isModal:!1,computeScrollContainer:null,closeWhenLinkInside:!1,shouldBeInert:!!t.container.inert,handleContainerClick:function(e){const n=e.target.closest(".ct-panel-actions");let o=e.target.closest(".ct-panel-content"),r=[...t.container.querySelectorAll(".ct-panel-content")].indexOf(e.target)>-1,i=null;if(e.target.matches('[data-toggle-panel],[href*="modal"]')&&(i=e.target),!i&&e.target.closest('[data-toggle-panel],[href*="modal"]')&&(i=e.target.closest('[data-toggle-panel],[href*="modal"]')),i&&i.hasLazyLoadClickListener&&!i.matches("[data-button-state]"))return $(t),void setTimeout((function(){i.click()}),650);t.isModal&&!r&&o||!t.isModal&&(r||o||n)||e.target.closest('[class*="select2-container"]')||!e.target.closest("body")||!e.target.closest(".ct-panel")||window.getSelection().toString().length>0||document.body.hasAttribute("data-panel")&&$(t)},handleWindowClick:function(e){setTimeout((function(){t.container.contains(e.target)||e.target===document.body||e.target.closest('[class*="select2-container"]')||!e.target.closest("body")||e.target.closest(".ct-popup")||document.body.hasAttribute("data-panel")&&$(t)}))}},t),function(e){e.container.__overlay_settings__=e}(t),W(t),t.closeWhenLinkInside&&(t.container.hasListener||(t.container.hasListener=!0,t.container.addEventListener("click",(function(e){if(!e.target)return;let n=e.target;if(e.target.closest("a")&&(n=e.target.closest("a")),!n.closest(".ct-panel"))return;if(!n.closest(".ct-panel").classList.contains("active"))return;if(!n.matches("a"))return;if(n.classList.contains("ct-overlay-skip"))return;const o=(0,F.R)(n);if(!(n.closest('nav[data-id*="menu"]')||n.closest('[data-id*="text"]')||n.closest('[data-id*="button"]')||o||n.closest(".widget_nav_menu")))return;const r=0===e.button,i=r&&(e.ctrlKey||e.metaKey);if(r&&i)return;let c="regular",a=new URL(location.href),l=null;try{l=new URL(n.getAttribute("href"),location.href)}catch(e){console.error("Error parsing URLs",e,n)}a&&l&&(a.hash="",l.hash="",a.toString()===l.toString()&&(c="hash-link")),o&&(c="modal"),"regular"===c&&$(t,{onlyUnmountEvents:!0,shouldFocusOriginalTrigger:!1}),"modal"===c&&($(t,{shouldFocusOriginalTrigger:!1}),setTimeout((function(){n.click()}),500)),"hash-link"===c&&$(t,{shouldFocusOriginalTrigger:!1})}))))};w().on("ct:offcanvas:force-close",(function(e){return $(e)})),window.addEventListener("pageshow",(function(e){if(!event.persisted)return;document.body.hasAttribute("data-panel")&&document.body.removeAttribute("data-panel");const t=document.querySelector(".ct-panel.active");N&&(N.abort(),N=null),b().enable(),t&&(t.classList.remove("active"),T().focusLockOff(t.querySelector(".ct-panel-content").parentNode))}));const H=function(e,t){let{event:n,focus:o=!1}=t;U(n,{isModal:!0,container:document.querySelector(e.dataset.togglePanel||e.hash),clickOutside:!0,focus:o})}}}]);