1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`20261001-39361-126a85bd`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:textmagic-web-app":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3963857c-78ca-49de-8a5a-5e727f7435dd`,e._sentryDebugIdIdentifier=`sentry-dbid-3963857c-78ca-49de-8a5a-5e727f7435dd`)}catch{}})();import{Ln as e,Mn as t}from"./D1KcagSz.js";import{A as n,Ct as r,D as i,E as a,F as o,Ft as s,H as c,L as l,Nt as u,P as d,Qt as f,gn as p,it as m,kt as h,tt as ee,ut as te,yt as g}from"./CPzLrubv.js";import{$s as _,Ds as v,Fr as y,N as ne,Qs as re,Ua as b,Xs as x,Ys as S,Zs as C,_m as w,ec as ie,fl as T,qs as ae,uf as oe,xa as E}from"./DAD6CFn-.js";import{$ as se,$c as D,Ac as ce,Ai as le,An as ue,Dc as O,Gc as de,Gp as fe,La as pe,Mn as me,Nd as he,Op as ge,Pc as _e,Pl as ve,Rd as ye,Si as k,Xo as A,aa as j,b as M,bi as N,hp as P,ji as F,lc as be,mu as I,of as xe,pp as L,pu as Se,tp as R}from"./TmSZSC_3.js";import{a as z}from"./BjAQM_Oc.js";import{ha as Ce,ma as we,ua as Te}from"./2bt8kL8y.js";import{A as Ee}from"./CWMZE_q4.js";import{N as De,Wr as Oe}from"./index_6BOmQYt5.js";import{t as ke}from"./CcUQjyiR.js";import{n as Ae}from"./CaXvjVlq.js";import{r as je,t as B}from"./DhnlnOpd.js";import{t as Me}from"./mYe7MclG.js";import{t as Ne}from"./BxnOWp1A.js";import{t as Pe}from"./iK4Eml5a.js";import{t as Fe}from"./CzOQ7xef.js";c();var Ie=l({components:{TmTranslate:T},props:{email:{type:String,required:!0}}});f(),c();var Le={class:`body-text-regular-14 emphasize--text lh-20 pre-line`},Re={class:`body-text-semi-bold-14 emphasize--text`};function ze(e,t,a,s,c,l){let u=te(`tm-translate`);return m(),n(`div`,Le,[o(u,{keypath:`deleteInvitationModal.text.0`},{email:r(()=>[i(`span`,Re,p(e.email),1)]),_:1}),t[0]||(t[0]=i(`br`,null,null,-1)),d(` `+p(e.$t(`deleteInvitationModal.text.1`)),1)])}var Be=z(Ie,[[`render`,ze]]);c(),f();var Ve={class:`body-text-regular-14 emphasize--text lh-20 pre-line`},He={class:`body-text-semi-bold-14 emphasize--text`},Ue={class:`users-workflow-reopen-account-confirmation__list-item`},We=z(l({__name:`UsersWorkflowReopenAccountConfirmation`,props:{name:{}},setup(e){return(t,a)=>(m(),n(`div`,Ve,[o(T,{keypath:`reopenUserConfirmationModal.youAreAboutToReopen`},{name:r(()=>[i(`span`,He,p(e.name),1)]),_:1}),o(Oe,{class:`my-4`},{default:r(()=>[i(`li`,Ue,p(t.$t(`reopenUserConfirmationModal.options.0`)),1)]),_:1}),d(` `+p(t.$t(`reopenUserConfirmationModal.pleaseConfirmReopen`)),1)]))}}),[[`__scopeId`,`data-v-57a869dd`]]);c(),h();var V=u({}),Ge=e=>{let t=A();return t.addMilliseconds(t.now(),e)},Ke=n=>{if(t(n))throw new N(`Timer ID is required`);let r=O().get(H(n));return!e(r)||t(r)?new Date:A().toDate(r)},qe=e=>{let t=A(),n=t.toDate(e);if(!t.isValid(n))throw new N(`Parsed date is invalid`);let r=t.now();return t.isAfter(n,r)?t.differenceInMilliseconds(n,r):0},H=e=>`tm::timers::${e}`,U=(e,t)=>{let n=H(e);return V[n]=fe(t/1e3).then(()=>{W(e)}),V[n]},Je=e=>V[H(e)],W=e=>{if(t(e))throw new N(`Timer ID is required`);let n=H(e);delete V[n],O().delete(n)},Ye=n=>{if(t(n))throw new N(`Timer ID is required`);let r=O().get(H(n));return!e(r)||t(r)?(V[H(n)]=Promise.resolve(),V[H(n)]):U(n,qe(r))},Xe=(e,n)=>{if(t(e))throw new N(`Timer ID is required`);let r=Ge(n);return O().set(H(e),r.toISOString()),U(e,n)},Ze=({id:e,timeMs:t,onStart:n,onFinish:r})=>{let i=s(!1),a=s(new Date),o=s(!1),c=()=>{o.value=!0,n?.(),Je(e).finally(()=>{i.value||(r?.(),o.value=!1)})};return ee(()=>Ye(e)),g(()=>V[H(e)],t=>{t instanceof Promise&&(c(),a.value=Ke(e))}),{start:()=>{i.value=!1,Xe(e,t)},cancel:()=>{i.value=!0,o.value=!1,W(e)},timerDueDate:a,isWaiting:o}};c(),h();var Qe=e=>()=>w(ae).open(e),$e=()=>{let e=`passwordResetModal`;return{open:()=>{w(e).open()},close:()=>{w(e).close()},wrapperId:e}},et=b(`passwordChangeModal`,`AccountSecurityPasswordChangeFormService`),tt=()=>{let e=`accountSecurityLoginsHistoryModal`;return{wrapperId:e,open:()=>{w(e).open()}}},nt=()=>{let{confirm:e}=y(),t=R(),n=ce(),r=D();return{open:()=>e(async()=>{await n.logoutFromAllDevices(),r.success(t.t(`accountSecurityLoginsLogoutAllModal.successMessage`))},{title:t.t(`accountSecurityLoginsLogoutAllModal.title`),text:{translateKey:`accountSecurityLoginsLogoutAllModal.description`,slots:[{name:`except-this-one`,value:t.t(`accountSecurityLoginsLogoutAllModal.exceptThisOne`)}]},submitText:t.t(`accountSecurityLoginsLogoutAllModal.buttonTitle`),submitLoadingText:t.t(`accountSecurityLoginsLogoutAllModal.buttonTitleLoading`)})}},rt=b(`twoFaEditIpAddressesModal`,`AccountSecurityTwoFaEditIpAddressesFormService`),G=b(`inviteSubAccountModal`,`InviteSubAccountFormService`),it=()=>w(ie),at=()=>{let e=L(),{open:t}=G,{open:n}=$();return{open:(r,i)=>{if(!e.isAllowInviteSubAccount()){n();return}t({titleMessagePath:r,title:R().t(r),afterSuccessSubmit:i})}}},ot=()=>{let{open:e}=at();return{open:t=>e(`inviteSubAccountModal.title`,t)}},st=e=>{let t=I(),n=Se(),{open:r}=G;return{open:()=>{let i=`inviteUsersModal.title`;r({titleMessagePath:i,title:R().t(i),afterSuccessSubmit:async()=>
1{if(e){e();return}let r={name:v.WorkspaceIndex};n.isAllowAccessToRoute(r.name)&&t.push(r)}})}}},ct=()=>{let e=L(),{open:t}=G;return{open:()=>{let n=`inviteUsersModal.title`;t({titleMessagePath:n,title:R().t(n),afterSuccessSubmit:async()=>{e.fetchAllSubAccounts()}})}}},lt=()=>{let e=L(),{open:t}=$();return{stepToImportRoute:a(()=>{if(e.isAllowInviteSubAccount())return{name:v.WorkspaceSubaccountsImport}}),stepToImportClickHandler:()=>{e.isAllowInviteSubAccount()||t()}}},ut=()=>{let{wrapperId:e,create:t,open:n}=b(`billingDetailsModal`,`BillingDetailsFormService`);return{wrapperId:e,create:t,open:e=>(ve().trackEvent(De.viewedAddBillingDetailsModal),n(e))}},K=b(`phoneVerificationModal`,`AccountSettingsPhoneVerificationFormService`),q=s(0),dt=()=>{let e=L(),t=D(),n=de(),{resendInText:r,countInProgress:i}=Fe(q),a=async()=>{try{await j().sendVerifyCodeOnPhone()}catch(e){throw e instanceof M&&(q.value=A().addSeconds(new Date,e.retryValue).getTime()),e}a().catch(e=>{if(e instanceof M)return;let r=new N(`Unexpected error in OTP phone verification probe`,void 0,void 0,e);t.notifyFromError(e),n.logAndCapture(r,le.ERROR)})},o=async()=>{try{await a(),s()}catch(e){if(e instanceof ue||e instanceof me){s();return}E(e)}},s=()=>{let{phone:t}=e.currentUser();if(!t)throw new N(`Phone not found`);K.open({phone:t})};return{sendVerifyCodeOnPhone:a,runVerifyPhoneProcess:o,isCodeIncorrectError:e=>e instanceof se,isWaitingForResendPossibility:i,resendInText:r}},ft=()=>({runVerifyEmailProcess:async()=>{try{await j().sendVerifyCodeOnEmail(),D().success(R().t(`accountDetails.successSendVerificationOnEmail`))}catch(e){E(e)}}}),pt=()=>{let{runVerifyEmailProcess:e}=ft(),{isPending:t,run:n}=ke(e),{start:r,timerDueDate:i,isWaiting:a}=Ze({id:`verifyEmailSendLink`,timeMs:6e4});return{isPending:t,isWaiting:a,timerDueDate:i,run:()=>n().then(()=>{r()})}},J=()=>({open:(e,t)=>{w(_).open({editingId:e,titleMessagePath:t,title:R().t(t)})}}),mt=e=>()=>J().open(e,`subAccountEditModal.title`),ht=()=>{let{open:e}=J();return{open:t=>e(t,`subAccountEditModal.titleForUsers`)}},gt=(e,t,n)=>B({tableModelId:e,entity:Me,supportedSearchFilters:[],gridService:n,columnFactory:`LoginsHistoryColumnService`,sorterFactory:t?void 0:`NoopSorterServiceFactory`,sortEntityName:Ce,defaultSorter:we()}),_t=()=>b(x,`CloseAccountFormService`),vt=e=>()=>w(C).open({accountId:e}),yt=()=>{let e=`closeUserAccountModal`;return{wrapperId:e,open:t=>{w(e).open({accountId:t})},close:()=>{w(e).close()},getParams:()=>w(e).getParams()}},bt=()=>{let e=R(),t=L(),n=D();return{open:(r,i)=>y().confirmDelete(``,async()=>{await t.closeSubAccounts([r]),n.success(e.t(`deleteInvitationModal.successMessage`))},{textComponent:Be,textComponentProps:{email:i},title:e.t(`deleteInvitationModal.title`)})}},Y=()=>{let e=j(),t=D();return{resetPassword:async(n,r)=>{try{await e.resetPasswordByUserId(n),t.notifySuccess(r)}catch(e){E(e)}}}},xt=()=>{let e=R(),{resetPassword:t}=Y(),n=e.t(`usersWorkflowTableDropdown.passwordResetSuccessMessage`);return{resetPassword:e=>t(e,n)}},St=()=>{let e=R(),{resetPassword:t}=Y(),n=e.t(`subAccountsTableDropdown.passwordResetSuccessMessage`);return{resetPassword:e=>t(e,n)}},X=(e,t=!1)=>()=>w(S).open({editingId:e,withAccount:t}),Ct=e=>{let t=R(),n=L();return()=>y().confirm(async()=>{await n.openSubAccount(e),D().successT(`subAccountDetailsButtons.openSubAccount.successMessage`)},{title:t.t(`reopenSubAccountConfirmationModal.title`),text:t.t(`reopenSubAccountConfirmationModal.text`),submitText:t.t(`reopenSubAccountConfirmationModal.submit`)})},wt=()=>{let e=R(),t=L();return{open:n=>{let r=t.findEntityByIdOrFail(n);return y().confirm(async()=>{await t.openSubAccount(n),D().successT(`reopenUserConfirmationModal.successMessage`)},{title:e.t(`reopenUserConfirmationModal.title`),textComponent:We,textComponentProps:{name:r.fullName},submitText:e.t(`reopenUserConfirmationModal.submit`)})}}},Z=()=>{let{open:e}=w(re);return{open:t=>e(t)}},Tt=()=>(e,t)=>{let n=R();return Z().open({id:e,email:t,description:n.t(`resendInvitationSubAccountModal.description`)})},Et=()=>{let e=R(),{open:t}=Z();return{open:(n,r)=>t({id:n,email:r,description:e.t(`resendInvitationSubAccountModal.descriptionForUsers`)})}},Q=()=>{let e=L(),t=I(),n=ge(),r=P(),i=a(()=>r.currentUserSettingsOrNull()?.isImpersonated),o=async(r,i=!1)=>{await e.runImpersonateMode(r);let a=n.getLocation();if(i){a.replace(Ee(a.href));return}let o=t.resolve({name:`user.compose.message`});a.replace(o.fullPath)},s=e=>{let t=n.self().__preAppLoader;if(!t)throw new F(`__preAppLoader is undefined`);let r=n.self().document.querySelector(ne);if(r===null)throw new F(`appElement is null`);let i=`d-none`;e?(t.toggle(!0),r.classList.add(i)):(t.toggle(!1),r.classList.remove(i))};return{isActiveImpersonate:i,runImpersonate:o,stopImpersonate:async()=>
1{if(Pe()){s(!0);try{await e.stopImpersonateMode(),n.reload()}catch(e){throw s(!1),e}}}}},Dt=()=>{let{currentUser:e}=Ae(),t=pe(),n=`accountBalanceCriticallyLowModal`,r=()=>{w(n).open()};return{wrapperId:n,openIfBalanceLow:async()=>{if(!t.isAllowAccessForBilling())return;let n=await t.getSettings();if(!n)throw new F(`Billing info not found`);n.autoRechargeEnabled||e.value.isCriticallyLowBalance&&r()}}},Ot=()=>{let{isActiveImpersonate:e,stopImpersonate:t}=Q();return{logout:()=>{if(e.value){t();return}j().logoutRedirect()}}},$=()=>{let e=`upgradeAccountModal`;return{wrapperId:e,open:()=>w(e).open(),close:()=>{w(e).close()}}},kt=()=>{let e=xe(),t=be(),n=P(),{open:r,close:i}=it();return{openModal:r,closeModal:i,isShown:a(()=>!e.isUsersWorkflow()&&!n.currentUserSettingsOrNull()?.isImpersonated&&t.getLoadedState().hasActiveSubAccounts)}},At=e=>{let t=ye(),n=_e(),r=he();return t.setUserId(e),r.setUserId(e),B({tableModelId:`${Te}:${e}`,entity:oe,supportedSearchFilters:[],columnFactory:`ReceivedSmsColumnServiceFactory`,customFiltersDefaultState:e=>{let t=e.toQuery(!0);return Object.keys(t).length===1&&!!Ne(t,`userId`)},bulkManager:n,gridService:t,exportService:`SubAccountHistoryExportService`,sortEntityName:`reply`,defaultSorter:{name:`messageTime`,direction:`desc`},filterFactory:`ReceivedSmsFilterServiceFactory`,tableWrapperParamsToSave:{...je,[k]:[`onlyWithoutOutbound`]}})};export{ht as A,K as C,mt as D,At as E,dt as F,Et as M,xt as N,kt as O,pt as P,Ct as S,St as T,lt as _,nt as a,st as b,rt as c,ut as d,_t as f,Q as g,bt as h,tt as i,wt as j,$ as k,ct as l,yt as m,Dt as n,et as o,vt as p,Qe as r,$e as s,gt as t,X as u,G as v,Tt as w,Ot as x,ot as y}; 2//# sourceMappingURL=Dt031rcg.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.