1import{aJ as g,cv as f,j as e,ab as i,T as j}from"./ErrorPage-_Vd6n00G.js";import{E as A}from"./billing-CS5K81-K.js";import{u as I,U as y}from"./main-tKtdWpa9.js";import{u as s}from"./useCurrentEvent-DsrQvHYR.js";import{D as C}from"./Devider-BvLyIhUt.js";import{T as p}from"./TemplatesList-DCN_FjNW.js";import{C as U}from"./MetaComponent-CFW3Ub47.js";import"./PopoverHint-CLgcEhFE.js";import"./Search-Btn2KshF.js";import"./index-CC0qTjwS.js";import"./PlusOutlined-CTUX1L4g.js";import"./index-CVBB_w5j.js";import"./index-BYQjkAoH.js";import"./index-BA3sUpr4.js";import"./index-DYHT4jYZ.js";import"./NavbarWithoutHeader-CZWDLWnD.js";import"./logo-with-text-DCfw3ox2.js";import"./dateTimeSettings-DtwWEreu.js";import"./useAsyncAction-W-5facZY.js";import"./HelperModal-CgpZwr3x.js";import"./FileDialog-BuTf2evX.js";import"./buildUpdate-M9ra3xg7.js";import"./index-4tNvP-Vj.js";import"./ua-parser-mEjrhLtL.js";import"./index-DbxsCGWm.js";import"./EventTimes-rYpRd6_T.js";import"./index-DA5qiaqL.js";import"./index-BfGmU9hU.js";import"./EventLogo-DFm-kBlK.js";import"./LoadingIndicator-CGLezzF5.js";import"./useDebounce-CjtZo4Sd.js";import"./useBreakpoint-qI9TKZOm.js";import"./UserAvatar-UCJZx0J6.js";import"./VersionLabel-DoPKR6Fj.js";import"./CostCalculator-DvPld_G8.js";import"./row-B_47fKql.js";import"./getLeaderboardUrl-DgVygveo.js";import"./useForm-BBnGxT8u.js";import"./react-BN8DgQaU.js";import"./comlink-CJ5Oz-yY.js";import"./core.esm-DsxvtAch.js";import"./index-BS0mFrLm.js";import"./download-ByEBAhAo.js";import"./Table-DUxvMjRd.js";const{Text:b}=j,ht=()=>{const a=I(),{removeTemplate:l,loadData:n,setImpersonatedUserId:d}=s(t=>t.messageTemplates.actions),c=s(t=>t.messageTemplates.items),o=s(t=>t.messageTemplates.isLoading),T=s(t=>t.messageTemplates.impersonatedUserId),u=g(),m=Array.from(c.values());A(async()=>{n()},10*f);const r=t=>{l(t)},x=()=>{u("/admin/message-templates/new")},v=m.filter(t=>t.isPublic),h=m.filter(t=>!t.isPublic);return e.jsx(U,{title:"Message Template",extra:a&&e.jsxs(i,{children:[e.jsx(b,{strong:!0,children:"Impersonate User:"}),e.jsx(y,{value:T,onChange:d})]}),children:e.jsxs(i,{orientation:"vertical",size:40,style:{width:"100%"},children:[e.jsx("div",{children:e.jsx(p,{templates:h,isLoading:o,onTemplateRemove:r,onAddTemplateClick:x,title:"Your templates:"})}),e.jsx(C,{}),e.jsx("div",{children:e.jsx(p,{templates:v,isLoading:o,showAddButton:!1,showExportButton:!1,onTemplateRemove:r,title:"Public templates:"})})]})})};export{ht as AllTemplatesList}; 2//# sourceMappingURL=AllTemplatesList-DeEW-scz.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.