1import{a_ as c,cB as b,cJ as M,bn as u,cK as l}from"./index-CFHz-eb3.js";try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6936bf44-cfc6-4dc3-879b-b13eda2f84bf",t._sentryDebugIdIdentifier="sentry-dbid-6936bf44-cfc6-4dc3-879b-b13eda2f84bf")}catch{}const $=async t=>(await c.client.post("support/ticket",t)).data,v=async()=>(await c.client.get("support/tickets")).data,S=async t=>(await c.client.get(`support/ticket/${t}`)).data,A=async(t,e)=>(await c.client.post(`support/ticket/${t}/message`,e)).data,_=async t=>(await c.client.get("admin/support/tickets",{params:t})).data,C=async()=>(await c.client.get("admin/support/tickets/unreadCount")).data.count,I=async t=>(await c.client.get(`admin/support/ticket/${t}`)).data,U=async(t,e)=>(await c.client.post(`admin/support/ticket/${t}/message`,e)).data,E=async(t,e)=>(await c.client.post(`admin/support/ticket/${t}`,e)).data,B=["image/png","image/jpeg","image/gif","image/webp","image/heic"],H=10*1024*1024,N=async t=>{const e=await c.client.get("support/uploadLink",{params:{name:t.name,type:t.type}});return await b.put(e.data.uploadUrl,t,{headers:{"Content-Type":e.data.type}}),e.data.attachmentId},Y=async t=>(await c.client.get(`support/attachment/${t}`)).data,j=M("support",()=>{const t=u([]),e=u(null),o=u([]),p=u(null),f=u(0);let r=0,d=0,y=0;const k=async a=>{const s=await $(a);return l(t.value,[s],["id"]),e.value=s,s},T=async()=>{t.value=await v()},w=async a=>{const s=++d;e.value=null;const n=await S(a);s===d&&(e.value=n)},m=async(a,s)=>{const n=++d,i=await A(a,s);n===d&&(e.value=i)},h=async a=>{const s=++y,n=await _(a);s===y&&(o.value=n)},g=async()=>{f.value=await C()};return{myTickets:t,myTicket:e,tickets:o,ticket:p,unreadCount:f,createTicket:k,fetchMyTickets:T,fetchMyTicket:w,postMyMessage:m,fetchTickets:h,fetchUnreadCount:g,fetchTicket:async a=>{const s=++r;p.value=null;const n=await I(a);s===r&&(p.value=n,l(o.value,[{...n,staffUnread:!1}],["id"]),await g())},postStaffMessage:async(a,s)=>{const n=++r,i=await U(a,s);n===r&&(p.value=i,l(o.value,[i],["id"]))},updateTicket:async(a,s)=>{const n=++r,i=await E(a,s);n===r&&(p.value=i,l(o.value,[i],["id"]))}}});export{H as M,B as S,N as a,Y as f,j as u};
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.