@emailmaker/emailmaker 1.1.104 → 1.1.108
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/emailmaker-core.d5e4bde1.js +859 -0
- package/emailmaker-esm.js +11 -11
- package/{emailmaker-po.d92031f0.js → emailmaker-po.d5e4bde1.js} +1 -1
- package/emailmaker.d.ts +137 -13
- package/emailmaker.js +12 -12
- package/iframe/.vite/manifest.json +13 -25
- package/iframe/css/sandbox.css +9 -8
- package/iframe/{iframe-eblock.d92031f0.html → iframe-eblock.d5e4bde1.html} +2 -2
- package/iframe/{iframe.d92031f0.html → iframe.d5e4bde1.html} +2 -2
- package/iframe/js/elMarkupHelper.C66zL1zp.js +279 -0
- package/iframe/js/iframe-eblock.body.d5e4bde1.js +9 -0
- package/iframe/js/iframe-eblock.js +2 -2
- package/iframe/js/iframe.body.d5e4bde1.js +129 -0
- package/iframe/js/iframe.js +2 -2
- package/iframe/js/{typograf.all.B0pVhMV_.js → typograf.all.Mun9CrLC.js} +12 -12
- package/package.json +1 -1
- package/runtime/react/index.js +1 -1
- package/static/core/{2d570b04.js → 13b2a363.js} +3 -3
- package/static/core/{1cdd0eaa.js → 22140fa1.js} +1 -1
- package/static/core/{62b7892b.js → 2455e45e.js} +11 -11
- package/static/core/{c67adee2.js → 2734fa96.js} +1 -1
- package/static/core/3a6dbf2b.js +7 -0
- package/static/core/{0cb54b92.js → 4797d4f7.js} +6 -6
- package/static/core/{dc45a033.js → 566e8ce8.js} +1 -1
- package/static/core/{e76ed3bd.js → 6ba8aedc.js} +1 -1
- package/static/core/{4b7442c5.js → 6c52be40.js} +1 -1
- package/static/core/{36f15937.js → 6e8d008d.js} +1 -1
- package/static/core/{bd852c3b.js → 6f6a92e3.js} +1 -1
- package/static/core/{2a6bfcb1.js → 756e184f.js} +1 -1
- package/static/core/7985de17.js +28 -0
- package/static/core/{9596ee39.js → 7e51da74.js} +1 -1
- package/static/core/{448f5a93.js → 7e69b03c.js} +1 -1
- package/static/core/{20fae5cb.js → 8889dbc6.js} +1 -1
- package/static/core/8a621181.js +2 -0
- package/static/core/a22823f9.js +1 -0
- package/static/core/{1922419a.js → abcacabc.js} +1 -1
- package/static/core/{f173fdc6.js → b43852b9.js} +1 -1
- package/static/core/{9f7f5230.js → b712bb05.js} +1 -1
- package/static/core/{ba4d44b4.js → b916e437.js} +1 -1
- package/static/core/{d3f1d83d.js → d5cd2a7b.js} +1 -1
- package/static/core/{c100433a.js → d74c1e57.js} +1 -1
- package/static/core/{fff40495.js → d8800deb.js} +1 -1
- package/static/core/{25095aa6.js → dbc12df7.js} +2 -2
- package/static/core/{eee25d75.js → e1f8b6ea.js} +1 -1
- package/static/core/e88db487.js +1 -0
- package/static/core/{360afb24.js → ecaf7c36.js} +1 -1
- package/static/core/edf49656.js +4 -0
- package/static/core/f20ffa90.js +4 -0
- package/static/core/{432ad49d.js → f37da79c.js} +1 -1
- package/static/esm/73c89921.js +1 -0
- package/static/esm/delivery-libs.js +1 -1
- package/static/umd-runtime/delivery-libs.eFZaeVgo.js +1 -0
- package/static/umd-runtime/{runtime.Wy6_YzQx.js → runtime.BZcjM8iG.js} +1 -1
- package/vendor/@emailmaker/ui-kit/package.json +1 -1
- package/emailmaker-core.d92031f0.js +0 -859
- package/iframe/js/discussHandlers.cyZrdU7c.js +0 -88
- package/iframe/js/iframe-eblock.body.d92031f0.js +0 -233
- package/iframe/js/iframe.body.d92031f0.js +0 -319
- package/iframe/js/rolldown-runtime.qcwTIabA.js +0 -1
- package/static/core/123fc796.js +0 -4
- package/static/core/5dc1b7fa.js +0 -7
- package/static/core/a866296c.js +0 -4
- package/static/core/cd6c8848.js +0 -28
- package/static/core/e6f6edff.js +0 -1
- package/static/esm/d4338c39.js +0 -1
- package/static/umd-runtime/delivery-libs.Cmqsjupj.js +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
__emailmaker__.define("js/iframe-eblock.js",["require","exports","module","js/elMarkupHelper.C66zL1zp.js"],function(f,N,L){const n=f("./elMarkupHelper.C66zL1zp.js");var v=n.require_iframeResizer_contentWindow_min();function b(o){const c=new Map,e=[],s=[],a=[];for(const t of o)if(t instanceof HTMLLinkElement)t.getAttribute("em-class")?.startsWith("em-font-")&&s.push(t);else if(t instanceof HTMLStyleElement){const r=t.getAttribute("em")||"",i=c.get(r);i?i.push(t):c.set(r,[t])}else if(t instanceof Element)if(t.getAttribute("em")==="block")e.push(t);else{const r=t.querySelector("[em='block']");r&&e.push(r)}else t.textContent===`
|
|
2
|
+
`&&a.push(t);const l=[];for(const t of s)l.push(t);for(const[t,r]of c)if(r.length>1){let i=n.minifyStylesheet(r.map(d=>d.innerHTML).join(`
|
|
3
|
+
`),{restructure:!0,forceMediaMerge:!0}).css;if(i=cssbeautify(i,{indent:" ",autosemicolon:!0}),i){const d=document.createElement("style");d.innerHTML=`
|
|
4
|
+
${i}
|
|
5
|
+
`,t&&d.setAttribute("em",t),l.push(d)}}else l.push(r[0]);for(const t of e)l.push(t);for(let t=l.length-1;t>0;t--)l.splice(t,0,a.length>=t?a[t-1]:document.createTextNode(`
|
|
6
|
+
`));return l}function p(o){return o.hasAttribute("amp-runtime")||o.hasAttribute("amp-extension")||o.hasAttribute("amp-boilerplate")}function m(o,c){let e=document.querySelector('body>[em="block-contaner"]');if(e){const s=document.querySelectorAll("style"),a=document.querySelectorAll("[em=block]"),l=document.querySelectorAll("link[em-class]");for(const i of s){if(e.contains(i)&&p(i)){document.head.appendChild(i),c?.markUntracked(i);continue}i.parentNode!==e&&!c?.isUntracked(i)&&!i.dataset.emLocalization&&!i.dataset.themeVaribalse&&(e.insertBefore(document.createTextNode(`
|
|
7
|
+
`),e.firstChild),e.insertBefore(i,e.firstChild))}for(const i of a)i.parentNode!==e&&(e.appendChild(document.createTextNode(`
|
|
8
|
+
`)),e.appendChild(i));for(const i of l)e.querySelector(`link[em-class="${i.getAttribute("em-class")}"]`)||(e.insertBefore(document.createTextNode(`
|
|
9
|
+
`),e.firstChild),e.insertBefore(i,e.firstChild));o||(o=e.childNodes);const t=b(o);for(const i of o){const d=i.parentNode;t.indexOf(i)<0&&d&&d.removeChild(i)}let r=null;for(const i of[...t].reverse())(i.parentNode!==e||i.nextSibling!==r)&&e.insertBefore(i,r),r=i;return t}return[]}function h(o,c){if(o.length){const e=document.documentElement||document.appendChild(document.createElement("html"));document.head||e.insertBefore(document.createElement("head"),e.firstChild);const s=document.body||e.appendChild(document.createElement("body"));let a=null;for(const r of o)if(r instanceof Element&&r.tagName!=="STYLE")if(r.getAttribute("em")==="block"){a=r;break}else{const i=r.querySelector("[em='block']");if(i){a=i;break}}const l=a?.tagName.toLowerCase()==="tr"?"table":"div";let t=document.querySelector('body>[em="block-contaner"]');if(t&&t.tagName.toLowerCase()!==l&&t.remove(),!t){let r=s.insertBefore(document.createElement(l),s.firstChild);r.setAttribute("em","block-contaner"),l==="div"?(r.style.width="100%",r.style.margin="0 auto",r.style.maxWidth="100%"):(r.setAttribute("align","center"),r.setAttribute("cellspacing","0"),r.setAttribute("cellpadding","0"),r.setAttribute("border","0"),r.setAttribute("width","100%")),t=s.appendChild(r)}return m(o,c)}return o}var k={name:"block",mapHTMLRoots:h,rootsParent:()=>document.querySelector('body>[em="block-contaner"]'),beforeCommit:o=>{m(void 0,o)}};function _(o){const c=o.tagName==="TABLE"?o.getAttribute("width")||"":o.style.maxWidth;return!c||c.includes("%")?0:parseFloat(c)||0}function S(o){return(c,e)=>{const s=o();if(!s)return e;const a=_(s);return a?Math.min(e,a):e>=Math.round(s.getBoundingClientRect().width)?0:e}}var y=n.defineUnit({name:"sandbox.blockLayout",provides:[n.STYLE_ROOT_ID,n.VML_WIDTH_RESOLVER_ID],setup(o){o.inject(n.STYLE_ROOT_ID,()=>document.querySelector('[em="block"]')),o.inject(n.VML_WIDTH_RESOLVER_ID,S(()=>document.querySelector('body>[em="block-contaner"]')))}}),u='[em="block-contaner"]';function g(o){const c=o.tagName==="TABLE",e=c?o.getAttribute("width"):o.style.maxWidth,s=!!e&&(!c||e!=="auto");return{value:s?parseFloat(e):null,dim:s&&e.indexOf("%")>-1?"%":"px"}}var E=n.defineUnit({name:"sandbox.blockPreview",provides:[n.INIT_PREVIEW_ID],awaits:{services:[n.SYNC_COMMIT_ID]},setup(o){const c=n.commitOf(o);o.inject(n.INIT_PREVIEW_ID,()=>{n.state.set("lockEditorInit",!0),n.removeHiddenClasses(document);const e=document.querySelector(u);n.state.set("globalHolder",e);const s={structuresMedia:!document.querySelector('[em="block"] div[style*="display: inline-block"]')};e&&(s.width=g(e)),n.markAtomsAndClearRootHeight(),n.messageService.send({operation:n.EVENT_TYPES.APPLICATION_BLOCK_SETTINGS_SET,settings:s}),c(!1)})}}),T=n.defineUnit({name:"sandbox.blockInsertPolicy",provides:[n.INSERT_POLICY_ID],setup:o=>o.inject(n.INSERT_POLICY_ID,{assetsRoot:()=>document.querySelector(`body>${u}`)})}),C=n.defineUnit({name:"sandbox.blockOperations",awaits:{services:[n.SYNC_COMMIT_ID]},setup(o){const c=n.requireService(o,n.SYNC_COMMIT_ID);n.messageService.addListener(e=>{const s=e.data??{};if(s.operation===n.EVENT_TYPES.SANDBOX_BLOCK_SETTINGS_SET){const a=s.settings??{},l=document.querySelector(u);if(n.state.set("globalHolder",l),l&&(a.width||a.backgroundColor==="")){const t=a.width;l.tagName==="TABLE"?l.setAttribute("width",`${t.value}${t.dim==="px"?"":"%"}`):l.style.maxWidth=`${t.value}${t.dim}`}c.commitLockedAsync()}})}}),A=[y,E,T,C],I=n.defineSurface({name:"block",profile:k,units:[n.diagnosticsAgentUnit,...n.CANVAS_CORE_UNITS,n.ampUnit,...n.EMAIL_LAYOUT_UNITS,...A,n.extensionsUnit(),n.paintGateUnit,n.wheelBridgeUnit,n.deviceWidthMediaGuardUnit]});n.startSandbox(I)});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=null,s={},c={},l=0;function u(e,t){l+=1;try{return e.factory.apply(null,t)}finally{--l}}var d=`./`,f={},p=60,m=`emailmaker:diagnostics`,h=[],g;function _(){if(g!==void 0)return g;g=!1;try{var e=/[?&]diagnostics(?:=([^&]*))?/.exec(window.location.search||``);if(e)return g=e[1]!==`0`,g;if(typeof window.__DIAGNOSTICS__==`boolean`)return g=!!window.__DIAGNOSTICS__,g;g=window.localStorage.getItem(m)===`1`}catch{g=!1}return g}function v(e,t){if(_()){var n={phase:e,at:performance.timeOrigin+performance.now(),kind:`wait`};t&&(n.parent=String(t)),h.push(n)}}function y(e){if(!e||e.__amdLogged)return e;try{Object.defineProperty(e,"__amdLogged",{value:!0,enumerable:!1})}catch{try{e.__amdLogged=!0}catch{}}try{var t=e&&e.message||`loader error`;console.error(`[AMD] `+(t.indexOf(`[AMD]`)===0?t.slice(6):t),e)}catch{}return e}function b(){try{if(e!==void 0&&e&&e.publicPath)return String(e.publicPath)}catch{}return`(not set)`}function x(){var e=b();return String(e).indexOf(`file:`)===0?` The page appears to be opened as a local file (file://) or publicPath was not configured. Serve the host app over HTTP(S) and set publicPath to the origin that serves editor assets (host bundler plugin or __amdEnv.setPublicPath). Current runtime publicPath=`+e+`.`:` Host bundler publicPath may be misconfigured (Vite/Webpack host plugin). In dev, set publicPath to the absolute origin that serves editor assets (for example http://localhost:3001/<outputFolder>/). Current runtime publicPath=`+e+`.`}function S(e){if(typeof fetch!=`function`)return Promise.resolve(``);function t(e){var t=(e.headers.get(`content-type`)||``).toLowerCase();try{e.body&&typeof e.body.cancel==`function`&&e.body.cancel()}catch{}return t.indexOf(`text/html`)>=0?` The URL returned HTML (Content-Type: text/html), not JavaScript — often a SPA fallback when asset paths are wrong.`:e.ok?``:` HTTP status `+e.status+` — the asset URL may be wrong or blocked by the server.`}return fetch(e,{method:`HEAD`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(function(n){return n.status===405||n.status===501?fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t):t(n)}).catch(function(){return fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t).catch(function(){return``})})}function C(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function w(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function T(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(i&&i!==`.`){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function E(e){var t=String(e||``).replace(/\\/g,`/`),n=String(d||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function D(e){return{then:function(t,n){return e.then(t,n)},catch:function(t){return e.catch(t)},finally:function(t){return e.finally(t)}}}function O(e,t){var n=String(e||``);if(!n)return n;if(n.indexOf(`./`)!==0&&n.indexOf(`../`)!==0)return E(T(n));var r=t||``;if(Object.prototype.hasOwnProperty.call(f,r)){var i=String(f[r]||``);i&&!k(i)&&i.charAt(0)!==`/`&&(r=i)}var a=T(r),o=a?a.split(`/`):[];o.length>0&&o.pop();for(var s=n.split(`/`),c=0;c<s.length;c++){var l=s[c];if(l&&l!==`.`){if(l===`..`){o.length>0&&o.pop();continue}o.push(l)}}return E(o.join(`/`))}function k(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function A(e){var t=String(e||``);if(!t||k(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function j(){var t=String(d||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),k(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,A(e.publicPath)).href}catch{}return A(t)}function M(e,t){var n=O(e,t),r=j(),i=Object.prototype.hasOwnProperty.call(f,n)?String(f[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function N(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function P(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=N()):typeof e==`function`?(r=e,n=[],e=N()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}P.amd={async:!0};function F(e){var t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}P(`vite/preload-helper`,[`exports`],function(e){e.__vitePreload=function(e){return Promise.resolve().then(function(){return e().catch(F)})}});function I(){return function(){}}function L(e,t){return{id:e,exports:t,uri:M(e)}}function R(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return V(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return V(e,r)}function z(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=O(e,o);if(s in a)throw y(a[s]);if(s in n)return n[s];if(s in r||s in i)throw y(C(s,Error(`Module is still loading asynchronously`)));if(!(s in t))throw y(C(s,Error(`Module is not available for syncRequire`)));return U(s)}function B(e,i){if(o&&e in o){var s={},c=[e];for(s[e]=!0;c.length>0;){var l=o[c.shift()];if(l)for(var u=0;u<l.length;u++){var d=l[u];s[d]||(s[d]=!0,c.push(d),!(d in n||d in a||d in r)&&(d in o?d in t||K(d,i).catch(function(){}):d in t&&V(d).catch(function(){})))}}}}function V(e,i){var o=O(e,i);if(o in a)return Promise.reject(y(a[o]));if(o in n)return Promise.resolve(n[o]);if(o in r)return r[o];if(v(`core:module:`+o+`:ask`,i),o in t)r[o]=H(o);else{var s=M(o);r[o]=K(o).then(function(){return v(`core:module:`+o+`:loaded`,i),o in t?H(o):S(s).then(function(e){var t=C(o,Error(`Module not defined after script load from "`+s+`".`+e+x()));throw a[o]=t,y(t)})}).catch(function(e){delete r[o];var t=e&&e.moduleId===o?e:C(o,e);throw a[o]=t,y(t)})}return B(o),r[o]}function H(e){var i=t[e],o=W(e),s=I(),l=L(e,s);c[e]=s;function d(t){return n[e]=t,delete r[e],delete c[e],n[e]}return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?l:V(t,e).catch(function(n){throw w(e,t,n)})})).then(function(t){v(`core:module:`+e+`:deps`);var n=u(i,t);return n&&typeof n.then==`function`?n.then(function(t){return v(`core:module:`+e+`:ready`),d(t===void 0?l.exports:t)}):(v(`core:module:`+e+`:ready`),d(n===void 0?l.exports:n))}).catch(function(t){throw delete r[e],delete c[e],a[e]=t,y(t)})}function U(e){var r=t[e],i=W(e),o=I(),s=L(e,o);try{var c=u(r,r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return z(t,e)}catch(n){throw w(e,t,n)}}));if(c&&typeof c.then==`function`)throw C(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=c===void 0?s.exports:c,n[e]}catch(t){throw a[e]=t,y(t)}}function W(e){var o=function(o,s,u){if(Array.isArray(o))return R(o,s,u,e);var d=O(o,e);if(d in a)throw y(a[d]);return d in n?n[d]:d in c&&l>0?c[d]:d in r||d in i?D(V(o,e)):d in t?z(o,e):D(V(o,e))};return o.resolve=function(t){return O(t,e)},o.toUrl=function(t){return M(t,e)},o.sync=function(t){return z(t,e)},o}function G(t,n){var r=e!==void 0&&e?e.moduleTransport:null;if(typeof r!=`function`||e.blobBlocked)return null;try{var i=r(t,n);return i&&typeof i.then==`function`?i:null}catch{return null}}function K(t,n){if(t in i)return i[t];if(s[t]&&s[t]!==t)return i[t]=K(s[t],n),i[t];var r=M(t);if(document.querySelector(`script[src="`+r+`"]`))return i[t]=Promise.resolve(),i[t];var a=performance.now();function o(e){return J(t,r,!1,n).then(function(n){return q(t,e,a),n})}var c=G(r,t);return c?(i[t]=c.then(function(r){return r?J(t,URL.createObjectURL(r),!0,n).then(function(e){return q(t,`transport`,a),e},function(){return e.blobBlocked=!0,o(`network-after-blob`)}):o(`network-fallback`)},function(){return o(`network-after-transport-error`)}),i[t]):(i[t]=o(`network`),i[t])}function q(t,n,r){_()&&((e.loaderTimings||=[]).push({id:t,via:n,ms:Math.round((performance.now()-r)*10)/10}),typeof e.onLoaderTiming==`function`&&e.onLoaderTiming())}function J(e,t,n,r){return new Promise(function(a,o){var s=!1,c=document.createElement(`script`);c.src=t,c.setAttribute(`data-amd-module-id`,e),c.async=!0,r===`low`&&(c.fetchPriority=`low`);var l=p>0?p*1e3:0,u=null;function d(){u!=null&&(clearTimeout(u),u=null),c.onload=null,c.onerror=null,n&&typeof URL<`u`&&URL.revokeObjectURL&&URL.revokeObjectURL(t)}function f(e){s||(s=!0,d(),e())}l>0&&(u=setTimeout(function(){f(function(){delete i[e],o(y(C(e,Error(`Timed out after `+l+`ms loading script: `+t+`.`+x()))))})},l)),c.onload=function(){f(function(){a()})},c.onerror=function(){f(function(){delete i[e],o(y(C(e,Error(`Failed to load script: `+t+`.`+x()))))})},document.head.appendChild(c)})}R.config=function(e){if(e.baseUrl&&(d=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(f[t]=e.paths[t]);if(e.bundles){for(var n in e.bundles)if(Object.prototype.hasOwnProperty.call(e.bundles,n))for(var r=0;r<e.bundles[n].length;r++)s[e.bundles[n][r]]=n}if(e.graph)for(var i in o||={},e.graph)Object.prototype.hasOwnProperty.call(e.graph,i)&&(o[i]=e.graph[i]);typeof e.waitSeconds==`number`&&e.waitSeconds>=0&&(p=e.waitSeconds)},R.warm=function(e,r){var i=r&&r.priority;return Promise.all((e||[]).map(function(e){var r=O(e);if(r in a)return Promise.reject(a[r]);var o=r in t||r in n?Promise.resolve():K(r,i);return B(r,i),o})).then(function(){})},R.modules=t,R.resolved=n,R.errors=a,R.toUrl=M,R.sync=z,e.define=P,e.require=R,e.syncRequire=z,e.diagnosticsBuffer=h})(),e.require.config({baseUrl:`./`});
|
|
2
2
|
|
|
3
|
-
__emailmaker__.require.config({ paths: {"js/iframe-eblock.js":"js/iframe-eblock.body.
|
|
3
|
+
__emailmaker__.require.config({ paths: {"js/iframe-eblock.js":"js/iframe-eblock.body.d5e4bde1.js"} });
|
|
4
4
|
|
|
5
|
-
__emailmaker__.require.config({"graph":{"js/iframe-eblock.js":["js/
|
|
5
|
+
__emailmaker__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.C66zL1zp.js"],"js/iframe.js":["js/elMarkupHelper.C66zL1zp.js"],"js/darkreader.CLd5EML2.js":[],"js/elMarkupHelper.C66zL1zp.js":[],"js/rules.CnnzdMsj.js":[],"js/typograf.all.Mun9CrLC.js":[]}});
|
|
6
6
|
|
|
7
7
|
__emailmaker__.require("js/iframe-eblock.js");
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
__emailmaker__.define("js/iframe.js",["require","exports","module","js/elMarkupHelper.C66zL1zp.js"],function(Q,pt,yt){const a=Q("./elMarkupHelper.C66zL1zp.js");var ee="confetti:open-settings",te="confetti:start",oe="confetti:stop",ie="confetti:complete",re=class{constructor(e){a._defineProperty(this,"_app",void 0),a._defineProperty(this,"_state","idle"),a._defineProperty(this,"_activeEffects",new Map),a._defineProperty(this,"_onDocumentClick",t=>{const r=t.target;if(!r)return;const n=r.closest(".confetti-placeholder");if(!n)return;const l=n.getAttribute("data-confetti-preset")||void 0;this._app.use("MessageService").send(ee,{preset:l})}),this._app=e}init(){const e=this._app.use("MessageService");e.addListener(te,t=>this._handleStart(t.id,t.options)),e.addListener(oe,t=>this._handleStop(t.id)),document.addEventListener("click",this._onDocumentClick,!0)}_handleStart(e,t){const r={id:e,options:t,startTime:Date.now()};this._activeEffects.set(e,r),this._state="running",this.onEffectStart(e,t),this.renderConfetti(e,t);const n=t.duration||3e3;setTimeout(()=>{this._completeEffect(e)},n)}_handleStop(e){if(this._state="stopping",e==="all")for(const t of this._activeEffects.keys())this._completeEffect(t,!0);else this._completeEffect(e,!0)}_completeEffect(e,t=!1){this._activeEffects.get(e)&&(this._activeEffects.delete(e),this.clearConfetti(e,t),this.onEffectComplete(e),this._activeEffects.size===0&&(this._state="idle"),this._app.use("MessageService").send(ie,{id:e}))}onEffectStart(e,t){}onEffectComplete(e){}getState(){return this._state}isRunning(){return this._state==="running"}dispose(){document.removeEventListener("click",this._onDocumentClick,!0),this._handleStop("all"),this._activeEffects.clear()}},ne=class extends re{constructor(e){super(e),a._defineProperty(this,"_containers",new Map)}renderConfetti(e,t){const r=this._getRenderBounds(),n=document.createElement("div");n.id=`confetti-${e}`,n.setAttribute("data-confetti-overlay","true"),n.style.cssText=`
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: ${r.top}px;
|
|
4
|
+
left: ${r.left}px;
|
|
5
|
+
width: ${r.width}px;
|
|
6
|
+
height: ${r.height}px;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
z-index: 2147483647;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
display: block;
|
|
11
|
+
line-height: 0;
|
|
12
|
+
font-size: 0;
|
|
13
|
+
`,n.innerHTML=this._generateStaticSvg(t,r.width,r.height),document.body.appendChild(n),this._containers.set(e,n)}clearConfetti(e,t){const r=this._containers.get(e);r&&(r.remove(),this._containers.delete(e))}_generateStaticSvg(e,t,r){const{particleCount:n=100,angle:l=90,spread:o=45,colors:i=["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff"],originX:s=.5,originY:d=.5}=e,c=Math.max(t,320),u=Math.max(r,220),b=Math.max(Math.min(c,u)*.48,140),f=(Math.max(e.duration||3e3,1800)/1e3).toFixed(2),m=s===.5?.22:s,p=d===.5?.62:d,y=c*m,h=u*p,k=[],G=[];for(let R=0;R<n;R++){const V=(l-o/2+Math.random()*o)*(Math.PI/180),X=30+Math.random()*b,dt=y+Math.cos(V)*X,ut=h-Math.sin(V)*X,w=dt-y,A=ut-h,K=i[Math.floor(Math.random()*i.length)],S=6+Math.random()*10,L=Math.random()*360,J=90+Math.random()*180,C=.78+Math.random()*.22,E=(1.6+Math.random()*1.8).toFixed(2),T=(Math.random()*.35).toFixed(2);if(Math.random()>.5?k.push(`
|
|
14
|
+
<g transform="translate(${y} ${h})">
|
|
15
|
+
<circle cx="0" cy="0" r="${S/2}" fill="${K}" opacity="${C}">
|
|
16
|
+
<animateTransform attributeName="transform" type="translate" values="0 0; ${w*.72} ${A*.72}; ${w} ${A}" dur="${E}s" begin="${T}s" repeatCount="indefinite" />
|
|
17
|
+
<animate attributeName="opacity" values="0; ${C}; ${C}; 0" dur="${E}s" begin="${T}s" repeatCount="indefinite" />
|
|
18
|
+
<animate attributeName="r" values="${Math.max(S*.28,2)}; ${S/2}; ${Math.max(S*.18,1.5)}" dur="${E}s" begin="${T}s" repeatCount="indefinite" />
|
|
19
|
+
</circle>
|
|
20
|
+
</g>
|
|
21
|
+
`):k.push(`
|
|
22
|
+
<g transform="translate(${y} ${h}) rotate(${L})">
|
|
23
|
+
<rect x="${-S/2}" y="${-Math.max(S/4,2)}" width="${S}" height="${Math.max(S/2,4)}" fill="${K}" opacity="${C}" rx="2" ry="2">
|
|
24
|
+
<animateTransform attributeName="transform" type="translate" values="0 0; ${w*.74} ${A*.74}; ${w} ${A}" dur="${E}s" begin="${T}s" repeatCount="indefinite" additive="sum" />
|
|
25
|
+
<animateTransform attributeName="transform" type="rotate" values="${L}; ${L+J}; ${L+J*1.7}" dur="${E}s" begin="${T}s" repeatCount="indefinite" additive="sum" />
|
|
26
|
+
<animate attributeName="opacity" values="0; ${C}; ${C}; 0" dur="${E}s" begin="${T}s" repeatCount="indefinite" />
|
|
27
|
+
</rect>
|
|
28
|
+
</g>
|
|
29
|
+
`),R<Math.max(8,Math.floor(n/6))){const g=10+Math.random()*10,mt=y+w*(.35+Math.random()*.45),ft=h+A*(.2+Math.random()*.5),Z=(Math.random()*.6).toFixed(2);G.push(`
|
|
30
|
+
<g transform="translate(${mt} ${ft})">
|
|
31
|
+
<path
|
|
32
|
+
d="M0 ${-g/2} L${g/6} ${-g/6} L${g/2} 0 L${g/6} ${g/6} L0 ${g/2} L${-g/6} ${g/6} L${-g/2} 0 L${-g/6} ${-g/6} Z"
|
|
33
|
+
fill="rgba(255,255,255,0.9)"
|
|
34
|
+
opacity="0"
|
|
35
|
+
filter="url(#confettiGlow)"
|
|
36
|
+
>
|
|
37
|
+
<animate attributeName="opacity" values="0;0.9;0" dur="1.4s" begin="${Z}s" repeatCount="indefinite" />
|
|
38
|
+
<animateTransform attributeName="transform" type="scale" values="0.6;1;0.6" dur="1.4s" begin="${Z}s" repeatCount="indefinite" />
|
|
39
|
+
</path>
|
|
40
|
+
</g>
|
|
41
|
+
`)}}return`
|
|
42
|
+
<svg
|
|
43
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
44
|
+
viewBox="0 0 ${c} ${u}"
|
|
45
|
+
width="${c}"
|
|
46
|
+
height="${u}"
|
|
47
|
+
preserveAspectRatio="none"
|
|
48
|
+
style="display:block;width:100%;height:100%;pointer-events:none"
|
|
49
|
+
>
|
|
50
|
+
<defs>
|
|
51
|
+
<filter id="confettiGlow" x="-50%" y="-50%" width="200%" height="200%">
|
|
52
|
+
<feGaussianBlur stdDeviation="2.5" result="blur" />
|
|
53
|
+
<feMerge>
|
|
54
|
+
<feMergeNode in="blur" />
|
|
55
|
+
<feMergeNode in="SourceGraphic" />
|
|
56
|
+
</feMerge>
|
|
57
|
+
</filter>
|
|
58
|
+
<radialGradient id="confettiAura" cx="50%" cy="50%" r="50%">
|
|
59
|
+
<stop offset="0%" stop-color="rgba(255,255,255,0.95)" />
|
|
60
|
+
<stop offset="45%" stop-color="rgba(255,255,255,0.32)" />
|
|
61
|
+
<stop offset="100%" stop-color="rgba(255,255,255,0)" />
|
|
62
|
+
</radialGradient>
|
|
63
|
+
<linearGradient id="confettiTrail" x1="0" y1="0" x2="1" y2="1">
|
|
64
|
+
<stop offset="0%" stop-color="rgba(255,255,255,0.9)" />
|
|
65
|
+
<stop offset="100%" stop-color="rgba(255,255,255,0)" />
|
|
66
|
+
</linearGradient>
|
|
67
|
+
</defs>
|
|
68
|
+
<rect width="100%" height="100%" fill="transparent" />
|
|
69
|
+
<g transform="translate(${y} ${h})">
|
|
70
|
+
<circle cx="0" cy="0" r="18" fill="url(#confettiAura)" opacity="0.7">
|
|
71
|
+
<animate attributeName="r" values="12;34;18" dur="${f}s" repeatCount="indefinite" />
|
|
72
|
+
<animate attributeName="opacity" values="0.75;0.18;0.55" dur="${f}s" repeatCount="indefinite" />
|
|
73
|
+
</circle>
|
|
74
|
+
<circle cx="0" cy="0" r="4" fill="#ffffff" opacity="0.95" filter="url(#confettiGlow)">
|
|
75
|
+
<animate attributeName="r" values="3;7;3" dur="1.6s" repeatCount="indefinite" />
|
|
76
|
+
<animate attributeName="opacity" values="0.7;1;0.55" dur="1.6s" repeatCount="indefinite" />
|
|
77
|
+
</circle>
|
|
78
|
+
<path d="M0 0 L58 -14" stroke="url(#confettiTrail)" stroke-width="5" stroke-linecap="round" opacity="0.65">
|
|
79
|
+
<animate attributeName="opacity" values="0.1;0.7;0.1" dur="1.8s" repeatCount="indefinite" />
|
|
80
|
+
</path>
|
|
81
|
+
</g>
|
|
82
|
+
${G.join("")}
|
|
83
|
+
${k.join("")}
|
|
84
|
+
</svg>
|
|
85
|
+
`}_getRenderBounds(){const e=this._getPlaceholderElement();if(e){const n=e.getBoundingClientRect(),l=320,o=220,i=Math.max(document.documentElement.clientWidth,window.innerWidth||0),s=Math.max(document.documentElement.clientHeight,window.innerHeight||0),d=n.right+12,c=n.left-l-12,u=d+l<=i?d:Math.max(8,c);return{top:Math.min(Math.max(8,n.top+n.height/2-o/2),Math.max(8,s-o-8))+window.scrollY,left:u+window.scrollX,width:l,height:o}}const t=this._getRenderRoot();if(!t)return{top:window.scrollY,left:window.scrollX,width:Math.max(window.innerWidth,800),height:Math.max(window.innerHeight,600)};const r=t.getBoundingClientRect();return{top:r.top+window.scrollY,left:r.left+window.scrollX,width:Math.max(Math.ceil(t.scrollWidth||r.width),Math.ceil(r.width),320),height:Math.max(Math.ceil(t.scrollHeight||r.height),Math.ceil(r.height),240)}}_getRenderRoot(){for(const e of['[em="block-contaner"]',".es-wrapper-color",".es-content-body",".es-content","body > table","body > div"]){const t=document.querySelector(e);if(t instanceof HTMLElement)return t}return document.body}_getPlaceholderElement(){const e=document.querySelector(".confetti-placeholder");return e instanceof HTMLElement?e:null}onEffectStart(e,t){}onEffectComplete(e){}dispose(){for(const e of this._containers.values())e.remove();this._containers.clear(),super.dispose()}},le=[ne];function ae(e){const t=e.find(i=>i instanceof DocumentType),r=document.documentElement;let n=e.find(i=>i instanceof HTMLHtmlElement);if(!n){n=r||document.createElement("html");let i=e.find(d=>d instanceof HTMLHeadElement);if(i&&i.parentNode!==n){const d=document.head;if(d){n.replaceChild(i,d);for(const c of d.childNodes)i.appendChild(c)}else n.insertBefore(i,n.firstChild)}let s=e.find(d=>d instanceof HTMLBodyElement);if(!s){s=document.body||document.createElement("body");const d=e.filter(c=>c!==i&&c!==t).reverse();if(d.length){let c=null;for(const u of d)(u.parentNode!==s||u.nextSibling!==c)&&s.insertBefore(u,c),c=u}}if(s.parentNode!==n){const d=document.body;if(d){n.replaceChild(s,d);for(const c of d.childNodes)s.appendChild(c)}else n.appendChild(s)}}const l=[...n.childNodes];if(!l.find(i=>i instanceof HTMLHeadElement)){const i=e.find(s=>s instanceof HTMLHeadElement)||document.createElement("head");n.insertBefore(i,n.firstChild)}if(!l.find(i=>i instanceof HTMLBodyElement)){const i=e.find(s=>s instanceof HTMLBodyElement)||document.createElement("body");n.appendChild(i)}const o=document.doctype;return o!==t&&(o?t?document.replaceChild(t,o):document.removeChild(o):t&&document.insertBefore(t,document.firstChild)),r!==n&&(r?n?document.replaceChild(n,r):document.removeChild(r):n&&document.appendChild(n)),e}var se='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',ce={name:"email",mapHTMLRoots:ae,createRoot:(e,t)=>{const n=t.length;let l=e.find(c=>c.tag==="html"),o=e.find(c=>c.type===a.NodeType.DOCTYPE);if(!l){e=e.filter(c=>c!==o),l=new a.Node(0,n,e),l.createdBy="createRoot",l.tag="html",l.children=e;for(const c of e)c.parent=l;l.startTagEnd=0,l.endTagStart=n,e=[l]}let i=l.children.find(c=>c.tag==="body"),s=l.children.find(c=>c.tag==="head");if(!i){const c=l.children.filter(u=>u!==s);i=new a.Node(s?s.end:l.startTagEnd||l.start,l.endTagStart||l.end,c,l),i.createdBy="createRoot",i.startTagEnd=i.start,i.endTagStart=i.end;for(const u of c)u.parent=i;i.tag="body",l.children=s?[s,i]:[i]}s||(s=new a.Node(l.startTagEnd||l.start,l.startTagEnd||l.start,[],l),s.createdBy="createRoot",s.startTagEnd=s.start,s.endTagStart=s.start,s.tag="head",l.children.unshift(s)),o||(o=new a.Node(0,0,[]),o.createdBy="createRoot",o.startTagEnd=0,o.endTagStart=0,o.type=a.NodeType.DOCTYPE,o.content=se,e.unshift(o));const d=new a.Node(0,n,e);d.type=a.NodeType.ROOT;for(const c of e)c.parent=d,c.type===a.NodeType.ELEMENT&&c.tag!=="html"?(c.type=a.NodeType.COMMENT,c.content=t.substring(c.start,c.end),c.children=[]):c.type===a.NodeType.HTML&&(c.type=a.NodeType.COMMENT,c.content=c.content||"");return d}},bt=a.require_iframeResizer_contentWindow_min();function _(){let e=null;if(document.querySelector(".preheader"))document.querySelectorAll(".preheader").length>1?document.querySelectorAll(".preheader").forEach(t=>{t.innerHTML.match(/[a-zA-Zа-яА-Я0-9]/gi)&&(e=t)}):e=document.querySelector(".preheader");else if(document.querySelector(".mcnPreviewText"))e=document.querySelector(".mcnPreviewText");else if(document.querySelector(".mail_preheader"))e=document.querySelector(".mail_preheader");else if(document.querySelector(".dvPreheader"))e=document.querySelector(".dvPreheader");else if(document.querySelector('[class*="letteros"]')||document.querySelector("[letteros-link]"))e=document.querySelector("body > div");else for(let t of document.querySelectorAll('[style*="display:none"], [style*="display: none"]'))if(t instanceof HTMLElement&&(parseInt(t.style.opacity)==0||t.style["mso-hide"]=="all"||t.style.overflow=="hidden"||parseInt(t.style.maxHeight)==0||parseInt(t.style.width)==0)&&t.tagName!="IMG"&&t.tagName!="TABLE"&&[...t.childNodes].filter(r=>r.nodeType==Node.TEXT_NODE).length>0){e=t;break}return e&&e.querySelector("div")?e=e.querySelector("div"):e&&e.querySelector("span")&&!e.querySelector("span")?.classList.contains("em-code")&&(e=e.querySelector("span")),e??void 0}function H(e){return!!e&&!document.querySelector("title")}function P(){const e=document.querySelector("title")?.textContent?.replaceAll(" "," ").replaceAll("‌","").replace(/\u200C/g,"").replaceAll("<!--","").replaceAll("-->","")||"";return a.stripSubjectTags(e).replace(/\s+/g," ").trim()}function B(e=_()){const t=document.createElement("div");return t.innerHTML=e?.innerHTML||"",t.querySelectorAll(".em-code").forEach(r=>r.remove()),a.getElementInnerHTML(t).trim().replaceAll(/<vk-snippet-end\/>/g,"").replaceAll(/[\u034F\u200C\u2007\uFEFF]+/g,"").replaceAll("&","&").replaceAll("͏","").replaceAll("","").replaceAll(" ","").replaceAll("‌","").replace(/\u200C/g,"").replaceAll("<!--","").replaceAll("-->","").replace(/(?: |\s)+$/,"").trim()}function M(e){e.nodeName=="#comment"&&e.textContent&&e.textContent.indexOf("mso")>=0?e.remove():e.previousSibling&&M(e.previousSibling)}function F(e){e.nodeName=="#comment"&&e.textContent&&e.textContent.indexOf("endif")>=0?e.remove():e.nextSibling&&F(e.nextSibling)}var de="͏‌  ",I="#f0f1f3",W='<span style="display:none !important;font-size:0;height:0;line-height:0;max-height:0;max-width:0;opacity:0;overflow:hidden;visibility:hidden;width:0">⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀'+new Array(200).fill(" ‌").join("")+"</span>";function x(e){return!!e&&e instanceof HTMLElement&&e.tagName==="SPAN"&&e.style&&e.style.display==="none"&&e.style.fontSize==="0px"&&e.style.visibility==="hidden"}function D(e){const t=e.nextSibling;return t&&a.isComment(t)&&t.data==="<![endif]"?t:null}function ue(e){const t=D(e);t&&t.nextSibling&&x(t.nextSibling)?t.nextSibling.remove():!t&&e.nextSibling&&x(e.nextSibling)&&e.nextSibling.remove();const r=a.parseFromString(W);r.length&&(t&&t.parentNode?t.parentNode.insertBefore(r[0],t.nextSibling):e.parentNode&&e.parentNode.insertBefore(r[0],e.nextSibling))}var O=e=>{M(e),F(e);const t=e.nextElementSibling;t instanceof HTMLElement&&t.style&&t.style.color==="transparent"&&(M(t),F(t),t.remove());const r=e instanceof HTMLElement?D(e):null;for(r&&r.nextSibling&&x(r.nextSibling)?r.nextSibling.remove():e.nextSibling&&x(e.nextSibling)&&e.nextSibling.remove();e.previousSibling&&a.isTextNode(e.previousSibling)&&e.previousSibling.data.trim()==="";)e.previousSibling.remove();for(;e.nextSibling&&a.isTextNode(e.nextSibling)&&e.nextSibling.data.trim()==="";)e.nextSibling.remove();e.remove()};function me(e){return!(e.tagName!=="DIV"||a.rgbToHex(e.style.color)!==I||e.style.lineHeight!=="0px"||e.style.fontSize!=="0px"||!e.previousSibling||!a.isComment(e.previousSibling)||e.previousSibling.data!=="[if !mso]><!"||!e.nextSibling||!a.isComment(e.nextSibling)||e.nextSibling.data!=="<![endif]")}function fe(e,t){let r=_(),n="";(e.length||t)&&(e=e.endsWith(" ")?e:e+" ",e=e+"<vk-snippet-end>͏</vk-snippet-end>͏",n=e.padEnd(e.length+5460,de));const l=a.parseFromString(n);if(r&&!me(r)&&(O(r),r=null),r)l.length?(r.replaceChildren(...l),ue(r)):O(r);else if(l.length){const o=document.createElement("div");o.classList.add("preheader"),o.style.color=I,o.style.lineHeight=o.style.fontSize="0px",o.replaceChildren(...l),document.body?.prepend(o),o.insertAdjacentHTML("afterend",W)}}function pe(e,t){return!!t&&(B()||"")!==e}function ye(e,t){return!!t&&(document.querySelector("title")?.textContent??"")!==e}function be(e,t){let r;const n=new a.Disposable;let l=!1,o="";const i=c=>{l=!1,r=void 0,o=c.guid},s=c=>(l=!0,r=B()||"",a.messageService.sendAsync(a.EVENT_TYPES.APPLICATION_PREHEADER_UPDATE,{guid:o,value:r})),d=async({guid:c,value:u,force:b,fromAI:f,echo:m,undoStep:p})=>{b||await t.whenEditorLostFocusAsync("preheader"),typeof u=="string"&&c===o&&(r!==u||pe(u,b))&&(r=u,fe(u),await e.commit(!!f||!!p,!0),(f||m)&&(await e.whenSent(),a.messageService.send(a.EVENT_TYPES.APPLICATION_PREHEADER_UPDATE,{guid:o,value:r,forced:!!m&&!f})))};return n.addDisposable(a.messageService.addListenerAsync(a.EVENT_TYPES.SANDBOX_PREHEADER_UPDATE,d)),n.addDisposable(a.messageService.addListenerAsync(a.EVENT_TYPES.SANDBOX_INIT_START,i)),n.addDisposable(a.messageService.addListenerAsync(a.EVENT_TYPES.SANDBOX_INITED,s)),n.addDisposable(e.onChange(()=>{if(l){const c=B()||"";c!==r&&(r=c,a.messageService.send(a.EVENT_TYPES.APPLICATION_PREHEADER_UPDATE,{guid:o,value:r}))}})),n}function he(e,t){let r;const n=new a.Disposable;let l="",o=!1;const i=c=>{o=!1,r=void 0,l=c.guid},s=c=>{if(!(c?.guid&&l&&c.guid!==l))return o=!0,H(r)||(r=P()||""),a.messageService.sendAsync(a.EVENT_TYPES.APPLICATION_SUBJECT_UPDATE,{guid:l,value:r})},d=async({guid:c,value:u,force:b,fromAI:f,echo:m,undoStep:p})=>{b||await t.whenEditorLostFocusAsync("subject"),typeof u=="string"&&c===l&&(r!==u||ye(u,b))&&(r=u,document.title=u,await e.commit(!!f||!!p,!0),(f||m)&&(await e.whenSent(),a.messageService.send(a.EVENT_TYPES.APPLICATION_SUBJECT_UPDATE,{value:u,guid:l,forced:!!m&&!f})))};return n.addDisposable(a.messageService.addListenerAsync(a.EVENT_TYPES.SANDBOX_SUBJECT_UPDATE,d)),n.addDisposable(a.messageService.addListenerAsync(a.EVENT_TYPES.SANDBOX_INIT_START,i)),n.addDisposable(a.messageService.addListenerAsync(a.EVENT_TYPES.SANDBOX_INITED,s)),n.addDisposable(e.onChange(()=>{if(o){if(H(r))return;const c=P()||"";c!==r&&(r=c,a.messageService.send(a.EVENT_TYPES.APPLICATION_SUBJECT_UPDATE,{value:c,guid:l}))}})),n}function ge(){return a.messageService.addListenerAsync(a.EVENT_TYPES.SANDBOX_IS_EMAIL_EMPTY,e=>{const t=document.querySelector(".em-narrow-table");return t?!(t.querySelectorAll("tr").length>0):!0})}function Se(e){return{blocks:e.querySelectorAll('[em="block"]').length,textLength:(e.body?.textContent??"").replace(/\s+/g," ").trim().length}}function ve(){return a.messageService.addListenerAsync(a.EVENT_TYPES.SANDBOX_CANVAS_HEALTH,()=>Se(document))}function Ce(e){if(!e)return{backgroundColor:void 0,backgroundImage:void 0,backgroundPositionX:void 0,backgroundPositionY:void 0,backgroundRepeat:void 0,backgroundSize:void 0};const t={};if(e.style.backgroundColor?t.backgroundColor=e.style.backgroundColor:e.getAttribute("bgcolor")&&(t.backgroundColor=e.getAttribute("bgcolor")||void 0),e.style.backgroundImage){const r=e.style.backgroundImage;t.backgroundImage=[{type:"url",value:r?r.substring(5,r.length-2):""}]}else e.getAttribute("background")&&(t.backgroundImage=[{type:"url",value:e.getAttribute("background")||""}]);return t.backgroundPositionX=e.style.backgroundPositionX||void 0,t.backgroundPositionY=e.style.backgroundPositionY||void 0,t.backgroundRepeat=e.style.backgroundRepeat||void 0,t.backgroundSize=e.style.backgroundSize||void 0,t}function Ee(e){if(e){if(document.querySelector(".es-header")||document.querySelector(".es-content")||document.querySelector(".es-footer")){const t=e.querySelector(".es-content"),r=e.querySelector(".es-content-body");return parseFloat(t?.style.width||"")||parseFloat(r?.style.width||"")||void 0}if(document.querySelector(".nl-container")&&document.querySelector(".row")){const t=document.querySelector(".row-content");return parseFloat(t?.style.width||"")||parseFloat(t?.getAttribute("width")||"")||void 0}if(document.querySelector(".nl-container")&&!document.querySelector(".row")){const t=e.querySelector('[style*="max-width"]');return parseFloat(t?.style.maxWidth||"")||void 0}if(document.querySelector('[class*="letteros"]')||document.querySelector("[letteros-link]")){const t=e.querySelector("table:first-child");if(t?.style.maxWidth)return parseFloat(t.style.maxWidth)||void 0}if(document.querySelector(".container-div")){const t=e.querySelector("div:first-child");if(t?.style.maxWidth)return parseFloat(t.style.maxWidth)||void 0}if(document.querySelector(".email-container")){const t=document.querySelector(".email-container");return parseFloat(t?.getAttribute("width")||"")||void 0}return Te(e)}}function Te(e){const t=e.querySelector("table:first-child");if(!t)return;const r=parseFloat(t.getAttribute("width")||""),n=parseFloat(t.style.maxWidth||"");if(r>700||n>700){const o=e.querySelector('table:first-child [em="block"] > td > table');if(o){const i=o.getAttribute("width");return i&&i.indexOf("%")===-1?parseFloat(i):o.style.maxWidth?parseFloat(o.style.maxWidth):e.querySelector('table:first-child [em="block"]')?.clientWidth||660}return 660}const l=t.getAttribute("width");if(l&&l.indexOf("%")===-1)return parseFloat(l);if(t.style.maxWidth)return parseFloat(t.style.maxWidth)}function ke(e,t){const r={shutdown:void 0,styles:!0};if(!e||!t)return r;const n=e.querySelector("table:first-child");if(!n)return r;const l=n.getAttribute("width"),o=parseFloat(n.style.minWidth||"");return l&&l.indexOf("%")===-1&&o===parseFloat(l)||e.querySelector(".noresp-em-narrow-table")?{shutdown:!1,styles:!1}:{shutdown:!0,styles:!0}}function we(e,t){!e||!t||document.querySelector(".noresp-em-narrow-table, .em-narrow-table")&&(e.getBoundingClientRect().width<=t||document.querySelectorAll("img").forEach(r=>{const n=r.closest("td")?.getBoundingClientRect().width;n&&parseFloat(r.getAttribute("width")||"")>n&&n>10&&r.style.display!=="none"&&(r.setAttribute("width",String(Math.ceil(n))),r.style.maxWidth=Math.ceil(n)+"px")}))}function Ae(e){const t=e.findGlobalHolder();e.setGlobalHolder(t);const r={operation:"application_email_settings_set",settings:{subject:e.getSubject(),preheader:e.getPreheader(),responsive:{shutdown:void 0,styles:!0},structuresMedia:!(document.querySelector('[em="block"] div[style*="display: inline-block"]')&&!document.querySelector('[em="block"] .em-mob-wrap, [em="block"] .noresp-em-mob-wrap')),usedColors:e.getUsedColors(),noBlocks:!1,width:{value:void 0,dim:"px"},backgroundColor:void 0,backgroundImage:void 0,backgroundPositionX:void 0,backgroundPositionY:void 0,backgroundRepeat:void 0,backgroundSize:void 0,backgroundColorContent:void 0}};if(t){const s=Ce(t);s.backgroundColor&&s.backgroundColor.startsWith("rgb")&&(s.backgroundColor=e.rgbToHex(s.backgroundColor)),Object.assign(r.settings,s)}e.elMarkupHelper(),document.querySelector('[em="block"]')||(r.settings.noBlocks=!0);const n=Ee(t),l=e.state.get("emailWidth"),o=e.getEmailWidth(),i=typeof l=="number"&&l>=320?l:typeof o=="number"&&o>=320?o:n;r.settings.width.value=i,t&&(r.settings.responsive=ke(t,i),typeof i=="number"&&e.state.set("emailWidth",i)),e.messageService.send(r),we(t,e.getEmailWidth())}function Be(e,t=!1){e.state.set("lockEditorInit",!0),document.body&&(e.removeHiddenClasses(document),Ae(e),e.commit(!1))}function N(e,t){t[1]==="Sans Serif"?e.style.fontFamily="Helvetica, Arial, sans-serif":t[1]==="Serif"?e.style.fontFamily='"Times New Roman", Times, serif':t[1]==="Project Fonts"&&a.applyProjectFontInlineFallback(e,t[2])}function xe(e,t){const r=e?.toLowerCase();return r==="#ffffff"&&r!==t?.toLowerCase()}function Le(e,t){const{lockEditor:r,commonStyles:n,globalHolder:l}=t;if(r)return;const o=document.querySelectorAll('div[style*="font-family"]');_e(e,o,t),Pe(e,o,t),Fe(e,t),Ne(e,t),Ie(e,t),We(e,t);const i={operation:"application_commonStyles_update",settings:{commonStyles:n}};t.messageService.send(i)}function _e(e,t,r){const{commonStyles:n,rgbToHex:l}=r;if(e.textFontFamily!==void 0){let o=[];t.forEach(i=>{const s=i;let d;!s.style.display&&parseFloat(s.style.fontSize)<=20&&(o=e.textFontFamily,o[0]==="Safe Fonts"?(s.style.fontFamily=o[1],(d=[...s.classList].filter(c=>c.startsWith("em-font-"))[0])&&(s.classList.remove(d),n.text.fontFamily?.[2]&&r.clearLinkTags({elem:document.documentElement,fontFamilyClassName:a.buildEmFontClassName(n.text.fontFamily[2],n.text.fontFamily[3])}),r.clearProjectFontFaces())):o[0]==="Google Fonts"&&(N(s,o),r.removeClassesByPrefix(s,"em-font"),s.classList.add(r.createFontClassName(o)),a.markProjectFontClass(s,o)))}),o.length>0&&o[0]==="Google Fonts"&&r.addFontFamilyClass({fontFamilyArray:o}),r.clearProjectFontFaces(),n.text.fontFamily=e.textFontFamily}e.textFontSize!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)<=20&&parseFloat(i.style.fontSize)>14&&(i.style.fontSize=e.textFontSize+"px")}),n.text.fontSize=e.textFontSize),e.textLineHeight!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)<=20&&parseFloat(i.style.fontSize)>14&&(i.style.lineHeight=e.textLineHeight+"px")}),n.text.lineHeight=e.textLineHeight),e.textColor!==void 0&&(t.forEach(o=>{const i=o;!i.closest(".em-contrast-block")&&!i.style.display&&parseFloat(i.style.fontSize)<=20&&!xe(l(i.style.color),l(n.text.color))&&(i.style.color=e.textColor)}),n.text.color=e.textColor),e.textContrastColor!==void 0&&(t.forEach(o=>{const i=o;i.closest(".em-contrast-block")&&!i.style.display&&parseFloat(i.style.fontSize)<=20&&(i.style.color=e.textContrastColor)}),n.text.contrastColor=e.textContrastColor),e.textPaddingBottom!==void 0&&(t.forEach(o=>{const i=o;if(i.closest('[em="atom"]')){if(!i.style.display&&parseFloat(i.style.fontSize)<=20&&i.closest("table")?.getAttribute("em")=="atom"){const s=i.closest('[em="atom"]')?.querySelector(":scope > tr > td, :scope > tbody > tr > td");s&&(s.style.paddingBottom=e.textPaddingBottom+"px",s.querySelector(":scope > .em-vindent-paddingBottom")?.remove())}}else if(i.nextElementSibling){const s=i.nextElementSibling;if(!i.style.display&&parseFloat(i.style.fontSize)<=20&&i.parentElement?.getAttribute("em")=="atom"&&s&&s.tagName=="TABLE"&&(s.classList.contains("em-vindent-table")||s.querySelector("td")?.innerHTML=="")){s.querySelector("td")?.setAttribute("height",e.textPaddingBottom);const d=s.querySelector(".em-element-vindent-value");d&&(d.innerHTML=e.textPaddingBottom+"px",e.textPaddingBottom<30?s.querySelector(".em-vindent")?.classList.add("em-vindent_low"):s.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}),n.text.paddingBottom=e.textPaddingBottom)}function Pe(e,t,r){const{commonStyles:n,rgbToHex:l}=r;if(e.headingFontFamily!==void 0){let o=[];t.forEach(i=>{const s=i;let d;!s.style.display&&parseFloat(s.style.fontSize)>20&&l(s.style.color).toLowerCase()!=="#eb3737"&&(o=e.headingFontFamily,o[0]==="Safe Fonts"?(s.style.fontFamily=o[1],(d=[...s.classList].filter(c=>c.startsWith("em-font-"))[0])&&(s.classList.remove(d),n.headings.fontFamily?.[2]&&r.clearLinkTags({elem:document.documentElement,fontFamilyClassName:a.buildEmFontClassName(n.headings.fontFamily[2],n.headings.fontFamily[3])}),r.clearProjectFontFaces())):o[0]==="Google Fonts"&&(N(s,o),r.removeClassesByPrefix(s,"em-font"),s.classList.add(r.createFontClassName(o)),a.markProjectFontClass(s,o)))}),o.length>0&&o[0]==="Google Fonts"&&r.addFontFamilyClass({fontFamilyArray:o}),r.clearProjectFontFaces(),n.headings.fontFamily=e.headingFontFamily}e.headingFontSize!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>=20&&l(i.style.color).toLowerCase()!=="#eb3737"&&parseFloat(i.style.fontSize)<=40&&(i.style.fontSize=e.headingFontSize+"px")}),n.headings.fontSize=e.headingFontSize),e.headingLineHeight!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&parseFloat(i.style.fontSize)<=40&&(i.style.lineHeight=e.headingLineHeight+"px")}),n.headings.lineHeight=e.headingLineHeight),e.headingLetterSpacing!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&(e.headingLetterSpacing>0?i.style.letterSpacing=e.headingLetterSpacing+"px":i.style.removeProperty("letter-spacing"))}),n.headings.letterSpacing=e.headingLetterSpacing),e.headingBold!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&(e.headingBold?i.querySelector("b")?i.querySelector("b").replaceWith(...i.querySelector("b").childNodes):i.querySelector("strong")||(i.innerHTML="<strong>"+i.innerHTML+"</strong>"):i.querySelector("strong")?i.querySelector("strong").replaceWith(...i.querySelector("strong").childNodes):i.querySelector("b")&&i.querySelector("b").replaceWith(...i.querySelector("b").childNodes),i.style.fontWeight&&i.style.removeProperty("font-weight"))}),n.headings.bold=e.headingBold),e.headingItalic!==void 0&&(t.forEach(o=>{const i=o;!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&(e.headingItalic?i.querySelector("i")?i.querySelector("i").replaceWith(...i.querySelector("i").childNodes):i.querySelector("em")||(i.innerHTML="<em>"+i.innerHTML+"</em>"):i.querySelector("em")?i.querySelector("em").replaceWith(...i.querySelector("em").childNodes):i.querySelector("i")&&i.querySelector("i").replaceWith(...i.querySelector("i").childNodes),i.style.fontStyle&&i.style.removeProperty("font-style"))}),n.headings.italic=e.headingItalic),e.headingColor!==void 0&&(t.forEach(o=>{const i=o;!i.closest(".em-contrast-block")&&!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&(i.style.color=e.headingColor)}),n.headings.color=e.headingColor),e.headingContrastColor!==void 0&&(t.forEach(o=>{const i=o;i.closest(".em-contrast-block")&&!i.style.display&&parseFloat(i.style.fontSize)>20&&(i.style.color=e.headingContrastColor)}),n.headings.contrastColor=e.headingContrastColor),Me(e,t,r),e.blockDarkBackgroundColor!==void 0&&(n.block.darkBackgroundColor=e.blockDarkBackgroundColor)}function Me(e,t,r){const{commonStyles:n,rgbToHex:l}=r;e.headingPaddingTop!==void 0&&(t.forEach(o=>{const i=o;if(i.closest('[em="atom"]')){if(!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&i.closest("table")?.getAttribute("em")=="atom"){const s=i.closest('[em="atom"]')?.querySelector(":scope > tr > td, :scope > tbody > tr > td");s&&(s.style.paddingTop=e.headingPaddingTop+"px",s.querySelector(":scope > .em-vindent-paddingTop")?.remove())}}else if(i.previousElementSibling){const s=i.previousElementSibling;if(!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&i.parentElement?.getAttribute("em")=="atom"&&s&&s.tagName=="TABLE"&&(s.classList.contains("em-vindent-table")||s.querySelector("td")?.innerHTML=="")){s.querySelector("td")?.setAttribute("height",e.headingPaddingTop);const d=s.querySelector(".em-element-vindent-value");d&&(d.innerHTML=e.headingPaddingTop+"px",e.headingPaddingTop<30?s.querySelector(".em-vindent")?.classList.add("em-vindent_low"):s.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}),n.headings.paddingTop=e.headingPaddingTop),e.headingPaddingBottom!==void 0&&(document.querySelectorAll('div[style*="font-family"]').forEach(o=>{const i=o,s=i.closest('[em="atom"]');if(s){const d=s.querySelector(":scope > tr > td, :scope > tbody > tr > td");d?.style.paddingBottom&&!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&i.closest("table")?.getAttribute("em")=="atom"&&(d.style.paddingBottom=e.headingPaddingBottom+"px",d.querySelector(":scope > .em-vindent-paddingBottom")?.remove())}else if(i.nextElementSibling){const d=i.nextElementSibling;if(!i.style.display&&parseFloat(i.style.fontSize)>20&&l(i.style.color).toLowerCase()!=="#eb3737"&&i.parentElement?.getAttribute("em")=="atom"&&d&&d.tagName=="TABLE"&&(d.classList.contains("em-vindent-table")||d.querySelector("td")?.innerHTML=="")){d.querySelector("td")?.setAttribute("height",e.headingPaddingBottom);const c=d.querySelector(".em-element-vindent-value");c&&(c.innerHTML=e.headingPaddingBottom+"px",e.headingPaddingBottom<30?d.querySelector(".em-vindent")?.classList.add("em-vindent_low"):d.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}),n.headings.paddingBottom=e.headingPaddingBottom)}function Fe(e,t){const{commonStyles:r}=t,n=document.querySelectorAll('a[style*="color"]');e.linkColor!==void 0&&(n.forEach(l=>{const o=l;!o.closest(".em-contrast-block")&&!o.style.display&&(o.style.color=e.linkColor)}),r.links.color=e.linkColor),e.linkContrastColor!==void 0&&(n.forEach(l=>{const o=l;o.closest(".em-contrast-block")&&!o.style.display&&(o.style.color=e.linkContrastColor)}),r.links.contrastColor=e.linkContrastColor),e.linkUnderline!==void 0&&(n.forEach(l=>{const o=l;if(!o.style.display){o.style.textDecoration=e.linkUnderline?"underline":"none";const i=o.parentElement;i&&i.tagName=="SPAN"&&i.style.textDecoration=="underline"&&i.replaceWith(...i.childNodes)}}),r.links.underline=e.linkUnderline)}function Ne(e,t){const{commonStyles:r}=t,n=document.querySelectorAll('a[style*="font-family"]');if(e.buttonsFontFamily!==void 0){let l=[];n.forEach(o=>{const i=o;let s;i.style.display&&i.style.display=="block"&&(l=e.buttonsFontFamily,l[0]==="Safe Fonts"?(i.style.fontFamily=l[1],(s=[...i.classList].filter(d=>d.startsWith("em-font-"))[0])&&(i.classList.remove(s),r.buttons.fontFamily?.[2]&&t.clearLinkTags({elem:document.documentElement,fontFamilyClassName:a.buildEmFontClassName(r.buttons.fontFamily[2],r.buttons.fontFamily[3])}),t.clearProjectFontFaces())):l[0]==="Google Fonts"&&(N(i,l),t.removeClassesByPrefix(i,"em-font"),i.classList.add(t.createFontClassName(l)),a.markProjectFontClass(i,l)))}),l.length>0&&l[0]==="Google Fonts"&&t.addFontFamilyClass({fontFamilyArray:l}),t.clearProjectFontFaces(),r.buttons.fontFamily=e.buttonsFontFamily}e.buttonsFontSize!==void 0&&(n.forEach(l=>{const o=l;o.style.display&&o.style.display=="block"&&(o.style.fontSize=e.buttonsFontSize+"px")}),r.buttons.fontSize=e.buttonsFontSize),e.buttonsLetterSpacing!==void 0&&(n.forEach(l=>{const o=l;o.style.display&&o.style.display=="block"&&(e.buttonsLetterSpacing>0?o.style.letterSpacing=e.buttonsLetterSpacing+"px":o.style.removeProperty("letter-spacing"))}),r.buttons.letterSpacing=e.buttonsLetterSpacing),qe(e,n,t),Re(e,n,t),He(e,n,t)}function qe(e,t,r){const{commonStyles:n}=r;e.buttonsColor!==void 0&&(t.forEach(l=>{const o=l;!o.closest(".em-contrast-block")&&o.style.display&&o.style.display=="block"&&(o.style.color=e.buttonsColor)}),n.buttons.color=e.buttonsColor),e.buttonsContrastColor!==void 0&&(t.forEach(l=>{const o=l;o.closest(".em-contrast-block")&&o.style.display&&o.style.display=="block"&&(o.style.color=e.buttonsContrastColor)}),n.buttons.contrastColor=e.buttonsContrastColor),e.buttonsBold!==void 0&&(t.forEach(l=>{const o=l;o.style.display&&o.style.display=="block"&&(e.buttonsBold?o.querySelector("b")?o.querySelector("b").replaceWith(...o.querySelector("b").childNodes):o.querySelector("strong")||(o.innerHTML="<strong>"+o.innerHTML+"</strong>"):o.querySelector("strong")?o.querySelector("strong").replaceWith(...o.querySelector("strong").childNodes):o.querySelector("b")&&o.querySelector("b").replaceWith(...o.querySelector("b").childNodes),o.style.fontWeight&&o.style.removeProperty("font-weight"))}),n.buttons.bold=e.buttonsBold),e.buttonsItalic!==void 0&&(t.forEach(l=>{const o=l;o.style.display&&o.style.display=="block"&&(e.buttonsItalic?o.querySelector("i")?o.querySelector("i").replaceWith(...o.querySelector("i").childNodes):o.querySelector("em")||(o.innerHTML="<em>"+o.innerHTML+"</em>"):o.querySelector("em")?o.querySelector("em").replaceWith(...o.querySelector("em").childNodes):o.querySelector("i")&&o.querySelector("i").replaceWith(...o.querySelector("i").childNodes),o.style.fontStyle&&o.style.removeProperty("font-style"))}),n.buttons.italic=e.buttonsItalic),e.buttonsBackgroundColor!==void 0&&(t.forEach(l=>{const o=l;if(!o.closest(".em-contrast-block")&&o.style.display&&o.style.display=="block"){const i=o.closest("td");i&&(i.getAttribute("bgcolor")&&(e.buttonsBackgroundColor?i.setAttribute("bgcolor",e.buttonsBackgroundColor):i.removeAttribute("bgcolor")),e.buttonsBackgroundColor?i.style.backgroundColor=e.buttonsBackgroundColor:i.style.removeProperty("background-color"))}}),n.buttons.backgroundColor=e.buttonsBackgroundColor),e.buttonsContrastBackgroundColor!==void 0&&(t.forEach(l=>{const o=l;if(o.closest(".em-contrast-block")&&o.style.display&&o.style.display=="block"){const i=o.closest("td");i&&(i.getAttribute("bgcolor")&&(e.buttonsContrastBackgroundColor?i.setAttribute("bgcolor",e.buttonsContrastBackgroundColor):i.removeAttribute("bgcolor")),e.buttonsContrastBackgroundColor?i.style.backgroundColor=e.buttonsContrastBackgroundColor:i.style.removeProperty("background-color"))}}),n.buttons.contrastBackgroundColor=e.buttonsContrastBackgroundColor),e.buttonsAlign!==void 0&&(t.forEach(l=>{const o=l;o.style.display&&o.style.display=="block"&&o.closest("td")?.setAttribute("align",e.buttonsAlign)}),n.buttons.textAlign=e.buttonsAlign)}function Re(e,t,r){const{commonStyles:n}=r;e.buttonsMarginTop!==void 0&&(t.forEach(l=>{const o=l,i=o.closest('[em="atom"]');if(i){const s=i.querySelector(":scope > tr > td, :scope > tbody > tr > td");s?.style.paddingTop&&o.style.display&&o.style.display=="block"&&(s.style.paddingTop=e.buttonsMarginTop+"px",s.querySelector(":scope > .em-vindent-paddingTop")?.remove())}else{const s=o.closest("table");if(s?.previousElementSibling){const d=s.previousElementSibling,c=o.closest("div");if(o.style.display&&o.style.display=="block"&&c&&c.getAttribute("em")=="atom"&&d&&d.tagName=="TABLE"&&(d.classList.contains("em-vindent-table")||d.querySelector("td")?.innerHTML=="")){d.querySelector("td")?.setAttribute("height",e.buttonsMarginTop);const u=d.querySelector(".em-element-vindent-value");u&&(u.innerHTML=e.buttonsMarginTop+"px",e.buttonsMarginTop<30?d.querySelector(".em-vindent")?.classList.add("em-vindent_low"):d.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}}),n.buttons.marginTop=e.buttonsMarginTop),e.buttonsMarginBottom!==void 0&&(t.forEach(l=>{const o=l,i=o.closest('[em="atom"]');if(i){const s=i.querySelector(":scope > tr > td, :scope > tbody > tr > td");s?.style.paddingBottom&&o.style.display&&o.style.display=="block"&&(s.style.paddingBottom=e.buttonsMarginBottom+"px",s.querySelector(":scope > .em-vindent-paddingBottom")?.remove())}else{const s=o.closest("table");if(s?.previousElementSibling){const d=s.nextElementSibling,c=o.closest("div");if(o.style.display&&o.style.display=="block"&&c&&c.getAttribute("em")=="atom"&&d&&d.tagName=="TABLE"&&(d.classList.contains("em-vindent-table")||d.querySelector("td")?.innerHTML=="")){d.querySelector("td")?.setAttribute("height",e.buttonsMarginBottom);const u=d.querySelector(".em-element-vindent-value");u&&(u.innerHTML=e.buttonsMarginBottom+"px",e.buttonsMarginBottom<30?d.querySelector(".em-vindent")?.classList.add("em-vindent_low"):d.querySelector(".em-vindent")?.classList.remove("em-vindent_low"))}}}}),n.buttons.marginBottom=e.buttonsMarginBottom)}function He(e,t,r){const{commonStyles:n,setElementBorder:l,setElementBorderRadius:o}=r;e.buttonsBorder!==void 0&&(t.forEach(i=>{const s=i;if(s.style.display&&s.style.display=="block"){const d=s.closest("td");d&&l({settings:{border:e.buttonsBorder},elem:d})}}),e.buttonsBorder.all!==void 0&&(n.buttons.border.all=e.buttonsBorder.all),e.buttonsBorder.top!==void 0&&(n.buttons.border.top=e.buttonsBorder.top),e.buttonsBorder.right!==void 0&&(n.buttons.border.right=e.buttonsBorder.right),e.buttonsBorder.bottom!==void 0&&(n.buttons.border.bottom=e.buttonsBorder.bottom),e.buttonsBorder.left!==void 0&&(n.buttons.border.left=e.buttonsBorder.left)),e.buttonsBorderRadius!==void 0&&(t.forEach(i=>{const s=i;if(s.style.display&&s.style.display=="block"){const d=s.closest("td");d&&o({settings:{borderRadius:e.buttonsBorderRadius},elem:d})}}),e.buttonsBorderRadius.all!==void 0&&(n.buttons.borderRadius.all=e.buttonsBorderRadius.all),e.buttonsBorderRadius.topLeft!==void 0&&(n.buttons.borderRadius.topLeft=e.buttonsBorderRadius.topLeft),e.buttonsBorderRadius.topRight!==void 0&&(n.buttons.borderRadius.topRight=e.buttonsBorderRadius.topRight),e.buttonsBorderRadius.bottomRight!==void 0&&(n.buttons.borderRadius.bottomRight=e.buttonsBorderRadius.bottomRight),e.buttonsBorderRadius.bottomLeft!==void 0&&(n.buttons.borderRadius.bottomLeft=e.buttonsBorderRadius.bottomLeft)),e.buttonsPadding!==void 0&&(t.forEach(i=>{const s=i;s.style.display&&s.style.display=="block"&&(e.buttonsPadding.all!==void 0?(s.style.paddingTop=e.buttonsPadding.all+"px",s.style.paddingRight=e.buttonsPadding.all+"px",s.style.paddingBottom=e.buttonsPadding.all+"px",s.style.paddingLeft=e.buttonsPadding.all+"px"):((e.buttonsPadding.top!==void 0||e.buttonsPadding.top==0)&&(s.style.paddingTop=e.buttonsPadding.top+"px"),(e.buttonsPadding.right!==void 0||e.buttonsPadding.right==0)&&(s.style.paddingRight=e.buttonsPadding.right+"px"),(e.buttonsPadding.bottom!==void 0||e.buttonsPadding.bottom==0)&&(s.style.paddingBottom=e.buttonsPadding.bottom+"px"),(e.buttonsPadding.left!==void 0||e.buttonsPadding.left==0)&&(s.style.paddingLeft=e.buttonsPadding.left+"px")))}),e.buttonsPadding.all!==void 0&&(n.buttons.padding={all:e.buttonsPadding.all}),e.buttonsPadding.top!==void 0&&(n.buttons.padding={top:e.buttonsPadding.top}),e.buttonsPadding.right!==void 0&&(n.buttons.padding={right:e.buttonsPadding.right}),e.buttonsPadding.bottom!==void 0&&(n.buttons.padding={bottom:e.buttonsPadding.bottom}),e.buttonsPadding.left!==void 0&&(n.buttons.padding={left:e.buttonsPadding.left}))}function Ie(e,t){const{commonStyles:r,setElementBorder:n,setElementBorderRadius:l}=t;r.cards||(r.cards={});const o=document.querySelectorAll(".em-contrast-card");e.cardsContrastBackgroundColor!==void 0&&(o.forEach(d=>{const c=d;c.getAttribute("bgcolor")&&(e.cardsContrastBackgroundColor?c.setAttribute("bgcolor",e.cardsContrastBackgroundColor):c.removeAttribute("bgcolor")),e.cardsContrastBackgroundColor?c.style.backgroundColor=e.cardsContrastBackgroundColor:c.style.removeProperty("background-color")}),r.cards.contrastBackgroundColor=e.cardsContrastBackgroundColor),e.cardsContrastTextColor!==void 0&&(o.forEach(d=>{d.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(c=>{c.style.color=e.cardsContrastTextColor})}),r.cards.contrastTextColor=e.cardsContrastTextColor);const i=document.querySelectorAll(".em-card");e.cardsBaseBackgroundColor!==void 0&&(i.forEach(d=>{const c=d;c.getAttribute("bgcolor")&&(e.cardsBaseBackgroundColor?c.setAttribute("bgcolor",e.cardsBaseBackgroundColor):c.removeAttribute("bgcolor")),e.cardsBaseBackgroundColor?c.style.backgroundColor=e.cardsBaseBackgroundColor:c.style.removeProperty("background-color")}),r.cards.baseBackgroundColor=e.cardsBaseBackgroundColor),e.cardsBaseTextColor!==void 0&&(i.forEach(d=>{d.querySelectorAll('div[style*="font-family"], span[style*="font-family"]').forEach(c=>{c.style.color=e.cardsBaseTextColor})}),r.cards.baseTextColor=e.cardsBaseTextColor);const s=document.querySelectorAll(".em-card, .em-contrast-card");e.cardsBorderRadius!==void 0&&(r.cards.borderRadius||(r.cards.borderRadius={}),s.forEach(d=>{l({settings:{borderRadius:e.cardsBorderRadius},elem:d})}),e.cardsBorderRadius.all!==void 0&&(r.cards.borderRadius.all=e.cardsBorderRadius.all),e.cardsBorderRadius.topLeft!==void 0&&(r.cards.borderRadius.topLeft=e.cardsBorderRadius.topLeft),e.cardsBorderRadius.topRight!==void 0&&(r.cards.borderRadius.topRight=e.cardsBorderRadius.topRight),e.cardsBorderRadius.bottomRight!==void 0&&(r.cards.borderRadius.bottomRight=e.cardsBorderRadius.bottomRight),e.cardsBorderRadius.bottomLeft!==void 0&&(r.cards.borderRadius.bottomLeft=e.cardsBorderRadius.bottomLeft)),e.cardsBorder!==void 0&&(r.cards.border||(r.cards.border={}),s.forEach(d=>{n({settings:{border:e.cardsBorder},elem:d})}),e.cardsBorder.all&&(r.cards.border.all=e.cardsBorder.all),e.cardsBorder.top&&(r.cards.border.top=e.cardsBorder.top),e.cardsBorder.right&&(r.cards.border.right=e.cardsBorder.right),e.cardsBorder.bottom&&(r.cards.border.bottom=e.cardsBorder.bottom),e.cardsBorder.left&&(r.cards.border.left=e.cardsBorder.left))}function We(e,t){const{commonStyles:r,globalHolder:n}=t;if(!n)return;const l=n.classList.contains("full-wrap")?n.querySelector("td"):n;if(!l)return;(e.blockBackgroundColor!==void 0||e.blockBackgroundColor==="")&&$(e.blockBackgroundColor,l,!1,r),(e.blockContrastBackgroundColor!==void 0||e.blockContrastBackgroundColor==="")&&$(e.blockContrastBackgroundColor,l,!0,r);const o=document.querySelectorAll('[em="block"] > td');if(e.blockPadding!==void 0){const i=e.blockPadding;r.block||(r.block={}),r.block.padding||(r.block.padding={});const s=i.left!==void 0||i.right!==void 0;o.forEach(d=>{const c=d;i.top!==void 0&&(c.style.paddingTop=`${i.top}px`),i.right!==void 0&&(c.style.paddingRight=`${i.right}px`),i.bottom!==void 0&&(c.style.paddingBottom=`${i.bottom}px`),i.left!==void 0&&(c.style.paddingLeft=`${i.left}px`)}),["top","right","bottom","left"].forEach(d=>{i[d]!==void 0&&(r.block.padding[d]=i[d])}),s&&o.forEach(d=>{const c=d,u=c.querySelector(".em-mob-wrap"),b=c.parentElement?.getAttribute("em")==="block";u&&b&&c.querySelectorAll(":scope > table").forEach(f=>{t.setStructureBlocksWidth(f)})})}}function $(e,t,r,n){const l=t.querySelector(".em-narrow-table"),o=r?'[em="block"].em-contrast-block > td':'[em="block"]:not(.em-contrast-block) > td',i=r?'[em="block"] > td > table > tr > [bgcolor]':'[em="block"]:not(.em-contrast-block) > td > table > tr > [bgcolor]',s=r?'[em="block"] > td > table > tr > [style*="background-color"]':'[em="block"]:not(.em-contrast-block) > td > table > tr > [style*="background-color"]';l?e===""?t.querySelectorAll(o).forEach(d=>{const c=d;c.removeAttribute("bgcolor"),c.style.removeProperty("background-color")}):t.querySelectorAll(o).forEach(d=>{const c=d;c.setAttribute("bgcolor",e),c.style.backgroundColor=e}):e===""?t.querySelector(i)?t.querySelectorAll(i).forEach(d=>{const c=d;c.removeAttribute("bgcolor"),c.style.removeProperty("background-color")}):t.querySelector(s)&&t.querySelectorAll(s).forEach(d=>{const c=d;c.removeAttribute("bgcolor"),c.style.removeProperty("background-color")}):t.querySelector(i)?t.querySelectorAll(i).forEach(d=>{const c=d;c.style.backgroundColor=e,c.setAttribute("bgcolor",e)}):t.querySelector(s)&&t.querySelectorAll(s).forEach(d=>{const c=d;c.style.backgroundColor=e,c.setAttribute("bgcolor",e)}),r?n.block.contrastBackgroundColor=e:n.block.backgroundColor=e}var De=320;function z(e){if(e==null||e==="")return null;if(typeof e=="number"&&!Number.isNaN(e))return e;if(typeof e=="object"&&e!==null&&"value"in e){const t=Number(e.value);return Number.isNaN(t)?null:t}return null}function U(){for(const e of document.body.children)if(e.tagName==="DIV"||e.tagName==="CENTER"){const t=e;if(t.style.background||t.style.backgroundColor)return e;for(const r of e.children)if(r.tagName==="DIV"){if(t.style.background||t.style.backgroundColor)return e;for(const n of r.children){const l=n;if(l.getAttribute("width")==="100%"||l.style.width==="100%")return n}}else{const n=r;if(n.getAttribute("width")==="100%"||n.style.width==="100%")return r}}else{const t=e;if(t.getAttribute("width")==="100%"||t.style.width==="100%")return e}return null}function Oe(e,t){const{globalHolder:r,emailWidth:n,state:l,findParentTr:o}=t,i=z(e.width);if(i==null||i<De||!r)return!1;function s(d){if(d.elem.nodeName==="#comment"&&d.elem.textContent?.indexOf("mso")!==-1)d.elem.textContent=d.elem.textContent.replace(/width=".*"/gi,`width="${d.width}"`);else{const c=d.elem.previousSibling;c&&s({elem:c,width:d.width})}}return r.querySelector(".em-narrow-table")||r.querySelector(".noresp-em-narrow-table")?($e(r,i,n,s),ze(r,e,n,o,s)):Ye(r,i,n,s),n>500&&r.querySelectorAll(`[width="${n}"]`).forEach(d=>{d.setAttribute("width",String(i))}),Ge(i),l.set("emailWidth",i),!0}function $e(e,t,r,n){e.querySelectorAll('[style*="width"]').forEach(l=>{const o=l;o.style.verticalAlign||(o.style.width&&parseFloat(o.style.width)===r&&(o.style.width=t+"px"),o.style.maxWidth&&parseFloat(o.style.maxWidth)===r&&(o.style.maxWidth=t+"px"),o.style.minWidth&&parseFloat(o.style.minWidth)===r&&(o.style.minWidth=t+"px"),n({elem:o,width:t}))})}function ze(e,t,r,n,l){const o=[];e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").forEach(s=>{const d=n(s);d&&!o.includes(d)&&o.push(d)});const i=t.project==="useblocks"?640:660;o.forEach(s=>{const d=s.querySelector(".em-mob-wrap, .noresp-em-mob-wrap");if(!d)return;const c=d.parentElement?.closest("td"),u=parseFloat(c?.style.paddingLeft||"0")||0,b=parseFloat(c?.style.paddingRight||"0")||0,f=d.closest("table")?.parentElement?.getBoundingClientRect().width||0,m=s.querySelector(".em-mob-wrap:empty, .noresp-em-mob-wrap:empty")?660:i;if(s.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").length>1)Ue(s)&&je(s,f,u,b,m);else if(d.getAttribute("width")&&!d.classList.contains("em-insert-ignore")){const p=Math.round(f-u-b);d.setAttribute("width",String(p))}})}function Ue(e){const t=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)");for(let r=0;r<t.length;r++){const n=t[r];if(n.classList.contains("em-insert-ignore"))continue;const l=n.getAttribute("width");if(l!=null&&l!=="")return!0}return!1}function je(e,t,r,n,l){const o=e.querySelector(".em-mob-wrap:nth-child(even), .noresp-em-mob-wrap:nth-child(even)"),i=o?parseFloat(o.getAttribute("width")||"0"):0,s=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)"),d=s.length;let c=0,u=0;s.forEach(m=>{const p=m;if(p.getAttribute("width")&&!p.classList.contains("em-insert-ignore")){const y=parseFloat(p.getAttribute("width")||"0")/l,h=Math.round(t*y-i/(d*2));p.setAttribute("width",String(h)),c+=h}});const b=t-(r+n+i*(d-1)+c);s.forEach(m=>{const p=m;if(p.getAttribute("width")&&!p.classList.contains("em-insert-ignore")){const y=parseFloat(p.getAttribute("width")||"0")+Math.round(b/d);u+=y,p.setAttribute("width",String(y)),p.querySelectorAll("img").forEach(h=>{parseFloat(h.getAttribute("width")||"0")>y&&(h.setAttribute("width",String(y)),h.style.maxWidth=y+"px")})}}),u=u+i*(d-1)+r+n;const f=t-u;if(f!==0&&c>0){const m=e.querySelector(".em-mob-wrap:last-child, .noresp-em-mob-wrap:last-child");if(m&&!m.classList.contains("em-insert-ignore")){const p=parseFloat(m.getAttribute("width")||"0");m.setAttribute("width",String(p+f))}else{const p=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)");for(let y=p.length-1;y>=0;y--){const h=p[y];if(h.classList.contains("em-insert-ignore"))continue;const k=parseFloat(h.getAttribute("width")||"0");h.setAttribute("width",String(k+f));break}}}}function Ye(e,t,r,n){e.querySelectorAll('div[style*="inline-block"]').forEach(l=>{const o=l;if(!o.getAttribute("em-floatblock-width")){const i=o.parentElement?.getBoundingClientRect().width||1;o.setAttribute("em-floatblock-width",String(o.getBoundingClientRect().width/i))}}),e.querySelectorAll('[style*="width"]').forEach(l=>{const o=l;o.style.verticalAlign||(o.style.width&&parseFloat(o.style.width)===r&&(o.style.width=t+"px"),o.style.maxWidth&&parseFloat(o.style.maxWidth)===r&&(o.style.maxWidth=t+"px"),o.style.minWidth&&parseFloat(o.style.minWidth)===r&&(o.style.minWidth=t+"px"),n({elem:o,width:t}))}),e.querySelectorAll('div[style*="inline-block"]').forEach(l=>{const o=l,i=o.parentElement?.getBoundingClientRect().width||0,s=parseFloat(o.getAttribute("em-floatblock-width")||"0"),d=o.getBoundingClientRect().width-(o.firstElementChild?.getBoundingClientRect().width||0),c=o.getBoundingClientRect().width-d;let u=0;o.style.maxWidth?(o.style.maxWidth=Math.floor(i*s)+"px",u=o.getBoundingClientRect().width-d,o.firstElementChild&&(o.firstElementChild.setAttribute("width",String(Math.round(u))),o.firstElementChild.style.maxWidth=Math.round(u)+"px")):o.style.width&&(o.style.width=Math.floor(i*s)+"px",u=o.getBoundingClientRect().width-d,o.firstElementChild?.setAttribute("width",String(u))),n({elem:o,width:Math.floor(i*s)}),o.removeAttribute("em-floatblock-width"),o.querySelectorAll("img").forEach(b=>{const f=parseFloat(b.getAttribute("width")||"0");(f>=u||f===c)&&(b.setAttribute("width",String(u)),b.style.maxWidth=u+"px")})})}function Ge(e){for(const t of document.head.querySelectorAll("style"))if(t.innerHTML.match(/@media.*?max((.|\n|\r)*?){/)){t.innerHTML=t.innerHTML.replace(/max-device-width:\d+px/gi,`max-device-width:${e}px`),t.innerHTML=t.innerHTML.replace(/max-width:\d+px/gi,`max-width:${e}px`);break}}function Ve(e,t){e.querySelectorAll("img, amp-img").forEach(r=>{const n=r;if(t){const l=n.getAttribute("width");if(l)if(n.style.width="100%",l.includes("%"))n.style.maxWidth=l;else{const o=parseFloat(l);Number.isNaN(o)||(n.style.maxWidth=`${o}px`)}}else n.style.removeProperty("width"),n.style.removeProperty("max-width")})}function Xe(e,t){if(e.responsive===void 0||!t)return;const r=z(e.width);if(e.responsive.shutdown){const n=t.querySelector(".noresp-em-narrow-table");if(n)n.className=n.className.replace(/noresp-em-narrow/gi,"em-narrow");else{const l=t.querySelector("table:first-child");l&&(l.setAttribute("width","100%"),l.style.width="100%",r!=null&&(l.style.maxWidth=r+"px"),l.style.minWidth="320px")}document.querySelectorAll('[class*="noresp-em-mob"]').forEach(l=>{l.className=l.className.replace(/noresp-em-mob/gi,"em-mob")}),document.documentElement.removeAttribute("style")}else{const n=t.querySelector(".em-narrow-table");if(n)n.className=n.className.replace(/em-narrow/gi,"noresp-em-narrow");else{const l=t.querySelector("table:first-child");l&&r!=null&&(l.setAttribute("width",String(r)),l.style.width=r+"px",l.style.maxWidth=r+"px",l.style.minWidth=r+"px")}document.querySelectorAll('[class*="em-mob"]:not([class*="noresp-em-mob"])').forEach(l=>{l.className=l.className.replace(/em-mob/gi,"noresp-em-mob")})}Ve(t,!!e.responsive.shutdown)}function Ke(e,t){if(!e||!e.length)return;let r=document.head.querySelector('style[em="styles"]'),n="";r?n=t.getInnerHtml(r):(r=document.createElement("style"),r.setAttribute("em","styles"),r=document.head.insertAdjacentElement("beforeend",r));const l=document.createElement("div");l.insertAdjacentHTML("afterbegin",e.join(`
|
|
86
|
+
`));let o=a.minifyStylesheet(n+`
|
|
87
|
+
`+[...l.querySelectorAll("style")].map(i=>i.innerHTML).join(`
|
|
88
|
+
`),{restructure:!0,forceMediaMerge:!0}).css;o=cssbeautify(o,{indent:" ",autosemicolon:!0}),r&&(r.textContent=`
|
|
89
|
+
`+o+`
|
|
90
|
+
`)}var j=`<style em="styles">
|
|
91
|
+
@media only screen and (max-device-width:660px),only screen and (max-width:660px) {
|
|
92
|
+
.em-mob-width-100perc {
|
|
93
|
+
width: 100%!important;
|
|
94
|
+
max-width: 100%!important;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
</style>
|
|
98
|
+
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="em-mob-width-100perc" em="atom"><tr><td style="padding-bottom: 10px;">
|
|
99
|
+
<div style="font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 21px; color: #5A5A5A;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
|
|
100
|
+
</td></tr></table>`,Je=`<style>
|
|
101
|
+
@media only screen and (max-device-width: 660px), only screen and (max-width: 660px) {
|
|
102
|
+
.em-mob-wrap {
|
|
103
|
+
display: block!important;
|
|
104
|
+
}
|
|
105
|
+
.em-mob-width-100perc {
|
|
106
|
+
width: 100%!important;
|
|
107
|
+
max-width: 100%!important;
|
|
108
|
+
}
|
|
109
|
+
.em-mob-padding_right-20 {
|
|
110
|
+
padding-right: 20px!important;
|
|
111
|
+
}
|
|
112
|
+
.em-mob-padding_left-20 {
|
|
113
|
+
padding-left: 20px!important;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
</style>
|
|
117
|
+
<tr em="block" class="em-structure">
|
|
118
|
+
<td align="center" style="padding: 30px 40px;" class="em-mob-padding_left-20 em-mob-padding_right-20" bgcolor="#ffffff">
|
|
119
|
+
<table align="center" border="0" cellspacing="0" cellpadding="0" class="em-mob-width-100perc">
|
|
120
|
+
<tr>
|
|
121
|
+
<td width="600" valign="top" class="em-mob-wrap em-mob-width-100perc">
|
|
122
|
+
{{ATOM_HTML}}
|
|
123
|
+
</td>
|
|
124
|
+
</tr>
|
|
125
|
+
</table>
|
|
126
|
+
</td>
|
|
127
|
+
</tr>`;function Ze(e,t){if(!(e&&(a.isEmptyTable(e)||!e.innerHTML.trim()))||t.getLockEditor())return!1;const r=j.match(/<style((.|\n|\r)*?)<\/style>/g);t.applyStylesToDocument(r||[]);let n=j.replaceAll(/<style((.|\n|\r)*?)<\/style>/gi,"").trim();n=t.commonStylesApply({html:n});let l=Je.replace("{{ATOM_HTML}}",n);const o=l.match(/<style((.|\n|\r)*?)<\/style>/g);t.applyStylesToDocument(o||[]),l=t.commonStylesApplyToBlock({html:l}),(l.indexOf("empty-structure")>-1||l.indexOf("em-structure")>-1)&&(l=t.setFloatBlocksWidth({blockHTML:l,targetBlock:e,project:t.appName})),a.insertAdjacentHTML(a.rowsHost(e),"beforeend",`
|
|
128
|
+
`+l+`
|
|
129
|
+
`);const i=e.querySelector('[em="block"]:last-child [em="atom"]');if(i){const s=i.querySelector("div");let d=null;s&&(s.innerHTML="",s.appendChild(document.createTextNode("")),t.wrapEditor(s,!0),s.classList.add("em-just-inserted"),setTimeout(()=>{const c=s.closest("editor")||s,u=c?.querySelector("div")||s,b=u||c||s,f=b.getBoundingClientRect();["mouseover","mousedown","mouseup","click"].forEach(y=>{b.dispatchEvent(new MouseEvent(y,{bubbles:!0,cancelable:!0,view:window,clientX:f.left+Math.min(1,Math.max(0,f.width/2)),clientY:f.top+Math.min(1,Math.max(0,f.height/2)),button:0}))});let m=u.firstChild;m||(m=document.createTextNode(""),u.appendChild(m)),c?.focus?.();const p=window.getSelection();if(p&&m){const y=document.createRange();y.setStart(m,0),y.collapse(!0),p.removeAllRanges(),p.addRange(y)}t.setCursorPosition(c||s)},0),d=s.closest("editor")||s),s&&t.setCursorPosition(d||s)}return t.messageService.send("application_atom_inserted","text"),t.commit(),!0}function Qe({getGlobalHolder:e,view:t=window}){let r=0;const n=()=>{r=0,a.state.get("previewPage")&&a.fitEmailToWidth(e(),t)},l=()=>{!r&&a.state.get("previewPage")&&(r=t.requestAnimationFrame(n))},o=a.state.subscribeToKey("previewPage",i=>{i?l():a.applyRootScale(t.document.documentElement,1)&&t.parentIFrame?.size?.()});return t.addEventListener("resize",l),l(),{refit:l,dispose:()=>{o(),t.removeEventListener("resize",l),r&&(t.cancelAnimationFrame(r),r=0)}}}var v=a.createIdentifier("SandboxEmailGlobalHolder"),q=a.createIdentifier("SandboxPreviewFit");function et(){a.setBlockGroupControlsPosition({scrollTop:a.state.get("scrollTop")})}var tt=a.defineUnit({name:"sandbox.emailInitialState",setup(){a.state.update({isDirectionUP:!1,isDirectionDOWN:!1,isDirectionLEFT:!1,isDirectionRIGHT:!1,actualTargetCount:0,activeCell:[],lockEditorInit:!0,globalHolder:null,applicationTheme:"light",iframeOffsetTop:0,scrollTop:0,previewHeight:0,applicationMode:"default",emailWidth:0,lockEdit:!1,elementPath:[],copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,elementAIimageEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,blocksAddPanelEnabled:!0,lockEditor:!0,codeMode:!0,appName:"",commonStyles:{},isProgrammaticSelection:!1}),a.implementPolyfills()}}),ot=a.defineUnit({name:"sandbox.emailGlobalHolder",provides:[v],setup(e){let t=null;a.state.subscribe(r=>{"globalHolder"in r&&(t=r.globalHolder??null)}),e.inject(v,{get:()=>t,set:r=>{t=r}})}}),it=a.defineUnit({name:"sandbox.emailPreview",provides:[a.INIT_PREVIEW_ID,q],awaits:{services:[v,a.SYNC_COMMIT_ID]},setup(e){const t=a.requireService(e,v),r=a.commitOf(e),n=Qe({getGlobalHolder:()=>t.get()});e.inject(q,n),e.inject(a.INIT_PREVIEW_ID,(l=!1)=>{Be({state:a.state,getEmailWidth:()=>a.state.get("emailWidth"),messageService:a.messageService,removeHiddenClasses:a.removeHiddenClasses,findGlobalHolder:U,elMarkupHelper:()=>a.elMarkupHelper(t.get()),rgbToHex:a.rgbToHex,getSubject:P,getPreheader:B,getUsedColors:a.getUsedColors,commit:r,setGlobalHolder:o=>t.set(o)},l),n.refit()})}}),rt=a.defineUnit({name:"sandbox.emailInsertPolicy",provides:[a.INSERT_POLICY_ID],setup:e=>e.inject(a.INSERT_POLICY_ID,{})});function Y(e){const t=a.requireService(e,a.HTML_DOCUMENT_ID),r=a.commitOf(e);return{commit:r,htmlDocument:t,applyStylesToDocument:n=>Ke(n,t),setFloatBlocksWidth:n=>a.setFloatBlocksWidth(n,t),setBlockMaxWidth:n=>a.setBlockMaxWidth(n,t),commonStylesApply:n=>a.commonStylesApply(n,r)}}var nt=a.defineUnit({name:"sandbox.emailNarrowTable",provides:[a.NARROW_TABLE_TEXT_ATOM_ID],awaits:{services:[a.HTML_DOCUMENT_ID,a.SYNC_COMMIT_ID,a.WRAP_EDITOR_ID,a.SET_CURSOR_ID]},setup(e){const t=Y(e),r=a.requireService(e,a.WRAP_EDITOR_ID).now,n=a.requireService(e,a.SET_CURSOR_ID);e.inject(a.NARROW_TABLE_TEXT_ATOM_ID,l=>Ze(l,{getLockEditor:()=>a.state.get("lockEditor"),applyStylesToDocument:t.applyStylesToDocument,commonStylesApply:t.commonStylesApply,commonStylesApplyToBlock:a.commonStylesApplyToBlock,setFloatBlocksWidth:o=>t.setFloatBlocksWidth({...o,targetBlock:o.targetBlock}),appName:a.state.get("appName"),wrapEditor:r,setCursorPosition:n,messageService:a.messageService,commit:()=>t.commit()}))}}),lt=a.defineUnit({name:"sandbox.emailDocumentServices",awaits:{services:[a.HTML_DOCUMENT_ID,a.FOCUS_ID]},setup(e){const t=a.requireService(e,a.HTML_DOCUMENT_ID),{controller:r}=a.requireService(e,a.FOCUS_ID);ge(),ve(),be(t,r),he(t,r)}}),at=a.defineUnit({name:"sandbox.emailOperations",awaits:{services:[v,a.HTML_DOCUMENT_ID,a.SYNC_COMMIT_ID]},setup(e){const t=a.requireService(e,v),r=a.requireService(e,a.SYNC_COMMIT_ID),n=Y(e),{commit:l,htmlDocument:o}=n,i=()=>({state:a.state,previewHeight:a.state.get("previewHeight"),iframeOffsetTop:a.state.get("iframeOffsetTop"),scrollTop:a.state.get("scrollTop"),globalHolder:t.get(),setBlockGroupControlsPosition:et,messageService:a.messageService});a.messageService.addListener(function(s){const d=s.data??{};if(d.operation===a.EVENT_TYPES.SANDBOX_EMAIL_SETTINGS_SET){const c=d.settings??{};t.set(U());const u=t.get();if(u){const m=u.classList.contains("full-wrap")?u.querySelector("td"):u;m&&a.setEmailBackgroundSettings(m,c,_())}c.subject!==void 0&&(document.title=c.subject);const b=Oe(c,{globalHolder:u,emailWidth:a.state.get("emailWidth"),state:a.state,findParentTr:a.findParentTr});Xe(c,u),Le(c,{globalHolder:u,commonStyles:a.state.get("commonStyles"),lockEditor:a.state.get("lockEditor"),removeClassesByPrefix:a.removeClassesByPrefix,createFontClassName:a.createFontClassName,addFontFamilyClass:m=>a.addFontFamilyClass(m,l),clearLinkTags:m=>a.clearLinkTags(m,l),clearProjectFontFaces:()=>a.clearProjectFontFaces(m=>l(m)),rgbToHex:a.rgbToHex,setElementBorder:a.setElementBorder,setElementBorderRadius:a.setElementBorderRadius,setStructureBlocksWidth:a.setStructureBlocksWidth,messageService:a.messageService});const f=Object.keys(c).filter(m=>c[m]!==void 0);(b||!(f.length===1&&f[0]==="width"))&&r.commitLockedAsync()}if(d.operation===a.EVENT_TYPES.SANDBOX_IFRAME_SETSIZE&&(a.state.get("previewPage")?e.getInstance(q)?.refit():a.iframeSetSize(d.settings,i())),d.operation===a.EVENT_TYPES.SANDBOX_GLOBAL_BLOCK_REPLACE){const c=d.settings??{};a.globalBlockReplace({emBlockId:c.emBlockId,blockHTML:c.blockHTML,type:c.type,project:c.project,name:c.name},{state:a.state,commit:l,lockEditor:a.state.get("lockEditor"),emailWidth:a.state.get("emailWidth"),iframeOffsetTop:a.state.get("iframeOffsetTop"),previewHeight:a.state.get("previewHeight"),parseFromString:u=>a.parseFromString(u),getOuterHtml:a.getOuterHtml,HTMLDocument:o,minify:a.minifyStylesheet,cssbeautify,insertAdjacentHTML:a.insertAdjacentHTML,messageService:a.messageService,setDocumentStyles:u=>a.setDocumentStyles(u,{minify:a.minifyStylesheet,cssbeautify,HTMLDocument:o}),setImageWidth:a.setImageWidth,commonStylesApply:n.commonStylesApply,commonStylesApplyToBlock:a.commonStylesApplyToBlock,insertCountdown:u=>a.insertCountdown(u,l),uptimeCountdown:a.uptimeCountdown,setBlockMaxWidth:n.setBlockMaxWidth,setFloatBlocksWidth:n.setFloatBlocksWidth,fitImagesToColumns:a.fitImagesToColumns,checkBlockAdaptivity:a.checkBlockAdaptivity})}})}}),st=[ot,it,rt,nt,lt,at],ct=a.defineSurface({name:"email",profile:ce,units:[a.diagnosticsAgentUnit,tt,...a.CANVAS_CORE_UNITS,a.ampUnit,...a.EMAIL_LAYOUT_UNITS,...st,a.extensionsUnit(le),a.paintGateUnit,a.wheelBridgeUnit,a.deviceWidthMediaGuardUnit]});a.startSandbox(ct)});
|
package/iframe/js/iframe.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=null,s={},c={},l=0;function u(e,t){l+=1;try{return e.factory.apply(null,t)}finally{--l}}var d=`./`,f={},p=60,m=`emailmaker:diagnostics`,h=[],g;function _(){if(g!==void 0)return g;g=!1;try{var e=/[?&]diagnostics(?:=([^&]*))?/.exec(window.location.search||``);if(e)return g=e[1]!==`0`,g;if(typeof window.__DIAGNOSTICS__==`boolean`)return g=!!window.__DIAGNOSTICS__,g;g=window.localStorage.getItem(m)===`1`}catch{g=!1}return g}function v(e,t){if(_()){var n={phase:e,at:performance.timeOrigin+performance.now(),kind:`wait`};t&&(n.parent=String(t)),h.push(n)}}function y(e){if(!e||e.__amdLogged)return e;try{Object.defineProperty(e,"__amdLogged",{value:!0,enumerable:!1})}catch{try{e.__amdLogged=!0}catch{}}try{var t=e&&e.message||`loader error`;console.error(`[AMD] `+(t.indexOf(`[AMD]`)===0?t.slice(6):t),e)}catch{}return e}function b(){try{if(e!==void 0&&e&&e.publicPath)return String(e.publicPath)}catch{}return`(not set)`}function x(){var e=b();return String(e).indexOf(`file:`)===0?` The page appears to be opened as a local file (file://) or publicPath was not configured. Serve the host app over HTTP(S) and set publicPath to the origin that serves editor assets (host bundler plugin or __amdEnv.setPublicPath). Current runtime publicPath=`+e+`.`:` Host bundler publicPath may be misconfigured (Vite/Webpack host plugin). In dev, set publicPath to the absolute origin that serves editor assets (for example http://localhost:3001/<outputFolder>/). Current runtime publicPath=`+e+`.`}function S(e){if(typeof fetch!=`function`)return Promise.resolve(``);function t(e){var t=(e.headers.get(`content-type`)||``).toLowerCase();try{e.body&&typeof e.body.cancel==`function`&&e.body.cancel()}catch{}return t.indexOf(`text/html`)>=0?` The URL returned HTML (Content-Type: text/html), not JavaScript — often a SPA fallback when asset paths are wrong.`:e.ok?``:` HTTP status `+e.status+` — the asset URL may be wrong or blocked by the server.`}return fetch(e,{method:`HEAD`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(function(n){return n.status===405||n.status===501?fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t):t(n)}).catch(function(){return fetch(e,{method:`GET`,credentials:`omit`,headers:{Accept:`application/javascript,*/*`}}).then(t).catch(function(){return``})})}function C(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function w(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function T(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(i&&i!==`.`){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function E(e){var t=String(e||``).replace(/\\/g,`/`),n=String(d||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function D(e){return{then:function(t,n){return e.then(t,n)},catch:function(t){return e.catch(t)},finally:function(t){return e.finally(t)}}}function O(e,t){var n=String(e||``);if(!n)return n;if(n.indexOf(`./`)!==0&&n.indexOf(`../`)!==0)return E(T(n));var r=t||``;if(Object.prototype.hasOwnProperty.call(f,r)){var i=String(f[r]||``);i&&!k(i)&&i.charAt(0)!==`/`&&(r=i)}var a=T(r),o=a?a.split(`/`):[];o.length>0&&o.pop();for(var s=n.split(`/`),c=0;c<s.length;c++){var l=s[c];if(l&&l!==`.`){if(l===`..`){o.length>0&&o.pop();continue}o.push(l)}}return E(o.join(`/`))}function k(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function A(e){var t=String(e||``);if(!t||k(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function j(){var t=String(d||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),k(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,A(e.publicPath)).href}catch{}return A(t)}function M(e,t){var n=O(e,t),r=j(),i=Object.prototype.hasOwnProperty.call(f,n)?String(f[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function N(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function P(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=N()):typeof e==`function`?(r=e,n=[],e=N()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}P.amd={async:!0};function F(e){var t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}P(`vite/preload-helper`,[`exports`],function(e){e.__vitePreload=function(e){return Promise.resolve().then(function(){return e().catch(F)})}});function I(){return function(){}}function L(e,t){return{id:e,exports:t,uri:M(e)}}function R(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return V(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return V(e,r)}function z(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=O(e,o);if(s in a)throw y(a[s]);if(s in n)return n[s];if(s in r||s in i)throw y(C(s,Error(`Module is still loading asynchronously`)));if(!(s in t))throw y(C(s,Error(`Module is not available for syncRequire`)));return U(s)}function B(e,i){if(o&&e in o){var s={},c=[e];for(s[e]=!0;c.length>0;){var l=o[c.shift()];if(l)for(var u=0;u<l.length;u++){var d=l[u];s[d]||(s[d]=!0,c.push(d),!(d in n||d in a||d in r)&&(d in o?d in t||K(d,i).catch(function(){}):d in t&&V(d).catch(function(){})))}}}}function V(e,i){var o=O(e,i);if(o in a)return Promise.reject(y(a[o]));if(o in n)return Promise.resolve(n[o]);if(o in r)return r[o];if(v(`core:module:`+o+`:ask`,i),o in t)r[o]=H(o);else{var s=M(o);r[o]=K(o).then(function(){return v(`core:module:`+o+`:loaded`,i),o in t?H(o):S(s).then(function(e){var t=C(o,Error(`Module not defined after script load from "`+s+`".`+e+x()));throw a[o]=t,y(t)})}).catch(function(e){delete r[o];var t=e&&e.moduleId===o?e:C(o,e);throw a[o]=t,y(t)})}return B(o),r[o]}function H(e){var i=t[e],o=W(e),s=I(),l=L(e,s);c[e]=s;function d(t){return n[e]=t,delete r[e],delete c[e],n[e]}return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?l:V(t,e).catch(function(n){throw w(e,t,n)})})).then(function(t){v(`core:module:`+e+`:deps`);var n=u(i,t);return n&&typeof n.then==`function`?n.then(function(t){return v(`core:module:`+e+`:ready`),d(t===void 0?l.exports:t)}):(v(`core:module:`+e+`:ready`),d(n===void 0?l.exports:n))}).catch(function(t){throw delete r[e],delete c[e],a[e]=t,y(t)})}function U(e){var r=t[e],i=W(e),o=I(),s=L(e,o);try{var c=u(r,r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return z(t,e)}catch(n){throw w(e,t,n)}}));if(c&&typeof c.then==`function`)throw C(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=c===void 0?s.exports:c,n[e]}catch(t){throw a[e]=t,y(t)}}function W(e){var o=function(o,s,u){if(Array.isArray(o))return R(o,s,u,e);var d=O(o,e);if(d in a)throw y(a[d]);return d in n?n[d]:d in c&&l>0?c[d]:d in r||d in i?D(V(o,e)):d in t?z(o,e):D(V(o,e))};return o.resolve=function(t){return O(t,e)},o.toUrl=function(t){return M(t,e)},o.sync=function(t){return z(t,e)},o}function G(t,n){var r=e!==void 0&&e?e.moduleTransport:null;if(typeof r!=`function`||e.blobBlocked)return null;try{var i=r(t,n);return i&&typeof i.then==`function`?i:null}catch{return null}}function K(t,n){if(t in i)return i[t];if(s[t]&&s[t]!==t)return i[t]=K(s[t],n),i[t];var r=M(t);if(document.querySelector(`script[src="`+r+`"]`))return i[t]=Promise.resolve(),i[t];var a=performance.now();function o(e){return J(t,r,!1,n).then(function(n){return q(t,e,a),n})}var c=G(r,t);return c?(i[t]=c.then(function(r){return r?J(t,URL.createObjectURL(r),!0,n).then(function(e){return q(t,`transport`,a),e},function(){return e.blobBlocked=!0,o(`network-after-blob`)}):o(`network-fallback`)},function(){return o(`network-after-transport-error`)}),i[t]):(i[t]=o(`network`),i[t])}function q(t,n,r){_()&&((e.loaderTimings||=[]).push({id:t,via:n,ms:Math.round((performance.now()-r)*10)/10}),typeof e.onLoaderTiming==`function`&&e.onLoaderTiming())}function J(e,t,n,r){return new Promise(function(a,o){var s=!1,c=document.createElement(`script`);c.src=t,c.setAttribute(`data-amd-module-id`,e),c.async=!0,r===`low`&&(c.fetchPriority=`low`);var l=p>0?p*1e3:0,u=null;function d(){u!=null&&(clearTimeout(u),u=null),c.onload=null,c.onerror=null,n&&typeof URL<`u`&&URL.revokeObjectURL&&URL.revokeObjectURL(t)}function f(e){s||(s=!0,d(),e())}l>0&&(u=setTimeout(function(){f(function(){delete i[e],o(y(C(e,Error(`Timed out after `+l+`ms loading script: `+t+`.`+x()))))})},l)),c.onload=function(){f(function(){a()})},c.onerror=function(){f(function(){delete i[e],o(y(C(e,Error(`Failed to load script: `+t+`.`+x()))))})},document.head.appendChild(c)})}R.config=function(e){if(e.baseUrl&&(d=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(f[t]=e.paths[t]);if(e.bundles){for(var n in e.bundles)if(Object.prototype.hasOwnProperty.call(e.bundles,n))for(var r=0;r<e.bundles[n].length;r++)s[e.bundles[n][r]]=n}if(e.graph)for(var i in o||={},e.graph)Object.prototype.hasOwnProperty.call(e.graph,i)&&(o[i]=e.graph[i]);typeof e.waitSeconds==`number`&&e.waitSeconds>=0&&(p=e.waitSeconds)},R.warm=function(e,r){var i=r&&r.priority;return Promise.all((e||[]).map(function(e){var r=O(e);if(r in a)return Promise.reject(a[r]);var o=r in t||r in n?Promise.resolve():K(r,i);return B(r,i),o})).then(function(){})},R.modules=t,R.resolved=n,R.errors=a,R.toUrl=M,R.sync=z,e.define=P,e.require=R,e.syncRequire=z,e.diagnosticsBuffer=h})(),e.require.config({baseUrl:`./`});
|
|
2
2
|
|
|
3
|
-
__emailmaker__.require.config({ paths: {"js/iframe.js":"js/iframe.body.
|
|
3
|
+
__emailmaker__.require.config({ paths: {"js/iframe.js":"js/iframe.body.d5e4bde1.js"} });
|
|
4
4
|
|
|
5
|
-
__emailmaker__.require.config({"graph":{"js/iframe-eblock.js":["js/
|
|
5
|
+
__emailmaker__.require.config({"graph":{"js/iframe-eblock.js":["js/elMarkupHelper.C66zL1zp.js"],"js/iframe.js":["js/elMarkupHelper.C66zL1zp.js"],"js/darkreader.CLd5EML2.js":[],"js/elMarkupHelper.C66zL1zp.js":[],"js/rules.CnnzdMsj.js":[],"js/typograf.all.Mun9CrLC.js":[]}});
|
|
6
6
|
|
|
7
7
|
__emailmaker__.require("js/iframe.js");
|