useblocks 1.0.13 → 1.0.14
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 +2 -1
- package/asset-manifest.json +4 -4
- package/iframe/{iframe-eblock.1cc69ca9b72c02151b12.html → iframe-eblock.7c35087589932ea1158e.html} +1 -1
- package/iframe/{iframe.1cc69ca9b72c02151b12.html → iframe.7c35087589932ea1158e.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_s.html +1 -1
- package/static/js/{2434.f7ca00fe.js → 2434.fbc5ba06.js} +1 -1
- package/static/js/2627.75b999dd.js +1 -0
- package/useblocks-esm.js +1 -1
- package/useblocks.js +1 -1
- package/static/js/2627.05b4ace8.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[2627],{79381:(e,t,s)=>{s.d(t,{A:()=>se});var i=s(92810),r=s(64617),n=s(41919),a=s(95838),l=s(71157),o=s(98915),c=s(17590),d=s(21195),m=s(45934),u=s(38883),p=s.n(u),h=s(43005),_=s(24696),g=s(94822),v=s(23287),j=s(3824),x=s(75111),f=s(81325),y=s(74919),A=s(39475),b=s(8375),w=s(32293),N=s(9588),S=s(68631),k=s(84501),I=s(85025),C=s(94219),T=s(81577),E=s(64936),L=s(36404),z=s(86286),D=s(39990),O=s(32269),M=s(90070),R=s(85163),B=s(70082);const F=({isMenuCollapsed:e,setIsMenuCollapsed:t,isLocked:s})=>{var n;const{__:a}=(0,v.s9)();let l=(0,m.wA)(),o=(0,r.Zp)();const{projectId:c}=(0,r.g)(),{pathname:d}=(0,r.zy)(),[u,F]=(0,i.useState)(""),P=(0,m.d4)(L.yN),H=(0,m.d4)(z.C1),q=(0,M.p6)(),$=(0,i.useCallback)((()=>{d.includes("blocks")?F("Blocks"):d.includes("emails")?F("Emails"):d.includes("members")&&F("Members"),!s&&t(!0)}),[d,t,s]);(0,i.useEffect)((()=>{$()}),[$]);let V=[],W=[];const U=(null===P||void 0===P?void 0:P.title)||"";let X=[{label:(0,B.jsx)("a",{href:"https://help.useblocks.io/docs/knowledge-center/",target:"_blank",rel:"noopener noreferrer",children:a("Help")}),key:"Help center",icon:(0,B.jsx)(j.A,{style:{fontSize:"16px"}}),className:"help-center"},{label:a("Chat support"),key:"Support chat",icon:(0,B.jsx)(x.A,{style:{fontSize:"16px"}}),className:"open-support-chat",onClick:()=>{try{window.carrotquest.open()}catch(e){console.log(e)}}}],J=[{label:a("Account settings"),key:"Account settings",icon:(0,B.jsx)(f.A,{style:{fontSize:"16px"}}),className:"em-analytics__account-settings",onClick:()=>{l((0,E.qf)(R.lx.EDIT_PROFILE_MODAL)),!s&&t(!0)}},{label:(0,B.jsx)(g.N_,{to:"/billing",children:a("Billing")}),key:"Billing",icon:(0,B.jsx)(y.A,{style:{fontSize:"16px"}}),className:"em-analytics__billing"},{label:a("Sign out"),icon:(0,B.jsx)(A.A,{style:{fontSize:"16px"}}),key:"Sign out",className:"em-analytics__sign-out",onClick:()=>{(0,O.Id)(q),l(D.Q2.util.resetApiState()),o("/auth",{replace:!0})}}];const Y="/projects"+(c?"/"+c+"/emails?page=1":""),Z=[{label:(0,B.jsx)(g.N_,{style:{fontSize:16},to:Y,children:U}),key:"Project",popupOffset:[0,16],style:{fontWeight:500},icon:c?(0,B.jsx)(g.N_,{to:Y,className:"project-menu__block",style:{fontSize:"18px",zIndex:99},children:(0,B.jsx)(h.Ay,{type:"primary",className:"project-menu__block-button",children:null===U||void 0===U?void 0:U.split(" ").slice(0,2).map((e=>Array.from(e)[0]))})}):(0,B.jsx)(g.N_,{to:Y,rel:"noopener noreferrer",className:"project-menu__block",style:{fontSize:"40px",marginLeft:"8px"},children:(0,B.jsxs)("b",{children:[(0,B.jsx)("span",{className:"letters",children:"b"}),(!e||s)&&(0,B.jsxs)("span",{className:"hidden-text",children:["l",(0,B.jsx)("em",{children:"o"}),"cks"]})]})}),className:p()("project-menu__list-item project-menu__list-item_project project-menu__list-item_project",{"project-menu__list-item_logo":!c,"project-menu__list-item_project":c}),children:c&&[{label:a("Project settings"),key:"Project settings",className:"em-analytics__account-settings",icon:(0,B.jsx)(b.A,{style:{fontSize:"16px"}}),onClick:()=>{l((0,E.qf)(R.lx.EDIT_PROJECT_MODAL)),!s&&t(!0)}},{label:(0,B.jsx)(g.N_,{to:"/projects",children:a("List of projects")}),key:"List of projects",icon:(0,B.jsx)(w.A,{style:{fontSize:"16px"}}),className:"em-analytics__sign-out"}]},{type:"divider"}];return V.push({icon:(0,B.jsx)(N.A,{style:{fontSize:20}}),label:(0,B.jsx)(g.N_,{to:`/projects/${c}/emails`,rel:"noopener noreferrer",children:a("Emails")}),key:"Emails",className:"project-menu__list-item em-analytics__project-menu-emails"},{icon:(0,B.jsx)(S.A,{style:{fontSize:20}}),label:(0,B.jsx)(g.N_,{to:`/projects/${c}/blocks`,rel:"noopener noreferrer",children:a("Blocks")}),key:"Blocks",className:"project-menu__list-item em-analytics__project-menu-blocks"},{icon:(0,B.jsx)(k.A,{style:{fontSize:20}}),label:(0,B.jsx)(g.N_,{to:`/projects/${c}/members`,rel:"noopener noreferrer",children:a("Members")}),key:"Members",className:"project-menu__list-item em-analytics__project-menu-members"}),"community"===H.subscription.post_name&&c&&H.counters.emails_counter>2&&W.push({icon:(0,B.jsx)(I.A,{style:{fontSize:20,lineHeight:"44px"}}),label:(0,B.jsx)(g.N_,{to:"/billing",rel:"noopener noreferrer",style:{fontSize:16,color:"white"},children:a("Upgrade")}),key:"Emails",className:"project-menu__list-item"}),W.push({icon:(0,B.jsx)(C.A,{style:{fontSize:18}}),label:a("Help menu"),key:"Help menu",className:"project-menu__list-item support-center-menu",children:X},{icon:(0,B.jsx)(T.A,{style:{fontSize:18}}),label:a("What's new"),key:"What's new",className:"project-menu__list-item ducalis-changelog-widget em-analytics__project-menu-ducalis"},{icon:(0,B.jsx)("span",{style:{width:"20px",height:"20px",fontSize:"20px"},className:"user-profile__avatar anticon",children:null!==H&&void 0!==H&&null!==(n=H.avatar_urls)&&void 0!==n&&n[24]?[(0,B.jsx)("img",{style:{width:"100%"},src:null===H||void 0===H?void 0:H.avatar_urls[24],alt:null!==H&&void 0!==H&&H.name?`${null===H||void 0===H?void 0:H.name} avatar`:"User avatar",className:"user-profile__avatar-img"},"img"),(0,B.jsx)(f.A,{style:{position:"absolute",fontSize:20,borderRadius:100,overflow:"hidden",height:20,width:20,lineHeight:0,zIndex:-1}},"UserOutlined")]:(0,B.jsx)(f.A,{style:{color:"white"}})}),label:(null===H||void 0===H?void 0:H.name)||null,key:"User profile",className:"project-menu__list-item user-profile",children:J}),(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)("div",{className:"project-menu",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)(_.A,{disabledOverflow:!0,className:"project-menu__list project-menu__list_top",style:{fontSize:16},items:Z,triggerSubMenuAction:"hover",subMenuOpenDelay:.3,subMenuCloseDelay:.6,selectable:!1}),c&&(0,B.jsx)(_.A,{disabledOverflow:!0,selectable:!0,selectedKeys:[u],className:"project-menu__list project-menu__list_second",style:{fontSize:16,marginTop:30},items:V,triggerSubMenuAction:"hover"})]}),(0,B.jsx)(_.A,{disabledOverflow:!0,selectable:!0,selectedKeys:["Emails"],forceSubMenuRender:"true",className:"project-menu__list project-menu__list_bottom",style:{fontSize:14,marginBottom:6},subMenuOpenDelay:.3,subMenuCloseDelay:.6,items:W,triggerSubMenuAction:"hover"})]})})};var P=s(35285),H=s(65052),q=s(70656),$=s(62689),V=s(65983),W=s(7760),U=s(19366),X=s(3289),J=s(78451),Y=s(32411),Z=s(69156),K=s(13329),G=s(56991),Q=s(28316);const{Sider:ee}=n.A,{useToken:te}=a.A,se=()=>{const{token:e}=te();let t=(0,r.zy)();const s=(0,m.wA)(),a=(0,r.Zp)(),{emailId:u,blockId:h}=(0,r.g)(),_=(0,m.d4)(z.C1),g=(0,m.d4)(E.cL),v=(0,i.useRef)(),[j]=(0,$.bw)(),x=(0,l.hN)();v.current||(v.current=(0,Y.$Z)()),(0,i.useEffect)((()=>{(0,Z.FN)(e)}),[e]);const{data:f=[],isSuccess:y}=(0,$.I9)(_.id,{pollingInterval:3e4,skip:g});(0,i.useEffect)((()=>{const e=f.filter((e=>""===e.seen||null===e.seen));setTimeout((()=>{e.length&&y&&e.forEach((e=>{x[e.type]({message:(0,B.jsx)("div",{dangerouslySetInnerHTML:{__html:e.title}}),description:(0,B.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content}}),placement:"bottomRight"});const t=(new Date).toLocaleString();j({id:e.id,datetime:t}).unwrap()}))}),5e3)}),[y,j,f,x]),(0,U.A)(),(0,X.A)(),(0,J.A)(),(0,i.useEffect)((()=>{h||s((0,W.nJ)()),u||s((0,V.ss)())}),[h,u,s,t.pathname]);let A=null;(u||h||t.pathname.endsWith("/new"))&&(A=v.current);const b=JSON.parse(localStorage.getItem(R.V0.em_menu_is_locked)),[w,N]=(0,i.useState)((null===b||void 0===b?void 0:b.isLocked)||!1),[S,k]=(0,i.useState)(!0);return(0,i.useEffect)((()=>{const e=()=>localStorage.setItem(R.V0.em_menu_is_locked,JSON.stringify({isLocked:w}));return e(),e()}),[w]),(0,K.D3)(Q._1,(0,i.useCallback)((e=>{const t=(0,G.Mu)(e);a(t)}),[a])),(0,B.jsx)("div",{className:"main",children:(0,B.jsx)(Y.kx.Provider,{value:A,children:(0,B.jsx)("div",{className:"main__pane main__pane_main",children:(0,B.jsx)("div",{className:"main__pane-content",id:"pane-content-iframe",children:(0,B.jsxs)(n.A,{className:"main__pane-layout",hasSider:!0,children:[!R.EW.isPlugin&&(0,B.jsx)(ee,{theme:"light",style:{borderColor:e.colorBorder,position:"fixed"},collapsible:!0,collapsed:!w&&S,defaultCollapsed:!0,reverseArrow:!w&&!S||w&&!S,trigger:(0,B.jsxs)("div",{className:"main__pane-trigger",children:[w?(0,B.jsx)(d.A,{style:{fontSize:18}}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(o.A,{style:{fontSize:18}}),(0,B.jsx)(c.A,{style:{fontSize:18}})]}),(0,B.jsx)(q.A,{})]}),className:p()("main__menu",{main__menu_lock:w}),width:260,onCollapse:(e,t)=>{e?!w&&k(!0):k(!e),N(!w)},onMouseEnter:()=>!w&&k(!1),onMouseLeave:()=>!w&&k(!0),children:(0,B.jsx)(F,{isMenuCollapsed:S,setIsMenuCollapsed:k,isLocked:w})}),(0,B.jsx)(P.A,{isModalVisible:g===R.lx.EDIT_PROJECT_MODAL}),(0,B.jsx)(H.A,{isModalVisible:g===R.lx.EDIT_PROFILE_MODAL}),(0,B.jsx)(r.sv,{})]})})})})})}},24495:(e,t,s)=>{s.d(t,{A:()=>E});var i=s(92810),r=s(76662),n=s(41919),a=s(43005),l=s(71157),o=s(20258),c=s(64617),d=s(12280),m=s(55039),u=s(45934),p=s(23287),h=s(4800),_=s(21349),g=s(8114),v=s(85163);const j=(e,t,s,i,r,n)=>{var a,l;const o=n("Owner","member"),c=n("Administrator","member"),d=r("The invitation has been sent");let m=[];e.role===d?m.push({label:r("Revoke the invite"),key:v.JE,className:"em-analytics__revoke-invite",onClick:({key:t})=>i(t,e)}):(e.role!==o&&m.push({label:r("Assign the project owner"),key:v.gY,className:"em-analytics__members-owner",onClick:({key:t})=>i(t,e)}),e.role!==c&&m.push({label:r("Change role to Administrator"),key:v.Qz,className:"em-analytics__members-admin",onClick:({key:t})=>i(t,e)}),e.role===c&&m.push({label:r("Change role to User"),key:v.aO,className:"em-analytics__members-user",onClick:({key:t})=>i(t,e)}),m.push({label:r("Remove member"),key:v.eA,onClick:({key:t})=>i(t,e)}));let u=[];(null===(a=e.ID)||void 0===a?void 0:a.toString())===(null===(l=s.id)||void 0===l?void 0:l.toString())&&u.push({label:r("Change role to User"),key:v.aO,className:"em-analytics__members-user",onClick:({key:t})=>i(t,e)}),e.role===v.m3&&u.push({label:r("Change role to Administrator"),key:v.Qz,className:"em-analytics__members-admin",onClick:({key:t})=>i(t,e)}),e.role===v.G$?u.push({label:r("Revoke the invite"),key:v.JE,className:"em-analytics__revoke-invite",onClick:({key:t})=>i(t,e)}):u.push({label:r("Remove member"),key:v.eA,className:"em-analytics__members-remove",onClick:({key:t})=>{i(t,e)}});let p=[{label:r("Remove member"),key:v.eA,className:"em-analytics__members-remove",onClick:({key:t})=>i(t,e)}];switch(t){case v.yo:return m;case v.St:return u;case v.m3:return p;default:return null}};j.propTypes={};const x=j;var f=s(86286),y=s(84568),A=s(31844),b=s(32269),w=s(70082);const N=()=>{const{__:e,_x:t}=(0,p.s9)(),s=(0,u.d4)(f.C1),{owner:r,admin:n}=(0,A.A)();let a=(0,c.Zp)();const o=(0,l.hN)(),[d,m]=(0,i.useState)(""),j=t("Owner","member"),N=t("Administrator","member"),S=e("user"),k=e("The invitation has been sent");(0,i.useEffect)((()=>{r||n||m(v.m3),r&&m(v.yo),n&&m(v.St)}),[r,n,s]);const{data:I,isFetching:C,refetch:T}=(0,c.KC)(),[E,L]=(0,i.useState)([]);(0,i.useEffect)((()=>{const{owner:s,admins:i,users:r,invited_users:n}=I.members||{};L([s&&{...s,role:t("Owner","member")},i&&Array.isArray(i)&&i.map((e=>({...e,role:t("Administrator","member")}))),r&&Array.isArray(r)&&r.map((t=>({...t,role:e("user")}))),n&&Array.isArray(n)&&n.filter((e=>null===e||void 0===e?void 0:e.invited_user_email)).map((t=>({role:e("The invitation has been sent"),user_email:t.invited_user_email,user_firstname:" ",user_lastname:" "})))].filter((e=>e)).flat(1))}),[I.members,e,t]);const[z,D]=(0,y.OD)(),O=(i,{role:r,...n})=>{var l,c;let d,m;switch(i){case v.gY:if(r===N){const e=I.members.admins,t=I.members.owner;d={members:{admins:e&&Array.isArray(e)&&e.length>0?[...e.filter((e=>e.ID!==n.ID)).map((e=>e.ID)),t.ID]:0,owner:n.ID}}}if(r===S){const e=I.members.users,t=I.members.owner;d={members:{users:e&&Array.isArray(e)&&e.length>0?[...e.filter((e=>e.ID!==n.ID)).map((e=>e.ID)),t.ID]:0,owner:n.ID}}}m=e("You changed the role of ")+n.display_name+t(" to ","member")+e("owner")+".";break;case v.Qz:if(r===S){const s=I.members.users,i=I.members.admins;d={members:{users:s&&Array.isArray(s)&&s.length>1?s.filter((e=>e.ID!==n.ID)).map((e=>e.ID)):0,admins:i&&Array.isArray(i)&&i.length>0?[...i.map((e=>e.ID)),n.ID]:[n.ID]}},m=e("You changed the role of ")+n.display_name+t(" to ","member")+e("Administrator")+"."}break;case v.aO:if(r===N){const s=I.members.admins,i=I.members.users;d={members:{admins:s&&Array.isArray(s)&&s.length>1?s.filter((e=>e.ID!==n.ID)).map((e=>e.ID)):0,users:i&&Array.isArray(i)&&i.length>0?[...i.map((e=>e.ID)),n.ID]:[n.ID]}},m=e("You changed the role of ")+n.display_name+t(" to ","member")+e("user")+"."}break;case v.eA:if(r===N){const e=I.members.admins;d={members:{admins:e&&Array.isArray(e)&&e.length>1?e.filter((e=>e.ID!==n.ID)).map((e=>e.ID)):0}}}if(r===S){const e=I.members.users;d={members:{users:e&&Array.isArray(e)&&e.length>1?e.filter((e=>e.ID!==n.ID)).map((e=>e.ID)):0}}}m=(null===(l=s.id)||void 0===l?void 0:l.toString())===(null===(c=n.ID)||void 0===c?void 0:c.toString())?e("You deleted yourself from the project successfully."):e("You deleted ")+n.display_name+" "+e(" from the project successfully.");break;case v.JE:const i=I.members.invited_users;d={members:{invited_users:!!(i&&Array.isArray(i)&&i.length>0)&&i.filter((e=>e.invited_user_email&&e.invited_user_email!==n.user_email))}},m=e("You revoke invite for ")+n.user_email+" "+e(" from the project successfully.");break;default:return}z({projectId:I.id,...d}).then((e=>{var t,i;if(e.error)return(null===(t=s.id)||void 0===t?void 0:t.toString())===(null===(i=n.ID)||void 0===i?void 0:i.toString())?((0,b.wB)(m,o),void a("/projects")):void(0,b.p6)(e,o);T(),(0,b.wB)(m,o)}))},M=[{width:"25%",title:e("Email"),dataIndex:["user_email"]},{width:"25%",title:e("Name"),dataIndex:["user_firstname"],render:(e,{user_lastname:t})=>(0,w.jsx)(w.Fragment,{children:e||t?`${e} ${t}`:"-"})},{width:"25%",title:e("Role"),dataIndex:["role"],render:(e,t,s)=>e},{width:"3%",title:"",dataIndex:"",key:"x",onCell:()=>({style:{padding:0}}),render:(i,a)=>{const l=x(a,d,s,O,e,t);return a.role===j||!r&&!n&&a.role===N||n&&a.role===N&&s.id!==a.ID||!r&&!n&&a.role===S&&s.id!==a.ID||!r&&!n&&a.role===k?null:(0,w.jsx)(h.A,{arrow:"true",placement:"bottomRight",menu:{items:l},trigger:["hover"],children:(0,w.jsx)("span",{className:"members-table__actions",children:(0,w.jsx)(g.A,{})})})}}];return(0,w.jsx)("div",{children:(0,w.jsx)(_.A,{bordered:!0,className:"members-table",rowClassName:e=>e.role===k?"members-table__invite_member_row":"",rowKey:e=>`${e.role}_${e.ID||e.user_email}`,dataSource:E,columns:M,loading:D.isLoading||C,showSizeChanger:!1,pagination:{showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomLeft"]}})})};var S=s(20757),k=s(53200),I=s(22197);const{Paragraph:C}=r.A,{Content:T}=n.A,E=()=>{const{__:e}=(0,p.s9)(),t=(0,u.wA)(),{owner:s,admin:r}=(0,A.A)(),[h]=d.A.useForm(),_=(0,l.hN)(),[g,v]=(0,k.N)(),{data:j,refetch:x}=(0,c.KC)();(0,I.A)(e("Members")),(0,i.useEffect)((()=>{document.body.classList.remove("editor")}));const f=(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(C,{className:"ant-page-header-heading-title",children:e("Members")})}),E=(0,w.jsx)(w.Fragment,{children:s||r?[(0,w.jsxs)(d.A,{form:h,name:"search-members-form",initialValues:{remember:!0},onFinish:({email:e})=>{g({email:e,project_id:j.id}).then((e=>{var s,i,r;e.isError?(0,b.p6)(e,_):(null===(s=e.data)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.status)<400?(h.resetFields(),x(),(0,b.wB)(null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.message,_),t(y.Nq.util.invalidateTags([{type:"Projects",id:j.id}]))):_.error({message:(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.code}}),description:(0,w.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.message}}),placement:"bottomRight"})}))},autoComplete:"off",layout:"inline",validateTrigger:"onSubmit",onValuesChange:()=>{h.setFields([{errors:[],name:["email"]}])},className:"members-page__search-form",children:[(0,w.jsx)(d.A.Item,{className:"members-page__search-form-item members-page__search-form-item_input-item",name:"email",rules:[{required:!0,message:e("Please enter the correct email address."),type:"email"}],children:(0,w.jsx)(m.A,{placeholder:e("Email of a new member"),disabled:v.isLoading})}),(0,w.jsx)(d.A.Item,{className:"members-page__search-form-item",children:(0,w.jsx)(a.Ay,{type:"primary",className:"em-analytics__members-add",htmlType:"submit",disabled:v.isLoading,icon:(0,w.jsx)(o.A,{}),children:e("Add a member")})})]},"search-members-form")]:[]});return(0,w.jsxs)(n.A,{className:"members-page",children:[(0,w.jsx)(S.A,{leftBlock:f,rightBlock:E}),(0,w.jsx)(T,{className:"members-page__container",children:(0,w.jsx)("div",{className:"members-page__content container",children:(0,w.jsx)(N,{})})})]})}},40836:(e,t,s)=>{s.d(t,{A:()=>f});var i=s(92810),r=s(71503),n=s(45934),a=s(887),l=s(45695),o=s(44396),c=s(86286),d=s(65983),m=s(7760),u=s(53204),p=s(64037),h=s(71070),_=s(85163),g=s(58075),v=s(32411),j=s(56991),x=s(70082);r.wG.config({monaco:h}),(0,o.Q)(),(0,g.Gr)(h),(0,g.Wz)(h,["html"]);const f=({email:e,readOnly:t})=>{const s=(0,v.fn)(),o=(0,l.XW)(),g=(0,n.d4)(d.Up),f=(0,n.d4)(m.Up),y=(0,n.d4)(d.VZ),A=null!==e&&void 0!==e&&e.hasOwnProperty("type")?f:g,b=(0,n.d4)(c.hZ),w=(0,n.wA)(),N=(0,i.useRef)(null),S=(0,i.useRef)(null),k=(0,j.rD)(),I=(0,i.useCallback)((()=>{w((0,c.ku)(!1))}),[w]);(0,i.useEffect)((()=>I()),[I]),(0,i.useEffect)((()=>{if(y){const{current:e}=N;e&&(e.revealRangeInCenterIfOutsideViewport(y),e.setSelection(y))}}),[y]);(0,i.useEffect)((()=>{N.current&&N.current.updateOptions(b)}),[b,N]),(0,i.useEffect)((()=>{matchMedia(_.F3).addEventListener("change",(t=>{const s=window.localStorage.getItem(_.V0.em_color_scheme),i=t.matches?_.nd:_.T;e.hasOwnProperty("type")?w(s?(0,m.eX)(s===_.nd?`vs-${s}`:_.T):(0,m.eX)(i===_.nd?`vs-${i}`:_.T)):w(s?(0,d.eX)(s===_.nd?`vs-${s}`:_.T):(0,d.eX)(i===_.nd?`vs-${i}`:_.T))}))}),[w,e]),(0,i.useEffect)((()=>{const t=window.localStorage.getItem(_.V0.em_color_scheme),s=matchMedia(_.F3).matches?_.nd:_.T;null!==e&&void 0!==e&&e.hasOwnProperty("type")?w(t?(0,m.eX)(t===_.nd?`vs-${t}`:_.T):(0,m.eX)(s===_.nd?`vs-${s}`:_.T)):w(t?(0,d.eX)(t===_.nd?`vs-${t}`:_.T):(0,d.eX)(s===_.nd?`vs-${s}`:_.T))}),[w,e]);(0,p.A)((e=>{const t=e.data.operation,s=e.data;S.current=t,t===_.Ru.UPDATE_EDITOR_POSITION_FROM_IFRAME&&(e=>{const{current:t}=N;if(t&&!t.hasTextFocus()){const s=t.getModel(),i=s.getPositionAt(e.start),r=s.getPositionAt(e.end),n={startColumn:i.column,startLineNumber:i.lineNumber,endColumn:r.column,endLineNumber:r.lineNumber};t.revealRangeInCenterIfOutsideViewport(n),t.setSelection(n)}})(s.data)}));const C=(0,i.useMemo)((()=>({...b,domReadOnly:t,readOnly:t,unusualLineTerminators:"off",mouseWheelZoom:!0,wordWrap:k.onlyCodeModeInMobile?"off":b.wordWrap})),[b,k.onlyCodeModeInMobile,t]);return(null===s||void 0===s?void 0:s.uri)&&(0,x.jsx)(r.Ay,{theme:A,className:"monaco-editor",defaultLanguage:"html",onMount:(e,t)=>{N.current=e;const s=e.getContribution("editor.linkDetector").openerService,i=s.open.bind(s),r=document.createElement("div");new a.Ay(e,h,{"doctype-html5":!1,"html-lang-require":!1,"head-script-disabled":!1,"style-disabled":!1,"script-disabled":!1,"attr-lowercase":!1,"attr-value-single-quotes":!1,"attr-value-not-empty":!1,"attr-sorted":!1,"attr-whitespace":!1,"input-requires-label":!1,"tag-self-close":!1,"tagname-lowercase":!1,"href-abs-or-rel":!1,"inline-style-disabled":!1,"space-tab-mixed-disabled":!1,"attr-no-unnecessary-whitespace":!0,"tags-check":{img:{selfclosing:!1,attrsRequired:["src","alt"]},a:{selfclosing:!1,attrsRequired:["href"]}},"empty-tag-not-self-closed":!1,"attr-value-double-quotes":!0,"doctype-first":!0,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0,"title-require":!0,"alt-require":!0,"inline-script-disabled":!0,"id-class-value":!1,"id-class-ad-disabled":!0,"attr-unsafe-chars":!0,csslint:{"display-property-grouping":!0,"known-properties":!0}}).watch(),e.getContribution("editor.linkDetector").openerService.open=e=>(r.innerHTML=e,i(r.textContent)),w((0,c.ku)(!0)),e.onMouseUp((()=>{const t=e.getSelection();t.startColumn===t.endColumn&&t.startLineNumber===t.endLineNumber&&(async e=>{const{current:t}=N;if(t){const s=t.getModel();o({operation:_.Ru.UPDATE_EDITOR_POSITION_FROM_EDITOR,data:s.getOffsetAt(e)})}})(e.getPosition())})),e.onDidBlurEditorWidget((()=>{o({operation:_.Ru.EDITOR_CHANGE_FOCUS,data:!1}),w((0,u.YT)(!1))})),e.onDidFocusEditorWidget((()=>{o({operation:_.Ru.EDITOR_CHANGE_FOCUS,data:!0}),w((0,u.YT)(!0))}))},options:C,keepCurrentModel:!0,path:s.uri.toString(),onValidate:function(e){var t;"Doctype must be declared first."!==(null===(t=e[0])||void 0===t?void 0:t.message)&&w((0,d.Bj)(e))}})}},21999:(e,t,s)=>{s.d(t,{A:()=>n});s(92810);var i=s(64617),r=s(70082);const n=({lastProjectId:e})=>{const{pathname:t,search:s}=(0,i.zy)();return!1===e?(0,r.jsx)(i.C5,{to:"/projects"}):e&&(0,r.jsx)(i.C5,{to:`/projects/${e+t+s}`})}},32983:(e,t,s)=>{s.d(t,{A:()=>n});s(92810);var i=s(64617),r=s(70082);const n=({to:e})=>(0,r.jsx)(i.C5,{to:e})},24239:(e,t,s)=>{s.d(t,{A:()=>m});s(92810);var i=s(41919),r=s(25072),n=s(43005),a=s(64617),l=s(23287),o=s(32269),c=s(70082);const{Content:d}=i.A,m=()=>{const{__:e}=(0,l.s9)();let t=(0,a.Zp)();return(0,c.jsx)(i.A,{children:(0,c.jsx)(d,{className:"container",children:(0,c.jsx)(r.Ay,{status:"500",title:"404",subTitle:e("Sorry, the page you visited does not exist."),extra:(0,c.jsx)(n.Ay,{type:"primary",onClick:()=>(0,o.XZ)(t,"/projects"),children:e("Back Home")})})})})}},26201:(e,t,s)=>{s.d(t,{A:()=>X});var i=s(92810),r=s(45934),n=s(64617),a=s(94822),l=s(76662),o=s(81e3),c=s(66522),d=s(43005),m=s(71086),u=s(2018),p=s(7744),h=s(29234),_=s(57806),g=s(67661),v=s(66726),j=s(31022),x=s(3329),f=s(13932),y=s(69825),A=s(58133),b=s(38883),w=s.n(b),N=s(88528),S=s(65983),k=s(84568),I=s(32269),C=s(71157),T=s(45695),E=s(23287),L=s(32411),z=s(85163),D=s(70082);const{Text:O,Link:M,Title:R}=l.A,B="Links",F="Images",P="Spam assassin",H="Problems",q="valid",$="warnings",V="errors",W=[q,V,$],U=({summary:e,__:t,selectedTags:s,setSelectedTags:i})=>(0,D.jsx)(R,{level:5,style:{margin:0,fontSize:"14px"},children:(0,D.jsx)(o.A,{style:{flexWrap:"wrap"},gap:"6",children:W.map(((r,n)=>(0,D.jsxs)(c.A.CheckableTag,{checked:null===s||void 0===s?void 0:s.includes(r),onChange:e=>((e,t)=>{const r=t?2===s.length?[]:[...s,e]:s.filter((t=>t!==e));i(r)})(r,e),className:w()(`${r} optimise__button`,{[`${r}_active`]:s.includes(r)}),children:[t(r).charAt(0).toUpperCase()+t(r).slice(1),": ",(null===e||void 0===e?void 0:e[r])||0]},r+n)))})}),X=()=>{var e,t,s,l,o;const{__:c,_n:b}=(0,E.s9)(),W=(0,r.wA)(),{emailId:X,projectId:J}=(0,n.g)(),Y=(0,C.hN)(),Z=(0,T.QC)(),K=(0,L.fn)(),G=(0,r.d4)(S.rd),[Q,ee]=(0,N.ku)(),[te,se]=(0,N.Ju)(),ie=((0,N.Sr)(),(0,N.FE)()),[re,ne]=ie,{data:ae,isSuccess:le,refetch:oe}=(0,k.fo)(+J),{limits:ce}=ae,{optimization_limit:de}=z.EW.isPlugin?{optimization_limit:0}:ce,me=de>0,[ue,pe]=(0,i.useState)([]),[he,_e]=(0,i.useState)([]),[ge,ve]=(0,i.useState)([]),[je,xe]=(0,i.useState)([]),[fe,ye]=(0,i.useState)([]),[Ae,be]=(0,i.useState)([]),[we,Ne]=(0,i.useState)(),[Se,ke]=(0,i.useState)(0);(0,i.useEffect)((()=>{var e;le&&(null===ae||void 0===ae||null===(e=ae.counters)||void 0===e?void 0:e.optimization_counter)&&ke(ae.counters.optimization_counter)}),[le,ae]),(0,i.useEffect)((()=>{var e,t;we===B&&ue.links&&ye(je.length>0?null===(e=ue.links)||void 0===e?void 0:e.filter((e=>je.includes(e.status))):ue.links);we===F&&he.images&&be(je.length>0?null===(t=he.images)||void 0===t?void 0:t.filter((e=>je.includes(e.status))):he.images)}),[ue.links,he.images,je,we]);const Ie=()=>{if(!X)return void Y.error({message:(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:"Save the mail first."}}),placement:"bottomRight"});let e;const t=K.getValue(),s=(new DOMParser).parseFromString(t,"text/html"),i={},r={};s.querySelectorAll("a[href]").forEach(((e,t)=>{i[`link_${t}`]=e.getAttribute("href"),r[`link_${t}`]=e.innerText})),Z.send({operation:"sandbox_set_attr_to_links"}),Q(JSON.stringify(i)).then((({data:t,error:s})=>{if(s)(0,I.p6)({error:s},Y);else if(null!==t&&void 0!==t&&t.result){let s=[...t.result];null===s||void 0===s||s.sort(((e,t)=>e.linkId-t.linkId));const i=e=>{var t,s,i,r;return(null!==e.statusCode?e.statusCode<300&&(null===(t=null===(s=e.page)||void 0===s?void 0:s.secure)||void 0===t||t):"invalid"!==e.type)?q:(e.statusCode&&e.statusCode<400||200===e.statusCode&&(null===(i=null===(r=e.page)||void 0===r?void 0:r.secure)||void 0===i||i))&&"invalid"!==e.type?$:V};e={links:s.map((e=>({...e,text:r[e.linkId],status:i(e)}))),summary:{valid:s.filter((e=>i(e)===q)).length||0,warnings:s.filter((e=>i(e)===$)).length||0,errors:s.filter((e=>i(e)===V)).length||0}},pe(e),(0,I.wB)(c("Links validation was successfully completed"),Y),oe()}else t.statusCode>300||!t.success?(0,I.p6)({error:{data:t}},Y):Y.error({message:(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:"\u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430"}}),placement:"bottomRight"}),!ue.links&&Ee("")})).catch((e=>{(0,I.p6)({error:e},Y)}))},Ce=()=>{if(!X)return void Y.error({message:(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:"Save the mail first."}}),placement:"bottomRight"});const e=K.getValue(),t=(new DOMParser).parseFromString(e,"text/html");let s={};t.querySelectorAll("img").forEach(((e,t)=>s[`image_${t}`]=e.src)),Z.send({operation:"sandbox_set_attr_to_images"}),te(JSON.stringify(s)).then((({data:e,error:t})=>{let s;if(t)(0,I.p6)({error:t},Y);else if(null!==e&&void 0!==e&&e.result){let t=Object.values(e.result);t.sort(((e,t)=>e.imageId-t.imageId));let i=t.reduce(((e,t)=>e+Math.round(t.image.bytes/1024)),0);const r=e=>null!==e.statusCode&&e.statusCode<300?q:e.statusCode<400&&e.statusCode>=300||200===e.statusCode&&!e.valid?$:V;s={images:t.map((e=>({...e,status:r(e)})))||[],summary:{valid:t.filter((e=>r(e)===q)).length||0,warnings:t.filter((e=>r(e)===$)).length||0,errors:t.filter((e=>r(e)===V)).length||0},summaryTime:{value:(i>1200?i/1e3:i).toFixed(1),name:c(i>1200?"MB":"KB")}},s&&_e(s),(0,I.wB)(c("Images validation was successfully completed"),Y),oe()}else{var i;e.statusCode>300||!e.success?(0,I.p6)({error:{data:e}},Y):Y.error({message:(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:"\u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430"}}),placement:"bottomRight"}),(null===he||void 0===he||null===(i=he.images)||void 0===i||!i.length)&&Ee("")}})).catch((e=>{(0,I.p6)({error:e},Y)}))},Te=()=>{X?re("\n"+JSON.stringify(K.getValue())).then((({data:e,error:t})=>{if(t)(0,I.p6)({error:t},Y);else if(e&&e.success){const t=Object.values(e.result.report);t&&t.sort(((e,t)=>e.score-t.score)),ve({...e.result,report:t}),(0,I.wB)(c("Spam validation was successfully completed"),Y),oe()}else e.statusCode>300||!e.success?(0,I.p6)({error:{data:e}},Y):Y.error({message:(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:"\u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430."}}),placement:"bottomRight"}),(null===ge||void 0===ge||!ge.length)&&Ee("")})).catch((e=>{(0,I.p6)({error:e},Y)})):Y.error({message:(0,D.jsx)("div",{dangerouslySetInnerHTML:{__html:"Save the mail first."}}),placement:"bottomRight"})},Ee=e=>{Ne(e!==we?e:""),xe([])};let Le=null;return(0,i.useEffect)((()=>{me&&Se>=+de&&Y.error({message:c("The usage limit has been exceeded"),description:c("The maximum number of requests for the current subscription period has been reached.\nSelect the appropriate plan to fulfil more requests"),placement:"bottomRight"})}),[Se,de,c,Y,me]),(0,D.jsxs)("div",{className:"optimise selected_form-props-wrapper selected_form-props-wrapper_optimize",children:[(0,D.jsxs)("div",{className:"optimise__couter-wrapper",children:[!z.EW.isPlugin&&(0,D.jsx)(d.Ay,{className:w()("optimise__counter-bar",{"optimise__counter-bar_full":me&&Se>=+de}),size:"small",children:Se+" "+c("of")+" "+(me?de:"\u221e")+" "+b("test","tests",de)+c(" were used")}),me&&(0,D.jsx)(a.N_,{style:{fontSize:14,textDecoration:"underline"},to:"/billing",children:c("Need more?")})]}),(0,D.jsx)(m.A,{className:"selected-td-form__divider",style:{marginTop:0,marginBottom:0}}),(0,D.jsxs)(u.A,{gutter:10,align:"middle",children:[(0,D.jsx)(p.A,{span:20,children:(0,D.jsx)("div",{className:"form-group-title",children:c("Links validation")})}),(0,D.jsx)(p.A,{span:4,align:"right",children:(0,D.jsx)(d.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{var e;Ee(B),null!==ue&&void 0!==ue&&null!==(e=ue.links)&&void 0!==e&&e.length||we===B||Ie()},loading:ee.isLoading,children:!ee.isLoading&&(we===B?(0,D.jsx)(j.A,{}):(0,D.jsx)(x.A,{}))})})]}),we===B&&!(null===ue||void 0===ue||!ue.links)&&(0===(null===ue||void 0===ue||null===(e=ue.links)||void 0===e?void 0:e.length)?(0,D.jsx)(u.A,{style:{marginBottom:24},children:(0,D.jsx)(h.A,{message:c("No links found."),type:"info"})}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(u.A,{style:{marginBottom:14},children:(0,D.jsxs)("div",{className:"optimise__title-wrapper",children:[(0,D.jsx)(U,{__:c,summary:ue.summary,setSelectedTags:xe,selectedTags:je}),(0,D.jsx)(d.Ay,{loading:ee.isLoading,onClick:Ie,icon:(0,D.jsx)(f.A,{}),children:c("Refresh")})]})}),(0,D.jsx)(u.A,{style:{marginBottom:24},children:(0,D.jsx)(p.A,{span:24,children:(0,D.jsx)(_.A,{itemLayout:"horizontal",dataSource:fe,renderItem:(e,t)=>{var s;return(0,D.jsx)(_.A.Item,{style:{border:"none"},children:(0,D.jsx)(_.A.Item.Meta,{avatar:e.status===q?(0,D.jsx)(y.A,{className:q}):e.status===$?(0,D.jsx)(y.A,{className:$}):(0,D.jsx)(A.A,{className:V}),title:(0,D.jsx)(M,{className:"optimise__link",style:{color:"#177ddc",textDecoration:"underline",userSelect:"text"},draggable:!1,onClick:()=>{return t=e.linkId,s=600>e.statusCode>399||!e.statusCode,void Z.send({operation:z.Ru.SANDBOX_SET_POSITION_TO_LINK,settings:{elementId:t,isError:s}});var t,s},children:""===e.url?c("empty link"):e.url}),description:(0,D.jsxs)(D.Fragment,{children:[!(null===(s=e.text)||void 0===s||!s.length)&&(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(O,{type:"secondary",children:e.text})}),e.page.title&&e.page.title,e.page.secure&&e.status===q&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("span",{className:"image-size-splitter",children:"\xa0\u2022\xa0"}),(0,D.jsx)("span",{className:q,children:c("secure")})]}),!e.resolvedUrl&&!e.statusCode&&"url"===e.type&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("span",{className:"image-size-splitter",children:"\xa0\u2022\xa0"}),(0,D.jsx)(O,{type:"secondary",children:c("Failed to load")})]})]})})},t+"_"+e.id)}})})})]})),(0,D.jsx)(m.A,{className:"selected-td-form__divider",style:{marginTop:0,marginBottom:0}}),(0,D.jsxs)(u.A,{gutter:10,align:"middle",children:[(0,D.jsx)(p.A,{span:20,children:(0,D.jsx)("div",{className:"form-group-title",children:c("Images validation")})}),(0,D.jsx)(p.A,{span:4,align:"right",children:(0,D.jsx)(d.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{var e;Ee(F),null!==he&&void 0!==he&&null!==(e=he.images)&&void 0!==e&&e.length||we===F||Ce()},loading:se.isLoading,children:!se.isLoading&&(we===F?(0,D.jsx)(j.A,{}):(0,D.jsx)(x.A,{}))})})]}),we===F&&!(null===he||void 0===he||!he.images)&&(0===(null===he||void 0===he||null===(t=he.images)||void 0===t?void 0:t.length)?(0,D.jsx)(u.A,{style:{marginBottom:24},children:(0,D.jsx)(h.A,{message:c("No images found."),type:"info"})}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(u.A,{style:{marginBottom:16},children:(0,D.jsx)(h.A,{style:{padding:14,paddingBottom:10,width:"100%"},message:(0,D.jsxs)("div",{className:"optimise__summary",children:[(0,D.jsxs)("div",{children:[(0,D.jsxs)(R,{level:4,style:{marginBottom:"0"},children:[he.images.length," "]}),(0,D.jsx)("span",{style:{fontSize:"12px"},children:c("images")})]}),(0,D.jsxs)("div",{children:[(0,D.jsxs)(R,{level:4,style:{marginBottom:"0"},children:[null===(s=he.summaryTime)||void 0===s?void 0:s.value,null===(l=he.summaryTime)||void 0===l?void 0:l.name]}),(0,D.jsx)("span",{style:{fontSize:"12px"},children:c("total size")})]}),(0,D.jsxs)("div",{children:[(0,D.jsx)(R,{level:4,style:{marginBottom:"0"},children:(Math.max(...he.images.map((e=>e.image.responseTime)))/1e3).toFixed(2)+c("s")}),(0,D.jsx)("span",{style:{fontSize:"12px"},children:c("time to load")})]})]}),type:"warning"})}),(0,D.jsx)(u.A,{style:{marginBottom:12},children:(0,D.jsxs)("div",{className:"optimise__title-wrapper",children:[(0,D.jsx)(U,{__:c,summary:he.summary,setSelectedTags:xe,selectedTags:je}),(0,D.jsx)(d.Ay,{loading:se.isLoading,onClick:()=>Ce(),icon:(0,D.jsx)(f.A,{}),children:c("Refresh")})]})}),(0,D.jsx)(u.A,{style:{marginBottom:12},children:(0,D.jsx)(p.A,{span:24,children:(0,D.jsx)(_.A,{className:"optimise__result-list",itemLayout:"horizontal",dataSource:Ae,renderItem:(e,t)=>(0,D.jsx)(_.A.Item,{className:"optimise__image-item image-item",style:{border:"none"},children:(0,D.jsx)(_.A.Item.Meta,{className:w()("image-item__meta",{"image-item__meta_fail":!e.resolvedUrl&&!e.statusCode}),avatar:(0,D.jsx)(g.A,{className:w()("image-item__image",{"image-item__image_fail":!e.resolvedUrl||!e.valid}),width:92,height:"auto",style:{height:"auto"},src:e.resolvedUrl||"",preview:!1,onMouseEnter:()=>{var t;return((e,t)=>{clearTimeout(Le);let s=document.querySelector(".img-preview")?document.querySelector(".img-preview"):null,i=document.querySelector(".img-preview-content")?document.querySelector(".img-preview-content"):null;document.querySelector(".img-preview")||(s=document.createElement("div"),s.classList.add("img-preview"),i=document.createElement("div"),i.classList.add("img-preview-content"),s.append(i),document.querySelector(".email-pane__col_settings-inner").append(s)),i.innerHTML=`<table cellspacing="0" cellpadding="0" border="0" width="100%"><img height="auto" width=${t+"px"} alt="" style="max-width: 100%; object-fit: contain" src=${e}></table>`,"1"!==s.style.opacity&&setTimeout((function(){s.style.opacity="1",s.style.transform="translateX(-100%)"}),10)})(e.url,null===(t=e.image.dimensions)||void 0===t?void 0:t.width)},onMouseLeave:()=>(()=>{let e=document.querySelector(".img-preview");e&&(Le=setTimeout((()=>{e.style.opacity="0",e.style.transform="translateX(-99%)",setTimeout((function(){e.remove()}),300)}),300))})()}),title:e.url?(0,D.jsx)(v.A,{placement:"top",title:e.message,children:(0,D.jsx)(M,{className:"optimise__link",style:{color:"#177ddc",textDecoration:"underline",userSelect:"text"},draggable:!1,onClick:()=>{return t=e.imageId,s=600>e.statusCode>399||!e.statusCode,void Z.send({operation:z.Ru.SANDBOX_SET_POSITION_TO_IMG,settings:{elementId:t,isError:s}});var t,s},children:""===(null===e||void 0===e?void 0:e.url)?c("empty src"):e.url})}):e.message,description:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:"image-size",children:[e.image.dimensions&&(0,D.jsxs)(D.Fragment,{children:[e.image.dimensions.width+" \xd7 "+e.image.dimensions.height,(0,D.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,D.jsxs)("span",{children:[Math.round(e.image.bytes/1024),c("kB")]}),(0,D.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,D.jsxs)("span",{children:[e.image.responseTime,c("ms")]}),(0,D.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,D.jsx)("span",{className:"image-size-format",children:e.image.contentType})]}),e.image.secure&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,D.jsx)("span",{className:q,children:c("secure")})]}),e.resolvedUrl&&!e.valid&&(0,D.jsx)(O,{type:"danger",children:c("not valid")})]})," ",!e.resolvedUrl&&!e.statusCode&&(0,D.jsx)(O,{type:"danger",children:c("Failed to load")})]})})},t)})})})]})),(0,D.jsx)(m.A,{className:"selected-td-form__divider",style:{marginTop:0,marginBottom:0}}),(0,D.jsxs)(u.A,{gutter:10,align:"middle",children:[(0,D.jsx)(p.A,{span:20,children:(0,D.jsx)("div",{className:"form-group-title",children:c("SpamAssassin")})}),(0,D.jsx)(p.A,{span:4,align:"right",children:(0,D.jsx)(d.Ay,{className:"selected-td-form__button ghost-button",type:"text",loading:ne.isLoading,onClick:()=>{var e;Ee(P),null!==(e=ge.report)&&void 0!==e&&e.length||Te()},children:!ne.isLoading&&(we===P?(0,D.jsx)(j.A,{}):(0,D.jsx)(x.A,{}))})})]}),we===P&&!(null===(o=ge.report)||void 0===o||!o.length)&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(u.A,{style:{marginBottom:8},children:[(0,D.jsxs)("div",{className:"optimise__title-wrapper optimise__title-wrapper_spam",children:[(0,D.jsxs)(R,{level:1,style:{margin:0},type:ge.spamScore<2||!ge.spamScore||ge.spamScore<=ge.baseSpamScore-1?"success":ge.spamScore<ge.baseSpamScore-1?"warning":"danger",children:[(0,D.jsx)("span",{style:{marginRight:"12px"},children:ge.spamScore||0}),(0,D.jsx)(O,{style:{marginRight:"12px",fontSize:"20px"},children:"Score"})]}),(0,D.jsx)(d.Ay,{icon:(0,D.jsx)(f.A,{}),loading:ne.isLoading,onClick:Te,children:c("Refresh")})]}),ge.spamScore>ge.baseSpamScore-1&&(0,D.jsx)(O,{children:c("Lower scores are better. Aim for a score less than ")+(ge.baseSpamScore-1)+"."})]}),(0,D.jsx)(u.A,{style:{marginBottom:8},children:(0,D.jsx)(p.A,{span:24,children:(0,D.jsx)(_.A,{itemLayout:"horizontal",dataSource:ge.report,renderItem:e=>(0,D.jsx)(_.A.Item,{style:{border:"none"},children:(0,D.jsx)(_.A.Item.Meta,{title:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(O,{style:{fontSize:"20px"},children:e.score}),(0,D.jsx)("span",{style:{marginLeft:"12px"},children:e.description})]})})})})})})]}),(0,D.jsx)(m.A,{className:"selected-td-form__divider",style:{marginTop:0,marginBottom:0}}),(0,D.jsxs)(u.A,{gutter:10,align:"middle",children:[(0,D.jsx)(p.A,{span:20,children:(0,D.jsx)("div",{className:"form-group-title",children:c("Source code validation")})}),(0,D.jsx)(p.A,{span:4,align:"right",children:(0,D.jsx)(d.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>Ee(H),children:we===H?(0,D.jsx)(j.A,{}):(0,D.jsx)(x.A,{})})})]}),we===H&&(0,D.jsx)(D.Fragment,{children:null!==G&&void 0!==G&&G.length?(0,D.jsx)(D.Fragment,{children:(0,D.jsx)(u.A,{style:{marginBottom:8},children:(0,D.jsx)(p.A,{span:24,children:(0,D.jsx)(_.A,{itemLayout:"horizontal",dataSource:G,renderItem:e=>(0,D.jsx)(_.A.Item,{style:{border:"none"},children:(0,D.jsx)(_.A.Item.Meta,{avatar:e.severity<6?(0,D.jsx)(A.A,{className:$}):(0,D.jsx)(A.A,{className:V}),title:(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(O,{onClick:()=>(e=>{const t={startColumn:e.startColumn,startLineNumber:e.startLineNumber,endColumn:e.endColumn,endLineNumber:e.endLineNumber};W((0,S.ps)(t))})(e),style:{cursor:"pointer"},className:e.severity<6?"warning":"error",children:["Line: ",e.startLineNumber," ",e.startLineNumber!==e.endLineNumber&&" \u2013 "+e.endLineNumber]})}),description:(0,D.jsx)(O,{children:e.message})})})})})})}):(0,D.jsx)(u.A,{style:{marginBottom:24},children:(0,D.jsx)(h.A,{message:c("No problems found."),type:"info"})})})]})}},72981:(e,t,s)=>{s.d(t,{A:()=>l});s(92810);var i=s(81e3),r=s(24293),n=s(79716),a=s(70082);const l=({small:e=!1,style:t,wrap:s=!1})=>{const l={width:e?"100%":"100vw",height:"80vh",display:"flex",justifyContent:"center",alignItems:"center",...t},o=(0,a.jsx)(n.A,{style:{fontSize:48},spin:!0});return(0,a.jsx)(i.A,{size:"large",style:l,wrap:s,children:(0,a.jsx)(r.A,{indicator:o})})}},53765:(e,t,s)=>{s.d(t,{A:()=>te});var i=s(92810),r=s(64617),n=s(29218),a=s(76662),l=s(66726),o=s(29234),c=s(81e3),d=s(43005),m=s(2018),u=s(7744),p=s(86889),h=s(73035),_=s(85677),g=s(38587),v=s(45934),j=s(23287),x=s(38883),f=s.n(x),y=s(40836),A=s(79060),b=s(4800),w=s(79304),N=s(94822),S=s(8375),k=s(32293),I=s(35285),C=s(64936),T=s(36404),E=s(85163),L=s(70082);const z=({title:e})=>{const{__:t}=(0,j.s9)();let s=(0,v.wA)();const{projectId:n}=(0,r.g)(),a=(0,v.d4)(C.cL),l=(0,v.d4)(T.yN);let o=[{label:t("Project settings"),key:"Project settings",className:"em-analytics__account-settings",icon:(0,L.jsx)(S.A,{style:{fontSize:"16px"}}),onClick:()=>{s((0,C.qf)(E.lx.EDIT_PROJECT_MODAL))}},{label:(0,L.jsx)(N.N_,{to:"/projects",children:t("List of projects")}),key:"List of projects",icon:(0,L.jsx)(k.A,{style:{fontSize:"16px"}}),className:"em-analytics__sign-out"}];const c=(null===l||void 0===l?void 0:l.title)||e;return(0,i.useEffect)((()=>{if(n){const e=document.querySelector(".header__project");null===e||void 0===e||e.setAttribute("data-project-id",n)}}),[n]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(b.A,{menu:{items:o},arrow:"true",overlayStyle:{minWidth:0},getPopupContainer:()=>document.querySelector("header"),children:(0,L.jsxs)(N.N_,{to:"/projects/"+n+"/emails?page=1",className:"header__project",children:[(0,L.jsxs)(w.A,{size:28,style:{backgroundColor:"#777",marginRight:8,fontWeight:700,fontSize:18,textTransform:"uppercase"},children:[null===c||void 0===c?void 0:c[0],null!==c&&void 0!==c&&c.split(" ")[1]?c.split(" ")[1][0]:""]}),c]})}),(0,L.jsx)(I.A,{isModalVisible:a===E.lx.EDIT_PROJECT_MODAL})]})};var D=s(97562),O=s(57918),M=s(47358),R=s(7760),B=s(8493),F=s(64037),P=s(18777),H=s(17581),q=s(32269),$=s(45695),V=s(69106);const W=[50,50],U=[420,420],X=[45,10,45],J=[0,100,0],Y=[50,420,50],Z="all 0.5s ease 0s",{Paragraph:K}=a.A,G="code",Q="view",ee=({email:e,viewMode:t="view",isLoggedIn:s})=>{const{__:a,_x:x}=(0,j.s9)(),b=(0,v.wA)(),w=(0,v.d4)(M.Fv),{emailId:N,blockId:S}=(0,r.g)(),k=(0,$.QC)(),[I,C]=(0,i.useState)(t),[T,ee]=(0,i.useState)(I===Q?J:W),[te,se]=(0,i.useState)(I===Q?Y:U),[ie,re]=(0,i.useState)([]),[ne,ae]=(0,i.useState)(!1),[le,oe]=(0,i.useState)(!1),ce=(0,i.useRef)(null),de=(0,i.useRef)(),me=(0,i.useRef)(),ue=(0,i.useRef)(),pe=N||S,{data:he=[],refetch:_e}=(0,P.Cf)(pe);(0,i.useEffect)((()=>{pe&&_e(pe)}),[I,pe,_e]),(0,V.f)(e);(0,F.A)((e=>{const t=e.data.operation,s=document.querySelector(".preview-mode__pane_editor")?document.getElementById("pane-content-iframe"):document.querySelector(".preview-mode__row > .preview-mode__col_preview");t===E.Ru.APPLICATION_SCROLL_TO&&setTimeout((()=>{s.scrollTo({top:e.data.settings.value,behavior:"smooth"})}),100),t===E.Ru.APPLICATION_IFRAME_SET_HEIGHT&&(document.querySelector(".preview-mode__iframe").style.height=e.data.settings.height+"px")}));const ge=e=>{e.target.classList.contains("preview-mode__resizer")&&(de.current&&(de.current.style.transition="none"),me.current&&(me.current.style.transition="none"),ue.current&&(ue.current.style.transition="none"))},ve=()=>{const e=I===Q?Z:"none";de.current.style.transition!==Z&&(de.current&&(de.current.style.transition=e),me.current&&(me.current.style.transition=e),ue.current&&(ue.current.style.transition=e))};(0,i.useEffect)((()=>(document.addEventListener("mousedown",ge),document.addEventListener("mouseup",ve),()=>{document.removeEventListener("mousedown",ge),document.removeEventListener("mouseup",ve)}))),(0,i.useEffect)((()=>{const e=k.onInit((()=>{k.send({operation:E.Ru.SANDBOX_LOCK_EDIT,data:t===Q}),k.send({operation:E.Ru.SANDBOX_LOCK_DISCUSS,value:ne})}));return()=>e.dispose()}),[t,I,ne,k]),(0,i.useEffect)((()=>{ee(I===Q?J:W),se(I===Q?Y:U)}),[I]);const je=({key:e,domEvent:t})=>{switch(t.preventDefault(),de.current.style.transition=Z,me.current.style.transition=Z,ue.current.style.transition=Z,ce.current.resize(),e){case"Desktop":default:ee(I===Q?J:W);break;case"Mobile":ee(X)}setTimeout((()=>{k.send({operation:E.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:de.current.getBoundingClientRect().width}}),ce.current.resize()}),550)};(0,i.useEffect)((()=>{const e=new q.jG;if(ie.length<2){var t,s;const i=null===(t=de.current)||void 0===t?void 0:t.getBoundingClientRect(),r=null===(s=document.getElementById("pane-content-iframe"))||void 0===s?void 0:s.getBoundingClientRect(),n=setInterval(l,50);re((e=>[...e,n]));const a=t=>{e.addDisposable(k.onInit((()=>{k.send({operation:E.Ru.SANDBOX_WINDOW_CHARACTERISTIC,settings:t})})))};function l(){a({iframeOffsetTop:i.top-r.top,scrollTop:r.top?-r.top:0,innerHeight:window.innerHeight,previewHeight:document.querySelector(".preview-mode__pane-content").getBoundingClientRect().height,mode:G})}}return e.addDispose((()=>clearInterval(ie[ie.length-1]))),()=>e.dispose()}),[ie,k]),(0,i.useEffect)((()=>{if(I===G){const e=window.localStorage.getItem(E.V0.em_code_mode_pane_sizes);e&&ee(JSON.parse(e))}}),[I]);const xe=e=>{if(I===G&&window.localStorage.setItem(E.V0.em_code_mode_pane_sizes,JSON.stringify(e)),I===Q){const t=(e[2]+e[0])/2;ee([t,e[1],t])}else ee(e);k.send({operation:E.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:de.current.getBoundingClientRect().width}}),ce.current.resize()},fe=()=>{ce.current.resize()},ye=(0,i.useCallback)((()=>{e.hasOwnProperty("type")?b((0,R.vs)()):b((0,M.vs)())}),[b,e]);let Ae;const be=()=>{var e,t;const s=null===(e=de.current)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(t=document.getElementById("pane-content-iframe"))||void 0===t?void 0:t.getBoundingClientRect();Ae&&window.clearTimeout(Ae),Ae=window.setTimeout((function(){k.send({operation:E.Ru.SANDBOX_WINDOW_CHARACTERISTIC,settings:{iframeOffsetTop:s.top-i.top,scrollTop:document.getElementById("pane-content-iframe").scrollTop,innerHeight:window.innerHeight,previewHeight:document.querySelector(".preview-mode__pane-content").getBoundingClientRect().height,CODE:G}})}),100)};(0,i.useEffect)((()=>(document.addEventListener("scroll",be,!0),()=>{document.removeEventListener("scroll",be,!0)})));const we=()=>{ae((e=>!e)),k.send({operation:E.Ru.SANDBOX_LOCK_DISCUSS,value:!ne})},Ne=()=>{C(le?Q:G),oe((e=>!e))};let Se=[{key:E.yI,children:(0,L.jsx)("div",{className:"preview-mode__collapse-wrapper"})},{label:(0,L.jsxs)(l.A,{placement:"right",title:x("Discuss","tab"),children:[(0,L.jsx)(h.A,{}),!!he.length&&(0,L.jsx)("span",{className:"email-pane__comment-counter",children:he.filter((e=>"deleted"!==e.comment_status)).length})]}),key:E.hc,className:"preview-mode__tab-discuss em-analytics__email-tab-discuss",style:{overflow:"hidden"},children:(0,L.jsx)("div",{className:"email-pane__collapse-wrapper",children:pe?(0,L.jsx)("div",{className:"ant-tabs-content discuss-wrapper",children:(0,L.jsx)(D.A,{email:e,comments:he,subjectId:pe,isLoggedIn:!0})}):(0,L.jsx)("div",{className:"aside-content-wrapper",children:e.hasOwnProperty("type")?(0,L.jsx)(o.A,{description:a("Save the block before commenting."),type:"info",showIcon:!0}):(0,L.jsx)(o.A,{description:a("Save the email before commenting."),type:"info",showIcon:!0})})})}];return(0,L.jsxs)("div",{className:f()("preview-mode",{"preview-mode_view":I===Q}),children:[(0,L.jsx)("div",{style:{display:"none"},children:(0,L.jsx)(y.A,{email:e,readOnly:t===Q})}),(0,L.jsxs)("div",{className:"preview-mode__header",children:[(0,L.jsxs)("div",{className:"preview-mode__header__title",children:[(0,L.jsx)(z,{style:{float:"left",cursor:"none"},title:null===e||void 0===e?void 0:e.project_title}),(0,L.jsx)(K,{editable:w&&{icon:(0,L.jsx)(_.A,{className:"email-page-header__icon-edit"}),onChange:t=>{e.isNew?b((0,B.BQ)(t)):b(H.GY.util.updateQueryData("getEmail",e.id,(e=>{Object.assign(e,{title:t})})))}},children:null===e.title?a("New email title"):e.title})]}),(0,L.jsx)("div",{children:(0,L.jsx)("div",{className:"preview-mode__buttons",children:(0,L.jsx)(c.A,{size:10,children:(s||w)&&(0,L.jsx)(l.A,{placement:"bottom",title:a("Close"),children:(0,L.jsx)(d.Ay,{className:"preview-mode__close-btn",onClick:w?ye:()=>{window.close(),window.location.href="/"},children:(0,L.jsx)(g.A,{})})})})})})]}),t!==G&&(0,L.jsx)("div",{className:"preview-mode__wrapper",children:(0,L.jsxs)(m.A,{className:"preview-mode__row",children:[(0,L.jsx)(u.A,{xl:{span:ne?6:0},lg:{span:ne?6:0},md:{span:ne?10:0},sm:{span:0},xs:{span:0},className:f()("preview-mode__col preview-mode__col_settings comment-block",{"preview-mode__col_settings-collapsed":!ne,"preview-mode__col_code-mode":I===G}),children:ne&&(0,L.jsx)(p.A,{className:"preview-mode__col_settings-inner",size:"middle",animated:{inkBar:!1,tabPane:!0},activeKey:E.hc,onTabClick:we,renderTabBar:(e,t)=>(0,L.jsx)(t,{className:"preview-mode__tab-bar",...e}),tabPosition:"left",items:Se})}),I===G&&(0,L.jsxs)(u.A,{xl:{span:ne?18:24},lg:{span:ne?18:24},md:{span:ne?14:24},sm:{span:24},xs:{span:24},className:f()("preview-mode__col preview-mode__col_preview preview-mode__code-mode",{"preview-mode__col_preview-collapsed":!ne}),children:[!ne&&(0,L.jsx)("div",{className:"preview-mode__content-col preview-mode__content-col_menu",children:(0,L.jsx)("div",{className:"preview-mode__comments-icon-wrapper",onClick:we,children:(0,L.jsxs)(l.A,{placement:"right",title:x("Discuss","tab"),children:[(0,L.jsx)(h.A,{style:{fontSize:"20px"}}),!!he.length&&(0,L.jsx)("span",{className:"preview-mode__comment-counter",children:he.filter((e=>"deleted"!==e.comment_status)).length})]})})}),(0,L.jsxs)(n.A,{className:"preview-mode__panes",direction:"horizontal",gutterSize:0,snapOffset:0,sizes:T,minSize:te,gutter:()=>(0,q.Dx)("preview-mode__panes-resizer"),onDragEnd:xe,onDrag:fe,children:[(0,L.jsx)("div",{className:"preview-mode__pane preview-mode__pane_editor",children:(0,L.jsx)("div",{className:"preview-mode__pane-content",children:(0,L.jsx)(y.A,{email:e,readOnly:t===Q})})}),(0,L.jsx)("div",{className:"preview-mode__pane preview-mode__pane_main",ref:de,children:(0,L.jsxs)("div",{className:"preview-mode__pane-content",id:"pane-content-iframe",children:[(0,L.jsx)("div",{className:"preview-mode__iframe-scroll-top",id:"iframe-scroll-top"}),(0,L.jsx)(A.A,{ref:ce,email:e}),(0,L.jsx)("div",{className:"preview-mode__iframe-scroll-bottom",id:"iframe-scroll-bottom"})]})})]}),(0,L.jsx)("div",{className:"preview-mode__content-col preview-mode__content-col_menu preview-mode__content-col_menu-right",children:(0,L.jsx)(O.A,{setSizes:je,sizes:[T[1]],codeModeShow:Ne,codeModeIsVisible:le,email:e})})]}),I===Q&&(0,L.jsx)(u.A,{xl:{span:ne?18:24},lg:{span:ne?18:24},md:{span:ne?14:24},sm:{span:24},xs:{span:24},className:f()("preview-mode__col preview-mode__col_preview",{"preview-mode__col_preview-collapsed":!ne}),children:(0,L.jsxs)(n.A,{className:"preview-mode__content",sizes:T,minSize:Y,snapOffset:0,gutter:()=>(0,q.Dx)("preview-mode__resizer"),onDragEnd:xe,onDrag:fe,expandToMin:!0,gutterAlign:"center",dragInterval:1,children:[(0,L.jsx)("div",{className:"preview-mode__content-col preview-mode__content-col_menu",ref:me,children:!ne&&(0,L.jsx)("div",{className:"element-preview-menu",style:{width:"100%"},children:(0,L.jsx)("div",{className:"preview-mode__comments-icon-wrapper",onClick:we,children:(0,L.jsxs)(l.A,{placement:"right",title:x("Discuss","tab"),children:[(0,L.jsx)(h.A,{style:{fontSize:"20px"}}),!!he.length&&(0,L.jsx)("span",{className:"preview-mode__comment-counter",children:he.filter((e=>"deleted"!==e.comment_status)).length})]})})})}),(0,L.jsxs)("div",{className:"preview-mode__content-col preview-mode__pane-content preview-mode__content-col_main",ref:de,id:"pane-content-iframe",children:[(0,L.jsx)("div",{className:"preview-mode__iframe-scroll-top",id:"iframe-scroll-top"}),(0,L.jsx)(A.A,{ref:ce,className:"preview-mode__iframe",email:e,handlerSendPosition:be}),(0,L.jsx)("div",{className:"preview-mode__iframe-scroll-bottom",id:"iframe-scroll-bottom"})]}),(0,L.jsx)("div",{className:"preview-mode__content-col preview-mode__content-col_menu preview-mode__content-col_menu-right",ref:ue,children:(0,L.jsx)(O.A,{setSizes:je,sizes:[T[1]],codeModeShow:Ne,codeModeIsVisible:le,email:e})})]})})]})}),(0,L.jsx)("div",{className:"preview-mode__footer"})]})};ee.defaultProps={viewMode:G,sendOptionsHandler:()=>{}};const te=ee},19817:(e,t,s)=>{s.d(t,{A:()=>h});var i=s(92810),r=s(71157),n=s(64617),a=s(94822),l=s(39990),o=s(32269),c=s(90070),d=s(47381),m=s(85163),u=s(70082);const p="useblocks.io",h=({children:e})=>{const t=(0,n.zy)(),s=(0,r.hN)(),h=(0,c.p6)(),[_,g]=(0,a.ok)(),[v,{isError:j,isSuccess:x,error:f,data:y}]=(0,l.i2)(),{isError:A,isUninitialized:b,isLoading:w,isSuccess:N,error:S,data:k,refetch:I}=(0,l.CR)("",{skip:m.EW.isPlugin||!h.get(m.A9.em_token)}),C=(0,i.useMemo)((()=>({email:_.get("email"),hash:_.get("hash"),event:"confirmation"===_.get("event")})),[_]);if((0,i.useEffect)((()=>{j?(0,o.p6)({error:f},s):x&&((0,d.d)({event:"email_confirmation",user_email:null===y||void 0===y?void 0:y.email}),(0,o.wB)(y.message,s),k&&I())}),[y,f,j,x,s,k,I]),(0,i.useEffect)((()=>{!(C.email&&C.hash&&C.event)||!1!==(null===k||void 0===k?void 0:k.email_confirmation)&&h.get(m.A9.em_token)||y||v({hash:C.hash,email:C.email,event:C.event}).catch((e=>{console.warn("e",e)})).finally((()=>g("")))}),[C,v,k,h,g,y]),(0,i.useEffect)((()=>{A&&S&&((0,o.p6)({error:S},s),(0,o.Id)(h))}),[k,A,S,s,h]),m.EW.isPlugin)return e;if(!m.EW.isPlugin&&!h.get(m.A9.em_token)&&!t.pathname.includes("auth"))return(0,u.jsx)(n.C5,{to:"/auth",state:{from:t}});if((b||w)&&!t.pathname.includes("auth"))return(0,u.jsx)(u.Fragment,{});if(A&&!t.pathname.includes("auth"))return(0,u.jsx)(n.C5,{to:"/auth",state:{from:t}});if(N){const{id:s,email:i,name:r,locale:a,carrotquest_hash:l,ducalis_hash:o,email_subscription_consent:c,last_used_project:d}=k;return h.set(m.A9.em_id,s,{domain:p}),h.set(m.A9.em_email,i,{domain:p}),h.set(m.A9.em_name,r,{domain:p}),h.set(m.A9.em_locale,a,{domain:p}),h.set(m.A9.em_carrotquest_hash,l,{domain:p}),h.set(m.A9.em_ducalis_hash,o,{domain:p}),h.set(m.A9.em_email_subscription_consent,c,{domain:p}),d&&"/"===t.pathname?(0,u.jsx)(n.C5,{to:`/projects/${d}/emails`,replace:!0}):e}return t.pathname.includes("auth")?e:void 0}},19263:(e,t,s)=>{s.d(t,{A:()=>k});var i=s(92810),r=s(41919),n=s(37005),a=s(66726),l=s(32085),o=s(32293),c=s(64617),d=s(94822),m=s(45934),u=s(23287),p=s(29067),h=s(30961),_=s(20757),g=s(32398),v=s(34524),j=s(7760),x=s(85163),f=s(22197),y=s(90070),A=s(32269),b=s(93563),w=s(64936),N=s(70082);const{Content:S}=r.A,k=()=>{var e,t,s;const{__:k}=(0,u.s9)(),I=(0,m.wA)(),C=(0,y.p6)(),T=C.get(x.A9.em_elements_view),{data:E}=(0,c.KC)(),[L]=(0,d.ok)(),z=(0,m.d4)(j.b9),D=(0,m.d4)(w.o8),O=L.get("folder"),M=+L.get("tag"),R=(0,A.HT)(E,x.YY),[B,F]=(0,i.useState)(O||(M?null:x.y2)),[P,H]=(0,i.useState)(M||null),[q,$]=(0,i.useState)(T||x.Y$),{data:V,refetch:W}=(0,b.Jz)({parent:null===(e=E.blockfolder)||void 0===e?void 0:e[0]},{skip:!(null!==(t=E.blockfolder)&&void 0!==t&&t[0])});(0,i.useEffect)((()=>{I((0,w.sB)(V||[]))}),[I,V]);const U=(e=!1,t=null)=>{H(t),F(e),I((0,j.om)({...z,tags:t?[t]:[],folderTag:e}))};(0,i.useEffect)((()=>{var e;M&&null!==R&&void 0!==R&&R.find((e=>e.id===M))&&(null===z||void 0===z||null===(e=z.tags)||void 0===e?void 0:e[0])!==P&&I((0,j.om)({...z,tags:[M],folderTag:B}))}),[R,M,P,I,z,B]);(0,f.A)(k("Blocks")+" "+E.title),(0,i.useEffect)((()=>{document.body.classList.remove("editor")}),[]);const X=(0,N.jsx)(h.A,{isBlocks:!0}),J=(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(n.A,{defaultValue:q,onChange:e=>{$(e),I((0,v.NK)(e)),C.set(x.A9.em_elements_view,e)},value:q,options:[{value:x.Y$,label:(0,N.jsx)(a.A,{title:k("Cards view"),placement:"top",children:(0,N.jsx)(l.A,{})})},{value:x.rl,label:(0,N.jsx)(a.A,{title:k("Table view"),placement:"top",children:(0,N.jsx)(o.A,{})})}]},"Switch radio")});return(0,N.jsxs)(r.A,{className:"project-blocks-page",children:[(0,N.jsx)(_.A,{leftBlock:X,rightBlock:J}),(0,N.jsx)(S,{className:"project-blocks-page__container",children:(0,N.jsxs)("div",{className:"project-blocks-page__content container",children:[(0,N.jsx)("div",{className:"project-blocks-page__menu-wrapper",children:(0,N.jsx)(g.A,{currentFolderId:B,setCurrentFolderId:F,activeTagId:P,setActiveTagHandler:U,projectTags:R,folderTaxonomy:"blockfolder"})}),(0,N.jsx)(p.A,{projectId:E.id,projectEmailsCounter:+(null===E||void 0===E||null===(s=E.counters)||void 0===s?void 0:s.blocks_counter),emailsView:q,currentFolderId:B,foldersList:D,refetchProjectFolders:D.length?W:()=>{},projectTags:R,activeTagId:P,setActiveTagHandler:U})]})})]})}},6099:(e,t,s)=>{s.d(t,{A:()=>g});var i=s(92810),r=s(64617),n=s(45934),a=s(41919),l=s(25072),o=s(43005),c=s(23287),d=s(84568),m=s(36404),u=s(72981),p=s(32269),h=s(70082);const{Content:_}=a.A,g=()=>{var e;const{__:t}=(0,c.s9)(),{projectId:s}=(0,r.g)();let g=(0,r.Zp)(),v=(0,r.zy)();const j=(0,n.wA)(),x=(0,d.fo)(+s,{skip:!s}),{isLoading:f,isError:y,error:A,isSuccess:b,data:w}=x;return(0,i.useEffect)((()=>{b&&(null===w||void 0===w?void 0:w.id)!==s&&j((0,m.od)(w))}),[b,w,j,s]),(0,i.useEffect)((()=>{b&&s&&v.pathname.endsWith(s)&&g(`${v.pathname}/emails`)}),[b,v,g,s]),(0,h.jsxs)(h.Fragment,{children:[f&&(0,h.jsx)(u.A,{}),y&&A&&(0,h.jsx)(a.A,{className:"project-outlet",children:(0,h.jsx)(_,{className:"project-outlet__container container",children:(0,h.jsx)(l.Ay,{status:A.status,title:A.status,subTitle:null===(e=A.data)||void 0===e?void 0:e.message,extra:(0,h.jsx)(o.Ay,{type:"primary",onClick:()=>(0,p.XZ)(g,"/projects"),children:t("Back To Projects")})})})}),b&&(0,h.jsx)(r.sv,{context:{...x}})]})}},44338:(e,t,s)=>{s.d(t,{A:()=>V});var i=s(92810),r=s(41919),n=s(37005),a=s(66726),l=s(43005),o=s(71157),c=s(32085),d=s(32293),m=s(3625),u=s(52360),p=s(64617),h=s(94822),_=s(45934),g=s(23287),v=s(44335),j=s(98655),x=s(30961),f=s(28288),y=s(72981),A=s(32398),b=s(20757),w=s(47358),N=s(94925),S=s(86286),k=s(64936),I=s(65983),C=s(39990),T=s(46312),E=s(17581),L=s(63531),z=s(93563),D=s(85163),O=s(22197),M=s(14598),R=s(58689),B=s(47381),F=s(32269),P=s(90070),H=s(7205),q=s(70082);const{Content:$}=r.A,V=()=>{var e;const{__:t,_n:s}=(0,g.s9)(),V=(0,_.wA)(),W=(0,p.Zp)(),U=(0,P.p6)(),X=(0,o.hN)();let J=(0,p.zy)();const Y=(0,_.d4)(I.CT),Z=(0,_.d4)(S.C1),K=(0,_.d4)(w.cL),G=(0,_.d4)(k.o8),Q=(0,_.d4)(k.uM),[ee]=(0,C.on)(),[te]=(0,E.Kh)(),[se]=(0,L.dS)(),[ie]=(0,T.mI)(),[re]=(0,h.ok)(),{data:ne}=(0,p.KC)(),[ae,le]=(0,i.useState)(!1),oe=re.get("folder"),ce=(0,F.HT)(ne,D.zh),{data:de,refetch:me}=(0,z.Jz)({parent:ne.folder[0]},{skip:!ne.folder[0]}),[ue,pe]=(0,i.useState)(oe||(Q?null:D.y2));(0,i.useEffect)((()=>{V((0,k.sB)(de||[]))}),[V,de]);const[he,_e]=(0,i.useState)(U.get(D.A9.em_elements_view)||D.Y$);(0,O.A)(t("Emails")+" "+ne.title),(0,i.useEffect)((()=>{(null===Z||void 0===Z?void 0:Z.last_used_project)!==ne.id&&V(C.Q2.endpoints.editMe.initiate({last_used_project:ne.id}))}),[V,ne.id,null===Z||void 0===Z?void 0:Z.last_used_project]);const[ge,ve]=(0,i.useState)(null);const je=async e=>{if(1===e.length){const t=e[0];try{le(!0);const e=await(0,M.q2)(t,(async(e,t)=>{let s;if("string"===typeof e)try{var i;e=(0,H.A)(e),s=null===(i=await ie({url:e}))||void 0===i?void 0:i.data}catch(c){return e}else s=e;if(t.split(".").length<2){const e=v.extension(s.type);e&&(t=`${t}.${e}`)}const r=new File([s],t.toLowerCase()),n=await se({user_id:Z.id,folder:ne.id,file:r});var a,l,o;if(!n.error&&400!==(null===(a=n.data.data)||void 0===a?void 0:a.status))return null===(l=n.data)||void 0===l||null===(o=l[0])||void 0===o?void 0:o.file_url;return"string"===typeof e?e:""})),[s]=(0,R.Ay)(t.name),i=(0,F.ez)(e)||s||"";return te({title:i,project:ne.id,subject:i,description:"",html:e,parent_email:D.iU,folder:oe!==D.y2?[+oe]:[]}).then((e=>{e&&(e.error?X.error({message:(0,q.jsx)("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:(0,q.jsx)("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}):(de&&me(),W(`/projects/${ne.id}/emails/${e.data.id}`),(0,B.d)({event:"upload_file",action:"import_email"})))})).finally((()=>le(!1)))}catch(i){le(!1);const e=i instanceof Error?i.message:i;X.error({message:(0,q.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}),placement:"bottomRight"})}}else{const r=[];le(!0);for(let s=0;s<e.length;s++){let n=e[s];const a=await(0,M.q2)(n,(async(e,t)=>{let s;if("string"===typeof e)try{var r;e=(0,H.A)(e),s=null===(r=await ie({url:e}))||void 0===r?void 0:r.data}catch(i){return e}else s=e;if(t.split(".").length<2){const e=v.extension(s.type);e&&(t=`${t}.${e}`)}const n=new File([s],t.toLowerCase()),a=await se({user_id:Z.id,folder:ne.id,file:n});var l,o,c;if(!a.error&&400!==(null===(l=a.data.data)||void 0===l?void 0:l.status))return null===(o=a.data)||void 0===o||null===(c=o[0])||void 0===c?void 0:c.file_url;return"string"===typeof e?e:""})),[l]=(0,R.Ay)(n.name),o=(0,F.ez)(a)||l||"",c=te({title:o,project:ne.id,subject:o,description:"",html:a,parent_email:D.iU,folder:oe!==D.y2?[+oe]:[]}).then((e=>{if(e)return e.error?(X.error({message:(0,q.jsx)("div",{dangerouslySetInnerHTML:{__html:e.error.data.code}}),description:(0,q.jsx)("div",{dangerouslySetInnerHTML:{__html:e.error.data.message}}),placement:"bottomRight"}),null):(X.success({message:t("The email \u201c")+e.data.title+t("\u201d was successfully imported."),placement:"bottomRight"}),e.data)})).catch((e=>{const t=e instanceof Error?e.message:e;return X.error({message:(0,q.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}),placement:"bottomRight"}),null}));r.push(c)}let n=await Promise.all(r);le(!1),n=n.filter((e=>!!e)),n.length&&X.success({message:n.length+s(" email was"," emails were",n.length)+t(" successfully imported."),placement:"bottomRight"}),ge&&ge.refetch()}},[xe,fe]=(0,i.useState)(!1);(0,i.useEffect)((()=>{!xe&&Z.counters.emails_counter<3&&(ee(),fe(!0))}),[ee,Z.counters.emails_counter,xe]),(0,i.useEffect)((()=>{document.body.classList.remove("editor"),U.remove(D.A9.em_folder)}),[V,U]);const ye=(e=!1,t=null)=>{V((0,k.Cj)(t)),pe(e),V((0,I.om)({...Y,tags:t?[t]:[],folderTag:e}))},Ae=(0,q.jsx)(x.A,{isBlocks:!1}),be=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(n.A,{defaultValue:he,onChange:e=>{U.set(D.A9.em_elements_view,e),_e(e),V((0,N.NK)(e))},value:he,options:[{value:D.Y$,label:(0,q.jsx)(a.A,{title:t("Cards view"),placement:"top",children:(0,q.jsx)(c.A,{})})},{value:D.rl,label:(0,q.jsx)(a.A,{title:t("Table view"),placement:"top",children:(0,q.jsx)(d.A,{})})}]},"Switch radio"),(0,q.jsx)(a.A,{title:t("Available formats: HTML, EML, ZIP"),placement:"top",children:(0,q.jsx)(l.Ay,{className:"em-analytics__project-page__import",type:"default",icon:(0,q.jsx)(m.A,{}),onClick:()=>{(0,B.d)({event:"click",action:"import_email"}),(0,M.QM)("application/zip, message/rfc822, text/html",je)},children:t("Import email")},"Import email from file")},"Import email from file tooltip"),(0,q.jsx)(l.Ay,{className:"em-analytics__email-create",type:"primary",icon:(0,q.jsx)(u.A,{}),onClick:()=>{V((0,I.om)({tags:[]})),U.set(D.A9.em_folder,"deleted"===oe?D.y2:oe),(0,F.XZ)(W,`${J.pathname}/create/`),(0,B.d)({event:"click",action:"create_new_email",description:"Go to the email template selection"})},children:t("Create a new email")},"Create new email")]});return(0,q.jsxs)(r.A,{className:"project-page",children:[(0,q.jsx)(b.A,{leftBlock:Ae,rightBlock:be}),(0,q.jsx)($,{className:"project-page__container",children:(0,q.jsxs)("div",{className:"project-page__content container",children:[(0,q.jsx)("div",{className:"project-page__menu-wrapper",children:(0,q.jsx)(A.A,{currentFolderId:ue,setCurrentFolderId:pe,activeTagId:Q,setActiveTagHandler:ye,projectTags:ce,folderTaxonomy:"folder"})}),(0,q.jsx)(j.A,{projectId:ne.id,projectEmailsCounter:+(null===ne||void 0===ne||null===(e=ne.counters)||void 0===e?void 0:e.emails_counter),emailsView:he,currentFolderId:ue,foldersList:G,refetchProjectFolders:G.length?me:()=>{},projectTags:ce,activeTagId:Q,setActiveTagHandler:ye,registerFunction:ve})]})}),ae&&(0,q.jsx)(y.A,{wrap:!0,style:{position:"fixed",width:"100%",height:"100%",top:0,left:0}}),(0,q.jsx)(f.A,{isModalVisible:K===D.lx.ADD_NEW_EMAIL_MODAL})]})}},24420:(e,t,s)=>{s.d(t,{A:()=>M});var i=s(92810),r=s(41919),n=s(43005),a=s(45934),l=s(23287),o=s(68919),c=s(33206),d=s(4800),m=s(49246),u=s(29234),p=s(21349),h=s(71157),_=s(9452),g=s(22339),v=s(8375),j=s(45130),x=s(8114),f=s(74267),y=s(64617),A=s(94822),b=s(35285),w=s(84568),N=s(64936),S=s(32269),k=s(85163),I=s(70082);const C=(e,t)=>`${e.pathname.replace(/\/+$/,"")}/${t.id}/emails?page=1`,T=(e,t)=>`${e.pathname.replace(/\/+$/,"")}/${t.id}/members`,E=()=>{const{__:e,_x:t}=(0,l.s9)();let s=(0,a.d4)(N.vW),r=(0,y.zy)(),n=(0,a.wA)(),o=(0,a.d4)(N.cL);const{modal:E}=c.A.useApp(),L=(0,h.hN)(),{confirm:z}=E,D=(0,a.Pj)(),O=s=>{z({maskClosable:!0,centered:!0,title:t("Are you sure to delete \u201c","project")+s.title+e("\u201d project?"),icon:(0,I.jsx)(_.A,{}),okText:e("Yes"),cancelText:e("No"),onOk:()=>(t=>D.dispatch(w.Nq.endpoints.deleteProject.initiate(t.id)).then((t=>{t.error?(0,S.p6)(t,L):t.data&&(0,S.wB)(e("The project \u201c")+t.data.title+e("\u201d was successfully removed."),L)})))(s)})},[M,R]=(0,i.useState)({page:1}),{isLoading:B,isSuccess:F,isError:P,isFetching:H,data:q=[]}=(0,w.su)(M),[$,V]=(0,i.useState)(null),W=[{width:"35%",title:e("Project"),dataIndex:"title",render:(e,t,s)=>(0,I.jsx)(A.N_,{to:C(r,t),children:e})},{width:"16%",title:e("Owner"),dataIndex:["members","owner","nickname"],render:(e,t,s)=>e||t.members.owner.user_email},{width:"12%",title:t("Created","block"),dataIndex:"date",render:(t,s,i)=>(0,S.Yq)((0,f.A)(t),e),sorter:!0,sortOrder:(0,S.Np)(M.order)},{width:"10%",title:e("Emails"),dataIndex:"emails",sorter:!0,render:(e,t,s)=>null!==e&&void 0!==e&&e.length?null===e||void 0===e?void 0:e.length:"\u2013"},{width:"10%",title:e("Blocks"),dataIndex:"blocks",render:(e,t,s)=>null!==e&&void 0!==e&&e.length?null===e||void 0===e?void 0:e.length:"\u2013"},{width:"3%",title:"",dataIndex:"",key:"x",onCell:()=>({style:{padding:0}}),render:(t,s)=>{let i=[];return i.push({label:(0,I.jsx)(A.N_,{to:C(r,s),children:e("Open")}),key:"Enter",icon:(0,I.jsx)(g.A,{style:{fontSize:"16px"}}),className:"em-analytics__open"},{label:e("Settings"),key:"Edit",icon:(0,I.jsx)(v.A,{style:{fontSize:"16px"}}),className:"em-analytics__edit",onClick:()=>(V(s),void n((0,N.qf)(k.lx.EDIT_PROJECT_MODAL)))},{label:(0,I.jsx)(A.N_,{to:T(r,s),children:e("Members")}),key:"Members",icon:(0,I.jsx)(j.A,{style:{fontSize:"16px"}}),className:"em-analytics__members"},{label:e("Remove"),key:"Remove",icon:(0,I.jsx)(_.A,{style:{fontSize:"16px"}}),className:"em-analytics__remove",style:{color:"#ff4d4f"},onClick:()=>O(s)}),(0,I.jsx)(d.A,{arrow:"true",placement:"bottom",menu:{items:i},trigger:["hover"],children:(0,I.jsx)("span",{className:"projects-table__actions",children:(0,I.jsx)(x.A,{})})})}}];return(0,I.jsxs)("div",{className:"container",children:[B&&(0,I.jsx)(m.A,{active:!0}),P&&(0,I.jsx)(u.A,{message:e("Error"),description:e("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),F&&0===q.length&&(0,I.jsx)(u.A,{message:e("You don't have any projects yet."),description:e("Click the Add a new project button to add your first project."),type:"info",showIcon:!0}),F&&q.length>0&&(0,I.jsx)(p.A,{rowKey:e=>e.id,dataSource:q,bordered:!0,columns:W,loading:H,onChange:(e,t,{order:s,field:i},{action:r})=>{"sort"===r&&R(s?{page:1,order:(0,S.gq)(s),orderby:i}:{page:1})},showSizeChanger:!1,pagination:{showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomCenter"],current:M.page,total:s,onChange:(e,t)=>{R({page:e})}},className:"projects-table"}),(0,I.jsx)(b.A,{isModalVisible:o===k.lx.EDIT_PROJECT_MODAL,selectedProject:$})]})};var L=s(20757),z=s(47381),D=s(22197);const{Content:O}=r.A,M=()=>{const{__:e}=(0,l.s9)(),t=(0,a.d4)(N.cL),s=(0,a.wA)();(0,D.A)(e("Projects")),(0,i.useEffect)((()=>{document.body.classList.remove("editor")}),[]);const c=(0,I.jsx)("div",{className:"ant-page-header-heading-title",children:e("Projects")}),d=(0,I.jsx)(n.Ay,{className:"em-analytics__add-project",type:"primary",onClick:()=>{(0,z.d)({event:"open_modal",action:"create_new_project"}),s((0,N.qf)(k.lx.ADD_NEW_PROJECT_MODAL))},children:e("Add a new project")},"Add a new project");return(0,I.jsxs)(r.A,{className:"projects-page",children:[(0,I.jsx)(L.A,{leftBlock:c,rightBlock:d}),(0,I.jsxs)(O,{className:"projects-page__container",children:[(0,I.jsx)(E,{}),(0,I.jsx)(o.A,{isModalVisible:t===k.lx.ADD_NEW_PROJECT_MODAL})]})]})}},36852:(e,t,s)=>{s.d(t,{A:()=>N});var i=s(92810),r=s(59297),n=s(76662),a=s(12280),l=s(55039),o=s(43005),c=s(71157),d=s(9588),m=s(82013),u=s(48236),p=s(64617),h=s(94822),_=s(38883),g=s.n(_),v=s(23287),j=s(65119),x=s(85163),f=s(47381),y=s(70082);const{Title:A,Text:b}=n.A,w=({className:e})=>{const{__:t}=(0,v.s9)();let s=(0,p.Zp)();const r=(0,c.hN)(),[n,_]=(0,i.useState)(!1),w={name:"email",rules:[{required:!0,message:t("Please type your email address."),type:"email"}],placeholder:t("email"),prefix:(0,y.jsx)(d.A,{style:{color:x.VG}})},N={name:"password",rules:[{required:!0,message:t("Please type your password.")},()=>({validator:(e,s)=>s.length>=8&&/[0-9]/.test(s)&&/[a-z]/.test(s)&&/[A-Z]/.test(s)&&/\W+|_/g.test(s)?Promise.resolve():Promise.reject(new Error(t("The password is too simple.")))})],placeholder:t("password"),prefix:(0,y.jsx)(m.A,{style:{color:x.VG}})},S={name:"code",rules:[{required:!0,message:t("Please type your password confirmation code.")}],placeholder:t("confirmation code"),prefix:(0,y.jsx)(u.A,{style:{color:x.VG}})},[k,I]=(0,j.Lv)(),[C,T]=(0,j.kg)(),[E,L]=(0,i.useState)("");(0,i.useEffect)((()=>{I.isError&&r.error({message:(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:I.error.data.code}}),description:(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:I.error.data.message}}),placement:"bottomRight"})}),[I,r]),(0,i.useEffect)((()=>{T.isError&&r.error({message:(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:T.error.data.code}}),description:(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:T.error.data.message}}),placement:"bottomRight"}),T.isSuccess&&(r.success({message:t("Your password successfully reset."),description:t("Try sign in with your new password."),placement:"bottomRight"}),s("/auth",{replace:!0}))}),[T,s,t,r]);return(0,y.jsxs)("div",{className:g()("recover-password-form",{[e]:e}),children:[!I.isSuccess&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"recover-password-form__heading",children:[(0,y.jsx)(A,{level:2,style:{fontWeight:500,fontSize:24},children:t("Forgot the password?")}),(0,y.jsx)(b,{className:"recover-password-form__sub-title",children:t("Enter your email address and we will send you password reset instructions.")})]}),(0,y.jsxs)(a.A,{name:"recover_password_form",initialValues:{remember:!0},onFinish:e=>{L(e.email),(0,f.d)({event:"submit_form",action:"password_recovery",label:e.email}),k({email:e.email})},onFinishFailed:()=>{},autoComplete:"off",children:[(0,y.jsx)(a.A.Item,{name:w.name,rules:w.rules,children:(0,y.jsx)(l.A,{size:"large",disabled:I.isLoading,placeholder:w.name,prefix:w.prefix})}),(0,y.jsx)(a.A.Item,{children:(0,y.jsx)(o.Ay,{size:"large",loading:I.isLoading,block:!0,type:"primary",htmlType:"submit",className:"em-analytics__password-reset",children:t("Send")})}),(0,y.jsx)(a.A.Item,{children:(0,y.jsx)(h.N_,{to:"/auth",children:t("Back to Log In")})})]})]}),I.isSuccess&&!T.isSuccess&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"recover-password-form__heading",children:[(0,y.jsx)(A,{level:2,style:{fontWeight:500,fontSize:24},children:t("Set new password")}),(0,y.jsx)(b,{className:"recover-password-form__sub-title",children:t("Enter the confirmation code from the email and set a new password.")})]}),(0,y.jsxs)(a.A,{name:"set_new_password_form",initialValues:{remember:!0},onFinish:e=>{C({email:E,password:e.password,code:e.code})},onFinishFailed:()=>{},autoComplete:"off",children:[(0,y.jsx)(a.A.Item,{name:N.name,rules:N.rules,extra:t("At least 8 characters, including a combination of uppercase and lowercase letters, numbers, and special characters."),children:(0,y.jsx)(l.A.Password,{readOnly:!n,onFocus:()=>_(!0),size:"large",type:"password",disabled:T.isLoading,placeholder:t("new password"),prefix:N.prefix})}),(0,y.jsx)(a.A.Item,{name:S.name,rules:S.rules,children:(0,y.jsx)(l.A,{size:"large",disabled:T.isLoading,placeholder:S.placeholder,prefix:S.prefix})}),(0,y.jsx)(a.A.Item,{children:(0,y.jsx)(o.Ay,{size:"large",loading:T.isLoading,block:!0,type:"primary",htmlType:"submit",children:t("Recover password")})}),(0,y.jsx)(a.A.Item,{children:(0,y.jsx)(h.N_,{to:"/auth",children:t("Back to Log In")})})]})]})]})},N=()=>(0,y.jsx)(r.A,{className:"recover-password-page",children:(0,y.jsx)(w,{className:"recover-password-page__form"})})},70431:(e,t,s)=>{s.d(t,{A:()=>_});var i=s(92810),r=s(12280),n=s(14852),a=s(43005),l=s(55039),o=s(71157),c=s(45934),d=s(23287),m=s(93563),u=s(64936),p=s(85163),h=s(70082);const _=({folder:e,refetch:t})=>{const{__:s,_x:_}=(0,d.s9)(),g=(0,c.wA)(),[v]=r.A.useForm(),j=(0,i.useRef)(null),x=(0,c.d4)(u.cL)===p.lx.EDIT_FOLDER_NAME_MODAL,f=(0,o.hN)(),{folderId:y=null,folderName:A=""}=e,b=()=>g((0,u.Oo)()),[w,N]=(0,m.$s)();(0,i.useEffect)((()=>{x&&v.setFieldsValue({name:A})}),[x,A,v]);const S=()=>{v.validateFields().then((({name:e})=>{w({id:y,data:{name:e}}).then((({data:e,error:i})=>{i?(f.error({message:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i.data.code}}),description:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i.data.message}}),placement:"bottomRight"}),v.setFieldValue("name",A)):(t().then((({data:e})=>{if(e){var t,s,i;const r=null===(t=e[0])||void 0===t||null===(s=t.children)||void 0===s||null===(i=s.find((e=>e.id===y)))||void 0===i?void 0:i.name;v.setFieldValue("name",r)}})),b(),f.success({message:s("The folder \u201c")+A+_("\u201d was successfully changed to \u201c","folder")+e.name+s("\u201d."),placement:"bottomRight"}))}))}))};return(0,h.jsx)(n.A,{title:s("Change folder name"),open:x,onOk:S,onCancel:b,className:"new-folder-name-modal",centered:!0,footer:[(0,h.jsx)(a.Ay,{type:"primary",size:"large",loading:N.isLoading,onClick:S,children:s("Change name")},"submit")],children:(0,h.jsx)(r.A,{form:v,layout:"vertical",name:"rename_folder_form",onFinish:S,initialValues:{remember:!1,name:A},autoComplete:"off",style:{paddingTop:10},children:(0,h.jsx)(r.A.Item,{name:"name",rules:[{required:!0,message:s("Please enter the folder name")}],children:(0,h.jsx)(l.A,{disabled:N.isLoading,size:"large",placeholder:s("Enter the folder name"),ref:j,style:{marginBottom:5}})})})})}},33284:(e,t,s)=>{s.d(t,{A:()=>p});var i=s(92810),r=s(43005),n=s(45934),a=s(33206),l=s(56920),o=s(86286),c=s(62303),d=s(32269),m=s(23287),u=s(70082);const p=()=>{const{__:e}=(0,m.s9)(),{notification:t}=a.A.useApp(),s=(0,n.d4)(o.C1),[p]=(0,l.C)(),[h,_]=(0,i.useState)(!1);(0,i.useEffect)((()=>{s.hasOwnProperty("email_confirmation")&&_(s.email_confirmation)}),[s,h]);return null!==s&&void 0!==s&&s.email_confirmation||null===s||void 0===s||!s.privacy_policy_agreement?null:(0,u.jsx)("div",{className:"main__ribbon",children:(0,u.jsxs)("span",{children:[(0,u.jsx)(c.A,{icon:"EmailConfirmation",style:{fontSize:20,position:"relative",top:2}})," ",e("Confirmation email was sent to"),"\xa0",(0,u.jsx)("em",{children:s.email}),".\xa0",e("Didn't receive an email?"),"\xa0",(0,u.jsxs)(r.Ay,{type:"primary",size:"small",style:{fontSize:16,lineHeight:1},onClick:()=>{p({userId:s.id,email:s.email}).then((({data:i,error:r})=>{i?(0,d.wB)(e("Confirmation email has been sent to {confirmedEmail}.").replace("{confirmedEmail}",s.email),t):r&&(0,d.p6)(r,t)}))},children:[e("Resend")," ",(0,u.jsx)(c.A,{icon:"SendOutlined",style:{verticalAlign:"middle"}})]})]})})}}}]);
|
package/useblocks-esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const load=function(e){var a,t=e||("undefined"!==typeof module&&"module"===module.type?{publicPath:import.meta.url.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/"}:void 0);return(()=>{var e={96116:(e,a,c)=>{var l;let s="https://unpkg.com/useblocks@1.0.13/",o="useblocks";if("object"===typeof t&&null!==(l=t)&&void 0!==l&&l.publicPath){var n;s=null===(n=t)||void 0===n?void 0:n.publicPath}else{let e="";const a=document.querySelector(`script[src*=${o}\\.js]`)||document.querySelector(`script[src*=${o}-esm\\.js]`);a instanceof HTMLScriptElement&&(e=a.src),e&&(s=e.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/")}c.p=s}},c={};function l(a){var t=c[a];if(void 0!==t)return t.exports;var s=c[a]={id:a,loaded:!1,exports:{}};return e[a].call(s.exports,s,s.exports,l),s.loaded=!0,s.exports}l.m=e,l.amdD=function(){throw new Error("define cannot be used indirect")},l.amdO={},l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a:a}),a},(()=>{var e,a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;l.t=function(t,c){if(1&c&&(t=this(t)),8&c)return t;if("object"===typeof t&&t){if(4&c&&t.__esModule)return t;if(16&c&&"function"===typeof t.then)return t}var s=Object.create(null);l.r(s);var o={};e=e||[null,a({}),a([]),a(a)];for(var n=2&c&&t;"object"==typeof n&&!~e.indexOf(n);n=a(n))Object.getOwnPropertyNames(n).forEach((e=>o[e]=()=>t[e]));return o.default=()=>t,l.d(s,o),s}})(),l.d=(e,a)=>{for(var t in a)l.o(a,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((a,t)=>(l.f[t](e,a),a)),[])),l.u=e=>4384===e?"static/js/4384.d7dc931a.js":3142===e?"static/js/3142.6792174f.js":6133===e?"static/js/6133.0da38de9.js":984===e?"static/js/984.43ee1019.js":3991===e?"static/js/3991.d0073826.js":4231===e?"static/js/4231.0dca1f81.js":8345===e?"static/js/8345.e3795419.js":1212===e?"static/js/1212.15b852ca.js":823===e?"static/js/823.48325ac1.js":1403===e?"static/js/1403.68211890.js":197===e?"static/js/197.a135382e.js":5873===e?"static/js/5873.5fdbcd6c.js":9878===e?"static/js/9878.cca6854e.js":7698===e?"static/js/7698.f82d28d4.js":6154===e?"static/js/6154.eda7a5eb.js":8740===e?"static/js/8740.a2a83fd4.js":3303===e?"static/js/3303.576ded0e.js":6242===e?"static/js/6242.14f46d39.js":3682===e?"static/js/3682.d155b110.js":1307===e?"static/js/1307.74cb7b10.js":5957===e?"static/js/5957.fb6cb1e9.js":2016===e?"static/js/2016.e08ef9ce.js":9328===e?"static/js/9328.74394e00.js":8879===e?"static/js/8879.10db9af5.js":8738===e?"static/js/8738.3ba7b2e7.js":515===e?"static/js/515.16219a24.js":8236===e?"static/js/8236.b3951f96.js":1052===e?"static/js/1052.d1f85a29.js":353===e?"static/js/353.3e6b29fb.js":8075===e?"static/js/8075.bea74e99.js":5796===e?"static/js/5796.66defe8a.js":4498===e?"static/js/4498.0767c1ee.js":3704===e?"static/js/3704.aef08abb.js":3215===e?"static/js/3215.ce5a9454.js":3041===e?"static/js/3041.e05fa027.js":8309===e?"static/js/8309.7e81b18b.js":9061===e?"static/js/9061.3366c9e5.js":3651===e?"static/js/3651.b49fa896.js":6091===e?"static/js/6091.804a3e5a.js":7018===e?"static/js/7018.f481e3a0.js":5497===e?"static/js/5497.a3910de2.js":687===e?"static/js/687.147e9138.js":1028===e?"static/js/1028.4360e11f.js":9653===e?"static/js/9653.3c3fd842.js":4122===e?"static/js/4122.efa76a71.js":9101===e?"static/js/9101.08739c9d.js":1197===e?"static/js/1197.7e9444b1.js":9055===e?"static/js/9055.1f85af27.js":8694===e?"static/js/8694.60896e26.js":9796===e?"static/js/9796.52daf89f.js":4845===e?"static/js/4845.c3ae91f2.js":4805===e?"static/js/4805.1ac956f6.js":8030===e?"static/js/8030.0b457006.js":7533===e?"static/js/7533.a49f7784.js":6300===e?"static/js/6300.1ed0e3a4.js":5319===e?"static/js/5319.92df1268.js":2225===e?"static/js/2225.d78bdfb7.js":5916===e?"static/js/5916.3a56abae.js":3768===e?"static/js/3768.b4a5d571.js":1366===e?"static/js/1366.f647b62f.js":8696===e?"static/js/8696.301b3f9b.js":1667===e?"static/js/1667.101647da.js":3148===e?"static/js/3148.2e2f27ce.js":222===e?"static/js/222.280bf6b3.js":5974===e?"static/js/5974.efafc283.js":4087===e?"static/js/4087.48b614cb.js":2434===e?"static/js/2434.f7ca00fe.js":2642===e?"static/js/2642.53da04d8.js":2256===e?"static/js/2256.32476c2e.js":5571===e?"static/js/5571.8d62b12a.js":2627===e?"static/js/2627.05b4ace8.js":1399===e?"static/js/1399.47e701eb.js":9907===e?"static/js/9907.761fcfa3.js":698===e?"static/js/698.e5828125.js":1431===e?"static/js/1431.3fb02082.js":8831===e?"static/js/8831.4ca0e76e.js":8786===e?"static/js/8786.4453d70a.js":"static/js/"+({302:"/ant-locale/locale1",732:"/ant-locale/locale16",735:"/ant-locale/locale46",805:"/ant-locale/locale53",881:"/ant-locale/locale13",1279:"/ant-locale/locale8",1290:"/ant-locale/locale5",1401:"/ant-locale/locale26",1712:"/ant-locale/locale41",1723:"/ant-locale/locale42",1782:"/ant-locale/locale58",1788:"/ant-locale/locale38",1793:"/ant-locale/locale57",2104:"/ant-locale/locale70",2169:"/ant-locale/locale35",2180:"/ant-locale/locale30",2466:"/mergeTags/locale0",3157:"/ant-locale/locale66",3222:"/ant-locale/locale21",3541:"/ant-locale/locale17",3544:"/ant-locale/locale49",3614:"/ant-locale/locale50",3690:"/ant-locale/locale10",4145:"/ant-locale/locale62",4210:"/ant-locale/locale25",4221:"/ant-locale/locale22",4286:"/ant-locale/locale14",4521:"/ant-locale/locale40",4532:"/ant-locale/locale45",4591:"/ant-locale/locale59",4597:"/ant-locale/locale39",4602:"/ant-locale/locale54",4684:"/ant-locale/locale3",4695:"/ant-locale/locale0",4913:"/ant-locale/locale71",4989:"/ant-locale/locale31",5122:"/ant-locale/locale69",5187:"/ant-locale/locale55",5506:"/ant-locale/locale18",5523:"/ant-locale/locale4",5574:"/ant-locale/locale32",5672:"/ant-locale/locale7",5955:"/ant-locale/locale60",5966:"/ant-locale/locale65",6031:"/ant-locale/locale20",6353:"/ant-locale/locale48",6562:"/ant-locale/locale36",6859:"/mergeTags/locale1",6954:"/ant-locale/locale61",7008:"/ant-locale/locale27",7019:"/ant-locale/locale24",7095:"/ant-locale/locale15",7330:"/ant-locale/locale43",7341:"/ant-locale/locale44",7493:"/ant-locale/locale2",7923:"/ant-locale/locale11",7926:"/ant-locale/locale47",7931:"/ant-locale/locale68",7996:"/ant-locale/locale52",8007:"/ant-locale/locale51",8315:"/ant-locale/locale19",8383:"/ant-locale/locale33",8470:"/ant-locale/locale9",8775:"/ant-locale/locale64",8984:"/ant-locale/locale56",9360:"/ant-locale/locale34",9371:"/ant-locale/locale37",9447:"/ant-locale/locale28",9752:"/ant-locale/locale63",9828:"/ant-locale/locale23"}[e]||e)+"."+{51:"0157cb43",119:"9a0f51df",127:"9f5a0761",227:"5fd33eeb",302:"5b1308da",393:"2f571faf",451:"d254d20c",577:"ca8a62c4",721:"4c6f728a",732:"49bc0148",735:"8f49c2cd",805:"cea142dd",851:"23920710",881:"9bcbe954",883:"616a487d",1101:"c32ce4f7",1271:"d2ba7d58",1279:"134136c4",1283:"b7058deb",1290:"b2b61134",1401:"b7e751bd",1619:"bb9c2d4f",1663:"cd15901b",1712:"4dee0621",1723:"7061d0fc",1729:"b71e4a99",1782:"d003f49e",1788:"dfa6d712",1793:"e685764a",1818:"053eb89f",1821:"a8efb62e",2029:"041a1c1a",2104:"964bc038",2169:"d58b9c31",2179:"73130a54",2180:"4d3672db",2466:"23c595c1",2475:"c86d0c20",2547:"9cdcf5fd",2581:"4558746b",2675:"dbe09fe1",2851:"fea52359",2935:"c0d4b469",2951:"3f25f72c",3068:"591718b0",3157:"94ea41f2",3222:"7764c4b3",3299:"983ba49b",3447:"2a559817",3541:"2daaf9a6",3544:"c67382b7",3555:"3ae2b597",3614:"6520fd45",3683:"9414adf5",3690:"f74ae841",3763:"5f775790",3960:"89f3c9f4",4001:"0602b191",4047:"25747214",4145:"b21e6edb",4159:"cd6afba9",4210:"7658de4e",4221:"5cbb9959",4286:"138842ea",4299:"440bc3d2",4325:"e27cebb3",4417:"4b3f75b4",4521:"fe7ab935",4532:"a7f6f97e",4591:"556522b5",4597:"31c90381",4602:"16ef125d",4627:"cedc745b",4684:"48f0afe7",4695:"fdb32a9f",4867:"ae5eb9c0",4913:"99926e0d",4989:"406215d5",5122:"27295717",5187:"b1a653c1",5243:"c58a8a21",5315:"1a03f762",5339:"df02c3e0",5445:"7db0b349",5475:"dc9057be",5491:"d8b1b7b0",5506:"f9e62843",5523:"e6fdd0ee",5574:"6167b5e8",5672:"1509b3e0",5853:"ce87dead",5923:"e8e7b96d",5955:"bf3ddb83",5966:"58003560",6021:"7f32cea2",6031:"b5cb6b02",6051:"6cefb17a",6075:"38c621ae",6083:"0ef791dc",6161:"6a73be6e",6275:"19545c93",6353:"bfb8c2b3",6547:"377fc02b",6562:"34d5c9ee",6643:"1eb62a36",6691:"1ee2f23b",6701:"8bd3807d",6739:"22d13837",6859:"3448e6cb",6915:"e4ede32f",6954:"30fe9720",7008:"a47676d9",7019:"3c622cfa",7051:"c0c7cf26",7059:"9c893bc0",7095:"e80eb12a",7146:"9e07333d",7187:"7e67eebe",7330:"b3c810a8",7341:"df0a5a76",7493:"b54c0d79",7635:"9d5d1322",7779:"0d221377",7795:"c0e8c528",7824:"e0daa1f7",7923:"cf703a34",7926:"b84733ce",7931:"8a9f32b5",7963:"a4acc856",7996:"11d21631",8003:"a4a62303",8007:"9b89fb56",8015:"b608b9db",8271:"fc128a04",8315:"c98c053a",8319:"7ea4b259",8383:"4be05b3c",8470:"9b87d751",8679:"f65e4d91",8775:"fdae6858",8779:"f6f8b6f7",8881:"ce638df9",8911:"8253711c",8984:"83c76bd5",9005:"62fb383a",9267:"67d8f2bb",9360:"3813ab2f",9371:"1c16e25b",9447:"c89eee28",9603:"4321e1c5",9752:"8e66417e",9763:"2e0a4d2d",9828:"2342f692",9898:"93cc5558",9935:"52cd750c"}[e]+".chunk.js",l.miniCssF=e=>984===e?"static/css/984.b0f773d2.css":3215===e?"static/css/3215.3a2b7cfe.css":2256===e?"static/css/2256.15cb333e.css":5571===e?"static/css/5571.ad773045.css":2627===e?"static/css/2627.47fa1c54.css":698===e?"static/css/698.ae090381.css":8786===e?"static/css/8786.1f07a6f1.css":void 0,l.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),l.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="email-maker:";l.l=(t,c,s,o)=>{if(e[t])e[t].push(c);else{var n,i;if(void 0!==s)for(var r=document.getElementsByTagName("script"),d=0;d<r.length;d++){var f=r[d];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==a+s){n=f;break}}n||(i=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,l.nc&&n.setAttribute("nonce",l.nc),n.setAttribute("data-webpack",a+s),n.src=t),e[t]=[c];var j=(a,c)=>{n.onerror=n.onload=null,clearTimeout(b);var l=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),l&&l.forEach((e=>e(c))),a)return a(c)},b=setTimeout(j.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=j.bind(null,n.onerror),n.onload=j.bind(null,n.onload),i&&document.head.appendChild(n)}}})(),l.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((a,t)=>{var c=l.miniCssF(e),s=l.p+c;if(((e,a)=>{for(var t=document.getElementsByTagName("link"),c=0;c<t.length;c++){var l=(o=t[c]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(l===e||l===a))return o}var s=document.getElementsByTagName("style");for(c=0;c<s.length;c++){var o;if((l=(o=s[c]).getAttribute("data-href"))===e||l===a)return o}})(c,s))return a();((e,a,t,c,s)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",l.nc&&(o.nonce=l.nc),o.onerror=o.onload=t=>{if(o.onerror=o.onload=null,"load"===t.type)c();else{var l=t&&t.type,n=t&&t.target&&t.target.href||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+l+": "+n+")");i.name="ChunkLoadError",i.code="CSS_CHUNK_LOAD_FAILED",i.type=l,i.request=n,o.parentNode&&o.parentNode.removeChild(o),s(i)}},o.href=a,t?t.parentNode.insertBefore(o,t.nextSibling):document.head.appendChild(o)})(e,s,null,a,t)})),a={884:0,5294:0};l.f.miniCss=(t,c)=>{a[t]?c.push(a[t]):0!==a[t]&&{698:1,984:1,2256:1,2627:1,3215:1,5571:1,8786:1}[t]&&c.push(a[t]=e(t).then((()=>{a[t]=0}),(e=>{throw delete a[t],e})))}}})(),(()=>{var e={884:0,5294:0};l.f.j=(a,t)=>{var c=l.o(e,a)?e[a]:void 0;if(0!==c)if(c)t.push(c[2]);else if(/^(3215|984)$/.test(a))e[a]=0;else{var s=new Promise(((t,l)=>c=e[a]=[t,l]));t.push(c[2]=s);var o=l.p+l.u(a),n=new Error;l.l(o,(t=>{if(l.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var s=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;n.message="Loading chunk "+a+" failed.\n("+s+": "+o+")",n.name="ChunkLoadError",n.type=s,n.request=o,c[1](n)}}),"chunk-"+a,a)}};var a=(a,t)=>{var c,s,[o,n,i]=t,r=0;if(o.some((a=>0!==e[a]))){for(c in n)l.o(n,c)&&(l.m[c]=n[c]);if(i)i(l)}for(a&&a(t);r<o.length;r++)s=o[r],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0},t=globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[];t.forEach(a.bind(null,0)),t.push=a.bind(null,t.push.bind(t))})(),l.nc=void 0;var s={};(()=>{"use strict";l.r(s),l.d(s,{init:()=>t,parseAMP:()=>c,version:()=>o});l(96116);let e,a;function t(a){return e||(e=Promise.all([l.e(4384),l.e(3142),l.e(6133),l.e(984),l.e(3991),l.e(4231),l.e(8345),l.e(1212),l.e(823),l.e(1403),l.e(197),l.e(5873),l.e(9878),l.e(7698),l.e(6154),l.e(8740),l.e(3303),l.e(6242),l.e(3682),l.e(1307),l.e(5957),l.e(2016),l.e(9328),l.e(8879),l.e(8738),l.e(515),l.e(8236),l.e(1052),l.e(353),l.e(8075),l.e(5796),l.e(4498),l.e(3704),l.e(3215),l.e(3041),l.e(8309),l.e(9061),l.e(3651),l.e(6091),l.e(7018),l.e(5497),l.e(687),l.e(1028),l.e(9653),l.e(4122),l.e(9101),l.e(1197),l.e(9055),l.e(8694),l.e(9796),l.e(4845),l.e(4805),l.e(8030),l.e(7533),l.e(6300),l.e(5319),l.e(2225),l.e(5916),l.e(3768),l.e(1366),l.e(8696),l.e(1667),l.e(3148),l.e(222),l.e(5974),l.e(4087),l.e(2434),l.e(2642),l.e(2256),l.e(5571),l.e(2627),l.e(1399),l.e(9907),l.e(698),l.e(1431),l.e(8831),l.e(8786),l.e(8271)]).then(l.bind(l,12299))),e.then((e=>e.init(a)))}function c(e){return a||(a=Promise.all([l.e(4384),l.e(8738),l.e(515),l.e(353),l.e(5974),l.e(7146)]).then(l.bind(l,7146))),a.then((a=>a.parseAMP(e)))}const o="1.0.13"})(),a=s})(),a},app=load("undefined"===typeof UseblocksEnvironment?void 0:UseblocksEnvironment);export const parseAMP=app.parseAMP;export const version=app.version;export const init=app.init;
|
|
1
|
+
const load=function(e){var a,t=e||("undefined"!==typeof module&&"module"===module.type?{publicPath:import.meta.url.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/"}:void 0);return(()=>{var e={96116:(e,a,c)=>{var l;let s="https://unpkg.com/useblocks@1.0.14/",o="useblocks";if("object"===typeof t&&null!==(l=t)&&void 0!==l&&l.publicPath){var n;s=null===(n=t)||void 0===n?void 0:n.publicPath}else{let e="";const a=document.querySelector(`script[src*=${o}\\.js]`)||document.querySelector(`script[src*=${o}-esm\\.js]`);a instanceof HTMLScriptElement&&(e=a.src),e&&(s=e.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/")}c.p=s}},c={};function l(a){var t=c[a];if(void 0!==t)return t.exports;var s=c[a]={id:a,loaded:!1,exports:{}};return e[a].call(s.exports,s,s.exports,l),s.loaded=!0,s.exports}l.m=e,l.amdD=function(){throw new Error("define cannot be used indirect")},l.amdO={},l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a:a}),a},(()=>{var e,a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;l.t=function(t,c){if(1&c&&(t=this(t)),8&c)return t;if("object"===typeof t&&t){if(4&c&&t.__esModule)return t;if(16&c&&"function"===typeof t.then)return t}var s=Object.create(null);l.r(s);var o={};e=e||[null,a({}),a([]),a(a)];for(var n=2&c&&t;"object"==typeof n&&!~e.indexOf(n);n=a(n))Object.getOwnPropertyNames(n).forEach((e=>o[e]=()=>t[e]));return o.default=()=>t,l.d(s,o),s}})(),l.d=(e,a)=>{for(var t in a)l.o(a,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((a,t)=>(l.f[t](e,a),a)),[])),l.u=e=>4384===e?"static/js/4384.d7dc931a.js":3142===e?"static/js/3142.6792174f.js":6133===e?"static/js/6133.0da38de9.js":984===e?"static/js/984.43ee1019.js":3991===e?"static/js/3991.d0073826.js":4231===e?"static/js/4231.0dca1f81.js":8345===e?"static/js/8345.e3795419.js":1212===e?"static/js/1212.15b852ca.js":823===e?"static/js/823.48325ac1.js":1403===e?"static/js/1403.68211890.js":197===e?"static/js/197.a135382e.js":5873===e?"static/js/5873.5fdbcd6c.js":9878===e?"static/js/9878.cca6854e.js":7698===e?"static/js/7698.f82d28d4.js":6154===e?"static/js/6154.eda7a5eb.js":8740===e?"static/js/8740.a2a83fd4.js":3303===e?"static/js/3303.576ded0e.js":6242===e?"static/js/6242.14f46d39.js":3682===e?"static/js/3682.d155b110.js":1307===e?"static/js/1307.74cb7b10.js":5957===e?"static/js/5957.fb6cb1e9.js":2016===e?"static/js/2016.e08ef9ce.js":9328===e?"static/js/9328.74394e00.js":8879===e?"static/js/8879.10db9af5.js":8738===e?"static/js/8738.3ba7b2e7.js":515===e?"static/js/515.16219a24.js":8236===e?"static/js/8236.b3951f96.js":1052===e?"static/js/1052.d1f85a29.js":353===e?"static/js/353.3e6b29fb.js":8075===e?"static/js/8075.bea74e99.js":5796===e?"static/js/5796.66defe8a.js":4498===e?"static/js/4498.0767c1ee.js":3704===e?"static/js/3704.aef08abb.js":3215===e?"static/js/3215.ce5a9454.js":3041===e?"static/js/3041.e05fa027.js":8309===e?"static/js/8309.7e81b18b.js":9061===e?"static/js/9061.3366c9e5.js":3651===e?"static/js/3651.b49fa896.js":6091===e?"static/js/6091.804a3e5a.js":7018===e?"static/js/7018.f481e3a0.js":5497===e?"static/js/5497.a3910de2.js":687===e?"static/js/687.147e9138.js":1028===e?"static/js/1028.4360e11f.js":9653===e?"static/js/9653.3c3fd842.js":4122===e?"static/js/4122.efa76a71.js":9101===e?"static/js/9101.08739c9d.js":1197===e?"static/js/1197.7e9444b1.js":9055===e?"static/js/9055.1f85af27.js":8694===e?"static/js/8694.60896e26.js":9796===e?"static/js/9796.52daf89f.js":4845===e?"static/js/4845.c3ae91f2.js":4805===e?"static/js/4805.1ac956f6.js":8030===e?"static/js/8030.0b457006.js":7533===e?"static/js/7533.a49f7784.js":6300===e?"static/js/6300.1ed0e3a4.js":5319===e?"static/js/5319.92df1268.js":2225===e?"static/js/2225.d78bdfb7.js":5916===e?"static/js/5916.3a56abae.js":3768===e?"static/js/3768.b4a5d571.js":1366===e?"static/js/1366.f647b62f.js":8696===e?"static/js/8696.301b3f9b.js":1667===e?"static/js/1667.101647da.js":3148===e?"static/js/3148.2e2f27ce.js":222===e?"static/js/222.280bf6b3.js":5974===e?"static/js/5974.efafc283.js":4087===e?"static/js/4087.48b614cb.js":2434===e?"static/js/2434.fbc5ba06.js":2642===e?"static/js/2642.53da04d8.js":2256===e?"static/js/2256.32476c2e.js":5571===e?"static/js/5571.8d62b12a.js":2627===e?"static/js/2627.75b999dd.js":1399===e?"static/js/1399.47e701eb.js":9907===e?"static/js/9907.761fcfa3.js":698===e?"static/js/698.e5828125.js":1431===e?"static/js/1431.3fb02082.js":8831===e?"static/js/8831.4ca0e76e.js":8786===e?"static/js/8786.4453d70a.js":"static/js/"+({302:"/ant-locale/locale1",732:"/ant-locale/locale16",735:"/ant-locale/locale46",805:"/ant-locale/locale53",881:"/ant-locale/locale13",1279:"/ant-locale/locale8",1290:"/ant-locale/locale5",1401:"/ant-locale/locale26",1712:"/ant-locale/locale41",1723:"/ant-locale/locale42",1782:"/ant-locale/locale58",1788:"/ant-locale/locale38",1793:"/ant-locale/locale57",2104:"/ant-locale/locale70",2169:"/ant-locale/locale35",2180:"/ant-locale/locale30",2466:"/mergeTags/locale0",3157:"/ant-locale/locale66",3222:"/ant-locale/locale21",3541:"/ant-locale/locale17",3544:"/ant-locale/locale49",3614:"/ant-locale/locale50",3690:"/ant-locale/locale10",4145:"/ant-locale/locale62",4210:"/ant-locale/locale25",4221:"/ant-locale/locale22",4286:"/ant-locale/locale14",4521:"/ant-locale/locale40",4532:"/ant-locale/locale45",4591:"/ant-locale/locale59",4597:"/ant-locale/locale39",4602:"/ant-locale/locale54",4684:"/ant-locale/locale3",4695:"/ant-locale/locale0",4913:"/ant-locale/locale71",4989:"/ant-locale/locale31",5122:"/ant-locale/locale69",5187:"/ant-locale/locale55",5506:"/ant-locale/locale18",5523:"/ant-locale/locale4",5574:"/ant-locale/locale32",5672:"/ant-locale/locale7",5955:"/ant-locale/locale60",5966:"/ant-locale/locale65",6031:"/ant-locale/locale20",6353:"/ant-locale/locale48",6562:"/ant-locale/locale36",6859:"/mergeTags/locale1",6954:"/ant-locale/locale61",7008:"/ant-locale/locale27",7019:"/ant-locale/locale24",7095:"/ant-locale/locale15",7330:"/ant-locale/locale43",7341:"/ant-locale/locale44",7493:"/ant-locale/locale2",7923:"/ant-locale/locale11",7926:"/ant-locale/locale47",7931:"/ant-locale/locale68",7996:"/ant-locale/locale52",8007:"/ant-locale/locale51",8315:"/ant-locale/locale19",8383:"/ant-locale/locale33",8470:"/ant-locale/locale9",8775:"/ant-locale/locale64",8984:"/ant-locale/locale56",9360:"/ant-locale/locale34",9371:"/ant-locale/locale37",9447:"/ant-locale/locale28",9752:"/ant-locale/locale63",9828:"/ant-locale/locale23"}[e]||e)+"."+{51:"0157cb43",119:"9a0f51df",127:"9f5a0761",227:"5fd33eeb",302:"5b1308da",393:"2f571faf",451:"d254d20c",577:"ca8a62c4",721:"4c6f728a",732:"49bc0148",735:"8f49c2cd",805:"cea142dd",851:"23920710",881:"9bcbe954",883:"616a487d",1101:"c32ce4f7",1271:"d2ba7d58",1279:"134136c4",1283:"b7058deb",1290:"b2b61134",1401:"b7e751bd",1619:"bb9c2d4f",1663:"cd15901b",1712:"4dee0621",1723:"7061d0fc",1729:"b71e4a99",1782:"d003f49e",1788:"dfa6d712",1793:"e685764a",1818:"053eb89f",1821:"a8efb62e",2029:"041a1c1a",2104:"964bc038",2169:"d58b9c31",2179:"73130a54",2180:"4d3672db",2466:"23c595c1",2475:"c86d0c20",2547:"9cdcf5fd",2581:"4558746b",2675:"dbe09fe1",2851:"fea52359",2935:"c0d4b469",2951:"3f25f72c",3068:"591718b0",3157:"94ea41f2",3222:"7764c4b3",3299:"983ba49b",3447:"2a559817",3541:"2daaf9a6",3544:"c67382b7",3555:"3ae2b597",3614:"6520fd45",3683:"9414adf5",3690:"f74ae841",3763:"5f775790",3960:"89f3c9f4",4001:"0602b191",4047:"25747214",4145:"b21e6edb",4159:"cd6afba9",4210:"7658de4e",4221:"5cbb9959",4286:"138842ea",4299:"440bc3d2",4325:"e27cebb3",4417:"4b3f75b4",4521:"fe7ab935",4532:"a7f6f97e",4591:"556522b5",4597:"31c90381",4602:"16ef125d",4627:"cedc745b",4684:"48f0afe7",4695:"fdb32a9f",4867:"ae5eb9c0",4913:"99926e0d",4989:"406215d5",5122:"27295717",5187:"b1a653c1",5243:"c58a8a21",5315:"1a03f762",5339:"df02c3e0",5445:"7db0b349",5475:"dc9057be",5491:"d8b1b7b0",5506:"f9e62843",5523:"e6fdd0ee",5574:"6167b5e8",5672:"1509b3e0",5853:"ce87dead",5923:"e8e7b96d",5955:"bf3ddb83",5966:"58003560",6021:"7f32cea2",6031:"b5cb6b02",6051:"6cefb17a",6075:"38c621ae",6083:"0ef791dc",6161:"6a73be6e",6275:"19545c93",6353:"bfb8c2b3",6547:"377fc02b",6562:"34d5c9ee",6643:"1eb62a36",6691:"1ee2f23b",6701:"8bd3807d",6739:"22d13837",6859:"3448e6cb",6915:"e4ede32f",6954:"30fe9720",7008:"a47676d9",7019:"3c622cfa",7051:"c0c7cf26",7059:"9c893bc0",7095:"e80eb12a",7146:"9e07333d",7187:"7e67eebe",7330:"b3c810a8",7341:"df0a5a76",7493:"b54c0d79",7635:"9d5d1322",7779:"0d221377",7795:"c0e8c528",7824:"e0daa1f7",7923:"cf703a34",7926:"b84733ce",7931:"8a9f32b5",7963:"a4acc856",7996:"11d21631",8003:"a4a62303",8007:"9b89fb56",8015:"b608b9db",8271:"fc128a04",8315:"c98c053a",8319:"7ea4b259",8383:"4be05b3c",8470:"9b87d751",8679:"f65e4d91",8775:"fdae6858",8779:"f6f8b6f7",8881:"ce638df9",8911:"8253711c",8984:"83c76bd5",9005:"62fb383a",9267:"67d8f2bb",9360:"3813ab2f",9371:"1c16e25b",9447:"c89eee28",9603:"4321e1c5",9752:"8e66417e",9763:"2e0a4d2d",9828:"2342f692",9898:"93cc5558",9935:"52cd750c"}[e]+".chunk.js",l.miniCssF=e=>984===e?"static/css/984.b0f773d2.css":3215===e?"static/css/3215.3a2b7cfe.css":2256===e?"static/css/2256.15cb333e.css":5571===e?"static/css/5571.ad773045.css":2627===e?"static/css/2627.47fa1c54.css":698===e?"static/css/698.ae090381.css":8786===e?"static/css/8786.1f07a6f1.css":void 0,l.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),l.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="email-maker:";l.l=(t,c,s,o)=>{if(e[t])e[t].push(c);else{var n,i;if(void 0!==s)for(var r=document.getElementsByTagName("script"),d=0;d<r.length;d++){var f=r[d];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==a+s){n=f;break}}n||(i=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,l.nc&&n.setAttribute("nonce",l.nc),n.setAttribute("data-webpack",a+s),n.src=t),e[t]=[c];var j=(a,c)=>{n.onerror=n.onload=null,clearTimeout(b);var l=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),l&&l.forEach((e=>e(c))),a)return a(c)},b=setTimeout(j.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=j.bind(null,n.onerror),n.onload=j.bind(null,n.onload),i&&document.head.appendChild(n)}}})(),l.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((a,t)=>{var c=l.miniCssF(e),s=l.p+c;if(((e,a)=>{for(var t=document.getElementsByTagName("link"),c=0;c<t.length;c++){var l=(o=t[c]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(l===e||l===a))return o}var s=document.getElementsByTagName("style");for(c=0;c<s.length;c++){var o;if((l=(o=s[c]).getAttribute("data-href"))===e||l===a)return o}})(c,s))return a();((e,a,t,c,s)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",l.nc&&(o.nonce=l.nc),o.onerror=o.onload=t=>{if(o.onerror=o.onload=null,"load"===t.type)c();else{var l=t&&t.type,n=t&&t.target&&t.target.href||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+l+": "+n+")");i.name="ChunkLoadError",i.code="CSS_CHUNK_LOAD_FAILED",i.type=l,i.request=n,o.parentNode&&o.parentNode.removeChild(o),s(i)}},o.href=a,t?t.parentNode.insertBefore(o,t.nextSibling):document.head.appendChild(o)})(e,s,null,a,t)})),a={884:0,5294:0};l.f.miniCss=(t,c)=>{a[t]?c.push(a[t]):0!==a[t]&&{698:1,984:1,2256:1,2627:1,3215:1,5571:1,8786:1}[t]&&c.push(a[t]=e(t).then((()=>{a[t]=0}),(e=>{throw delete a[t],e})))}}})(),(()=>{var e={884:0,5294:0};l.f.j=(a,t)=>{var c=l.o(e,a)?e[a]:void 0;if(0!==c)if(c)t.push(c[2]);else if(/^(3215|984)$/.test(a))e[a]=0;else{var s=new Promise(((t,l)=>c=e[a]=[t,l]));t.push(c[2]=s);var o=l.p+l.u(a),n=new Error;l.l(o,(t=>{if(l.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var s=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;n.message="Loading chunk "+a+" failed.\n("+s+": "+o+")",n.name="ChunkLoadError",n.type=s,n.request=o,c[1](n)}}),"chunk-"+a,a)}};var a=(a,t)=>{var c,s,[o,n,i]=t,r=0;if(o.some((a=>0!==e[a]))){for(c in n)l.o(n,c)&&(l.m[c]=n[c]);if(i)i(l)}for(a&&a(t);r<o.length;r++)s=o[r],l.o(e,s)&&e[s]&&e[s][0](),e[s]=0},t=globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[];t.forEach(a.bind(null,0)),t.push=a.bind(null,t.push.bind(t))})(),l.nc=void 0;var s={};(()=>{"use strict";l.r(s),l.d(s,{init:()=>t,parseAMP:()=>c,version:()=>o});l(96116);let e,a;function t(a){return e||(e=Promise.all([l.e(4384),l.e(3142),l.e(6133),l.e(984),l.e(3991),l.e(4231),l.e(8345),l.e(1212),l.e(823),l.e(1403),l.e(197),l.e(5873),l.e(9878),l.e(7698),l.e(6154),l.e(8740),l.e(3303),l.e(6242),l.e(3682),l.e(1307),l.e(5957),l.e(2016),l.e(9328),l.e(8879),l.e(8738),l.e(515),l.e(8236),l.e(1052),l.e(353),l.e(8075),l.e(5796),l.e(4498),l.e(3704),l.e(3215),l.e(3041),l.e(8309),l.e(9061),l.e(3651),l.e(6091),l.e(7018),l.e(5497),l.e(687),l.e(1028),l.e(9653),l.e(4122),l.e(9101),l.e(1197),l.e(9055),l.e(8694),l.e(9796),l.e(4845),l.e(4805),l.e(8030),l.e(7533),l.e(6300),l.e(5319),l.e(2225),l.e(5916),l.e(3768),l.e(1366),l.e(8696),l.e(1667),l.e(3148),l.e(222),l.e(5974),l.e(4087),l.e(2434),l.e(2642),l.e(2256),l.e(5571),l.e(2627),l.e(1399),l.e(9907),l.e(698),l.e(1431),l.e(8831),l.e(8786),l.e(8271)]).then(l.bind(l,12299))),e.then((e=>e.init(a)))}function c(e){return a||(a=Promise.all([l.e(4384),l.e(8738),l.e(515),l.e(353),l.e(5974),l.e(7146)]).then(l.bind(l,7146))),a.then((a=>a.parseAMP(e)))}const o="1.0.14"})(),a=s})(),a},app=load("undefined"===typeof UseblocksEnvironment?void 0:UseblocksEnvironment);export const parseAMP=app.parseAMP;export const version=app.version;export const init=app.init;
|
package/useblocks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,a){"object"===typeof exports&&"object"===typeof module?module.exports=a():"function"===typeof define&&define.amd?define([],a):"object"===typeof exports?exports.useblocks=a():e.useblocks=a()}(globalThis,(()=>(()=>{var e={96116:(e,a,t)=>{var c;let l="https://unpkg.com/useblocks@1.0.13/",s="useblocks";if("object"===typeof UseblocksEnvironment&&null!==(c=UseblocksEnvironment)&&void 0!==c&&c.publicPath){var o;l=null===(o=UseblocksEnvironment)||void 0===o?void 0:o.publicPath}else{let e="";const a=document.querySelector(`script[src*=${s}\\.js]`)||document.querySelector(`script[src*=${s}-esm\\.js]`);a instanceof HTMLScriptElement&&(e=a.src),e&&(l=e.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/")}t.p=l}},a={};function t(c){var l=a[c];if(void 0!==l)return l.exports;var s=a[c]={id:c,loaded:!1,exports:{}};return e[c].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}t.m=e,t.amdD=function(){throw new Error("define cannot be used indirect")},t.amdO={},t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a:a}),a},(()=>{var e,a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;t.t=function(c,l){if(1&l&&(c=this(c)),8&l)return c;if("object"===typeof c&&c){if(4&l&&c.__esModule)return c;if(16&l&&"function"===typeof c.then)return c}var s=Object.create(null);t.r(s);var o={};e=e||[null,a({}),a([]),a(a)];for(var n=2&l&&c;"object"==typeof n&&!~e.indexOf(n);n=a(n))Object.getOwnPropertyNames(n).forEach((e=>o[e]=()=>c[e]));return o.default=()=>c,t.d(s,o),s}})(),t.d=(e,a)=>{for(var c in a)t.o(a,c)&&!t.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((a,c)=>(t.f[c](e,a),a)),[])),t.u=e=>4384===e?"static/js/4384.d7dc931a.js":3142===e?"static/js/3142.6792174f.js":6133===e?"static/js/6133.0da38de9.js":984===e?"static/js/984.43ee1019.js":3991===e?"static/js/3991.d0073826.js":4231===e?"static/js/4231.0dca1f81.js":8345===e?"static/js/8345.e3795419.js":1212===e?"static/js/1212.15b852ca.js":823===e?"static/js/823.48325ac1.js":1403===e?"static/js/1403.68211890.js":197===e?"static/js/197.a135382e.js":5873===e?"static/js/5873.5fdbcd6c.js":9878===e?"static/js/9878.cca6854e.js":7698===e?"static/js/7698.f82d28d4.js":6154===e?"static/js/6154.eda7a5eb.js":8740===e?"static/js/8740.a2a83fd4.js":3303===e?"static/js/3303.576ded0e.js":6242===e?"static/js/6242.14f46d39.js":3682===e?"static/js/3682.d155b110.js":1307===e?"static/js/1307.74cb7b10.js":5957===e?"static/js/5957.fb6cb1e9.js":2016===e?"static/js/2016.e08ef9ce.js":9328===e?"static/js/9328.74394e00.js":8879===e?"static/js/8879.10db9af5.js":8738===e?"static/js/8738.3ba7b2e7.js":515===e?"static/js/515.16219a24.js":8236===e?"static/js/8236.b3951f96.js":1052===e?"static/js/1052.d1f85a29.js":353===e?"static/js/353.3e6b29fb.js":8075===e?"static/js/8075.bea74e99.js":5796===e?"static/js/5796.66defe8a.js":4498===e?"static/js/4498.0767c1ee.js":3704===e?"static/js/3704.aef08abb.js":3215===e?"static/js/3215.ce5a9454.js":3041===e?"static/js/3041.e05fa027.js":8309===e?"static/js/8309.7e81b18b.js":9061===e?"static/js/9061.3366c9e5.js":3651===e?"static/js/3651.b49fa896.js":6091===e?"static/js/6091.804a3e5a.js":7018===e?"static/js/7018.f481e3a0.js":5497===e?"static/js/5497.a3910de2.js":687===e?"static/js/687.147e9138.js":1028===e?"static/js/1028.4360e11f.js":9653===e?"static/js/9653.3c3fd842.js":4122===e?"static/js/4122.efa76a71.js":9101===e?"static/js/9101.08739c9d.js":1197===e?"static/js/1197.7e9444b1.js":9055===e?"static/js/9055.1f85af27.js":8694===e?"static/js/8694.60896e26.js":9796===e?"static/js/9796.52daf89f.js":4845===e?"static/js/4845.c3ae91f2.js":4805===e?"static/js/4805.1ac956f6.js":8030===e?"static/js/8030.0b457006.js":7533===e?"static/js/7533.a49f7784.js":6300===e?"static/js/6300.1ed0e3a4.js":5319===e?"static/js/5319.92df1268.js":2225===e?"static/js/2225.d78bdfb7.js":5916===e?"static/js/5916.3a56abae.js":3768===e?"static/js/3768.b4a5d571.js":1366===e?"static/js/1366.f647b62f.js":8696===e?"static/js/8696.301b3f9b.js":1667===e?"static/js/1667.101647da.js":3148===e?"static/js/3148.2e2f27ce.js":222===e?"static/js/222.280bf6b3.js":5974===e?"static/js/5974.efafc283.js":4087===e?"static/js/4087.48b614cb.js":2434===e?"static/js/2434.f7ca00fe.js":2642===e?"static/js/2642.53da04d8.js":2256===e?"static/js/2256.32476c2e.js":5571===e?"static/js/5571.8d62b12a.js":2627===e?"static/js/2627.05b4ace8.js":1399===e?"static/js/1399.47e701eb.js":9907===e?"static/js/9907.761fcfa3.js":698===e?"static/js/698.e5828125.js":1431===e?"static/js/1431.3fb02082.js":8831===e?"static/js/8831.4ca0e76e.js":8786===e?"static/js/8786.4453d70a.js":"static/js/"+({302:"/ant-locale/locale1",732:"/ant-locale/locale16",735:"/ant-locale/locale46",805:"/ant-locale/locale53",881:"/ant-locale/locale13",1279:"/ant-locale/locale8",1290:"/ant-locale/locale5",1401:"/ant-locale/locale26",1712:"/ant-locale/locale41",1723:"/ant-locale/locale42",1782:"/ant-locale/locale58",1788:"/ant-locale/locale38",1793:"/ant-locale/locale57",2104:"/ant-locale/locale70",2169:"/ant-locale/locale35",2180:"/ant-locale/locale30",2466:"/mergeTags/locale0",3157:"/ant-locale/locale66",3222:"/ant-locale/locale21",3541:"/ant-locale/locale17",3544:"/ant-locale/locale49",3614:"/ant-locale/locale50",3690:"/ant-locale/locale10",4145:"/ant-locale/locale62",4210:"/ant-locale/locale25",4221:"/ant-locale/locale22",4286:"/ant-locale/locale14",4521:"/ant-locale/locale40",4532:"/ant-locale/locale45",4591:"/ant-locale/locale59",4597:"/ant-locale/locale39",4602:"/ant-locale/locale54",4684:"/ant-locale/locale3",4695:"/ant-locale/locale0",4913:"/ant-locale/locale71",4989:"/ant-locale/locale31",5122:"/ant-locale/locale69",5187:"/ant-locale/locale55",5506:"/ant-locale/locale18",5523:"/ant-locale/locale4",5574:"/ant-locale/locale32",5672:"/ant-locale/locale7",5955:"/ant-locale/locale60",5966:"/ant-locale/locale65",6031:"/ant-locale/locale20",6353:"/ant-locale/locale48",6562:"/ant-locale/locale36",6859:"/mergeTags/locale1",6954:"/ant-locale/locale61",7008:"/ant-locale/locale27",7019:"/ant-locale/locale24",7095:"/ant-locale/locale15",7330:"/ant-locale/locale43",7341:"/ant-locale/locale44",7493:"/ant-locale/locale2",7923:"/ant-locale/locale11",7926:"/ant-locale/locale47",7931:"/ant-locale/locale68",7996:"/ant-locale/locale52",8007:"/ant-locale/locale51",8315:"/ant-locale/locale19",8383:"/ant-locale/locale33",8470:"/ant-locale/locale9",8775:"/ant-locale/locale64",8984:"/ant-locale/locale56",9360:"/ant-locale/locale34",9371:"/ant-locale/locale37",9447:"/ant-locale/locale28",9752:"/ant-locale/locale63",9828:"/ant-locale/locale23"}[e]||e)+"."+{51:"0157cb43",119:"9a0f51df",127:"9f5a0761",227:"5fd33eeb",302:"5b1308da",393:"2f571faf",451:"d254d20c",577:"ca8a62c4",721:"4c6f728a",732:"49bc0148",735:"8f49c2cd",805:"cea142dd",851:"23920710",881:"9bcbe954",883:"616a487d",1101:"c32ce4f7",1271:"d2ba7d58",1279:"134136c4",1283:"b7058deb",1290:"b2b61134",1401:"b7e751bd",1619:"bb9c2d4f",1663:"cd15901b",1712:"4dee0621",1723:"7061d0fc",1729:"b71e4a99",1782:"d003f49e",1788:"dfa6d712",1793:"e685764a",1818:"053eb89f",1821:"a8efb62e",2029:"041a1c1a",2104:"964bc038",2169:"d58b9c31",2179:"73130a54",2180:"4d3672db",2466:"23c595c1",2475:"c86d0c20",2547:"9cdcf5fd",2581:"4558746b",2675:"dbe09fe1",2851:"fea52359",2935:"c0d4b469",2951:"3f25f72c",3068:"591718b0",3157:"94ea41f2",3222:"7764c4b3",3299:"983ba49b",3447:"2a559817",3541:"2daaf9a6",3544:"c67382b7",3555:"3ae2b597",3614:"6520fd45",3683:"9414adf5",3690:"f74ae841",3763:"5f775790",3960:"89f3c9f4",4001:"0602b191",4047:"25747214",4145:"b21e6edb",4159:"cd6afba9",4210:"7658de4e",4221:"5cbb9959",4286:"138842ea",4299:"440bc3d2",4325:"e27cebb3",4417:"4b3f75b4",4521:"fe7ab935",4532:"a7f6f97e",4591:"556522b5",4597:"31c90381",4602:"16ef125d",4627:"cedc745b",4684:"48f0afe7",4695:"fdb32a9f",4867:"ae5eb9c0",4913:"99926e0d",4989:"406215d5",5122:"27295717",5187:"b1a653c1",5243:"c58a8a21",5315:"1a03f762",5339:"df02c3e0",5445:"7db0b349",5475:"dc9057be",5491:"d8b1b7b0",5506:"f9e62843",5523:"e6fdd0ee",5574:"6167b5e8",5672:"1509b3e0",5853:"ce87dead",5923:"e8e7b96d",5955:"bf3ddb83",5966:"58003560",6021:"7f32cea2",6031:"b5cb6b02",6051:"6cefb17a",6075:"38c621ae",6083:"0ef791dc",6161:"6a73be6e",6275:"19545c93",6353:"bfb8c2b3",6547:"377fc02b",6562:"34d5c9ee",6643:"1eb62a36",6691:"1ee2f23b",6701:"8bd3807d",6739:"22d13837",6859:"3448e6cb",6915:"e4ede32f",6954:"30fe9720",7008:"a47676d9",7019:"3c622cfa",7051:"c0c7cf26",7059:"9c893bc0",7095:"e80eb12a",7146:"9e07333d",7187:"7e67eebe",7330:"b3c810a8",7341:"df0a5a76",7493:"b54c0d79",7635:"9d5d1322",7779:"0d221377",7795:"c0e8c528",7824:"e0daa1f7",7923:"cf703a34",7926:"b84733ce",7931:"8a9f32b5",7963:"a4acc856",7996:"11d21631",8003:"a4a62303",8007:"9b89fb56",8015:"b608b9db",8271:"fc128a04",8315:"c98c053a",8319:"7ea4b259",8383:"4be05b3c",8470:"9b87d751",8679:"f65e4d91",8775:"fdae6858",8779:"f6f8b6f7",8881:"ce638df9",8911:"8253711c",8984:"83c76bd5",9005:"62fb383a",9267:"67d8f2bb",9360:"3813ab2f",9371:"1c16e25b",9447:"c89eee28",9603:"4321e1c5",9752:"8e66417e",9763:"2e0a4d2d",9828:"2342f692",9898:"93cc5558",9935:"52cd750c"}[e]+".chunk.js",t.miniCssF=e=>984===e?"static/css/984.b0f773d2.css":3215===e?"static/css/3215.3a2b7cfe.css":2256===e?"static/css/2256.15cb333e.css":5571===e?"static/css/5571.ad773045.css":2627===e?"static/css/2627.47fa1c54.css":698===e?"static/css/698.ae090381.css":8786===e?"static/css/8786.1f07a6f1.css":void 0,t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="email-maker:";t.l=(c,l,s,o)=>{if(e[c])e[c].push(l);else{var n,i;if(void 0!==s)for(var r=document.getElementsByTagName("script"),d=0;d<r.length;d++){var f=r[d];if(f.getAttribute("src")==c||f.getAttribute("data-webpack")==a+s){n=f;break}}n||(i=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,t.nc&&n.setAttribute("nonce",t.nc),n.setAttribute("data-webpack",a+s),n.src=c),e[c]=[l];var j=(a,t)=>{n.onerror=n.onload=null,clearTimeout(b);var l=e[c];if(delete e[c],n.parentNode&&n.parentNode.removeChild(n),l&&l.forEach((e=>e(t))),a)return a(t)},b=setTimeout(j.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=j.bind(null,n.onerror),n.onload=j.bind(null,n.onload),i&&document.head.appendChild(n)}}})(),t.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((a,c)=>{var l=t.miniCssF(e),s=t.p+l;if(((e,a)=>{for(var t=document.getElementsByTagName("link"),c=0;c<t.length;c++){var l=(o=t[c]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(l===e||l===a))return o}var s=document.getElementsByTagName("style");for(c=0;c<s.length;c++){var o;if((l=(o=s[c]).getAttribute("data-href"))===e||l===a)return o}})(l,s))return a();((e,a,c,l,s)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",t.nc&&(o.nonce=t.nc),o.onerror=o.onload=t=>{if(o.onerror=o.onload=null,"load"===t.type)l();else{var c=t&&t.type,n=t&&t.target&&t.target.href||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+c+": "+n+")");i.name="ChunkLoadError",i.code="CSS_CHUNK_LOAD_FAILED",i.type=c,i.request=n,o.parentNode&&o.parentNode.removeChild(o),s(i)}},o.href=a,c?c.parentNode.insertBefore(o,c.nextSibling):document.head.appendChild(o)})(e,s,null,a,c)})),a={5294:0,884:0};t.f.miniCss=(t,c)=>{a[t]?c.push(a[t]):0!==a[t]&&{698:1,984:1,2256:1,2627:1,3215:1,5571:1,8786:1}[t]&&c.push(a[t]=e(t).then((()=>{a[t]=0}),(e=>{throw delete a[t],e})))}}})(),(()=>{var e={5294:0,884:0};t.f.j=(a,c)=>{var l=t.o(e,a)?e[a]:void 0;if(0!==l)if(l)c.push(l[2]);else if(/^(3215|984)$/.test(a))e[a]=0;else{var s=new Promise(((t,c)=>l=e[a]=[t,c]));c.push(l[2]=s);var o=t.p+t.u(a),n=new Error;t.l(o,(c=>{if(t.o(e,a)&&(0!==(l=e[a])&&(e[a]=void 0),l)){var s=c&&("load"===c.type?"missing":c.type),o=c&&c.target&&c.target.src;n.message="Loading chunk "+a+" failed.\n("+s+": "+o+")",n.name="ChunkLoadError",n.type=s,n.request=o,l[1](n)}}),"chunk-"+a,a)}};var a=(a,c)=>{var l,s,[o,n,i]=c,r=0;if(o.some((a=>0!==e[a]))){for(l in n)t.o(n,l)&&(t.m[l]=n[l]);if(i)i(t)}for(a&&a(c);r<o.length;r++)s=o[r],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0},c=globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),t.nc=void 0;var c={};return(()=>{"use strict";t.r(c),t.d(c,{init:()=>l,parseAMP:()=>s,version:()=>o});t(96116);let e,a;function l(a){return e||(e=Promise.all([t.e(4384),t.e(3142),t.e(6133),t.e(984),t.e(3991),t.e(4231),t.e(8345),t.e(1212),t.e(823),t.e(1403),t.e(197),t.e(5873),t.e(9878),t.e(7698),t.e(6154),t.e(8740),t.e(3303),t.e(6242),t.e(3682),t.e(1307),t.e(5957),t.e(2016),t.e(9328),t.e(8879),t.e(8738),t.e(515),t.e(8236),t.e(1052),t.e(353),t.e(8075),t.e(5796),t.e(4498),t.e(3704),t.e(3215),t.e(3041),t.e(8309),t.e(9061),t.e(3651),t.e(6091),t.e(7018),t.e(5497),t.e(687),t.e(1028),t.e(9653),t.e(4122),t.e(9101),t.e(1197),t.e(9055),t.e(8694),t.e(9796),t.e(4845),t.e(4805),t.e(8030),t.e(7533),t.e(6300),t.e(5319),t.e(2225),t.e(5916),t.e(3768),t.e(1366),t.e(8696),t.e(1667),t.e(3148),t.e(222),t.e(5974),t.e(4087),t.e(2434),t.e(2642),t.e(2256),t.e(5571),t.e(2627),t.e(1399),t.e(9907),t.e(698),t.e(1431),t.e(8831),t.e(8786),t.e(8271)]).then(t.bind(t,12299))),e.then((e=>e.init(a)))}function s(e){return a||(a=Promise.all([t.e(4384),t.e(8738),t.e(515),t.e(353),t.e(5974),t.e(7146)]).then(t.bind(t,7146))),a.then((a=>a.parseAMP(e)))}const o="1.0.13"})(),c})()));
|
|
1
|
+
!function(e,a){"object"===typeof exports&&"object"===typeof module?module.exports=a():"function"===typeof define&&define.amd?define([],a):"object"===typeof exports?exports.useblocks=a():e.useblocks=a()}(globalThis,(()=>(()=>{var e={96116:(e,a,t)=>{var c;let l="https://unpkg.com/useblocks@1.0.14/",s="useblocks";if("object"===typeof UseblocksEnvironment&&null!==(c=UseblocksEnvironment)&&void 0!==c&&c.publicPath){var o;l=null===(o=UseblocksEnvironment)||void 0===o?void 0:o.publicPath}else{let e="";const a=document.querySelector(`script[src*=${s}\\.js]`)||document.querySelector(`script[src*=${s}-esm\\.js]`);a instanceof HTMLScriptElement&&(e=a.src),e&&(l=e.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/")}t.p=l}},a={};function t(c){var l=a[c];if(void 0!==l)return l.exports;var s=a[c]={id:c,loaded:!1,exports:{}};return e[c].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}t.m=e,t.amdD=function(){throw new Error("define cannot be used indirect")},t.amdO={},t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a:a}),a},(()=>{var e,a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;t.t=function(c,l){if(1&l&&(c=this(c)),8&l)return c;if("object"===typeof c&&c){if(4&l&&c.__esModule)return c;if(16&l&&"function"===typeof c.then)return c}var s=Object.create(null);t.r(s);var o={};e=e||[null,a({}),a([]),a(a)];for(var n=2&l&&c;"object"==typeof n&&!~e.indexOf(n);n=a(n))Object.getOwnPropertyNames(n).forEach((e=>o[e]=()=>c[e]));return o.default=()=>c,t.d(s,o),s}})(),t.d=(e,a)=>{for(var c in a)t.o(a,c)&&!t.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((a,c)=>(t.f[c](e,a),a)),[])),t.u=e=>4384===e?"static/js/4384.d7dc931a.js":3142===e?"static/js/3142.6792174f.js":6133===e?"static/js/6133.0da38de9.js":984===e?"static/js/984.43ee1019.js":3991===e?"static/js/3991.d0073826.js":4231===e?"static/js/4231.0dca1f81.js":8345===e?"static/js/8345.e3795419.js":1212===e?"static/js/1212.15b852ca.js":823===e?"static/js/823.48325ac1.js":1403===e?"static/js/1403.68211890.js":197===e?"static/js/197.a135382e.js":5873===e?"static/js/5873.5fdbcd6c.js":9878===e?"static/js/9878.cca6854e.js":7698===e?"static/js/7698.f82d28d4.js":6154===e?"static/js/6154.eda7a5eb.js":8740===e?"static/js/8740.a2a83fd4.js":3303===e?"static/js/3303.576ded0e.js":6242===e?"static/js/6242.14f46d39.js":3682===e?"static/js/3682.d155b110.js":1307===e?"static/js/1307.74cb7b10.js":5957===e?"static/js/5957.fb6cb1e9.js":2016===e?"static/js/2016.e08ef9ce.js":9328===e?"static/js/9328.74394e00.js":8879===e?"static/js/8879.10db9af5.js":8738===e?"static/js/8738.3ba7b2e7.js":515===e?"static/js/515.16219a24.js":8236===e?"static/js/8236.b3951f96.js":1052===e?"static/js/1052.d1f85a29.js":353===e?"static/js/353.3e6b29fb.js":8075===e?"static/js/8075.bea74e99.js":5796===e?"static/js/5796.66defe8a.js":4498===e?"static/js/4498.0767c1ee.js":3704===e?"static/js/3704.aef08abb.js":3215===e?"static/js/3215.ce5a9454.js":3041===e?"static/js/3041.e05fa027.js":8309===e?"static/js/8309.7e81b18b.js":9061===e?"static/js/9061.3366c9e5.js":3651===e?"static/js/3651.b49fa896.js":6091===e?"static/js/6091.804a3e5a.js":7018===e?"static/js/7018.f481e3a0.js":5497===e?"static/js/5497.a3910de2.js":687===e?"static/js/687.147e9138.js":1028===e?"static/js/1028.4360e11f.js":9653===e?"static/js/9653.3c3fd842.js":4122===e?"static/js/4122.efa76a71.js":9101===e?"static/js/9101.08739c9d.js":1197===e?"static/js/1197.7e9444b1.js":9055===e?"static/js/9055.1f85af27.js":8694===e?"static/js/8694.60896e26.js":9796===e?"static/js/9796.52daf89f.js":4845===e?"static/js/4845.c3ae91f2.js":4805===e?"static/js/4805.1ac956f6.js":8030===e?"static/js/8030.0b457006.js":7533===e?"static/js/7533.a49f7784.js":6300===e?"static/js/6300.1ed0e3a4.js":5319===e?"static/js/5319.92df1268.js":2225===e?"static/js/2225.d78bdfb7.js":5916===e?"static/js/5916.3a56abae.js":3768===e?"static/js/3768.b4a5d571.js":1366===e?"static/js/1366.f647b62f.js":8696===e?"static/js/8696.301b3f9b.js":1667===e?"static/js/1667.101647da.js":3148===e?"static/js/3148.2e2f27ce.js":222===e?"static/js/222.280bf6b3.js":5974===e?"static/js/5974.efafc283.js":4087===e?"static/js/4087.48b614cb.js":2434===e?"static/js/2434.fbc5ba06.js":2642===e?"static/js/2642.53da04d8.js":2256===e?"static/js/2256.32476c2e.js":5571===e?"static/js/5571.8d62b12a.js":2627===e?"static/js/2627.75b999dd.js":1399===e?"static/js/1399.47e701eb.js":9907===e?"static/js/9907.761fcfa3.js":698===e?"static/js/698.e5828125.js":1431===e?"static/js/1431.3fb02082.js":8831===e?"static/js/8831.4ca0e76e.js":8786===e?"static/js/8786.4453d70a.js":"static/js/"+({302:"/ant-locale/locale1",732:"/ant-locale/locale16",735:"/ant-locale/locale46",805:"/ant-locale/locale53",881:"/ant-locale/locale13",1279:"/ant-locale/locale8",1290:"/ant-locale/locale5",1401:"/ant-locale/locale26",1712:"/ant-locale/locale41",1723:"/ant-locale/locale42",1782:"/ant-locale/locale58",1788:"/ant-locale/locale38",1793:"/ant-locale/locale57",2104:"/ant-locale/locale70",2169:"/ant-locale/locale35",2180:"/ant-locale/locale30",2466:"/mergeTags/locale0",3157:"/ant-locale/locale66",3222:"/ant-locale/locale21",3541:"/ant-locale/locale17",3544:"/ant-locale/locale49",3614:"/ant-locale/locale50",3690:"/ant-locale/locale10",4145:"/ant-locale/locale62",4210:"/ant-locale/locale25",4221:"/ant-locale/locale22",4286:"/ant-locale/locale14",4521:"/ant-locale/locale40",4532:"/ant-locale/locale45",4591:"/ant-locale/locale59",4597:"/ant-locale/locale39",4602:"/ant-locale/locale54",4684:"/ant-locale/locale3",4695:"/ant-locale/locale0",4913:"/ant-locale/locale71",4989:"/ant-locale/locale31",5122:"/ant-locale/locale69",5187:"/ant-locale/locale55",5506:"/ant-locale/locale18",5523:"/ant-locale/locale4",5574:"/ant-locale/locale32",5672:"/ant-locale/locale7",5955:"/ant-locale/locale60",5966:"/ant-locale/locale65",6031:"/ant-locale/locale20",6353:"/ant-locale/locale48",6562:"/ant-locale/locale36",6859:"/mergeTags/locale1",6954:"/ant-locale/locale61",7008:"/ant-locale/locale27",7019:"/ant-locale/locale24",7095:"/ant-locale/locale15",7330:"/ant-locale/locale43",7341:"/ant-locale/locale44",7493:"/ant-locale/locale2",7923:"/ant-locale/locale11",7926:"/ant-locale/locale47",7931:"/ant-locale/locale68",7996:"/ant-locale/locale52",8007:"/ant-locale/locale51",8315:"/ant-locale/locale19",8383:"/ant-locale/locale33",8470:"/ant-locale/locale9",8775:"/ant-locale/locale64",8984:"/ant-locale/locale56",9360:"/ant-locale/locale34",9371:"/ant-locale/locale37",9447:"/ant-locale/locale28",9752:"/ant-locale/locale63",9828:"/ant-locale/locale23"}[e]||e)+"."+{51:"0157cb43",119:"9a0f51df",127:"9f5a0761",227:"5fd33eeb",302:"5b1308da",393:"2f571faf",451:"d254d20c",577:"ca8a62c4",721:"4c6f728a",732:"49bc0148",735:"8f49c2cd",805:"cea142dd",851:"23920710",881:"9bcbe954",883:"616a487d",1101:"c32ce4f7",1271:"d2ba7d58",1279:"134136c4",1283:"b7058deb",1290:"b2b61134",1401:"b7e751bd",1619:"bb9c2d4f",1663:"cd15901b",1712:"4dee0621",1723:"7061d0fc",1729:"b71e4a99",1782:"d003f49e",1788:"dfa6d712",1793:"e685764a",1818:"053eb89f",1821:"a8efb62e",2029:"041a1c1a",2104:"964bc038",2169:"d58b9c31",2179:"73130a54",2180:"4d3672db",2466:"23c595c1",2475:"c86d0c20",2547:"9cdcf5fd",2581:"4558746b",2675:"dbe09fe1",2851:"fea52359",2935:"c0d4b469",2951:"3f25f72c",3068:"591718b0",3157:"94ea41f2",3222:"7764c4b3",3299:"983ba49b",3447:"2a559817",3541:"2daaf9a6",3544:"c67382b7",3555:"3ae2b597",3614:"6520fd45",3683:"9414adf5",3690:"f74ae841",3763:"5f775790",3960:"89f3c9f4",4001:"0602b191",4047:"25747214",4145:"b21e6edb",4159:"cd6afba9",4210:"7658de4e",4221:"5cbb9959",4286:"138842ea",4299:"440bc3d2",4325:"e27cebb3",4417:"4b3f75b4",4521:"fe7ab935",4532:"a7f6f97e",4591:"556522b5",4597:"31c90381",4602:"16ef125d",4627:"cedc745b",4684:"48f0afe7",4695:"fdb32a9f",4867:"ae5eb9c0",4913:"99926e0d",4989:"406215d5",5122:"27295717",5187:"b1a653c1",5243:"c58a8a21",5315:"1a03f762",5339:"df02c3e0",5445:"7db0b349",5475:"dc9057be",5491:"d8b1b7b0",5506:"f9e62843",5523:"e6fdd0ee",5574:"6167b5e8",5672:"1509b3e0",5853:"ce87dead",5923:"e8e7b96d",5955:"bf3ddb83",5966:"58003560",6021:"7f32cea2",6031:"b5cb6b02",6051:"6cefb17a",6075:"38c621ae",6083:"0ef791dc",6161:"6a73be6e",6275:"19545c93",6353:"bfb8c2b3",6547:"377fc02b",6562:"34d5c9ee",6643:"1eb62a36",6691:"1ee2f23b",6701:"8bd3807d",6739:"22d13837",6859:"3448e6cb",6915:"e4ede32f",6954:"30fe9720",7008:"a47676d9",7019:"3c622cfa",7051:"c0c7cf26",7059:"9c893bc0",7095:"e80eb12a",7146:"9e07333d",7187:"7e67eebe",7330:"b3c810a8",7341:"df0a5a76",7493:"b54c0d79",7635:"9d5d1322",7779:"0d221377",7795:"c0e8c528",7824:"e0daa1f7",7923:"cf703a34",7926:"b84733ce",7931:"8a9f32b5",7963:"a4acc856",7996:"11d21631",8003:"a4a62303",8007:"9b89fb56",8015:"b608b9db",8271:"fc128a04",8315:"c98c053a",8319:"7ea4b259",8383:"4be05b3c",8470:"9b87d751",8679:"f65e4d91",8775:"fdae6858",8779:"f6f8b6f7",8881:"ce638df9",8911:"8253711c",8984:"83c76bd5",9005:"62fb383a",9267:"67d8f2bb",9360:"3813ab2f",9371:"1c16e25b",9447:"c89eee28",9603:"4321e1c5",9752:"8e66417e",9763:"2e0a4d2d",9828:"2342f692",9898:"93cc5558",9935:"52cd750c"}[e]+".chunk.js",t.miniCssF=e=>984===e?"static/css/984.b0f773d2.css":3215===e?"static/css/3215.3a2b7cfe.css":2256===e?"static/css/2256.15cb333e.css":5571===e?"static/css/5571.ad773045.css":2627===e?"static/css/2627.47fa1c54.css":698===e?"static/css/698.ae090381.css":8786===e?"static/css/8786.1f07a6f1.css":void 0,t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="email-maker:";t.l=(c,l,s,o)=>{if(e[c])e[c].push(l);else{var n,i;if(void 0!==s)for(var r=document.getElementsByTagName("script"),d=0;d<r.length;d++){var f=r[d];if(f.getAttribute("src")==c||f.getAttribute("data-webpack")==a+s){n=f;break}}n||(i=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,t.nc&&n.setAttribute("nonce",t.nc),n.setAttribute("data-webpack",a+s),n.src=c),e[c]=[l];var j=(a,t)=>{n.onerror=n.onload=null,clearTimeout(b);var l=e[c];if(delete e[c],n.parentNode&&n.parentNode.removeChild(n),l&&l.forEach((e=>e(t))),a)return a(t)},b=setTimeout(j.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=j.bind(null,n.onerror),n.onload=j.bind(null,n.onload),i&&document.head.appendChild(n)}}})(),t.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((a,c)=>{var l=t.miniCssF(e),s=t.p+l;if(((e,a)=>{for(var t=document.getElementsByTagName("link"),c=0;c<t.length;c++){var l=(o=t[c]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(l===e||l===a))return o}var s=document.getElementsByTagName("style");for(c=0;c<s.length;c++){var o;if((l=(o=s[c]).getAttribute("data-href"))===e||l===a)return o}})(l,s))return a();((e,a,c,l,s)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",t.nc&&(o.nonce=t.nc),o.onerror=o.onload=t=>{if(o.onerror=o.onload=null,"load"===t.type)l();else{var c=t&&t.type,n=t&&t.target&&t.target.href||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+c+": "+n+")");i.name="ChunkLoadError",i.code="CSS_CHUNK_LOAD_FAILED",i.type=c,i.request=n,o.parentNode&&o.parentNode.removeChild(o),s(i)}},o.href=a,c?c.parentNode.insertBefore(o,c.nextSibling):document.head.appendChild(o)})(e,s,null,a,c)})),a={5294:0,884:0};t.f.miniCss=(t,c)=>{a[t]?c.push(a[t]):0!==a[t]&&{698:1,984:1,2256:1,2627:1,3215:1,5571:1,8786:1}[t]&&c.push(a[t]=e(t).then((()=>{a[t]=0}),(e=>{throw delete a[t],e})))}}})(),(()=>{var e={5294:0,884:0};t.f.j=(a,c)=>{var l=t.o(e,a)?e[a]:void 0;if(0!==l)if(l)c.push(l[2]);else if(/^(3215|984)$/.test(a))e[a]=0;else{var s=new Promise(((t,c)=>l=e[a]=[t,c]));c.push(l[2]=s);var o=t.p+t.u(a),n=new Error;t.l(o,(c=>{if(t.o(e,a)&&(0!==(l=e[a])&&(e[a]=void 0),l)){var s=c&&("load"===c.type?"missing":c.type),o=c&&c.target&&c.target.src;n.message="Loading chunk "+a+" failed.\n("+s+": "+o+")",n.name="ChunkLoadError",n.type=s,n.request=o,l[1](n)}}),"chunk-"+a,a)}};var a=(a,c)=>{var l,s,[o,n,i]=c,r=0;if(o.some((a=>0!==e[a]))){for(l in n)t.o(n,l)&&(t.m[l]=n[l]);if(i)i(t)}for(a&&a(c);r<o.length;r++)s=o[r],t.o(e,s)&&e[s]&&e[s][0](),e[s]=0},c=globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),t.nc=void 0;var c={};return(()=>{"use strict";t.r(c),t.d(c,{init:()=>l,parseAMP:()=>s,version:()=>o});t(96116);let e,a;function l(a){return e||(e=Promise.all([t.e(4384),t.e(3142),t.e(6133),t.e(984),t.e(3991),t.e(4231),t.e(8345),t.e(1212),t.e(823),t.e(1403),t.e(197),t.e(5873),t.e(9878),t.e(7698),t.e(6154),t.e(8740),t.e(3303),t.e(6242),t.e(3682),t.e(1307),t.e(5957),t.e(2016),t.e(9328),t.e(8879),t.e(8738),t.e(515),t.e(8236),t.e(1052),t.e(353),t.e(8075),t.e(5796),t.e(4498),t.e(3704),t.e(3215),t.e(3041),t.e(8309),t.e(9061),t.e(3651),t.e(6091),t.e(7018),t.e(5497),t.e(687),t.e(1028),t.e(9653),t.e(4122),t.e(9101),t.e(1197),t.e(9055),t.e(8694),t.e(9796),t.e(4845),t.e(4805),t.e(8030),t.e(7533),t.e(6300),t.e(5319),t.e(2225),t.e(5916),t.e(3768),t.e(1366),t.e(8696),t.e(1667),t.e(3148),t.e(222),t.e(5974),t.e(4087),t.e(2434),t.e(2642),t.e(2256),t.e(5571),t.e(2627),t.e(1399),t.e(9907),t.e(698),t.e(1431),t.e(8831),t.e(8786),t.e(8271)]).then(t.bind(t,12299))),e.then((e=>e.init(a)))}function s(e){return a||(a=Promise.all([t.e(4384),t.e(8738),t.e(515),t.e(353),t.e(5974),t.e(7146)]).then(t.bind(t,7146))),a.then((a=>a.parseAMP(e)))}const o="1.0.14"})(),c})()));
|