@emailmaker/emailmaker 1.2.0 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -0
- package/README.md +4 -0
- package/emailmaker-core.ee1618fa.js +859 -0
- package/emailmaker-esm.js +11 -11
- package/{emailmaker-po.fec11667.js → emailmaker-po.ee1618fa.js} +1 -1
- package/emailmaker.d.ts +34 -2
- package/emailmaker.js +12 -12
- package/iframe/.vite/manifest.json +4 -4
- package/iframe/{iframe-eblock.fec11667.html → iframe-eblock.ee1618fa.html} +2 -2
- package/iframe/{iframe.fec11667.html → iframe.ee1618fa.html} +2 -2
- package/iframe/js/elMarkupHelper.Buog1r0c.js +278 -0
- package/iframe/js/iframe-eblock.body.ee1618fa.js +9 -0
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.ee1618fa.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/iframe/js/sanitize-html/sanitize-html.js +46 -21756
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/155e871a.js +7 -0
- package/static/core/{7be64bf5.js → 17fba7af.js} +1 -1
- package/static/core/{a9235d9e.js → 2a042fe3.js} +1 -1
- package/static/core/{c5713f94.js → 32a14159.js} +1 -1
- package/static/core/{99c15a5d.js → 4de9c323.js} +1 -1
- package/static/core/{ec5f739e.js → 50ba806c.js} +10 -10
- package/static/core/{db685f4e.js → 5b6e2acb.js} +1 -1
- package/static/core/{f2ced98d.js → 63e7f8c1.js} +2 -2
- package/static/core/{790366d3.js → 64711257.js} +1 -1
- package/static/core/{f54ef492.js → 659796a7.js} +1 -1
- package/static/core/{b74171bd.js → 683a6a53.js} +1 -1
- package/static/core/{b27aec0b.js → 6b16159c.js} +1 -1
- package/static/core/{5c4239d8.js → 7e167222.js} +1 -1
- package/static/core/{8b89090c.js → 82f8beb4.js} +1 -1
- package/static/core/{a2c7aeb0.js → 987afc3f.js} +1 -1
- package/static/core/{44fac8d4.js → 9eaed676.js} +1 -1
- package/static/core/{9f7e0f94.js → a8b4352d.js} +1 -1
- package/static/core/{b7dee12b.js → b7289065.js} +2 -2
- package/static/core/b96e571d.js +2 -0
- package/static/core/c03be019.js +4 -0
- package/static/core/{7d006e7b.js → c3d00c5e.js} +1 -1
- package/static/core/{727a165f.js → c67df236.js} +1 -1
- package/static/core/{e15ab856.js → c8443fab.js} +1 -1
- package/static/core/{64c27f91.js → d2780737.js} +1 -1
- package/static/core/d503c406.js +1 -0
- package/static/core/{29b3ccef.js → dd230bbb.js} +1 -1
- package/static/core/e7fa68c2.js +28 -0
- package/static/core/{ccb090eb.js → f35181ec.js} +7 -7
- package/static/esm/b4f8dfdc.js +1 -0
- package/static/umd-runtime/{runtime.CunK0nEC.js → runtime.Bsid8PpY.js} +1 -1
- package/vendor/@emailmaker/ui-kit/package.json +1 -1
- package/emailmaker-core.fec11667.js +0 -859
- package/iframe/js/elMarkupHelper.Dv3AYDYP.js +0 -279
- package/iframe/js/iframe-eblock.body.fec11667.js +0 -9
- package/iframe/js/iframe.body.fec11667.js +0 -129
- package/iframe/js/sanitize-html/sanitize-html.min.js +0 -16923
- package/static/core/2e70fae0.js +0 -4
- package/static/core/83d2ca5d.js +0 -28
- package/static/core/8da91a53.js +0 -2
- package/static/core/bbb87124.js +0 -1
- package/static/core/e7bbe544.js +0 -7
- package/static/esm/ae0fe329.js +0 -1
package/package.json
CHANGED
package/runtime/react/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../../vendor/react/index.js";var f=e&&e.default?e.default:e,{Activity:m,Children:n,Component:o,Fragment:c,Profiler:E,PureComponent:v,StrictMode:d,Suspense:R,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:S,__COMPILER_RUNTIME:h,cache:T,cacheSignal:g,cloneElement:N,createContext:k,createElement:_,createRef:b,forwardRef:A,isValidElement:O,lazy:I,memo:D,startTransition:L,unstable_useCacheRefresh:M,use:P,useActionState:U,useCallback:V,useContext:x,useDebugValue:H,useDeferredValue:z,useEffect:F,useEffectEvent:G,useId:W,useImperativeHandle:Y,useInsertionEffect:j,useLayoutEffect:p,useMemo:q,useOptimistic:w,useReducer:B,useRef:J,useState:Q,useSyncExternalStore:X,useTransition:Z,version:$}=e;try{var u=Symbol.for("editor-runtime.react.copies"),a=globalThis[u];a||(a=[],globalThis[u]=a);for(var s=!1,r=0;r<a.length;r++){var t=a[r];t&&t.react===e&&t.package==="@emailmaker/emailmaker"&&t.version==="1.2.
|
|
1
|
+
import e from"../../vendor/react/index.js";var f=e&&e.default?e.default:e,{Activity:m,Children:n,Component:o,Fragment:c,Profiler:E,PureComponent:v,StrictMode:d,Suspense:R,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:S,__COMPILER_RUNTIME:h,cache:T,cacheSignal:g,cloneElement:N,createContext:k,createElement:_,createRef:b,forwardRef:A,isValidElement:O,lazy:I,memo:D,startTransition:L,unstable_useCacheRefresh:M,use:P,useActionState:U,useCallback:V,useContext:x,useDebugValue:H,useDeferredValue:z,useEffect:F,useEffectEvent:G,useId:W,useImperativeHandle:Y,useInsertionEffect:j,useLayoutEffect:p,useMemo:q,useOptimistic:w,useReducer:B,useRef:J,useState:Q,useSyncExternalStore:X,useTransition:Z,version:$}=e;try{var u=Symbol.for("editor-runtime.react.copies"),a=globalThis[u];a||(a=[],globalThis[u]=a);for(var s=!1,r=0;r<a.length;r++){var t=a[r];t&&t.react===e&&t.package==="@emailmaker/emailmaker"&&t.version==="1.2.5"&&(s=!0)}s||a.push({package:"@emailmaker/emailmaker",version:"1.2.5",react:e})}catch{}export{m as Activity,n as Children,o as Component,c as Fragment,E as Profiler,v as PureComponent,d as StrictMode,R as Suspense,S as __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h as __COMPILER_RUNTIME,T as cache,g as cacheSignal,N as cloneElement,k as createContext,_ as createElement,b as createRef,f as default,A as forwardRef,O as isValidElement,I as lazy,D as memo,L as startTransition,M as unstable_useCacheRefresh,P as use,U as useActionState,V as useCallback,x as useContext,H as useDebugValue,z as useDeferredValue,F as useEffect,G as useEffectEvent,W as useId,Y as useImperativeHandle,j as useInsertionEffect,p as useLayoutEffect,q as useMemo,w as useOptimistic,B as useReducer,J as useRef,Q as useState,X as useSyncExternalStore,Z as useTransition,$ as version};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
__emailmaker__.define("static/core/61378c9e.js",["require","exports","module"],function(d,a,u){function l(c,s="application/octet-stream"){let t=c.trim(),o=s?.trim()||"application/octet-stream";const r=t.indexOf(",");if(t.startsWith("data:")&&r>=0){const e=t.slice(5,r).split(";")[0]?.trim();e&&(o=e),t=t.slice(r+1)}const m=t.replace(/\s/g,""),i=atob(m),n=new Uint8Array(i.length);for(let e=0;e<i.length;e++)n[e]=i.charCodeAt(e);return new Blob([n],{type:o})}Object.defineProperty(a,"base64ToBlob",{enumerable:!0,get:function(){return l}})});
|
|
2
|
+
|
|
3
|
+
(function(){try{if(typeof document<"u"){var t=".blocks-app .image-preview{text-align:center;min-height:100px;position:relative}.blocks-app .image-preview .image-editor-modal{border:1px solid red}.blocks-app .image-preview__edit-button{position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-preview img{border:1px solid var(--em-colorBorder);border-radius:6px;max-width:100%;max-height:500px}.blocks-app .serach-results .ant-row{align-items:center}.blocks-app .serach-results .blocks-search__divider-wrapper{margin-top:12px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{border-top:1px solid var(--em-colorBorderSecondary);background:0 0;width:100%;height:1px;min-height:0;margin:0;position:static}.blocks-app .slideshow-container{width:524px;height:350px;margin:auto;position:relative;overflow:hidden}.blocks-app .slideshow-image{opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .image-ai .slideshow-image{width:auto;height:auto}.blocks-app .image-ai__image-item{text-align:center;border-radius:6px;justify-content:center;align-items:center;min-height:100px;display:flex;position:relative}.blocks-app .image-ai__image-item .buttons{justify-content:space-between;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-ai .text-area-input-hybrid{border:none;outline:none;min-height:0;padding:0 0 0 1px}.blocks-app .image-ai .text-area-input-hybrid textarea{height:32px;min-height:32px;padding:3px 11px;line-height:26px}.blocks-app .image-ai__loading{justify-content:center;align-items:center;min-height:150px;display:flex}.blocks-app .image-ai__loading .spin{flex-direction:column;justify-content:center;align-items:center;height:150px;display:flex}.blocks-app .image-ai__loading .status{margin:3px 0 0}.blocks-app .image-ai__preview{border-radius:6px;margin-top:24px;overflow:hidden}.blocks-app .image-ai__preview .image-ai__image-item img{border-radius:calc(var(--em-borderRadius) * 1px);object-fit:contain;max-height:100%;transition:height 1s;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.blocks-app .image-ai .small{width:302px;height:202px}.blocks-app .image-ai .large{width:524px;height:350px}.blocks-app .image-ai .image-ai__row{padding:0 2px}.blocks-app .image-ai .image-ai__input-affix-wrapper{border-style:solid;border-width:calc(var(--em-borderWidth) * 1px);border-color:var(--em-colorFillSecondaryDarken);border-radius:calc(var(--em-borderRadius) * 1px);width:100%;padding-left:0;display:inline-flex}.blocks-app .image-ai .image-ai__input-affix-wrapper:hover{border-color:var(--em-borderColorHover)}.blocks-app .image-ai .image-ai__input-affix-wrapper.ant-input-affix-wrapper-focused{border-color:var(--em-colorPrimaryBorder)}.blocks-app .image-ai .image-ai__textarea{font-size:16px}.blocks-app .image-ai .image-ai__input-icon{font-size:16px;top:0;right:0}.dark .blocks-app .image-ai .image-ai__preview .image-ai__image-item img{background:#2b2b2b;border:1px solid #434343}.dark .blocks-app .image-ai .ant-btn{background:#1f1f1f}.dark .blocks-app .image-ai .ant-btn:hover{color:var(--em-colorPrimary)}.blocks-app .stock-tab img{border-radius:0;max-width:none;max-height:none}.blocks-app .stock-tab .stock-search-input{padding:0 2px}.blocks-app .stock-tab .my-masonry-grid{text-align:center;width:auto;display:flex}.blocks-app .stock-tab .my-masonry-grid_column{background-clip:padding-box}.blocks-app .stock-tab .list-item{cursor:pointer;background:#f0f2f5;border:1px solid #f0f2f5;border-radius:6px;min-height:100px;max-height:100px;margin-bottom:20px;transition:all .3s;display:inline-block;position:relative;overflow:hidden}.blocks-app .stock-tab .list-item .overlay-image{opacity:0;background-size:cover;width:110px;height:40px;transition:opacity .5s;position:absolute;bottom:10px;right:10px}.blocks-app .stock-tab .list-item .ant-spin{color:#f0f2f5;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.blocks-app .stock-tab .list-item img{object-fit:cover;opacity:0;border-radius:6px;height:auto;transition:opacity .5s ease-in-out;display:block}.blocks-app .stock-tab .list-item.loaded{border:1px solid #d9d9d9;max-height:1000px}.blocks-app .stock-tab .list-item.loaded img{opacity:1;height:100%}.blocks-app .stock-tab .list-item.loaded .loaded-image{opacity:.5}.blocks-app .stock-tab .list-item:hover{box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017}.blocks-app .stock-tab .list-item:hover p.creator-info,.blocks-app .stock-tab .list-item:hover .overlay-image{opacity:1}.blocks-app .stock-tab .list-item p.creator-info{color:#fff;opacity:0;background-color:#00000080;border-radius:0 0 6px;margin:0;padding:5px;font-size:10px;line-height:1.2;position:absolute;bottom:0;right:0}.blocks-app .stock-tab .list-item p.creator-info:hover a{color:#fff;text-decoration:underline}.blocks-app .stock-tab .list-item p.creator-info a{color:#fff;text-decoration:none}.blocks-app .stock-color-filter{display:flex}.blocks-app .stock-color-filter label{border-width:1px;width:24px;height:24px;margin:4px;padding:0;font-size:0;border-radius:6px!important}.blocks-app .stock-color-filter label.all-colors{background-image:linear-gradient(135deg,red,#ff7f00,#ff0,#0f0,#00f,#8b00ff)}.blocks-app .stock-color-filter label.black-color{background:#222}.blocks-app .stock-color-filter label.bw-color{background-image:linear-gradient(135deg,#222 50%,#fff 50%)}.blocks-app .stock-color-filter label.white-color{background:#fff}.blocks-app .stock-color-filter label.orange-color{background:#fa8c16}.blocks-app .stock-color-filter label.red-color{background:#f5222d}.blocks-app .stock-color-filter label.purple-color{background:#722ed1}.blocks-app .stock-color-filter label.magenta-color{background:#eb2f96}.blocks-app .stock-color-filter label.green-color{background:#52c41a}.blocks-app .stock-color-filter label.teal-color{background:#43c3c3}.blocks-app .stock-color-filter label.blue-color{background:#1677ff}.blocks-app .stock-color-filter .ant-radio-button-wrapper:not(:first-child):before{display:none}.blocks-app .serach-results{padding-top:6px}.blocks-app .serach-results .stock-search-input{width:322px;padding:0 2px}.blocks-app .serach-results .blocks-search__divider-wrapper{width:calc(100% + 48px);margin-top:12px;margin-left:-24px;margin-right:-24px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{pointer-events:none;border-top:1px solid var(--em-colorBorderSecondary);background:linear-gradient(180deg, var(--em-colorBgContainerDisabled), transparent 40%);border-bottom:none;width:100%;height:20px;min-height:20px;margin:0;position:relative;bottom:auto;left:auto;right:auto}.dark .blocks-app .image-center .stock-tab .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{background:linear-gradient(180deg, var(--em-colorBgBase), transparent 40%)}.dark .blocks-app .stock-tab .list-item{background:#2b2b2b;border:1px solid #2b2b2b}.dark .blocks-app .stock-tab .list-item.loaded{border:1px solid #434343}.blocks-app .image-center .image-center-image-preview{justify-content:center;align-items:center;display:flex}.blocks-app .image-center .ant-divider-horizontal{pointer-events:none;z-index:1;background:linear-gradient(180deg, var(--em-colorBgContainerDisabled), transparent 40%);width:calc(100% + 48px);height:20px;margin:24px -24px 0;position:absolute;bottom:-19px}.dark .blocks-app .image-center .ant-divider-horizontal{background:linear-gradient(180deg, var(--em-colorBgBase), transparent 40%)}.blocks-app .image-center .ant-divider-horizontal.ant-divider-with-text{background:0 0;width:calc(100% + 38px);margin:0 -24px 20px;position:relative;top:0}.blocks-app .image-center img{border-radius:4px;max-width:524px;max-height:352px}.blocks-app .image-center .image-size{justify-content:center;margin-top:6px;font-size:14px;line-height:22px;display:flex}.blocks-app .image-center .ant-upload.ant-upload-drag{border-radius:6px}.blocks-app .image-center .ant-modal-body .stock-search-input{margin-bottom:0}.blocks-app .image-center .ant-modal-body .serach-results .stock-search-input{margin-bottom:10px}.blocks-app .image-center .ant-modal-body .ant-form:not(.serach-results) .ant-form-item:last-child{margin-bottom:0}.blocks-app .image-center .ant-modal-body .ant-tabs{transition:all .7s cubic-bezier(.075,.82,.165,1)}.blocks-app .image-center .ant-modal-body .ant-tabs .ant-tabs-content-holder{overflow-y:clip}.blocks-app .ant-modal{transition:width .7s ease-in-out}",e=window.__emailmaker_styles__||(window.__emailmaker_styles__={sheets:{},order:[]}),r=t;if(!e.sheets[r]){var o=null;try{typeof CSSStyleSheet=="function"&&"replaceSync"in CSSStyleSheet.prototype&&(o=new CSSStyleSheet,o.replaceSync(t))}catch{o=null}if(o){if(!e.host||!e.host.isConnected||!e.host.sheet){var a=document.createElement("style");a.setAttribute("data-emailmaker","true"),document.head.appendChild(a),e.host=a}for(var l=e.host.sheet,p=0;p<o.cssRules.length;p++)try{l.insertRule(o.cssRules[p].cssText,l.cssRules.length)}catch{}(e.texts||(e.texts=[])).push(t),(e.listeners||[]).forEach(function(i){try{i(t)}catch{}})}else{var a=document.createElement("style");a.setAttribute("data-emailmaker","true"),a.appendChild(document.createTextNode(t)),document.head.appendChild(a)}e.sheets[r]=!0,e.order.push(r)}}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
4
|
+
__emailmaker__.define("static/core/155e871a.js",["require","exports","module","static/core/5dc34752.js","static/core/ee980948.js","static/core/814472f3.js","static/core/e7fa68c2.js","static/core/61378c9e.js","react","react/jsx-runtime","__delivery__/libs","vite/preload-helper"],function(ie,It,fn){const Xe=ie("./5dc34752.js"),be=ie("./ee980948.js"),s=ie("./814472f3.js"),ee=ie("./e7fa68c2.js"),kt=ie("./61378c9e.js");let e=ie("react");e=Xe.__toESM(e);let t=ie("react/jsx-runtime"),m=ie("__delivery__/libs"),xt=ie("vite/preload-helper");var _t=Xe.__toESM(s.require_prop_types()),Et=s.lazyRoute(()=>(0,xt.__vitePreload)(()=>Promise.resolve().then(()=>ie("./a8b4352d.js")),void 0,{}.url));function St(r){return s.useSelector(s.selectSecondModal)?(0,t.jsx)(e.Suspense,{fallback:null,children:(0,t.jsx)(Et,{...r})}):null}var jt=({currentImageLink:r,newLink:o,previewDisplayUrl:i,resolvedPreviewObjectUrl:l,resolvedPreviewBlob:u,resolveImageBlob:c,onSave:f,uploadImageResultIsLoading:p})=>{const g=i||l;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"image-preview",children:[p&&(0,t.jsx)("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:s.emCssVar("colorBgLayout"),zIndex:10,opacity:.7},children:(0,t.jsx)(m.ui_kit$Spin,{size:"large"})}),g&&(0,t.jsx)("img",{alt:"uploadedImage",src:g})]})}),(0,t.jsx)(St,{currentImageLink:r,prefetchedBlob:u,resolveImageBlob:c,newLink:o,onSave:f,uploadImageResultIsLoading:p})]})},_e={Pixel:"Pixel",Percent:"Percent"},et={unit:_e.Percent,value:80};function Rt(r){return typeof r=="number"?{unit:_e.Percent,value:r*100}:typeof r=="string"?/^(\d*(\.\d+)?)px$/.exec(r)?{unit:_e.Pixel,value:parseFloat(r)}:/^(\d*(\.\d+)?)%$/.exec(r)?{unit:_e.Percent,value:parseFloat(r)}:et:et}function Lt(r,o){const i=Rt(r);let l;return i.unit===_e.Pixel?l=`${i.value}px`:l=`${100-i.value}%`,o?`${l} 0px 0px 0px`:`0px 0px ${l} 0px`}function tt({next:r,hasMore:o,children:i,loader:l,scrollThreshold:u=.8,endMessage:c,style:f,height:p,scrollableTarget:g,hasChildren:w,inverse:x=!1,pullDownToRefresh:A=!1,pullDownToRefreshContent:h,releaseToRefreshContent:_,pullDownToRefreshThreshold:I=100,refreshFunction:O,onScroll:b,dataLength:E,initialScrollY:S,className:N="",role:H,tabIndex:z,id:P,...$}){const[K,V]=(0,e.useState)(!1),[Q,W]=(0,e.useState)(!1),[B,ne]=(0,e.useState)(0),k=(0,e.useRef)(null),q=(0,e.useRef)(null),T=(0,e.useRef)(null),se=(0,e.useRef)(r);se.current=r;const M=(0,e.useRef)(O);M.current=O;const J=(0,e.useRef)(I);J.current=I;const n=(0,e.useRef)(!1),C=(0,e.useRef)(!1),U=(0,e.useRef)(0),F=(0,e.useRef)(0),re=(0,e.useRef)(0),j=(0,e.useCallback)(()=>g instanceof HTMLElement?g:typeof g=="string"?document.getElementById(g):null,[g]);(0,e.useEffect)(()=>{if(typeof E>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(A&&typeof O!="function")throw new Error(`Mandatory prop "refreshFunction" missing.
|
|
5
|
+
Pull Down To Refresh functionality will not work
|
|
6
|
+
as expected. Check README.md for usage'`);if(typeof S=="number"){const D=p?k.current:j();D&&D.scrollHeight>S&&D.scrollTo(0,S)}},[]),(0,e.useEffect)(()=>{n.current=!1,V(!1)},[E]),(0,e.useEffect)(()=>{if(!o||typeof IntersectionObserver>"u")return;const D=q.current;if(!D)return;const X=p?k.current:j(),R=new IntersectionObserver(([te])=>{!te.isIntersecting||n.current||(n.current=!0,V(!0),se.current())},{root:X,rootMargin:Lt(u,x),threshold:0});return R.observe(D),()=>R.disconnect()},[o,u,x,p,j]),(0,e.useEffect)(()=>{var D;if(!b)return;const X=(D=p?k.current:j())!==null&&D!==void 0?D:typeof window<"u"?window:null;if(!X)return;const R=te=>{setTimeout(()=>b(te),0)};return X.addEventListener("scroll",R),()=>X.removeEventListener("scroll",R)},[b,p,j]),(0,e.useEffect)(()=>{var D,X;if(!A)return;const R=(D=p?k.current:j())!==null&&D!==void 0?D:typeof window<"u"?window:null;if(!R)return;if(!((X=T.current)===null||X===void 0)&&X.firstChild){const L=T.current.firstChild.getBoundingClientRect().height;re.current=L,ne(L)}const te=L=>{(R instanceof HTMLElement?R.scrollTop:document.documentElement.scrollTop)>0||(C.current=!0,L instanceof MouseEvent?U.current=L.pageY:L instanceof TouchEvent&&(U.current=L.touches[0].pageY),F.current=U.current,k.current&&(k.current.style.willChange="transform",k.current.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},le=L=>{if(!C.current||(L instanceof MouseEvent?F.current=L.pageY:L instanceof TouchEvent&&(F.current=L.touches[0].pageY),F.current<U.current))return;const Y=F.current-U.current;Y>=J.current&&W(!0),!(Y>re.current*1.5)&&k.current&&(k.current.style.overflow="visible",k.current.style.transform=`translate3d(0px, ${Y}px, 0px)`)},v=()=>{U.current=0,F.current=0,C.current=!1,W(L=>{var Y;return L&&((Y=M.current)===null||Y===void 0||Y.call(M)),!1}),requestAnimationFrame(()=>{k.current&&(k.current.style.overflow="auto",k.current.style.transform="none",k.current.style.willChange="unset")})};return R.addEventListener("touchstart",te),R.addEventListener("touchmove",le),R.addEventListener("touchend",v),R.addEventListener("mousedown",te),R.addEventListener("mousemove",le),R.addEventListener("mouseup",v),()=>{R.removeEventListener("touchstart",te),R.removeEventListener("touchmove",le),R.removeEventListener("touchend",v),R.removeEventListener("mousedown",te),R.removeEventListener("mousemove",le),R.removeEventListener("mouseup",v)}},[A,p,j]);const pe={height:p??"auto",overflow:"auto",WebkitOverflowScrolling:"touch",...f},ae=w||!!(i&&i instanceof Array&&i.length),he=A&&p?{overflow:"auto"}:{},ge=o?(0,t.jsx)("div",{ref:q,style:{height:1}}):null;return(0,t.jsx)("div",{style:he,className:"infinite-scroll-component__outerdiv",children:(0,t.jsxs)("div",{...$,role:H,tabIndex:z,id:P,className:["infinite-scroll-component",N].filter(Boolean).join(" "),ref:k,style:pe,children:[A&&(0,t.jsx)("div",{style:{position:"relative"},ref:T,children:(0,t.jsx)("div",{style:{position:"absolute",left:0,right:0,top:-1*B},children:Q?_:h})}),i,!K&&!ae&&o&&l,K&&o&&l,ge,!o&&c]})})}function Ot(r,o){if(r==null)return{};var i=Pt(r,o),l,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(u=0;u<c.length;u++)l=c[u],!(o.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(r,l)&&(i[l]=r[l])}return i}function Pt(r,o){if(r==null)return{};for(var i={},l=Object.keys(r),u,c=0;c<l.length;c++)u=l[c],!(o.indexOf(u)>=0)&&(i[u]=r[u]);return i}function Pe(){return Pe=Object.assign||function(r){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r},Pe.apply(this,arguments)}function nt(r,o){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);o&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),i.push.apply(i,l)}return i}function Ee(r){for(var o=1;o<arguments.length;o++){var i=arguments[o]!=null?arguments[o]:{};o%2?nt(Object(i),!0).forEach(function(l){Ut(r,l,i[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):nt(Object(i)).forEach(function(l){Object.defineProperty(r,l,Object.getOwnPropertyDescriptor(i,l))})}return r}function Ut(r,o,i){return o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}var Dt={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0},Te=2,Ne=class extends e.default.Component{constructor(r){super(r),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this);let o;this.props.breakpointCols&&this.props.breakpointCols.default?o=this.props.breakpointCols.default:o=parseInt(this.props.breakpointCols)||Te,this.state={columnCount:o}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){if(!window||!window.requestAnimationFrame){this.reCalculateColumnCount();return}window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})}reCalculateColumnCount(){const r=window&&window.innerWidth||1/0;let o=this.props.breakpointCols;typeof o!="object"&&(o={default:parseInt(o)||Te});let i=1/0,l=o.default||Te;for(let u in o){const c=parseInt(u);c>0&&r<=c&&c<i&&(i=c,l=o[u])}l=Math.max(1,parseInt(l)||1),this.state.columnCount!==l&&this.setState({columnCount:l})}itemsInColumns(){const r=this.state.columnCount,o=new Array(r),i=e.default.Children.toArray(this.props.children);for(let l=0;l<i.length;l++){const u=l%r;o[u]||(o[u]=[]),o[u].push(i[l])}return o}renderColumns(){const{column:r,columnAttrs:o={},columnClassName:i}=this.props,l=this.itemsInColumns(),u=`${100/l.length}%`;let c=i;c&&typeof c!="string"&&(this.logDeprecated('The property "columnClassName" requires a string'),typeof c>"u"&&(c="my-masonry-grid_column"));const f=Ee(Ee(Ee({},r),o),{},{style:Ee(Ee({},o.style),{},{width:u}),className:c});return l.map((p,g)=>e.default.createElement("div",Pe({},f,{key:g}),p))}logDeprecated(r){}render(){const r=this.props,{children:o,breakpointCols:i,columnClassName:l,columnAttrs:u,column:c,className:f}=r,p=Ot(r,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let g=f;return typeof f!="string"&&(this.logDeprecated('The property "className" requires a string'),typeof f>"u"&&(g="my-masonry-grid")),e.default.createElement("div",Pe({},p,{className:g}),this.renderColumns())}};Ne.defaultProps=Dt;function Be(r,o){return r?r.exhausted?{...r,src:null}:{...r,src:r.src||o||null}:null}function st({items:r,getItemId:o,getRequestUrl:i,createController:l}){const[u,c]=(0,e.useState)({}),f=(0,e.useRef)(new Map),p=(0,e.useCallback)(g=>{const w=o(g),x=i(g),A=`${w}:${x}`;if(f.current.has(A))return{itemId:w,requestUrl:x,cacheKey:A,controller:f.current.get(A)};const h=l(x);return f.current.set(A,h),{itemId:w,requestUrl:x,cacheKey:A,controller:h}},[l,o,i]);return(0,e.useEffect)(()=>{const g=new Set,w={},x=r.map(A=>{const{itemId:h,cacheKey:_,controller:I}=p(A);g.add(_),w[h]=I.src;const O=Be(I.handleChangeSrc?.(),I.src);return O?.changed&&O.src&&(w[h]=O.src),I.subscribeToSrcChange?.(b=>{const E=Be(b,I.src);!E?.changed||!E.src||c(S=>S[h]===E.src?S:{...S,[h]:E.src})})}).filter(Boolean);return f.current.forEach((A,h)=>{g.has(h)||f.current.delete(h)}),c(w),()=>{x.forEach(A=>A?.())}},[p,r]),{getDisplaySrc:(0,e.useCallback)(g=>{const{itemId:w,requestUrl:x,controller:A}=p(g);return u[w]||A.src||x},[u,p]),handleLoad:(0,e.useCallback)(g=>{p(g).controller.handleSuccess()},[p]),handleError:(0,e.useCallback)(g=>{const{itemId:w,controller:x}=p(g),A=Be(x.handleError(),x.src);A?.changed&&A.src&&c(h=>({...h,[w]:A.src}))},[p])}}var rt="blocks",Mt=({setCurrentImageLink:r,setModalHeight:o,setModalWidth:i,setImageStockList:l,imageStockList:u,currentReq:c,setCurrentReq:f,inputRef:p,setStockLink:g,customRequest:w})=>{const x=s.useAppConfig(),A=s.useIsStandalone(),[h,_]=(0,e.useState)(!1),[I,O]=(0,e.useState)(2),{__:b}=s.useI18n(),E=s.useNotification(),[S]=s.useLazyGetUnsplashImageQuery(),[N]=s.useLazyGetSearchImageQuery(),H=(0,e.useCallback)(n=>n instanceof Error||typeof n?.message=="string"&&n.message?n.message:typeof n?.error?.message=="string"&&n.error.message?n.error.message:b("Failed to load stock images through the configured proxy chain."),[b]),z=(0,e.useCallback)(n=>{E.error({id:"STOCK_IMAGES_SEARCH_FAILED",title:b("Failed to load stock images"),description:H(n)})},[b,H,E]),P=async()=>{h||(_(!0),N({query:c,page:I}).then(n=>{if(n?.error){z(n.error),_(!1);return}const C=n?.data?.results||[];l(U=>[...U,...C]),_(!1),O(U=>U+1)}).catch(()=>{_(!1)}))};(0,e.useEffect)(()=>{c.keywords!==""&&$()},[c.color,c.orientation]);const $=async()=>{const n=await N({query:c,page:1});if(n?.error){z(n.error),l([]);return}const C=n?.data?.results||[];C.length>0?(l(C),setTimeout(()=>{i(1060),o("84vh")},0)):l([])},[K,V]=(0,e.useState)(null),Q=(0,e.useCallback)((n,C,U)=>`${n}${n.includes("?")?"&":"?"}w=${C}&q=${U}`,[]),W=(0,e.useCallback)(n=>be.getProxiedUrl(n,{config:x,standalone:A,resourceType:"stockImages",intent:"display"}),[x,A]),B=(0,e.useCallback)(n=>n.id,[]),ne=(0,e.useCallback)(n=>Q(n.urls.raw,644,96),[Q]),{getDisplaySrc:k,handleLoad:q,handleError:T}=st({items:u,getItemId:B,getRequestUrl:ne,createController:W}),se=n=>C=>{q(n),C.target.parentNode.classList.add("loaded")},M=n=>()=>{T(n)},J=(n,C,U)=>{S(C.download_location),V(U),setTimeout(()=>V(null),2e3),g(`${n.raw}&w=1200&q=96`),r(`${n.raw}&w=1200&q=96`),w(`${n.raw}&w=1200&q=96`)};return(0,t.jsxs)("div",{className:"stock-tab",children:[(0,t.jsxs)(m.ui_kit$Form,{onValuesChange:$,className:u.length>0?"serach-results":"",children:[(0,t.jsxs)(m.ui_kit$Row,{gutter:24,children:[(0,t.jsx)(m.ui_kit$Col,{span:u.length>0?"":24,children:(0,t.jsx)(m.ui_kit$Form.Item,{className:"stock-search-input",children:(0,t.jsx)(m.ui_kit$SearchInput,{onSearch:$,allowClear:!0,size:u.length>0?"medium":"large",placeholder:b("Search image"),value:c.keywords,onChange:n=>f(C=>({...C,keywords:n.target.value})),ref:p,spellCheck:"false",enterButton:!1})})}),u.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.ui_kit$Col,{children:(0,t.jsxs)(m.ui_kit$Radio.Group,{defaultValue:"",onChange:n=>f(C=>({...C,orientation:n.target.value})),children:[(0,t.jsx)(m.ui_kit$Tooltip,{title:b("All"),placement:"top",children:(0,t.jsx)(m.ui_kit$Radio.Button,{value:"",children:(0,t.jsx)(s.EmIcons,{icon:"MixedView",component:m.icons$MixedView})})}),(0,t.jsx)(m.ui_kit$Tooltip,{title:b("Landscape"),placement:"top",children:(0,t.jsx)(m.ui_kit$Radio.Button,{value:"landscape",children:(0,t.jsx)(s.EmIcons,{icon:"LandscapeView",component:m.icons$LandscapeView})})}),(0,t.jsx)(m.ui_kit$Tooltip,{title:b("Portrait"),placement:"top",children:(0,t.jsx)(m.ui_kit$Radio.Button,{value:"portrait",children:(0,t.jsx)(s.EmIcons,{icon:"PortraitView",component:m.icons$PortraitView})})}),(0,t.jsx)(m.ui_kit$Tooltip,{title:b("Squarish"),placement:"top",children:(0,t.jsx)(m.ui_kit$Radio.Button,{value:"squarish",children:(0,t.jsx)(s.EmIcons,{icon:"SquareView",component:m.icons$SquareView})})})]})}),(0,t.jsx)(m.ui_kit$Col,{children:(0,t.jsx)(m.ui_kit$RadioColorFilter,{defaultValue:"",onChange:n=>f(C=>({...C,color:n.target.value})),options:[{value:"",colorClass:"all-colors",label:b("All")},{value:"black",colorClass:"black-color",label:b("Black")},{value:"black_and_white",colorClass:"bw-color",label:b("Black and White")},{value:"white",colorClass:"white-color",label:b("White")},{value:"orange",colorClass:"orange-color",label:b("Orange")},{value:"red",colorClass:"red-color",label:b("Red")},{value:"purple",colorClass:"purple-color",label:b("Purple")},{value:"magenta",colorClass:"magenta-color",label:b("Magenta")},{value:"green",colorClass:"green-color",label:b("Green")},{value:"teal",colorClass:"teal-color",label:b("Teal")},{value:"blue",colorClass:"blue-color",label:b("Blue")}],tooltipPlacement:"top"})})]})]}),u.length>0&&(0,t.jsx)("div",{className:"blocks-search__divider-wrapper",children:(0,t.jsx)("div",{className:"ant-divider ant-divider-horizontal",role:"separator"})})]}),(0,t.jsx)("div",{className:"serach-output-wrapper",style:{marginRight:-10},children:u.length>0&&(0,t.jsx)("div",{id:"scrollableDiv",style:{width:"100%",height:"calc(84vh - 148px)",overflow:"auto",paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:"0",boxSizing:"unset"},children:(0,t.jsx)(tt,{dataLength:u&&u.length,next:P,hasMore:u,endMessage:(0,t.jsxs)(m.ui_kit$Divider,{plain:!0,children:[b("That`s all we could find.")," 🤐"]}),scrollableTarget:"scrollableDiv",style:{overflow:"visible"},loader:null,children:(0,t.jsx)(Ne,{breakpointCols:{default:3},className:"my-masonry-grid",columnClassName:"my-masonry-grid_column",children:u.map(n=>(0,t.jsxs)("div",{className:"list-item",onClick:()=>J(n.urls,n.links,n.id),children:[(0,t.jsx)("img",{className:K===n.id?"loaded-image":"",width:"322px",src:k(n),alt:n.description,onLoad:se(n),onError:M(n)}),(0,t.jsxs)("p",{className:"creator-info",onClick:C=>C.stopPropagation(),children:["Photo by"," ",(0,t.jsx)("a",{target:"_blank",href:`${n.user.links.html}?utm_source=${rt}&utm_medium=referral`,rel:"noreferrer",children:n.user.name})," ","on"," ",(0,t.jsx)("a",{target:"_blank",href:`https://unsplash.com/?utm_source=${rt}&utm_medium=referral`,rel:"noreferrer",children:"Unsplash"})]}),K===n.id&&(0,t.jsx)(m.ui_kit$Spin,{className:"ant-spin",size:"small"})]},n.id))})})})})]})};function at(r){return/^(https?:)?\/\//i.test(r.trim())}function Gt(r){const o=r.trim();return at(o)||/^data:/i.test(o)?o:`data:image/jpeg;base64, ${r}`}var Tt=({images:r,transitionDuration:o=1e3})=>{const[i,l]=(0,e.useState)([]);return(0,e.useEffect)(()=>{if(r.length>0){const u=r[r.length-1];l(c=>[...c,{src:u,opacity:0}]),setTimeout(()=>{l(c=>c.map((f,p)=>p===c.length-1?{...f,opacity:1}:f))},1e3)}},[r]),(0,t.jsx)("div",{className:"slideshow-container",children:i.map((u,c)=>(0,t.jsx)("img",{src:Gt(u.src),alt:`Slide ${c+1}`,className:"slideshow-image",style:{opacity:u.opacity,transition:`opacity ${o}ms linear`}},c))})};function Nt({setModalHeight:r,customRequest:o,aiTabRef:i,isImageUploaded:l,setIsImageUploaded:u,aiImageRequest:c,imageAiList:f,setImageAiList:p,isLoadingAi:g,setIsLoadingAi:w,onPluginAiImageLimitExceeded:x,onImageGenerateLimitExceeded:A}){const{__:h}=s.useI18n(),_=s.useAppConfig(),I=s.useNotification(),O=s.usePushToDataLayer(),{blockId:b}=s.useRouteParams(),E=s.useEditorProjectId(),S=s.useRouteEmailId(),N=s.useWpEntityId(),[H]=s.useLazySendAiImageRequestQuery(),[z,{data:P=[]}]=s.useLazyGetAiImageSSEQuery(),$=s.useProjectPlanLimitPreflight(),K=_?.sendAIImageRequest||H,V=_?.trigger||z,Q=_?.handleLimitUsageEmitter||s.useEventEmitter(be.events.ON_LIMIT_ID),[W,B]=(0,e.useState)(0),[ne,k]=(0,e.useState)(null),[q,T]=(0,e.useState)(!1),[se,M]=(0,e.useState)(h("Evaluating the task")),[J,n]=(0,e.useState)(!1),C=S?s.isEmailsV2Enabled()?N:S:b,{limits:U}=_?.limits?_:{limits:{ai_img_limit:0}},{ai_img_limit:F}=U,re=!!(_.limits&&_.counters)&&!0,j=s.useEventEmitter(be.events.AI_IMAGE_REQUEST_ID).hasListeners(),pe=ee.shouldCountAiUsage({limitsInPlugin:re,hostedAiActive:j}),ae=!j&&F>0&&W>=F,he=(0,e.useCallback)(()=>{Q.fire({name:"AiImgCount",count:W+1})},[Q,W]),ge=(0,e.useMemo)(()=>!ae&&(!pe||F===0||W<F),[ae,pe,W,F]),D=(0,e.useCallback)(async()=>{M(h("Evaluating the task")),c!==""&&!g&&(w(!0),n(!0),p([]),O({event:"submit_form",action:"ai_image_generation",entity_id:S,project_id:E}),K({body:{project_id:E,request:"create-image",connection:"midjourney",message:c}}).then(({data:v,error:L})=>{if(L)throw L;if(v.data.status===401)throw new Error(s.ERROR);if(v?.data?._eventResult){p(v.data.task.images),w(!1),n(!1),M(h("Evaluating the task"));return}v?.data.status===200?(v?.data.task.id&&(M(v.data.task.message),k(v.data.task.id)),v.message&&I.success({id:"AI_IMAGE_SEND_SUCCESS",title:v.message,placement:"bottomRight",data:c}),V({task_id:v?.data.task.id,entity_id:C})):(w(!1),n(!1),I.error({id:"AI_IMAGE_SEND_ERROR",title:v?.message||h("Something went wrong, please try again"),placement:"bottomRight",data:c,innerException:v}))}).catch(v=>{w(!1),n(!1),(v?.error||v?.data)&&I.fromError("AI_IMAGE_SEND_ERROR",c,v.error||v)}))},[c,g,w,n,p,O,S,E,K,I,V,C,h]),X=(0,e.useCallback)(async()=>{ge?(pe&&(B(v=>v+1),he()),D()):re&&(x?x():I.error({title:h("The usage limit has been exceeded"),description:h(`The maximum number of requests for the current subscription period has been reached.
|
|
7
|
+
Select the appropriate plan to fulfil more requests`),placement:"bottomRight"}))},[ge,re,j,pe,$,A,B,he,D,I,h,x]);(0,e.useEffect)(()=>{re&&B(_?.counters?.ai_img_counter||0)},[_,re]);const R=s.useEventEmitter(be.events.AI_IMAGE_PROGRESS_ID);(0,e.useEffect)(()=>{const v=R.event(({progress:L,status:Y})=>{M(Y||`${Math.round(L)}%`)});return()=>v.dispose()},[R]);const te=(0,e.useCallback)(async v=>{if(!l){u(!0);try{const L=at(v)?await(await fetch(v)).blob():kt.base64ToBlob(v);o({file:new File([L],"image.jpeg",{type:L.type||"image/jpeg"})})}catch{u(!1)}}},[l,u,o]),le=(0,e.useCallback)(v=>{v.status!=="error"&&v.status!=="Canceled"?v.images?(M(v.status),v.progress===100&&(p(v.images),M(h("Evaluating the task")),k(null),n(!1))):(p([v.data]),w(!1)):(w(!1),n(!1),I.error({id:"AI_IMAGE_GET_ERROR",title:h("Something went wrong, please try again"),placement:"bottomRight",data:ne}))},[p,M,h,w,r,ne,I,n]);return(0,e.useEffect)(()=>{P.length>1&&le(P[P.length-1])},[P,le]),(0,e.useEffect)(()=>{(g||f.length>0)&&setTimeout(()=>{let v=550;i.current&&(v=i.current.offsetHeight+68),r(v)},0)},[i,P,f.length,g,r]),{aiImageCounter:W,setAiImageCounter:B,currentAiImgLimits:F,isFieldsDisabled:ae,canGenerateImage:ge,aiImageRequest:c,imageAiList:f,setImageAiList:p,isLoadingAi:g,setIsLoadingAi:w,loadingDuringGeneration:J,setLoadingDuringGeneration:n,requestStatus:se,setRequestStatus:M,handleGenerate:X,handleLimitAiImgCount:he,convertBase64ToFile:te,isShiftPressed:q,setIsShiftPressed:T,currentReqId:ne,setCurrentReqId:k,limitsInPlugin:re}}var Bt=({setModalHeight:r,customRequest:o,aiTabRef:i,inputAiRef:l,isImageUploaded:u,setIsImageUploaded:c,aiImageRequest:f,setAiImageRequest:p,imageAiList:g,setImageAiList:w,isLoadingAi:x,setIsLoadingAi:A})=>{const h=s.useAppNavigate();s.useDispatch();const _=s.useOpenPlanCatalog(),{__:I,_n:O}=s.useI18n(),b=s.useAppConfig(),[E,S]=(0,e.useState)(!1),[N,H]=(0,e.useState)(null),{aiImageCounter:z,currentAiImgLimits:P,loadingDuringGeneration:$,requestStatus:K,handleGenerate:V,convertBase64ToFile:Q,isShiftPressed:W,setIsShiftPressed:B,limitsInPlugin:ne}=Nt({setModalHeight:r,customRequest:o,aiTabRef:i,isImageUploaded:u,setIsImageUploaded:c,aiImageRequest:f,imageAiList:g,setImageAiList:w,isLoadingAi:x,setIsLoadingAi:A,onPluginAiImageLimitExceeded:()=>S(!0),onImageGenerateLimitExceeded:H}),k=E&&P>0?s.getAiTariffUpgradeStep(P):null,q=k?s.getLimitUpgradePresetDefinition(k.presetId):null,T=N?s.getLimitUpgradePresetDefinition(N.presetId):null,[se,M]=(0,e.useState)(!1),J=(0,e.useCallback)(()=>M(!0),[]),n=(0,e.useCallback)(()=>M(!1),[]),C=(0,e.useCallback)(j=>p(j.target.value),[p]),U=(0,e.useCallback)(j=>{j.key==="Shift"?B(!0):j.key==="Enter"&&!W&&(j.preventDefault(),V())},[W,V,B]),F=(0,e.useCallback)(j=>{j.key==="Shift"&&B(!1)},[B]),re=g[g.length-1];return(0,t.jsxs)("div",{className:"image-ai",children:[q&&k?(0,t.jsx)(ee.LimitUpgradeModal$1,{open:!0,onClose:()=>S(!1),title:I(q.titleKey),subtitle:I(q.subtitleKey),usageResource:q.usageResource,previousDisplay:s.presetLimitDisplay(k.previousLimit),nextDisplay:s.presetLimitDisplay(k.nextLimit),onChangePlan:()=>{S(!1),_()}}):null,T&&N?(0,t.jsx)(ee.LimitUpgradeModal$1,{open:!0,onClose:()=>H(null),title:I(T.titleKey),subtitle:I(T.subtitleKey),usageResource:T.usageResource,previousDisplay:s.presetLimitDisplay(N.previousLimit),nextDisplay:s.presetLimitDisplay(N.nextLimit),onChangePlan:()=>{H(null),_()}}):null,ne&&(0,t.jsx)(m.ui_kit$LimitsCounter,{text:`${z} ${I("of")} ${P>0?P:"∞"} images ${O("was used","were used",z)}`,exceeded:P>0&&z>=P,style:{marginTop:-25},extra:(0,t.jsx)("span",{style:{textDecoration:"underline",cursor:"pointer"},onClick:()=>h(b.billingPageUrl||s.APP_ROUTES.billing),children:I("Need more?")})}),(0,t.jsx)(m.ui_kit$Row,{gutter:24,className:"image-ai__row",children:(0,t.jsx)(m.ui_kit$Col,{span:24,children:(0,t.jsx)(m.ui_kit$Form.Item,{style:{margin:0},children:(0,t.jsxs)("span",{className:`ant-input-affix-wrapper ant-input-affix-wrapper-lg image-ai__input-affix-wrapper${se?" ant-input-affix-wrapper-focused":""}`,children:[(0,t.jsx)(m.ui_kit$TextArea,{ref:l,onKeyDown:U,onKeyUp:F,onFocus:J,onBlur:n,autoSize:!0,allowClear:!0,className:"text-area-input-hybrid image-ai__textarea",placeholder:I("Generate image"),value:f,onChange:C,spellCheck:"false"}),(0,t.jsx)("span",{className:"ant-input-suffix image-ai__input-suffix",children:x||$?(0,t.jsx)(s.EmIcons,{icon:"LoadingOutlined",component:m.icons$LoadingOutlined,className:"input-icon image-ai__input-icon",spin:!0}):(0,t.jsx)(s.EmIcons,{icon:"AI",component:m.icons$AI,className:"input-icon image-ai__input-icon",onClick:V})})]})})})}),(x||g.length>0)&&(0,t.jsxs)("div",{className:"image-ai__preview",children:[x&&g.length===0&&(0,t.jsx)("div",{className:"image-ai__loading",children:(0,t.jsxs)("div",{className:"spin",children:[(0,t.jsx)(s.EmIcons,{icon:"LoadingOutlined",component:m.icons$LoadingOutlined,style:{fontSize:48},spin:!0}),(0,t.jsx)("p",{className:"status",children:K})]})}),g.length>0&&(0,t.jsxs)("div",{className:"image-ai__image-item",children:[(0,t.jsx)(Tt,{images:g}),(0,t.jsx)("div",{className:"buttons",children:(0,t.jsx)(m.ui_kit$Button,{onClick:()=>Q(re),icon:(0,t.jsx)(s.EmIcons,{icon:"CheckOutlined",component:m.icons$CheckOutlined}),children:I("Use this one")})})]})]})]})},mn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII=",Ft=({setNewLink:r,setCurrentImageLink:o,setModalHeight:i,setModalWidth:l,setImageGifList:u,imageGifList:c,currentReqGif:f,setCurrentReqGif:p,inputRef:g,setStockLink:w,customRequest:x})=>{const{__:A}=s.useI18n(),h=s.useAppConfig(),_=s.useIsStandalone(),I=s.useNotification(),[O,b]=(0,e.useState)(null),[E,S]=(0,e.useState)(!1),[N,H]=(0,e.useState)(25),[z]=s.useLazyGetSearchGifQuery(),P=(0,e.useCallback)(n=>n instanceof Error||typeof n?.message=="string"&&n.message?n.message:typeof n?.error?.message=="string"&&n.error.message?n.error.message:A("Failed to load GIFs through the configured proxy chain."),[A]),$=(0,e.useCallback)(n=>{I.error({id:"STOCK_GIFS_SEARCH_FAILED",title:A("Failed to load GIFs"),description:P(n)})},[A,P,I]),K=async()=>{E||(S(!0),z({query:f,page:N}).then(n=>{if(n?.error){$(n.error),S(!1);return}u(C=>[...C,...n.data.data]),S(!1),H(C=>C+25)}).catch(()=>{S(!1)}))},V=async()=>{const n=await z({query:f,page:0});if(n?.error){$(n.error),u([]);return}n?.data?.data?.length>0&&(u(n.data.data),setTimeout(()=>{i("84vh"),l(1060)},0))},Q=(n,C)=>{b(C),setTimeout(()=>{b(null)},2e3),w(`${n}`),o(`${n}`),x(`${n}`)},W={default:3},B=(0,e.useCallback)(n=>be.getProxiedUrl(n,{config:h,standalone:_,resourceType:"generic",intent:"display"}),[h,_]),ne=(0,e.useCallback)(n=>n.id,[]),k=(0,e.useCallback)(n=>n.images.downsized.url,[]),{getDisplaySrc:q,handleLoad:T,handleError:se}=st({items:c,getItemId:ne,getRequestUrl:k,createController:B}),M=n=>C=>{T(n),C.target.parentNode.classList.add("loaded")},J=n=>()=>{se(n)};return(0,t.jsxs)("div",{className:"stock-tab",children:[(0,t.jsxs)(m.ui_kit$Form,{onValuesChange:V,className:c.length>0?"serach-results":"",children:[(0,t.jsx)(m.ui_kit$Row,{gutter:24,children:(0,t.jsx)(m.ui_kit$Col,{span:c.length>0?"":24,children:(0,t.jsx)(m.ui_kit$Form.Item,{className:"stock-search-input",children:(0,t.jsx)(m.ui_kit$SearchInput,{onSearch:V,allowClear:!0,size:c.length>0?"medium":"large",placeholder:A("Search GIFs"),value:f.keywords,onChange:n=>p(C=>({...C,keywords:n.target.value})),ref:g,spellCheck:"false",enterButton:!1})})})}),c.length>0&&(0,t.jsx)("div",{className:"blocks-search__divider-wrapper",children:(0,t.jsx)("div",{className:"ant-divider ant-divider-horizontal",role:"separator"})})]}),(0,t.jsx)("div",{className:"serach-output-wrapper",style:{marginRight:-10},children:c.length>0&&(0,t.jsx)("div",{id:"scrollableDiv",style:{width:"100%",height:"calc(84vh - 148px)",overflow:"auto",paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:"0",boxSizing:"unset"},children:(0,t.jsx)(tt,{dataLength:c&&c.length,next:K,hasMore:c,endMessage:(0,t.jsxs)(m.ui_kit$Divider,{plain:!0,children:[A("That`s all we could find.")," 🤐"]}),scrollableTarget:"scrollableDiv",style:{overflow:"visible"},loader:(0,t.jsx)(m.ui_kit$Spin,{size:"small"}),children:(0,t.jsx)(Ne,{breakpointCols:W,className:"my-masonry-grid",columnClassName:"my-masonry-grid_column",children:c.map((n,C)=>(0,t.jsxs)("div",{className:"list-item",onClick:()=>Q(n.images.downsized.url,n.id),children:[(0,t.jsx)("img",{className:O===n.id?"loaded-image":"",width:"322px",src:q(n),alt:n.title,onLoad:M(n),onError:J(n)}),(0,t.jsx)("a",{rel:"noreferrer",href:"https://giphy.com/",target:"_blank",onClick:U=>U.stopPropagation(),children:(0,t.jsx)("div",{className:"overlay-image",style:{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII=)"}})}),O===n.id&&(0,t.jsx)(m.ui_kit$Spin,{className:"ant-spin",size:"small"})]},n.id+C))})})})})]})},ot="IMG",it="BACKGROUND",zt="GALLERY",we="EDITOR",de="UPLOAD",Fe="STOCK",ze="GIF",$e="AI",$t={mode:"select"},Kt={mode:"save"},{Dragger:Wt}=m.ui_kit$Upload,Vt=(r,o="image")=>s.decodeFileNameFromUrl(r)??o,Se=ee.normalizeImageFormatForDisplay,Ht=(r,o)=>{const i=Se(o);return!i||r.includes(".")?r:`${r}.${i}`},Qt=(r,o)=>new File([r],Ht(Vt(o),r.type),{type:r.type||"application/octet-stream"}),lt=({dataProvider:r,usesBuiltInStorage:o})=>{const i=s.useAppConfig(),l=s.useIntegratorConfigValue("compressMaxSize"),u=s.useIsStandalone(),c=s.shouldInsertUploadLinkAsIs(i),{__:f}=s.useI18n(),p=s.useDispatch(),g=s.useEditorProjectId(),[w]=s.useLazyGetImageInfoQuery(),{modal:x}=m.ui_kit$App.useApp(),A=s.useNotification(),h=s.useSelector(s.selectActiveModal$1),{request:_,resolveImagePicker:I}=s.useImagePicker(),[O,b]=(0,e.useState)(""),[E,S]=(0,e.useState)(""),[N,H]=(0,e.useState)(""),[z,P]=(0,e.useState)(""),[$,K]=(0,e.useState)(de),[V,Q]=(0,e.useState)({width:"",height:"",size:"",format:""}),[W,B]=(0,e.useState)("success"),[ne,k]=(0,e.useState)(!1),q=e.default.useRef(null),T=e.default.useRef(null),se=e.default.useRef(null),M=e.default.useRef(null),J=e.default.useRef(null),n=e.default.useRef(null),C=e.default.useRef(null),U=e.default.useRef(null),F=e.default.useRef(null),[re,j]=(0,e.useState)("auto"),[pe,ae]=(0,e.useState)(572),[he,ge]=(0,e.useState)(!1),[D,X]=(0,e.useState)({keywords:"",color:"",orientation:""}),[R,te]=(0,e.useState)({keywords:""}),[le,v]=(0,e.useState)([]),[L,Y]=(0,e.useState)([]),[ct,qt]=(0,e.useState)([]),[ut,dt]=(0,e.useState)(!1),[ft,Ke]=(0,e.useState)(""),[Yt,je]=(0,e.useState)(!1),[Zt,Ue]=(0,e.useState)(0),mt=s.useProjectData(),pt=mt?.id!==void 0?String(mt.id):g||"",ht=s.useEventEmitter(be.events.UPLOAD_EVENT_ID),fe=ee.useImageBlobResolver(),Re=e.default.useRef(""),ye=e.default.useRef(0),Ie=e.default.useRef(""),[Jt,gt]=(0,e.useState)(""),[Xt,vt]=(0,e.useState)(null),[en,We]=(0,e.useState)(""),De=(0,e.useCallback)(a=>{if(!(a instanceof Blob))return;Ie.current&&URL.revokeObjectURL(Ie.current);const d=URL.createObjectURL(a);Ie.current=d,gt(d),vt(a)},[]),me=(0,e.useCallback)(()=>{Ie.current&&(URL.revokeObjectURL(Ie.current),Ie.current=""),gt(""),vt(null)},[]),oe=(0,e.useCallback)(()=>{We("")},[]),Ve=s.usePlanFeatureGate("element_ai_image"),He=s.usePlanFeatureGate("stock_photo"),Qe=s.usePlanFeatureGate("stock_gif"),Ct=s.usePlanFeatureGate("image_editor"),Me=(0,e.useRef)(!1),qe=a=>{Me.current=!0,S(a)},tn=a=>{Me.current=!1,S(a.target.value)},Le=(0,e.useCallback)((a,d,y=f("The image could not be uploaded."))=>{const G=d instanceof Error?d.message:y;A.error({id:"IMAGE_UPLOAD_ERROR",data:a,title:f("Upload failed"),description:G})},[f,A]),nn=(0,e.useCallback)(a=>s.fireUploadImageEvent(ht,{file:a,project:pt}),[pt,ht]),Ae=ee.useImageBlobFetch(),sn=(0,e.useCallback)(a=>fe.resolve(ee.canonicalImageUrlKey(a),void 0,Ae),[Ae,fe]),Ye=async a=>{if(a)try{const d=await an(a);d&&Je(d)?await ke({file:d}):d||Le({url:a},null,f("Failed to download image from URL."))}catch(d){Le({url:a},d,f("Failed to process image URL."))}},yt=(a,d)=>{const y=s.resolveUploadLinkAction(c,d,Me.current);y==="insertAsIs"?(Me.current=!1,Ge({url:a})):y==="upload"&&Ye(a)},Ze=e.default.useRef(yt);Ze.current=yt;const rn=(0,e.useCallback)(()=>{const a=E.trim();a.toLowerCase().startsWith("http")&&Ze.current(a,"enter")},[E]);e.default.useEffect(()=>{if($!==de||!z)return;const a=E.trim();if(!a||!a.toLowerCase().startsWith("http"))return;const d=setTimeout(()=>{Ze.current(a,"timer")},1e3);return()=>{clearTimeout(d)}},[E,$,z]);const an=async a=>{try{const d=ee.canonicalImageUrlKey(a),y=await fe.resolve(d,void 0,Ae);return Qt(y,d)}catch{}};document.onpaste=function(a){const d=a.clipboardData?.items?.[0];if($===de&&z){if(d?.type?.indexOf("image")===0&&i.imageCenterLocalUploadEnabled!==!1){const G=d.getAsFile();Je(G);const Z={file:G};S(""),ke(Z);return}const y=a.clipboardData?.getData("text/plain");if(y&&y.trim().toLowerCase().startsWith("http")){a.preventDefault(),a.stopPropagation(),qe(y.trim());return}d?.type?.indexOf("text")===0&&d.getAsString(G=>{if(G.trim().toLowerCase().startsWith("http"))qe(G.trim());else if(G.toString().slice(1,5)==="meta"){const Z=G.toString().split('"')[1];Z&&qe(Z)}})}},(0,e.useEffect)(()=>{const a=d=>{let y=null;_?.kind==="background"?(y=it,P(it)):_?.kind==="img"&&(P(ot),y=ot),_?.currentUrl&&y&&(b(_.currentUrl),K(d))};h===s.MODALS.UPLOAD_IMAGE_MODAL||h===s.MODALS.UPLOAD_BACKGROUND_MODAL?a(we):h===s.MODALS.UPLOAD_IMAGE_MODAL_AI||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_AI?(Ve.isLocked?(je(!0),Ue(s.FEATURE_UPSELL_SLIDE.element_ai_image)):a($e),setTimeout(()=>F.current?.focus({cursor:"start"}),100)):h===s.MODALS.UPLOAD_IMAGE_MODAL_UPLOAD||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_UPLOAD?(a(de),setTimeout(()=>n.current?.focus({cursor:"start"}),100)):h===s.MODALS.UPLOAD_IMAGE_MODAL_STOCK||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_STOCK?(He.isLocked?(je(!0),Ue(s.FEATURE_UPSELL_SLIDE.stock_photo)):a(Fe),setTimeout(()=>U.current?.focus({cursor:"start"}),100)):h===s.MODALS.UPLOAD_IMAGE_MODAL_GIF||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_GIF?(Qe.isLocked?(je(!0),Ue(s.FEATURE_UPSELL_SLIDE.stock_gif)):a(ze),setTimeout(()=>C.current?.focus({cursor:"start"}),100)):h===s.MODALS.UPLOAD_IMAGE_MODAL_EDIT||h===s.MODALS.UPLOAD_BACKGROUND_MODAL_EDIT?(Ct.isLocked?(je(!0),Ue(s.FEATURE_UPSELL_SLIDE.image_editor)):a(we),p(s.openSecondModal(s.MODALS.IMAGE_EDITOR_MODAL))):P("")},[h,p,Ve.isLocked,He.isLocked,Qe.isLocked,Ct.isLocked,_]);const Ge=(0,e.useCallback)(({url:a=O||"",meta:d=$t})=>{b(a),I({url:a,meta:d}),setTimeout(()=>{oe(),me(),X({keywords:"",color:"",orientation:""}),te({keywords:""}),Y([]),v([]),P(""),Ke(""),dt(!1),H(""),S(""),K(de)},200),p(s.closeModal$1()),p(s.closeSecondModal())},[O,oe,p,I,me]),At=(0,e.useCallback)((a,d)=>(j("auto"),k(!1),Ge({url:a,meta:Kt}),A.success({id:"IMAGE_UPLOAD_SUCCESS",data:d,title:f("The image was successfully uploaded.")}),a),[f,Ge,A]);(0,e.useEffect)(()=>{const a=c?"":E,d=a||N,y=ee.canonicalImageUrlKey(d);if(!d||!y){B(""),Re.current&&fe.abandonKey(Re.current),Re.current="",oe(),me();return}const G=Re.current;G&&G!==y&&(fe.abandonKey(G),oe(),me()),Re.current=y;const Z=new AbortController,ce=a?800:0,ve=++ye.current,un=setTimeout(async()=>{try{const xe=async()=>{const ue=await fe.resolve(y,Z.signal,Ae);if(ve!==ye.current)return;const{width:Ce,height:dn}=await ee.getImageDimensionsFromBlob(ue);ve===ye.current&&(Q({width:Ce,height:dn,size:(ue.size/1024).toFixed(2),format:Se(ue.type)}),oe(),De(ue))};if(u)await xe();else{const ue=await ee.resolveDataProviderPreview(r,y);if(ue?.previewUrl&&ve===ye.current){We(ue.previewUrl),me();try{const{data:Ce}=await w(y);if(ve!==ye.current)return;Ce?Q({width:Ce?.width,height:Ce?.height,size:Ce?.fileSize!=null?(Ce.fileSize/1024).toFixed(2):"",format:Se(Ce?.format)}):await xe()}catch{await xe()}}else await xe()}if(ve!==ye.current)return;B("success"),b(d),ae(572),setTimeout(()=>{let ue=0;T.current&&(ue=T.current.offsetHeight+62),j(ue)},0)}catch(xe){if(xe?.name==="AbortError"||Z.signal.aborted||ve!==ye.current)return;oe(),me(),B("error")}},ce);return()=>{clearTimeout(un),Z.abort()}},[E,N,c,u,oe,Ae,w,fe,me,r,De]),(0,e.useEffect)(()=>{if(!O||E||N||!h)return;const a=ee.canonicalImageUrlKey(O),d=new AbortController;let y=!1;const G=async()=>{const Z=await fe.resolve(a,d.signal,Ae);if(y)return;const{width:ce,height:ve}=await ee.getImageDimensionsFromBlob(Z);y||(oe(),De(Z),Q({width:ce,height:ve,size:(Z.size/1024).toFixed(2),format:Se(Z.type)}))};return(async()=>{try{if(!u){const Z=await ee.resolveDataProviderPreview(r,a);if(Z?.previewUrl&&!y){We(Z.previewUrl),me();try{const{data:ce}=await w(a);if(y)return;ce?Q({width:ce?.width,height:ce?.height,size:ce?.fileSize!=null?(ce.fileSize/1024).toFixed(2):"",format:Se(ce?.format)}):await G();return}catch{await G()}}}await G()}catch{y||oe()}})(),()=>{y=!0,d.abort()}},[u,h,oe,O,Ae,w,fe,r,E,N,De]);const on=()=>{p(s.closeModal$1()),setTimeout(()=>{oe(),me(),b(""),S(""),Y([]),Y([]),X({keywords:"",color:"",orientation:""}),te({keywords:""}),j("auto"),!ut&&Ke(""),ae(572),K(de)},200)},ln=a=>{a===zt?x.success({mask:{closable:!0},centered:!0,title:f("Coming soon"),content:f("The feature is under development."),okText:f("Ok. I'll be waiting"),onOk:()=>{}}):a===we&&O===""?x.warning({mask:{closable:!0},centered:!0,title:f(""),content:f("To preview and edit the uploaded image"),okText:f("Upload Image"),onOk:()=>{K(de)}}):(setTimeout(()=>{let d=0,y=0;a===de&&q.current?(D.keywords===""&&n.current?.focus({cursor:"start"}),d=300,y=572):a===we&&T.current?(d=T.current.offsetHeight+62,y=572):a===Fe&&se.current?(D.keywords===""&&U.current?.focus({cursor:"start"}),d=130,y=572,L.length>0&&(y=1060,d="84vh")):a===ze&&M.current?(D.keywords===""&&C.current?.focus({cursor:"start"}),d=130,y=572,le.length>0&&(y=1060,d="84vh")):a===$e&&J.current&&(ft===""&&ct.length===0?(F.current?.focus({cursor:"start"}),d=130):d=J.current.offsetHeight+82,y=572),j(d),ae(y)},0),K(a))};(0,e.useEffect)(()=>{D.keywords===""&&(n?.current?.focus({cursor:"start"}),Y([]),setTimeout(()=>{j("auto"),ae(572)},0))},[D,Y,j,ae]);const Je=a=>{const d=a.type==="image/jpeg"||a.type==="image/png"||a.type==="image/jpg"||a.type==="image/webp"||a.type==="image/gif"||a.type==="image/svg+xml";return d||A.error({id:"IMAGE_UPLOAD_WRONG_FORMAT",data:a,title:"Upload",description:"You can only upload JPG/JPEG/PNG/WEBP/GIF/SVG file!"}),d},bt=(0,e.useRef)(null),ke=async({file:a})=>{try{ge(!0);const d=a===bt.current?await s.prepareImageForEditorResult(a,i,void 0,{compressBySize:l!==void 0}):await s.prepareImageForEditorUpload(a,i),y=await nn(d);if(y.url)return At(y.url,d),y.url;if(!s.shouldFallbackToBuiltInUpload(y,{isStandalone:u,targetIsOurBackend:!!o})){Le(d,s.toUploadImageError(y));return}const G=await s.uploadFileViaDataProvider(d,r);if(G?.url)return At(G.url,d),G.url;Le(d,null);return}catch(d){Le(a,d);return}finally{ge(!1)}},wt=(0,e.useRef)(ke);wt.current=ke;const cn=(0,e.useCallback)(a=>(bt.current=a,wt.current({file:a})),[]);let Oe=[{label:f("Upload"),key:de,children:(0,t.jsxs)("div",{ref:q,style:{paddingBottom:24},children:[i.imageCenterLocalUploadEnabled!==!1&&(0,t.jsxs)(Wt,{showUploadList:!1,name:"Image",beforeUpload:Je,customRequest:ke,style:{marginBottom:10},multiple:!1,accept:"image/png, image/jpeg, image/jpg, image/webp, image/gif, image/svg+xml",children:[(0,t.jsx)("p",{className:"ant-upload-drag-icon",children:(0,t.jsx)(s.EmIcons,{icon:"InboxOutlined",component:m.icons$InboxOutlined})}),(0,t.jsx)("p",{className:"ant-upload-text",children:f("Click to select, paste from the clipboard, or drag and drop")}),(0,t.jsx)("p",{className:"ant-upload-hint",children:f("Accepted formats: PNG, JPG, WEBP, SVG or GIF.")})]}),(0,t.jsx)(m.ui_kit$Form,{style:{padding:"0 2px 0 2px"},children:(0,t.jsx)(m.ui_kit$Form.Item,{validateStatus:W,children:(0,t.jsx)(m.ui_kit$Input,{ref:n,allowClear:!0,size:"large",placeholder:f("Paste image URL here"),value:E,onChange:tn,onPressEnter:rn,spellCheck:"false"})})})]})}];return i.imageCenterStockEnabled&&!He.isLocked&&Oe.push({label:f("Stock"),key:Fe,children:(0,t.jsx)("div",{ref:se,style:{paddingBottom:24},children:(0,t.jsx)(Mt,{currentReq:D,setCurrentReq:X,imageStockList:L,setImageStockList:Y,setModalWidth:ae,setModalHeight:j,setStockLink:H,setCurrentImageLink:b,inputRef:U,customRequest:Ye})})}),i.imageCenterGifEnabled&&!Qe.isLocked&&Oe.push({label:f("GIF"),key:ze,children:(0,t.jsx)("div",{ref:M,style:{paddingBottom:24},children:(0,t.jsx)(Ft,{currentReqGif:R,setCurrentReqGif:te,imageGifList:le,setImageGifList:v,setModalWidth:ae,setModalHeight:j,setStockLink:H,setCurrentImageLink:b,inputRef:C,customRequest:Ye})})}),i.elementAIimageEnabled&&!Ve.isLocked&&Oe.push({label:f("AI"),key:$e,children:(0,t.jsx)("div",{ref:J,style:{paddingBottom:24},children:(0,t.jsx)(Bt,{setModalHeight:j,customRequest:ke,aiImageRequest:ft,setAiImageRequest:Ke,imageAiList:ct,setImageAiList:qt,isLoadingAi:ut,setIsLoadingAi:dt,aiTabRef:J,inputAiRef:F,isImageUploaded:ne,setIsImageUploaded:k})})}),i.imageCenterEditorEnabled&&Oe.push({label:"",key:we,children:(0,t.jsx)("div",{ref:T,children:(0,t.jsx)(jt,{currentImageLink:O,newLink:E,previewDisplayUrl:en,resolvedPreviewObjectUrl:Jt,resolvedPreviewBlob:Xt,resolveImageBlob:sn,imageSize:V,onSave:cn,uploadImageResultIsLoading:he||!1})})}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.ui_kit$Modal,{width:pe,className:"image-center",title:f("Image Center"),style:{minHeight:390},open:!!z,onOk:Ge,onCancel:on,footer:$===we?(0,t.jsx)(t.Fragment,{}):null,children:(0,t.jsx)(m.ui_kit$Spin,{spinning:he,children:(0,t.jsx)(m.ui_kit$Tabs,{activeKey:$,onChange:ln,items:Oe,className:"modal-tabs",style:{height:re,minHeight:130}})})}),(0,t.jsx)(s.PlanUpgradePrompt,{open:Yt,onCancel:()=>je(!1),initialSlide:Zt})]})};lt.propTypes={dataProvider:_t.default.object},It.default=lt});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/17fba7af.js",["require","exports","module","static/core/5dc34752.js","static/core/814472f3.js"],function(n,p,g){const $=n("./5dc34752.js"),u=n("./814472f3.js");var d={items_per_page:"na stronę",jump_to:"Idź do",jump_to_confirm:"potwierdź",page:"",prev_page:"Poprzednia strona",next_page:"Następna strona",prev_5:"Poprzednie 5 stron",next_5:"Następne 5 stron",prev_3:"Poprzednie 3 strony",next_3:"Następne 3 strony",page_size:"rozmiar strony"};function o(a){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(a)}function l(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);e&&(i=i.filter(function(j){return Object.getOwnPropertyDescriptor(a,j).enumerable})),t.push.apply(t,i)}return t}function s(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?l(Object(t),!0).forEach(function(i){y(a,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(t,i))})}return a}function y(a,e,t){return e=b(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function b(a){var e=w(a,"string");return o(e)=="symbol"?e:String(e)}function w(a,e){if(o(a)!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var i=t.call(a,e||"default");if(o(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var z=s(s({},u.commonLocale),{},{locale:"pl_PL",today:"Dzisiaj",now:"Teraz",backToToday:"Ustaw dzisiaj",ok:"OK",clear:"Wyczyść",week:"Tydzień",month:"Miesiąc",year:"Rok",timeSelect:"Ustaw czas",dateSelect:"Ustaw datę",monthSelect:"Wybierz miesiąc",yearSelect:"Wybierz rok",decadeSelect:"Wybierz dekadę",previousMonth:"Poprzedni miesiąc (PageUp)",nextMonth:"Następny miesiąc (PageDown)",previousYear:"Ostatni rok (Ctrl + left)",nextYear:"Następny rok (Ctrl + right)",previousDecade:"Ostatnia dekada",nextDecade:"Następna dekada",previousCentury:"Ostatni wiek",nextCentury:"Następny wiek"}),c={placeholder:"Wybierz godzinę",rangePlaceholder:["Czas rozpoczęcia","Czas zakończenia"]},m={lang:{placeholder:"Wybierz datę",rangePlaceholder:["Data początkowa","Data końcowa"],yearFormat:"YYYY",monthFormat:"MMMM",monthBeforeYear:!0,shortWeekDays:["Niedz","Pon","Wt","Śr","Czw","Pt","Sob"],shortMonths:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],...z},timePickerLocale:{...c}},f=m,r="${label} nie posiada poprawnej wartości dla typu ${type}",k={locale:"pl",Pagination:d,DatePicker:m,TimePicker:c,Calendar:f,global:{placeholder:"Wybierz",close:"Zamknij",show:"Pokaż",hide:"Ukryj"},Table:{filterTitle:"Menu filtra",filterConfirm:"OK",filterReset:"Usuń filtry",filterEmptyText:"Brak filtrów",filterCheckAll:"Wybierz wszystkie elementy",filterSearchPlaceholder:"Szukaj w filtrach",emptyText:"Brak danych",selectAll:"Zaznacz bieżącą stronę",selectInvert:"Odwróć zaznaczenie",selectNone:"Wyczyść",selectionAll:"Wybierz wszystkie",sortTitle:"Sortowanie",expand:"Rozwiń wiersz",collapse:"Zwiń wiersz",triggerDesc:"Sortuj malejąco",triggerAsc:"Sortuj rosnąco",cancelSort:"Usuń sortowanie"},Tour:{Next:"Dalej",Previous:"Wróć",Finish:"Zakończ"},Modal:{okText:"OK",cancelText:"Anuluj",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Anuluj"},Transfer:{titles:["",""],searchPlaceholder:"Szukaj",itemUnit:"obiekt",itemsUnit:"obiekty",remove:"Usuń",selectCurrent:"Wybierz aktualną stronę",removeCurrent:"Usuń aktualną stronę",selectAll:"Wybierz wszystkie",removeAll:"Usuń wszystkie",selectInvert:"Odwróć wybór"},Upload:{uploading:"Wysyłanie...",removeFile:"Usuń plik",uploadError:"Błąd wysyłania",previewFile:"Podejrzyj plik",downloadFile:"Pobieranie pliku"},Empty:{description:"Brak danych"},Icon:{icon:"Ikona"},Text:{edit:"Edytuj",copy:"Kopiuj",copied:"Skopiowany",expand:"Rozwiń"},Form:{optional:"(opcjonalne)",defaultValidateMessages:{default:"Błąd walidacji dla pola ${label}",required:"Pole ${label} jest wymagane",enum:"Pole ${label} musi posiadać wartość z listy: [${enum}]",whitespace:"Pole ${label} nie może być puste",date:{format:"${label} posiada zły format daty",parse:"${label} nie może zostać zinterpretowane jako data",invalid:"${label} jest niepoprawną datą"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} musi posiadać ${len} znaków",min:"${label} musi posiadać co namniej ${min} znaków",max:"${label} musi posiadać maksymalnie ${max} znaków",range:"${label} musi posiadać między ${min} a ${max} znaków"},number:{len:"${label} musi mieć wartość o długości ${len}",min:"${label} musi mieć wartość większą lub równą ${min}",max:"${label} musi mieć wartość mniejszą lub równą ${max}",range:"${label} musi mieć wartość pomiędzy ${min} a ${max}"},array:{len:"${label} musi posiadać ${len} elementów",min:"${label} musi posiadać co najmniej ${min} elementów",max:"${label} musi posiadać maksymalnie ${max} elementów",range:"${label} musi posiadać między ${min} a ${max} elementów"},pattern:{mismatch:"${label} nie posiada wartości zgodnej ze wzorem ${pattern}"}}}};p.default=k});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/2a042fe3.js",["require","exports","module","static/core/5dc34752.js","static/core/814472f3.js"],function(n,d,S){const x=n("./5dc34752.js"),u=n("./814472f3.js");var p={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};function o(t){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);e&&(l=l.filter(function(P){return Object.getOwnPropertyDescriptor(t,P).enumerable})),r.push.apply(r,l)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(l){b(t,l,r[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(r,l))})}return t}function b(t,e,r){return e=f(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t){var e=g(t,"string");return o(e)=="symbol"?e:String(e)}function g(t,e){if(o(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var l=r.call(t,e||"default");if(o(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var h=c(c({},u.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),s={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},m={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...h},timePickerLocale:{...s}},y=m,a="${label} is not a valid ${type}",v={locale:"en",Pagination:p,DatePicker:m,TimePicker:s,Calendar:y,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};d.default=v});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__emailmaker__.define("static/core/
|
|
1
|
+
__emailmaker__.define("static/core/32a14159.js",["require","exports","module","static/core/5dc34752.js","static/core/ee980948.js"],function(o,c,v){const p=o("./5dc34752.js"),l=o("./ee980948.js");var u=class{_plugins=new Map;_listeners=new Map;_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){const r=this._plugins.get(e);if(r?.overrides)for(const n of r.overrides)t=n(t)||t;return t}_notifyListeners(e,t){const r=this._listeners.get(e);if(!r||r.length===0)return;for(const i of r)try{i.callback(t)}catch{}const n=r.filter(i=>!i.once);n.length>0?this._listeners.set(e,n):this._listeners.delete(e)}get(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){const r=await t.loading;return this._applyOverrides(e,r)}if(t?.factory){const r=Promise.resolve(t.factory()).then(i=>(t.ctor=i,t.loading=void 0,this._notifyListeners(e,i),i));t.loading=r;const n=await r;return this._applyOverrides(e,n)}return new Promise(r=>{this.on(e,n=>r(this._applyOverrides(e,n)))})}add(e,t){const r=this._getOrCreateEntry(e);r.ctor=t,this._notifyListeners(e,t)}addAll(e){for(const t of Object.keys(e)){const r=e[t];r!==void 0&&this.add(t,r)}}addAsync(e,t){const r=this._getOrCreateEntry(e);return r.factory=t,{dispose:()=>{r.ctor||(r.factory=void 0)}}}has(e){const t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){const r=this._getOrCreateEntry(e);return r.overrides.push(t),{dispose:()=>{const n=r.overrides.indexOf(t);n>=0&&r.overrides.splice(n,1)}}}on(e,t){const r=this.get(e);r&&t(r);let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!1};return n.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){const r=this.get(e);if(r)return t(r),{dispose:()=>{}};let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!0};return n.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){const r=this._listeners.get(e);if(r){const n=r.findIndex(i=>i.callback===t);n>=0&&r.splice(n,1),r.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){const e=this;return{add(t,r){e.add(t,r)}}}},g=class{resolveRegistry;constructor(e){this.resolveRegistry=e}target(){return this.resolveRegistry()}get(e){return this.target().get(e)}getAsync(e){return this.target().getAsync(e)}add(e,t){return this.target().add(e,t)}addAll(e){return this.target().addAll(e)}addAsync(e,t){return this.target().addAsync(e,t)}has(e){return this.target().has(e)}isLoaded(e){return this.target().isLoaded(e)}override(e,t){return this.target().override(e,t)}on(e,t){return this.target().on(e,t)}once(e,t){return this.target().once(e,t)}off(e,t){return this.target().off(e,t)}keys(){return this.target().keys()}forContext(){return this.target().forContext()}},a="PluginRegistry";function d(e=l.resolveContainer()){return e.getOrCreateInstance(a,()=>new u)}var y=new g(()=>d()),h=100,s={events:[],container:null,collection:null};function f(e,t){s.container=e,s.collection=t,t.onLifecycle(r=>{s.events.push({...r,timestamp:Date.now()}),s.events.length>h&&(s.events=s.events.slice(-100))}),typeof window<"u"&&(window.__EMAILMAKER_DEVTOOLS__=_())}function _(){return{enabled:!0,plugins(){return s.collection?s.collection.getStatus().map(e=>({...e,hasInit:!0,hasDispose:!0,hasAfterInit:!0})):[]},config(){const e=s.container?.getInstance(l.CONFIG_SOURCE_ID);return e?e.state():{kind:"unavailable"}},registry(){if(!s.container)return[];try{return s.container.getInstance(a).keys().map(String)}catch{return[]}},events(e=50){return s.events.slice(-e)},clearEvents(){s.events=[]},getPlugin(e){if(s.collection)try{return s.collection.use(e)}catch{return}}}}c.initDevTools=f});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
__emailmaker__.define("static/core/a54d9b28.js",["require","exports","module","static/core/5dc34752.js"],function(e,t,s){const o=e("./5dc34752.js");var a=[{name:"META",selector:"head > meta[charset]",required:!0,requiredParent:"HEAD",attrs:[{name:"charset",value:["utf-8"],required:!0}],unique:!0},{name:"SCRIPT",selector:"head > script[src]",required:!0,requiredParent:"HEAD",attrs:[{name:"src",value:["https://cdn.ampproject.org/v0.js"],required:!0}],attrLists:["nonce-attr","amphtml-engine-attrs"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom-length-check]",requiredParent:"HEAD",attrs:[{name:"amp-custom-length-check",value:[""],required:!0},{name:"type",value:["text/css"]}],attrLists:["nonce-attr"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp4email-boilerplate]",requiredParent:"HEAD",attrs:[{name:"amp4email-boilerplate",value:[""],required:!0}],unique:!0},{name:"SCRIPT",selector:"amp-state > script[type]",requiresExtension:["amp-bind"],requiredParent:"AMP-STATE",attrs:[{name:"type",value:["application/json"],required:!0}],attrLists:["nonce-attr"]},{name:"HEAD",selector:"html > head",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"BODY",selector:"html > body",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"SECTION",selector:"amp-accordion > section",requiredParent:"AMP-ACCORDION",attrs:[{name:"expanded",value:[""]},{name:"[data-expand]"}]},{name:"DIV",selector:"div[submit-success][template]",attrs:[{name:"align"},{name:"submit-success",required:!0},{name:"template",required:!0}]},{name:"DIV",selector:"div[submit-error][template]",attrs:[{name:"align"},{name:"submit-error",required:!0},{name:"template",required:!0}]},{name:"SCRIPT",selector:"script[type][template]",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["text/plain"],required:!0},{name:"template",value:["amp-mustache"],required:!0}],attrLists:["nonce-attr"]},{name:"FORM",selector:"form[action-xhr]",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["post"],required:!0},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"DIV",selector:"div[submitting]",attrs:[{name:"align"},{name:"submitting",required:!0}]},{name:"DIV",selector:"div[submit-success]",attrs:[{name:"align"},{name:"submit-success",required:!0}]},{name:"DIV",selector:"div[submit-error]",attrs:[{name:"align"},{name:"submit-error",required:!0}]},{name:"SCRIPT",selector:"script[type]",attrs:[{name:"type",value:["application/ld+json"],required:!0}],attrLists:["nonce-attr"]},{name:"DIV",selector:"div[fetch-error]",attrs:[{name:"align"},{name:"fetch-error",required:!0}]},{name:"NAV",selector:"nav[toolbar]",requiredParent:"AMP-SIDEBAR",attrs:[{name:"toolbar",required:!0},{name:"toolbar-target",required:!0}]},{name:"HTML",selector:"html",required:!0,requiredParent:"$ROOT",attrs:[{name:"⚡4email",value:[""],required:!0},{name:"data-css-strict",value:[""],required:!0}],unique:!0},{name:"TITLE",selector:"title",deprecation:"Title tags in email have no meaning. This tag may become invalid in the future.",attrs:[{name:"[text]"}]},{name:"META",selector:"meta",attrs:[{name:"content"},{name:"itemprop"},{name:"name",disallowedValueRegex:"(^|\\s)(amp-.*|amp4ads-.*|apple-itunes-app|content-disposition|revisit-after|viewport)(\\s|$)"},{name:"media"},{name:"property"},{name:"scheme"}]},{name:"ARTICLE",selector:"article",attrs:[]},{name:"SECTION",selector:"section",attrs:[]},{name:"NAV",selector:"nav",attrs:[]},{name:"ASIDE",selector:"aside",attrs:[]},{name:"H1",selector:"h1",attrs:[{name:"align"}]},{name:"H2",selector:"h2",attrs:[{name:"align"}]},{name:"H3",selector:"h3",attrs:[{name:"align"}]},{name:"H4",selector:"h4",attrs:[{name:"align"}]},{name:"H5",selector:"h5",attrs:[{name:"align"}]},{name:"H6",selector:"h6",attrs:[{name:"align"}]},{name:"HEADER",selector:"header",attrs:[]},{name:"FOOTER",selector:"footer",attrs:[]},{name:"ADDRESS",selector:"address",attrs:[]},{name:"P",selector:"p",attrs:[{name:"align"}]},{name:"HR",selector:"hr",attrs:[]},{name:"PRE",selector:"pre",attrs:[]},{name:"BLOCKQUOTE",selector:"blockquote",attrs:[{name:"align"}],attrLists:["cite-attr"]},{name:"OL",selector:"ol",attrs:[{name:"reversed",value:[""]},{name:"start",valueRegex:"[0-9]*"},{name:"type",valueRegex:"[1AaIi]"}]},{name:"UL",selector:"ul",attrs:[]},{name:"LI",selector:"li",attrs:[{name:"value",valueRegex:"[0-9]*"}]},{name:"DL",selector:"dl",attrs:[]},{name:"DT",selector:"dt",attrs:[]},{name:"DD",selector:"dd",attrs:[]},{name:"FIGURE",selector:"figure",attrs:[]},{name:"FIGCAPTION",selector:"figcaption",attrs:[]},{name:"DIV",selector:"div",attrs:[{name:"align"}]},{name:"MAIN",selector:"main",attrs:[]},{name:"A",selector:"a",attrs:[{name:"border"},{name:"href",valueUrl:{protocol:["http","https","mailto","tel"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"},{name:"hreflang"},{name:"media"},{name:"role"},{name:"tabindex"},{name:"target",value:["_blank"]},{name:"type",value:["text/html"]}]},{name:"EM",selector:"em",attrs:[]},{name:"STRONG",selector:"strong",attrs:[]},{name:"SMALL",selector:"small",attrs:[]},{name:"S",selector:"s",attrs:[]},{name:"CITE",selector:"cite",attrs:[]},{name:"Q",selector:"q",attrs:[],attrLists:["cite-attr"]},{name:"DFN",selector:"dfn",attrs:[]},{name:"ABBR",selector:"abbr",attrs:[]},{name:"DATA",selector:"data",attrs:[]},{name:"TIME",selector:"time",attrs:[{name:"datetime"},{name:"pubdate",value:[""]}]},{name:"CODE",selector:"code",attrs:[]},{name:"VAR",selector:"var",attrs:[]},{name:"SAMP",selector:"samp",attrs:[]},{name:"KBD",selector:"kbd",attrs:[]},{name:"SUB",selector:"sub",attrs:[]},{name:"SUP",selector:"sup",attrs:[]},{name:"I",selector:"i",attrs:[]},{name:"B",selector:"b",attrs:[]},{name:"U",selector:"u",attrs:[]},{name:"MARK",selector:"mark",attrs:[]},{name:"RUBY",selector:"ruby",attrs:[]},{name:"RB",selector:"rb",attrs:[]},{name:"RT",selector:"rt",attrs:[]},{name:"RP",selector:"rp",attrs:[]},{name:"BDO",selector:"bdo",attrs:[{name:"dir"}]},{name:"SPAN",selector:"span",attrs:[]},{name:"BR",selector:"br",attrs:[]},{name:"WBR",selector:"wbr",attrs:[]},{name:"INS",selector:"ins",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"DEL",selector:"del",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"TABLE",selector:"table",attrs:[{name:"align"},{name:"bgcolor"},{name:"border",value:["0","1"]},{name:"cellpadding"},{name:"cellspacing"},{name:"width"}]},{name:"CAPTION",selector:"caption",attrs:[]},{name:"COLGROUP",selector:"colgroup",attrs:[{name:"span"}]},{name:"COL",selector:"col",attrs:[{name:"span"}]},{name:"TBODY",selector:"tbody",attrs:[]},{name:"THEAD",selector:"thead",attrs:[]},{name:"TFOOT",selector:"tfoot",attrs:[]},{name:"TR",selector:"tr",attrs:[{name:"align"},{name:"bgcolor"},{name:"height"},{name:"valign"}]},{name:"TD",selector:"td",attrs:[{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"valign"},{name:"width"}]},{name:"TH",selector:"th",attrs:[{name:"abbr"},{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"scope"},{name:"valign"},{name:"width"}]},{name:"FORM",selector:"form",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["get"]},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"LABEL",selector:"label",attrs:[{name:"for"}]},{name:"INPUT",selector:"input",attrs:[{name:"type",disallowedValueRegex:"(^|\\s)(file|image|password|)(\\s|$)"}],attrLists:["input-common-attr","name-attr"]},{name:"BUTTON",selector:"button",attrs:[{name:"disabled",value:[""]},{name:"role"},{name:"tabindex"},{name:"type"},{name:"value"},{name:"[disabled]"},{name:"[value]"}],attrLists:["name-attr"]},{name:"SELECT",selector:"select",attrs:[{name:"disabled"},{name:"multiple"},{name:"required"},{name:"size"},{name:"[disabled]"},{name:"[multiple]"},{name:"[required]"},{name:"[size]"}],attrLists:["name-attr"]},{name:"DATALIST",selector:"datalist",attrs:[]},{name:"OPTGROUP",selector:"optgroup",requiredParent:"SELECT",attrs:[{name:"disabled"},{name:"label"},{name:"[disabled]"},{name:"[label]"}]},{name:"OPTION",selector:"option",attrs:[{name:"disabled"},{name:"label"},{name:"selected"},{name:"value"},{name:"[disabled]"},{name:"[label]"},{name:"[selected]"},{name:"[value]"}]},{name:"TEXTAREA",selector:"textarea",attrs:[{name:"autocomplete"},{name:"autoexpand"},{name:"cols"},{name:"disabled"},{name:"maxlength"},{name:"minlength"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"rows"},{name:"spellcheck"},{name:"wrap"},{name:"[autocomplete]"},{name:"[cols]"},{name:"[defaulttext]"},{name:"[disabled]"},{name:"[maxlength]"},{name:"[minlength]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[rows]"},{name:"[spellcheck]"},{name:"[wrap]"}],attrLists:["name-attr"]},{name:"OUTPUT",selector:"output",attrs:[{name:"for"},{name:"form"}],attrLists:["name-attr"]},{name:"PROGRESS",selector:"progress",attrs:[{name:"max"},{name:"value"}]},{name:"METER",selector:"meter",attrs:[{name:"high"},{name:"low"},{name:"max"},{name:"min"},{name:"optimum"},{name:"value"}]},{name:"FIELDSET",selector:"fieldset",attrs:[{name:"disabled"},{name:"[disabled]"}],attrLists:["name-attr"]},{name:"LEGEND",selector:"legend",attrs:[]},{name:"DETAILS",selector:"details",attrs:[{name:"open",value:[""]},{name:"[open]"}]},{name:"SUMMARY",selector:"summary",requiredParent:"DETAILS",attrs:[]},{name:"AMP-IMG",selector:"amp-img",attrs:[{name:"alt"},{name:"attribution"},{name:"placeholder"},{name:"[alt]"},{name:"[attribution]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"AMP-LAYOUT",selector:"amp-layout",attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-accordion']",attrs:[{name:"custom-element",value:["amp-accordion"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-accordion-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ACCORDION",selector:"amp-accordion",requiresExtension:["amp-accordion"],attrs:[{name:"animate",value:[""]},{name:"expand-single-section",value:[""]},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-anim']",attrs:[{name:"custom-element",value:["amp-anim"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-anim-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ANIM",selector:"amp-anim",requiresExtension:["amp-anim"],attrs:[{name:"alt"},{name:"attribution"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-autocomplete']",attrs:[{name:"custom-element",value:["amp-autocomplete"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-autocomplete-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-AUTOCOMPLETE",selector:"amp-autocomplete",requiresExtension:["amp-autocomplete"],attrs:[{name:"highlight-user-entry"},{name:"inline"},{name:"items"},{name:"max-items"},{name:"min-characters"},{name:"prefetch"},{name:"query"},{name:"submit-on-enter"},{name:"suggest-first"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-bind']",attrs:[{name:"custom-element",value:["amp-bind"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-bind-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-STATE",selector:"amp-state",requiresExtension:["amp-bind"],attrs:[],attrLists:["mandatory-id-attr"]},{name:"AMP-BIND-MACRO",selector:"amp-bind-macro",requiresExtension:["amp-bind"],attrs:[{name:"arguments"},{name:"expression",required:!0}],attrLists:["mandatory-id-attr"]},{name:"SCRIPT",selector:"script[custom-element='amp-carousel']",attrs:[{name:"custom-element",value:["amp-carousel"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-carousel-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-CAROUSEL",selector:"amp-carousel",requiresExtension:["amp-carousel"],attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["amp-carousel-common","extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-fit-text']",attrs:[{name:"custom-element",value:["amp-fit-text"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-fit-text-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-FIT-TEXT",selector:"amp-fit-text",requiresExtension:["amp-fit-text"],attrs:[{name:"max-font-size"},{name:"min-font-size"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-form']",attrs:[{name:"custom-element",value:["amp-form"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-form-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"SCRIPT",selector:"script[custom-element='amp-image-lightbox']",deprecation:"amp-image-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-image-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-image-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-IMAGE-LIGHTBOX",selector:"amp-image-lightbox",requiresExtension:["amp-image-lightbox"],attrs:[{name:"controls"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-lightbox']",deprecation:"amp-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIGHTBOX",selector:"amp-lightbox",requiresExtension:["amp-lightbox"],attrs:[{name:"animate-in",value:["fade-in","fly-in-bottom","fly-in-top"]},{name:"controls"},{name:"from"},{name:"[open]"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-list']",attrs:[{name:"custom-element",value:["amp-list"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-list-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIST",selector:"amp-list",requiresExtension:["amp-list"],attrs:[{name:"binding",value:["always","no","refresh","refresh-evaluate"]},{name:"diffable",value:[""]},{name:"items"},{name:"max-items"},{name:"single-item"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"xssi-prefix"},{name:"[is-layout-container]"},{name:"layout",value:["responsive","container","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-template='amp-mustache']",attrs:[{name:"custom-template",value:["amp-mustache"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-mustache-0.1.js","https://cdn.ampproject.org/v0/amp-mustache-0.2.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"TEMPLATE",selector:"template",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["amp-mustache"],required:!0}]},{name:"SCRIPT",selector:"script[custom-element='amp-selector']",attrs:[{name:"custom-element",value:["amp-selector"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-selector-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SELECTOR",selector:"amp-selector",requiresExtension:["amp-selector"],attrs:[{name:"disabled",value:[""]},{name:"form"},{name:"keyboard-select-mode",value:["focus","none","select"]},{name:"multiple",value:[""]},{name:"[disabled]"},{name:"[selected]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","name-attr","$AMP_LAYOUT_ATTRS"]},{name:"$REFERENCE_POINT",selector:"amp-selector option",attrs:[{name:"disabled",value:[""]},{name:"option",required:!0},{name:"selected",value:[""]}]},{name:"$REFERENCE_POINT",selector:"amp-selector child",attrs:[]},{name:"SCRIPT",selector:"script[custom-element='amp-sidebar']",attrs:[{name:"custom-element",value:["amp-sidebar"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SIDEBAR",selector:"amp-sidebar",requiresExtension:["amp-sidebar"],attrs:[{name:"side",value:["left","right"]},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-timeago']",attrs:[{name:"custom-element",value:["amp-timeago"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-timeago-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-TIMEAGO",selector:"amp-timeago",requiresExtension:["amp-timeago"],attrs:[{name:"cutoff",valueRegex:"\\d+"},{name:"datetime",valueRegex:"\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d(:[0-5]\\d(\\.\\d+)?)?(Z|[+-][0-1][0-9]:[0-5][0-9])",required:!0},{name:"locale"},{name:"[datetime]"},{name:"[title]"},{name:"layout",value:["responsive","fixed","fixed_height"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]}],n=[{name:"cite-attr",attrs:[{name:"cite",valueUrl:{protocol:["http","https"],allowEmpty:!0},disallowedValueRegex:"__amp_source_origin"}]},{name:"input-common-attr",attrs:[{name:"accept"},{name:"accesskey"},{name:"autocomplete"},{name:"checked"},{name:"disabled"},{name:"height"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"size"},{name:"spellcheck"},{name:"step"},{name:"tabindex"},{name:"value"},{name:"width"},{name:"[autocomplete]"},{name:"[checked]"},{name:"[disabled]"},{name:"[height]"},{name:"[max]"},{name:"[maxlength]"},{name:"[min]"},{name:"[minlength]"},{name:"[multiple]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[size]"},{name:"[spellcheck]"},{name:"[step]"},{name:"[value]"},{name:"[width]"}]},{name:"amphtml-engine-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-src-amp4email",attrs:[{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"}]},{name:"extended-amp-global",attrs:[{name:"i-amphtml-layout",value:["container","fill","fixed","fixed-height","flex-item","fluid","intrinsic","nodisplay","responsive"]},{name:"media"},{name:"noloading",value:[""]}]},{name:"$AMP_LAYOUT_ATTRS",attrs:[{name:"disable-inline-width"},{name:"height"},{name:"heights"},{name:"layout"},{name:"sizes"},{name:"width"},{name:"[height]"},{name:"[width]"}]},{name:"nonce-attr",attrs:[]},{name:"common-extension-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-id-attr",attrs:[{name:"id",required:!0,disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"name-attr",attrs:[{name:"name",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"$GLOBAL_ATTRS",attrs:[{name:"itemid"},{name:"itemprop"},{name:"itemref"},{name:"itemscope"},{name:"itemtype"},{name:"about"},{name:"content"},{name:"datatype"},{name:"inlist"},{name:"prefix"},{name:"property"},{name:"rel",disallowedValueRegex:"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)"},{name:"resource"},{name:"rev"},{name:"style"},{name:"typeof"},{name:"vocab"},{name:"accesskey"},{name:"class"},{name:"dir"},{name:"draggable"},{name:"hidden",value:[""]},{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"lang"},{name:"slot"},{name:"tabindex"},{name:"title"},{name:"translate"},{name:"aria-activedescendant"},{name:"aria-atomic"},{name:"aria-autocomplete"},{name:"aria-busy"},{name:"aria-checked"},{name:"aria-controls"},{name:"aria-current"},{name:"aria-describedby"},{name:"aria-disabled"},{name:"aria-dropeffect"},{name:"aria-expanded"},{name:"aria-flowto"},{name:"aria-grabbed"},{name:"aria-haspopup"},{name:"aria-hidden"},{name:"aria-invalid"},{name:"aria-label"},{name:"aria-labelledby"},{name:"aria-level"},{name:"aria-live"},{name:"aria-modal"},{name:"aria-multiline"},{name:"aria-multiselectable"},{name:"aria-orientation"},{name:"aria-owns"},{name:"aria-posinset"},{name:"aria-pressed"},{name:"aria-readonly"},{name:"aria-relevant"},{name:"aria-required"},{name:"aria-selected"},{name:"aria-setsize"},{name:"aria-sort"},{name:"aria-valuemax"},{name:"aria-valuemin"},{name:"aria-valuenow"},{name:"aria-valuetext"},{name:"on"},{name:"role"},{name:"placeholder",value:[""]},{name:"fallback",value:[""]},{name:"overflow"},{name:"amp-access"},{name:"amp-access-behavior"},{name:"amp-access-hide"},{name:"amp-access-id"},{name:"amp-access-loader"},{name:"amp-access-loading"},{name:"amp-access-off"},{name:"amp-access-on"},{name:"amp-access-show"},{name:"amp-access-style"},{name:"amp-access-template"},{name:"i-amp-access-id"},{name:"validation-for"},{name:"visible-when-invalid",value:["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"]},{name:"amp-fx",valueRegex:"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*"},{name:"subscriptions-action"},{name:"subscriptions-actions",value:[""]},{name:"subscriptions-decorate"},{name:"subscriptions-dialog",value:[""]},{name:"subscriptions-display"},{name:"subscriptions-lang"},{name:"subscriptions-section",value:["actions","content","content-not-granted","loading"]},{name:"subscriptions-service"},{name:"subscriptions-google-rtc"},{name:"next-page-hide"},{name:"next-page-replace"},{name:"[aria-activedescendant]"},{name:"[aria-atomic]"},{name:"[aria-autocomplete]"},{name:"[aria-busy]"},{name:"[aria-checked]"},{name:"[aria-controls]"},{name:"[aria-describedby]"},{name:"[aria-disabled]"},{name:"[aria-dropeffect]"},{name:"[aria-expanded]"},{name:"[aria-flowto]"},{name:"[aria-grabbed]"},{name:"[aria-haspopup]"},{name:"[aria-hidden]"},{name:"[aria-invalid]"},{name:"[aria-label]"},{name:"[aria-labelledby]"},{name:"[aria-level]"},{name:"[aria-live]"},{name:"[aria-multiline]"},{name:"[aria-multiselectable]"},{name:"[aria-orientation]"},{name:"[aria-owns]"},{name:"[aria-posinset]"},{name:"[aria-pressed]"},{name:"[aria-readonly]"},{name:"[aria-relevant]"},{name:"[aria-required]"},{name:"[aria-selected]"},{name:"[aria-setsize]"},{name:"[aria-sort]"},{name:"[aria-valuemax]"},{name:"[aria-valuemin]"},{name:"[aria-valuenow]"},{name:"[aria-valuetext]"},{name:"[class]"},{name:"[hidden]"},{name:"[text]"},{name:"i-amphtml-binding",value:[""]},{name:"autoscroll"}]},{name:"amp-carousel-common",attrs:[{name:"autoplay",valueRegex:"(|[0-9]+)"},{name:"controls"},{name:"delay",valueRegex:"[0-9]+"},{name:"loop",value:[""]},{name:"slide",valueRegex:"[0-9]+"},{name:"type",value:["carousel","slides"]},{name:"[slide]"}]}],r=[{name:"amp-accordion",versions:["0.1"]},{name:"amp-anim",versions:["0.1"]},{name:"amp-autocomplete",versions:["0.1"]},{name:"amp-bind",versions:["0.1"]},{name:"amp-carousel",versions:["0.1"]},{name:"amp-fit-text",versions:["0.1"]},{name:"amp-form",versions:["0.1"]},{name:"amp-image-lightbox",versions:["0.1","latest"]},{name:"amp-lightbox",versions:["0.1","latest"]},{name:"amp-list",versions:["0.1"]},{name:"amp-mustache",versions:["0.1","0.2"]},{name:"amp-selector",versions:["0.1"]},{name:"amp-sidebar",versions:["0.1"]},{name:"amp-timeago",versions:["0.1"]}],m=[{name:"-moz-appearance"},{name:"-webkit-appearance"},{name:"-webkit-tap-highlight-color"},{name:"align-content"},{name:"align-items"},{name:"align-self"},{name:"appearance"},{name:"aspect-ratio"},{name:"azimuth"},{name:"background"},{name:"background-attachment"},{name:"background-blend-mode"},{name:"background-clip"},{name:"background-color"},{name:"background-image"},{name:"background-origin"},{name:"background-position"},{name:"background-repeat"},{name:"background-size"},{name:"border"},{name:"border-bottom"},{name:"border-bottom-color"},{name:"border-bottom-left-radius"},{name:"border-bottom-right-radius"},{name:"border-bottom-style"},{name:"border-bottom-width"},{name:"border-collapse"},{name:"border-color"},{name:"border-left"},{name:"border-left-color"},{name:"border-left-style"},{name:"border-left-width"},{name:"border-radius"},{name:"border-right"},{name:"border-right-color"},{name:"border-right-style"},{name:"border-right-width"},{name:"border-spacing"},{name:"border-style"},{name:"border-top"},{name:"border-top-color"},{name:"border-top-left-radius"},{name:"border-top-right-radius"},{name:"border-top-style"},{name:"border-top-width"},{name:"border-width"},{name:"bottom"},{name:"box-shadow"},{name:"box-sizing"},{name:"break-after"},{name:"break-before"},{name:"break-inside"},{name:"caption-side"},{name:"caret-color"},{name:"clear"},{name:"color"},{name:"color-adjust"},{name:"column-count"},{name:"column-fill"},{name:"column-gap"},{name:"column-rule"},{name:"column-rule-color"},{name:"column-rule-style"},{name:"column-rule-width"},{name:"column-span"},{name:"column-width"},{name:"columns"},{name:"counter-increment"},{name:"counter-reset"},{name:"cursor",value:["initial","pointer"]},{name:"direction"},{name:"display"},{name:"elevation"},{name:"empty-cells"},{name:"filter",valueRegex:"^ *((blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\))( +([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\)))*\\) *)*$"},{name:"flex"},{name:"flex-basis"},{name:"flex-direction"},{name:"flex-flow"},{name:"flex-grow"},{name:"flex-shrink"},{name:"flex-wrap"},{name:"float"},{name:"font"},{name:"font-family"},{name:"font-feature-settings"},{name:"font-kerning"},{name:"font-size"},{name:"font-size-adjust"},{name:"font-stretch"},{name:"font-style"},{name:"font-synthesis"},{name:"font-variant"},{name:"font-variant-alternates"},{name:"font-variant-caps"},{name:"font-variant-east-asian"},{name:"font-variant-ligatures"},{name:"font-variant-numeric"},{name:"font-variation-settings"},{name:"font-weight"},{name:"gap"},{name:"grid"},{name:"grid-area"},{name:"grid-auto-columns"},{name:"grid-auto-flow"},{name:"grid-auto-rows"},{name:"grid-column"},{name:"grid-column-end"},{name:"grid-column-start"},{name:"grid-row"},{name:"grid-row-end"},{name:"grid-row-start"},{name:"grid-template"},{name:"grid-template-areas"},{name:"grid-template-columns"},{name:"grid-template-rows"},{name:"height"},{name:"hyphens"},{name:"image-orientation"},{name:"image-resolution"},{name:"inline-size"},{name:"isolation"},{name:"justify-content"},{name:"justify-items"},{name:"justify-self"},{name:"left"},{name:"letter-spacing"},{name:"line-break"},{name:"line-height"},{name:"list-style"},{name:"list-style-position"},{name:"list-style-type"},{name:"margin"},{name:"margin-bottom"},{name:"margin-left"},{name:"margin-right"},{name:"margin-top"},{name:"max-height"},{name:"max-width"},{name:"min-height"},{name:"min-width"},{name:"mix-blend-mode"},{name:"object-fit"},{name:"object-position"},{name:"offset-distance"},{name:"opacity"},{name:"order"},{name:"outline"},{name:"outline-color"},{name:"outline-offset"},{name:"outline-style"},{name:"outline-width"},{name:"overflow"},{name:"overflow-wrap"},{name:"overflow-x"},{name:"overflow-y"},{name:"padding"},{name:"padding-bottom"},{name:"padding-left"},{name:"padding-right"},{name:"padding-top"},{name:"pause"},{name:"pause-after"},{name:"pause-before"},{name:"perspective"},{name:"perspective-origin"},{name:"pitch"},{name:"pitch-range"},{name:"place-items"},{name:"position"},{name:"quotes"},{name:"resize"},{name:"richness"},{name:"right"},{name:"row-gap"},{name:"speak"},{name:"speak-header"},{name:"speak-numeral"},{name:"speak-punctuation"},{name:"speech-rate"},{name:"stress"},{name:"table-layout"},{name:"text-align"},{name:"text-align-last"},{name:"text-combine-upright"},{name:"text-decoration"},{name:"text-decoration-color"},{name:"text-decoration-line"},{name:"text-decoration-skip"},{name:"text-decoration-style"},{name:"text-emphasis"},{name:"text-emphasis-color"},{name:"text-emphasis-position"},{name:"text-emphasis-style"},{name:"text-indent"},{name:"text-justify"},{name:"text-orientation"},{name:"text-overflow"},{name:"text-shadow"},{name:"text-transform"},{name:"text-underline-position"},{name:"top"},{name:"transform"},{name:"transform-box"},{name:"transform-origin"},{name:"transform-style"},{name:"transition",valueRegex:"^ *((initial|unset)|(((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?)(, *((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?))*)) *$"},{name:"transition-delay"},{name:"transition-duration"},{name:"transition-property",valueRegex:"^ *(initial|unset|(none|offset-distance|opacity|transform|visibility)(, *(none|offset-distance|opacity|transform|visibility))*) *$"},{name:"transition-timing-function"},{name:"unicode-bidi"},{name:"vertical-align"},{name:"visibility",value:["hidden","initial","visible"]},{name:"voice-family"},{name:"white-space"},{name:"width"},{name:"word-break"},{name:"word-spacing"},{name:"word-wrap"},{name:"writing-mode"},{name:"z-index",valueRegex:"([-+]?0)|([-+]?100)|([-+]?[1-9][0-9]?)"}],i={tags:a,attrLists:n,extensions:r,declarations:m};t.default=i});
|
|
2
2
|
|
|
3
|
-
__emailmaker__.define("static/core/
|
|
3
|
+
__emailmaker__.define("static/core/4de9c323.js",["require","exports","module","static/core/5dc34752.js","static/core/814472f3.js","static/core/5b6e2acb.js","vite/preload-helper"],function(R,C,Ae){const ge=R("./5dc34752.js"),d=R("./814472f3.js"),E=R("./5b6e2acb.js");let G=R("vite/preload-helper");function D(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function P(e){let t=e.head;if(!t){t=e.createElement("head");const i=D(e);i.insertBefore(t,i.firstChild)}return t}function I(e){const t=Object.create(null),i=e.getAttributeNames();for(const r of i)t[r]=e.getAttribute(r);return t}function Y(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}function J(e){const t=P(e);if(!e.querySelector("style[amp4email-boilerplate]")){const i=e.createElement("style");i.setAttribute("amp4email-boilerplate",""),i.innerHTML="body{visibility:hidden}",t.prepend(i)}}function K(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}var q="amp-custom";function Q(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}function H(e,t,i){for(const r of t)if(d.css.isStyleRule(r)){const l=r.selectorText.split(/\+>~/).flatMap(s=>s.trim().split(" "));if(l.length===1&&l[0].trim().startsWith(".em-")){for(const s of r.style)if(r.style.getPropertyPriority(s)==="important"){for(const o of e.querySelectorAll(r.selectorText))if(d.isHtmlElement(o)){const u=o.style;for(const c of[...u])if(c.startsWith(s)){const g=i(c,u.getPropertyValue(c)),x=o.getAttribute("class");o.setAttribute("class",x?`${g} ${x}`:g),u.removeProperty(c)}}}}}else d.css.isMediaRule(r)&&H(e,r.cssRules,i)}function U(e,t){const i=t.sheet;if(i){const s=new Set;H(e,i.cssRules,(o,u)=>{const c=Q(o,u),g=[...i.cssRules],x=`.${c} { ${o}: ${u} }`;return!g.find(v=>d.css.isStyleRule(v)&&v.selectorText===`.${c}`)&&!s.has(x)&&(s.add(x),t.innerHTML=`
|
|
4
4
|
.${c} { ${o}: ${u} };
|
|
5
5
|
${t.innerHTML}`),c}),s.size&&(t.innerHTML=`
|
|
6
6
|
${[...s].join(`
|