@emailmaker/emailmaker 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/asset-manifest.json +53 -57
- package/emailmaker-esm.js +1 -1
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/{iframe-eblock.73bcbc874fc3021cba78.html → iframe-eblock.06d3786ea0462c884b7e.html} +1 -1
- package/iframe/{iframe.73bcbc874fc3021cba78.html → iframe.06d3786ea0462c884b7e.html} +1 -1
- package/iframe/js/cssbeautify.js +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +1 -1
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/6677.6f28a0c0.css +1 -0
- package/static/js/160.c2020dc9.js +1 -0
- package/static/js/2059.6f21f841.js +2 -0
- package/static/js/{2208.115694e9.js → 2208.cb758bc6.js} +1 -1
- package/static/js/2299.afe87d63.chunk.js +1 -0
- package/static/js/2587.4ec88069.js +2 -0
- package/static/js/3447.63d0aafa.js +1 -0
- package/static/js/{3682.d155b110.js → 3682.4db8ba34.js} +2 -2
- package/static/js/5552.9e96baf9.js +1 -0
- package/static/js/723.e748d062.js +2 -0
- package/static/js/9154.7ebae9e2.js +1 -0
- package/static/js/9335.20ecdadf.js +1 -0
- package/static/js/9560.50289051.js +2 -0
- package/static/js/9593.8a0e7a2e.js +2 -0
- package/static/js/emailmaker_core.24103916.js +1 -0
- package/static/css/6677.3a2b7cfe.css +0 -1
- package/static/js/197.a135382e.js +0 -1
- package/static/js/2223.17806e9a.js +0 -2
- package/static/js/2464.2c009f8c.js +0 -2
- package/static/js/2575.b05c7813.js +0 -1
- package/static/js/3959.42824ee0.js +0 -1
- package/static/js/5552.c5a9c252.js +0 -1
- package/static/js/5606.a93f532c.js +0 -1
- package/static/js/5927.791b2edc.chunk.js +0 -1
- package/static/js/5957.d2ad88af.js +0 -2
- package/static/js/8236.cc02400e.js +0 -2
- package/static/js/8483.7b71c205.js +0 -1
- package/static/js/9328.74394e00.js +0 -1
- package/static/js/946.9512007a.js +0 -2
- package/static/js/emailmaker_core.21ced917.js +0 -1
- /package/static/js/{8236.cc02400e.js.LICENSE.txt → 2059.6f21f841.js.LICENSE.txt} +0 -0
- /package/static/js/{2223.17806e9a.js.LICENSE.txt → 2587.4ec88069.js.LICENSE.txt} +0 -0
- /package/static/js/{3682.d155b110.js.LICENSE.txt → 3682.4db8ba34.js.LICENSE.txt} +0 -0
- /package/static/js/{5957.d2ad88af.js.LICENSE.txt → 723.e748d062.js.LICENSE.txt} +0 -0
- /package/static/js/{2464.2c009f8c.js.LICENSE.txt → 9560.50289051.js.LICENSE.txt} +0 -0
- /package/static/js/{946.9512007a.js.LICENSE.txt → 9593.8a0e7a2e.js.LICENSE.txt} +0 -0
- /package/static/media/{ai-image.7c42c2e1.png → ai-image.png} +0 -0
- /package/static/media/{codicon.f13d28f3.ttf → codicon.ttf} +0 -0
- /package/static/media/{empty-image.1827d656.png → empty-image.png} +0 -0
- /package/static/media/{fb.ff103843.png → fb.png} +0 -0
- /package/static/media/{frame_dark.318d7ed5.png → frame_dark.png} +0 -0
- /package/static/media/{frame_light.22a9b4ec.png → frame_light.png} +0 -0
- /package/static/media/{frame_template_gallery.85693b39.png → frame_template_gallery.png} +0 -0
- /package/static/media/{ig.47a89992.png → ig.png} +0 -0
- /package/static/media/{sign_up_01.33327158.png → sign_up_01.png} +0 -0
- /package/static/media/{sign_up_01_blocks.5538cfdb.png → sign_up_01_blocks.png} +0 -0
- /package/static/media/{sign_up_02.d99d2aa6.png → sign_up_02.png} +0 -0
- /package/static/media/{sign_up_02_blocks.837fc2c9.png → sign_up_02_blocks.png} +0 -0
- /package/static/media/{sign_up_03.5545ffad.png → sign_up_03.png} +0 -0
- /package/static/media/{sign_up_03_blocks.126601f7.png → sign_up_03_blocks.png} +0 -0
- /package/static/media/{sign_up_04.398a4ca5.png → sign_up_04.png} +0 -0
- /package/static/media/{sign_up_04_blocks.255c5c07.png → sign_up_04_blocks.png} +0 -0
- /package/static/media/{sign_up_05.4c58df1b.png → sign_up_05.png} +0 -0
- /package/static/media/{sign_up_05_blocks.431b6844.png → sign_up_05_blocks.png} +0 -0
- /package/static/media/{tg.10f00452.png → tg.png} +0 -0
- /package/static/media/{tw.823a7736.png → tw.png} +0 -0
- /package/static/media/{video.854adea5.png → video.png} +0 -0
- /package/static/media/{vk.fe41df91.png → vk.png} +0 -0
- /package/static/media/{yd.c40d05dd.png → yd.png} +0 -0
- /package/static/media/{yt.4ac57e55.png → yt.png} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[3959],{67421:(e,t,s)=>{let a,o,r,i;s.d(t,{LA:()=>d}),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.ManParseControllerSite||(e.ManParseControllerSite={})),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:d,extraQuery:l,...n})=>{const h=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},m=this.mergeRequestParams(n,h);l&&(o=o?{...o,...l}:l);const u=o&&this.toQueryString(o),c=this.contentFormatters[a||i.Json],y=r||m.format,v=new Request(`${p||this.baseUrl||""}${s}${u?`?${u}`:""}`,{...m,headers:{...m.headers||{},...a&&a!==i.FormData?{"Content-Type":a}:{}},signal:(d?this.createAbortSignal(d):m.signal)||null,body:"undefined"===typeof e||null===e?null:c(e)});return this.customFetch(v).then((async e=>{const t=e;t.data=null,t.error=null,t.meta={request:v,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 d&&this.abortControllers.delete(d),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 d 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}),manParseControllerSite:(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-scheme",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)=>{let a,o,r,i,p,d,l,n,h,m,u,c,y,v,_,E,q,T,f,b;s.d(t,{RQ:()=>g,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,d;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={})),d||(d=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;t||(t=e.GetAuth||(e.GetAuth={})),s||(s=e.UsersRegisterCreate||(e.UsersRegisterCreate={})),a||(a=e.YandexCallbackCreate||(e.YandexCallbackCreate={})),o||(o=e.GoogleCallbackCreate||(e.GoogleCallbackCreate={}))}(p||(p={})),function(e){let t,s;t||(t=e.GetInbox||(e.GetInbox={})),s||(s=e.CheckInboxCreate||(e.CheckInboxCreate={}))}(d||(d={})),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={}))}(l||(l={})),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,d,l,n,h,m,u,c,y,v,_,E,q,T,f,b,P,g,w,U,j,C,D,$,k,G,S,L,A,O,F,R,M,B,N,W,H,I,x,Q,z,J,V,Y,K,X,Z,ee,te,se,ae,oe,re,ie,pe,de,le,ne,he,me,ue,ce,ye,ve,_e,Ee,qe,Te,fe,be,Pe,ge,we,Ue,je,Ce,De,$e,ke,Ge,Se,Le,Ae,Oe,Fe,Re,Me,Be,Ne,We,He,Ie,xe,Qe,ze,Je,Ve,Ye,Ke,Xe,Ze,et,tt,st,at,ot,rt,it,pt,dt,lt,nt,ht,mt,ut,ct,yt,vt,_t,Et,qt,Tt,ft,bt,Pt,gt,wt,Ut,jt,Ct,Dt,$t,kt,Gt,St,Lt,At,Ot,Ft,Rt,Mt,Bt,Nt,Wt,Ht,It,xt,Qt,zt,Jt,Vt,Yt,Kt,Xt,Zt,es,ts,ss,as,os,rs,is,ps,ds,ls,ns,hs,ms,us,cs,ys,vs,_s,Es,qs,Ts,fs,bs,Ps,gs,ws,Us,js,Cs,Ds,$s,ks,Gs,Ss,Ls,As,Os,Fs,Rs,Ms,Bs,Ns,Ws,Hs,Is,xs,Qs,zs,Js,Vs,Ys,Ks,Xs,Zs,ea,ta,sa,aa,oa,ra,ia,pa,da,la,na,ha,ma,ua,ca,ya,va,_a,Ea,qa,Ta,fa,ba,Pa,ga,wa,Ua,ja,Ca,Da,$a,ka,Ga,Sa,La,Aa,Oa,Fa,Ra,Ma,Ba,Na,Wa,Ha,Ia,xa,Qa,za,Ja,Va,Ya,Ka,Xa,Za,eo,to,so,ao,oo,ro,io,po,lo,no,ho,mo,uo,co,yo,vo,_o,Eo,qo,To,fo,bo,Po,go,wo,Uo,jo,Co,Do,$o,ko,Go,So,Lo,Ao,Oo,Fo,Ro,Mo,Bo,No,Wo,Ho,Io,xo,Qo,zo,Jo,Vo,Yo,Ko,Xo,Zo,er,tr,sr,ar,or,rr,ir,pr;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={})),d||(d=e.PostsDetail||(e.PostsDetail={})),l||(l=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={})),v||(v=e.PostsAutosavesDetail||(e.PostsAutosavesDetail={})),_||(_=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={})),P||(P=e.PagesUpdate||(e.PagesUpdate={})),g||(g=e.PagesPartialUpdate||(e.PagesPartialUpdate={})),w||(w=e.PagesDelete||(e.PagesDelete={})),U||(U=e.PagesRevisionsDetail||(e.PagesRevisionsDetail={})),j||(j=e.PagesRevisionsDetail2||(e.PagesRevisionsDetail2={})),C||(C=e.PagesRevisionsDelete||(e.PagesRevisionsDelete={})),D||(D=e.PagesAutosavesDetail||(e.PagesAutosavesDetail={})),$||($=e.PagesAutosavesCreate||(e.PagesAutosavesCreate={})),k||(k=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={})),W||(W=e.MenuItemsCreate||(e.MenuItemsCreate={})),H||(H=e.MenuItemsDetail||(e.MenuItemsDetail={})),I||(I=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={})),Y||(Y=e.MenuItemsAutosavesDetail2||(e.MenuItemsAutosavesDetail2={})),K||(K=e.BlocksList||(e.BlocksList={})),X||(X=e.BlocksCreate||(e.BlocksCreate={})),Z||(Z=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={})),de||(de=e.BlocksAutosavesCreate||(e.BlocksAutosavesCreate={})),le||(le=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={})),ve||(ve=e.TemplatesList||(e.TemplatesList={})),_e||(_e=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={})),Pe||(Pe=e.TemplatesDelete||(e.TemplatesDelete={})),ge||(ge=e.TemplatePartsRevisionsDetail||(e.TemplatePartsRevisionsDetail={})),we||(we=e.TemplatePartsRevisionsDetail2||(e.TemplatePartsRevisionsDetail2={})),Ue||(Ue=e.TemplatePartsRevisionsDelete||(e.TemplatePartsRevisionsDelete={})),je||(je=e.TemplatePartsAutosavesDetail||(e.TemplatePartsAutosavesDetail={})),Ce||(Ce=e.TemplatePartsAutosavesCreate||(e.TemplatePartsAutosavesCreate={})),De||(De=e.TemplatePartsAutosavesDetail2||(e.TemplatePartsAutosavesDetail2={})),$e||($e=e.TemplatePartsList||(e.TemplatePartsList={})),ke||(ke=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={})),We||(We=e.GlobalStylesDetail||(e.GlobalStylesDetail={})),He||(He=e.GlobalStylesCreate||(e.GlobalStylesCreate={})),Ie||(Ie=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={})),Ye||(Ye=e.NavigationUpdate||(e.NavigationUpdate={})),Ke||(Ke=e.NavigationPartialUpdate||(e.NavigationPartialUpdate={})),Xe||(Xe=e.NavigationDelete||(e.NavigationDelete={})),Ze||(Ze=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={})),dt||(dt=e.FontFamiliesCreate2||(e.FontFamiliesCreate2={})),lt||(lt=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={})),vt||(vt=e.EblockList||(e.EblockList={})),_t||(_t=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={})),Pt||(Pt=e.EblockRevisionsDetail||(e.EblockRevisionsDetail={})),gt||(gt=e.EblockRevisionsDetail2||(e.EblockRevisionsDetail2={})),wt||(wt=e.EblockRevisionsDelete||(e.EblockRevisionsDelete={})),Ut||(Ut=e.EblockAutosavesDetail||(e.EblockAutosavesDetail={})),jt||(jt=e.EblockAutosavesCreate||(e.EblockAutosavesCreate={})),Ct||(Ct=e.EblockAutosavesDetail2||(e.EblockAutosavesDetail2={})),Dt||(Dt=e.EmailList||(e.EmailList={})),$t||($t=e.EmailCreate||(e.EmailCreate={})),kt||(kt=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={})),Wt||(Wt=e.NotificationList||(e.NotificationList={})),Ht||(Ht=e.NotificationCreate||(e.NotificationCreate={})),It||(It=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={})),Yt||(Yt=e.NotificationAutosavesCreate||(e.NotificationAutosavesCreate={})),Kt||(Kt=e.NotificationAutosavesDetail2||(e.NotificationAutosavesDetail2={})),Xt||(Xt=e.PaymentList||(e.PaymentList={})),Zt||(Zt=e.PaymentCreate||(e.PaymentCreate={})),es||(es=e.PaymentDetail||(e.PaymentDetail={})),ts||(ts=e.PaymentCreate2||(e.PaymentCreate2={})),ss||(ss=e.PaymentUpdate||(e.PaymentUpdate={})),as||(as=e.PaymentPartialUpdate||(e.PaymentPartialUpdate={})),os||(os=e.PaymentDelete||(e.PaymentDelete={})),rs||(rs=e.ProjectList||(e.ProjectList={})),is||(is=e.ProjectCreate||(e.ProjectCreate={})),ps||(ps=e.ProjectDetail||(e.ProjectDetail={})),ds||(ds=e.ProjectCreate2||(e.ProjectCreate2={})),ls||(ls=e.ProjectUpdate||(e.ProjectUpdate={})),ns||(ns=e.ProjectPartialUpdate||(e.ProjectPartialUpdate={})),hs||(hs=e.ProjectDelete||(e.ProjectDelete={})),ms||(ms=e.ProjectRevisionsDetail||(e.ProjectRevisionsDetail={})),us||(us=e.ProjectRevisionsDetail2||(e.ProjectRevisionsDetail2={})),cs||(cs=e.ProjectRevisionsDelete||(e.ProjectRevisionsDelete={})),ys||(ys=e.SubscriptionList||(e.SubscriptionList={})),vs||(vs=e.SubscriptionCreate||(e.SubscriptionCreate={})),_s||(_s=e.SubscriptionDetail||(e.SubscriptionDetail={})),Es||(Es=e.SubscriptionCreate2||(e.SubscriptionCreate2={})),qs||(qs=e.SubscriptionUpdate||(e.SubscriptionUpdate={})),Ts||(Ts=e.SubscriptionPartialUpdate||(e.SubscriptionPartialUpdate={})),fs||(fs=e.SubscriptionDelete||(e.SubscriptionDelete={})),bs||(bs=e.UserPromocodesList||(e.UserPromocodesList={})),Ps||(Ps=e.UserPromocodesCreate||(e.UserPromocodesCreate={})),gs||(gs=e.UserPromocodesDetail||(e.UserPromocodesDetail={})),ws||(ws=e.UserPromocodesCreate2||(e.UserPromocodesCreate2={})),Us||(Us=e.UserPromocodesUpdate||(e.UserPromocodesUpdate={})),js||(js=e.UserPromocodesPartialUpdate||(e.UserPromocodesPartialUpdate={})),Cs||(Cs=e.UserPromocodesDelete||(e.UserPromocodesDelete={})),Ds||(Ds=e.TypesList||(e.TypesList={})),$s||($s=e.TypesDetail||(e.TypesDetail={})),ks||(ks=e.StatusesList||(e.StatusesList={})),Gs||(Gs=e.StatusesDetail||(e.StatusesDetail={})),Ss||(Ss=e.TaxonomiesList||(e.TaxonomiesList={})),Ls||(Ls=e.TaxonomiesDetail||(e.TaxonomiesDetail={})),As||(As=e.CategoriesList||(e.CategoriesList={})),Os||(Os=e.CategoriesCreate||(e.CategoriesCreate={})),Fs||(Fs=e.CategoriesDetail||(e.CategoriesDetail={})),Rs||(Rs=e.CategoriesCreate2||(e.CategoriesCreate2={})),Ms||(Ms=e.CategoriesUpdate||(e.CategoriesUpdate={})),Bs||(Bs=e.CategoriesPartialUpdate||(e.CategoriesPartialUpdate={})),Ns||(Ns=e.CategoriesDelete||(e.CategoriesDelete={})),Ws||(Ws=e.TagsList||(e.TagsList={})),Hs||(Hs=e.TagsCreate||(e.TagsCreate={})),Is||(Is=e.TagsDetail||(e.TagsDetail={})),xs||(xs=e.TagsCreate2||(e.TagsCreate2={})),Qs||(Qs=e.TagsUpdate||(e.TagsUpdate={})),zs||(zs=e.TagsPartialUpdate||(e.TagsPartialUpdate={})),Js||(Js=e.TagsDelete||(e.TagsDelete={})),Vs||(Vs=e.MenusList||(e.MenusList={})),Ys||(Ys=e.MenusCreate||(e.MenusCreate={})),Ks||(Ks=e.MenusDetail||(e.MenusDetail={})),Xs||(Xs=e.MenusCreate2||(e.MenusCreate2={})),Zs||(Zs=e.MenusUpdate||(e.MenusUpdate={})),ea||(ea=e.MenusPartialUpdate||(e.MenusPartialUpdate={})),ta||(ta=e.MenusDelete||(e.MenusDelete={})),sa||(sa=e.WpPatternCategoryList||(e.WpPatternCategoryList={})),aa||(aa=e.WpPatternCategoryCreate||(e.WpPatternCategoryCreate={})),oa||(oa=e.WpPatternCategoryDetail||(e.WpPatternCategoryDetail={})),ra||(ra=e.WpPatternCategoryCreate2||(e.WpPatternCategoryCreate2={})),ia||(ia=e.WpPatternCategoryUpdate||(e.WpPatternCategoryUpdate={})),pa||(pa=e.WpPatternCategoryPartialUpdate||(e.WpPatternCategoryPartialUpdate={})),da||(da=e.WpPatternCategoryDelete||(e.WpPatternCategoryDelete={})),la||(la=e.GroupList||(e.GroupList={})),na||(na=e.GroupCreate||(e.GroupCreate={})),ha||(ha=e.GroupDetail||(e.GroupDetail={})),ma||(ma=e.GroupCreate2||(e.GroupCreate2={})),ua||(ua=e.GroupUpdate||(e.GroupUpdate={})),ca||(ca=e.GroupPartialUpdate||(e.GroupPartialUpdate={})),ya||(ya=e.GroupDelete||(e.GroupDelete={})),va||(va=e.BlockfolderList||(e.BlockfolderList={})),_a||(_a=e.BlockfolderCreate||(e.BlockfolderCreate={})),Ea||(Ea=e.BlockfolderDetail||(e.BlockfolderDetail={})),qa||(qa=e.BlockfolderCreate2||(e.BlockfolderCreate2={})),Ta||(Ta=e.BlockfolderUpdate||(e.BlockfolderUpdate={})),fa||(fa=e.BlockfolderPartialUpdate||(e.BlockfolderPartialUpdate={})),ba||(ba=e.BlockfolderDelete||(e.BlockfolderDelete={})),Pa||(Pa=e.BlocktagsList||(e.BlocktagsList={})),ga||(ga=e.BlocktagsCreate||(e.BlocktagsCreate={})),wa||(wa=e.BlocktagsDetail||(e.BlocktagsDetail={})),Ua||(Ua=e.BlocktagsCreate2||(e.BlocktagsCreate2={})),ja||(ja=e.BlocktagsUpdate||(e.BlocktagsUpdate={})),Ca||(Ca=e.BlocktagsPartialUpdate||(e.BlocktagsPartialUpdate={})),Da||(Da=e.BlocktagsDelete||(e.BlocktagsDelete={})),$a||($a=e.EmailtagsList||(e.EmailtagsList={})),ka||(ka=e.EmailtagsCreate||(e.EmailtagsCreate={})),Ga||(Ga=e.EmailtagsDetail||(e.EmailtagsDetail={})),Sa||(Sa=e.EmailtagsCreate2||(e.EmailtagsCreate2={})),La||(La=e.EmailtagsUpdate||(e.EmailtagsUpdate={})),Aa||(Aa=e.EmailtagsPartialUpdate||(e.EmailtagsPartialUpdate={})),Oa||(Oa=e.EmailtagsDelete||(e.EmailtagsDelete={})),Fa||(Fa=e.FolderList||(e.FolderList={})),Ra||(Ra=e.FolderCreate||(e.FolderCreate={})),Ma||(Ma=e.FolderDetail||(e.FolderDetail={})),Ba||(Ba=e.FolderCreate2||(e.FolderCreate2={})),Na||(Na=e.FolderUpdate||(e.FolderUpdate={})),Wa||(Wa=e.FolderPartialUpdate||(e.FolderPartialUpdate={})),Ha||(Ha=e.FolderDelete||(e.FolderDelete={})),Ia||(Ia=e.UsersList||(e.UsersList={})),xa||(xa=e.UsersCreate||(e.UsersCreate={})),Qa||(Qa=e.UsersDetail||(e.UsersDetail={})),za||(za=e.UsersCreate2||(e.UsersCreate2={})),Ja||(Ja=e.UsersUpdate||(e.UsersUpdate={})),Va||(Va=e.UsersPartialUpdate||(e.UsersPartialUpdate={})),Ya||(Ya=e.UsersDelete||(e.UsersDelete={})),Ka||(Ka=e.UsersMeList||(e.UsersMeList={})),Xa||(Xa=e.UsersMeCreate||(e.UsersMeCreate={})),Za||(Za=e.UsersMeUpdate||(e.UsersMeUpdate={})),eo||(eo=e.UsersMePartialUpdate||(e.UsersMePartialUpdate={})),to||(to=e.UsersMeDelete||(e.UsersMeDelete={})),so||(so=e.UsersApplicationPasswordsDetail||(e.UsersApplicationPasswordsDetail={})),ao||(ao=e.UsersApplicationPasswordsCreate||(e.UsersApplicationPasswordsCreate={})),oo||(oo=e.UsersApplicationPasswordsDelete||(e.UsersApplicationPasswordsDelete={})),ro||(ro=e.UsersApplicationPasswordsIntrospectDetail||(e.UsersApplicationPasswordsIntrospectDetail={})),io||(io=e.UsersApplicationPasswordsDetail2||(e.UsersApplicationPasswordsDetail2={})),po||(po=e.UsersApplicationPasswordsCreate2||(e.UsersApplicationPasswordsCreate2={})),lo||(lo=e.UsersApplicationPasswordsUpdate||(e.UsersApplicationPasswordsUpdate={})),no||(no=e.UsersApplicationPasswordsPartialUpdate||(e.UsersApplicationPasswordsPartialUpdate={})),ho||(ho=e.UsersApplicationPasswordsDelete2||(e.UsersApplicationPasswordsDelete2={})),mo||(mo=e.CommentsList||(e.CommentsList={})),uo||(uo=e.CommentsCreate||(e.CommentsCreate={})),co||(co=e.CommentsDetail||(e.CommentsDetail={})),yo||(yo=e.CommentsCreate2||(e.CommentsCreate2={})),vo||(vo=e.CommentsUpdate||(e.CommentsUpdate={})),_o||(_o=e.CommentsPartialUpdate||(e.CommentsPartialUpdate={})),Eo||(Eo=e.CommentsDelete||(e.CommentsDelete={})),qo||(qo=e.SearchList||(e.SearchList={})),To||(To=e.BlockRendererDetail||(e.BlockRendererDetail={})),fo||(fo=e.BlockRendererCreate||(e.BlockRendererCreate={})),bo||(bo=e.BlockTypesList||(e.BlockTypesList={})),Po||(Po=e.BlockTypesDetail||(e.BlockTypesDetail={})),go||(go=e.BlockTypesDetail2||(e.BlockTypesDetail2={})),wo||(wo=e.SettingsList||(e.SettingsList={})),Uo||(Uo=e.SettingsCreate||(e.SettingsCreate={})),jo||(jo=e.SettingsUpdate||(e.SettingsUpdate={})),Co||(Co=e.SettingsPartialUpdate||(e.SettingsPartialUpdate={})),Do||(Do=e.ThemesList||(e.ThemesList={})),$o||($o=e.ThemesDetail||(e.ThemesDetail={})),ko||(ko=e.PluginsList||(e.PluginsList={})),Go||(Go=e.PluginsCreate||(e.PluginsCreate={})),So||(So=e.PluginsDetail||(e.PluginsDetail={})),Lo||(Lo=e.PluginsCreate2||(e.PluginsCreate2={})),Ao||(Ao=e.PluginsUpdate||(e.PluginsUpdate={})),Oo||(Oo=e.PluginsPartialUpdate||(e.PluginsPartialUpdate={})),Fo||(Fo=e.PluginsDelete||(e.PluginsDelete={})),Ro||(Ro=e.SidebarsList||(e.SidebarsList={})),Mo||(Mo=e.SidebarsDetail||(e.SidebarsDetail={})),Bo||(Bo=e.SidebarsCreate||(e.SidebarsCreate={})),No||(No=e.SidebarsUpdate||(e.SidebarsUpdate={})),Wo||(Wo=e.SidebarsPartialUpdate||(e.SidebarsPartialUpdate={})),Ho||(Ho=e.WidgetTypesList||(e.WidgetTypesList={})),Io||(Io=e.WidgetTypesDetail||(e.WidgetTypesDetail={})),xo||(xo=e.WidgetTypesEncodeCreate||(e.WidgetTypesEncodeCreate={})),Qo||(Qo=e.WidgetTypesRenderCreate||(e.WidgetTypesRenderCreate={})),zo||(zo=e.WidgetsList||(e.WidgetsList={})),Jo||(Jo=e.WidgetsCreate||(e.WidgetsCreate={})),Vo||(Vo=e.WidgetsDetail||(e.WidgetsDetail={})),Yo||(Yo=e.WidgetsCreate2||(e.WidgetsCreate2={})),Ko||(Ko=e.WidgetsUpdate||(e.WidgetsUpdate={})),Xo||(Xo=e.WidgetsPartialUpdate||(e.WidgetsPartialUpdate={})),Zo||(Zo=e.WidgetsDelete||(e.WidgetsDelete={})),er||(er=e.BlockDirectorySearchList||(e.BlockDirectorySearchList={})),tr||(tr=e.PatternDirectoryPatternsList||(e.PatternDirectoryPatternsList={})),sr||(sr=e.BlockPatternsPatternsList||(e.BlockPatternsPatternsList={})),ar||(ar=e.BlockPatternsCategoriesList||(e.BlockPatternsCategoriesList={})),or||(or=e.MenuLocationsList||(e.MenuLocationsList={})),rr||(rr=e.MenuLocationsDetail||(e.MenuLocationsDetail={})),ir||(ir=e.FontCollectionsList||(e.FontCollectionsList={})),pr||(pr=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={}))}(v||(v={})),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={}))}(_||(_={})),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,d;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={})),d||(d=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 P{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:d,...l})=>{const n=("boolean"===typeof t?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},h=this.mergeRequestParams(l,n);d&&(o=o?{...o,...d}:d);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 g extends P{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}),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}),payment_list:(e,t={})=>this.request({path:"/wp/v2/payment",method:"GET",query:e,format:"json",...t}),payment_create:(e,t={})=>this.request({path:"/wp/v2/payment",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),payment_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/payment/${e}`,method:"GET",query:t,format:"json",...s}),payment_create2:(e,t,s={})=>this.request({path:`/wp/v2/payment/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),payment_update:(e,t,s={})=>this.request({path:`/wp/v2/payment/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),payment_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/payment/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),payment_delete:(e,t,s={})=>this.request({path:`/wp/v2/payment/${e}`,method:"DELETE",body:t,type:b.UrlEncoded,format:"json",...s}),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}),user_promocodes_list:(e,t={})=>this.request({path:"/wp/v2/user_promocodes",method:"GET",query:e,format:"json",...t}),user_promocodes_create:(e,t={})=>this.request({path:"/wp/v2/user_promocodes",method:"POST",body:e,type:b.UrlEncoded,format:"json",...t}),user_promocodes_detail:({id:e,...t},s={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"GET",query:t,format:"json",...s}),user_promocodes_create2:(e,t,s={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"POST",body:t,type:b.UrlEncoded,format:"json",...s}),user_promocodes_update:(e,t,s={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"PUT",body:t,type:b.UrlEncoded,format:"json",...s}),user_promocodes_partial_update:(e,t,s={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:"PATCH",body:t,type:b.UrlEncoded,format:"json",...s}),user_promocodes_delete:(e,t,s={})=>this.request({path:`/wp/v2/user_promocodes/${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})}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[5552],{13329:(e,t,i)=>{i.d(t,{D3:()=>u,RS:()=>l});var n=i(45934),s=i(92810),o=i(41664),a=i(23397),r=i(23580),c=i(95152);const d=(0,o.Q)();function l(e,t,i){e instanceof c.m||(e=(0,r.My)(e));e.getOrCreateInstance(d,(()=>new a.v)).fire({id:t,payload:i})}const u=(e,t)=>{const i=function(e,t){return(0,r.My)(e).getOrCreateInstance(d,(()=>new a.v)).addEventListener}((0,n.Pj)());(0,s.useEffect)((()=>{const n=i((({id:i,payload:n})=>{i===e&&t(n)}));return()=>n.dispose()}),[i,e,t])}},95152:(e,t,i)=>{i.d(t,{m:()=>a});var n=i(23397),s=i(77509);function o(e){return`service_container_${e}`}class a extends s.j{constructor(e){super(),this._parent=e,this._injections=Object.create(null),this._emitter=this.addDisposable(new n.v)}inject(e,t,i){if("function"===typeof t){let n=this._injections[e],s="function"===typeof n?n():n;const o=this._injections[e]=()=>(s=t(this,s),s);i&&o()}else this._injections[e]=()=>t;this._emitter.fire(e)}_find(e){var t;return this._injections[e]||(null===(t=this._parent)||void 0===t?void 0:t._find(e))}_onInject(e,t,i=new s.j){return i.addDisposable(this._emitter.addEventListener((n=>{e===n&&(i.dispose(),t(this.getInstance(n)))}))),this._parent&&i.addDisposable(this._parent._onInject(e,t,i)),this.addDisposable(i),i}getInstance(e){const t=this._find(e);if("function"===typeof t)return t()}getOrCreateInstance(e,t){const i=this._find(e);if("function"===typeof i)return i();{const i=t(this);return this.inject(e,i),i}}getInstanceAsync(e){const t=this._find(e);return"function"===typeof t?Promise.resolve(t()):new Promise((t=>this._onInject(e,(()=>t(this.getInstance(e))))))}addService(e,t){const i=o(e);this.inject(i,((e,i=[])=>i.indexOf(t)<0?[...i,t]:i));const n=new s.j;return n.addDispose((()=>{this.inject(i,((e,i=[])=>i.filter((e=>e!==t))))})),n}getServices(e){var t;const i=o(e);return[...this.getInstance(i)||[],...(null===(t=this._parent)||void 0===t?void 0:t.getServices(e))||[]]}createChild(){return new a(this)}dispose(){this._injections=Object.create(null)}}},23397:(e,t,i)=>{i.d(t,{v:()=>s});var n=i(77509);class s extends n.j{constructor(e){super(),this._options=e,this._listeners=[],this.fire=e=>{if(!this.isDisposed()){let t;const i=[...this._listeners];for(const n of i){if(!1===t)return!1;t=t instanceof Promise?t.then((e=>!1!==e&&!this.isDisposed()&&n(e))).catch((e=>console.log(e))):n(e)}return t}},this.addEventListener=e=>{const t=this._listeners;var i;(t.push(e),1===t.length)&&((null===(i=this._options)||void 0===i?void 0:i.onFirstListenerAdd)&&this._options.onFirstListenerAdd());return{dispose:()=>{const i=t.indexOf(e);var n;i>=0&&(t.splice(i),t.length||(null===(n=this._options)||void 0===n?void 0:n.onFirstListenerAdd)&&this._options.onLastListenerRemove())}}},this.event=this.addEventListener}}let o;!function(e){function t(e){let t;const i=new s({onFirstListenerAdd(){t=e(i.fire)},onLastListenerRemove(){t.dispose()}});return i.event}e.snapshot=t,e.filter=function(e,i){return t((t=>e((e=>i(e)&&t(e)))))},e.map=function(e,i){return t((t=>e((e=>t(i(e))))))}}(o||(o={}))},93982:(e,t,i)=>{i.d(t,{Zc:()=>d,_q:()=>l,cZ:()=>r,dB:()=>c,ml:()=>u});var n=i(45934),s=i(41664),o=i(23580),a=i(55654);function r(e){return(0,s.Q)(e)}function c(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt))}function d(e,t){return(0,o.My)(e).getOrCreateInstance(t,(()=>new a.lt)).event}function l(e){return u(e).event}function u(e){return c((0,n.Pj)(),e)}},32269:(e,t,i)=>{i.d(t,{Cb:()=>Z,Cl:()=>p,DI:()=>L,Dx:()=>T,EU:()=>N,HT:()=>G,Hy:()=>W,Id:()=>h,Np:()=>D,Qi:()=>U,Tr:()=>$,X7:()=>F,XZ:()=>x,Yq:()=>v,Z1:()=>H,_9:()=>z,_q:()=>X,au:()=>k,d_:()=>B,el:()=>b,ez:()=>E,fq:()=>g,gq:()=>O,i0:()=>P,iV:()=>R,jG:()=>d.j,p6:()=>C,sh:()=>V,vl:()=>l.v,wB:()=>I});var n=i(74267),s=i(92810),o=i(85163),a=i(1741),r=i.n(a),c=i(45695),d=i(77509),l=i(23397),u=i(71210),m=i(70082);const h=e=>{Object.keys(o.A9).forEach((t=>{"onboarding_success"!==e.get(o.A9[t])&&e.remove(o.A9[t])}))};function p(e){const t=(0,n.A)(e);return isNaN(t)?new Date(e):t}const v=(e,t,i=!1)=>{Date;const n=new Date,s=e.getDate()===n.getDate()&&e.getMonth()===n.getMonth()&&e.getFullYear()===n.getFullYear();if(i&&s){const i=Math.floor((n-e)/1e3),s=Math.floor(i/60),o=Math.floor(s/60);if(i<60)return t("Just now");if(o>0){const e=s%60;return`${o} ${t("hour","hours",o)} ${e} ${t("minute","minutes",e)}`}return`${s} ${t("minute","minutes",s)}`}{const t=new Intl.DateTimeFormat(navigator.language,{dateStyle:"short"}),i=new Intl.DateTimeFormat(navigator.language,{timeStyle:"short"});return t.format(e)+" "+i.format(e)}},g=e=>{const t=e.match(/(\(copy\))( \d+)?$/),i=null===t||void 0===t?void 0:t[1],n=null===t||void 0===t?void 0:t[2];return i?n?`${e.slice(0,-n.length)} ${+n.slice(1)+1}`:`${e} 2`:`${e} (copy)`};function f(e,t,i){const n=new Map,s=new RegExp(`(${t})(.*?)(${i})`,"gis");return e=e.replaceAll(s,((e,t,i,s)=>{const o=(0,u.l)();return n.set(o,i),t+o+s})),{escapes:n,html:e}}function _(e,t){let i=[];for(const[n,s]of t){const{escapes:t,html:o}=f(e,n,s);e=o,i.push([n,s,t])}return{escapes:i,html:e}}function y(e,t,i,n){const s=new RegExp(`(${t})(.*?)(${i})`,"gis");return e.replaceAll(s,((e,t,i,s)=>{const o=n.get(i);return"string"===typeof o?t+o+s:e}))}const w=/<title>(.*)<\/title>/gm,b=(e,t)=>{let{escapes:i,html:n}=_(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return n=n.replaceAll(w,((e,i)=>i===t?`<title>${g(i)}</title>`:e)),function(e,t){for(const[i,n,s]of t)e=y(e,i,n,s);return e}(n,i.reverse())};function E(e){let{html:t}=_(e,[["<style.*?>","<\\/style>"],["<script.*?>","<\\/script>"],["<\\!--","--\x3e"]]);return[...t.matchAll(w)].map((e=>e[1])).find((e=>!!e))}const S="bottomRight",C=(e,t,i=S)=>{var n,s,o,a;t.error({innerException:e.error instanceof Error?e.error:void 0,message:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(n=e.error)||void 0===n||null===(s=n.data)||void 0===s?void 0:s.code)||(null===(o=e.error)||void 0===o?void 0:o.status)||e.error}}),description:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(a=e.error.data)||void 0===a?void 0:a.message)||e.error.error}}),placement:i})},I=(e,t,i=S)=>{t.success({message:e,placement:i})},A="ascend",j="descend",M="desc",O=e=>{switch(e){case A:return"asc";case j:return M;default:return""}},D=e=>{switch(e){case"asc":return A;case M:return j;default:return""}},T=e=>{const t=document.createElement("div");return t.className=e||"resizer",t},k=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/,L=e=>new Promise(((t,i)=>{let n=new Image;n.src=e,n.addEventListener("load",(()=>{t("success")})),n.addEventListener("error",(()=>{i("error")})),n=null})),N=(e,t)=>{for(const i of t)"object"===typeof e.properties&&(e=e.properties[i]);return e},B=e=>e instanceof Array?e.map((e=>({label:e,value:e}))):Object.keys(e).map((t=>({label:e[t],value:t}))),P=(e,t,i=!0)=>{const n=Object.keys(t);for(const s of n){const n=t[s];void 0!==n&&null!==n&&(e[s]=i&&"object"===typeof n?P(e[s]||{},n,!0):n)}return e},R=e=>new Promise(((t,i)=>{r().load({google:{families:[e]},classes:!1,active:t,inactive:i})})),x=(e,t)=>{t&&e(t)},z=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{document.querySelectorAll(".block-search__preview").forEach((e=>e.remove()));const n=document.getElementById("iframe-scroll-top"),s=document.getElementById("iframe-scroll-bottom"),a=document.getElementById("email_iframe"),r=document.body.getBoundingClientRect().height,c=a.getClientRects()[0];c.top<0&&(n.style.display="block"),c.top+c.height>r&&(s.style.display="block");const d={operation:o.Ru.SANDBOX_BLOCK_INSERT,settings:{blockHTML:i||null,targetBlock:null,project:"emailmaker"}};t.dataTransfer.setData("Text",JSON.stringify(d)),e(d)}),[e])},U=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i,n)=>{const s=document.getElementById("iframe-scroll-top"),a=document.getElementById("iframe-scroll-bottom"),r=document.getElementById("email_iframe"),c=document.body.getBoundingClientRect().height,d=r.getClientRects()[0];d.top<0&&(s.style.display="block"),d.top+d.height>c&&(a.style.display="block");const l={operation:o.Ru.SANDBOX_ATOM_INSERT,settings:{atomHTML:i.html||null,targetBlock:null}};n(i)&&t.dataTransfer.setData("Text",JSON.stringify(l)),e(l)}),[e])},V=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_BLOCK_INSERT,action:"insert",settings:{blockHTML:i}})}),[e])},F=()=>{const e=(0,c.XW)();return(0,s.useCallback)(((t,i)=>{e({operation:o.Ru.SANDBOX_ATOM_INSERT,action:"insert",settings:{atomHTML:i}})}),[e])},H=(e,t)=>{t.success({maskClosable:!0,centered:!0,title:e("Coming soon"),content:e("The feature is under development."),okText:e("Ok. I'll be waiting"),onOk:()=>{}})},Z=()=>{const e=(0,c.XW)();return(t,i)=>{e({operation:o.Ru.SANDBOX_ELEMENT_SETTINGS_SET,settings:t,type:i})}},X=(e,t="")=>{var i,n;const s=[];return null===(i=e._embedded)||void 0===i||null===(n=i["wp:term"])||void 0===n||n.filter((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})).forEach((e=>{const t=e[0].taxonomy;s[t]||(s[t]=[]),s[t]=e.map((e=>({id:e.id,name:e.name,children:e.children}))),s[s.length]=s[t]})),""!==t&&s.length?s[t]:s},G=(e,t="")=>{var i,n,s,o,a;return(null===(i=e._embedded)||void 0===i||null===(n=i["wp:term"])||void 0===n||null===(s=n.find((e=>{var i;return!!e.length&&(!t||(null===(i=e[0])||void 0===i?void 0:i.taxonomy)===t)})))||void 0===s||null===(o=s.find((e=>{var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.startsWith("project_")})))||void 0===o||null===(a=o.children)||void 0===a?void 0:a.map((e=>({id:e.id,name:e.name,count:e.count}))))||null},W=(e,t)=>{const i=e.target,n=t.getBoundingClientRect().height,s=i.getBoundingClientRect().height-n,o=e.clientY-t.getBoundingClientRect().top-30,a=-s*(Math.min(Math.max(o,0),n-60)/(n-60));i.style.transform=`translateY(${a}px)`},$=({target:e})=>{e.style.transform="translateY(0)"}},20116:(e,t,i)=>{function n(e){return t=>{const i=t.query,n=t.queryFn||((e,t,n,s)=>s(i(e)));if(n){let i;if("object"===typeof e){const{queryFn:n,...s}=e;i=n;for(const e of Object.keys(s))t[e]=s[e]}else i=e;t.query=void 0,t.queryFn=async(e,t,s,o)=>{try{let a=await i(e);return"function"===typeof a&&(a=await a((async(e,i=t,a=s,r=o)=>{const c=await n(e,i,a,r);if(c.error)throw c.error;return c.data}))),{data:a,error:null}}catch(a){return{error:a}}}}}}function s(){return n((()=>{}))}function o(e,t){const i={},s=Object.keys(t);for(const o of s)i[o]=n(t[o]);e.enhanceEndpoints({endpoints:i})}function a(e,t){for(const i of Object.keys(t))t[i](e)}i.d(t,{BD:()=>a,BX:()=>o,nM:()=>n,pl:()=>s})},98589:(e,t,i)=>{function n(e,t){if(e===t)return!0;if("object"===typeof e&&e&&"object"===typeof t&&t){const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const o of i)if(!n(e[o],t[o]))return!1;return!0}return!1}function s(e,t){if(!e)return t;const i={};for(const s of Object.keys(t))n(t[s],e[s])||(i[s]=t[s]);return i}i.d(t,{g:()=>s})},88896:(e,t,i)=>{i.d(t,{X:()=>s});const n=Symbol("Error");function s(e){return Promise.all(e.map((e=>e instanceof Promise?e.catch((e=>(console.log(e),n))):e))).then((e=>e.filter((e=>e!==n))))}},91738:(e,t,i)=>{i.d(t,{AU:()=>l});var n=i(90854),s=i(58689),o=i(44824),a=i(85974),r=i(91391);const c=e=>function(e){var t;return function(e){return"___SCRIPT"===e.tagName}(e)&&(null===(t=e.src)||void 0===t?void 0:t.startsWith(r.gP))}(e)||(0,a.Nh)(e)||(0,n.BF)(e),d=e=>{if(c(e))return!0;if((0,n.vq)(e)||(0,n.wz)(e))for(const t of e.querySelectorAll("*"))if(c(t))return!0;return!1};async function l(e,t){"string"===typeof e&&(e={code:e});const i=e.code?await(0,s.PJ)(e.code||"",[s.qy],e.utm_parameters,(async e=>{void 0===t&&(t=d(e)),t&&await(0,o.e)(e,"html")})):"",n=e.code&&t?await(0,s.PJ)(e.code||"",[s.qy],e.utm_parameters,(async e=>{await(0,o.e)(e,"amp")})):"";return{...e,compiled:{html:i,ampHtml:n}}}},91366:(e,t,i)=>{i.d(t,{Qq:()=>g,PL:()=>_,KA:()=>f,wz:()=>y});var n=i(33288),s=i(41664),o=i(15230),a=i(32269),r=i(55654);class c extends r.IO{async execute([e],t){for(const i of t){const t=await i(e);t&&(void 0===t.id&&(t.id=e.value.id),e.value=t)}return e.value}}var d=i(98589);class l extends r.lt{}var u=i(56991);class m extends a.jG{constructor(...e){super(...e),this._items=new Map,this._onChangeEmitter=new r.HN,this.onChange=this._onChangeEmitter.event}async _getOrCreate(e,t){const i=this._items;let n;if(i.has(e))try{n=await i.get(e)}catch{t&&(n=await t())}else t&&(n=await t(),n&&this._onChangeEmitter.fire());return n}async _addOrUpdate(e,t){let i;const n=this._items;if(n.has(e))try{i=await n.get(e)}catch{}const s=await t(i);return(0,u.bD)(i,s)||this._onChangeEmitter.fire(),s}entries(){return Promise.all([...this._items.entries()].map((([e,t])=>t.then((t=>[e,t]))))).then((e=>e.filter((([e,t])=>!!t))))}values(){return Promise.all([...this._items.values()].map((e=>e)).filter((e=>!!e)))}getOrCreate(e,t){let i=this._getOrCreate(e,(()=>t(e)));return this._items.set(e,i),i}addOrUpdate(e,t){let i=this._addOrUpdate(e,t);return this._items.set(e,i),i}add(e,t){const i=Promise.resolve(t);return this._items.set(e,i),i}remove(e){if(this._items.has(e)){const t=this._items.get(e);return this._items.delete(e),this._onChangeEmitter.fire(),t}return Promise.resolve(void 0)}async setAll(e){try{this.suspendChange();const t=[],i=new Set(Array.from(e).map((([e,t])=>e))),n=(await this.entries()).filter((([e,t])=>!i.has(e)));for(const[s,o]of e)t.push(this.addOrUpdate(s,(()=>o))),i.add(s);for(const[e]of n)t.push(this.remove(e));return await Promise.all(t),n}finally{this.resumeChange()}}clear(){this._items.clear(),this._onChangeEmitter.fire()}suspendChange(){this._onChangeEmitter.suspend()}resumeChange(){this._onChangeEmitter.resume()}}var h=i(71210);class p extends a.jG{constructor(...e){super(...e),this._cache=new m,this._readEmitter=new r.lt,this._saveEmitter=this.addDisposable(new c),this._removeEmitter=this.addDisposable(new l),this._foreignCache=Object.create(null),this.handlerRead=this._readEmitter.event,this.onSave=this._saveEmitter.event,this.onRemove=this._removeEmitter.event,this.onChange=this._cache.onChange}async get(e){return this._cache.getOrCreate(e,(async t=>Object.assign({id:e},...(await this._readEmitter.fire(e)).filter((e=>!!e)))))}get cache(){return this._cache}byForeignKey(e){let t=this._foreignCache[e];if(!t){const i=this.addDisposable(new a.jG);i.addDispose((()=>delete this._foreignCache[e]));const n=i.addDisposable(new m),s=i.addDisposable(new r.lt);t=this._foreignCache[e]={get:async(t,i={})=>(await n.getOrCreate(t,(async()=>{try{const i=function(e=[]){if((e=e.filter((e=>e))).length<=1)return e[0];let t=new Map;for(const i of e)for(const e of i)if(void 0!==e.id){let i=t.get(e.id)||{};t.set(e.id,{...i,...e})}return[...t].map((([e,t])=>t))}(await s.fire(t))||[];for(const n of i)n[e]=t,await this._cache.add(n.id,n);return i}catch{return[]}})),function(e,{filter:t,order:i="asc",orderBy:n,page:s,pageSize:o=20}={}){const a=e.length;let r=e.length;if(void 0!==t){const i=Object.keys(t);r=(e=e.filter((e=>{for(const n of i){const i=e[n],s=t[n];return"id"===n||"string"!==typeof i?i===s:"string"===typeof s&&i.startsWith(s)}return!0}))).length}return n&&(e=e.sort(((e,t)=>(e[n]>t[n]?1:t[n]>e[n]?-1:0)*("asc"===i?1:-1)))),void 0!==s&&(e=e.slice(o*(s-1),o*s-1)),{data:e,filteredTotal:r,total:a,totalPages:Math.floor(a/o)}}(await this._cache.values()||[],i)),first:(e,i={})=>t.get(e,{...i,page:1,pageSize:1}).then((e=>e[0])),handleRead:s.event,clear(){n.clear()},dispose(){i.dispose()}}}return t}async create(e,{source:t="",silent:i}={}){let n=e;return i||(n=await this._saveEmitter.fire({prev:void 0,patch:e,value:n,source:t})),void 0===n.id&&(n.id=(0,h.l)()),await this._cache.addOrUpdate(n.id,(()=>n))}async update(e,t,{source:i="",silent:n}={}){return this._cache.addOrUpdate(e,(async e=>{let s=e?{...e,...t}:t;if(!n)return t=e?(0,d.g)(e,t):t,await this._saveEmitter.fire({prev:e,patch:t,value:s,source:i})}))}async remove(e,{source:t="",silent:i}={}){const n=await this._cache.remove(e);return i||await this._removeEmitter.fire({value:n,source:t}),n}refresh(){this._cache.clear();for(const e of Object.values(this._foreignCache))e.clear()}suspendChange(){this._cache.suspendChange()}resumeChange(){this._cache.resumeChange()}}i(18398);var v=i(39990);function g(){const e=(0,s.Q)();return t=>n.di.getOrCreateInstance(t,e,(()=>new p))}function f(e){const t=n.di.getInstance(e,o.ax);if(!t)throw new Error("Failed");return t}function _(e){const t=n.di.getInstance(e,o.Lz);if(!t)throw new Error("Failed");return t}async function y(e){const t=f(e),i=await t.dispatch(v.Q2.endpoints.getMe.initiate({},{forceRefetch:!0}));return Promise.resolve(i.data)}},13437:(e,t,i)=>{i.d(t,{A:()=>a,i:()=>o});var n=i(71210),s=i(814);function o({code:e,...t},i){var s,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(s=a.projectSlice)||void 0===s||null===(o=s.project)||void 0===o?void 0:o.id}}function a({html:e,renderGuid:t,...i},n){const o=n.getState(),{project:a}=o.configSlice;return(0,s.TB)({...i,code:e,project:void 0===a?i.project:a,guid:void 0,link:void 0,status:void 0,slug:void 0,password:void 0,comment_status:void 0,template:void 0,blocktags:void 0,project_title:void 0,ping_status:void 0,lock:void 0,tag:void 0,is_template:void 0})}},25181:(e,t,i)=>{function n(e,t){var i;return{severity:Number(t.severity),message:t.message,source:t.source,startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn,get startOffset(){return e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn})},get endOffset(){return e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn})},tags:null===(i=t.tags)||void 0===i?void 0:i.map((e=>Number(e)))}}i.d(t,{B:()=>n})},91253:(e,t,i)=>{i.d(t,{I:()=>o,y:()=>s});var n=i(814);function s(e,t,i){const n=t.getState();var s,o;void 0===i&&(i=void 0===e.post?null===(s=n.emailSlice)||void 0===s||null===(o=s.email)||void 0===o?void 0:o.id:e.post);return{...e,content:e.content?`<p>${e.content}</p>`:"",post:i}}function o(e,t){return(0,n.TB)({...e,link:void 0,comment_status:void 0})}},81304:(e,t,i)=>{i.d(t,{E:()=>a,I:()=>o});var n=i(71210),s=i(814);function o({code:e,...t},i){var s,o;const a=i.getState();return{...t,...e?{html:e}:{},renderGuid:(0,n.l)(),project:null===(s=a.projectSlice)||void 0===s||null===(o=s.project)||void 0===o?void 0:o.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function a({html:e,renderGuid:t,...i},n){const o=n.getState(),{project:a,config:r}=o.configSlice;return(0,s.TB)({...i,code:e,project:void 0===a?i.project:a,utm_parameters:r.UTMEnabled?i.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0,compiled:(0,s.TB)({html:e,ampHtml:e&&""})})}},4453:(e,t,i)=>{i.d(t,{E:()=>o,_:()=>s});var n=i(814);function s({code:e,...t},i,n){const s=i.getState();var o,a;void 0===n&&(n=void 0===t.parent?null===(o=s.emailSlice)||void 0===o||null===(a=o.email)||void 0===a?void 0:a.id:t.parent);return{...t,...e?{html:e}:{},parent:n}}function o({html:e,...t},i){return(0,n.TB)({...t,code:e,guid:void 0,compiled:(0,n.TB)({html:e,ampHtml:e&&""})})}},23036:(e,t,i)=>{i.d(t,{Xy:()=>a,bg:()=>c,yc:()=>r});var n=i(20116),s=i(55701),o=i(91366);const a=(0,o.Qq)(),r=(0,o.Qq)();function c(e){const t=a(e),i=t.byForeignKey("project"),c=r(e),d=c.byForeignKey("parent"),{dispatch:l,getState:u}=(0,o.KA)(e),m=(0,o.PL)(e);m.addDisposable(t.onChange((()=>l(s.VM.util.invalidateTags(["Blocks"]))))),m.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.html===e.html&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,n.BX)(s.VM,{async getBlocks(e){const t={};e.name&&(t.title=e.name),e.type&&(t.type=e.type);return await i.get(e.projectId,{filter:t,page:e.page,pageSize:e.pageSize,order:e.order,orderBy:e.orderby}).then((({data:e})=>e))},getBlocksSchema:()=>e=>e({}),getParentEmailBlocks:e=>t=>t(e),getTemplateBlocks:e=>t=>t(e),async getBlock(e){const t=u().projectSlice.project.id;return i.first(t,{filter:{id:e}})},getBlockHistory:async({blockId:e,page:t=1})=>({...await d.get(e,{page:t}),args:{blockId:e,page:t}}),addBlock:e=>async i=>{const n=await t.create(e);return u().configSlice.config.preventSendDataToEM||i(n).catch((e=>console.log(e))),n},editBlock:({blockId:e,...i})=>t.update(e,i),deleteBlock:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveBlock:({blockId:e,body:t})=>c.create({...t,parent:e})})}},72788:(e,t,i)=>{i.d(t,{B:()=>c,D:()=>r});var n=i(18777),s=i(91366),o=i(68415),a=i(20116);const r=(0,s.Qq)();function c(e){const t=r(e),i=t.byForeignKey("post"),{dispatch:c}=(0,s.KA)(e);(0,s.PL)(e).addDisposable(t.onChange((()=>c(n.Jg.util.invalidateTags(["Comments"]))))),(0,a.BX)(n.Jg,{getComments:e=>i.get(e).then((({data:e})=>e)),addComment({subjectId:e,author:i,parent:n,content:s,author_name:a,author_email:r,targetId:c}){const d={post:e,author:i,author_name:a,author_email:r,content:s,parent:n,target_id:c,date:(0,o.A)(new Date),author_avatar_urls:{}};return t.create(d)},deleteComment:e=>t.remove(e),editComment:({commentId:e,...i})=>t.update(e,i),deleteTarget:e=>t.update(e,{target_id:""})})}},87265:(e,t,i)=>{i.d(t,{Av:()=>r,jw:()=>c,sE:()=>d});var n=i(17581),s=i(91366),o=i(71210),a=i(20116);const r=(0,s.Qq)(),c=(0,s.Qq)();function d(e){const t=r(e),i=c(e),d=i.byForeignKey("parent"),{dispatch:l,getState:u}=(0,s.KA)(e),m=(0,s.PL)(e);m.addDisposable(t.onChange((async()=>{l(n.GY.util.invalidateTags(["Email"]))}))),m.addDisposable(i.onChange((()=>{l(n.GY.util.invalidateTags(["EmailAutosaves"]))}))),m.addDisposable(t.onSave((({prev:e,patch:t,value:i})=>{(e=e?{...e,...t}:t)&&i.subject===e.subject&&i.html===e.html&&i.preheader===e.preheader&&i.title===e.title&&(i.renderGuid=e.renderGuid)}),Number.MIN_VALUE)),(0,a.BX)(n.GY,{getEmails:e=>[],getTemplateEmails:e=>t=>t(e),getEmail:async e=>await t.get(e),getEmailHistory:({emailId:e,page:t=1})=>(d.clear(),async n=>{if(u().configSlice.config.revisionService){const s=await n({emailId:e,page:t});for(const e of s.data)i.cache.add(e.id,e);return s}return{...await d.get(e,{page:t}),args:{emailId:e,page:t}}}),async addEmail({source:e,...i}){const n=await t.create(i,{source:e});return n.renderGuid||(n.renderGuid=(0,o.l)()),n},editEmail:e=>async i=>{let{emailId:n,source:s,...o}=e;return u().configSlice.config.revisionService&&await i(e),t.update(n,o,{source:s})},deleteEmail:e=>t.remove("object"===typeof e?e.id:e),addTag:e=>e,getDeletableTag:([e,t])=>[],autoSaveEmail:({emailId:e,body:t})=>async n=>(u().configSlice.config.revisionService&&await n({emailId:e,body:t}),await i.create({...t,parent:e,modified:(new Date).toString()}))})}},43347:(e,t,i)=>{i.d(t,{Ri:()=>u,uS:()=>m});var n=i(15230),s=i(63531),o=i(33288),a=i(55654),r=i(93982),c=i(13522),d=i(20116);const l="tmp",u=o.di.createIdentifier();o.di.createIdentifier();function m(e){const t=o.di.getInstance(e,n.Lz);if(!t)throw new Error("Something was wrong");const i=t.addDisposable(new a.lt);o.di.inject(e,u,i);const m=(0,r.dB)(e,c.A.ON_SEND_TESTEMAIL_ID),h=(0,r.dB)(e,c.A.ON_SEND_LIVEPREVIEW_ID);(0,d.BX)(s.yH,{uploadImage:t=>async s=>{const a=e.getState(),{project:r}=a.configSlice,c=t.folder===l?null:await i.fire({file:t.file,project:r}),d=c?c.find((e=>e)):null;return d?[{file_url:d,project:r}]:s({...t,user_id:String((await o.di.getInstanceAsync(e,n.sZ)).app_id)})},sendTestEmail:t=>async i=>{const s=e.getState(),{project:a}=s.configSlice;(await m.fire({project:a,email_id:t.email_id,subject:t.subject,email:t.email,html:t.html,from_name:t.from_name})).some((e=>!1===e))&&await i({...t,user_id:String((await o.di.getInstanceAsync(e,n.sZ)).app_id)})},async sendLivePreview(t){const i=e.getState(),{project:n}=i.configSlice;(await h.fire({project:n,id:t.email,subject:t.subject,html:t.content})).some((e=>!1===e))},sendShortLink:e=>t=>t(e)})}},14999:(e,t,i)=>{i.d(t,{A:()=>b});var n=i(20116),s=i(53200);var o=i(84612);var a=i(91366),r=i(39990);var c=i(15230),d=i(47036);var l=i(95679);var u=i(62689);var m=i(84568);var h=i(46312);var p=i(65119);var v=i(43347),g=i(83351);var f=i(23036),_=i(72788),y=i(94381);var w=i(87265);const b={addUserToProjectApiMock:function(){s.B.enhanceEndpoints({endpoints:{addUserToProject:(0,n.pl)()}})},AiApiMock:function(){(0,n.BX)(o.Zs,{sendMessage:({body:e})=>t=>t({body:e}),getDialog:e=>t=>t(e)})},authorizationApiMock:function(e){let t={id:"0",username:"",email:"",password:"",code_editor:{},theme:"light",locale:(0,a.KA)(e).getState().userSlice.currentUser.locale,counters:{},avatar_urls:{},autosaves:!0};r.Q2.enhanceEndpoints({endpoints:{userRegistration:(0,n.pl)(),getSchema:(0,n.nM)((()=>e=>e({}))),getMe:(0,n.nM)((()=>t)),editMe:(0,n.nM)((e=>t={...t,...e})),getSubscriptions:(0,n.nM)((()=>[]))}})},blocksApiMock:f.bg,commentsApiMock:_.B,emailsApiMock:w.sE,emailRawApiMock:function(){(0,n.BX)(d.f,{getEmailRaw({emailId:e,secret_hash:t}){throw new Error(c.f5)}})},imageApiMock:function(){(0,n.BX)(l.CL,{sendAiImageRequest:function({body:e}){return t=>t({body:e})},getAiImage:e=>t=>t(e)})},localesApiMock:function(e){(0,n.BX)(y.Ad,{getLocale:async({id:e})=>t=>t({id:e}),getLocales:()=>async e=>e({})})},notificationsApiMock:function(){(0,n.BX)(u.vx,{getNotifications:e=>[],notificationShown({id:e,datetime:t}){throw new Error(c.f5)}})},projectsApiMock:function(e){let t;(0,n.BX)(m.Nq,{getProjects:(e={page:1})=>[],getProject:e=>i=>t||(t=i(e).then((t=>({...t,id:e})))),addProject(e){throw new Error},editProject:({projectId:e,...i})=>t=t.then((t=>({...t,...i,id:e}))),deleteProject(e){throw new Error}})},proxyApiMock:function(){(0,n.BX)(h.Z8,{getFile({url:e,tryFetch:t=!0,type:i}){throw new Error(c.f5)}})},recoverPasswordApiMock:function(){(0,n.BX)(p.yR,{resetPassword(e){throw new Error(c.f5)},setPassword(e){throw new Error(c.f5)},validateRecoverPasswordCode(e){throw new Error(c.f5)}})},saveFileApiMock:v.uS,tokenApiMock:function(){(0,n.BX)(g.OV,{tokenCreate:e=>t=>t(e),tokenValidate:()=>e=>e({})})}}},62410:(e,t,i)=>{i.d(t,{r:()=>y});var n=i(33288),s=i(14386),o=i(18398),a=i(47358),r=i(86286),c=i(39990),d=i(99751),l=i(15230),u=i(13652);function m(e){var t;return{fontSize:e.fontSize,fontFamily:e.fontFamily,tabSize:e.tabSize,wordWrap:"off"!==e.wordWrap,minimap:null===(t=e.minimap)||void 0===t?void 0:t.enabled,insertSpaces:e.insertSpaces}}var h=i(39217),p=i(32269),v=i(91366),g=i(93982),f=i(13522),_=i(48802);const y=(0,s.l)((e=>{const t=(0,v.PL)(e),i=(0,_.m)((0,g.Zc)(e,f.A.READ_LOCALE)),s=t.addDisposable(new _.U(i)),y=e.dispatch,w=n.di.getInstanceAsync(e,l.sZ).then((e=>(null===e||void 0===e?void 0:e.app_config)||{}),(e=>(console.log(e),{}))),b=(0,u.y)(),E=async(...t)=>{const i=Object.assign({},...t),n=Object.assign({},...t.map((e=>e.editor))),{locale:s="ru_RU",theme:r,codeModeDirection:d,...l}=i;void 0!==d&&("none"===d?y((0,a.N6)(!1)):(y((0,a.N6)(!0)),y((0,a.Uf)(d))));const u=await(0,v.wz)(e);var m;await y(c.Q2.endpoints.editMe.initiate({...u,code_editor:n?(m=n,{font_size:m.fontSize,font_family:m.fontFamily,tab_size:m.tabSize,word_wrap:m.wordWrap,minimap:m.minimap,insert_spaces:m.insertSpaces}):u.code_editor,locale:"string"===typeof s?s:u.locale,theme:"string"===typeof r?r:u.theme})),y((0,o._R)(l))};let S;return{setOptions:b.decorate((async({config:i={},project:a,user:r,advancedConfigs:l,handleReadLocale:u})=>{var m;s.setListener(u);let g=await w,f=l||g.advancedConfigs,_=localStorage.getItem("configSwither"),b=f&&f[(null===i||void 0===i?void 0:i.mode)||_||"pro"]||(null===(m=(0,d.$)((null===i||void 0===i?void 0:i.mode)||_||"pro"))||void 0===m?void 0:m.config);if(b={...b,configSwither:i.configSwither||!1},await E(b,g,i),y((0,o.bn)(String(a))),y((0,o.ee)(f)),S&&S.dispose(),S=new p.jG,r){let i={...await(0,v.wz)(e),email:"",password:"",...r,id:"number"===typeof r.id?String(r.id):r.id};void 0===r.id&&delete i.id,y(c.Q2.endpoints.editMe.initiate(i)),r.id&&t.addDisposable(n.di.addService(e,h.jY,{execute(e){e.headers.append("user_id",i.id)}}))}a&&t.addDisposable(n.di.addService(e,h.jY,{execute(e){e.headers.append("project_id",String(a))}}))})),instance:{setConfig:b.decorate((async e=>{var t;let i=null===(t=(0,d.$)((null===e||void 0===e?void 0:e.mode)||"pro"))||void 0===t?void 0:t.config;await E(i,await w,e)})),getConfig:()=>function(e){var t,i;const n=e.getState(),s=n[r.Ay.name],c=n[o.Ay.name],d=n[a.Ay.name];return{...c.config,theme:null===(t=s.currentUser)||void 0===t?void 0:t.theme,locale:null===(i=s.currentUser)||void 0===i?void 0:i.locale,codeModeDirection:d.isCodeMode?d.codeModeDirection:"none",editor:m(s.monacoOptions)}}(e),updateConfig:b.decorate((e=>E(e))),handleReadLocale:i}}}))},33746:(e,t,i)=>{i.d(t,{F:()=>c});var n=i(44141),s=i(33288),o=i(15230),a=i(14386),r=i(39217);const c=(0,a.l)((e=>{let t=!0;return{setOptions(i){if(i.hasOwnProperty("baseUrl")){const n=s.di.getInstance(e,r.eT),o=n.getOptions(),a=(0,r.qT)(i.baseUrl);o.baseUrl!==a&&(n.setOptions({baseUrl:a}),t=!0)}if(t){const i=s.di.getInstance(e,n.Pz);s.di.inject(e,o.sZ,(async(e,t)=>t||i.app.app_init_create({}).then((({data:e})=>e))),!0),t=!0}}}}))},19209:(e,t,i)=>{i.d(t,{F:()=>m});var n=i(14386),s=i(14315),o=i(33288),a=i(41664),r=i(39217),c=i(13652),d=i(85163);const l=(0,a.Q)(),u=(0,a.Q)(),m=(0,n.l)((e=>({setOptions(t){const i=(0,c.y)(),n=(0,r.mg)(e);o.di.addService(e,r.jY,{execute:i.decorate((async i=>{if(t.jwtAuth){let a=o.di.getInstance(e,l),r=o.di.getInstance(e,u);if(!r&&!a){const i=await n.jwtAuth.token_create({body:t.jwtAuth,type:s.cM.Json});if(i.error)throw r=d.ff,o.di.inject(e,u,d.ff),new Error(d.ff);a=i.data.token,o.di.inject(e,l,a)}r||i.headers.append("authorization",`Bearer ${a}`)}}))})}})))},91514:(e,t,i)=>{i.d(t,{h:()=>d});var n=i(14386),s=i(41664),o=i(33288),a=i(39217),r=i(47271);const c=(0,s.Q)(),d=(0,n.l)((e=>{let t;return o.di.addService(e,a.jY,{execute:async i=>{if(t){const t=await o.di.getInstanceAsync(e,c);t&&i.headers.append("authorization",`Bearer ${t}`)}}}),{setOptions(i){t!==i.getAuthToken&&(t=i.getAuthToken,o.di.inject(e,c,void 0),o.di.inject(e,c,(async(e,i)=>{try{let e=await i;var n;return t?e&&1e3*(null===(n=(0,r.iU)(e))||void 0===n?void 0:n.exp)>function(){const e=new Date;return e.valueOf()-60*e.getTimezoneOffset()*1e3}()?e:await t(e):""}catch(s){return console.log(s),""}}),!0))}}}))},14386:(e,t,i)=>{function n(e){return async function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...await e(t)||{}}}}function s(e){return async t=>{const i={},n=[];for(const s of e)n.push(await s(t));for(const e of n)Object.assign(i,e.instance);return{instance:i,setOptions:e=>{const t=n.map((t=>t.setOptions(e)));return t.some((e=>e instanceof Promise))?Promise.all(t).then((()=>{})):void 0},dispose:()=>{for(const e of n)e.dispose()}}}}i.d(t,{E:()=>s,l:()=>n})},893:(e,t,i)=>{i.d(t,{m:()=>c});var n=i(17126),s=i(92810),o=i(45934),a=i(18398),r=i(70082);const c=({children:e})=>{const[t,i]=(0,s.useState)(),c=(0,o.d4)(a.p5);return(0,r.jsxs)("div",{className:"App blocks-app blocks-plugin",children:[c&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:c}}),(0,r.jsx)(n.fh.Provider,{value:t,children:e}),(0,r.jsx)("div",{ref:i,className:"blocks-modal-container"})]})}},97001:(e,t,i)=>{i.d(t,{P:()=>I});var n=i(32269),s=i(93556),o=i(23580),a=i(71210),r=i(56991),c=i(13329),d=i(28316),l=i(18398),u=i(13437),m=i(81304),h=i(4453),p=i(91253),v=i(33288),g=i(15230),f=i(13652),_=i(13522),y=i(93982),w=i(91738),b=i(17581),E=i(39217),S=i(25181);const C="EXTERNAL";class I extends n.jG{constructor(e){super(),this._store=e,this._emailTemplateCache=Object.create(null),this._prevCommand=void 0,this._prevContent=void 0,this._dataSources=void 0,this._eventLock=void 0,this._queue=(0,f.y)(),this._model=void 0,this._currentEmail=void 0,this.show=this._queue.decorate(this._show,this),this.save=this._queue.decorate(this._save,this);const t=(0,o.My)(e);this._dataSources=(0,s.zC)(t),this._eventLock=(0,s.QQ)(t);const i=(0,y.Zc)(e,_.A.ON_MODEL_CHANGE),n=(0,y.Zc)(e,_.A.ON_EMAIL_CHANGED_ID);this.addDisposable(i((e=>{this._model=e}))),this.addDisposable(n((e=>{this._currentEmail=e}))),this.addDisposable(v.di.addService(e,E.jY,{execute:e=>{var t;null!==(t=this._currentEmail)&&void 0!==t&&t.id&&!this._currentEmail.isNew&&e.headers.append("email_id",this._currentEmail.id)}}))}async getProject(){const e=await v.di.getInstanceAsync(this._store,g.sZ);return null===e||void 0===e?void 0:e.project}async getTemplateEmail(e){e=String(e);let t=this._emailTemplateCache[e];if(!t){const i=await this._store.dispatch(b.GY.endpoints.getTemplateEmail.initiate(e));i.error?console.log(i.error):(t={...i.data,lock:!1,parent_email:e},delete t.id)}return t}async getBlocks(){const{cache:e}=this._dataSources.blocks,t=await this.getProject();return(await e.values()).filter((e=>e.project===t)).map((e=>(0,u.A)(e,this._store)))}async getComments(){const{cache:e}=this._dataSources.comments,t=await this.getEmail();return(await e.values()).filter((e=>e.post===t.id)).map((e=>(0,p.I)(e,this._store)))}async getEmailRevisions(){const{cache:e}=this._dataSources.emailRevisions,t=await this.getEmail();return(await e.values()).filter((e=>e.parent===t.id)).map((e=>(0,h.E)(e,this._store)))}async setBlocks(e=[]){const{cache:t}=this._dataSources.blocks;await t.setAll(e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,u.i)(e,this._store)])))}async setEmailRevisions(e=[],t){const{cache:i}=this._dataSources.emailRevisions,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,h._)(e,this._store,t)]));await i.setAll(n)}async setComments(e=[],t){const{cache:i}=this._dataSources.comments,n=e.filter((e=>void 0!==e.id)).map((e=>[e.id,(0,p.y)(e,this._store,t)]));await i.setAll(n)}async getEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,m.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,w.AU)(i,t.isAmp)}async compileEmail(){const e=this._store.getState(),t=e.emailSlice.email.id?e.emailSlice.email:e.newEmailSlice.email,i=(0,m.E)({...t,html:this._model?this._model.getValue():t.html},this._store);return(0,w.AU)(i,t.isAmp)}async setEmail(e,t,i=!1){const n=this._dataSources.emails,s=n.cache,o=await this.getProject();e="string"===typeof e?{code:e}:{...e};let r=(0,m.I)(e,this._store);const c=r.id;let d=c;if(void 0!==c?r={...await n.get(c),...r,project:o}:(r={...r,project:o},d=(0,a.l)(),delete r.project),t){const e=await this.getTemplateEmail(String(t));e&&(r={...e,id:String(t),...r})}await s.setAll([[d,r]]),i&&this._runShowCommand({isNew:void 0===c,id:d,project:o})}_runShowCommand(e){const t={...e,type:"email"};this._prevCommand&&!(0,r.bD)(this._prevCommand,e)?(0,c.RS)(this._store,d._1,t):this._store.dispatch((0,l.Ir)(t)),this._prevCommand=e}async _show(e){try{if(!e)return;if(this._eventLock.suspendChange(),e!==this._prevContent){this._prevContent=e;const{email:t,blocks:i,autosaves:n,comments:o,templateId:a}=(0,s.Uw)(e),r=[];r.push(this.setBlocks(i)),void 0!==t.id&&(r.push(this.setComments(o)),r.push(this.setEmailRevisions(n))),r.push(this.setEmail(t,Number(a),!0)),await Promise.all(r)}}catch(t){console.log(t)}finally{this._eventLock.resumeChange()}return new Promise((e=>{(0,y.Zc)(this._store,_.A.ON_EMAIL_INIT_ID)((()=>e()))}))}_save(){return new Promise((async e=>{const t=this._dataSources.emails,i=this.addDisposable(t.onSave((({value:t,source:n})=>{n===C&&(i.dispose(),e((0,m.E)(t,this._store)))}),Number.MIN_VALUE));(0,c.RS)(this._store,d.Kp,C)}))}getCodeErrors(){var e;const t=this._store.getState(),i=this._model;return i?null===(e=t.emailSlice.problemsList)||void 0===e?void 0:e.map((e=>(0,S.B)(i,e))):void 0}}},44376:(e,t,i)=>{i.d(t,{y:()=>f});var n=i(23580),s=i(93556),o=i(81304),a=i(13437),r=i(91253),c=i(4453),d=i(32269),l=i(48802),u=i(13522),m=i(93982),h=i(18398),p=i(98589),v=i(55654),g=i(25181);class f extends d.jG{constructor(e){super(),this._store=e,this._events=void 0,this._model=void 0,this._listenersUpdaters=void 0;const t=(0,m.Zc)(e,u.A.ON_MODEL_CHANGE);this.addDisposable(t((e=>{this._model=e})))}_get(){const e=this._store,t=(0,n.My)(e),{blocks:i,emails:d,comments:f,emailRevisions:_}=(0,s.zC)(t),y=(0,m.Zc)(e,u.A.ON_SAVEBUTTON_CLICK_ID),w=(0,m.Zc)(e,u.A.ON_PREVIOUSBUTTON_CLICK_ID),b=(0,m.Zc)(e,u.A.ON_NEXTBUTTON_CLICK_ID),E=(0,m.Zc)(e,u.A.ON_EMAIL_INIT_ID),S=(0,m.Zc)(e,u.A.ON_EMAIL_CHANGED_ID),C=(0,m.Zc)(e,u.A.ON_CONTENT_CHANGED_ID),I=(0,m.Zc)(e,u.A.ON_SEND_TESTEMAIL_ID),A=(0,m.Zc)(e,u.A.ON_SEND_EMAIL_MODAL_ID),j=(0,m.Zc)(e,u.A.ON_EMAIL_CLONE_ID),M=(0,m.Zc)(e,u.A.ON_SHARE_ID),O=(0,m.Zc)(e,u.A.ON_SHOW_PREVIEW_ID),D=(0,m.Zc)(e,u.A.ON_SEND_LIVEPREVIEW_ID),T=(0,m.Zc)(e,u.A.ON_CODE_VALIDATE_ID);return{handleValidate:(0,l.m)(T,(e=>this._model?e.map((e=>(0,g.B)(this._model,e))):[])),handleReadEmail:(0,l.m)(d.handlerRead,(e=>e),(t=>t&&(0,o.I)(t,e))),handleSaveEmail:(0,l.m)(d.onSave,(function({prev:t,patch:i,value:n,source:s}){const a=t?(0,o.E)(t,e):void 0;return{prev:a,patch:(0,p.g)(a,(0,o.E)(i,e)),value:(0,o.E)(n,e),source:s}}),(t=>t?(0,o.I)(t,e):void 0)),handleRemoveEmail:(0,l.m)(d.onRemove,(({value:t,source:i})=>({value:(0,o.E)(t,e),source:i})),(()=>{})),handleReadBlocks:(0,l.m)(i.byForeignKey("project").handleRead,(t=>(0,h.jY)(e.getState())||String(t)),(t=>null===t||void 0===t?void 0:t.map((t=>(0,a.i)(t,e))))),handleSaveBlock:(0,l.m)(i.onSave,(function({prev:t,patch:i,value:n,source:s}){const o=t?(0,a.A)(t,e):void 0;return{prev:o,patch:(0,p.g)(o,(0,a.A)(i,e)),value:(0,a.A)(n,e),source:s}}),(t=>t?(0,a.i)(t,e):void 0)),handleRemoveBlock:(0,l.m)(i.onRemove,(({value:t,source:i})=>({value:(0,a.A)(t,e),source:i})),(()=>{})),handleReadComments:(0,l.m)(f.byForeignKey("post").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,r.y)(t,e))))),handleSaveComment:(0,l.m)(f.onSave,(function({prev:t,patch:i,value:n,source:s}){const o=t?(0,r.I)(t,e):void 0;return{prev:o,patch:(0,p.g)(o,(0,r.I)(i,e)),value:(0,r.I)(n,e),source:s}}),(t=>t?(0,r.y)(t,e):void 0)),handleRemoveComment:(0,l.m)(f.onRemove,(({value:t,source:i})=>({value:(0,r.I)(t,e),source:i})),(()=>{})),handleReadEmailRevisions:(0,l.m)(_.byForeignKey("parent").handleRead,(e=>e),(t=>null===t||void 0===t?void 0:t.map((t=>(0,c._)(t,e))))),handleEmailAutosave:(0,l.m)(_.onSave,(function({prev:t,patch:i,value:n,source:s}){return{value:(0,c.E)(n,e),source:s}}),(t=>t?(0,c._)(t,e):void 0)),handleRemoveEmailAutoSave:(0,l.m)(_.onRemove,(({value:t,source:i})=>({value:(0,c.E)(t,e),source:i})),(()=>{})),handleEmailChanged:(0,l.m)((0,v.sg)(S,100),(t=>(0,o.E)(t,e))),handleEmailInit:(0,l.m)(E,(t=>(0,o.E)(t,e))),handlePreviousButtonClick:(0,l.m)(w,(t=>(0,o.E)(t,e))),handleNextButtonClick:(0,l.m)(b,(t=>(0,o.E)(t,e))),handleSaveButtonClick:(0,l.m)(y,(t=>(0,o.E)(t,e))),handleHtmlChanged:(0,l.m)((0,v.sg)(C,100)),handleTestEmailSend:(0,l.m)(I,(({html:e,...t})=>({...t,code:e,compiled:{html:e,ampHtml:""}}))),handleTestEmailModal:(0,l.m)(A,(t=>(0,o.E)(t,e))),handleCloneEmail:(0,l.m)(j,(t=>(0,o.E)(t,e))),handleShareEmail:(0,l.m)(M),handlePreviewEmail:(0,l.m)(O),handleLivePreviewEmail:(0,l.m)(D)}}get(){return this._events||(this._events=this._get())}setOptions(e={}){const t=this.get();let i=this._listenersUpdaters;if(!i){i=this._listenersUpdaters={};for(const e of Object.keys(t))i[e]=this.addDisposable(new l.U(t[e]))}for(const n of Object.keys(t))i[n].setListener(e[n])}}},93556:(e,t,i)=>{i.d(t,{QQ:()=>r,Uw:()=>c,zC:()=>a});var n=i(23036),s=i(72788),o=i(87265);function a(e){return{emails:(0,o.Av)(e),blocks:(0,n.Xy)(e),emailRevisions:(0,o.jw)(e),blocksRevision:(0,n.yc)(e),comments:(0,s.D)(e)}}function r(e){const t=Object.values(a(e));return{suspendChange(){t.forEach((e=>e.suspendChange()))},resumeChange(){t.forEach((e=>e.resumeChange()))}}}function c(e){return"string"===typeof e?{email:{code:e}}:function(e){return!e.hasOwnProperty("email")&&!e.hasOwnProperty("block")&&!e.hasOwnProperty("templateId")}(e)?{email:e}:{...e,email:"string"===typeof e.email?{code:e.email}:e.email||{}}}},8671:(e,t,i)=>{i.d(t,{e:()=>c});var n=i(14386),s=i(33288),o=i(15230),a=i(32269),r=i(48802);const c=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),n=(0,r.m)(i.event),c=t.addDisposable(new r.U(n));return{setOptions({handleDestroy:e}){c.setListener(e)},instance:{handleDestroy:n,destroy:()=>t.dispose()}}}))},63772:(e,t,i)=>{i.d(t,{Z:()=>c});var n=i(14386),s=i(43347),o=i(33288),a=i(48802),r=i(15230);const c=(0,n.l)((e=>{const t=o.di.getInstance(e,r.Lz),i=o.di.getInstance(e,s.Ri),n=(0,a.m)(i.event),c=t.addDisposable(new a.U(n));return{setOptions(e){c.setListener(e.handleLoadImage)},instance:{handleLoadImage:(0,a.m)(i.event)}}}))},55853:(e,t,i)=>{i.d(t,{E:()=>c});var n=i(14386),s=i(33288),o=i(15230),a=i(55654),r=i(48802);const c=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=t.addDisposable(new a.vl),n=s.di.getInstanceAsync(e,o.Cd);n.then((({instance:e})=>i.fire(e)));const c=(0,r.m)(i.event),d=t.addDisposable(new r.U(c));return{setOptions({handleLoad:e}){d.setListener(e)},instance:{handleLoad:c,reset:e=>n.then((({instance:t,setOptions:i})=>Promise.resolve(i(e)).then((()=>t))))},destroy:()=>t.dispose()}}))},1281:(e,t,i)=>{i.d(t,{Z:()=>g});var n=i(14386),s=i(33288),o=i(15230),a=i(48802),r=i(13329),c=i(28316),d=(i(92810),i(814)),l=i(70082);function u(e){return"string"===typeof e?e:e?(0,l.jsx)("div",{ref:t=>null===t||void 0===t?void 0:t.replaceWith(e)}):void 0}function m(e,t="success"){return"string"===typeof e&&(e={message:e}),(0,d.TB)({type:e.type||t,data:e.data,innerException:e.innerException,message:u(e.message),description:u(e.description),btn:u(e.btn),onClose:e.onClose,duration:e.duration,icon:u(e.icon),placement:e.placement,style:e.style,closeIcon:"boolean"===typeof e.closeIcon||"undefined"===typeof e.closeIcon?e.closeIcon:u(e.closeIcon),props:e.props,role:e.role})}var h=i(13522),p=i(55654),v=i(93982);const g=(0,n.l)((e=>{const t=s.di.getInstance(e,o.Lz),i=(0,v.Zc)(e,h.A.ON_NOTIFICATION),n=(0,p.pb)(i,(e=>"error"===e.type)),d=(0,p.pb)(i,(e=>"success"===e.type)),l=(0,a.m)(i,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e):e)),u=(0,a.m)(n,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e,"error"):e)),g=(0,a.m)(d,(e=>e),(e=>"string"===typeof e||"object"===typeof e?m(e):e)),f=t.addDisposable(new a.U(l)),_=t.addDisposable(new a.U(u)),y=t.addDisposable(new a.U(g));return{setOptions({handleNotify:e,handleSuccess:t,handleError:i}){f.setListener(e),_.setListener(i),y.setListener(t)},instance:{notify(t){(0,r.RS)(e,c.Sb,{placement:"bottomRight",...m(t)})},handleNotify:l,handleError:u,handleSuccess:g}}}))},89949:(e,t,i)=>{i.d(t,{R:()=>a});var n=i(92810),s=i(45934),o=i(39990);const a=({onLoad:e,children:t})=>{(0,n.useEffect)((()=>{e&&e()}),[e]);const i=(0,s.wA)();return(0,n.useMemo)((()=>i(o.Q2.endpoints.getMe.initiate({}))),[i]),t}},55654:(e,t,i)=>{i.d(t,{HN:()=>l,IO:()=>o,P9:()=>a,lt:()=>m,pb:()=>c,sg:()=>d,vl:()=>u});var n=i(32269);class s extends n.jG{constructor(...e){super(...e),this._listeners=[],this.event=this._addListener.bind(this)}getListeners(e){return this._listeners.flatMap((([t])=>"function"===typeof t?t:t.getListeners(e)))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,i){if(!this.isDisposed()){const n=this._listeners;i&&"function"===typeof e&&(e=e.bind(i));const s=n.findIndex((([e,i])=>t<i)),o=[e,t];return n.splice(s>=0?s:n.length,0,o),{dispose(){const e=n.indexOf(o);e>=0&&n.splice(e,1)}}}}dispose(){this._listeners.splice(0,this._listeners.length),super.dispose()}}class o extends s{constructor(...e){super(...e),this.fire=this._fire.bind(this)}execute(e,t){for(const n of t)try{n(...e)}catch(i){console.log(i)}}_fire(...e){if(!this.isDisposed())return this.execute(e,this.getListeners(e))||void 0}}function a(e,t=0){const i=new s;return i.addDisposable(e(i,t)),i.event}class r extends s{constructor(e){super(),this._filter=e}getListeners(e){return this._filter(...e)?super.getListeners(e):[]}}function c(e,t,i=0){const n=new r(t);return n.addDisposable(e(n,i)),n.event}function d(e,t=0,i=0){const n=new o;let s,a=0;return n.addDisposable(e(((...e)=>{s=e,a||(a=setTimeout((()=>{n.fire(...s),a=0}),t))}),i)),n.event}class l extends o{constructor(...e){super(...e),this._suspendCounter=0,this._wasFired=!1}proccessResult(){}execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const n of t)try{n(e)}catch(i){console.log(i)}}suspend(){this._suspendCounter++}resume(){0===--this._suspendCounter&&(this._wasFired&&this.fire(),this._wasFired=!1)}}class u extends o{execute([e],t){for(const n of t)try{n(e)}catch(i){console.log(i)}}}class m extends o{async execute([e],t){const i=[];for(const n of t){const t=await n(e);i.push(t)}return i}}},48802:(e,t,i)=>{i.d(t,{U:()=>o,m:()=>a});var n=i(32269),s=i(55654);class o extends n.jG{constructor(e){super(),this._event=e,this._listener=void 0,this._disposeEvent=void 0}setListener(e){this._listener!==e&&(this._listener=e,this._disposeEvent&&this._disposeEvent(),this._disposeEvent=e?this._event(e):void 0)}dispose(){this._disposeEvent&&this._disposeEvent(),super.dispose()}}function a(e,t,i){const n=(0,s.P9)(e);return(e,s,o)=>{const a=n((async n=>{const s=t?t(n):n;o&&e.bind(o);const a=await e(s);return i?i(a):a}),s,o);return()=>a.dispose()}}},13652:(e,t,i)=>{i.d(t,{y:()=>n});const n=e=>{let t={current:Promise.resolve(),state:e,decorate:(e,i)=>(i&&(e=e.bind(i)),function(...i){const n=t.current.then((()=>e(...i)));return t.current=n.then((e=>{t.state=e}),(e=>{console.log(e)})),n})};return t}},18398:(e,t,i)=>{i.d(t,{Ay:()=>S,EV:()=>b,GH:()=>p,Ir:()=>v,Kj:()=>E,RP:()=>u,_R:()=>f,bn:()=>_,ee:()=>y,jY:()=>h,p5:()=>m,s0:()=>d,zg:()=>l});var n=i(90536),s=i(31770),o=i(99751);const a="configSlice",r=(0,s.ur)((0,o.$)("pro")),c=(0,n.createSlice)({name:a,initialState:{...r,initialMergeTags:void 0},reducers:{setPage:(e,t)=>{e.page=t.payload},setConfig:(e,t)=>{e.config={...r.config,...t.payload}},changeConfigMode:(e,t)=>{var i,n,s;const a=null!==(i=null===e||void 0===e||null===(n=e.advancedConfigs)||void 0===n?void 0:n[t.payload])&&void 0!==i?i:null===(s=(0,o.$)(t.payload))||void 0===s?void 0:s.config;if("simple"!==e.config.mode&&"simple"!==t.payload){const t={...e.config,...Object.fromEntries(Object.entries(a).filter((([e])=>o.i.includes(e))))};e.config=t}else e.config={...e.config,...(0,o.$)(t.payload).config}},setInitialMergeTags:(e,t)=>{e.initialMergeTags=t.payload},setMergeTags:(e,t)=>{e.config.mergeTags=t.payload},updateConfig:(e,t)=>{e.config={...e.config,...t.payload}},setProject:(e,t)=>{e.project=t.payload},setAdvancedConfigs:(e,t)=>{e.advancedConfigs=t.payload}},extraReducers:e=>{}}),d=e=>e[a].page,l=e=>e[a].config,u=e=>e[a].config.themes,m=e=>e[a].config.styles,h=e=>e[a].project,p=e=>e[a].config.mergeTags||e[a].initialMergeTags,{setPage:v,setConfig:g,updateConfig:f,setProject:_,setAdvancedConfigs:y,setMergeTags:w,changeConfigMode:b,setInitialMergeTags:E}=c.actions,S=c},47358:(e,t,i)=>{i.d(t,{Ay:()=>P,B:()=>j,Bp:()=>C,CS:()=>T,Ct:()=>D,Fk:()=>v,Fv:()=>L,N6:()=>E,NQ:()=>O,Oo:()=>h,PM:()=>p,Tn:()=>N,Uf:()=>y,V$:()=>B,Wm:()=>M,cL:()=>A,mi:()=>g,qf:()=>m,sy:()=>I,vc:()=>f,vs:()=>_,wW:()=>w,wr:()=>b,yy:()=>k});var n=i(90536),s=i(85163),o=i(31770),a=i(55701);const r=window.localStorage.getItem(s.V0.em_code_mode_settings),c=r&&JSON.parse(r),d=(0,o.ur)({activeModal:"",lastActiveSettingsTab:s.Bv,activeSettingsTab:s.Bv,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:(null===c||void 0===c?void 0:c.isCodeMode)||s.EW.isPlugin,codeModeDirection:(null===c||void 0===c?void 0:c.codeModeDirection)||"left",emailWidth:"100%",emailViewType:s.Vp,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:s.WU,parentBlocks:[]}),l="emailPageSlice",u=(0,n.createSlice)({name:l,initialState:d,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=""},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==s.Vv&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{"Properties"===e.lastActiveSettingsTab?e.activeSettingsTab="Build":e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==s.Vv&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||"100%"===t?s.Vp:s.ND,window.localStorage.setItem(s.V0.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{const t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{const i=t.payload;e.isCodeMode!==i&&(e.isCodeMode=i,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:i})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(s.V0.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload}},extraReducers:e=>{e.addMatcher(a.VM.endpoints.getParentEmailBlocks.matchFulfilled,((e,t)=>{e.parentBlocks=t.payload}))}}),{openModal:m,closeModal:h,setActiveSettingsTab:p,resetToLastActiveSettingsTab:v,switchIsPanelHistoryCollapsed:g,setEmailWidth:f,switchCodeMode:_,switchCodeModeDirection:y,setMobileViewActive:w,setEmailViewType:b,setCodeMode:E,setEmailMaxWidthSize:S,setPropertiesPanelKey:C,resetParentBlocks:I}=u.actions,A=e=>e[l].activeModal,j=e=>e[l].activeSettingsTab,M=e=>e[l].isPanelHistoryCollapsed,O=e=>e[l].emailWidth,D=e=>e[l].emailViewType,T=e=>e[l].mobileViewActive,k=e=>e[l].codeModeDirection,L=e=>e[l].isCodeMode,N=e=>e[l].propertiesPanelKey,B=e=>e[l].parentBlocks,P=u},57964:()=>{}}]);
|