!function(){"use strict";var n={};function t(n,t){(null==t||t>n.length)&&(t=n.length);for(var o=0,r=Array(t);o<t;o++)r[o]=n[o];return r}function o(n){return function(n){if(Array.isArray(n))return t(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,o){if(n){if("string"==typeof n)return t(n,o);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(n,o):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(o,{a:o}),o},n.d=function(t,o){for(var r in o)n.o(o,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},n.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)};var r=window.ctFrontend,e=window.ctEvents,a=n.n(e),c=function(){o(document.querySelectorAll(".blocksy-hook-indicator > span")).map((function(n){n.hasClickListener||(n.hasClickListener=!0,n.addEventListener("click",(function(t){t.preventDefault();var o="Hook ".concat(n.dataset.hook.split("::")[0]);fetch("".concat(ct_localizations.ajax_url,"?action=blocksy_content_blocksy_create&name=").concat(o,"&type=hook&predefined_hook=").concat(n.dataset.hook)).then((function(n){return n.json()})).then((function(n){var t=n.data.url;window.location=t}))})))}))};(0,r.onDocumentLoaded)((function(){c()})),a().on("blocksy:frontend:init",c)}();