MetaSlider - Version 3.23.3

Version Description

  • 2021/Nov/12 =
  • FIX: Fixes theme conflict with the utility class stylesheet
Download this release

Release Info

Developer metaslider
Plugin Icon 128x128 MetaSlider
Version 3.23.3
Comparing to
See all releases

Code changes from version 3.23.2 to 3.23.3

extendify-sdk/app/Shared.php CHANGED
@@ -223,7 +223,7 @@ class Shared
223
  --wp--preset--color--secondary: #464b56;
224
  --wp--preset--color--tertiary: var(--global--color-light-gray);
225
  --wp--style--block-gap: var(--global--spacing-unit);
226
- --wp--preset--font-size--large: var(--global--font-size-lg);
227
  --wp--preset--font-size--huge: var(--global--font-size-xxl);
228
  }
229
  .has-foreground-background-color,
223
  --wp--preset--color--secondary: #464b56;
224
  --wp--preset--color--tertiary: var(--global--color-light-gray);
225
  --wp--style--block-gap: var(--global--spacing-unit);
226
+ --wp--preset--font-size--large: 2.5rem;
227
  --wp--preset--font-size--huge: var(--global--font-size-xxl);
228
  }
229
  .has-foreground-background-color,
extendify-sdk/public/build/extendify-sdk.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see extendify-sdk.js.LICENSE.txt */
2
- (()=>{var e,t={135:(e,t,n)=>{e.exports=n(248)},206:(e,t,n)=>{e.exports=n(57)},387:(e,t,n)=>{"use strict";var r=n(485),i=n(570),o=n(940),s=n(581),a=n(574),l=n(845),c=n(338),u=n(524);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,p=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+y)}var v=a(e.baseURL,e.url);function g(){if(h){var r="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(f[e.xsrfHeaderName]=x)}"setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},57:(e,t,n)=>{"use strict";var r=n(485),i=n(875),o=n(29),s=n(941);function a(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=a(n(141));l.Axios=o,l.create=function(e){return a(s(l.defaults,e))},l.Cancel=n(132),l.CancelToken=n(603),l.isCancel=n(475),l.all=function(e){return Promise.all(e)},l.spread=n(739),l.isAxiosError=n(835),e.exports=l,e.exports.default=l},132:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},603:(e,t,n)=>{"use strict";var r=n(132);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},29:(e,t,n)=>{"use strict";var r=n(485),i=n(581),o=n(96),s=n(9),a=n(941),l=n(144),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var u=[s,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var d=e;n.length;){var f=n.shift(),p=n.shift();try{d=f(d)}catch(e){p(e);break}}try{i=s(d)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},u.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=u},96:(e,t,n)=>{"use strict";var r=n(485);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},574:(e,t,n)=>{"use strict";var r=n(642),i=n(288);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},524:(e,t,n)=>{"use strict";var r=n(953);e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},9:(e,t,n)=>{"use strict";var r=n(485),i=n(212),o=n(475),s=n(141);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},953:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},941:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,c),r.forEach(s,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(a,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var u=i.concat(o).concat(s).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,c),n}},570:(e,t,n)=>{"use strict";var r=n(524);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},212:(e,t,n)=>{"use strict";var r=n(485),i=n(141);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},141:(e,t,n)=>{"use strict";var r=n(61),i=n(485),o=n(446),s=n(953),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(c=n(387)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw s(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(a)})),e.exports=u},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(485);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},940:(e,t,n)=>{"use strict";var r=n(485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},835:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},338:(e,t,n)=>{"use strict";var r=n(485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},446:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},845:(e,t,n)=>{"use strict";var r=n(485),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},144:(e,t,n)=>{"use strict";var r=n(843),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},s=r.version.split(".");function a(e,t){for(var n=t?t.split("."):s,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&a(t);function s(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(s(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={isOlderVersion:a,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},485:(e,t,n)=>{"use strict";var r=n(875),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:l,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},363:(e,t,n)=>{"use strict";const r=wp.element;var i=n(995),o=n.n(i);function s(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?((e,r=i,o=Object.is)=>{let s=r(t);function a(){const n=r(t);if(!o(s,n)){const t=s;e(s=n,t)}}return n.add(a),()=>n.delete(a)})(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}const a="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?i.useEffect:i.useLayoutEffect;function l(e){const t="function"==typeof e?s(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,i.useReducer)((e=>e+1),0),o=t.getState(),s=(0,i.useRef)(o),l=(0,i.useRef)(e),c=(0,i.useRef)(n),u=(0,i.useRef)(!1),d=(0,i.useRef)();let f;void 0===d.current&&(d.current=e(o));let p=!1;(s.current!==o||l.current!==e||c.current!==n||u.current)&&(f=e(o),p=!n(d.current,f)),a((()=>{p&&(d.current=f),s.current=o,l.current=e,c.current=n,u.current=!1}));const h=(0,i.useRef)(o);return a((()=>{const e=()=>{try{const e=t.getState(),n=l.current(e);c.current(d.current,n)||(s.current=e,d.current=n,r())}catch(e){u.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]),p?f:d.current};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}var c=Object.defineProperty,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&p(e,n,t[n]);if(u)for(var n of u(t))f.call(t,n)&&p(e,n,t[n]);return e};const m=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>m(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>m(t)(e)}}},y=(e,t)=>(n,r,i)=>{const{name:o,getStorage:s=(()=>localStorage),serialize:a=JSON.stringify,deserialize:l=JSON.parse,blacklist:c,whitelist:u,onRehydrateStorage:d,version:f=0,migrate:p,merge:y=((e,t)=>h(h({},t),e))}=t||{};let v;try{v=s()}catch(e){}if(!v)return e(((...e)=>{console.warn(`Persist middleware: unable to update ${o}, the given storage is currently unavailable.`),n(...e)}),r,i);const g=m(a),x=()=>{const e=h({},r());let t;u&&Object.keys(e).forEach((t=>{!u.includes(t)&&delete e[t]})),c&&c.forEach((t=>delete e[t]));const n=g({state:e,version:f}).then((e=>v.setItem(o,e))).catch((e=>{t=e}));if(t)throw t;return n},b=i.setState;i.setState=(e,t)=>{b(e,t),x()};const w=e(((...e)=>{n(...e),x()}),r,i);let j;const k=(null==d?void 0:d(r()))||void 0;return m(v.getItem.bind(v))(o).then((e=>{if(e)return l(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===f)return e.state;if(p)return p(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>(j=y(e,w),n(j,!0),x()))).then((()=>{null==k||k(j,void 0)})).catch((e=>{null==k||k(void 0,e)})),j||w};var v="pattern",g=12;const x=wp.blocks;var b=n(135),w=n.n(b),j=n(206),k=n.n(j)().create({baseURL:window.extendifySdkData.root,headers:{"X-WP-Nonce":window.extendifySdkData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});function S(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}k.interceptors.response.use((function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"soft_error")&&window.dispatchEvent(new CustomEvent("extendify-sdk::softerror-encountered",{detail:e.soft_error,bubbles:!0})),e}(S(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(S(e.response))}(e)})),k.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(function(e){return e.data&&(e.data.remaining_imports=B.getState().remainingImports(),e.data.entry_point=B.getState().entryPoint,e.data.total_imports=B.getState().imports),e}(e))}),(function(e){return e}));var O=function(){return k.get("user")},_=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),k.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},C=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),k.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},E=function(e){var t=new FormData;return t.append("email",e),k.post("register-mailing-list",t,{headers:{"Content-Type":"multipart/form-data"}})};function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||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.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function L(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){I(o,r,i,s,a,"next",e)}function a(e){I(o,r,i,s,a,"throw",e)}s(void 0)}))}}var R,F,D={getItem:(F=L(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return F.apply(this,arguments)}),setItem:(R=L(w().mark((function e(t,n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return R.apply(this,arguments)})},B=l(y((function(e,t){return{email:"",apiKey:"",imports:0,uuid:"",sdkPartner:"",registration:{email:""},noticesDismissedAt:{welcome:""},allowedImports:0,entryPoint:"not-set",enabled:null===window.extendifySdkData.sitesettings||(null===(n=window.extendifySdkData)||void 0===n||null===(r=n.sitesettings)||void 0===r||null===(i=r.state)||void 0===i?void 0:i.enabled),canInstallPlugins:!1,canActivatePlugins:!1,preferredOptions:{taxonomies:{},type:"",search:""},preferredOptionsHistory:{siteType:[]},incrementImports:function(){return e({imports:t().imports+1})},canImport:function(){return!!t().apiKey||Number(t().imports)<Number(t().allowedImports)},remainingImports:function(){if(t().apiKey)return"unlimited";var e=Number(t().allowedImports)-Number(t().imports);return e>0?e:0},updateSiteType:function(n){if(t().updatePreferredOption("tax_categories",n),n&&"Unknown"!==n){var r=new Set([n].concat(T(t().preferredOptionsHistory.siteType)));e({preferredOptionsHistory:Object.assign({},t().preferredOptionsHistory,{siteType:T(r).slice(0,3)})})}},updatePreferredOption:function(n,r){var i,o,s;Object.prototype.hasOwnProperty.call(t().preferredOptions,n)||(r=Object.assign({},null!==(o=null===(s=t().preferredOptions)||void 0===s?void 0:s.taxonomies)&&void 0!==o?o:{},P({},n,r)),n="taxonomies");var a="type"==n&&r!==(null===(i=t().preferredOptions)||void 0===i?void 0:i.type);e({preferredOptions:A({},Object.assign({},t().preferredOptions,P({},n,r),a?{taxonomies:{}}:{}))})}};var n,r,i}),{name:"extendify-user",getStorage:function(){return D}}));function U(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e)||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.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var V=l(y((function(e,t){return{taxonomies:{},openedTaxonomies:[],setTaxonomies:function(t){return e({taxonomies:t})},toggleOpenedTaxonomy:function(n,r){var i=t().openedTaxonomies;e({openedTaxonomies:r?[].concat(U(i),[n]):U(i.filter((function(e){return e!=n})))})}}}),{name:"extendify-taxonomies"}));function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e)||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.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Z,G,K=l((function(e,t){return{templates:[],skipNextFetch:!1,fetchToken:null,activeTemplate:{},activeTemplateBlocks:{},taxonomyDefaultState:{},nextPage:"",searchParams:{taxonomies:{},type:v},initTemplateData:function(){e({activeTemplate:{}}),t().setupDefaultTaxonomies(),t().updateType(Y.getState().currentType)},removeTemplates:function(){return e({nextPage:"",templates:[]})},appendTemplates:function(n){return e({templates:W(new Map([].concat(W(t().templates),W(n)).map((function(e){return[e.id,e]}))).values())})},setupDefaultTaxonomies:function(){var n,r,i,o,s=V.getState().taxonomies,a=Object.entries(s).reduce((function(e,t){return e[t[0]]=function(e){var t,n,r;return"tax_categories"===e?"Unknown":null!==(t=null===(n=V.getState())||void 0===n||null===(r=n.taxonomies[e][0])||void 0===r?void 0:r.term)&&void 0!==t?t:void 0}(t[0]),e}),{}),l={};a=Object.assign({},a,null!==(n=null===(r=B.getState().preferredOptions)||void 0===r?void 0:r.taxonomies)&&void 0!==n?n:{},null!==(i=null===(o=Y.getState())||void 0===o?void 0:o.currentTaxonomies)&&void 0!==i?i:{}),l.taxonomies=Object.assign({},a),e({taxonomyDefaultState:a,searchParams:H({},Object.assign(t().searchParams,l))})},setActive:function(t){var n;e({activeTemplate:t}),Object.keys(t).length>0&&Y.setState({currentPage:"single"}),null!=t&&null!==(n=t.fields)&&void 0!==n&&n.code&&e({activeTemplateBlocks:(0,x.rawHandler)({HTML:t.fields.code})})},updateTaxonomies:function(e){var n,r,i={};(i.taxonomies=Object.assign({},t().searchParams.taxonomies,e),null!=i&&null!==(n=i.taxonomies)&&void 0!==n&&n.tax_categories)&&B.getState().updatePreferredOption("tax_categories",null==i||null===(r=i.taxonomies)||void 0===r?void 0:r.tax_categories);Y.getState().updateCurrentTaxonomies(null==i?void 0:i.taxonomies),t().updateSearchParams(i)},updateType:function(e){Y.getState().updateCurrentType(e),t().updateSearchParams({type:e})},updateSearchParams:function(n){null!=n&&n.taxonomies&&!Object.keys(n.taxonomies).length&&(n.taxonomies=t().taxonomyDefaultState);var r=Object.assign({},t().searchParams,n);JSON.stringify(r)!==JSON.stringify(t().searchParams)&&e({templates:[],nextPage:"",searchParams:r})}}})),Y=l(y((function(e){return{open:!1,metaData:{},currentPage:"main",currentTaxonomies:{},currentType:v,settingsModal:!1,updateCurrentTaxonomies:function(t){return e({currentTaxonomies:Object.assign({},t)})},updateCurrentType:function(t){return e({currentType:t})},setOpen:function(t){e({open:t}),t&&K.getState().removeTemplates()}}}),{name:"extendify-global-state"}));function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}function Q(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function ne(e,t){if(e in t){for(var n=t[e],r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return"function"==typeof n?n.apply(void 0,i):n}var s=new Error('Tried to handle "'+e+'" but there is no handler defined. Only defined handlers are: '+Object.keys(t).map((function(e){return'"'+e+'"'})).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(s,ne),s}function re(e){var t=e.props,n=e.slot,r=e.defaultTag,i=e.features,o=e.visible,s=void 0===o||o,a=e.name;if(s)return ie(t,n,r,a);var l=null!=i?i:Z.None;if(l&Z.Static){var c=t.static,u=void 0!==c&&c,d=Q(t,["static"]);if(u)return ie(d,n,r,a)}if(l&Z.RenderStrategy){var f,p=t.unmount,h=void 0===p||p,m=Q(t,["unmount"]);return ne(h?G.Unmount:G.Hidden,((f={})[G.Unmount]=function(){return null},f[G.Hidden]=function(){return ie(X({},m,{hidden:!0,style:{display:"none"}}),n,r,a)},f))}return ie(t,n,r,a)}function ie(e,t,n,r){var o;void 0===t&&(t={});var s=se(e,["unmount","static"]),a=s.as,l=void 0===a?n:a,c=s.children,u=s.refName,d=void 0===u?"ref":u,f=Q(s,["as","children","refName"]),p=void 0!==e.ref?((o={})[d]=e.ref,o):{},h="function"==typeof c?c(t):c;if(f.className&&"function"==typeof f.className&&(f.className=f.className(t)),l===i.Fragment&&Object.keys(f).length>0){if(!(0,i.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <"+r+' /> is rendering a "Fragment".',"However we need to passthrough the following props:",Object.keys(f).map((function(e){return" - "+e})).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((function(e){return" - "+e})).join("\n")].join("\n"));return(0,i.cloneElement)(h,Object.assign({},function(e,t,n){for(var r,i=Object.assign({},e),o=function(){var n,o=r.value;void 0!==e[o]&&void 0!==t[o]&&Object.assign(i,((n={})[o]=function(n){n.defaultPrevented||e[o](n),n.defaultPrevented||t[o](n)},n))},s=te(n);!(r=s()).done;)o();return i}(function(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}(se(f,["ref"])),h.props,["onClick"]),p))}return(0,i.createElement)(l,Object.assign({},se(f,["ref"]),l!==i.Fragment&&p),h)}function oe(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function se(e,t){void 0===t&&(t=[]);for(var n,r=Object.assign({},e),i=te(t);!(n=i()).done;){var o=n.value;o in r&&delete r[o]}return r}!function(e){e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static"}(Z||(Z={})),function(e){e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden"}(G||(G={}));var ae="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,le={serverHandoffComplete:!1};function ce(){var e=(0,i.useState)(le.serverHandoffComplete),t=e[0],n=e[1];return(0,i.useEffect)((function(){!0!==t&&n(!0)}),[t]),(0,i.useEffect)((function(){!1===le.serverHandoffComplete&&(le.serverHandoffComplete=!0)}),[]),t}var ue=0;function de(){return++ue}function fe(){var e=ce(),t=(0,i.useState)(e?de:null),n=t[0],r=t[1];return ae((function(){null===n&&r(de())}),[n]),null!=n?""+n:void 0}function pe(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var he,me,ye=(0,i.createContext)(null);function ve(){return(0,i.useContext)(ye)}function ge(e){var t=e.value,n=e.children;return o().createElement(ye.Provider,{value:t},n)}function xe(){var e=(0,i.useRef)(!0);return(0,i.useEffect)((function(){e.current=!1}),[]),e.current}function be(){var e=[],t={requestAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=requestAnimationFrame.apply(void 0,arguments);t.add((function(){return cancelAnimationFrame(e)}))})),nextFrame:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.requestAnimationFrame((function(){t.requestAnimationFrame.apply(t,n)}))},setTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=setTimeout.apply(void 0,arguments);t.add((function(){return clearTimeout(e)}))})),add:function(t){e.push(t)},dispose:function(){for(var t,n=te(e.splice(0));!(t=n()).done;){var r=t.value;r()}}};return t}function we(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e&&r.length>0&&(t=e.classList).add.apply(t,r)}function je(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e&&r.length>0&&(t=e.classList).remove.apply(t,r)}function ke(e,t,n,r,i,o){var s=be(),a=void 0!==o?function(e){var t={called:!1};return function(){if(!t.called)return t.called=!0,e.apply(void 0,arguments)}}(o):function(){};return je.apply(void 0,[e].concat(i)),we.apply(void 0,[e].concat(t,n)),s.nextFrame((function(){je.apply(void 0,[e].concat(n)),we.apply(void 0,[e].concat(r)),s.add(function(e,t){var n=be();if(!e)return n.dispose;var r=getComputedStyle(e),i=[r.transitionDuration,r.transitionDelay].map((function(e){var t=e.split(",").filter(Boolean).map((function(e){return e.includes("ms")?parseFloat(e):1e3*parseFloat(e)})).sort((function(e,t){return t-e}))[0];return void 0===t?0:t})),o=i[0],s=i[1];return 0!==o?n.setTimeout((function(){t(me.Finished)}),o+s):t(me.Finished),n.add((function(){return t(me.Cancelled)})),n.dispose}(e,(function(n){return je.apply(void 0,[e].concat(r,t)),we.apply(void 0,[e].concat(i)),a(n)})))})),s.add((function(){return je.apply(void 0,[e].concat(t,n,r,i))})),s.add((function(){return a(me.Cancelled)})),s.dispose}function Se(e){return void 0===e&&(e=""),(0,i.useMemo)((function(){return e.split(" ").filter((function(e){return e.trim().length>1}))}),[e])}ye.displayName="OpenClosedContext",function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(he||(he={})),function(e){e.Finished="finished",e.Cancelled="cancelled"}(me||(me={}));var Oe,_e=(0,i.createContext)(null);_e.displayName="TransitionContext",function(e){e.Visible="visible",e.Hidden="hidden"}(Oe||(Oe={}));var Ce=(0,i.createContext)(null);function Ee(e){return"children"in e?Ee(e.children):e.current.filter((function(e){return e.state===Oe.Visible})).length>0}function Ne(e){var t=(0,i.useRef)(e),n=(0,i.useRef)([]),r=pe();(0,i.useEffect)((function(){t.current=e}),[e]);var o=(0,i.useCallback)((function(e,i){var o;void 0===i&&(i=G.Hidden);var s=n.current.findIndex((function(t){return t.id===e}));-1!==s&&(ne(i,((o={})[G.Unmount]=function(){n.current.splice(s,1)},o[G.Hidden]=function(){n.current[s].state=Oe.Hidden},o)),!Ee(n)&&r.current&&(null==t.current||t.current()))}),[t,r,n]),s=(0,i.useCallback)((function(e){var t=n.current.find((function(t){return t.id===e}));return t?t.state!==Oe.Visible&&(t.state=Oe.Visible):n.current.push({id:e,state:Oe.Visible}),function(){return o(e,G.Unmount)}}),[n,o]);return(0,i.useMemo)((function(){return{children:n,register:s,unregister:o}}),[s,o,n])}function Ae(){}Ce.displayName="NestingContext";var Pe=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Te(e){for(var t,n={},r=te(Pe);!(t=r()).done;){var i,o=t.value;n[o]=null!=(i=e[o])?i:Ae}return n}var Me,Ie=Z.RenderStrategy;function Le(e){var t,n=e.beforeEnter,r=e.afterEnter,s=e.beforeLeave,a=e.afterLeave,l=e.enter,c=e.enterFrom,u=e.enterTo,d=e.entered,f=e.leave,p=e.leaveFrom,h=e.leaveTo,m=Q(e,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),y=(0,i.useRef)(null),v=(0,i.useState)(Oe.Visible),g=v[0],x=v[1],b=m.unmount?G.Unmount:G.Hidden,w=function(){var e=(0,i.useContext)(_e);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),j=w.show,k=w.appear,S=function(){var e=(0,i.useContext)(Ce);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),O=S.register,_=S.unregister,C=xe(),E=fe(),N=(0,i.useRef)(!1),A=Ne((function(){N.current||(x(Oe.Hidden),_(E),D.current.afterLeave())}));ae((function(){if(E)return O(E)}),[O,E]),ae((function(){var e;b===G.Hidden&&E&&(j&&g!==Oe.Visible?x(Oe.Visible):ne(g,((e={})[Oe.Hidden]=function(){return _(E)},e[Oe.Visible]=function(){return O(E)},e)))}),[g,E,O,_,j,b]);var P=Se(l),T=Se(c),M=Se(u),I=Se(d),L=Se(f),R=Se(p),F=Se(h),D=function(e){var t=(0,i.useRef)(Te(e));return(0,i.useEffect)((function(){t.current=Te(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:s,afterLeave:a}),B=ce();(0,i.useEffect)((function(){if(B&&g===Oe.Visible&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,g,B]);var U=C&&!k;ae((function(){var e=y.current;if(e&&!U)return N.current=!0,j&&D.current.beforeEnter(),j||D.current.beforeLeave(),j?ke(e,P,T,M,I,(function(e){N.current=!1,e===me.Finished&&D.current.afterEnter()})):ke(e,L,R,F,I,(function(e){N.current=!1,e===me.Finished&&(Ee(A)||(x(Oe.Hidden),_(E),D.current.afterLeave()))}))}),[D,E,N,_,A,y,U,j,P,T,M,L,R,F]);var q={ref:y},V=m;return o().createElement(Ce.Provider,{value:A},o().createElement(ge,{value:ne(g,(t={},t[Oe.Visible]=he.Open,t[Oe.Hidden]=he.Closed,t))},re({props:X({},V,q),defaultTag:"div",features:Ie,visible:g===Oe.Visible,name:"Transition.Child"})))}function Re(e){var t,n=e.show,r=e.appear,s=void 0!==r&&r,a=e.unmount,l=Q(e,["show","appear","unmount"]),c=ve();void 0===n&&null!==c&&(n=ne(c,((t={})[he.Open]=!0,t[he.Closed]=!1,t)));if(![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var u=(0,i.useState)(n?Oe.Visible:Oe.Hidden),d=u[0],f=u[1],p=Ne((function(){f(Oe.Hidden)})),h=xe(),m=(0,i.useMemo)((function(){return{show:n,appear:s||!h}}),[n,s,h]);(0,i.useEffect)((function(){n?f(Oe.Visible):Ee(p)||f(Oe.Hidden)}),[n,p]);var y={unmount:a};return o().createElement(Ce.Provider,{value:p},o().createElement(_e.Provider,{value:m},re({props:X({},y,{as:i.Fragment,children:o().createElement(Le,Object.assign({},y,l))}),defaultTag:i.Fragment,features:Ie,visible:d===Oe.Visible,name:"Transition"})))}function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(0,i.useRef)(t);return(0,i.useEffect)((function(){r.current=t}),[t]),(0,i.useCallback)((function(e){for(var t,n=te(r.current);!(t=n()).done;){var i=t.value;null!=i&&("function"==typeof i?i(e):i.current=e)}}),[r])}function De(e){for(var t,n,r=e.parentElement,i=null;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(i=r),r=r.parentElement;var o=null!=(t=""===(null==(n=r)?void 0:n.getAttribute("disabled")))&&t;return(!o||!function(e){if(!e)return!1;var t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(i))&&o}function Be(e,t,n){var r=(0,i.useRef)(t);r.current=t,(0,i.useEffect)((function(){function t(e){r.current.call(window,e)}return window.addEventListener(e,t,n),function(){return window.removeEventListener(e,t,n)}}),[e,n])}Re.Child=function(e){var t=null!==(0,i.useContext)(_e),n=null!==ve();return!t&&n?o().createElement(Re,Object.assign({},e)):o().createElement(Le,Object.assign({},e))},Re.Root=Re,function(e){e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab"}(Me||(Me={}));var Ue,qe,Ve,ze,He,$e=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((function(e){return e+":not([tabindex='-1'])"})).join(",");function We(e){null==e||e.focus({preventScroll:!0})}function Je(e,t){var n=Array.isArray(e)?e:function(e){return void 0===e&&(e=document.body),null==e?[]:Array.from(e.querySelectorAll($e))}(e),r=document.activeElement,i=function(){if(t&(Ue.First|Ue.Next))return Ve.Next;if(t&(Ue.Previous|Ue.Last))return Ve.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),o=function(){if(t&Ue.First)return 0;if(t&Ue.Previous)return Math.max(0,n.indexOf(r))-1;if(t&Ue.Next)return Math.max(0,n.indexOf(r))+1;if(t&Ue.Last)return n.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),s=t&Ue.NoScroll?{preventScroll:!0}:{},a=0,l=n.length,c=void 0;do{var u;if(a>=l||a+l<=0)return qe.Error;var d=o+a;if(t&Ue.WrapAround)d=(d+l)%l;else{if(d<0)return qe.Underflow;if(d>=l)return qe.Overflow}null==(u=c=n[d])||u.focus(s),a+=i}while(c!==document.activeElement);return c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),qe.Success}function Ze(e,t,n){void 0===t&&(t=He.All);var r=void 0===n?{}:n,o=r.initialFocus,s=r.containers,a=(0,i.useRef)("undefined"!=typeof window?document.activeElement:null),l=(0,i.useRef)(null),c=pe(),u=Boolean(t&He.RestoreFocus),d=Boolean(t&He.InitialFocus);(0,i.useEffect)((function(){u&&(a.current=document.activeElement)}),[u]),(0,i.useEffect)((function(){if(u)return function(){We(a.current),a.current=null}}),[u]),(0,i.useEffect)((function(){if(d&&e.current){var t=document.activeElement;if(null==o?void 0:o.current){if((null==o?void 0:o.current)===t)return void(l.current=t)}else if(e.current.contains(t))return void(l.current=t);(null==o?void 0:o.current)?We(o.current):Je(e.current,Ue.First)===qe.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=document.activeElement}}),[e,o,d]),Be("keydown",(function(n){t&He.TabLock&&e.current&&n.key===Me.Tab&&(n.preventDefault(),Je(e.current,(n.shiftKey?Ue.Previous:Ue.Next)|Ue.WrapAround)===qe.Success&&(l.current=document.activeElement))})),Be("focus",(function(n){if(t&He.FocusLock){var r=new Set(null==s?void 0:s.current);if(r.add(e),r.size){var i=l.current;if(i&&c.current){var o=n.target;o&&o instanceof HTMLElement?!function(e,t){for(var n,r=te(e);!(n=r()).done;){var i;if(null==(i=n.value.current)?void 0:i.contains(t))return!0}return!1}(r,o)?(n.preventDefault(),n.stopPropagation(),We(i)):(l.current=o,We(o)):We(l.current)}}}}),!0)}!function(e){e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll"}(Ue||(Ue={})),function(e){e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow"}(qe||(qe={})),function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"}(Ve||(Ve={})),function(e){e[e.Strict=0]="Strict",e[e.Loose=1]="Loose"}(ze||(ze={})),function(e){e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All"}(He||(He={}));var Ge=new Set,Ke=new Map;function Ye(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function Xe(e){var t=Ke.get(e);t&&(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var Qe=(0,i.createContext)(!1);function et(e){return o().createElement(Qe.Provider,{value:e.force},e.children)}const tt=ReactDOM;function nt(){var e=(0,i.useContext)(Qe),t=(0,i.useContext)(st),n=(0,i.useState)((function(){if(!e&&null!==t)return null;if("undefined"==typeof window)return null;var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)})),r=n[0],o=n[1];return(0,i.useEffect)((function(){e||null!==t&&o(t.current)}),[t,o,e]),r}var rt=i.Fragment;function it(e){var t=e,n=nt(),r=(0,i.useState)((function(){return"undefined"==typeof window?null:document.createElement("div")}))[0],o=ce();return ae((function(){if(n&&r)return n.appendChild(r),function(){var e;n&&(r&&(n.removeChild(r),n.childNodes.length<=0&&(null==(e=n.parentElement)||e.removeChild(n))))}}),[n,r]),o&&n&&r?(0,tt.createPortal)(re({props:t,defaultTag:rt,name:"Portal"}),r):null}var ot=i.Fragment,st=(0,i.createContext)(null);it.Group=function(e){var t=e.target,n=Q(e,["target"]);return o().createElement(st.Provider,{value:t},re({props:n,defaultTag:ot,name:"Popover.Group"}))};var at=(0,i.createContext)(null);function lt(){var e=(0,i.useContext)(at);if(null===e){var t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,lt),t}return e}var ct,ut,dt,ft,pt=(0,i.createContext)((function(){}));function ht(e){var t=e.children,n=e.onUpdate,r=e.type,s=e.element,a=(0,i.useContext)(pt),l=(0,i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n.apply(void 0,t),a.apply(void 0,t)}),[a,n]);return ae((function(){return l(ct.Add,r,s),function(){return l(ct.Remove,r,s)}}),[l,r,s]),o().createElement(pt.Provider,{value:l},t)}pt.displayName="StackContext",function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove"}(ct||(ct={})),function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(dt||(dt={})),function(e){e[e.SetTitleId=0]="SetTitleId"}(ft||(ft={}));var mt=((ut={})[ft.SetTitleId]=function(e,t){return e.titleId===t.id?e:X({},e,{titleId:t.id})},ut),yt=(0,i.createContext)(null);function vt(e){var t=(0,i.useContext)(yt);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+jt.displayName+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,vt),n}return t}function gt(e,t){return ne(t.type,mt,e,t)}yt.displayName="DialogContext";var xt=Z.RenderStrategy|Z.Static,bt=oe((function(e,t){var n,r=e.open,s=e.onClose,a=e.initialFocus,l=Q(e,["open","onClose","initialFocus"]),c=(0,i.useState)(0),u=c[0],d=c[1],f=ve();void 0===r&&null!==f&&(r=ne(f,((n={})[he.Open]=!0,n[he.Closed]=!1,n)));var p=(0,i.useRef)(new Set),h=(0,i.useRef)(null),m=Fe(h,t),y=e.hasOwnProperty("open")||null!==f,v=e.hasOwnProperty("onClose");if(!y&&!v)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!v)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof r)throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+r);if("function"!=typeof s)throw new Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: "+s);var g=r?dt.Open:dt.Closed,x=null!==f?f===he.Open:g===dt.Open,b=(0,i.useReducer)(gt,{titleId:null,descriptionId:null}),w=b[0],j=b[1],k=(0,i.useCallback)((function(){return s(!1)}),[s]),S=(0,i.useCallback)((function(e){return j({type:ft.SetTitleId,id:e})}),[j]),O=ce()&&g===dt.Open,_=u>1,C=null!==(0,i.useContext)(yt);Ze(h,O?ne(_?"parent":"leaf",{parent:He.RestoreFocus,leaf:He.All}):He.None,{initialFocus:a,containers:p}),function(e,t){void 0===t&&(t=!0),ae((function(){if(t&&e.current){var n=e.current;Ge.add(n);for(var r,i=te(Ke.keys());!(r=i()).done;){var o=r.value;o.contains(n)&&(Xe(o),Ke.delete(o))}return document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement){for(var t,n=te(Ge);!(t=n()).done;){var r=t.value;if(e.contains(r))return}1===Ge.size&&(Ke.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Ye(e))}})),function(){if(Ge.delete(n),Ge.size>0)document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement&&!Ke.has(e)){for(var t,n=te(Ge);!(t=n()).done;){var r=t.value;if(e.contains(r))return}Ke.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Ye(e)}}));else for(var e,t=te(Ke.keys());!(e=t()).done;){var r=e.value;Xe(r),Ke.delete(r)}}}}),[t])}(h,!!_&&O),Be("mousedown",(function(e){var t,n=e.target;g===dt.Open&&(_||(null==(t=h.current)?void 0:t.contains(n))||k())})),Be("keydown",(function(e){e.key===Me.Escape&&g===dt.Open&&(_||(e.preventDefault(),e.stopPropagation(),k()))})),(0,i.useEffect)((function(){if(g===dt.Open&&!C){var e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=n+"px",function(){document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}}),[g,C]),(0,i.useEffect)((function(){if(g===dt.Open&&h.current){var e=new IntersectionObserver((function(e){for(var t,n=te(e);!(t=n()).done;){var r=t.value;0===r.boundingClientRect.x&&0===r.boundingClientRect.y&&0===r.boundingClientRect.width&&0===r.boundingClientRect.height&&k()}}));return e.observe(h.current),function(){return e.disconnect()}}}),[g,h,k]);var E=function(){var e=(0,i.useState)([]),t=e[0],n=e[1];return[t.length>0?t.join(" "):void 0,(0,i.useMemo)((function(){return function(e){var t=(0,i.useCallback)((function(e){return n((function(t){return[].concat(t,[e])})),function(){return n((function(t){var n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))}}),[]),r=(0,i.useMemo)((function(){return{register:t,slot:e.slot,name:e.name,props:e.props}}),[t,e.slot,e.name,e.props]);return o().createElement(at.Provider,{value:r},e.children)}}),[n])]}(),N=E[0],A=E[1],P="headlessui-dialog-"+fe(),T=(0,i.useMemo)((function(){return[{dialogState:g,close:k,setTitleId:S},w]}),[g,w,k,S]),M=(0,i.useMemo)((function(){return{open:g===dt.Open}}),[g]),I={ref:m,id:P,role:"dialog","aria-modal":g===dt.Open||void 0,"aria-labelledby":w.titleId,"aria-describedby":N,onClick:function(e){e.stopPropagation()}},L=l;return o().createElement(ht,{type:"Dialog",element:h,onUpdate:(0,i.useCallback)((function(e,t,n){var r;"Dialog"===t&&ne(e,((r={})[ct.Add]=function(){p.current.add(n),d((function(e){return e+1}))},r[ct.Remove]=function(){p.current.add(n),d((function(e){return e-1}))},r))}),[])},o().createElement(et,{force:!0},o().createElement(it,null,o().createElement(yt.Provider,{value:T},o().createElement(it.Group,{target:h},o().createElement(et,{force:!1},o().createElement(A,{slot:M,name:"Dialog.Description"},re({props:X({},L,I),slot:M,defaultTag:"div",features:xt,visible:x,name:"Dialog"}))))))))})),wt=oe((function e(t,n){var r=vt([jt.displayName,e.name].join("."))[0],o=r.dialogState,s=r.close,a=Fe(n),l="headlessui-dialog-overlay-"+fe(),c=(0,i.useCallback)((function(e){if(De(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}),[s]),u=(0,i.useMemo)((function(){return{open:o===dt.Open}}),[o]);return re({props:X({},t,{ref:a,id:l,"aria-hidden":!0,onClick:c}),slot:u,defaultTag:"div",name:"Dialog.Overlay"})}));var jt=Object.assign(bt,{Overlay:wt,Title:function e(t){var n=vt([jt.displayName,e.name].join("."))[0],r=n.dialogState,o=n.setTitleId,s="headlessui-dialog-title-"+fe();(0,i.useEffect)((function(){return o(s),function(){return o(null)}}),[s,o]);var a=(0,i.useMemo)((function(){return{open:r===dt.Open}}),[r]);return re({props:X({},t,{id:s}),slot:a,defaultTag:"h2",name:"Dialog.Title"})},Description:function(e){var t=lt(),n="headlessui-description-"+fe();ae((function(){return t.register(n)}),[n,t.register]);var r=e,i=X({},t.props,{id:n});return re({props:X({},r,i),slot:t.slot||{},defaultTag:"p",name:t.name||"Description"})}});const kt=wp.components;var St=n(42),Ot=n.n(St);const _t=lodash;var Ct=function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";B.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify-sdk::".concat(t,"-library"),{detail:e,bubbles:!0}))}(e,"open")};function Et(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function Nt(e){switch(e){case"tax_categories":return"Site Type";case"tax_pattern_types":return"Content"}return e.replace("tax_","").replace(/_/g," ").replace(/\b\w/g,(function(e){return e.toUpperCase()}))}var At=n(246);function Pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e){var t=Pt(e.taxonomy,2),n=t[0],r=t[1],i=K((function(e){return e.updateTaxonomies})),o=K((function(e){return e.searchParams})),s=V((function(e){return e.openedTaxonomies})),a=V((function(e){return e.toggleOpenedTaxonomy})),l=function(e){return(null==o?void 0:o.taxonomies[n])===e.term},c=Object.values(r).filter((function(e){var t;return null==e||null===(t=e.type)||void 0===t?void 0:t.includes(o.type)})).length;return Object.keys(r).length&&c?(0,At.jsx)(kt.PanelBody,{title:Nt(n),initialOpen:s.includes(n)||"tax_pattern_types"===n||"tax_page_types"===n,onToggle:function(e){return a(n,e)},children:(0,At.jsx)(kt.PanelRow,{children:(0,At.jsx)("div",{className:"overflow-hidden w-full relative",children:(0,At.jsx)("ul",{className:"p-1 m-0 w-full",children:Object.values(r).filter((function(e){var t;return null==e||null===(t=e.type)||void 0===t?void 0:t.includes(o.type)})).map((function(e){return(0,At.jsx)("li",{className:"m-0 w-full",children:(0,At.jsx)("button",{type:"button",className:"text-left cursor-pointer w-full flex justify-between items-center py-1.5 m-0 leading-none bg-transparent hover:text-wp-theme-500 transition duration-200 button-focus",onClick:function(){return i((t={},r=n,o=e.term,r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t));var t,r,o},children:(0,At.jsx)("span",{className:Ot()({"text-wp-theme-500":l(e)}),children:e.term})})},e.term)}))})})})}):null}const It=wp.i18n;function Lt(e){return Array.isArray?Array.isArray(e):"[object Array]"===Vt(e)}function Rt(e){return"string"==typeof e}function Ft(e){return"number"==typeof e}function Dt(e){return!0===e||!1===e||function(e){return Bt(e)&&null!==e}(e)&&"[object Boolean]"==Vt(e)}function Bt(e){return"object"==typeof e}function Ut(e){return null!=e}function qt(e){return!e.trim().length}function Vt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const zt=Object.prototype.hasOwnProperty;class Ht{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=$t(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $t(e){let t=null,n=null,r=null,i=1;if(Rt(e)||Lt(e))r=e,t=Wt(e),n=Jt(e);else{if(!zt.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const o=e.name;if(r=o,zt.call(e,"weight")&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(o));t=Wt(o),n=Jt(o)}return{path:t,id:n,weight:i,src:r}}function Wt(e){return Lt(e)?e:e.split(".")}function Jt(e){return Lt(e)?e.join("."):e}var Zt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const i=(e,t,o)=>{if(Ut(e))if(t[o]){const s=e[t[o]];if(!Ut(s))return;if(o===t.length-1&&(Rt(s)||Ft(s)||Dt(s)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(s));else if(Lt(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,o+1)}else t.length&&i(s,t,o+1)}else n.push(e)};return i(e,Rt(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1}};const Gt=/[^ ]+/g;class Kt{constructor({getFn:e=Zt.getFn}={}){this.norm=function(e=3){const t=new Map,n=Math.pow(10,e);return{get(e){const r=e.match(Gt).length;if(t.has(r))return t.get(r);const i=1/Math.sqrt(r),o=parseFloat(Math.round(i*n)/n);return t.set(r,o),o},clear(){t.clear()}}}(3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Rt(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();Rt(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Ut(e)||qt(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let i=this.getFn(e,t.path);if(Ut(i))if(Lt(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(Ut(r))if(Rt(r)&&!qt(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Lt(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(!qt(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Yt(e,t,{getFn:n=Zt.getFn}={}){const r=new Kt({getFn:n});return r.setKeys(e.map($t)),r.setSources(t),r.create(),r}function Xt(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=Zt.distance,ignoreLocation:o=Zt.ignoreLocation}={}){const s=t/e.length;if(o)return s;const a=Math.abs(r-n);return i?s+a/i:a?1:s}const Qt=32;function en(e,t,n,{location:r=Zt.location,distance:i=Zt.distance,threshold:o=Zt.threshold,findAllMatches:s=Zt.findAllMatches,minMatchCharLength:a=Zt.minMatchCharLength,includeMatches:l=Zt.includeMatches,ignoreLocation:c=Zt.ignoreLocation}={}){if(t.length>Qt)throw new Error(`Pattern length exceeds max of ${Qt}.`);const u=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let p=o,h=f;const m=a>1||l,y=m?Array(d):[];let v;for(;(v=e.indexOf(t,h))>-1;){let e=Xt(t,{currentLocation:v,expectedLocation:f,distance:i,ignoreLocation:c});if(p=Math.min(e,p),h=v+u,m){let e=0;for(;e<u;)y[v+e]=1,e+=1}}h=-1;let g=[],x=1,b=u+d;const w=1<<u-1;for(let r=0;r<u;r+=1){let o=0,a=b;for(;o<a;){Xt(t,{errors:r,currentLocation:f+a,expectedLocation:f,distance:i,ignoreLocation:c})<=p?o=a:b=a,a=Math.floor((b-o)/2+o)}b=a;let l=Math.max(1,f-a+1),v=s?d:Math.min(f+a,d)+u,j=Array(v+2);j[v+1]=(1<<r)-1;for(let o=v;o>=l;o-=1){let s=o-1,a=n[e.charAt(s)];if(m&&(y[s]=+!!a),j[o]=(j[o+1]<<1|1)&a,r&&(j[o]|=(g[o+1]|g[o])<<1|1|g[o+1]),j[o]&w&&(x=Xt(t,{errors:r,currentLocation:s,expectedLocation:f,distance:i,ignoreLocation:c}),x<=p)){if(p=x,h=s,h<=f)break;l=Math.max(1,2*f-h)}}if(Xt(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:c})>p)break;g=j}const j={isMatch:h>=0,score:Math.max(.001,x)};if(m){const e=function(e=[],t=Zt.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let s=e.length;o<s;o+=1){let s=e[o];s&&-1===r?r=o:s||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(y,a);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function tn(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}class nn{constructor(e,{location:t=Zt.location,threshold:n=Zt.threshold,distance:r=Zt.distance,includeMatches:i=Zt.includeMatches,findAllMatches:o=Zt.findAllMatches,minMatchCharLength:s=Zt.minMatchCharLength,isCaseSensitive:a=Zt.isCaseSensitive,ignoreLocation:l=Zt.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:tn(e),startIndex:t})},u=this.pattern.length;if(u>Qt){let e=0;const t=u%Qt,n=u-t;for(;e<n;)c(this.pattern.substr(e,Qt),e),e+=Qt;if(t){const e=u-Qt;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:a,ignoreLocation:l}=this.options;let c=[],u=0,d=!1;this.chunks.forEach((({pattern:t,alphabet:f,startIndex:p})=>{const{isMatch:h,score:m,indices:y}=en(e,t,f,{location:r+p,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});h&&(d=!0),u+=m,h&&y&&(c=[...c,...y])}));let f={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(f.indices=c),f}}class rn{constructor(e){this.pattern=e}static isMultiMatch(e){return on(e,this.multiRegex)}static isSingleMatch(e){return on(e,this.singleRegex)}search(){}}function on(e,t){const n=e.match(t);return n?n[1]:null}class sn extends rn{constructor(e,{location:t=Zt.location,threshold:n=Zt.threshold,distance:r=Zt.distance,includeMatches:i=Zt.includeMatches,findAllMatches:o=Zt.findAllMatches,minMatchCharLength:s=Zt.minMatchCharLength,isCaseSensitive:a=Zt.isCaseSensitive,ignoreLocation:l=Zt.ignoreLocation}={}){super(e),this._bitapSearch=new nn(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class an extends rn{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const ln=[class extends rn{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},an,class extends rn{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends rn{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends rn{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends rn{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends rn{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},sn],cn=ln.length,un=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const dn=new Set([sn.type,an.type]);class fn{constructor(e,{isCaseSensitive:t=Zt.isCaseSensitive,includeMatches:n=Zt.includeMatches,minMatchCharLength:r=Zt.minMatchCharLength,ignoreLocation:i=Zt.ignoreLocation,findAllMatches:o=Zt.findAllMatches,location:s=Zt.location,threshold:a=Zt.threshold,distance:l=Zt.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:s,threshold:a,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(un).filter((e=>e&&!!e.trim())),r=[];for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,s=-1;for(;!o&&++s<cn;){const e=ln[s];let n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(s=-1;++s<cn;){const e=ln[s];let n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],s=0;for(let r=0,a=t.length;r<a;r+=1){const a=t[r];o.length=0,i=0;for(let t=0,r=a.length;t<r;t+=1){const r=a[t],{isMatch:l,indices:c,score:u}=r.search(e);if(!l){s=0,i=0,o.length=0;break}if(i+=1,s+=u,n){const e=r.constructor.type;dn.has(e)?o=[...o,...c]:o.push(c)}}if(i){let e={isMatch:!0,score:s/i};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}}const pn=[];function hn(e,t){for(let n=0,r=pn.length;n<r;n+=1){let r=pn[n];if(r.condition(e,t))return new r(e,t)}return new nn(e,t)}const mn="$and",yn="$or",vn="$path",gn="$val",xn=e=>!(!e[mn]&&!e[yn]),bn=e=>({[mn]:Object.keys(e).map((t=>({[t]:e[t]})))});function wn(e,t,{auto:n=!0}={}){const r=e=>{let i=Object.keys(e);const o=(e=>!!e[vn])(e);if(!o&&i.length>1&&!xn(e))return r(bn(e));if((e=>!Lt(e)&&Bt(e)&&!xn(e))(e)){const r=o?e[vn]:i[0],s=o?e[gn]:e[r];if(!Rt(s))throw new Error((e=>`Invalid value for key ${e}`)(r));const a={keyId:Jt(r),pattern:s};return n&&(a.searcher=hn(s,t)),a}let s={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];Lt(n)&&n.forEach((e=>{s.children.push(r(e))}))})),s};return xn(e)||(e=bn(e)),r(e)}function jn(e,t){const n=e.matches;t.matches=[],Ut(n)&&n.forEach((e=>{if(!Ut(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function kn(e,t){t.score=e.score}class Sn{constructor(e,t={},n){this.options={...Zt,...t},this.options.useExtendedSearch,this._keyStore=new Ht(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Kt))throw new Error("Incorrect 'index' type");this._myIndex=t||Yt(this.options.keys,this._docs,{getFn:this.options.getFn})}add(e){Ut(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:s}=this.options;let a=Rt(e)?Rt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Zt.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))})),e.score=n}))}(a,{ignoreFieldNorm:s}),i&&a.sort(o),Ft(t)&&t>-1&&(a=a.slice(0,t)),function(e,t,{includeMatches:n=Zt.includeMatches,includeScore:r=Zt.includeScore}={}){const i=[];return n&&i.push(jn),r&&i.push(kn),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=hn(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:i})=>{if(!Ut(e))return;const{isMatch:o,score:s,indices:a}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:s,value:e,norm:i,indices:a}]})})),r}_searchLogical(e){const t=wn(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}switch(e.operator){case mn:{const i=[];for(let o=0,s=e.children.length;o<s;o+=1){const s=e.children[o],a=n(s,t,r);if(!a.length)return[];i.push(...a)}return i}case yn:{const i=[];for(let o=0,s=e.children.length;o<s;o+=1){const s=e.children[o],a=n(s,t,r);if(a.length){i.push(...a);break}}return i}}},r=this._myIndex.records,i={},o=[];return r.forEach((({$:e,i:r})=>{if(Ut(e)){let s=n(t,e,r);s.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},o.push(i[r])),s.forEach((({matches:e})=>{i[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=hn(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((({$:e,i:r})=>{if(!Ut(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&i.push({idx:r,item:e,matches:o})})),i}_findMatches({key:e,value:t,searcher:n}){if(!Ut(t))return[];let r=[];if(Lt(t))t.forEach((({v:t,i,n:o})=>{if(!Ut(t))return;const{isMatch:s,score:a,indices:l}=n.searchIn(t);s&&r.push({score:a,key:e,value:t,idx:i,norm:o,indices:l})}));else{const{v:i,n:o}=t,{isMatch:s,score:a,indices:l}=n.searchIn(i);s&&r.push({score:a,key:e,value:i,norm:o,indices:l})}return r}}Sn.version="6.4.6",Sn.createIndex=Yt,Sn.parseIndex=function(e,{getFn:t=Zt.getFn}={}){const{keys:n,records:r}=e,i=new Kt({getFn:t});return i.setKeys(n),i.setIndexRecords(r),i},Sn.config=Zt,Sn.parseQuery=wn,function(...e){pn.push(...e)}(fn);const On=Sn;function _n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var En=new Map;function Nn(e){var t=e.value,n=e.setValue,i=e.terms,o=B((function(e){return e.preferredOptionsHistory})),s=K((function(e){return e.searchParams})),a=_n((0,r.useState)(!1),2),l=a[0],c=a[1],u=(0,r.useRef)(),d=_n((0,r.useState)({}),2),f=d[0],p=d[1],h=_n((0,r.useState)(""),2),m=h[0],y=h[1],v=_n((0,r.useState)([]),2),g=v[0],x=v[1],b=(0,r.useMemo)((function(){return Object.values(i.filter((function(e){return null==e?void 0:e.featured})).sort((function(e,t){return e.term<t.term?-1:e.term>t.term?1:0})))}),[i]),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(En.has(e))x(En.get(e));else{var t=f.search(e);En.set(e,null!=t&&t.length?t.map((function(e){return e.item})):b),x(En.get(e))}},j="Unknown"===t||!t.length;(0,r.useEffect)((function(){p(new On(i,{keys:["term","parent","keywords"],minMatchCharLength:2,threshold:.3}))}),[i]),(0,r.useEffect)((function(){m.length||x(b)}),[b,m]),(0,r.useEffect)((function(){l&&u.current.focus()}),[l]);var k,S,O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,It.__)("Suggestions","extendify-sdk");return e===b&&(t=(0,It.__)("Examples","extendify-sdk")),(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("h4",{className:"mt-4 mb-2 text-left uppercase text-xs text-gray-700",children:t}),(0,At.jsx)("ul",{className:"m-0",children:e.map((function(e){var t;Object.prototype.hasOwnProperty.call(e,"term")&&(e=e.term);var r=(null==s||null===(t=s.taxonomies)||void 0===t?void 0:t.tax_categories)===e;return(0,At.jsx)("li",{className:"m-0 mb-1",children:(0,At.jsx)("button",{type:"button",className:Ot()("w-full text-left text-sm bg-transparent hover:text-wp-theme-500 m-0 pl-0 cursor-pointer",{"text-gray-800":!r}),onClick:function(){c(!1),n(e)},children:e})},e)}))})]})};return(0,At.jsxs)("div",{className:"w-full bg-gray-100 rounded",children:[(0,At.jsx)("button",{type:"button",onClick:function(){return c((function(e){return!e}))},className:"flex items-center justify-between text-gray-800 button-focus w-full p-4 m-0 cursor-pointer bg-gray-100 hover:bg-gray-150 rounded",children:(S=l?(0,It.__)("What kind of site is this?","extendify-sdk"):t,(0,At.jsxs)(At.Fragment,{children:[(0,At.jsxs)("span",{className:"flex flex-col text-left",children:[(0,At.jsx)("span",{className:"text-sm mb-1",children:(0,It.__)("Site Type","extendify-sdk")}),(0,At.jsx)("span",{className:"font-light text-xs",children:S})]}),(0,At.jsxs)("span",{className:"flex items-center space-x-4",children:[j&&!l&&(0,At.jsxs)("svg",{className:"text-wp-alert-red","aria-hidden":"true",focusable:"false",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("path",{className:"stroke-current",d:"M10.9982 4.05371C7.66149 4.05371 4.95654 6.75866 4.95654 10.0954C4.95654 13.4321 7.66149 16.137 10.9982 16.137C14.3349 16.137 17.0399 13.4321 17.0399 10.0954C17.0399 6.75866 14.3349 4.05371 10.9982 4.05371V4.05371Z",strokeWidth:"1.25"}),(0,At.jsx)("path",{className:"fill-current",d:"M10.0205 12.8717C10.0205 12.3287 10.4508 11.8881 10.9938 11.8881C11.5368 11.8881 11.9774 12.3287 11.9774 12.8717C11.9774 13.4147 11.5368 13.8451 10.9938 13.8451C10.4508 13.8451 10.0205 13.4147 10.0205 12.8717Z"}),(0,At.jsx)("path",{className:"fill-current",d:"M11.6495 10.2591C11.6086 10.6177 11.3524 10.9148 10.9938 10.9148C10.625 10.9148 10.3791 10.6074 10.3483 10.2591L10.0205 7.31855C9.95901 6.81652 10.4918 6.34521 10.9938 6.34521C11.4959 6.34521 12.0286 6.81652 11.9774 7.31855L11.6495 10.2591Z"})]}),(0,At.jsx)("svg",{className:Ot()("text-gray-700 stroke-current",{"transform rotate-90 -translate-x-1":l}),"aria-hidden":"true",focusable:"false",width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),l&&(0,At.jsxs)("div",{className:"p-4 pt-0",children:[(0,At.jsxs)("div",{className:"relative my-2",children:[(0,At.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,It.__)("Search","extendify-sdk")}),(0,At.jsx)("input",{ref:u,id:"site-type-search",value:m||"",onChange:function(e){return t=e.target.value,y(t),void w(t);var t},type:"text",className:"button-focus bg-white border-0 m-0 p-3.5 py-2.5 rounded text-sm w-full",placeholder:(0,It.__)("Search","extendify-sdk")}),(0,At.jsx)("svg",{className:"absolute top-2 right-2 hidden lg:block pointer-events-none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false",children:(0,At.jsx)("path",{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})})]}),m.length>1&&g===b&&(0,At.jsx)("p",{className:"text-left",children:(0,It.__)("Nothing found...","extendify-sdk")}),g===b&&(null==o||null===(k=o.siteType)||void 0===k?void 0:k.length)>0&&(0,At.jsx)("div",{className:"mb-8",children:O(null==o?void 0:o.siteType,(0,It.__)("Recent","extendify-sdk"))}),g&&(0,At.jsx)("div",{children:O(g)}),j||(0,At.jsx)("button",{type:"button",className:"mt-4 w-full text-left text-sm bg-transparent hover:text-wp-theme-500 pl-0 cursor-pointer text-wp-theme-500",onClick:function(){c(!1),n("Unknown")},children:(0,It.__)("Reset","extendify-sdk")})]})]})}function An(){var e,t,n,r=V((function(e){return e.taxonomies})),i=K((function(e){return e.searchParams})),o=B((function(e){return e.updateSiteType})),s=K((function(e){return e.updateTaxonomies}));return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"mt-px bg-white mb-8 mx-6 pt-6 lg:mx-0 lg:pt-0",children:Object.keys(null!==(e=null==r?void 0:r.tax_categories)&&void 0!==e?e:{}).length>0&&(0,At.jsx)(Nn,{value:null!==(t=null==i||null===(n=i.taxonomies)||void 0===n?void 0:n.tax_categories)&&void 0!==t?t:"",setValue:function(e){o(e),s({tax_categories:e})},terms:r.tax_categories})}),(0,At.jsx)("div",{className:"mt-px flex-grow hidden overflow-y-auto pb-32 pr-2 pt-px sm:block",children:(0,At.jsx)(kt.Panel,{children:Object.entries(r).map((function(e){return"tax_categories"===e[0]?null:(0,At.jsx)(Mt,{taxonomy:e},e[0])}))})})]})}function Pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ln(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Rn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Ln(o,r,i,s,a,"next",e)}function a(e){Ln(o,r,i,s,a,"throw",e)}s(void 0)}))}}var Fn=0,Dn=function(e){var t=arguments;return Rn(w().mark((function n(){var r,i,o,s,a;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=t.length>1&&void 0!==t[1]?t[1]:{},Fn++,n.next=4,k.post("templates",{filterByFormula:zn(e),pageSize:null!==(r=null==s?void 0:s.pageSize)&&void 0!==r?r:g,categories:e.taxonomies,search:e.search,type:e.type,offset:null!==(i=s.offset)&&void 0!==i?i:"",initial:1===Fn,request_count:Fn,sdk_partner:null!==(o=B.getState().sdkPartner)&&void 0!==o?o:""});case 4:return a=n.sent,n.abrupt("return",a);case 6:case"end":return n.stop()}}),n)})))()},Bn=function(e,t,n){var r,i,o,s;return k.post("related",{pageSize:4,query_type:t,wanted_type:n,categories:null==e||null===(r=e.fields)||void 0===r?void 0:r.tax_categories,pattern_types:null==e||null===(i=e.fields)||void 0===i?void 0:i.tax_pattern_types,style:null==e||null===(o=e.fields)||void 0===o?void 0:o.tax_style,type:null==e||null===(s=e.fields)||void 0===s?void 0:s.type,template_id:null==e?void 0:e.id})},Un=function(e){var t;return k.post("templates/".concat(e.id),{template_id:e.id,maybe_import:!0,type:e.fields.type,pageSize:g,template_name:null===(t=e.fields)||void 0===t?void 0:t.title})},qn=function(e){var t;return k.post("templates/".concat(e.id),{template_id:e.id,single:!0,type:e.fields.type,pageSize:g,template_name:null===(t=e.fields)||void 0===t?void 0:t.title})},Vn=function(e){var t;return k.post("templates/".concat(e.id),{template_id:e.id,imported:!0,type:e.fields.type,pageSize:g,template_name:null===(t=e.fields)||void 0===t?void 0:t.title})},zn=function(e){var t,n=e.taxonomies,r=e.type;n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){In(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);var i=[];"Unknown"===(null===(t=n)||void 0===t?void 0:t.tax_categories)&&(n.tax_categories="Default");var o=Object.entries(n).filter((function(e){var t=Pn(e,2),n=t[0],i=t[1];return $n(n,i,r)})).filter((function(e){var t=Pn(e,1)[0];return Boolean(t[1].length)})).map((function(e){var t=Pn(e,2),n=t[0],r=t[1];return"".concat(n,' = "').concat(r,'"')})).join(", ");return o.length&&i.push(o),r.length&&i.push('{type}="'.concat(r,'"')),i.length?"AND(".concat(i.join(", "),")").replace(/\r?\n|\r/g,""):""},Hn=new Map,$n=function(e,t,n){var r,i,o,s,a="".concat(e,"-").concat(t,"-").concat(n);if("tax_categories-Default-pattern"===a)return!0;Hn.has(a)||Hn.set(a,null===(r=V.getState())||void 0===r||null===(i=r.taxonomies[e])||void 0===i||null===(o=i.find((function(e){return(null==e?void 0:e.term)===t})))||void 0===o||null===(s=o.type)||void 0===s?void 0:s.includes(n));return Hn.get(a)};function Wn(){return Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wn.apply(this,arguments)}var Jn=new Map,Zn=new WeakMap,Gn=0;function Kn(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(Zn.has(n)||(Gn+=1,Zn.set(n,Gn.toString())),Zn.get(n)):"0":e[t]);var n})).toString()}function Yn(e,t,n){if(void 0===n&&(n={}),!e)return function(){};var r=function(e){var t=Kn(e),n=Jn.get(t);if(!n){var r,i=new Map,o=new IntersectionObserver((function(t){t.forEach((function(t){var n,o=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(n=i.get(t.target))||n.forEach((function(e){e(o,t)}))}))}),e);r=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:i},Jn.set(t,n)}return n}(n),i=r.id,o=r.observer,s=r.elements,a=s.get(e)||[];return s.has(e)||s.set(e,a),a.push(t),o.observe(e),function(){a.splice(a.indexOf(t),1),0===a.length&&(s.delete(e),o.unobserve(e)),0===s.size&&(o.disconnect(),Jn.delete(i))}}function Xn(e){return"function"!=typeof e.children}var Qn=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),Xn(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,i=e.trackVisibility,o=e.delay;this._unobserveCb=Yn(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:i,delay:o})}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!Xn(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,o=r.children,s=r.as,a=r.tag,l=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView"]);return(0,i.createElement)(s||a||"div",Wn({ref:this.handleNode},l),o)},r}(i.Component);function er(e){var t=void 0===e?{}:e,n=t.threshold,r=t.delay,o=t.trackVisibility,s=t.rootMargin,a=t.root,l=t.triggerOnce,c=t.skip,u=t.initialInView,d=(0,i.useRef)(),f=(0,i.useState)({inView:!!u}),p=f[0],h=f[1],m=(0,i.useCallback)((function(e){void 0!==d.current&&(d.current(),d.current=void 0),c||e&&(d.current=Yn(e,(function(e,t){h({inView:e,entry:t}),t.isIntersecting&&l&&d.current&&(d.current(),d.current=void 0)}),{root:a,rootMargin:s,threshold:n,trackVisibility:o,delay:r}))}),[Array.isArray(n)?n.toString():n,a,s,l,c,o,r]);(0,i.useEffect)((function(){d.current||!p.entry||l||c||h({inView:!!u})}));var y=[m,p.inView,p.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}Qn.displayName="InView",Qn.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};function tr(){var e=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}function nr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ir=function(){return(0,At.jsx)("div",{className:"aspect-w-1 aspect-h-1",children:(0,At.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-gray-100",children:(0,At.jsx)(kt.Spinner,{})})})};function or(e){var t=e.template,n=e.imageLoaded,i=e.setActiveTemplate,o=nr((0,r.useState)(!1),2),s=o[0],a=o[1],l=(0,r.useRef)(),c=tr();return(0,r.useEffect)((function(){var e,r,i,o,u,d,f;if(!s&&c.current){var p=new Image;p.role="button",p.className="max-w-full block m-auto object-cover",p.onload=function(){c.current&&(a(!0),l.current&&!l.current.querySelector("img")&&(l.current.appendChild(p),n(t.id)))},p.src=null!==(e=null==t||null===(r=t.fields)||void 0===r||null===(i=r.screenshot[0])||void 0===i||null===(o=i.thumbnails)||void 0===o||null===(u=o.large)||void 0===u?void 0:u.url)&&void 0!==e?e:null==t||null===(d=t.fields)||void 0===d||null===(f=d.screenshot[0])||void 0===f?void 0:f.url}}),[t,n,s,c]),s?(0,At.jsx)("button",{type:"button",className:"flex mb-10 justify-items-center flex-grow h-80 border-gray-200 bg-white border focus:border-wp-theme-500 group-hover:border-wp-theme-500 transition duration-150 cursor-pointer overflow-hidden",onClick:i,ref:l}):(0,At.jsx)(ir,{})}function sr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ar(){return ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(this,arguments)}function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dr={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class fr extends o().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let i in t){const o=parseInt(i);o>0&&e<=o&&o<n&&(n=o,r=t[i])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=o().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const i=r%e;t[i]||(t[i]=[]),t[i].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),i=100/r.length+"%";let s=n;s&&"string"!=typeof s&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===s&&(s="my-masonry-grid_column"));const a=cr(cr(cr({},e),t),{},{style:cr(cr({},t.style),{},{width:i}),className:s});return r.map(((e,t)=>o().createElement("div",ar({},a,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:i,column:s,className:a}=e,l=sr(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let c=a;return"string"!=typeof a&&(this.logDeprecated('The property "className" requires a string'),void 0===a&&(c="my-masonry-grid")),o().createElement("div",ar({},l,{className:c}),this.renderColumns())}}fr.defaultProps=dr;const pr=fr;var hr=function(){return k.get("plugins")},mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),k.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},yr=function(){return k.get("active-plugins")};function vr(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function gr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){vr(o,r,i,s,a,"next",e)}function a(e){vr(o,r,i,s,a,"throw",e)}s(void 0)}))}}var xr=[],br=[];function wr(e){return jr.apply(this,arguments)}function jr(){return(jr=gr(w().mark((function e(t){var n,r,i,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=(i=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e}))).length){e.next=4;break}return e.abrupt("return",!1);case 4:if(xr.length){e.next=10;break}return e.t0=Object,e.next=8,hr();case 8:e.t1=e.sent,xr=e.t0.keys.call(e.t0,e.t1);case 10:return o=!!i.length&&i.filter((function(e){return!xr.some((function(t){return t.includes(e)}))})),e.abrupt("return",o.length);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kr(e){return Sr.apply(this,arguments)}function Sr(){return(Sr=gr(w().mark((function e(t){var n,r,i,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=(i=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e}))).length){e.next=4;break}return e.abrupt("return",!1);case 4:if(br.length){e.next=10;break}return e.t0=Object,e.next=8,yr();case 8:e.t1=e.sent,br=e.t0.values.call(e.t0,e.t1);case 10:if(!(o=!!i.length&&i.filter((function(e){return!br.some((function(t){return t.includes(e)}))})))){e.next=16;break}return e.next=14,wr(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",o.length);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Or=l(y((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));function _r(e){var t=e.msg;return(0,At.jsxs)(kt.Modal,{style:{maxWidth:"500px"},title:(0,It.__)("Error installing plugins","extendify-sdk"),isDismissible:!1,children:[(0,It.__)("You have encountered an error that we cannot recover from. Please try again.","extendify-sdk"),(0,At.jsx)("br",{}),(0,At.jsx)(kt.Notice,{isDismissible:!1,status:"error",children:t}),(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(Lr,{}),document.getElementById("extendify-root"))},children:(0,It.__)("Go back","extendify-sdk")})]})}const Cr=wp.data;function Er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ar(){var e=Er((0,r.useState)(!1),2),t=e[0],n=e[1],i=function(){location.reload()};return(0,(0,Cr.select)("core/editor").isEditedPostDirty)()?(0,At.jsxs)(kt.Modal,{title:(0,It.__)("Reload required","extendify-sdk"),isDismissible:!1,children:[(0,At.jsx)("p",{style:{maxWidth:"400px"},children:(0,It.__)("Just one more thing! We need to reload the page to continue.","extendify-sdk")}),(0,At.jsxs)(kt.ButtonGroup,{children:[(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:i,disabled:t,children:(0,It.__)("Reload page","extendify-sdk")}),(0,At.jsx)(kt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,Cr.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,It.__)("Save changes","extendify-sdk")})]})]}):(i(),null)}function Pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mr(){var e,t=Pr((0,r.useState)(""),2),n=t[0],i=t[1],o=Or((function(e){return e.wantedTemplate})),s=null==o||null===(e=o.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return mr(s).then((function(){Or.setState({importOnLoad:!0}),(0,r.render)((0,At.jsx)(Ar,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;i(t)})),n?(0,At.jsx)(_r,{msg:n}):(0,At.jsx)(kt.Modal,{title:(0,It.__)("Installing plugins","extendify-sdk"),isDismissible:!1,children:(0,At.jsx)(kt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,It.__)("Installing...","extendify-sdk")})})}function Ir(){var e,t,n,i=Or((function(e){return e.wantedTemplate})),o=(null==i||null===(e=i.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,At.jsxs)(kt.Modal,{title:(0,It.__)("Plugins required","extendify-sdk"),isDismissible:!1,children:[(0,At.jsx)("p",{style:{maxWidth:"400px"},children:(0,It.sprintf)((0,It.__)("In order to add this %s to your site, the following plugins are required to be installed and activated.","extendify-sdk"),null!==(t=null==i||null===(n=i.fields)||void 0===n?void 0:n.type)&&void 0!==t?t:"template")}),(0,At.jsx)("ul",{children:o.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,At.jsx)("li",{children:Et(e)},e)}))}),(0,At.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,It.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify-sdk")}),(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(Fo,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,It.__)("Return to library","extendify-sdk")})]})}function Lr(e){var t,n,i,o,s,a,l,c,u=Or((function(e){return e.wantedTemplate})),d=(null==u||null===(t=u.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=B.getState())&&void 0!==n&&n.canInstallPlugins?(0,At.jsxs)(kt.Modal,{title:null!==(i=e.title)&&void 0!==i?i:(0,It.__)("Install required plugins","extendify-sdk"),isDismissible:!1,children:[(0,At.jsx)("p",{style:{maxWidth:"400px"},children:null!==(o=e.message)&&void 0!==o?o:(0,It.__)((0,It.sprintf)("There is just one more step. This %s requires the following to be automatically installed and activated:",null!==(s=null==u||null===(a=u.fields)||void 0===a?void 0:a.type)&&void 0!==s?s:"template"),"extendify-sdk")}),(null===(l=e.message)||void 0===l?void 0:l.length)>0||(0,At.jsx)("ul",{children:d.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,At.jsx)("li",{children:Et(e)},e)}))}),(0,At.jsxs)(kt.ButtonGroup,{children:[(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(Mr,{}),document.getElementById("extendify-root"))},children:null!==(c=e.buttonLabel)&&void 0!==c?c:(0,It.__)("Install Plugins","extendify-sdk")}),e.forceOpen||(0,At.jsx)(kt.Button,{isTertiary:!0,onClick:function(){e.forceOpen||(0,r.render)((0,At.jsx)(Fo,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,It.__)("No thanks, take me back","extendify-sdk")})]})]}):(0,At.jsx)(Ir,{})}function Rr(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}var Fr=function(){var e,t=(e=w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,r.render)((0,At.jsx)(Lr,{}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasRequiredPlugins",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Rr(o,r,i,s,a,"next",e)}function a(e){Rr(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Dr(e){var t=e.msg;return(0,At.jsxs)(kt.Modal,{style:{maxWidth:"500px"},title:(0,It.__)("Error Activating plugins","extendify-sdk"),isDismissible:!1,children:[(0,It.__)("You have encountered an error that we cannot recover from. Please try again.","extendify-sdk"),(0,At.jsx)("br",{}),(0,At.jsx)(kt.Notice,{isDismissible:!1,status:"error",children:t}),(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){(0,r.render)((0,At.jsx)(Hr,{}),document.getElementById("extendify-root"))},children:(0,It.__)("Go back","extendify-sdk")})]})}function Br(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Ur(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Br(o,r,i,s,a,"next",e)}function a(e){Br(o,r,i,s,a,"throw",e)}s(void 0)}))}}function qr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zr(){var e,t=qr((0,r.useState)(""),2),n=t[0],i=t[1],o=Or((function(e){return e.wantedTemplate})),s=null==o||null===(e=o.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return mr(s).then((function(){Or.setState({importOnLoad:!0})})).then(Ur(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:(0,r.render)((0,At.jsx)(Ar,{}),document.getElementById("extendify-root"));case 3:case"end":return e.stop()}}),e)})))).catch((function(e){var t=e.response;i(t.data.message)})),n?(0,At.jsx)(Dr,{msg:n}):(0,At.jsx)(kt.Modal,{title:(0,It.__)("Activating plugins","extendify-sdk"),isDismissible:!1,children:(0,At.jsx)(kt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,It.__)("Activating...","extendify-sdk")})})}function Hr(e){var t,n,i,o,s,a=Or((function(e){return e.wantedTemplate})),l=(null==a||null===(t=a.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=B.getState())&&void 0!==n&&n.canActivatePlugins?(0,At.jsx)(kt.Modal,{title:(0,It.__)("Activate required plugins","extendify-sdk"),isDismissible:!1,children:(0,At.jsxs)("div",{children:[(0,At.jsx)("p",{style:{maxWidth:"400px"},children:null!==(i=e.message)&&void 0!==i?i:(0,It.__)((0,It.sprintf)("There is just one more step. This %s requires the following plugins to be installed and activated:",null!==(o=null==a||null===(s=a.fields)||void 0===s?void 0:s.type)&&void 0!==o?o:"template"),"extendify-sdk")}),(0,At.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,At.jsx)("li",{children:Et(e)},e)}))}),(0,At.jsxs)(kt.ButtonGroup,{children:[(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(zr,{}),document.getElementById("extendify-root"))},children:(0,It.__)("Activate Plugins","extendify-sdk")}),e.showClose&&(0,At.jsx)(kt.Button,{isTertiary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(Fo,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,It.__)("No thanks, return to library","extendify-sdk")})]})]})}):(0,At.jsx)(Ir,{})}function $r(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}var Wr=function(){var e,t=(e=w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,r.render)((0,At.jsx)(Hr,{showClose:!0}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasPluginsActivated",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){$r(o,r,i,s,a,"next",e)}function a(e){$r(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Jr(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Zr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kr(e){var t=e.finished,n=Zr((0,r.useState)(""),2),i=n[0],o=n[1],s=(0,r.useRef)(),a=function(){var e,n=(e=w().mark((function e(n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),e.next=3,E(i);case 3:B.setState({registration:{email:i}}),t();case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Jr(o,r,i,s,a,"next",e)}function a(e){Jr(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return n.apply(this,arguments)}}();return(0,At.jsxs)(kt.Modal,{className:"extendify-sdk",title:(0,It.__)("One last step...","extendify-sdk"),isDismissible:!1,children:[(0,At.jsx)("p",{className:"m-0 mb-4 max-w-md",children:(0,It.__)("Register now to receive updates and special offers from Extendify","extendify-sdk")}),(0,At.jsxs)("form",{onSubmit:a,className:"flex space-x-4 mb-8",children:[(0,At.jsxs)("div",{className:"relative w-full max-w-xs",children:[(0,At.jsx)("input",{id:"extendify-email-register",required:!0,onChange:function(e){return o(e.target.value)},type:"text",className:"extendify-special-input button-focus text-sm h-8 min-h-0 border border-gray-900 special-input placeholder-transparent rounded-none w-full px-2",placeholder:(0,It.__)("Email","extendify-sdk")}),(0,At.jsx)("label",{htmlFor:"extendify-email-register",className:"-top-3 bg-white absolute left-1 px-1 transition-all",children:(0,It.__)("Email","extendify-sdk")})]}),(0,At.jsx)("input",{type:"submit",className:"hidden"})]}),(0,At.jsxs)(kt.ButtonGroup,{children:[(0,At.jsx)(kt.Button,{ref:s,isPrimary:!0,onClick:a,children:(0,It.__)("Submit and import","extendify-sdk")}),(0,At.jsx)(kt.Button,{isTertiary:!0,onClick:t,style:{boxShadow:"none",margin:"0 4px"},children:(0,It.__)("Skip and import","extendify-sdk")})]})]})}function Yr(){var e;return{id:"NeedsRegistrationModal",pass:Boolean((null===(e=B.getState().registration)||void 0===e?void 0:e.email)||B.getState().apiKey),allow:function(){},deny:function(){return new Promise((function(e){(0,r.render)((0,At.jsx)(Kr,{finished:e}),document.getElementById("extendify-root"))}))}}}function Xr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ei(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function ti(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ei(o,r,i,s,a,"next",e)}function a(e){ei(o,r,i,s,a,"throw",e)}s(void 0)}))}}function ni(e){return function(){return new ri(e.apply(this,arguments))}}function ri(e){var t,n;function r(t,n){try{var o=e[t](n),s=o.value,a=s instanceof ii;Promise.resolve(a?s.wrapped:s).then((function(e){a?r("return"===t?"return":"next",e):i(o.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(o,s){var a={key:e,arg:i,resolve:o,reject:s,next:null};n?n=n.next=a:(t=n=a,r(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function ii(e){this.wrapped=e}ri.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},ri.prototype.next=function(e){return this._invoke("next",e)},ri.prototype.throw=function(e){return this._invoke("throw",e)},ri.prototype.return=function(e){return this._invoke("return",e)};var oi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:Fr,hasPluginsActivated:Wr,NeedsRegistrationModal:Yr,stack:[],check:function(t){var n=this;return ti(w().mark((function r(){var i,o,s,a;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=Xr(e),r.prev=1,i.s();case 3:if((o=i.n()).done){r.next=11;break}return s=o.value,r.next=7,n["".concat(s)](t);case 7:a=r.sent,n.stack.push(a.pass?a.allow:a.deny);case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),i.e(r.t0);case 16:return r.prev=16,i.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])})))()},reset:function(){this.stack=[]}}};function si(e){return ai.apply(this,arguments)}function ai(){return(ai=ti(w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=li(t);case 1:return e.next=4,n.next();case 4:if(!e.sent.done){e.next=7;break}return e.abrupt("break",9);case 7:e.next=1;break;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function li(e){return ci.apply(this,arguments)}function ci(){return(ci=ni(w().mark((function e(t){var n,r,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Xr(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return i=r.value,e.next=7,i();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})))).apply(this,arguments)}function ui(e,t){return(0,(0,Cr.dispatch)("core/block-editor").insertBlocks)(e).then((function(){window.dispatchEvent(new CustomEvent("extendify-sdk::template-inserted",{detail:{template:t},bubbles:!0}))}))}const di=wp.blockEditor;var fi=["tagName","children"];function pi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hi(e){var t=e.tagName,n=void 0===t?"button":t,i=e.children,o=pi(e,fi);return o.className=Ot()(o.className,"bg-extendify-main hover:bg-extendify-main-dark py-3 pl-5 pr-3 w-60 rounded no-underline text-base text-white flex justify-center items-center space-x-2"),(0,r.createElement)(n,o,i)}const mi=function({icon:e,size:t=24,...n}){return(0,r.cloneElement)(e,{width:t,height:t,...n})},yi=e=>(0,r.createElement)("circle",e),vi=e=>(0,r.createElement)("g",e),gi=e=>(0,r.createElement)("path",e),xi=e=>(0,r.createElement)("rect",e),bi=({className:e,isPressed:t,...n})=>{const i={...n,className:Ot()(e,{"is-pressed":t})||void 0,role:"img","aria-hidden":!0,focusable:!1};return(0,r.createElement)("svg",i)},wi=(0,r.createElement)(bi,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(gi,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function ji(e){var t=e.onRequestClose,n=e.isOpen,i=e.left,o=e.right;return(0,At.jsx)(Re.Root,{show:!0,as:r.Fragment,children:(0,At.jsx)(jt,{as:"div",static:!0,open:n,className:"extendify-sdk",onClose:t,children:(0,At.jsxs)("div",{className:"fixed z-high inset-0 flex",children:[(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,At.jsx)(jt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-30 transition-opacity"})}),(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,At.jsx)("div",{className:"m-auto",children:(0,At.jsxs)("div",{className:"relative m-8 md:m-0 max-w-md rounded-sm md:flex bg-gray-100 items-center justify-center md:max-w-2xl",children:[(0,At.jsxs)("button",{onClick:t,className:"absolute block p-4 top-0 right-0 rounded-md cursor-pointer text-gray-700 opacity-30 hover:opacity-100",children:[(0,At.jsx)("span",{className:"sr-only",children:(0,It.__)("Close","extendify-sdk")}),(0,At.jsx)(mi,{icon:wi})]}),(0,At.jsx)("div",{className:"rounded-md md:rounded-l-md md:rounded-tr-none bg-white p-12 text-center md:w-7/12 items-center",children:i}),(0,At.jsx)("div",{className:"justify-center md:justify-none md:w-6/12 p-10 text-black hidden md:block ",children:o})]})})})]})})})}function ki(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _i=(0,r.memo)((function(e){var t=e.blocks;return(0,At.jsx)("div",{className:"with-light-shadow relative",children:(0,At.jsx)(di.BlockPreview,{blocks:t,live:!1,viewportWidth:1400})})}),(function(e,t){return e.clientId==t.clientId})),Ci=oi(["NeedsRegistrationModal","hasRequiredPlugins","hasPluginsActivated"]);function Ei(e){var t,n=e.template,i=(0,r.useRef)(null),o=(0,r.useRef)(!1),s=B((function(e){return e.canImport})),a=Or((function(e){return e.setWanted})),l=Y((function(e){return e.setOpen})),c=(0,x.rawHandler)({HTML:n.fields.code}),u=Si((0,r.useState)(!1),2),d=u[0],f=u[1],p=Si(er(),2),h=p[0],m=p[1],y=Si((0,r.useState)(!1),2),v=y[0],g=y[1],b=function(){var e,t=(e=w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ci.check(n);case 2:si(Ci.stack).then((function(){setTimeout((function(){ui(c,n).then((function(){return l(!1)})).then((function(){return(0,r.render)((0,At.jsx)(Fo,{}),document.getElementById("extendify-root"))})).then((function(){return Ci.reset()}))}),100)}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ki(o,r,i,s,a,"next",e)}function a(e){ki(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}(),j=function(){s()?(Un(n),a(n),b()):g(!0)};return(0,r.useEffect)((function(){!d&&m&&f(!0)}),[m,d,n]),(0,At.jsxs)(At.Fragment,{children:[(0,At.jsxs)("div",{role:"button",tabIndex:"0",ref:i,"aria-label":(0,It.sprintf)((0,It.__)("Press to import %s","extendify-sdk"),null==n||null===(t=n.fields)||void 0===t?void 0:t.type),className:"mb-8 cursor-pointer button-focus",onFocus:function(){o.current||(o.current=!0,Array.from(i.current.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).forEach((function(e){return e.setAttribute("tabIndex","-1")})))},onClick:j,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),j())},children:[(0,At.jsx)("div",{ref:h,className:"invisible absolute inset-0 pointer-events-none"}),d&&(0,At.jsx)(_i,{blocks:c})]}),v&&(0,At.jsx)(ji,{isOpen:v,onRequestClose:function(){return g(!1)},left:(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"flex space-x-2 items-center justify-center mb-10",children:(0,At.jsxs)("svg",{fill:"none",height:"30",viewBox:"0 0 153 30",width:"153",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("path",{d:"m33.2598 24.7079v-18.89872h12.7345v3.29434h-8.7388v4.50318h8.0835v3.2944h-8.0835v4.5124h8.7756v3.2944zm19.1224-14.174 2.6023 4.9553 2.6668-4.9553h4.0327l-4.1066 7.087 4.2173 7.087h-4.0141l-2.7961-4.9-2.7499 4.9h-4.0603l4.2079-7.087-4.0602-7.087zm19.1756 0v2.9529h-8.5359v-2.9529zm-6.598-3.39592h3.9312v13.21432c0 .363.0552.646.1661.849.1106.1968.2644.3353.4612.4152.2031.08.437.12.7014.12.1845 0 .3692-.0154.5537-.0461.1845-.0369.3261-.0646.4244-.0831l.6183 2.9252c-.1968.0615-.4736.1323-.8305.2122-.3568.0862-.7906.1386-1.301.157-.9474.0368-1.7781-.0892-2.4916-.3783-.7074-.2893-1.2581-.7383-1.6518-1.3474-.3937-.609-.5875-1.378-.5814-2.3069zm15.466 17.84662c-1.458 0-2.7131-.2951-3.7651-.8857-1.0457-.5968-1.8517-1.4396-2.4175-2.5285-.5661-1.0951-.8491-2.39-.8491-3.8849 0-1.458.283-2.7376.8491-3.8388.5658-1.1012 1.3625-1.9594 2.39-2.5746 1.0334-.6152 2.2454-.9228 3.6356-.9228.9353 0 1.8056.1507 2.6116.4521.812.2954 1.5195.7414 2.1224 1.3381.6091.5967 1.0827 1.3473 1.4212 2.2516.3382.8982.5073 1.9502.5073 3.1559v1.0797h-11.9683v-2.4362h8.268c0-.5659-.123-1.0673-.369-1.5041-.2462-.4368-.5875-.7782-1.0243-1.0243-.4307-.2522-.932-.3783-1.5041-.3783-.5968 0-1.1259.1384-1.5873.4152-.4552.2707-.8121.6367-1.0704 1.0981-.2584.4553-.3907.9628-.3967 1.5226v2.3162c0 .7014.129 1.3073.3874 1.8179.2646.5106.6368.9043 1.1167 1.1812.4797.2768 1.0487.4153 1.707.4153.4368 0 .8368-.0616 1.1997-.1846.363-.1231.6737-.3076.932-.5537.2584-.2461.4552-.5475.5906-.9043l3.6358.2399c-.1845.8736-.563 1.6364-1.1351 2.2885-.5659.646-1.298 1.1505-2.1963 1.5134-.8919.3569-1.9223.5351-3.0912.5351zm13.002-8.4711v8.1944h-3.931v-14.174h3.7465v2.5007h.1661c.3137-.8244.8397-1.4764 1.5779-1.9563.7383-.486 1.6335-.729 2.6855-.729.9842 0 1.8423.2153 2.5742.6459.732.4307 1.301 1.0459 1.707 1.8456.406.7936.609 1.741.609 2.8422v9.0249h-3.9305v-8.3236c.0061-.8674-.2155-1.5441-.6646-2.0301-.4491-.4922-1.0674-.7382-1.8547-.7382-.529 0-.9966.1138-1.4026.3414-.4.2276-.7137.5598-.9413.9966-.2216.4306-.3352.9505-.3415 1.5595zm17.4572 8.425c-1.077 0-2.052-.2767-2.926-.8305-.867-.5598-1.556-1.381-2.067-2.4638-.504-1.0889-.756-2.4238-.756-4.0049 0-1.6241.261-2.9744.784-4.051.523-1.0828 1.218-1.8917 2.086-2.427.873-.5413 1.83-.812 2.869-.812.794 0 1.455.1353 1.984.406.536.2646.966.5968 1.292.9966.333.3937.585.7813.757 1.1627h.12v-7.10542h3.922v18.89872h-3.876v-2.2701h-.166c-.185.3937-.446.7844-.784 1.172-.333.3814-.766.6981-1.301.9504-.53.2523-1.176.3783-1.938.3783zm1.246-3.1282c.633 0 1.168-.1722 1.605-.5167.443-.3507.781-.8398 1.015-1.4673.24-.6275.36-1.3626.36-2.2054s-.117-1.5749-.351-2.1963c-.233-.6213-.572-1.1012-1.015-1.4395-.442-.3384-.981-.5076-1.614-.5076-.646 0-1.191.1754-1.634.526-.443.3507-.778.8367-1.006 1.458-.227.6214-.341 1.3412-.341 2.1594 0 .8243.114 1.5533.341 2.187.234.6275.569 1.1196 1.006 1.4764.443.3507.988.526 1.634.526zm10.051 2.8976v-14.174h3.931v14.174zm1.984-16.00116c-.584 0-1.086-.19379-1.504-.58137-.418-.39372-.628-.86435-.628-1.41187 0-.54137.21-1.00584.628-1.39339.418-.39373.916-.59059 1.495-.59059.59 0 1.092.19686 1.504.59059.418.38755.627.85202.627 1.39339 0 .54752-.209 1.01815-.627 1.41187-.412.38758-.911.58137-1.495.58137zm12.718 1.82716v2.9529h-8.748v-2.9529zm-6.745 14.174v-15.19835c0-1.02737.2-1.8794.6-2.55611.406-.67671.959-1.18426 1.66-1.52261.702-.33836 1.498-.50753 2.39-.50753.603 0 1.154.04613 1.652.13842.505.09227.88.17532 1.126.24914l-.701 2.95293c-.154-.04922-.345-.09535-.572-.13842-.222-.04307-.449-.06459-.683-.06459-.578 0-.981.13534-1.209.40602-.228.26454-.341.63672-.341 1.11657v15.12453zm11.574 5.2876c-.499 0-.966-.04-1.403-.1199-.431-.0739-.787-.1661-1.07-.277l.886-2.9437c.695.2154 1.279.2706 1.753.1663.48-.0986.858-.4678 1.135-1.1075l.231-.5998-5.085-14.58h4.134l2.935 10.409h.147l2.962-10.409 4.162.0184-5.509 15.6874c-.264.7567-.624 1.415-1.08 1.9747-.449.5661-1.018 1.0029-1.707 1.3104-.689.3137-1.519.4707-2.491.4707z",fill:"#000"}),(0,At.jsx)("path",{d:"m18.9306 6.53613h-17.994321v18.85127h17.994321z",fill:"#000"}),(0,At.jsx)("path",{d:"m25.5.823639h-12.2819v12.281861h12.2819z",fill:"#37c2a2"})]})}),(0,At.jsx)("h3",{className:"text-xl md:leading-3",children:(0,It.__)("You're out of imports","extendify-sdk")}),(0,At.jsx)("p",{className:"text-sm text-black",children:(0,It.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify-sdk")}),(0,At.jsx)("div",{children:(0,At.jsxs)(hi,{tagName:"a",target:"_blank",className:"m-auto mt-10",href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports"),rel:"noreferrer",children:[(0,It.__)("Get Unlimited Imports","extendify-sdk"),(0,At.jsx)("svg",{fill:"none",height:"24",viewBox:"0 0 25 24",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"m10.3949 8.7864 5.5476-.02507m0 0-.0476 5.52507m.0476-5.52507c-2.357 2.35707-5.4183 5.41827-7.68101 7.68097",stroke:"currentColor",strokeWidth:"1.5"})})]})})]}),right:(0,At.jsxs)("div",{className:"space-y-2",children:[(0,At.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,At.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49271 18.0092C6.97815 17.1176 7.28413 15.9755 8.17569 15.4609C9.06724 14.946 10.2094 15.252 10.7243 16.1435C11.2389 17.0355 10.9329 18.1772 10.0413 18.6922C9.14978 19.2071 8.00764 18.9011 7.49271 18.0092V18.0092Z",fill:"currentColor"}),(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5073 6.12747C17.0218 7.01903 16.7158 8.16117 15.8243 8.67573C14.9327 9.19066 13.7906 8.88467 13.2757 7.99312C12.7611 7.10119 13.0671 5.95942 13.9586 5.44449C14.8502 4.92956 15.9923 5.23555 16.5073 6.12747V6.12747Z",fill:"currentColor"}),(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60135 11.1355C5.11628 10.2439 6.25805 9.93793 7.14998 10.4525C8.04153 10.9674 8.34752 12.1096 7.83296 13.0011C7.31803 13.8927 6.17588 14.1987 5.28433 13.6841C4.39278 13.1692 4.08679 12.0274 4.60135 11.1355V11.1355Z",fill:"currentColor"}),(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3986 13.0011C18.8837 13.8927 17.7419 14.1987 16.85 13.6841C15.9584 13.1692 15.6525 12.027 16.167 11.1355C16.682 10.2439 17.8241 9.93793 18.7157 10.4525C19.6072 10.9674 19.9132 12.1092 19.3986 13.0011V13.0011Z",fill:"currentColor"}),(0,At.jsx)("path",{d:"M9.10857 8.92594C10.1389 8.92594 10.9742 8.09066 10.9742 7.06029C10.9742 6.02992 10.1389 5.19464 9.10857 5.19464C8.0782 5.19464 7.24292 6.02992 7.24292 7.06029C7.24292 8.09066 8.0782 8.92594 9.10857 8.92594Z",fill:"currentColor"}),(0,At.jsx)("path",{d:"M14.8913 18.942C15.9217 18.942 16.7569 18.1067 16.7569 17.0763C16.7569 16.046 15.9217 15.2107 14.8913 15.2107C13.8609 15.2107 13.0256 16.046 13.0256 17.0763C13.0256 18.1067 13.8609 18.942 14.8913 18.942Z",fill:"currentColor"}),(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3841 13.0011C9.86951 12.1096 10.1755 10.9674 11.067 10.4525C11.9586 9.93793 13.1007 10.2439 13.6157 11.1355C14.1302 12.0274 13.8242 13.1692 12.9327 13.6841C12.0411 14.1987 10.899 13.8927 10.3841 13.0011V13.0011Z",fill:"currentColor"})]}),(0,At.jsx)("span",{className:"text-sm leading-none",children:(0,It.__)("Access to 100's of Patterns","extendify-sdk")})]}),(0,At.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,At.jsx)("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,At.jsx)("path",{d:"m6 4.75h12c.6904 0 1.25.55964 1.25 1.25v12c0 .6904-.5596 1.25-1.25 1.25h-12c-.69036 0-1.25-.5596-1.25-1.25v-12c0-.69036.55964-1.25 1.25-1.25z"}),(0,At.jsx)("path",{d:"m9.25 19v-14"})]})}),(0,At.jsx)("span",{className:"text-sm leading-none",children:(0,It.__)("Beautiful full page layouts","extendify-sdk")})]}),(0,At.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,At.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("circle",{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,At.jsx)("circle",{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,At.jsx)("circle",{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]}),(0,At.jsx)("span",{className:"text-sm leading-none",children:(0,It.__)("Fast and friendly support","extendify-sdk")})]}),(0,At.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,At.jsx)("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"m11.7758 3.45425c.0917-.18582.3567-.18581.4484 0l2.3627 4.78731c.0364.07379.1068.12493.1882.13676l5.2831.76769c.2051.02979.287.28178.1386.42642l-3.8229 3.72637c-.0589.0575-.0858.1402-.0719.2213l.9024 5.2618c.0351.2042-.1793.36-.3627.2635l-4.7254-2.4842c-.0728-.0383-.1598-.0383-.2326 0l-4.7254 2.4842c-.18341.0965-.39776-.0593-.36274-.2635l.90247-5.2618c.01391-.0811-.01298-.1638-.0719-.2213l-3.8229-3.72637c-.14838-.14464-.0665-.39663.13855-.42642l5.28312-.76769c.08143-.01183.15182-.06297.18823-.13676z",fill:"currentColor"})}),(0,At.jsx)("span",{className:"text-sm leading-none",children:(0,It.__)("14-Day guarantee","extendify-sdk")})]})]})})]})}function Ni(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Ai(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Ni(o,r,i,s,a,"next",e)}function a(e){Ni(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ti(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mi(){var e=tr(),t=K((function(e){return e.templates})),n=K((function(e){return e.setActive})),i=K((function(e){return e.appendTemplates})),o=Pi((0,r.useState)(""),2),s=o[0],a=o[1],l=Pi((0,r.useState)(!1),2),c=l[0],u=l[1],d=Pi(er(),2),f=d[0],p=d[1],h=K((function(e){return e.updateSearchParams})),m=K((function(e){return e.searchParams})),y=(0,r.useRef)(K.getState().nextPage),v=(0,r.useRef)(K.getState().searchParams);(0,r.useEffect)((function(){return K.subscribe((function(e){return y.current=e}),(function(e){return e.nextPage}))}),[]),(0,r.useEffect)((function(){return K.subscribe((function(e){return v.current=e}),(function(e){return e.searchParams}))}),[]);var g=(0,r.useCallback)(Ai(w().mark((function t(){var n,r;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a(""),u(!1),t.next=4,Dn(v.current,{offset:y.current}).catch((function(e){console.error(e),a(e&&e.message?e.message:(0,It.__)("Unknown error occured. Check browser console or contact support.","extendify-sdk"))}));case 4:if(r=t.sent,e.current){t.next=7;break}return t.abrupt("return");case 7:null!=r&&null!==(n=r.error)&&void 0!==n&&n.length&&a(null==r?void 0:r.error),null!=r&&r.records&&m===v.current&&(K.setState({nextPage:r.offset}),i(r.records),u(r.records.length<=0));case 9:case"end":return t.stop()}}),t)}))),[m,i,e]);if((0,r.useEffect)((function(){Object.keys(v.current.taxonomies).length&&(K.getState().skipNextFetch?K.setState({skipNextFetch:!1}):g())}),[g,v]),(0,r.useEffect)((function(){p&&g()}),[p,g]),s.length)return(0,At.jsxs)("div",{className:"text-left",children:[(0,At.jsx)("h2",{className:"text-left",children:(0,It.__)("Server error","extendify-sdk")}),(0,At.jsx)("code",{className:"block max-w-xl p-4 mb-4",style:{minHeight:"10rem"},children:s}),(0,At.jsx)(kt.Button,{isTertiary:!0,onClick:function(){h({taxonomies:{},search:""}),g()},children:(0,It.__)("Press here to reload experience")})]});if(c)return(0,At.jsx)("h2",{className:"text-left",children:(0,It.__)("No results found.","extendify-sdk")});if(!t.length)return(0,At.jsx)("div",{className:"flex items-center justify-center w-full sm:mt-64",children:(0,At.jsx)(kt.Spinner,{})});return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(pr,{breakpointCols:{default:3,1320:2,860:1,599:2,400:1},className:"flex -ml-8 w-auto pb-40",columnClassName:"pl-8 bg-clip-padding",children:t.map((function(e){return"pattern"===m.type?(0,At.jsx)(Ei,{template:e},e.id):(0,At.jsx)(or,{template:e,setActiveTemplate:function(){return n(e)},imageLoaded:function(){}},e.id)}))}),K.getState().nextPage&&(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"-translate-y-full flex flex-col h-80 items-end justify-end my-2 relative transform z-0 text",ref:f,style:{zIndex:-1}}),(0,At.jsx)("div",{className:"my-4",children:(0,At.jsx)(kt.Spinner,{})})]})]})}const Ii=(0,At.jsxs)(bi,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)(gi,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,At.jsx)(gi,{d:"M6.34684 9.72526C6.34684 9.18224 6.77716 8.74168 7.32018 8.74168C7.8632 8.74168 8.30377 9.18224 8.30377 9.72526C8.30377 10.2683 7.8632 10.6986 7.32018 10.6986C6.77716 10.6986 6.34684 10.2683 6.34684 9.72526Z",fill:"currentColor"}),(0,At.jsx)(gi,{d:"M7.9759 7.11261C7.93492 7.47121 7.67878 7.76834 7.32018 7.76834C6.95134 7.76834 6.70544 7.46097 6.6747 7.11261L6.34684 4.1721C6.28537 3.67006 6.81814 3.19876 7.32018 3.19876C7.82222 3.19876 8.35499 3.67006 8.30377 4.1721L7.9759 7.11261Z",fill:"currentColor"})]});const Li=(0,At.jsxs)(bi,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)(gi,{d:"m15.7919 7.73624h-11.67902v12.23516h11.67902z",fill:"#1e1e1e"}),(0,At.jsx)(gi,{d:"m20 4h-8v8h8z",fill:"#37c2a2"})]});const Ri=(0,At.jsxs)(bi,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)(gi,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"white",strokeWidth:"1.25"}),(0,At.jsx)(gi,{d:"M7.32458 10.0998L4.82458 7.59977M7.32458 10.0998V3.79764V10.0998ZM7.32458 10.0998L9.82458 7.59977L7.32458 10.0998Z",stroke:"white",strokeWidth:"1.25"})]});const Fi=(0,At.jsx)(bi,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)(gi,{clipRule:"evenodd",d:"m13 4c4.9545 0 9 4.04545 9 9 0 4.9545-4.0455 9-9 9-4.95455 0-9-4.0455-9-9 0-4.95455 4.04545-9 9-9zm5.0909 13.4545c-1.9545 3.8637-8.22726 3.8637-10.22726 0-.04546-.1818-.04546-.3636 0-.5454 2-3.8636 8.27276-3.8636 10.22726 0 .0909.1818.0909.3636 0 .5454zm-5.0909-8.90905c-1.2727 0-2.3182 1.04546-2.3182 2.31815 0 1.2728 1.0455 2.3182 2.3182 2.3182s2.3182-1.0454 2.3182-2.3182c0-1.27269-1.0455-2.31815-2.3182-2.31815z",fill:"currentColor",fillRule:"evenodd"})});const Di=(0,At.jsxs)(bi,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)(yi,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,At.jsxs)(vi,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,At.jsx)(gi,{d:"m61.73 11.3928 3.0825 8.3304.1197.3234.3234.1197 8.3304 3.0825-8.3304 3.0825-.3234.1197-.1197.3234-3.0825 8.3304-3.0825-8.3304-.1197-.3234-.3234-.1197-8.3304-3.0825 8.3304-3.0825.3234-.1197.1197-.3234z",strokeWidth:"1.5"}),(0,At.jsx)(gi,{d:"m84.3065 31.2718c0 5.9939-12.4614 22.323-18.6978 22.323h-17.8958v56.1522c3.5249.9 11.6535 0 17.8958 0h6.2364c11.2074 3.33 36.0089 7.991 45.5529 0l-9.294-62.1623c-2.267-1.7171-5.949-6.6968-2.55-12.8786 3.4-6.1817 2.55-18.0406 0-24.5756-1.871-4.79616-8.3289-8.90882-14.4482-8.90882s-7.0825 4.00668-6.7993 6.01003z",strokeWidth:"1.75"}),(0,At.jsx)(xi,{height:"45.5077",rx:"9.13723",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 191.5074 -96.0026)",width:"18.2745",x:"143.755",y:"47.7524"}),(0,At.jsx)(xi,{height:"42.3038",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 241.97 -50.348)",width:"17.4735",x:"146.159",y:"95.811"}),(0,At.jsx)(xi,{height:"55.9204",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 213.1347 -85.5913)",width:"17.4735",x:"149.363",y:"63.7717"}),(0,At.jsx)(xi,{height:"51.1145",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 229.1545 -69.5715)",width:"17.4735",x:"149.363",y:"79.7915"}),(0,At.jsx)(gi,{d:"m75.7483 105.349c.9858-25.6313-19.2235-42.0514-32.8401-44.0538v12.0146c8.5438 1.068 24.8303 9.7642 24.8303 36.0442 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"}),(0,At.jsx)(gi,{d:"m68.5388 109.354c.9858-25.6312-19.2234-42.0513-32.8401-44.0537v12.0147c8.5438 1.0679 24.8303 9.7641 24.8303 36.044 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"})]})]});const Bi=function(){var e=B((function(e){return e.remainingImports})),t=B((function(e){return e.allowedImports})),n=e()>0?"has-imports":"no-imports",r="has-imports"===n?"bg-extendify-main hover:bg-extendify-main-dark":"bg-extendify-alert",i="has-imports"===n?Ri:Ii;return(0,At.jsxs)("a",{target:"_blank",rel:"noreferrer",className:Ot()(r,"flex w-full no-underline button-focus -mt-10 text-sm justify-between py-3 px-4 text-white rounded"),href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifySdkData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=upgrade&utm_term=").concat(n),children:[(0,At.jsxs)("div",{className:"flex items-center space-x-2 no-underline",children:[(0,At.jsx)(mi,{icon:i,size:14}),(0,At.jsx)("span",{children:(0,It.sprintf)((0,It.__)("%s/%s Imports","extendify-sdk"),e(),Number(t))})]}),(0,At.jsx)("span",{className:"text-white no-underline font-medium outline-none",children:(0,It.__)("Upgrade","extendify-sdk")})]})};function Ui(e){var t=e.children,n=B((function(e){return e.apiKey}));return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsxs)("aside",{className:"flex-shrink-0 sm:pl-6 py-0 sm:py-6 relative",children:[(0,At.jsx)("div",{className:"sm:w-56 lg:w-64 sticky flex flex-col lg:h-full",children:t[0]}),(0,At.jsx)("div",{className:"hidden sm:flex flex-col absolute bottom-0 mb-6 w-64 text-left space-y-4",children:!n.length&&(0,At.jsx)(Bi,{})})]}),(0,At.jsx)("main",{id:"extendify-templates",className:"w-full smp:l-12 sm:pt-6 h-full overflow-hidden",children:t[1]})]})}function qi(){var e=K((function(e){return e.updateType})),t=Y((function(e){return e.currentType?e.currentType:v}));return(0,At.jsxs)("div",{className:"text-left w-full bg-white px-6 sm:px-0 pb-4 sm:pb-8 mt-px border-b sm:border-0",children:[(0,At.jsx)("h4",{className:"sr-only",children:(0,It.__)("Type select","extendify-sdk")}),(0,At.jsxs)("button",{type:"button",className:Ot()({"cursor-pointer p-3.5 space-x-2 inline-flex items-center border border-black button-focus":!0,"bg-gray-900 text-white":"pattern"===t,"bg-transparent text-black":"pattern"!==t}),onClick:function(){return e("pattern")},children:[(0,At.jsx)("svg",{width:"17",height:"13",viewBox:"0 0 17 13",className:"fill-current",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M1 13H16C16.55 13 17 12.55 17 12V8C17 7.45 16.55 7 16 7H1C0.45 7 0 7.45 0 8V12C0 12.55 0.45 13 1 13ZM0 1V5C0 5.55 0.45 6 1 6H16C16.55 6 17 5.55 17 5V1C17 0.45 16.55 0 16 0H1C0.45 0 0 0.45 0 1Z"})}),(0,At.jsx)("span",{className:"",children:(0,It.__)("Patterns","extendify-sdk")})]}),(0,At.jsxs)("button",{type:"button",className:Ot()({"cursor-pointer p-3.5 px-4 space-x-2 inline-flex items-center border border-black focus:ring-2 focus:ring-wp-theme-500 ring-offset-1 outline-none -ml-px":!0,"bg-gray-900 text-white":"template"===t,"bg-transparent text-black":"template"!==t}),onClick:function(){return e("template")},children:[(0,At.jsx)("svg",{width:"17",height:"13",viewBox:"0 0 17 13",className:"fill-current",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M7 13H10C10.55 13 11 12.55 11 12V8C11 7.45 10.55 7 10 7H7C6.45 7 6 7.45 6 8V12C6 12.55 6.45 13 7 13ZM1 13H4C4.55 13 5 12.55 5 12V1C5 0.45 4.55 0 4 0H1C0.45 0 0 0.45 0 1V12C0 12.55 0.45 13 1 13ZM13 13H16C16.55 13 17 12.55 17 12V8C17 7.45 16.55 7 16 7H13C12.45 7 12 7.45 12 8V12C12 12.55 12.45 13 13 13ZM6 1V5C6 5.55 6.45 6 7 6H16C16.55 6 17 5.55 17 5V1C17 0.45 16.55 0 16 0H7C6.45 0 6 0.45 6 1Z"})}),(0,At.jsx)("span",{className:"",children:(0,It.__)("Page layouts","extendify-sdk")})]})]})}function Vi(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function zi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $i(e){var t=e.actionCallback,n=e.initialFocus,i=B((function(e){return e.apiKey.length})),o=zi((0,r.useState)(""),2),s=o[0],a=o[1],l=zi((0,r.useState)(""),2),c=l[0],u=l[1],d=zi((0,r.useState)(""),2),f=d[0],p=d[1],h=zi((0,r.useState)("info"),2),m=h[0],y=h[1],v=zi((0,r.useState)(!1),2),g=v[0],x=v[1],b=zi((0,r.useState)(!1),2),j=b[0],k=b[1],S=(0,r.useRef)(null),O=(0,r.useRef)(null);(0,r.useEffect)((function(){return a(B.getState().email),function(){return y("info")}}),[]),(0,r.useEffect)((function(){var e;j&&(null==S||null===(e=S.current)||void 0===e||e.focus())}),[j]);var C=function(){var e,t=(e=w().mark((function e(t){var n,r,i,o,a;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),x(!0),p(""),e.next=5,_(s,c);case 5:if(n=e.sent,r=n.token,i=n.error,o=n.exception,void 0===(a=n.message)){e.next=15;break}return y("error"),x(!1),p(a.length?a:"Error: Are you interacting with the wrong server?"),e.abrupt("return");case 15:if(!i&&!o){e.next=20;break}return y("error"),x(!1),p(i.length?i:o),e.abrupt("return");case 20:if(r&&"string"==typeof r){e.next=25;break}return y("error"),x(!1),p((0,It.__)("Something went wrong","extendify-sdk")),e.abrupt("return");case 25:y("success"),p("Success!"),k(!0),x(!1),B.setState({email:s,apiKey:r});case 30:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Vi(o,r,i,s,a,"next",e)}function a(e){Vi(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();return j?(0,At.jsxs)("section",{className:"w-80 space-y-8 text-center pt-2 pb-4",children:[(0,At.jsx)(mi,{icon:Di,size:148}),(0,At.jsx)("p",{className:"text-lg text-extendify-black text-center leading-extra-tight font-semibold",children:(0,It.__)("You've signed in to Extendify","extendify-sdk")}),(0,At.jsx)(kt.Button,{ref:S,className:"px-4 p-2 cursor-pointer text-center rounded bg-extendify-main text-white",onClick:t,children:(0,It.__)("View patterns","extendify-sdk")})]}):i?(0,At.jsxs)("section",{className:"space-y-8 w-full pb-2",children:[(0,At.jsx)("p",{className:"text-base text-extendify-black leading-extra-tight",children:(0,It.__)("Account","extendify-sdk")}),(0,At.jsxs)("div",{className:"flex justify-between items-center",children:[(0,At.jsxs)("div",{className:"flex items-center space-x-2 -ml-2",children:[(0,At.jsx)(mi,{icon:Fi,size:48}),(0,At.jsx)("p",{className:"text-extendify-black",children:null!=s&&s.length?s:(0,It.__)("Logged In","extendify-sdk")})]}),window.location.search.indexOf("DEVMODE")>-1&&(0,At.jsx)(kt.Button,{className:"px-4 py-3 cursor-pointer text-center rounded bg-extendify-main text-white",onClick:function(){u(""),B.setState({apiKey:""}),setTimeout((function(){var e;null==O||null===(e=O.current)||void 0===e||e.focus()}),0)},children:(0,It.__)("Sign out","extendify-sdk")})]})]}):(0,At.jsxs)("section",{className:"w-80 text-left space-y-8 pb-6",children:[(0,At.jsxs)("div",{children:[(0,At.jsx)("p",{className:"text-lg text-extendify-black text-center leading-extra-tight font-semibold",children:(0,It.__)("Sign in to Extendify","extendify-sdk")}),(0,At.jsxs)("p",{className:"text-sm text-extendify-gray text-center space-x-1 leading-extra-tight",children:[(0,At.jsx)("span",{children:(0,It.__)("Don't have an account?","extendify-sdk")}),(0,At.jsx)("a",{href:"https://extendify.com/pricing?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=sign-up"),target:"_blank",className:"underline hover:no-underline text-extendify-gray",rel:"noreferrer",children:(0,It.__)("Sign up","extendify-sdk")})]})]}),(0,At.jsxs)("form",{onSubmit:C,className:"space-y-2",children:[(0,At.jsxs)("div",{className:"flex items-center",children:[(0,At.jsx)("label",{className:"sr-only",htmlFor:"extendifysdk-login-email",children:(0,It.__)("Email address","extendify-sdk")}),(0,At.jsx)("input",{ref:n,id:"extendifysdk-login-email",name:"extendifysdk-login-email",type:"email",className:"border-2 p-2 w-full rounded",placeholder:(0,It.__)("Email address","extendify-sdk"),value:s.length?s:"",onChange:function(e){return a(e.target.value)}})]}),(0,At.jsxs)("div",{className:"flex items-center",children:[(0,At.jsx)("label",{className:"sr-only",htmlFor:"extendifysdk-login-license",children:(0,It.__)("License key","extendify-sdk")}),(0,At.jsx)("input",{ref:O,id:"extendifysdk-login-license",name:"extendifysdk-login-license",type:"text",className:"border-2 p-2 w-full rounded",placeholder:(0,It.__)("License key","extendify-sdk"),value:c,onChange:function(e){return u(e.target.value)}})]}),(0,At.jsx)("div",{className:"pt-2 flex justify-center",children:(0,At.jsxs)("button",{type:"submit",className:"relative p-2 py-3 w-64 max-w-full flex justify-center cursor-pointer text-center rounded bg-extendify-main text-base text-white ",children:[(0,At.jsx)("span",{children:(0,It.__)("Sign In","extendify-sdk")}),g&&(0,At.jsx)("div",{className:"absolute right-2.5",children:(0,At.jsx)(kt.Spinner,{})})]})}),f&&(0,At.jsx)("div",{className:Ot()({"border-gray-900 text-gray-900":"info"===m,"border-wp-alert-red text-wp-alert-red":"error"===m,"border-extendify-main text-extendify-main":"success"===m}),children:f}),(0,At.jsx)("div",{className:"text-center pt-4",children:(0,At.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://extendify.com/guides/sign-in?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=need-help"),className:"underline hover:no-underline text-sm text-extendify-gray",children:(0,It.__)("Need Help?","extendify-sdk")})})]})]})}function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Zi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gi=function(e){return(0,At.jsx)(kt.Button,Ji(Ji({},e),{},{icon:wi,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,It.__)("Close dialog","extendify-sdk")}))},Ki=(0,r.forwardRef)((function(e,t){var n=e.isOpen,i=e.heading,o=e.onRequestClose,s=e.children,a=(0,r.useRef)(null);return(0,At.jsx)(Re.Root,{appear:!0,show:n,as:r.Fragment,children:(0,At.jsx)(jt,{as:"div",static:!0,open:n,initialFocus:null!=t?t:a,className:"extendify-sdk",onClose:o,children:(0,At.jsxs)("div",{className:"fixed z-high inset-0 flex",children:[(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,At.jsx)(jt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-30 transition-opacity"})}),(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,At.jsx)("div",{className:"m-auto relative w-full",children:(0,At.jsxs)("div",{className:"bg-white shadow-modal items-center justify-center m-auto max-w-lg relative rounded-sm w-full",children:[i?(0,At.jsxs)("div",{className:"border-b flex justify-between items-center leading-none pl-6 py-2 pr-3",children:[(0,At.jsx)("span",{className:"text-base text-extendify-black whitespace-nowrap",children:i}),(0,At.jsx)(Gi,{onClick:o})]}):(0,At.jsx)("div",{className:"absolute block px-6 py-4 top-0 right-0 ",children:(0,At.jsx)(Gi,{ref:a,onClick:o})}),(0,At.jsx)("div",{children:s})]})})})]})})})}));function Yi(e){var t=e.isOpen,n=e.onClose,i=(0,r.useRef)(null);return(0,At.jsx)(Ki,{heading:(0,It.__)("Settings","extendify-sdk"),isOpen:t,ref:i,onRequestClose:n,children:(0,At.jsx)("div",{className:"flex p-6 justify-center",children:(0,At.jsx)($i,{initialFocus:i,actionCallback:n})})})}function Xi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eo(e){var t=e.className,n=Y((function(e){return e.setOpen})),i=Xi((0,r.useState)(!1),2),o=i[0],s=i[1];return(0,At.jsx)("div",{className:t,children:(0,At.jsxs)("div",{className:"flex justify-between items-center px-6 sm:pl-6 sm:pr-12 h-full",children:[(0,At.jsx)("div",{className:"flex space-x-12 h-full",children:(0,At.jsx)("div",{className:"bg-transparent flex items-center space-x-1.5 lg:w-64 -ml-1",children:(0,At.jsx)(mi,{icon:Li,size:40})})}),(0,At.jsxs)("div",{className:"space-x-2 transform sm:translate-x-6",children:[(0,At.jsx)(kt.Button,{onClick:function(){return s(!0)},icon:(0,At.jsx)(mi,{icon:Fi,size:24}),label:(0,It.__)("Settings","extendify-sdk")}),o&&(0,At.jsx)(Yi,{isOpen:o,onClose:function(){return s(!1)}}),(0,At.jsx)(kt.Button,{onClick:function(){return n(!1)},icon:(0,At.jsx)(mi,{icon:wi,size:24}),label:(0,It.__)("Close library","extendify-sdk")})]})]})})}function to(){return(0,At.jsxs)("div",{className:"bg-white h-full flex flex-col items-center relative max-w-screen-4xl mx-auto",children:[(0,At.jsx)(eo,{className:"w-full h-16 border-solid border-0 border-b border-gray-300 flex-shrink-0"}),(0,At.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,At.jsx)("button",{onClick:function(){return document.getElementById("extendify-templates").querySelector("button").focus()},className:"sr-only focus:not-sr-only focus:text-blue-500",children:(0,It.__)("Skip to content","extendify-sdk")}),(0,At.jsx)("div",{className:"sm:flex sm:space-x-12 relative bg-white mx-auto max-w-screen-4xl h-full",children:(0,At.jsxs)(Ui,{children:[(0,At.jsx)(An,{}),(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(qi,{}),(0,At.jsx)("div",{className:"relative h-full z-30 bg-white",children:(0,At.jsx)("div",{className:"absolute z-20 inset-0 lg:static h-screen overflow-y-auto pt-4 sm:pt-0 px-6 sm:pl-0 sm:pr-8 pb-40",children:(0,At.jsx)(Mi,{})})})]})]})})]})]})}function no(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ro(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var io=oi(["NeedsRegistrationModal","hasRequiredPlugins","hasPluginsActivated"]);function oo(e){var t=e.template,n=(0,r.useRef)(null),i=K((function(e){return e.activeTemplateBlocks})),o=B((function(e){return e.canImport})),s=B((function(e){return e.apiKey})),a=Y((function(e){return e.setOpen})),l=no((0,r.useState)(!1),2),c=l[0],u=l[1],d=no((0,r.useState)(!1),2),f=d[0],p=d[1],h=Or((function(e){return e.setWanted}));(0,r.useEffect)((function(){return io.check(t).then((function(){return p(!0)})),function(){return io.reset()&&p(!1)}}),[t]),(0,r.useEffect)((function(){!c&&n.current&&n.current.focus()}),[n,c,f]);var m=function(){Un(t),u(!0),h(t),si(io.stack).then((function(){setTimeout((function(){ui(i,t).then((function(){return a(!1)})).then((function(){return(0,r.render)((0,At.jsx)(Fo,{}),document.getElementById("extendify-root"))})).then((function(){return setTimeout((function(){return Y.setState({currentPage:"main"})}),500)}))}),100)}))};return f&&Object.keys(i).length?s||o()?c?(0,At.jsx)("button",{type:"button",disabled:!0,className:"components-button is-secondary text-lg sm:text-2xl h-auto py-1.5 px-3 sm:py-2.5 sm:px-5",onClick:function(){},children:(0,It.__)("Importing...","extendify-sdk")}):(0,At.jsx)("button",{ref:n,type:"button",className:"components-button is-primary text-lg sm:text-2xl h-auto py-1.5 px-3 sm:py-2.5 sm:px-5",onClick:function(){return m()},children:(0,It.sprintf)((0,It.__)("Add %s","extendify-sdk"),t.fields.type)}):(0,At.jsx)("a",{ref:n,className:"button-extendify-main text-lg sm:text-2xl py-1.5 px-3 sm:py-2.5 sm:px-5",target:"_blank",href:"https://extendify.com/pricing?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sign_up&utm_content=single_page"),rel:"noreferrer",children:(0,It.__)("Sign up now","extendify-sdk")}):""}function so(e){var t=e.categories,n=e.styles,r=e.types,i=e.requiredPlugins;return(0,At.jsxs)(At.Fragment,{children:[t&&(0,At.jsxs)("div",{className:"w-full pb-4",children:[(0,At.jsx)("h3",{className:"text-sm m-0 mb-2",children:(0,It.__)("Categories:","extendify-sdk")}),(0,At.jsx)("div",{children:t.join(", ")})]}),n&&(0,At.jsxs)("div",{className:"w-full py-4",children:[(0,At.jsx)("h3",{className:"text-sm m-0 my-2",children:(0,It.__)("Styles:","extendify-sdk")}),(0,At.jsx)("div",{children:n.join(", ")})]}),r&&(0,At.jsxs)("div",{className:"w-full py-4",children:[(0,At.jsx)("h3",{className:"text-sm m-0 my-2",children:(0,It.__)("Types:","extendify-sdk")}),(0,At.jsx)("div",{children:r.join(", ")})]}),i.filter((function(e){return"editorplus"!==e})).length>0&&(0,At.jsxs)("div",{className:"pt-4 w-full",children:[(0,At.jsx)("h3",{className:"text-sm m-0 my-2",children:(0,It.__)("Required Plugins:","extendify-sdk")}),(0,At.jsx)("div",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return Et(e)})).join(", ")})]}),(0,At.jsx)("div",{className:"py-4 mt-4",children:(0,At.jsx)("a",{href:"https://extendify.com/what-happens-when-a-template-is-added?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sidebar"),rel:"noreferrer",target:"_blank",children:(0,It.__)("What happens when a page layout is added?","extendify-sdk")})})]})}function ao(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return co(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uo=new Map;function fo(e){var t,n,i,o,s,a,l,c=e.template,u=c.fields,d=u.tax_categories,f=u.required_plugins,p=u.tax_style,h=u.tax_pattern_types,m=B((function(e){return e.apiKey})),y=lo((0,r.useState)([]),2),v=y[0],g=y[1],x=lo((0,r.useState)([]),2),b=x[0],j=x[1],k=tr(),S=K((function(e){return e.setActive})),O=function(e){g([]),j([]),requestAnimationFrame((function(){return S(e)}))},_=(0,r.useCallback)(function(){var e,t=(e=w().mark((function e(t,n){var r,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="".concat(c.id,"|").concat(t,"|").concat(n),!uo.has(r)){e.next=3;break}return e.abrupt("return",uo.get(r));case 3:return e.next=5,Bn(c,t,n);case 5:return i=e.sent,uo.set(r,i),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ao(o,r,i,s,a,"next",e)}function a(e){ao(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e,n){return t.apply(this,arguments)}}(),[c]);return(0,r.useEffect)((function(){qn(c)}),[c]),(0,r.useEffect)((function(){_("related","pattern").then((function(e){k.current&&g(e)}))}),[c,_,k]),(0,At.jsxs)("div",{className:"flex flex-col min-h-screen bg-white sm:min-h-0 items-start overflow-y-auto h-full sm:pr-8 lg:pl-px lg:-ml-px",children:[(0,At.jsxs)("div",{className:"lg:sticky top-0 bg-white flex flex-col lg:flex-row items-start justify-start lg:items-center lg:justify-between w-full max-w-screen-xl lg:border-b border-gray-300",children:[(0,At.jsx)("div",{className:"text-left m-0 h-full px-6 sm:p-0",children:(0,At.jsx)("h1",{className:"leading-tight text-left mb-2.5 mt-0 sm:text-3xl font-normal",children:c.fields.display_title})}),(0,At.jsx)("div",{className:Ot()({"inline-flex sm:top-auto right-0 m-6 sm:m-0 sm:my-6 space-x-3":!0,"top-16 mt-5":!m.length,"top-0":m.length>0}),children:(0,At.jsx)(oo,{template:c})})]}),(0,At.jsx)("div",{className:"max-w-screen-xl sm:w-full sm:m-0 sm:mb-8 m-6 border lg:border-t-0 border-gray-300 m-46",children:(0,At.jsx)("img",{className:"max-w-full w-full block",src:null!==(t=null==c||null===(n=c.fields)||void 0===n||null===(i=n.screenshot[0])||void 0===i||null===(o=i.thumbnails)||void 0===o||null===(s=o.full)||void 0===s?void 0:s.url)&&void 0!==t?t:null==c||null===(a=c.fields)||void 0===a||null===(l=a.screenshot[0])||void 0===l?void 0:l.url})}),(0,At.jsxs)("div",{className:"divide-y p-6 sm:p-0 mb-16",children:[v.length>0&&(0,At.jsxs)("section",{className:"mb-4",children:[(0,At.jsx)("h4",{className:"text-lg m-0 mb-4 text-left font-semibold",children:(0,It.__)("Related","extendify-sdk")}),(0,At.jsx)("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 gap-6",children:v.map((function(e){var t,n,r,i,o,s,a;return(0,At.jsx)("button",{type:"button",className:"min-h-60 border border-transparent hover:border-wp-theme-500 transition duration-150 p-0 m-0 cursor-pointer",onClick:function(){return O(e)},children:(0,At.jsx)("img",{className:"max-w-full block p-0 m-0 object-cover",src:null!==(t=null==e||null===(n=e.fields)||void 0===n||null===(r=n.screenshot[0])||void 0===r||null===(i=r.thumbnails)||void 0===i||null===(o=i.large)||void 0===o?void 0:o.url)&&void 0!==t?t:null==e||null===(s=e.fields)||void 0===s||null===(a=s.screenshot[0])||void 0===a?void 0:a.url})},e.id)}))})]}),b.length>0&&(0,At.jsxs)("section",{className:"mb-4 pt-6",children:[(0,At.jsx)("h4",{className:"text-lg m-0 mb-4 text-left font-semibold",children:(0,It.__)("Alternatives","extendify-sdk")}),(0,At.jsx)("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 gap-6",children:b.map((function(e){var t,n,r,i,o,s,a;return(0,At.jsx)("button",{type:"button",className:"min-h-60 border border-transparent hover:border-wp-theme-500 transition duration-150 p-0 m-0 cursor-pointer",onClick:function(){return O(e)},children:(0,At.jsx)("img",{className:"max-w-full block p-0 m-0 object-cover",src:null!==(t=null==e||null===(n=e.fields)||void 0===n||null===(r=n.screenshot[0])||void 0===r||null===(i=r.thumbnails)||void 0===i||null===(o=i.large)||void 0===o?void 0:o.url)&&void 0!==t?t:null==e||null===(s=e.fields)||void 0===s||null===(a=s.screenshot[0])||void 0===a?void 0:a.url})},e.id)}))})]})]}),(0,At.jsx)("div",{className:"text-xs text-left p-6 w-full block sm:hidden divide-y",children:(0,At.jsx)(so,{categories:d,types:h,requiredPlugins:f,styles:p})})]})}function po(e){var t=e.template,n=K((function(e){return e.setActive})),r=t.fields,i=r.tax_categories,o=r.required_plugins,s=r.tax_style,a=r.tax_pattern_types,l=B((function(e){return e.apiKey}));return(0,At.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[!l.length&&(0,At.jsxs)("div",{className:"h-full flex sm:hidden w-full p-4 justify-between border items-center border-gray-300 bg-extendify-lightest",children:[(0,At.jsx)("a",{className:"button-extendify-main",target:"_blank",href:"https://extendify.com/pricing?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sign_up&utm_content=main"),rel:"noreferrer",children:(0,It.__)("Sign up today to get unlimited access","extendify-sdk")}),(0,At.jsx)("button",{className:"components-button",onClick:function(){return Y.setState({currentPage:"login"})},children:(0,It.__)("Log in","extendify-sdk")})]}),(0,At.jsx)("div",{className:"p-6 sm:p-0",children:(0,At.jsxs)("button",{type:"button",className:"cursor-pointer text-black bg-transparent font-medium flex items-center p-3 transform -translate-x-3 button-focus",onClick:function(){Y.setState({currentPage:"main"}),n({})},children:[(0,At.jsx)("svg",{className:"fill-current",width:"8",height:"12",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M6.70998 9.88047L2.82998 6.00047L6.70998 2.12047C7.09998 1.73047 7.09998 1.10047 6.70998 0.710469C6.31998 0.320469 5.68998 0.320469 5.29998 0.710469L0.70998 5.30047C0.31998 5.69047 0.31998 6.32047 0.70998 6.71047L5.29998 11.3005C5.68998 11.6905 6.31998 11.6905 6.70998 11.3005C7.08998 10.9105 7.09998 10.2705 6.70998 9.88047Z"})}),(0,At.jsx)("span",{className:"ml-4",children:(0,It.__)("Go back","extendify-sdk")})]})}),(0,At.jsx)("div",{className:"text-left pt-14 divide-y w-full hidden sm:block",children:(0,At.jsx)(so,{categories:i,types:a,requiredPlugins:o,styles:s})})]})}function ho(){var e=K((function(e){return e.activeTemplate}));return(0,At.jsxs)("div",{className:"bg-white h-full flex flex-col items-center relative max-w-screen-4xl mx-auto",children:[(0,At.jsx)(eo,{className:"w-full h-16 border-solid border-0 border-b border-gray-300 flex-shrink-0"}),(0,At.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,At.jsx)("a",{href:"#extendify-templates",className:"sr-only focus:not-sr-only focus:text-blue-500",children:(0,It.__)("Skip to content","extendify-sdk")}),(0,At.jsx)("div",{className:"sm:flex sm:space-x-12 relative bg-white mx-auto max-w-screen-4xl h-full",children:(0,At.jsx)("div",{className:"absolute bg-white sm:flex inset-0 z-50 sm:space-x-12",children:(0,At.jsxs)(Ui,{children:[(0,At.jsx)(po,{template:e}),(0,At.jsx)(fo,{template:e})]})})})]})]})}function mo(e){switch(e.page){case"main":return(0,At.jsx)(to,{});case"single":return(0,At.jsx)(ho,{})}}const yo=(0,r.createElement)(bi,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(gi,{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 vo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return go(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function go(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xo(){var e,t=vo((0,r.useState)(!(null!==(e=B.getState().noticesDismissedAt)&&void 0!==e&&e.welcome)),2),n=t[0],i=t[1],o=Y((function(e){return e.setOpen}));return n?(0,At.jsxs)("div",{className:"bg-extendify-secondary hidden lg:flex space-x-4 py-3 px-5 justify-center items-center relative",children:[(0,At.jsx)("span",{className:"text-black",children:(0,It.__)("Welcome to the Extendify Library","extendify-sdk")}),(0,At.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,At.jsxs)("div",{className:"flex space-x-2 justify-center items-center",children:[(0,At.jsx)(kt.Button,{variant:"link",className:"text-black underline hover:no-underline p-0 h-auto",href:"https://extendify.com/welcome/?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=welcome-notice&utm_content=tell-me-more"),target:"_blank",children:(0,It.__)("Tell me more","extendify-sdk")}),(0,At.jsx)("span",{className:"font-bold","aria-hidden":"true",children:"•"}),(0,At.jsx)(kt.Button,{variant:"link",className:"text-black underline hover:no-underline p-0 h-auto",onClick:function(){document.getElementById("extendify-templates-inserter-btn").classList.add("invisible"),B.setState({enabled:!1}),o(!1)},children:(0,It.__)("Turn off the library","extendify-sdk")})]}),(0,At.jsx)("div",{className:"absolute right-1",children:(0,At.jsx)(kt.Button,{className:"opacity-50 hover:opacity-100 focus:opacity-100 text-extendify-black",icon:(0,At.jsx)(mi,{icon:yo}),label:(0,It.__)("Dismiss this notice","extendify-sdk"),onClick:function(){i(!1),B.setState({noticesDismissedAt:{welcome:(new Date).toISOString()}})},showTooltip:!1})})]}):null}function bo(){var e=(0,r.useRef)(null),t=Y((function(e){return e.open})),n=Y((function(e){return e.setOpen})),i=Y((function(e){return e.currentPage}));return(0,At.jsx)(Re.Root,{show:t,as:r.Fragment,children:(0,At.jsx)(jt,{as:"div",static:!0,className:"extendify-sdk",initialFocus:e,onClose:function(){return n(!1)},children:(0,At.jsx)("div",{className:"h-screen w-screen sm:h-auto m-auto sm:w-auto fixed z-high inset-0 overflow-y-auto",children:(0,At.jsxs)("div",{className:"flex h-full overflow-hidden p-4 lg:p-20 text-center w-full",children:[(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,At.jsx)(jt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-30 transition-opacity"})}),(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,At.jsxs)("div",{ref:e,tabIndex:"0",className:"max-w-8xl mx-auto w-full",children:[(0,At.jsx)(mo,{page:i}),(0,At.jsx)(xo,{})]})})]})})})})}const wo=wp.compose,jo=wp.hooks,ko=JSON.parse('{"t":["absolute","relative","top-base","top-lg","-top-base","-top-lg","right-base","right-lg","-right-base","-right-lg","bottom-base","bottom-lg","-bottom-base","-bottom-lg","left-base","left-lg","-left-base","-left-lg","order-1","order-2","col-auto","col-span-1","col-span-2","col-span-3","col-span-4","col-span-5","col-span-6","col-span-7","col-span-8","col-span-9","col-span-10","col-span-11","col-span-12","col-span-full","col-start-1","col-start-2","col-start-3","col-start-4","col-start-5","col-start-6","col-start-7","col-start-8","col-start-9","col-start-10","col-start-11","col-start-12","col-start-13","col-start-auto","col-end-1","col-end-2","col-end-3","col-end-4","col-end-5","col-end-6","col-end-7","col-end-8","col-end-9","col-end-10","col-end-11","col-end-12","col-end-13","col-end-auto","row-auto","row-span-1","row-span-2","row-span-3","row-span-4","row-span-5","row-span-6","row-span-full","row-start-1","row-start-2","row-start-3","row-start-4","row-start-5","row-start-6","row-start-7","row-start-auto","row-end-1","row-end-2","row-end-3","row-end-4","row-end-5","row-end-6","row-end-7","row-end-auto","m-0","m-auto","m-base","m-lg","-m-base","-m-lg","mx-0","mx-auto","mx-base","mx-lg","-mx-base","-mx-lg","my-0","my-auto","my-base","my-lg","-my-base","-my-lg","mt-0","mt-auto","mt-base","mt-lg","-mt-base","-mt-lg","mr-0","mr-auto","mr-base","mr-lg","-mr-base","-mr-lg","mb-0","mb-auto","mb-base","mb-lg","-mb-base","-mb-lg","ml-0","ml-auto","ml-base","ml-lg","-ml-base","-ml-lg","block","inline-block","inline","flex","inline-flex","grid","inline-grid","hidden","w-auto","w-full","max-w-full","flex-1","flex-auto","flex-initial","flex-none","flex-shrink-0","flex-shrink","flex-grow-0","flex-grow","list-none","grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-7","grid-cols-8","grid-cols-9","grid-cols-10","grid-cols-11","grid-cols-12","grid-cols-none","grid-rows-1","grid-rows-2","grid-rows-3","grid-rows-4","grid-rows-5","grid-rows-6","grid-rows-none","flex-row","flex-row-reverse","flex-col","flex-col-reverse","flex-wrap","flex-wrap-reverse","flex-nowrap","items-start","items-end","items-center","items-baseline","items-stretch","justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-items-start","justify-items-end","justify-items-center","justify-items-stretch","gap-0","gap-base","gap-lg","gap-x-0","gap-x-base","gap-x-lg","gap-y-0","gap-y-base","gap-y-lg","justify-self-auto","justify-self-start","justify-self-end","justify-self-center","justify-self-stretch","rounded-none","rounded-full","rounded-t-none","rounded-t-full","rounded-r-none","rounded-r-full","rounded-b-none","rounded-b-full","rounded-l-none","rounded-l-full","rounded-tl-none","rounded-tl-full","rounded-tr-none","rounded-tr-full","rounded-br-none","rounded-br-full","rounded-bl-none","rounded-bl-full","border-0","border-t-0","border-r-0","border-b-0","border-l-0","p-0","p-base","p-lg","px-0","px-base","px-lg","py-0","py-base","py-lg","pt-0","pt-base","pt-lg","pr-0","pr-base","pr-lg","pb-0","pb-base","pb-lg","pl-0","pl-base","pl-lg","text-left","text-center","text-right","leading-none","leading-tight","leading-snug","leading-normal","leading-relaxed","leading-loose","clip-path--rhombus","clip-path--diamond","clip-path--rhombus-alt","tablet\\\\:fullwidth-cols","desktop\\\\:fullwidth-cols","direction-rtl","direction-ltr","bring-to-front","text-stroke","text-stroke--primary","text-stroke--secondary","editor\\\\:no-caption","editor\\\\:no-inserter","editor\\\\:no-resize","editor\\\\:pointer-events-none","tablet\\\\:absolute","tablet\\\\:relative","tablet\\\\:top-base","tablet\\\\:top-lg","tablet\\\\:-top-base","tablet\\\\:-top-lg","tablet\\\\:right-base","tablet\\\\:right-lg","tablet\\\\:-right-base","tablet\\\\:-right-lg","tablet\\\\:bottom-base","tablet\\\\:bottom-lg","tablet\\\\:-bottom-base","tablet\\\\:-bottom-lg","tablet\\\\:left-base","tablet\\\\:left-lg","tablet\\\\:-left-base","tablet\\\\:-left-lg","tablet\\\\:order-1","tablet\\\\:order-2","tablet\\\\:m-0","tablet\\\\:m-auto","tablet\\\\:m-base","tablet\\\\:m-lg","tablet\\\\:-m-base","tablet\\\\:-m-lg","tablet\\\\:mx-0","tablet\\\\:mx-auto","tablet\\\\:mx-base","tablet\\\\:mx-lg","tablet\\\\:-mx-base","tablet\\\\:-mx-lg","tablet\\\\:my-0","tablet\\\\:my-auto","tablet\\\\:my-base","tablet\\\\:my-lg","tablet\\\\:-my-base","tablet\\\\:-my-lg","tablet\\\\:mt-0","tablet\\\\:mt-auto","tablet\\\\:mt-base","tablet\\\\:mt-lg","tablet\\\\:-mt-base","tablet\\\\:-mt-lg","tablet\\\\:mr-0","tablet\\\\:mr-auto","tablet\\\\:mr-base","tablet\\\\:mr-lg","tablet\\\\:-mr-base","tablet\\\\:-mr-lg","tablet\\\\:mb-0","tablet\\\\:mb-auto","tablet\\\\:mb-base","tablet\\\\:mb-lg","tablet\\\\:-mb-base","tablet\\\\:-mb-lg","tablet\\\\:ml-0","tablet\\\\:ml-auto","tablet\\\\:ml-base","tablet\\\\:ml-lg","tablet\\\\:-ml-base","tablet\\\\:-ml-lg","tablet\\\\:block","tablet\\\\:inline-block","tablet\\\\:inline","tablet\\\\:flex","tablet\\\\:inline-flex","tablet\\\\:grid","tablet\\\\:inline-grid","tablet\\\\:hidden","tablet\\\\:w-auto","tablet\\\\:w-full","tablet\\\\:max-w-full","tablet\\\\:flex-1","tablet\\\\:flex-auto","tablet\\\\:flex-initial","tablet\\\\:flex-none","tablet\\\\:flex-shrink-0","tablet\\\\:flex-shrink","tablet\\\\:flex-grow-0","tablet\\\\:flex-grow","tablet\\\\:list-none","tablet\\\\:grid-cols-1","tablet\\\\:grid-cols-2","tablet\\\\:grid-cols-3","tablet\\\\:grid-cols-4","tablet\\\\:grid-cols-5","tablet\\\\:grid-cols-6","tablet\\\\:grid-cols-7","tablet\\\\:grid-cols-8","tablet\\\\:grid-cols-9","tablet\\\\:grid-cols-10","tablet\\\\:grid-cols-11","tablet\\\\:grid-cols-12","tablet\\\\:grid-cols-none","tablet\\\\:flex-row","tablet\\\\:flex-row-reverse","tablet\\\\:flex-col","tablet\\\\:flex-col-reverse","tablet\\\\:flex-wrap","tablet\\\\:flex-wrap-reverse","tablet\\\\:flex-nowrap","tablet\\\\:items-start","tablet\\\\:items-end","tablet\\\\:items-center","tablet\\\\:items-baseline","tablet\\\\:items-stretch","tablet\\\\:justify-start","tablet\\\\:justify-end","tablet\\\\:justify-center","tablet\\\\:justify-between","tablet\\\\:justify-around","tablet\\\\:justify-evenly","tablet\\\\:justify-items-start","tablet\\\\:justify-items-end","tablet\\\\:justify-items-center","tablet\\\\:justify-items-stretch","tablet\\\\:justify-self-auto","tablet\\\\:justify-self-start","tablet\\\\:justify-self-end","tablet\\\\:justify-self-center","tablet\\\\:justify-self-stretch","tablet\\\\:p-0","tablet\\\\:p-base","tablet\\\\:p-lg","tablet\\\\:px-0","tablet\\\\:px-base","tablet\\\\:px-lg","tablet\\\\:py-0","tablet\\\\:py-base","tablet\\\\:py-lg","tablet\\\\:pt-0","tablet\\\\:pt-base","tablet\\\\:pt-lg","tablet\\\\:pr-0","tablet\\\\:pr-base","tablet\\\\:pr-lg","tablet\\\\:pb-0","tablet\\\\:pb-base","tablet\\\\:pb-lg","tablet\\\\:pl-0","tablet\\\\:pl-base","tablet\\\\:pl-lg","tablet\\\\:text-left","tablet\\\\:text-center","tablet\\\\:text-right","desktop\\\\:absolute","desktop\\\\:relative","desktop\\\\:top-base","desktop\\\\:top-lg","desktop\\\\:-top-base","desktop\\\\:-top-lg","desktop\\\\:right-base","desktop\\\\:right-lg","desktop\\\\:-right-base","desktop\\\\:-right-lg","desktop\\\\:bottom-base","desktop\\\\:bottom-lg","desktop\\\\:-bottom-base","desktop\\\\:-bottom-lg","desktop\\\\:left-base","desktop\\\\:left-lg","desktop\\\\:-left-base","desktop\\\\:-left-lg","desktop\\\\:order-1","desktop\\\\:order-2","desktop\\\\:m-0","desktop\\\\:m-auto","desktop\\\\:m-base","desktop\\\\:m-lg","desktop\\\\:-m-base","desktop\\\\:-m-lg","desktop\\\\:mx-0","desktop\\\\:mx-auto","desktop\\\\:mx-base","desktop\\\\:mx-lg","desktop\\\\:-mx-base","desktop\\\\:-mx-lg","desktop\\\\:my-0","desktop\\\\:my-auto","desktop\\\\:my-base","desktop\\\\:my-lg","desktop\\\\:-my-base","desktop\\\\:-my-lg","desktop\\\\:mt-0","desktop\\\\:mt-auto","desktop\\\\:mt-base","desktop\\\\:mt-lg","desktop\\\\:-mt-base","desktop\\\\:-mt-lg","desktop\\\\:mr-0","desktop\\\\:mr-auto","desktop\\\\:mr-base","desktop\\\\:mr-lg","desktop\\\\:-mr-base","desktop\\\\:-mr-lg","desktop\\\\:mb-0","desktop\\\\:mb-auto","desktop\\\\:mb-base","desktop\\\\:mb-lg","desktop\\\\:-mb-base","desktop\\\\:-mb-lg","desktop\\\\:ml-0","desktop\\\\:ml-auto","desktop\\\\:ml-base","desktop\\\\:ml-lg","desktop\\\\:-ml-base","desktop\\\\:-ml-lg","desktop\\\\:block","desktop\\\\:inline-block","desktop\\\\:inline","desktop\\\\:flex","desktop\\\\:inline-flex","desktop\\\\:grid","desktop\\\\:inline-grid","desktop\\\\:hidden","desktop\\\\:w-auto","desktop\\\\:w-full","desktop\\\\:max-w-full","desktop\\\\:flex-1","desktop\\\\:flex-auto","desktop\\\\:flex-initial","desktop\\\\:flex-none","desktop\\\\:flex-shrink-0","desktop\\\\:flex-shrink","desktop\\\\:flex-grow-0","desktop\\\\:flex-grow","desktop\\\\:list-none","desktop\\\\:grid-cols-1","desktop\\\\:grid-cols-2","desktop\\\\:grid-cols-3","desktop\\\\:grid-cols-4","desktop\\\\:grid-cols-5","desktop\\\\:grid-cols-6","desktop\\\\:grid-cols-7","desktop\\\\:grid-cols-8","desktop\\\\:grid-cols-9","desktop\\\\:grid-cols-10","desktop\\\\:grid-cols-11","desktop\\\\:grid-cols-12","desktop\\\\:grid-cols-none","desktop\\\\:flex-row","desktop\\\\:flex-row-reverse","desktop\\\\:flex-col","desktop\\\\:flex-col-reverse","desktop\\\\:flex-wrap","desktop\\\\:flex-wrap-reverse","desktop\\\\:flex-nowrap","desktop\\\\:items-start","desktop\\\\:items-end","desktop\\\\:items-center","desktop\\\\:items-baseline","desktop\\\\:items-stretch","desktop\\\\:justify-start","desktop\\\\:justify-end","desktop\\\\:justify-center","desktop\\\\:justify-between","desktop\\\\:justify-around","desktop\\\\:justify-evenly","desktop\\\\:justify-items-start","desktop\\\\:justify-items-end","desktop\\\\:justify-items-center","desktop\\\\:justify-items-stretch","desktop\\\\:justify-self-auto","desktop\\\\:justify-self-start","desktop\\\\:justify-self-end","desktop\\\\:justify-self-center","desktop\\\\:justify-self-stretch","desktop\\\\:p-0","desktop\\\\:p-base","desktop\\\\:p-lg","desktop\\\\:px-0","desktop\\\\:px-base","desktop\\\\:px-lg","desktop\\\\:py-0","desktop\\\\:py-base","desktop\\\\:py-lg","desktop\\\\:pt-0","desktop\\\\:pt-base","desktop\\\\:pt-lg","desktop\\\\:pr-0","desktop\\\\:pr-base","desktop\\\\:pr-lg","desktop\\\\:pb-0","desktop\\\\:pb-base","desktop\\\\:pb-lg","desktop\\\\:pl-0","desktop\\\\:pl-base","desktop\\\\:pl-lg","desktop\\\\:text-left","desktop\\\\:text-center","desktop\\\\:text-right"]}');function So(e){return function(e){if(Array.isArray(e))return Oo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oo(e,t)}(e)||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.")}()}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No=(0,wo.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes.extUtilities,r=ko.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(e,Co({},t)),n&&(0,At.jsx)(di.InspectorAdvancedControls,{children:(0,At.jsx)(kt.FormTokenField,{label:(0,It.__)("Extendify Utilities","extendify-sdk"),tokenizeOnSpace:!0,value:n,suggestions:r,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function Ao(e,t,n){var r=e.className,i=n.extUtilities,o=n.className;if(!i||!Object.keys(i).length)return e;var s=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},a=new Set([].concat(So(s(o)),So(s(r)),So(s(i))));return Object.assign({},e,{className:So(a).join(" ")})}function Po(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}(0,jo.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return Co(Co({},e),{},{attributes:Co(Co({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,jo.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ao(r,e,n)},e})),(0,jo.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",No),(0,jo.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",Ao);var To=function(){return(e=w().mark((function e(){var t;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.get("taxonomies-simple");case 2:return(t=e.sent)["tax_pattern_types_2.0"]&&(t.tax_pattern_types=t["tax_pattern_types_2.0"],delete t["tax_pattern_types_2.0"]),t["tax_page_types_2.0"]&&(t.tax_page_types=t["tax_page_types_2.0"],delete t["tax_page_types_2.0"]),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Po(o,r,i,s,a,"next",e)}function a(e){Po(o,r,i,s,a,"throw",e)}s(void 0)}))})();var e};function Mo(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Io(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Mo(o,r,i,s,a,"next",e)}function a(e){Mo(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ro(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fo(e){var t=e.show,n=void 0!==t&&t,i=Y((function(e){return e.open})),o=Y((function(e){return e.setOpen})),s=Lo((0,r.useState)(!1),2),a=s[0],l=s[1],c=(0,r.useCallback)((function(){return o(!0)}),[o]),u=(0,r.useCallback)((function(){return o(!1)}),[o]),d=K((function(e){return e.initTemplateData})),f=B((function(e){return e.uuid.length>0})),p=K((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=K((function(e){return e.setupDefaultTaxonomies})),n=V((function(e){return e.setTaxonomies})),i=(0,r.useCallback)(Io(w().mark((function e(){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,To();case 2:r=e.sent,r=Object.keys(r).filter((function(e){return e.startsWith("tax_")})).reduce((function(e,t){return e[t]=r[t],e}),{}),n(r),t();case 6:case"end":return e.stop()}}),e)}))),[n,t]);(0,r.useEffect)((function(){e&&i()}),[i,e])}(i),(0,r.useEffect)((function(){f&&p&&("single"===Y.getState().currentPage&&Y.setState({currentPage:"main"}),d(),l(!0))}),[f,p,d]),(0,r.useEffect)((function(){n&&o(!0)}),[n,o]),(0,r.useEffect)((function(){return window.addEventListener("extendify-sdk::open-library",c),window.addEventListener("extendify-sdk::close-library",u),function(){window.removeEventListener("extendify-sdk::open-library",c),window.removeEventListener("extendify-sdk::close-library",u)}}),[u,c]),a?(0,At.jsx)(bo,{}):null}const Do=wp.plugins,Bo=wp.editPost;var Uo=function(){return k.get("site-settings")},qo=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),k.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})};function Vo(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function zo(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Vo(o,r,i,s,a,"next",e)}function a(e){Vo(o,r,i,s,a,"throw",e)}s(void 0)}))}}var Ho={getItem:function(){var e=zo(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Uo();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setItem:function(){var e=zo(w().mark((function e(t,n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qo(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},$o=l(y((function(){return{enabled:!0}}),{name:"extendify-sitesettings",getStorage:function(){return Ho}}));function Wo(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Wo(o,r,i,s,a,"next",e)}function a(e){Wo(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Go(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Go(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const Ko=function(){var e=(0,Cr.useSelect)((function(e){return e("core").canUser("create","users")})),t=Zo((0,r.useState)(B((function(e){return e.enabled}))),2),n=t[0],i=t[1],o=Zo((0,r.useState)($o((function(e){return e.enabled}))),2),s=o[0],a=o[1];function l(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("extendify-templates-inserter-btn");t&&(e?t.classList.add("invisible"):t.classList.remove("invisible"))}function c(e){return u.apply(this,arguments)}function u(){return(u=Jo(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return(f=Jo(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$o.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t){return h.apply(this,arguments)}function h(){return h=Jo(w().mark((function e(t,n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("global"!==n){e.next=5;break}return e.next=3,d(t);case 3:e.next=7;break;case 5:return e.next=7,c(t);case 7:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function m(e){"global"===e?a((function(t){return p(!t,e),!t})):i((function(t){return l(!t),p(!t,e),!t}))}return(0,r.useEffect)((function(){l(!n)}),[n]),(0,At.jsxs)(kt.Modal,{title:(0,It.__)("Extendify Settings","extendify-sdk"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,r.unmountComponentAtNode)(e)},children:[(0,At.jsx)(kt.ToggleControl,{label:e?(0,It.__)("Enable the library for myself","extendify-sdk"):(0,It.__)("Enable the library","extendify-sdk"),help:(0,It.__)("Publish with hundreds of patterns & page layouts","extendify-sdk"),checked:n,onChange:function(){return m("user")}}),e&&(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("br",{}),(0,At.jsx)(kt.ToggleControl,{label:(0,It.__)("Allow all users to publish with the library"),help:(0,It.__)("Everyone publishes with patterns & page layouts","extendify-sdk"),checked:s,onChange:function(){return m("global")}})]})]})};var Yo=function(e){var t,n;Ct(null===(t=e.target.closest("[data-extendify-identifier]"))||void 0===t||null===(n=t.dataset)||void 0===n?void 0:n.extendifyIdentifier)},Xo=function(){var e,t,n;return null===window.extendifySdkData.user||(null===(e=window.extendifySdkData)||void 0===e||null===(t=e.user)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.isAdmin)},Qo=function(){var e,t,n;return null===window.extendifySdkData.sitesettings||(null===(e=window.extendifySdkData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},es=(0,At.jsx)("div",{id:"extendify-templates-inserter",className:"extendify-sdk",children:(0,At.jsxs)("button",{style:"background:#D9F1EE;color:#1e1e1e;border:1px solid #949494 !important;font-weight:bold;font-size:14px;padding:8px;margin-right:8px",type:"button","data-extendify-identifier":"main-button",id:"extendify-templates-inserter-btn",className:"components-button",children:[(0,At.jsx)(mi,{icon:Li,size:24,className:"-ml-1 mr-1"}),(0,It.__)("Library","extendify-sdk")]})});window._wpLoadBlockEditor&&window.wp.data.subscribe((function(){setTimeout((function(){var e,t,n;(Qo()||Xo())&&(document.getElementById("extendify-templates-inserter-btn")||document.querySelector(".edit-post-header-toolbar")&&(document.querySelector(".edit-post-header-toolbar").insertAdjacentHTML("beforeend",(0,r.renderToString)(es)),document.getElementById("extendify-templates-inserter-btn").addEventListener("click",Yo),(null===window.extendifySdkData.user?Qo():null===(e=window.extendifySdkData)||void 0===e||null===(t=e.user)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("invisible")))}),0)})),window._wpLoadBlockEditor&&window.wp.data.subscribe((function(){setTimeout((function(){if((Qo()||Xo())&&document.querySelector("[id$=patterns-view]")&&!document.getElementById("extendify-cta-button")){var e=(0,At.jsx)("div",{children:(0,At.jsx)("button",{id:"extendify-cta-button",style:"margin:1rem 1rem 0","data-extendify-identifier":"patterns-cta",className:"components-button is-secondary",children:(0,It.__)("Discover more patterns in Extendify Library","extendify-sdk")})});document.querySelector("[id$=patterns-view]").insertAdjacentHTML("afterbegin",(0,r.renderToString)(e)),document.getElementById("extendify-cta-button").addEventListener("click",Yo)}}),0)}));window._wpLoadBlockEditor&&(0,Do.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,At.jsx)(At.Fragment,{children:(0,At.jsxs)(Bo.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,r.render)((0,At.jsx)(Ko,{}),e)},icon:(0,At.jsx)(mi,{icon:Li,size:24}),children:[" ",(0,It.__)("Extendify","extendify-sdk")]})})}}),[{register:function(){var e=(0,Cr.dispatch)("core/notices").createNotice,t=B.getState().incrementImports;window.addEventListener("extendify-sdk::template-inserted",(function(n){e("info",(0,It.__)("Page layout Added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),Vn(null===(e=n.detail)||void 0===e?void 0:e.template)}),0)}))}},{register:function(){var e=this;window.addEventListener("extendify-sdk::softerror-encountered",(function(t){e[(0,_t.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,r.render)((0,At.jsx)(Lr,{title:e.data.title,message:e.data.message,buttonLabel:e.data.buttonLabel,forceOpen:!0}),document.getElementById("extendify-root"))}}].forEach((function(e){return e.register()})),window._wpLoadBlockEditor&&window.wp.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,r.render)((0,At.jsx)(Fo,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),Or.getState().importOnLoad){var t=Or.getState().wantedTemplate;setTimeout((function(){ui((0,x.rawHandler)({HTML:t.fields.code}),t)}),0)}Or.setState({importOnLoad:!1,wantedTemplate:{}})}))},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},716:()=>{},965:()=>{},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var s,a,l=i(e),c=1;c<arguments.length;c++){for(var u in s=Object(arguments[c]))n.call(s,u)&&(l[u]=s[u]);if(t){a=t(s);for(var d=0;d<a.length;d++)r.call(s,a[d])&&(l[a[d]]=s[a[d]])}}return l}},61:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},426:(e,t,n)=>{"use strict";n(525);var r=n(995),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.jsx=c,t.jsxs=c},246:(e,t,n)=>{"use strict";e.exports=n(426)},248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,o=Object.create(i.prototype),s=new E(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===m)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,s),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function y(){}function v(){}function g(){}var x={};x[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==n&&r.call(w,o)&&(x=w);var j=g.prototype=y.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,s,a){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,s=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:A}}function A(){return{value:t,done:!0}}return v.prototype=j.constructor=g,g.constructor=v,v.displayName=l(g,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,a,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},k(S.prototype),S.prototype[s]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new S(c(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(j),l(j,a,"Generator"),j[o]=function(){return this},j.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=N,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},995:e=>{"use strict";e.exports=React},843:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_from":"axios@0.21.4"}')}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,i,o)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,i,o]=e[u],a=!0,l=0;l<n.length;l++)(!1&o||s>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(a=!1,o<s&&(s=o));if(a){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={286:0,506:0,310:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)var u=l(r)}for(t&&t(n);c<s.length;c++)o=s[c],r.o(e,o)&&e[o]&&e[o][0](),e[s[c]]=0;return r.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[506,310],(()=>r(363))),r.O(void 0,[506,310],(()=>r(716)));var i=r.O(void 0,[506,310],(()=>r(965)));i=r.O(i)})();
1
  /*! For license information please see extendify-sdk.js.LICENSE.txt */
2
+ (()=>{var e,t={135:(e,t,n)=>{e.exports=n(248)},206:(e,t,n)=>{e.exports=n(57)},387:(e,t,n)=>{"use strict";var r=n(485),i=n(570),o=n(940),s=n(581),a=n(574),l=n(845),c=n(338),u=n(524);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,p=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+x)}var y=a(e.baseURL,e.url);function v(){if(h){var r="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),s(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(n(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||c(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;g&&(f[e.xsrfHeaderName]=g)}"setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},57:(e,t,n)=>{"use strict";var r=n(485),i=n(875),o=n(29),s=n(941);function a(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=a(n(141));l.Axios=o,l.create=function(e){return a(s(l.defaults,e))},l.Cancel=n(132),l.CancelToken=n(603),l.isCancel=n(475),l.all=function(e){return Promise.all(e)},l.spread=n(739),l.isAxiosError=n(835),e.exports=l,e.exports.default=l},132:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},603:(e,t,n)=>{"use strict";var r=n(132);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},29:(e,t,n)=>{"use strict";var r=n(485),i=n(581),o=n(96),s=n(9),a=n(941),l=n(144),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var u=[s,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var d=e;n.length;){var f=n.shift(),p=n.shift();try{d=f(d)}catch(e){p(e);break}}try{i=s(d)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},u.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=u},96:(e,t,n)=>{"use strict";var r=n(485);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},574:(e,t,n)=>{"use strict";var r=n(642),i=n(288);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},524:(e,t,n)=>{"use strict";var r=n(953);e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},9:(e,t,n)=>{"use strict";var r=n(485),i=n(212),o=n(475),s=n(141);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},953:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},941:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function c(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,c),r.forEach(s,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(a,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var u=i.concat(o).concat(s).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(d,c),n}},570:(e,t,n)=>{"use strict";var r=n(524);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},212:(e,t,n)=>{"use strict";var r=n(485),i=n(141);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},141:(e,t,n)=>{"use strict";var r=n(61),i=n(485),o=n(446),s=n(953),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(c=n(387)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw s(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(a)})),e.exports=u},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(485);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},940:(e,t,n)=>{"use strict";var r=n(485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},835:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},338:(e,t,n)=>{"use strict";var r=n(485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},446:(e,t,n)=>{"use strict";var r=n(485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},845:(e,t,n)=>{"use strict";var r=n(485),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},144:(e,t,n)=>{"use strict";var r=n(843),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},s=r.version.split(".");function a(e,t){for(var n=t?t.split("."):s,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&a(t);function s(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(s(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={isOlderVersion:a,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},485:(e,t,n)=>{"use strict";var r=n(875),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:l,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},363:(e,t,n)=>{"use strict";const r=wp.element;var i=n(995),o=n.n(i);function s(e){let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(i!==t){const e=t;t=r?i:Object.assign({},t,i),n.forEach((n=>n(t,e)))}},i=()=>t,o={setState:r,getState:i,subscribe:(e,r,o)=>r||o?((e,r=i,o=Object.is)=>{let s=r(t);function a(){const n=r(t);if(!o(s,n)){const t=s;e(s=n,t)}}return n.add(a),()=>n.delete(a)})(e,r,o):(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o}const a="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?i.useEffect:i.useLayoutEffect;function l(e){const t="function"==typeof e?s(e):e,n=(e=t.getState,n=Object.is)=>{const[,r]=(0,i.useReducer)((e=>e+1),0),o=t.getState(),s=(0,i.useRef)(o),l=(0,i.useRef)(e),c=(0,i.useRef)(n),u=(0,i.useRef)(!1),d=(0,i.useRef)();let f;void 0===d.current&&(d.current=e(o));let p=!1;(s.current!==o||l.current!==e||c.current!==n||u.current)&&(f=e(o),p=!n(d.current,f)),a((()=>{p&&(d.current=f),s.current=o,l.current=e,c.current=n,u.current=!1}));const h=(0,i.useRef)(o);return a((()=>{const e=()=>{try{const e=t.getState(),n=l.current(e);c.current(d.current,n)||(s.current=e,d.current=n,r())}catch(e){u.current=!0,r()}},n=t.subscribe(e);return t.getState()!==h.current&&e(),n}),[]),p?f:d.current};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[n,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},n}var c=Object.defineProperty,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&p(e,n,t[n]);if(u)for(var n of u(t))f.call(t,n)&&p(e,n,t[n]);return e};const m=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>m(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>m(t)(e)}}},x=(e,t)=>(n,r,i)=>{const{name:o,getStorage:s=(()=>localStorage),serialize:a=JSON.stringify,deserialize:l=JSON.parse,blacklist:c,whitelist:u,onRehydrateStorage:d,version:f=0,migrate:p,merge:x=((e,t)=>h(h({},t),e))}=t||{};let y;try{y=s()}catch(e){}if(!y)return e(((...e)=>{console.warn(`Persist middleware: unable to update ${o}, the given storage is currently unavailable.`),n(...e)}),r,i);const v=m(a),g=()=>{const e=h({},r());let t;u&&Object.keys(e).forEach((t=>{!u.includes(t)&&delete e[t]})),c&&c.forEach((t=>delete e[t]));const n=v({state:e,version:f}).then((e=>y.setItem(o,e))).catch((e=>{t=e}));if(t)throw t;return n},b=i.setState;i.setState=(e,t)=>{b(e,t),g()};const w=e(((...e)=>{n(...e),g()}),r,i);let j;const k=(null==d?void 0:d(r()))||void 0;return m(y.getItem.bind(y))(o).then((e=>{if(e)return l(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===f)return e.state;if(p)return p(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>(j=x(e,w),n(j,!0),g()))).then((()=>{null==k||k(j,void 0)})).catch((e=>{null==k||k(void 0,e)})),j||w};var y="pattern",v=12;const g=wp.blocks;var b=n(135),w=n.n(b),j=n(206),k=n.n(j)().create({baseURL:window.extendifySdkData.root,headers:{"X-WP-Nonce":window.extendifySdkData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify":!0}});function S(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}k.interceptors.response.use((function(e){return function(e){return Object.prototype.hasOwnProperty.call(e,"soft_error")&&window.dispatchEvent(new CustomEvent("extendify-sdk::softerror-encountered",{detail:e.soft_error,bubbles:!0})),e}(S(e))}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(S(e.response))}(e)})),k.interceptors.request.use((function(e){return function(e){return e.headers["X-Extendify-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e}(function(e){return e.data&&(e.data.remaining_imports=B.getState().remainingImports(),e.data.entry_point=B.getState().entryPoint,e.data.total_imports=B.getState().imports),e}(e))}),(function(e){return e}));var O=function(){return k.get("user")},_=function(e,t){var n=new FormData;return n.append("email",e),n.append("key",t),k.post("login",n,{headers:{"Content-Type":"multipart/form-data"}})},C=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),k.post("user",t,{headers:{"Content-Type":"multipart/form-data"}})},E=function(e){var t=new FormData;return t.append("email",e),k.post("register-mailing-list",t,{headers:{"Content-Type":"multipart/form-data"}})};function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||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.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function L(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){I(o,r,i,s,a,"next",e)}function a(e){I(o,r,i,s,a,"throw",e)}s(void 0)}))}}var R,F,D={getItem:(F=L(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return F.apply(this,arguments)}),setItem:(R=L(w().mark((function e(t,n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e,t){return R.apply(this,arguments)})},B=l(x((function(e,t){return{email:"",apiKey:"",imports:0,uuid:"",sdkPartner:"",registration:{email:""},noticesDismissedAt:{welcome:""},allowedImports:0,entryPoint:"not-set",enabled:null===window.extendifySdkData.sitesettings||(null===(n=window.extendifySdkData)||void 0===n||null===(r=n.sitesettings)||void 0===r||null===(i=r.state)||void 0===i?void 0:i.enabled),canInstallPlugins:!1,canActivatePlugins:!1,preferredOptions:{taxonomies:{},type:"",search:""},preferredOptionsHistory:{siteType:[]},incrementImports:function(){return e({imports:t().imports+1})},canImport:function(){return!!t().apiKey||Number(t().imports)<Number(t().allowedImports)},remainingImports:function(){if(t().apiKey)return"unlimited";var e=Number(t().allowedImports)-Number(t().imports);return e>0?e:0},updateSiteType:function(n){if(t().updatePreferredOption("tax_categories",n),n&&"Unknown"!==n){var r=new Set([n].concat(T(t().preferredOptionsHistory.siteType)));e({preferredOptionsHistory:Object.assign({},t().preferredOptionsHistory,{siteType:T(r).slice(0,3)})})}},updatePreferredOption:function(n,r){var i,o,s;Object.prototype.hasOwnProperty.call(t().preferredOptions,n)||(r=Object.assign({},null!==(o=null===(s=t().preferredOptions)||void 0===s?void 0:s.taxonomies)&&void 0!==o?o:{},P({},n,r)),n="taxonomies");var a="type"==n&&r!==(null===(i=t().preferredOptions)||void 0===i?void 0:i.type);e({preferredOptions:A({},Object.assign({},t().preferredOptions,P({},n,r),a?{taxonomies:{}}:{}))})}};var n,r,i}),{name:"extendify-user",getStorage:function(){return D}}));function U(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e)||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.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var V=l(x((function(e,t){return{taxonomies:{},openedTaxonomies:[],setTaxonomies:function(t){return e({taxonomies:t})},toggleOpenedTaxonomy:function(n,r){var i=t().openedTaxonomies;e({openedTaxonomies:r?[].concat(U(i),[n]):U(i.filter((function(e){return e!=n})))})}}}),{name:"extendify-taxonomies"}));function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e){return function(e){if(Array.isArray(e))return J(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e)||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.")}()}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Z,G,K=l((function(e,t){return{templates:[],skipNextFetch:!1,fetchToken:null,activeTemplate:{},activeTemplateBlocks:{},taxonomyDefaultState:{},nextPage:"",searchParams:{taxonomies:{},type:y},initTemplateData:function(){e({activeTemplate:{}}),t().setupDefaultTaxonomies(),t().updateType(Y.getState().currentType)},removeTemplates:function(){return e({nextPage:"",templates:[]})},appendTemplates:function(n){return e({templates:W(new Map([].concat(W(t().templates),W(n)).map((function(e){return[e.id,e]}))).values())})},setupDefaultTaxonomies:function(){var n,r,i,o,s=V.getState().taxonomies,a=Object.entries(s).reduce((function(e,t){return e[t[0]]=function(e){var t,n,r;return"tax_categories"===e?"Unknown":null!==(t=null===(n=V.getState())||void 0===n||null===(r=n.taxonomies[e][0])||void 0===r?void 0:r.term)&&void 0!==t?t:void 0}(t[0]),e}),{}),l={};a=Object.assign({},a,null!==(n=null===(r=B.getState().preferredOptions)||void 0===r?void 0:r.taxonomies)&&void 0!==n?n:{},null!==(i=null===(o=Y.getState())||void 0===o?void 0:o.currentTaxonomies)&&void 0!==i?i:{}),l.taxonomies=Object.assign({},a),e({taxonomyDefaultState:a,searchParams:H({},Object.assign(t().searchParams,l))})},setActive:function(t){var n;e({activeTemplate:t}),Object.keys(t).length>0&&Y.setState({currentPage:"single"}),null!=t&&null!==(n=t.fields)&&void 0!==n&&n.code&&e({activeTemplateBlocks:(0,g.rawHandler)({HTML:t.fields.code})})},updateTaxonomies:function(e){var n,r,i={};(i.taxonomies=Object.assign({},t().searchParams.taxonomies,e),null!=i&&null!==(n=i.taxonomies)&&void 0!==n&&n.tax_categories)&&B.getState().updatePreferredOption("tax_categories",null==i||null===(r=i.taxonomies)||void 0===r?void 0:r.tax_categories);Y.getState().updateCurrentTaxonomies(null==i?void 0:i.taxonomies),t().updateSearchParams(i)},updateType:function(e){Y.getState().updateCurrentType(e),t().updateSearchParams({type:e})},updateSearchParams:function(n){null!=n&&n.taxonomies&&!Object.keys(n.taxonomies).length&&(n.taxonomies=t().taxonomyDefaultState);var r=Object.assign({},t().searchParams,n);JSON.stringify(r)!==JSON.stringify(t().searchParams)&&e({templates:[],nextPage:"",searchParams:r})}}})),Y=l(x((function(e){return{open:!1,metaData:{},currentPage:"main",currentTaxonomies:{},currentType:y,settingsModal:!1,updateCurrentTaxonomies:function(t){return e({currentTaxonomies:Object.assign({},t)})},updateCurrentType:function(t){return e({currentType:t})},setOpen:function(t){e({open:t}),t&&K.getState().removeTemplates()}}}),{name:"extendify-global-state"}));function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}function Q(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function ne(e,t){if(e in t){for(var n=t[e],r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return"function"==typeof n?n.apply(void 0,i):n}var s=new Error('Tried to handle "'+e+'" but there is no handler defined. Only defined handlers are: '+Object.keys(t).map((function(e){return'"'+e+'"'})).join(", ")+".");throw Error.captureStackTrace&&Error.captureStackTrace(s,ne),s}function re(e){var t=e.props,n=e.slot,r=e.defaultTag,i=e.features,o=e.visible,s=void 0===o||o,a=e.name;if(s)return ie(t,n,r,a);var l=null!=i?i:Z.None;if(l&Z.Static){var c=t.static,u=void 0!==c&&c,d=Q(t,["static"]);if(u)return ie(d,n,r,a)}if(l&Z.RenderStrategy){var f,p=t.unmount,h=void 0===p||p,m=Q(t,["unmount"]);return ne(h?G.Unmount:G.Hidden,((f={})[G.Unmount]=function(){return null},f[G.Hidden]=function(){return ie(X({},m,{hidden:!0,style:{display:"none"}}),n,r,a)},f))}return ie(t,n,r,a)}function ie(e,t,n,r){var o;void 0===t&&(t={});var s=se(e,["unmount","static"]),a=s.as,l=void 0===a?n:a,c=s.children,u=s.refName,d=void 0===u?"ref":u,f=Q(s,["as","children","refName"]),p=void 0!==e.ref?((o={})[d]=e.ref,o):{},h="function"==typeof c?c(t):c;if(f.className&&"function"==typeof f.className&&(f.className=f.className(t)),l===i.Fragment&&Object.keys(f).length>0){if(!(0,i.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw new Error(['Passing props on "Fragment"!',"","The current component <"+r+' /> is rendering a "Fragment".',"However we need to passthrough the following props:",Object.keys(f).map((function(e){return" - "+e})).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((function(e){return" - "+e})).join("\n")].join("\n"));return(0,i.cloneElement)(h,Object.assign({},function(e,t,n){for(var r,i=Object.assign({},e),o=function(){var n,o=r.value;void 0!==e[o]&&void 0!==t[o]&&Object.assign(i,((n={})[o]=function(n){n.defaultPrevented||e[o](n),n.defaultPrevented||t[o](n)},n))},s=te(n);!(r=s()).done;)o();return i}(function(e){var t=Object.assign({},e);for(var n in t)void 0===t[n]&&delete t[n];return t}(se(f,["ref"])),h.props,["onClick"]),p))}return(0,i.createElement)(l,Object.assign({},se(f,["ref"]),l!==i.Fragment&&p),h)}function oe(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function se(e,t){void 0===t&&(t=[]);for(var n,r=Object.assign({},e),i=te(t);!(n=i()).done;){var o=n.value;o in r&&delete r[o]}return r}!function(e){e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static"}(Z||(Z={})),function(e){e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden"}(G||(G={}));var ae="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,le={serverHandoffComplete:!1};function ce(){var e=(0,i.useState)(le.serverHandoffComplete),t=e[0],n=e[1];return(0,i.useEffect)((function(){!0!==t&&n(!0)}),[t]),(0,i.useEffect)((function(){!1===le.serverHandoffComplete&&(le.serverHandoffComplete=!0)}),[]),t}var ue=0;function de(){return++ue}function fe(){var e=ce(),t=(0,i.useState)(e?de:null),n=t[0],r=t[1];return ae((function(){null===n&&r(de())}),[n]),null!=n?""+n:void 0}function pe(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var he,me,xe=(0,i.createContext)(null);function ye(){return(0,i.useContext)(xe)}function ve(e){var t=e.value,n=e.children;return o().createElement(xe.Provider,{value:t},n)}function ge(){var e=(0,i.useRef)(!0);return(0,i.useEffect)((function(){e.current=!1}),[]),e.current}function be(){var e=[],t={requestAnimationFrame:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=requestAnimationFrame.apply(void 0,arguments);t.add((function(){return cancelAnimationFrame(e)}))})),nextFrame:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.requestAnimationFrame((function(){t.requestAnimationFrame.apply(t,n)}))},setTimeout:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=setTimeout.apply(void 0,arguments);t.add((function(){return clearTimeout(e)}))})),add:function(t){e.push(t)},dispose:function(){for(var t,n=te(e.splice(0));!(t=n()).done;){var r=t.value;r()}}};return t}function we(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e&&r.length>0&&(t=e.classList).add.apply(t,r)}function je(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e&&r.length>0&&(t=e.classList).remove.apply(t,r)}function ke(e,t,n,r,i,o){var s=be(),a=void 0!==o?function(e){var t={called:!1};return function(){if(!t.called)return t.called=!0,e.apply(void 0,arguments)}}(o):function(){};return je.apply(void 0,[e].concat(i)),we.apply(void 0,[e].concat(t,n)),s.nextFrame((function(){je.apply(void 0,[e].concat(n)),we.apply(void 0,[e].concat(r)),s.add(function(e,t){var n=be();if(!e)return n.dispose;var r=getComputedStyle(e),i=[r.transitionDuration,r.transitionDelay].map((function(e){var t=e.split(",").filter(Boolean).map((function(e){return e.includes("ms")?parseFloat(e):1e3*parseFloat(e)})).sort((function(e,t){return t-e}))[0];return void 0===t?0:t})),o=i[0],s=i[1];return 0!==o?n.setTimeout((function(){t(me.Finished)}),o+s):t(me.Finished),n.add((function(){return t(me.Cancelled)})),n.dispose}(e,(function(n){return je.apply(void 0,[e].concat(r,t)),we.apply(void 0,[e].concat(i)),a(n)})))})),s.add((function(){return je.apply(void 0,[e].concat(t,n,r,i))})),s.add((function(){return a(me.Cancelled)})),s.dispose}function Se(e){return void 0===e&&(e=""),(0,i.useMemo)((function(){return e.split(" ").filter((function(e){return e.trim().length>1}))}),[e])}xe.displayName="OpenClosedContext",function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(he||(he={})),function(e){e.Finished="finished",e.Cancelled="cancelled"}(me||(me={}));var Oe,_e=(0,i.createContext)(null);_e.displayName="TransitionContext",function(e){e.Visible="visible",e.Hidden="hidden"}(Oe||(Oe={}));var Ce=(0,i.createContext)(null);function Ee(e){return"children"in e?Ee(e.children):e.current.filter((function(e){return e.state===Oe.Visible})).length>0}function Ne(e){var t=(0,i.useRef)(e),n=(0,i.useRef)([]),r=pe();(0,i.useEffect)((function(){t.current=e}),[e]);var o=(0,i.useCallback)((function(e,i){var o;void 0===i&&(i=G.Hidden);var s=n.current.findIndex((function(t){return t.id===e}));-1!==s&&(ne(i,((o={})[G.Unmount]=function(){n.current.splice(s,1)},o[G.Hidden]=function(){n.current[s].state=Oe.Hidden},o)),!Ee(n)&&r.current&&(null==t.current||t.current()))}),[t,r,n]),s=(0,i.useCallback)((function(e){var t=n.current.find((function(t){return t.id===e}));return t?t.state!==Oe.Visible&&(t.state=Oe.Visible):n.current.push({id:e,state:Oe.Visible}),function(){return o(e,G.Unmount)}}),[n,o]);return(0,i.useMemo)((function(){return{children:n,register:s,unregister:o}}),[s,o,n])}function Ae(){}Ce.displayName="NestingContext";var Pe=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Te(e){for(var t,n={},r=te(Pe);!(t=r()).done;){var i,o=t.value;n[o]=null!=(i=e[o])?i:Ae}return n}var Me,Ie=Z.RenderStrategy;function Le(e){var t,n=e.beforeEnter,r=e.afterEnter,s=e.beforeLeave,a=e.afterLeave,l=e.enter,c=e.enterFrom,u=e.enterTo,d=e.entered,f=e.leave,p=e.leaveFrom,h=e.leaveTo,m=Q(e,["beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),x=(0,i.useRef)(null),y=(0,i.useState)(Oe.Visible),v=y[0],g=y[1],b=m.unmount?G.Unmount:G.Hidden,w=function(){var e=(0,i.useContext)(_e);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),j=w.show,k=w.appear,S=function(){var e=(0,i.useContext)(Ce);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),O=S.register,_=S.unregister,C=ge(),E=fe(),N=(0,i.useRef)(!1),A=Ne((function(){N.current||(g(Oe.Hidden),_(E),D.current.afterLeave())}));ae((function(){if(E)return O(E)}),[O,E]),ae((function(){var e;b===G.Hidden&&E&&(j&&v!==Oe.Visible?g(Oe.Visible):ne(v,((e={})[Oe.Hidden]=function(){return _(E)},e[Oe.Visible]=function(){return O(E)},e)))}),[v,E,O,_,j,b]);var P=Se(l),T=Se(c),M=Se(u),I=Se(d),L=Se(f),R=Se(p),F=Se(h),D=function(e){var t=(0,i.useRef)(Te(e));return(0,i.useEffect)((function(){t.current=Te(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:s,afterLeave:a}),B=ce();(0,i.useEffect)((function(){if(B&&v===Oe.Visible&&null===x.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[x,v,B]);var U=C&&!k;ae((function(){var e=x.current;if(e&&!U)return N.current=!0,j&&D.current.beforeEnter(),j||D.current.beforeLeave(),j?ke(e,P,T,M,I,(function(e){N.current=!1,e===me.Finished&&D.current.afterEnter()})):ke(e,L,R,F,I,(function(e){N.current=!1,e===me.Finished&&(Ee(A)||(g(Oe.Hidden),_(E),D.current.afterLeave()))}))}),[D,E,N,_,A,x,U,j,P,T,M,L,R,F]);var q={ref:x},V=m;return o().createElement(Ce.Provider,{value:A},o().createElement(ve,{value:ne(v,(t={},t[Oe.Visible]=he.Open,t[Oe.Hidden]=he.Closed,t))},re({props:X({},V,q),defaultTag:"div",features:Ie,visible:v===Oe.Visible,name:"Transition.Child"})))}function Re(e){var t,n=e.show,r=e.appear,s=void 0!==r&&r,a=e.unmount,l=Q(e,["show","appear","unmount"]),c=ye();void 0===n&&null!==c&&(n=ne(c,((t={})[he.Open]=!0,t[he.Closed]=!1,t)));if(![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var u=(0,i.useState)(n?Oe.Visible:Oe.Hidden),d=u[0],f=u[1],p=Ne((function(){f(Oe.Hidden)})),h=ge(),m=(0,i.useMemo)((function(){return{show:n,appear:s||!h}}),[n,s,h]);(0,i.useEffect)((function(){n?f(Oe.Visible):Ee(p)||f(Oe.Hidden)}),[n,p]);var x={unmount:a};return o().createElement(Ce.Provider,{value:p},o().createElement(_e.Provider,{value:m},re({props:X({},x,{as:i.Fragment,children:o().createElement(Le,Object.assign({},x,l))}),defaultTag:i.Fragment,features:Ie,visible:d===Oe.Visible,name:"Transition"})))}function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(0,i.useRef)(t);return(0,i.useEffect)((function(){r.current=t}),[t]),(0,i.useCallback)((function(e){for(var t,n=te(r.current);!(t=n()).done;){var i=t.value;null!=i&&("function"==typeof i?i(e):i.current=e)}}),[r])}function De(e){for(var t,n,r=e.parentElement,i=null;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(i=r),r=r.parentElement;var o=null!=(t=""===(null==(n=r)?void 0:n.getAttribute("disabled")))&&t;return(!o||!function(e){if(!e)return!1;var t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(i))&&o}function Be(e,t,n){var r=(0,i.useRef)(t);r.current=t,(0,i.useEffect)((function(){function t(e){r.current.call(window,e)}return window.addEventListener(e,t,n),function(){return window.removeEventListener(e,t,n)}}),[e,n])}Re.Child=function(e){var t=null!==(0,i.useContext)(_e),n=null!==ye();return!t&&n?o().createElement(Re,Object.assign({},e)):o().createElement(Le,Object.assign({},e))},Re.Root=Re,function(e){e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab"}(Me||(Me={}));var Ue,qe,Ve,ze,He,$e=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((function(e){return e+":not([tabindex='-1'])"})).join(",");function We(e){null==e||e.focus({preventScroll:!0})}function Je(e,t){var n=Array.isArray(e)?e:function(e){return void 0===e&&(e=document.body),null==e?[]:Array.from(e.querySelectorAll($e))}(e),r=document.activeElement,i=function(){if(t&(Ue.First|Ue.Next))return Ve.Next;if(t&(Ue.Previous|Ue.Last))return Ve.Previous;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),o=function(){if(t&Ue.First)return 0;if(t&Ue.Previous)return Math.max(0,n.indexOf(r))-1;if(t&Ue.Next)return Math.max(0,n.indexOf(r))+1;if(t&Ue.Last)return n.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")}(),s=t&Ue.NoScroll?{preventScroll:!0}:{},a=0,l=n.length,c=void 0;do{var u;if(a>=l||a+l<=0)return qe.Error;var d=o+a;if(t&Ue.WrapAround)d=(d+l)%l;else{if(d<0)return qe.Underflow;if(d>=l)return qe.Overflow}null==(u=c=n[d])||u.focus(s),a+=i}while(c!==document.activeElement);return c.hasAttribute("tabindex")||c.setAttribute("tabindex","0"),qe.Success}function Ze(e,t,n){void 0===t&&(t=He.All);var r=void 0===n?{}:n,o=r.initialFocus,s=r.containers,a=(0,i.useRef)("undefined"!=typeof window?document.activeElement:null),l=(0,i.useRef)(null),c=pe(),u=Boolean(t&He.RestoreFocus),d=Boolean(t&He.InitialFocus);(0,i.useEffect)((function(){u&&(a.current=document.activeElement)}),[u]),(0,i.useEffect)((function(){if(u)return function(){We(a.current),a.current=null}}),[u]),(0,i.useEffect)((function(){if(d&&e.current){var t=document.activeElement;if(null==o?void 0:o.current){if((null==o?void 0:o.current)===t)return void(l.current=t)}else if(e.current.contains(t))return void(l.current=t);(null==o?void 0:o.current)?We(o.current):Je(e.current,Ue.First)===qe.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=document.activeElement}}),[e,o,d]),Be("keydown",(function(n){t&He.TabLock&&e.current&&n.key===Me.Tab&&(n.preventDefault(),Je(e.current,(n.shiftKey?Ue.Previous:Ue.Next)|Ue.WrapAround)===qe.Success&&(l.current=document.activeElement))})),Be("focus",(function(n){if(t&He.FocusLock){var r=new Set(null==s?void 0:s.current);if(r.add(e),r.size){var i=l.current;if(i&&c.current){var o=n.target;o&&o instanceof HTMLElement?!function(e,t){for(var n,r=te(e);!(n=r()).done;){var i;if(null==(i=n.value.current)?void 0:i.contains(t))return!0}return!1}(r,o)?(n.preventDefault(),n.stopPropagation(),We(i)):(l.current=o,We(o)):We(l.current)}}}}),!0)}!function(e){e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll"}(Ue||(Ue={})),function(e){e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow"}(qe||(qe={})),function(e){e[e.Previous=-1]="Previous",e[e.Next=1]="Next"}(Ve||(Ve={})),function(e){e[e.Strict=0]="Strict",e[e.Loose=1]="Loose"}(ze||(ze={})),function(e){e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All"}(He||(He={}));var Ge=new Set,Ke=new Map;function Ye(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function Xe(e){var t=Ke.get(e);t&&(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var Qe=(0,i.createContext)(!1);function et(e){return o().createElement(Qe.Provider,{value:e.force},e.children)}const tt=ReactDOM;function nt(){var e=(0,i.useContext)(Qe),t=(0,i.useContext)(st),n=(0,i.useState)((function(){if(!e&&null!==t)return null;if("undefined"==typeof window)return null;var n=document.getElementById("headlessui-portal-root");if(n)return n;var r=document.createElement("div");return r.setAttribute("id","headlessui-portal-root"),document.body.appendChild(r)})),r=n[0],o=n[1];return(0,i.useEffect)((function(){e||null!==t&&o(t.current)}),[t,o,e]),r}var rt=i.Fragment;function it(e){var t=e,n=nt(),r=(0,i.useState)((function(){return"undefined"==typeof window?null:document.createElement("div")}))[0],o=ce();return ae((function(){if(n&&r)return n.appendChild(r),function(){var e;n&&(r&&(n.removeChild(r),n.childNodes.length<=0&&(null==(e=n.parentElement)||e.removeChild(n))))}}),[n,r]),o&&n&&r?(0,tt.createPortal)(re({props:t,defaultTag:rt,name:"Portal"}),r):null}var ot=i.Fragment,st=(0,i.createContext)(null);it.Group=function(e){var t=e.target,n=Q(e,["target"]);return o().createElement(st.Provider,{value:t},re({props:n,defaultTag:ot,name:"Popover.Group"}))};var at=(0,i.createContext)(null);function lt(){var e=(0,i.useContext)(at);if(null===e){var t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,lt),t}return e}var ct,ut,dt,ft,pt=(0,i.createContext)((function(){}));function ht(e){var t=e.children,n=e.onUpdate,r=e.type,s=e.element,a=(0,i.useContext)(pt),l=(0,i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n.apply(void 0,t),a.apply(void 0,t)}),[a,n]);return ae((function(){return l(ct.Add,r,s),function(){return l(ct.Remove,r,s)}}),[l,r,s]),o().createElement(pt.Provider,{value:l},t)}pt.displayName="StackContext",function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove"}(ct||(ct={})),function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(dt||(dt={})),function(e){e[e.SetTitleId=0]="SetTitleId"}(ft||(ft={}));var mt=((ut={})[ft.SetTitleId]=function(e,t){return e.titleId===t.id?e:X({},e,{titleId:t.id})},ut),xt=(0,i.createContext)(null);function yt(e){var t=(0,i.useContext)(xt);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+jt.displayName+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,yt),n}return t}function vt(e,t){return ne(t.type,mt,e,t)}xt.displayName="DialogContext";var gt=Z.RenderStrategy|Z.Static,bt=oe((function(e,t){var n,r=e.open,s=e.onClose,a=e.initialFocus,l=Q(e,["open","onClose","initialFocus"]),c=(0,i.useState)(0),u=c[0],d=c[1],f=ye();void 0===r&&null!==f&&(r=ne(f,((n={})[he.Open]=!0,n[he.Closed]=!1,n)));var p=(0,i.useRef)(new Set),h=(0,i.useRef)(null),m=Fe(h,t),x=e.hasOwnProperty("open")||null!==f,y=e.hasOwnProperty("onClose");if(!x&&!y)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!x)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!y)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof r)throw new Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: "+r);if("function"!=typeof s)throw new Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: "+s);var v=r?dt.Open:dt.Closed,g=null!==f?f===he.Open:v===dt.Open,b=(0,i.useReducer)(vt,{titleId:null,descriptionId:null}),w=b[0],j=b[1],k=(0,i.useCallback)((function(){return s(!1)}),[s]),S=(0,i.useCallback)((function(e){return j({type:ft.SetTitleId,id:e})}),[j]),O=ce()&&v===dt.Open,_=u>1,C=null!==(0,i.useContext)(xt);Ze(h,O?ne(_?"parent":"leaf",{parent:He.RestoreFocus,leaf:He.All}):He.None,{initialFocus:a,containers:p}),function(e,t){void 0===t&&(t=!0),ae((function(){if(t&&e.current){var n=e.current;Ge.add(n);for(var r,i=te(Ke.keys());!(r=i()).done;){var o=r.value;o.contains(n)&&(Xe(o),Ke.delete(o))}return document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement){for(var t,n=te(Ge);!(t=n()).done;){var r=t.value;if(e.contains(r))return}1===Ge.size&&(Ke.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Ye(e))}})),function(){if(Ge.delete(n),Ge.size>0)document.querySelectorAll("body > *").forEach((function(e){if(e instanceof HTMLElement&&!Ke.has(e)){for(var t,n=te(Ge);!(t=n()).done;){var r=t.value;if(e.contains(r))return}Ke.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Ye(e)}}));else for(var e,t=te(Ke.keys());!(e=t()).done;){var r=e.value;Xe(r),Ke.delete(r)}}}}),[t])}(h,!!_&&O),Be("mousedown",(function(e){var t,n=e.target;v===dt.Open&&(_||(null==(t=h.current)?void 0:t.contains(n))||k())})),Be("keydown",(function(e){e.key===Me.Escape&&v===dt.Open&&(_||(e.preventDefault(),e.stopPropagation(),k()))})),(0,i.useEffect)((function(){if(v===dt.Open&&!C){var e=document.documentElement.style.overflow,t=document.documentElement.style.paddingRight,n=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=n+"px",function(){document.documentElement.style.overflow=e,document.documentElement.style.paddingRight=t}}}),[v,C]),(0,i.useEffect)((function(){if(v===dt.Open&&h.current){var e=new IntersectionObserver((function(e){for(var t,n=te(e);!(t=n()).done;){var r=t.value;0===r.boundingClientRect.x&&0===r.boundingClientRect.y&&0===r.boundingClientRect.width&&0===r.boundingClientRect.height&&k()}}));return e.observe(h.current),function(){return e.disconnect()}}}),[v,h,k]);var E=function(){var e=(0,i.useState)([]),t=e[0],n=e[1];return[t.length>0?t.join(" "):void 0,(0,i.useMemo)((function(){return function(e){var t=(0,i.useCallback)((function(e){return n((function(t){return[].concat(t,[e])})),function(){return n((function(t){var n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))}}),[]),r=(0,i.useMemo)((function(){return{register:t,slot:e.slot,name:e.name,props:e.props}}),[t,e.slot,e.name,e.props]);return o().createElement(at.Provider,{value:r},e.children)}}),[n])]}(),N=E[0],A=E[1],P="headlessui-dialog-"+fe(),T=(0,i.useMemo)((function(){return[{dialogState:v,close:k,setTitleId:S},w]}),[v,w,k,S]),M=(0,i.useMemo)((function(){return{open:v===dt.Open}}),[v]),I={ref:m,id:P,role:"dialog","aria-modal":v===dt.Open||void 0,"aria-labelledby":w.titleId,"aria-describedby":N,onClick:function(e){e.stopPropagation()}},L=l;return o().createElement(ht,{type:"Dialog",element:h,onUpdate:(0,i.useCallback)((function(e,t,n){var r;"Dialog"===t&&ne(e,((r={})[ct.Add]=function(){p.current.add(n),d((function(e){return e+1}))},r[ct.Remove]=function(){p.current.add(n),d((function(e){return e-1}))},r))}),[])},o().createElement(et,{force:!0},o().createElement(it,null,o().createElement(xt.Provider,{value:T},o().createElement(it.Group,{target:h},o().createElement(et,{force:!1},o().createElement(A,{slot:M,name:"Dialog.Description"},re({props:X({},L,I),slot:M,defaultTag:"div",features:gt,visible:g,name:"Dialog"}))))))))})),wt=oe((function e(t,n){var r=yt([jt.displayName,e.name].join("."))[0],o=r.dialogState,s=r.close,a=Fe(n),l="headlessui-dialog-overlay-"+fe(),c=(0,i.useCallback)((function(e){if(De(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}),[s]),u=(0,i.useMemo)((function(){return{open:o===dt.Open}}),[o]);return re({props:X({},t,{ref:a,id:l,"aria-hidden":!0,onClick:c}),slot:u,defaultTag:"div",name:"Dialog.Overlay"})}));var jt=Object.assign(bt,{Overlay:wt,Title:function e(t){var n=yt([jt.displayName,e.name].join("."))[0],r=n.dialogState,o=n.setTitleId,s="headlessui-dialog-title-"+fe();(0,i.useEffect)((function(){return o(s),function(){return o(null)}}),[s,o]);var a=(0,i.useMemo)((function(){return{open:r===dt.Open}}),[r]);return re({props:X({},t,{id:s}),slot:a,defaultTag:"h2",name:"Dialog.Title"})},Description:function(e){var t=lt(),n="headlessui-description-"+fe();ae((function(){return t.register(n)}),[n,t.register]);var r=e,i=X({},t.props,{id:n});return re({props:X({},r,i),slot:t.slot||{},defaultTag:"p",name:t.name||"Description"})}});const kt=wp.components;var St=n(42),Ot=n.n(St);const _t=lodash;var Ct=function(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"broken-event",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"open";B.setState({entryPoint:e}),window.dispatchEvent(new CustomEvent("extendify-sdk::".concat(t,"-library"),{detail:e,bubbles:!0}))}(e,"open")};function Et(e){switch(e){case"editorplus":return"Editor Plus";case"ml-slider":return"MetaSlider"}return e}function Nt(e){switch(e){case"tax_categories":return"Site Type";case"tax_pattern_types":return"Content"}return e.replace("tax_","").replace(/_/g," ").replace(/\b\w/g,(function(e){return e.toUpperCase()}))}var At=n(246);function Pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mt(e){var t=Pt(e.taxonomy,2),n=t[0],r=t[1],i=K((function(e){return e.updateTaxonomies})),o=K((function(e){return e.searchParams})),s=V((function(e){return e.openedTaxonomies})),a=V((function(e){return e.toggleOpenedTaxonomy})),l=function(e){return(null==o?void 0:o.taxonomies[n])===e.term},c=Object.values(r).filter((function(e){var t;return null==e||null===(t=e.type)||void 0===t?void 0:t.includes(o.type)})).length;return Object.keys(r).length&&c?(0,At.jsx)(kt.PanelBody,{title:Nt(n),initialOpen:s.includes(n)||"tax_pattern_types"===n||"tax_page_types"===n,onToggle:function(e){return a(n,e)},children:(0,At.jsx)(kt.PanelRow,{children:(0,At.jsx)("div",{className:"overflow-hidden w-full relative",children:(0,At.jsx)("ul",{className:"p-1 m-0 w-full",children:Object.values(r).filter((function(e){var t;return null==e||null===(t=e.type)||void 0===t?void 0:t.includes(o.type)})).map((function(e){return(0,At.jsx)("li",{className:"m-0 w-full",children:(0,At.jsx)("button",{type:"button",className:"text-left cursor-pointer w-full flex justify-between items-center py-1.5 m-0 leading-none bg-transparent hover:text-wp-theme-500 transition duration-200 button-focus",onClick:function(){return i((t={},r=n,o=e.term,r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t));var t,r,o},children:(0,At.jsx)("span",{className:Ot()({"text-wp-theme-500":l(e)}),children:e.term})})},e.term)}))})})})}):null}const It=wp.i18n;function Lt(e){return Array.isArray?Array.isArray(e):"[object Array]"===Vt(e)}function Rt(e){return"string"==typeof e}function Ft(e){return"number"==typeof e}function Dt(e){return!0===e||!1===e||function(e){return Bt(e)&&null!==e}(e)&&"[object Boolean]"==Vt(e)}function Bt(e){return"object"==typeof e}function Ut(e){return null!=e}function qt(e){return!e.trim().length}function Vt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const zt=Object.prototype.hasOwnProperty;class Ht{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=$t(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $t(e){let t=null,n=null,r=null,i=1;if(Rt(e)||Lt(e))r=e,t=Wt(e),n=Jt(e);else{if(!zt.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const o=e.name;if(r=o,zt.call(e,"weight")&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(o));t=Wt(o),n=Jt(o)}return{path:t,id:n,weight:i,src:r}}function Wt(e){return Lt(e)?e:e.split(".")}function Jt(e){return Lt(e)?e.join("."):e}var Zt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(e,t){let n=[],r=!1;const i=(e,t,o)=>{if(Ut(e))if(t[o]){const s=e[t[o]];if(!Ut(s))return;if(o===t.length-1&&(Rt(s)||Ft(s)||Dt(s)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(s));else if(Lt(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,o+1)}else t.length&&i(s,t,o+1)}else n.push(e)};return i(e,Rt(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1}};const Gt=/[^ ]+/g;class Kt{constructor({getFn:e=Zt.getFn}={}){this.norm=function(e=3){const t=new Map,n=Math.pow(10,e);return{get(e){const r=e.match(Gt).length;if(t.has(r))return t.get(r);const i=1/Math.sqrt(r),o=parseFloat(Math.round(i*n)/n);return t.set(r,o),o},clear(){t.clear()}}}(3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,Rt(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();Rt(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Ut(e)||qt(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach(((t,r)=>{let i=this.getFn(e,t.path);if(Ut(i))if(Lt(i)){let e=[];const t=[{nestedArrIndex:-1,value:i}];for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop();if(Ut(r))if(Rt(r)&&!qt(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Lt(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e}else if(!qt(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Yt(e,t,{getFn:n=Zt.getFn}={}){const r=new Kt({getFn:n});return r.setKeys(e.map($t)),r.setSources(t),r.create(),r}function Xt(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=Zt.distance,ignoreLocation:o=Zt.ignoreLocation}={}){const s=t/e.length;if(o)return s;const a=Math.abs(r-n);return i?s+a/i:a?1:s}const Qt=32;function en(e,t,n,{location:r=Zt.location,distance:i=Zt.distance,threshold:o=Zt.threshold,findAllMatches:s=Zt.findAllMatches,minMatchCharLength:a=Zt.minMatchCharLength,includeMatches:l=Zt.includeMatches,ignoreLocation:c=Zt.ignoreLocation}={}){if(t.length>Qt)throw new Error(`Pattern length exceeds max of ${Qt}.`);const u=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let p=o,h=f;const m=a>1||l,x=m?Array(d):[];let y;for(;(y=e.indexOf(t,h))>-1;){let e=Xt(t,{currentLocation:y,expectedLocation:f,distance:i,ignoreLocation:c});if(p=Math.min(e,p),h=y+u,m){let e=0;for(;e<u;)x[y+e]=1,e+=1}}h=-1;let v=[],g=1,b=u+d;const w=1<<u-1;for(let r=0;r<u;r+=1){let o=0,a=b;for(;o<a;){Xt(t,{errors:r,currentLocation:f+a,expectedLocation:f,distance:i,ignoreLocation:c})<=p?o=a:b=a,a=Math.floor((b-o)/2+o)}b=a;let l=Math.max(1,f-a+1),y=s?d:Math.min(f+a,d)+u,j=Array(y+2);j[y+1]=(1<<r)-1;for(let o=y;o>=l;o-=1){let s=o-1,a=n[e.charAt(s)];if(m&&(x[s]=+!!a),j[o]=(j[o+1]<<1|1)&a,r&&(j[o]|=(v[o+1]|v[o])<<1|1|v[o+1]),j[o]&w&&(g=Xt(t,{errors:r,currentLocation:s,expectedLocation:f,distance:i,ignoreLocation:c}),g<=p)){if(p=g,h=s,h<=f)break;l=Math.max(1,2*f-h)}}if(Xt(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:c})>p)break;v=j}const j={isMatch:h>=0,score:Math.max(.001,g)};if(m){const e=function(e=[],t=Zt.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let s=e.length;o<s;o+=1){let s=e[o];s&&-1===r?r=o:s||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(x,a);e.length?l&&(j.indices=e):j.isMatch=!1}return j}function tn(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}class nn{constructor(e,{location:t=Zt.location,threshold:n=Zt.threshold,distance:r=Zt.distance,includeMatches:i=Zt.includeMatches,findAllMatches:o=Zt.findAllMatches,minMatchCharLength:s=Zt.minMatchCharLength,isCaseSensitive:a=Zt.isCaseSensitive,ignoreLocation:l=Zt.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:tn(e),startIndex:t})},u=this.pattern.length;if(u>Qt){let e=0;const t=u%Qt,n=u-t;for(;e<n;)c(this.pattern.substr(e,Qt),e),e+=Qt;if(t){const e=u-Qt;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,includeMatches:n}=this.options;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}const{location:r,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:a,ignoreLocation:l}=this.options;let c=[],u=0,d=!1;this.chunks.forEach((({pattern:t,alphabet:f,startIndex:p})=>{const{isMatch:h,score:m,indices:x}=en(e,t,f,{location:r+p,distance:i,threshold:o,findAllMatches:s,minMatchCharLength:a,includeMatches:n,ignoreLocation:l});h&&(d=!0),u+=m,h&&x&&(c=[...c,...x])}));let f={isMatch:d,score:d?u/this.chunks.length:1};return d&&n&&(f.indices=c),f}}class rn{constructor(e){this.pattern=e}static isMultiMatch(e){return on(e,this.multiRegex)}static isSingleMatch(e){return on(e,this.singleRegex)}search(){}}function on(e,t){const n=e.match(t);return n?n[1]:null}class sn extends rn{constructor(e,{location:t=Zt.location,threshold:n=Zt.threshold,distance:r=Zt.distance,includeMatches:i=Zt.includeMatches,findAllMatches:o=Zt.findAllMatches,minMatchCharLength:s=Zt.minMatchCharLength,isCaseSensitive:a=Zt.isCaseSensitive,ignoreLocation:l=Zt.ignoreLocation}={}){super(e),this._bitapSearch=new nn(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class an extends rn{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const r=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const ln=[class extends rn{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},an,class extends rn{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends rn{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends rn{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends rn{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends rn{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},sn],cn=ln.length,un=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;const dn=new Set([sn.type,an.type]);class fn{constructor(e,{isCaseSensitive:t=Zt.isCaseSensitive,includeMatches:n=Zt.includeMatches,minMatchCharLength:r=Zt.minMatchCharLength,ignoreLocation:i=Zt.ignoreLocation,findAllMatches:o=Zt.findAllMatches,location:s=Zt.location,threshold:a=Zt.threshold,distance:l=Zt.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:s,threshold:a,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(un).filter((e=>e&&!!e.trim())),r=[];for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,s=-1;for(;!o&&++s<cn;){const e=ln[s];let n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),o=!0)}if(!o)for(s=-1;++s<cn;){const e=ln[s];let n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r}))}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],s=0;for(let r=0,a=t.length;r<a;r+=1){const a=t[r];o.length=0,i=0;for(let t=0,r=a.length;t<r;t+=1){const r=a[t],{isMatch:l,indices:c,score:u}=r.search(e);if(!l){s=0,i=0,o.length=0;break}if(i+=1,s+=u,n){const e=r.constructor.type;dn.has(e)?o=[...o,...c]:o.push(c)}}if(i){let e={isMatch:!0,score:s/i};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}}const pn=[];function hn(e,t){for(let n=0,r=pn.length;n<r;n+=1){let r=pn[n];if(r.condition(e,t))return new r(e,t)}return new nn(e,t)}const mn="$and",xn="$or",yn="$path",vn="$val",gn=e=>!(!e[mn]&&!e[xn]),bn=e=>({[mn]:Object.keys(e).map((t=>({[t]:e[t]})))});function wn(e,t,{auto:n=!0}={}){const r=e=>{let i=Object.keys(e);const o=(e=>!!e[yn])(e);if(!o&&i.length>1&&!gn(e))return r(bn(e));if((e=>!Lt(e)&&Bt(e)&&!gn(e))(e)){const r=o?e[yn]:i[0],s=o?e[vn]:e[r];if(!Rt(s))throw new Error((e=>`Invalid value for key ${e}`)(r));const a={keyId:Jt(r),pattern:s};return n&&(a.searcher=hn(s,t)),a}let s={children:[],operator:i[0]};return i.forEach((t=>{const n=e[t];Lt(n)&&n.forEach((e=>{s.children.push(r(e))}))})),s};return gn(e)||(e=bn(e)),r(e)}function jn(e,t){const n=e.matches;t.matches=[],Ut(n)&&n.forEach((e=>{if(!Ut(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)}))}function kn(e,t){t.score=e.score}class Sn{constructor(e,t={},n){this.options={...Zt,...t},this.options.useExtendedSearch,this._keyStore=new Ht(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Kt))throw new Error("Incorrect 'index' type");this._myIndex=t||Yt(this.options.keys,this._docs,{getFn:this.options.getFn})}add(e){Ut(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=(()=>!1)){const t=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:s}=this.options;let a=Rt(e)?Rt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,{ignoreFieldNorm:t=Zt.ignoreFieldNorm}){e.forEach((e=>{let n=1;e.matches.forEach((({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))})),e.score=n}))}(a,{ignoreFieldNorm:s}),i&&a.sort(o),Ft(t)&&t>-1&&(a=a.slice(0,t)),function(e,t,{includeMatches:n=Zt.includeMatches,includeScore:r=Zt.includeScore}={}){const i=[];return n&&i.push(jn),r&&i.push(kn),e.map((e=>{const{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach((t=>{t(e,r)})),r}))}(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const t=hn(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach((({v:e,i:n,n:i})=>{if(!Ut(e))return;const{isMatch:o,score:s,indices:a}=t.searchIn(e);o&&r.push({item:e,idx:n,matches:[{score:s,value:e,norm:i,indices:a}]})})),r}_searchLogical(e){const t=wn(e,this.options),n=(e,t,r)=>{if(!e.children){const{keyId:n,searcher:i}=e,o=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return o&&o.length?[{idx:r,item:t,matches:o}]:[]}switch(e.operator){case mn:{const i=[];for(let o=0,s=e.children.length;o<s;o+=1){const s=e.children[o],a=n(s,t,r);if(!a.length)return[];i.push(...a)}return i}case xn:{const i=[];for(let o=0,s=e.children.length;o<s;o+=1){const s=e.children[o],a=n(s,t,r);if(a.length){i.push(...a);break}}return i}}},r=this._myIndex.records,i={},o=[];return r.forEach((({$:e,i:r})=>{if(Ut(e)){let s=n(t,e,r);s.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},o.push(i[r])),s.forEach((({matches:e})=>{i[r].matches.push(...e)})))}})),o}_searchObjectList(e){const t=hn(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach((({$:e,i:r})=>{if(!Ut(e))return;let o=[];n.forEach(((n,r)=>{o.push(...this._findMatches({key:n,value:e[r],searcher:t}))})),o.length&&i.push({idx:r,item:e,matches:o})})),i}_findMatches({key:e,value:t,searcher:n}){if(!Ut(t))return[];let r=[];if(Lt(t))t.forEach((({v:t,i,n:o})=>{if(!Ut(t))return;const{isMatch:s,score:a,indices:l}=n.searchIn(t);s&&r.push({score:a,key:e,value:t,idx:i,norm:o,indices:l})}));else{const{v:i,n:o}=t,{isMatch:s,score:a,indices:l}=n.searchIn(i);s&&r.push({score:a,key:e,value:i,norm:o,indices:l})}return r}}Sn.version="6.4.6",Sn.createIndex=Yt,Sn.parseIndex=function(e,{getFn:t=Zt.getFn}={}){const{keys:n,records:r}=e,i=new Kt({getFn:t});return i.setKeys(n),i.setIndexRecords(r),i},Sn.config=Zt,Sn.parseQuery=wn,function(...e){pn.push(...e)}(fn);const On=Sn;function _n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var En=new Map;function Nn(e){var t=e.value,n=e.setValue,i=e.terms,o=B((function(e){return e.preferredOptionsHistory})),s=K((function(e){return e.searchParams})),a=_n((0,r.useState)(!1),2),l=a[0],c=a[1],u=(0,r.useRef)(),d=_n((0,r.useState)({}),2),f=d[0],p=d[1],h=_n((0,r.useState)(""),2),m=h[0],x=h[1],y=_n((0,r.useState)([]),2),v=y[0],g=y[1],b=(0,r.useMemo)((function(){return Object.values(i.filter((function(e){return null==e?void 0:e.featured})).sort((function(e,t){return e.term<t.term?-1:e.term>t.term?1:0})))}),[i]),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(En.has(e))g(En.get(e));else{var t=f.search(e);En.set(e,null!=t&&t.length?t.map((function(e){return e.item})):b),g(En.get(e))}},j="Unknown"===t||!t.length;(0,r.useEffect)((function(){p(new On(i,{keys:["term","parent","keywords"],minMatchCharLength:2,threshold:.3}))}),[i]),(0,r.useEffect)((function(){m.length||g(b)}),[b,m]),(0,r.useEffect)((function(){l&&u.current.focus()}),[l]);var k,S,O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,It.__)("Suggestions","extendify-sdk");return e===b&&(t=(0,It.__)("Examples","extendify-sdk")),(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("h4",{className:"mt-4 mb-2 text-left uppercase text-xs text-gray-700",children:t}),(0,At.jsx)("ul",{className:"m-0",children:e.map((function(e){var t;Object.prototype.hasOwnProperty.call(e,"term")&&(e=e.term);var r=(null==s||null===(t=s.taxonomies)||void 0===t?void 0:t.tax_categories)===e;return(0,At.jsx)("li",{className:"m-0 mb-1",children:(0,At.jsx)("button",{type:"button",className:Ot()("w-full text-left text-sm bg-transparent hover:text-wp-theme-500 m-0 pl-0 cursor-pointer",{"text-gray-800":!r}),onClick:function(){c(!1),n(e)},children:e})},e)}))})]})};return(0,At.jsxs)("div",{className:"w-full bg-gray-100 rounded",children:[(0,At.jsx)("button",{type:"button",onClick:function(){return c((function(e){return!e}))},className:"flex items-center justify-between text-gray-800 button-focus w-full p-4 m-0 cursor-pointer bg-gray-100 hover:bg-gray-150 rounded",children:(S=l?(0,It.__)("What kind of site is this?","extendify-sdk"):t,(0,At.jsxs)(At.Fragment,{children:[(0,At.jsxs)("span",{className:"flex flex-col text-left",children:[(0,At.jsx)("span",{className:"text-sm mb-1",children:(0,It.__)("Site Type","extendify-sdk")}),(0,At.jsx)("span",{className:"font-light text-xs",children:S})]}),(0,At.jsxs)("span",{className:"flex items-center space-x-4",children:[j&&!l&&(0,At.jsxs)("svg",{className:"text-wp-alert-red","aria-hidden":"true",focusable:"false",width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("path",{className:"stroke-current",d:"M10.9982 4.05371C7.66149 4.05371 4.95654 6.75866 4.95654 10.0954C4.95654 13.4321 7.66149 16.137 10.9982 16.137C14.3349 16.137 17.0399 13.4321 17.0399 10.0954C17.0399 6.75866 14.3349 4.05371 10.9982 4.05371V4.05371Z",strokeWidth:"1.25"}),(0,At.jsx)("path",{className:"fill-current",d:"M10.0205 12.8717C10.0205 12.3287 10.4508 11.8881 10.9938 11.8881C11.5368 11.8881 11.9774 12.3287 11.9774 12.8717C11.9774 13.4147 11.5368 13.8451 10.9938 13.8451C10.4508 13.8451 10.0205 13.4147 10.0205 12.8717Z"}),(0,At.jsx)("path",{className:"fill-current",d:"M11.6495 10.2591C11.6086 10.6177 11.3524 10.9148 10.9938 10.9148C10.625 10.9148 10.3791 10.6074 10.3483 10.2591L10.0205 7.31855C9.95901 6.81652 10.4918 6.34521 10.9938 6.34521C11.4959 6.34521 12.0286 6.81652 11.9774 7.31855L11.6495 10.2591Z"})]}),(0,At.jsx)("svg",{className:Ot()("text-gray-700 stroke-current",{"transform rotate-90 -translate-x-1":l}),"aria-hidden":"true",focusable:"false",width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M1.24194 11.5952L6.24194 6.09519L1.24194 0.595215",strokeWidth:"1.5"})})]})]}))}),l&&(0,At.jsxs)("div",{className:"p-4 pt-0",children:[(0,At.jsxs)("div",{className:"relative my-2",children:[(0,At.jsx)("label",{htmlFor:"site-type-search",className:"sr-only",children:(0,It.__)("Search","extendify-sdk")}),(0,At.jsx)("input",{ref:u,id:"site-type-search",value:m||"",onChange:function(e){return t=e.target.value,x(t),void w(t);var t},type:"text",className:"button-focus bg-white border-0 m-0 p-3.5 py-2.5 rounded text-sm w-full",placeholder:(0,It.__)("Search","extendify-sdk")}),(0,At.jsx)("svg",{className:"absolute top-2 right-2 hidden lg:block pointer-events-none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",role:"img","aria-hidden":"true",focusable:"false",children:(0,At.jsx)("path",{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})})]}),m.length>1&&v===b&&(0,At.jsx)("p",{className:"text-left",children:(0,It.__)("Nothing found...","extendify-sdk")}),v===b&&(null==o||null===(k=o.siteType)||void 0===k?void 0:k.length)>0&&(0,At.jsx)("div",{className:"mb-8",children:O(null==o?void 0:o.siteType,(0,It.__)("Recent","extendify-sdk"))}),v&&(0,At.jsx)("div",{children:O(v)}),j||(0,At.jsx)("button",{type:"button",className:"mt-4 w-full text-left text-sm bg-transparent hover:text-wp-theme-500 pl-0 cursor-pointer text-wp-theme-500",onClick:function(){c(!1),n("Unknown")},children:(0,It.__)("Reset","extendify-sdk")})]})]})}function An(){var e,t,n,r=V((function(e){return e.taxonomies})),i=K((function(e){return e.searchParams})),o=B((function(e){return e.updateSiteType})),s=K((function(e){return e.updateTaxonomies}));return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"mt-px bg-white mb-8 mx-6 pt-6 lg:mx-0 lg:pt-0",children:Object.keys(null!==(e=null==r?void 0:r.tax_categories)&&void 0!==e?e:{}).length>0&&(0,At.jsx)(Nn,{value:null!==(t=null==i||null===(n=i.taxonomies)||void 0===n?void 0:n.tax_categories)&&void 0!==t?t:"",setValue:function(e){o(e),s({tax_categories:e})},terms:r.tax_categories})}),(0,At.jsx)("div",{className:"mt-px flex-grow hidden overflow-y-auto pb-32 pr-2 pt-px sm:block",children:(0,At.jsx)(kt.Panel,{children:Object.entries(r).map((function(e){return"tax_categories"===e[0]?null:(0,At.jsx)(Mt,{taxonomy:e},e[0])}))})})]})}function Pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ln(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Rn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Ln(o,r,i,s,a,"next",e)}function a(e){Ln(o,r,i,s,a,"throw",e)}s(void 0)}))}}var Fn=0,Dn=function(e){var t=arguments;return Rn(w().mark((function n(){var r,i,o,s,a;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=t.length>1&&void 0!==t[1]?t[1]:{},Fn++,n.next=4,k.post("templates",{filterByFormula:zn(e),pageSize:null!==(r=null==s?void 0:s.pageSize)&&void 0!==r?r:v,categories:e.taxonomies,search:e.search,type:e.type,offset:null!==(i=s.offset)&&void 0!==i?i:"",initial:1===Fn,request_count:Fn,sdk_partner:null!==(o=B.getState().sdkPartner)&&void 0!==o?o:""});case 4:return a=n.sent,n.abrupt("return",a);case 6:case"end":return n.stop()}}),n)})))()},Bn=function(e,t,n){var r,i,o,s;return k.post("related",{pageSize:4,query_type:t,wanted_type:n,categories:null==e||null===(r=e.fields)||void 0===r?void 0:r.tax_categories,pattern_types:null==e||null===(i=e.fields)||void 0===i?void 0:i.tax_pattern_types,style:null==e||null===(o=e.fields)||void 0===o?void 0:o.tax_style,type:null==e||null===(s=e.fields)||void 0===s?void 0:s.type,template_id:null==e?void 0:e.id})},Un=function(e){var t;return k.post("templates/".concat(e.id),{template_id:e.id,maybe_import:!0,type:e.fields.type,pageSize:v,template_name:null===(t=e.fields)||void 0===t?void 0:t.title})},qn=function(e){var t;return k.post("templates/".concat(e.id),{template_id:e.id,single:!0,type:e.fields.type,pageSize:v,template_name:null===(t=e.fields)||void 0===t?void 0:t.title})},Vn=function(e){var t;return k.post("templates/".concat(e.id),{template_id:e.id,imported:!0,type:e.fields.type,pageSize:v,template_name:null===(t=e.fields)||void 0===t?void 0:t.title})},zn=function(e){var t,n=e.taxonomies,r=e.type;n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){In(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);var i=[];"Unknown"===(null===(t=n)||void 0===t?void 0:t.tax_categories)&&(n.tax_categories="Default");var o=Object.entries(n).filter((function(e){var t=Pn(e,2),n=t[0],i=t[1];return $n(n,i,r)})).filter((function(e){var t=Pn(e,1)[0];return Boolean(t[1].length)})).map((function(e){var t=Pn(e,2),n=t[0],r=t[1];return"".concat(n,' = "').concat(r,'"')})).join(", ");return o.length&&i.push(o),r.length&&i.push('{type}="'.concat(r,'"')),i.length?"AND(".concat(i.join(", "),")").replace(/\r?\n|\r/g,""):""},Hn=new Map,$n=function(e,t,n){var r,i,o,s,a="".concat(e,"-").concat(t,"-").concat(n);if("tax_categories-Default-pattern"===a)return!0;Hn.has(a)||Hn.set(a,null===(r=V.getState())||void 0===r||null===(i=r.taxonomies[e])||void 0===i||null===(o=i.find((function(e){return(null==e?void 0:e.term)===t})))||void 0===o||null===(s=o.type)||void 0===s?void 0:s.includes(n));return Hn.get(a)};function Wn(){return Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wn.apply(this,arguments)}var Jn=new Map,Zn=new WeakMap,Gn=0;function Kn(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(n=e.root)?(Zn.has(n)||(Gn+=1,Zn.set(n,Gn.toString())),Zn.get(n)):"0":e[t]);var n})).toString()}function Yn(e,t,n){if(void 0===n&&(n={}),!e)return function(){};var r=function(e){var t=Kn(e),n=Jn.get(t);if(!n){var r,i=new Map,o=new IntersectionObserver((function(t){t.forEach((function(t){var n,o=t.isIntersecting&&r.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(n=i.get(t.target))||n.forEach((function(e){e(o,t)}))}))}),e);r=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:i},Jn.set(t,n)}return n}(n),i=r.id,o=r.observer,s=r.elements,a=s.get(e)||[];return s.has(e)||s.set(e,a),a.push(t),o.observe(e),function(){a.splice(a.indexOf(t),1),0===a.length&&(s.delete(e),o.unobserve(e)),0===s.size&&(o.disconnect(),Jn.delete(i))}}function Xn(e){return"function"!=typeof e.children}var Qn=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){n.node&&(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),Xn(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},o.componentWillUnmount=function(){this.unobserve(),this.node=null},o.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin,i=e.trackVisibility,o=e.delay;this._unobserveCb=Yn(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r,trackVisibility:i,delay:o})}},o.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},o.render=function(){if(!Xn(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var r=this.props,o=r.children,s=r.as,a=r.tag,l=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView"]);return(0,i.createElement)(s||a||"div",Wn({ref:this.handleNode},l),o)},r}(i.Component);function er(e){var t=void 0===e?{}:e,n=t.threshold,r=t.delay,o=t.trackVisibility,s=t.rootMargin,a=t.root,l=t.triggerOnce,c=t.skip,u=t.initialInView,d=(0,i.useRef)(),f=(0,i.useState)({inView:!!u}),p=f[0],h=f[1],m=(0,i.useCallback)((function(e){void 0!==d.current&&(d.current(),d.current=void 0),c||e&&(d.current=Yn(e,(function(e,t){h({inView:e,entry:t}),t.isIntersecting&&l&&d.current&&(d.current(),d.current=void 0)}),{root:a,rootMargin:s,threshold:n,trackVisibility:o,delay:r}))}),[Array.isArray(n)?n.toString():n,a,s,l,c,o,r]);(0,i.useEffect)((function(){d.current||!p.entry||l||c||h({inView:!!u})}));var x=[m,p.inView,p.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}Qn.displayName="InView",Qn.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};function tr(){var e=(0,r.useRef)(!1);return(0,r.useEffect)((function(){return e.current=!0,function(){return e.current=!1}})),e}function nr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ir=function(){return(0,At.jsx)("div",{className:"aspect-w-1 aspect-h-1",children:(0,At.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-gray-100",children:(0,At.jsx)(kt.Spinner,{})})})};function or(e){var t=e.template,n=e.imageLoaded,i=e.setActiveTemplate,o=nr((0,r.useState)(!1),2),s=o[0],a=o[1],l=(0,r.useRef)(),c=tr();return(0,r.useEffect)((function(){var e,r,i,o,u,d,f;if(!s&&c.current){var p=new Image;p.role="button",p.className="max-w-full block m-auto object-cover",p.onload=function(){c.current&&(a(!0),l.current&&!l.current.querySelector("img")&&(l.current.appendChild(p),n(t.id)))},p.src=null!==(e=null==t||null===(r=t.fields)||void 0===r||null===(i=r.screenshot[0])||void 0===i||null===(o=i.thumbnails)||void 0===o||null===(u=o.large)||void 0===u?void 0:u.url)&&void 0!==e?e:null==t||null===(d=t.fields)||void 0===d||null===(f=d.screenshot[0])||void 0===f?void 0:f.url}}),[t,n,s,c]),s?(0,At.jsx)("button",{type:"button",className:"flex mb-10 justify-items-center flex-grow h-80 border-gray-200 bg-white border focus:border-wp-theme-500 group-hover:border-wp-theme-500 transition duration-150 cursor-pointer overflow-hidden",onClick:i,ref:l}):(0,At.jsx)(ir,{})}function sr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ar(){return ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(this,arguments)}function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dr={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class fr extends o().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let i in t){const o=parseInt(i);o>0&&e<=o&&o<n&&(n=o,r=t[i])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=o().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const i=r%e;t[i]||(t[i]=[]),t[i].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),i=100/r.length+"%";let s=n;s&&"string"!=typeof s&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===s&&(s="my-masonry-grid_column"));const a=cr(cr(cr({},e),t),{},{style:cr(cr({},t.style),{},{width:i}),className:s});return r.map(((e,t)=>o().createElement("div",ar({},a,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:i,column:s,className:a}=e,l=sr(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let c=a;return"string"!=typeof a&&(this.logDeprecated('The property "className" requires a string'),void 0===a&&(c="my-masonry-grid")),o().createElement("div",ar({},l,{className:c}),this.renderColumns())}}fr.defaultProps=dr;const pr=fr;var hr=function(){return k.get("plugins")},mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new FormData;return t.append("plugins",JSON.stringify(e)),k.post("plugins",t,{headers:{"Content-Type":"multipart/form-data"}})},xr=function(){return k.get("active-plugins")};function yr(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function vr(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){yr(o,r,i,s,a,"next",e)}function a(e){yr(o,r,i,s,a,"throw",e)}s(void 0)}))}}var gr=[],br=[];function wr(e){return jr.apply(this,arguments)}function jr(){return(jr=vr(w().mark((function e(t){var n,r,i,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=(i=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e}))).length){e.next=4;break}return e.abrupt("return",!1);case 4:if(gr.length){e.next=10;break}return e.t0=Object,e.next=8,hr();case 8:e.t1=e.sent,gr=e.t0.keys.call(e.t0,e.t1);case 10:return o=!!i.length&&i.filter((function(e){return!gr.some((function(t){return t.includes(e)}))})),e.abrupt("return",o.length);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function kr(e){return Sr.apply(this,arguments)}function Sr(){return(Sr=vr(w().mark((function e(t){var n,r,i,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=(i=null!==(n=null==t||null===(r=t.fields)||void 0===r?void 0:r.required_plugins)&&void 0!==n?n:[]).filter((function(e){return"editorplus"!==e}))).length){e.next=4;break}return e.abrupt("return",!1);case 4:if(br.length){e.next=10;break}return e.t0=Object,e.next=8,xr();case 8:e.t1=e.sent,br=e.t0.values.call(e.t0,e.t1);case 10:if(!(o=!!i.length&&i.filter((function(e){return!br.some((function(t){return t.includes(e)}))})))){e.next=16;break}return e.next=14,wr(t);case 14:if(!e.sent){e.next=16;break}return e.abrupt("return",!1);case 16:return e.abrupt("return",o.length);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Or=l(x((function(e){return{wantedTemplate:{},importOnLoad:!1,setWanted:function(t){return e({wantedTemplate:t})},removeWanted:function(){return e({wantedTemplate:{}})}}}),{name:"extendify-wanted-template"}));function _r(e){var t=e.msg;return(0,At.jsxs)(kt.Modal,{style:{maxWidth:"500px"},title:(0,It.__)("Error installing plugins","extendify-sdk"),isDismissible:!1,children:[(0,It.__)("You have encountered an error that we cannot recover from. Please try again.","extendify-sdk"),(0,At.jsx)("br",{}),(0,At.jsx)(kt.Notice,{isDismissible:!1,status:"error",children:t}),(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(Lr,{}),document.getElementById("extendify-root"))},children:(0,It.__)("Go back","extendify-sdk")})]})}const Cr=wp.data;function Er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ar(){var e=Er((0,r.useState)(!1),2),t=e[0],n=e[1],i=function(){location.reload()};return(0,(0,Cr.select)("core/editor").isEditedPostDirty)()?(0,At.jsxs)(kt.Modal,{title:(0,It.__)("Reload required","extendify-sdk"),isDismissible:!1,children:[(0,At.jsx)("p",{style:{maxWidth:"400px"},children:(0,It.__)("Just one more thing! We need to reload the page to continue.","extendify-sdk")}),(0,At.jsxs)(kt.ButtonGroup,{children:[(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:i,disabled:t,children:(0,It.__)("Reload page","extendify-sdk")}),(0,At.jsx)(kt.Button,{isSecondary:!0,onClick:function(){n(!0),(0,Cr.dispatch)("core/editor").savePost(),n(!1)},isBusy:t,style:{margin:"0 4px"},children:(0,It.__)("Save changes","extendify-sdk")})]})]}):(i(),null)}function Pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mr(){var e,t=Pr((0,r.useState)(""),2),n=t[0],i=t[1],o=Or((function(e){return e.wantedTemplate})),s=null==o||null===(e=o.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return mr(s).then((function(){Or.setState({importOnLoad:!0}),(0,r.render)((0,At.jsx)(Ar,{}),document.getElementById("extendify-root"))})).catch((function(e){var t=e.message;i(t)})),n?(0,At.jsx)(_r,{msg:n}):(0,At.jsx)(kt.Modal,{title:(0,It.__)("Installing plugins","extendify-sdk"),isDismissible:!1,children:(0,At.jsx)(kt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,It.__)("Installing...","extendify-sdk")})})}function Ir(){var e,t,n,i=Or((function(e){return e.wantedTemplate})),o=(null==i||null===(e=i.fields)||void 0===e?void 0:e.required_plugins)||[];return(0,At.jsxs)(kt.Modal,{title:(0,It.__)("Plugins required","extendify-sdk"),isDismissible:!1,children:[(0,At.jsx)("p",{style:{maxWidth:"400px"},children:(0,It.sprintf)((0,It.__)("In order to add this %s to your site, the following plugins are required to be installed and activated.","extendify-sdk"),null!==(t=null==i||null===(n=i.fields)||void 0===n?void 0:n.type)&&void 0!==t?t:"template")}),(0,At.jsx)("ul",{children:o.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,At.jsx)("li",{children:Et(e)},e)}))}),(0,At.jsx)("p",{style:{maxWidth:"400px",fontWeight:"bold"},children:(0,It.__)("Please contact a site admin for assistance in adding these plugins to your site.","extendify-sdk")}),(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(Fo,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none"},children:(0,It.__)("Return to library","extendify-sdk")})]})}function Lr(e){var t,n,i,o,s,a,l,c,u=Or((function(e){return e.wantedTemplate})),d=(null==u||null===(t=u.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=B.getState())&&void 0!==n&&n.canInstallPlugins?(0,At.jsxs)(kt.Modal,{title:null!==(i=e.title)&&void 0!==i?i:(0,It.__)("Install required plugins","extendify-sdk"),isDismissible:!1,children:[(0,At.jsx)("p",{style:{maxWidth:"400px"},children:null!==(o=e.message)&&void 0!==o?o:(0,It.__)((0,It.sprintf)("There is just one more step. This %s requires the following to be automatically installed and activated:",null!==(s=null==u||null===(a=u.fields)||void 0===a?void 0:a.type)&&void 0!==s?s:"template"),"extendify-sdk")}),(null===(l=e.message)||void 0===l?void 0:l.length)>0||(0,At.jsx)("ul",{children:d.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,At.jsx)("li",{children:Et(e)},e)}))}),(0,At.jsxs)(kt.ButtonGroup,{children:[(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(Mr,{}),document.getElementById("extendify-root"))},children:null!==(c=e.buttonLabel)&&void 0!==c?c:(0,It.__)("Install Plugins","extendify-sdk")}),e.forceOpen||(0,At.jsx)(kt.Button,{isTertiary:!0,onClick:function(){e.forceOpen||(0,r.render)((0,At.jsx)(Fo,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,It.__)("No thanks, take me back","extendify-sdk")})]})]}):(0,At.jsx)(Ir,{})}function Rr(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}var Fr=function(){var e,t=(e=w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,r.render)((0,At.jsx)(Lr,{}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasRequiredPlugins",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Rr(o,r,i,s,a,"next",e)}function a(e){Rr(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Dr(e){var t=e.msg;return(0,At.jsxs)(kt.Modal,{style:{maxWidth:"500px"},title:(0,It.__)("Error Activating plugins","extendify-sdk"),isDismissible:!1,children:[(0,It.__)("You have encountered an error that we cannot recover from. Please try again.","extendify-sdk"),(0,At.jsx)("br",{}),(0,At.jsx)(kt.Notice,{isDismissible:!1,status:"error",children:t}),(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){(0,r.render)((0,At.jsx)(Hr,{}),document.getElementById("extendify-root"))},children:(0,It.__)("Go back","extendify-sdk")})]})}function Br(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Ur(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Br(o,r,i,s,a,"next",e)}function a(e){Br(o,r,i,s,a,"throw",e)}s(void 0)}))}}function qr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zr(){var e,t=qr((0,r.useState)(""),2),n=t[0],i=t[1],o=Or((function(e){return e.wantedTemplate})),s=null==o||null===(e=o.fields)||void 0===e?void 0:e.required_plugins.filter((function(e){return"editorplus"!==e}));return mr(s).then((function(){Or.setState({importOnLoad:!0})})).then(Ur(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){return setTimeout(e,1e3)}));case 2:(0,r.render)((0,At.jsx)(Ar,{}),document.getElementById("extendify-root"));case 3:case"end":return e.stop()}}),e)})))).catch((function(e){var t=e.response;i(t.data.message)})),n?(0,At.jsx)(Dr,{msg:n}):(0,At.jsx)(kt.Modal,{title:(0,It.__)("Activating plugins","extendify-sdk"),isDismissible:!1,children:(0,At.jsx)(kt.Button,{style:{width:"100%"},disabled:!0,isPrimary:!0,isBusy:!0,onClick:function(){},children:(0,It.__)("Activating...","extendify-sdk")})})}function Hr(e){var t,n,i,o,s,a=Or((function(e){return e.wantedTemplate})),l=(null==a||null===(t=a.fields)||void 0===t?void 0:t.required_plugins)||[];return null!==(n=B.getState())&&void 0!==n&&n.canActivatePlugins?(0,At.jsx)(kt.Modal,{title:(0,It.__)("Activate required plugins","extendify-sdk"),isDismissible:!1,children:(0,At.jsxs)("div",{children:[(0,At.jsx)("p",{style:{maxWidth:"400px"},children:null!==(i=e.message)&&void 0!==i?i:(0,It.__)((0,It.sprintf)("There is just one more step. This %s requires the following plugins to be installed and activated:",null!==(o=null==a||null===(s=a.fields)||void 0===s?void 0:s.type)&&void 0!==o?o:"template"),"extendify-sdk")}),(0,At.jsx)("ul",{children:l.filter((function(e){return"editorplus"!==e})).map((function(e){return(0,At.jsx)("li",{children:Et(e)},e)}))}),(0,At.jsxs)(kt.ButtonGroup,{children:[(0,At.jsx)(kt.Button,{isPrimary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(zr,{}),document.getElementById("extendify-root"))},children:(0,It.__)("Activate Plugins","extendify-sdk")}),e.showClose&&(0,At.jsx)(kt.Button,{isTertiary:!0,onClick:function(){return(0,r.render)((0,At.jsx)(Fo,{show:!0}),document.getElementById("extendify-root"))},style:{boxShadow:"none",margin:"0 4px"},children:(0,It.__)("No thanks, return to library","extendify-sdk")})]})]})}):(0,At.jsx)(Ir,{})}function $r(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}var Wr=function(){var e,t=(e=w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kr(t);case 2:return e.t0=!e.sent,e.t1=function(){},e.t2=function(){return new Promise((function(){(0,r.render)((0,At.jsx)(Hr,{showClose:!0}),document.getElementById("extendify-root"))}))},e.abrupt("return",{id:"hasPluginsActivated",pass:e.t0,allow:e.t1,deny:e.t2});case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){$r(o,r,i,s,a,"next",e)}function a(e){$r(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Jr(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Zr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kr(e){var t=e.finished,n=Zr((0,r.useState)(""),2),i=n[0],o=n[1],s=(0,r.useRef)(),a=function(){var e,n=(e=w().mark((function e(n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),e.next=3,E(i);case 3:B.setState({registration:{email:i}}),t();case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Jr(o,r,i,s,a,"next",e)}function a(e){Jr(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return n.apply(this,arguments)}}();return(0,At.jsxs)(kt.Modal,{className:"extendify-sdk",title:(0,It.__)("One last step...","extendify-sdk"),isDismissible:!1,children:[(0,At.jsx)("p",{className:"m-0 mb-4 max-w-md",children:(0,It.__)("Register now to receive updates and special offers from Extendify","extendify-sdk")}),(0,At.jsxs)("form",{onSubmit:a,className:"flex space-x-4 mb-8",children:[(0,At.jsxs)("div",{className:"relative w-full max-w-xs",children:[(0,At.jsx)("input",{id:"extendify-email-register",required:!0,onChange:function(e){return o(e.target.value)},type:"text",className:"extendify-special-input button-focus text-sm h-8 min-h-0 border border-gray-900 special-input placeholder-transparent rounded-none w-full px-2",placeholder:(0,It.__)("Email","extendify-sdk")}),(0,At.jsx)("label",{htmlFor:"extendify-email-register",className:"-top-3 bg-white absolute left-1 px-1 transition-all",children:(0,It.__)("Email","extendify-sdk")})]}),(0,At.jsx)("input",{type:"submit",className:"hidden"})]}),(0,At.jsxs)(kt.ButtonGroup,{children:[(0,At.jsx)(kt.Button,{ref:s,isPrimary:!0,onClick:a,children:(0,It.__)("Submit and import","extendify-sdk")}),(0,At.jsx)(kt.Button,{isTertiary:!0,onClick:t,style:{boxShadow:"none",margin:"0 4px"},children:(0,It.__)("Skip and import","extendify-sdk")})]})]})}function Yr(){var e;return{id:"NeedsRegistrationModal",pass:Boolean((null===(e=B.getState().registration)||void 0===e?void 0:e.email)||B.getState().apiKey),allow:function(){},deny:function(){return new Promise((function(e){(0,r.render)((0,At.jsx)(Kr,{finished:e}),document.getElementById("extendify-root"))}))}}}function Xr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ei(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function ti(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ei(o,r,i,s,a,"next",e)}function a(e){ei(o,r,i,s,a,"throw",e)}s(void 0)}))}}function ni(e){return function(){return new ri(e.apply(this,arguments))}}function ri(e){var t,n;function r(t,n){try{var o=e[t](n),s=o.value,a=s instanceof ii;Promise.resolve(a?s.wrapped:s).then((function(e){a?r("return"===t?"return":"next",e):i(o.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(o,s){var a={key:e,arg:i,resolve:o,reject:s,next:null};n?n=n.next=a:(t=n=a,r(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function ii(e){this.wrapped=e}ri.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},ri.prototype.next=function(e){return this._invoke("next",e)},ri.prototype.throw=function(e){return this._invoke("throw",e)},ri.prototype.return=function(e){return this._invoke("return",e)};var oi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{hasRequiredPlugins:Fr,hasPluginsActivated:Wr,NeedsRegistrationModal:Yr,stack:[],check:function(t){var n=this;return ti(w().mark((function r(){var i,o,s,a;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=Xr(e),r.prev=1,i.s();case 3:if((o=i.n()).done){r.next=11;break}return s=o.value,r.next=7,n["".concat(s)](t);case 7:a=r.sent,n.stack.push(a.pass?a.allow:a.deny);case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),i.e(r.t0);case 16:return r.prev=16,i.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])})))()},reset:function(){this.stack=[]}}};function si(e){return ai.apply(this,arguments)}function ai(){return(ai=ti(w().mark((function e(t){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=li(t);case 1:return e.next=4,n.next();case 4:if(!e.sent.done){e.next=7;break}return e.abrupt("break",9);case 7:e.next=1;break;case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function li(e){return ci.apply(this,arguments)}function ci(){return(ci=ni(w().mark((function e(t){var n,r,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Xr(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return i=r.value,e.next=7,i();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})))).apply(this,arguments)}function ui(e,t){return(0,(0,Cr.dispatch)("core/block-editor").insertBlocks)(e).then((function(){window.dispatchEvent(new CustomEvent("extendify-sdk::template-inserted",{detail:{template:t},bubbles:!0}))}))}const di=wp.blockEditor;var fi=["tagName","children"];function pi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hi(e){var t=e.tagName,n=void 0===t?"button":t,i=e.children,o=pi(e,fi);return o.className=Ot()(o.className,"bg-extendify-main hover:bg-extendify-main-dark py-3 pl-5 pr-3 w-60 rounded no-underline text-base text-white flex justify-center items-center space-x-2"),(0,r.createElement)(n,o,i)}const mi=function({icon:e,size:t=24,...n}){return(0,r.cloneElement)(e,{width:t,height:t,...n})},xi=e=>(0,r.createElement)("circle",e),yi=e=>(0,r.createElement)("g",e),vi=e=>(0,r.createElement)("path",e),gi=e=>(0,r.createElement)("rect",e),bi=({className:e,isPressed:t,...n})=>{const i={...n,className:Ot()(e,{"is-pressed":t})||void 0,role:"img","aria-hidden":!0,focusable:!1};return(0,r.createElement)("svg",i)},wi=(0,r.createElement)(bi,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(vi,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function ji(e){var t=e.onRequestClose,n=e.isOpen,i=e.left,o=e.right;return(0,At.jsx)(Re.Root,{show:!0,as:r.Fragment,children:(0,At.jsx)(jt,{as:"div",static:!0,open:n,className:"extendify-sdk",onClose:t,children:(0,At.jsxs)("div",{className:"fixed z-high inset-0 flex",children:[(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,At.jsx)(jt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-30 transition-opacity"})}),(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,At.jsx)("div",{className:"m-auto",children:(0,At.jsxs)("div",{className:"relative m-8 md:m-0 max-w-md rounded-sm md:flex bg-gray-100 items-center justify-center md:max-w-2xl",children:[(0,At.jsxs)("button",{onClick:t,className:"absolute block p-4 top-0 right-0 rounded-md cursor-pointer text-gray-700 opacity-30 hover:opacity-100",children:[(0,At.jsx)("span",{className:"sr-only",children:(0,It.__)("Close","extendify-sdk")}),(0,At.jsx)(mi,{icon:wi})]}),(0,At.jsx)("div",{className:"rounded-md md:rounded-l-md md:rounded-tr-none bg-white p-12 text-center md:w-7/12 items-center",children:i}),(0,At.jsx)("div",{className:"justify-center md:justify-none md:w-6/12 p-10 text-black hidden md:block ",children:o})]})})})]})})})}function ki(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _i=(0,r.memo)((function(e){var t=e.blocks;return(0,At.jsx)("div",{className:"with-light-shadow relative",children:(0,At.jsx)(di.BlockPreview,{blocks:t,live:!1,viewportWidth:1400})})}),(function(e,t){return e.clientId==t.clientId})),Ci=oi(["NeedsRegistrationModal","hasRequiredPlugins","hasPluginsActivated"]);function Ei(e){var t,n=e.template,i=(0,r.useRef)(null),o=(0,r.useRef)(!1),s=B((function(e){return e.canImport})),a=Or((function(e){return e.setWanted})),l=Y((function(e){return e.setOpen})),c=(0,g.rawHandler)({HTML:n.fields.code}),u=Si((0,r.useState)(!1),2),d=u[0],f=u[1],p=Si(er(),2),h=p[0],m=p[1],x=Si((0,r.useState)(!1),2),y=x[0],v=x[1],b=function(){var e,t=(e=w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ci.check(n);case 2:si(Ci.stack).then((function(){setTimeout((function(){ui(c,n).then((function(){return l(!1)})).then((function(){return(0,r.render)((0,At.jsx)(Fo,{}),document.getElementById("extendify-root"))})).then((function(){return Ci.reset()}))}),100)}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ki(o,r,i,s,a,"next",e)}function a(e){ki(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(){return t.apply(this,arguments)}}(),j=function(){s()?(Un(n),a(n),b()):v(!0)};return(0,r.useEffect)((function(){!d&&m&&f(!0)}),[m,d,n]),(0,At.jsxs)(At.Fragment,{children:[(0,At.jsxs)("div",{role:"button",tabIndex:"0",ref:i,"aria-label":(0,It.sprintf)((0,It.__)("Press to import %s","extendify-sdk"),null==n||null===(t=n.fields)||void 0===t?void 0:t.type),className:"mb-8 cursor-pointer button-focus",onFocus:function(){o.current||(o.current=!0,Array.from(i.current.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).forEach((function(e){return e.setAttribute("tabIndex","-1")})))},onClick:j,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(e.stopPropagation(),e.preventDefault(),j())},children:[(0,At.jsx)("div",{ref:h,className:"invisible absolute inset-0 pointer-events-none"}),d&&(0,At.jsx)(_i,{blocks:c})]}),y&&(0,At.jsx)(ji,{isOpen:y,onRequestClose:function(){return v(!1)},left:(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"flex space-x-2 items-center justify-center mb-10",children:(0,At.jsxs)("svg",{fill:"none",height:"30",viewBox:"0 0 153 30",width:"153",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("path",{d:"m33.2598 24.7079v-18.89872h12.7345v3.29434h-8.7388v4.50318h8.0835v3.2944h-8.0835v4.5124h8.7756v3.2944zm19.1224-14.174 2.6023 4.9553 2.6668-4.9553h4.0327l-4.1066 7.087 4.2173 7.087h-4.0141l-2.7961-4.9-2.7499 4.9h-4.0603l4.2079-7.087-4.0602-7.087zm19.1756 0v2.9529h-8.5359v-2.9529zm-6.598-3.39592h3.9312v13.21432c0 .363.0552.646.1661.849.1106.1968.2644.3353.4612.4152.2031.08.437.12.7014.12.1845 0 .3692-.0154.5537-.0461.1845-.0369.3261-.0646.4244-.0831l.6183 2.9252c-.1968.0615-.4736.1323-.8305.2122-.3568.0862-.7906.1386-1.301.157-.9474.0368-1.7781-.0892-2.4916-.3783-.7074-.2893-1.2581-.7383-1.6518-1.3474-.3937-.609-.5875-1.378-.5814-2.3069zm15.466 17.84662c-1.458 0-2.7131-.2951-3.7651-.8857-1.0457-.5968-1.8517-1.4396-2.4175-2.5285-.5661-1.0951-.8491-2.39-.8491-3.8849 0-1.458.283-2.7376.8491-3.8388.5658-1.1012 1.3625-1.9594 2.39-2.5746 1.0334-.6152 2.2454-.9228 3.6356-.9228.9353 0 1.8056.1507 2.6116.4521.812.2954 1.5195.7414 2.1224 1.3381.6091.5967 1.0827 1.3473 1.4212 2.2516.3382.8982.5073 1.9502.5073 3.1559v1.0797h-11.9683v-2.4362h8.268c0-.5659-.123-1.0673-.369-1.5041-.2462-.4368-.5875-.7782-1.0243-1.0243-.4307-.2522-.932-.3783-1.5041-.3783-.5968 0-1.1259.1384-1.5873.4152-.4552.2707-.8121.6367-1.0704 1.0981-.2584.4553-.3907.9628-.3967 1.5226v2.3162c0 .7014.129 1.3073.3874 1.8179.2646.5106.6368.9043 1.1167 1.1812.4797.2768 1.0487.4153 1.707.4153.4368 0 .8368-.0616 1.1997-.1846.363-.1231.6737-.3076.932-.5537.2584-.2461.4552-.5475.5906-.9043l3.6358.2399c-.1845.8736-.563 1.6364-1.1351 2.2885-.5659.646-1.298 1.1505-2.1963 1.5134-.8919.3569-1.9223.5351-3.0912.5351zm13.002-8.4711v8.1944h-3.931v-14.174h3.7465v2.5007h.1661c.3137-.8244.8397-1.4764 1.5779-1.9563.7383-.486 1.6335-.729 2.6855-.729.9842 0 1.8423.2153 2.5742.6459.732.4307 1.301 1.0459 1.707 1.8456.406.7936.609 1.741.609 2.8422v9.0249h-3.9305v-8.3236c.0061-.8674-.2155-1.5441-.6646-2.0301-.4491-.4922-1.0674-.7382-1.8547-.7382-.529 0-.9966.1138-1.4026.3414-.4.2276-.7137.5598-.9413.9966-.2216.4306-.3352.9505-.3415 1.5595zm17.4572 8.425c-1.077 0-2.052-.2767-2.926-.8305-.867-.5598-1.556-1.381-2.067-2.4638-.504-1.0889-.756-2.4238-.756-4.0049 0-1.6241.261-2.9744.784-4.051.523-1.0828 1.218-1.8917 2.086-2.427.873-.5413 1.83-.812 2.869-.812.794 0 1.455.1353 1.984.406.536.2646.966.5968 1.292.9966.333.3937.585.7813.757 1.1627h.12v-7.10542h3.922v18.89872h-3.876v-2.2701h-.166c-.185.3937-.446.7844-.784 1.172-.333.3814-.766.6981-1.301.9504-.53.2523-1.176.3783-1.938.3783zm1.246-3.1282c.633 0 1.168-.1722 1.605-.5167.443-.3507.781-.8398 1.015-1.4673.24-.6275.36-1.3626.36-2.2054s-.117-1.5749-.351-2.1963c-.233-.6213-.572-1.1012-1.015-1.4395-.442-.3384-.981-.5076-1.614-.5076-.646 0-1.191.1754-1.634.526-.443.3507-.778.8367-1.006 1.458-.227.6214-.341 1.3412-.341 2.1594 0 .8243.114 1.5533.341 2.187.234.6275.569 1.1196 1.006 1.4764.443.3507.988.526 1.634.526zm10.051 2.8976v-14.174h3.931v14.174zm1.984-16.00116c-.584 0-1.086-.19379-1.504-.58137-.418-.39372-.628-.86435-.628-1.41187 0-.54137.21-1.00584.628-1.39339.418-.39373.916-.59059 1.495-.59059.59 0 1.092.19686 1.504.59059.418.38755.627.85202.627 1.39339 0 .54752-.209 1.01815-.627 1.41187-.412.38758-.911.58137-1.495.58137zm12.718 1.82716v2.9529h-8.748v-2.9529zm-6.745 14.174v-15.19835c0-1.02737.2-1.8794.6-2.55611.406-.67671.959-1.18426 1.66-1.52261.702-.33836 1.498-.50753 2.39-.50753.603 0 1.154.04613 1.652.13842.505.09227.88.17532 1.126.24914l-.701 2.95293c-.154-.04922-.345-.09535-.572-.13842-.222-.04307-.449-.06459-.683-.06459-.578 0-.981.13534-1.209.40602-.228.26454-.341.63672-.341 1.11657v15.12453zm11.574 5.2876c-.499 0-.966-.04-1.403-.1199-.431-.0739-.787-.1661-1.07-.277l.886-2.9437c.695.2154 1.279.2706 1.753.1663.48-.0986.858-.4678 1.135-1.1075l.231-.5998-5.085-14.58h4.134l2.935 10.409h.147l2.962-10.409 4.162.0184-5.509 15.6874c-.264.7567-.624 1.415-1.08 1.9747-.449.5661-1.018 1.0029-1.707 1.3104-.689.3137-1.519.4707-2.491.4707z",fill:"#000"}),(0,At.jsx)("path",{d:"m18.9306 6.53613h-17.994321v18.85127h17.994321z",fill:"#000"}),(0,At.jsx)("path",{d:"m25.5.823639h-12.2819v12.281861h12.2819z",fill:"#37c2a2"})]})}),(0,At.jsx)("h3",{className:"text-xl md:leading-3",children:(0,It.__)("You're out of imports","extendify-sdk")}),(0,At.jsx)("p",{className:"text-sm text-black",children:(0,It.__)("Sign up today and get unlimited access to our entire collection of patterns and page layouts.","extendify-sdk")}),(0,At.jsx)("div",{children:(0,At.jsxs)(hi,{tagName:"a",target:"_blank",className:"m-auto mt-10",href:"https://extendify.com/pricing/?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=no-imports-modal&utm_content=get-unlimited-imports"),rel:"noreferrer",children:[(0,It.__)("Get Unlimited Imports","extendify-sdk"),(0,At.jsx)("svg",{fill:"none",height:"24",viewBox:"0 0 25 24",width:"25",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"m10.3949 8.7864 5.5476-.02507m0 0-.0476 5.52507m.0476-5.52507c-2.357 2.35707-5.4183 5.41827-7.68101 7.68097",stroke:"currentColor",strokeWidth:"1.5"})})]})})]}),right:(0,At.jsxs)("div",{className:"space-y-2",children:[(0,At.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,At.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49271 18.0092C6.97815 17.1176 7.28413 15.9755 8.17569 15.4609C9.06724 14.946 10.2094 15.252 10.7243 16.1435C11.2389 17.0355 10.9329 18.1772 10.0413 18.6922C9.14978 19.2071 8.00764 18.9011 7.49271 18.0092V18.0092Z",fill:"currentColor"}),(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5073 6.12747C17.0218 7.01903 16.7158 8.16117 15.8243 8.67573C14.9327 9.19066 13.7906 8.88467 13.2757 7.99312C12.7611 7.10119 13.0671 5.95942 13.9586 5.44449C14.8502 4.92956 15.9923 5.23555 16.5073 6.12747V6.12747Z",fill:"currentColor"}),(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60135 11.1355C5.11628 10.2439 6.25805 9.93793 7.14998 10.4525C8.04153 10.9674 8.34752 12.1096 7.83296 13.0011C7.31803 13.8927 6.17588 14.1987 5.28433 13.6841C4.39278 13.1692 4.08679 12.0274 4.60135 11.1355V11.1355Z",fill:"currentColor"}),(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3986 13.0011C18.8837 13.8927 17.7419 14.1987 16.85 13.6841C15.9584 13.1692 15.6525 12.027 16.167 11.1355C16.682 10.2439 17.8241 9.93793 18.7157 10.4525C19.6072 10.9674 19.9132 12.1092 19.3986 13.0011V13.0011Z",fill:"currentColor"}),(0,At.jsx)("path",{d:"M9.10857 8.92594C10.1389 8.92594 10.9742 8.09066 10.9742 7.06029C10.9742 6.02992 10.1389 5.19464 9.10857 5.19464C8.0782 5.19464 7.24292 6.02992 7.24292 7.06029C7.24292 8.09066 8.0782 8.92594 9.10857 8.92594Z",fill:"currentColor"}),(0,At.jsx)("path",{d:"M14.8913 18.942C15.9217 18.942 16.7569 18.1067 16.7569 17.0763C16.7569 16.046 15.9217 15.2107 14.8913 15.2107C13.8609 15.2107 13.0256 16.046 13.0256 17.0763C13.0256 18.1067 13.8609 18.942 14.8913 18.942Z",fill:"currentColor"}),(0,At.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3841 13.0011C9.86951 12.1096 10.1755 10.9674 11.067 10.4525C11.9586 9.93793 13.1007 10.2439 13.6157 11.1355C14.1302 12.0274 13.8242 13.1692 12.9327 13.6841C12.0411 14.1987 10.899 13.8927 10.3841 13.0011V13.0011Z",fill:"currentColor"})]}),(0,At.jsx)("span",{className:"text-sm leading-none",children:(0,It.__)("Access to 100's of Patterns","extendify-sdk")})]}),(0,At.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,At.jsx)("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,At.jsx)("path",{d:"m6 4.75h12c.6904 0 1.25.55964 1.25 1.25v12c0 .6904-.5596 1.25-1.25 1.25h-12c-.69036 0-1.25-.5596-1.25-1.25v-12c0-.69036.55964-1.25 1.25-1.25z"}),(0,At.jsx)("path",{d:"m9.25 19v-14"})]})}),(0,At.jsx)("span",{className:"text-sm leading-none",children:(0,It.__)("Beautiful full page layouts","extendify-sdk")})]}),(0,At.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,At.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("circle",{cx:"12",cy:"12",r:"7.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,At.jsx)("circle",{cx:"12",cy:"12",r:"4.25",stroke:"currentColor",strokeWidth:"1.5"}),(0,At.jsx)("circle",{cx:"11.9999",cy:"12.2",r:"6",transform:"rotate(-45 11.9999 12.2)",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"1.5 4"})]}),(0,At.jsx)("span",{className:"text-sm leading-none",children:(0,It.__)("Fast and friendly support","extendify-sdk")})]}),(0,At.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,At.jsx)("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"m11.7758 3.45425c.0917-.18582.3567-.18581.4484 0l2.3627 4.78731c.0364.07379.1068.12493.1882.13676l5.2831.76769c.2051.02979.287.28178.1386.42642l-3.8229 3.72637c-.0589.0575-.0858.1402-.0719.2213l.9024 5.2618c.0351.2042-.1793.36-.3627.2635l-4.7254-2.4842c-.0728-.0383-.1598-.0383-.2326 0l-4.7254 2.4842c-.18341.0965-.39776-.0593-.36274-.2635l.90247-5.2618c.01391-.0811-.01298-.1638-.0719-.2213l-3.8229-3.72637c-.14838-.14464-.0665-.39663.13855-.42642l5.28312-.76769c.08143-.01183.15182-.06297.18823-.13676z",fill:"currentColor"})}),(0,At.jsx)("span",{className:"text-sm leading-none",children:(0,It.__)("14-Day guarantee","extendify-sdk")})]})]})})]})}function Ni(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Ai(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Ni(o,r,i,s,a,"next",e)}function a(e){Ni(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ti(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mi(){var e=tr(),t=K((function(e){return e.templates})),n=K((function(e){return e.setActive})),i=K((function(e){return e.appendTemplates})),o=Pi((0,r.useState)(""),2),s=o[0],a=o[1],l=Pi((0,r.useState)(!1),2),c=l[0],u=l[1],d=Pi(er(),2),f=d[0],p=d[1],h=K((function(e){return e.updateSearchParams})),m=K((function(e){return e.searchParams})),x=(0,r.useRef)(K.getState().nextPage),y=(0,r.useRef)(K.getState().searchParams);(0,r.useEffect)((function(){return K.subscribe((function(e){return x.current=e}),(function(e){return e.nextPage}))}),[]),(0,r.useEffect)((function(){return K.subscribe((function(e){return y.current=e}),(function(e){return e.searchParams}))}),[]);var v=(0,r.useCallback)(Ai(w().mark((function t(){var n,r;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a(""),u(!1),t.next=4,Dn(y.current,{offset:x.current}).catch((function(e){console.error(e),a(e&&e.message?e.message:(0,It.__)("Unknown error occured. Check browser console or contact support.","extendify-sdk"))}));case 4:if(r=t.sent,e.current){t.next=7;break}return t.abrupt("return");case 7:null!=r&&null!==(n=r.error)&&void 0!==n&&n.length&&a(null==r?void 0:r.error),null!=r&&r.records&&m===y.current&&(K.setState({nextPage:r.offset}),i(r.records),u(r.records.length<=0));case 9:case"end":return t.stop()}}),t)}))),[m,i,e]);if((0,r.useEffect)((function(){Object.keys(y.current.taxonomies).length&&(K.getState().skipNextFetch?K.setState({skipNextFetch:!1}):v())}),[v,y]),(0,r.useEffect)((function(){p&&v()}),[p,v]),s.length)return(0,At.jsxs)("div",{className:"text-left",children:[(0,At.jsx)("h2",{className:"text-left",children:(0,It.__)("Server error","extendify-sdk")}),(0,At.jsx)("code",{className:"block max-w-xl p-4 mb-4",style:{minHeight:"10rem"},children:s}),(0,At.jsx)(kt.Button,{isTertiary:!0,onClick:function(){h({taxonomies:{},search:""}),v()},children:(0,It.__)("Press here to reload experience")})]});if(c)return(0,At.jsx)("h2",{className:"text-left",children:(0,It.__)("No results found.","extendify-sdk")});if(!t.length)return(0,At.jsx)("div",{className:"flex items-center justify-center w-full sm:mt-64",children:(0,At.jsx)(kt.Spinner,{})});return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(pr,{breakpointCols:{default:3,1320:2,860:1,599:2,400:1},className:"flex -ml-8 w-auto pb-40",columnClassName:"pl-8 bg-clip-padding",children:t.map((function(e){return"pattern"===m.type?(0,At.jsx)(Ei,{template:e},e.id):(0,At.jsx)(or,{template:e,setActiveTemplate:function(){return n(e)},imageLoaded:function(){}},e.id)}))}),K.getState().nextPage&&(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"-translate-y-full flex flex-col h-80 items-end justify-end my-2 relative transform z-0 text",ref:f,style:{zIndex:-1}}),(0,At.jsx)("div",{className:"my-4",children:(0,At.jsx)(kt.Spinner,{})})]})]})}const Ii=(0,At.jsxs)(bi,{viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)(vi,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"currentColor",strokeWidth:"1.25",fill:"none"}),(0,At.jsx)(vi,{d:"M6.34684 9.72526C6.34684 9.18224 6.77716 8.74168 7.32018 8.74168C7.8632 8.74168 8.30377 9.18224 8.30377 9.72526C8.30377 10.2683 7.8632 10.6986 7.32018 10.6986C6.77716 10.6986 6.34684 10.2683 6.34684 9.72526Z",fill:"currentColor"}),(0,At.jsx)(vi,{d:"M7.9759 7.11261C7.93492 7.47121 7.67878 7.76834 7.32018 7.76834C6.95134 7.76834 6.70544 7.46097 6.6747 7.11261L6.34684 4.1721C6.28537 3.67006 6.81814 3.19876 7.32018 3.19876C7.82222 3.19876 8.35499 3.67006 8.30377 4.1721L7.9759 7.11261Z",fill:"currentColor"})]});const Li=(0,At.jsxs)(bi,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)(vi,{d:"m15.7919 7.73624h-11.67902v12.23516h11.67902z",fill:"#1e1e1e"}),(0,At.jsx)(vi,{d:"m20 4h-8v8h8z",fill:"#37c2a2"})]});const Ri=(0,At.jsxs)(bi,{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)(vi,{d:"M7.32457 0.907043C3.98785 0.907043 1.2829 3.61199 1.2829 6.94871C1.2829 10.2855 3.98785 12.9904 7.32457 12.9904C10.6613 12.9904 13.3663 10.2855 13.3663 6.94871C13.3663 3.61199 10.6613 0.907043 7.32457 0.907043V0.907043Z",stroke:"white",strokeWidth:"1.25"}),(0,At.jsx)(vi,{d:"M7.32458 10.0998L4.82458 7.59977M7.32458 10.0998V3.79764V10.0998ZM7.32458 10.0998L9.82458 7.59977L7.32458 10.0998Z",stroke:"white",strokeWidth:"1.25"})]});const Fi=(0,At.jsx)(bi,{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)(vi,{clipRule:"evenodd",d:"m13 4c4.9545 0 9 4.04545 9 9 0 4.9545-4.0455 9-9 9-4.95455 0-9-4.0455-9-9 0-4.95455 4.04545-9 9-9zm5.0909 13.4545c-1.9545 3.8637-8.22726 3.8637-10.22726 0-.04546-.1818-.04546-.3636 0-.5454 2-3.8636 8.27276-3.8636 10.22726 0 .0909.1818.0909.3636 0 .5454zm-5.0909-8.90905c-1.2727 0-2.3182 1.04546-2.3182 2.31815 0 1.2728 1.0455 2.3182 2.3182 2.3182s2.3182-1.0454 2.3182-2.3182c0-1.27269-1.0455-2.31815-2.3182-2.31815z",fill:"currentColor",fillRule:"evenodd"})});const Di=(0,At.jsxs)(bi,{fill:"none",viewBox:"0 0 151 148",width:"151",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)(xi,{cx:"65.6441",cy:"66.6114",fill:"#0b4a43",r:"65.3897"}),(0,At.jsxs)(yi,{fill:"#cbc3f5",stroke:"#0b4a43",children:[(0,At.jsx)(vi,{d:"m61.73 11.3928 3.0825 8.3304.1197.3234.3234.1197 8.3304 3.0825-8.3304 3.0825-.3234.1197-.1197.3234-3.0825 8.3304-3.0825-8.3304-.1197-.3234-.3234-.1197-8.3304-3.0825 8.3304-3.0825.3234-.1197.1197-.3234z",strokeWidth:"1.5"}),(0,At.jsx)(vi,{d:"m84.3065 31.2718c0 5.9939-12.4614 22.323-18.6978 22.323h-17.8958v56.1522c3.5249.9 11.6535 0 17.8958 0h6.2364c11.2074 3.33 36.0089 7.991 45.5529 0l-9.294-62.1623c-2.267-1.7171-5.949-6.6968-2.55-12.8786 3.4-6.1817 2.55-18.0406 0-24.5756-1.871-4.79616-8.3289-8.90882-14.4482-8.90882s-7.0825 4.00668-6.7993 6.01003z",strokeWidth:"1.75"}),(0,At.jsx)(gi,{height:"45.5077",rx:"9.13723",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 191.5074 -96.0026)",width:"18.2745",x:"143.755",y:"47.7524"}),(0,At.jsx)(gi,{height:"42.3038",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 241.97 -50.348)",width:"17.4735",x:"146.159",y:"95.811"}),(0,At.jsx)(gi,{height:"55.9204",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 213.1347 -85.5913)",width:"17.4735",x:"149.363",y:"63.7717"}),(0,At.jsx)(gi,{height:"51.1145",rx:"8.73674",strokeWidth:"1.75",transform:"matrix(0 1 -1 0 229.1545 -69.5715)",width:"17.4735",x:"149.363",y:"79.7915"}),(0,At.jsx)(vi,{d:"m75.7483 105.349c.9858-25.6313-19.2235-42.0514-32.8401-44.0538v12.0146c8.5438 1.068 24.8303 9.7642 24.8303 36.0442 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"}),(0,At.jsx)(vi,{d:"m68.5388 109.354c.9858-25.6312-19.2234-42.0513-32.8401-44.0537v12.0147c8.5438 1.0679 24.8303 9.7641 24.8303 36.044 0 23.228 19.4905 33.374 29.6362 33.641v-10.413s-22.6122-1.602-21.6264-27.233z",strokeWidth:"1.75"})]})]});const Bi=function(){var e=B((function(e){return e.remainingImports})),t=B((function(e){return e.allowedImports})),n=e()>0?"has-imports":"no-imports",r="has-imports"===n?"bg-extendify-main hover:bg-extendify-main-dark":"bg-extendify-alert",i="has-imports"===n?Ri:Ii;return(0,At.jsxs)("a",{target:"_blank",rel:"noreferrer",className:Ot()(r,"flex w-full no-underline button-focus -mt-10 text-sm justify-between py-3 px-4 text-white rounded"),href:"https://www.extendify.com/pricing/?utm_source=".concat(encodeURIComponent(window.extendifySdkData.sdk_partner),"&utm_medium=library&utm_campaign=import-counter&utm_content=upgrade&utm_term=").concat(n),children:[(0,At.jsxs)("div",{className:"flex items-center space-x-2 no-underline",children:[(0,At.jsx)(mi,{icon:i,size:14}),(0,At.jsx)("span",{children:(0,It.sprintf)((0,It.__)("%s/%s Imports","extendify-sdk"),e(),Number(t))})]}),(0,At.jsx)("span",{className:"text-white no-underline font-medium outline-none",children:(0,It.__)("Upgrade","extendify-sdk")})]})};function Ui(e){var t=e.children,n=B((function(e){return e.apiKey}));return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsxs)("aside",{className:"flex-shrink-0 sm:pl-6 py-0 sm:py-6 relative",children:[(0,At.jsx)("div",{className:"sm:w-56 lg:w-64 sticky flex flex-col lg:h-full",children:t[0]}),(0,At.jsx)("div",{className:"hidden sm:flex flex-col absolute bottom-0 mb-6 w-64 text-left space-y-4",children:!n.length&&(0,At.jsx)(Bi,{})})]}),(0,At.jsx)("main",{id:"extendify-templates",className:"w-full smp:l-12 sm:pt-6 h-full overflow-hidden",children:t[1]})]})}function qi(){var e=K((function(e){return e.updateType})),t=Y((function(e){return e.currentType?e.currentType:y}));return(0,At.jsxs)("div",{className:"text-left w-full bg-white px-6 sm:px-0 pb-4 sm:pb-8 mt-px border-b sm:border-0",children:[(0,At.jsx)("h4",{className:"sr-only",children:(0,It.__)("Type select","extendify-sdk")}),(0,At.jsxs)("button",{type:"button",className:Ot()({"cursor-pointer p-3.5 space-x-2 inline-flex items-center border border-black button-focus":!0,"bg-gray-900 text-white":"pattern"===t,"bg-transparent text-black":"pattern"!==t}),onClick:function(){return e("pattern")},children:[(0,At.jsx)("svg",{width:"17",height:"13",viewBox:"0 0 17 13",className:"fill-current",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M1 13H16C16.55 13 17 12.55 17 12V8C17 7.45 16.55 7 16 7H1C0.45 7 0 7.45 0 8V12C0 12.55 0.45 13 1 13ZM0 1V5C0 5.55 0.45 6 1 6H16C16.55 6 17 5.55 17 5V1C17 0.45 16.55 0 16 0H1C0.45 0 0 0.45 0 1Z"})}),(0,At.jsx)("span",{className:"",children:(0,It.__)("Patterns","extendify-sdk")})]}),(0,At.jsxs)("button",{type:"button",className:Ot()({"cursor-pointer p-3.5 px-4 space-x-2 inline-flex items-center border border-black focus:ring-2 focus:ring-wp-theme-500 ring-offset-1 outline-none -ml-px":!0,"bg-gray-900 text-white":"template"===t,"bg-transparent text-black":"template"!==t}),onClick:function(){return e("template")},children:[(0,At.jsx)("svg",{width:"17",height:"13",viewBox:"0 0 17 13",className:"fill-current",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M7 13H10C10.55 13 11 12.55 11 12V8C11 7.45 10.55 7 10 7H7C6.45 7 6 7.45 6 8V12C6 12.55 6.45 13 7 13ZM1 13H4C4.55 13 5 12.55 5 12V1C5 0.45 4.55 0 4 0H1C0.45 0 0 0.45 0 1V12C0 12.55 0.45 13 1 13ZM13 13H16C16.55 13 17 12.55 17 12V8C17 7.45 16.55 7 16 7H13C12.45 7 12 7.45 12 8V12C12 12.55 12.45 13 13 13ZM6 1V5C6 5.55 6.45 6 7 6H16C16.55 6 17 5.55 17 5V1C17 0.45 16.55 0 16 0H7C6.45 0 6 0.45 6 1Z"})}),(0,At.jsx)("span",{className:"",children:(0,It.__)("Page layouts","extendify-sdk")})]})]})}function Vi(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function zi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $i(e){var t=e.actionCallback,n=e.initialFocus,i=B((function(e){return e.apiKey.length})),o=zi((0,r.useState)(""),2),s=o[0],a=o[1],l=zi((0,r.useState)(""),2),c=l[0],u=l[1],d=zi((0,r.useState)(""),2),f=d[0],p=d[1],h=zi((0,r.useState)("info"),2),m=h[0],x=h[1],y=zi((0,r.useState)(!1),2),v=y[0],g=y[1],b=zi((0,r.useState)(!1),2),j=b[0],k=b[1],S=(0,r.useRef)(null),O=(0,r.useRef)(null);(0,r.useEffect)((function(){return a(B.getState().email),function(){return x("info")}}),[]),(0,r.useEffect)((function(){var e;j&&(null==S||null===(e=S.current)||void 0===e||e.focus())}),[j]);var C=function(){var e,t=(e=w().mark((function e(t){var n,r,i,o,a;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),g(!0),p(""),e.next=5,_(s,c);case 5:if(n=e.sent,r=n.token,i=n.error,o=n.exception,void 0===(a=n.message)){e.next=15;break}return x("error"),g(!1),p(a.length?a:"Error: Are you interacting with the wrong server?"),e.abrupt("return");case 15:if(!i&&!o){e.next=20;break}return x("error"),g(!1),p(i.length?i:o),e.abrupt("return");case 20:if(r&&"string"==typeof r){e.next=25;break}return x("error"),g(!1),p((0,It.__)("Something went wrong","extendify-sdk")),e.abrupt("return");case 25:x("success"),p("Success!"),k(!0),g(!1),B.setState({email:s,apiKey:r});case 30:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Vi(o,r,i,s,a,"next",e)}function a(e){Vi(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e){return t.apply(this,arguments)}}();return j?(0,At.jsxs)("section",{className:"w-80 space-y-8 text-center pt-2 pb-4",children:[(0,At.jsx)(mi,{icon:Di,size:148}),(0,At.jsx)("p",{className:"text-lg text-extendify-black text-center leading-extra-tight font-semibold",children:(0,It.__)("You've signed in to Extendify","extendify-sdk")}),(0,At.jsx)(kt.Button,{ref:S,className:"px-4 p-2 cursor-pointer text-center rounded bg-extendify-main text-white",onClick:t,children:(0,It.__)("View patterns","extendify-sdk")})]}):i?(0,At.jsxs)("section",{className:"space-y-8 w-full pb-2",children:[(0,At.jsx)("p",{className:"text-base text-extendify-black leading-extra-tight",children:(0,It.__)("Account","extendify-sdk")}),(0,At.jsxs)("div",{className:"flex justify-between items-center",children:[(0,At.jsxs)("div",{className:"flex items-center space-x-2 -ml-2",children:[(0,At.jsx)(mi,{icon:Fi,size:48}),(0,At.jsx)("p",{className:"text-extendify-black",children:null!=s&&s.length?s:(0,It.__)("Logged In","extendify-sdk")})]}),window.location.search.indexOf("DEVMODE")>-1&&(0,At.jsx)(kt.Button,{className:"px-4 py-3 cursor-pointer text-center rounded bg-extendify-main text-white",onClick:function(){u(""),B.setState({apiKey:""}),setTimeout((function(){var e;null==O||null===(e=O.current)||void 0===e||e.focus()}),0)},children:(0,It.__)("Sign out","extendify-sdk")})]})]}):(0,At.jsxs)("section",{className:"w-80 text-left space-y-8 pb-6",children:[(0,At.jsxs)("div",{children:[(0,At.jsx)("p",{className:"text-lg text-extendify-black text-center leading-extra-tight font-semibold",children:(0,It.__)("Sign in to Extendify","extendify-sdk")}),(0,At.jsxs)("p",{className:"text-sm text-extendify-gray text-center space-x-1 leading-extra-tight",children:[(0,At.jsx)("span",{children:(0,It.__)("Don't have an account?","extendify-sdk")}),(0,At.jsx)("a",{href:"https://extendify.com/pricing?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=sign-up"),target:"_blank",className:"underline hover:no-underline text-extendify-gray",rel:"noreferrer",children:(0,It.__)("Sign up","extendify-sdk")})]})]}),(0,At.jsxs)("form",{onSubmit:C,className:"space-y-2",children:[(0,At.jsxs)("div",{className:"flex items-center",children:[(0,At.jsx)("label",{className:"sr-only",htmlFor:"extendifysdk-login-email",children:(0,It.__)("Email address","extendify-sdk")}),(0,At.jsx)("input",{ref:n,id:"extendifysdk-login-email",name:"extendifysdk-login-email",type:"email",className:"border-2 p-2 w-full rounded",placeholder:(0,It.__)("Email address","extendify-sdk"),value:s.length?s:"",onChange:function(e){return a(e.target.value)}})]}),(0,At.jsxs)("div",{className:"flex items-center",children:[(0,At.jsx)("label",{className:"sr-only",htmlFor:"extendifysdk-login-license",children:(0,It.__)("License key","extendify-sdk")}),(0,At.jsx)("input",{ref:O,id:"extendifysdk-login-license",name:"extendifysdk-login-license",type:"text",className:"border-2 p-2 w-full rounded",placeholder:(0,It.__)("License key","extendify-sdk"),value:c,onChange:function(e){return u(e.target.value)}})]}),(0,At.jsx)("div",{className:"pt-2 flex justify-center",children:(0,At.jsxs)("button",{type:"submit",className:"relative p-2 py-3 w-64 max-w-full flex justify-center cursor-pointer text-center rounded bg-extendify-main text-base text-white ",children:[(0,At.jsx)("span",{children:(0,It.__)("Sign In","extendify-sdk")}),v&&(0,At.jsx)("div",{className:"absolute right-2.5",children:(0,At.jsx)(kt.Spinner,{})})]})}),f&&(0,At.jsx)("div",{className:Ot()({"border-gray-900 text-gray-900":"info"===m,"border-wp-alert-red text-wp-alert-red":"error"===m,"border-extendify-main text-extendify-main":"success"===m}),children:f}),(0,At.jsx)("div",{className:"text-center pt-4",children:(0,At.jsx)("a",{target:"_blank",rel:"noreferrer",href:"https://extendify.com/guides/sign-in?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sign-in-form&utm_content=need-help"),className:"underline hover:no-underline text-sm text-extendify-gray",children:(0,It.__)("Need Help?","extendify-sdk")})})]})]})}function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){Zi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gi=function(e){return(0,At.jsx)(kt.Button,Ji(Ji({},e),{},{icon:wi,className:"text-extendify-black opacity-75 hover:opacity-100",showTooltip:!1,label:(0,It.__)("Close dialog","extendify-sdk")}))},Ki=(0,r.forwardRef)((function(e,t){var n=e.isOpen,i=e.heading,o=e.onRequestClose,s=e.children,a=(0,r.useRef)(null);return(0,At.jsx)(Re.Root,{appear:!0,show:n,as:r.Fragment,children:(0,At.jsx)(jt,{as:"div",static:!0,open:n,initialFocus:null!=t?t:a,className:"extendify-sdk",onClose:o,children:(0,At.jsxs)("div",{className:"fixed z-high inset-0 flex",children:[(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,At.jsx)(jt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-30 transition-opacity"})}),(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,At.jsx)("div",{className:"m-auto relative w-full",children:(0,At.jsxs)("div",{className:"bg-white shadow-modal items-center justify-center m-auto max-w-lg relative rounded-sm w-full",children:[i?(0,At.jsxs)("div",{className:"border-b flex justify-between items-center leading-none pl-6 py-2 pr-3",children:[(0,At.jsx)("span",{className:"text-base text-extendify-black whitespace-nowrap",children:i}),(0,At.jsx)(Gi,{onClick:o})]}):(0,At.jsx)("div",{className:"absolute block px-6 py-4 top-0 right-0 ",children:(0,At.jsx)(Gi,{ref:a,onClick:o})}),(0,At.jsx)("div",{children:s})]})})})]})})})}));function Yi(e){var t=e.isOpen,n=e.onClose,i=(0,r.useRef)(null);return(0,At.jsx)(Ki,{heading:(0,It.__)("Settings","extendify-sdk"),isOpen:t,ref:i,onRequestClose:n,children:(0,At.jsx)("div",{className:"flex p-6 justify-center",children:(0,At.jsx)($i,{initialFocus:i,actionCallback:n})})})}function Xi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eo(e){var t=e.className,n=Y((function(e){return e.setOpen})),i=Xi((0,r.useState)(!1),2),o=i[0],s=i[1];return(0,At.jsx)("div",{className:t,children:(0,At.jsxs)("div",{className:"flex justify-between items-center px-6 sm:pl-6 sm:pr-12 h-full",children:[(0,At.jsx)("div",{className:"flex space-x-12 h-full",children:(0,At.jsx)("div",{className:"bg-transparent flex items-center space-x-1.5 lg:w-64 -ml-1",children:(0,At.jsx)(mi,{icon:Li,size:40})})}),(0,At.jsxs)("div",{className:"space-x-2 transform sm:translate-x-6",children:[(0,At.jsx)(kt.Button,{onClick:function(){return s(!0)},icon:(0,At.jsx)(mi,{icon:Fi,size:24}),label:(0,It.__)("Settings","extendify-sdk")}),o&&(0,At.jsx)(Yi,{isOpen:o,onClose:function(){return s(!1)}}),(0,At.jsx)(kt.Button,{onClick:function(){return n(!1)},icon:(0,At.jsx)(mi,{icon:wi,size:24}),label:(0,It.__)("Close library","extendify-sdk")})]})]})})}function to(){return(0,At.jsxs)("div",{className:"bg-white h-full flex flex-col items-center relative max-w-screen-4xl mx-auto",children:[(0,At.jsx)(eo,{className:"w-full h-16 border-solid border-0 border-b border-gray-300 flex-shrink-0"}),(0,At.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,At.jsx)("button",{onClick:function(){return document.getElementById("extendify-templates").querySelector("button").focus()},className:"sr-only focus:not-sr-only focus:text-blue-500",children:(0,It.__)("Skip to content","extendify-sdk")}),(0,At.jsx)("div",{className:"sm:flex sm:space-x-12 relative bg-white mx-auto max-w-screen-4xl h-full",children:(0,At.jsxs)(Ui,{children:[(0,At.jsx)(An,{}),(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(qi,{}),(0,At.jsx)("div",{className:"relative h-full z-30 bg-white",children:(0,At.jsx)("div",{className:"absolute z-20 inset-0 lg:static h-screen overflow-y-auto pt-4 sm:pt-0 px-6 sm:pl-0 sm:pr-8 pb-40",children:(0,At.jsx)(Mi,{})})})]})]})})]})]})}function no(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ro(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var io=oi(["NeedsRegistrationModal","hasRequiredPlugins","hasPluginsActivated"]);function oo(e){var t=e.template,n=(0,r.useRef)(null),i=K((function(e){return e.activeTemplateBlocks})),o=B((function(e){return e.canImport})),s=B((function(e){return e.apiKey})),a=Y((function(e){return e.setOpen})),l=no((0,r.useState)(!1),2),c=l[0],u=l[1],d=no((0,r.useState)(!1),2),f=d[0],p=d[1],h=Or((function(e){return e.setWanted}));(0,r.useEffect)((function(){return io.check(t).then((function(){return p(!0)})),function(){return io.reset()&&p(!1)}}),[t]),(0,r.useEffect)((function(){!c&&n.current&&n.current.focus()}),[n,c,f]);var m=function(){Un(t),u(!0),h(t),si(io.stack).then((function(){setTimeout((function(){ui(i,t).then((function(){return a(!1)})).then((function(){return(0,r.render)((0,At.jsx)(Fo,{}),document.getElementById("extendify-root"))})).then((function(){return setTimeout((function(){return Y.setState({currentPage:"main"})}),500)}))}),100)}))};return f&&Object.keys(i).length?s||o()?c?(0,At.jsx)("button",{type:"button",disabled:!0,className:"components-button is-secondary text-lg sm:text-2xl h-auto py-1.5 px-3 sm:py-2.5 sm:px-5",onClick:function(){},children:(0,It.__)("Importing...","extendify-sdk")}):(0,At.jsx)("button",{ref:n,type:"button",className:"components-button is-primary text-lg sm:text-2xl h-auto py-1.5 px-3 sm:py-2.5 sm:px-5",onClick:function(){return m()},children:(0,It.sprintf)((0,It.__)("Add %s","extendify-sdk"),t.fields.type)}):(0,At.jsx)("a",{ref:n,className:"button-extendify-main text-lg sm:text-2xl py-1.5 px-3 sm:py-2.5 sm:px-5",target:"_blank",href:"https://extendify.com/pricing?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sign_up&utm_content=single_page"),rel:"noreferrer",children:(0,It.__)("Sign up now","extendify-sdk")}):""}function so(e){var t=e.categories,n=e.styles,r=e.types,i=e.requiredPlugins;return(0,At.jsxs)(At.Fragment,{children:[t&&(0,At.jsxs)("div",{className:"w-full pb-4",children:[(0,At.jsx)("h3",{className:"text-sm m-0 mb-2",children:(0,It.__)("Categories:","extendify-sdk")}),(0,At.jsx)("div",{children:t.join(", ")})]}),n&&(0,At.jsxs)("div",{className:"w-full py-4",children:[(0,At.jsx)("h3",{className:"text-sm m-0 my-2",children:(0,It.__)("Styles:","extendify-sdk")}),(0,At.jsx)("div",{children:n.join(", ")})]}),r&&(0,At.jsxs)("div",{className:"w-full py-4",children:[(0,At.jsx)("h3",{className:"text-sm m-0 my-2",children:(0,It.__)("Types:","extendify-sdk")}),(0,At.jsx)("div",{children:r.join(", ")})]}),i.filter((function(e){return"editorplus"!==e})).length>0&&(0,At.jsxs)("div",{className:"pt-4 w-full",children:[(0,At.jsx)("h3",{className:"text-sm m-0 my-2",children:(0,It.__)("Required Plugins:","extendify-sdk")}),(0,At.jsx)("div",{children:i.filter((function(e){return"editorplus"!==e})).map((function(e){return Et(e)})).join(", ")})]}),(0,At.jsx)("div",{className:"py-4 mt-4",children:(0,At.jsx)("a",{href:"https://extendify.com/what-happens-when-a-template-is-added?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sidebar"),rel:"noreferrer",target:"_blank",children:(0,It.__)("What happens when a page layout is added?","extendify-sdk")})})]})}function ao(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return co(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uo=new Map;function fo(e){var t,n,i,o,s,a,l,c=e.template,u=c.fields,d=u.tax_categories,f=u.required_plugins,p=u.tax_style,h=u.tax_pattern_types,m=B((function(e){return e.apiKey})),x=lo((0,r.useState)([]),2),y=x[0],v=x[1],g=lo((0,r.useState)([]),2),b=g[0],j=g[1],k=tr(),S=K((function(e){return e.setActive})),O=function(e){v([]),j([]),requestAnimationFrame((function(){return S(e)}))},_=(0,r.useCallback)(function(){var e,t=(e=w().mark((function e(t,n){var r,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="".concat(c.id,"|").concat(t,"|").concat(n),!uo.has(r)){e.next=3;break}return e.abrupt("return",uo.get(r));case 3:return e.next=5,Bn(c,t,n);case 5:return i=e.sent,uo.set(r,i),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ao(o,r,i,s,a,"next",e)}function a(e){ao(o,r,i,s,a,"throw",e)}s(void 0)}))});return function(e,n){return t.apply(this,arguments)}}(),[c]);return(0,r.useEffect)((function(){qn(c)}),[c]),(0,r.useEffect)((function(){_("related","pattern").then((function(e){k.current&&v(e)}))}),[c,_,k]),(0,At.jsxs)("div",{className:"flex flex-col min-h-screen bg-white sm:min-h-0 items-start overflow-y-auto h-full sm:pr-8 lg:pl-px lg:-ml-px",children:[(0,At.jsxs)("div",{className:"lg:sticky top-0 bg-white flex flex-col lg:flex-row items-start justify-start lg:items-center lg:justify-between w-full max-w-screen-xl lg:border-b border-gray-300",children:[(0,At.jsx)("div",{className:"text-left m-0 h-full px-6 sm:p-0",children:(0,At.jsx)("h1",{className:"leading-tight text-left mb-2.5 mt-0 sm:text-3xl font-normal",children:c.fields.display_title})}),(0,At.jsx)("div",{className:Ot()({"inline-flex sm:top-auto right-0 m-6 sm:m-0 sm:my-6 space-x-3":!0,"top-16 mt-5":!m.length,"top-0":m.length>0}),children:(0,At.jsx)(oo,{template:c})})]}),(0,At.jsx)("div",{className:"max-w-screen-xl sm:w-full sm:m-0 sm:mb-8 m-6 border lg:border-t-0 border-gray-300 m-46",children:(0,At.jsx)("img",{className:"max-w-full w-full block",src:null!==(t=null==c||null===(n=c.fields)||void 0===n||null===(i=n.screenshot[0])||void 0===i||null===(o=i.thumbnails)||void 0===o||null===(s=o.full)||void 0===s?void 0:s.url)&&void 0!==t?t:null==c||null===(a=c.fields)||void 0===a||null===(l=a.screenshot[0])||void 0===l?void 0:l.url})}),(0,At.jsxs)("div",{className:"divide-y p-6 sm:p-0 mb-16",children:[y.length>0&&(0,At.jsxs)("section",{className:"mb-4",children:[(0,At.jsx)("h4",{className:"text-lg m-0 mb-4 text-left font-semibold",children:(0,It.__)("Related","extendify-sdk")}),(0,At.jsx)("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 gap-6",children:y.map((function(e){var t,n,r,i,o,s,a;return(0,At.jsx)("button",{type:"button",className:"min-h-60 border border-transparent hover:border-wp-theme-500 transition duration-150 p-0 m-0 cursor-pointer",onClick:function(){return O(e)},children:(0,At.jsx)("img",{className:"max-w-full block p-0 m-0 object-cover",src:null!==(t=null==e||null===(n=e.fields)||void 0===n||null===(r=n.screenshot[0])||void 0===r||null===(i=r.thumbnails)||void 0===i||null===(o=i.large)||void 0===o?void 0:o.url)&&void 0!==t?t:null==e||null===(s=e.fields)||void 0===s||null===(a=s.screenshot[0])||void 0===a?void 0:a.url})},e.id)}))})]}),b.length>0&&(0,At.jsxs)("section",{className:"mb-4 pt-6",children:[(0,At.jsx)("h4",{className:"text-lg m-0 mb-4 text-left font-semibold",children:(0,It.__)("Alternatives","extendify-sdk")}),(0,At.jsx)("div",{className:"grid md:grid-cols-2 xl:grid-cols-4 gap-6",children:b.map((function(e){var t,n,r,i,o,s,a;return(0,At.jsx)("button",{type:"button",className:"min-h-60 border border-transparent hover:border-wp-theme-500 transition duration-150 p-0 m-0 cursor-pointer",onClick:function(){return O(e)},children:(0,At.jsx)("img",{className:"max-w-full block p-0 m-0 object-cover",src:null!==(t=null==e||null===(n=e.fields)||void 0===n||null===(r=n.screenshot[0])||void 0===r||null===(i=r.thumbnails)||void 0===i||null===(o=i.large)||void 0===o?void 0:o.url)&&void 0!==t?t:null==e||null===(s=e.fields)||void 0===s||null===(a=s.screenshot[0])||void 0===a?void 0:a.url})},e.id)}))})]})]}),(0,At.jsx)("div",{className:"text-xs text-left p-6 w-full block sm:hidden divide-y",children:(0,At.jsx)(so,{categories:d,types:h,requiredPlugins:f,styles:p})})]})}function po(e){var t=e.template,n=K((function(e){return e.setActive})),r=t.fields,i=r.tax_categories,o=r.required_plugins,s=r.tax_style,a=r.tax_pattern_types,l=B((function(e){return e.apiKey}));return(0,At.jsxs)("div",{className:"flex flex-col items-start justify-start",children:[!l.length&&(0,At.jsxs)("div",{className:"h-full flex sm:hidden w-full p-4 justify-between border items-center border-gray-300 bg-extendify-lightest",children:[(0,At.jsx)("a",{className:"button-extendify-main",target:"_blank",href:"https://extendify.com/pricing?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=sign_up&utm_content=main"),rel:"noreferrer",children:(0,It.__)("Sign up today to get unlimited access","extendify-sdk")}),(0,At.jsx)("button",{className:"components-button",onClick:function(){return Y.setState({currentPage:"login"})},children:(0,It.__)("Log in","extendify-sdk")})]}),(0,At.jsx)("div",{className:"p-6 sm:p-0",children:(0,At.jsxs)("button",{type:"button",className:"cursor-pointer text-black bg-transparent font-medium flex items-center p-3 transform -translate-x-3 button-focus",onClick:function(){Y.setState({currentPage:"main"}),n({})},children:[(0,At.jsx)("svg",{className:"fill-current",width:"8",height:"12",viewBox:"0 0 8 12",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M6.70998 9.88047L2.82998 6.00047L6.70998 2.12047C7.09998 1.73047 7.09998 1.10047 6.70998 0.710469C6.31998 0.320469 5.68998 0.320469 5.29998 0.710469L0.70998 5.30047C0.31998 5.69047 0.31998 6.32047 0.70998 6.71047L5.29998 11.3005C5.68998 11.6905 6.31998 11.6905 6.70998 11.3005C7.08998 10.9105 7.09998 10.2705 6.70998 9.88047Z"})}),(0,At.jsx)("span",{className:"ml-4",children:(0,It.__)("Go back","extendify-sdk")})]})}),(0,At.jsx)("div",{className:"text-left pt-14 divide-y w-full hidden sm:block",children:(0,At.jsx)(so,{categories:i,types:a,requiredPlugins:o,styles:s})})]})}function ho(){var e=K((function(e){return e.activeTemplate}));return(0,At.jsxs)("div",{className:"bg-white h-full flex flex-col items-center relative max-w-screen-4xl mx-auto",children:[(0,At.jsx)(eo,{className:"w-full h-16 border-solid border-0 border-b border-gray-300 flex-shrink-0"}),(0,At.jsxs)("div",{className:"w-full flex-grow overflow-hidden",children:[(0,At.jsx)("a",{href:"#extendify-templates",className:"sr-only focus:not-sr-only focus:text-blue-500",children:(0,It.__)("Skip to content","extendify-sdk")}),(0,At.jsx)("div",{className:"sm:flex sm:space-x-12 relative bg-white mx-auto max-w-screen-4xl h-full",children:(0,At.jsx)("div",{className:"absolute bg-white sm:flex inset-0 z-50 sm:space-x-12",children:(0,At.jsxs)(Ui,{children:[(0,At.jsx)(po,{template:e}),(0,At.jsx)(fo,{template:e})]})})})]})]})}function mo(e){switch(e.page){case"main":return(0,At.jsx)(to,{});case"single":return(0,At.jsx)(ho,{})}}const xo=(0,r.createElement)(bi,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(vi,{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 yo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function go(){var e,t=yo((0,r.useState)(!(null!==(e=B.getState().noticesDismissedAt)&&void 0!==e&&e.welcome)),2),n=t[0],i=t[1],o=Y((function(e){return e.setOpen}));return n?(0,At.jsxs)("div",{className:"bg-extendify-secondary hidden lg:flex space-x-4 py-3 px-5 justify-center items-center relative",children:[(0,At.jsx)("span",{className:"text-black",children:(0,It.__)("Welcome to the Extendify Library","extendify-sdk")}),(0,At.jsx)("span",{className:"px-2 opacity-50","aria-hidden":"true",children:"|"}),(0,At.jsxs)("div",{className:"flex space-x-2 justify-center items-center",children:[(0,At.jsx)(kt.Button,{variant:"link",className:"text-black underline hover:no-underline p-0 h-auto",href:"https://extendify.com/welcome/?utm_source=".concat(window.extendifySdkData.sdk_partner,"&utm_medium=library&utm_campaign=welcome-notice&utm_content=tell-me-more"),target:"_blank",children:(0,It.__)("Tell me more","extendify-sdk")}),(0,At.jsx)("span",{className:"font-bold","aria-hidden":"true",children:"•"}),(0,At.jsx)(kt.Button,{variant:"link",className:"text-black underline hover:no-underline p-0 h-auto",onClick:function(){document.getElementById("extendify-templates-inserter-btn").classList.add("invisible"),B.setState({enabled:!1}),o(!1)},children:(0,It.__)("Turn off the library","extendify-sdk")})]}),(0,At.jsx)("div",{className:"absolute right-1",children:(0,At.jsx)(kt.Button,{className:"opacity-50 hover:opacity-100 focus:opacity-100 text-extendify-black",icon:(0,At.jsx)(mi,{icon:xo}),label:(0,It.__)("Dismiss this notice","extendify-sdk"),onClick:function(){i(!1),B.setState({noticesDismissedAt:{welcome:(new Date).toISOString()}})},showTooltip:!1})})]}):null}function bo(){var e=(0,r.useRef)(null),t=Y((function(e){return e.open})),n=Y((function(e){return e.setOpen})),i=Y((function(e){return e.currentPage}));return(0,At.jsx)(Re.Root,{show:t,as:r.Fragment,children:(0,At.jsx)(jt,{as:"div",static:!0,className:"extendify-sdk",initialFocus:e,onClose:function(){return n(!1)},children:(0,At.jsx)("div",{className:"h-screen w-screen sm:h-auto m-auto sm:w-auto fixed z-high inset-0 overflow-y-auto",children:(0,At.jsxs)("div",{className:"flex h-full overflow-hidden p-4 lg:p-20 text-center w-full",children:[(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-50 transition",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,At.jsx)(jt.Overlay,{className:"fixed inset-0 bg-black bg-opacity-30 transition-opacity"})}),(0,At.jsx)(Re.Child,{as:r.Fragment,enter:"ease-out duration-300 translate transform",enterFrom:"opacity-0 translate-y-4 sm:translate-y-5",enterTo:"opacity-100 translate-y-0",children:(0,At.jsxs)("div",{ref:e,tabIndex:"0",className:"max-w-8xl mx-auto w-full",children:[(0,At.jsx)(mo,{page:i}),(0,At.jsx)(go,{})]})})]})})})})}const wo=wp.compose,jo=wp.hooks,ko=JSON.parse('{"t":["ext-absolute","ext-relative","ext-top-base","ext-top-lg","ext--top-base","ext--top-lg","ext-right-base","ext-right-lg","ext--right-base","ext--right-lg","ext-bottom-base","ext-bottom-lg","ext--bottom-base","ext--bottom-lg","ext-left-base","ext-left-lg","ext--left-base","ext--left-lg","ext-order-1","ext-order-2","ext-col-auto","ext-col-span-1","ext-col-span-2","ext-col-span-3","ext-col-span-4","ext-col-span-5","ext-col-span-6","ext-col-span-7","ext-col-span-8","ext-col-span-9","ext-col-span-10","ext-col-span-11","ext-col-span-12","ext-col-span-full","ext-col-start-1","ext-col-start-2","ext-col-start-3","ext-col-start-4","ext-col-start-5","ext-col-start-6","ext-col-start-7","ext-col-start-8","ext-col-start-9","ext-col-start-10","ext-col-start-11","ext-col-start-12","ext-col-start-13","ext-col-start-auto","ext-col-end-1","ext-col-end-2","ext-col-end-3","ext-col-end-4","ext-col-end-5","ext-col-end-6","ext-col-end-7","ext-col-end-8","ext-col-end-9","ext-col-end-10","ext-col-end-11","ext-col-end-12","ext-col-end-13","ext-col-end-auto","ext-row-auto","ext-row-span-1","ext-row-span-2","ext-row-span-3","ext-row-span-4","ext-row-span-5","ext-row-span-6","ext-row-span-full","ext-row-start-1","ext-row-start-2","ext-row-start-3","ext-row-start-4","ext-row-start-5","ext-row-start-6","ext-row-start-7","ext-row-start-auto","ext-row-end-1","ext-row-end-2","ext-row-end-3","ext-row-end-4","ext-row-end-5","ext-row-end-6","ext-row-end-7","ext-row-end-auto","ext-m-0","ext-m-auto","ext-m-base","ext-m-lg","ext--m-base","ext--m-lg","ext-mx-0","ext-mx-auto","ext-mx-base","ext-mx-lg","ext--mx-base","ext--mx-lg","ext-my-0","ext-my-auto","ext-my-base","ext-my-lg","ext--my-base","ext--my-lg","ext-mt-0","ext-mt-auto","ext-mt-base","ext-mt-lg","ext--mt-base","ext--mt-lg","ext-mr-0","ext-mr-auto","ext-mr-base","ext-mr-lg","ext--mr-base","ext--mr-lg","ext-mb-0","ext-mb-auto","ext-mb-base","ext-mb-lg","ext--mb-base","ext--mb-lg","ext-ml-0","ext-ml-auto","ext-ml-base","ext-ml-lg","ext--ml-base","ext--ml-lg","ext-block","ext-inline-block","ext-inline","ext-flex","ext-inline-flex","ext-grid","ext-inline-grid","ext-hidden","ext-w-auto","ext-w-full","ext-max-w-full","ext-flex-1","ext-flex-auto","ext-flex-initial","ext-flex-none","ext-flex-shrink-0","ext-flex-shrink","ext-flex-grow-0","ext-flex-grow","ext-list-none","ext-grid-cols-1","ext-grid-cols-2","ext-grid-cols-3","ext-grid-cols-4","ext-grid-cols-5","ext-grid-cols-6","ext-grid-cols-7","ext-grid-cols-8","ext-grid-cols-9","ext-grid-cols-10","ext-grid-cols-11","ext-grid-cols-12","ext-grid-cols-none","ext-grid-rows-1","ext-grid-rows-2","ext-grid-rows-3","ext-grid-rows-4","ext-grid-rows-5","ext-grid-rows-6","ext-grid-rows-none","ext-flex-row","ext-flex-row-reverse","ext-flex-col","ext-flex-col-reverse","ext-flex-wrap","ext-flex-wrap-reverse","ext-flex-nowrap","ext-items-start","ext-items-end","ext-items-center","ext-items-baseline","ext-items-stretch","ext-justify-start","ext-justify-end","ext-justify-center","ext-justify-between","ext-justify-around","ext-justify-evenly","ext-justify-items-start","ext-justify-items-end","ext-justify-items-center","ext-justify-items-stretch","ext-gap-0","ext-gap-base","ext-gap-lg","ext-gap-x-0","ext-gap-x-base","ext-gap-x-lg","ext-gap-y-0","ext-gap-y-base","ext-gap-y-lg","ext-justify-self-auto","ext-justify-self-start","ext-justify-self-end","ext-justify-self-center","ext-justify-self-stretch","ext-rounded-none","ext-rounded-full","ext-rounded-t-none","ext-rounded-t-full","ext-rounded-r-none","ext-rounded-r-full","ext-rounded-b-none","ext-rounded-b-full","ext-rounded-l-none","ext-rounded-l-full","ext-rounded-tl-none","ext-rounded-tl-full","ext-rounded-tr-none","ext-rounded-tr-full","ext-rounded-br-none","ext-rounded-br-full","ext-rounded-bl-none","ext-rounded-bl-full","ext-border-0","ext-border-t-0","ext-border-r-0","ext-border-b-0","ext-border-l-0","ext-p-0","ext-p-base","ext-p-lg","ext-px-0","ext-px-base","ext-px-lg","ext-py-0","ext-py-base","ext-py-lg","ext-pt-0","ext-pt-base","ext-pt-lg","ext-pr-0","ext-pr-base","ext-pr-lg","ext-pb-0","ext-pb-base","ext-pb-lg","ext-pl-0","ext-pl-base","ext-pl-lg","ext-text-left","ext-text-center","ext-text-right","ext-leading-none","ext-leading-tight","ext-leading-snug","ext-leading-normal","ext-leading-relaxed","ext-leading-loose","clip-path--rhombus","clip-path--diamond","clip-path--rhombus-alt","tablet\\\\:fullwidth-cols","desktop\\\\:fullwidth-cols","direction-rtl","direction-ltr","bring-to-front","text-stroke","text-stroke--primary","text-stroke--secondary","editor\\\\:no-caption","editor\\\\:no-inserter","editor\\\\:no-resize","editor\\\\:pointer-events-none","tablet\\\\:ext-absolute","tablet\\\\:ext-relative","tablet\\\\:ext-top-base","tablet\\\\:ext-top-lg","tablet\\\\:ext--top-base","tablet\\\\:ext--top-lg","tablet\\\\:ext-right-base","tablet\\\\:ext-right-lg","tablet\\\\:ext--right-base","tablet\\\\:ext--right-lg","tablet\\\\:ext-bottom-base","tablet\\\\:ext-bottom-lg","tablet\\\\:ext--bottom-base","tablet\\\\:ext--bottom-lg","tablet\\\\:ext-left-base","tablet\\\\:ext-left-lg","tablet\\\\:ext--left-base","tablet\\\\:ext--left-lg","tablet\\\\:ext-order-1","tablet\\\\:ext-order-2","tablet\\\\:ext-m-0","tablet\\\\:ext-m-auto","tablet\\\\:ext-m-base","tablet\\\\:ext-m-lg","tablet\\\\:ext--m-base","tablet\\\\:ext--m-lg","tablet\\\\:ext-mx-0","tablet\\\\:ext-mx-auto","tablet\\\\:ext-mx-base","tablet\\\\:ext-mx-lg","tablet\\\\:ext--mx-base","tablet\\\\:ext--mx-lg","tablet\\\\:ext-my-0","tablet\\\\:ext-my-auto","tablet\\\\:ext-my-base","tablet\\\\:ext-my-lg","tablet\\\\:ext--my-base","tablet\\\\:ext--my-lg","tablet\\\\:ext-mt-0","tablet\\\\:ext-mt-auto","tablet\\\\:ext-mt-base","tablet\\\\:ext-mt-lg","tablet\\\\:ext--mt-base","tablet\\\\:ext--mt-lg","tablet\\\\:ext-mr-0","tablet\\\\:ext-mr-auto","tablet\\\\:ext-mr-base","tablet\\\\:ext-mr-lg","tablet\\\\:ext--mr-base","tablet\\\\:ext--mr-lg","tablet\\\\:ext-mb-0","tablet\\\\:ext-mb-auto","tablet\\\\:ext-mb-base","tablet\\\\:ext-mb-lg","tablet\\\\:ext--mb-base","tablet\\\\:ext--mb-lg","tablet\\\\:ext-ml-0","tablet\\\\:ext-ml-auto","tablet\\\\:ext-ml-base","tablet\\\\:ext-ml-lg","tablet\\\\:ext--ml-base","tablet\\\\:ext--ml-lg","tablet\\\\:ext-block","tablet\\\\:ext-inline-block","tablet\\\\:ext-inline","tablet\\\\:ext-flex","tablet\\\\:ext-inline-flex","tablet\\\\:ext-grid","tablet\\\\:ext-inline-grid","tablet\\\\:ext-hidden","tablet\\\\:ext-w-auto","tablet\\\\:ext-w-full","tablet\\\\:ext-max-w-full","tablet\\\\:ext-flex-1","tablet\\\\:ext-flex-auto","tablet\\\\:ext-flex-initial","tablet\\\\:ext-flex-none","tablet\\\\:ext-flex-shrink-0","tablet\\\\:ext-flex-shrink","tablet\\\\:ext-flex-grow-0","tablet\\\\:ext-flex-grow","tablet\\\\:ext-list-none","tablet\\\\:ext-grid-cols-1","tablet\\\\:ext-grid-cols-2","tablet\\\\:ext-grid-cols-3","tablet\\\\:ext-grid-cols-4","tablet\\\\:ext-grid-cols-5","tablet\\\\:ext-grid-cols-6","tablet\\\\:ext-grid-cols-7","tablet\\\\:ext-grid-cols-8","tablet\\\\:ext-grid-cols-9","tablet\\\\:ext-grid-cols-10","tablet\\\\:ext-grid-cols-11","tablet\\\\:ext-grid-cols-12","tablet\\\\:ext-grid-cols-none","tablet\\\\:ext-flex-row","tablet\\\\:ext-flex-row-reverse","tablet\\\\:ext-flex-col","tablet\\\\:ext-flex-col-reverse","tablet\\\\:ext-flex-wrap","tablet\\\\:ext-flex-wrap-reverse","tablet\\\\:ext-flex-nowrap","tablet\\\\:ext-items-start","tablet\\\\:ext-items-end","tablet\\\\:ext-items-center","tablet\\\\:ext-items-baseline","tablet\\\\:ext-items-stretch","tablet\\\\:ext-justify-start","tablet\\\\:ext-justify-end","tablet\\\\:ext-justify-center","tablet\\\\:ext-justify-between","tablet\\\\:ext-justify-around","tablet\\\\:ext-justify-evenly","tablet\\\\:ext-justify-items-start","tablet\\\\:ext-justify-items-end","tablet\\\\:ext-justify-items-center","tablet\\\\:ext-justify-items-stretch","tablet\\\\:ext-justify-self-auto","tablet\\\\:ext-justify-self-start","tablet\\\\:ext-justify-self-end","tablet\\\\:ext-justify-self-center","tablet\\\\:ext-justify-self-stretch","tablet\\\\:ext-p-0","tablet\\\\:ext-p-base","tablet\\\\:ext-p-lg","tablet\\\\:ext-px-0","tablet\\\\:ext-px-base","tablet\\\\:ext-px-lg","tablet\\\\:ext-py-0","tablet\\\\:ext-py-base","tablet\\\\:ext-py-lg","tablet\\\\:ext-pt-0","tablet\\\\:ext-pt-base","tablet\\\\:ext-pt-lg","tablet\\\\:ext-pr-0","tablet\\\\:ext-pr-base","tablet\\\\:ext-pr-lg","tablet\\\\:ext-pb-0","tablet\\\\:ext-pb-base","tablet\\\\:ext-pb-lg","tablet\\\\:ext-pl-0","tablet\\\\:ext-pl-base","tablet\\\\:ext-pl-lg","tablet\\\\:ext-text-left","tablet\\\\:ext-text-center","tablet\\\\:ext-text-right","desktop\\\\:ext-absolute","desktop\\\\:ext-relative","desktop\\\\:ext-top-base","desktop\\\\:ext-top-lg","desktop\\\\:ext--top-base","desktop\\\\:ext--top-lg","desktop\\\\:ext-right-base","desktop\\\\:ext-right-lg","desktop\\\\:ext--right-base","desktop\\\\:ext--right-lg","desktop\\\\:ext-bottom-base","desktop\\\\:ext-bottom-lg","desktop\\\\:ext--bottom-base","desktop\\\\:ext--bottom-lg","desktop\\\\:ext-left-base","desktop\\\\:ext-left-lg","desktop\\\\:ext--left-base","desktop\\\\:ext--left-lg","desktop\\\\:ext-order-1","desktop\\\\:ext-order-2","desktop\\\\:ext-m-0","desktop\\\\:ext-m-auto","desktop\\\\:ext-m-base","desktop\\\\:ext-m-lg","desktop\\\\:ext--m-base","desktop\\\\:ext--m-lg","desktop\\\\:ext-mx-0","desktop\\\\:ext-mx-auto","desktop\\\\:ext-mx-base","desktop\\\\:ext-mx-lg","desktop\\\\:ext--mx-base","desktop\\\\:ext--mx-lg","desktop\\\\:ext-my-0","desktop\\\\:ext-my-auto","desktop\\\\:ext-my-base","desktop\\\\:ext-my-lg","desktop\\\\:ext--my-base","desktop\\\\:ext--my-lg","desktop\\\\:ext-mt-0","desktop\\\\:ext-mt-auto","desktop\\\\:ext-mt-base","desktop\\\\:ext-mt-lg","desktop\\\\:ext--mt-base","desktop\\\\:ext--mt-lg","desktop\\\\:ext-mr-0","desktop\\\\:ext-mr-auto","desktop\\\\:ext-mr-base","desktop\\\\:ext-mr-lg","desktop\\\\:ext--mr-base","desktop\\\\:ext--mr-lg","desktop\\\\:ext-mb-0","desktop\\\\:ext-mb-auto","desktop\\\\:ext-mb-base","desktop\\\\:ext-mb-lg","desktop\\\\:ext--mb-base","desktop\\\\:ext--mb-lg","desktop\\\\:ext-ml-0","desktop\\\\:ext-ml-auto","desktop\\\\:ext-ml-base","desktop\\\\:ext-ml-lg","desktop\\\\:ext--ml-base","desktop\\\\:ext--ml-lg","desktop\\\\:ext-block","desktop\\\\:ext-inline-block","desktop\\\\:ext-inline","desktop\\\\:ext-flex","desktop\\\\:ext-inline-flex","desktop\\\\:ext-grid","desktop\\\\:ext-inline-grid","desktop\\\\:ext-hidden","desktop\\\\:ext-w-auto","desktop\\\\:ext-w-full","desktop\\\\:ext-max-w-full","desktop\\\\:ext-flex-1","desktop\\\\:ext-flex-auto","desktop\\\\:ext-flex-initial","desktop\\\\:ext-flex-none","desktop\\\\:ext-flex-shrink-0","desktop\\\\:ext-flex-shrink","desktop\\\\:ext-flex-grow-0","desktop\\\\:ext-flex-grow","desktop\\\\:ext-list-none","desktop\\\\:ext-grid-cols-1","desktop\\\\:ext-grid-cols-2","desktop\\\\:ext-grid-cols-3","desktop\\\\:ext-grid-cols-4","desktop\\\\:ext-grid-cols-5","desktop\\\\:ext-grid-cols-6","desktop\\\\:ext-grid-cols-7","desktop\\\\:ext-grid-cols-8","desktop\\\\:ext-grid-cols-9","desktop\\\\:ext-grid-cols-10","desktop\\\\:ext-grid-cols-11","desktop\\\\:ext-grid-cols-12","desktop\\\\:ext-grid-cols-none","desktop\\\\:ext-flex-row","desktop\\\\:ext-flex-row-reverse","desktop\\\\:ext-flex-col","desktop\\\\:ext-flex-col-reverse","desktop\\\\:ext-flex-wrap","desktop\\\\:ext-flex-wrap-reverse","desktop\\\\:ext-flex-nowrap","desktop\\\\:ext-items-start","desktop\\\\:ext-items-end","desktop\\\\:ext-items-center","desktop\\\\:ext-items-baseline","desktop\\\\:ext-items-stretch","desktop\\\\:ext-justify-start","desktop\\\\:ext-justify-end","desktop\\\\:ext-justify-center","desktop\\\\:ext-justify-between","desktop\\\\:ext-justify-around","desktop\\\\:ext-justify-evenly","desktop\\\\:ext-justify-items-start","desktop\\\\:ext-justify-items-end","desktop\\\\:ext-justify-items-center","desktop\\\\:ext-justify-items-stretch","desktop\\\\:ext-justify-self-auto","desktop\\\\:ext-justify-self-start","desktop\\\\:ext-justify-self-end","desktop\\\\:ext-justify-self-center","desktop\\\\:ext-justify-self-stretch","desktop\\\\:ext-p-0","desktop\\\\:ext-p-base","desktop\\\\:ext-p-lg","desktop\\\\:ext-px-0","desktop\\\\:ext-px-base","desktop\\\\:ext-px-lg","desktop\\\\:ext-py-0","desktop\\\\:ext-py-base","desktop\\\\:ext-py-lg","desktop\\\\:ext-pt-0","desktop\\\\:ext-pt-base","desktop\\\\:ext-pt-lg","desktop\\\\:ext-pr-0","desktop\\\\:ext-pr-base","desktop\\\\:ext-pr-lg","desktop\\\\:ext-pb-0","desktop\\\\:ext-pb-base","desktop\\\\:ext-pb-lg","desktop\\\\:ext-pl-0","desktop\\\\:ext-pl-base","desktop\\\\:ext-pl-lg","desktop\\\\:ext-text-left","desktop\\\\:ext-text-center","desktop\\\\:ext-text-right"]}');function So(e){return function(e){if(Array.isArray(e))return Oo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oo(e,t)}(e)||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.")}()}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No=(0,wo.createHigherOrderComponent)((function(e){return function(t){var n=t.attributes.extUtilities,r=ko.t.map((function(e){return e.replace(".","").replace(new RegExp("\\\\","g"),"")}));return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(e,Co({},t)),n&&(0,At.jsx)(di.InspectorAdvancedControls,{children:(0,At.jsx)(kt.FormTokenField,{label:(0,It.__)("Extendify Utilities","extendify-sdk"),tokenizeOnSpace:!0,value:n,suggestions:r,onChange:function(e){t.setAttributes({extUtilities:e})}})})]})}}),"utilityClassEdit");function Ao(e,t,n){var r=e.className,i=n.extUtilities,o=n.className;if(!i||!Object.keys(i).length)return e;var s=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return e.split(" ");case"[object Array]":return e;default:return[]}},a=new Set([].concat(So(s(o)),So(s(r)),So(s(i))));return Object.assign({},e,{className:So(a).join(" ")})}function Po(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}(0,jo.addFilter)("blocks.registerBlockType","extendify/utilities/attributes",(function(e){return Co(Co({},e),{},{attributes:Co(Co({},e.attributes),{},{extUtilities:{type:"array",default:[]}})})})),(0,jo.addFilter)("blocks.registerBlockType","extendify/utilities/addEditProps",(function(e){var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ao(r,e,n)},e})),(0,jo.addFilter)("editor.BlockEdit","extendify/utilities/advancedClassControls",No),(0,jo.addFilter)("blocks.getSaveContent.extraProps","extendify/utilities/extra-props",Ao);var To=function(){return(e=w().mark((function e(){var t;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.get("taxonomies-simple");case 2:return(t=e.sent)["tax_pattern_types_2.0"]&&(t.tax_pattern_types=t["tax_pattern_types_2.0"],delete t["tax_pattern_types_2.0"]),t["tax_page_types_2.0"]&&(t.tax_page_types=t["tax_page_types_2.0"],delete t["tax_page_types_2.0"]),e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Po(o,r,i,s,a,"next",e)}function a(e){Po(o,r,i,s,a,"throw",e)}s(void 0)}))})();var e};function Mo(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Io(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Mo(o,r,i,s,a,"next",e)}function a(e){Mo(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ro(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fo(e){var t=e.show,n=void 0!==t&&t,i=Y((function(e){return e.open})),o=Y((function(e){return e.setOpen})),s=Lo((0,r.useState)(!1),2),a=s[0],l=s[1],c=(0,r.useCallback)((function(){return o(!0)}),[o]),u=(0,r.useCallback)((function(){return o(!1)}),[o]),d=K((function(e){return e.initTemplateData})),f=B((function(e){return e.uuid.length>0})),p=K((function(e){return Object.keys(e.taxonomyDefaultState).length>0}));return function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=K((function(e){return e.setupDefaultTaxonomies})),n=V((function(e){return e.setTaxonomies})),i=(0,r.useCallback)(Io(w().mark((function e(){var r;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,To();case 2:r=e.sent,r=Object.keys(r).filter((function(e){return e.startsWith("tax_")})).reduce((function(e,t){return e[t]=r[t],e}),{}),n(r),t();case 6:case"end":return e.stop()}}),e)}))),[n,t]);(0,r.useEffect)((function(){e&&i()}),[i,e])}(i),(0,r.useEffect)((function(){f&&p&&("single"===Y.getState().currentPage&&Y.setState({currentPage:"main"}),d(),l(!0))}),[f,p,d]),(0,r.useEffect)((function(){n&&o(!0)}),[n,o]),(0,r.useEffect)((function(){return window.addEventListener("extendify-sdk::open-library",c),window.addEventListener("extendify-sdk::close-library",u),function(){window.removeEventListener("extendify-sdk::open-library",c),window.removeEventListener("extendify-sdk::close-library",u)}}),[u,c]),a?(0,At.jsx)(bo,{}):null}const Do=wp.plugins,Bo=wp.editPost;var Uo=function(){return k.get("site-settings")},qo=function(e){var t=new FormData;return t.append("data",JSON.stringify(e)),k.post("site-settings",t,{headers:{"Content-Type":"multipart/form-data"}})};function Vo(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function zo(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Vo(o,r,i,s,a,"next",e)}function a(e){Vo(o,r,i,s,a,"throw",e)}s(void 0)}))}}var Ho={getItem:function(){var e=zo(w().mark((function e(){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Uo();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setItem:function(){var e=zo(w().mark((function e(t,n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qo(n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},$o=l(x((function(){return{enabled:!0}}),{name:"extendify-sitesettings",getStorage:function(){return Ho}}));function Wo(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function Jo(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Wo(o,r,i,s,a,"next",e)}function a(e){Wo(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Go(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Go(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Go(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const Ko=function(){var e=(0,Cr.useSelect)((function(e){return e("core").canUser("create","users")})),t=Zo((0,r.useState)(B((function(e){return e.enabled}))),2),n=t[0],i=t[1],o=Zo((0,r.useState)($o((function(e){return e.enabled}))),2),s=o[0],a=o[1];function l(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=document.getElementById("extendify-templates-inserter-btn");t&&(e?t.classList.add("invisible"):t.classList.remove("invisible"))}function c(e){return u.apply(this,arguments)}function u(){return(u=Jo(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return(f=Jo(w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$o.setState({enabled:t});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,t){return h.apply(this,arguments)}function h(){return h=Jo(w().mark((function e(t,n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("global"!==n){e.next=5;break}return e.next=3,d(t);case 3:e.next=7;break;case 5:return e.next=7,c(t);case 7:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function m(e){"global"===e?a((function(t){return p(!t,e),!t})):i((function(t){return l(!t),p(!t,e),!t}))}return(0,r.useEffect)((function(){l(!n)}),[n]),(0,At.jsxs)(kt.Modal,{title:(0,It.__)("Extendify Settings","extendify-sdk"),onRequestClose:function(){var e=document.getElementById("extendify-util");(0,r.unmountComponentAtNode)(e)},children:[(0,At.jsx)(kt.ToggleControl,{label:e?(0,It.__)("Enable the library for myself","extendify-sdk"):(0,It.__)("Enable the library","extendify-sdk"),help:(0,It.__)("Publish with hundreds of patterns & page layouts","extendify-sdk"),checked:n,onChange:function(){return m("user")}}),e&&(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("br",{}),(0,At.jsx)(kt.ToggleControl,{label:(0,It.__)("Allow all users to publish with the library"),help:(0,It.__)("Everyone publishes with patterns & page layouts","extendify-sdk"),checked:s,onChange:function(){return m("global")}})]})]})};var Yo=function(e){var t,n;Ct(null===(t=e.target.closest("[data-extendify-identifier]"))||void 0===t||null===(n=t.dataset)||void 0===n?void 0:n.extendifyIdentifier)},Xo=function(){var e,t,n;return null===window.extendifySdkData.user||(null===(e=window.extendifySdkData)||void 0===e||null===(t=e.user)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.isAdmin)},Qo=function(){var e,t,n;return null===window.extendifySdkData.sitesettings||(null===(e=window.extendifySdkData)||void 0===e||null===(t=e.sitesettings)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)},es=(0,At.jsx)("div",{id:"extendify-templates-inserter",className:"extendify-sdk",children:(0,At.jsxs)("button",{style:"background:#D9F1EE;color:#1e1e1e;border:1px solid #949494 !important;font-weight:bold;font-size:14px;padding:8px;margin-right:8px",type:"button","data-extendify-identifier":"main-button",id:"extendify-templates-inserter-btn",className:"components-button",children:[(0,At.jsx)(mi,{icon:Li,size:24,className:"-ml-1 mr-1"}),(0,It.__)("Library","extendify-sdk")]})});window._wpLoadBlockEditor&&window.wp.data.subscribe((function(){setTimeout((function(){var e,t,n;(Qo()||Xo())&&(document.getElementById("extendify-templates-inserter-btn")||document.querySelector(".edit-post-header-toolbar")&&(document.querySelector(".edit-post-header-toolbar").insertAdjacentHTML("beforeend",(0,r.renderToString)(es)),document.getElementById("extendify-templates-inserter-btn").addEventListener("click",Yo),(null===window.extendifySdkData.user?Qo():null===(e=window.extendifySdkData)||void 0===e||null===(t=e.user)||void 0===t||null===(n=t.state)||void 0===n?void 0:n.enabled)||document.getElementById("extendify-templates-inserter-btn").classList.add("invisible")))}),0)})),window._wpLoadBlockEditor&&window.wp.data.subscribe((function(){setTimeout((function(){if((Qo()||Xo())&&document.querySelector("[id$=patterns-view]")&&!document.getElementById("extendify-cta-button")){var e=(0,At.jsx)("div",{children:(0,At.jsx)("button",{id:"extendify-cta-button",style:"margin:1rem 1rem 0","data-extendify-identifier":"patterns-cta",className:"components-button is-secondary",children:(0,It.__)("Discover more patterns in Extendify Library","extendify-sdk")})});document.querySelector("[id$=patterns-view]").insertAdjacentHTML("afterbegin",(0,r.renderToString)(e)),document.getElementById("extendify-cta-button").addEventListener("click",Yo)}}),0)}));window._wpLoadBlockEditor&&(0,Do.registerPlugin)("extendify-settings-enable-disable",{render:function(){return(0,At.jsx)(At.Fragment,{children:(0,At.jsxs)(Bo.PluginSidebarMoreMenuItem,{onClick:function(){var e=document.getElementById("extendify-util");(0,r.render)((0,At.jsx)(Ko,{}),e)},icon:(0,At.jsx)(mi,{icon:Li,size:24}),children:[" ",(0,It.__)("Extendify","extendify-sdk")]})})}}),[{register:function(){var e=(0,Cr.dispatch)("core/notices").createNotice,t=B.getState().incrementImports;window.addEventListener("extendify-sdk::template-inserted",(function(n){e("info",(0,It.__)("Page layout Added"),{isDismissible:!0,type:"snackbar"}),setTimeout((function(){var e;t(),Vn(null===(e=n.detail)||void 0===e?void 0:e.template)}),0)}))}},{register:function(){var e=this;window.addEventListener("extendify-sdk::softerror-encountered",(function(t){e[(0,_t.camelCase)(t.detail.type)](t.detail)}))},versionOutdated:function(e){(0,r.render)((0,At.jsx)(Lr,{title:e.data.title,message:e.data.message,buttonLabel:e.data.buttonLabel,forceOpen:!0}),document.getElementById("extendify-root"))}}].forEach((function(e){return e.register()})),window._wpLoadBlockEditor&&window.wp.domReady((function(){var e=Object.assign(document.createElement("div"),{id:"extendify-root"});if(document.body.append(e),(0,r.render)((0,At.jsx)(Fo,{}),e),e.parentNode.insertBefore(Object.assign(document.createElement("div"),{id:"extendify-util"}),e.nextSibling),Or.getState().importOnLoad){var t=Or.getState().wantedTemplate;setTimeout((function(){ui((0,g.rawHandler)({HTML:t.fields.code}),t)}),0)}Or.setState({importOnLoad:!1,wantedTemplate:{}})}))},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},716:()=>{},965:()=>{},525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var s,a,l=i(e),c=1;c<arguments.length;c++){for(var u in s=Object(arguments[c]))n.call(s,u)&&(l[u]=s[u]);if(t){a=t(s);for(var d=0;d<a.length;d++)r.call(s,a[d])&&(l[a[d]]=s[a[d]])}}return l}},61:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(a=l,l=[];++u<t;)a&&a[u].run();u=-1,t=l.length}a=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},426:(e,t,n)=>{"use strict";n(525);var r=n(995),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.jsx=c,t.jsxs=c},246:(e,t,n)=>{"use strict";e.exports=n(426)},248:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),s=new E(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=O(s,n);if(a){if(a===m)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,s),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function x(){}function y(){}function v(){}var g={};g[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==n&&r.call(w,o)&&(g=w);var j=v.prototype=x.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,s,a){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,a)}))}a(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,s=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:A}}function A(){return{value:t,done:!0}}return y.prototype=j.constructor=v,v.constructor=y,y.displayName=l(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,a,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},k(S.prototype),S.prototype[s]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new S(c(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(j),l(j,a,"Generator"),j[o]=function(){return this},j.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=N,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),c=r.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},995:e=>{"use strict";e.exports=React},843:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_from":"axios@0.21.4"}')}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,i,o)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,i,o]=e[u],a=!0,l=0;l<n.length;l++)(!1&o||s>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(a=!1,o<s&&(s=o));if(a){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={286:0,506:0,310:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[s,a,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)var u=l(r)}for(t&&t(n);c<s.length;c++)o=s[c],r.o(e,o)&&e[o]&&e[o][0](),e[s[c]]=0;return r.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[506,310],(()=>r(363))),r.O(void 0,[506,310],(()=>r(716)));var i=r.O(void 0,[506,310],(()=>r(965)));i=r.O(i)})();
extendify-sdk/public/build/extendify-utilities.css CHANGED
@@ -1 +1 @@
1
- .absolute{position:absolute!important}.relative{position:relative!important}.top-base{top:var(--wp--style--block-gap,2rem)!important}.top-lg{top:var(--extendify--spacing--large)!important}.-top-base{top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-top-lg{top:calc(var(--extendify--spacing--large)*-1)!important}.right-base{right:var(--wp--style--block-gap,2rem)!important}.right-lg{right:var(--extendify--spacing--large)!important}.-right-base{right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-right-lg{right:calc(var(--extendify--spacing--large)*-1)!important}.bottom-base{bottom:var(--wp--style--block-gap,2rem)!important}.bottom-lg{bottom:var(--extendify--spacing--large)!important}.-bottom-base{bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-bottom-lg{bottom:calc(var(--extendify--spacing--large)*-1)!important}.left-base{left:var(--wp--style--block-gap,2rem)!important}.left-lg{left:var(--extendify--spacing--large)!important}.-left-base{left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-left-lg{left:calc(var(--extendify--spacing--large)*-1)!important}.order-1{order:1!important}.order-2{order:2!important}.col-auto{grid-column:auto!important}.col-span-1{grid-column:span 1/span 1!important}.col-span-2{grid-column:span 2/span 2!important}.col-span-3{grid-column:span 3/span 3!important}.col-span-4{grid-column:span 4/span 4!important}.col-span-5{grid-column:span 5/span 5!important}.col-span-6{grid-column:span 6/span 6!important}.col-span-7{grid-column:span 7/span 7!important}.col-span-8{grid-column:span 8/span 8!important}.col-span-9{grid-column:span 9/span 9!important}.col-span-10{grid-column:span 10/span 10!important}.col-span-11{grid-column:span 11/span 11!important}.col-span-12{grid-column:span 12/span 12!important}.col-span-full{grid-column:1/-1!important}.col-start-1{grid-column-start:1!important}.col-start-2{grid-column-start:2!important}.col-start-3{grid-column-start:3!important}.col-start-4{grid-column-start:4!important}.col-start-5{grid-column-start:5!important}.col-start-6{grid-column-start:6!important}.col-start-7{grid-column-start:7!important}.col-start-8{grid-column-start:8!important}.col-start-9{grid-column-start:9!important}.col-start-10{grid-column-start:10!important}.col-start-11{grid-column-start:11!important}.col-start-12{grid-column-start:12!important}.col-start-13{grid-column-start:13!important}.col-start-auto{grid-column-start:auto!important}.col-end-1{grid-column-end:1!important}.col-end-2{grid-column-end:2!important}.col-end-3{grid-column-end:3!important}.col-end-4{grid-column-end:4!important}.col-end-5{grid-column-end:5!important}.col-end-6{grid-column-end:6!important}.col-end-7{grid-column-end:7!important}.col-end-8{grid-column-end:8!important}.col-end-9{grid-column-end:9!important}.col-end-10{grid-column-end:10!important}.col-end-11{grid-column-end:11!important}.col-end-12{grid-column-end:12!important}.col-end-13{grid-column-end:13!important}.col-end-auto{grid-column-end:auto!important}.row-auto{grid-row:auto!important}.row-span-1{grid-row:span 1/span 1!important}.row-span-2{grid-row:span 2/span 2!important}.row-span-3{grid-row:span 3/span 3!important}.row-span-4{grid-row:span 4/span 4!important}.row-span-5{grid-row:span 5/span 5!important}.row-span-6{grid-row:span 6/span 6!important}.row-span-full{grid-row:1/-1!important}.row-start-1{grid-row-start:1!important}.row-start-2{grid-row-start:2!important}.row-start-3{grid-row-start:3!important}.row-start-4{grid-row-start:4!important}.row-start-5{grid-row-start:5!important}.row-start-6{grid-row-start:6!important}.row-start-7{grid-row-start:7!important}.row-start-auto{grid-row-start:auto!important}.row-end-1{grid-row-end:1!important}.row-end-2{grid-row-end:2!important}.row-end-3{grid-row-end:3!important}.row-end-4{grid-row-end:4!important}.row-end-5{grid-row-end:5!important}.row-end-6{grid-row-end:6!important}.row-end-7{grid-row-end:7!important}.row-end-auto{grid-row-end:auto!important}.m-0:not([style*=margin]){margin:0!important}.m-auto:not([style*=margin]){margin:auto!important}.m-base:not([style*=margin]){margin:var(--wp--style--block-gap,2rem)!important}.m-lg:not([style*=margin]){margin:var(--extendify--spacing--large)!important}.-m-base:not([style*=margin]){margin:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-m-lg:not([style*=margin]){margin:calc(var(--extendify--spacing--large)*-1)!important}.mx-0:not([style*=margin]){margin-left:0!important;margin-right:0!important}.mx-auto:not([style*=margin]){margin-left:auto!important;margin-right:auto!important}.mx-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important;margin-right:var(--wp--style--block-gap,2rem)!important}.mx-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important;margin-right:var(--extendify--spacing--large)!important}.-mx-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-mx-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important;margin-right:calc(var(--extendify--spacing--large)*-1)!important}.my-0:not([style*=margin]){margin-bottom:0!important;margin-top:0!important}.my-auto:not([style*=margin]){margin-bottom:auto!important;margin-top:auto!important}.my-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important;margin-top:var(--wp--style--block-gap,2rem)!important}.my-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important;margin-top:var(--extendify--spacing--large)!important}.-my-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-my-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important;margin-top:calc(var(--extendify--spacing--large)*-1)!important}.mt-0:not([style*=margin]){margin-top:0!important}.mt-auto:not([style*=margin]){margin-top:auto!important}.mt-base:not([style*=margin]){margin-top:var(--wp--style--block-gap,2rem)!important}.mt-lg:not([style*=margin]){margin-top:var(--extendify--spacing--large)!important}.-mt-base:not([style*=margin]){margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-mt-lg:not([style*=margin]){margin-top:calc(var(--extendify--spacing--large)*-1)!important}.mr-0:not([style*=margin]){margin-right:0!important}.mr-auto:not([style*=margin]){margin-right:auto!important}.mr-base:not([style*=margin]){margin-right:var(--wp--style--block-gap,2rem)!important}.mr-lg:not([style*=margin]){margin-right:var(--extendify--spacing--large)!important}.-mr-base:not([style*=margin]){margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-mr-lg:not([style*=margin]){margin-right:calc(var(--extendify--spacing--large)*-1)!important}.mb-0:not([style*=margin]){margin-bottom:0!important}.mb-auto:not([style*=margin]){margin-bottom:auto!important}.mb-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important}.mb-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important}.-mb-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-mb-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important}.ml-0:not([style*=margin]){margin-left:0!important}.ml-auto:not([style*=margin]){margin-left:auto!important}.ml-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important}.ml-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important}.-ml-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.-ml-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.inline-grid{display:inline-grid}.hidden{display:none}.w-auto{width:auto!important}.w-full{width:100%!important}.max-w-full{max-width:100%!important}.flex-1{flex:1 1 0%!important}.flex-auto{flex:1 1 auto!important}.flex-initial{flex:0 1 auto!important}.flex-none{flex:none!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink{flex-shrink:1!important}.flex-grow-0{flex-grow:0!important}.flex-grow{flex-grow:1!important}.list-none{list-style-type:none!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))!important}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))!important}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))!important}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))!important}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))!important}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))!important}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))!important}.grid-cols-none{grid-template-columns:none!important}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))!important}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))!important}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))!important}.grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))!important}.grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))!important}.grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))!important}.grid-rows-none{grid-template-rows:none!important}.flex-row{flex-direction:row!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-col{flex-direction:column!important}.flex-col-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-nowrap{flex-wrap:nowrap!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.items-baseline{align-items:baseline!important}.items-stretch{align-items:stretch!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.justify-around{justify-content:space-around!important}.justify-evenly{justify-content:space-evenly!important}.justify-items-start{justify-items:start!important}.justify-items-end{justify-items:end!important}.justify-items-center{justify-items:center!important}.justify-items-stretch{justify-items:stretch!important}.gap-0{gap:0!important}.gap-base{gap:var(--wp--style--block-gap,2rem)!important}.gap-lg{gap:var(--extendify--spacing--large)!important}.gap-x-0{-moz-column-gap:0!important;column-gap:0!important}.gap-x-base{-moz-column-gap:var(--wp--style--block-gap,2rem)!important;column-gap:var(--wp--style--block-gap,2rem)!important}.gap-x-lg{-moz-column-gap:var(--extendify--spacing--large)!important;column-gap:var(--extendify--spacing--large)!important}.gap-y-0{row-gap:0!important}.gap-y-base{row-gap:var(--wp--style--block-gap,2rem)!important}.gap-y-lg{row-gap:var(--extendify--spacing--large)!important}.justify-self-auto{justify-self:auto!important}.justify-self-start{justify-self:start!important}.justify-self-end{justify-self:end!important}.justify-self-center{justify-self:center!important}.justify-self-stretch{justify-self:stretch!important}.rounded-none{border-radius:0!important}.rounded-full{border-radius:9999px!important}.rounded-t-none{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-t-full{border-top-left-radius:9999px!important;border-top-right-radius:9999px!important}.rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-r-full{border-bottom-right-radius:9999px!important;border-top-right-radius:9999px!important}.rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.rounded-b-full{border-bottom-left-radius:9999px!important;border-bottom-right-radius:9999px!important}.rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-l-full{border-bottom-left-radius:9999px!important;border-top-left-radius:9999px!important}.rounded-tl-none{border-top-left-radius:0!important}.rounded-tl-full{border-top-left-radius:9999px!important}.rounded-tr-none{border-top-right-radius:0!important}.rounded-tr-full{border-top-right-radius:9999px!important}.rounded-br-none{border-bottom-right-radius:0!important}.rounded-br-full{border-bottom-right-radius:9999px!important}.rounded-bl-none{border-bottom-left-radius:0!important}.rounded-bl-full{border-bottom-left-radius:9999px!important}.border-0{border-width:0!important}.border-t-0{border-top-width:0!important}.border-r-0{border-right-width:0!important}.border-b-0{border-bottom-width:0!important}.border-l-0{border-left-width:0!important}.p-0:not([style*=padding]){padding:0!important}.p-base:not([style*=padding]){padding:var(--wp--style--block-gap,2rem)!important}.p-lg:not([style*=padding]){padding:var(--extendify--spacing--large)!important}.px-0:not([style*=padding]){padding-left:0!important;padding-right:0!important}.px-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important;padding-right:var(--wp--style--block-gap,2rem)!important}.px-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important;padding-right:var(--extendify--spacing--large)!important}.py-0:not([style*=padding]){padding-bottom:0!important;padding-top:0!important}.py-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important;padding-top:var(--wp--style--block-gap,2rem)!important}.py-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important;padding-top:var(--extendify--spacing--large)!important}.pt-0:not([style*=padding]){padding-top:0!important}.pt-base:not([style*=padding]){padding-top:var(--wp--style--block-gap,2rem)!important}.pt-lg:not([style*=padding]){padding-top:var(--extendify--spacing--large)!important}.pr-0:not([style*=padding]){padding-right:0!important}.pr-base:not([style*=padding]){padding-right:var(--wp--style--block-gap,2rem)!important}.pr-lg:not([style*=padding]){padding-right:var(--extendify--spacing--large)!important}.pb-0:not([style*=padding]){padding-bottom:0!important}.pb-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important}.pb-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important}.pl-0:not([style*=padding]){padding-left:0!important}.pl-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important}.pl-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important}.text-left{text-align:left!important}.text-center{text-align:center!important}.text-right{text-align:right!important}.leading-none{line-height:1!important}.leading-tight{line-height:1.25!important}.leading-snug{line-height:1.375!important}.leading-normal{line-height:1.5!important}.leading-relaxed{line-height:1.625!important}.leading-loose{line-height:2!important}.clip-path--rhombus img{-webkit-clip-path:polygon(15% 6%,80% 29%,84% 93%,23% 69%);clip-path:polygon(15% 6%,80% 29%,84% 93%,23% 69%)}.clip-path--diamond img{-webkit-clip-path:polygon(5% 29%,60% 2%,91% 64%,36% 89%);clip-path:polygon(5% 29%,60% 2%,91% 64%,36% 89%)}.clip-path--rhombus-alt img{-webkit-clip-path:polygon(14% 9%,85% 24%,91% 89%,19% 76%);clip-path:polygon(14% 9%,85% 24%,91% 89%,19% 76%)}.wp-block-columns[class*=fullwidth-cols]{margin-bottom:unset}.ext .wp-block-columns .wp-block-column[style*=padding]{padding-left:0!important;padding-right:0!important}.ext .wp-block-columns+.wp-block-columns:not([class*=mt-]):not([class*=my-]):not([style*=margin]){margin-top:0!important}[class*=fullwidth-cols] .wp-block-column:first-child,[class*=fullwidth-cols] .wp-block-group:first-child{margin-top:0}[class*=fullwidth-cols] .wp-block-column:last-child,[class*=fullwidth-cols] .wp-block-group:last-child{margin-bottom:0}[class*=fullwidth-cols] .wp-block-column :first-child,[class*=fullwidth-cols] .wp-block-column:first-child *{margin-top:0}.ext .is-not-stacked-on-mobile .wp-block-column,[class*=fullwidth-cols] .wp-block-column :last-child{margin-bottom:0}.wp-block-columns[class*=fullwidth-cols]:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:last-child){margin-bottom:var(--wp--style--block-gap,2rem)}@media (min-width:782px){.wp-block-columns[class*=fullwidth-cols]:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:last-child){margin-bottom:0}}.wp-block-columns[class*=fullwidth-cols].is-not-stacked-on-mobile>.wp-block-column{margin-bottom:0!important}@media (min-width:600px) and (max-width:781px){.wp-block-columns[class*=fullwidth-cols]:not(.is-not-stacked-on-mobile)>.wp-block-column:nth-child(2n){margin-left:var(--wp--style--block-gap,2em)}}@media (max-width:781px){.tablet\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile){flex-wrap:wrap}.tablet\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important;margin-left:0!important}}@media (max-width:1079px){.desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile){flex-wrap:wrap}.desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important;margin-left:0!important}.desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:last-child){margin-bottom:var(--wp--style--block-gap,2rem)!important}}.direction-rtl{direction:rtl}.direction-ltr{direction:ltr}.is-style-inline-list{padding-left:0!important}.is-style-inline-list li{list-style-type:none!important}@media (min-width:782px){.is-style-inline-list li{display:inline;margin-right:var(--wp--style--block-gap,2rem)!important}}@media (min-width:782px){.is-style-inline-list li:first-child{margin-left:0!important}}@media (min-width:782px){.is-style-inline-list li:last-child{margin-right:0!important}}.bring-to-front{position:relative;z-index:10}.text-stroke{-webkit-text-stroke-color:var(--wp--preset--color--background)}.text-stroke,.text-stroke--primary{-webkit-text-stroke-width:var(--wp--custom--typography--text-stroke-width,2px )}.text-stroke--primary{-webkit-text-stroke-color:var(--wp--preset--color--primary)}.text-stroke--secondary{-webkit-text-stroke-width:var(--wp--custom--typography--text-stroke-width,2px );-webkit-text-stroke-color:var(--wp--preset--color--secondary)}.editor\:no-caption .block-editor-rich-text__editable,.editor\:no-inserter .wp-block-column:not(.is-selected)>.block-list-appender,.editor\:no-inserter .wp-block-cover__inner-container>.block-list-appender,.editor\:no-inserter .wp-block-group__inner-container>.block-list-appender,.editor\:no-inserter>.block-list-appender{display:none}.editor\:no-resize .components-resizable-box__handle,.editor\:no-resize .components-resizable-box__handle:after,.editor\:no-resize .components-resizable-box__side-handle:before{display:none;pointer-events:none}.editor\:no-resize .components-resizable-box__container{display:block}.editor\:pointer-events-none{pointer-events:none}.is-style-angled{justify-content:flex-end}.ext .is-style-angled>[class*=_inner-container],.is-style-angled{align-items:center}.is-style-angled .wp-block-cover__image-background,.is-style-angled .wp-block-cover__video-background{-webkit-clip-path:polygon(0 0,30% 0,50% 100%,0 100%);clip-path:polygon(0 0,30% 0,50% 100%,0 100%)}@media (min-width:782px){.is-style-angled .wp-block-cover__image-background,.is-style-angled .wp-block-cover__video-background{-webkit-clip-path:polygon(0 0,55% 0,65% 100%,0 100%);clip-path:polygon(0 0,55% 0,65% 100%,0 100%)}}.ext .wp-block[data-align=wide]{margin-bottom:0!important;margin-top:0!important}.has-foreground-color{color:var(--wp--preset--color--foreground,#000)!important}.has-foreground-background-color{background-color:var(--wp--preset--color--foreground,#000)!important}.has-background-color{color:var(--wp--preset--color--background,#fff)!important}.has-background-background-color{background-color:var(--wp--preset--color--background,#fff)!important}.has-primary-color{color:var(--wp--preset--color--primary,#4b5563)!important}.has-primary-background-color{background-color:var(--wp--preset--color--primary,#4b5563)!important}.has-secondary-color{color:var(--wp--preset--color--secondary,#9ca3af)!important}.has-secondary-background-color{background-color:var(--wp--preset--color--secondary,#9ca3af)!important}.ext.has-text-color h1,.ext.has-text-color h2,.ext.has-text-color h3,.ext.has-text-color h4,.ext.has-text-color h5,.ext.has-text-color h6,.ext.has-text-color p{color:currentColor}.editor-styles-wrapper .has-gigantic-font-size.wp-block,.has-gigantic-font-size{--fallback-size:clamp(var(--wp--preset--font-size--huge,22px),calc(1rem + var(--wp--custom--typography--gigantic--preferred, 5vw)),var(--wp--preset--font-size--huge,42px) * 2);font-size:var( --wp--preset--font-size--gigantic,var(--fallback-size ) )}.editor-styles-wrapper .has-extra-large-font-size.wp-block,.has-extra-large-font-size{--fallback-size:clamp(var(--wp--preset--font-size--large,20px),calc(1rem + var(--wp--custom--typography--large--preferred, 4vw)),var(--wp--preset--font-size--extra-large,36px) * 2);font-size:var( --wp--preset--font-size--extra-large,var(--fallback-size ) )}.ext .grid>[class*=_inner-container]{display:grid}.ext>[class*=_inner-container]>.grid:not([class*=columns]),.ext>[class*=_inner-container]>.wp-block>.grid:not([class*=columns]){display:initial}.ext .grid-cols-1>[class*=_inner-container]{grid-template-columns:repeat(1,minmax(0,1fr))!important}.ext .grid-cols-2>[class*=_inner-container]{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ext .grid-cols-3>[class*=_inner-container]{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ext .grid-cols-4>[class*=_inner-container]{grid-template-columns:repeat(4,minmax(0,1fr))!important}.ext .grid-cols-5>[class*=_inner-container]{grid-template-columns:repeat(5,minmax(0,1fr))!important}.ext .grid-cols-6>[class*=_inner-container]{grid-template-columns:repeat(6,minmax(0,1fr))!important}.ext .grid-cols-7>[class*=_inner-container]{grid-template-columns:repeat(7,minmax(0,1fr))!important}.ext .grid-cols-8>[class*=_inner-container]{grid-template-columns:repeat(8,minmax(0,1fr))!important}.ext .grid-cols-9>[class*=_inner-container]{grid-template-columns:repeat(9,minmax(0,1fr))!important}.ext .grid-cols-10>[class*=_inner-container]{grid-template-columns:repeat(10,minmax(0,1fr))!important}.ext .grid-cols-11>[class*=_inner-container]{grid-template-columns:repeat(11,minmax(0,1fr))!important}.ext .grid-cols-12>[class*=_inner-container]{grid-template-columns:repeat(12,minmax(0,1fr))!important}.ext .grid-cols-none>[class*=_inner-container]{grid-template-columns:none!important}.ext .grid-rows-1>[class*=_inner-container]{grid-template-rows:repeat(1,minmax(0,1fr))!important}.ext .grid-rows-2>[class*=_inner-container]{grid-template-rows:repeat(2,minmax(0,1fr))!important}.ext .grid-rows-3>[class*=_inner-container]{grid-template-rows:repeat(3,minmax(0,1fr))!important}.ext .grid-rows-4>[class*=_inner-container]{grid-template-rows:repeat(4,minmax(0,1fr))!important}.ext .grid-rows-5>[class*=_inner-container]{grid-template-rows:repeat(5,minmax(0,1fr))!important}.ext .grid-rows-6>[class*=_inner-container]{grid-template-rows:repeat(6,minmax(0,1fr))!important}.ext .grid-rows-none>[class*=_inner-container]{grid-template-rows:none!important}.ext .items-start>[class*=_inner-container]{align-items:flex-start!important}.ext .items-end>[class*=_inner-container]{align-items:flex-end!important}.ext .items-center>[class*=_inner-container]{align-items:center!important}.ext .items-baseline>[class*=_inner-container]{align-items:baseline!important}.ext .items-stretch>[class*=_inner-container]{align-items:stretch!important}.ext.wp-block-group>:last-child{margin-bottom:0}.ext .wp-block-group__inner-container{padding:0!important}.ext.has-background{padding-left:var(--wp--style--block-gap,2rem);padding-right:var(--wp--style--block-gap,2rem)}.ext [class*=inner-container]>.alignwide [class*=inner-container]{max-width:var(--responsive--alignwide-width,120rem)}.ext [class*=inner-container]>.alignwide [class*=inner-container]>*{max-width:100%!important}.ext [class*=inner-container]>.alignfull [class*=inner-container]{max-width:100%}.ext [class*=inner-container]>.alignfull [class*=inner-container]>*{max-width:100%!important}.ext .wp-block-image{position:relative;text-align:center}.ext .wp-block-image img{display:inline-block;vertical-align:middle}body{--extendify--spacing--large:var(--wp--custom--spacing--large,clamp(2em,8vw,8em))}.ast-separate-container .ext .block-editor-block-list__layout{padding:0!important}.ext [data-block].wp-block-buttons .wp-block-button{margin-bottom:0;margin-top:0}.ext [data-block].wp-block-buttons .wp-block-button:first-child{margin-bottom:var(--wp--style--block-gap,2rem)!important;margin-top:0!important}.ext .wp-block-group__inner-container figure.wp-block-gallery.alignfull{margin-bottom:unset;margin-top:unset}.ext .alignwide{margin-left:auto!important;margin-right:auto!important}@media (min-width:782px){.tablet\:absolute{position:absolute!important}.tablet\:relative{position:relative!important}.tablet\:top-base{top:var(--wp--style--block-gap,2rem)!important}.tablet\:top-lg{top:var(--extendify--spacing--large)!important}.tablet\:-top-base{top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-top-lg{top:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:right-base{right:var(--wp--style--block-gap,2rem)!important}.tablet\:right-lg{right:var(--extendify--spacing--large)!important}.tablet\:-right-base{right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-right-lg{right:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:bottom-base{bottom:var(--wp--style--block-gap,2rem)!important}.tablet\:bottom-lg{bottom:var(--extendify--spacing--large)!important}.tablet\:-bottom-base{bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-bottom-lg{bottom:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:left-base{left:var(--wp--style--block-gap,2rem)!important}.tablet\:left-lg{left:var(--extendify--spacing--large)!important}.tablet\:-left-base{left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-left-lg{left:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:order-1{order:1!important}.tablet\:order-2{order:2!important}.tablet\:m-0:not([style*=margin]){margin:0!important}.tablet\:m-auto:not([style*=margin]){margin:auto!important}.tablet\:m-base:not([style*=margin]){margin:var(--wp--style--block-gap,2rem)!important}.tablet\:m-lg:not([style*=margin]){margin:var(--extendify--spacing--large)!important}.tablet\:-m-base:not([style*=margin]){margin:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-m-lg:not([style*=margin]){margin:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:mx-0:not([style*=margin]){margin-left:0!important;margin-right:0!important}.tablet\:mx-auto:not([style*=margin]){margin-left:auto!important;margin-right:auto!important}.tablet\:mx-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important;margin-right:var(--wp--style--block-gap,2rem)!important}.tablet\:mx-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important;margin-right:var(--extendify--spacing--large)!important}.tablet\:-mx-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-mx-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important;margin-right:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:my-0:not([style*=margin]){margin-bottom:0!important;margin-top:0!important}.tablet\:my-auto:not([style*=margin]){margin-bottom:auto!important;margin-top:auto!important}.tablet\:my-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important;margin-top:var(--wp--style--block-gap,2rem)!important}.tablet\:my-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important;margin-top:var(--extendify--spacing--large)!important}.tablet\:-my-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-my-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important;margin-top:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:mt-0:not([style*=margin]){margin-top:0!important}.tablet\:mt-auto:not([style*=margin]){margin-top:auto!important}.tablet\:mt-base:not([style*=margin]){margin-top:var(--wp--style--block-gap,2rem)!important}.tablet\:mt-lg:not([style*=margin]){margin-top:var(--extendify--spacing--large)!important}.tablet\:-mt-base:not([style*=margin]){margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-mt-lg:not([style*=margin]){margin-top:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:mr-0:not([style*=margin]){margin-right:0!important}.tablet\:mr-auto:not([style*=margin]){margin-right:auto!important}.tablet\:mr-base:not([style*=margin]){margin-right:var(--wp--style--block-gap,2rem)!important}.tablet\:mr-lg:not([style*=margin]){margin-right:var(--extendify--spacing--large)!important}.tablet\:-mr-base:not([style*=margin]){margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-mr-lg:not([style*=margin]){margin-right:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:mb-0:not([style*=margin]){margin-bottom:0!important}.tablet\:mb-auto:not([style*=margin]){margin-bottom:auto!important}.tablet\:mb-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important}.tablet\:mb-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important}.tablet\:-mb-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-mb-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ml-0:not([style*=margin]){margin-left:0!important}.tablet\:ml-auto:not([style*=margin]){margin-left:auto!important}.tablet\:ml-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important}.tablet\:ml-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important}.tablet\:-ml-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:-ml-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:block{display:block}.tablet\:inline-block{display:inline-block}.tablet\:inline{display:inline}.tablet\:flex{display:flex}.tablet\:inline-flex{display:inline-flex}.tablet\:grid{display:grid}.tablet\:inline-grid{display:inline-grid}.tablet\:hidden{display:none}.tablet\:w-auto{width:auto!important}.tablet\:w-full{width:100%!important}.tablet\:max-w-full{max-width:100%!important}.tablet\:flex-1{flex:1 1 0%!important}.tablet\:flex-auto{flex:1 1 auto!important}.tablet\:flex-initial{flex:0 1 auto!important}.tablet\:flex-none{flex:none!important}.tablet\:flex-shrink-0{flex-shrink:0!important}.tablet\:flex-shrink{flex-shrink:1!important}.tablet\:flex-grow-0{flex-grow:0!important}.tablet\:flex-grow{flex-grow:1!important}.tablet\:list-none{list-style-type:none!important}.tablet\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.tablet\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tablet\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.tablet\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.tablet\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}.tablet\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))!important}.tablet\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))!important}.tablet\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))!important}.tablet\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))!important}.tablet\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))!important}.tablet\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))!important}.tablet\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))!important}.tablet\:grid-cols-none{grid-template-columns:none!important}.tablet\:flex-row{flex-direction:row!important}.tablet\:flex-row-reverse{flex-direction:row-reverse!important}.tablet\:flex-col{flex-direction:column!important}.tablet\:flex-col-reverse{flex-direction:column-reverse!important}.tablet\:flex-wrap{flex-wrap:wrap!important}.tablet\:flex-wrap-reverse{flex-wrap:wrap-reverse!important}.tablet\:flex-nowrap{flex-wrap:nowrap!important}.tablet\:items-start{align-items:flex-start!important}.tablet\:items-end{align-items:flex-end!important}.tablet\:items-center{align-items:center!important}.tablet\:items-baseline{align-items:baseline!important}.tablet\:items-stretch{align-items:stretch!important}.tablet\:justify-start{justify-content:flex-start!important}.tablet\:justify-end{justify-content:flex-end!important}.tablet\:justify-center{justify-content:center!important}.tablet\:justify-between{justify-content:space-between!important}.tablet\:justify-around{justify-content:space-around!important}.tablet\:justify-evenly{justify-content:space-evenly!important}.tablet\:justify-items-start{justify-items:start!important}.tablet\:justify-items-end{justify-items:end!important}.tablet\:justify-items-center{justify-items:center!important}.tablet\:justify-items-stretch{justify-items:stretch!important}.tablet\:justify-self-auto{justify-self:auto!important}.tablet\:justify-self-start{justify-self:start!important}.tablet\:justify-self-end{justify-self:end!important}.tablet\:justify-self-center{justify-self:center!important}.tablet\:justify-self-stretch{justify-self:stretch!important}.tablet\:p-0:not([style*=padding]){padding:0!important}.tablet\:p-base:not([style*=padding]){padding:var(--wp--style--block-gap,2rem)!important}.tablet\:p-lg:not([style*=padding]){padding:var(--extendify--spacing--large)!important}.tablet\:px-0:not([style*=padding]){padding-left:0!important;padding-right:0!important}.tablet\:px-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important;padding-right:var(--wp--style--block-gap,2rem)!important}.tablet\:px-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important;padding-right:var(--extendify--spacing--large)!important}.tablet\:py-0:not([style*=padding]){padding-bottom:0!important;padding-top:0!important}.tablet\:py-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important;padding-top:var(--wp--style--block-gap,2rem)!important}.tablet\:py-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important;padding-top:var(--extendify--spacing--large)!important}.tablet\:pt-0:not([style*=padding]){padding-top:0!important}.tablet\:pt-base:not([style*=padding]){padding-top:var(--wp--style--block-gap,2rem)!important}.tablet\:pt-lg:not([style*=padding]){padding-top:var(--extendify--spacing--large)!important}.tablet\:pr-0:not([style*=padding]){padding-right:0!important}.tablet\:pr-base:not([style*=padding]){padding-right:var(--wp--style--block-gap,2rem)!important}.tablet\:pr-lg:not([style*=padding]){padding-right:var(--extendify--spacing--large)!important}.tablet\:pb-0:not([style*=padding]){padding-bottom:0!important}.tablet\:pb-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important}.tablet\:pb-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important}.tablet\:pl-0:not([style*=padding]){padding-left:0!important}.tablet\:pl-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important}.tablet\:pl-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important}.tablet\:text-left{text-align:left!important}.tablet\:text-center{text-align:center!important}.tablet\:text-right{text-align:right!important}}@media (min-width:1080px){.desktop\:absolute{position:absolute!important}.desktop\:relative{position:relative!important}.desktop\:top-base{top:var(--wp--style--block-gap,2rem)!important}.desktop\:top-lg{top:var(--extendify--spacing--large)!important}.desktop\:-top-base{top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-top-lg{top:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:right-base{right:var(--wp--style--block-gap,2rem)!important}.desktop\:right-lg{right:var(--extendify--spacing--large)!important}.desktop\:-right-base{right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-right-lg{right:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:bottom-base{bottom:var(--wp--style--block-gap,2rem)!important}.desktop\:bottom-lg{bottom:var(--extendify--spacing--large)!important}.desktop\:-bottom-base{bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-bottom-lg{bottom:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:left-base{left:var(--wp--style--block-gap,2rem)!important}.desktop\:left-lg{left:var(--extendify--spacing--large)!important}.desktop\:-left-base{left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-left-lg{left:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:order-1{order:1!important}.desktop\:order-2{order:2!important}.desktop\:m-0:not([style*=margin]){margin:0!important}.desktop\:m-auto:not([style*=margin]){margin:auto!important}.desktop\:m-base:not([style*=margin]){margin:var(--wp--style--block-gap,2rem)!important}.desktop\:m-lg:not([style*=margin]){margin:var(--extendify--spacing--large)!important}.desktop\:-m-base:not([style*=margin]){margin:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-m-lg:not([style*=margin]){margin:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:mx-0:not([style*=margin]){margin-left:0!important;margin-right:0!important}.desktop\:mx-auto:not([style*=margin]){margin-left:auto!important;margin-right:auto!important}.desktop\:mx-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important;margin-right:var(--wp--style--block-gap,2rem)!important}.desktop\:mx-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important;margin-right:var(--extendify--spacing--large)!important}.desktop\:-mx-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-mx-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important;margin-right:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:my-0:not([style*=margin]){margin-bottom:0!important;margin-top:0!important}.desktop\:my-auto:not([style*=margin]){margin-bottom:auto!important;margin-top:auto!important}.desktop\:my-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important;margin-top:var(--wp--style--block-gap,2rem)!important}.desktop\:my-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important;margin-top:var(--extendify--spacing--large)!important}.desktop\:-my-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-my-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important;margin-top:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:mt-0:not([style*=margin]){margin-top:0!important}.desktop\:mt-auto:not([style*=margin]){margin-top:auto!important}.desktop\:mt-base:not([style*=margin]){margin-top:var(--wp--style--block-gap,2rem)!important}.desktop\:mt-lg:not([style*=margin]){margin-top:var(--extendify--spacing--large)!important}.desktop\:-mt-base:not([style*=margin]){margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-mt-lg:not([style*=margin]){margin-top:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:mr-0:not([style*=margin]){margin-right:0!important}.desktop\:mr-auto:not([style*=margin]){margin-right:auto!important}.desktop\:mr-base:not([style*=margin]){margin-right:var(--wp--style--block-gap,2rem)!important}.desktop\:mr-lg:not([style*=margin]){margin-right:var(--extendify--spacing--large)!important}.desktop\:-mr-base:not([style*=margin]){margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-mr-lg:not([style*=margin]){margin-right:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:mb-0:not([style*=margin]){margin-bottom:0!important}.desktop\:mb-auto:not([style*=margin]){margin-bottom:auto!important}.desktop\:mb-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important}.desktop\:mb-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important}.desktop\:-mb-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-mb-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ml-0:not([style*=margin]){margin-left:0!important}.desktop\:ml-auto:not([style*=margin]){margin-left:auto!important}.desktop\:ml-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important}.desktop\:ml-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important}.desktop\:-ml-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:-ml-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:block{display:block}.desktop\:inline-block{display:inline-block}.desktop\:inline{display:inline}.desktop\:flex{display:flex}.desktop\:inline-flex{display:inline-flex}.desktop\:grid{display:grid}.desktop\:inline-grid{display:inline-grid}.desktop\:hidden{display:none}.desktop\:w-auto{width:auto!important}.desktop\:w-full{width:100%!important}.desktop\:max-w-full{max-width:100%!important}.desktop\:flex-1{flex:1 1 0%!important}.desktop\:flex-auto{flex:1 1 auto!important}.desktop\:flex-initial{flex:0 1 auto!important}.desktop\:flex-none{flex:none!important}.desktop\:flex-shrink-0{flex-shrink:0!important}.desktop\:flex-shrink{flex-shrink:1!important}.desktop\:flex-grow-0{flex-grow:0!important}.desktop\:flex-grow{flex-grow:1!important}.desktop\:list-none{list-style-type:none!important}.desktop\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.desktop\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.desktop\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.desktop\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.desktop\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}.desktop\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))!important}.desktop\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))!important}.desktop\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))!important}.desktop\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))!important}.desktop\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))!important}.desktop\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))!important}.desktop\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))!important}.desktop\:grid-cols-none{grid-template-columns:none!important}.desktop\:flex-row{flex-direction:row!important}.desktop\:flex-row-reverse{flex-direction:row-reverse!important}.desktop\:flex-col{flex-direction:column!important}.desktop\:flex-col-reverse{flex-direction:column-reverse!important}.desktop\:flex-wrap{flex-wrap:wrap!important}.desktop\:flex-wrap-reverse{flex-wrap:wrap-reverse!important}.desktop\:flex-nowrap{flex-wrap:nowrap!important}.desktop\:items-start{align-items:flex-start!important}.desktop\:items-end{align-items:flex-end!important}.desktop\:items-center{align-items:center!important}.desktop\:items-baseline{align-items:baseline!important}.desktop\:items-stretch{align-items:stretch!important}.desktop\:justify-start{justify-content:flex-start!important}.desktop\:justify-end{justify-content:flex-end!important}.desktop\:justify-center{justify-content:center!important}.desktop\:justify-between{justify-content:space-between!important}.desktop\:justify-around{justify-content:space-around!important}.desktop\:justify-evenly{justify-content:space-evenly!important}.desktop\:justify-items-start{justify-items:start!important}.desktop\:justify-items-end{justify-items:end!important}.desktop\:justify-items-center{justify-items:center!important}.desktop\:justify-items-stretch{justify-items:stretch!important}.desktop\:justify-self-auto{justify-self:auto!important}.desktop\:justify-self-start{justify-self:start!important}.desktop\:justify-self-end{justify-self:end!important}.desktop\:justify-self-center{justify-self:center!important}.desktop\:justify-self-stretch{justify-self:stretch!important}.desktop\:p-0:not([style*=padding]){padding:0!important}.desktop\:p-base:not([style*=padding]){padding:var(--wp--style--block-gap,2rem)!important}.desktop\:p-lg:not([style*=padding]){padding:var(--extendify--spacing--large)!important}.desktop\:px-0:not([style*=padding]){padding-left:0!important;padding-right:0!important}.desktop\:px-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important;padding-right:var(--wp--style--block-gap,2rem)!important}.desktop\:px-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important;padding-right:var(--extendify--spacing--large)!important}.desktop\:py-0:not([style*=padding]){padding-bottom:0!important;padding-top:0!important}.desktop\:py-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important;padding-top:var(--wp--style--block-gap,2rem)!important}.desktop\:py-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important;padding-top:var(--extendify--spacing--large)!important}.desktop\:pt-0:not([style*=padding]){padding-top:0!important}.desktop\:pt-base:not([style*=padding]){padding-top:var(--wp--style--block-gap,2rem)!important}.desktop\:pt-lg:not([style*=padding]){padding-top:var(--extendify--spacing--large)!important}.desktop\:pr-0:not([style*=padding]){padding-right:0!important}.desktop\:pr-base:not([style*=padding]){padding-right:var(--wp--style--block-gap,2rem)!important}.desktop\:pr-lg:not([style*=padding]){padding-right:var(--extendify--spacing--large)!important}.desktop\:pb-0:not([style*=padding]){padding-bottom:0!important}.desktop\:pb-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important}.desktop\:pb-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important}.desktop\:pl-0:not([style*=padding]){padding-left:0!important}.desktop\:pl-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important}.desktop\:pl-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important}.desktop\:text-left{text-align:left!important}.desktop\:text-center{text-align:center!important}.desktop\:text-right{text-align:right!important}}
1
+ .ext-absolute{position:absolute!important}.ext-relative{position:relative!important}.ext-top-base{top:var(--wp--style--block-gap,2rem)!important}.ext-top-lg{top:var(--extendify--spacing--large)!important}.ext--top-base{top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--top-lg{top:calc(var(--extendify--spacing--large)*-1)!important}.ext-right-base{right:var(--wp--style--block-gap,2rem)!important}.ext-right-lg{right:var(--extendify--spacing--large)!important}.ext--right-base{right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--right-lg{right:calc(var(--extendify--spacing--large)*-1)!important}.ext-bottom-base{bottom:var(--wp--style--block-gap,2rem)!important}.ext-bottom-lg{bottom:var(--extendify--spacing--large)!important}.ext--bottom-base{bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--bottom-lg{bottom:calc(var(--extendify--spacing--large)*-1)!important}.ext-left-base{left:var(--wp--style--block-gap,2rem)!important}.ext-left-lg{left:var(--extendify--spacing--large)!important}.ext--left-base{left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--left-lg{left:calc(var(--extendify--spacing--large)*-1)!important}.ext-order-1{order:1!important}.ext-order-2{order:2!important}.ext-col-auto{grid-column:auto!important}.ext-col-span-1{grid-column:span 1/span 1!important}.ext-col-span-2{grid-column:span 2/span 2!important}.ext-col-span-3{grid-column:span 3/span 3!important}.ext-col-span-4{grid-column:span 4/span 4!important}.ext-col-span-5{grid-column:span 5/span 5!important}.ext-col-span-6{grid-column:span 6/span 6!important}.ext-col-span-7{grid-column:span 7/span 7!important}.ext-col-span-8{grid-column:span 8/span 8!important}.ext-col-span-9{grid-column:span 9/span 9!important}.ext-col-span-10{grid-column:span 10/span 10!important}.ext-col-span-11{grid-column:span 11/span 11!important}.ext-col-span-12{grid-column:span 12/span 12!important}.ext-col-span-full{grid-column:1/-1!important}.ext-col-start-1{grid-column-start:1!important}.ext-col-start-2{grid-column-start:2!important}.ext-col-start-3{grid-column-start:3!important}.ext-col-start-4{grid-column-start:4!important}.ext-col-start-5{grid-column-start:5!important}.ext-col-start-6{grid-column-start:6!important}.ext-col-start-7{grid-column-start:7!important}.ext-col-start-8{grid-column-start:8!important}.ext-col-start-9{grid-column-start:9!important}.ext-col-start-10{grid-column-start:10!important}.ext-col-start-11{grid-column-start:11!important}.ext-col-start-12{grid-column-start:12!important}.ext-col-start-13{grid-column-start:13!important}.ext-col-start-auto{grid-column-start:auto!important}.ext-col-end-1{grid-column-end:1!important}.ext-col-end-2{grid-column-end:2!important}.ext-col-end-3{grid-column-end:3!important}.ext-col-end-4{grid-column-end:4!important}.ext-col-end-5{grid-column-end:5!important}.ext-col-end-6{grid-column-end:6!important}.ext-col-end-7{grid-column-end:7!important}.ext-col-end-8{grid-column-end:8!important}.ext-col-end-9{grid-column-end:9!important}.ext-col-end-10{grid-column-end:10!important}.ext-col-end-11{grid-column-end:11!important}.ext-col-end-12{grid-column-end:12!important}.ext-col-end-13{grid-column-end:13!important}.ext-col-end-auto{grid-column-end:auto!important}.ext-row-auto{grid-row:auto!important}.ext-row-span-1{grid-row:span 1/span 1!important}.ext-row-span-2{grid-row:span 2/span 2!important}.ext-row-span-3{grid-row:span 3/span 3!important}.ext-row-span-4{grid-row:span 4/span 4!important}.ext-row-span-5{grid-row:span 5/span 5!important}.ext-row-span-6{grid-row:span 6/span 6!important}.ext-row-span-full{grid-row:1/-1!important}.ext-row-start-1{grid-row-start:1!important}.ext-row-start-2{grid-row-start:2!important}.ext-row-start-3{grid-row-start:3!important}.ext-row-start-4{grid-row-start:4!important}.ext-row-start-5{grid-row-start:5!important}.ext-row-start-6{grid-row-start:6!important}.ext-row-start-7{grid-row-start:7!important}.ext-row-start-auto{grid-row-start:auto!important}.ext-row-end-1{grid-row-end:1!important}.ext-row-end-2{grid-row-end:2!important}.ext-row-end-3{grid-row-end:3!important}.ext-row-end-4{grid-row-end:4!important}.ext-row-end-5{grid-row-end:5!important}.ext-row-end-6{grid-row-end:6!important}.ext-row-end-7{grid-row-end:7!important}.ext-row-end-auto{grid-row-end:auto!important}.ext-m-0:not([style*=margin]){margin:0!important}.ext-m-auto:not([style*=margin]){margin:auto!important}.ext-m-base:not([style*=margin]){margin:var(--wp--style--block-gap,2rem)!important}.ext-m-lg:not([style*=margin]){margin:var(--extendify--spacing--large)!important}.ext--m-base:not([style*=margin]){margin:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--m-lg:not([style*=margin]){margin:calc(var(--extendify--spacing--large)*-1)!important}.ext-mx-0:not([style*=margin]){margin-left:0!important;margin-right:0!important}.ext-mx-auto:not([style*=margin]){margin-left:auto!important;margin-right:auto!important}.ext-mx-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important;margin-right:var(--wp--style--block-gap,2rem)!important}.ext-mx-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important;margin-right:var(--extendify--spacing--large)!important}.ext--mx-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--mx-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important;margin-right:calc(var(--extendify--spacing--large)*-1)!important}.ext-my-0:not([style*=margin]){margin-bottom:0!important;margin-top:0!important}.ext-my-auto:not([style*=margin]){margin-bottom:auto!important;margin-top:auto!important}.ext-my-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important;margin-top:var(--wp--style--block-gap,2rem)!important}.ext-my-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important;margin-top:var(--extendify--spacing--large)!important}.ext--my-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--my-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important;margin-top:calc(var(--extendify--spacing--large)*-1)!important}.ext-mt-0:not([style*=margin]){margin-top:0!important}.ext-mt-auto:not([style*=margin]){margin-top:auto!important}.ext-mt-base:not([style*=margin]){margin-top:var(--wp--style--block-gap,2rem)!important}.ext-mt-lg:not([style*=margin]){margin-top:var(--extendify--spacing--large)!important}.ext--mt-base:not([style*=margin]){margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--mt-lg:not([style*=margin]){margin-top:calc(var(--extendify--spacing--large)*-1)!important}.ext-mr-0:not([style*=margin]){margin-right:0!important}.ext-mr-auto:not([style*=margin]){margin-right:auto!important}.ext-mr-base:not([style*=margin]){margin-right:var(--wp--style--block-gap,2rem)!important}.ext-mr-lg:not([style*=margin]){margin-right:var(--extendify--spacing--large)!important}.ext--mr-base:not([style*=margin]){margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--mr-lg:not([style*=margin]){margin-right:calc(var(--extendify--spacing--large)*-1)!important}.ext-mb-0:not([style*=margin]){margin-bottom:0!important}.ext-mb-auto:not([style*=margin]){margin-bottom:auto!important}.ext-mb-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important}.ext-mb-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important}.ext--mb-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--mb-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important}.ext-ml-0:not([style*=margin]){margin-left:0!important}.ext-ml-auto:not([style*=margin]){margin-left:auto!important}.ext-ml-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important}.ext-ml-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important}.ext--ml-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.ext--ml-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important}.ext-block{display:block!important}.ext-inline-block{display:inline-block!important}.ext-inline{display:inline!important}.ext-flex{display:flex!important}.ext-inline-flex{display:inline-flex!important}.ext-grid{display:grid!important}.ext-inline-grid{display:inline-grid!important}.ext-hidden{display:none!important}.ext-w-auto{width:auto!important}.ext-w-full{width:100%!important}.ext-max-w-full{max-width:100%!important}.ext-flex-1{flex:1 1 0%!important}.ext-flex-auto{flex:1 1 auto!important}.ext-flex-initial{flex:0 1 auto!important}.ext-flex-none{flex:none!important}.ext-flex-shrink-0{flex-shrink:0!important}.ext-flex-shrink{flex-shrink:1!important}.ext-flex-grow-0{flex-grow:0!important}.ext-flex-grow{flex-grow:1!important}.ext-list-none{list-style-type:none!important}.ext-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.ext-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ext-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ext-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.ext-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}.ext-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))!important}.ext-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))!important}.ext-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))!important}.ext-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))!important}.ext-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))!important}.ext-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))!important}.ext-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))!important}.ext-grid-cols-none{grid-template-columns:none!important}.ext-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))!important}.ext-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))!important}.ext-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))!important}.ext-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))!important}.ext-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))!important}.ext-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))!important}.ext-grid-rows-none{grid-template-rows:none!important}.ext-flex-row{flex-direction:row!important}.ext-flex-row-reverse{flex-direction:row-reverse!important}.ext-flex-col{flex-direction:column!important}.ext-flex-col-reverse{flex-direction:column-reverse!important}.ext-flex-wrap{flex-wrap:wrap!important}.ext-flex-wrap-reverse{flex-wrap:wrap-reverse!important}.ext-flex-nowrap{flex-wrap:nowrap!important}.ext-items-start{align-items:flex-start!important}.ext-items-end{align-items:flex-end!important}.ext-items-center{align-items:center!important}.ext-items-baseline{align-items:baseline!important}.ext-items-stretch{align-items:stretch!important}.ext-justify-start{justify-content:flex-start!important}.ext-justify-end{justify-content:flex-end!important}.ext-justify-center{justify-content:center!important}.ext-justify-between{justify-content:space-between!important}.ext-justify-around{justify-content:space-around!important}.ext-justify-evenly{justify-content:space-evenly!important}.ext-justify-items-start{justify-items:start!important}.ext-justify-items-end{justify-items:end!important}.ext-justify-items-center{justify-items:center!important}.ext-justify-items-stretch{justify-items:stretch!important}.ext-gap-0{gap:0!important}.ext-gap-base{gap:var(--wp--style--block-gap,2rem)!important}.ext-gap-lg{gap:var(--extendify--spacing--large)!important}.ext-gap-x-0{-moz-column-gap:0!important;column-gap:0!important}.ext-gap-x-base{-moz-column-gap:var(--wp--style--block-gap,2rem)!important;column-gap:var(--wp--style--block-gap,2rem)!important}.ext-gap-x-lg{-moz-column-gap:var(--extendify--spacing--large)!important;column-gap:var(--extendify--spacing--large)!important}.ext-gap-y-0{row-gap:0!important}.ext-gap-y-base{row-gap:var(--wp--style--block-gap,2rem)!important}.ext-gap-y-lg{row-gap:var(--extendify--spacing--large)!important}.ext-justify-self-auto{justify-self:auto!important}.ext-justify-self-start{justify-self:start!important}.ext-justify-self-end{justify-self:end!important}.ext-justify-self-center{justify-self:center!important}.ext-justify-self-stretch{justify-self:stretch!important}.ext-rounded-none{border-radius:0!important}.ext-rounded-full{border-radius:9999px!important}.ext-rounded-t-none{border-top-left-radius:0!important;border-top-right-radius:0!important}.ext-rounded-t-full{border-top-left-radius:9999px!important;border-top-right-radius:9999px!important}.ext-rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.ext-rounded-r-full{border-bottom-right-radius:9999px!important;border-top-right-radius:9999px!important}.ext-rounded-b-none{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.ext-rounded-b-full{border-bottom-left-radius:9999px!important;border-bottom-right-radius:9999px!important}.ext-rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.ext-rounded-l-full{border-bottom-left-radius:9999px!important;border-top-left-radius:9999px!important}.ext-rounded-tl-none{border-top-left-radius:0!important}.ext-rounded-tl-full{border-top-left-radius:9999px!important}.ext-rounded-tr-none{border-top-right-radius:0!important}.ext-rounded-tr-full{border-top-right-radius:9999px!important}.ext-rounded-br-none{border-bottom-right-radius:0!important}.ext-rounded-br-full{border-bottom-right-radius:9999px!important}.ext-rounded-bl-none{border-bottom-left-radius:0!important}.ext-rounded-bl-full{border-bottom-left-radius:9999px!important}.ext-border-0{border-width:0!important}.ext-border-t-0{border-top-width:0!important}.ext-border-r-0{border-right-width:0!important}.ext-border-b-0{border-bottom-width:0!important}.ext-border-l-0{border-left-width:0!important}.ext-p-0:not([style*=padding]){padding:0!important}.ext-p-base:not([style*=padding]){padding:var(--wp--style--block-gap,2rem)!important}.ext-p-lg:not([style*=padding]){padding:var(--extendify--spacing--large)!important}.ext-px-0:not([style*=padding]){padding-left:0!important;padding-right:0!important}.ext-px-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important;padding-right:var(--wp--style--block-gap,2rem)!important}.ext-px-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important;padding-right:var(--extendify--spacing--large)!important}.ext-py-0:not([style*=padding]){padding-bottom:0!important;padding-top:0!important}.ext-py-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important;padding-top:var(--wp--style--block-gap,2rem)!important}.ext-py-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important;padding-top:var(--extendify--spacing--large)!important}.ext-pt-0:not([style*=padding]){padding-top:0!important}.ext-pt-base:not([style*=padding]){padding-top:var(--wp--style--block-gap,2rem)!important}.ext-pt-lg:not([style*=padding]){padding-top:var(--extendify--spacing--large)!important}.ext-pr-0:not([style*=padding]){padding-right:0!important}.ext-pr-base:not([style*=padding]){padding-right:var(--wp--style--block-gap,2rem)!important}.ext-pr-lg:not([style*=padding]){padding-right:var(--extendify--spacing--large)!important}.ext-pb-0:not([style*=padding]){padding-bottom:0!important}.ext-pb-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important}.ext-pb-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important}.ext-pl-0:not([style*=padding]){padding-left:0!important}.ext-pl-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important}.ext-pl-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important}.ext-text-left{text-align:left!important}.ext-text-center{text-align:center!important}.ext-text-right{text-align:right!important}.ext-leading-none{line-height:1!important}.ext-leading-tight{line-height:1.25!important}.ext-leading-snug{line-height:1.375!important}.ext-leading-normal{line-height:1.5!important}.ext-leading-relaxed{line-height:1.625!important}.ext-leading-loose{line-height:2!important}.clip-path--rhombus img{-webkit-clip-path:polygon(15% 6%,80% 29%,84% 93%,23% 69%);clip-path:polygon(15% 6%,80% 29%,84% 93%,23% 69%)}.clip-path--diamond img{-webkit-clip-path:polygon(5% 29%,60% 2%,91% 64%,36% 89%);clip-path:polygon(5% 29%,60% 2%,91% 64%,36% 89%)}.clip-path--rhombus-alt img{-webkit-clip-path:polygon(14% 9%,85% 24%,91% 89%,19% 76%);clip-path:polygon(14% 9%,85% 24%,91% 89%,19% 76%)}.wp-block-columns[class*=fullwidth-cols]{margin-bottom:unset}.ext .wp-block-columns .wp-block-column[style*=padding]{padding-left:0!important;padding-right:0!important}.ext .wp-block-columns+.wp-block-columns:not([class*=mt-]):not([class*=my-]):not([style*=margin]){margin-top:0!important}[class*=fullwidth-cols] .wp-block-column:first-child,[class*=fullwidth-cols] .wp-block-group:first-child{margin-top:0}[class*=fullwidth-cols] .wp-block-column:last-child,[class*=fullwidth-cols] .wp-block-group:last-child{margin-bottom:0}[class*=fullwidth-cols] .wp-block-column :first-child,[class*=fullwidth-cols] .wp-block-column:first-child *{margin-top:0}.ext .is-not-stacked-on-mobile .wp-block-column,[class*=fullwidth-cols] .wp-block-column :last-child{margin-bottom:0}.wp-block-columns[class*=fullwidth-cols]:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:last-child){margin-bottom:var(--wp--style--block-gap,2rem)}@media (min-width:782px){.wp-block-columns[class*=fullwidth-cols]:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:last-child){margin-bottom:0}}.wp-block-columns[class*=fullwidth-cols].is-not-stacked-on-mobile>.wp-block-column{margin-bottom:0!important}@media (min-width:600px) and (max-width:781px){.wp-block-columns[class*=fullwidth-cols]:not(.is-not-stacked-on-mobile)>.wp-block-column:nth-child(2n){margin-left:var(--wp--style--block-gap,2em)}}@media (max-width:781px){.tablet\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile){flex-wrap:wrap}.tablet\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important;margin-left:0!important}}@media (max-width:1079px){.desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile){flex-wrap:wrap}.desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%!important;margin-left:0!important}.desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column:not(:last-child){margin-bottom:var(--wp--style--block-gap,2rem)!important}}.direction-rtl{direction:rtl}.direction-ltr{direction:ltr}.is-style-inline-list{padding-left:0!important}.is-style-inline-list li{list-style-type:none!important}@media (min-width:782px){.is-style-inline-list li{display:inline!important;margin-right:var(--wp--style--block-gap,2rem)!important}}@media (min-width:782px){.is-style-inline-list li:first-child{margin-left:0!important}}@media (min-width:782px){.is-style-inline-list li:last-child{margin-right:0!important}}.bring-to-front{position:relative;z-index:10}.text-stroke{-webkit-text-stroke-color:var(--wp--preset--color--background)}.text-stroke,.text-stroke--primary{-webkit-text-stroke-width:var(--wp--custom--typography--text-stroke-width,2px )}.text-stroke--primary{-webkit-text-stroke-color:var(--wp--preset--color--primary)}.text-stroke--secondary{-webkit-text-stroke-width:var(--wp--custom--typography--text-stroke-width,2px );-webkit-text-stroke-color:var(--wp--preset--color--secondary)}.editor\:no-caption .block-editor-rich-text__editable{display:none!important}.editor\:no-inserter .wp-block-column:not(.is-selected)>.block-list-appender,.editor\:no-inserter .wp-block-cover__inner-container>.block-list-appender,.editor\:no-inserter .wp-block-group__inner-container>.block-list-appender,.editor\:no-inserter>.block-list-appender{display:none}.editor\:no-resize .components-resizable-box__handle,.editor\:no-resize .components-resizable-box__handle:after,.editor\:no-resize .components-resizable-box__side-handle:before{display:none;pointer-events:none}.editor\:no-resize .components-resizable-box__container{display:block}.editor\:pointer-events-none{pointer-events:none}.is-style-angled{justify-content:flex-end}.ext .is-style-angled>[class*=_inner-container],.is-style-angled{align-items:center}.is-style-angled .wp-block-cover__image-background,.is-style-angled .wp-block-cover__video-background{-webkit-clip-path:polygon(0 0,30% 0,50% 100%,0 100%);clip-path:polygon(0 0,30% 0,50% 100%,0 100%);z-index:1}@media (min-width:782px){.is-style-angled .wp-block-cover__image-background,.is-style-angled .wp-block-cover__video-background{-webkit-clip-path:polygon(0 0,55% 0,65% 100%,0 100%);clip-path:polygon(0 0,55% 0,65% 100%,0 100%)}}.ext .wp-block[data-align=wide]{margin-bottom:0!important;margin-top:0!important}.has-foreground-color{color:var(--wp--preset--color--foreground,#000)!important}.has-foreground-background-color{background-color:var(--wp--preset--color--foreground,#000)!important}.has-background-color{color:var(--wp--preset--color--background,#fff)!important}.has-background-background-color{background-color:var(--wp--preset--color--background,#fff)!important}.has-primary-color{color:var(--wp--preset--color--primary,#4b5563)!important}.has-primary-background-color{background-color:var(--wp--preset--color--primary,#4b5563)!important}.has-secondary-color{color:var(--wp--preset--color--secondary,#9ca3af)!important}.has-secondary-background-color{background-color:var(--wp--preset--color--secondary,#9ca3af)!important}.ext.has-text-color h1,.ext.has-text-color h2,.ext.has-text-color h3,.ext.has-text-color h4,.ext.has-text-color h5,.ext.has-text-color h6,.ext.has-text-color p{color:currentColor}.editor-styles-wrapper .has-gigantic-font-size.wp-block,.has-gigantic-font-size{--fallback-size:clamp(var(--wp--preset--font-size--huge,22px),calc(1rem + var(--wp--custom--typography--gigantic--preferred, 5vw)),var(--wp--preset--font-size--huge,42px) * 2);font-size:var( --wp--preset--font-size--gigantic,var(--fallback-size ) )}.ext .ext-grid>[class*=_inner-container]{display:grid}.ext>[class*=_inner-container]>.ext-grid:not([class*=columns]),.ext>[class*=_inner-container]>.wp-block>.ext-grid:not([class*=columns]){display:initial!important}.ext .ext-grid-cols-1>[class*=_inner-container]{grid-template-columns:repeat(1,minmax(0,1fr))!important}.ext .ext-grid-cols-2>[class*=_inner-container]{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ext .ext-grid-cols-3>[class*=_inner-container]{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ext .ext-grid-cols-4>[class*=_inner-container]{grid-template-columns:repeat(4,minmax(0,1fr))!important}.ext .ext-grid-cols-5>[class*=_inner-container]{grid-template-columns:repeat(5,minmax(0,1fr))!important}.ext .ext-grid-cols-6>[class*=_inner-container]{grid-template-columns:repeat(6,minmax(0,1fr))!important}.ext .ext-grid-cols-7>[class*=_inner-container]{grid-template-columns:repeat(7,minmax(0,1fr))!important}.ext .ext-grid-cols-8>[class*=_inner-container]{grid-template-columns:repeat(8,minmax(0,1fr))!important}.ext .ext-grid-cols-9>[class*=_inner-container]{grid-template-columns:repeat(9,minmax(0,1fr))!important}.ext .ext-grid-cols-10>[class*=_inner-container]{grid-template-columns:repeat(10,minmax(0,1fr))!important}.ext .ext-grid-cols-11>[class*=_inner-container]{grid-template-columns:repeat(11,minmax(0,1fr))!important}.ext .ext-grid-cols-12>[class*=_inner-container]{grid-template-columns:repeat(12,minmax(0,1fr))!important}.ext .ext-grid-cols-13>[class*=_inner-container]{grid-template-columns:repeat(13,minmax(0,1fr))!important}.ext .ext-grid-cols-none>[class*=_inner-container]{grid-template-columns:none!important}.ext .ext-grid-rows-1>[class*=_inner-container]{grid-template-rows:repeat(1,minmax(0,1fr))!important}.ext .ext-grid-rows-2>[class*=_inner-container]{grid-template-rows:repeat(2,minmax(0,1fr))!important}.ext .ext-grid-rows-3>[class*=_inner-container]{grid-template-rows:repeat(3,minmax(0,1fr))!important}.ext .ext-grid-rows-4>[class*=_inner-container]{grid-template-rows:repeat(4,minmax(0,1fr))!important}.ext .ext-grid-rows-5>[class*=_inner-container]{grid-template-rows:repeat(5,minmax(0,1fr))!important}.ext .ext-grid-rows-6>[class*=_inner-container]{grid-template-rows:repeat(6,minmax(0,1fr))!important}.ext .ext-grid-rows-none>[class*=_inner-container]{grid-template-rows:none!important}.ext .ext-items-start>[class*=_inner-container]{align-items:flex-start!important}.ext .ext-items-end>[class*=_inner-container]{align-items:flex-end!important}.ext .ext-items-center>[class*=_inner-container]{align-items:center!important}.ext .ext-items-baseline>[class*=_inner-container]{align-items:baseline!important}.ext .ext-items-stretch>[class*=_inner-container]{align-items:stretch!important}.ext.wp-block-group>:last-child{margin-bottom:0}.ext .wp-block-group__inner-container{padding:0!important}.ext.has-background{padding-left:var(--wp--style--block-gap,2rem);padding-right:var(--wp--style--block-gap,2rem)}.ext [class*=inner-container]>.alignwide [class*=inner-container]{max-width:var(--responsive--alignwide-width,120rem)}.ext [class*=inner-container]>.alignwide [class*=inner-container]>*{max-width:100%!important}.ext [class*=inner-container]>.alignfull [class*=inner-container]{max-width:100%}.ext [class*=inner-container]>.alignfull [class*=inner-container]>*{max-width:100%!important}.ext .wp-block-image{position:relative;text-align:center}.ext .wp-block-image img{display:inline-block;vertical-align:middle}body{--extendify--spacing--large:var(--wp--custom--spacing--large,clamp(2em,8vw,8em))}.ast-separate-container .ext .block-editor-block-list__layout{padding:0!important}.ext [data-block].wp-block-buttons .wp-block-button{margin-bottom:0;margin-top:0}.ext [data-block].wp-block-buttons .wp-block-button:first-child{margin-bottom:var(--wp--style--block-gap,2rem)!important;margin-top:0!important}.ext .wp-block-group__inner-container figure.wp-block-gallery.alignfull{margin-bottom:unset;margin-top:unset}.ext .alignwide{margin-left:auto!important;margin-right:auto!important}@media (min-width:782px){.tablet\:ext-absolute{position:absolute!important}.tablet\:ext-relative{position:relative!important}.tablet\:ext-top-base{top:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-top-lg{top:var(--extendify--spacing--large)!important}.tablet\:ext--top-base{top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--top-lg{top:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-right-base{right:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-right-lg{right:var(--extendify--spacing--large)!important}.tablet\:ext--right-base{right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--right-lg{right:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-bottom-base{bottom:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-bottom-lg{bottom:var(--extendify--spacing--large)!important}.tablet\:ext--bottom-base{bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--bottom-lg{bottom:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-left-base{left:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-left-lg{left:var(--extendify--spacing--large)!important}.tablet\:ext--left-base{left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--left-lg{left:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-order-1{order:1!important}.tablet\:ext-order-2{order:2!important}.tablet\:ext-m-0:not([style*=margin]){margin:0!important}.tablet\:ext-m-auto:not([style*=margin]){margin:auto!important}.tablet\:ext-m-base:not([style*=margin]){margin:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-m-lg:not([style*=margin]){margin:var(--extendify--spacing--large)!important}.tablet\:ext--m-base:not([style*=margin]){margin:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--m-lg:not([style*=margin]){margin:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-mx-0:not([style*=margin]){margin-left:0!important;margin-right:0!important}.tablet\:ext-mx-auto:not([style*=margin]){margin-left:auto!important;margin-right:auto!important}.tablet\:ext-mx-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important;margin-right:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-mx-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important;margin-right:var(--extendify--spacing--large)!important}.tablet\:ext--mx-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--mx-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important;margin-right:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-my-0:not([style*=margin]){margin-bottom:0!important;margin-top:0!important}.tablet\:ext-my-auto:not([style*=margin]){margin-bottom:auto!important;margin-top:auto!important}.tablet\:ext-my-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important;margin-top:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-my-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important;margin-top:var(--extendify--spacing--large)!important}.tablet\:ext--my-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--my-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important;margin-top:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-mt-0:not([style*=margin]){margin-top:0!important}.tablet\:ext-mt-auto:not([style*=margin]){margin-top:auto!important}.tablet\:ext-mt-base:not([style*=margin]){margin-top:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-mt-lg:not([style*=margin]){margin-top:var(--extendify--spacing--large)!important}.tablet\:ext--mt-base:not([style*=margin]){margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--mt-lg:not([style*=margin]){margin-top:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-mr-0:not([style*=margin]){margin-right:0!important}.tablet\:ext-mr-auto:not([style*=margin]){margin-right:auto!important}.tablet\:ext-mr-base:not([style*=margin]){margin-right:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-mr-lg:not([style*=margin]){margin-right:var(--extendify--spacing--large)!important}.tablet\:ext--mr-base:not([style*=margin]){margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--mr-lg:not([style*=margin]){margin-right:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-mb-0:not([style*=margin]){margin-bottom:0!important}.tablet\:ext-mb-auto:not([style*=margin]){margin-bottom:auto!important}.tablet\:ext-mb-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-mb-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important}.tablet\:ext--mb-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--mb-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-ml-0:not([style*=margin]){margin-left:0!important}.tablet\:ext-ml-auto:not([style*=margin]){margin-left:auto!important}.tablet\:ext-ml-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-ml-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important}.tablet\:ext--ml-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.tablet\:ext--ml-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important}.tablet\:ext-block{display:block!important}.tablet\:ext-inline-block{display:inline-block!important}.tablet\:ext-inline{display:inline!important}.tablet\:ext-flex{display:flex!important}.tablet\:ext-inline-flex{display:inline-flex!important}.tablet\:ext-grid{display:grid!important}.tablet\:ext-inline-grid{display:inline-grid!important}.tablet\:ext-hidden{display:none!important}.tablet\:ext-w-auto{width:auto!important}.tablet\:ext-w-full{width:100%!important}.tablet\:ext-max-w-full{max-width:100%!important}.tablet\:ext-flex-1{flex:1 1 0%!important}.tablet\:ext-flex-auto{flex:1 1 auto!important}.tablet\:ext-flex-initial{flex:0 1 auto!important}.tablet\:ext-flex-none{flex:none!important}.tablet\:ext-flex-shrink-0{flex-shrink:0!important}.tablet\:ext-flex-shrink{flex-shrink:1!important}.tablet\:ext-flex-grow-0{flex-grow:0!important}.tablet\:ext-flex-grow{flex-grow:1!important}.tablet\:ext-list-none{list-style-type:none!important}.tablet\:ext-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.tablet\:ext-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tablet\:ext-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.tablet\:ext-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.tablet\:ext-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}.tablet\:ext-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))!important}.tablet\:ext-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))!important}.tablet\:ext-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))!important}.tablet\:ext-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))!important}.tablet\:ext-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))!important}.tablet\:ext-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))!important}.tablet\:ext-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))!important}.tablet\:ext-grid-cols-none{grid-template-columns:none!important}.tablet\:ext-flex-row{flex-direction:row!important}.tablet\:ext-flex-row-reverse{flex-direction:row-reverse!important}.tablet\:ext-flex-col{flex-direction:column!important}.tablet\:ext-flex-col-reverse{flex-direction:column-reverse!important}.tablet\:ext-flex-wrap{flex-wrap:wrap!important}.tablet\:ext-flex-wrap-reverse{flex-wrap:wrap-reverse!important}.tablet\:ext-flex-nowrap{flex-wrap:nowrap!important}.tablet\:ext-items-start{align-items:flex-start!important}.tablet\:ext-items-end{align-items:flex-end!important}.tablet\:ext-items-center{align-items:center!important}.tablet\:ext-items-baseline{align-items:baseline!important}.tablet\:ext-items-stretch{align-items:stretch!important}.tablet\:ext-justify-start{justify-content:flex-start!important}.tablet\:ext-justify-end{justify-content:flex-end!important}.tablet\:ext-justify-center{justify-content:center!important}.tablet\:ext-justify-between{justify-content:space-between!important}.tablet\:ext-justify-around{justify-content:space-around!important}.tablet\:ext-justify-evenly{justify-content:space-evenly!important}.tablet\:ext-justify-items-start{justify-items:start!important}.tablet\:ext-justify-items-end{justify-items:end!important}.tablet\:ext-justify-items-center{justify-items:center!important}.tablet\:ext-justify-items-stretch{justify-items:stretch!important}.tablet\:ext-justify-self-auto{justify-self:auto!important}.tablet\:ext-justify-self-start{justify-self:start!important}.tablet\:ext-justify-self-end{justify-self:end!important}.tablet\:ext-justify-self-center{justify-self:center!important}.tablet\:ext-justify-self-stretch{justify-self:stretch!important}.tablet\:ext-p-0:not([style*=padding]){padding:0!important}.tablet\:ext-p-base:not([style*=padding]){padding:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-p-lg:not([style*=padding]){padding:var(--extendify--spacing--large)!important}.tablet\:ext-px-0:not([style*=padding]){padding-left:0!important;padding-right:0!important}.tablet\:ext-px-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important;padding-right:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-px-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important;padding-right:var(--extendify--spacing--large)!important}.tablet\:ext-py-0:not([style*=padding]){padding-bottom:0!important;padding-top:0!important}.tablet\:ext-py-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important;padding-top:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-py-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important;padding-top:var(--extendify--spacing--large)!important}.tablet\:ext-pt-0:not([style*=padding]){padding-top:0!important}.tablet\:ext-pt-base:not([style*=padding]){padding-top:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-pt-lg:not([style*=padding]){padding-top:var(--extendify--spacing--large)!important}.tablet\:ext-pr-0:not([style*=padding]){padding-right:0!important}.tablet\:ext-pr-base:not([style*=padding]){padding-right:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-pr-lg:not([style*=padding]){padding-right:var(--extendify--spacing--large)!important}.tablet\:ext-pb-0:not([style*=padding]){padding-bottom:0!important}.tablet\:ext-pb-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-pb-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important}.tablet\:ext-pl-0:not([style*=padding]){padding-left:0!important}.tablet\:ext-pl-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important}.tablet\:ext-pl-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important}.tablet\:ext-text-left{text-align:left!important}.tablet\:ext-text-center{text-align:center!important}.tablet\:ext-text-right{text-align:right!important}}@media (min-width:1080px){.desktop\:ext-absolute{position:absolute!important}.desktop\:ext-relative{position:relative!important}.desktop\:ext-top-base{top:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-top-lg{top:var(--extendify--spacing--large)!important}.desktop\:ext--top-base{top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--top-lg{top:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-right-base{right:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-right-lg{right:var(--extendify--spacing--large)!important}.desktop\:ext--right-base{right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--right-lg{right:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-bottom-base{bottom:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-bottom-lg{bottom:var(--extendify--spacing--large)!important}.desktop\:ext--bottom-base{bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--bottom-lg{bottom:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-left-base{left:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-left-lg{left:var(--extendify--spacing--large)!important}.desktop\:ext--left-base{left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--left-lg{left:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-order-1{order:1!important}.desktop\:ext-order-2{order:2!important}.desktop\:ext-m-0:not([style*=margin]){margin:0!important}.desktop\:ext-m-auto:not([style*=margin]){margin:auto!important}.desktop\:ext-m-base:not([style*=margin]){margin:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-m-lg:not([style*=margin]){margin:var(--extendify--spacing--large)!important}.desktop\:ext--m-base:not([style*=margin]){margin:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--m-lg:not([style*=margin]){margin:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-mx-0:not([style*=margin]){margin-left:0!important;margin-right:0!important}.desktop\:ext-mx-auto:not([style*=margin]){margin-left:auto!important;margin-right:auto!important}.desktop\:ext-mx-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important;margin-right:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-mx-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important;margin-right:var(--extendify--spacing--large)!important}.desktop\:ext--mx-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--mx-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important;margin-right:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-my-0:not([style*=margin]){margin-bottom:0!important;margin-top:0!important}.desktop\:ext-my-auto:not([style*=margin]){margin-bottom:auto!important;margin-top:auto!important}.desktop\:ext-my-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important;margin-top:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-my-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important;margin-top:var(--extendify--spacing--large)!important}.desktop\:ext--my-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important;margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--my-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important;margin-top:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-mt-0:not([style*=margin]){margin-top:0!important}.desktop\:ext-mt-auto:not([style*=margin]){margin-top:auto!important}.desktop\:ext-mt-base:not([style*=margin]){margin-top:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-mt-lg:not([style*=margin]){margin-top:var(--extendify--spacing--large)!important}.desktop\:ext--mt-base:not([style*=margin]){margin-top:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--mt-lg:not([style*=margin]){margin-top:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-mr-0:not([style*=margin]){margin-right:0!important}.desktop\:ext-mr-auto:not([style*=margin]){margin-right:auto!important}.desktop\:ext-mr-base:not([style*=margin]){margin-right:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-mr-lg:not([style*=margin]){margin-right:var(--extendify--spacing--large)!important}.desktop\:ext--mr-base:not([style*=margin]){margin-right:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--mr-lg:not([style*=margin]){margin-right:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-mb-0:not([style*=margin]){margin-bottom:0!important}.desktop\:ext-mb-auto:not([style*=margin]){margin-bottom:auto!important}.desktop\:ext-mb-base:not([style*=margin]){margin-bottom:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-mb-lg:not([style*=margin]){margin-bottom:var(--extendify--spacing--large)!important}.desktop\:ext--mb-base:not([style*=margin]){margin-bottom:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--mb-lg:not([style*=margin]){margin-bottom:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-ml-0:not([style*=margin]){margin-left:0!important}.desktop\:ext-ml-auto:not([style*=margin]){margin-left:auto!important}.desktop\:ext-ml-base:not([style*=margin]){margin-left:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-ml-lg:not([style*=margin]){margin-left:var(--extendify--spacing--large)!important}.desktop\:ext--ml-base:not([style*=margin]){margin-left:calc(var(--wp--style--block-gap, 2rem)*-1)!important}.desktop\:ext--ml-lg:not([style*=margin]){margin-left:calc(var(--extendify--spacing--large)*-1)!important}.desktop\:ext-block{display:block!important}.desktop\:ext-inline-block{display:inline-block!important}.desktop\:ext-inline{display:inline!important}.desktop\:ext-flex{display:flex!important}.desktop\:ext-inline-flex{display:inline-flex!important}.desktop\:ext-grid{display:grid!important}.desktop\:ext-inline-grid{display:inline-grid!important}.desktop\:ext-hidden{display:none!important}.desktop\:ext-w-auto{width:auto!important}.desktop\:ext-w-full{width:100%!important}.desktop\:ext-max-w-full{max-width:100%!important}.desktop\:ext-flex-1{flex:1 1 0%!important}.desktop\:ext-flex-auto{flex:1 1 auto!important}.desktop\:ext-flex-initial{flex:0 1 auto!important}.desktop\:ext-flex-none{flex:none!important}.desktop\:ext-flex-shrink-0{flex-shrink:0!important}.desktop\:ext-flex-shrink{flex-shrink:1!important}.desktop\:ext-flex-grow-0{flex-grow:0!important}.desktop\:ext-flex-grow{flex-grow:1!important}.desktop\:ext-list-none{list-style-type:none!important}.desktop\:ext-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.desktop\:ext-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.desktop\:ext-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.desktop\:ext-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.desktop\:ext-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}.desktop\:ext-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))!important}.desktop\:ext-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))!important}.desktop\:ext-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))!important}.desktop\:ext-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))!important}.desktop\:ext-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))!important}.desktop\:ext-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))!important}.desktop\:ext-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))!important}.desktop\:ext-grid-cols-none{grid-template-columns:none!important}.desktop\:ext-flex-row{flex-direction:row!important}.desktop\:ext-flex-row-reverse{flex-direction:row-reverse!important}.desktop\:ext-flex-col{flex-direction:column!important}.desktop\:ext-flex-col-reverse{flex-direction:column-reverse!important}.desktop\:ext-flex-wrap{flex-wrap:wrap!important}.desktop\:ext-flex-wrap-reverse{flex-wrap:wrap-reverse!important}.desktop\:ext-flex-nowrap{flex-wrap:nowrap!important}.desktop\:ext-items-start{align-items:flex-start!important}.desktop\:ext-items-end{align-items:flex-end!important}.desktop\:ext-items-center{align-items:center!important}.desktop\:ext-items-baseline{align-items:baseline!important}.desktop\:ext-items-stretch{align-items:stretch!important}.desktop\:ext-justify-start{justify-content:flex-start!important}.desktop\:ext-justify-end{justify-content:flex-end!important}.desktop\:ext-justify-center{justify-content:center!important}.desktop\:ext-justify-between{justify-content:space-between!important}.desktop\:ext-justify-around{justify-content:space-around!important}.desktop\:ext-justify-evenly{justify-content:space-evenly!important}.desktop\:ext-justify-items-start{justify-items:start!important}.desktop\:ext-justify-items-end{justify-items:end!important}.desktop\:ext-justify-items-center{justify-items:center!important}.desktop\:ext-justify-items-stretch{justify-items:stretch!important}.desktop\:ext-justify-self-auto{justify-self:auto!important}.desktop\:ext-justify-self-start{justify-self:start!important}.desktop\:ext-justify-self-end{justify-self:end!important}.desktop\:ext-justify-self-center{justify-self:center!important}.desktop\:ext-justify-self-stretch{justify-self:stretch!important}.desktop\:ext-p-0:not([style*=padding]){padding:0!important}.desktop\:ext-p-base:not([style*=padding]){padding:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-p-lg:not([style*=padding]){padding:var(--extendify--spacing--large)!important}.desktop\:ext-px-0:not([style*=padding]){padding-left:0!important;padding-right:0!important}.desktop\:ext-px-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important;padding-right:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-px-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important;padding-right:var(--extendify--spacing--large)!important}.desktop\:ext-py-0:not([style*=padding]){padding-bottom:0!important;padding-top:0!important}.desktop\:ext-py-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important;padding-top:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-py-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important;padding-top:var(--extendify--spacing--large)!important}.desktop\:ext-pt-0:not([style*=padding]){padding-top:0!important}.desktop\:ext-pt-base:not([style*=padding]){padding-top:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-pt-lg:not([style*=padding]){padding-top:var(--extendify--spacing--large)!important}.desktop\:ext-pr-0:not([style*=padding]){padding-right:0!important}.desktop\:ext-pr-base:not([style*=padding]){padding-right:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-pr-lg:not([style*=padding]){padding-right:var(--extendify--spacing--large)!important}.desktop\:ext-pb-0:not([style*=padding]){padding-bottom:0!important}.desktop\:ext-pb-base:not([style*=padding]){padding-bottom:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-pb-lg:not([style*=padding]){padding-bottom:var(--extendify--spacing--large)!important}.desktop\:ext-pl-0:not([style*=padding]){padding-left:0!important}.desktop\:ext-pl-base:not([style*=padding]){padding-left:var(--wp--style--block-gap,2rem)!important}.desktop\:ext-pl-lg:not([style*=padding]){padding-left:var(--extendify--spacing--large)!important}.desktop\:ext-text-left{text-align:left!important}.desktop\:ext-text-center{text-align:center!important}.desktop\:ext-text-right{text-align:right!important}}
extendify-sdk/readme.txt CHANGED
@@ -1,5 +1,5 @@
1
  === Extendify Sdk ===
2
  Requires at least: 5.4
3
- Stable tag: 11.5
4
  Requires PHP: 5.6
5
  Tested up to: 5.7.0
1
  === Extendify Sdk ===
2
  Requires at least: 5.4
3
+ Stable tag: 11.7
4
  Requires PHP: 5.6
5
  Tested up to: 5.7.0
extendify-sdk/utility-framework/block-styles/cover-angled.css CHANGED
@@ -1,12 +1,13 @@
1
  .is-style-angled {
2
  /* no suggestion */
3
- @apply items-center justify-end;
4
  }
5
 
6
  .is-style-angled .wp-block-cover__image-background,
7
  .is-style-angled .wp-block-cover__video-background {
8
  /* no suggestion */
9
  clip-path: polygon(0 0, 30% 0%, 50% 100%, 0% 100%);
 
10
  }
11
 
12
  @screen tablet {
1
  .is-style-angled {
2
  /* no suggestion */
3
+ @apply ext-items-center ext-justify-end;
4
  }
5
 
6
  .is-style-angled .wp-block-cover__image-background,
7
  .is-style-angled .wp-block-cover__video-background {
8
  /* no suggestion */
9
  clip-path: polygon(0 0, 30% 0%, 50% 100%, 0% 100%);
10
+ z-index: 1;
11
  }
12
 
13
  @screen tablet {
extendify-sdk/utility-framework/classes/columns.css CHANGED
@@ -9,65 +9,65 @@ We use it here to ensure columns blocks display well across themes.
9
 
10
  /* Some popular themes use padding instead of core's margin for columns; remove it */
11
  .ext .wp-block-columns .wp-block-column[style*="padding"] {
12
- /* no suggestion */
13
- @apply px-0 !important;
14
  }
15
 
16
  /* Some popular themes add double spacing between columns; remove it */
17
  .ext .wp-block-columns + .wp-block-columns:not([class*="mt-"]):not([class*="my-"]) {
18
- /* no suggestion */
19
- @apply mt-0 !important;
20
  }
21
 
22
  [class*="fullwidth-cols"] .wp-block-column:first-child,
23
  [class*="fullwidth-cols"] .wp-block-group:first-child {
24
  /* no suggestion */
25
- @apply mt-0
26
  }
27
 
28
  [class*="fullwidth-cols"] .wp-block-column:last-child,
29
  [class*="fullwidth-cols"] .wp-block-group:last-child {
30
  /* no suggestion */
31
- @apply mb-0;
32
  }
33
 
34
  [class*="fullwidth-cols"] .wp-block-column:first-child * {
35
  /* no suggestion */
36
- @apply mt-0
37
  }
38
 
39
  [class*="fullwidth-cols"] .wp-block-column *:first-child {
40
  /* no suggestion */
41
- @apply mt-0
42
  }
43
 
44
  [class*="fullwidth-cols"] .wp-block-column *:last-child {
45
  /* no suggestion */
46
- @apply mb-0
47
  }
48
 
49
  .ext .is-not-stacked-on-mobile .wp-block-column {
50
- /* no suggestion */
51
- @apply mb-0
52
  }
53
 
54
  /* Add base margin bottom to all columns */
55
  .wp-block-columns[class*="fullwidth-cols"]:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:last-child) {
56
  /* no suggestion */
57
- @apply mb-base;
58
  }
59
 
60
  @screen tablet {
61
  .wp-block-columns[class*="fullwidth-cols"]:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:last-child) {
62
  /* no suggestion */
63
- @apply mb-0;
64
  }
65
  }
66
 
67
  /* Remove margin bottom from "not-stacked" columns */
68
  .wp-block-columns[class*="fullwidth-cols"].is-not-stacked-on-mobile > .wp-block-column {
69
  /* no suggestion */
70
- @apply mb-0 !important;
71
  }
72
 
73
  @media (min-width: 600px) and (max-width: 781px) {
@@ -83,26 +83,26 @@ We use it here to ensure columns blocks display well across themes.
83
  */
84
  @media (max-width: 781px) {
85
  .tablet\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) {
86
- @apply flex-wrap;
87
  }
88
 
89
  .tablet\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
90
- @apply ml-0 !important;
91
  flex-basis: 100% !important; /* Required to negate core/columns flex-basis */
92
  }
93
  }
94
 
95
  @media (max-width: 1079px) {
96
  .desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) {
97
- @apply flex-wrap;
98
  }
99
 
100
  .desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
101
- @apply ml-0 !important;
102
  flex-basis: 100% !important; /* Required to negate core/columns flex-basis */
103
  }
104
 
105
  .desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:last-child) {
106
- @apply mb-base !important;
107
  }
108
  }
9
 
10
  /* Some popular themes use padding instead of core's margin for columns; remove it */
11
  .ext .wp-block-columns .wp-block-column[style*="padding"] {
12
+ /* no suggestion */
13
+ @apply ext-px-0 !important;
14
  }
15
 
16
  /* Some popular themes add double spacing between columns; remove it */
17
  .ext .wp-block-columns + .wp-block-columns:not([class*="mt-"]):not([class*="my-"]) {
18
+ /* no suggestion */
19
+ @apply ext-mt-0 !important;
20
  }
21
 
22
  [class*="fullwidth-cols"] .wp-block-column:first-child,
23
  [class*="fullwidth-cols"] .wp-block-group:first-child {
24
  /* no suggestion */
25
+ @apply ext-mt-0
26
  }
27
 
28
  [class*="fullwidth-cols"] .wp-block-column:last-child,
29
  [class*="fullwidth-cols"] .wp-block-group:last-child {
30
  /* no suggestion */
31
+ @apply ext-mb-0;
32
  }
33
 
34
  [class*="fullwidth-cols"] .wp-block-column:first-child * {
35
  /* no suggestion */
36
+ @apply ext-mt-0
37
  }
38
 
39
  [class*="fullwidth-cols"] .wp-block-column *:first-child {
40
  /* no suggestion */
41
+ @apply ext-mt-0
42
  }
43
 
44
  [class*="fullwidth-cols"] .wp-block-column *:last-child {
45
  /* no suggestion */
46
+ @apply ext-mb-0
47
  }
48
 
49
  .ext .is-not-stacked-on-mobile .wp-block-column {
50
+ /* no suggestion */
51
+ @apply ext-mb-0
52
  }
53
 
54
  /* Add base margin bottom to all columns */
55
  .wp-block-columns[class*="fullwidth-cols"]:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:last-child) {
56
  /* no suggestion */
57
+ @apply ext-mb-base;
58
  }
59
 
60
  @screen tablet {
61
  .wp-block-columns[class*="fullwidth-cols"]:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:last-child) {
62
  /* no suggestion */
63
+ @apply ext-mb-0;
64
  }
65
  }
66
 
67
  /* Remove margin bottom from "not-stacked" columns */
68
  .wp-block-columns[class*="fullwidth-cols"].is-not-stacked-on-mobile > .wp-block-column {
69
  /* no suggestion */
70
+ @apply ext-mb-0 !important;
71
  }
72
 
73
  @media (min-width: 600px) and (max-width: 781px) {
83
  */
84
  @media (max-width: 781px) {
85
  .tablet\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) {
86
+ @apply ext-flex-wrap;
87
  }
88
 
89
  .tablet\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
90
+ @apply ext-ml-0 !important;
91
  flex-basis: 100% !important; /* Required to negate core/columns flex-basis */
92
  }
93
  }
94
 
95
  @media (max-width: 1079px) {
96
  .desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) {
97
+ @apply ext-flex-wrap;
98
  }
99
 
100
  .desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
101
+ @apply ext-ml-0 !important;
102
  flex-basis: 100% !important; /* Required to negate core/columns flex-basis */
103
  }
104
 
105
  .desktop\:fullwidth-cols.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column:not(:last-child) {
106
+ @apply ext-mb-base !important;
107
  }
108
  }
extendify-sdk/utility-framework/classes/editor/pointer-events.css CHANGED
@@ -1,3 +1,3 @@
1
  .editor\:pointer-events-none {
2
  pointer-events:none
3
- }
1
  .editor\:pointer-events-none {
2
  pointer-events:none
3
+ }
extendify-sdk/utility-framework/classes/fallback.css CHANGED
@@ -1,10 +1,10 @@
1
  /* Ensure image block display is standardized */
2
  .ext .wp-block-image {
3
  /* no suggestion */
4
- @apply relative text-center;
5
  }
6
 
7
  .ext .wp-block-image img {
8
  /* no suggestion */
9
- @apply inline-block align-middle;
10
  }
1
  /* Ensure image block display is standardized */
2
  .ext .wp-block-image {
3
  /* no suggestion */
4
+ @apply ext-relative ext-text-center;
5
  }
6
 
7
  .ext .wp-block-image img {
8
  /* no suggestion */
9
+ @apply ext-inline-block ext-align-middle;
10
  }
extendify-sdk/utility-framework/classes/inline-list.css CHANGED
@@ -1,20 +1,20 @@
1
 
2
  /* Use "is-style-" prefix to support adding this style to the core/list block */
3
  .is-style-inline-list {
4
- @apply pl-0 !important;
5
  }
6
 
7
  .is-style-inline-list li {
8
  /* no suggestion */
9
- @apply list-none tablet:inline tablet:mr-base !important;
10
  }
11
 
12
  .is-style-inline-list li:first-child {
13
  /* no suggestion */
14
- @apply tablet:ml-0 !important;
15
  }
16
 
17
  .is-style-inline-list li:last-child {
18
  /* no suggestion */
19
- @apply tablet:mr-0 !important;
20
  }
1
 
2
  /* Use "is-style-" prefix to support adding this style to the core/list block */
3
  .is-style-inline-list {
4
+ @apply ext-pl-0 !important;
5
  }
6
 
7
  .is-style-inline-list li {
8
  /* no suggestion */
9
+ @apply ext-list-none tablet:ext-inline tablet:ext-mr-base !important;
10
  }
11
 
12
  .is-style-inline-list li:first-child {
13
  /* no suggestion */
14
+ @apply tablet:ext-ml-0 !important;
15
  }
16
 
17
  .is-style-inline-list li:last-child {
18
  /* no suggestion */
19
+ @apply tablet:ext-mr-0 !important;
20
  }
extendify-sdk/utility-framework/extendify-utilities.css CHANGED
@@ -32,18 +32,18 @@ body {
32
 
33
  /* Astra */
34
  .ast-separate-container .ext .block-editor-block-list__layout {
35
- /* no suggestion */
36
- @apply p-0 !important;
37
  }
38
 
39
  /* Twenty Twenty One */
40
  .ext [data-block].wp-block-buttons .wp-block-button {
41
- @apply my-0;
42
  }
43
 
44
  .ext [data-block].wp-block-buttons .wp-block-button:first-child {
45
- /* no suggestion */
46
- @apply mt-0 mb-base !important;
47
  }
48
 
49
  /* Twenty Twenty adds a lot of margin automatically to blocks. We only want our own margin added to our patterns. */
@@ -55,6 +55,6 @@ body {
55
 
56
  /* Ensure no funky business is assigned to alignwide */
57
  .ext .alignwide {
58
- /* no suggestion */
59
- @apply mx-auto !important;
60
  }
32
 
33
  /* Astra */
34
  .ast-separate-container .ext .block-editor-block-list__layout {
35
+ /* no suggestion */
36
+ @apply ext-p-0 !important;
37
  }
38
 
39
  /* Twenty Twenty One */
40
  .ext [data-block].wp-block-buttons .wp-block-button {
41
+ @apply ext-my-0;
42
  }
43
 
44
  .ext [data-block].wp-block-buttons .wp-block-button:first-child {
45
+ /* no suggestion */
46
+ @apply ext-mt-0 ext-mb-base !important;
47
  }
48
 
49
  /* Twenty Twenty adds a lot of margin automatically to blocks. We only want our own margin added to our patterns. */
55
 
56
  /* Ensure no funky business is assigned to alignwide */
57
  .ext .alignwide {
58
+ /* no suggestion */
59
+ @apply ext-mx-auto !important;
60
  }
extendify-sdk/utility-framework/fallback/align.css CHANGED
@@ -1,5 +1,5 @@
1
  /* Remove odd spacing some themes may apply to inner blocks */
2
  .ext .wp-block[data-align="wide"] {
3
  /* no suggestion */
4
- @apply my-0 !important;
5
- }
1
  /* Remove odd spacing some themes may apply to inner blocks */
2
  .ext .wp-block[data-align="wide"] {
3
  /* no suggestion */
4
+ @apply ext-my-0 !important;
5
+ }
extendify-sdk/utility-framework/fallback/font-sizes.css CHANGED
@@ -5,10 +5,3 @@
5
  --fallback-size: clamp(var(--wp--preset--font-size--huge, 22px), calc(1rem + var(--wp--custom--typography--gigantic--preferred, 5vw)), var(--wp--preset--font-size--huge, 42px) * 2 );
6
  font-size: var( --wp--preset--font-size--gigantic, var(--fallback-size ) );
7
  }
8
-
9
- .has-extra-large-font-size,
10
- .editor-styles-wrapper .has-extra-large-font-size.wp-block {
11
- /* no suggestion */
12
- --fallback-size: clamp(var(--wp--preset--font-size--large, 20px), calc(1rem + var(--wp--custom--typography--large--preferred, 4vw)), var(--wp--preset--font-size--extra-large, 36px) * 2 );
13
- font-size: var( --wp--preset--font-size--extra-large, var(--fallback-size ) );
14
- }
5
  --fallback-size: clamp(var(--wp--preset--font-size--huge, 22px), calc(1rem + var(--wp--custom--typography--gigantic--preferred, 5vw)), var(--wp--preset--font-size--huge, 42px) * 2 );
6
  font-size: var( --wp--preset--font-size--gigantic, var(--fallback-size ) );
7
  }
 
 
 
 
 
 
 
extendify-sdk/utility-framework/fallback/grid.css CHANGED
@@ -1,135 +1,140 @@
1
  /* Classic themes use an inner [class*="_inner-container"] that our utilities cannot directly target, so we need to do so with a few */
2
- .ext .grid > [class*="_inner-container"] {
3
  /* no suggestion */
4
  display: grid;
5
  }
6
 
7
  /* Unhinge grid for container blocks in classic themes, and < 5.9 */
8
- .ext > [class*="_inner-container"] > .grid:not([class*="columns"]),
9
- .ext > [class*="_inner-container"] > .wp-block > .grid:not([class*="columns"]) {
10
  /* no suggestion */
11
  display: initial !important;
12
  }
13
 
14
  /* Grid Columns */
15
- .ext .grid-cols-1 > [class*="_inner-container"] {
16
  /* no suggestion */
17
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
18
  }
19
 
20
- .ext .grid-cols-2 > [class*="_inner-container"] {
21
  /* no suggestion */
22
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
23
  }
24
 
25
- .ext .grid-cols-3 > [class*="_inner-container"] {
26
  /* no suggestion */
27
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
28
  }
29
 
30
- .ext .grid-cols-4 > [class*="_inner-container"] {
31
  /* no suggestion */
32
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
33
  }
34
 
35
- .ext .grid-cols-5 > [class*="_inner-container"] {
36
  /* no suggestion */
37
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
38
  }
39
 
40
- .ext .grid-cols-6 > [class*="_inner-container"] {
41
  /* no suggestion */
42
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
43
  }
44
 
45
- .ext .grid-cols-7 > [class*="_inner-container"] {
46
  /* no suggestion */
47
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
48
  }
49
 
50
- .ext .grid-cols-8 > [class*="_inner-container"] {
51
  /* no suggestion */
52
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
53
  }
54
 
55
- .ext .grid-cols-9 > [class*="_inner-container"] {
56
  /* no suggestion */
57
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
58
  }
59
 
60
- .ext .grid-cols-10 > [class*="_inner-container"] {
61
  /* no suggestion */
62
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
63
  }
64
 
65
- .ext .grid-cols-11 > [class*="_inner-container"] {
66
  /* no suggestion */
67
  grid-template-columns: repeat(11, minmax(0, 1fr)) !important;
68
  }
69
 
70
- .ext .grid-cols-12 > [class*="_inner-container"] {
71
  /* no suggestion */
72
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
73
  }
74
 
75
- .ext .grid-cols-none > [class*="_inner-container"] {
 
 
 
 
 
76
  /* no suggestion */
77
  grid-template-columns: none !important;
78
  }
79
 
80
  /* Grid Rows */
81
- .ext .grid-rows-1 > [class*="_inner-container"] {
82
  /* no suggestion */
83
  grid-template-rows: repeat(1, minmax(0, 1fr)) !important;
84
  }
85
 
86
- .ext .grid-rows-2 > [class*="_inner-container"] {
87
  /* no suggestion */
88
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
89
  }
90
 
91
- .ext .grid-rows-3 > [class*="_inner-container"] {
92
  /* no suggestion */
93
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
94
  }
95
 
96
- .ext .grid-rows-4 > [class*="_inner-container"] {
97
  /* no suggestion */
98
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
99
  }
100
 
101
- .ext .grid-rows-5 > [class*="_inner-container"] {
102
  /* no suggestion */
103
  grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
104
  }
105
 
106
- .ext .grid-rows-6 > [class*="_inner-container"] {
107
  /* no suggestion */
108
  grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
109
  }
110
 
111
- .ext .grid-rows-none > [class*="_inner-container"] {
112
  /* no suggestion */
113
  grid-template-rows: none !important;
114
  }
115
 
116
  /* Align */
117
- .ext .items-start > [class*="_inner-container"] {
118
  align-items: flex-start !important;
119
  }
120
 
121
- .ext .items-end > [class*="_inner-container"] {
122
  align-items: flex-end !important;
123
  }
124
 
125
- .ext .items-center > [class*="_inner-container"] {
126
  align-items: center !important;
127
  }
128
 
129
- .ext .items-baseline > [class*="_inner-container"] {
130
  align-items: baseline !important;
131
  }
132
 
133
- .ext .items-stretch > [class*="_inner-container"] {
134
  align-items: stretch !important;
135
- }
1
  /* Classic themes use an inner [class*="_inner-container"] that our utilities cannot directly target, so we need to do so with a few */
2
+ .ext .ext-grid > [class*="_inner-container"] {
3
  /* no suggestion */
4
  display: grid;
5
  }
6
 
7
  /* Unhinge grid for container blocks in classic themes, and < 5.9 */
8
+ .ext > [class*="_inner-container"] > .ext-grid:not([class*="columns"]),
9
+ .ext > [class*="_inner-container"] > .wp-block > .ext-grid:not([class*="columns"]) {
10
  /* no suggestion */
11
  display: initial !important;
12
  }
13
 
14
  /* Grid Columns */
15
+ .ext .ext-grid-cols-1 > [class*="_inner-container"] {
16
  /* no suggestion */
17
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
18
  }
19
 
20
+ .ext .ext-grid-cols-2 > [class*="_inner-container"] {
21
  /* no suggestion */
22
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
23
  }
24
 
25
+ .ext .ext-grid-cols-3 > [class*="_inner-container"] {
26
  /* no suggestion */
27
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
28
  }
29
 
30
+ .ext .ext-grid-cols-4 > [class*="_inner-container"] {
31
  /* no suggestion */
32
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
33
  }
34
 
35
+ .ext .ext-grid-cols-5 > [class*="_inner-container"] {
36
  /* no suggestion */
37
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
38
  }
39
 
40
+ .ext .ext-grid-cols-6 > [class*="_inner-container"] {
41
  /* no suggestion */
42
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
43
  }
44
 
45
+ .ext .ext-grid-cols-7 > [class*="_inner-container"] {
46
  /* no suggestion */
47
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
48
  }
49
 
50
+ .ext .ext-grid-cols-8 > [class*="_inner-container"] {
51
  /* no suggestion */
52
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
53
  }
54
 
55
+ .ext .ext-grid-cols-9 > [class*="_inner-container"] {
56
  /* no suggestion */
57
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
58
  }
59
 
60
+ .ext .ext-grid-cols-10 > [class*="_inner-container"] {
61
  /* no suggestion */
62
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
63
  }
64
 
65
+ .ext .ext-grid-cols-11 > [class*="_inner-container"] {
66
  /* no suggestion */
67
  grid-template-columns: repeat(11, minmax(0, 1fr)) !important;
68
  }
69
 
70
+ .ext .ext-grid-cols-12 > [class*="_inner-container"] {
71
  /* no suggestion */
72
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
73
  }
74
 
75
+ .ext .ext-grid-cols-13 > [class*="_inner-container"] {
76
+ /* no suggestion */
77
+ grid-template-columns: repeat(13, minmax(0, 1fr)) !important;
78
+ }
79
+
80
+ .ext .ext-grid-cols-none > [class*="_inner-container"] {
81
  /* no suggestion */
82
  grid-template-columns: none !important;
83
  }
84
 
85
  /* Grid Rows */
86
+ .ext .ext-grid-rows-1 > [class*="_inner-container"] {
87
  /* no suggestion */
88
  grid-template-rows: repeat(1, minmax(0, 1fr)) !important;
89
  }
90
 
91
+ .ext .ext-grid-rows-2 > [class*="_inner-container"] {
92
  /* no suggestion */
93
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
94
  }
95
 
96
+ .ext .ext-grid-rows-3 > [class*="_inner-container"] {
97
  /* no suggestion */
98
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
99
  }
100
 
101
+ .ext .ext-grid-rows-4 > [class*="_inner-container"] {
102
  /* no suggestion */
103
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
104
  }
105
 
106
+ .ext .ext-grid-rows-5 > [class*="_inner-container"] {
107
  /* no suggestion */
108
  grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
109
  }
110
 
111
+ .ext .ext-grid-rows-6 > [class*="_inner-container"] {
112
  /* no suggestion */
113
  grid-template-rows: repeat(6, minmax(0, 1fr)) !important;
114
  }
115
 
116
+ .ext .ext-grid-rows-none > [class*="_inner-container"] {
117
  /* no suggestion */
118
  grid-template-rows: none !important;
119
  }
120
 
121
  /* Align */
122
+ .ext .ext-items-start > [class*="_inner-container"] {
123
  align-items: flex-start !important;
124
  }
125
 
126
+ .ext .ext-items-end > [class*="_inner-container"] {
127
  align-items: flex-end !important;
128
  }
129
 
130
+ .ext .ext-items-center > [class*="_inner-container"] {
131
  align-items: center !important;
132
  }
133
 
134
+ .ext .ext-items-baseline > [class*="_inner-container"] {
135
  align-items: baseline !important;
136
  }
137
 
138
+ .ext .ext-items-stretch > [class*="_inner-container"] {
139
  align-items: stretch !important;
140
+ }
extendify-sdk/utility-framework/fallback/group.css CHANGED
@@ -1,36 +1,36 @@
1
  .ext.wp-block-group > *:last-child {
2
  /* no suggestion */
3
- @apply mb-0;
4
  }
5
 
6
  /* For <5.9 */
7
  .ext .wp-block-group__inner-container {
8
  /* no suggestion */
9
- @apply p-0 !important;
10
  }
11
 
12
  .ext.has-background {
13
- /* no suggestion */
14
- @apply px-base;
15
  }
16
 
17
- /* Fallback for classic theme group blocks */
18
  .ext *[class*=inner-container] > .alignwide *[class*=inner-container] {
19
- /* no suggestion */
20
  max-width: var(--responsive--alignwide-width, 120rem);
21
  }
22
 
23
  .ext *[class*=inner-container] > .alignwide *[class*=inner-container] > * {
24
- /* no suggestion */
25
- @apply max-w-full !important;
26
  }
27
 
28
  .ext *[class*=inner-container] > .alignfull *[class*=inner-container] {
29
- /* no suggestion */
30
- @apply max-w-full;
31
  }
32
 
33
  .ext *[class*=inner-container] > .alignfull *[class*=inner-container] > * {
34
- /* no suggestion */
35
- @apply max-w-full !important;
36
- }
1
  .ext.wp-block-group > *:last-child {
2
  /* no suggestion */
3
+ @apply ext-mb-0;
4
  }
5
 
6
  /* For <5.9 */
7
  .ext .wp-block-group__inner-container {
8
  /* no suggestion */
9
+ @apply ext-p-0 !important;
10
  }
11
 
12
  .ext.has-background {
13
+ /* no suggestion */
14
+ @apply ext-px-base;
15
  }
16
 
17
+ /* Fallback for classic theme group blocks */
18
  .ext *[class*=inner-container] > .alignwide *[class*=inner-container] {
19
+ /* no suggestion */
20
  max-width: var(--responsive--alignwide-width, 120rem);
21
  }
22
 
23
  .ext *[class*=inner-container] > .alignwide *[class*=inner-container] > * {
24
+ /* no suggestion */
25
+ @apply ext-max-w-full !important;
26
  }
27
 
28
  .ext *[class*=inner-container] > .alignfull *[class*=inner-container] {
29
+ /* no suggestion */
30
+ @apply ext-max-w-full;
31
  }
32
 
33
  .ext *[class*=inner-container] > .alignfull *[class*=inner-container] > * {
34
+ /* no suggestion */
35
+ @apply ext-max-w-full !important;
36
+ }
extendify-sdk/utility-framework/fallback/image.css CHANGED
@@ -1,10 +1,10 @@
1
  /* Ensure image block display is standardized */
2
  .ext .wp-block-image {
3
  /* no suggestion */
4
- @apply relative text-center;
5
  }
6
 
7
  .ext .wp-block-image img {
8
  /* no suggestion */
9
- @apply inline-block align-middle;
10
  }
1
  /* Ensure image block display is standardized */
2
  .ext .wp-block-image {
3
  /* no suggestion */
4
+ @apply ext-relative ext-text-center;
5
  }
6
 
7
  .ext .wp-block-image img {
8
  /* no suggestion */
9
+ @apply ext-inline-block ext-align-middle;
10
  }
extendify-sdk/utility-framework/suggestions.config.js CHANGED
@@ -16,8 +16,9 @@ const utilities = [
16
  'list-none',
17
  'border(-.{1})?-0',
18
  ]
 
19
  const withBreakpoints = (classes) => classes.map(c => `(${[...breakpoints, ''].join(':|')})${c}`)
20
 
21
  module.exports = {
22
- suggestions: withBreakpoints(utilities),
23
  }
16
  'list-none',
17
  'border(-.{1})?-0',
18
  ]
19
+ const withPrefix = (classes) => classes.map(c => `ext-${c}`)
20
  const withBreakpoints = (classes) => classes.map(c => `(${[...breakpoints, ''].join(':|')})${c}`)
21
 
22
  module.exports = {
23
+ suggestions: withBreakpoints(withPrefix(utilities)),
24
  }
extendify-sdk/utility-framework/suggestions.json CHANGED
@@ -1,263 +1,263 @@
1
  {
2
  "notes": "This file is generated in webpack.mix.js. Do not edit directly.",
3
  "suggestions": [
4
- "absolute",
5
- "relative",
6
- "top-base",
7
- "top-lg",
8
- "-top-base",
9
- "-top-lg",
10
- "right-base",
11
- "right-lg",
12
- "-right-base",
13
- "-right-lg",
14
- "bottom-base",
15
- "bottom-lg",
16
- "-bottom-base",
17
- "-bottom-lg",
18
- "left-base",
19
- "left-lg",
20
- "-left-base",
21
- "-left-lg",
22
- "order-1",
23
- "order-2",
24
- "col-auto",
25
- "col-span-1",
26
- "col-span-2",
27
- "col-span-3",
28
- "col-span-4",
29
- "col-span-5",
30
- "col-span-6",
31
- "col-span-7",
32
- "col-span-8",
33
- "col-span-9",
34
- "col-span-10",
35
- "col-span-11",
36
- "col-span-12",
37
- "col-span-full",
38
- "col-start-1",
39
- "col-start-2",
40
- "col-start-3",
41
- "col-start-4",
42
- "col-start-5",
43
- "col-start-6",
44
- "col-start-7",
45
- "col-start-8",
46
- "col-start-9",
47
- "col-start-10",
48
- "col-start-11",
49
- "col-start-12",
50
- "col-start-13",
51
- "col-start-auto",
52
- "col-end-1",
53
- "col-end-2",
54
- "col-end-3",
55
- "col-end-4",
56
- "col-end-5",
57
- "col-end-6",
58
- "col-end-7",
59
- "col-end-8",
60
- "col-end-9",
61
- "col-end-10",
62
- "col-end-11",
63
- "col-end-12",
64
- "col-end-13",
65
- "col-end-auto",
66
- "row-auto",
67
- "row-span-1",
68
- "row-span-2",
69
- "row-span-3",
70
- "row-span-4",
71
- "row-span-5",
72
- "row-span-6",
73
- "row-span-full",
74
- "row-start-1",
75
- "row-start-2",
76
- "row-start-3",
77
- "row-start-4",
78
- "row-start-5",
79
- "row-start-6",
80
- "row-start-7",
81
- "row-start-auto",
82
- "row-end-1",
83
- "row-end-2",
84
- "row-end-3",
85
- "row-end-4",
86
- "row-end-5",
87
- "row-end-6",
88
- "row-end-7",
89
- "row-end-auto",
90
- "m-0",
91
- "m-auto",
92
- "m-base",
93
- "m-lg",
94
- "-m-base",
95
- "-m-lg",
96
- "mx-0",
97
- "mx-auto",
98
- "mx-base",
99
- "mx-lg",
100
- "-mx-base",
101
- "-mx-lg",
102
- "my-0",
103
- "my-auto",
104
- "my-base",
105
- "my-lg",
106
- "-my-base",
107
- "-my-lg",
108
- "mt-0",
109
- "mt-auto",
110
- "mt-base",
111
- "mt-lg",
112
- "-mt-base",
113
- "-mt-lg",
114
- "mr-0",
115
- "mr-auto",
116
- "mr-base",
117
- "mr-lg",
118
- "-mr-base",
119
- "-mr-lg",
120
- "mb-0",
121
- "mb-auto",
122
- "mb-base",
123
- "mb-lg",
124
- "-mb-base",
125
- "-mb-lg",
126
- "ml-0",
127
- "ml-auto",
128
- "ml-base",
129
- "ml-lg",
130
- "-ml-base",
131
- "-ml-lg",
132
- "block",
133
- "inline-block",
134
- "inline",
135
- "flex",
136
- "inline-flex",
137
- "grid",
138
- "inline-grid",
139
- "hidden",
140
- "w-auto",
141
- "w-full",
142
- "max-w-full",
143
- "flex-1",
144
- "flex-auto",
145
- "flex-initial",
146
- "flex-none",
147
- "flex-shrink-0",
148
- "flex-shrink",
149
- "flex-grow-0",
150
- "flex-grow",
151
- "list-none",
152
- "grid-cols-1",
153
- "grid-cols-2",
154
- "grid-cols-3",
155
- "grid-cols-4",
156
- "grid-cols-5",
157
- "grid-cols-6",
158
- "grid-cols-7",
159
- "grid-cols-8",
160
- "grid-cols-9",
161
- "grid-cols-10",
162
- "grid-cols-11",
163
- "grid-cols-12",
164
- "grid-cols-none",
165
- "grid-rows-1",
166
- "grid-rows-2",
167
- "grid-rows-3",
168
- "grid-rows-4",
169
- "grid-rows-5",
170
- "grid-rows-6",
171
- "grid-rows-none",
172
- "flex-row",
173
- "flex-row-reverse",
174
- "flex-col",
175
- "flex-col-reverse",
176
- "flex-wrap",
177
- "flex-wrap-reverse",
178
- "flex-nowrap",
179
- "items-start",
180
- "items-end",
181
- "items-center",
182
- "items-baseline",
183
- "items-stretch",
184
- "justify-start",
185
- "justify-end",
186
- "justify-center",
187
- "justify-between",
188
- "justify-around",
189
- "justify-evenly",
190
- "justify-items-start",
191
- "justify-items-end",
192
- "justify-items-center",
193
- "justify-items-stretch",
194
- "gap-0",
195
- "gap-base",
196
- "gap-lg",
197
- "gap-x-0",
198
- "gap-x-base",
199
- "gap-x-lg",
200
- "gap-y-0",
201
- "gap-y-base",
202
- "gap-y-lg",
203
- "justify-self-auto",
204
- "justify-self-start",
205
- "justify-self-end",
206
- "justify-self-center",
207
- "justify-self-stretch",
208
- "rounded-none",
209
- "rounded-full",
210
- "rounded-t-none",
211
- "rounded-t-full",
212
- "rounded-r-none",
213
- "rounded-r-full",
214
- "rounded-b-none",
215
- "rounded-b-full",
216
- "rounded-l-none",
217
- "rounded-l-full",
218
- "rounded-tl-none",
219
- "rounded-tl-full",
220
- "rounded-tr-none",
221
- "rounded-tr-full",
222
- "rounded-br-none",
223
- "rounded-br-full",
224
- "rounded-bl-none",
225
- "rounded-bl-full",
226
- "border-0",
227
- "border-t-0",
228
- "border-r-0",
229
- "border-b-0",
230
- "border-l-0",
231
- "p-0",
232
- "p-base",
233
- "p-lg",
234
- "px-0",
235
- "px-base",
236
- "px-lg",
237
- "py-0",
238
- "py-base",
239
- "py-lg",
240
- "pt-0",
241
- "pt-base",
242
- "pt-lg",
243
- "pr-0",
244
- "pr-base",
245
- "pr-lg",
246
- "pb-0",
247
- "pb-base",
248
- "pb-lg",
249
- "pl-0",
250
- "pl-base",
251
- "pl-lg",
252
- "text-left",
253
- "text-center",
254
- "text-right",
255
- "leading-none",
256
- "leading-tight",
257
- "leading-snug",
258
- "leading-normal",
259
- "leading-relaxed",
260
- "leading-loose",
261
  "clip-path--rhombus",
262
  "clip-path--diamond",
263
  "clip-path--rhombus-alt",
@@ -273,297 +273,297 @@
273
  "editor\\:no-inserter",
274
  "editor\\:no-resize",
275
  "editor\\:pointer-events-none",
276
- "tablet\\:absolute",
277
- "tablet\\:relative",
278
- "tablet\\:top-base",
279
- "tablet\\:top-lg",
280
- "tablet\\:-top-base",
281
- "tablet\\:-top-lg",
282
- "tablet\\:right-base",
283
- "tablet\\:right-lg",
284
- "tablet\\:-right-base",
285
- "tablet\\:-right-lg",
286
- "tablet\\:bottom-base",
287
- "tablet\\:bottom-lg",
288
- "tablet\\:-bottom-base",
289
- "tablet\\:-bottom-lg",
290
- "tablet\\:left-base",
291
- "tablet\\:left-lg",
292
- "tablet\\:-left-base",
293
- "tablet\\:-left-lg",
294
- "tablet\\:order-1",
295
- "tablet\\:order-2",
296
- "tablet\\:m-0",
297
- "tablet\\:m-auto",
298
- "tablet\\:m-base",
299
- "tablet\\:m-lg",
300
- "tablet\\:-m-base",
301
- "tablet\\:-m-lg",
302
- "tablet\\:mx-0",
303
- "tablet\\:mx-auto",
304
- "tablet\\:mx-base",
305
- "tablet\\:mx-lg",
306
- "tablet\\:-mx-base",
307
- "tablet\\:-mx-lg",
308
- "tablet\\:my-0",
309
- "tablet\\:my-auto",
310
- "tablet\\:my-base",
311
- "tablet\\:my-lg",
312
- "tablet\\:-my-base",
313
- "tablet\\:-my-lg",
314
- "tablet\\:mt-0",
315
- "tablet\\:mt-auto",
316
- "tablet\\:mt-base",
317
- "tablet\\:mt-lg",
318
- "tablet\\:-mt-base",
319
- "tablet\\:-mt-lg",
320
- "tablet\\:mr-0",
321
- "tablet\\:mr-auto",
322
- "tablet\\:mr-base",
323
- "tablet\\:mr-lg",
324
- "tablet\\:-mr-base",
325
- "tablet\\:-mr-lg",
326
- "tablet\\:mb-0",
327
- "tablet\\:mb-auto",
328
- "tablet\\:mb-base",
329
- "tablet\\:mb-lg",
330
- "tablet\\:-mb-base",
331
- "tablet\\:-mb-lg",
332
- "tablet\\:ml-0",
333
- "tablet\\:ml-auto",
334
- "tablet\\:ml-base",
335
- "tablet\\:ml-lg",
336
- "tablet\\:-ml-base",
337
- "tablet\\:-ml-lg",
338
- "tablet\\:block",
339
- "tablet\\:inline-block",
340
- "tablet\\:inline",
341
- "tablet\\:flex",
342
- "tablet\\:inline-flex",
343
- "tablet\\:grid",
344
- "tablet\\:inline-grid",
345
- "tablet\\:hidden",
346
- "tablet\\:w-auto",
347
- "tablet\\:w-full",
348
- "tablet\\:max-w-full",
349
- "tablet\\:flex-1",
350
- "tablet\\:flex-auto",
351
- "tablet\\:flex-initial",
352
- "tablet\\:flex-none",
353
- "tablet\\:flex-shrink-0",
354
- "tablet\\:flex-shrink",
355
- "tablet\\:flex-grow-0",
356
- "tablet\\:flex-grow",
357
- "tablet\\:list-none",
358
- "tablet\\:grid-cols-1",
359
- "tablet\\:grid-cols-2",
360
- "tablet\\:grid-cols-3",
361
- "tablet\\:grid-cols-4",
362
- "tablet\\:grid-cols-5",
363
- "tablet\\:grid-cols-6",
364
- "tablet\\:grid-cols-7",
365
- "tablet\\:grid-cols-8",
366
- "tablet\\:grid-cols-9",
367
- "tablet\\:grid-cols-10",
368
- "tablet\\:grid-cols-11",
369
- "tablet\\:grid-cols-12",
370
- "tablet\\:grid-cols-none",
371
- "tablet\\:flex-row",
372
- "tablet\\:flex-row-reverse",
373
- "tablet\\:flex-col",
374
- "tablet\\:flex-col-reverse",
375
- "tablet\\:flex-wrap",
376
- "tablet\\:flex-wrap-reverse",
377
- "tablet\\:flex-nowrap",
378
- "tablet\\:items-start",
379
- "tablet\\:items-end",
380
- "tablet\\:items-center",
381
- "tablet\\:items-baseline",
382
- "tablet\\:items-stretch",
383
- "tablet\\:justify-start",
384
- "tablet\\:justify-end",
385
- "tablet\\:justify-center",
386
- "tablet\\:justify-between",
387
- "tablet\\:justify-around",
388
- "tablet\\:justify-evenly",
389
- "tablet\\:justify-items-start",
390
- "tablet\\:justify-items-end",
391
- "tablet\\:justify-items-center",
392
- "tablet\\:justify-items-stretch",
393
- "tablet\\:justify-self-auto",
394
- "tablet\\:justify-self-start",
395
- "tablet\\:justify-self-end",
396
- "tablet\\:justify-self-center",
397
- "tablet\\:justify-self-stretch",
398
- "tablet\\:p-0",
399
- "tablet\\:p-base",
400
- "tablet\\:p-lg",
401
- "tablet\\:px-0",
402
- "tablet\\:px-base",
403
- "tablet\\:px-lg",
404
- "tablet\\:py-0",
405
- "tablet\\:py-base",
406
- "tablet\\:py-lg",
407
- "tablet\\:pt-0",
408
- "tablet\\:pt-base",
409
- "tablet\\:pt-lg",
410
- "tablet\\:pr-0",
411
- "tablet\\:pr-base",
412
- "tablet\\:pr-lg",
413
- "tablet\\:pb-0",
414
- "tablet\\:pb-base",
415
- "tablet\\:pb-lg",
416
- "tablet\\:pl-0",
417
- "tablet\\:pl-base",
418
- "tablet\\:pl-lg",
419
- "tablet\\:text-left",
420
- "tablet\\:text-center",
421
- "tablet\\:text-right",
422
- "desktop\\:absolute",
423
- "desktop\\:relative",
424
- "desktop\\:top-base",
425
- "desktop\\:top-lg",
426
- "desktop\\:-top-base",
427
- "desktop\\:-top-lg",
428
- "desktop\\:right-base",
429
- "desktop\\:right-lg",
430
- "desktop\\:-right-base",
431
- "desktop\\:-right-lg",
432
- "desktop\\:bottom-base",
433
- "desktop\\:bottom-lg",
434
- "desktop\\:-bottom-base",
435
- "desktop\\:-bottom-lg",
436
- "desktop\\:left-base",
437
- "desktop\\:left-lg",
438
- "desktop\\:-left-base",
439
- "desktop\\:-left-lg",
440
- "desktop\\:order-1",
441
- "desktop\\:order-2",
442
- "desktop\\:m-0",
443
- "desktop\\:m-auto",
444
- "desktop\\:m-base",
445
- "desktop\\:m-lg",
446
- "desktop\\:-m-base",
447
- "desktop\\:-m-lg",
448
- "desktop\\:mx-0",
449
- "desktop\\:mx-auto",
450
- "desktop\\:mx-base",
451
- "desktop\\:mx-lg",
452
- "desktop\\:-mx-base",
453
- "desktop\\:-mx-lg",
454
- "desktop\\:my-0",
455
- "desktop\\:my-auto",
456
- "desktop\\:my-base",
457
- "desktop\\:my-lg",
458
- "desktop\\:-my-base",
459
- "desktop\\:-my-lg",
460
- "desktop\\:mt-0",
461
- "desktop\\:mt-auto",
462
- "desktop\\:mt-base",
463
- "desktop\\:mt-lg",
464
- "desktop\\:-mt-base",
465
- "desktop\\:-mt-lg",
466
- "desktop\\:mr-0",
467
- "desktop\\:mr-auto",
468
- "desktop\\:mr-base",
469
- "desktop\\:mr-lg",
470
- "desktop\\:-mr-base",
471
- "desktop\\:-mr-lg",
472
- "desktop\\:mb-0",
473
- "desktop\\:mb-auto",
474
- "desktop\\:mb-base",
475
- "desktop\\:mb-lg",
476
- "desktop\\:-mb-base",
477
- "desktop\\:-mb-lg",
478
- "desktop\\:ml-0",
479
- "desktop\\:ml-auto",
480
- "desktop\\:ml-base",
481
- "desktop\\:ml-lg",
482
- "desktop\\:-ml-base",
483
- "desktop\\:-ml-lg",
484
- "desktop\\:block",
485
- "desktop\\:inline-block",
486
- "desktop\\:inline",
487
- "desktop\\:flex",
488
- "desktop\\:inline-flex",
489
- "desktop\\:grid",
490
- "desktop\\:inline-grid",
491
- "desktop\\:hidden",
492
- "desktop\\:w-auto",
493
- "desktop\\:w-full",
494
- "desktop\\:max-w-full",
495
- "desktop\\:flex-1",
496
- "desktop\\:flex-auto",
497
- "desktop\\:flex-initial",
498
- "desktop\\:flex-none",
499
- "desktop\\:flex-shrink-0",
500
- "desktop\\:flex-shrink",
501
- "desktop\\:flex-grow-0",
502
- "desktop\\:flex-grow",
503
- "desktop\\:list-none",
504
- "desktop\\:grid-cols-1",
505
- "desktop\\:grid-cols-2",
506
- "desktop\\:grid-cols-3",
507
- "desktop\\:grid-cols-4",
508
- "desktop\\:grid-cols-5",
509
- "desktop\\:grid-cols-6",
510
- "desktop\\:grid-cols-7",
511
- "desktop\\:grid-cols-8",
512
- "desktop\\:grid-cols-9",
513
- "desktop\\:grid-cols-10",
514
- "desktop\\:grid-cols-11",
515
- "desktop\\:grid-cols-12",
516
- "desktop\\:grid-cols-none",
517
- "desktop\\:flex-row",
518
- "desktop\\:flex-row-reverse",
519
- "desktop\\:flex-col",
520
- "desktop\\:flex-col-reverse",
521
- "desktop\\:flex-wrap",
522
- "desktop\\:flex-wrap-reverse",
523
- "desktop\\:flex-nowrap",
524
- "desktop\\:items-start",
525
- "desktop\\:items-end",
526
- "desktop\\:items-center",
527
- "desktop\\:items-baseline",
528
- "desktop\\:items-stretch",
529
- "desktop\\:justify-start",
530
- "desktop\\:justify-end",
531
- "desktop\\:justify-center",
532
- "desktop\\:justify-between",
533
- "desktop\\:justify-around",
534
- "desktop\\:justify-evenly",
535
- "desktop\\:justify-items-start",
536
- "desktop\\:justify-items-end",
537
- "desktop\\:justify-items-center",
538
- "desktop\\:justify-items-stretch",
539
- "desktop\\:justify-self-auto",
540
- "desktop\\:justify-self-start",
541
- "desktop\\:justify-self-end",
542
- "desktop\\:justify-self-center",
543
- "desktop\\:justify-self-stretch",
544
- "desktop\\:p-0",
545
- "desktop\\:p-base",
546
- "desktop\\:p-lg",
547
- "desktop\\:px-0",
548
- "desktop\\:px-base",
549
- "desktop\\:px-lg",
550
- "desktop\\:py-0",
551
- "desktop\\:py-base",
552
- "desktop\\:py-lg",
553
- "desktop\\:pt-0",
554
- "desktop\\:pt-base",
555
- "desktop\\:pt-lg",
556
- "desktop\\:pr-0",
557
- "desktop\\:pr-base",
558
- "desktop\\:pr-lg",
559
- "desktop\\:pb-0",
560
- "desktop\\:pb-base",
561
- "desktop\\:pb-lg",
562
- "desktop\\:pl-0",
563
- "desktop\\:pl-base",
564
- "desktop\\:pl-lg",
565
- "desktop\\:text-left",
566
- "desktop\\:text-center",
567
- "desktop\\:text-right"
568
  ]
569
  }
1
  {
2
  "notes": "This file is generated in webpack.mix.js. Do not edit directly.",
3
  "suggestions": [
4
+ "ext-absolute",
5
+ "ext-relative",
6
+ "ext-top-base",
7
+ "ext-top-lg",
8
+ "ext--top-base",
9
+ "ext--top-lg",
10
+ "ext-right-base",
11
+ "ext-right-lg",
12
+ "ext--right-base",
13
+ "ext--right-lg",
14
+ "ext-bottom-base",
15
+ "ext-bottom-lg",
16
+ "ext--bottom-base",
17
+ "ext--bottom-lg",
18
+ "ext-left-base",
19
+ "ext-left-lg",
20
+ "ext--left-base",
21
+ "ext--left-lg",
22
+ "ext-order-1",
23
+ "ext-order-2",
24
+ "ext-col-auto",
25
+ "ext-col-span-1",
26
+ "ext-col-span-2",
27
+ "ext-col-span-3",
28
+ "ext-col-span-4",
29
+ "ext-col-span-5",
30
+ "ext-col-span-6",
31
+ "ext-col-span-7",
32
+ "ext-col-span-8",
33
+ "ext-col-span-9",
34
+ "ext-col-span-10",
35
+ "ext-col-span-11",
36
+ "ext-col-span-12",
37
+ "ext-col-span-full",
38
+ "ext-col-start-1",
39
+ "ext-col-start-2",
40
+ "ext-col-start-3",
41
+ "ext-col-start-4",
42
+ "ext-col-start-5",
43
+ "ext-col-start-6",
44
+ "ext-col-start-7",
45
+ "ext-col-start-8",
46
+ "ext-col-start-9",
47
+ "ext-col-start-10",
48
+ "ext-col-start-11",
49
+ "ext-col-start-12",
50
+ "ext-col-start-13",
51
+ "ext-col-start-auto",
52
+ "ext-col-end-1",
53
+ "ext-col-end-2",
54
+ "ext-col-end-3",
55
+ "ext-col-end-4",
56
+ "ext-col-end-5",
57
+ "ext-col-end-6",
58
+ "ext-col-end-7",
59
+ "ext-col-end-8",
60
+ "ext-col-end-9",
61
+ "ext-col-end-10",
62
+ "ext-col-end-11",
63
+ "ext-col-end-12",
64
+ "ext-col-end-13",
65
+ "ext-col-end-auto",
66
+ "ext-row-auto",
67
+ "ext-row-span-1",
68
+ "ext-row-span-2",
69
+ "ext-row-span-3",
70
+ "ext-row-span-4",
71
+ "ext-row-span-5",
72
+ "ext-row-span-6",
73
+ "ext-row-span-full",
74
+ "ext-row-start-1",
75
+ "ext-row-start-2",
76
+ "ext-row-start-3",
77
+ "ext-row-start-4",
78
+ "ext-row-start-5",
79
+ "ext-row-start-6",
80
+ "ext-row-start-7",
81
+ "ext-row-start-auto",
82
+ "ext-row-end-1",
83
+ "ext-row-end-2",
84
+ "ext-row-end-3",
85
+ "ext-row-end-4",
86
+ "ext-row-end-5",
87
+ "ext-row-end-6",
88
+ "ext-row-end-7",
89
+ "ext-row-end-auto",
90
+ "ext-m-0",
91
+ "ext-m-auto",
92
+ "ext-m-base",
93
+ "ext-m-lg",
94
+ "ext--m-base",
95
+ "ext--m-lg",
96
+ "ext-mx-0",
97
+ "ext-mx-auto",
98
+ "ext-mx-base",
99
+ "ext-mx-lg",
100
+ "ext--mx-base",
101
+ "ext--mx-lg",
102
+ "ext-my-0",
103
+ "ext-my-auto",
104
+ "ext-my-base",
105
+ "ext-my-lg",
106
+ "ext--my-base",
107
+ "ext--my-lg",
108
+ "ext-mt-0",
109
+ "ext-mt-auto",
110
+ "ext-mt-base",
111
+ "ext-mt-lg",
112
+ "ext--mt-base",
113
+ "ext--mt-lg",
114
+ "ext-mr-0",
115
+ "ext-mr-auto",
116
+ "ext-mr-base",
117
+ "ext-mr-lg",
118
+ "ext--mr-base",
119
+ "ext--mr-lg",
120
+ "ext-mb-0",
121
+ "ext-mb-auto",
122
+ "ext-mb-base",
123
+ "ext-mb-lg",
124
+ "ext--mb-base",
125
+ "ext--mb-lg",
126
+ "ext-ml-0",
127
+ "ext-ml-auto",
128
+ "ext-ml-base",
129
+ "ext-ml-lg",
130
+ "ext--ml-base",
131
+ "ext--ml-lg",
132
+ "ext-block",
133
+ "ext-inline-block",
134
+ "ext-inline",
135
+ "ext-flex",
136
+ "ext-inline-flex",
137
+ "ext-grid",
138
+ "ext-inline-grid",
139
+ "ext-hidden",
140
+ "ext-w-auto",
141
+ "ext-w-full",
142
+ "ext-max-w-full",
143
+ "ext-flex-1",
144
+ "ext-flex-auto",
145
+ "ext-flex-initial",
146
+ "ext-flex-none",
147
+ "ext-flex-shrink-0",
148
+ "ext-flex-shrink",
149
+ "ext-flex-grow-0",
150
+ "ext-flex-grow",
151
+ "ext-list-none",
152
+ "ext-grid-cols-1",
153
+ "ext-grid-cols-2",
154
+ "ext-grid-cols-3",
155
+ "ext-grid-cols-4",
156
+ "ext-grid-cols-5",
157
+ "ext-grid-cols-6",
158
+ "ext-grid-cols-7",
159
+ "ext-grid-cols-8",
160
+ "ext-grid-cols-9",
161
+ "ext-grid-cols-10",
162
+ "ext-grid-cols-11",
163
+ "ext-grid-cols-12",
164
+ "ext-grid-cols-none",
165
+ "ext-grid-rows-1",
166
+ "ext-grid-rows-2",
167
+ "ext-grid-rows-3",
168
+ "ext-grid-rows-4",
169
+ "ext-grid-rows-5",
170
+ "ext-grid-rows-6",
171
+ "ext-grid-rows-none",
172
+ "ext-flex-row",
173
+ "ext-flex-row-reverse",
174
+ "ext-flex-col",
175
+ "ext-flex-col-reverse",
176
+ "ext-flex-wrap",
177
+ "ext-flex-wrap-reverse",
178
+ "ext-flex-nowrap",
179
+ "ext-items-start",
180
+ "ext-items-end",
181
+ "ext-items-center",
182
+ "ext-items-baseline",
183
+ "ext-items-stretch",
184
+ "ext-justify-start",
185
+ "ext-justify-end",
186
+ "ext-justify-center",
187
+ "ext-justify-between",
188
+ "ext-justify-around",
189
+ "ext-justify-evenly",
190
+ "ext-justify-items-start",
191
+ "ext-justify-items-end",
192
+ "ext-justify-items-center",
193
+ "ext-justify-items-stretch",
194
+ "ext-gap-0",
195
+ "ext-gap-base",
196
+ "ext-gap-lg",
197
+ "ext-gap-x-0",
198
+ "ext-gap-x-base",
199
+ "ext-gap-x-lg",
200
+ "ext-gap-y-0",
201
+ "ext-gap-y-base",
202
+ "ext-gap-y-lg",
203
+ "ext-justify-self-auto",
204
+ "ext-justify-self-start",
205
+ "ext-justify-self-end",
206
+ "ext-justify-self-center",
207
+ "ext-justify-self-stretch",
208
+ "ext-rounded-none",
209
+ "ext-rounded-full",
210
+ "ext-rounded-t-none",
211
+ "ext-rounded-t-full",
212
+ "ext-rounded-r-none",
213
+ "ext-rounded-r-full",
214
+ "ext-rounded-b-none",
215
+ "ext-rounded-b-full",
216
+ "ext-rounded-l-none",
217
+ "ext-rounded-l-full",
218
+ "ext-rounded-tl-none",
219
+ "ext-rounded-tl-full",
220
+ "ext-rounded-tr-none",
221
+ "ext-rounded-tr-full",
222
+ "ext-rounded-br-none",
223
+ "ext-rounded-br-full",
224
+ "ext-rounded-bl-none",
225
+ "ext-rounded-bl-full",
226
+ "ext-border-0",
227
+ "ext-border-t-0",
228
+ "ext-border-r-0",
229
+ "ext-border-b-0",
230
+ "ext-border-l-0",
231
+ "ext-p-0",
232
+ "ext-p-base",
233
+ "ext-p-lg",
234
+ "ext-px-0",
235
+ "ext-px-base",
236
+ "ext-px-lg",
237
+ "ext-py-0",
238
+ "ext-py-base",
239
+ "ext-py-lg",
240
+ "ext-pt-0",
241
+ "ext-pt-base",
242
+ "ext-pt-lg",
243
+ "ext-pr-0",
244
+ "ext-pr-base",
245
+ "ext-pr-lg",
246
+ "ext-pb-0",
247
+ "ext-pb-base",
248
+ "ext-pb-lg",
249
+ "ext-pl-0",
250
+ "ext-pl-base",
251
+ "ext-pl-lg",
252
+ "ext-text-left",
253
+ "ext-text-center",
254
+ "ext-text-right",
255
+ "ext-leading-none",
256
+ "ext-leading-tight",
257
+ "ext-leading-snug",
258
+ "ext-leading-normal",
259
+ "ext-leading-relaxed",
260
+ "ext-leading-loose",
261
  "clip-path--rhombus",
262
  "clip-path--diamond",
263
  "clip-path--rhombus-alt",
273
  "editor\\:no-inserter",
274
  "editor\\:no-resize",
275
  "editor\\:pointer-events-none",
276
+ "tablet\\:ext-absolute",
277
+ "tablet\\:ext-relative",
278
+ "tablet\\:ext-top-base",
279
+ "tablet\\:ext-top-lg",
280
+ "tablet\\:ext--top-base",
281
+ "tablet\\:ext--top-lg",
282
+ "tablet\\:ext-right-base",
283
+ "tablet\\:ext-right-lg",
284
+ "tablet\\:ext--right-base",
285
+ "tablet\\:ext--right-lg",
286
+ "tablet\\:ext-bottom-base",
287
+ "tablet\\:ext-bottom-lg",
288
+ "tablet\\:ext--bottom-base",
289
+ "tablet\\:ext--bottom-lg",
290
+ "tablet\\:ext-left-base",
291
+ "tablet\\:ext-left-lg",
292
+ "tablet\\:ext--left-base",
293
+ "tablet\\:ext--left-lg",
294
+ "tablet\\:ext-order-1",
295
+ "tablet\\:ext-order-2",
296
+ "tablet\\:ext-m-0",
297
+ "tablet\\:ext-m-auto",
298
+ "tablet\\:ext-m-base",
299
+ "tablet\\:ext-m-lg",
300
+ "tablet\\:ext--m-base",
301
+ "tablet\\:ext--m-lg",
302
+ "tablet\\:ext-mx-0",
303
+ "tablet\\:ext-mx-auto",
304
+ "tablet\\:ext-mx-base",
305
+ "tablet\\:ext-mx-lg",
306
+ "tablet\\:ext--mx-base",
307
+ "tablet\\:ext--mx-lg",
308
+ "tablet\\:ext-my-0",
309
+ "tablet\\:ext-my-auto",
310
+ "tablet\\:ext-my-base",
311
+ "tablet\\:ext-my-lg",
312
+ "tablet\\:ext--my-base",
313
+ "tablet\\:ext--my-lg",
314
+ "tablet\\:ext-mt-0",
315
+ "tablet\\:ext-mt-auto",
316
+ "tablet\\:ext-mt-base",
317
+ "tablet\\:ext-mt-lg",
318
+ "tablet\\:ext--mt-base",
319
+ "tablet\\:ext--mt-lg",
320
+ "tablet\\:ext-mr-0",
321
+ "tablet\\:ext-mr-auto",
322
+ "tablet\\:ext-mr-base",
323
+ "tablet\\:ext-mr-lg",
324
+ "tablet\\:ext--mr-base",
325
+ "tablet\\:ext--mr-lg",
326
+ "tablet\\:ext-mb-0",
327
+ "tablet\\:ext-mb-auto",
328
+ "tablet\\:ext-mb-base",
329
+ "tablet\\:ext-mb-lg",
330
+ "tablet\\:ext--mb-base",
331
+ "tablet\\:ext--mb-lg",
332
+ "tablet\\:ext-ml-0",
333
+ "tablet\\:ext-ml-auto",
334
+ "tablet\\:ext-ml-base",
335
+ "tablet\\:ext-ml-lg",
336
+ "tablet\\:ext--ml-base",
337
+ "tablet\\:ext--ml-lg",
338
+ "tablet\\:ext-block",
339
+ "tablet\\:ext-inline-block",
340
+ "tablet\\:ext-inline",
341
+ "tablet\\:ext-flex",
342
+ "tablet\\:ext-inline-flex",
343
+ "tablet\\:ext-grid",
344
+ "tablet\\:ext-inline-grid",
345
+ "tablet\\:ext-hidden",
346
+ "tablet\\:ext-w-auto",
347
+ "tablet\\:ext-w-full",
348
+ "tablet\\:ext-max-w-full",
349
+ "tablet\\:ext-flex-1",
350
+ "tablet\\:ext-flex-auto",
351
+ "tablet\\:ext-flex-initial",
352
+ "tablet\\:ext-flex-none",
353
+ "tablet\\:ext-flex-shrink-0",
354
+ "tablet\\:ext-flex-shrink",
355
+ "tablet\\:ext-flex-grow-0",
356
+ "tablet\\:ext-flex-grow",
357
+ "tablet\\:ext-list-none",
358
+ "tablet\\:ext-grid-cols-1",
359
+ "tablet\\:ext-grid-cols-2",
360
+ "tablet\\:ext-grid-cols-3",
361
+ "tablet\\:ext-grid-cols-4",
362
+ "tablet\\:ext-grid-cols-5",
363
+ "tablet\\:ext-grid-cols-6",
364
+ "tablet\\:ext-grid-cols-7",
365
+ "tablet\\:ext-grid-cols-8",
366
+ "tablet\\:ext-grid-cols-9",
367
+ "tablet\\:ext-grid-cols-10",
368
+ "tablet\\:ext-grid-cols-11",
369
+ "tablet\\:ext-grid-cols-12",
370
+ "tablet\\:ext-grid-cols-none",
371
+ "tablet\\:ext-flex-row",
372
+ "tablet\\:ext-flex-row-reverse",
373
+ "tablet\\:ext-flex-col",
374
+ "tablet\\:ext-flex-col-reverse",
375
+ "tablet\\:ext-flex-wrap",
376
+ "tablet\\:ext-flex-wrap-reverse",
377
+ "tablet\\:ext-flex-nowrap",
378
+ "tablet\\:ext-items-start",
379
+ "tablet\\:ext-items-end",
380
+ "tablet\\:ext-items-center",
381
+ "tablet\\:ext-items-baseline",
382
+ "tablet\\:ext-items-stretch",
383
+ "tablet\\:ext-justify-start",
384
+ "tablet\\:ext-justify-end",
385
+ "tablet\\:ext-justify-center",
386
+ "tablet\\:ext-justify-between",
387
+ "tablet\\:ext-justify-around",
388
+ "tablet\\:ext-justify-evenly",
389
+ "tablet\\:ext-justify-items-start",
390
+ "tablet\\:ext-justify-items-end",
391
+ "tablet\\:ext-justify-items-center",
392
+ "tablet\\:ext-justify-items-stretch",
393
+ "tablet\\:ext-justify-self-auto",
394
+ "tablet\\:ext-justify-self-start",
395
+ "tablet\\:ext-justify-self-end",
396
+ "tablet\\:ext-justify-self-center",
397
+ "tablet\\:ext-justify-self-stretch",
398
+ "tablet\\:ext-p-0",
399
+ "tablet\\:ext-p-base",
400
+ "tablet\\:ext-p-lg",
401
+ "tablet\\:ext-px-0",
402
+ "tablet\\:ext-px-base",
403
+ "tablet\\:ext-px-lg",
404
+ "tablet\\:ext-py-0",
405
+ "tablet\\:ext-py-base",
406
+ "tablet\\:ext-py-lg",
407
+ "tablet\\:ext-pt-0",
408
+ "tablet\\:ext-pt-base",
409
+ "tablet\\:ext-pt-lg",
410
+ "tablet\\:ext-pr-0",
411
+ "tablet\\:ext-pr-base",
412
+ "tablet\\:ext-pr-lg",
413
+ "tablet\\:ext-pb-0",
414
+ "tablet\\:ext-pb-base",
415
+ "tablet\\:ext-pb-lg",
416
+ "tablet\\:ext-pl-0",
417
+ "tablet\\:ext-pl-base",
418
+ "tablet\\:ext-pl-lg",
419
+ "tablet\\:ext-text-left",
420
+ "tablet\\:ext-text-center",
421
+ "tablet\\:ext-text-right",
422
+ "desktop\\:ext-absolute",
423
+ "desktop\\:ext-relative",
424
+ "desktop\\:ext-top-base",
425
+ "desktop\\:ext-top-lg",
426
+ "desktop\\:ext--top-base",
427
+ "desktop\\:ext--top-lg",
428
+ "desktop\\:ext-right-base",
429
+ "desktop\\:ext-right-lg",
430
+ "desktop\\:ext--right-base",
431
+ "desktop\\:ext--right-lg",
432
+ "desktop\\:ext-bottom-base",
433
+ "desktop\\:ext-bottom-lg",
434
+ "desktop\\:ext--bottom-base",
435
+ "desktop\\:ext--bottom-lg",
436
+ "desktop\\:ext-left-base",
437
+ "desktop\\:ext-left-lg",
438
+ "desktop\\:ext--left-base",
439
+ "desktop\\:ext--left-lg",
440
+ "desktop\\:ext-order-1",
441
+ "desktop\\:ext-order-2",
442
+ "desktop\\:ext-m-0",
443
+ "desktop\\:ext-m-auto",
444
+ "desktop\\:ext-m-base",
445
+ "desktop\\:ext-m-lg",
446
+ "desktop\\:ext--m-base",
447
+ "desktop\\:ext--m-lg",
448
+ "desktop\\:ext-mx-0",
449
+ "desktop\\:ext-mx-auto",
450
+ "desktop\\:ext-mx-base",
451
+ "desktop\\:ext-mx-lg",
452
+ "desktop\\:ext--mx-base",
453
+ "desktop\\:ext--mx-lg",
454
+ "desktop\\:ext-my-0",
455
+ "desktop\\:ext-my-auto",
456
+ "desktop\\:ext-my-base",
457
+ "desktop\\:ext-my-lg",
458
+ "desktop\\:ext--my-base",
459
+ "desktop\\:ext--my-lg",
460
+ "desktop\\:ext-mt-0",
461
+ "desktop\\:ext-mt-auto",
462
+ "desktop\\:ext-mt-base",
463
+ "desktop\\:ext-mt-lg",
464
+ "desktop\\:ext--mt-base",
465
+ "desktop\\:ext--mt-lg",
466
+ "desktop\\:ext-mr-0",
467
+ "desktop\\:ext-mr-auto",
468
+ "desktop\\:ext-mr-base",
469
+ "desktop\\:ext-mr-lg",
470
+ "desktop\\:ext--mr-base",
471
+ "desktop\\:ext--mr-lg",
472
+ "desktop\\:ext-mb-0",
473
+ "desktop\\:ext-mb-auto",
474
+ "desktop\\:ext-mb-base",
475
+ "desktop\\:ext-mb-lg",
476
+ "desktop\\:ext--mb-base",
477
+ "desktop\\:ext--mb-lg",
478
+ "desktop\\:ext-ml-0",
479
+ "desktop\\:ext-ml-auto",
480
+ "desktop\\:ext-ml-base",
481
+ "desktop\\:ext-ml-lg",
482
+ "desktop\\:ext--ml-base",
483
+ "desktop\\:ext--ml-lg",
484
+ "desktop\\:ext-block",
485
+ "desktop\\:ext-inline-block",
486
+ "desktop\\:ext-inline",
487
+ "desktop\\:ext-flex",
488
+ "desktop\\:ext-inline-flex",
489
+ "desktop\\:ext-grid",
490
+ "desktop\\:ext-inline-grid",
491
+ "desktop\\:ext-hidden",
492
+ "desktop\\:ext-w-auto",
493
+ "desktop\\:ext-w-full",
494
+ "desktop\\:ext-max-w-full",
495
+ "desktop\\:ext-flex-1",
496
+ "desktop\\:ext-flex-auto",
497
+ "desktop\\:ext-flex-initial",
498
+ "desktop\\:ext-flex-none",
499
+ "desktop\\:ext-flex-shrink-0",
500
+ "desktop\\:ext-flex-shrink",
501
+ "desktop\\:ext-flex-grow-0",
502
+ "desktop\\:ext-flex-grow",
503
+ "desktop\\:ext-list-none",
504
+ "desktop\\:ext-grid-cols-1",
505
+ "desktop\\:ext-grid-cols-2",
506
+ "desktop\\:ext-grid-cols-3",
507
+ "desktop\\:ext-grid-cols-4",
508
+ "desktop\\:ext-grid-cols-5",
509
+ "desktop\\:ext-grid-cols-6",
510
+ "desktop\\:ext-grid-cols-7",
511
+ "desktop\\:ext-grid-cols-8",
512
+ "desktop\\:ext-grid-cols-9",
513
+ "desktop\\:ext-grid-cols-10",
514
+ "desktop\\:ext-grid-cols-11",
515
+ "desktop\\:ext-grid-cols-12",
516
+ "desktop\\:ext-grid-cols-none",
517
+ "desktop\\:ext-flex-row",
518
+ "desktop\\:ext-flex-row-reverse",
519
+ "desktop\\:ext-flex-col",
520
+ "desktop\\:ext-flex-col-reverse",
521
+ "desktop\\:ext-flex-wrap",
522
+ "desktop\\:ext-flex-wrap-reverse",
523
+ "desktop\\:ext-flex-nowrap",
524
+ "desktop\\:ext-items-start",
525
+ "desktop\\:ext-items-end",
526
+ "desktop\\:ext-items-center",
527
+ "desktop\\:ext-items-baseline",
528
+ "desktop\\:ext-items-stretch",
529
+ "desktop\\:ext-justify-start",
530
+ "desktop\\:ext-justify-end",
531
+ "desktop\\:ext-justify-center",
532
+ "desktop\\:ext-justify-between",
533
+ "desktop\\:ext-justify-around",
534
+ "desktop\\:ext-justify-evenly",
535
+ "desktop\\:ext-justify-items-start",
536
+ "desktop\\:ext-justify-items-end",
537
+ "desktop\\:ext-justify-items-center",
538
+ "desktop\\:ext-justify-items-stretch",
539
+ "desktop\\:ext-justify-self-auto",
540
+ "desktop\\:ext-justify-self-start",
541
+ "desktop\\:ext-justify-self-end",
542
+ "desktop\\:ext-justify-self-center",
543
+ "desktop\\:ext-justify-self-stretch",
544
+ "desktop\\:ext-p-0",
545
+ "desktop\\:ext-p-base",
546
+ "desktop\\:ext-p-lg",
547
+ "desktop\\:ext-px-0",
548
+ "desktop\\:ext-px-base",
549
+ "desktop\\:ext-px-lg",
550
+ "desktop\\:ext-py-0",
551
+ "desktop\\:ext-py-base",
552
+ "desktop\\:ext-py-lg",
553
+ "desktop\\:ext-pt-0",
554
+ "desktop\\:ext-pt-base",
555
+ "desktop\\:ext-pt-lg",
556
+ "desktop\\:ext-pr-0",
557
+ "desktop\\:ext-pr-base",
558
+ "desktop\\:ext-pr-lg",
559
+ "desktop\\:ext-pb-0",
560
+ "desktop\\:ext-pb-base",
561
+ "desktop\\:ext-pb-lg",
562
+ "desktop\\:ext-pl-0",
563
+ "desktop\\:ext-pl-base",
564
+ "desktop\\:ext-pl-lg",
565
+ "desktop\\:ext-text-left",
566
+ "desktop\\:ext-text-center",
567
+ "desktop\\:ext-text-right"
568
  ]
569
  }
extendify-sdk/utility-framework/tailwind.config.js CHANGED
@@ -8,6 +8,7 @@ module.exports = {
8
  greedy: suggestions?.map(s => new RegExp(`^${s}$`)) ?? [],
9
  },
10
  },
 
11
  important: true,
12
  darkMode: false,
13
  theme: {
8
  greedy: suggestions?.map(s => new RegExp(`^${s}$`)) ?? [],
9
  },
10
  },
11
+ prefix: 'ext-',
12
  important: true,
13
  darkMode: false,
14
  theme: {
extendify-sdk/webpack.mix.js CHANGED
@@ -127,9 +127,6 @@ mix.postCss(
127
  new RegExp('[:]?[^a-z]-?p[a-z]?-.+').test(rule) && (rule.selector += ':not([style*="padding"])') ||
128
  new RegExp('[:]?[^a-z]-?m[a-z]?-.+').test(rule) && (rule.selector += ':not([style*="margin"])')
129
  }),
130
- css => css.walkDecls(declaration => {
131
- declaration.prop === 'display' && (declaration.important = false)
132
- }),
133
  extractSuggestions,
134
  ],
135
  )
127
  new RegExp('[:]?[^a-z]-?p[a-z]?-.+').test(rule) && (rule.selector += ':not([style*="padding"])') ||
128
  new RegExp('[:]?[^a-z]-?m[a-z]?-.+').test(rule) && (rule.selector += ':not([style*="margin"])')
129
  }),
 
 
 
130
  extractSuggestions,
131
  ],
132
  )
ml-slider.php CHANGED
@@ -6,7 +6,7 @@
6
  * Plugin Name: MetaSlider
7
  * Plugin URI: https://www.metaslider.com
8
  * Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
9
- * Version: 3.23.2
10
  * Author: MetaSlider
11
  * Author URI: https://www.metaslider.com
12
  * License: GPL-2.0+
@@ -35,7 +35,7 @@ class MetaSliderPlugin
35
  *
36
  * @var string
37
  */
38
- public $version = '3.23.2';
39
 
40
  /**
41
  * Pro installed version number
6
  * Plugin Name: MetaSlider
7
  * Plugin URI: https://www.metaslider.com
8
  * Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
9
+ * Version: 3.23.3
10
  * Author: MetaSlider
11
  * Author URI: https://www.metaslider.com
12
  * License: GPL-2.0+
35
  *
36
  * @var string
37
  */
38
+ public $version = '3.23.3';
39
 
40
  /**
41
  * Pro installed version number
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: matchalabs, DavidAnderson, dnutbourne, kbat82
3
  Tags: slideshow, slider, image slider, carousel, gallery, flexslider, wordpress slider, nivoslider, rotating banner, responsive slideshow, seo slideshow, unsplash
4
  Requires at least: 3.5
5
- Stable tag: 3.23.2
6
  Requires PHP: 5.2
7
  Tested up to: 5.8
8
  License: GPLv2 or later
@@ -288,6 +288,9 @@ See https://www.metaslider.com/documentation/image-cropping/
288
 
289
  == Changelog ==
290
 
 
 
 
291
  = 3.23.2 - 2021/Nov/11 =
292
  * FIX: Lowers utility class display specificity
293
 
2
  Contributors: matchalabs, DavidAnderson, dnutbourne, kbat82
3
  Tags: slideshow, slider, image slider, carousel, gallery, flexslider, wordpress slider, nivoslider, rotating banner, responsive slideshow, seo slideshow, unsplash
4
  Requires at least: 3.5
5
+ Stable tag: 3.23.3
6
  Requires PHP: 5.2
7
  Tested up to: 5.8
8
  License: GPLv2 or later
288
 
289
  == Changelog ==
290
 
291
+ = 3.23.3 - 2021/Nov/12 =
292
+ * FIX: Fixes theme conflict with the utility class stylesheet
293
+
294
  = 3.23.2 - 2021/Nov/11 =
295
  * FIX: Lowers utility class display specificity
296