@emailmaker/emailmaker 1.0.36 → 1.0.37

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.
Files changed (79) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +48 -44
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.d.ts +1 -0
  5. package/emailmaker.js +1 -1
  6. package/iframe/429.js +1 -1
  7. package/iframe/css/sandbox.css +12 -6
  8. package/iframe/{iframe-eblock.603d533b4efe6f5579a6.html → iframe-eblock.73bcbc874fc3021cba78.html} +1 -1
  9. package/iframe/{iframe.603d533b4efe6f5579a6.html → iframe.73bcbc874fc3021cba78.html} +1 -1
  10. package/iframe/js/cssbeautify.js +1 -1
  11. package/iframe/sandbox-eblock.js +1 -1
  12. package/iframe/sandbox.js +1 -1
  13. package/package.json +1 -1
  14. package/plugin.html +1 -1
  15. package/plugin_blocks_test.html +1 -1
  16. package/plugin_default.html +1 -1
  17. package/plugin_s.html +1 -1
  18. package/static/css/2208.56ea0abb.css +1 -0
  19. package/static/css/{5571.e9720eda.css → 5571.504f05c9.css} +1 -1
  20. package/static/css/8458.31d6cfe0.css +0 -0
  21. package/static/js/1399.f981f0f4.js +1 -0
  22. package/static/js/18.7d3e3257.js +1 -0
  23. package/static/js/2208.115694e9.js +1 -0
  24. package/static/js/2575.b05c7813.js +1 -0
  25. package/static/js/2896.ce4941ab.js +2 -0
  26. package/static/js/3710.193d2d5a.chunk.js +1 -0
  27. package/static/js/4035.1e8d8ad5.js +1 -0
  28. package/static/js/4877.5b496b72.js +1 -0
  29. package/static/js/5552.c5a9c252.js +1 -0
  30. package/static/js/5571.30a43d6b.js +1 -0
  31. package/static/js/5927.791b2edc.chunk.js +1 -0
  32. package/static/js/7291.e2615c74.js +1 -0
  33. package/static/js/78.8f294da6.js +1 -0
  34. package/static/js/8236.cc02400e.js +2 -0
  35. package/static/js/8458.657f471c.js +1 -0
  36. package/static/js/8483.7b71c205.js +1 -0
  37. package/static/js/8689.63fa1dc3.chunk.js +1 -0
  38. package/static/js/946.9512007a.js +2 -0
  39. package/static/js/{2582.d77da683.js.LICENSE.txt → 946.9512007a.js.LICENSE.txt} +16 -0
  40. package/static/js/emailmaker_core.21ced917.js +1 -0
  41. package/static/js/mergeTags/locale1.490fa827.chunk.js +1 -0
  42. package/static/media/fb.ff103843.png +0 -0
  43. package/static/media/ig.47a89992.png +0 -0
  44. package/static/media/tg.10f00452.png +0 -0
  45. package/static/media/tw.823a7736.png +0 -0
  46. package/static/media/vk.fe41df91.png +0 -0
  47. package/static/media/yd.c40d05dd.png +0 -0
  48. package/static/media/yt.4ac57e55.png +0 -0
  49. package/translations.pot +256 -212
  50. package/static/css/2256.d0db3199.css +0 -1
  51. package/static/css/698.9a48c3be.css +0 -1
  52. package/static/js/1399.cb6eb2fa.js +0 -1
  53. package/static/js/1792.81307cce.js +0 -1
  54. package/static/js/1795.8ada4a9a.js +0 -1
  55. package/static/js/2256.ade5bf3a.js +0 -1
  56. package/static/js/2582.d77da683.js +0 -2
  57. package/static/js/2896.fac80e3c.js +0 -2
  58. package/static/js/4877.b90d1691.js +0 -1
  59. package/static/js/515.16219a24.js +0 -2
  60. package/static/js/515.16219a24.js.LICENSE.txt +0 -6
  61. package/static/js/5571.383ce8ce.js +0 -1
  62. package/static/js/5927.d93485f1.chunk.js +0 -1
  63. package/static/js/6567.e70469eb.js +0 -1
  64. package/static/js/698.6e8cee9e.js +0 -1
  65. package/static/js/7471.ae85b39d.js +0 -1
  66. package/static/js/8179.acf16a1a.chunk.js +0 -1
  67. package/static/js/8236.bdefaa6b.js +0 -2
  68. package/static/js/8689.e2d021af.chunk.js +0 -1
  69. package/static/js/8738.3ba7b2e7.js +0 -2
  70. package/static/js/8738.3ba7b2e7.js.LICENSE.txt +0 -87
  71. package/static/js/9019.7efd13af.js +0 -2
  72. package/static/js/9019.7efd13af.js.LICENSE.txt +0 -96
  73. package/static/js/9649.b9c16408.js +0 -1
  74. package/static/js/9907.0d22d89d.js +0 -1
  75. package/static/js/emailmaker_core.ea017ac4.js +0 -1
  76. package/static/js/mergeTags/locale1.3448e6cb.chunk.js +0 -1
  77. /package/static/css/{1795.3b54559d.css → 5552.3b54559d.css} +0 -0
  78. /package/static/js/{2896.fac80e3c.js.LICENSE.txt → 2896.ce4941ab.js.LICENSE.txt} +0 -0
  79. /package/static/js/{8236.bdefaa6b.js.LICENSE.txt → 8236.cc02400e.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[5927],{7205:(e,t,r)=>{r.d(t,{A:()=>o});const n=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e)),a=new Set(["https:","http:","file:"]),s=e=>{try{const{protocol:t}=new URL(e);return t.endsWith(":")&&!t.includes(".")&&!a.has(t)}catch{return!1}},c=(e,{stripHash:t})=>{var r,n;const a=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!a)throw new Error(`Invalid URL: ${e}`);let{type:s,data:c,hash:o}=a.groups;const i=s.split(";");o=t?"":o;let d=!1;"base64"===i[i.length-1]&&(i.pop(),d=!0);const u=null!==(r=null===(n=i.shift())||void 0===n?void 0:n.toLowerCase())&&void 0!==r?r:"",l=[...i.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));return"charset"===t&&(r=r.toLowerCase(),"us-ascii"===r)?"":`${t}${r?`=${r}`:""}`})).filter(Boolean)];return d&&l.push("base64"),(l.length>0||u&&"text/plain"!==u)&&l.unshift(u),`data:${l.join(";")},${d?c.trim():c}${o?`#${o}`:""}`};function o(e,t){if("string"!==typeof(t={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...t}).defaultProtocol||t.defaultProtocol.endsWith(":")||(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e))return c(e,t);if(s(e))return e;const r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const a=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&"https:"===a.protocol&&(a.protocol="http:"),t.forceHttps&&"http:"===a.protocol&&(a.protocol="https:"),t.stripAuthentication&&(a.username="",a.password=""),t.stripHash?a.hash="":t.stripTextFragment&&(a.hash=a.hash.replace(/#?:~:text.*?$/i,"")),a.pathname){const e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let t=0,r="";for(;;){const n=e.exec(a.pathname);if(!n)break;const s=n[0],c=n.index;r+=a.pathname.slice(t,c).replace(/\/{2,}/g,"/"),r+=s,t=c+s.length}r+=a.pathname.slice(t,a.pathname.length).replace(/\/{2,}/g,"/"),a.pathname=r}if(a.pathname)try{a.pathname=decodeURI(a.pathname)}catch{}if(!0===t.removeDirectoryIndex&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=a.pathname.split("/");const r=e[e.length-1];n(r,t.removeDirectoryIndex)&&(e=e.slice(0,-1),a.pathname=e.slice(1).join("/")+"/")}if(a.hostname&&(a.hostname=a.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(a.hostname)&&(a.hostname=a.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const s of[...a.searchParams.keys()])n(s,t.removeQueryParameters)&&a.searchParams.delete(s);if(Array.isArray(t.keepQueryParameters)||!0!==t.removeQueryParameters||(a.search=""),Array.isArray(t.keepQueryParameters)&&t.keepQueryParameters.length>0)for(const s of[...a.searchParams.keys()])n(s,t.keepQueryParameters)||a.searchParams.delete(s);if(t.sortQueryParameters){a.searchParams.sort();try{a.search=decodeURIComponent(a.search)}catch{}}t.removeTrailingSlash&&(a.pathname=a.pathname.replace(/\/$/,"")),t.removeExplicitPort&&a.port&&(a.port="");const o=e;return e=a.toString(),t.removeSingleSlash||"/"!==a.pathname||o.endsWith("/")||""!==a.hash||(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||"/"===a.pathname)&&""===a.hash&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}},44141:(e,t,r)=>{r.d(t,{KU:()=>d,Pz:()=>o,hI:()=>l,u$:()=>u});var n=r(93278),a=r(33288),s=r(39217),c=r(67421);const o=a.di.createIdentifier("client"),i=a.di.createIdentifier("ai_client"),d=e=>a.di.getInstance(e,o),u=e=>a.di.getOrCreateInstance(e,i,(()=>new c.LA({baseUrl:"https://ai-mail.emcdn.ru"})));function l(e){return(t,r,c)=>{const o=a.di.getInstance(r,s.no);return(0,n.fetchBaseQuery)({...e,fetchFn:(null===o||void 0===o?void 0:o.execute)||fetch})(t,r,c)}}},53369:(e,t,r)=>{r.d(t,{A:()=>Y});var n=r(40342),a=r(39990),s=r(83351),c=r(1779),o=r(141),i=r(65119),d=r(84568),u=r(93563),l=r(17581),h=r(21981),p=r(63531),m=r(53200),f=r(47036),y=r(40869),g=r(56920),P=r(76793),v=r(843),w=r(35317),A=r(62677),x=r(48426),j=r(4115),S=r(64936),I=r(94925),C=r(34524),b=r(65983),E=r(47358),$=r(7760),k=r(8493),Q=r(87790),O=r(86286),H=r(53204),R=r(39738),T=r(55701),D=r(94381),L=r(18777),U=r(62689),W=r(46312),z=r(84612),M=r(58819),F=r(15865),N=r(95679),q=r(88528),Z=r(77532),B=r(36404),J=r(18398),_=r(33288),K=r(23580);const V=(0,n.HY)({[_.di.reducerPath]:_.di.reducer,[W.Z8.reducerPath]:W.Z8.reducer,[D.Ad.reducerPath]:D.Ad.reducer,[a.Q2.reducerPath]:a.Q2.reducer,[c.S.reducerPath]:c.S.reducer,[o.k.reducerPath]:o.k.reducer,[s.OV.reducerPath]:s.OV.reducer,[i.yR.reducerPath]:i.yR.reducer,[d.Nq.reducerPath]:d.Nq.reducer,[u.kE.reducerPath]:u.kE.reducer,[l.GY.reducerPath]:l.GY.reducer,[T.VM.reducerPath]:T.VM.reducer,[h.m4.reducerPath]:h.m4.reducer,[p.yH.reducerPath]:p.yH.reducer,[m.B.reducerPath]:m.B.reducer,[f.f.reducerPath]:f.f.reducer,[L.Jg.reducerPath]:L.Jg.reducer,[N.CL.reducerPath]:N.CL.reducer,[q.tO.reducerPath]:q.tO.reducer,[U.vx.reducerPath]:U.vx.reducer,[y.M.reducerPath]:y.M.reducer,[g.F.reducerPath]:g.F.reducer,[P.KA.reducerPath]:P.KA.reducer,[v.Sd.reducerPath]:v.Sd.reducer,[w.y.reducerPath]:w.y.reducer,[S.Ay.name]:S.Ay.reducer,[I.Ay.name]:I.Ay.reducer,[C.Ay.name]:C.Ay.reducer,[b.Ay.name]:b.Ay.reducer,[E.Ay.name]:E.Ay.reducer,[$.Ay.name]:$.Ay.reducer,[k.Ay.name]:k.Ay.reducer,[Q.Ay.name]:Q.Ay.reducer,[O.Ay.name]:O.Ay.reducer,[H.Ay.name]:H.Ay.reducer,[Z.Ay.name]:Z.Ay.reducer,[R.Ay.name]:R.Ay.reducer,[z.Zs.reducerPath]:z.Zs.reducer,[M.Uu.reducerPath]:M.Uu.reducer,[B.Ay.name]:B.Ay.reducer,[F.So.reducerPath]:F.So.reducer,[J.Ay.name]:J.Ay.reducer,[A.C.reducerPath]:A.C.reducer,[x.N.reducerPath]:x.N.reducer,[j.U8.reducerPath]:j.U8.reducer}),Y=(e,t)=>"authorizationApi/resetApiState"===t.type?V({[K.if]:e[K.if],[D.Ad.reducerPath]:e[D.Ad.reducerPath]},t):V(e,t)},37444:(e,t,r)=>{r.d(t,{F:()=>D,y:()=>L});var n=r(90536),a=r(31052),s=r(53369),c=r(39990),o=r(83351),i=r(65119),d=r(84568),u=r(93563),l=r(17581),h=r(21981),p=r(53200),m=r(63531),f=r(55701),y=r(47036),g=r(94381),P=r(18777),v=r(141),w=r(1779),A=r(40869),x=r(56920),j=r(76793),S=r(843),I=r(35317),C=r(95679),b=r(88528),E=r(62689),$=r(46312),k=r(84612),Q=r(58819),O=r(15865),H=r(62677),R=r(48426),T=r(4115);const D=[c.Q2,o.OV,w.S,v.k,i.yR,d.Nq,u.kE,l.GY,h.m4,p.B,f.VM,y.f,g.Ad,P.Jg,A.M,x.F,j.KA,S.Sd,I.y,C.CL,b.tO,E.vx,$.Z8,m.yH,k.Zs,Q.Uu,O.So,H.C,R.N,T.U8];function L(){const e=(0,n.configureStore)({reducer:s.A,middleware:e=>e({serializableCheck:!1}).concat(D.map((e=>e.middleware)))});return(0,a.$k)(e.dispatch),e}},90070:(e,t,r)=>{r.d(t,{W0:()=>o,p6:()=>s});var n=r(33288);const a=n.di.createIdentifier(),s=()=>n.di.useInstance(a);class c{constructor(){this._storage=Object.create(null)}get(e){const t=this._storage[e];return t&&(!t.expires||t.expires<Date.now())?t.value:""}set(e,t,r){this._storage[e]={value:t,expires:r.expires?1e3*r.expires+Date.now():void 0}}remove(e){delete this._storage[e]}}const o=e=>n.di.inject(e,a,new c)},23580:(e,t,r)=>{r.d(t,{A$:()=>m,Ff:()=>d,IP:()=>i,My:()=>u,Nj:()=>h,if:()=>o,lg:()=>l,rl:()=>p});var n=r(92810),a=r(45934),s=r(82375),c=r(41664);const o="INJECTION",i=o,d=(e,t)=>{if(!e){const e=s.Q.createChild(),t=(0,c.Q)();return s.Q.inject(t,e),t}return e};function u(e){const t=e.getState()[o];return t&&s.Q.getInstance(t)}function l(){const e=u((0,a.Pj)());return function(t,r){e.inject(t,r)}}function h(e){return u((0,a.Pj)()).getInstance(e)}function p(e){const[t,r]=(0,n.useState)(),s=(0,a.Pj)(),c=(0,n.useRef)(Promise.resolve()),o=u(s);return(0,n.useEffect)((()=>{const t=c.current=c.current.then((()=>o.getInstanceAsync(e))).then((e=>{t===c.current&&r(e)}),(e=>console.log(e)))}),[r,e,s,o]),t}function m(e){return u((0,a.Pj)()).getServices(e)}},39217:(e,t,r)=>{r.d(t,{CJ:()=>f,eT:()=>i,ft:()=>m,jY:()=>l,mg:()=>u,no:()=>p,qT:()=>c});var n=r(14315),a=r(44141),s=r(33288);function c(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return`${e}/wp-json`}const o={baseUrl:"https://app.emailmaker.ru/api//wp-json",baseApiParams:{secure:!0,credentials:"same-origin",format:"json"},securityWorker:()=>({credentials:"same-origin"})};o.baseUrl=c("https://app.emailmaker.ru/api/");const i=s.di.createIdentifier();function d(e){return s.di.getOrCreateInstance(e,i,(()=>function(e=o){const t=new Map;return{create(r){const a=new n.RQ({...e,...r});return t.set(a,r),a},getOptions:()=>e,setOptions(r){e=r;for(const[n,a]of t)Object.assign(n,{...e,...a})}}}()))}function u(e,t={}){return d(e).create(t)}const l=s.di.createIdentifier(),h=s.di.createIdentifier(),p=s.di.createIdentifier(),m=e=>{var t;t=e,s.di.inject(t,p,{execute:async(e,r={})=>{const n=s.di.getServices(t,l),a=new Request(e,r);for(const t of n)await t.execute(a);let c=await fetch(a);const o=s.di.getServices(t,h);for(const t of o)c=await t.execute(c);return c}});const r=s.di.getInstance(e,p);s.di.inject(e,a.Pz,u(e,{customFetch:(null===r||void 0===r?void 0:r.execute)||fetch}))};let f;!function(e){const t="https://racs.rest/v3";e.post=function(e,r){const n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,n)},e.getAll=async function(e,r=0){const n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:`{"filter":{},"limit":${r}}`},a=await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,n);return await a.json()}}(f||(f={}))},15230:(e,t,r)=>{r.d(t,{Cd:()=>o,Lz:()=>c,ax:()=>i,f5:()=>a,sZ:()=>s});var n=r(41664);const a="Not implemented in plugin",s=(0,n.Q)(),c=(0,n.Q)(),o=(0,n.Q)(),i=(0,n.Q)();(0,n.Q)(),(0,n.Q)()},12299:(e,t,r)=>{r.r(t),r.d(t,{init:()=>A});var n=r(39217),a=r(90070),s=r(37444),c=r(77509),o=r(33288),i=r(15230),d=r(14386),u=r(8671),l=r(55853),h=r(19209),p=r(33746),m=r(25565),f=r(62410),y=r(63772),g=r(37e3),P=r(91514),v=r(1281);r(85163).EW.isPlugin=!0;const w=(0,d.E)([u.e,l.E,h.F,P.h,p.F,v.Z,m.i,f.r,y.Z,g.JR]);async function A(e){const t=(0,s.y)(),r=new c.j,d=await(0,g.qF)(e.element,r),u=g.sC.get(d);if(u){const t=await u;if(t.getElement()===d)return await t.reset(e)}const l=async function(){o.di.inject(t,i.ax,t),e.standaloneKey&&o.di.inject(t,m.E,e.standaloneKey),o.di.inject(t,i.Lz,r),(0,a.W0)(t),(0,n.ft)(t);const s=await w(t);return await s.setOptions(e),o.di.inject(t,i.Cd,s),s.instance}();return d&&g.sC.set(d,l),l}},37e3:(e,t,r)=>{r.d(t,{JR:()=>g,qF:()=>P,sC:()=>v});r(57650),r(57964);var n=r(26254),a=r(89949),s=r(92810),c=r(97716),o=r(45934),i=r(64617),d=r(82212),u=r(32269),l=r(14386),h=r(893),p=r(33288),m=r(15230),f=r(17126),y=r(70082);const g=(0,l.l)((e=>{let t=null;const r=p.di.getInstance(e,m.Lz);let l;return{instance:{getElement:()=>t},async setOptions(g){let w=await P(g.element,r);const{instance:A}=p.di.getInstance(e,m.Cd)||{};if(t!==w){if(t&&v.delete(t),!(w&&v.has(w)&&A)){if(l&&l.dispose(),t=w,l=r.addDisposable(new u.jG),w)v.set(w,A);else{const e=document.createElement("div");e.style.position="absolute",e.style.left="-10000px",document.body.appendChild(e);const t=()=>{e.isConnected&&document.body.removeChild(e)};l.addDispose(t),w=e}return(t=>new Promise(((r,u)=>{var p;if(null!==(p=l)&&void 0!==p&&p.isDisposed())r();else{const u=(0,c.H)(t);u.render((0,y.jsx)(s.StrictMode,{children:(0,y.jsx)(o.Kq,{store:e,children:(0,y.jsx)(a.R,{onLoad:r,children:(0,y.jsx)(f.or.Provider,{value:{element:t},children:(0,y.jsx)(i.fS,{children:(0,y.jsx)(d.Y,{children:(0,y.jsx)(h.m,{children:(0,y.jsx)(n.A,{})})})})})})})})),l.addDispose(r),l.addDispose((()=>u.unmount()))}})))(w)}console.log("multiple init call on single HTMLELEMENT")}},dispose(){var e;null===(e=l)||void 0===e||e.dispose()}}}));function P(e,t){if("undefined"!==typeof e){if("string"===typeof e){if(e=document.querySelector(e))return e;const r=t.addDisposable(new u.jG);return new Promise(((t,n)=>{const a=new MutationObserver((()=>{(e=document.querySelector(e))&&(r.dispose(),t(e))}));a.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),r.addDisposable({dispose:()=>a.disconnect()})}))}return e}return e}const v=new Map},25565:(e,t,r)=>{r.d(t,{E:()=>u,i:()=>l});var n=r(20116),a=r(14999),s=r(14386),c=r(97001),o=r(44376),i=r(91738),d=r(33288);const u=d.di.createIdentifier(),l=(0,s.l)((async e=>{const t=d.di.getInstance(e,u);if(t){const n=(await r.e(9640).then(r.bind(r,76794))).injectStandaloneMocks;await n(e,t)}(0,n.BD)(e,a.A);const s=new c.P(e),l=new o.y(e);return{async setOptions(e){l.setOptions(e),await s.show(e.content)},instance:{...l.get(),show:e=>s.show(e),save:()=>s.save(),getEmail:()=>s.getEmail(),getBlocks:()=>s.getBlocks(),getEmailRevisions:()=>s.getEmailRevisions(),getComments:()=>s.getComments(),compileEmail:async e=>e?(0,i.AU)(e):await s.compileEmail(),getCodeErrors:()=>s.getCodeErrors()}}}))}}]);