"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[328],{2328(e,t,n){n.r(t),n.d(t,{bootModalLoaderFlow:function(){return l}});var o=n(4100);const a='<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 a=n.maybeGetPanelContent(e.el,{event:e.event});if(a)return void a.then(function(e){o.appendChild(e),t(o.firstElementChild)})}o.innerHTML=a,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,o.F)(e.event,{openStrategy:"fast",container:n}),e.loadChunkWithPayload(e.chunk,{event:e.event,ajaxLoader:a,panel:n,completeAction:function(o={}){o={onCompleted:function(){},...o};!function(){const a=(new Date).getTime();a-t<e.ensureAtLeast?setTimeout(function(){n.classList.remove("loading"),o.onCompleted()},e.ensureAtLeast-(a-t)):(n.classList.remove("loading"),o.onCompleted())}()}},e.el)})},l=function(e={}){e={el:null,event:null,chunk:null,loadedChunks:{},ensureAtLeast:0,...e},s(e)}}}]);