@emailmaker/emailmaker 1.0.60 → 1.0.61
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/README.md +1 -1
- package/asset-manifest.json +19 -19
- package/emailmaker-esm.js +1 -1
- package/emailmaker.js +1 -1
- package/iframe/css/sandbox.css +6 -2
- package/iframe/{iframe-eblock.1ef394c83ed0138fa7e1.html → iframe-eblock.f5bec4815a968824a7de.html} +1 -1
- package/iframe/{iframe.1ef394c83ed0138fa7e1.html → iframe.f5bec4815a968824a7de.html} +1 -1
- package/iframe/js/cssbeautify.js +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_idigital.html +1 -1
- package/plugin_s.html +1 -1
- package/static/js/1399.162f8a92.js +1 -0
- package/static/js/2574.20b0540d.js +1 -0
- package/static/js/4529.eae85391.js +1 -0
- package/static/js/5211.7f490bc6.js +1 -0
- package/static/js/7291.d2241d85.js +1 -0
- package/static/js/{7967.28137472.js → 7967.665dfd03.js} +1 -1
- package/static/js/8689.b8744e0e.chunk.js +1 -0
- package/static/js/8879.96cdfd59.js +2 -0
- package/static/js/{8879.26995270.js.LICENSE.txt → 8879.96cdfd59.js.LICENSE.txt} +3 -35
- package/static/js/{8995.410bef51.js → 8995.fc864aa4.js} +1 -1
- package/static/js/{emailmaker_core.f09929d2.js → emailmaker_core.d0afabb6.js} +1 -1
- package/translations.pot +168 -158
- package/static/js/1399.258dd710.js +0 -1
- package/static/js/2574.2f48eb7a.js +0 -1
- package/static/js/4529.2f2fc56b.js +0 -1
- package/static/js/5211.e473201c.js +0 -1
- package/static/js/7291.37dee66e.js +0 -1
- package/static/js/8689.fa42b226.chunk.js +0 -1
- package/static/js/8879.26995270.js +0 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8689],{90854:(t,e,n)=>{n.d(e,{A6:()=>a,AH:()=>m,BF:()=>f,Cn:()=>g,Lv:()=>w,M6:()=>l,ST:()=>p,TM:()=>o,b6:()=>$,d1:()=>C,ih:()=>b,ir:()=>S,rq:()=>N,uE:()=>s,uL:()=>A,vq:()=>u,wz:()=>d});const r=new Set(["area","br","col","embed","hr","img","input","link","meta","param"]);function o(t){return"<!DOCTYPE "+t.name+(t.publicId?' PUBLIC "'+t.publicId+'"':"")+(!t.publicId&&t.systemId?" SYSTEM":"")+(t.systemId?' "'+t.systemId+'"':"")+">"}const c=Object.create(null);function i(t,e){const n=c[t]||(c[t]=Object.create(null));let r=n[e];if("boolean"!==typeof r){const o=document.createElement(t)[e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,((t,e)=>e.toUpperCase()))];r=n[e]="undefined"!==typeof o&&"boolean"!==typeof o}return r}function u(t){return t.nodeType===Node.ELEMENT_NODE}function s(t){return u(t)&&!t.ownerSVGElement}function a(t){return"IMG"===t.tagName}function l(t){return"AMP-IMG"===t.tagName}function f(t){return"FORM"===t.tagName}function p(t){return"STYLE"===t.tagName}function d(t){return t.nodeType===Node.DOCUMENT_NODE}let m;var y;function g(t){return t.nodeType===Node.COMMENT_NODE}(y=m||(m={})).isStyleRule=function(t){return"CSSStyleRule"===t.constructor.name},y.isImportRule=function(t){return"CSSImportRule"===t.constructor.name},y.isMediaRule=function(t){return"CSSMediaRule"===t.constructor.name},y.isFontFaceRule=function(t){return"CSSFontFaceRule"===t.constructor.name},y.isPageRule=function(t){return"CSSPageRule"===t.constructor.name},y.isKeyframesRule=function(t){return"CSSKeyframesRule"===t.constructor.name},y.isKeyframeRuleRule=function(t){return"CSSKeyframeRule"===t.constructor.name},y.isNamespaceRule=function(t){return"CSSNamespaceRule"===t.constructor.name},y.isCounterStyleRule=function(t){return"CSSCounterStyleRule"===t.constructor.name},y.isSupportsRule=function(t){return"CSSSupportsRule"===t.constructor.name},y.isFontFeatureValuesRuleRule=function(t){return"CSSFontFeatureValuesRule"===t.constructor.name};const h=/(<!(--)?\[if\s[()\w\s|&!]+\]>(?:<!--+>)?)((?:.|\r|\n)*?)((?:<!--)?<!\[endif\]\2>)/gi;function b(t){const e=$(t).matchAll(h);if(e)for(const n of e){const[,t,,e,r]=n;return{open:t,close:r,content:e}}}function S(t){return t.nodeType===Node.TEXT_NODE}function w(t){return"TABLE"===t.tagName}async function N(t,e=5e3){return"undefined"===typeof t.complete||t.complete?getComputedStyle(t):new Promise(((n,r)=>{setTimeout(n,e),t.onload=()=>n(getComputedStyle(t)),t.onerror=t=>console.log(t)}))}function $(t){if(u(t))return function(t){var e;const n=(null===(e=Object.getOwnPropertyDescriptor(t,"$$tagName"))||void 0===e?void 0:e.value)||t.tagName.toLowerCase(),o=function(t){const e=t.tagName.toLowerCase();let n="";for(const r of t.attributes){const t=r.name,o=r.value;n+=""!==o||"em"===t||i(e,t)?` ${t}="${o.replaceAll('"',"'")}"`:` ${t}`}return n}(t);return r.has(n.toLowerCase())?`<${n}${o}>`:p(t)?`<${n}${o}>${t.innerHTML}</${n}>`:`<${n}${o}>${A(t)}</${n}>`}(t);if(d(t))return[...t.childNodes].map((t=>$(t))).join("");if(function(t){return t.nodeType===Node.DOCUMENT_TYPE_NODE}(t))return o(t);const e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}function A(t){let e="";for(const n of t.childNodes)e+=$(n);return e}function C(t,e){for(const c of t.childNodes)c.remove();let n=e.find((t=>function(t){return"HTML"===t.tagName}(t))),r=e.find((t=>function(t){return"BODY"===t.tagName}(t))),o=t;n||(n=t.createElement("html"),t.appendChild(n),o=n,r||(r=t.createElement("body"),n.appendChild(r),o=r));for(const c of e)o===t&&S(c)?o.appendChild(t.createComment(`%%%{{{${c.data}}}}%%%`)):o.appendChild(c)}},58689:(t,e,n)=>{n.d(e,{$l:()=>m,An:()=>w,Ay:()=>y,Mp:()=>v,PJ:()=>T,SR:()=>x,T5:()=>O,bc:()=>$,gZ:()=>R,pH:()=>d,qy:()=>A});var r=n(60564),o=n.n(r),c=n(65982),i=n(45053),u=n(90854),s=n(84007),a=n(71210),l=n(88896);const f=/url(?:\((['|"]?))(.*?\.(png|jpg|gif|jpeg|tiff){1})(?:['|"]?\))/gi,p="data:message/rfc822 eml,";async function d(t,e,n,r,o){var c={Subject:t,"X-Unsent":1,"Content-Type":"function"===typeof o?"text/html;charset=utf-8":'multipart/alternative; boundary="boundary-string"'};return`${Object.keys(c).reduce(((t,e)=>`${t}${e}:${c[e]}\n`),p)}\n${"function"===typeof o?await _(e,n,r,o):(await(0,l.X)(Object.keys(o).map((async t=>`\n--boundary-string\nContent-Type: ${t}\n\n${await _(e,n,r,o[t])}\n\n\n`)))).join("")+"----boundary_string--"}`}function m(t){const e=t.replace("\\","/").split("/");return e[e.length-1]}function y(t){return m(t).split(".")}function g(t){return x(t).then((t=>R(t)))}function h(t,e){const n=document.createElement("iframe");n.style.position="absolute",n.style.left="-10000px",document.body.appendChild(n);const r=n.contentWindow.document;try{if(e){const[t,r]=e;void 0!==t&&n.setAttribute("width",String(t)),void 0!==r&&n.setAttribute("height",String(r))}const o=(0,s.$$)(t);(0,u.d1)(r,o)}catch(o){console.log(o)}return[n,()=>document.body.removeChild(n)]}function b(t){return t.replace("<script","<___script").replace("<\/script>","</___script>")}const S=new i.uI((t=>{t.escape("<script","<\/script>",(t=>b(t))).unescape("<___script","</___script>",(t=>t.replace("<___script","<script").replace("</___script>","<\/script>"))),t.escape("<script","/>",(t=>b(t))).unescape("<___script","/>",(t=>t.replace("<___script","<script"))),(0,i.Hk)(t)}));async function w(t,e,n){t=S.getEscapedText(t);const[r,o]=h(t,n);try{const n=r.contentDocument;try{await e(n,t)}catch(c){console.log(c)}const o=n.querySelectorAll("tbody");for(const t of o)t.replaceWith(...t.childNodes);n.querySelectorAll("em-replace").forEach((t=>{if(t.hasAttribute("text")&&(t.insertAdjacentHTML("beforebegin",t.getAttribute("text")),t.parentNode.removeChild(t)),t.hasAttribute("src")){const e=t.querySelector("img");e.setAttribute("src",t.getAttribute("src")),t.replaceWith(e)}})),t=(0,u.b6)(n)}catch(c){}finally{o()}return S.getUnescapedText(t)}function N(t,e,n){try{if("function"===typeof n){var r=[];return String.prototype.replace.call(t,e,(function(){return r.push(n.apply(void 0,arguments)),""})),(0,l.X)(r).then((function(n){return String.prototype.replace.call(t,e,(function(){return n.shift()}))}))}return Promise.resolve(String.prototype.replace.call(t,e,n))}catch(o){return Promise.reject(o)}}async function $(t,e,n,r){const o=new Map;return t=await w(t,(async(t,r)=>{await async function(t,e,n=new Map){const r=t=>{let r=n.get(t);return r||(r=e(t),n.set(t,r)),r};function o(t){return N(t,f,((t,e="",n)=>r(n).then((t=>`url(${e}${t}${e})`))))}async function c(t){const e=t.getAttribute("style");if(e){const n=await o(e);e!==n&&t.setAttribute("style",n)}}const i=document.createNodeIterator(t,NodeFilter.SHOW_ALL),a=[];for(;;){const t=i.nextNode();if(null===t)break;if((0,u.vq)(t)){a.push(c(t));const e=t.getAttribute("background");if(e&&a.push(r(e).then((n=>{t.setAttribute("background",n||e)}))),(0,u.A6)(t)||(0,u.M6)(t)){const e=t.getAttribute("src");e&&a.push(r(e).then((n=>t.src=n||e)))}if((0,u.ST)(t)){const e=t.sheet.cssRules,n=[];for(const t of e){const{cssText:e}=t;e&&n.push(o(e))}a.push((0,l.X)(n).then((n=>{n.some(((t,n)=>e[n].cssText!==t))&&(t.innerHTML=n.join("\n"))})))}}else if((0,u.Cn)(t)){const e=(0,u.ih)(t),n=null===e||void 0===e?void 0:e.content;n&&a.push(N(n,/<v:fill.*>/gi,(async t=>{const e=await N(t,/src="([^"]*)"/gi,(async(t,e)=>`src="${await r(e)||e}"`));return N(e,/src='([^']*)'/gi,(async(t,e)=>`src='${await r(e)||e}'`))})).then((r=>{n!==r&&t.replaceWith((0,s.$$)(`${e.open}${r}${e.close}`)[0])})))}}return(0,l.X)(a)}(t,e,o),n&&await n(t,r)}),r),t}const A=800;function C(t,e){let n=t.getAttribute("href");if(n&&t.protocol.startsWith("http")){const r=function(t){const e=new Map;let n=0;for(;n>=0;)if(n=t.indexOf("\x3c!--",n),n>=0){const r=t.indexOf("--\x3e",n);e.set(t.substring(n,r+3),(0,a.l)()),n=r}return e}(n);r.forEach(((t,e)=>{n=n.replaceAll(e,t)}));const o=n.indexOf("#");let c=o>=0?n.substring(0,o):n,i=o>=0?n.substring(o+1):"";const u=n.indexOf("?"),s=u>=0?c.substring(u+1):"";if(c=u>=0?c.substring(0,u):c,t.host!==document.location.host){const o=new Map(s.split("&").filter((t=>t.indexOf("=")>=0)).map((t=>t.split("=")))),u=Object.keys(e);let a=s;for(const t of u)e[t]&&!o.has(t)&&(a=a+(a?"&":"")+`${t}=${e[t]}`);a!==s&&(n=c+(a?`?${a}`:"")+(i?`#${i}`:""),r.forEach(((t,e)=>{n=n.replaceAll(t,e)})),t.setAttribute("href",n))}}}async function T(t,e,n,r){let[o,c]=e||[A];return"number"===typeof o&&(o+="px"),"number"===typeof c&&(c+="px"),t=await w(t,(e=>{const o=e.querySelectorAll("a");for(const t of o)C(t,n);if(r)return r(e,t)}),[o,c])}async function _(t,e,n,r){let[o,c]=e||[A];return"number"===typeof o&&(o+="px"),"number"===typeof c&&(c+="px"),t=(t=await w(t,(async e=>{const o=e.querySelectorAll("*");for(const t of o)if((0,u.A6)(t)){const e=await(0,u.rq)(t);if(e){const n=parseInt(e.height),r=parseInt(e.width);isNaN(n)||t.setAttribute("height",String(n)),isNaN(r)||t.getAttribute("width")||t.setAttribute("width",String(r))}}else if((0,u.Lv)(t)){const e=parseInt(getComputedStyle(t).width);isNaN(e)||"BODY"===t.parentElement.tagName||t.setAttribute("width",String(e))}else"TD"===t.tagName||"A"===t.tagName&&C(t,n);if(r)return r(e,t)}),[o,c])).replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,"")}const E="images";async function v(t,e,n,r=g,i){let[u,s]=e||[A];"number"===typeof u&&(u+="px"),"number"===typeof s&&(s+="px");const a=new(o()),l=a.folder(E),f=new Set,p=await $(t,(async t=>{const e=await r(t);let[n,o]=y(t);if(!o)try{o=c.A.getExtension(e.type)}catch(s){console.log(s)}let i=`${n}.${o}`,u=1;for(;f.has(i);)i=`${n}(${++u}).${o}`;return f.add(i),l.file(i,e),`${E}/${i}`}),((t,e)=>{const r=t.querySelectorAll("a");for(const o of r)C(o,n);if(i)return i(t,e)}),[u,s]);return a.file("index.html",new Blob([p],{type:"text/html;charset=utf-8"})),a.generateAsync({type:"blob"})}function x(t){const e=new Image;return e.crossOrigin="anonymous",new Promise(((n,r)=>{e.onload=()=>n(e),e.onerror=r,e.src=t}))}function R(t,e="image/png",n){const r=document.createElement("canvas");r.width=t.width,r.height=t.height;return r.getContext("2d").drawImage(t,0,0),new Promise(((t,o)=>r.toBlob((e=>e?t(e):o("blob is null")),e,n)))}function M(t){var e;const n=null===(e=t.ownerDocument)||void 0===e?void 0:e.body;if(n&&function(t,e){do{if(t===e)return!0;t=t.parentNode}while(t);return!1}(t,n)){if((0,u.vq)(t)){if("IMG"===t.tagName)return"";if("SPAN"===t.tagName&&t.classList.contains("preheader"))return""}if("#text"===t.nodeName)return t.textContent}return t.childNodes?[...t.childNodes].map(M).join(""):""}function O(t){const[e,n]=h(t);try{return M(e.contentDocument.body).replace(/\u2800/g,"").replace(/(\r\n|\r|\n){2,}/g,"\n").trim()}finally{n()}}}}]);
|