useblocks 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +24 -24
  3. package/iframe/css/sandbox.css +9 -4
  4. package/iframe/{iframe-eblock.f61f8f47787ca4997e6d.html → iframe-eblock.d1f32f5d85572423f83b.html} +1 -1
  5. package/iframe/{iframe.f61f8f47787ca4997e6d.html → iframe.d1f32f5d85572423f83b.html} +1 -1
  6. package/iframe/js/cssbeautify.js +1 -1
  7. package/iframe/js/typograf/typograf.all.min.js +1 -1
  8. package/iframe/js/typograf/typograf.all.min.js.LICENSE.txt +1 -1
  9. package/iframe/sandbox-eblock.js +1 -1
  10. package/iframe/sandbox-eblock.js.LICENSE.txt +1 -1
  11. package/iframe/sandbox.js +1 -1
  12. package/iframe/sandbox.js.LICENSE.txt +1 -1
  13. package/package.json +1 -1
  14. package/plugin.html +2 -1
  15. package/plugin_default.html +1 -1
  16. package/plugin_s.html +1 -1
  17. package/static/css/{3851.75ec4b28.css → 3851.1f07a6f1.css} +1 -1
  18. package/static/js/1472.fe27dc78.js +1 -0
  19. package/static/js/2256.3991f1ef.js +1 -0
  20. package/static/js/2627.e8273a8d.js +1 -0
  21. package/static/js/4087.39430f66.js +1 -0
  22. package/static/js/5571.dc6f9b7e.js +1 -0
  23. package/static/js/5974.441a5974.js +1 -0
  24. package/static/js/698.4d75d08a.js +1 -0
  25. package/static/js/7881.e264c85a.js +1 -0
  26. package/static/js/8353.53225c03.js +1 -0
  27. package/static/js/mergeTags/locale1.7ae1a083.chunk.js +1 -0
  28. package/static/js/{useblocks_core.9a714074.js → useblocks_core.5b26da6d.js} +1 -1
  29. package/translations.pot +311 -353
  30. package/useblocks-esm.js +1 -1
  31. package/useblocks.js +1 -1
  32. package/static/js/1472.e4ead619.js +0 -1
  33. package/static/js/2256.b6d7fbb0.js +0 -1
  34. package/static/js/2627.70dfe8c2.js +0 -1
  35. package/static/js/4087.9a4ff675.js +0 -1
  36. package/static/js/5571.21531630.js +0 -1
  37. package/static/js/5974.7e71f106.js +0 -1
  38. package/static/js/698.2c771781.js +0 -1
  39. package/static/js/7881.602f3276.js +0 -1
  40. package/static/js/8353.ab466bfd.js +0 -1
  41. package/static/js/mergeTags/locale1.08f64b23.chunk.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 r=s(92810),i=s(64617),n=s(41919),a=s(95838),l=s(71157),o=s(98915),d=s(17590),c=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),I=s(84501),k=s(85025),C=s(94219),T=s(81577),E=s(64936),L=s(36404),O=s(86286),z=s(39990),D=s(32269),M=s(90070),R=s(85163),F=s(70082);const B=({isMenuCollapsed:e,setIsMenuCollapsed:t,isLocked:s})=>{var n;const{__:a}=(0,v.s9)();let l=(0,m.wA)(),o=(0,i.Zp)();const{projectId:d}=(0,i.g)(),{pathname:c}=(0,i.zy)(),[u,B]=(0,r.useState)(""),P=(0,m.d4)(L.yN),H=(0,m.d4)(O.C1),q=(0,M.p6)(),$=(0,r.useCallback)((()=>{c.includes("blocks")?B("Blocks"):c.includes("emails")?B("Emails"):c.includes("members")&&B("Members"),!s&&t(!0)}),[c,t,s]);(0,r.useEffect)((()=>{$()}),[$]);let V=[],W=[];const X=(null===P||void 0===P?void 0:P.title)||"";let J=[{label:(0,F.jsx)("a",{href:"https://help.useblocks.io/docs/knowledge-center/",target:"_blank",rel:"noopener noreferrer",children:a("Help")}),key:"Help center",icon:(0,F.jsx)(j.A,{style:{fontSize:"16px"}}),className:"help-center"},{label:a("Chat support"),key:"Support chat",icon:(0,F.jsx)(x.A,{style:{fontSize:"16px"}}),className:"open-support-chat",onClick:()=>{try{window.carrotquest.open()}catch(e){console.log(e)}}}],U=[{label:a("Account settings"),key:"Account settings",icon:(0,F.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,F.jsx)(g.N_,{to:"/billing",children:a("Billing")}),key:"Billing",icon:(0,F.jsx)(y.A,{style:{fontSize:"16px"}}),className:"em-analytics__billing"},{label:a("Sign out"),icon:(0,F.jsx)(A.A,{style:{fontSize:"16px"}}),key:"Sign out",className:"em-analytics__sign-out",onClick:()=>{(0,D.Id)(q),l(z.Q2.util.resetApiState()),o("/auth",{replace:!0})}}];const Y="/projects"+(d?"/"+d+"/emails?page=1":""),Z=[{label:(0,F.jsx)(g.N_,{style:{fontSize:16},to:Y,children:X}),key:"Project",popupOffset:[0,16],style:{fontWeight:500},icon:d?(0,F.jsx)(g.N_,{to:Y,className:"project-menu__block",style:{fontSize:"18px",zIndex:99},children:(0,F.jsx)(h.Ay,{type:"primary",className:"project-menu__block-button",children:null===X||void 0===X?void 0:X.split(" ").slice(0,2).map((e=>Array.from(e)[0]))})}):(0,F.jsx)(g.N_,{to:Y,rel:"noopener noreferrer",className:"project-menu__block",style:{fontSize:"40px",marginLeft:"8px"},children:(0,F.jsxs)("b",{children:[(0,F.jsx)("span",{className:"letters",children:"b"}),(!e||s)&&(0,F.jsxs)("span",{className:"hidden-text",children:["l",(0,F.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":!d,"project-menu__list-item_project":d}),children:d&&[{label:a("Project settings"),key:"Project settings",className:"em-analytics__account-settings",icon:(0,F.jsx)(b.A,{style:{fontSize:"16px"}}),onClick:()=>{l((0,E.qf)(R.lx.EDIT_PROJECT_MODAL)),!s&&t(!0)}},{label:(0,F.jsx)(g.N_,{to:"/projects",children:a("List of projects")}),key:"List of projects",icon:(0,F.jsx)(w.A,{style:{fontSize:"16px"}}),className:"em-analytics__sign-out"}]},{type:"divider"}];return V.push({icon:(0,F.jsx)(N.A,{style:{fontSize:20}}),label:(0,F.jsx)(g.N_,{to:`/projects/${d}/emails`,rel:"noopener noreferrer",children:a("Emails")}),key:"Emails",className:"project-menu__list-item em-analytics__project-menu-emails"},{icon:(0,F.jsx)(S.A,{style:{fontSize:20}}),label:(0,F.jsx)(g.N_,{to:`/projects/${d}/blocks`,rel:"noopener noreferrer",children:a("Blocks")}),key:"Blocks",className:"project-menu__list-item em-analytics__project-menu-blocks"},{icon:(0,F.jsx)(I.A,{style:{fontSize:20}}),label:(0,F.jsx)(g.N_,{to:`/projects/${d}/members`,rel:"noopener noreferrer",children:a("Members")}),key:"Members",className:"project-menu__list-item em-analytics__project-menu-members"}),"community"===H.subscription.post_name&&d&&H.counters.emails_counter>2&&W.push({icon:(0,F.jsx)(k.A,{style:{fontSize:20,lineHeight:"44px"}}),label:(0,F.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,F.jsx)(C.A,{style:{fontSize:18}}),label:a("Help menu"),key:"Help menu",className:"project-menu__list-item support-center-menu",children:J},{icon:(0,F.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,F.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,F.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,F.jsx)(f.A,{style:{position:"absolute",fontSize:20,borderRadius:100,overflow:"hidden",height:20,width:20,lineHeight:0,zIndex:-1}},"UserOutlined")]:(0,F.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:U}),(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:"project-menu",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(_.A,{disabledOverflow:!0,className:"project-menu__list project-menu__list_top",style:{fontSize:16},items:Z,triggerSubMenuAction:"hover",subMenuOpenDelay:.3,selectable:!1}),d&&(0,F.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,F.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,items:W,triggerSubMenuAction:"hover"})]})})};var P=s(35285),H=s(65052),q=s(70656),$=s(62689),V=s(65983),W=s(7760),X=s(19366),J=s(3289),U=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,i.zy)();const s=(0,m.wA)(),a=(0,i.Zp)(),{emailId:u,blockId:h}=(0,i.g)(),_=(0,m.d4)(O.C1),g=(0,m.d4)(E.cL),v=(0,r.useRef)(),[j]=(0,$.bw)(),x=(0,l.hN)();v.current||(v.current=(0,Y.$Z)()),(0,r.useEffect)((()=>{(0,Z.FN)(e)}),[e]);const{data:f=[],isSuccess:y}=(0,$.I9)(_.id,{pollingInterval:3e4,skip:g});(0,r.useEffect)((()=>{const e=f.filter((e=>""===e.seen||null===e.seen));setTimeout((()=>{e.length&&y&&e.forEach((e=>{x[e.type]({message:(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:e.title}}),description:(0,F.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,X.A)(),(0,J.A)(),(0,U.A)(),(0,r.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,r.useState)((null===b||void 0===b?void 0:b.isLocked)||!1),[S,I]=(0,r.useState)(!0);return(0,r.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,r.useCallback)((e=>{const t=(0,G.Mu)(e);a(t)}),[a])),(0,F.jsx)("div",{className:"main",children:(0,F.jsx)(Y.kx.Provider,{value:A,children:(0,F.jsx)("div",{className:"main__pane main__pane_main",children:(0,F.jsx)("div",{className:"main__pane-content",id:"pane-content-iframe",children:(0,F.jsxs)(n.A,{className:"main__pane-layout",hasSider:!0,children:[!R.EW.isPlugin&&(0,F.jsx)(ee,{theme:"light",style:{borderColor:e.colorBorder,position:"fixed"},collapsible:!0,collapsed:!w&&S,defaultCollapsed:!0,reverseArrow:!w&&!S||w&&!S,trigger:(0,F.jsxs)("div",{className:"main__pane-trigger",children:[w?(0,F.jsx)(c.A,{style:{fontSize:18}}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(o.A,{style:{fontSize:18}}),(0,F.jsx)(d.A,{style:{fontSize:18}})]}),(0,F.jsx)(q.A,{})]}),className:p()("main__menu",{main__menu_lock:w}),width:260,onCollapse:(e,t)=>{e?!w&&I(!0):I(!e),N(!w)},onMouseEnter:()=>!w&&I(!1),onMouseLeave:()=>!w&&I(!0),children:(0,F.jsx)(B,{isMenuCollapsed:S,setIsMenuCollapsed:I,isLocked:w})}),(0,F.jsx)(P.A,{isModalVisible:g===R.lx.EDIT_PROJECT_MODAL}),(0,F.jsx)(H.A,{isModalVisible:g===R.lx.EDIT_PROFILE_MODAL}),(0,F.jsx)(i.sv,{})]})})})})})}},24495:(e,t,s)=>{s.d(t,{A:()=>E});var r=s(92810),i=s(76662),n=s(41919),a=s(43005),l=s(71157),o=s(20258),d=s(64617),c=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,r,i,n)=>{var a,l;const o=n("Owner","member"),d=n("Administrator","member"),c=i("The invitation has been sent");let m=[];e.role===c?m.push({label:i("Revoke the invite"),key:v.JE,className:"em-analytics__revoke-invite",onClick:({key:t})=>r(t,e)}):(e.role!==o&&m.push({label:i("Assign the project owner"),key:v.gY,className:"em-analytics__members-owner",onClick:({key:t})=>r(t,e)}),e.role!==d&&m.push({label:i("Change role to Administrator"),key:v.Qz,className:"em-analytics__members-admin",onClick:({key:t})=>r(t,e)}),e.role===d&&m.push({label:i("Change role to User"),key:v.aO,className:"em-analytics__members-user",onClick:({key:t})=>r(t,e)}),m.push({label:i("Remove member"),key:v.eA,onClick:({key:t})=>r(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:i("Change role to User"),key:v.aO,className:"em-analytics__members-user",onClick:({key:t})=>r(t,e)}),e.role===v.m3&&u.push({label:i("Change role to Administrator"),key:v.Qz,className:"em-analytics__members-admin",onClick:({key:t})=>r(t,e)}),e.role===v.G$?u.push({label:i("Revoke the invite"),key:v.JE,className:"em-analytics__revoke-invite",onClick:({key:t})=>r(t,e)}):u.push({label:i("Remove member"),key:v.eA,className:"em-analytics__members-remove",onClick:({key:t})=>{r(t,e)}});let p=[{label:i("Remove member"),key:v.eA,className:"em-analytics__members-remove",onClick:({key:t})=>r(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:i,admin:n}=(0,A.A)();let a=(0,d.Zp)();const o=(0,l.hN)(),[c,m]=(0,r.useState)(""),j=t("Owner","member"),N=t("Administrator","member"),S=e("user"),I=e("The invitation has been sent");(0,r.useEffect)((()=>{i||n||m(v.m3),i&&m(v.yo),n&&m(v.St)}),[i,n,s]);const{data:k,isFetching:C,refetch:T}=(0,d.KC)(),[E,L]=(0,r.useState)([]);(0,r.useEffect)((()=>{const{owner:s,admins:r,users:i,invited_users:n}=k.members||{};L([s&&{...s,role:t("Owner","member")},r&&Array.isArray(r)&&r.map((e=>({...e,role:t("Administrator","member")}))),i&&Array.isArray(i)&&i.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))}),[k.members,e,t]);const[O,z]=(0,y.OD)(),D=(r,{role:i,...n})=>{var l,d;let c,m;switch(r){case v.gY:if(i===N){const e=k.members.admins,t=k.members.owner;c={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(i===S){const e=k.members.users,t=k.members.owner;c={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(i===S){const s=k.members.users,r=k.members.admins;c={members:{users:s&&Array.isArray(s)&&s.length>1?s.filter((e=>e.ID!==n.ID)).map((e=>e.ID)):0,admins:r&&Array.isArray(r)&&r.length>0?[...r.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(i===N){const s=k.members.admins,r=k.members.users;c={members:{admins:s&&Array.isArray(s)&&s.length>1?s.filter((e=>e.ID!==n.ID)).map((e=>e.ID)):0,users:r&&Array.isArray(r)&&r.length>0?[...r.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(i===N){const e=k.members.admins;c={members:{admins:e&&Array.isArray(e)&&e.length>1?e.filter((e=>e.ID!==n.ID)).map((e=>e.ID)):0}}}if(i===S){const e=k.members.users;c={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===(d=n.ID)||void 0===d?void 0:d.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 r=k.members.invited_users;c={members:{invited_users:!!(r&&Array.isArray(r)&&r.length>0)&&r.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}O({projectId:k.id,...c}).then((e=>{var t,r;if(e.error)return(null===(t=s.id)||void 0===t?void 0:t.toString())===(null===(r=n.ID)||void 0===r?void 0:r.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:(r,a)=>{const l=x(a,c,s,D,e,t);return a.role===j||!i&&!n&&a.role===N||n&&a.role===N&&s.id!==a.ID||!i&&!n&&a.role===S&&s.id!==a.ID||!i&&!n&&a.role===I?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===I?"members-table__invite_member_row":"",rowKey:e=>`${e.role}_${e.ID||e.user_email}`,dataSource:E,columns:M,loading:z.isLoading||C,showSizeChanger:!1,pagination:{showSizeChanger:!1,hideOnSinglePage:!0,position:["bottomLeft"]}})})};var S=s(20757),I=s(53200),k=s(22197);const{Paragraph:C}=i.A,{Content:T}=n.A,E=()=>{const{__:e}=(0,p.s9)(),t=(0,u.wA)(),{owner:s,admin:i}=(0,A.A)(),[h]=c.A.useForm(),_=(0,l.hN)(),[g,v]=(0,I.N)(),{data:j,refetch:x}=(0,d.KC)();(0,k.A)(e("Members")),(0,r.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||i?[(0,w.jsxs)(c.A,{form:h,name:"search-members-form",initialValues:{remember:!0},onFinish:({email:e})=>{g({email:e,project_id:j.id}).then((e=>{var s,r,i;e.isError?(0,b.p6)(e,_):(null===(s=e.data)||void 0===s||null===(r=s.data)||void 0===r?void 0:r.status)<400?(h.resetFields(),x(),(0,b.wB)(null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.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)(c.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)(c.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 r=s(92810),i=s(71503),n=s(45934),a=s(887),l=s(45695),o=s(44396),d=s(86286),c=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);i.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)(c.Up),f=(0,n.d4)(m.Up),y=(0,n.d4)(c.VZ),A=null!==e&&void 0!==e&&e.hasOwnProperty("type")?f:g,b=(0,n.d4)(d.hZ),w=(0,n.wA)(),N=(0,r.useRef)(null),S=(0,r.useRef)(null),I=(0,j.rD)(),k=(0,r.useCallback)((()=>{w((0,d.ku)(!1))}),[w]);(0,r.useEffect)((()=>k()),[k]),(0,r.useEffect)((()=>{if(y){const{current:e}=N;e&&(e.revealRangeInCenterIfOutsideViewport(y),e.setSelection(y))}}),[y]);(0,r.useEffect)((()=>{N.current&&N.current.updateOptions(b)}),[b,N]),(0,r.useEffect)((()=>{matchMedia(_.F3).addEventListener("change",(t=>{const s=window.localStorage.getItem(_.V0.em_color_scheme),r=t.matches?_.nd:_.T;e.hasOwnProperty("type")?w(s?(0,m.eX)(s===_.nd?`vs-${s}`:_.T):(0,m.eX)(r===_.nd?`vs-${r}`:_.T)):w(s?(0,c.eX)(s===_.nd?`vs-${s}`:_.T):(0,c.eX)(r===_.nd?`vs-${r}`:_.T))}))}),[w,e]),(0,r.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,c.eX)(t===_.nd?`vs-${t}`:_.T):(0,c.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(),r=s.getPositionAt(e.start),i=s.getPositionAt(e.end),n={startColumn:r.column,startLineNumber:r.lineNumber,endColumn:i.column,endLineNumber:i.lineNumber};t.revealRangeInCenterIfOutsideViewport(n),t.setSelection(n)}})(s.data)}));const C=(0,r.useMemo)((()=>({...b,domReadOnly:t,readOnly:t,unusualLineTerminators:"off",mouseWheelZoom:!0,wordWrap:I.onlyCodeModeInMobile?"off":b.wordWrap})),[b,I.onlyCodeModeInMobile,t]);return(null===s||void 0===s?void 0:s.uri)&&(0,x.jsx)(i.Ay,{theme:A,className:"monaco-editor",defaultLanguage:"html",onMount:(e,t)=>{N.current=e;const s=e.getContribution("editor.linkDetector").openerService,r=s.open.bind(s),i=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=>(i.innerHTML=e,r(i.textContent)),w((0,d.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,c.Bj)(e))}})}},21999:(e,t,s)=>{s.d(t,{A:()=>n});s(92810);var r=s(64617),i=s(70082);const n=({lastProjectId:e})=>{const{pathname:t,search:s}=(0,r.zy)();return!1===e?(0,i.jsx)(r.C5,{to:"/projects"}):e&&(0,i.jsx)(r.C5,{to:`/projects/${e+t+s}`})}},32983:(e,t,s)=>{s.d(t,{A:()=>n});s(92810);var r=s(64617),i=s(70082);const n=({to:e})=>(0,i.jsx)(r.C5,{to:e})},24239:(e,t,s)=>{s.d(t,{A:()=>m});s(92810);var r=s(41919),i=s(25072),n=s(43005),a=s(64617),l=s(23287),o=s(32269),d=s(70082);const{Content:c}=r.A,m=()=>{const{__:e}=(0,l.s9)();let t=(0,a.Zp)();return(0,d.jsx)(r.A,{children:(0,d.jsx)(c,{className:"container",children:(0,d.jsx)(i.Ay,{status:"500",title:"404",subTitle:e("Sorry, the page you visited does not exist."),extra:(0,d.jsx)(n.Ay,{type:"primary",onClick:()=>(0,o.XZ)(t,"/projects"),children:e("Back Home")})})})})}},26201:(e,t,s)=>{s.d(t,{A:()=>R});var r=s(92810),i=s(45934),n=s(76662),a=s(2018),l=s(7744),o=s(43005),d=s(57806),c=s(71086),m=s(29234),u=s(67661),p=s(66726),h=s(31022),_=s(3329),g=s(13932),v=s(69825),j=s(58133),x=s(38883),f=s.n(x),y=s(88528),A=s(65983),b=s(23287),w=s(71157),N=s(45695),S=s(32411),I=s(85163),k=s(70082);const{Text:C,Link:T,Title:E}=n.A,L=({summary:e,__:t})=>(0,k.jsxs)(E,{level:5,style:{margin:0,fontSize:"14px"},children:[(0,k.jsxs)("span",{className:"valid",children:[t("valid"),": ",(null===e||void 0===e?void 0:e.valid)||0]}),(0,k.jsxs)("span",{className:"error",children:[t("errors"),": ",(null===e||void 0===e?void 0:e.errors)||0]}),(0,k.jsxs)("span",{className:"warning",children:[t("warnings"),": ",(null===e||void 0===e?void 0:e.warnings)||0]})]}),O="Links",z="Images",D="Spam assassin",M="Problems",R=()=>{var e,t,s,n,x;const{__:R}=(0,b.s9)(),F=(0,w.hN)(),B=(0,N.QC)(),P=(0,S.fn)(),H=(0,i.d4)(A.rd),q=(0,i.wA)(),[$,V]=(0,y.ku)(),[W,X]=(0,y.Ju)(),[J,U]=(0,y.Sr)(),[Y,Z]=(0,r.useState)([]),[K,G]=(0,r.useState)([]),[Q,ee]=(0,r.useState)([]),te=()=>{let e;const t=P.getValue(),s=(new DOMParser).parseFromString(t,"text/html"),r={},i={};s.querySelectorAll("a[href]").forEach(((e,t)=>{r[`link_${t}`]=e.getAttribute("href"),i[`link_${t}`]=e.innerText})),B.send({operation:"sandbox_set_attr_to_links"}),$(JSON.stringify(r)).then((t=>{var s;if(null!==t&&void 0!==t&&null!==(s=t.data)&&void 0!==s&&s.result){let s=[...t.data.result];null===s||void 0===s||s.sort(((e,t)=>e.linkId-t.linkId)),e={links:s.map((e=>({...e,text:i[e.linkId]}))),summary:{valid:s.filter((e=>e.statusCode&&e.statusCode<300)).length||0,warnings:s.filter((e=>{var t,s;return e.statusCode<400&&e.statusCode>=300||200===e.statusCode&&null!==(t=null===(s=e.page)||void 0===s?void 0:s.secure)&&void 0!==t&&t})).length||0,errors:s.filter((e=>{var t;return e.statusCode<600&&e.statusCode>=400||null===e.statusCode||!!e.page.hasOwnProperty("secure")&&(null===(t=e.page)||void 0===t?void 0:t.secure)})).length||0}}}Z(e),F.success({message:R("Links validation was successfully completed"),placement:"bottomRight"})})).catch((e=>{var t,s;console.log("error",e),F.error({message:(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)||e}}),description:(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message}}),placement:"bottomRight"})}))},se=()=>{const e=P.getValue(),t=(new DOMParser).parseFromString(e,"text/html");let s={};t.querySelectorAll("img").forEach(((e,t)=>s[`image_${t}`]=e.src)),B.send({operation:"sandbox_set_attr_to_images"}),W(JSON.stringify(s)).then((e=>{let t;if(e.data.result){const s=Object.values(e.data.result);s.sort(((e,t)=>e.imageId-t.imageId));let r=s.reduce(((e,t)=>e+Math.round(t.image.bytes/1024)),0);t={images:s,summary:{valid:s.filter((e=>e.statusCode&&e.statusCode<300)).length||0,warnings:s.filter((e=>e.statusCode<400&&e.statusCode>=300||200===e.statusCode&&!e.valid)).length||0,errors:s.filter((e=>e.statusCode<600&&e.statusCode>=400||!e.statusCode)).length||0},summaryTime:{value:(r>1200?r/1e3:r).toFixed(1),name:R(r>1200?"MB":"KB")}}}t&&G(t),F.success({message:R("Images validation was successfully completed"),placement:"bottomRight"})})).catch((e=>{console.log("error",e),F.error({message:(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.code||e}}),description:(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.message}}),placement:"bottomRight"})}))},re=()=>{J("\n"+JSON.stringify(P.getValue())).then((e=>{var t;if(null!==(t=e.data)&&void 0!==t&&t.success){const t=Object.values(e.data.result.report);t&&t.sort(((e,t)=>e.score-t.score)),ee({...e.data.result,report:t})}F.success({message:R("Spam validation was successfully completed"),placement:"bottomRight"})})).catch((e=>{var t,s;F.error({message:(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(t=e.data)||void 0===t?void 0:t.code)||e}}),description:(0,k.jsx)("div",{dangerouslySetInnerHTML:{__html:null===(s=e.data)||void 0===s?void 0:s.message}}),placement:"bottomRight"})}))},[ie,ne]=(0,r.useState)(),ae=e=>{ne(e!==ie?e:"")};let le=null;return(0,k.jsxs)("div",{className:"optimise selected_form-props-wrapper selected_form-props-wrapper_optimize",children:[(0,k.jsxs)(a.A,{gutter:10,align:"middle",children:[(0,k.jsx)(l.A,{span:20,children:(0,k.jsx)("div",{className:"form-group-title",children:R("Links validation")})}),(0,k.jsx)(l.A,{span:4,align:"right",children:(0,k.jsx)(o.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{var e;ae(O),null!==Y&&void 0!==Y&&null!==(e=Y.links)&&void 0!==e&&e.length||te()},loading:V.isLoading,children:!V.isLoading&&(ie===O?(0,k.jsx)(h.A,{}):(0,k.jsx)(_.A,{}))})})]}),ie===O&&(null===Y||void 0===Y||null===(e=Y.links)||void 0===e?void 0:e.length)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.A,{style:{marginBottom:14},children:(0,k.jsxs)("div",{className:"optimise__title-wrapper",children:[(0,k.jsx)(L,{summary:Y.summary,__:R}),(0,k.jsx)(o.Ay,{loading:V.isLoading,onClick:te,icon:(0,k.jsx)(g.A,{}),children:R("Refresh")})]})}),(0,k.jsx)(a.A,{style:{marginBottom:24},children:(0,k.jsx)(l.A,{span:24,children:(0,k.jsx)(d.A,{itemLayout:"horizontal",dataSource:Y.links,renderItem:(e,t)=>{var s,r,i,n;return(0,k.jsx)(d.A.Item,{style:{border:"none"},children:(0,k.jsx)(d.A.Item.Meta,{avatar:e.statusCode&&e.statusCode<300&&(null===(s=null===(r=e.page)||void 0===r?void 0:r.secure)||void 0===s||s)?(0,k.jsx)(v.A,{style:{color:"#49aa19"}}):e.statusCode&&e.statusCode<400||200===e.statusCode&&(null===(i=null===(n=e.page)||void 0===n?void 0:n.secure)||void 0===i||i)?(0,k.jsx)(v.A,{style:{color:"#d89614"}}):(0,k.jsx)(j.A,{style:{color:"#dc4446"}}),title:(0,k.jsx)(T,{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 B.send({operation:I.Ru.SANDBOX_SET_POSITION_TO_LINK,settings:{elementId:t,isError:s}});var t,s},children:""===e.url?R("empty link"):e.url}),description:(0,k.jsxs)(k.Fragment,{children:[!!e.text.length&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{type:"secondary",children:e.text}),(0,k.jsx)("span",{className:"image-size-splitter",children:"\xa0\u2022\xa0"})]}),e.page.title&&e.page.title,e.page.secure&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("span",{className:"image-size-splitter",children:"\xa0\u2022\xa0"}),(0,k.jsx)("span",{style:{color:"#49aa19"},children:R("secure")})]}),!e.resolvedUrl&&!e.statusCode&&(0,k.jsx)(C,{type:"secondary",children:R("Failed to load")})]})})},t+"_"+e.id)}})})})]}),(0,k.jsx)(c.A,{className:"selected-td-form__divider",style:{marginTop:0,marginBottom:0}}),(0,k.jsxs)(a.A,{gutter:10,align:"middle",children:[(0,k.jsx)(l.A,{span:20,children:(0,k.jsx)("div",{className:"form-group-title",children:R("Images validation")})}),(0,k.jsx)(l.A,{span:4,align:"right",children:(0,k.jsx)(o.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>{var e;ae(z),null!==K&&void 0!==K&&null!==(e=K.images)&&void 0!==e&&e.length||se()},loading:X.isLoading,children:!X.isLoading&&(ie===z?(0,k.jsx)(h.A,{}):(0,k.jsx)(_.A,{}))})})]}),ie===z&&(null===K||void 0===K||null===(t=K.images)||void 0===t?void 0:t.length)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.A,{style:{marginBottom:16},children:(0,k.jsx)(m.A,{style:{padding:14,paddingBottom:10,width:"100%"},message:(0,k.jsxs)("div",{className:"optimise__summary",children:[(0,k.jsxs)("div",{children:[(0,k.jsxs)(E,{level:4,style:{marginBottom:"0"},children:[K.images.length," "]}),(0,k.jsx)("span",{style:{fontSize:"12px"},children:R("images")})]}),(0,k.jsxs)("div",{children:[(0,k.jsxs)(E,{level:4,style:{marginBottom:"0"},children:[null===(s=K.summaryTime)||void 0===s?void 0:s.value,null===(n=K.summaryTime)||void 0===n?void 0:n.name]}),(0,k.jsx)("span",{style:{fontSize:"12px"},children:R("total size")})]}),(0,k.jsxs)("div",{children:[(0,k.jsx)(E,{level:4,style:{marginBottom:"0"},children:(Math.max(...K.images.map((e=>e.image.responseTime)))/1e3).toFixed(2)+R("s")}),(0,k.jsx)("span",{style:{fontSize:"12px"},children:R("time to load")})]})]}),type:"warning"})}),(0,k.jsx)(a.A,{style:{marginBottom:12},children:(0,k.jsxs)("div",{className:"optimise__title-wrapper",children:[(0,k.jsx)(L,{summary:K.summary,__:R}),(0,k.jsx)(o.Ay,{loading:X.isLoading,onClick:()=>se(),icon:(0,k.jsx)(g.A,{}),children:R("Refresh")})]})}),(0,k.jsx)(a.A,{style:{marginBottom:12},children:(0,k.jsx)(l.A,{span:24,children:(0,k.jsx)(d.A,{className:"optimise__result-list",itemLayout:"horizontal",dataSource:K.images,renderItem:(e,t)=>(0,k.jsx)(d.A.Item,{className:"optimise__image-item image-item",style:{border:"none"},children:(0,k.jsx)(d.A.Item.Meta,{className:"image-item__meta",avatar:(0,k.jsx)(u.A,{className:f()("image-item__image",{"image-item__image_fail":!e.resolvedUrl||!e.valid}),width:92,height:"auto",style:{height:"auto"},src:e.url?e.url:"error",preview:!1,onMouseEnter:()=>{var t;return((e,t)=>{clearTimeout(le);let s=document.querySelector(".img-preview")?document.querySelector(".img-preview"):null,r=document.querySelector(".img-preview-content")?document.querySelector(".img-preview-content"):null;document.querySelector(".img-preview")||(s=document.createElement("div"),s.classList.add("img-preview"),r=document.createElement("div"),r.classList.add("img-preview-content"),s.append(r),document.querySelector(".email-pane__col_settings-inner").append(s)),r.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,k.jsx)(p.A,{placement:"top",title:e.message,children:(0,k.jsx)(T,{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 B.send({operation:I.Ru.SANDBOX_SET_POSITION_TO_IMG,settings:{elementId:t,isError:s}});var t,s},children:""===(null===e||void 0===e?void 0:e.url)?R("empty src"):e.url})}):e.message,description:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"image-size",children:[e.image.dimensions&&(0,k.jsxs)(k.Fragment,{children:[e.image.dimensions.width+" \xd7 "+e.image.dimensions.height,(0,k.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,k.jsxs)("span",{children:[Math.round(e.image.bytes/1024),R("kB")]}),(0,k.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,k.jsxs)("span",{children:[e.image.responseTime,R("ms")]}),(0,k.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,k.jsx)("span",{className:"image-size-format",children:e.image.contentType})]}),e.image.secure&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("span",{className:"image-size-splitter",children:" \xa0\u2022\xa0 "}),(0,k.jsx)("span",{style:{color:"#49aa19"},children:R("secure")})]}),e.resolvedUrl&&!e.valid&&(0,k.jsx)(C,{type:"danger",children:R("not valid")})]})," ",!e.resolvedUrl&&!e.statusCode&&(0,k.jsx)(C,{type:"danger",children:R("Failed to load")})]})})},t)})})})]}),(0,k.jsx)(c.A,{className:"selected-td-form__divider",style:{marginTop:0,marginBottom:0}}),(0,k.jsxs)(a.A,{gutter:10,align:"middle",children:[(0,k.jsx)(l.A,{span:20,children:(0,k.jsx)("div",{className:"form-group-title",children:R("SpamAssassin")})}),(0,k.jsx)(l.A,{span:4,align:"right",children:(0,k.jsx)(o.Ay,{className:"selected-td-form__button ghost-button",type:"text",loading:U.isLoading,onClick:()=>{var e;ae(D),null!==(e=Q.report)&&void 0!==e&&e.length||re()},children:!U.isLoading&&(ie===D?(0,k.jsx)(h.A,{}):(0,k.jsx)(_.A,{}))})})]}),ie===D&&(null===(x=Q.report)||void 0===x?void 0:x.length)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(a.A,{style:{marginBottom:8},children:[(0,k.jsxs)("div",{className:"optimise__title-wrapper optimise__title-wrapper_spam",children:[(0,k.jsxs)(E,{level:1,style:{margin:0},type:Q.spamScore<2||Q.spamScore<=Q.baseSpamScore-1?"success":Q.spamScore<Q.baseSpamScore-1?"warning":"danger",children:[(0,k.jsx)("span",{style:{marginRight:"12px"},children:Q.spamScore}),(0,k.jsx)(C,{style:{marginRight:"12px",fontSize:"20px"},children:"Score"})]}),(0,k.jsx)(o.Ay,{icon:(0,k.jsx)(g.A,{}),loading:U.isLoading,onClick:re,children:R("Refresh")})]}),Q.spamScore>Q.baseSpamScore-1&&(0,k.jsx)(C,{children:R("Lower scores are better. Aim for a score less than ")+(Q.baseSpamScore-1)+"."})]}),(0,k.jsx)(a.A,{style:{marginBottom:8},children:(0,k.jsx)(l.A,{span:24,children:(0,k.jsx)(d.A,{itemLayout:"horizontal",dataSource:Q.report,renderItem:e=>(0,k.jsx)(d.A.Item,{style:{border:"none"},children:(0,k.jsx)(d.A.Item.Meta,{title:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{style:{fontSize:"20px"},children:e.score}),(0,k.jsx)("span",{style:{marginLeft:"12px"},children:e.description})]})})})})})})]}),(0,k.jsx)(c.A,{className:"selected-td-form__divider",style:{marginTop:0,marginBottom:0}}),(0,k.jsxs)(a.A,{gutter:10,align:"middle",children:[(0,k.jsx)(l.A,{span:20,children:(0,k.jsx)("div",{className:"form-group-title",children:R("Source code validation")})}),(0,k.jsx)(l.A,{span:4,align:"right",children:(0,k.jsx)(o.Ay,{className:"selected-td-form__button ghost-button",type:"text",onClick:()=>ae(M),children:ie===M?(0,k.jsx)(h.A,{}):(0,k.jsx)(_.A,{})})})]}),ie===M&&(0,k.jsx)(k.Fragment,{children:null!==H&&void 0!==H&&H.length?(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(a.A,{style:{marginBottom:8},children:(0,k.jsx)(l.A,{span:24,children:(0,k.jsx)(d.A,{itemLayout:"horizontal",dataSource:H,renderItem:e=>(0,k.jsx)(d.A.Item,{style:{border:"none"},children:(0,k.jsx)(d.A.Item.Meta,{avatar:e.severity<6?(0,k.jsx)(j.A,{style:{color:"#d89614"}}):(0,k.jsx)(j.A,{style:{color:"#dc4446"}}),title:(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(C,{onClick:()=>(e=>{const t={startColumn:e.startColumn,startLineNumber:e.startLineNumber,endColumn:e.endColumn,endLineNumber:e.endLineNumber};q((0,A.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,k.jsx)(C,{children:e.message})})})})})})}):(0,k.jsx)(a.A,{style:{marginBottom:24},children:(0,k.jsx)(m.A,{message:R("No problems found."),type:"info"})})})]})}},72981:(e,t,s)=>{s.d(t,{A:()=>l});s(92810);var r=s(81e3),i=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)(r.A,{size:"large",style:l,wrap:s,children:(0,a.jsx)(i.A,{indicator:o})})}},53765:(e,t,s)=>{s.d(t,{A:()=>te});var r=s(92810),i=s(64617),n=s(29218),a=s(76662),l=s(66726),o=s(29234),d=s(81e3),c=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),I=s(32293),k=s(35285),C=s(64936),T=s(36404),E=s(85163),L=s(70082);const O=({title:e})=>{const{__:t}=(0,j.s9)();let s=(0,v.wA)();const{projectId:n}=(0,i.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)(I.A,{style:{fontSize:"16px"}}),className:"em-analytics__sign-out"}];const d=(null===l||void 0===l?void 0:l.title)||e;return(0,r.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===d||void 0===d?void 0:d[0],null!==d&&void 0!==d&&d.split(" ")[1]?d.split(" ")[1][0]:""]}),d]})}),(0,L.jsx)(k.A,{isModalVisible:a===E.lx.EDIT_PROJECT_MODAL})]})};var z=s(97562),D=s(57918),M=s(47358),R=s(7760),F=s(8493),B=s(64037),P=s(18777),H=s(17581),q=s(32269),$=s(45695),V=s(69106);const W=[50,50],X=[420,420],J=[45,10,45],U=[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,i.g)(),I=(0,$.QC)(),[k,C]=(0,r.useState)(t),[T,ee]=(0,r.useState)(k===Q?U:W),[te,se]=(0,r.useState)(k===Q?Y:X),[re,ie]=(0,r.useState)([]),[ne,ae]=(0,r.useState)(!1),[le,oe]=(0,r.useState)(!1),de=(0,r.useRef)(null),ce=(0,r.useRef)(),me=(0,r.useRef)(),ue=(0,r.useRef)(),pe=N||S,{data:he=[],refetch:_e}=(0,P.Cf)(pe);(0,r.useEffect)((()=>{pe&&_e(pe)}),[k,pe,_e]),(0,V.f)(e);(0,B.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")&&(ce.current&&(ce.current.style.transition="none"),me.current&&(me.current.style.transition="none"),ue.current&&(ue.current.style.transition="none"))},ve=()=>{const e=k===Q?Z:"none";ce.current.style.transition!==Z&&(ce.current&&(ce.current.style.transition=e),me.current&&(me.current.style.transition=e),ue.current&&(ue.current.style.transition=e))};(0,r.useEffect)((()=>(document.addEventListener("mousedown",ge),document.addEventListener("mouseup",ve),()=>{document.removeEventListener("mousedown",ge),document.removeEventListener("mouseup",ve)}))),(0,r.useEffect)((()=>{const e=I.onInit((()=>{I.send({operation:E.Ru.SANDBOX_LOCK_EDIT,data:t===Q}),I.send({operation:E.Ru.SANDBOX_LOCK_DISCUSS,value:ne})}));return()=>e.dispose()}),[t,k,ne,I]),(0,r.useEffect)((()=>{ee(k===Q?U:W),se(k===Q?Y:X)}),[k]);const je=({key:e,domEvent:t})=>{switch(t.preventDefault(),ce.current.style.transition=Z,me.current.style.transition=Z,ue.current.style.transition=Z,de.current.resize(),e){case"Desktop":default:ee(k===Q?U:W);break;case"Mobile":ee(J)}setTimeout((()=>{I.send({operation:E.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:ce.current.getBoundingClientRect().width}}),de.current.resize()}),550)};(0,r.useEffect)((()=>{const e=new q.jG;if(re.length<2){var t,s;const r=null===(t=ce.current)||void 0===t?void 0:t.getBoundingClientRect(),i=null===(s=document.getElementById("pane-content-iframe"))||void 0===s?void 0:s.getBoundingClientRect(),n=setInterval(l,50);ie((e=>[...e,n]));const a=t=>{e.addDisposable(I.onInit((()=>{I.send({operation:E.Ru.SANDBOX_WINDOW_CHARACTERISTIC,settings:t})})))};function l(){a({iframeOffsetTop:r.top-i.top,scrollTop:i.top?-i.top:0,innerHeight:window.innerHeight,previewHeight:document.querySelector(".preview-mode__pane-content").getBoundingClientRect().height,mode:G})}}return e.addDispose((()=>clearInterval(re[re.length-1]))),()=>e.dispose()}),[re,I]),(0,r.useEffect)((()=>{if(k===G){const e=window.localStorage.getItem(E.V0.em_code_mode_pane_sizes);e&&ee(JSON.parse(e))}}),[k]);const xe=e=>{if(k===G&&window.localStorage.setItem(E.V0.em_code_mode_pane_sizes,JSON.stringify(e)),k===Q){const t=(e[2]+e[0])/2;ee([t,e[1],t])}else ee(e);I.send({operation:E.Ru.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:ce.current.getBoundingClientRect().width}}),de.current.resize()},fe=()=>{de.current.resize()},ye=(0,r.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=ce.current)||void 0===e?void 0:e.getBoundingClientRect(),r=null===(t=document.getElementById("pane-content-iframe"))||void 0===t?void 0:t.getBoundingClientRect();Ae&&window.clearTimeout(Ae),Ae=window.setTimeout((function(){I.send({operation:E.Ru.SANDBOX_WINDOW_CHARACTERISTIC,settings:{iframeOffsetTop:s.top-r.top,scrollTop:document.getElementById("pane-content-iframe").scrollTop,innerHeight:window.innerHeight,previewHeight:document.querySelector(".preview-mode__pane-content").getBoundingClientRect().height,CODE:G}})}),100)};(0,r.useEffect)((()=>(document.addEventListener("scroll",be,!0),()=>{document.removeEventListener("scroll",be,!0)})));const we=()=>{ae((e=>!e)),I.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)(z.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":k===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)(O,{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,F.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)(d.A,{size:10,children:(s||w)&&(0,L.jsx)(l.A,{placement:"bottom",title:a("Close"),children:(0,L.jsx)(c.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":k===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})}),k===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:ce,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:de,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)(D.A,{setSizes:je,sizes:[T[1]],codeModeShow:Ne,codeModeIsVisible:le,email:e})})]}),k===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:ce,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:de,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)(D.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 r=s(92810),i=s(71157),n=s(64617),a=s(94822),l=s(39990),o=s(32269),d=s(90070),c=s(47381),m=s(85163),u=s(70082);const p="useblocks.io",h=({children:e})=>{const t=(0,n.zy)(),s=(0,i.hN)(),h=(0,d.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:I,refetch:k}=(0,l.CR)("",{skip:m.EW.isPlugin||!h.get(m.A9.em_token)}),C=(0,r.useMemo)((()=>({email:_.get("email"),hash:_.get("hash"),event:"confirmation"===_.get("event")})),[_]);if((0,r.useEffect)((()=>{j?(0,o.p6)({error:f},s):x&&((0,c.d)({event:"email_confirmation",user_email:null===y||void 0===y?void 0:y.email}),(0,o.wB)(y.message,s),I&&k())}),[y,f,j,x,s,I,k]),(0,r.useEffect)((()=>{!(C.email&&C.hash&&C.event)||!1!==(null===I||void 0===I?void 0:I.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,I,h,g,y]),(0,r.useEffect)((()=>{A&&S&&((0,o.p6)({error:S},s),(0,o.Id)(h))}),[I,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:r,name:i,locale:a,carrotquest_hash:l,ducalis_hash:o,email_subscription_consent:d,last_used_project:c}=I;return h.set(m.A9.em_id,s,{domain:p}),h.set(m.A9.em_email,r,{domain:p}),h.set(m.A9.em_name,i,{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,d,{domain:p}),c&&"/"===t.pathname?(0,u.jsx)(n.C5,{to:`/projects/${c}/emails`,replace:!0}):e}return t.pathname.includes("auth")?e:void 0}},19263:(e,t,s)=>{s.d(t,{A:()=>I});var r=s(92810),i=s(41919),n=s(37005),a=s(66726),l=s(32085),o=s(32293),d=s(64617),c=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}=i.A,I=()=>{var e,t,s;const{__:I}=(0,u.s9)(),k=(0,m.wA)(),C=(0,y.p6)(),T=C.get(x.A9.em_elements_view),{data:E}=(0,d.KC)(),[L]=(0,c.ok)(),O=(0,m.d4)(j.b9),z=(0,m.d4)(w.o8),D=L.get("folder"),M=+L.get("tag"),R=(0,A.HT)(E,x.YY),[F,B]=(0,r.useState)(D||(M?null:x.y2)),[P,H]=(0,r.useState)(M||null),[q,$]=(0,r.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,r.useEffect)((()=>{k((0,w.sB)(V||[]))}),[k,V]);const X=(e=!1,t=null)=>{H(t),B(e),k((0,j.om)({...O,tags:t?[t]:[],folderTag:e}))};(0,r.useEffect)((()=>{var e;M&&null!==R&&void 0!==R&&R.find((e=>e.id===M))&&(null===O||void 0===O||null===(e=O.tags)||void 0===e?void 0:e[0])!==P&&k((0,j.om)({...O,tags:[M],folderTag:F}))}),[R,M,P,k,O,F]);(0,f.A)(I("Blocks")+" "+E.title),(0,r.useEffect)((()=>{document.body.classList.remove("editor")}),[]);const J=(0,N.jsx)(h.A,{isBlocks:!0}),U=(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(n.A,{defaultValue:q,onChange:e=>{$(e),k((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:I("Cards view"),placement:"top",children:(0,N.jsx)(l.A,{})})},{value:x.rl,label:(0,N.jsx)(a.A,{title:I("Table view"),placement:"top",children:(0,N.jsx)(o.A,{})})}]},"Switch radio")});return(0,N.jsxs)(i.A,{className:"project-blocks-page",children:[(0,N.jsx)(_.A,{leftBlock:J,rightBlock:U}),(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:F,setCurrentFolderId:B,activeTagId:P,setActiveTagHandler:X,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:F,foldersList:z,refetchProjectFolders:z.length?W:()=>{},projectTags:R,activeTagId:P,setActiveTagHandler:X})]})})]})}},6099:(e,t,s)=>{s.d(t,{A:()=>g});var r=s(92810),i=s(64617),n=s(45934),a=s(41919),l=s(25072),o=s(43005),d=s(23287),c=s(84568),m=s(36404),u=s(72981),p=s(32269),h=s(70082);const{Content:_}=a.A,g=()=>{var e;const{__:t}=(0,d.s9)(),{projectId:s}=(0,i.g)();let g=(0,i.Zp)(),v=(0,i.zy)();const j=(0,n.wA)(),x=(0,c.fo)(+s,{skip:!s}),{isLoading:f,isError:y,error:A,isSuccess:b,data:w}=x;return(0,r.useEffect)((()=>{b&&(null===w||void 0===w?void 0:w.id)!==s&&j((0,m.od)(w))}),[b,w,j,s]),(0,r.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)(i.sv,{context:{...x}})]})}},44338:(e,t,s)=>{s.d(t,{A:()=>V});var r=s(92810),i=s(41919),n=s(37005),a=s(66726),l=s(43005),o=s(71157),d=s(32085),c=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),I=s(64936),k=s(65983),C=s(39990),T=s(46312),E=s(17581),L=s(63531),O=s(93563),z=s(85163),D=s(22197),M=s(14598),R=s(58689),F=s(47381),B=s(32269),P=s(90070),H=s(7205),q=s(70082);const{Content:$}=i.A,V=()=>{var e;const{__:t}=(0,g.s9)(),s=(0,_.wA)(),V=(0,p.Zp)(),W=(0,P.p6)(),X=(0,o.hN)();let J=(0,p.zy)();const U=(0,_.d4)(k.CT),Y=(0,_.d4)(S.C1),Z=(0,_.d4)(w.cL),K=(0,_.d4)(I.o8),G=(0,_.d4)(I.uM),[Q]=(0,C.on)(),[ee]=(0,E.Kh)(),[te]=(0,L.dS)(),[se]=(0,T.mI)(),[re]=(0,h.ok)(),{data:ie}=(0,p.KC)(),[ne,ae]=(0,r.useState)(!1),le=re.get("folder"),oe=(0,B.HT)(ie,z.zh),{data:de,refetch:ce}=(0,O.Jz)({parent:ie.folder[0]},{skip:!ie.folder[0]}),[me,ue]=(0,r.useState)(le||(G?null:z.y2));(0,r.useEffect)((()=>{s((0,I.sB)(de||[]))}),[s,de]);const[pe,he]=(0,r.useState)(W.get(z.A9.em_elements_view)||z.Y$);(0,D.A)(t("Emails")+" "+ie.title),(0,r.useEffect)((()=>{(null===Y||void 0===Y?void 0:Y.last_used_project)!==ie.id&&s(C.Q2.endpoints.editMe.initiate({last_used_project:ie.id}))}),[s,ie.id,null===Y||void 0===Y?void 0:Y.last_used_project]);const[_e,ge]=(0,r.useState)(null);const ve=async e=>{if(1===e.length){const t=e[0];try{ae(!0);const e=await(0,M.q2)(t,(async(e,t)=>{let s;if("string"===typeof e)try{var r;e=(0,H.A)(e),s=null===(r=await se({url:e}))||void 0===r?void 0:r.data}catch(d){return e}else s=e;if(t.split(".").length<2){const e=v.extension(s.type);e&&(t=`${t}.${e}`)}const i=new File([s],t.toLowerCase()),n=await te({user_id:Y.id,folder:ie.id,file:i});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),r=(0,B.ez)(e)||s||"";return ee({title:r,project:ie.id,subject:r,description:"",html:e,parent_email:z.iU,folder:le!==z.y2?[+le]:[]}).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&&ce(),V(`/projects/${ie.id}/emails/${e.data.id}`),(0,F.d)({event:"upload_file",action:"import_email"})))})).finally((()=>ae(!1)))}catch(s){ae(!1);const e=s instanceof Error?s.message:s;X.error({message:(0,q.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}),placement:"bottomRight"})}}else{const r=[];ae(!0);for(let n=0;n<e.length;n++){let i=e[n];const a=await(0,M.q2)(i,(async(e,t)=>{let r;if("string"===typeof e)try{var i;e=(0,H.A)(e),r=null===(i=await se({url:e}))||void 0===i?void 0:i.data}catch(s){return e}else r=e;if(t.split(".").length<2){const e=v.extension(r.type);e&&(t=`${t}.${e}`)}const n=new File([r],t.toLowerCase()),a=await te({user_id:Y.id,folder:ie.id,file:n});var l,o,d;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===(d=o[0])||void 0===d?void 0:d.file_url;return"string"===typeof e?e:""})),[l]=(0,R.Ay)(i.name),o=(0,B.ez)(a)||l||"",d=ee({title:o,project:ie.id,subject:o,description:"",html:a,parent_email:z.iU,folder:le!==z.y2?[+le]:[]}).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(d)}let i=await Promise.all(r);ae(!1),i=i.filter((e=>!!e)),i.length&&X.success({message:i.length+t(" emails was successfully imported."),placement:"bottomRight"}),_e&&(console.log("refetchFromChildComponent",_e),_e.refetch())}},[je,xe]=(0,r.useState)(!1);(0,r.useEffect)((()=>{!je&&Y.counters.emails_counter<3&&(Q(),xe(!0))}),[Q,Y.counters.emails_counter,je]),(0,r.useEffect)((()=>{document.body.classList.remove("editor"),W.remove(z.A9.em_folder)}),[s,W]);const fe=(e=!1,t=null)=>{s((0,I.Cj)(t)),ue(e),s((0,k.om)({...U,tags:t?[t]:[],folderTag:e}))},ye=(0,q.jsx)(x.A,{isBlocks:!1}),Ae=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(n.A,{defaultValue:pe,onChange:e=>{W.set(z.A9.em_elements_view,e),he(e),s((0,N.NK)(e))},value:pe,options:[{value:z.Y$,label:(0,q.jsx)(a.A,{title:t("Cards view"),placement:"top",children:(0,q.jsx)(d.A,{})})},{value:z.rl,label:(0,q.jsx)(a.A,{title:t("Table view"),placement:"top",children:(0,q.jsx)(c.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,F.d)({event:"click",action:"import_email"}),(0,M.QM)("application/zip, message/rfc822, text/html",ve)},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:()=>{s((0,k.om)({tags:[]})),W.set(z.A9.em_folder,"deleted"===le?z.y2:le),(0,B.XZ)(V,`${J.pathname}/create/`),(0,F.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)(i.A,{className:"project-page",children:[(0,q.jsx)(b.A,{leftBlock:ye,rightBlock:Ae}),(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:me,setCurrentFolderId:ue,activeTagId:G,setActiveTagHandler:fe,projectTags:oe,folderTaxonomy:"folder"})}),(0,q.jsx)(j.A,{projectId:ie.id,projectEmailsCounter:+(null===ie||void 0===ie||null===(e=ie.counters)||void 0===e?void 0:e.emails_counter),emailsView:pe,currentFolderId:me,foldersList:K,refetchProjectFolders:K.length?ce:()=>{},projectTags:oe,activeTagId:G,setActiveTagHandler:fe,registerFunction:ge})]})}),ne&&(0,q.jsx)(y.A,{wrap:!0,style:{position:"fixed",width:"100%",height:"100%",top:0,left:0}}),(0,q.jsx)(f.A,{isModalVisible:Z===z.lx.ADD_NEW_EMAIL_MODAL})]})}},24420:(e,t,s)=>{s.d(t,{A:()=>M});var r=s(92810),i=s(41919),n=s(43005),a=s(45934),l=s(23287),o=s(68919),d=s(33206),c=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),I=s(85163),k=s(70082);const C=(e,t)=>`${e.pathname}/${t.id}/emails?page=1`,T=(e,t)=>`${e.pathname}/${t.id}/members`,E=()=>{const{__:e,_x:t}=(0,l.s9)();let s=(0,a.d4)(N.vW),i=(0,y.zy)(),n=(0,a.wA)(),o=(0,a.d4)(N.cL);const{modal:E}=d.A.useApp(),L=(0,h.hN)(),{confirm:O}=E,z=(0,a.Pj)(),D=s=>{O({maskClosable:!0,centered:!0,title:t("Are you sure to delete \u201c","project")+s.title+e("\u201d project?"),icon:(0,k.jsx)(_.A,{}),okText:e("Yes"),cancelText:e("No"),onOk:()=>(t=>z.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,r.useState)({page:1}),{isLoading:F,isSuccess:B,isError:P,isFetching:H,data:q=[]}=(0,w.su)(M),[$,V]=(0,r.useState)(null),W=[{width:"35%",title:e("Project"),dataIndex:"title",render:(e,t,s)=>(0,k.jsx)(A.N_,{to:C(i,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,r)=>(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 r=[];return r.push({label:(0,k.jsx)(A.N_,{to:C(i,s),children:e("Open")}),key:"Enter",icon:(0,k.jsx)(g.A,{style:{fontSize:"16px"}}),className:"em-analytics__open"},{label:e("Settings"),key:"Edit",icon:(0,k.jsx)(v.A,{style:{fontSize:"16px"}}),className:"em-analytics__edit",onClick:()=>(V(s),void n((0,N.qf)(I.lx.EDIT_PROJECT_MODAL)))},{label:(0,k.jsx)(A.N_,{to:T(i,s),children:e("Members")}),key:"Members",icon:(0,k.jsx)(j.A,{style:{fontSize:"16px"}}),className:"em-analytics__members"},{label:e("Remove"),key:"Remove",icon:(0,k.jsx)(_.A,{style:{fontSize:"16px"}}),className:"em-analytics__remove",style:{color:"#ff4d4f"},onClick:()=>D(s)}),(0,k.jsx)(c.A,{arrow:"true",placement:"bottom",menu:{items:r},trigger:["hover"],children:(0,k.jsx)("span",{className:"projects-table__actions",children:(0,k.jsx)(x.A,{})})})}}];return(0,k.jsxs)("div",{className:"container",children:[F&&(0,k.jsx)(m.A,{active:!0}),P&&(0,k.jsx)(u.A,{message:e("Error"),description:e("Error when receiving data. Try again (reload page) or contact support."),type:"error",showIcon:!0}),B&&0===q.length&&(0,k.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}),B&&q.length>0&&(0,k.jsx)(p.A,{rowKey:e=>e.id,dataSource:q,bordered:!0,columns:W,loading:H,onChange:(e,t,{order:s,field:r},{action:i})=>{"sort"===i&&R(s?{page:1,order:(0,S.gq)(s),orderby:r}:{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,k.jsx)(b.A,{isModalVisible:o===I.lx.EDIT_PROJECT_MODAL,selectedProject:$})]})};var L=s(20757),O=s(47381),z=s(22197);const{Content:D}=i.A,M=()=>{const{__:e}=(0,l.s9)(),t=(0,a.d4)(N.cL),s=(0,a.wA)();(0,z.A)(e("Projects")),(0,r.useEffect)((()=>{document.body.classList.remove("editor")}),[]);const d=(0,k.jsx)("div",{className:"ant-page-header-heading-title",children:e("Projects")}),c=(0,k.jsx)(n.Ay,{className:"em-analytics__add-project",type:"primary",onClick:()=>{(0,O.d)({event:"open_modal",action:"create_new_project"}),s((0,N.qf)(I.lx.ADD_NEW_PROJECT_MODAL))},children:e("Add a new project")},"Add a new project");return(0,k.jsxs)(i.A,{className:"projects-page",children:[(0,k.jsx)(L.A,{leftBlock:d,rightBlock:c}),(0,k.jsxs)(D,{className:"projects-page__container",children:[(0,k.jsx)(E,{}),(0,k.jsx)(o.A,{isModalVisible:t===I.lx.ADD_NEW_PROJECT_MODAL})]})]})}},36852:(e,t,s)=>{s.d(t,{A:()=>N});var r=s(92810),i=s(59297),n=s(76662),a=s(12280),l=s(55039),o=s(43005),d=s(71157),c=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 i=(0,d.hN)(),[n,_]=(0,r.useState)(!1),w={name:"email",rules:[{required:!0,message:t("Please type your email address."),type:"email"}],placeholder:t("email"),prefix:(0,y.jsx)(c.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}})},[I,k]=(0,j.Lv)(),[C,T]=(0,j.kg)(),[E,L]=(0,r.useState)("");(0,r.useEffect)((()=>{k.isError&&i.error({message:(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:k.error.data.code}}),description:(0,y.jsx)("div",{dangerouslySetInnerHTML:{__html:k.error.data.message}}),placement:"bottomRight"})}),[k,i]),(0,r.useEffect)((()=>{T.isError&&i.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&&(i.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,i]);return(0,y.jsxs)("div",{className:g()("recover-password-form",{[e]:e}),children:[!k.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}),I({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:k.isLoading,placeholder:w.name,prefix:w.prefix})}),(0,y.jsx)(a.A.Item,{children:(0,y.jsx)(o.Ay,{size:"large",loading:k.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")})})]})]}),k.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)(i.A,{className:"recover-password-page",children:(0,y.jsx)(w,{className:"recover-password-page__form"})})},70431:(e,t,s)=>{s.d(t,{A:()=>_});var r=s(92810),i=s(12280),n=s(14852),a=s(43005),l=s(55039),o=s(71157),d=s(45934),c=s(23287),m=s(93563),u=s(64936),p=s(85163),h=s(70082);const _=({folder:e,refetch:t})=>{const{__:s,_x:_}=(0,c.s9)(),g=(0,d.wA)(),[v]=i.A.useForm(),j=(0,r.useRef)(null),x=(0,d.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,r.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:r})=>{r?(f.error({message:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:r.data.code}}),description:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:r.data.message}}),placement:"bottomRight"}),v.setFieldValue("name",A)):(t().then((({data:e})=>{if(e){var t,s,r;const i=null===(t=e[0])||void 0===t||null===(s=t.children)||void 0===s||null===(r=s.find((e=>e.id===y)))||void 0===r?void 0:r.name;v.setFieldValue("name",i)}})),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)(i.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)(i.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 r=s(92810),i=s(43005),n=s(45934),a=s(33206),l=s(56920),o=s(86286),d=s(62303),c=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,r.useState)(!1);(0,r.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)(d.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)(i.Ay,{type:"primary",size:"small",style:{fontSize:16,lineHeight:1},onClick:()=>{p({userId:s.id,email:s.email}).then((({data:r,error:i})=>{r?(0,c.wB)(e("Confirmation email has been sent to {confirmedEmail}.").replace("{confirmedEmail}",s.email),t):i&&(0,c.p6)(i,t)}))},children:[e("Resend")," ",(0,u.jsx)(d.A,{icon:"SendOutlined",style:{verticalAlign:"middle"}})]})]})})}}}]);
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[4087],{17583:(e,t,s)=>{var a={"./ar_EG.js":[98941,4695],"./az_AZ.js":[23689,302],"./bg_BG.js":[22012,7493],"./bn_BD.js":[45302,4684],"./by_BY.js":[84906,5523],"./ca_ES.js":[70578,1290],"./context.js":[21471],"./cs_CZ.js":[53539,5672],"./da_DK.js":[91148,1279],"./de_DE.js":[408,8470],"./el_GR.js":[38210,3690],"./en_GB.js":[41882,7923],"./en_US.js":[95776],"./es_ES.js":[37507,881],"./et_EE.js":[86448,4286],"./eu_ES.js":[65241,7095],"./fa_IR.js":[51,732],"./fi_FI.js":[98610,3541],"./fr_BE.js":[36977,5506],"./fr_CA.js":[51903,8315],"./fr_FR.js":[84664,6031],"./ga_IE.js":[34194,3222],"./gl_ES.js":[17759,4221],"./he_IL.js":[80501,9828],"./hi_IN.js":[81646,7019],"./hr_HR.js":[62346,4210],"./hu_HU.js":[29644,1401],"./hy_AM.js":[482,7008],"./id_ID.js":[41648,9447],"./index.js":[92860],"./is_IS.js":[73777,2180],"./it_IT.js":[74127,4989],"./ja_JP.js":[74729,5574],"./ka_GE.js":[42563,8383],"./kk_KZ.js":[7543,9360],"./km_KH.js":[18420,2169],"./kmr_IQ.js":[17455,6562],"./kn_IN.js":[98926,9371],"./ko_KR.js":[47446,1788],"./ku_IQ.js":[17655,4597],"./lt_LT.js":[80175,4521],"./lv_LV.js":[64006,1712],"./mk_MK.js":[44311,1723],"./ml_IN.js":[51717,7330],"./mn_MN.js":[9166,7341],"./ms_MY.js":[33245,4532],"./my_MM.js":[4030,735],"./nb_NO.js":[98566,7926],"./ne_NP.js":[88376,6353],"./nl_BE.js":[2753,3544],"./nl_NL.js":[22553,3614],"./pl_PL.js":[42801,8007],"./pt_BR.js":[11881,7996],"./pt_PT.js":[96136,805],"./ro_RO.js":[60241,4602],"./ru_RU.js":[80341,5187],"./si_LK.js":[4927,8984],"./sk_SK.js":[15711,1793],"./sl_SI.js":[91625,1782],"./sr_RS.js":[23241,4591],"./sv_SE.js":[31277,5955],"./ta_IN.js":[98444,6954],"./th_TH.js":[6039,4145],"./tk_TK.js":[41214,9752],"./tr_TR.js":[46366,8775],"./uk_UA.js":[26444,5966],"./ur_PK.js":[15920,3157],"./useLocale.js":[81365],"./vi_VN.js":[83506,7931],"./zh_CN.js":[98056,5122],"./zh_HK.js":[76734,2104],"./zh_TW.js":[26054,4913]};function o(e){if(!s.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return Promise.all(t.slice(1).map(s.e)).then((()=>s(o)))}o.keys=()=>Object.keys(a),o.id=17583,e.exports=o},67421:(e,t,s)=>{"use strict";let a,o,r,i;s.d(t,{LA:()=>l}),function(e){let t,s,a,o;t||(t=e.TasksControllerCreateTask||(e.TasksControllerCreateTask={})),s||(s=e.TasksControllerGetTask||(e.TasksControllerGetTask={})),a||(a=e.TasksControllerGetEmail||(e.TasksControllerGetEmail={})),o||(o=e.TasksControllerGetEmailHtml||(e.TasksControllerGetEmailHtml={}))}(a||(a={})),function(e){let t,s,a,o,r,i;t||(t=e.ManParseControllerLogoGen||(e.ManParseControllerLogoGen={})),s||(s=e.ManParseControllerLogo||(e.ManParseControllerLogo={})),a||(a=e.ManParseControllerColor||(e.ManParseControllerColor={})),o||(o=e.ManParseControllerStyle||(e.ManParseControllerStyle={})),r||(r=e.ManParseControllerColorScheme||(e.ManParseControllerColorScheme={})),i||(i=e.ManParseControllerImage||(e.ManParseControllerImage={}))}(o||(o={})),function(e){let t,s;t||(t=e.MaintenanceControllerReloadBlocks||(e.MaintenanceControllerReloadBlocks={})),s||(s=e.MaintenanceControllerReloadUnsplashTopics||(e.MaintenanceControllerReloadUnsplashTopics={}))}(r||(r={})),function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain"}(i||(i={}));class p{constructor(e={}){this.baseUrl="",this.securityData=null,this.securityWorker=void 0,this.abortControllers=new Map,this.customFetch=(...e)=>fetch(...e),this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"},this.setSecurityData=e=>{this.securityData=e},this.contentFormatters={[i.Json]:e=>null===e||"object"!==typeof e&&"string"!==typeof e?e:JSON.stringify(e),[i.Text]:e=>null!==e&&"string"!==typeof e?JSON.stringify(e):e,[i.FormData]:e=>Object.keys(e||{}).reduce(((t,s)=>{const a=e[s];return t.append(s,a instanceof Blob?a:"object"===typeof a&&null!==a?JSON.stringify(a):`${a}`),t}),new FormData),[i.UrlEncoded]:e=>this.toQueryString(e)},this.createAbortSignal=e=>{if(this.abortControllers.has(e)){const t=this.abortControllers.get(e);return t?t.signal:void 0}const t=new AbortController;return this.abortControllers.set(e,t),t.signal},this.abortRequest=e=>{const t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))},this.request=async({body:e,secure:t,path:s,type:a,query:o,format:r,baseUrl:p,cancelToken:l,extraQuery:d,...n})=>{const h=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},m=this.mergeRequestParams(n,h);d&&(o=o?{...o,...d}:d);const u=o&&this.toQueryString(o),c=this.contentFormatters[a||i.Json],y=r||m.format,_=new Request(`${p||this.baseUrl||""}${s}${u?`?${u}`:""}`,{...m,headers:{...m.headers||{},...a&&a!==i.FormData?{"Content-Type":a}:{}},signal:(l?this.createAbortSignal(l):m.signal)||null,body:"undefined"===typeof e||null===e?null:c(e)});return this.customFetch(_).then((async e=>{const t=e;t.data=null,t.error=null,t.meta={request:_,response:t};const s=y?await e[y]().then((e=>(t.ok?t.data=e:t.error={data:e},t))).catch((e=>(t.error=e,t))):t;return l&&this.abortControllers.delete(l),s}))},Object.assign(this,e)}encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent("number"===typeof t?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map((e=>this.encodeQueryParam(t,e))).join("&")}toQueryString(e){const t=e||{};return Object.keys(t).filter((e=>"undefined"!==typeof t[e])).map((e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e))).join("&")}addQueryParams(e){const t=this.toQueryString(e);return t?`?${t}`:""}mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}}class l extends p{constructor(...e){super(...e),this.tasks={tasksControllerCreateTask:(e,t={})=>this.request({path:"/tasks",method:"POST",body:e,type:i.Json,...t}),tasksControllerGetTask:(e,t={})=>this.request({path:`/tasks/${e}`,method:"GET",...t}),tasksControllerGetEmail:(e,t={})=>this.request({path:`/tasks/${e}/email`,method:"GET",...t}),tasksControllerGetEmailHtml:(e,t={})=>this.request({path:`/tasks/${e}/html`,method:"GET",...t})},this.parsing={manParseControllerLogoGen:(e,t={})=>this.request({path:"/parsing/logo-gen",method:"GET",query:e,...t}),manParseControllerLogo:(e,t={})=>this.request({path:"/parsing/site",method:"GET",query:e,...t}),manParseControllerColor:(e,t={})=>this.request({path:"/parsing/color",method:"GET",query:e,...t}),manParseControllerStyle:(e,t={})=>this.request({path:"/parsing/style",method:"GET",query:e,...t}),manParseControllerColorScheme:(e,t={})=>this.request({path:"/parsing/color-sheme",method:"GET",query:e,...t}),manParseControllerImage:(e,t={})=>this.request({path:"/parsing/image",method:"GET",query:e,...t})},this.maintenance={maintenanceControllerReloadBlocks:(e={})=>this.request({path:"/maintenance/reload-blocks",method:"GET",...e}),maintenanceControllerReloadUnsplashTopics:(e={})=>this.request({path:"/maintenance/reload-unsplash-topics",method:"GET",...e})}}}},14315:(e,t,s)=>{"use strict";let a,o,r,i,p,l,d,n,h,m,u,c,y,_,v,E,q,T,f,b;s.d(t,{RQ:()=>P,cM:()=>b}),function(e){let t,s,a,o;t||(t=e.GetBdpwr||(e.GetBdpwr={})),s||(s=e.ResetPasswordCreate||(e.ResetPasswordCreate={})),a||(a=e.SetPasswordCreate||(e.SetPasswordCreate={})),o||(o=e.ValidateCodeCreate||(e.ValidateCodeCreate={}))}(a||(a={})),function(e){let t,s;t||(t=e.GetCorsProxy||(e.GetCorsProxy={})),s||(s=e.GetList||(e.GetList={}))}(o||(o={})),function(e){let t,s,a,o,r,i,p,l;t||(t=e.GetSaveFile||(e.GetSaveFile={})),s||(s=e.AiCreate||(e.AiCreate={})),a||(a=e.AiStatusList||(e.AiStatusList={})),o||(o=e.TestList||(e.TestList={})),r||(r=e.UploadCreate||(e.UploadCreate={})),i||(i=e.ShortenerCreate||(e.ShortenerCreate={})),p||(p=e.GetLinkCreate||(e.GetLinkCreate={})),l||(l=e.SendEmailCreate||(e.SendEmailCreate={}))}(r||(r={})),function(e){let t,s,a,o,r,i;t||(t=e.GetAiGenerator||(e.GetAiGenerator={})),s||(s=e.AiCreate||(e.AiCreate={})),a||(a=e.AiStatusList||(e.AiStatusList={})),o||(o=e.TestList||(e.TestList={})),r||(r=e.ClearHistoryList||(e.ClearHistoryList={})),i||(i=e.SaveTaskCreate||(e.SaveTaskCreate={}))}(i||(i={})),function(e){let t,s,a,o,r;t||(t=e.GetAuth||(e.GetAuth={})),s||(s=e.UsersRegisterCreate||(e.UsersRegisterCreate={})),a||(a=e.SendTestEmailList||(e.SendTestEmailList={})),o||(o=e.YandexCallbackCreate||(e.YandexCallbackCreate={})),r||(r=e.GoogleCallbackCreate||(e.GoogleCallbackCreate={}))}(p||(p={})),function(e){let t,s;t||(t=e.GetInbox||(e.GetInbox={})),s||(s=e.CheckInboxCreate||(e.CheckInboxCreate={}))}(l||(l={})),function(e){let t,s,a,o;t||(t=e.GetPromo||(e.GetPromo={})),s||(s=e.SetCodeCreate||(e.SetCodeCreate={})),a||(a=e.GetCodeInfoList||(e.GetCodeInfoList={})),o||(o=e.GetReferralDataList||(e.GetReferralDataList={}))}(d||(d={})),function(e){let t,s,a,o;t||(t=e.GetOptimization||(e.GetOptimization={})),s||(s=e.ValidateImagesCreate||(e.ValidateImagesCreate={})),a||(a=e.ValidateLinksCreate||(e.ValidateLinksCreate={})),o||(o=e.ValidateSpamassasinCreate||(e.ValidateSpamassasinCreate={}))}(n||(n={})),function(e){let t,s,a,o,r,i,p,l,d,n,h,m,u,c,y,_,v,E,q,T,f,b,g,P,w,j,U,C,D,k,$,G,S,L,A,O,F,R,M,B,N,I,W,H,x,Q,z,J,V,K,Y,Z,X,ee,te,se,ae,oe,re,ie,pe,le,de,ne,he,me,ue,ce,ye,_e,ve,Ee,qe,Te,fe,be,ge,Pe,we,je,Ue,Ce,De,ke,$e,Ge,Se,Le,Ae,Oe,Fe,Re,Me,Be,Ne,Ie,We,He,xe,Qe,ze,Je,Ve,Ke,Ye,Ze,Xe,et,tt,st,at,ot,rt,it,pt,lt,dt,nt,ht,mt,ut,ct,yt,_t,vt,Et,qt,Tt,ft,bt,gt,Pt,wt,jt,Ut,Ct,Dt,kt,$t,Gt,St,Lt,At,Ot,Ft,Rt,Mt,Bt,Nt,It,Wt,Ht,xt,Qt,zt,Jt,Vt,Kt,Yt,Zt,Xt,es,ts,ss,as,os,rs,is,ps,ls,ds,ns,hs,ms,us,cs,ys,_s,vs,Es,qs,Ts,fs,bs,gs,Ps,ws,js,Us,Cs,Ds,ks,$s,Gs,Ss,Ls,As,Os,Fs,Rs,Ms,Bs,Ns,Is,Ws,Hs,xs,Qs,zs,Js,Vs,Ks,Ys,Zs,Xs,ea,ta,sa,aa,oa,ra,ia,pa,la,da,na,ha,ma,ua,ca,ya,_a,va,Ea,qa,Ta,fa,ba,ga,Pa,wa,ja,Ua,Ca,Da,ka,$a,Ga,Sa,La,Aa,Oa,Fa,Ra,Ma,Ba,Na,Ia,Wa,Ha,xa,Qa,za,Ja,Va,Ka,Ya,Za,Xa,eo,to,so,ao,oo,ro,io,po,lo,no,ho,mo,uo,co,yo,_o,vo,Eo,qo,To,fo,bo,go,Po,wo,jo,Uo,Co,Do,ko,$o,Go,So,Lo,Ao,Oo,Fo,Ro,Mo,Bo,No,Io,Wo,Ho,xo,Qo,zo;t||(t=e.GetWp||(e.GetWp={})),s||(s=e.ConfirmationList||(e.ConfirmationList={})),a||(a=e.UsersRegisterCreate||(e.UsersRegisterCreate={})),o||(o=e.UsersLostpasswordCreate||(e.UsersLostpasswordCreate={})),r||(r=e.UsersLostPasswordCreate||(e.UsersLostPasswordCreate={})),i||(i=e.PostsList||(e.PostsList={})),p||(p=e.PostsCreate||(e.PostsCreate={})),l||(l=e.PostsDetail||(e.PostsDetail={})),d||(d=e.PostsCreate2||(e.PostsCreate2={})),n||(n=e.PostsUpdate||(e.PostsUpdate={})),h||(h=e.PostsPartialUpdate||(e.PostsPartialUpdate={})),m||(m=e.PostsDelete||(e.PostsDelete={})),u||(u=e.PostsRevisionsDetail||(e.PostsRevisionsDetail={})),c||(c=e.PostsRevisionsDetail2||(e.PostsRevisionsDetail2={})),y||(y=e.PostsRevisionsDelete||(e.PostsRevisionsDelete={})),_||(_=e.PostsAutosavesDetail||(e.PostsAutosavesDetail={})),v||(v=e.PostsAutosavesCreate||(e.PostsAutosavesCreate={})),E||(E=e.PostsAutosavesDetail2||(e.PostsAutosavesDetail2={})),q||(q=e.PagesList||(e.PagesList={})),T||(T=e.PagesCreate||(e.PagesCreate={})),f||(f=e.PagesDetail||(e.PagesDetail={})),b||(b=e.PagesCreate2||(e.PagesCreate2={})),g||(g=e.PagesUpdate||(e.PagesUpdate={})),P||(P=e.PagesPartialUpdate||(e.PagesPartialUpdate={})),w||(w=e.PagesDelete||(e.PagesDelete={})),j||(j=e.PagesRevisionsDetail||(e.PagesRevisionsDetail={})),U||(U=e.PagesRevisionsDetail2||(e.PagesRevisionsDetail2={})),C||(C=e.PagesRevisionsDelete||(e.PagesRevisionsDelete={})),D||(D=e.PagesAutosavesDetail||(e.PagesAutosavesDetail={})),k||(k=e.PagesAutosavesCreate||(e.PagesAutosavesCreate={})),$||($=e.PagesAutosavesDetail2||(e.PagesAutosavesDetail2={})),G||(G=e.MediaList||(e.MediaList={})),S||(S=e.MediaCreate||(e.MediaCreate={})),L||(L=e.MediaDetail||(e.MediaDetail={})),A||(A=e.MediaCreate2||(e.MediaCreate2={})),O||(O=e.MediaUpdate||(e.MediaUpdate={})),F||(F=e.MediaPartialUpdate||(e.MediaPartialUpdate={})),R||(R=e.MediaDelete||(e.MediaDelete={})),M||(M=e.MediaPostProcessCreate||(e.MediaPostProcessCreate={})),B||(B=e.MediaEditCreate||(e.MediaEditCreate={})),N||(N=e.MenuItemsList||(e.MenuItemsList={})),I||(I=e.MenuItemsCreate||(e.MenuItemsCreate={})),W||(W=e.MenuItemsDetail||(e.MenuItemsDetail={})),H||(H=e.MenuItemsCreate2||(e.MenuItemsCreate2={})),x||(x=e.MenuItemsUpdate||(e.MenuItemsUpdate={})),Q||(Q=e.MenuItemsPartialUpdate||(e.MenuItemsPartialUpdate={})),z||(z=e.MenuItemsDelete||(e.MenuItemsDelete={})),J||(J=e.MenuItemsAutosavesDetail||(e.MenuItemsAutosavesDetail={})),V||(V=e.MenuItemsAutosavesCreate||(e.MenuItemsAutosavesCreate={})),K||(K=e.MenuItemsAutosavesDetail2||(e.MenuItemsAutosavesDetail2={})),Y||(Y=e.BlocksList||(e.BlocksList={})),Z||(Z=e.BlocksCreate||(e.BlocksCreate={})),X||(X=e.BlocksDetail||(e.BlocksDetail={})),ee||(ee=e.BlocksCreate2||(e.BlocksCreate2={})),te||(te=e.BlocksUpdate||(e.BlocksUpdate={})),se||(se=e.BlocksPartialUpdate||(e.BlocksPartialUpdate={})),ae||(ae=e.BlocksDelete||(e.BlocksDelete={})),oe||(oe=e.BlocksRevisionsDetail||(e.BlocksRevisionsDetail={})),re||(re=e.BlocksRevisionsDetail2||(e.BlocksRevisionsDetail2={})),ie||(ie=e.BlocksRevisionsDelete||(e.BlocksRevisionsDelete={})),pe||(pe=e.BlocksAutosavesDetail||(e.BlocksAutosavesDetail={})),le||(le=e.BlocksAutosavesCreate||(e.BlocksAutosavesCreate={})),de||(de=e.BlocksAutosavesDetail2||(e.BlocksAutosavesDetail2={})),ne||(ne=e.TemplatesRevisionsDetail||(e.TemplatesRevisionsDetail={})),he||(he=e.TemplatesRevisionsDetail2||(e.TemplatesRevisionsDetail2={})),me||(me=e.TemplatesRevisionsDelete||(e.TemplatesRevisionsDelete={})),ue||(ue=e.TemplatesAutosavesDetail||(e.TemplatesAutosavesDetail={})),ce||(ce=e.TemplatesAutosavesCreate||(e.TemplatesAutosavesCreate={})),ye||(ye=e.TemplatesAutosavesDetail2||(e.TemplatesAutosavesDetail2={})),_e||(_e=e.TemplatesList||(e.TemplatesList={})),ve||(ve=e.TemplatesCreate||(e.TemplatesCreate={})),Ee||(Ee=e.TemplatesLookupList||(e.TemplatesLookupList={})),qe||(qe=e.TemplatesDetail||(e.TemplatesDetail={})),Te||(Te=e.TemplatesCreate2||(e.TemplatesCreate2={})),fe||(fe=e.TemplatesUpdate||(e.TemplatesUpdate={})),be||(be=e.TemplatesPartialUpdate||(e.TemplatesPartialUpdate={})),ge||(ge=e.TemplatesDelete||(e.TemplatesDelete={})),Pe||(Pe=e.TemplatePartsRevisionsDetail||(e.TemplatePartsRevisionsDetail={})),we||(we=e.TemplatePartsRevisionsDetail2||(e.TemplatePartsRevisionsDetail2={})),je||(je=e.TemplatePartsRevisionsDelete||(e.TemplatePartsRevisionsDelete={})),Ue||(Ue=e.TemplatePartsAutosavesDetail||(e.TemplatePartsAutosavesDetail={})),Ce||(Ce=e.TemplatePartsAutosavesCreate||(e.TemplatePartsAutosavesCreate={})),De||(De=e.TemplatePartsAutosavesDetail2||(e.TemplatePartsAutosavesDetail2={})),ke||(ke=e.TemplatePartsList||(e.TemplatePartsList={})),$e||($e=e.TemplatePartsCreate||(e.TemplatePartsCreate={})),Ge||(Ge=e.TemplatePartsLookupList||(e.TemplatePartsLookupList={})),Se||(Se=e.TemplatePartsDetail||(e.TemplatePartsDetail={})),Le||(Le=e.TemplatePartsCreate2||(e.TemplatePartsCreate2={})),Ae||(Ae=e.TemplatePartsUpdate||(e.TemplatePartsUpdate={})),Oe||(Oe=e.TemplatePartsPartialUpdate||(e.TemplatePartsPartialUpdate={})),Fe||(Fe=e.TemplatePartsDelete||(e.TemplatePartsDelete={})),Re||(Re=e.GlobalStylesRevisionsDetail||(e.GlobalStylesRevisionsDetail={})),Me||(Me=e.GlobalStylesRevisionsDetail2||(e.GlobalStylesRevisionsDetail2={})),Be||(Be=e.GlobalStylesThemesVariationsDetail||(e.GlobalStylesThemesVariationsDetail={})),Ne||(Ne=e.GlobalStylesThemesDetail||(e.GlobalStylesThemesDetail={})),Ie||(Ie=e.GlobalStylesDetail||(e.GlobalStylesDetail={})),We||(We=e.GlobalStylesCreate||(e.GlobalStylesCreate={})),He||(He=e.GlobalStylesUpdate||(e.GlobalStylesUpdate={})),xe||(xe=e.GlobalStylesPartialUpdate||(e.GlobalStylesPartialUpdate={})),Qe||(Qe=e.NavigationList||(e.NavigationList={})),ze||(ze=e.NavigationCreate||(e.NavigationCreate={})),Je||(Je=e.NavigationDetail||(e.NavigationDetail={})),Ve||(Ve=e.NavigationCreate2||(e.NavigationCreate2={})),Ke||(Ke=e.NavigationUpdate||(e.NavigationUpdate={})),Ye||(Ye=e.NavigationPartialUpdate||(e.NavigationPartialUpdate={})),Ze||(Ze=e.NavigationDelete||(e.NavigationDelete={})),Xe||(Xe=e.NavigationRevisionsDetail||(e.NavigationRevisionsDetail={})),et||(et=e.NavigationRevisionsDetail2||(e.NavigationRevisionsDetail2={})),tt||(tt=e.NavigationRevisionsDelete||(e.NavigationRevisionsDelete={})),st||(st=e.NavigationAutosavesDetail||(e.NavigationAutosavesDetail={})),at||(at=e.NavigationAutosavesCreate||(e.NavigationAutosavesCreate={})),ot||(ot=e.NavigationAutosavesDetail2||(e.NavigationAutosavesDetail2={})),rt||(rt=e.FontFamiliesList||(e.FontFamiliesList={})),it||(it=e.FontFamiliesCreate||(e.FontFamiliesCreate={})),pt||(pt=e.FontFamiliesDetail||(e.FontFamiliesDetail={})),lt||(lt=e.FontFamiliesCreate2||(e.FontFamiliesCreate2={})),dt||(dt=e.FontFamiliesUpdate||(e.FontFamiliesUpdate={})),nt||(nt=e.FontFamiliesPartialUpdate||(e.FontFamiliesPartialUpdate={})),ht||(ht=e.FontFamiliesDelete||(e.FontFamiliesDelete={})),mt||(mt=e.FontFamiliesFontFacesDetail||(e.FontFamiliesFontFacesDetail={})),ut||(ut=e.FontFamiliesFontFacesCreate||(e.FontFamiliesFontFacesCreate={})),ct||(ct=e.FontFamiliesFontFacesDetail2||(e.FontFamiliesFontFacesDetail2={})),yt||(yt=e.FontFamiliesFontFacesDelete||(e.FontFamiliesFontFacesDelete={})),_t||(_t=e.EblockList||(e.EblockList={})),vt||(vt=e.EblockCreate||(e.EblockCreate={})),Et||(Et=e.EblockDetail||(e.EblockDetail={})),qt||(qt=e.EblockCreate2||(e.EblockCreate2={})),Tt||(Tt=e.EblockUpdate||(e.EblockUpdate={})),ft||(ft=e.EblockPartialUpdate||(e.EblockPartialUpdate={})),bt||(bt=e.EblockDelete||(e.EblockDelete={})),gt||(gt=e.EblockRevisionsDetail||(e.EblockRevisionsDetail={})),Pt||(Pt=e.EblockRevisionsDetail2||(e.EblockRevisionsDetail2={})),wt||(wt=e.EblockRevisionsDelete||(e.EblockRevisionsDelete={})),jt||(jt=e.EblockAutosavesDetail||(e.EblockAutosavesDetail={})),Ut||(Ut=e.EblockAutosavesCreate||(e.EblockAutosavesCreate={})),Ct||(Ct=e.EblockAutosavesDetail2||(e.EblockAutosavesDetail2={})),Dt||(Dt=e.EmailList||(e.EmailList={})),kt||(kt=e.EmailCreate||(e.EmailCreate={})),$t||($t=e.EmailDetail||(e.EmailDetail={})),Gt||(Gt=e.EmailCreate2||(e.EmailCreate2={})),St||(St=e.EmailUpdate||(e.EmailUpdate={})),Lt||(Lt=e.EmailPartialUpdate||(e.EmailPartialUpdate={})),At||(At=e.EmailDelete||(e.EmailDelete={})),Ot||(Ot=e.EmailRevisionsDetail||(e.EmailRevisionsDetail={})),Ft||(Ft=e.EmailRevisionsDetail2||(e.EmailRevisionsDetail2={})),Rt||(Rt=e.EmailRevisionsDelete||(e.EmailRevisionsDelete={})),Mt||(Mt=e.EmailAutosavesDetail||(e.EmailAutosavesDetail={})),Bt||(Bt=e.EmailAutosavesCreate||(e.EmailAutosavesCreate={})),Nt||(Nt=e.EmailAutosavesDetail2||(e.EmailAutosavesDetail2={})),It||(It=e.NotificationList||(e.NotificationList={})),Wt||(Wt=e.NotificationCreate||(e.NotificationCreate={})),Ht||(Ht=e.NotificationDetail||(e.NotificationDetail={})),xt||(xt=e.NotificationCreate2||(e.NotificationCreate2={})),Qt||(Qt=e.NotificationUpdate||(e.NotificationUpdate={})),zt||(zt=e.NotificationPartialUpdate||(e.NotificationPartialUpdate={})),Jt||(Jt=e.NotificationDelete||(e.NotificationDelete={})),Vt||(Vt=e.NotificationAutosavesDetail||(e.NotificationAutosavesDetail={})),Kt||(Kt=e.NotificationAutosavesCreate||(e.NotificationAutosavesCreate={})),Yt||(Yt=e.NotificationAutosavesDetail2||(e.NotificationAutosavesDetail2={})),Zt||(Zt=e.ProjectList||(e.ProjectList={})),Xt||(Xt=e.ProjectCreate||(e.ProjectCreate={})),es||(es=e.ProjectDetail||(e.ProjectDetail={})),ts||(ts=e.ProjectCreate2||(e.ProjectCreate2={})),ss||(ss=e.ProjectUpdate||(e.ProjectUpdate={})),as||(as=e.ProjectPartialUpdate||(e.ProjectPartialUpdate={})),os||(os=e.ProjectDelete||(e.ProjectDelete={})),rs||(rs=e.ProjectRevisionsDetail||(e.ProjectRevisionsDetail={})),is||(is=e.ProjectRevisionsDetail2||(e.ProjectRevisionsDetail2={})),ps||(ps=e.ProjectRevisionsDelete||(e.ProjectRevisionsDelete={})),ls||(ls=e.SubscriptionList||(e.SubscriptionList={})),ds||(ds=e.SubscriptionCreate||(e.SubscriptionCreate={})),ns||(ns=e.SubscriptionDetail||(e.SubscriptionDetail={})),hs||(hs=e.SubscriptionCreate2||(e.SubscriptionCreate2={})),ms||(ms=e.SubscriptionUpdate||(e.SubscriptionUpdate={})),us||(us=e.SubscriptionPartialUpdate||(e.SubscriptionPartialUpdate={})),cs||(cs=e.SubscriptionDelete||(e.SubscriptionDelete={})),ys||(ys=e.TypesList||(e.TypesList={})),_s||(_s=e.TypesDetail||(e.TypesDetail={})),vs||(vs=e.StatusesList||(e.StatusesList={})),Es||(Es=e.StatusesDetail||(e.StatusesDetail={})),qs||(qs=e.TaxonomiesList||(e.TaxonomiesList={})),Ts||(Ts=e.TaxonomiesDetail||(e.TaxonomiesDetail={})),fs||(fs=e.CategoriesList||(e.CategoriesList={})),bs||(bs=e.CategoriesCreate||(e.CategoriesCreate={})),gs||(gs=e.CategoriesDetail||(e.CategoriesDetail={})),Ps||(Ps=e.CategoriesCreate2||(e.CategoriesCreate2={})),ws||(ws=e.CategoriesUpdate||(e.CategoriesUpdate={})),js||(js=e.CategoriesPartialUpdate||(e.CategoriesPartialUpdate={})),Us||(Us=e.CategoriesDelete||(e.CategoriesDelete={})),Cs||(Cs=e.TagsList||(e.TagsList={})),Ds||(Ds=e.TagsCreate||(e.TagsCreate={})),ks||(ks=e.TagsDetail||(e.TagsDetail={})),$s||($s=e.TagsCreate2||(e.TagsCreate2={})),Gs||(Gs=e.TagsUpdate||(e.TagsUpdate={})),Ss||(Ss=e.TagsPartialUpdate||(e.TagsPartialUpdate={})),Ls||(Ls=e.TagsDelete||(e.TagsDelete={})),As||(As=e.MenusList||(e.MenusList={})),Os||(Os=e.MenusCreate||(e.MenusCreate={})),Fs||(Fs=e.MenusDetail||(e.MenusDetail={})),Rs||(Rs=e.MenusCreate2||(e.MenusCreate2={})),Ms||(Ms=e.MenusUpdate||(e.MenusUpdate={})),Bs||(Bs=e.MenusPartialUpdate||(e.MenusPartialUpdate={})),Ns||(Ns=e.MenusDelete||(e.MenusDelete={})),Is||(Is=e.WpPatternCategoryList||(e.WpPatternCategoryList={})),Ws||(Ws=e.WpPatternCategoryCreate||(e.WpPatternCategoryCreate={})),Hs||(Hs=e.WpPatternCategoryDetail||(e.WpPatternCategoryDetail={})),xs||(xs=e.WpPatternCategoryCreate2||(e.WpPatternCategoryCreate2={})),Qs||(Qs=e.WpPatternCategoryUpdate||(e.WpPatternCategoryUpdate={})),zs||(zs=e.WpPatternCategoryPartialUpdate||(e.WpPatternCategoryPartialUpdate={})),Js||(Js=e.WpPatternCategoryDelete||(e.WpPatternCategoryDelete={})),Vs||(Vs=e.GroupList||(e.GroupList={})),Ks||(Ks=e.GroupCreate||(e.GroupCreate={})),Ys||(Ys=e.GroupDetail||(e.GroupDetail={})),Zs||(Zs=e.GroupCreate2||(e.GroupCreate2={})),Xs||(Xs=e.GroupUpdate||(e.GroupUpdate={})),ea||(ea=e.GroupPartialUpdate||(e.GroupPartialUpdate={})),ta||(ta=e.GroupDelete||(e.GroupDelete={})),sa||(sa=e.BlockfolderList||(e.BlockfolderList={})),aa||(aa=e.BlockfolderCreate||(e.BlockfolderCreate={})),oa||(oa=e.BlockfolderDetail||(e.BlockfolderDetail={})),ra||(ra=e.BlockfolderCreate2||(e.BlockfolderCreate2={})),ia||(ia=e.BlockfolderUpdate||(e.BlockfolderUpdate={})),pa||(pa=e.BlockfolderPartialUpdate||(e.BlockfolderPartialUpdate={})),la||(la=e.BlockfolderDelete||(e.BlockfolderDelete={})),da||(da=e.BlocktagsList||(e.BlocktagsList={})),na||(na=e.BlocktagsCreate||(e.BlocktagsCreate={})),ha||(ha=e.BlocktagsDetail||(e.BlocktagsDetail={})),ma||(ma=e.BlocktagsCreate2||(e.BlocktagsCreate2={})),ua||(ua=e.BlocktagsUpdate||(e.BlocktagsUpdate={})),ca||(ca=e.BlocktagsPartialUpdate||(e.BlocktagsPartialUpdate={})),ya||(ya=e.BlocktagsDelete||(e.BlocktagsDelete={})),_a||(_a=e.EmailtagsList||(e.EmailtagsList={})),va||(va=e.EmailtagsCreate||(e.EmailtagsCreate={})),Ea||(Ea=e.EmailtagsDetail||(e.EmailtagsDetail={})),qa||(qa=e.EmailtagsCreate2||(e.EmailtagsCreate2={})),Ta||(Ta=e.EmailtagsUpdate||(e.EmailtagsUpdate={})),fa||(fa=e.EmailtagsPartialUpdate||(e.EmailtagsPartialUpdate={})),ba||(ba=e.EmailtagsDelete||(e.EmailtagsDelete={})),ga||(ga=e.FolderList||(e.FolderList={})),Pa||(Pa=e.FolderCreate||(e.FolderCreate={})),wa||(wa=e.FolderDetail||(e.FolderDetail={})),ja||(ja=e.FolderCreate2||(e.FolderCreate2={})),Ua||(Ua=e.FolderUpdate||(e.FolderUpdate={})),Ca||(Ca=e.FolderPartialUpdate||(e.FolderPartialUpdate={})),Da||(Da=e.FolderDelete||(e.FolderDelete={})),ka||(ka=e.UsersList||(e.UsersList={})),$a||($a=e.UsersCreate||(e.UsersCreate={})),Ga||(Ga=e.UsersDetail||(e.UsersDetail={})),Sa||(Sa=e.UsersCreate2||(e.UsersCreate2={})),La||(La=e.UsersUpdate||(e.UsersUpdate={})),Aa||(Aa=e.UsersPartialUpdate||(e.UsersPartialUpdate={})),Oa||(Oa=e.UsersDelete||(e.UsersDelete={})),Fa||(Fa=e.UsersMeList||(e.UsersMeList={})),Ra||(Ra=e.UsersMeCreate||(e.UsersMeCreate={})),Ma||(Ma=e.UsersMeUpdate||(e.UsersMeUpdate={})),Ba||(Ba=e.UsersMePartialUpdate||(e.UsersMePartialUpdate={})),Na||(Na=e.UsersMeDelete||(e.UsersMeDelete={})),Ia||(Ia=e.UsersApplicationPasswordsDetail||(e.UsersApplicationPasswordsDetail={})),Wa||(Wa=e.UsersApplicationPasswordsCreate||(e.UsersApplicationPasswordsCreate={})),Ha||(Ha=e.UsersApplicationPasswordsDelete||(e.UsersApplicationPasswordsDelete={})),xa||(xa=e.UsersApplicationPasswordsIntrospectDetail||(e.UsersApplicationPasswordsIntrospectDetail={})),Qa||(Qa=e.UsersApplicationPasswordsDetail2||(e.UsersApplicationPasswordsDetail2={})),za||(za=e.UsersApplicationPasswordsCreate2||(e.UsersApplicationPasswordsCreate2={})),Ja||(Ja=e.UsersApplicationPasswordsUpdate||(e.UsersApplicationPasswordsUpdate={})),Va||(Va=e.UsersApplicationPasswordsPartialUpdate||(e.UsersApplicationPasswordsPartialUpdate={})),Ka||(Ka=e.UsersApplicationPasswordsDelete2||(e.UsersApplicationPasswordsDelete2={})),Ya||(Ya=e.CommentsList||(e.CommentsList={})),Za||(Za=e.CommentsCreate||(e.CommentsCreate={})),Xa||(Xa=e.CommentsDetail||(e.CommentsDetail={})),eo||(eo=e.CommentsCreate2||(e.CommentsCreate2={})),to||(to=e.CommentsUpdate||(e.CommentsUpdate={})),so||(so=e.CommentsPartialUpdate||(e.CommentsPartialUpdate={})),ao||(ao=e.CommentsDelete||(e.CommentsDelete={})),oo||(oo=e.SearchList||(e.SearchList={})),ro||(ro=e.BlockRendererDetail||(e.BlockRendererDetail={})),io||(io=e.BlockRendererCreate||(e.BlockRendererCreate={})),po||(po=e.BlockTypesList||(e.BlockTypesList={})),lo||(lo=e.BlockTypesDetail||(e.BlockTypesDetail={})),no||(no=e.BlockTypesDetail2||(e.BlockTypesDetail2={})),ho||(ho=e.SettingsList||(e.SettingsList={})),mo||(mo=e.SettingsCreate||(e.SettingsCreate={})),uo||(uo=e.SettingsUpdate||(e.SettingsUpdate={})),co||(co=e.SettingsPartialUpdate||(e.SettingsPartialUpdate={})),yo||(yo=e.ThemesList||(e.ThemesList={})),_o||(_o=e.ThemesDetail||(e.ThemesDetail={})),vo||(vo=e.PluginsList||(e.PluginsList={})),Eo||(Eo=e.PluginsCreate||(e.PluginsCreate={})),qo||(qo=e.PluginsDetail||(e.PluginsDetail={})),To||(To=e.PluginsCreate2||(e.PluginsCreate2={})),fo||(fo=e.PluginsUpdate||(e.PluginsUpdate={})),bo||(bo=e.PluginsPartialUpdate||(e.PluginsPartialUpdate={})),go||(go=e.PluginsDelete||(e.PluginsDelete={})),Po||(Po=e.SidebarsList||(e.SidebarsList={})),wo||(wo=e.SidebarsDetail||(e.SidebarsDetail={})),jo||(jo=e.SidebarsCreate||(e.SidebarsCreate={})),Uo||(Uo=e.SidebarsUpdate||(e.SidebarsUpdate={})),Co||(Co=e.SidebarsPartialUpdate||(e.SidebarsPartialUpdate={})),Do||(Do=e.WidgetTypesList||(e.WidgetTypesList={})),ko||(ko=e.WidgetTypesDetail||(e.WidgetTypesDetail={})),$o||($o=e.WidgetTypesEncodeCreate||(e.WidgetTypesEncodeCreate={})),Go||(Go=e.WidgetTypesRenderCreate||(e.WidgetTypesRenderCreate={})),So||(So=e.WidgetsList||(e.WidgetsList={})),Lo||(Lo=e.WidgetsCreate||(e.WidgetsCreate={})),Ao||(Ao=e.WidgetsDetail||(e.WidgetsDetail={})),Oo||(Oo=e.WidgetsCreate2||(e.WidgetsCreate2={})),Fo||(Fo=e.WidgetsUpdate||(e.WidgetsUpdate={})),Ro||(Ro=e.WidgetsPartialUpdate||(e.WidgetsPartialUpdate={})),Mo||(Mo=e.WidgetsDelete||(e.WidgetsDelete={})),Bo||(Bo=e.BlockDirectorySearchList||(e.BlockDirectorySearchList={})),No||(No=e.PatternDirectoryPatternsList||(e.PatternDirectoryPatternsList={})),Io||(Io=e.BlockPatternsPatternsList||(e.BlockPatternsPatternsList={})),Wo||(Wo=e.BlockPatternsCategoriesList||(e.BlockPatternsCategoriesList={})),Ho||(Ho=e.MenuLocationsList||(e.MenuLocationsList={})),xo||(xo=e.MenuLocationsDetail||(e.MenuLocationsDetail={})),Qo||(Qo=e.FontCollectionsList||(e.FontCollectionsList={})),zo||(zo=e.FontCollectionsDetail||(e.FontCollectionsDetail={}))}(h||(h={})),function(e){let t,s,a;t||(t=e.GetUserToProject||(e.GetUserToProject={})),s||(s=e.AddUserCreate||(e.AddUserCreate={})),a||(a=e.TestUserList||(e.TestUserList={}))}(m||(m={})),function(e){let t,s;t||(t=e.GetCounters||(e.GetCounters={})),s||(s=e.IncrementCounterPartialUpdate||(e.IncrementCounterPartialUpdate={}))}(u||(u={})),function(e){let t,s;t||(t=e.GetPayment||(e.GetPayment={})),s||(s=e.SubscriptionPaymentCreate||(e.SubscriptionPaymentCreate={}))}(c||(c={})),function(e){let t,s;t||(t=e.GetApp||(e.GetApp={})),s||(s=e.AppInitCreate||(e.AppInitCreate={}))}(y||(y={})),function(e){let t,s,a;t||(t=e.GetJwtAuth||(e.GetJwtAuth={})),s||(s=e.TokenCreate||(e.TokenCreate={})),a||(a=e.TokenValidateCreate||(e.TokenValidateCreate={}))}(_||(_={})),function(e){let t,s,a,o,r;t||(t=e.TranslationsList||(e.TranslationsList={})),s||(s=e.PostTranslations||(e.PostTranslations={})),a||(a=e.GetTranslations||(e.GetTranslations={})),o||(o=e.GetTranslations2||(e.GetTranslations2={})),r||(r=e.GetTranslations3||(e.GetTranslations3={}))}(v||(v={})),function(e){let t,s;t||(t=e.GetWpOpenapi||(e.GetWpOpenapi={})),s||(s=e.SchemaList||(e.SchemaList={}))}(E||(E={})),function(e){let t,s;t||(t=e.GetWpMailSmtp||(e.GetWpMailSmtp={})),s||(s=e.EDetail||(e.EDetail={}))}(q||(q={})),function(e){let t,s,a,o,r,i,p,l;t||(t=e.GetWpSiteHealth||(e.GetWpSiteHealth={})),s||(s=e.TestsBackgroundUpdatesList||(e.TestsBackgroundUpdatesList={})),a||(a=e.TestsLoopbackRequestsList||(e.TestsLoopbackRequestsList={})),o||(o=e.TestsHttpsStatusList||(e.TestsHttpsStatusList={})),r||(r=e.TestsDotorgCommunicationList||(e.TestsDotorgCommunicationList={})),i||(i=e.TestsAuthorizationHeaderList||(e.TestsAuthorizationHeaderList={})),p||(p=e.DirectorySizesList||(e.DirectorySizesList={})),l||(l=e.TestsPageCacheList||(e.TestsPageCacheList={}))}(T||(T={})),function(e){let t,s,a,o;t||(t=e.GetWpBlockEditor||(e.GetWpBlockEditor={})),s||(s=e.UrlDetailsList||(e.UrlDetailsList={})),a||(a=e.ExportList||(e.ExportList={})),o||(o=e.NavigationFallbackList||(e.NavigationFallbackList={}))}(f||(f={})),function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain"}(b||(b={}));class g{constructor(e={}){this.baseUrl="https://api.emailmaker.ru/wp-json",this.securityData=null,this.securityWorker=void 0,this.abortControllers=new Map,this.customFetch=(...e)=>fetch(...e),this.baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"},this.setSecurityData=e=>{this.securityData=e},this.contentFormatters={[b.Json]:e=>null===e||"object"!==typeof e&&"string"!==typeof e?e:JSON.stringify(e),[b.Text]:e=>null!==e&&"string"!==typeof e?JSON.stringify(e):e,[b.FormData]:e=>Object.keys(e||{}).reduce(((t,s)=>{const a=e[s];return t.append(s,a instanceof Blob?a:"object"===typeof a&&null!==a?JSON.stringify(a):`${a}`),t}),new FormData),[b.UrlEncoded]:e=>this.toQueryString(e)},this.createAbortSignal=e=>{if(this.abortControllers.has(e)){const t=this.abortControllers.get(e);return t?t.signal:void 0}const t=new AbortController;return this.abortControllers.set(e,t),t.signal},this.abortRequest=e=>{const t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))},this.request=async({body:e,secure:t,path:s,type:a,query:o,format:r,baseUrl:i,cancelToken:p,extraQuery:l,...d})=>{const n=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},h=this.mergeRequestParams(d,n);l&&(o=o?{...o,...l}:l);const m=o&&this.toQueryString(o),u=this.contentFormatters[a||b.Json],c=r||h.format,y=new Request(`${i||this.baseUrl||""}${s}${m?`?${m}`:""}`,{...h,headers:{...h.headers||{},...a&&a!==b.FormData?{"Content-Type":a}:{}},signal:(p?this.createAbortSignal(p):h.signal)||null,body:"undefined"===typeof e||null===e?null:u(e)});return this.customFetch(y).then((async e=>{const t=e;t.data=null,t.error=null,t.meta={request:y,response:t};const s=c?await e[c]().then((e=>(t.ok?t.data=e:t.error={data:e},t))).catch((e=>(t.error=e,t))):t;return p&&this.abortControllers.delete(p),s}))},Object.assign(this,e)}encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent("number"===typeof t?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map((e=>this.encodeQueryParam(t,e))).join("&")}toQueryString(e){const t=e||{};return Object.keys(t).filter((e=>"undefined"!==typeof t[e])).map((e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e))).join("&")}addQueryParams(e){const t=this.toQueryString(e);return t?`?${t}`:""}mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}}class P extends g{constructor(...e){super(...e),this.bdpwr={get_bdpwr:(e,t={})=>this.request({path:"/bdpwr/v1",method:"GET",query:e,...t}),reset_password_create:(e={})=>this.request({path:"/bdpwr/v1/reset-password",method:"POST",...e}),set_password_create:(e={})=>this.request({path:"/bdpwr/v1/set-password",method:"POST",...e}),validate_code_create:(e={})=>this.request({path:"/bdpwr/v1/validate-code",method:"POST",...e})},this.corsProxy={get_cors_proxy:(e,t={})=>this.request({path:"/cors-proxy/V1",method:"GET",query:e,...t}),get_list:(e={})=>this.request({path:"/cors-proxy/V1/get",method:"GET",...e})},this.saveFile={get_save_file:(e,t={})=>this.request({path:"/save-file/v1",method:"GET",query:e,...t}),ai_create:(e,t={})=>this.request({path:"/save-file/v1/ai",method:"POST",body:e,type:b.UrlEncoded,...t}),ai_status_list:(e,t={})=>this.request({path:"/save-file/v1/ai-status",method:"GET",query:e,...t}),test_list:(e={})=>this.request({path:"/save-file/v1/test",method:"GET",...e}),upload_create:(e,t={})=>this.request({path:"/save-file/v1/upload",method:"POST",body:e,type:b.UrlEncoded,...t}),shortener_create:(e,t={})=>this.request({path:"/save-file/v1/shortener",method:"POST",body:e,type:b.UrlEncoded,...t}),get_link_create:(e,t={})=>this.request({path:"/save-file/v1/get-link",method:"POST",body:e,type:b.UrlEncoded,...t}),send_email_create:(e,t={})=>this.request({path:"/save-file/v1/send-email",method:"POST",body:e,type:b.UrlEncoded,...t})},this.aiGenerator={get_ai_generator:(e,t={})=>this.request({path:"/ai-generator/v1",method:"GET",query:e,...t}),ai_create:(e,t={})=>this.request({path:"/ai-generator/v1/ai",method:"POST",body:e,type:b.UrlEncoded,...t}),ai_status_list:(e,t={})=>this.request({path:"/ai-generator/v1/ai-status",method:"GET",query:e,...t}),test_list:(e={})=>this.request({path:"/ai-generator/v1/test",method:"GET",...e}),clear_history_list:(e,t={})=>this.request({path:"/ai-generator/v1/clear-history",method:"GET",query:e,...t}),save_task_create:(e,t={})=>this.request({path:"/ai-generator/v1/save-task",method:"POST",body:e,type:b.UrlEncoded,...t})},this.auth={get_auth:(e,t={})=>this.request({path:"/auth/v1",method:"GET",query:e,...t}),users_register_create:(e,t={})=>this.request({path:"/auth/v1/users/register",method:"POST",body:e,type:b.UrlEncoded,...t}),send_test_email_list:(e,t={})=>this.request({path:"/auth/v1/send_test_email",method:"GET",query:e,...t}),yandex_callback_create:(e,t={})=>this.request({path:"/auth/v1/yandex/callback",method:"POST",body:e,type:b.UrlEncoded,...t}),google_callback_create:(e,t={})=>this.request({path:"/auth/v1/google/callback",method:"POST",body:e,type:b.UrlEncoded,...t})},this.inbox={get_inbox:(e,t={})=>this.request({path:"/inbox/v1",method:"GET",query:e,...t}),check_inbox_create:(e,t={})=>this.request({path:"/inbox/v1/check-inbox",method:"POST",body:e,type:b.UrlEncoded,...t})},this.promo={get_promo:(e,t={})=>this.request({path:"/promo/v1",method:"GET",query:e,...t}),set_code_create:(e,t={})=>this.request({path:"/promo/v1/set_code",method:"POST",body:e,type:b.UrlEncoded,...t}),get_code_info_list:(e,t={})=>this.request({path:"/promo/v1/get_code_info",method:"GET",query:e,...t}),get_referral_data_list:(e={})=>this.request({path:"/promo/v1/get_referral_data",method:"GET",...e})},this.optimization={get_optimization:(e,t={})=>this.request({path:"/optimization/v1",method:"GET",query:e,...t}),validate_images_create:(e,t={})=>this.request({path:"/optimization/v1/validate/images",method:"POST",body:e,type:b.UrlEncoded,...t}),validate_links_create:(e,t={})=>this.request({path:"/optimization/v1/validate/links",method:"POST",body:e,type:b.UrlEncoded,...t}),validate_spamassasin_create:(e,t={})=>this.request({path:"/optimization/v1/validate/spamassasin",method:"POST",body:e,type:b.UrlEncoded,...t})},this.wp={get_wp:(e,t={})=>this.request({path:"/wp/v2",method:"GET",query:e,...t}),confirmation_list:(e,t={})=>this.request({path:"/wp/v2/confirmation",method:"GET",query:e,...t}),users_register_create:(e={})=>this.request({path:"/wp/v2/users/register",method:"POST",...e}),users_lostpassword_create:(e={})=>this.request({path:"/wp/v2/users/lostpassword",method:"POST",...e}),users_lost_password_create:(e={})=>this.request({path:"/wp/v2/users/lost-password",method:"POST",...e}),posts_list:(e,t={})=>this.request({path:"/wp/v2/posts",method:"GET",query:e,format:"json",...t}),posts_create:(e,t={})=>this.request({path:"/wp/v2/posts",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),posts_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/posts/${e}`,method:"GET",query:t,format:"json",...s}),posts_create2:(e,t,s={})=>this.request({path:`/wp/v2/posts/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),posts_update:(e,t,s={})=>this.request({path:`/wp/v2/posts/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),posts_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/posts/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),posts_delete:(e,t,s={})=>this.request({path:`/wp/v2/posts/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),posts_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/posts/${e}/revisions`,method:"GET",query:t,format:"json",...s}),posts_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),posts_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),posts_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),posts_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),posts_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/posts/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),pages_list:(e,t={})=>this.request({path:"/wp/v2/pages",method:"GET",query:e,format:"json",...t}),pages_create:(e,t={})=>this.request({path:"/wp/v2/pages",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),pages_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/pages/${e}`,method:"GET",query:t,format:"json",...s}),pages_create2:(e,t,s={})=>this.request({path:`/wp/v2/pages/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),pages_update:(e,t,s={})=>this.request({path:`/wp/v2/pages/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),pages_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/pages/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),pages_delete:(e,t,s={})=>this.request({path:`/wp/v2/pages/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),pages_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/pages/${e}/revisions`,method:"GET",query:t,format:"json",...s}),pages_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),pages_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),pages_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),pages_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),pages_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/pages/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),media_list:(e,t={})=>this.request({path:"/wp/v2/media",method:"GET",query:e,format:"json",...t}),media_create:(e,t={})=>this.request({path:"/wp/v2/media",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),media_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/media/${e}`,method:"GET",query:t,format:"json",...s}),media_create2:(e,t,s={})=>this.request({path:`/wp/v2/media/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),media_update:(e,t,s={})=>this.request({path:`/wp/v2/media/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),media_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/media/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),media_delete:(e,t,s={})=>this.request({path:`/wp/v2/media/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),media_post_process_create:(e,t,s={})=>this.request({path:`/wp/v2/media/${e}/post-process`,method:"POST",body:t,type:b.UrlEncoded,...s}),media_edit_create:(e,t,s={})=>this.request({path:`/wp/v2/media/${e}/edit`,method:"POST",body:t,type:b.UrlEncoded,...s}),menu_items_list:(e,t={})=>this.request({path:"/wp/v2/menu-items",method:"GET",query:e,format:"json",...t}),menu_items_create:(e,t={})=>this.request({path:"/wp/v2/menu-items",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),menu_items_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"GET",query:t,format:"json",...s}),menu_items_create2:(e,t,s={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),menu_items_update:(e,t,s={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),menu_items_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),menu_items_delete:(e,t,s={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),menu_items_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),menu_items_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),menu_items_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),blocks_list:(e,t={})=>this.request({path:"/wp/v2/blocks",method:"GET",query:e,format:"json",...t}),blocks_create:(e,t={})=>this.request({path:"/wp/v2/blocks",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),blocks_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"GET",query:t,format:"json",...s}),blocks_create2:(e,t,s={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),blocks_update:(e,t,s={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),blocks_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),blocks_delete:(e,t,s={})=>this.request({path:`/wp/v2/blocks/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),blocks_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/blocks/${e}/revisions`,method:"GET",query:t,format:"json",...s}),blocks_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),blocks_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),blocks_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),blocks_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),blocks_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),templates_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/templates/${e}/revisions`,method:"GET",query:t,format:"json",...s}),templates_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),templates_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),templates_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),templates_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),templates_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/templates/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),templates_list:(e,t={})=>this.request({path:"/wp/v2/templates",method:"GET",query:e,format:"json",...t}),templates_create:(e,t={})=>this.request({path:"/wp/v2/templates",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),templates_lookup_list:(e,t={})=>this.request({path:"/wp/v2/templates/lookup",method:"GET",query:e,...t}),templates_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/templates/${e}`,method:"GET",query:t,format:"json",...s}),templates_create2:(e,t,s={})=>this.request({path:`/wp/v2/templates/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),templates_update:(e,t,s={})=>this.request({path:`/wp/v2/templates/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),templates_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/templates/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),templates_delete:(e,t,s={})=>this.request({path:`/wp/v2/templates/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),template_parts_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions`,method:"GET",query:t,format:"json",...s}),template_parts_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),template_parts_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),template_parts_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),template_parts_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),template_parts_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),template_parts_list:(e,t={})=>this.request({path:"/wp/v2/template-parts",method:"GET",query:e,format:"json",...t}),template_parts_create:(e,t={})=>this.request({path:"/wp/v2/template-parts",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),template_parts_lookup_list:(e,t={})=>this.request({path:"/wp/v2/template-parts/lookup",method:"GET",query:e,...t}),template_parts_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"GET",query:t,format:"json",...s}),template_parts_create2:(e,t,s={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),template_parts_update:(e,t,s={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),template_parts_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),template_parts_delete:(e,t,s={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),global_styles_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions`,method:"GET",query:t,format:"json",...s}),global_styles_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),global_styles_themes_variations_detail:(e,t={})=>this.request({path:`/wp/v2/global-styles/themes/${e}/variations`,method:"GET",...t}),global_styles_themes_detail:(e,t={})=>this.request({path:`/wp/v2/global-styles/themes/${e}`,method:"GET",...t}),global_styles_detail:(e,t={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:"GET",format:"json",...t}),global_styles_create:(e,t,s={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),global_styles_update:(e,t,s={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),global_styles_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),navigation_list:(e,t={})=>this.request({path:"/wp/v2/navigation",method:"GET",query:e,format:"json",...t}),navigation_create:(e,t={})=>this.request({path:"/wp/v2/navigation",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),navigation_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"GET",query:t,format:"json",...s}),navigation_create2:(e,t,s={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),navigation_update:(e,t,s={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),navigation_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),navigation_delete:(e,t,s={})=>this.request({path:`/wp/v2/navigation/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),navigation_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/navigation/${e}/revisions`,method:"GET",query:t,format:"json",...s}),navigation_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),navigation_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),navigation_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),navigation_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),navigation_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),font_families_list:(e,t={})=>this.request({path:"/wp/v2/font-families",method:"GET",query:e,format:"json",...t}),font_families_create:(e,t={})=>this.request({path:"/wp/v2/font-families",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),font_families_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"GET",query:t,format:"json",...s}),font_families_create2:(e,t,s={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),font_families_update:(e,t,s={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),font_families_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),font_families_delete:(e,t,s={})=>this.request({path:`/wp/v2/font-families/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),font_families_font_faces_detail:({fontFamilyId:e,...t},s={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:"GET",query:t,format:"json",...s}),font_families_font_faces_create:(e,t,s={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),font_families_font_faces_detail2:({fontFamilyId:e,id:t,...s},a={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:"GET",query:s,format:"json",...a}),font_families_font_faces_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),eblock_list:(e,t={})=>this.request({path:"/wp/v2/eblock",method:"GET",query:e,format:"json",...t}),eblock_create:(e,t={})=>this.request({path:"/wp/v2/eblock",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),eblock_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"GET",query:t,format:"json",...s}),eblock_create2:(e,t,s={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),eblock_update:(e,t,s={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),eblock_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),eblock_delete:(e,t,s={})=>this.request({path:`/wp/v2/eblock/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),eblock_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/eblock/${e}/revisions`,method:"GET",query:t,format:"json",...s}),eblock_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),eblock_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),eblock_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),eblock_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),eblock_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),email_list:(e,t={})=>this.request({path:"/wp/v2/email",method:"GET",query:e,format:"json",...t}),email_create:(e,t={})=>this.request({path:"/wp/v2/email",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),email_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/email/${e}`,method:"GET",query:t,format:"json",...s}),email_create2:(e,t,s={})=>this.request({path:`/wp/v2/email/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),email_update:(e,t,s={})=>this.request({path:`/wp/v2/email/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),email_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/email/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),email_delete:(e,t,s={})=>this.request({path:`/wp/v2/email/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),email_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/email/${e}/revisions`,method:"GET",query:t,format:"json",...s}),email_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),email_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),email_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),email_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),email_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/email/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),notification_list:(e,t={})=>this.request({path:"/wp/v2/notification",method:"GET",query:e,format:"json",...t}),notification_create:(e,t={})=>this.request({path:"/wp/v2/notification",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),notification_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/notification/${e}`,method:"GET",query:t,format:"json",...s}),notification_create2:(e,t,s={})=>this.request({path:`/wp/v2/notification/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),notification_update:(e,t,s={})=>this.request({path:`/wp/v2/notification/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),notification_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/notification/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),notification_delete:(e,t,s={})=>this.request({path:`/wp/v2/notification/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),notification_autosaves_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:"GET",query:t,format:"json",...s}),notification_autosaves_create:(e,t,s={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),notification_autosaves_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/notification/${e}/autosaves/${t}`,method:"GET",query:s,format:"json",...a}),project_list:(e,t={})=>this.request({path:"/wp/v2/project",method:"GET",query:e,format:"json",...t}),project_create:(e,t={})=>this.request({path:"/wp/v2/project",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),project_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/project/${e}`,method:"GET",query:t,format:"json",...s}),project_create2:(e,t,s={})=>this.request({path:`/wp/v2/project/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),project_update:(e,t,s={})=>this.request({path:`/wp/v2/project/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),project_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/project/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),project_delete:(e,t,s={})=>this.request({path:`/wp/v2/project/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),project_revisions_detail:({parent:e,...t},s={})=>this.request({path:`/wp/v2/project/${e}/revisions`,method:"GET",query:t,format:"json",...s}),project_revisions_detail2:({parent:e,id:t,...s},a={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:"GET",query:s,format:"json",...a}),project_revisions_delete:(e,t,s,a={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:"DELETE",body:s,type:b.UrlEncoded,format:"json",...a}),subscription_list:(e,t={})=>this.request({path:"/wp/v2/subscription",method:"GET",query:e,format:"json",...t}),subscription_create:(e,t={})=>this.request({path:"/wp/v2/subscription",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),subscription_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"GET",query:t,format:"json",...s}),subscription_create2:(e,t,s={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),subscription_update:(e,t,s={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),subscription_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),subscription_delete:(e,t,s={})=>this.request({path:`/wp/v2/subscription/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),types_list:(e,t={})=>this.request({path:"/wp/v2/types",method:"GET",query:e,format:"json",...t}),types_detail:({type:e,...t},s={})=>this.request({path:`/wp/v2/types/${e}`,method:"GET",query:t,format:"json",...s}),statuses_list:(e,t={})=>this.request({path:"/wp/v2/statuses",method:"GET",query:e,format:"json",...t}),statuses_detail:({status:e,...t},s={})=>this.request({path:`/wp/v2/statuses/${e}`,method:"GET",query:t,format:"json",...s}),taxonomies_list:(e,t={})=>this.request({path:"/wp/v2/taxonomies",method:"GET",query:e,format:"json",...t}),taxonomies_detail:({taxonomy:e,...t},s={})=>this.request({path:`/wp/v2/taxonomies/${e}`,method:"GET",query:t,format:"json",...s}),categories_list:(e,t={})=>this.request({path:"/wp/v2/categories",method:"GET",query:e,format:"json",...t}),categories_create:(e,t={})=>this.request({path:"/wp/v2/categories",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),categories_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/categories/${e}`,method:"GET",query:t,format:"json",...s}),categories_create2:(e,t,s={})=>this.request({path:`/wp/v2/categories/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),categories_update:(e,t,s={})=>this.request({path:`/wp/v2/categories/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),categories_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/categories/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),categories_delete:(e,t,s={})=>this.request({path:`/wp/v2/categories/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),tags_list:(e,t={})=>this.request({path:"/wp/v2/tags",method:"GET",query:e,format:"json",...t}),tags_create:(e,t={})=>this.request({path:"/wp/v2/tags",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),tags_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/tags/${e}`,method:"GET",query:t,format:"json",...s}),tags_create2:(e,t,s={})=>this.request({path:`/wp/v2/tags/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),tags_update:(e,t,s={})=>this.request({path:`/wp/v2/tags/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),tags_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/tags/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),tags_delete:(e,t,s={})=>this.request({path:`/wp/v2/tags/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),menus_list:(e,t={})=>this.request({path:"/wp/v2/menus",method:"GET",query:e,format:"json",...t}),menus_create:(e,t={})=>this.request({path:"/wp/v2/menus",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),menus_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/menus/${e}`,method:"GET",query:t,format:"json",...s}),menus_create2:(e,t,s={})=>this.request({path:`/wp/v2/menus/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),menus_update:(e,t,s={})=>this.request({path:`/wp/v2/menus/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),menus_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/menus/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),menus_delete:(e,t,s={})=>this.request({path:`/wp/v2/menus/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),wp_pattern_category_list:(e,t={})=>this.request({path:"/wp/v2/wp_pattern_category",method:"GET",query:e,format:"json",...t}),wp_pattern_category_create:(e,t={})=>this.request({path:"/wp/v2/wp_pattern_category",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),wp_pattern_category_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"GET",query:t,format:"json",...s}),wp_pattern_category_create2:(e,t,s={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),wp_pattern_category_update:(e,t,s={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),wp_pattern_category_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),wp_pattern_category_delete:(e,t,s={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),group_list:(e,t={})=>this.request({path:"/wp/v2/group",method:"GET",query:e,format:"json",...t}),group_create:(e,t={})=>this.request({path:"/wp/v2/group",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),group_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/group/${e}`,method:"GET",query:t,format:"json",...s}),group_create2:(e,t,s={})=>this.request({path:`/wp/v2/group/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),group_update:(e,t,s={})=>this.request({path:`/wp/v2/group/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),group_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/group/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),group_delete:(e,t,s={})=>this.request({path:`/wp/v2/group/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),blockfolder_list:(e,t={})=>this.request({path:"/wp/v2/blockfolder",method:"GET",query:e,format:"json",...t}),blockfolder_create:(e,t={})=>this.request({path:"/wp/v2/blockfolder",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),blockfolder_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"GET",query:t,format:"json",...s}),blockfolder_create2:(e,t,s={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),blockfolder_update:(e,t,s={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),blockfolder_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),blockfolder_delete:(e,t,s={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),blocktags_list:(e,t={})=>this.request({path:"/wp/v2/blocktags",method:"GET",query:e,format:"json",...t}),blocktags_create:(e,t={})=>this.request({path:"/wp/v2/blocktags",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),blocktags_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"GET",query:t,format:"json",...s}),blocktags_create2:(e,t,s={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),blocktags_update:(e,t,s={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),blocktags_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),blocktags_delete:(e,t,s={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),emailtags_list:(e,t={})=>this.request({path:"/wp/v2/emailtags",method:"GET",query:e,format:"json",...t}),emailtags_create:(e,t={})=>this.request({path:"/wp/v2/emailtags",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),emailtags_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"GET",query:t,format:"json",...s}),emailtags_create2:(e,t,s={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),emailtags_update:(e,t,s={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),emailtags_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),emailtags_delete:(e,t,s={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),folder_list:(e,t={})=>this.request({path:"/wp/v2/folder",method:"GET",query:e,format:"json",...t}),folder_create:(e,t={})=>this.request({path:"/wp/v2/folder",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),folder_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/folder/${e}`,method:"GET",query:t,format:"json",...s}),folder_create2:(e,t,s={})=>this.request({path:`/wp/v2/folder/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),folder_update:(e,t,s={})=>this.request({path:`/wp/v2/folder/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),folder_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/folder/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),folder_delete:(e,t,s={})=>this.request({path:`/wp/v2/folder/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),users_list:(e,t={})=>this.request({path:"/wp/v2/users",method:"GET",query:e,format:"json",...t}),users_create:(e,t={})=>this.request({path:"/wp/v2/users",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),users_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/users/${e}`,method:"GET",query:t,format:"json",...s}),users_create2:(e,t,s={})=>this.request({path:`/wp/v2/users/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),users_update:(e,t,s={})=>this.request({path:`/wp/v2/users/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),users_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/users/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),users_delete:(e,t,s={})=>this.request({path:`/wp/v2/users/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),users_me_list:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"GET",query:e,format:"json",...t}),users_me_create:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),users_me_update:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"PUT",body:e,type:b.UrlEncoded,format:"json",...t}),users_me_partial_update:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"PATCH",body:e,type:b.UrlEncoded,format:"json",...t}),users_me_delete:(e,t={})=>this.request({path:"/wp/v2/users/me",method:"DELETE",body:e,type:b.UrlEncoded,format:"json",...t}),users_application_passwords_detail:({userId:e,...t},s={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:"GET",query:t,format:"json",...s}),users_application_passwords_create:(e,t,s={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),users_application_passwords_delete:(e,t={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:"DELETE",format:"json",...t}),users_application_passwords_introspect_detail:({userId:e,...t},s={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/introspect`,method:"GET",query:t,format:"json",...s}),users_application_passwords_detail2:({userId:e,uuid:t,...s},a={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"GET",query:s,format:"json",...a}),users_application_passwords_create2:(e,t,s,a={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"POST",body:s,type:b.UrlEncoded,format:"json",...a}),users_application_passwords_update:(e,t,s,a={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"PUT",body:s,type:b.UrlEncoded,format:"json",...a}),users_application_passwords_partial_update:(e,t,s,a={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"PATCH",body:s,type:b.UrlEncoded,format:"json",...a}),users_application_passwords_delete2:(e,t,s={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:"DELETE",format:"json",...s}),comments_list:(e,t={})=>this.request({path:"/wp/v2/comments",method:"GET",query:e,format:"json",...t}),comments_create:(e,t={})=>this.request({path:"/wp/v2/comments",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),comments_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/comments/${e}`,method:"GET",query:t,format:"json",...s}),comments_create2:(e,t,s={})=>this.request({path:`/wp/v2/comments/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),comments_update:(e,t,s={})=>this.request({path:`/wp/v2/comments/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),comments_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/comments/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),comments_delete:(e,t,s={})=>this.request({path:`/wp/v2/comments/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),search_list:(e,t={})=>this.request({path:"/wp/v2/search",method:"GET",query:e,format:"json",...t}),block_renderer_detail:({name:e,...t},s={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:"GET",query:t,format:"json",...s}),block_renderer_create:(e,t,s={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),block_types_list:(e,t={})=>this.request({path:"/wp/v2/block-types",method:"GET",query:e,format:"json",...t}),block_types_detail:({namespace:e,...t},s={})=>this.request({path:`/wp/v2/block-types/${e}`,method:"GET",query:t,format:"json",...s}),block_types_detail2:({name:e,namespace:t,...s},a={})=>this.request({path:`/wp/v2/block-types/${t}/${e}`,method:"GET",query:s,format:"json",...a}),settings_list:(e={})=>this.request({path:"/wp/v2/settings",method:"GET",format:"json",...e}),settings_create:(e,t={})=>this.request({path:"/wp/v2/settings",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),settings_update:(e,t={})=>this.request({path:"/wp/v2/settings",method:"PUT",body:e,type:b.UrlEncoded,format:"json",...t}),settings_partial_update:(e,t={})=>this.request({path:"/wp/v2/settings",method:"PATCH",body:e,type:b.UrlEncoded,format:"json",...t}),themes_list:(e,t={})=>this.request({path:"/wp/v2/themes",method:"GET",query:e,format:"json",...t}),themes_detail:(e,t={})=>this.request({path:`/wp/v2/themes/${e}`,method:"GET",format:"json",...t}),plugins_list:(e,t={})=>this.request({path:"/wp/v2/plugins",method:"GET",query:e,format:"json",...t}),plugins_create:(e,t={})=>this.request({path:"/wp/v2/plugins",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),plugins_detail:({plugin:e,...t},s={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"GET",query:t,format:"json",...s}),plugins_create2:(e,t,s={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),plugins_update:(e,t,s={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),plugins_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),plugins_delete:(e,t,s={})=>this.request({path:`/wp/v2/plugins/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),sidebars_list:(e,t={})=>this.request({path:"/wp/v2/sidebars",method:"GET",query:e,format:"json",...t}),sidebars_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:"GET",query:t,format:"json",...s}),sidebars_create:(e,t,s={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),sidebars_update:(e,t,s={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),sidebars_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),widget_types_list:(e,t={})=>this.request({path:"/wp/v2/widget-types",method:"GET",query:e,format:"json",...t}),widget_types_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/widget-types/${e}`,method:"GET",query:t,format:"json",...s}),widget_types_encode_create:(e,t,s={})=>this.request({path:`/wp/v2/widget-types/${e}/encode`,method:"POST",body:t,type:b.UrlEncoded,...s}),widget_types_render_create:(e,t,s={})=>this.request({path:`/wp/v2/widget-types/${e}/render`,method:"POST",body:t,type:b.UrlEncoded,...s}),widgets_list:(e,t={})=>this.request({path:"/wp/v2/widgets",method:"GET",query:e,format:"json",...t}),widgets_create:(e,t={})=>this.request({path:"/wp/v2/widgets",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),widgets_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"GET",query:t,format:"json",...s}),widgets_create2:(e,t,s={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),widgets_update:(e,t,s={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),widgets_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),widgets_delete:(e,t,s={})=>this.request({path:`/wp/v2/widgets/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),block_directory_search_list:(e,t={})=>this.request({path:"/wp/v2/block-directory/search",method:"GET",query:e,format:"json",...t}),pattern_directory_patterns_list:(e,t={})=>this.request({path:"/wp/v2/pattern-directory/patterns",method:"GET",query:e,format:"json",...t}),block_patterns_patterns_list:(e={})=>this.request({path:"/wp/v2/block-patterns/patterns",method:"GET",format:"json",...e}),block_patterns_categories_list:(e={})=>this.request({path:"/wp/v2/block-patterns/categories",method:"GET",format:"json",...e}),menu_locations_list:(e,t={})=>this.request({path:"/wp/v2/menu-locations",method:"GET",query:e,format:"json",...t}),menu_locations_detail:({location:e,...t},s={})=>this.request({path:`/wp/v2/menu-locations/${e}`,method:"GET",query:t,format:"json",...s}),font_collections_list:(e,t={})=>this.request({path:"/wp/v2/font-collections",method:"GET",query:e,format:"json",...t}),font_collections_detail:({slug:e,...t},s={})=>this.request({path:`/wp/v2/font-collections/${e}`,method:"GET",query:t,format:"json",...s})},this.userToProject={get_user_to_project:(e,t={})=>this.request({path:"/user_to_project/v1",method:"GET",query:e,...t}),add_user_create:(e,t={})=>this.request({path:"/user_to_project/v1/add_user",method:"POST",body:e,type:b.UrlEncoded,...t}),test_user_list:(e={})=>this.request({path:"/user_to_project/v1/test_user",method:"GET",...e})},this.counters={get_counters:(e,t={})=>this.request({path:"/counters/v1",method:"GET",query:e,...t}),increment_counter_partial_update:(e={})=>this.request({path:"/counters/v1/increment_counter",method:"PATCH",...e})},this.payment={get_payment:(e,t={})=>this.request({path:"/payment/v1",method:"GET",query:e,...t}),subscription_payment_create:(e,t={})=>this.request({path:"/payment/v1/subscription_payment",method:"POST",body:e,type:b.UrlEncoded,...t})},this.app={get_app:(e,t={})=>this.request({path:"/app/v1",method:"GET",query:e,...t}),app_init_create:(e,t={})=>this.request({path:"/app/v1/app_init",method:"POST",body:e,type:b.UrlEncoded,...t})},this.jwtAuth={get_jwt_auth:(e,t={})=>this.request({path:"/jwt-auth/v1",method:"GET",query:e,...t}),token_create:(e={})=>this.request({path:"/jwt-auth/v1/token",method:"POST",...e}),token_validate_create:(e={})=>this.request({path:"/jwt-auth/v1/token/validate",method:"POST",...e})},this.translations={translations_list:(e,t={})=>this.request({path:"/translations",method:"GET",query:e,...t}),post_translations:(e={})=>this.request({path:"/translations/v1",method:"POST",...e}),get_translations:(e,t={})=>this.request({path:"/translations/v1",method:"GET",query:e,...t}),get_translations2:(e,t={})=>this.request({path:`/translations/v1/${e}`,method:"GET",...t}),get_translations3:(e,t,s={})=>this.request({path:`/translations/v1/${t}/${e}`,method:"GET",...s})},this.wpOpenapi={get_wp_openapi:(e,t={})=>this.request({path:"/wp-openapi/v1",method:"GET",query:e,...t}),schema_list:(e,t={})=>this.request({path:"/wp-openapi/v1/schema",method:"GET",query:e,...t})},this.wpMailSmtp={get_wp_mail_smtp:(e,t={})=>this.request({path:"/wp-mail-smtp/v1",method:"GET",query:e,...t}),e_detail:(e,t={})=>this.request({path:`/wp-mail-smtp/v1/e/${e}`,method:"GET",...t})},this.wpSiteHealth={get_wp_site_health:(e,t={})=>this.request({path:"/wp-site-health/v1",method:"GET",query:e,...t}),tests_background_updates_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/background-updates",method:"GET",format:"json",...e}),tests_loopback_requests_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/loopback-requests",method:"GET",format:"json",...e}),tests_https_status_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/https-status",method:"GET",format:"json",...e}),tests_dotorg_communication_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/dotorg-communication",method:"GET",format:"json",...e}),tests_authorization_header_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/authorization-header",method:"GET",format:"json",...e}),directory_sizes_list:(e={})=>this.request({path:"/wp-site-health/v1/directory-sizes",method:"GET",...e}),tests_page_cache_list:(e={})=>this.request({path:"/wp-site-health/v1/tests/page-cache",method:"GET",...e})},this.wpBlockEditor={get_wp_block_editor:(e,t={})=>this.request({path:"/wp-block-editor/v1",method:"GET",query:e,...t}),url_details_list:(e,t={})=>this.request({path:"/wp-block-editor/v1/url-details",method:"GET",query:e,...t}),export_list:(e={})=>this.request({path:"/wp-block-editor/v1/export",method:"GET",...e}),navigation_fallback_list:(e={})=>this.request({path:"/wp-block-editor/v1/navigation-fallback",method:"GET",format:"json",...e})}}}},16403:()=>{},63779:()=>{},77199:()=>{}}]);