PageSourceSearch

https://app.textmagic.com/assets/CnFcieTQ.js

js textmagic.com collected 2026-09-24 08:32:48 UTC 4,026 bytes, 2 lines download raw bytes

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]=`a0a93eb5-f90e-4c53-aa38-3b58ee3bde29`,e._sentryDebugIdIdentifier=`sentry-dbid-a0a93eb5-f90e-4c53-aa38-3b58ee3bde29`)}catch{}})();import{E as e,H as t}from"./B_mscWxu.js";import{Ad as n,Fr as r,Ha as i,gm as a,nd as o}from"./Cf_pgd7T.js";import{$c as s,Vr as c,bi as l,cf as u,ep as d,lf as f,sf as p}from"./BmC5PC1V.js";import{fi as m,gi as h,hi as g}from"./HxBUjrm7.js";import{J as _,q as v}from"./BGPWR1KF.js";import{Tr as y}from"./index_Dp5kRkmW.js";import{t as b}from"./B4xeZWeb2.js";import{t as x}from"./CJLhqM-i2.js";import{t as S}from"./CEBprJ7K.js";import{t as C}from"./CT9WgUUd.js";t();var w=()=>(e,t=!1)=>a(m).open({templateIds:e,isAllSelected:t}),T=(e,t)=>{let n=d();return async()=>{await r([c.Templates]).confirmDelete(``,async()=>{await u().delete(e),s().entityDeleted(o,1)},{title:n.t(`entities.template.deleteTemplate`),text:{translateKey:`templatesModalsDelete.text`,slots:[{name:`templateName`,value:t}]}})}},E=i(`templates`,`TemplatesFormService`),D=()=>({open:e=>{E.open({editingId:e.id,template:{name:e.name,content:e.content,emailContent:e.emailContent??void 0,categoryId:e.categoryId}})}}),O=()=>({open:e=>{E.open({template:{categoryId:e.categoryId,content:e.content}})}}),k=()=>({open:e=>{E.open({isDuplicateMode:!0,template:{name:`${e.name} (1)`,content:e.content,emailContent:e.emailContent,categoryId:e.categoryId}})}}),A=()=>{let e=d();return async(t,n,i,o)=>{await r([c.Templates]).confirm(async()=>{let r={allTemplates:n,templateIds:n?[]:t,allSubaccounts:o,subaccountIds:o?[]:i};await u().shareTemplates(r),a(m).close(),s().notifySuccess(e.t(`templateShareConfirmation.success`))},{title:e.t(`common.shareWithSubAccounts`),text:e.t(`templateShareConfirmation.body`),submitText:e.t(`templateShareConfirmation.btnText`),submitLoadingText:e.t(`templateShareConfirmation.submitLoadingText`)})}},j=()=>{let e=`templateSelect`,{open:t,close:n,...r}=a(e),i=t=>{a(e).open(t)},o=()=>{a(e).close()};return{...r,open:i,close:o,wrapperId:e}},M=e=>{let t=e=>{let t=e.toQuery(!0);return Object.keys(t).length===1&&!!x(t,`category`)},n=f(),r=p();return b({tableModelId:e?`${g}:${e}`:h,tableWrapperId:h,entity:o,supportedSearchFilters:[],columnFactory:e?`TemplatesByCategoryColumnServiceFactory`:`TemplatesColumnServiceFactory`,filterFactory:`TemplatesFilterServiceFactory`,customFiltersDefaultState:e?t:void 0,bulkManager:e?r:void 0,tableExpandService:n,defaultSorter:{name:`usedAt`,direction:`desc`},alignment:{direction:y.top}})},N=t=>{let n=()=>S(t),{t:r}=d(),i=e(()=>{let e=n().getSorters(),t=e.getAllSorters(),i=e.getSchema();return t.filter(e=>e.name!==`category`).map(e=>(i.schema.sort.find(t=>t.name===e.name)?.values??[`desc`,`asc`]).map(t=>({[_]:`${e.name}.${t}`,[v]:r(`smsTemplates.sorting.${e.name}.${t}`),sorterName:e.name,sorterDirection:t}))).flat()});return{options:i,selectedOption:e(()=>{let e=n().getSorters().getCurrentSorter();return i.value.find(({sorterName:t,sorterDirection:n})=>t===e.name&&n===e.direction)||i.value[0]}),onOptionSelected:e=>{let t=i.value.find(({value:t})=>t===e);if(!t)throw new l(`Selected option (SMS templates sorting) not found`);n().applySort(t.sorterName,t.sorterDirection)}}},P=t=>{let r=C(n,t?`${n.entity}-${t}`:n.entity),i=C(o,t?`${o.entity}-${t}`:o.entity);return{smsCount:e(()=>i.value===null?`...`:String(i.value)),emailCount:r}};export{E as a,w as c,P as d,D as i,T as l,O as n,j as o,k as r,A as s,M as t,N as u};
2//# sourceMappingURL=CnFcieTQ.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.