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/761.e2d272451eb8dffb0d16.js
"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[761],{1761:function(t,e,i){i.r(e),i.d(e,{mount:function(){return l}});var n=i(8222);const r=function(t,e){getComputedStyle(e).marginBottom;return e.nextElementSibling===t},s=function(t){if(t.hasAttribute("data-target"))return document.querySelector(t.getAttribute("data-target"));const e=t.parentNode.querySelector("[aria-hidden]");if(e)return e;const i=t.parentNode.parentNode.querySelector("[aria-hidden]");return i||null},a=function(t,e,i){const s=r(t,e);if(s){const i=getComputedStyle(e).marginBottom;t.firstElementChild.prevStyle=t.firstElementChild.getAttribute("style"),t.firstElementChild.style.marginTop=i,e.getAttribute("style")&&(e.prevStyle=e.getAttribute("style")),e.style.marginBottom="0px"}requestAnimationFrame((function(){const r=t.getBoundingClientRect().height;t.style.height=`${r}px`,t.style.opacity="1",t.classList.add("is-animating"),requestAnimationFrame((function(){t.style.height="0px",t.style.opacity="0",(0,n.k)(t,(function(){t.classList.remove("is-animating"),t.removeAttribute("style"),s&&(t.firstElementChild.prevStyle?t.firstElementChild.style=t.firstElementChild.prevStyle:t.firstElementChild.removeAttribute("style"),e.prevStyle?e.style=e.prevStyle:e.removeAttribute("style")),i()}))}))}))},l=function(t,e){let{event:i}=e;i.stopPropagation(),i.preventDefault();const l=s(t);if(!l)return;if("false"===l.getAttribute("aria-hidden"))a(l,t,(function(){t.setAttribute("aria-expanded","false"),l.setAttribute("aria-hidden","true")}));else{if(void 0!==t.dataset.closeOthers){t.closest(".ct-accordion-tab").parentNode.querySelectorAll('.ct-expandable-trigger[aria-expanded="true"]').forEach((function(e){const i=s(e);i&&a(i,t,(function(){e.setAttribute("aria-expanded","false"),i.setAttribute("aria-hidden","true")}))}))}!function(t,e){const i=r(t,e);i&&e.setAttribute("aria-expanded","true"),requestAnimationFrame((function(){if(i){const i=getComputedStyle(e).marginBottom;e.setAttribute("aria-expanded","false"),t.firstElementChild.prevStyle=t.firstElementChild.getAttribute("style"),t.firstElementChild.style.marginTop=i}t.setAttribute("aria-hidden","false");const r=t.getBoundingClientRect().height;t.style.height="0px",t.style.opacity="0",requestAnimationFrame((function(){t.classList.add("is-animating"),requestAnimationFrame((function(){t.style.height=`${r}px`,t.style.opacity="1",(0,n.k)(t,(function(){t.classList.remove("is-animating"),t.removeAttribute("style"),i&&(t.firstElementChild.prevStyle?t.firstElementChild.style=t.firstElementChild.prevStyle:t.firstElementChild.removeAttribute("style")),e.setAttribute("aria-expanded","true")}))}))}))}))}(l,t)}}},8222:function(t,e,i){function n(t,e){let i=null,n=!1;const r=function(){clearTimeout(i),t.removeEventListener("transitionend",s),n||(n=!0,e())},s=function(e){e.target===t&&r()},a=1e3*parseFloat(getComputedStyle(t).transitionDuration);t.addEventListener("transitionend",s),i=setTimeout((function(){r()}),a)}i.d(e,{k:function(){return n}})}}]);