1 line
64 KiB
JavaScript
1 line
64 KiB
JavaScript
|
|
(()=>{var e={6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.data,r=window.wp.i18n,o=window.wp.components,i=(window.kadence.icons,window.ReactJSXRuntime),s=window.kadence.helpers,a=window.lodash,l=window.wp.primitives,c=(0,i.jsx)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(l.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})});function d({isVisible:e,setIsVisible:t}){return(0,i.jsx)(o.Button,{className:"kb-header-visual-builder-modal-close","aria-label":(0,r.__)("Close Modal","kadence-blocks"),onClick:()=>{t(!e)},variant:"secondary",icon:c,iconSize:18,children:(0,r.__)("Hide","kadence-blocks")})}const u=window.React;var f=n.n(u);const v=window.ReactDOM,h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function g(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function p(e){return"nodeType"in e}function b(e){var t,n;return e?g(e)?e:p(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function m(e){const{Document:t}=b(e);return e instanceof t}function w(e){return!g(e)&&e instanceof b(e).HTMLElement}function y(e){return e instanceof b(e).SVGElement}function x(e){return e?g(e)?e.document:p(e)?m(e)?e:w(e)||y(e)?e.ownerDocument:document:document:document}const k=h?u.useLayoutEffect:u.useEffect;function C(e){const t=(0,u.useRef)(e);return k(()=>{t.current=e}),(0,u.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function D(e,t){void 0===t&&(t=[e]);const n=(0,u.useRef)(e);return k(()=>{n.current!==e&&(n.current=e)},t),n}function I(e,t){const n=(0,u.useRef)();return(0,u.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function E(e){const t=C(e),n=(0,u.useRef)(null),r=(0,u.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function R(e){const t=(0,u.useRef)();return(0,u.useEffect)(()=>{t.current=e},[e]),t.current}let S={};function N(e,t){return(0,u.useMemo)(()=>{if(t)return t;const n=null==S[e]?0:S[e]+1;return S[e]=n,e+"-"+n},[e,t])}function j(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t},{...t})}}const B=j(1),M=j(-1);function O(e){if(!e)return!1;const{KeyboardEvent:t}=b(e.target);return t&&e instanceof t}function T(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=b(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const _=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.
|