"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[328],{2328:function(e,t,n){n.r(t),n.d(t,{bootModalLoaderFlow:function(){return l}});var o=n(4705),r=n(4100);function a(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,o.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const i='<span class="ct-ajax-loader" data-type="boxed"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" opacity="0.2" fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="2"/><path d="m12,2c5.52,0,10,4.48,10,10" fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"><animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="0.5s" from="0 12 12" to="360 12 12" repeatCount="indefinite" /></path></svg></span>',s=function(e){const t=(new Date).getTime();document.querySelector(".ct-panel.active")||function(e){return new Promise(function(t){const n=e.loadedChunks[e.chunk.id],o=document.createElement("div");if(n&&n.maybeGetPanelContent){const r=n.maybeGetPanelContent(e.el,{event:e.event});if(r)return void r.then(function(e){o.appendChild(e),t(o.firstElementChild)})}o.innerHTML=i,o.dataset.behaviour="modal",o.classList.add("ct-panel"),o.classList.add("loading"),e.chunk.has_loader.class&&o.classList.add(e.chunk.has_loader.class),e.chunk.has_loader.id?o.id=e.chunk.has_loader.id:o.id=(e.el.hash||"").replace("#",""),t(o)})}(e).then(function(n){document.querySelector(".ct-drawer-canvas").appendChild(n),(0,r.F)(e.event,{openStrategy:"fast",container:n}),e.loadChunkWithPayload(e.chunk,{event:e.event,ajaxLoader:i,panel:n,completeAction:function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o=c({onCompleted:function(){}},o);!function(){const r=(new Date).getTime();r-t<e.ensureAtLeast?setTimeout(function(){n.classList.remove("loading"),o.onCompleted()},e.ensureAtLeast-(r-t)):(n.classList.remove("loading"),o.onCompleted())}()}},e.el)})},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=c({el:null,event:null,chunk:null,loadedChunks:{},ensureAtLeast:0},e),s(e)}}}]);