%PDF- %PDF-
Direktori : /home/kfvehpdt/uvvos.fr/wp-content/themes/blocksy/static/bundle/ |
Current File : /home/kfvehpdt/uvvos.fr/wp-content/themes/blocksy/static/bundle/418.66ea70734eb9e0d6ad3f.js |
"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;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.r(e),n.d(e,{bootButtonLoaderFlow:function(){return i}});const i=function(){let t=arguments.length>0&&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<t.ensureAtLeast&&l?setTimeout((function(){o.dataset.buttonState=e.finalState,e.onCompleted()}),t.ensureAtLeast-(a-n)):(o.dataset.buttonState=e.finalState,e.onCompleted())};e.hasCheckmarkWithTimeout?(o.dataset.buttonState="done",setTimeout(r,1e3)):r()},initialState:r},o)}}}]);