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:`20260924-39003-d97a9715`},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]=`2dcf3dc0-964a-4c9e-a8c5-143a1d5c467e`,e._sentryDebugIdIdentifier=`sentry-dbid-2dcf3dc0-964a-4c9e-a8c5-143a1d5c467e`)}catch{}})();import{Xn as e}from"./DLkVZSuR.js";import{E as t,H as n,yt as r}from"./B_mscWxu.js";import{Gf as i,Yf as a}from"./Cf_pgd7T.js";import{Cl as o,Go as s,Kc as c,fp as l,id as u,mp as d,yn as f}from"./BmC5PC1V.js";import{Ct as p}from"./index_Dp5kRkmW.js";import{t as m}from"./D3asB4kd2.js";n();var h=`systemAccountStateChanged`,g=`userBalanceChanged`,_=t(()=>l().getCurrentUserOrNull([`timezone`])||new i({subaccountType:a.USER}));r(_,e=>{let t=d().currentUserSettingsOrNull();c().setUser({...e,...t})});var v=t(()=>_.value.fullName),y=t(()=>_.value.currency),b=t(()=>m(_.value.id)),x=t(()=>F(_.value.balance)),S=t(()=>_.value.pendingAmount),C=t(()=>F(_.value.pendingAmount)),w=t(()=>_.value.isCriticallyLowBalance),T=t(()=>_.value.email),E,D=t=>{let n=l(),r=t.payload;if(r.subaccountType!==_.value.subaccountType&&o().getPermissions(),!e(r,E)){let e={..._.value,...r};n.updateCurrentUserInStore(e)}E=r},O=e=>{d().updateCurrentUserSettingsInStore(e.payload)},k=e=>{l().updateCurrentUserInStore({balance:e.payload.balance,pendingAmount:e.payload.pendingAmount})},A=!1,j=()=>{if(!A){let e=u();e.subscribe(h,D),e.subscribe(g,k),e.subscribe(`systemAccountAdditionalFields`,O),A=!0}return{currentUser:_,userFullName:v,avatarColor:b,balanceWithCurrency:x,pendingAmount:S,pendingAmountWithCurrency:C,currency:y,isLowBalance:w,email:T}},M=()=>{let e=s();return{currentUserCountryFormatted:t(()=>{let t=_.value.countryId;return e.getFormattedCountryName(t)})}},N=()=>{let{currentUserSettings:e}=I();return{showSenderIds:t(()=>e.value.showSenderIds),showTenDlcTab:t(()=>e.value.showTenDlcTab),showTollFreeTab:t(()=>e.value.showTollFreeTab)}},P=()=>{let{currentUserSettings:e}=I();return{warningIcon:{name:`warning`,size:`xLarge`,class:`orange--text`},doneIcon:{name:`check_circle`,size:`xLarge`,class:`success--text`},showTenDlcAlert:t(()=>e.value.showTenDlcAlert),showTollFreeAlert:t(()=>e.value.showTollFreeAlert)}};function F(e,t){return p(e,_.value.currency?.id??`USD`,f,t)}var I=()=>({currentUserSettings:t(()=>d().currentUserSettingsOrFail())}),L=()=>{let{currentUser:e}=j(),{currentUserSettings:n}=I(),r=t(()=>e.value.subaccountType===a.SUPER_ADMIN),i=t(()=>n.value.parentId);return{isParentUser:r,parentId:i,parentIdNotSelf:t(()=>r.value?void 0:i.value)}};export{N as a,M as i,j as n,L as o,P as r,I as s,F as t}; 2//# sourceMappingURL=xslpWSsY2.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.