"use strict";(self.blocksyJsonP=self.blocksyJsonP||[]).push([[418],{5418:function(t,e,n){function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};t=a({el:null,event:null,chunk:null,loadedChunks:{},ensureAtLeast:500},t);const e=t.loadedChunks[t.chunk.id],n=(new Date).getTime(),{el:o}=t,r=o.dataset.buttonState,i=o.closest(".ct-panel.active");if(document.querySelector(".ct-panel.active")&&!i||"loading"===o.dataset.buttonState)return;if(i&&t.chunk.has_loader.will_open_overlay){o.dataset.buttonState="loading";const n=document.querySelector(".ct-panel.active .ct-toggle-close");if(e&&e.maybeGetPanelContent){e.maybeGetPanelContent(t.el,{event:t.event})&&(o.dataset.buttonState=r)}return void t.loadChunkWithPayload(t.chunk,{event:t.event,completeAction:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=a({hasCheckmarkWithTimeout:!1,finalState:"",onCompleted:function(){}},t),n&&(n.click(),ctEvents.once("ct:modal:closed",t.onCompleted))},initialState:r},o)}let l=!0;if(e&&e.maybeGetPanelContent){e.maybeGetPanelContent(t.el,{event:t.event})&&(l=!1)}l&&(o.dataset.buttonState="loading"),t.loadChunkWithPayload(t.chunk,{event:t.event,completeAction:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=a({hasCheckmarkWithTimeout:!1,finalState:"",onCompleted:function(){}},e);const r=function(){const a=(new Date).getTime();a-n