@qualityunit/liveagent-ticket-grid 0.0.60 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ const e="",t="",o="",n="",a="",s="",l="",r="",c="",d="",i="",p="",g="",u="",w="",C={Created:e,Changed:t,"No text for preview":"","No name":"","No email":"","No Company":"","No tickets found":"","There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.":"","Change filter":"","Configure chat button":"",Reload:o,"First answer":"","No SLA":"",Answered:n,Chatting:a,Calling:s,Deleted:l,Spam:r,Init:c,Resolved:d,New:i,Open:p,Postponed:g,"Invalid data":"","all rows selected except %pCount rows":"all rows selected except {pCount, plural, one {1 row} other {# rows}}","all rows selected":"","%pCount rows selected":"{pCount, plural, one {1 row} other {# rows}} selected","Loading...":"","Displaying %count of":"Displaying {count} of","Displaying %count of %allCount":"Displaying {count} of {allCount}","Loading..":"",many:u,"Loading failed. Please try again later.":"","No results match your filter. Try broadening the search criteria.":"","All data loaded":"","Load more data":"",Importance:w,"Date created - Newest":"","Date created - Oldest":"","Date changed - Newest":"","Date changed - Oldest":"","Sort by":""};export{n as Answered,s as Calling,t as Changed,a as Chatting,e as Created,l as Deleted,w as Importance,c as Init,i as New,p as Open,g as Postponed,o as Reload,d as Resolved,r as Spam,C as default,u as many};
@@ -0,0 +1 @@
1
+ const e="",t="",o="",n="",a="",s="",l="",r="",c="",d="",i="",p="",g="",u="",w="",C={Created:e,Changed:t,"No text for preview":"","No name":"","No email":"","No Company":"","No tickets found":"","There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.":"","Change filter":"","Configure chat button":"",Reload:o,"First answer":"","No SLA":"",Answered:n,Chatting:a,Calling:s,Deleted:l,Spam:r,Init:c,Resolved:d,New:i,Open:p,Postponed:g,"Invalid data":"","all rows selected except %pCount rows":"all rows selected except {pCount, plural, one {1 row} other {# rows}}","all rows selected":"","%pCount rows selected":"{pCount, plural, one {1 row} other {# rows}} selected","Loading...":"","Displaying %count of":"Displaying {count} of","Loading..":"",many:u,"Displaying %count of %allCount":"Displaying {count} of {allCount}","Loading failed. Please try again later.":"","No results match your filter. Try broadening the search criteria.":"","All data loaded":"","Load more data":"",Importance:w,"Date created - Newest":"","Date created - Oldest":"","Date changed - Newest":"","Date changed - Oldest":"","Sort by":""};export{n as Answered,s as Calling,t as Changed,a as Chatting,e as Created,l as Deleted,w as Importance,c as Init,i as New,p as Open,g as Postponed,o as Reload,d as Resolved,r as Spam,C as default,u as many};
@@ -1,11 +1,15 @@
1
- var vn=Object.defineProperty;var yn=(t,e,i)=>e in t?vn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var fe=(t,e,i)=>(yn(t,typeof e!="symbol"?e+"":e,i),i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function i(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(r){if(r.ep)return;r.ep=!0;const s=i(r);fetch(r.href,s)}})();function J(){}function Ve(t,e){for(const i in e)t[i]=e[i];return t}function Pt(t){return t()}function $t(){return Object.create(null)}function Te(t){t.forEach(Pt)}function yt(t){return typeof t=="function"}function Y(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let nt;function st(t,e){return t===e?!0:(nt||(nt=document.createElement("a")),nt.href=e,t===nt.href)}function bn(t){return Object.keys(t).length===0}function Vt(t,...e){if(t==null){for(const n of e)n(void 0);return J}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function ge(t){let e;return Vt(t,i=>e=i)(),e}function Q(t,e,i){t.$$.on_destroy.push(Vt(e,i))}function Xe(t,e,i,n){if(t){const r=qt(t,e,i,n);return t[0](r)}}function qt(t,e,i,n){return t[1]&&n?Ve(i.ctx.slice(),t[1](n(e))):i.ctx}function Qe(t,e,i,n){if(t[2]&&n){const r=t[2](n(i));if(e.dirty===void 0)return r;if(typeof r=="object"){const s=[],a=Math.max(e.dirty.length,r.length);for(let o=0;o<a;o+=1)s[o]=e.dirty[o]|r[o];return s}return e.dirty|r}return e.dirty}function je(t,e,i,n,r,s){if(r){const a=qt(e,i,n,s);t.p(a,r)}}function et(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function wn(t){const e={};for(const i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function St(t,e){const i={};e=new Set(e);for(const n in t)!e.has(n)&&n[0]!=="$"&&(i[n]=t[n]);return i}function ie(t){return t??""}function kn(t,e,i){return t.set(i),e}const Cn=["",!0,1,"true","contenteditable"];function w(t,e){t.appendChild(e)}function ee(t,e,i){const n=xn(t);if(!n.getElementById(e)){const r=x("style");r.id=e,r.textContent=i,Tn(n,r)}}function xn(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Tn(t,e){return w(t.head||t,e),e.sheet}function D(t,e,i){t.insertBefore(e,i||null)}function N(t){t.parentNode&&t.parentNode.removeChild(t)}function bt(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function x(t){return document.createElement(t)}function j(t){return document.createTextNode(t)}function K(){return j(" ")}function Ke(){return j("")}function le(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function mt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function _(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}const $n=["width","height"];function Lt(t,e){const i=Object.getOwnPropertyDescriptors(t.__proto__);for(const n in e)e[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=e[n]:n==="__value"?t.value=t[n]=e[n]:i[n]&&i[n].set&&$n.indexOf(n)===-1?t[n]=e[n]:_(t,n,e[n])}function Sn(t){return Array.from(t.childNodes)}function ae(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ln(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Nn(t,e,i){~Cn.indexOf(i)?Ln(t,e):ae(t,e)}function Nt(t,e){t.value=e??""}function ft(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}function Dt(t,e,i){t.classList.toggle(e,!!i)}function Dn(t,e,{bubbles:i=!1,cancelable:n=!1}={}){return new CustomEvent(t,{detail:e,bubbles:i,cancelable:n})}function Fn(t){const e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}let qe;function Ye(t){qe=t}function Zt(){if(!qe)throw new Error("Function called outside component initialization");return qe}function ot(t){Zt().$$.on_mount.push(t)}function Xt(){const t=Zt();return(e,i,{cancelable:n=!1}={})=>{const r=t.$$.callbacks[e];if(r){const s=Dn(e,i,{cancelable:n});return r.slice().forEach(a=>{a.call(t,s)}),!s.defaultPrevented}return!0}}const Re=[],Ie=[];let Me=[];const Ft=[],On=Promise.resolve();let pt=!1;function Rn(){pt||(pt=!0,On.then(Ce))}function _t(t){Me.push(t)}const gt=new Set;let Fe=0;function Ce(){if(Fe!==0)return;const t=qe;do{try{for(;Fe<Re.length;){const e=Re[Fe];Fe++,Ye(e),An(e.$$)}}catch(e){throw Re.length=0,Fe=0,e}for(Ye(null),Re.length=0,Fe=0;Ie.length;)Ie.pop()();for(let e=0;e<Me.length;e+=1){const i=Me[e];gt.has(i)||(gt.add(i),i())}Me.length=0}while(Re.length);for(;Ft.length;)Ft.pop()();pt=!1,gt.clear(),Ye(t)}function An(t){if(t.fragment!==null){t.update(),Te(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(_t)}}function Mn(t){const e=[],i=[];Me.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Me=e}const it=new Set;let Le;function me(){Le={r:0,c:[],p:Le}}function pe(){Le.r||Te(Le.c),Le=Le.p}function k(t,e){t&&t.i&&(it.delete(t),t.i(e))}function T(t,e,i,n){if(t&&t.o){if(it.has(t))return;it.add(t),Le.c.push(()=>{it.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ee(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Qt(t,e){const i={},n={},r={$$scope:1};let s=t.length;for(;s--;){const a=t[s],o=e[s];if(o){for(const c in a)c in o||(n[c]=1);for(const c in o)r[c]||(i[c]=o[c],r[c]=1);t[s]=o}else for(const c in a)r[c]=1}for(const a in n)a in i||(i[a]=void 0);return i}function zn(t){return typeof t=="object"&&t!==null?t:{}}function I(t){t&&t.c()}function M(t,e,i){const{fragment:n,after_update:r}=t.$$;n&&n.m(e,i),_t(()=>{const s=t.$$.on_mount.map(Pt).filter(yt);t.$$.on_destroy?t.$$.on_destroy.push(...s):Te(s),t.$$.on_mount=[]}),r.forEach(_t)}function z(t,e){const i=t.$$;i.fragment!==null&&(Mn(i.after_update),Te(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Gn(t,e){t.$$.dirty[0]===-1&&(Re.push(t),Rn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function q(t,e,i,n,r,s,a=null,o=[-1]){const c=qe;Ye(t);const l=t.$$={fragment:null,ctx:[],props:s,update:J,not_equal:r,bound:$t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:$t(),dirty:o,skip_bound:!1,root:e.target||c.$$.root};a&&a(l.root);let d=!1;if(l.ctx=i?i(t,e.props||{},(u,f,...g)=>{const m=g.length?g[0]:f;return l.ctx&&r(l.ctx[u],l.ctx[u]=m)&&(!l.skip_bound&&l.bound[u]&&l.bound[u](m),d&&Gn(t,u)),f}):[],l.update(),d=!0,Te(l.before_update),l.fragment=n?n(l.ctx):!1,e.target){if(e.hydrate){const u=Sn(e.target);l.fragment&&l.fragment.l(u),u.forEach(N)}else l.fragment&&l.fragment.c();e.intro&&k(t.$$.fragment),M(t,e.target,e.anchor),Ce()}Ye(c)}let jt;typeof HTMLElement=="function"&&(jt=class extends HTMLElement{constructor(e,i,n){super();fe(this,"$$ctor");fe(this,"$$s");fe(this,"$$c");fe(this,"$$cn",!1);fe(this,"$$d",{});fe(this,"$$r",!1);fe(this,"$$p_d",{});fe(this,"$$l",{});fe(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=i,n&&this.attachShadow({mode:"open"})}addEventListener(e,i,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){const r=this.$$c.$on(e,i);this.$$l_u.set(i,r)}super.addEventListener(e,i,n)}removeEventListener(e,i,n){if(super.removeEventListener(e,i,n),this.$$c){const r=this.$$l_u.get(i);r&&(r(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return()=>{let o;return{c:function(){o=x("slot"),a!=="default"&&_(o,"name",a)},m:function(d,u){D(d,o,u)},d:function(d){d&&N(o)}}}};var e=i;if(await Promise.resolve(),!this.$$cn)return;const n={},r=Fn(this);for(const a of this.$$s)a in r&&(n[a]=[i(a)]);for(const a of this.attributes){const o=this.$$g_p(a.name);o in this.$$d||(this.$$d[o]=rt(o,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const a in this.$$p_d)if(this.$$d[a]=this.$$c.$$.ctx[this.$$c.$$.props[a]],this.$$p_d[a].reflect){const o=rt(a,this.$$d[a],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,o)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const a in this.$$l)for(const o of this.$$l[a]){const c=this.$$c.$on(a,o);this.$$l_u.set(o,c)}this.$$l={}}}attributeChangedCallback(e,i,n){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=rt(e,n,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function rt(t,e,i,n){var s;const r=(s=i[t])==null?void 0:s.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])return e;if(n==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function In(t,e,i,n,r,s){let a=class extends jt{constructor(){super(t,i,r),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Object.keys(e).forEach(o=>{Object.defineProperty(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var l;c=rt(o,c,e),this.$$d[o]=c,(l=this.$$c)==null||l.$set({[o]:c})}})}),n.forEach(o=>{Object.defineProperty(a.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),s&&(a=s(a)),t.element=a,a}class Z{constructor(){fe(this,"$$");fe(this,"$$set")}$destroy(){z(this,1),this.$destroy=J}$on(e,i){if(!yt(i))return J;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const r=n.indexOf(i);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!bn(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const En="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(En);function Hn(t){ee(t,"svelte-uqg1eo",".Icon.svelte-uqg1eo:before{font-family:'la-icon-font';display:inline-block;margin:0;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;font-size:1em}")}function Kn(t){let e,i;return{c(){e=x("span"),_(e,"class",i=ie(`Icon ${t[0]} ${t[1]}`)+" svelte-uqg1eo")},m(n,r){D(n,e,r)},p(n,[r]){r&3&&i!==(i=ie(`Icon ${n[0]} ${n[1]}`)+" svelte-uqg1eo")&&_(e,"class",i)},i:J,o:J,d(n){n&&N(e)}}}function Bn(t,e,i){let{className:n=""}=e,{iconLaClassName:r}=e;return t.$$set=s=>{"className"in s&&i(0,n=s.className),"iconLaClassName"in s&&i(1,r=s.iconLaClassName)},[n,r]}class we extends Z{constructor(e){super(),q(this,e,Bn,Kn,Y,{className:0,iconLaClassName:1},Hn)}}const Oe=[];function ue(t,e=J){let i;const n=new Set;function r(o){if(Y(t,o)&&(t=o,i)){const c=!Oe.length;for(const l of n)l[1](),Oe.push(l,t);if(c){for(let l=0;l<Oe.length;l+=2)Oe[l][0](Oe[l+1]);Oe.length=0}}}function s(o){r(o(t))}function a(o,c=J){const l=[o,c];return n.add(l),n.size===1&&(i=e(r,s)||J),o(t),()=>{n.delete(l),n.size===0&&i&&(i(),i=null)}}return{set:r,update:s,subscribe:a}}var Ae=globalThis&&globalThis.__awaiter||function(t,e,i,n){function r(s){return s instanceof i?s:new i(function(a){a(s)})}return new(i||(i=Promise))(function(s,a){function o(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?s(d.value):r(d.value).then(o,c)}l((n=n.apply(t,e||[])).next())})};const Jn="https://localhost/api/v3".replace(/\/+$/,"");class wt{constructor(e={}){this.configuration=e}set config(e){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Jn}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||en}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:()=>Ae(this,void 0,void 0,function*(){return e})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const Un=new wt;class lt{constructor(e=Un){this.configuration=e,this.fetchApi=(i,n)=>Ae(this,void 0,void 0,function*(){let r={url:i,init:n};for(const a of this.middleware)a.pre&&(r=(yield a.pre(Object.assign({fetch:this.fetchApi},r)))||r);let s;try{s=yield(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(a){for(const o of this.middleware)o.onError&&(s=(yield o.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:a,response:s?s.clone():void 0}))||s);if(s===void 0)throw a instanceof Error?new Vn(a,"The request failed and the interceptors did not return an alternative response"):a}for(const a of this.middleware)a.post&&(s=(yield a.post({fetch:this.fetchApi,url:r.url,init:r.init,response:s.clone()}))||s);return s}),this.middleware=e.middleware}withMiddleware(...e){const i=this.clone();return i.middleware=i.middleware.concat(...e),i}withPreMiddleware(...e){const i=e.map(n=>({pre:n}));return this.withMiddleware(...i)}withPostMiddleware(...e){const i=e.map(n=>({post:n}));return this.withMiddleware(...i)}isJsonMime(e){return e?lt.jsonRegex.test(e):!1}request(e,i){return Ae(this,void 0,void 0,function*(){const{url:n,init:r}=yield this.createFetchParams(e,i),s=yield this.fetchApi(n,r);if(s&&s.status>=200&&s.status<300)return s;throw new Pn(s,"Response returned an error code")})}createFetchParams(e,i){return Ae(this,void 0,void 0,function*(){let n=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(e.query));const r=Object.assign({},this.configuration.headers,e.headers);Object.keys(r).forEach(l=>r[l]===void 0?delete r[l]:{});const s=typeof i=="function"?i:()=>Ae(this,void 0,void 0,function*(){return i}),a={method:e.method,headers:r,body:e.body,credentials:this.configuration.credentials},o=Object.assign(Object.assign({},a),yield s({init:a,context:e})),c=Object.assign(Object.assign({},o),{body:Yn(o.body)||o.body instanceof URLSearchParams||Wn(o.body)?o.body:JSON.stringify(o.body)});return{url:n,init:c}})}clone(){const e=this.constructor,i=new e(this.configuration);return i.middleware=this.middleware.slice(),i}}lt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function Wn(t){return typeof Blob<"u"&&t instanceof Blob}function Yn(t){return typeof FormData<"u"&&t instanceof FormData}class Pn extends Error{constructor(e,i){super(i),this.response=e,this.name="ResponseError"}}class Vn extends Error{constructor(e,i){super(i),this.cause=e,this.name="FetchError"}}class Ot extends Error{constructor(e,i){super(i),this.field=e,this.name="RequiredError"}}function h(t,e){const i=t[e];return i!=null}function en(t,e=""){return Object.keys(t).map(i=>tn(i,t[i],e)).filter(i=>i.length>0).join("&")}function tn(t,e,i=""){const n=i+(i.length?`[${t}]`:t);if(e instanceof Array){const r=e.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(n)}=`);return`${encodeURIComponent(n)}=${r}`}if(e instanceof Set){const r=Array.from(e);return tn(t,r,i)}return e instanceof Date?`${encodeURIComponent(n)}=${encodeURIComponent(e.toISOString())}`:e instanceof Object?en(e,n):`${encodeURIComponent(n)}=${encodeURIComponent(String(e))}`}class X{constructor(e,i=n=>n){this.raw=e,this.transformer=i}value(){return Ae(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function qn(t){return Zn(t)}function Zn(t,e){return t==null?t:{departmentid:h(t,"departmentid")?t.departmentid:void 0,onlineStatus:h(t,"online_status")?t.online_status:void 0,presetStatus:h(t,"preset_status")?t.preset_status:void 0}}function Xn(t){return Qn(t)}function Qn(t,e){return t==null?t:{agentid:h(t,"agentid")?t.agentid:void 0,firstname:h(t,"firstname")?t.firstname:void 0,lastname:h(t,"lastname")?t.lastname:void 0,systemName:h(t,"system_name")?t.system_name:void 0,username:h(t,"username")?t.username:void 0,countrycode:h(t,"countrycode")?t.countrycode:void 0,avatarUrl:h(t,"avatar_url")?t.avatar_url:void 0,roleid:h(t,"roleid")?t.roleid:void 0,departmentsStatuses:h(t,"departments_statuses")?t.departments_statuses.map(qn):void 0,twofa:h(t,"twofa")?t.twofa:void 0,lastPswdChange:h(t,"last_pswd_change")?new Date(t.last_pswd_change):void 0,userstatus:h(t,"userstatus")?t.userstatus:void 0}}function jn(t){return ei(t)}function ei(t,e){return t==null?t:{conversationid:h(t,"conversationid")?t.conversationid:void 0,datechanged:h(t,"datechanged")?new Date(t.datechanged):void 0,status:h(t,"status")?t.status:void 0,preview:h(t,"preview")?t.preview:void 0,subject:h(t,"subject")?t.subject:void 0,departmentname:h(t,"departmentname")?t.departmentname:void 0,agentname:h(t,"agentname")?t.agentname:void 0,tags:h(t,"tags")?t.tags:void 0,firstname:h(t,"firstname")?t.firstname:void 0,lastname:h(t,"lastname")?t.lastname:void 0,systemName:h(t,"system_name")?t.system_name:void 0,emails:h(t,"emails")?t.emails:void 0,city:h(t,"city")?t.city:void 0,countrycode:h(t,"countrycode")?t.countrycode:void 0,avatarUrl:h(t,"avatar_url")?t.avatar_url:void 0,rstatus:h(t,"rstatus")?t.rstatus:void 0,statusdatestarted:h(t,"statusdatestarted")?new Date(t.statusdatestarted):void 0,chatOrder:h(t,"chat_order")?t.chat_order:void 0}}function ti(t){return ni(t)}function ni(t,e){return t==null?t:{id:h(t,"id")?t.id:void 0,name:h(t,"name")?t.name:void 0,type:h(t,"type")?t.type:void 0,onlineCode:h(t,"online_code")?t.online_code:void 0,offlineCode:h(t,"offline_code")?t.offline_code:void 0,onlineCodeCss:h(t,"online_code_css")?t.online_code_css:void 0,offlineCodeCss:h(t,"offline_code_css")?t.offline_code_css:void 0,provide:h(t,"provide")?t.provide:void 0,impressions:h(t,"impressions")?t.impressions:void 0,tickets:h(t,"tickets")?t.tickets:void 0,status:h(t,"status")?t.status:void 0,lastDisplayTime:h(t,"last_display_time")?t.last_display_time:void 0,lastDisplayUrl:h(t,"last_display_url")?t.last_display_url:void 0}}function ve(t){return ii(t)}function ii(t,e){return t==null?t:{count:h(t,"count")?t.count:void 0}}function ri(t){return si(t)}function si(t,e){return t==null?t:{id:h(t,"id")?t.id:void 0,name:h(t,"name")?t.name:void 0,agentCount:h(t,"agent_count")?t.agent_count:void 0}}function ai(t){return oi(t)}function oi(t,e){return t==null?t:{id:h(t,"id")?t.id:void 0,logid:h(t,"logid")?t.logid:void 0,line:h(t,"line")?t.line:void 0,filename:h(t,"filename")?t.filename:void 0,created:h(t,"created")?t.created:void 0,level:h(t,"level")?t.level:void 0,type:h(t,"type")?t.type:void 0,message:h(t,"message")?t.message:void 0,ip:h(t,"ip")?t.ip:void 0,groupid:h(t,"groupid")?t.groupid:void 0}}function li(t){return ci(t)}function ci(t,e){return t==null?t:{agentid:h(t,"agentid")?t.agentid:void 0,firstname:h(t,"firstname")?t.firstname:void 0,lastname:h(t,"lastname")?t.lastname:void 0,systemName:h(t,"system_name")?t.system_name:void 0,avatarUrl:h(t,"avatar_url")?t.avatar_url:void 0,chats:h(t,"chats")?t.chats:void 0}}function ui(t){return di(t)}function di(t,e){return t==null?t:{name:h(t,"name")?t.name:void 0,code:h(t,"code")?t.code:void 0,engName:h(t,"eng_name")?t.eng_name:void 0,translated:h(t,"translated")?t.translated:void 0,isDefault:h(t,"is_default")?t.is_default:void 0,active:h(t,"active")?t.active:void 0,isCustom:h(t,"is_custom")?t.is_custom:void 0,isBuiltIn:h(t,"is_builtIn")?t.is_builtIn:void 0}}function fi(t){return gi(t)}function gi(t,e){return t==null?t:{codeName:h(t,"code_name")?t.code_name:void 0,name:h(t,"name")?t.name:void 0,description:h(t,"description")?t.description:void 0,active:h(t,"active")?t.active:void 0,help:h(t,"help")?t.help:void 0,multiple:h(t,"multiple")?t.multiple:void 0,configFile:h(t,"config_file")?t.config_file:void 0,price:h(t,"price")?t.price:void 0,legacyIntegration:h(t,"legacy_integration")?t.legacy_integration:void 0}}function ht(t){return hi(t)}function hi(t,e){return t==null?t:{id:h(t,"id")?t.id:void 0,conversationid:h(t,"conversationid")?t.conversationid:void 0,code:h(t,"code")?t.code:void 0,slaTicketId:h(t,"sla_ticket_id")?t.sla_ticket_id:void 0,departmentid:h(t,"departmentid")?t.departmentid:void 0,departmentName:h(t,"department_name")?t.department_name:void 0,levelid:h(t,"levelid")?t.levelid:void 0,slaLevelName:h(t,"sla_level_name")?t.sla_level_name:void 0,sla:h(t,"sla")?t.sla:void 0,dateCreated:h(t,"date_created")?t.date_created:void 0,dateClosed:h(t,"date_closed")?t.date_closed:void 0,dateDue:h(t,"date_due")?t.date_due:void 0,slaLevelId:h(t,"sla_level_id")?t.sla_level_id:void 0,slaType:h(t,"sla_type")?new Date(t.sla_type):void 0,agentid:h(t,"agentid")?t.agentid:void 0,agentFirstname:h(t,"agent_firstname")?t.agent_firstname:void 0,agentLastname:h(t,"agent_lastname")?t.agent_lastname:void 0,agentAvatarUrl:h(t,"agent_avatar_url")?t.agent_avatar_url:void 0,reqContactid:h(t,"req_contactid")?t.req_contactid:void 0,reqFirstname:h(t,"req_firstname")?t.req_firstname:void 0,reqLastname:h(t,"req_lastname")?t.req_lastname:void 0,reqSystemname:h(t,"req_systemname")?t.req_systemname:void 0,reqContactName:h(t,"req_contactName")?t.req_contactName:void 0,reqAvatarUrl:h(t,"req_avatar_url")?t.req_avatar_url:void 0}}function Rt(t){return mi(t)}function mi(t,e){return t==null?t:{tagid:h(t,"tagid")?t.tagid:void 0,name:h(t,"name")?t.name:void 0,type:h(t,"type")?t.type:void 0,color:h(t,"color")?t.color:void 0,backgroundcolor:h(t,"backgroundcolor")?t.backgroundcolor:void 0,isPublic:h(t,"is_public")?t.is_public:void 0}}function nn(t){return pi(t)}function pi(t,e){return t==null?t:{conversationid:h(t,"conversationid")?t.conversationid:void 0,code:h(t,"code")?t.code:void 0,datecreated:h(t,"datecreated")?new Date(t.datecreated):void 0,datechanged:h(t,"datechanged")?new Date(t.datechanged):void 0,dateresolved:h(t,"dateresolved")?new Date(t.dateresolved):void 0,statuschanged:h(t,"statuschanged")?new Date(t.statuschanged):void 0,rorder:h(t,"rorder")?t.rorder:void 0,datedue:h(t,"datedue")?new Date(t.datedue):void 0,datereopen:h(t,"datereopen")?new Date(t.datereopen):void 0,status:h(t,"status")?t.status:void 0,channelType:h(t,"channel_type")?t.channel_type:void 0,departmentid:h(t,"departmentid")?t.departmentid:void 0,agentid:h(t,"agentid")?t.agentid:void 0,preview:h(t,"preview")?t.preview:void 0,subject:h(t,"subject")?t.subject:void 0,departmentname:h(t,"departmentname")?t.departmentname:void 0,agentname:h(t,"agentname")?t.agentname:void 0,tags:h(t,"tags")?t.tags:void 0,messagegroupsIn:h(t,"messagegroups_in")?t.messagegroups_in:void 0,messagegroupsOut:h(t,"messagegroups_out")?t.messagegroups_out:void 0,contactid:h(t,"contactid")?t.contactid:void 0,parentContactid:h(t,"parent_contactid")?t.parent_contactid:void 0,firstname:h(t,"firstname")?t.firstname:void 0,lastname:h(t,"lastname")?t.lastname:void 0,systemName:h(t,"system_name")?t.system_name:void 0,emails:h(t,"emails")?t.emails:void 0,phones:h(t,"phones")?t.phones:void 0,jobPosition:h(t,"job_position")?t.job_position:void 0,contactType:h(t,"contact_type")?t.contact_type:void 0,city:h(t,"city")?t.city:void 0,countrycode:h(t,"countrycode")?t.countrycode:void 0,timeOffset:h(t,"time_offset")?t.time_offset:void 0,gender:h(t,"gender")?t.gender:void 0,levelid:h(t,"levelid")?t.levelid:void 0,groups:h(t,"groups")?t.groups:void 0,contactStatus:h(t,"contact_status")?t.contact_status:void 0,company:h(t,"company")?t.company:void 0,avatarUrl:h(t,"avatar_url")?t.avatar_url:void 0,userid:h(t,"userid")?t.userid:void 0,roleid:h(t,"roleid")?t.roleid:void 0,userstatus:h(t,"userstatus")?t.userstatus:void 0,accountuserstatus:h(t,"accountuserstatus")?t.accountuserstatus:void 0,description:h(t,"description")?t.description:void 0,note:h(t,"note")?t.note:void 0,lastActivity:h(t,"last_activity")?new Date(t.last_activity):void 0,tagnames:h(t,"tagnames")?t.tagnames:void 0,groupnames:h(t,"groupnames")?t.groupnames:void 0}}function _i(t){return vi(t)}function vi(t,e){return t==null?t:{cursor:h(t,"cursor")?t.cursor:void 0,rows:h(t,"rows")?t.rows.map(nn):void 0}}function yi(t){return bi(t)}function bi(t,e){return t==null?t:{id:h(t,"id")?t.id:void 0,agentid:h(t,"agentid")?t.agentid:void 0,agent:h(t,"agent")?t.agent:void 0,conversationid:h(t,"conversationid")?t.conversationid:void 0,ticket:h(t,"ticket")?t.ticket:void 0,parentContactid:h(t,"parent_contactid")?t.parent_contactid:void 0,company:h(t,"company")?t.company:void 0,contactid:h(t,"contactid")?t.contactid:void 0,customer:h(t,"customer")?t.customer:void 0,customerFirstname:h(t,"customer_firstname")?t.customer_firstname:void 0,customerLastname:h(t,"customer_lastname")?t.customer_lastname:void 0,customerSystemname:h(t,"customer_systemname")?t.customer_systemname:void 0,agentTicket:h(t,"agent_ticket")?t.agent_ticket:void 0,reportdate:h(t,"reportdate")?t.reportdate:void 0,reportedtime:h(t,"reportedtime")?t.reportedtime:void 0,reportedtimeHhmmss:h(t,"reportedtime_hhmmss")?t.reportedtime_hhmmss:void 0,spenttime:h(t,"spenttime")?t.spenttime:void 0,dateinvoiced:h(t,"dateinvoiced")?t.dateinvoiced:void 0,note:h(t,"note")?t.note:void 0,type:h(t,"type")?t.type:void 0}}var O=globalThis&&globalThis.__awaiter||function(t,e,i,n){function r(s){return s instanceof i?s:new i(function(a){a(s)})}return new(i||(i=Promise))(function(s,a){function o(d){try{l(n.next(d))}catch(u){a(u)}}function c(d){try{l(n.throw(d))}catch(u){a(u)}}function l(d){d.done?s(d.value):r(d.value).then(o,c)}l((n=n.apply(t,e||[])).next())})};class rn extends lt{getAgentsGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/agents",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(Xn))})}getAgentsGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(e,i)).value()})}getAgentsGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/agents/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getAgentsGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(e,i)).value()})}getCallsSlaLogGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};e.timezoneOffset!==void 0&&e.timezoneOffset!==null&&(r["Timezone-Offset"]=String(e.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/calls/sla",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(ht))})}getCallsSlaLogGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(e,i)).value()})}getCallsSlaLogGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getCallsSlaLogGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(e,i)).value()})}getChatsGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor);const r={};e.timezoneOffset!==void 0&&e.timezoneOffset!==null&&(r["Timezone-Offset"]=String(e.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(jn))})}getChatsGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(e,i)).value()})}getChatsGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getChatsGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(e,i)).value()})}getChatsSlaLogGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};e.timezoneOffset!==void 0&&e.timezoneOffset!==null&&(r["Timezone-Offset"]=String(e.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/sla",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(ht))})}getChatsSlaLogGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(e,i)).value()})}getChatsSlaLogGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getChatsSlaLogGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(e,i)).value()})}getContactWidgetsCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getContactWidgetsCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(e,i)).value()})}getContactWidgetsListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(ti))})}getContactWidgetsList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(e,i)).value()})}getCustomerGroupsGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/customer_groups",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(Rt))})}getCustomerGroupsGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(e,i)).value()})}getDepartmensGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/departments/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getDepartmensGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(e,i)).value()})}getDepartmentsGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/departments",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(ri))})}getDepartmentsGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(e,i)).value()})}getEventLogsGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};e.timezoneOffset!==void 0&&e.timezoneOffset!==null&&(r["Timezone-Offset"]=String(e.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/eventlogs",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(ai))})}getEventLogsGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(e,i)).value()})}getEventLogsGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getEventLogsGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(e,i)).value()})}getInviteAgentsGridListRaw(e,i){return O(this,void 0,void 0,function*(){if(e.departmentId===null||e.departmentId===void 0)throw new Ot("departmentId","Required parameter requestParameters.departmentId was null or undefined when calling getInviteAgentsGridList.");const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(e.departmentId))),method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(li))})}getInviteAgentsGridList(e,i){return O(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(e,i)).value()})}getLanguagesGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/languages",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(ui))})}getLanguagesGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(e,i)).value()})}getLanguagesGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/languages/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getLanguagesGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(e,i)).value()})}getPlugindGridListRaw(e,i){return O(this,void 0,void 0,function*(){if(e.pluginPurpose===null||e.pluginPurpose===void 0)throw new Ot("pluginPurpose","Required parameter requestParameters.pluginPurpose was null or undefined when calling getPlugindGridList.");const n={};e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.pluginPurpose!==void 0&&(n.pluginPurpose=e.pluginPurpose);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["plugin_settings.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/plugins",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(fi))})}getPlugindGridList(e,i){return O(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(e,i)).value()})}getTagsGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tags",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(Rt))})}getTagsGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(e,i)).value()})}getTicketsGridDatasetRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};e.timezoneOffset!==void 0&&e.timezoneOffset!==null&&(r["Timezone-Offset"]=String(e.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets_new",method:"GET",headers:r,query:n},i);return new X(s,a=>_i(a))})}getTicketsGridDataset(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(e,i)).value()})}getTicketsGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};e.timezoneOffset!==void 0&&e.timezoneOffset!==null&&(r["Timezone-Offset"]=String(e.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(nn))})}getTicketsGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(e,i)).value()})}getTicketsGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};e.timezoneOffset!==void 0&&e.timezoneOffset!==null&&(r["Timezone-Offset"]=String(e.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getTicketsGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(e,i)).value()})}getTicketsSlaLogGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor),e.sortField!==void 0&&(n._sortField=e.sortField);const r={};e.timezoneOffset!==void 0&&e.timezoneOffset!==null&&(r["Timezone-Offset"]=String(e.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(ht))})}getTicketsSlaLogGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(e,i)).value()})}getTicketsSlaLogGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getTicketsSlaLogGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(e,i)).value()})}getTimeReportsGridListRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.perPage!==void 0&&(n._perPage=e.perPage),e.sortDir!==void 0&&(n._sortDir=e.sortDir),e.sortField!==void 0&&(n._sortField=e.sortField),e.filters!==void 0&&(n._filters=e.filters),e.cursor!==void 0&&(n._cursor=e.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/reports/time",method:"GET",headers:r,query:n},i);return new X(s,a=>a.map(yi))})}getTimeReportsGridList(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(e,i)).value()})}getTimeReportsGridListCountRaw(e,i){return O(this,void 0,void 0,function*(){const n={};e.filters!==void 0&&(n._filters=e.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:r,query:n},i);return new X(s,a=>ve(a))})}getTimeReportsGridListCount(e={},i){return O(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(e,i)).value()})}}const At={Asc:"ASC",Desc:"DESC"},Ue={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},wi={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},ze=ue(!1),kt=ue([]),at=ue(null),Ze=ue(null),Ge=ue(!1),Pe=ue(!1),sn=ue({}),he=ue([]),an=ue(null),Ne=ue(null),ct=ue(!0),Ct=ue(wi.Rorder),on=ue([]);function F(t){return ge(on)[t]||t}function ki(t){ee(t,"svelte-mupm4a",".Counter.svelte-mupm4a{display:none}span.svelte-mupm4a{margin-right:5px}.Selection.svelte-mupm4a{color:var(--ticket-selected-textcolor);background-color:var(--ticket-selected-bg);padding:6px 10px;border-radius:4px;font-size:12px;font-style:normal;font-weight:700;line-height:20px}.text.svelte-mupm4a{font-family:'Roboto', sans-serif;font-size:12px;line-height:20px}.many.svelte-mupm4a{color:var(--main-textcolor);padding:2px 12px;border:1px solid var(--menu-hover-bg);border-radius:4px;font-weight:500;font-size:12px;font-family:'Roboto', sans-serif;line-height:20px;cursor:pointer}.many.loading.svelte-mupm4a{border:none;padding:2px 0}@media(min-width: 768px){.Counter.svelte-mupm4a{display:block}}")}function Ci(t){let e,i=F("Displaying ")+t[6].length+" "+F("of"),n,r,s,a=(t[1]?F("Loading.."):t[0]??F("many"))+"",o,c,l,d;return{c(){e=x("span"),n=j(i),r=K(),s=x("span"),o=j(a),_(e,"class","text svelte-mupm4a"),_(s,"class",c=ie(t[2])+" svelte-mupm4a")},m(u,f){D(u,e,f),w(e,n),D(u,r,f),D(u,s,f),w(s,o),l||(d=le(s,"click",t[7]),l=!0)},p(u,f){f&64&&i!==(i=F("Displaying ")+u[6].length+" "+F("of"))&&ae(n,i),f&3&&a!==(a=(u[1]?F("Loading.."):u[0]??F("many"))+"")&&ae(o,a),f&4&&c!==(c=ie(u[2])+" svelte-mupm4a")&&_(s,"class",c)},d(u){u&&(N(e),N(r),N(s)),l=!1,d()}}}function xi(t){let e;return{c(){e=x("span"),e.textContent=`${F("Loading...")}`,_(e,"class","text svelte-mupm4a")},m(i,n){D(i,e,n)},p:J,d(i){i&&N(e)}}}function Ti(t){let e;function i(s,a){return s[3]?Li:s[4].length===1?Si:$i}let n=i(t),r=n(t);return{c(){r.c(),e=Ke()},m(s,a){r.m(s,a),D(s,e,a)},p(s,a){n===(n=i(s))&&r?r.p(s,a):(r.d(1),r=n(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){s&&N(e),r.d(s)}}}function $i(t){let e,i=t[4].length+" rows selected",n;return{c(){e=x("span"),n=j(i),_(e,"class","Selection svelte-mupm4a")},m(r,s){D(r,e,s),w(e,n)},p(r,s){s&16&&i!==(i=r[4].length+" rows selected")&&ae(n,i)},d(r){r&&N(e)}}}function Si(t){let e,i=t[4].length+" row selected",n;return{c(){e=x("span"),n=j(i),_(e,"class","Selection svelte-mupm4a")},m(r,s){D(r,e,s),w(e,n)},p(r,s){s&16&&i!==(i=r[4].length+" row selected")&&ae(n,i)},d(r){r&&N(e)}}}function Li(t){let e;function i(s,a){return s[4].length>0?Di:Ni}let n=i(t),r=n(t);return{c(){r.c(),e=Ke()},m(s,a){r.m(s,a),D(s,e,a)},p(s,a){n===(n=i(s))&&r?r.p(s,a):(r.d(1),r=n(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){s&&N(e),r.d(s)}}}function Ni(t){let e;return{c(){e=x("span"),e.textContent=`${F("all rows selected")}`,_(e,"class","Selection svelte-mupm4a")},m(i,n){D(i,e,n)},p:J,d(i){i&&N(e)}}}function Di(t){let e;function i(s,a){return s[4].length===1?Oi:Fi}let n=i(t),r=n(t);return{c(){r.c(),e=Ke()},m(s,a){r.m(s,a),D(s,e,a)},p(s,a){n===(n=i(s))&&r?r.p(s,a):(r.d(1),r=n(s),r&&(r.c(),r.m(e.parentNode,e)))},d(s){s&&N(e),r.d(s)}}}function Fi(t){let e,i=F("all rows selected except")+" "+t[4].length+" "+F("rows"),n;return{c(){e=x("span"),n=j(i),_(e,"class","Selection svelte-mupm4a")},m(r,s){D(r,e,s),w(e,n)},p(r,s){s&16&&i!==(i=F("all rows selected except")+" "+r[4].length+" "+F("rows"))&&ae(n,i)},d(r){r&&N(e)}}}function Oi(t){let e,i=F("all rows selected except")+" "+t[4].length+" "+F("row"),n;return{c(){e=x("span"),n=j(i),_(e,"class","Selection svelte-mupm4a")},m(r,s){D(r,e,s),w(e,n)},p(r,s){s&16&&i!==(i=F("all rows selected except")+" "+r[4].length+" "+F("row"))&&ae(n,i)},d(r){r&&N(e)}}}function Ri(t){let e;function i(s,a){return s[3]||s[4].length>0?Ti:s[5]?xi:Ci}let n=i(t),r=n(t);return{c(){e=x("div"),r.c(),_(e,"class","Counter svelte-mupm4a")},m(s,a){D(s,e,a),r.m(e,null)},p(s,[a]){n===(n=i(s))&&r?r.p(s,a):(r.d(1),r=n(s),r&&(r.c(),r.m(e,null)))},i:J,o:J,d(s){s&&N(e),r.d()}}}function Ai(t,e,i){let n,r,s,a,o,c;Q(t,Ze,m=>i(8,n=m)),Q(t,at,m=>i(9,r=m)),Q(t,ze,m=>i(3,s=m)),Q(t,kt,m=>i(4,a=m)),Q(t,Ge,m=>i(5,o=m)),Q(t,he,m=>i(6,c=m));let l=null,d=!1,u="many";function f(){i(0,l=null)}async function g(){i(2,u="many loading"),i(1,d=!0);let m=await r.getTicketsGridListCount({filters:n,timezoneOffset:new Date().getTimezoneOffset()});i(0,l=m.count),i(1,d=!1)}return t.$$.update=()=>{t.$$.dirty&256&&n&&f()},[l,d,u,s,a,o,c,g,n]}class Mi extends Z{constructor(e){super(),q(this,e,Ai,Ri,Y,{},ki)}}async function He(t=!1){if(!(ge(Ge)||!ge(at))&&(t&&(Ne.set(null),Pe.set(!1)),!(!ge(Ne)&&ge(Pe)))){Ge.set(!0);try{const i=await(await ge(at).getTicketsGridDatasetRaw(zi())).value();t&&he.set([]),he.set([...ge(he),...i.rows]),Ne.set(i.cursor),Pe.set(!0)}catch(e){an.set(e.toString())}Ge.set(!1)}}function zi(){return{perPage:20,sortDir:ge(ct)?At.Asc:At.Desc,filters:ge(Ze),sortField:ge(Ct),cursor:ge(Ne)?ge(Ne):""}}function Gi(t){ee(t,"svelte-oyjuek",".Head.svelte-oyjuek.svelte-oyjuek{display:flex;position:sticky;top:0;color:var(--panel_text_color);margin-bottom:20px;align-items:center;font-size:14px;font-family:'Roboto', sans-serif;border-bottom:1px solid var(--main-lighter-textcolor);padding:0 23px 6px 44px}.FilterIcon{font-size:20px;margin-right:2px}.headCheckbox.svelte-oyjuek.svelte-oyjuek{width:20px;margin-right:16px}.headCheckbox.svelte-oyjuek input[type=checkbox].svelte-oyjuek{vertical-align:middle;cursor:pointer;margin:3px}button.svelte-oyjuek.svelte-oyjuek{border:none;background:none;font-size:13px;font-weight:400;color:var(--main-lighter-textcolor)}.spinner.svelte-oyjuek.svelte-oyjuek{font-size:16px;cursor:pointer}.rightPanel.svelte-oyjuek.svelte-oyjuek{display:flex;margin-inline-start:auto}.Sorting.svelte-oyjuek.svelte-oyjuek{cursor:pointer;text-align:left;font-weight:bold}.loading.svelte-oyjuek.svelte-oyjuek{animation-name:svelte-oyjuek-rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes svelte-oyjuek-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media screen and (min-width: 768px){.headCheckbox.svelte-oyjuek.svelte-oyjuek{margin-right:42px}}")}function Ii(t){let e,i,n,r,s,a,o,c,l,d,u,f,g,m,v,$,p,R,G;return s=new we({props:{iconLaClassName:"la-filter",className:"FilterIcon"}}),d=new we({props:{iconLaClassName:"la-show"}}),g=new Mi({}),$=new we({props:{iconLaClassName:"la-refresh"}}),{c(){e=x("div"),i=x("div"),n=x("input"),r=K(),I(s.$$.fragment),a=K(),o=x("button"),c=j(t[0]),l=K(),I(d.$$.fragment),u=K(),f=x("div"),I(g.$$.fragment),m=K(),v=x("button"),I($.$$.fragment),_(n,"type","checkbox"),_(n,"class","svelte-oyjuek"),_(i,"class","headCheckbox svelte-oyjuek"),_(o,"class","Sorting svelte-oyjuek"),_(v,"class","spinner svelte-oyjuek"),_(v,"title",F("Reload")),Dt(v,"loading",t[3]),_(f,"class","rightPanel svelte-oyjuek"),_(e,"class","Head svelte-oyjuek")},m(L,B){D(L,e,B),w(e,i),w(i,n),n.checked=t[2],w(e,r),M(s,e,null),w(e,a),w(e,o),w(o,c),t[7](o),w(e,l),M(d,e,null),w(e,u),w(e,f),M(g,f,null),w(f,m),w(f,v),M($,v,null),p=!0,R||(G=[le(n,"change",t[6]),le(n,"click",t[4]),le(o,"click",t[5]),le(v,"click",t[8])],R=!0)},p(L,[B]){B&4&&(n.checked=L[2]),(!p||B&1)&&ae(c,L[0]),(!p||B&8)&&Dt(v,"loading",L[3])},i(L){p||(k(s.$$.fragment,L),k(d.$$.fragment,L),k(g.$$.fragment,L),k($.$$.fragment,L),p=!0)},o(L){T(s.$$.fragment,L),T(d.$$.fragment,L),T(g.$$.fragment,L),T($.$$.fragment,L),p=!1},d(L){L&&N(e),z(s),t[7](null),z(d),z(g),z($),R=!1,Te(G)}}}function Ei(t,e,i){let n,r;Q(t,ct,v=>i(11,v)),Q(t,ze,v=>i(2,n=v)),Q(t,Ge,v=>i(3,r=v));let{currentFilter:s}=e;const a=Xt();let o,c,l;function d(){ze.set(!n),he.update(v=>v.map($=>({...$,__selected:n})))}function u(){o=c.getBoundingClientRect();let $=o.bottom-58,p=o.left-7;window.innerWidth>=768&&(p-=258),l=`position: absolute; top: ${$}px; left: ${p}px;`,a("openModal",{dialogStyles:l})}function f(){n=this.checked,ze.set(n)}function g(v){Ie[v?"unshift":"push"](()=>{c=v,i(1,c)})}const m=()=>He(!0);return t.$$set=v=>{"currentFilter"in v&&i(0,s=v.currentFilter)},[s,c,n,r,d,u,f,g,m]}class Hi extends Z{constructor(e){super(),q(this,e,Ei,Ii,Y,{currentFilter:0},Gi)}}function xe(t){switch(t){case"A":return{bg:"var(--ticket-status-answered-background)",text:"var(--ticket-status-answered-text)",border:"var(--ticket-status-answered-border)"};case"T":return{bg:"var(--ticket-status-chat-background)",text:"var(--ticket-status-chat-text)",border:"var(--ticket-status-chat-border)"};case"P":return{bg:"var(--ticket-status-phone-background)",text:"var(--ticket-status-phone-text)",border:"var(--ticket-status-phone-border)"};case"X":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"B":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"I":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"R":return{bg:"var(--ticket-status-resolved-background)",text:"var(--ticket-status-resolved-text)",border:"var(--ticket-status-resolved-border)"};case"N":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"C":return{bg:"var(--ticket-status-open-background)",text:"var(--ticket-status-open-text)",border:"var(--ticket-status-open-border)"};case"W":return{bg:"var(--ticket-status-postponed-background)",text:"var(--ticket-status-postponed-text)",border:"var(--ticket-status-postponed-border)"};default:return{bg:"",text:"",border:""}}}const Ki=()=>{const t=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#FFEB3B","#FFC107","#FF5722","#795548"],e=Math.floor(Math.random()*t.length);return t[e]},Bi=t=>{let e=t.split(" ");return e.length>1?e=e.shift().charAt(0)+e.pop().charAt(0):e=t.substring(0,2),e.toUpperCase()};function Ji(t){ee(t,"svelte-hbozhk",".wrapper.svelte-hbozhk{position:relative;width:var(--size);height:var(--size)}.innerImage.svelte-hbozhk,.innerInitials.svelte-hbozhk,.imageLoading.svelte-hbozhk{display:block;width:100%;height:100%;border-radius:var(--borderRadius)}.innerInitials.svelte-hbozhk{line-height:var(--size);background-color:var(--bgColor);color:var(--textColor);text-align:center;font-size:calc(var(--size) / (var(--abbrLength) + 0.5))}.imageLoading.svelte-hbozhk{background-color:var(--bgColor)}.imageLoading.svelte-hbozhk::before{content:'';display:block;height:100%;width:100%;background:linear-gradient(90deg, transparent, #ffffff38, transparent);position:absolute;top:0;left:0;animation:svelte-hbozhk-skeleton-animation 1.2s linear infinite}@keyframes svelte-hbozhk-skeleton-animation{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}")}function Ui(t){let e;return{c(){e=x("div"),e.textContent=`${t[10]}`,_(e,"class","innerInitials svelte-hbozhk")},m(i,n){D(i,e,n)},p:J,d(i){i&&N(e)}}}function Wi(t){let e,i,n,r,s,a;return{c(){e=x("div"),i=x("img"),_(i,"alt",""),_(i,"class",ie("innerImage")+" svelte-hbozhk"),st(i.src,n=t[2])||_(i,"src",n),_(e,"class",r=ie(t[8]?"imageLoading":"")+" svelte-hbozhk")},m(o,c){D(o,e,c),w(e,i),s||(a=[le(i,"error",t[15]),le(i,"load",t[16])],s=!0)},p(o,c){c&4&&!st(i.src,n=o[2])&&_(i,"src",n),c&256&&r!==(r=ie(o[8]?"imageLoading":"")+" svelte-hbozhk")&&_(e,"class",r)},d(o){o&&N(e),s=!1,Te(a)}}}function Yi(t){let e,i;function n(a,o){return a[2]&&!a[7]?Wi:Ui}let r=n(t),s=r(t);return{c(){e=x("div"),s.c(),_(e,"aria-label",t[1]),_(e,"class","wrapper svelte-hbozhk"),_(e,"style",i=t[0]+"--borderRadius:"+(t[6]?0:t[5])+"; --size:"+t[4]+"; --bgColor:"+t[9]+"; --src:"+t[2]+"; --textColor:"+t[3]+"; --abbrLength:"+t[11])},m(a,o){D(a,e,o),s.m(e,null)},p(a,[o]){r===(r=n(a))&&s?s.p(a,o):(s.d(1),s=r(a),s&&(s.c(),s.m(e,null))),o&2&&_(e,"aria-label",a[1]),o&125&&i!==(i=a[0]+"--borderRadius:"+(a[6]?0:a[5])+"; --size:"+a[4]+"; --bgColor:"+a[9]+"; --src:"+a[2]+"; --textColor:"+a[3]+"; --abbrLength:"+a[11])&&_(e,"style",i)},i:J,o:J,d(a){a&&N(e),s.d()}}}function Pi(t,e,i){let{style:n=""}=e,{name:r="Avatar"}=e,{initials:s}=e,{src:a}=e,{bgColor:o="lightGrey"}=e,{textColor:c="white"}=e,{size:l="50px"}=e,{borderRadius:d="50%"}=e,{square:u=!1}=e,{randomBgColor:f=!1}=e;const g=f?Ki():o,m=s||Bi(r),v=m.length;let $=!1,p=!0;const R=()=>i(7,$=!0),G=()=>i(8,p=!1);return t.$$set=L=>{"style"in L&&i(0,n=L.style),"name"in L&&i(1,r=L.name),"initials"in L&&i(12,s=L.initials),"src"in L&&i(2,a=L.src),"bgColor"in L&&i(13,o=L.bgColor),"textColor"in L&&i(3,c=L.textColor),"size"in L&&i(4,l=L.size),"borderRadius"in L&&i(5,d=L.borderRadius),"square"in L&&i(6,u=L.square),"randomBgColor"in L&&i(14,f=L.randomBgColor)},[n,r,a,c,l,d,u,$,p,g,m,v,s,o,f,R,G]}class Vi extends Z{constructor(e){super(),q(this,e,Pi,Yi,Y,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},Ji)}}function qi(t){let e,i;return e=new Vi({props:{bgColor:t[0],name:t[1],src:t[2],initials:t[3],size:"40px"}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,[r]){const s={};r&1&&(s.bgColor=n[0]),r&2&&(s.name=n[1]),r&4&&(s.src=n[2]),r&8&&(s.initials=n[3]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Zi(t,e,i){let{bgColor:n}=e,{name:r}=e,{src:s}=e,{initials:a}=e;return t.$$set=o=>{"bgColor"in o&&i(0,n=o.bgColor),"name"in o&&i(1,r=o.name),"src"in o&&i(2,s=o.src),"initials"in o&&i(3,a=o.initials)},[n,r,s,a]}class Xi extends Z{constructor(e){super(),q(this,e,Zi,qi,Y,{bgColor:0,name:1,src:2,initials:3})}}var ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cn={exports:{}},un={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(i,n){return i<<n|i>>>32-n},rotr:function(i,n){return i<<32-n|i>>>n},endian:function(i){if(i.constructor==Number)return e.rotl(i,8)&16711935|e.rotl(i,24)&4278255360;for(var n=0;n<i.length;n++)i[n]=e.endian(i[n]);return i},randomBytes:function(i){for(var n=[];i>0;i--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(i){for(var n=[],r=0,s=0;r<i.length;r++,s+=8)n[s>>>5]|=i[r]<<24-s%32;return n},wordsToBytes:function(i){for(var n=[],r=0;r<i.length*32;r+=8)n.push(i[r>>>5]>>>24-r%32&255);return n},bytesToHex:function(i){for(var n=[],r=0;r<i.length;r++)n.push((i[r]>>>4).toString(16)),n.push((i[r]&15).toString(16));return n.join("")},hexToBytes:function(i){for(var n=[],r=0;r<i.length;r+=2)n.push(parseInt(i.substr(r,2),16));return n},bytesToBase64:function(i){for(var n=[],r=0;r<i.length;r+=3)for(var s=i[r]<<16|i[r+1]<<8|i[r+2],a=0;a<4;a++)r*8+a*6<=i.length*8?n.push(t.charAt(s>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],r=0,s=0;r<i.length;s=++r%4)s!=0&&n.push((t.indexOf(i.charAt(r-1))&Math.pow(2,-2*s+8)-1)<<s*2|t.indexOf(i.charAt(r))>>>6-s*2);return n}};un.exports=e})();var Qi=un.exports,vt={utf8:{stringToBytes:function(t){return vt.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(vt.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],i=0;i<t.length;i++)e.push(t.charCodeAt(i)&255);return e},bytesToString:function(t){for(var e=[],i=0;i<t.length;i++)e.push(String.fromCharCode(t[i]));return e.join("")}}},Mt=vt;/*!
1
+ var sr=Object.defineProperty;var or=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(or(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function K(){}function gt(e,t){for(const n in t)e[n]=t[n];return e}function hi(e){return e()}function Ln(){return Object.create(null)}function Ae(e){e.forEach(hi)}function $t(e){return typeof e=="function"}function ee(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Ct;function Dt(e,t){return e===t?!0:(Ct||(Ct=document.createElement("a")),Ct.href=t,e===Ct.href)}function ar(e){return Object.keys(e).length===0}function _n(e,...t){if(e==null){for(const i of t)i(void 0);return K}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ke(e){let t;return _n(e,n=>t=n)(),t}function V(e,t,n){e.$$.on_destroy.push(_n(t,n))}function yt(e,t,n,i){if(e){const r=gi(e,t,n,i);return e[0](r)}}function gi(e,t,n,i){return e[1]&&i?gt(n.ctx.slice(),e[1](i(t))):n.ctx}function bt(e,t,n,i){if(e[2]&&i){const r=e[2](i(n));if(t.dirty===void 0)return r;if(typeof r=="object"){const s=[],o=Math.max(t.dirty.length,r.length);for(let a=0;a<o;a+=1)s[a]=t.dirty[a]|r[a];return s}return t.dirty|r}return t.dirty}function wt(e,t,n,i,r,s){if(r){const o=gi(t,n,i,s);e.p(o,r)}}function xt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}function lr(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function An(e,t){const n={};t=new Set(t);for(const i in e)!t.has(i)&&i[0]!=="$"&&(n[i]=e[i]);return n}function ue(e){return e??""}function ur(e,t,n){return e.set(n),t}const cr=["",!0,1,"true","contenteditable"];function b(e,t){e.appendChild(t)}function le(e,t,n){const i=fr(e);if(!i.getElementById(t)){const r=T("style");r.id=t,r.textContent=n,dr(i,r)}}function fr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function dr(e,t){return b(e.head||e,t),t.sheet}function O(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function yn(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function T(e){return document.createElement(e)}function q(e){return document.createTextNode(e)}function U(){return q(" ")}function Tt(){return q("")}function de(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function sn(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function _(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const hr=["width","height"];function On(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:n[i]&&n[i].set&&hr.indexOf(i)===-1?e[i]=t[i]:_(e,i,t[i])}function gr(e){return Array.from(e.childNodes)}function se(e,t){t=""+t,e.data!==t&&(e.data=t)}function mr(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function pr(e,t,n){~cr.indexOf(n)?mr(e,t):se(e,t)}function Hn(e,t){e.value=t??""}function Zt(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function Rn(e,t,n){e.classList.toggle(t,!!n)}function vr(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function _r(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let mt;function ct(e){mt=e}function mi(){if(!mt)throw new Error("Function called outside component initialization");return mt}function Pt(e){mi().$$.on_mount.push(e)}function pi(){const e=mi();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const s=vr(t,n,{cancelable:i});return r.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}const Ge=[],Xe=[];let Ve=[];const Dn=[],yr=Promise.resolve();let on=!1;function br(){on||(on=!0,yr.then(Me))}function an(e){Ve.push(e)}const Yt=new Set;let $e=0;function Me(){if($e!==0)return;const e=mt;do{try{for(;$e<Ge.length;){const t=Ge[$e];$e++,ct(t),wr(t.$$)}}catch(t){throw Ge.length=0,$e=0,t}for(ct(null),Ge.length=0,$e=0;Xe.length;)Xe.pop()();for(let t=0;t<Ve.length;t+=1){const n=Ve[t];Yt.has(n)||(Yt.add(n),n())}Ve.length=0}while(Ge.length);for(;Dn.length;)Dn.pop()();on=!1,Yt.clear(),ct(e)}function wr(e){if(e.fragment!==null){e.update(),Ae(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(an)}}function xr(e){const t=[],n=[];Ve.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),Ve=t}const At=new Set;let Be;function ye(){Be={r:0,c:[],p:Be}}function be(){Be.r||Ae(Be.c),Be=Be.p}function x(e,t){e&&e.i&&(At.delete(e),e.i(t))}function k(e,t,n,i){if(e&&e.o){if(At.has(e))return;At.add(e),Be.c.push(()=>{At.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Je(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function vi(e,t){const n={},i={},r={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const u in o)u in a||(i[u]=1);for(const u in a)r[u]||(n[u]=a[u],r[u]=1);e[s]=a}else for(const u in o)r[u]=1}for(const o in i)o in n||(n[o]=void 0);return n}function Tr(e){return typeof e=="object"&&e!==null?e:{}}function P(e){e&&e.c()}function F(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),an(()=>{const s=e.$$.on_mount.map(hi).filter($t);e.$$.on_destroy?e.$$.on_destroy.push(...s):Ae(s),e.$$.on_mount=[]}),r.forEach(an)}function $(e,t){const n=e.$$;n.fragment!==null&&(xr(n.after_update),Ae(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function kr(e,t){e.$$.dirty[0]===-1&&(Ge.push(e),br(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ne(e,t,n,i,r,s,o=null,a=[-1]){const u=mt;ct(e);const l=e.$$={fragment:null,ctx:[],props:s,update:K,not_equal:r,bound:Ln(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Ln(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};o&&o(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(f,d,...h)=>{const p=h.length?h[0]:d;return l.ctx&&r(l.ctx[f],l.ctx[f]=p)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](p),c&&kr(e,f)),d}):[],l.update(),c=!0,Ae(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=gr(t.target);l.fragment&&l.fragment.l(f),f.forEach(A)}else l.fragment&&l.fragment.c();t.intro&&x(e.$$.fragment),F(e,t.target,t.anchor),Me()}ct(u)}let _i;typeof HTMLElement=="function"&&(_i=class extends HTMLElement{constructor(t,n,i){super();ve(this,"$$ctor");ve(this,"$$s");ve(this,"$$c");ve(this,"$$cn",!1);ve(this,"$$d",{});ve(this,"$$r",!1);ve(this,"$$p_d",{});ve(this,"$$l",{});ve(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let n=function(o){return()=>{let a;return{c:function(){a=T("slot"),o!=="default"&&_(a,"name",o)},m:function(c,f){O(c,a,f)},d:function(c){c&&A(a)}}}};var t=n;if(await Promise.resolve(),!this.$$cn)return;const i={},r=_r(this);for(const o of this.$$s)o in r&&(i[o]=[n(o)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=Ot(a,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const a=Ot(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const a of this.$$l[o]){const u=this.$$c.$on(o,a);this.$$l_u.set(a,u)}this.$$l={}}}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ot(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Ot(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Er(e,t,n,i,r,s){let o=class extends _i{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Ot(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(o.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),s&&(o=s(o)),e.element=o,o}class ie{constructor(){ve(this,"$$");ve(this,"$$set")}$destroy(){$(this,1),this.$destroy=K}$on(t,n){if(!$t(n))return K;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!ar(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Cr="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Cr);function Sr(e){le(e,"svelte-uqg1eo",".Icon.svelte-uqg1eo:before{font-family:'la-icon-font';display:inline-block;margin:0;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;font-size:1em}")}function Nr(e){let t,n;return{c(){t=T("span"),_(t,"class",n=ue(`Icon ${e[0]} ${e[1]}`)+" svelte-uqg1eo")},m(i,r){O(i,t,r)},p(i,[r]){r&3&&n!==(n=ue(`Icon ${i[0]} ${i[1]}`)+" svelte-uqg1eo")&&_(t,"class",n)},i:K,o:K,d(i){i&&A(t)}}}function Lr(e,t,n){let{className:i=""}=t,{iconLaClassName:r}=t;return e.$$set=s=>{"className"in s&&n(0,i=s.className),"iconLaClassName"in s&&n(1,r=s.iconLaClassName)},[i,r]}class Le extends ie{constructor(t){super(),ne(this,t,Lr,Nr,ee,{className:0,iconLaClassName:1},Sr)}}const Pe=[];function Ar(e,t){return{subscribe:he(e,t).subscribe}}function he(e,t=K){let n;const i=new Set;function r(a){if(ee(e,a)&&(e=a,n)){const u=!Pe.length;for(const l of i)l[1](),Pe.push(l,e);if(u){for(let l=0;l<Pe.length;l+=2)Pe[l][0](Pe[l+1]);Pe.length=0}}}function s(a){r(a(e))}function o(a,u=K){const l=[a,u];return i.add(l),i.size===1&&(n=t(r,s)||K),a(e),()=>{i.delete(l),i.size===0&&n&&(n(),n=null)}}return{set:r,update:s,subscribe:o}}function et(e,t,n){const i=!Array.isArray(e),r=i?[e]:e;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Ar(n,(o,a)=>{let u=!1;const l=[];let c=0,f=K;const d=()=>{if(c)return;f();const p=t(i?l[0]:l,o,a);s?o(p):f=$t(p)?p:K},h=r.map((p,v)=>_n(p,y=>{l[v]=y,c&=~(1<<v),u&&d()},()=>{c|=1<<v}));return u=!0,d(),function(){Ae(h),f(),u=!1}})}var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Or=function(t){return Hr(t)&&!Rr(t)};function Hr(e){return!!e&&typeof e=="object"}function Rr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mr(e)}var Dr=typeof Symbol=="function"&&Symbol.for,Ir=Dr?Symbol.for("react.element"):60103;function Mr(e){return e.$$typeof===Ir}function Br(e){return Array.isArray(e)?[]:{}}function pt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ze(Br(e),e,t):e}function Fr(e,t,n){return e.concat(t).map(function(i){return pt(i,n)})}function $r(e,t){if(!t.customMerge)return Ze;var n=t.customMerge(e);return typeof n=="function"?n:Ze}function Pr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function In(e){return Object.keys(e).concat(Pr(e))}function bi(e,t){try{return t in e}catch{return!1}}function Gr(e,t){return bi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ur(e,t,n){var i={};return n.isMergeableObject(e)&&In(e).forEach(function(r){i[r]=pt(e[r],n)}),In(t).forEach(function(r){Gr(e,r)||(bi(e,r)&&n.isMergeableObject(t[r])?i[r]=$r(r,n)(e[r],t[r],n):i[r]=pt(t[r],n))}),i}function Ze(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Fr,n.isMergeableObject=n.isMergeableObject||Or,n.cloneUnlessOtherwiseSpecified=pt;var i=Array.isArray(t),r=Array.isArray(e),s=i===r;return s?i?n.arrayMerge(e,t,n):Ur(e,t,n):pt(t,n)}Ze.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Ze(i,r,n)},{})};var zr=Ze,Vr=zr;const Wr=Gt(Vr);var ln=function(e,t){return ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},ln(e,t)};function Ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ln(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Q=function(){return Q=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Q.apply(this,arguments)};function Kr(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function Qt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var W;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(W||(W={}));var ae;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(ae||(ae={}));var Ye;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ye||(Ye={}));function Mn(e){return e.type===ae.literal}function Xr(e){return e.type===ae.argument}function wi(e){return e.type===ae.number}function xi(e){return e.type===ae.date}function Ti(e){return e.type===ae.time}function ki(e){return e.type===ae.select}function Ei(e){return e.type===ae.plural}function Jr(e){return e.type===ae.pound}function Ci(e){return e.type===ae.tag}function Si(e){return!!(e&&typeof e=="object"&&e.type===Ye.number)}function un(e){return!!(e&&typeof e=="object"&&e.type===Ye.dateTime)}var Ni=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Zr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Yr(e){var t={};return e.replace(Zr,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Qr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function qr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Qr).filter(function(d){return d.length>0}),n=[],i=0,r=t;i<r.length;i++){var s=r[i],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],u=o.slice(1),l=0,c=u;l<c.length;l++){var f=c[l];if(f.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function jr(e){return e.replace(/^(.*?)-/,"")}var Bn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Li=/^(@+)?(\+|#+)?[rs]?$/g,es=/(\*)(0+)|(#+)(0+)|(0+)/g,Ai=/^(0+)$/;function Fn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Li,function(n,i,r){return typeof r!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):r==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof r=="string"?r.length:0)),""}),t}function Oi(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ts(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ai.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function $n(e){var t={},n=Oi(e);return n||t}function ns(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=jr(r.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Q(Q(Q({},t),{notation:"scientific"}),r.options.reduce(function(u,l){return Q(Q({},u),$n(l))},{}));continue;case"engineering":t=Q(Q(Q({},t),{notation:"engineering"}),r.options.reduce(function(u,l){return Q(Q({},u),$n(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(es,function(u,l,c,f,d,h){if(l)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ai.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(Bn.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Bn,function(u,l,c,f,d,h){return c==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=r.options[0];s==="w"?t=Q(Q({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=Q(Q({},t),Fn(s)));continue}if(Li.test(r.stem)){t=Q(Q({},t),Fn(r.stem));continue}var o=Oi(r.stem);o&&(t=Q(Q({},t),o));var a=ts(r.stem);a&&(t=Q(Q({},t),a))}return t}var St={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function is(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var s=0;i+1<e.length&&e.charAt(i+1)===r;)s++,i++;var o=1+(s&1),a=s<2?1:3+(s>>1),u="a",l=rs(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;o-- >0;)n=l+n}else r==="J"?n+="H":n+=r}return n}function rs(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var r=St[i||""]||St[n||""]||St["".concat(n,"-001")]||St["001"];return r[0]}var qt,ss=new RegExp("^".concat(Ni.source,"*")),os=new RegExp("".concat(Ni.source,"*$"));function J(e,t){return{start:e,end:t}}var as=!!String.prototype.startsWith&&"_a".startsWith("a",1),ls=!!String.fromCodePoint,us=!!Object.fromEntries,cs=!!String.prototype.codePointAt,fs=!!String.prototype.trimStart,ds=!!String.prototype.trimEnd,hs=!!Number.isSafeInteger,gs=hs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},cn=!0;try{var ms=Ri("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cn=((qt=ms.exec("a"))===null||qt===void 0?void 0:qt[0])==="a"}catch{cn=!1}var Pn=as?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},fn=ls?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,s=0,o;r>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");i+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return i},Gn=us?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var s=r[i],o=s[0],a=s[1];n[o]=a}return n},Hi=cs?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),s;return r<55296||r>56319||n+1===i||(s=t.charCodeAt(n+1))<56320||s>57343?r:(r-55296<<10)+(s-56320)+65536}},ps=fs?function(t){return t.trimStart()}:function(t){return t.replace(ss,"")},vs=ds?function(t){return t.trimEnd()}:function(t){return t.replace(os,"")};function Ri(e,t){return new RegExp(e,t)}var dn;if(cn){var Un=Ri("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");dn=function(t,n){var i;Un.lastIndex=n;var r=Un.exec(t);return(i=r[1])!==null&&i!==void 0?i:""}}else dn=function(t,n){for(var i=[];;){var r=Hi(t,n);if(r===void 0||Di(r)||ws(r))break;i.push(r),n+=r>=65536?2:1}return fn.apply(void 0,i)};var _s=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var r=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,i);if(o.err)return o;r.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),r.push({type:ae.pound,location:J(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(W.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&hn(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;r.push(o.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ae.literal,value:"<".concat(r,"/>"),location:J(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!hn(this.char()))return this.error(W.INVALID_TAG,J(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return r!==l?this.error(W.UNMATCHED_CLOSING_TAG,J(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ae.tag,value:r,children:o,location:J(i,this.clonePosition())},err:null}:this.error(W.INVALID_TAG,J(a,this.clonePosition())))}else return this.error(W.UNCLOSED_TAG,J(i,this.clonePosition()))}else return this.error(W.INVALID_TAG,J(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var s=this.tryParseQuote(n);if(s){r+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){r+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var u=J(i,this.clonePosition());return{val:{type:ae.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ys(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return fn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),fn(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(W.EMPTY_ARGUMENT,J(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(W.MALFORMED_ARGUMENT,J(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ae.argument,value:r,location:J(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,J(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(W.MALFORMED_ARGUMENT,J(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=dn(this.message,n),r=n+i.length;this.bumpTo(r);var s=this.clonePosition(),o=J(t,s);return{value:i,location:o}},e.prototype.parseArgumentOptions=function(t,n,i,r){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(W.EXPECT_ARGUMENT_TYPE,J(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=vs(f.val);if(d.length===0)return this.error(W.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));var h=J(c,this.clonePosition());l={style:d,styleLocation:h}}var p=this.tryParseArgumentClose(r);if(p.err)return p;var v=J(r,this.clonePosition());if(l&&Pn(l==null?void 0:l.style,"::",0)){var y=ps(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(y,l.styleLocation);return f.err?f:{val:{type:ae.number,value:i,location:v,style:f.val},err:null}}else{if(y.length===0)return this.error(W.EXPECT_DATE_TIME_SKELETON,v);var m=y;this.locale&&(m=is(y,this.locale));var d={type:Ye.dateTime,pattern:m,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Yr(m):{}},w=a==="date"?ae.date:ae.time;return{val:{type:w,value:i,location:v,style:d},err:null}}}return{val:{type:a==="number"?ae.number:a==="date"?ae.date:ae.time,value:i,location:v,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(W.EXPECT_SELECT_ARGUMENT_OPTIONS,J(C,Q({},C)));this.bumpSpace();var L=this.parseIdentifierIfPossible(),H=0;if(a!=="select"&&L.value==="offset"){if(!this.bumpIf(":"))return this.error(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),L=this.parseIdentifierIfPossible(),H=f.val}var Z=this.tryParsePluralOrSelectOptions(t,a,n,L);if(Z.err)return Z;var p=this.tryParseArgumentClose(r);if(p.err)return p;var fe=J(r,this.clonePosition());return a==="select"?{val:{type:ae.select,value:i,options:Gn(Z.val),location:fe},err:null}:{val:{type:ae.plural,value:i,options:Gn(Z.val),offset:H,pluralType:a==="plural"?"cardinal":"ordinal",location:fe},err:null}}default:return this.error(W.INVALID_ARGUMENT_TYPE,J(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,J(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(W.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(r,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=qr(t)}catch{return this.error(W.INVALID_NUMBER_SKELETON,n)}return{val:{type:Ye.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?ns(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var s,o=!1,a=[],u=new Set,l=r.value,c=r.location;;){if(l.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_SELECTOR,W.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=J(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?W.DUPLICATE_SELECT_ARGUMENT_SELECTOR:W.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:W.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,i);if(p.err)return p;var v=this.tryParseArgumentClose(h);if(v.err)return v;a.push([l,{value:p.val,location:J(h,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,c=s.location}return a.length===0?this.error(n==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR:W.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(W.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var u=J(r,this.clonePosition());return s?(o*=i,gs(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Hi(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Pn(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Di(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i??null},e}();function hn(e){return e>=97&&e<=122||e>=65&&e<=90}function ys(e){return hn(e)||e===47}function bs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Di(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ws(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function gn(e){e.forEach(function(t){if(delete t.location,ki(t)||Ei(t))for(var n in t.options)delete t.options[n].location,gn(t.options[n].value);else wi(t)&&Si(t.style)||(xi(t)||Ti(t))&&un(t.style)?delete t.style.location:Ci(t)&&gn(t.children)})}function xs(e,t){t===void 0&&(t={}),t=Q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new _s(e,t).parse();if(n.err){var i=SyntaxError(W[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t!=null&&t.captureLocation||gn(n.val),n.val}function jt(e,t){var n=t&&t.cache?t.cache:Ns,i=t&&t.serializer?t.serializer:Ss,r=t&&t.strategy?t.strategy:ks;return r(e,{cache:n,serializer:i})}function Ts(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ii(e,t,n,i){var r=Ts(i)?i:n(i),s=t.get(r);return typeof s>"u"&&(s=e.call(this,i),t.set(r,s)),s}function Mi(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),s=t.get(r);return typeof s>"u"&&(s=e.apply(this,i),t.set(r,s)),s}function bn(e,t,n,i,r){return n.bind(t,e,i,r)}function ks(e,t){var n=e.length===1?Ii:Mi;return bn(e,this,n,t.cache.create(),t.serializer)}function Es(e,t){return bn(e,this,Mi,t.cache.create(),t.serializer)}function Cs(e,t){return bn(e,this,Ii,t.cache.create(),t.serializer)}var Ss=function(){return JSON.stringify(arguments)};function wn(){this.cache=Object.create(null)}wn.prototype.get=function(e){return this.cache[e]};wn.prototype.set=function(e,t){this.cache[e]=t};var Ns={create:function(){return new wn}},en={variadic:Es,monadic:Cs},Qe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Qe||(Qe={}));var zt=function(e){Ut(t,e);function t(n,i,r){var s=e.call(this,n)||this;return s.code=i,s.originalMessage=r,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),zn=function(e){Ut(t,e);function t(n,i,r,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Qe.INVALID_VALUE,s)||this}return t}(zt),Ls=function(e){Ut(t,e);function t(n,i,r){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),Qe.INVALID_VALUE,r)||this}return t}(zt),As=function(e){Ut(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),Qe.MISSING_VALUE,i)||this}return t}(zt),me;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(me||(me={}));function Os(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==me.literal||n.type!==me.literal?t.push(n):i.value+=n.value,t},[])}function Hs(e){return typeof e=="function"}function Ht(e,t,n,i,r,s,o){if(e.length===1&&Mn(e[0]))return[{type:me.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Mn(c)){a.push({type:me.literal,value:c.value});continue}if(Jr(c)){typeof s=="number"&&a.push({type:me.literal,value:n.getNumberFormat(t).format(s)});continue}var f=c.value;if(!(r&&f in r))throw new As(f,o);var d=r[f];if(Xr(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?me.literal:me.object,value:d});continue}if(xi(c)){var h=typeof c.style=="string"?i.date[c.style]:un(c.style)?c.style.parsedOptions:void 0;a.push({type:me.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(Ti(c)){var h=typeof c.style=="string"?i.time[c.style]:un(c.style)?c.style.parsedOptions:i.time.medium;a.push({type:me.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(wi(c)){var h=typeof c.style=="string"?i.number[c.style]:Si(c.style)?c.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),a.push({type:me.literal,value:n.getNumberFormat(t,h).format(d)});continue}if(Ci(c)){var p=c.children,v=c.value,y=r[v];if(!Hs(y))throw new Ls(v,"function",o);var m=Ht(p,t,n,i,r,s),w=y(m.map(function(H){return H.value}));Array.isArray(w)||(w=[w]),a.push.apply(a,w.map(function(H){return{type:typeof H=="string"?me.literal:me.object,value:H}}))}if(ki(c)){var C=c.options[d]||c.options.other;if(!C)throw new zn(c.value,d,Object.keys(c.options),o);a.push.apply(a,Ht(C.value,t,n,i,r));continue}if(Ei(c)){var C=c.options["=".concat(d)];if(!C){if(!Intl.PluralRules)throw new zt(`Intl.PluralRules is not available in this environment.
2
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3
+ `,Qe.MISSING_INTL_API,o);var L=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));C=c.options[L]||c.options.other}if(!C)throw new zn(c.value,d,Object.keys(c.options),o);a.push.apply(a,Ht(C.value,t,n,i,r,d-(c.offset||0)));continue}}return Os(a)}function Rs(e,t){return t?Q(Q(Q({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=Q(Q({},e[i]),t[i]||{}),n},{})):e}function Ds(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=Rs(e[i],t[i]),n},Q({},e)):e}function tn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Is(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:jt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Qt([void 0],n,!1)))},{cache:tn(e.number),strategy:en.variadic}),getDateTimeFormat:jt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Qt([void 0],n,!1)))},{cache:tn(e.dateTime),strategy:en.variadic}),getPluralRules:jt(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Qt([void 0],n,!1)))},{cache:tn(e.pluralRules),strategy:en.variadic})}}var Bi=function(){function e(t,n,i,r){var s=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(f,d){return!f.length||d.type!==me.literal||typeof f[f.length-1]!="string"?f.push(d.value):f[f.length-1]+=d.value,f},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return Ht(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=r||{};o.formatters;var a=Kr(o,["formatters"]);this.ast=e.__parse(t,Q(Q({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ds(e.formats,i),this.formatters=r&&r.formatters||Is(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=xs,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Ms(e,t){if(t==null)return;if(t in e)return e[t];const n=t.split(".");let i=e;for(let r=0;r<n.length;r++)if(typeof i=="object"){if(r>0){const s=n.slice(r,n.length).join(".");if(s in i){i=i[s];break}}i=i[n[r]]}else i=void 0;return i}const Re={},Bs=(e,t,n)=>n&&(t in Re||(Re[t]={}),e in Re[t]||(Re[t][e]=n),n),Fi=(e,t)=>{if(t==null)return;if(t in Re&&e in Re[t])return Re[t][e];const n=kt(t);for(let i=0;i<n.length;i++){const r=n[i],s=$s(r,e);if(s)return Bs(e,t,s)}};let xn;const tt=he({});function Fs(e){return xn[e]||null}function Tn(e){return e in xn}function $s(e,t){if(!Tn(e))return null;const n=Fs(e);return Ms(n,t)}function Ps(e){if(e==null)return;const t=kt(e);for(let n=0;n<t.length;n++){const i=t[n];if(Tn(i))return i}}function Gs(e,...t){delete Re[e],tt.update(n=>(n[e]=Wr.all([n[e]||{},...t]),n))}et([tt],([e])=>Object.keys(e));tt.subscribe(e=>xn=e);const ft={};function Us(e){ft[e]=new Set}function zs(e,t){ft[e].delete(t),ft[e].size===0&&delete ft[e]}function dt(e){return ft[e]}function Vs(e){return kt(e).map(t=>{const n=dt(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function It(e){return e==null?!1:kt(e).some(t=>{var n;return(n=dt(t))==null?void 0:n.size})}function Ws(e,t){return Promise.all(t.map(i=>(zs(e,i),i().then(r=>r.default||r)))).then(i=>Gs(e,...i))}const ot={};function $i(e){if(!It(e))return e in ot?ot[e]:Promise.resolve();const t=Vs(e);return ot[e]=Promise.all(t.map(([n,i])=>Ws(n,i))).then(()=>{if(It(e))return $i(e);delete ot[e]}),ot[e]}function Vn(e,t){dt(e)||Us(e);const n=dt(e);dt(e).has(t)||(Tn(e)||tt.update(i=>(i[e]={},i)),n.add(t))}var Wn=Object.getOwnPropertySymbols,Ks=Object.prototype.hasOwnProperty,Xs=Object.prototype.propertyIsEnumerable,Js=(e,t)=>{var n={};for(var i in e)Ks.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Wn)for(var i of Wn(e))t.indexOf(i)<0&&Xs.call(e,i)&&(n[i]=e[i]);return n};const Zs={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function Ys({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${kt(e).join('", "')}".${It(De())?`
4
+
5
+ Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Qs={fallbackLocale:null,loadingDelay:200,formats:Zs,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},lt=Qs;function qe(){return lt}function qs(e){const t=e,{formats:n}=t,i=Js(t,["formats"]);let r=e.fallbackLocale;if(e.initialLocale)try{Bi.resolveLocale(e.initialLocale)&&(r=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return i.warnOnMissingMessages&&(delete i.warnOnMissingMessages,i.handleMissingMessage==null?i.handleMissingMessage=Ys:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(lt,i,{initialLocale:r}),n&&("number"in n&&Object.assign(lt.formats.number,n.number),"date"in n&&Object.assign(lt.formats.date,n.date),"time"in n&&Object.assign(lt.formats.time,n.time)),nt.set(r)}const Rt=he(!1);var js=Object.defineProperty,eo=Object.defineProperties,to=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,no=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,Xn=(e,t,n)=>t in e?js(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ro=(e,t)=>{for(var n in t||(t={}))no.call(t,n)&&Xn(e,n,t[n]);if(Kn)for(var n of Kn(t))io.call(t,n)&&Xn(e,n,t[n]);return e},so=(e,t)=>eo(e,to(t));let mn;const Mt=he(null);function Jn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function kt(e,t=qe().fallbackLocale){const n=Jn(e);return t?[...new Set([...n,...Jn(t)])]:n}function De(){return mn??void 0}Mt.subscribe(e=>{mn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const oo=e=>{if(e&&Ps(e)&&It(e)){const{loadingDelay:t}=qe();let n;return typeof window<"u"&&De()!=null&&t?n=window.setTimeout(()=>Rt.set(!0),t):Rt.set(!0),$i(e).then(()=>{Mt.set(e)}).finally(()=>{clearTimeout(n),Rt.set(!1)})}return Mt.set(e)},nt=so(ro({},Mt),{set:oo}),Vt=e=>{const t=Object.create(null);return i=>{const r=JSON.stringify(i);return r in t?t[r]:t[r]=e(i)}};var ao=Object.defineProperty,Bt=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Zn=(e,t,n)=>t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kn=(e,t)=>{for(var n in t||(t={}))Pi.call(t,n)&&Zn(e,n,t[n]);if(Bt)for(var n of Bt(t))Gi.call(t,n)&&Zn(e,n,t[n]);return e},it=(e,t)=>{var n={};for(var i in e)Pi.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Bt)for(var i of Bt(e))t.indexOf(i)<0&&Gi.call(e,i)&&(n[i]=e[i]);return n};const vt=(e,t)=>{const{formats:n}=qe();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},lo=Vt(e=>{var t=e,{locale:n,format:i}=t,r=it(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(r=vt("number",i)),new Intl.NumberFormat(n,r)}),uo=Vt(e=>{var t=e,{locale:n,format:i}=t,r=it(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?r=vt("date",i):Object.keys(r).length===0&&(r=vt("date","short")),new Intl.DateTimeFormat(n,r)}),co=Vt(e=>{var t=e,{locale:n,format:i}=t,r=it(t,["locale","format"]);if(n==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?r=vt("time",i):Object.keys(r).length===0&&(r=vt("time","short")),new Intl.DateTimeFormat(n,r)}),fo=(e={})=>{var t=e,{locale:n=De()}=t,i=it(t,["locale"]);return lo(kn({locale:n},i))},ho=(e={})=>{var t=e,{locale:n=De()}=t,i=it(t,["locale"]);return uo(kn({locale:n},i))},go=(e={})=>{var t=e,{locale:n=De()}=t,i=it(t,["locale"]);return co(kn({locale:n},i))},mo=Vt((e,t=De())=>new Bi(e,t,qe().formats,{ignoreTag:qe().ignoreTag})),po=(e,t={})=>{var n,i,r,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=De(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Fi(e,u);if(!c)c=(s=(r=(i=(n=qe()).handleMissingMessage)==null?void 0:i.call(n,{locale:u,id:e,defaultValue:l}))!=null?r:l)!=null?s:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!a)return c;let f=c;try{f=mo(c,u).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},vo=(e,t)=>go(t).format(e),_o=(e,t)=>ho(t).format(e),yo=(e,t)=>fo(t).format(e),bo=(e,t=De())=>Fi(e,t),we=et([nt,tt],()=>po);et([nt],()=>vo);et([nt],()=>_o);et([nt],()=>yo);et([nt,tt],()=>bo);var Ue=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(c){try{l(i.next(c))}catch(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):r(c.value).then(a,u)}l((i=i.apply(e,t||[])).next())})};const wo="https://localhost/api/v3".replace(/\/+$/,"");class En{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:wo}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Ui}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:()=>Ue(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const xo=new En;class Wt{constructor(t=xo){this.configuration=t,this.fetchApi=(n,i)=>Ue(this,void 0,void 0,function*(){let r={url:n,init:i};for(const o of this.middleware)o.pre&&(r=(yield o.pre(Object.assign({fetch:this.fetchApi},r)))||r);let s;try{s=yield(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const a of this.middleware)a.onError&&(s=(yield a.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:s?s.clone():void 0}))||s);if(s===void 0)throw o instanceof Error?new Co(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(s=(yield o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:s.clone()}))||s);return s}),this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(i=>({pre:i}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(i=>({post:i}));return this.withMiddleware(...n)}isJsonMime(t){return t?Wt.jsonRegex.test(t):!1}request(t,n){return Ue(this,void 0,void 0,function*(){const{url:i,init:r}=yield this.createFetchParams(t,n),s=yield this.fetchApi(i,r);if(s&&s.status>=200&&s.status<300)return s;throw new Eo(s,"Response returned an error code")})}createFetchParams(t,n){return Ue(this,void 0,void 0,function*(){let i=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(i+="?"+this.configuration.queryParamsStringify(t.query));const r=Object.assign({},this.configuration.headers,t.headers);Object.keys(r).forEach(l=>r[l]===void 0?delete r[l]:{});const s=typeof n=="function"?n:()=>Ue(this,void 0,void 0,function*(){return n}),o={method:t.method,headers:r,body:t.body,credentials:this.configuration.credentials},a=Object.assign(Object.assign({},o),yield s({init:o,context:t})),u=Object.assign(Object.assign({},a),{body:ko(a.body)||a.body instanceof URLSearchParams||To(a.body)?a.body:JSON.stringify(a.body)});return{url:i,init:u}})}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}}Wt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function To(e){return typeof Blob<"u"&&e instanceof Blob}function ko(e){return typeof FormData<"u"&&e instanceof FormData}class Eo extends Error{constructor(t,n){super(n),this.response=t,this.name="ResponseError"}}class Co extends Error{constructor(t,n){super(n),this.cause=t,this.name="FetchError"}}class Yn extends Error{constructor(t,n){super(n),this.field=t,this.name="RequiredError"}}function g(e,t){const n=e[t];return n!=null}function Ui(e,t=""){return Object.keys(e).map(n=>zi(n,e[n],t)).filter(n=>n.length>0).join("&")}function zi(e,t,n=""){const i=n+(n.length?`[${e}]`:e);if(t instanceof Array){const r=t.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${r}`}if(t instanceof Set){const r=Array.from(t);return zi(e,r,n)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?Ui(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}class re{constructor(t,n=i=>i){this.raw=t,this.transformer=n}value(){return Ue(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function So(e){return No(e)}function No(e,t){return e==null?e:{departmentid:g(e,"departmentid")?e.departmentid:void 0,onlineStatus:g(e,"online_status")?e.online_status:void 0,presetStatus:g(e,"preset_status")?e.preset_status:void 0}}function Lo(e){return Ao(e)}function Ao(e,t){return e==null?e:{agentid:g(e,"agentid")?e.agentid:void 0,firstname:g(e,"firstname")?e.firstname:void 0,lastname:g(e,"lastname")?e.lastname:void 0,systemName:g(e,"system_name")?e.system_name:void 0,username:g(e,"username")?e.username:void 0,countrycode:g(e,"countrycode")?e.countrycode:void 0,avatarUrl:g(e,"avatar_url")?e.avatar_url:void 0,roleid:g(e,"roleid")?e.roleid:void 0,departmentsStatuses:g(e,"departments_statuses")?e.departments_statuses.map(So):void 0,twofa:g(e,"twofa")?e.twofa:void 0,lastPswdChange:g(e,"last_pswd_change")?new Date(e.last_pswd_change):void 0,userstatus:g(e,"userstatus")?e.userstatus:void 0}}function Oo(e){return Ho(e)}function Ho(e,t){return e==null?e:{conversationid:g(e,"conversationid")?e.conversationid:void 0,datechanged:g(e,"datechanged")?new Date(e.datechanged):void 0,status:g(e,"status")?e.status:void 0,preview:g(e,"preview")?e.preview:void 0,subject:g(e,"subject")?e.subject:void 0,departmentname:g(e,"departmentname")?e.departmentname:void 0,agentname:g(e,"agentname")?e.agentname:void 0,tags:g(e,"tags")?e.tags:void 0,firstname:g(e,"firstname")?e.firstname:void 0,lastname:g(e,"lastname")?e.lastname:void 0,systemName:g(e,"system_name")?e.system_name:void 0,emails:g(e,"emails")?e.emails:void 0,city:g(e,"city")?e.city:void 0,countrycode:g(e,"countrycode")?e.countrycode:void 0,avatarUrl:g(e,"avatar_url")?e.avatar_url:void 0,rstatus:g(e,"rstatus")?e.rstatus:void 0,statusdatestarted:g(e,"statusdatestarted")?new Date(e.statusdatestarted):void 0,chatOrder:g(e,"chat_order")?e.chat_order:void 0}}function Ro(e){return Do(e)}function Do(e,t){return e==null?e:{id:g(e,"id")?e.id:void 0,name:g(e,"name")?e.name:void 0,type:g(e,"type")?e.type:void 0,onlineCode:g(e,"online_code")?e.online_code:void 0,offlineCode:g(e,"offline_code")?e.offline_code:void 0,onlineCodeCss:g(e,"online_code_css")?e.online_code_css:void 0,offlineCodeCss:g(e,"offline_code_css")?e.offline_code_css:void 0,provide:g(e,"provide")?e.provide:void 0,impressions:g(e,"impressions")?e.impressions:void 0,tickets:g(e,"tickets")?e.tickets:void 0,status:g(e,"status")?e.status:void 0,lastDisplayTime:g(e,"last_display_time")?e.last_display_time:void 0,lastDisplayUrl:g(e,"last_display_url")?e.last_display_url:void 0}}function Te(e){return Io(e)}function Io(e,t){return e==null?e:{count:g(e,"count")?e.count:void 0}}function Mo(e){return Bo(e)}function Bo(e,t){return e==null?e:{id:g(e,"id")?e.id:void 0,name:g(e,"name")?e.name:void 0,agentCount:g(e,"agent_count")?e.agent_count:void 0}}function Fo(e){return $o(e)}function $o(e,t){return e==null?e:{id:g(e,"id")?e.id:void 0,logid:g(e,"logid")?e.logid:void 0,line:g(e,"line")?e.line:void 0,filename:g(e,"filename")?e.filename:void 0,created:g(e,"created")?e.created:void 0,level:g(e,"level")?e.level:void 0,type:g(e,"type")?e.type:void 0,message:g(e,"message")?e.message:void 0,ip:g(e,"ip")?e.ip:void 0,groupid:g(e,"groupid")?e.groupid:void 0}}function Po(e){return Go(e)}function Go(e,t){return e==null?e:{agentid:g(e,"agentid")?e.agentid:void 0,firstname:g(e,"firstname")?e.firstname:void 0,lastname:g(e,"lastname")?e.lastname:void 0,systemName:g(e,"system_name")?e.system_name:void 0,avatarUrl:g(e,"avatar_url")?e.avatar_url:void 0,chats:g(e,"chats")?e.chats:void 0}}function Uo(e){return zo(e)}function zo(e,t){return e==null?e:{name:g(e,"name")?e.name:void 0,code:g(e,"code")?e.code:void 0,engName:g(e,"eng_name")?e.eng_name:void 0,translated:g(e,"translated")?e.translated:void 0,isDefault:g(e,"is_default")?e.is_default:void 0,active:g(e,"active")?e.active:void 0,isCustom:g(e,"is_custom")?e.is_custom:void 0,isBuiltIn:g(e,"is_builtIn")?e.is_builtIn:void 0}}function Vo(e){return Wo(e)}function Wo(e,t){return e==null?e:{codeName:g(e,"code_name")?e.code_name:void 0,name:g(e,"name")?e.name:void 0,description:g(e,"description")?e.description:void 0,active:g(e,"active")?e.active:void 0,help:g(e,"help")?e.help:void 0,multiple:g(e,"multiple")?e.multiple:void 0,configFile:g(e,"config_file")?e.config_file:void 0,price:g(e,"price")?e.price:void 0,legacyIntegration:g(e,"legacy_integration")?e.legacy_integration:void 0}}function nn(e){return Ko(e)}function Ko(e,t){return e==null?e:{id:g(e,"id")?e.id:void 0,conversationid:g(e,"conversationid")?e.conversationid:void 0,code:g(e,"code")?e.code:void 0,slaTicketId:g(e,"sla_ticket_id")?e.sla_ticket_id:void 0,departmentid:g(e,"departmentid")?e.departmentid:void 0,departmentName:g(e,"department_name")?e.department_name:void 0,levelid:g(e,"levelid")?e.levelid:void 0,slaLevelName:g(e,"sla_level_name")?e.sla_level_name:void 0,sla:g(e,"sla")?e.sla:void 0,dateCreated:g(e,"date_created")?e.date_created:void 0,dateClosed:g(e,"date_closed")?e.date_closed:void 0,dateDue:g(e,"date_due")?e.date_due:void 0,slaLevelId:g(e,"sla_level_id")?e.sla_level_id:void 0,slaType:g(e,"sla_type")?new Date(e.sla_type):void 0,agentid:g(e,"agentid")?e.agentid:void 0,agentFirstname:g(e,"agent_firstname")?e.agent_firstname:void 0,agentLastname:g(e,"agent_lastname")?e.agent_lastname:void 0,agentAvatarUrl:g(e,"agent_avatar_url")?e.agent_avatar_url:void 0,reqContactid:g(e,"req_contactid")?e.req_contactid:void 0,reqFirstname:g(e,"req_firstname")?e.req_firstname:void 0,reqLastname:g(e,"req_lastname")?e.req_lastname:void 0,reqSystemname:g(e,"req_systemname")?e.req_systemname:void 0,reqContactName:g(e,"req_contactName")?e.req_contactName:void 0,reqAvatarUrl:g(e,"req_avatar_url")?e.req_avatar_url:void 0}}function Qn(e){return Xo(e)}function Xo(e,t){return e==null?e:{tagid:g(e,"tagid")?e.tagid:void 0,name:g(e,"name")?e.name:void 0,type:g(e,"type")?e.type:void 0,color:g(e,"color")?e.color:void 0,backgroundcolor:g(e,"backgroundcolor")?e.backgroundcolor:void 0,isPublic:g(e,"is_public")?e.is_public:void 0}}function Vi(e){return Jo(e)}function Jo(e,t){return e==null?e:{conversationid:g(e,"conversationid")?e.conversationid:void 0,code:g(e,"code")?e.code:void 0,datecreated:g(e,"datecreated")?new Date(e.datecreated):void 0,datechanged:g(e,"datechanged")?new Date(e.datechanged):void 0,dateresolved:g(e,"dateresolved")?new Date(e.dateresolved):void 0,statuschanged:g(e,"statuschanged")?new Date(e.statuschanged):void 0,rorder:g(e,"rorder")?e.rorder:void 0,datedue:g(e,"datedue")?new Date(e.datedue):void 0,datereopen:g(e,"datereopen")?new Date(e.datereopen):void 0,status:g(e,"status")?e.status:void 0,channelType:g(e,"channel_type")?e.channel_type:void 0,departmentid:g(e,"departmentid")?e.departmentid:void 0,agentid:g(e,"agentid")?e.agentid:void 0,preview:g(e,"preview")?e.preview:void 0,subject:g(e,"subject")?e.subject:void 0,departmentname:g(e,"departmentname")?e.departmentname:void 0,agentname:g(e,"agentname")?e.agentname:void 0,tags:g(e,"tags")?e.tags:void 0,messagegroupsIn:g(e,"messagegroups_in")?e.messagegroups_in:void 0,messagegroupsOut:g(e,"messagegroups_out")?e.messagegroups_out:void 0,contactid:g(e,"contactid")?e.contactid:void 0,parentContactid:g(e,"parent_contactid")?e.parent_contactid:void 0,firstname:g(e,"firstname")?e.firstname:void 0,lastname:g(e,"lastname")?e.lastname:void 0,systemName:g(e,"system_name")?e.system_name:void 0,emails:g(e,"emails")?e.emails:void 0,phones:g(e,"phones")?e.phones:void 0,jobPosition:g(e,"job_position")?e.job_position:void 0,contactType:g(e,"contact_type")?e.contact_type:void 0,city:g(e,"city")?e.city:void 0,countrycode:g(e,"countrycode")?e.countrycode:void 0,timeOffset:g(e,"time_offset")?e.time_offset:void 0,gender:g(e,"gender")?e.gender:void 0,levelid:g(e,"levelid")?e.levelid:void 0,groups:g(e,"groups")?e.groups:void 0,contactStatus:g(e,"contact_status")?e.contact_status:void 0,company:g(e,"company")?e.company:void 0,avatarUrl:g(e,"avatar_url")?e.avatar_url:void 0,userid:g(e,"userid")?e.userid:void 0,roleid:g(e,"roleid")?e.roleid:void 0,userstatus:g(e,"userstatus")?e.userstatus:void 0,accountuserstatus:g(e,"accountuserstatus")?e.accountuserstatus:void 0,description:g(e,"description")?e.description:void 0,note:g(e,"note")?e.note:void 0,lastActivity:g(e,"last_activity")?new Date(e.last_activity):void 0,tagnames:g(e,"tagnames")?e.tagnames:void 0,groupnames:g(e,"groupnames")?e.groupnames:void 0}}function Zo(e){return Yo(e)}function Yo(e,t){return e==null?e:{cursor:g(e,"cursor")?e.cursor:void 0,rows:g(e,"rows")?e.rows.map(Vi):void 0}}function Qo(e){return qo(e)}function qo(e,t){return e==null?e:{id:g(e,"id")?e.id:void 0,agentid:g(e,"agentid")?e.agentid:void 0,agent:g(e,"agent")?e.agent:void 0,conversationid:g(e,"conversationid")?e.conversationid:void 0,ticket:g(e,"ticket")?e.ticket:void 0,parentContactid:g(e,"parent_contactid")?e.parent_contactid:void 0,company:g(e,"company")?e.company:void 0,contactid:g(e,"contactid")?e.contactid:void 0,customer:g(e,"customer")?e.customer:void 0,customerFirstname:g(e,"customer_firstname")?e.customer_firstname:void 0,customerLastname:g(e,"customer_lastname")?e.customer_lastname:void 0,customerSystemname:g(e,"customer_systemname")?e.customer_systemname:void 0,agentTicket:g(e,"agent_ticket")?e.agent_ticket:void 0,reportdate:g(e,"reportdate")?e.reportdate:void 0,reportedtime:g(e,"reportedtime")?e.reportedtime:void 0,reportedtimeHhmmss:g(e,"reportedtime_hhmmss")?e.reportedtime_hhmmss:void 0,spenttime:g(e,"spenttime")?e.spenttime:void 0,dateinvoiced:g(e,"dateinvoiced")?e.dateinvoiced:void 0,note:g(e,"note")?e.note:void 0,type:g(e,"type")?e.type:void 0}}var D=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(c){try{l(i.next(c))}catch(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):r(c.value).then(a,u)}l((i=i.apply(e,t||[])).next())})};class Wi extends Wt{getAgentsGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/agents",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Lo))})}getAgentsGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(t,n)).value()})}getAgentsGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["agent.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/agents/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getAgentsGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(t,n)).value()})}getCallsSlaLogGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/calls/sla",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(nn))})}getCallsSlaLogGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(t,n)).value()})}getCallsSlaLogGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getCallsSlaLogGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(t,n)).value()})}getChatsGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Oo))})}getChatsGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(t,n)).value()})}getChatsGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getChatsGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(t,n)).value()})}getChatsSlaLogGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/sla",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(nn))})}getChatsSlaLogGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(t,n)).value()})}getChatsSlaLogGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getChatsSlaLogGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(t,n)).value()})}getContactWidgetsCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getContactWidgetsCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(t,n)).value()})}getContactWidgetsListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["button.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Ro))})}getContactWidgetsList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(t,n)).value()})}getCustomerGroupsGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/customer_groups",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Qn))})}getCustomerGroupsGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(t,n)).value()})}getDepartmensGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/departments/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getDepartmensGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(t,n)).value()})}getDepartmentsGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/departments",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Mo))})}getDepartmentsGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(t,n)).value()})}getEventLogsGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/eventlogs",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Fo))})}getEventLogsGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(t,n)).value()})}getEventLogsGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["eventlogs.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getEventLogsGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(t,n)).value()})}getInviteAgentsGridListRaw(t,n){return D(this,void 0,void 0,function*(){if(t.departmentId===null||t.departmentId===void 0)throw new Yn("departmentId","Required parameter requestParameters.departmentId was null or undefined when calling getInviteAgentsGridList.");const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["user.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(t.departmentId))),method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Po))})}getInviteAgentsGridList(t,n){return D(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(t,n)).value()})}getLanguagesGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/languages",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Uo))})}getLanguagesGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(t,n)).value()})}getLanguagesGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/languages/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getLanguagesGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(t,n)).value()})}getPlugindGridListRaw(t,n){return D(this,void 0,void 0,function*(){if(t.pluginPurpose===null||t.pluginPurpose===void 0)throw new Yn("pluginPurpose","Required parameter requestParameters.pluginPurpose was null or undefined when calling getPlugindGridList.");const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.pluginPurpose!==void 0&&(i.pluginPurpose=t.pluginPurpose);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["plugin_settings.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/plugins",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Vo))})}getPlugindGridList(t,n){return D(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(t,n)).value()})}getTagsGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["tag.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tags",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Qn))})}getTagsGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(t,n)).value()})}getTicketsGridDatasetRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets_new",method:"GET",headers:r,query:i},n);return new re(s,o=>Zo(o))})}getTicketsGridDataset(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(t,n)).value()})}getTicketsGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Vi))})}getTicketsGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(t,n)).value()})}getTicketsGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["ticket.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getTicketsGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(t,n)).value()})}getTicketsSlaLogGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor),t.sortField!==void 0&&(i._sortField=t.sortField);const r={};t.timezoneOffset!==void 0&&t.timezoneOffset!==null&&(r["Timezone-Offset"]=String(t.timezoneOffset)),this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(nn))})}getTicketsSlaLogGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(t,n)).value()})}getTicketsSlaLogGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["sla.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getTicketsSlaLogGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(t,n)).value()})}getTimeReportsGridListRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.perPage!==void 0&&(i._perPage=t.perPage),t.sortDir!==void 0&&(i._sortDir=t.sortDir),t.sortField!==void 0&&(i._sortField=t.sortField),t.filters!==void 0&&(i._filters=t.filters),t.cursor!==void 0&&(i._cursor=t.cursor);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/reports/time",method:"GET",headers:r,query:i},n);return new re(s,o=>o.map(Qo))})}getTimeReportsGridList(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(t,n)).value()})}getTimeReportsGridListCountRaw(t,n){return D(this,void 0,void 0,function*(){const i={};t.filters!==void 0&&(i._filters=t.filters);const r={};this.configuration&&this.configuration.accessToken&&(r.Authorization=yield this.configuration.accessToken("privileges",["time_report.read"])),this.configuration&&this.configuration.apiKey&&(r.apikey=this.configuration.apiKey("apikey"));const s=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:r,query:i},n);return new re(s,o=>Te(o))})}getTimeReportsGridListCount(t={},n){return D(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(t,n)).value()})}}const qn={Asc:"ASC",Desc:"DESC"},at={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},jo={Conversationid:"conversationid",Code:"code",Datecreated:"datecreated",Datechanged:"datechanged",Dateresolved:"dateresolved",Statuschanged:"statuschanged",Rorder:"rorder",Datedue:"datedue",Datereopen:"datereopen",Status:"status",ChannelType:"channel_type",Departmentid:"departmentid",Agentid:"agentid",Subject:"subject",Departmentname:"departmentname",Agentname:"agentname",Tags:"tags",MessagegroupsIn:"messagegroups_in",MessagegroupsOut:"messagegroups_out",Rstatus:"rstatus",LastActivity:"last_activity"},We=he(!1),Cn=he([]),Ft=he(null),_t=he(null),Ke=he(!1),ht=he(!1),Ki=he({}),_e=he([]),Xi=he(null),Fe=he(null),Kt=he(!0),Sn=he(jo.Rorder),ea="modulepreload",ta=function(e){return"/"+e},jn={},Nt=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=ta(s),s in jn)return;jn[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const f=r[c];if(f.href===s&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":ea,o||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),o)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},ei=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((i,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+t)))})},rn="en-US",ti="S",Ji="N",Zi="C",pn="D",na="A";let Se;function ia(e){Se===void 0&&(Se=e,Vn(rn,()=>ei(Object.assign({"../../locales/en-US.json":()=>Nt(()=>import("./en-US.js"),[]),"../../locales/en.json":()=>Nt(()=>import("./en.js"),[])}),`../../locales/${rn}.json`)),Vn(Se.locale,()=>ei(Object.assign({"../../locales/en-US.json":()=>Nt(()=>import("./en-US.js"),[]),"../../locales/en.json":()=>Nt(()=>import("./en.js"),[])}),`../../locales/${Se.locale}.json`)),qs({fallbackLocale:rn,initialLocale:Se.locale}))}function ra(e){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function Lt(e){return ra(new Date(e))}function sa(){return Se.dateFormat.toUpperCase()}function oa(){return Se.timeFormat}function aa(){return sa()+" "+oa()}function ze(e){return la(e,2)}function la(e,t){let n="";return fa(t).formatToParts(e).forEach(i=>{i.type==="group"?n+=ua():i.type==="decimal"?n+=ca():n+=i.value}),n}function ua(){let e=Se.thousandsSeparator;switch(e==null&&(e=ti),e){case Zi:return",";case ti:return" ";case pn:return".";case na:return"'";case Ji:case"":return" ";default:return e}}function ca(){let e=Se.decimalSeparator;switch(e==null&&(e=pn),e){case Zi:return",";case Ji:case pn:return".";default:return e}}function fa(e){return new Intl.NumberFormat(Se.locale,{minimumFractionDigits:0,maximumFractionDigits:e,useGrouping:!0})}function da(e){le(e,"svelte-mupm4a",".Counter.svelte-mupm4a{display:none}span.svelte-mupm4a{margin-right:5px}.Selection.svelte-mupm4a{color:var(--ticket-selected-textcolor);background-color:var(--ticket-selected-bg);padding:6px 10px;border-radius:4px;font-size:12px;font-style:normal;font-weight:700;line-height:20px}.text.svelte-mupm4a{font-family:'Roboto', sans-serif;font-size:12px;line-height:20px}.many.svelte-mupm4a{color:var(--main-textcolor);padding:2px 12px;border:1px solid var(--menu-hover-bg);border-radius:4px;font-weight:500;font-size:12px;font-family:'Roboto', sans-serif;line-height:20px;cursor:pointer}.many.loading.svelte-mupm4a{border:none;padding:2px 0}@media(min-width: 768px){.Counter.svelte-mupm4a{display:block}}")}function ha(e){let t,n=e[5]("Displaying %count of %allCount",{values:{count:ze(e[7].length),allCount:ze(e[0])}})+"",i;return{c(){t=T("span"),i=q(n),_(t,"class","text svelte-mupm4a")},m(r,s){O(r,t,s),b(t,i)},p(r,s){s&161&&n!==(n=r[5]("Displaying %count of %allCount",{values:{count:ze(r[7].length),allCount:ze(r[0])}})+"")&&se(i,n)},d(r){r&&A(t)}}}function ga(e){let t,n=e[5]("Displaying %count of",{values:{count:ze(e[7].length)}})+"",i,r,s,o=(e[1]?e[5]("Loading.."):e[5]("many"))+"",a,u,l,c;return{c(){t=T("span"),i=q(n),r=U(),s=T("span"),a=q(o),_(t,"class","text svelte-mupm4a"),_(s,"class",u=ue(e[2])+" svelte-mupm4a")},m(f,d){O(f,t,d),b(t,i),O(f,r,d),O(f,s,d),b(s,a),l||(c=de(s,"click",e[8]),l=!0)},p(f,d){d&160&&n!==(n=f[5]("Displaying %count of",{values:{count:ze(f[7].length)}})+"")&&se(i,n),d&34&&o!==(o=(f[1]?f[5]("Loading.."):f[5]("many"))+"")&&se(a,o),d&4&&u!==(u=ue(f[2])+" svelte-mupm4a")&&_(s,"class",u)},d(f){f&&(A(t),A(r),A(s)),l=!1,c()}}}function ma(e){let t,n=e[5]("Loading...")+"",i;return{c(){t=T("span"),i=q(n),_(t,"class","text svelte-mupm4a")},m(r,s){O(r,t,s),b(t,i)},p(r,s){s&32&&n!==(n=r[5]("Loading...")+"")&&se(i,n)},d(r){r&&A(t)}}}function pa(e){let t;function n(s,o){return s[3]?_a:va}let i=n(e),r=i(e);return{c(){r.c(),t=Tt()},m(s,o){r.m(s,o),O(s,t,o)},p(s,o){i===(i=n(s))&&r?r.p(s,o):(r.d(1),r=i(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){s&&A(t),r.d(s)}}}function va(e){let t,n=e[5]("%pCount rows selected",{values:{pCount:e[4].length}})+"",i;return{c(){t=T("span"),i=q(n),_(t,"class","Selection svelte-mupm4a")},m(r,s){O(r,t,s),b(t,i)},p(r,s){s&48&&n!==(n=r[5]("%pCount rows selected",{values:{pCount:r[4].length}})+"")&&se(i,n)},d(r){r&&A(t)}}}function _a(e){let t;function n(s,o){return s[4].length>0?ba:ya}let i=n(e),r=i(e);return{c(){r.c(),t=Tt()},m(s,o){r.m(s,o),O(s,t,o)},p(s,o){i===(i=n(s))&&r?r.p(s,o):(r.d(1),r=i(s),r&&(r.c(),r.m(t.parentNode,t)))},d(s){s&&A(t),r.d(s)}}}function ya(e){let t,n=e[5]("all rows selected")+"",i;return{c(){t=T("span"),i=q(n),_(t,"class","Selection svelte-mupm4a")},m(r,s){O(r,t,s),b(t,i)},p(r,s){s&32&&n!==(n=r[5]("all rows selected")+"")&&se(i,n)},d(r){r&&A(t)}}}function ba(e){let t,n=e[5]("all rows selected except %pCount rows",{values:{pCount:e[4].length}})+"",i;return{c(){t=T("span"),i=q(n),_(t,"class","Selection svelte-mupm4a")},m(r,s){O(r,t,s),b(t,i)},p(r,s){s&48&&n!==(n=r[5]("all rows selected except %pCount rows",{values:{pCount:r[4].length}})+"")&&se(i,n)},d(r){r&&A(t)}}}function wa(e){let t;function n(s,o){return s[3]||s[4].length>0?pa:s[6]?ma:s[0]==null?ga:ha}let i=n(e),r=i(e);return{c(){t=T("div"),r.c(),_(t,"class","Counter svelte-mupm4a")},m(s,o){O(s,t,o),r.m(t,null)},p(s,[o]){i===(i=n(s))&&r?r.p(s,o):(r.d(1),r=i(s),r&&(r.c(),r.m(t,null)))},i:K,o:K,d(s){s&&A(t),r.d()}}}function xa(e,t,n){let i,r,s,o,a,u,l;V(e,_t,v=>n(9,i=v)),V(e,Ft,v=>n(10,r=v)),V(e,We,v=>n(3,s=v)),V(e,Cn,v=>n(4,o=v)),V(e,we,v=>n(5,a=v)),V(e,Ke,v=>n(6,u=v)),V(e,_e,v=>n(7,l=v));let c=null,f=!1,d="many";function h(){n(0,c=null)}async function p(){n(2,d="many loading"),n(1,f=!0);let v=await r.getTicketsGridListCount({filters:i,timezoneOffset:new Date().getTimezoneOffset()});n(0,c=v.count),n(1,f=!1)}return e.$$.update=()=>{e.$$.dirty&512&&i&&h()},[c,f,d,s,o,a,u,l,p,i]}class Ta extends ie{constructor(t){super(),ne(this,t,xa,wa,ee,{},da)}}async function je(e=!1){if(!(ke(Ke)||!ke(Ft))&&(e&&(Fe.set(null),ht.set(!1)),!(!ke(Fe)&&ke(ht)))){Ke.set(!0);try{const n=await(await ke(Ft).getTicketsGridDatasetRaw(ka())).value();e&&_e.set([]),_e.set([...ke(_e),...n.rows]),Fe.set(n.cursor),ht.set(!0)}catch(t){Xi.set(t.toString())}Ke.set(!1)}}function ka(){return{perPage:20,sortDir:ke(Kt)?qn.Asc:qn.Desc,filters:ke(_t),sortField:ke(Sn),cursor:ke(Fe)?ke(Fe):""}}function Ea(e){le(e,"svelte-oyjuek",".Head.svelte-oyjuek.svelte-oyjuek{display:flex;position:sticky;top:0;color:var(--panel_text_color);margin-bottom:20px;align-items:center;font-size:14px;font-family:'Roboto', sans-serif;border-bottom:1px solid var(--main-lighter-textcolor);padding:0 23px 6px 44px}.FilterIcon{font-size:20px;margin-right:2px}.headCheckbox.svelte-oyjuek.svelte-oyjuek{width:20px;margin-right:16px}.headCheckbox.svelte-oyjuek input[type=checkbox].svelte-oyjuek{vertical-align:middle;cursor:pointer;margin:3px}button.svelte-oyjuek.svelte-oyjuek{border:none;background:none;font-size:13px;font-weight:400;color:var(--main-lighter-textcolor)}.spinner.svelte-oyjuek.svelte-oyjuek{font-size:16px;cursor:pointer}.rightPanel.svelte-oyjuek.svelte-oyjuek{display:flex;margin-inline-start:auto}.Sorting.svelte-oyjuek.svelte-oyjuek{cursor:pointer;text-align:left;font-weight:bold}.loading.svelte-oyjuek.svelte-oyjuek{animation-name:svelte-oyjuek-rotate;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes svelte-oyjuek-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@media screen and (min-width: 768px){.headCheckbox.svelte-oyjuek.svelte-oyjuek{margin-right:42px}}")}function Ca(e){let t,n,i,r,s,o,a,u,l,c,f,d,h,p,v,y,m,w,C,L;return s=new Le({props:{iconLaClassName:"la-filter",className:"FilterIcon"}}),c=new Le({props:{iconLaClassName:"la-show"}}),h=new Ta({}),y=new Le({props:{iconLaClassName:"la-refresh"}}),{c(){t=T("div"),n=T("div"),i=T("input"),r=U(),P(s.$$.fragment),o=U(),a=T("button"),u=q(e[0]),l=U(),P(c.$$.fragment),f=U(),d=T("div"),P(h.$$.fragment),p=U(),v=T("button"),P(y.$$.fragment),_(i,"type","checkbox"),_(i,"class","svelte-oyjuek"),_(n,"class","headCheckbox svelte-oyjuek"),_(a,"class","Sorting svelte-oyjuek"),_(v,"class","spinner svelte-oyjuek"),_(v,"title",m=e[4]("Reload")),Rn(v,"loading",e[3]),_(d,"class","rightPanel svelte-oyjuek"),_(t,"class","Head svelte-oyjuek")},m(H,Z){O(H,t,Z),b(t,n),b(n,i),i.checked=e[2],b(t,r),F(s,t,null),b(t,o),b(t,a),b(a,u),e[8](a),b(t,l),F(c,t,null),b(t,f),b(t,d),F(h,d,null),b(d,p),b(d,v),F(y,v,null),w=!0,C||(L=[de(i,"change",e[7]),de(i,"click",e[5]),de(a,"click",e[6]),de(v,"click",e[9])],C=!0)},p(H,[Z]){Z&4&&(i.checked=H[2]),(!w||Z&1)&&se(u,H[0]),(!w||Z&16&&m!==(m=H[4]("Reload")))&&_(v,"title",m),(!w||Z&8)&&Rn(v,"loading",H[3])},i(H){w||(x(s.$$.fragment,H),x(c.$$.fragment,H),x(h.$$.fragment,H),x(y.$$.fragment,H),w=!0)},o(H){k(s.$$.fragment,H),k(c.$$.fragment,H),k(h.$$.fragment,H),k(y.$$.fragment,H),w=!1},d(H){H&&A(t),$(s),e[8](null),$(c),$(h),$(y),C=!1,Ae(L)}}}function Sa(e,t,n){let i,r,s;V(e,Kt,y=>n(12,y)),V(e,We,y=>n(2,i=y)),V(e,Ke,y=>n(3,r=y)),V(e,we,y=>n(4,s=y));let{currentFilter:o}=t;const a=pi();let u,l,c;function f(){We.set(!i),_e.update(y=>y.map(m=>({...m,__selected:i})))}function d(){u=l.getBoundingClientRect();let m=u.bottom-58,w=u.left-7;window.innerWidth>=768&&(w-=258),c=`position: absolute; top: ${m}px; left: ${w}px;`,a("openModal",{dialogStyles:c})}function h(){i=this.checked,We.set(i)}function p(y){Xe[y?"unshift":"push"](()=>{l=y,n(1,l)})}const v=()=>je(!0);return e.$$set=y=>{"currentFilter"in y&&n(0,o=y.currentFilter)},[o,l,i,r,s,f,d,h,p,v]}class Na extends ie{constructor(t){super(),ne(this,t,Sa,Ca,ee,{currentFilter:0},Ea)}}function He(e){switch(e){case"A":return{bg:"var(--ticket-status-answered-background)",text:"var(--ticket-status-answered-text)",border:"var(--ticket-status-answered-border)"};case"T":return{bg:"var(--ticket-status-chat-background)",text:"var(--ticket-status-chat-text)",border:"var(--ticket-status-chat-border)"};case"P":return{bg:"var(--ticket-status-phone-background)",text:"var(--ticket-status-phone-text)",border:"var(--ticket-status-phone-border)"};case"X":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"B":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"I":return{bg:"var(--ticket-status-deleted-background)",text:"var(--ticket-status-deleted-text)",border:"var(--ticket-status-deleted-border)"};case"R":return{bg:"var(--ticket-status-resolved-background)",text:"var(--ticket-status-resolved-text)",border:"var(--ticket-status-resolved-border)"};case"N":return{bg:"var(--ticket-status-new-background)",text:"var(--ticket-status-new-text)",border:"var(--ticket-status-new-border)"};case"C":return{bg:"var(--ticket-status-open-background)",text:"var(--ticket-status-open-text)",border:"var(--ticket-status-open-border)"};case"W":return{bg:"var(--ticket-status-postponed-background)",text:"var(--ticket-status-postponed-text)",border:"var(--ticket-status-postponed-border)"};default:return{bg:"",text:"",border:""}}}const La=()=>{const e=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#FFEB3B","#FFC107","#FF5722","#795548"],t=Math.floor(Math.random()*e.length);return e[t]},Aa=e=>{let t=e.split(" ");return t.length>1?t=t.shift().charAt(0)+t.pop().charAt(0):t=e.substring(0,2),t.toUpperCase()};function Oa(e){le(e,"svelte-hbozhk",".wrapper.svelte-hbozhk{position:relative;width:var(--size);height:var(--size)}.innerImage.svelte-hbozhk,.innerInitials.svelte-hbozhk,.imageLoading.svelte-hbozhk{display:block;width:100%;height:100%;border-radius:var(--borderRadius)}.innerInitials.svelte-hbozhk{line-height:var(--size);background-color:var(--bgColor);color:var(--textColor);text-align:center;font-size:calc(var(--size) / (var(--abbrLength) + 0.5))}.imageLoading.svelte-hbozhk{background-color:var(--bgColor)}.imageLoading.svelte-hbozhk::before{content:'';display:block;height:100%;width:100%;background:linear-gradient(90deg, transparent, #ffffff38, transparent);position:absolute;top:0;left:0;animation:svelte-hbozhk-skeleton-animation 1.2s linear infinite}@keyframes svelte-hbozhk-skeleton-animation{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}")}function Ha(e){let t;return{c(){t=T("div"),t.textContent=`${e[10]}`,_(t,"class","innerInitials svelte-hbozhk")},m(n,i){O(n,t,i)},p:K,d(n){n&&A(t)}}}function Ra(e){let t,n,i,r,s,o;return{c(){t=T("div"),n=T("img"),_(n,"alt",""),_(n,"class",ue("innerImage")+" svelte-hbozhk"),Dt(n.src,i=e[2])||_(n,"src",i),_(t,"class",r=ue(e[8]?"imageLoading":"")+" svelte-hbozhk")},m(a,u){O(a,t,u),b(t,n),s||(o=[de(n,"error",e[15]),de(n,"load",e[16])],s=!0)},p(a,u){u&4&&!Dt(n.src,i=a[2])&&_(n,"src",i),u&256&&r!==(r=ue(a[8]?"imageLoading":"")+" svelte-hbozhk")&&_(t,"class",r)},d(a){a&&A(t),s=!1,Ae(o)}}}function Da(e){let t,n;function i(o,a){return o[2]&&!o[7]?Ra:Ha}let r=i(e),s=r(e);return{c(){t=T("div"),s.c(),_(t,"aria-label",e[1]),_(t,"class","wrapper svelte-hbozhk"),_(t,"style",n=e[0]+"--borderRadius:"+(e[6]?0:e[5])+"; --size:"+e[4]+"; --bgColor:"+e[9]+"; --src:"+e[2]+"; --textColor:"+e[3]+"; --abbrLength:"+e[11])},m(o,a){O(o,t,a),s.m(t,null)},p(o,[a]){r===(r=i(o))&&s?s.p(o,a):(s.d(1),s=r(o),s&&(s.c(),s.m(t,null))),a&2&&_(t,"aria-label",o[1]),a&125&&n!==(n=o[0]+"--borderRadius:"+(o[6]?0:o[5])+"; --size:"+o[4]+"; --bgColor:"+o[9]+"; --src:"+o[2]+"; --textColor:"+o[3]+"; --abbrLength:"+o[11])&&_(t,"style",n)},i:K,o:K,d(o){o&&A(t),s.d()}}}function Ia(e,t,n){let{style:i=""}=t,{name:r="Avatar"}=t,{initials:s}=t,{src:o}=t,{bgColor:a="lightGrey"}=t,{textColor:u="white"}=t,{size:l="50px"}=t,{borderRadius:c="50%"}=t,{square:f=!1}=t,{randomBgColor:d=!1}=t;const h=d?La():a,p=s||Aa(r),v=p.length;let y=!1,m=!0;const w=()=>n(7,y=!0),C=()=>n(8,m=!1);return e.$$set=L=>{"style"in L&&n(0,i=L.style),"name"in L&&n(1,r=L.name),"initials"in L&&n(12,s=L.initials),"src"in L&&n(2,o=L.src),"bgColor"in L&&n(13,a=L.bgColor),"textColor"in L&&n(3,u=L.textColor),"size"in L&&n(4,l=L.size),"borderRadius"in L&&n(5,c=L.borderRadius),"square"in L&&n(6,f=L.square),"randomBgColor"in L&&n(14,d=L.randomBgColor)},[i,r,o,u,l,c,f,y,m,h,p,v,s,a,d,w,C]}class Ma extends ie{constructor(t){super(),ne(this,t,Ia,Da,ee,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},Oa)}}function Ba(e){let t,n;return t=new Ma({props:{bgColor:e[0],name:e[1],src:e[2],initials:e[3],size:"40px"}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.bgColor=i[0]),r&2&&(s.name=i[1]),r&4&&(s.src=i[2]),r&8&&(s.initials=i[3]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Fa(e,t,n){let{bgColor:i}=t,{name:r}=t,{src:s}=t,{initials:o}=t;return e.$$set=a=>{"bgColor"in a&&n(0,i=a.bgColor),"name"in a&&n(1,r=a.name),"src"in a&&n(2,s=a.src),"initials"in a&&n(3,o=a.initials)},[i,r,s,o]}class $a extends ie{constructor(t){super(),ne(this,t,Fa,Ba,ee,{bgColor:0,name:1,src:2,initials:3})}}var Yi={exports:{}},Qi={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,i){return n<<i|n>>>32-i},rotr:function(n,i){return n<<32-i|n>>>i},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var i=0;i<n.length;i++)n[i]=t.endian(n[i]);return n},randomBytes:function(n){for(var i=[];n>0;n--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(n){for(var i=[],r=0,s=0;r<n.length;r++,s+=8)i[s>>>5]|=n[r]<<24-s%32;return i},wordsToBytes:function(n){for(var i=[],r=0;r<n.length*32;r+=8)i.push(n[r>>>5]>>>24-r%32&255);return i},bytesToHex:function(n){for(var i=[],r=0;r<n.length;r++)i.push((n[r]>>>4).toString(16)),i.push((n[r]&15).toString(16));return i.join("")},hexToBytes:function(n){for(var i=[],r=0;r<n.length;r+=2)i.push(parseInt(n.substr(r,2),16));return i},bytesToBase64:function(n){for(var i=[],r=0;r<n.length;r+=3)for(var s=n[r]<<16|n[r+1]<<8|n[r+2],o=0;o<4;o++)r*8+o*6<=n.length*8?i.push(e.charAt(s>>>6*(3-o)&63)):i.push("=");return i.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],r=0,s=0;r<n.length;s=++r%4)s!=0&&i.push((e.indexOf(n.charAt(r-1))&Math.pow(2,-2*s+8)-1)<<s*2|e.indexOf(n.charAt(r))>>>6-s*2);return i}};Qi.exports=t})();var Pa=Qi.exports,vn={utf8:{stringToBytes:function(e){return vn.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(vn.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},ni=vn;/*!
2
6
  * Determine if an object is a Buffer
3
7
  *
4
8
  * @author Feross Aboukhadijeh <https://feross.org>
5
9
  * @license MIT
6
- */var ji=function(t){return t!=null&&(dn(t)||er(t)||!!t._isBuffer)};function dn(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function er(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&dn(t.slice(0,0))}(function(){var t=Qi,e=Mt.utf8,i=ji,n=Mt.bin,r=function(s,a){s.constructor==String?a&&a.encoding==="binary"?s=n.stringToBytes(s):s=e.stringToBytes(s):i(s)?s=Array.prototype.slice.call(s,0):!Array.isArray(s)&&s.constructor!==Uint8Array&&(s=s.toString());for(var o=t.bytesToWords(s),c=s.length*8,l=1732584193,d=-271733879,u=-1732584194,f=271733878,g=0;g<o.length;g++)o[g]=(o[g]<<8|o[g]>>>24)&16711935|(o[g]<<24|o[g]>>>8)&4278255360;o[c>>>5]|=128<<c%32,o[(c+64>>>9<<4)+14]=c;for(var m=r._ff,v=r._gg,$=r._hh,p=r._ii,g=0;g<o.length;g+=16){var R=l,G=d,L=u,B=f;l=m(l,d,u,f,o[g+0],7,-680876936),f=m(f,l,d,u,o[g+1],12,-389564586),u=m(u,f,l,d,o[g+2],17,606105819),d=m(d,u,f,l,o[g+3],22,-1044525330),l=m(l,d,u,f,o[g+4],7,-176418897),f=m(f,l,d,u,o[g+5],12,1200080426),u=m(u,f,l,d,o[g+6],17,-1473231341),d=m(d,u,f,l,o[g+7],22,-45705983),l=m(l,d,u,f,o[g+8],7,1770035416),f=m(f,l,d,u,o[g+9],12,-1958414417),u=m(u,f,l,d,o[g+10],17,-42063),d=m(d,u,f,l,o[g+11],22,-1990404162),l=m(l,d,u,f,o[g+12],7,1804603682),f=m(f,l,d,u,o[g+13],12,-40341101),u=m(u,f,l,d,o[g+14],17,-1502002290),d=m(d,u,f,l,o[g+15],22,1236535329),l=v(l,d,u,f,o[g+1],5,-165796510),f=v(f,l,d,u,o[g+6],9,-1069501632),u=v(u,f,l,d,o[g+11],14,643717713),d=v(d,u,f,l,o[g+0],20,-373897302),l=v(l,d,u,f,o[g+5],5,-701558691),f=v(f,l,d,u,o[g+10],9,38016083),u=v(u,f,l,d,o[g+15],14,-660478335),d=v(d,u,f,l,o[g+4],20,-405537848),l=v(l,d,u,f,o[g+9],5,568446438),f=v(f,l,d,u,o[g+14],9,-1019803690),u=v(u,f,l,d,o[g+3],14,-187363961),d=v(d,u,f,l,o[g+8],20,1163531501),l=v(l,d,u,f,o[g+13],5,-1444681467),f=v(f,l,d,u,o[g+2],9,-51403784),u=v(u,f,l,d,o[g+7],14,1735328473),d=v(d,u,f,l,o[g+12],20,-1926607734),l=$(l,d,u,f,o[g+5],4,-378558),f=$(f,l,d,u,o[g+8],11,-2022574463),u=$(u,f,l,d,o[g+11],16,1839030562),d=$(d,u,f,l,o[g+14],23,-35309556),l=$(l,d,u,f,o[g+1],4,-1530992060),f=$(f,l,d,u,o[g+4],11,1272893353),u=$(u,f,l,d,o[g+7],16,-155497632),d=$(d,u,f,l,o[g+10],23,-1094730640),l=$(l,d,u,f,o[g+13],4,681279174),f=$(f,l,d,u,o[g+0],11,-358537222),u=$(u,f,l,d,o[g+3],16,-722521979),d=$(d,u,f,l,o[g+6],23,76029189),l=$(l,d,u,f,o[g+9],4,-640364487),f=$(f,l,d,u,o[g+12],11,-421815835),u=$(u,f,l,d,o[g+15],16,530742520),d=$(d,u,f,l,o[g+2],23,-995338651),l=p(l,d,u,f,o[g+0],6,-198630844),f=p(f,l,d,u,o[g+7],10,1126891415),u=p(u,f,l,d,o[g+14],15,-1416354905),d=p(d,u,f,l,o[g+5],21,-57434055),l=p(l,d,u,f,o[g+12],6,1700485571),f=p(f,l,d,u,o[g+3],10,-1894986606),u=p(u,f,l,d,o[g+10],15,-1051523),d=p(d,u,f,l,o[g+1],21,-2054922799),l=p(l,d,u,f,o[g+8],6,1873313359),f=p(f,l,d,u,o[g+15],10,-30611744),u=p(u,f,l,d,o[g+6],15,-1560198380),d=p(d,u,f,l,o[g+13],21,1309151649),l=p(l,d,u,f,o[g+4],6,-145523070),f=p(f,l,d,u,o[g+11],10,-1120210379),u=p(u,f,l,d,o[g+2],15,718787259),d=p(d,u,f,l,o[g+9],21,-343485551),l=l+R>>>0,d=d+G>>>0,u=u+L>>>0,f=f+B>>>0}return t.endian([l,d,u,f])};r._ff=function(s,a,o,c,l,d,u){var f=s+(a&o|~a&c)+(l>>>0)+u;return(f<<d|f>>>32-d)+a},r._gg=function(s,a,o,c,l,d,u){var f=s+(a&c|o&~c)+(l>>>0)+u;return(f<<d|f>>>32-d)+a},r._hh=function(s,a,o,c,l,d,u){var f=s+(a^o^c)+(l>>>0)+u;return(f<<d|f>>>32-d)+a},r._ii=function(s,a,o,c,l,d,u){var f=s+(o^(a|~c))+(l>>>0)+u;return(f<<d|f>>>32-d)+a},r._blocksize=16,r._digestsize=16,cn.exports=function(s,a){if(s==null)throw new Error("Illegal argument "+s);var o=t.wordsToBytes(r(s,a));return a&&a.asBytes?o:a&&a.asString?n.bytesToString(o):t.bytesToHex(o)}})();var tr=cn.exports;const nr=xt(tr);function ir(t){return[...t].reduce((e,i)=>Math.imul(31,e)+i.charCodeAt(0)|0,0)}function rr(t){ee(t,"svelte-1rap1nb",".Column.svelte-1rap1nb{height:100%;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.Column.importanceColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.Column.statusColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}}")}function sr(t){let e,i,n;const r=t[2].default,s=Xe(r,t,t[1],null);return{c(){e=x("div"),s&&s.c(),_(e,"class",i="Column "+t[0]+" svelte-1rap1nb")},m(a,o){D(a,e,o),s&&s.m(e,null),n=!0},p(a,[o]){s&&s.p&&(!n||o&2)&&je(s,r,a,a[1],n?Qe(r,a[1],o,null):et(a[1]),null),(!n||o&1&&i!==(i="Column "+a[0]+" svelte-1rap1nb"))&&_(e,"class",i)},i(a){n||(k(s,a),n=!0)},o(a){T(s,a),n=!1},d(a){a&&N(e),s&&s.d(a)}}}function ar(t,e,i){let{$$slots:n={},$$scope:r}=e,{className:s=""}=e;return t.$$set=a=>{"className"in a&&i(0,s=a.className),"$$scope"in a&&i(1,r=a.$$scope)},[s,r,n]}class Tt extends Z{constructor(e){super(),q(this,e,ar,sr,Y,{className:0},rr)}}var fn={exports:{}};(function(t,e){(function(i,n){t.exports=n()})(ln,function(){var i=1e3,n=6e4,r=36e5,s="millisecond",a="second",o="minute",c="hour",l="day",d="week",u="month",f="quarter",g="year",m="date",v="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var S=["th","st","nd","rd"],C=A%100;return"["+A+(S[(C-20)%10]||S[C]||S[0])+"]"}},G=function(A,S,C){var y=String(A);return!y||y.length>=S?A:""+Array(S+1-y.length).join(C)+A},L={s:G,z:function(A){var S=-A.utcOffset(),C=Math.abs(S),y=Math.floor(C/60),b=C%60;return(S<=0?"+":"-")+G(y,2,"0")+":"+G(b,2,"0")},m:function A(S,C){if(S.date()<C.date())return-A(C,S);var y=12*(C.year()-S.year())+(C.month()-S.month()),b=S.clone().add(y,u),E=C-b<0,H=S.clone().add(y+(E?-1:1),u);return+(-(y+(C-b)/(E?b-H:H-b))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:u,y:g,w:d,d:l,D:m,h:c,m:o,s:a,ms:s,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},B="en",ne={};ne[B]=R;var _e="$isDayjsObject",W=function(A){return A instanceof ye||!(!A||!A[_e])},re=function A(S,C,y){var b;if(!S)return B;if(typeof S=="string"){var E=S.toLowerCase();ne[E]&&(b=E),C&&(ne[E]=C,b=E);var H=S.split("-");if(!b&&H.length>1)return A(H[0])}else{var V=S.name;ne[V]=S,b=V}return!y&&b&&(B=b),b||!y&&B},P=function(A,S){if(W(A))return A.clone();var C=typeof S=="object"?S:{};return C.date=A,C.args=arguments,new ye(C)},U=L;U.l=re,U.i=W,U.w=function(A,S){return P(A,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var ye=function(){function A(C){this.$L=re(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[_e]=!0}var S=A.prototype;return S.parse=function(C){this.$d=function(y){var b=y.date,E=y.utc;if(b===null)return new Date(NaN);if(U.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var H=b.match($);if(H){var V=H[2]-1||0,te=(H[7]||"0").substring(0,3);return E?new Date(Date.UTC(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,te)):new Date(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,te)}}return new Date(b)}(C),this.init()},S.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},S.$utils=function(){return U},S.isValid=function(){return this.$d.toString()!==v},S.isSame=function(C,y){var b=P(C);return this.startOf(y)<=b&&b<=this.endOf(y)},S.isAfter=function(C,y){return P(C)<this.startOf(y)},S.isBefore=function(C,y){return this.endOf(y)<P(C)},S.$g=function(C,y,b){return U.u(C)?this[y]:this.set(b,C)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(C,y){var b=this,E=!!U.u(y)||y,H=U.p(C),V=function(Se,ce){var ke=U.w(b.$u?Date.UTC(b.$y,ce,Se):new Date(b.$y,ce,Se),b);return E?ke:ke.endOf(l)},te=function(Se,ce){return U.w(b.toDate()[Se].apply(b.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(ce)),b)},se=this.$W,oe=this.$M,de=this.$D,De="set"+(this.$u?"UTC":"");switch(H){case g:return E?V(1,0):V(31,11);case u:return E?V(1,oe):V(0,oe+1);case d:var $e=this.$locale().weekStart||0,Be=(se<$e?se+7:se)-$e;return V(E?de-Be:de+(6-Be),oe);case l:case m:return te(De+"Hours",0);case c:return te(De+"Minutes",1);case o:return te(De+"Seconds",2);case a:return te(De+"Milliseconds",3);default:return this.clone()}},S.endOf=function(C){return this.startOf(C,!1)},S.$set=function(C,y){var b,E=U.p(C),H="set"+(this.$u?"UTC":""),V=(b={},b[l]=H+"Date",b[m]=H+"Date",b[u]=H+"Month",b[g]=H+"FullYear",b[c]=H+"Hours",b[o]=H+"Minutes",b[a]=H+"Seconds",b[s]=H+"Milliseconds",b)[E],te=E===l?this.$D+(y-this.$W):y;if(E===u||E===g){var se=this.clone().set(m,1);se.$d[V](te),se.init(),this.$d=se.set(m,Math.min(this.$D,se.daysInMonth())).$d}else V&&this.$d[V](te);return this.init(),this},S.set=function(C,y){return this.clone().$set(C,y)},S.get=function(C){return this[U.p(C)]()},S.add=function(C,y){var b,E=this;C=Number(C);var H=U.p(y),V=function(oe){var de=P(E);return U.w(de.date(de.date()+Math.round(oe*C)),E)};if(H===u)return this.set(u,this.$M+C);if(H===g)return this.set(g,this.$y+C);if(H===l)return V(1);if(H===d)return V(7);var te=(b={},b[o]=n,b[c]=r,b[a]=i,b)[H]||1,se=this.$d.getTime()+C*te;return U.w(se,this)},S.subtract=function(C,y){return this.add(-1*C,y)},S.format=function(C){var y=this,b=this.$locale();if(!this.isValid())return b.invalidDate||v;var E=C||"YYYY-MM-DDTHH:mm:ssZ",H=U.z(this),V=this.$H,te=this.$m,se=this.$M,oe=b.weekdays,de=b.months,De=b.meridiem,$e=function(ce,ke,Je,tt){return ce&&(ce[ke]||ce(y,E))||Je[ke].slice(0,tt)},Be=function(ce){return U.s(V%12||12,ce,"0")},Se=De||function(ce,ke,Je){var tt=ce<12?"AM":"PM";return Je?tt.toLowerCase():tt};return E.replace(p,function(ce,ke){return ke||function(Je){switch(Je){case"YY":return String(y.$y).slice(-2);case"YYYY":return U.s(y.$y,4,"0");case"M":return se+1;case"MM":return U.s(se+1,2,"0");case"MMM":return $e(b.monthsShort,se,de,3);case"MMMM":return $e(de,se);case"D":return y.$D;case"DD":return U.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return $e(b.weekdaysMin,y.$W,oe,2);case"ddd":return $e(b.weekdaysShort,y.$W,oe,3);case"dddd":return oe[y.$W];case"H":return String(V);case"HH":return U.s(V,2,"0");case"h":return Be(1);case"hh":return Be(2);case"a":return Se(V,te,!0);case"A":return Se(V,te,!1);case"m":return String(te);case"mm":return U.s(te,2,"0");case"s":return String(y.$s);case"ss":return U.s(y.$s,2,"0");case"SSS":return U.s(y.$ms,3,"0");case"Z":return H}return null}(ce)||H.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(C,y,b){var E,H=this,V=U.p(y),te=P(C),se=(te.utcOffset()-this.utcOffset())*n,oe=this-te,de=function(){return U.m(H,te)};switch(V){case g:E=de()/12;break;case u:E=de();break;case f:E=de()/3;break;case d:E=(oe-se)/6048e5;break;case l:E=(oe-se)/864e5;break;case c:E=oe/r;break;case o:E=oe/n;break;case a:E=oe/i;break;default:E=oe}return b?E:U.a(E)},S.daysInMonth=function(){return this.endOf(u).$D},S.$locale=function(){return ne[this.$L]},S.locale=function(C,y){if(!C)return this.$L;var b=this.clone(),E=re(C,y,!0);return E&&(b.$L=E),b},S.clone=function(){return U.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},A}(),be=ye.prototype;return P.prototype=be,[["$ms",s],["$s",a],["$m",o],["$H",c],["$W",l],["$M",u],["$y",g],["$D",m]].forEach(function(A){be[A[1]]=function(S){return this.$g(S,A[0],A[1])}}),P.extend=function(A,S){return A.$i||(A(S,ye,P),A.$i=!0),P},P.locale=re,P.isDayjs=W,P.unix=function(A){return P(1e3*A)},P.en=ne[B],P.Ls=ne,P.p={},P})})(fn);var or=fn.exports;const We=xt(or);var gn={exports:{}};(function(t,e){(function(i,n){t.exports=n()})(ln,function(){return function(i,n,r){i=i||{};var s=n.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(l,d,u,f){return s.fromToBase(l,d,u,f)}r.en.relativeTime=a,s.fromToBase=function(l,d,u,f,g){for(var m,v,$,p=u.$locale().relativeTime||a,R=i.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],G=R.length,L=0;L<G;L+=1){var B=R[L];B.d&&(m=f?r(l).diff(u,B.d,!0):u.diff(l,B.d,!0));var ne=(i.rounding||Math.round)(Math.abs(m));if($=m>0,ne<=B.r||!B.r){ne<=1&&L>0&&(B=R[L-1]);var _e=p[B.l];g&&(ne=g(""+ne)),v=typeof _e=="string"?_e.replace("%d",ne):_e(ne,d,B.l,$);break}}if(d)return v;var W=$?p.future:p.past;return typeof W=="function"?W(v):W.replace("%s",v)},s.to=function(l,d){return o(l,d,this,!0)},s.from=function(l,d){return o(l,d,this)};var c=function(l){return l.$u?r.utc():r()};s.toNow=function(l){return this.to(c(this),l)},s.fromNow=function(l){return this.from(c(this),l)}}})})(gn);var lr=gn.exports;const cr=xt(lr);We.extend(cr);function ur(t){let e,i,n=[t[3],{title:t[2]},{datetime:t[1]}],r={};for(let s=0;s<n.length;s+=1)r=Ve(r,n[s]);return{c(){e=x("time"),i=j(t[0]),Lt(e,r)},m(s,a){D(s,e,a),w(e,i)},p(s,[a]){a&1&&Nn(i,s[0],r.contenteditable),Lt(e,r=Qt(n,[a&8&&s[3],a&4&&{title:s[2]},a&2&&{datetime:s[1]}]))},i:J,o:J,d(s){s&&N(e)}}}function dr(t,e,i){let n;const r=["timestamp","format","relative","live","formatted"];let s=St(e,r),{timestamp:a=new Date().toISOString()}=e,{format:o="MMM DD, YYYY"}=e,{relative:c=!1}=e,{live:l=!1}=e,{formatted:d=""}=e,u;const f=60*1e3;return ot(()=>()=>clearInterval(u)),t.$$set=g=>{e=Ve(Ve({},e),wn(g)),i(3,s=St(e,r)),"timestamp"in g&&i(1,a=g.timestamp),"format"in g&&i(4,o=g.format),"relative"in g&&i(5,c=g.relative),"live"in g&&i(6,l=g.live),"formatted"in g&&i(0,d=g.formatted)},t.$$.update=()=>{t.$$.dirty&98&&c&&l!==!1&&(u=setInterval(()=>{i(0,d=We(a).from())},Math.abs(typeof l=="number"?l:f))),t.$$.dirty&50&&i(0,d=c?We(a).from():We(a).format(o)),t.$$.dirty&50&&i(2,n=c?We(a).format(o):void 0)},[d,a,n,s,o,c,l]}class hn extends Z{constructor(e){super(),q(this,e,dr,ur,Y,{timestamp:1,format:4,relative:5,live:6,formatted:0})}}function fr(t){ee(t,"svelte-1xxfpqg",`.Tag.svelte-1xxfpqg{box-sizing:border-box;display:inline-flex;color:var(--main-textcolor);align-items:center;justify-content:center;font-size:13px;font-weight:bold;line-height:20px;padding:2px 6px;margin-right:6px;margin-top:2px;border-radius:69px}.empty.svelte-1xxfpqg{display:none}.Tag.svelte-1xxfpqg:before{font-family:"la-icon-font"}.SLA.svelte-1xxfpqg{border:1px solid var(--main-lighter-textcolor);border-radius:4px;color:var(--main-lighter-textcolor)
7
- }@media(min-width: 768px){.Tag.svelte-1xxfpqg{font-size:12px}}`)}function gr(t){let e,i;return{c(){e=x("span"),i=j(t[1]),_(e,"class","text")},m(n,r){D(n,e,r),w(e,i)},p(n,r){r&2&&ae(i,n[1])},i:J,o:J,d(n){n&&N(e)}}}function hr(t){let e,i,n,r,s;const a=[pr,mr],o=[];function c(l,d){return d&2&&(e=null),e==null&&(e=!isNaN(l[1].getTime())),e?0:1}return i=c(t,-1),n=o[i]=a[i](t),{c(){n.c(),r=Ke()},m(l,d){o[i].m(l,d),D(l,r,d),s=!0},p(l,d){let u=i;i=c(l,d),i===u?o[i].p(l,d):(me(),T(o[u],1,1,()=>{o[u]=null}),pe(),n=o[i],n?n.p(l,d):(n=o[i]=a[i](l),n.c()),k(n,1),n.m(r.parentNode,r))},i(l){s||(k(n),s=!0)},o(l){T(n),s=!1},d(l){l&&N(r),o[i].d(l)}}}function mr(t){let e;return{c(){e=x("span"),e.textContent=`${F("Invalid data")}`,_(e,"class","invalid")},m(i,n){D(i,e,n)},p:J,i:J,o:J,d(i){i&&N(e)}}}function pr(t){let e,i;return e=new hn({props:{style:t[3],timestamp:t[1],format:"",relative:!0}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&8&&(s.style=n[3]),r&2&&(s.timestamp=n[1]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function _r(t){let e,i,n,r,s,a;const o=t[5].default,c=Xe(o,t,t[4],null),l=[hr,gr],d=[];function u(f,g){return f[1]instanceof Date?0:1}return n=u(t),r=d[n]=l[n](t),{c(){e=x("div"),c&&c.c(),i=K(),r.c(),_(e,"class",s="Tag "+t[0]+" svelte-1xxfpqg"),_(e,"style",t[2])},m(f,g){D(f,e,g),c&&c.m(e,null),w(e,i),d[n].m(e,null),a=!0},p(f,[g]){c&&c.p&&(!a||g&16)&&je(c,o,f,f[4],a?Qe(o,f[4],g,null):et(f[4]),null);let m=n;n=u(f),n===m?d[n].p(f,g):(me(),T(d[m],1,1,()=>{d[m]=null}),pe(),r=d[n],r?r.p(f,g):(r=d[n]=l[n](f),r.c()),k(r,1),r.m(e,null)),(!a||g&1&&s!==(s="Tag "+f[0]+" svelte-1xxfpqg"))&&_(e,"class",s),(!a||g&4)&&_(e,"style",f[2])},i(f){a||(k(c,f),k(r),a=!0)},o(f){T(c,f),T(r),a=!1},d(f){f&&N(e),c&&c.d(f),d[n].d()}}}function vr(t,e,i){let{$$slots:n={},$$scope:r}=e,{text:s}=e,{className:a=""}=e,{style:o=""}=e,{timeStyle:c=""}=e;return t.$$set=l=>{"text"in l&&i(1,s=l.text),"className"in l&&i(0,a=l.className),"style"in l&&i(2,o=l.style),"timeStyle"in l&&i(3,c=l.timeStyle),"$$scope"in l&&i(4,r=l.$$scope)},t.$$.update=()=>{t.$$.dirty&3&&s===""&&i(0,a="empty")},[a,s,o,c,r,n]}class ut extends Z{constructor(e){super(),q(this,e,vr,_r,Y,{text:1,className:0,style:2,timeStyle:3},fr)}}function yr(t){ee(t,"svelte-1ify73x","div.Tag.IconTag{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:4px}.IconTag .Icon{display:flex;align-items:center;justify-content:center;font-size:16px;width:16px;height:16px}div.Tag.IconTag.Department{background-color:var(--department-bg-color);color:white}")}function br(t){let e,i;return e=new we({props:{iconLaClassName:t[2]}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&4&&(s.iconLaClassName=n[2]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function wr(t){let e,i;return e=new ut({props:{text:t[0],className:t[3],style:t[1],$$slots:{default:[br]},$$scope:{ctx:t}}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,[r]){const s={};r&1&&(s.text=n[0]),r&2&&(s.style=n[1]),r&36&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function kr(t,e,i){let{text:n}=e,{className:r=""}=e,{style:s=""}=e,{iconLaClassName:a}=e,o=`IconTag ${r}`;return t.$$set=c=>{"text"in c&&i(0,n=c.text),"className"in c&&i(4,r=c.className),"style"in c&&i(1,s=c.style),"iconLaClassName"in c&&i(2,a=c.iconLaClassName)},[n,s,a,o,r]}class dt extends Z{constructor(e){super(),q(this,e,kr,wr,Y,{text:0,className:4,style:1,iconLaClassName:2},yr)}}function Cr(t){ee(t,"svelte-1wen6ck",".Column.userColumn{display:flex;align-items:center}.Tag.CompanyTag{background-color:var(--department-bg-color);color:var(--main-textcolor)}div.Tag.NoCompanyTag{color:var(--main-lighter-textcolor);border:1px solid var(--main-lighter-textcolor)}.avatar.svelte-1wen6ck{display:none}.companyTag.svelte-1wen6ck{display:none}.name.svelte-1wen6ck{font-size:14px;line-height:20px;font-weight:bold;padding-right:8px;margin-right:6px;position:relative}.name.svelte-1wen6ck::after{content:'';display:block;height:14px;width:1px;background-color:var(--main-textcolor);position:absolute;right:0;top:15%}.no.svelte-1wen6ck{font-weight:400;color:var(--main-lighter-textcolor)}.email.svelte-1wen6ck{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texts.svelte-1wen6ck{display:flex;flex-direction:row;justify-content:flex-start;overflow:hidden}@media(min-width: 900px){.avatar.svelte-1wen6ck{display:flex;align-items:center;justify-content:center;margin:0 10px;width:40px;height:40px}.name.svelte-1wen6ck{padding:0;border:none;font-size:13px}.name.svelte-1wen6ck::after{display:none}.email.svelte-1wen6ck{font-size:13px;padding:0}.companyTag.svelte-1wen6ck{display:flex}.texts.svelte-1wen6ck{display:flex;flex-direction:column;justify-content:space-around}}")}function zt(t){let e,i;const n=[t[2]];let r={};for(let s=0;s<n.length;s+=1)r=Ve(r,n[s]);return e=new Xi({props:r}),{c(){I(e.$$.fragment)},m(s,a){M(e,s,a),i=!0},p(s,a){const o=a&4?Qt(n,[zn(s[2])]):{};e.$set(o)},i(s){i||(k(e.$$.fragment,s),i=!0)},o(s){T(e.$$.fragment,s),i=!1},d(s){z(e,s)}}}function xr(t){let e,i=t[2].name,n,r,s,a=(t[3]!==void 0?t[3]:F("No name"))+"",o,c,l,d,u=(t[0].emails.length!==0?t[0].emails[0]:F("No email"))+"",f,g,m,v,$,p,R=zt(t);return $=new dt({props:{text:t[0].company==="Y"?"Company":F("No Company"),className:(t[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag",iconLaClassName:"la-companies"}}),{c(){e=x("div"),R.c(),n=K(),r=x("div"),s=x("div"),o=j(a),l=K(),d=x("div"),f=j(u),m=K(),v=x("div"),I($.$$.fragment),_(e,"class","avatar svelte-1wen6ck"),_(s,"class",c=ie(t[3]?"name":"no name")+" svelte-1wen6ck"),_(d,"class",g=ie(t[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"),_(v,"class","companyTag svelte-1wen6ck"),_(r,"class","texts svelte-1wen6ck")},m(G,L){D(G,e,L),R.m(e,null),D(G,n,L),D(G,r,L),w(r,s),w(s,o),w(r,l),w(r,d),w(d,f),w(r,m),w(r,v),M($,v,null),p=!0},p(G,L){L&4&&Y(i,i=G[2].name)?(me(),T(R,1,1,J),pe(),R=zt(G),R.c(),k(R,1),R.m(e,null)):R.p(G,L),(!p||L&8)&&a!==(a=(G[3]!==void 0?G[3]:F("No name"))+"")&&ae(o,a),(!p||L&8&&c!==(c=ie(G[3]?"name":"no name")+" svelte-1wen6ck"))&&_(s,"class",c),(!p||L&1)&&u!==(u=(G[0].emails.length!==0?G[0].emails[0]:F("No email"))+"")&&ae(f,u),(!p||L&1&&g!==(g=ie(G[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"))&&_(d,"class",g);const B={};L&1&&(B.text=G[0].company==="Y"?"Company":F("No Company")),L&1&&(B.className=(G[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag"),$.$set(B)},i(G){p||(k(R),k($.$$.fragment,G),p=!0)},o(G){T(R),T($.$$.fragment,G),p=!1},d(G){G&&(N(e),N(n),N(r)),R.d(G),z($)}}}function Tr(t){let e,i;return e=new Tt({props:{className:t[1],$$slots:{default:[xr]},$$scope:{ctx:t}}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,[r]){const s={};r&2&&(s.className=n[1]),r&141&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function $r(t,e,i){if(!t)return(i[0]+i[1]).toUpperCase();let n=t[0];return e&&(n+=e[0]),n}function Sr(t,e,i){let n,r,{row:s}=e,{className:a="userColumn"}=e;function o(d,u,f){if(!d)return"";let g=d+" "+u;return g.trim()||(g=f),g}function c(d,u){let f=d;return f||(f="https://www.gravatar.com/avatar/"+nr(u[0]??"")+"?s=200&d=404"),f}function l(d,u,f,g){let m;g?m=ir(o(d,u,g)+f):m=Math.floor(Math.random()*16777215);let v=(m&16711680)>>16,$=(m&65280)>>8,p=m&255;return v+$+p<150&&(v=150),v+$+p>400&&(v=0),`rgb(${v},${$},${p})`}return t.$$set=d=>{"row"in d&&i(0,s=d.row),"className"in d&&i(1,a=d.className)},t.$$.update=()=>{t.$$.dirty&1&&i(3,n=s.name),t.$$.dirty&1&&i(2,r={bgColor:l(s.firstname,s.lastname,s.emails,s.systemName),name:o(s.firstname,s.lastname,s.systemName),src:c(s.avatarUrl,s.emails),initials:$r(s.firstname,s.lastname,s.systemName)})},[s,a,r,n]}class Lr extends Z{constructor(e){super(),q(this,e,Sr,Tr,Y,{row:0,className:1},Cr)}}function Nr(t){ee(t,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function Dr(t){let e;return{c(){e=x("span"),e.textContent=`${F("Invalid data")}`,_(e,"class","invalid svelte-hsbbji")},m(i,n){D(i,e,n)},p:J,i:J,o:J,d(i){i&&N(e)}}}function Fr(t){let e,i;return e=new hn({props:{style:t[2],timestamp:t[0],format:t[1],relative:t[3]}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&4&&(s.style=n[2]),r&1&&(s.timestamp=n[0]),r&2&&(s.format=n[1]),r&8&&(s.relative=n[3]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Or(t){let e,i,n,r,s;const a=[Fr,Dr],o=[];function c(l,d){return d&1&&(i=null),i==null&&(i=l[0]instanceof Date&&!isNaN(l[0].getTime())),i?0:1}return n=c(t,-1),r=o[n]=a[n](t),{c(){e=x("div"),r.c(),_(e,"class","Date svelte-hsbbji")},m(l,d){D(l,e,d),o[n].m(e,null),s=!0},p(l,[d]){let u=n;n=c(l,d),n===u?o[n].p(l,d):(me(),T(o[u],1,1,()=>{o[u]=null}),pe(),r=o[n],r?r.p(l,d):(r=o[n]=a[n](l),r.c()),k(r,1),r.m(e,null))},i(l){s||(k(r),s=!0)},o(l){T(r),s=!1},d(l){l&&N(e),o[n].d()}}}function Rr(t,e,i){let{data:n}=e,{format:r=""}=e,{style:s=""}=e,{relative:a=!1}=e;return t.$$set=o=>{"data"in o&&i(0,n=o.data),"format"in o&&i(1,r=o.format),"style"in o&&i(2,s=o.style),"relative"in o&&i(3,a=o.relative)},[n,r,s,a]}class Gt extends Z{constructor(e){super(),q(this,e,Rr,Or,Y,{data:0,format:1,style:2,relative:3},Nr)}}function Ar(t){ee(t,"svelte-1q9wgt3",".IconWrapper.svelte-1q9wgt3{display:flex;justify-content:center;align-items:center;margin:4px 6px}.CombinedTag.svelte-1q9wgt3{display:inline-flex;flex-direction:row;border-radius:4px;margin-top:2px;margin-right:6px;padding-right:0}.Pending.svelte-1q9wgt3{background-color:var(--ok-color)}.Overdue.svelte-1q9wgt3{background-color:var(--notif-error-color)}")}function Mr(t){let e,i,n,r;i=new we({props:{iconLaClassName:t[2]}});const s=t[7].default,a=Xe(s,t,t[6],null);return{c(){e=x("div"),I(i.$$.fragment),n=K(),a&&a.c(),_(e,"class","IconWrapper svelte-1q9wgt3")},m(o,c){D(o,e,c),M(i,e,null),D(o,n,c),a&&a.m(o,c),r=!0},p(o,c){const l={};c&4&&(l.iconLaClassName=o[2]),i.$set(l),a&&a.p&&(!r||c&64)&&je(a,s,o,o[6],r?Qe(s,o[6],c,null):et(o[6]),null)},i(o){r||(k(i.$$.fragment,o),k(a,o),r=!0)},o(o){T(i.$$.fragment,o),T(a,o),r=!1},d(o){o&&(N(e),N(n)),z(i),a&&a.d(o)}}}function zr(t){let e,i;return e=new dt({props:{style:t[4],text:t[0],iconLaClassName:t[2],className:"Combined"}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&16&&(s.style=n[4]),r&1&&(s.text=n[0]),r&4&&(s.iconLaClassName=n[2]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Gr(t){let e,i,n,r,s,a,o;const c=[zr,Mr],l=[];function d(u,f){return u[0]!==""?0:1}return i=d(t),n=l[i]=c[i](t),s=new ut({props:{style:t[5],text:t[1]}}),{c(){e=x("div"),n.c(),r=K(),I(s.$$.fragment),_(e,"class",a=ie(`CombinedTag ${t[3]}`)+" svelte-1q9wgt3")},m(u,f){D(u,e,f),l[i].m(e,null),w(e,r),M(s,e,null),o=!0},p(u,[f]){let g=i;i=d(u),i===g?l[i].p(u,f):(me(),T(l[g],1,1,()=>{l[g]=null}),pe(),n=l[i],n?n.p(u,f):(n=l[i]=c[i](u),n.c()),k(n,1),n.m(e,r));const m={};f&32&&(m.style=u[5]),f&2&&(m.text=u[1]),s.$set(m),(!o||f&8&&a!==(a=ie(`CombinedTag ${u[3]}`)+" svelte-1q9wgt3"))&&_(e,"class",a)},i(u){o||(k(n),k(s.$$.fragment,u),o=!0)},o(u){T(n),T(s.$$.fragment,u),o=!1},d(u){u&&N(e),l[i].d(),z(s)}}}function Ir(t,e,i){let{$$slots:n={},$$scope:r}=e,{iconText:s=""}=e,{tagText:a}=e,{iconLaClassName:o}=e,{className:c}=e,{iconTagStyles:l}=e,{tagStyles:d}=e;return t.$$set=u=>{"iconText"in u&&i(0,s=u.iconText),"tagText"in u&&i(1,a=u.tagText),"iconLaClassName"in u&&i(2,o=u.iconLaClassName),"className"in u&&i(3,c=u.className),"iconTagStyles"in u&&i(4,l=u.iconTagStyles),"tagStyles"in u&&i(5,d=u.tagStyles),"$$scope"in u&&i(6,r=u.$$scope)},[s,a,o,c,l,d,r,n]}class mn extends Z{constructor(e){super(),q(this,e,Ir,Gr,Y,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},Ar)}}function Er(t){let e,i;return e=new ut({props:{text:F("No SLA"),className:"SLA"}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p:J,i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Hr(t){let e,i;return e=new mn({props:{iconText:t[1],iconLaClassName:t[3].icon,tagText:t[0],className:t[3].className,iconTagStyles:"color: white",tagStyles:t[3].tagStyles}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&2&&(s.iconText=n[1]),r&8&&(s.iconLaClassName=n[3].icon),r&1&&(s.tagText=n[0]),r&8&&(s.className=n[3].className),r&8&&(s.tagStyles=n[3].tagStyles),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Kr(t){let e,i,n,r;const s=[Hr,Er],a=[];function o(c,l){return c[2]?0:1}return e=o(t),i=a[e]=s[e](t),{c(){i.c(),n=Ke()},m(c,l){a[e].m(c,l),D(c,n,l),r=!0},p(c,[l]){let d=e;e=o(c),e===d?a[e].p(c,l):(me(),T(a[d],1,1,()=>{a[d]=null}),pe(),i=a[e],i?i.p(c,l):(i=a[e]=s[e](c),i.c()),k(i,1),i.m(n.parentNode,n))},i(c){r||(k(i),r=!0)},o(c){T(i),r=!1},d(c){c&&N(n),a[e].d(c)}}}function Br(t){return!t||!(t instanceof Date)||isNaN(t)?{className:"SLATag",icon:"",tagStyles:""}:t>new Date?{className:"SLATag Pending",icon:"la-sla",tagStyles:"color: var(--ok-color); background-color: #D9FAE0; border-radius: 4px; border: 1px solid var(--ok-color); margin: 0"}:{className:"SLATag Overdue",icon:"la-sla-compliance",tagStyles:"color: var(--notif-error-color); background-color: #FEEAE8; border-radius: 4px; border: 1px solid var(--notif-error-color); margin: 0"}}function Jr(t,e,i){let n,r,{tagText:s=F("First answer")}=e,{due:a}=e;return t.$$set=o=>{"tagText"in o&&i(0,s=o.tagText),"due"in o&&i(1,a=o.due)},t.$$.update=()=>{t.$$.dirty&2&&i(3,n=Br(a)),t.$$.dirty&2&&i(2,r=a instanceof Date&&!isNaN(a))},[s,a,r,n]}class Ur extends Z{constructor(e){super(),q(this,e,Jr,Kr,Y,{tagText:0,due:1})}}function Wr(t){ee(t,"svelte-eafxx5",".TicketId.svelte-eafxx5{font-weight:bold;font-size:14px;line-height:20px;margin-right:14px}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:14px;line-height:20px}.Communication.svelte-eafxx5{font-size:14px;line-height:20px;display:inline-flex;align-items:center;justify-content:center;margin-right:6px}.ticketDetails.svelte-eafxx5{display:flex;align-items:center;margin-top:6px;margin-bottom:2px}@media(min-width: 900px){.Changed.svelte-eafxx5{display:none}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:13px}.TicketId.svelte-eafxx5{font-size:13px}.ticketDetails.svelte-eafxx5{margin:0}.Communication.svelte-eafxx5{font-size:13px}}")}function Yr(t){let e,i,n=t[1].code+"",r,s,a,o,c,l,d,u=t[1].messagegroupsIn+"",f,g,m,v,$,p,R=t[1].messagegroupsOut+"",G,L,B,ne,_e,W,re,P,U,ye,be,A,S,C;return c=new we({props:{iconLaClassName:"la-incoming"}}),v=new we({props:{iconLaClassName:"la-outgoing"}}),W=new Gt({props:{data:t[1].datecreated,format:t[2]}}),be=new Gt({props:{data:t[1].datechanged,format:t[2]}}),S=new Ur({props:{tagText:"",due:t[1].datedue}}),{c(){e=x("div"),i=x("span"),r=j(n),s=K(),a=x("div"),o=x("div"),I(c.$$.fragment),l=K(),d=x("span"),f=j(u),g=K(),m=x("div"),I(v.$$.fragment),$=K(),p=x("span"),G=j(R),L=K(),B=x("div"),ne=x("span"),ne.textContent=`${F("Created")}:`,_e=K(),I(W.$$.fragment),re=K(),P=x("div"),U=x("span"),U.textContent=`${F("Changed")}:`,ye=K(),I(be.$$.fragment),A=K(),I(S.$$.fragment),_(i,"class","TicketId svelte-eafxx5"),_(o,"class","Communication incomingMessages svelte-eafxx5"),_(m,"class","Communication outgoingMessages svelte-eafxx5"),_(a,"class","arrows"),_(e,"class","ticketDetails svelte-eafxx5"),_(B,"class","Created svelte-eafxx5"),_(P,"class","Changed svelte-eafxx5")},m(y,b){D(y,e,b),w(e,i),w(i,r),w(e,s),w(e,a),w(a,o),M(c,o,null),w(o,l),w(o,d),w(d,f),w(a,g),w(a,m),M(v,m,null),w(m,$),w(m,p),w(p,G),D(y,L,b),D(y,B,b),w(B,ne),w(B,_e),M(W,B,null),D(y,re,b),D(y,P,b),w(P,U),w(P,ye),M(be,P,null),D(y,A,b),M(S,y,b),C=!0},p(y,b){(!C||b&2)&&n!==(n=y[1].code+"")&&ae(r,n),(!C||b&2)&&u!==(u=y[1].messagegroupsIn+"")&&ae(f,u),(!C||b&2)&&R!==(R=y[1].messagegroupsOut+"")&&ae(G,R);const E={};b&2&&(E.data=y[1].datecreated),b&4&&(E.format=y[2]),W.$set(E);const H={};b&2&&(H.data=y[1].datechanged),b&4&&(H.format=y[2]),be.$set(H);const V={};b&2&&(V.due=y[1].datedue),S.$set(V)},i(y){C||(k(c.$$.fragment,y),k(v.$$.fragment,y),k(W.$$.fragment,y),k(be.$$.fragment,y),k(S.$$.fragment,y),C=!0)},o(y){T(c.$$.fragment,y),T(v.$$.fragment,y),T(W.$$.fragment,y),T(be.$$.fragment,y),T(S.$$.fragment,y),C=!1},d(y){y&&(N(e),N(L),N(B),N(re),N(P),N(A)),z(c),z(v),z(W),z(be),z(S,y)}}}function Pr(t){let e,i;return e=new Tt({props:{className:t[0],$$slots:{default:[Yr]},$$scope:{ctx:t}}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,[r]){const s={};r&1&&(s.className=n[0]),r&14&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Vr(t,e,i){let{className:n="importanceColumn"}=e,{row:r}=e,{format:s="YYYY-MM-DD HH:mm:ss"}=e;return t.$$set=a=>{"className"in a&&i(0,n=a.className),"row"in a&&i(1,r=a.row),"format"in a&&i(2,s=a.format)},[n,r,s]}class qr extends Z{constructor(e){super(),q(this,e,Vr,Pr,Y,{className:0,row:1,format:2},Wr)}}function Zr(t){ee(t,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function Xr(t){let e,i;return e=new ut({props:{style:"color: #"+t[2]+"; background: #"+t[1]+"99; border: 1px solid #"+t[1],text:t[0],className:"TicketTag"}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,[r]){const s={};r&6&&(s.style="color: #"+n[2]+"; background: #"+n[1]+"99; border: 1px solid #"+n[1]),r&1&&(s.text=n[0]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Qr(t,e,i){let n,r,s,a;Q(t,sn,c=>i(4,a=c));let{tagId:o}=e;return console.log(a[o]),t.$$set=c=>{"tagId"in c&&i(3,o=c.tagId)},t.$$.update=()=>{var c,l,d;t.$$.dirty&24&&i(2,n=((c=a[o])==null?void 0:c.color)??0),t.$$.dirty&24&&i(1,r=((l=a[o])==null?void 0:l.backgroundcolor)??0),t.$$.dirty&24&&i(0,s=((d=a[o])==null?void 0:d.name)??"")},[s,r,n,o,a]}class jr extends Z{constructor(e){super(),q(this,e,Qr,Xr,Y,{tagId:3},Zr)}}function It(t,e,i){const n=t.slice();return n[1]=e[i],n}function Et(t){let e,i;return e=new jr({props:{tagId:t[1]}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&1&&(s.tagId=n[1]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function es(t){let e,i,n=Ee(t[0]),r=[];for(let a=0;a<n.length;a+=1)r[a]=Et(It(t,n,a));const s=a=>T(r[a],1,1,()=>{r[a]=null});return{c(){e=x("span");for(let a=0;a<r.length;a+=1)r[a].c()},m(a,o){D(a,e,o);for(let c=0;c<r.length;c+=1)r[c]&&r[c].m(e,null);i=!0},p(a,[o]){if(o&1){n=Ee(a[0]);let c;for(c=0;c<n.length;c+=1){const l=It(a,n,c);r[c]?(r[c].p(l,o),k(r[c],1)):(r[c]=Et(l),r[c].c(),k(r[c],1),r[c].m(e,null))}for(me(),c=n.length;c<r.length;c+=1)s(c);pe()}},i(a){if(!i){for(let o=0;o<n.length;o+=1)k(r[o]);i=!0}},o(a){r=r.filter(Boolean);for(let o=0;o<r.length;o+=1)T(r[o]);i=!1},d(a){a&&N(e),bt(r,a)}}}function ts(t,e,i){let{tags:n}=e;return t.$$set=r=>{"tags"in r&&i(0,n=r.tags)},[n]}class ns extends Z{constructor(e){super(),q(this,e,ts,es,Y,{tags:0})}}function is(t){ee(t,"svelte-q9af99",".Tag.IconTag.StatusTag .text{display:none}@media(min-width: 768px){.Tag.IconTag.StatusTag .text{display:inline}}")}function rs(t){let e,i;return e=new dt({props:{className:"StatusTag "+t[1][t[0]].text,style:"color: "+xe(t[0]).text+"; background-color: "+xe(t[0]).bg+"; border-color: "+xe(t[0]).border,text:t[1][t[0]].text,iconLaClassName:t[1][t[0]].icon}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,[r]){const s={};r&1&&(s.className="StatusTag "+n[1][n[0]].text),r&1&&(s.style="color: "+xe(n[0]).text+"; background-color: "+xe(n[0]).bg+"; border-color: "+xe(n[0]).border),r&1&&(s.text=n[1][n[0]].text),r&1&&(s.iconLaClassName=n[1][n[0]].icon),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function ss(t,e,i){let{status:n}=e;const r={A:{text:F("Answered"),icon:"la-ticket-answered"},T:{text:F("Chatting"),icon:"la-chatting"},P:{text:F("Calling"),icon:"la-call"},X:{text:F("Deleted"),icon:"la-ticket-deleted"},B:{text:F("Spam"),icon:"la-spam"},I:{text:F("Init"),icon:""},R:{text:F("Resolved"),icon:"la-ticket-resolved"},N:{text:F("New"),icon:"la-ticket-new"},C:{text:F("Open"),icon:"la-ticket-open"},W:{text:F("Postponed"),icon:"la-ticket-postponed"}};return t.$$set=s=>{"status"in s&&i(0,n=s.status)},[n,r]}class as extends Z{constructor(e){super(),q(this,e,ss,rs,Y,{status:0},is)}}function os(t){let e,i;return e=new dt({props:{className:_n,text:t[0].departmentname,iconLaClassName:pn}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&1&&(s.text=n[0].departmentname),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function ls(t){let e,i;return e=new mn({props:{iconText:t[0].departmentname,tagText:t[0].agentname,iconLaClassName:pn,className:_n,iconTagStyles:t[1],tagStyles:t[2]}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&1&&(s.iconText=n[0].departmentname),r&1&&(s.tagText=n[0].agentname),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function cs(t){let e,i,n,r,s;const a=[ls,os],o=[];function c(l,d){return d&1&&(e=null),e==null&&(e=l[0].agentname.trim()!==""),e?0:1}return i=c(t,-1),n=o[i]=a[i](t),{c(){n.c(),r=Ke()},m(l,d){o[i].m(l,d),D(l,r,d),s=!0},p(l,[d]){let u=i;i=c(l,d),i===u?o[i].p(l,d):(me(),T(o[u],1,1,()=>{o[u]=null}),pe(),n=o[i],n?n.p(l,d):(n=o[i]=a[i](l),n.c()),k(n,1),n.m(r.parentNode,r))},i(l){s||(k(n),s=!0)},o(l){T(n),s=!1},d(l){l&&N(r),o[i].d(l)}}}const pn="la-department",_n="Department";function us(t,e,i){let{data:n}=e,r="color: white; background-color: var(--department-bg-color); margin-top: 0;",s="color: var(--tag-department-agent-text); background-color: var(--tag-department-agent-bg); border-radius: 4px; margin: 0";return t.$$set=a=>{"data"in a&&i(0,n=a.data)},[n,r,s]}class ds extends Z{constructor(e){super(),q(this,e,us,cs,Y,{data:0})}}function fs(t){ee(t,"svelte-ccmpo7",`.subject.svelte-ccmpo7{font-size:14px;font-weight:bold;line-height:20px;margin:0}.preview.svelte-ccmpo7{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px;margin:0 0 4px;line-height:20px;font-size:14px}.no-text.svelte-ccmpo7{color:var(--main-lighter-textcolor)}.additional.svelte-ccmpo7{display:flex}.CombinedTag.Department{background-color:var(--department-bg-color)}@media(min-width: 768px){.subject.svelte-ccmpo7{font-size:13px
8
- }.preview.svelte-ccmpo7{font-size:13px;margin:0}}`)}function gs(t){let e,i=t[0].subject+"",n,r,s,a=(t[0].preview?t[0].preview:F("No text for preview"))+"",o,c,l,d,u,f,g,m,v,$;return u=new as({props:{status:t[0].status}}),g=new ds({props:{data:t[0]}}),v=new ns({props:{tags:t[0].tags}}),{c(){e=x("h1"),n=j(i),r=K(),s=x("p"),o=j(a),l=K(),d=x("div"),I(u.$$.fragment),f=K(),I(g.$$.fragment),m=K(),I(v.$$.fragment),_(e,"class","subject svelte-ccmpo7"),_(s,"class",c=ie(t[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"),_(d,"class","additional svelte-ccmpo7")},m(p,R){D(p,e,R),w(e,n),D(p,r,R),D(p,s,R),w(s,o),D(p,l,R),D(p,d,R),M(u,d,null),w(d,f),M(g,d,null),w(d,m),M(v,d,null),$=!0},p(p,R){(!$||R&1)&&i!==(i=p[0].subject+"")&&ae(n,i),(!$||R&1)&&a!==(a=(p[0].preview?p[0].preview:F("No text for preview"))+"")&&ae(o,a),(!$||R&1&&c!==(c=ie(p[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"))&&_(s,"class",c);const G={};R&1&&(G.status=p[0].status),u.$set(G);const L={};R&1&&(L.data=p[0]),g.$set(L);const B={};R&1&&(B.tags=p[0].tags),v.$set(B)},i(p){$||(k(u.$$.fragment,p),k(g.$$.fragment,p),k(v.$$.fragment,p),$=!0)},o(p){T(u.$$.fragment,p),T(g.$$.fragment,p),T(v.$$.fragment,p),$=!1},d(p){p&&(N(e),N(r),N(s),N(l),N(d)),z(u),z(g),z(v)}}}function hs(t){let e,i;return e=new Tt({props:{className:t[1],$$slots:{default:[gs]},$$scope:{ctx:t}}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,[r]){const s={};r&2&&(s.className=n[1]),r&5&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function ms(t,e,i){let{row:n}=e,{className:r="statusColumn"}=e;return t.$$set=s=>{"row"in s&&i(0,n=s.row),"className"in s&&i(1,r=s.className)},[n,r]}class ps extends Z{constructor(e){super(),q(this,e,ms,hs,Y,{row:0,className:1},fs)}}function _s(t){ee(t,"svelte-d34xx3",`.Body.svelte-d34xx3.svelte-d34xx3{padding:0px 20px}.Row.svelte-d34xx3.svelte-d34xx3{display:grid;grid-template-columns:60px 1fr;grid-template-rows:auto;grid-template-areas:"checkbox user"
10
+ */var Ga=function(e){return e!=null&&(qi(e)||Ua(e)||!!e._isBuffer)};function qi(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ua(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&qi(e.slice(0,0))}(function(){var e=Pa,t=ni.utf8,n=Ga,i=ni.bin,r=function(s,o){s.constructor==String?o&&o.encoding==="binary"?s=i.stringToBytes(s):s=t.stringToBytes(s):n(s)?s=Array.prototype.slice.call(s,0):!Array.isArray(s)&&s.constructor!==Uint8Array&&(s=s.toString());for(var a=e.bytesToWords(s),u=s.length*8,l=1732584193,c=-271733879,f=-1732584194,d=271733878,h=0;h<a.length;h++)a[h]=(a[h]<<8|a[h]>>>24)&16711935|(a[h]<<24|a[h]>>>8)&4278255360;a[u>>>5]|=128<<u%32,a[(u+64>>>9<<4)+14]=u;for(var p=r._ff,v=r._gg,y=r._hh,m=r._ii,h=0;h<a.length;h+=16){var w=l,C=c,L=f,H=d;l=p(l,c,f,d,a[h+0],7,-680876936),d=p(d,l,c,f,a[h+1],12,-389564586),f=p(f,d,l,c,a[h+2],17,606105819),c=p(c,f,d,l,a[h+3],22,-1044525330),l=p(l,c,f,d,a[h+4],7,-176418897),d=p(d,l,c,f,a[h+5],12,1200080426),f=p(f,d,l,c,a[h+6],17,-1473231341),c=p(c,f,d,l,a[h+7],22,-45705983),l=p(l,c,f,d,a[h+8],7,1770035416),d=p(d,l,c,f,a[h+9],12,-1958414417),f=p(f,d,l,c,a[h+10],17,-42063),c=p(c,f,d,l,a[h+11],22,-1990404162),l=p(l,c,f,d,a[h+12],7,1804603682),d=p(d,l,c,f,a[h+13],12,-40341101),f=p(f,d,l,c,a[h+14],17,-1502002290),c=p(c,f,d,l,a[h+15],22,1236535329),l=v(l,c,f,d,a[h+1],5,-165796510),d=v(d,l,c,f,a[h+6],9,-1069501632),f=v(f,d,l,c,a[h+11],14,643717713),c=v(c,f,d,l,a[h+0],20,-373897302),l=v(l,c,f,d,a[h+5],5,-701558691),d=v(d,l,c,f,a[h+10],9,38016083),f=v(f,d,l,c,a[h+15],14,-660478335),c=v(c,f,d,l,a[h+4],20,-405537848),l=v(l,c,f,d,a[h+9],5,568446438),d=v(d,l,c,f,a[h+14],9,-1019803690),f=v(f,d,l,c,a[h+3],14,-187363961),c=v(c,f,d,l,a[h+8],20,1163531501),l=v(l,c,f,d,a[h+13],5,-1444681467),d=v(d,l,c,f,a[h+2],9,-51403784),f=v(f,d,l,c,a[h+7],14,1735328473),c=v(c,f,d,l,a[h+12],20,-1926607734),l=y(l,c,f,d,a[h+5],4,-378558),d=y(d,l,c,f,a[h+8],11,-2022574463),f=y(f,d,l,c,a[h+11],16,1839030562),c=y(c,f,d,l,a[h+14],23,-35309556),l=y(l,c,f,d,a[h+1],4,-1530992060),d=y(d,l,c,f,a[h+4],11,1272893353),f=y(f,d,l,c,a[h+7],16,-155497632),c=y(c,f,d,l,a[h+10],23,-1094730640),l=y(l,c,f,d,a[h+13],4,681279174),d=y(d,l,c,f,a[h+0],11,-358537222),f=y(f,d,l,c,a[h+3],16,-722521979),c=y(c,f,d,l,a[h+6],23,76029189),l=y(l,c,f,d,a[h+9],4,-640364487),d=y(d,l,c,f,a[h+12],11,-421815835),f=y(f,d,l,c,a[h+15],16,530742520),c=y(c,f,d,l,a[h+2],23,-995338651),l=m(l,c,f,d,a[h+0],6,-198630844),d=m(d,l,c,f,a[h+7],10,1126891415),f=m(f,d,l,c,a[h+14],15,-1416354905),c=m(c,f,d,l,a[h+5],21,-57434055),l=m(l,c,f,d,a[h+12],6,1700485571),d=m(d,l,c,f,a[h+3],10,-1894986606),f=m(f,d,l,c,a[h+10],15,-1051523),c=m(c,f,d,l,a[h+1],21,-2054922799),l=m(l,c,f,d,a[h+8],6,1873313359),d=m(d,l,c,f,a[h+15],10,-30611744),f=m(f,d,l,c,a[h+6],15,-1560198380),c=m(c,f,d,l,a[h+13],21,1309151649),l=m(l,c,f,d,a[h+4],6,-145523070),d=m(d,l,c,f,a[h+11],10,-1120210379),f=m(f,d,l,c,a[h+2],15,718787259),c=m(c,f,d,l,a[h+9],21,-343485551),l=l+w>>>0,c=c+C>>>0,f=f+L>>>0,d=d+H>>>0}return e.endian([l,c,f,d])};r._ff=function(s,o,a,u,l,c,f){var d=s+(o&a|~o&u)+(l>>>0)+f;return(d<<c|d>>>32-c)+o},r._gg=function(s,o,a,u,l,c,f){var d=s+(o&u|a&~u)+(l>>>0)+f;return(d<<c|d>>>32-c)+o},r._hh=function(s,o,a,u,l,c,f){var d=s+(o^a^u)+(l>>>0)+f;return(d<<c|d>>>32-c)+o},r._ii=function(s,o,a,u,l,c,f){var d=s+(a^(o|~u))+(l>>>0)+f;return(d<<c|d>>>32-c)+o},r._blocksize=16,r._digestsize=16,Yi.exports=function(s,o){if(s==null)throw new Error("Illegal argument "+s);var a=e.wordsToBytes(r(s,o));return o&&o.asBytes?a:o&&o.asString?i.bytesToString(a):e.bytesToHex(a)}})();var za=Yi.exports;const Va=Gt(za);function Wa(e){return[...e].reduce((t,n)=>Math.imul(31,t)+n.charCodeAt(0)|0,0)}function Ka(e){le(e,"svelte-1rap1nb",".Column.svelte-1rap1nb{height:100%;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.Column.importanceColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}.Column.statusColumn.svelte-1rap1nb{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start}}")}function Xa(e){let t,n,i;const r=e[2].default,s=yt(r,e,e[1],null);return{c(){t=T("div"),s&&s.c(),_(t,"class",n="Column "+e[0]+" svelte-1rap1nb")},m(o,a){O(o,t,a),s&&s.m(t,null),i=!0},p(o,[a]){s&&s.p&&(!i||a&2)&&wt(s,r,o,o[1],i?bt(r,o[1],a,null):xt(o[1]),null),(!i||a&1&&n!==(n="Column "+o[0]+" svelte-1rap1nb"))&&_(t,"class",n)},i(o){i||(x(s,o),i=!0)},o(o){k(s,o),i=!1},d(o){o&&A(t),s&&s.d(o)}}}function Ja(e,t,n){let{$$slots:i={},$$scope:r}=t,{className:s=""}=t;return e.$$set=o=>{"className"in o&&n(0,s=o.className),"$$scope"in o&&n(1,r=o.$$scope)},[s,r,i]}class Nn extends ie{constructor(t){super(),ne(this,t,Ja,Xa,ee,{className:0},Ka)}}var ji={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(yi,function(){var n=1e3,i=6e4,r=36e5,s="millisecond",o="second",a="minute",u="hour",l="day",c="week",f="month",d="quarter",h="year",p="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var S=["th","st","nd","rd"],E=M%100;return"["+M+(S[(E-20)%10]||S[E]||S[0])+"]"}},C=function(M,S,E){var R=String(M);return!R||R.length>=S?M:""+Array(S+1-R.length).join(E)+M},L={s:C,z:function(M){var S=-M.utcOffset(),E=Math.abs(S),R=Math.floor(E/60),N=E%60;return(S<=0?"+":"-")+C(R,2,"0")+":"+C(N,2,"0")},m:function M(S,E){if(S.date()<E.date())return-M(E,S);var R=12*(E.year()-S.year())+(E.month()-S.month()),N=S.clone().add(R,f),B=E-N<0,G=S.clone().add(R+(B?-1:1),f);return+(-(R+(E-N)/(B?N-G:G-N))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:h,w:c,d:l,D:p,h:u,m:a,s:o,ms:s,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},H="en",Z={};Z[H]=w;var fe="$isDayjsObject",te=function(M){return M instanceof xe||!(!M||!M[fe])},ce=function M(S,E,R){var N;if(!S)return H;if(typeof S=="string"){var B=S.toLowerCase();Z[B]&&(N=B),E&&(Z[B]=E,N=B);var G=S.split("-");if(!N&&G.length>1)return M(G[0])}else{var X=S.name;Z[X]=S,N=X}return!R&&N&&(H=N),N||!R&&H},oe=function(M,S){if(te(M))return M.clone();var E=typeof S=="object"?S:{};return E.date=M,E.args=arguments,new xe(E)},z=L;z.l=ce,z.i=te,z.w=function(M,S){return oe(M,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var xe=function(){function M(E){this.$L=ce(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[fe]=!0}var S=M.prototype;return S.parse=function(E){this.$d=function(R){var N=R.date,B=R.utc;if(N===null)return new Date(NaN);if(z.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var G=N.match(y);if(G){var X=G[2]-1||0,j=(G[7]||"0").substring(0,3);return B?new Date(Date.UTC(G[1],X,G[3]||1,G[4]||0,G[5]||0,G[6]||0,j)):new Date(G[1],X,G[3]||1,G[4]||0,G[5]||0,G[6]||0,j)}}return new Date(N)}(E),this.init()},S.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},S.$utils=function(){return z},S.isValid=function(){return this.$d.toString()!==v},S.isSame=function(E,R){var N=oe(E);return this.startOf(R)<=N&&N<=this.endOf(R)},S.isAfter=function(E,R){return oe(E)<this.startOf(R)},S.isBefore=function(E,R){return this.endOf(R)<oe(E)},S.$g=function(E,R,N){return z.u(E)?this[R]:this.set(N,E)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(E,R){var N=this,B=!!z.u(R)||R,G=z.p(E),X=function(Ie,pe){var Oe=z.w(N.$u?Date.UTC(N.$y,pe,Ie):new Date(N.$y,pe,Ie),N);return B?Oe:Oe.endOf(l)},j=function(Ie,pe){return z.w(N.toDate()[Ie].apply(N.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(pe)),N)},I=this.$W,Y=this.$M,ge=this.$D,Ne="set"+(this.$u?"UTC":"");switch(G){case h:return B?X(1,0):X(31,11);case f:return B?X(1,Y):X(0,Y+1);case c:var Ce=this.$locale().weekStart||0,rt=(I<Ce?I+7:I)-Ce;return X(B?ge-rt:ge+(6-rt),Y);case l:case p:return j(Ne+"Hours",0);case u:return j(Ne+"Minutes",1);case a:return j(Ne+"Seconds",2);case o:return j(Ne+"Milliseconds",3);default:return this.clone()}},S.endOf=function(E){return this.startOf(E,!1)},S.$set=function(E,R){var N,B=z.p(E),G="set"+(this.$u?"UTC":""),X=(N={},N[l]=G+"Date",N[p]=G+"Date",N[f]=G+"Month",N[h]=G+"FullYear",N[u]=G+"Hours",N[a]=G+"Minutes",N[o]=G+"Seconds",N[s]=G+"Milliseconds",N)[B],j=B===l?this.$D+(R-this.$W):R;if(B===f||B===h){var I=this.clone().set(p,1);I.$d[X](j),I.init(),this.$d=I.set(p,Math.min(this.$D,I.daysInMonth())).$d}else X&&this.$d[X](j);return this.init(),this},S.set=function(E,R){return this.clone().$set(E,R)},S.get=function(E){return this[z.p(E)]()},S.add=function(E,R){var N,B=this;E=Number(E);var G=z.p(R),X=function(Y){var ge=oe(B);return z.w(ge.date(ge.date()+Math.round(Y*E)),B)};if(G===f)return this.set(f,this.$M+E);if(G===h)return this.set(h,this.$y+E);if(G===l)return X(1);if(G===c)return X(7);var j=(N={},N[a]=i,N[u]=r,N[o]=n,N)[G]||1,I=this.$d.getTime()+E*j;return z.w(I,this)},S.subtract=function(E,R){return this.add(-1*E,R)},S.format=function(E){var R=this,N=this.$locale();if(!this.isValid())return N.invalidDate||v;var B=E||"YYYY-MM-DDTHH:mm:ssZ",G=z.z(this),X=this.$H,j=this.$m,I=this.$M,Y=N.weekdays,ge=N.months,Ne=N.meridiem,Ce=function(pe,Oe,st,Et){return pe&&(pe[Oe]||pe(R,B))||st[Oe].slice(0,Et)},rt=function(pe){return z.s(X%12||12,pe,"0")},Ie=Ne||function(pe,Oe,st){var Et=pe<12?"AM":"PM";return st?Et.toLowerCase():Et};return B.replace(m,function(pe,Oe){return Oe||function(st){switch(st){case"YY":return String(R.$y).slice(-2);case"YYYY":return z.s(R.$y,4,"0");case"M":return I+1;case"MM":return z.s(I+1,2,"0");case"MMM":return Ce(N.monthsShort,I,ge,3);case"MMMM":return Ce(ge,I);case"D":return R.$D;case"DD":return z.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return Ce(N.weekdaysMin,R.$W,Y,2);case"ddd":return Ce(N.weekdaysShort,R.$W,Y,3);case"dddd":return Y[R.$W];case"H":return String(X);case"HH":return z.s(X,2,"0");case"h":return rt(1);case"hh":return rt(2);case"a":return Ie(X,j,!0);case"A":return Ie(X,j,!1);case"m":return String(j);case"mm":return z.s(j,2,"0");case"s":return String(R.$s);case"ss":return z.s(R.$s,2,"0");case"SSS":return z.s(R.$ms,3,"0");case"Z":return G}return null}(pe)||G.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(E,R,N){var B,G=this,X=z.p(R),j=oe(E),I=(j.utcOffset()-this.utcOffset())*i,Y=this-j,ge=function(){return z.m(G,j)};switch(X){case h:B=ge()/12;break;case f:B=ge();break;case d:B=ge()/3;break;case c:B=(Y-I)/6048e5;break;case l:B=(Y-I)/864e5;break;case u:B=Y/r;break;case a:B=Y/i;break;case o:B=Y/n;break;default:B=Y}return N?B:z.a(B)},S.daysInMonth=function(){return this.endOf(f).$D},S.$locale=function(){return Z[this.$L]},S.locale=function(E,R){if(!E)return this.$L;var N=this.clone(),B=ce(E,R,!0);return B&&(N.$L=B),N},S.clone=function(){return z.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},M}(),Ee=xe.prototype;return oe.prototype=Ee,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",l],["$M",f],["$y",h],["$D",p]].forEach(function(M){Ee[M[1]]=function(S){return this.$g(S,M[0],M[1])}}),oe.extend=function(M,S){return M.$i||(M(S,xe,oe),M.$i=!0),oe},oe.locale=ce,oe.isDayjs=te,oe.unix=function(M){return oe(1e3*M)},oe.en=Z[H],oe.Ls=Z,oe.p={},oe})})(ji);var Za=ji.exports;const ut=Gt(Za);var er={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(yi,function(){return function(n,i,r){n=n||{};var s=i.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(l,c,f,d){return s.fromToBase(l,c,f,d)}r.en.relativeTime=o,s.fromToBase=function(l,c,f,d,h){for(var p,v,y,m=f.$locale().relativeTime||o,w=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=w.length,L=0;L<C;L+=1){var H=w[L];H.d&&(p=d?r(l).diff(f,H.d,!0):f.diff(l,H.d,!0));var Z=(n.rounding||Math.round)(Math.abs(p));if(y=p>0,Z<=H.r||!H.r){Z<=1&&L>0&&(H=w[L-1]);var fe=m[H.l];h&&(Z=h(""+Z)),v=typeof fe=="string"?fe.replace("%d",Z):fe(Z,c,H.l,y);break}}if(c)return v;var te=y?m.future:m.past;return typeof te=="function"?te(v):te.replace("%s",v)},s.to=function(l,c){return a(l,c,this,!0)},s.from=function(l,c){return a(l,c,this)};var u=function(l){return l.$u?r.utc():r()};s.toNow=function(l){return this.to(u(this),l)},s.fromNow=function(l){return this.from(u(this),l)}}})})(er);var Ya=er.exports;const Qa=Gt(Ya);ut.extend(Qa);function qa(e){let t,n,i=[e[3],{title:e[2]},{datetime:e[1]}],r={};for(let s=0;s<i.length;s+=1)r=gt(r,i[s]);return{c(){t=T("time"),n=q(e[0]),On(t,r)},m(s,o){O(s,t,o),b(t,n)},p(s,[o]){o&1&&pr(n,s[0],r.contenteditable),On(t,r=vi(i,[o&8&&s[3],o&4&&{title:s[2]},o&2&&{datetime:s[1]}]))},i:K,o:K,d(s){s&&A(t)}}}function ja(e,t,n){let i;const r=["timestamp","format","relative","live","formatted"];let s=An(t,r),{timestamp:o=new Date().toISOString()}=t,{format:a="MMM DD, YYYY"}=t,{relative:u=!1}=t,{live:l=!1}=t,{formatted:c=""}=t,f;const d=60*1e3;return Pt(()=>()=>clearInterval(f)),e.$$set=h=>{t=gt(gt({},t),lr(h)),n(3,s=An(t,r)),"timestamp"in h&&n(1,o=h.timestamp),"format"in h&&n(4,a=h.format),"relative"in h&&n(5,u=h.relative),"live"in h&&n(6,l=h.live),"formatted"in h&&n(0,c=h.formatted)},e.$$.update=()=>{e.$$.dirty&98&&u&&l!==!1&&(f=setInterval(()=>{n(0,c=ut(o).from())},Math.abs(typeof l=="number"?l:d))),e.$$.dirty&50&&n(0,c=u?ut(o).from():ut(o).format(a)),e.$$.dirty&50&&n(2,i=u?ut(o).format(a):void 0)},[c,o,i,s,a,u,l]}class tr extends ie{constructor(t){super(),ne(this,t,ja,qa,ee,{timestamp:1,format:4,relative:5,live:6,formatted:0})}}function el(e){le(e,"svelte-1xxfpqg",`.Tag.svelte-1xxfpqg{box-sizing:border-box;display:inline-flex;color:var(--main-textcolor);align-items:center;justify-content:center;font-size:13px;font-weight:bold;line-height:20px;padding:2px 6px;margin-right:6px;margin-top:2px;border-radius:69px}.empty.svelte-1xxfpqg{display:none}.Tag.svelte-1xxfpqg:before{font-family:"la-icon-font"}.SLA.svelte-1xxfpqg{border:1px solid var(--main-lighter-textcolor);border-radius:4px;color:var(--main-lighter-textcolor)
11
+ }@media(min-width: 768px){.Tag.svelte-1xxfpqg{font-size:12px}}`)}function tl(e){let t,n;return{c(){t=T("span"),n=q(e[1]),_(t,"class","text")},m(i,r){O(i,t,r),b(t,n)},p(i,r){r&2&&se(n,i[1])},i:K,o:K,d(i){i&&A(t)}}}function nl(e){let t,n,i,r,s;const o=[rl,il],a=[];function u(l,c){return c&2&&(t=null),t==null&&(t=!isNaN(l[1].getTime())),t?0:1}return n=u(e,-1),i=a[n]=o[n](e),{c(){i.c(),r=Tt()},m(l,c){a[n].m(l,c),O(l,r,c),s=!0},p(l,c){let f=n;n=u(l,c),n===f?a[n].p(l,c):(ye(),k(a[f],1,1,()=>{a[f]=null}),be(),i=a[n],i?i.p(l,c):(i=a[n]=o[n](l),i.c()),x(i,1),i.m(r.parentNode,r))},i(l){s||(x(i),s=!0)},o(l){k(i),s=!1},d(l){l&&A(r),a[n].d(l)}}}function il(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=T("span"),i=q(n),_(t,"class","invalid")},m(r,s){O(r,t,s),b(t,i)},p(r,s){s&16&&n!==(n=r[4]("Invalid data")+"")&&se(i,n)},i:K,o:K,d(r){r&&A(t)}}}function rl(e){let t,n;return t=new tr({props:{style:e[3],timestamp:e[1],format:"",relative:!0}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&8&&(s.style=i[3]),r&2&&(s.timestamp=i[1]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function sl(e){let t,n,i,r,s,o;const a=e[6].default,u=yt(a,e,e[5],null),l=[nl,tl],c=[];function f(d,h){return d[1]instanceof Date?0:1}return i=f(e),r=c[i]=l[i](e),{c(){t=T("div"),u&&u.c(),n=U(),r.c(),_(t,"class",s="Tag "+e[0]+" svelte-1xxfpqg"),_(t,"style",e[2])},m(d,h){O(d,t,h),u&&u.m(t,null),b(t,n),c[i].m(t,null),o=!0},p(d,[h]){u&&u.p&&(!o||h&32)&&wt(u,a,d,d[5],o?bt(a,d[5],h,null):xt(d[5]),null);let p=i;i=f(d),i===p?c[i].p(d,h):(ye(),k(c[p],1,1,()=>{c[p]=null}),be(),r=c[i],r?r.p(d,h):(r=c[i]=l[i](d),r.c()),x(r,1),r.m(t,null)),(!o||h&1&&s!==(s="Tag "+d[0]+" svelte-1xxfpqg"))&&_(t,"class",s),(!o||h&4)&&_(t,"style",d[2])},i(d){o||(x(u,d),x(r),o=!0)},o(d){k(u,d),k(r),o=!1},d(d){d&&A(t),u&&u.d(d),c[i].d()}}}function ol(e,t,n){let i;V(e,we,c=>n(4,i=c));let{$$slots:r={},$$scope:s}=t,{text:o}=t,{className:a=""}=t,{style:u=""}=t,{timeStyle:l=""}=t;return e.$$set=c=>{"text"in c&&n(1,o=c.text),"className"in c&&n(0,a=c.className),"style"in c&&n(2,u=c.style),"timeStyle"in c&&n(3,l=c.timeStyle),"$$scope"in c&&n(5,s=c.$$scope)},e.$$.update=()=>{e.$$.dirty&3&&o===""&&n(0,a="empty")},[a,o,u,l,i,s,r]}class Xt extends ie{constructor(t){super(),ne(this,t,ol,sl,ee,{text:1,className:0,style:2,timeStyle:3},el)}}function al(e){le(e,"svelte-1ify73x","div.Tag.IconTag{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:4px}.IconTag .Icon{display:flex;align-items:center;justify-content:center;font-size:16px;width:16px;height:16px}div.Tag.IconTag.Department{background-color:var(--department-bg-color);color:white}")}function ll(e){let t,n;return t=new Le({props:{iconLaClassName:e[2]}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&4&&(s.iconLaClassName=i[2]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function ul(e){let t,n;return t=new Xt({props:{text:e[0],className:e[3],style:e[1],$$slots:{default:[ll]},$$scope:{ctx:e}}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.text=i[0]),r&2&&(s.style=i[1]),r&36&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function cl(e,t,n){let{text:i}=t,{className:r=""}=t,{style:s=""}=t,{iconLaClassName:o}=t,a=`IconTag ${r}`;return e.$$set=u=>{"text"in u&&n(0,i=u.text),"className"in u&&n(4,r=u.className),"style"in u&&n(1,s=u.style),"iconLaClassName"in u&&n(2,o=u.iconLaClassName)},[i,s,o,a,r]}class Jt extends ie{constructor(t){super(),ne(this,t,cl,ul,ee,{text:0,className:4,style:1,iconLaClassName:2},al)}}function fl(e){le(e,"svelte-1wen6ck",".Column.userColumn{display:flex;align-items:center}.Tag.CompanyTag{background-color:var(--department-bg-color);color:var(--main-textcolor)}div.Tag.NoCompanyTag{color:var(--main-lighter-textcolor);border:1px solid var(--main-lighter-textcolor)}.avatar.svelte-1wen6ck{display:none}.companyTag.svelte-1wen6ck{display:none}.name.svelte-1wen6ck{font-size:14px;line-height:20px;font-weight:bold;padding-right:8px;margin-right:6px;position:relative}.name.svelte-1wen6ck::after{content:'';display:block;height:14px;width:1px;background-color:var(--main-textcolor);position:absolute;right:0;top:15%}.no.svelte-1wen6ck{font-weight:400;color:var(--main-lighter-textcolor)}.email.svelte-1wen6ck{font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.texts.svelte-1wen6ck{display:flex;flex-direction:row;justify-content:flex-start;overflow:hidden}@media(min-width: 900px){.avatar.svelte-1wen6ck{display:flex;align-items:center;justify-content:center;margin:0 10px;width:40px;height:40px}.name.svelte-1wen6ck{padding:0;border:none;font-size:13px}.name.svelte-1wen6ck::after{display:none}.email.svelte-1wen6ck{font-size:13px;padding:0}.companyTag.svelte-1wen6ck{display:flex}.texts.svelte-1wen6ck{display:flex;flex-direction:column;justify-content:space-around}}")}function ii(e){let t,n;const i=[e[2]];let r={};for(let s=0;s<i.length;s+=1)r=gt(r,i[s]);return t=new $a({props:r}),{c(){P(t.$$.fragment)},m(s,o){F(t,s,o),n=!0},p(s,o){const a=o&4?vi(i,[Tr(s[2])]):{};t.$set(a)},i(s){n||(x(t.$$.fragment,s),n=!0)},o(s){k(t.$$.fragment,s),n=!1},d(s){$(t,s)}}}function dl(e){let t,n=e[2].name,i,r,s,o=(e[3]!==void 0?e[3]:e[4]("No name"))+"",a,u,l,c,f=(e[0].emails.length!==0?e[0].emails[0]:e[4]("No email"))+"",d,h,p,v,y,m,w=ii(e);return y=new Jt({props:{text:e[0].company==="Y"?"Company":e[4]("No Company"),className:(e[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag",iconLaClassName:"la-companies"}}),{c(){t=T("div"),w.c(),i=U(),r=T("div"),s=T("div"),a=q(o),l=U(),c=T("div"),d=q(f),p=U(),v=T("div"),P(y.$$.fragment),_(t,"class","avatar svelte-1wen6ck"),_(s,"class",u=ue(e[3]?"name":"no name")+" svelte-1wen6ck"),_(c,"class",h=ue(e[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"),_(v,"class","companyTag svelte-1wen6ck"),_(r,"class","texts svelte-1wen6ck")},m(C,L){O(C,t,L),w.m(t,null),O(C,i,L),O(C,r,L),b(r,s),b(s,a),b(r,l),b(r,c),b(c,d),b(r,p),b(r,v),F(y,v,null),m=!0},p(C,L){L&4&&ee(n,n=C[2].name)?(ye(),k(w,1,1,K),be(),w=ii(C),w.c(),x(w,1),w.m(t,null)):w.p(C,L),(!m||L&24)&&o!==(o=(C[3]!==void 0?C[3]:C[4]("No name"))+"")&&se(a,o),(!m||L&8&&u!==(u=ue(C[3]?"name":"no name")+" svelte-1wen6ck"))&&_(s,"class",u),(!m||L&17)&&f!==(f=(C[0].emails.length!==0?C[0].emails[0]:C[4]("No email"))+"")&&se(d,f),(!m||L&1&&h!==(h=ue(C[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"))&&_(c,"class",h);const H={};L&17&&(H.text=C[0].company==="Y"?"Company":C[4]("No Company")),L&1&&(H.className=(C[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag"),y.$set(H)},i(C){m||(x(w),x(y.$$.fragment,C),m=!0)},o(C){k(w),k(y.$$.fragment,C),m=!1},d(C){C&&(A(t),A(i),A(r)),w.d(C),$(y)}}}function hl(e){let t,n;return t=new Nn({props:{className:e[1],$$slots:{default:[dl]},$$scope:{ctx:e}}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const s={};r&2&&(s.className=i[1]),r&285&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function gl(e,t,n){if(!e)return(n[0]+n[1]).toUpperCase();let i=e[0];return t&&(i+=t[0]),i}function ml(e,t,n){let i,r,s;V(e,we,f=>n(4,s=f));let{row:o}=t,{className:a="userColumn"}=t;function u(f,d,h){if(!f)return"";let p=f+" "+d;return p.trim()||(p=h),p}function l(f,d){let h=f;return h||(h="https://www.gravatar.com/avatar/"+Va(d[0]??"")+"?s=200&d=404"),h}function c(f,d,h,p){let v;p?v=Wa(u(f,d,p)+h):v=Math.floor(Math.random()*16777215);let y=(v&16711680)>>16,m=(v&65280)>>8,w=v&255;return y+m+w<150&&(y=150),y+m+w>400&&(y=0),`rgb(${y},${m},${w})`}return e.$$set=f=>{"row"in f&&n(0,o=f.row),"className"in f&&n(1,a=f.className)},e.$$.update=()=>{e.$$.dirty&1&&n(3,i=o.name),e.$$.dirty&1&&n(2,r={bgColor:c(o.firstname,o.lastname,o.emails,o.systemName),name:u(o.firstname,o.lastname,o.systemName),src:l(o.avatarUrl,o.emails),initials:gl(o.firstname,o.lastname,o.systemName)})},[o,a,r,i,s]}class pl extends ie{constructor(t){super(),ne(this,t,ml,hl,ee,{row:0,className:1},fl)}}function vl(e){le(e,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function _l(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=T("span"),i=q(n),_(t,"class","invalid svelte-hsbbji")},m(r,s){O(r,t,s),b(t,i)},p(r,s){s&16&&n!==(n=r[4]("Invalid data")+"")&&se(i,n)},i:K,o:K,d(r){r&&A(t)}}}function yl(e){let t,n;return t=new tr({props:{style:e[2],timestamp:e[0],format:e[1],relative:e[3]}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&4&&(s.style=i[2]),r&1&&(s.timestamp=i[0]),r&2&&(s.format=i[1]),r&8&&(s.relative=i[3]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function bl(e){let t,n,i,r,s;const o=[yl,_l],a=[];function u(l,c){return c&1&&(n=null),n==null&&(n=l[0]instanceof Date&&!isNaN(l[0].getTime())),n?0:1}return i=u(e,-1),r=a[i]=o[i](e),{c(){t=T("div"),r.c(),_(t,"class","Date svelte-hsbbji")},m(l,c){O(l,t,c),a[i].m(t,null),s=!0},p(l,[c]){let f=i;i=u(l,c),i===f?a[i].p(l,c):(ye(),k(a[f],1,1,()=>{a[f]=null}),be(),r=a[i],r?r.p(l,c):(r=a[i]=o[i](l),r.c()),x(r,1),r.m(t,null))},i(l){s||(x(r),s=!0)},o(l){k(r),s=!1},d(l){l&&A(t),a[i].d()}}}function wl(e,t,n){let i;V(e,we,u=>n(4,i=u));let{data:r}=t,{format:s=aa()}=t,{style:o=""}=t,{relative:a=!1}=t;return e.$$set=u=>{"data"in u&&n(0,r=u.data),"format"in u&&n(1,s=u.format),"style"in u&&n(2,o=u.style),"relative"in u&&n(3,a=u.relative)},[r,s,o,a,i]}class ri extends ie{constructor(t){super(),ne(this,t,wl,bl,ee,{data:0,format:1,style:2,relative:3},vl)}}function xl(e){le(e,"svelte-1q9wgt3",".IconWrapper.svelte-1q9wgt3{display:flex;justify-content:center;align-items:center;margin:4px 6px}.CombinedTag.svelte-1q9wgt3{display:inline-flex;flex-direction:row;border-radius:4px;margin-top:2px;margin-right:6px;padding-right:0}.Pending.svelte-1q9wgt3{background-color:var(--ok-color)}.Overdue.svelte-1q9wgt3{background-color:var(--notif-error-color)}")}function Tl(e){let t,n,i,r;n=new Le({props:{iconLaClassName:e[2]}});const s=e[7].default,o=yt(s,e,e[6],null);return{c(){t=T("div"),P(n.$$.fragment),i=U(),o&&o.c(),_(t,"class","IconWrapper svelte-1q9wgt3")},m(a,u){O(a,t,u),F(n,t,null),O(a,i,u),o&&o.m(a,u),r=!0},p(a,u){const l={};u&4&&(l.iconLaClassName=a[2]),n.$set(l),o&&o.p&&(!r||u&64)&&wt(o,s,a,a[6],r?bt(s,a[6],u,null):xt(a[6]),null)},i(a){r||(x(n.$$.fragment,a),x(o,a),r=!0)},o(a){k(n.$$.fragment,a),k(o,a),r=!1},d(a){a&&(A(t),A(i)),$(n),o&&o.d(a)}}}function kl(e){let t,n;return t=new Jt({props:{style:e[4],text:e[0],iconLaClassName:e[2],className:"Combined"}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&16&&(s.style=i[4]),r&1&&(s.text=i[0]),r&4&&(s.iconLaClassName=i[2]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function El(e){let t,n,i,r,s,o,a;const u=[kl,Tl],l=[];function c(f,d){return f[0]!==""?0:1}return n=c(e),i=l[n]=u[n](e),s=new Xt({props:{style:e[5],text:e[1]}}),{c(){t=T("div"),i.c(),r=U(),P(s.$$.fragment),_(t,"class",o=ue(`CombinedTag ${e[3]}`)+" svelte-1q9wgt3")},m(f,d){O(f,t,d),l[n].m(t,null),b(t,r),F(s,t,null),a=!0},p(f,[d]){let h=n;n=c(f),n===h?l[n].p(f,d):(ye(),k(l[h],1,1,()=>{l[h]=null}),be(),i=l[n],i?i.p(f,d):(i=l[n]=u[n](f),i.c()),x(i,1),i.m(t,r));const p={};d&32&&(p.style=f[5]),d&2&&(p.text=f[1]),s.$set(p),(!a||d&8&&o!==(o=ue(`CombinedTag ${f[3]}`)+" svelte-1q9wgt3"))&&_(t,"class",o)},i(f){a||(x(i),x(s.$$.fragment,f),a=!0)},o(f){k(i),k(s.$$.fragment,f),a=!1},d(f){f&&A(t),l[n].d(),$(s)}}}function Cl(e,t,n){let{$$slots:i={},$$scope:r}=t,{iconText:s=""}=t,{tagText:o}=t,{iconLaClassName:a}=t,{className:u}=t,{iconTagStyles:l}=t,{tagStyles:c}=t;return e.$$set=f=>{"iconText"in f&&n(0,s=f.iconText),"tagText"in f&&n(1,o=f.tagText),"iconLaClassName"in f&&n(2,a=f.iconLaClassName),"className"in f&&n(3,u=f.className),"iconTagStyles"in f&&n(4,l=f.iconTagStyles),"tagStyles"in f&&n(5,c=f.tagStyles),"$$scope"in f&&n(6,r=f.$$scope)},[s,o,a,u,l,c,r,i]}class nr extends ie{constructor(t){super(),ne(this,t,Cl,El,ee,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},xl)}}function Sl(e){let t,n;return t=new Xt({props:{text:e[4]("No SLA"),className:"SLA"}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&16&&(s.text=i[4]("No SLA")),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Nl(e){let t,n;return t=new nr({props:{iconText:e[1],iconLaClassName:e[3].icon,tagText:e[0],className:e[3].className,iconTagStyles:"color: white",tagStyles:e[3].tagStyles}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&2&&(s.iconText=i[1]),r&8&&(s.iconLaClassName=i[3].icon),r&1&&(s.tagText=i[0]),r&8&&(s.className=i[3].className),r&8&&(s.tagStyles=i[3].tagStyles),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ll(e){let t,n,i,r;const s=[Nl,Sl],o=[];function a(u,l){return u[2]?0:1}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),i=Tt()},m(u,l){o[t].m(u,l),O(u,i,l),r=!0},p(u,[l]){let c=t;t=a(u),t===c?o[t].p(u,l):(ye(),k(o[c],1,1,()=>{o[c]=null}),be(),n=o[t],n?n.p(u,l):(n=o[t]=s[t](u),n.c()),x(n,1),n.m(i.parentNode,i))},i(u){r||(x(n),r=!0)},o(u){k(n),r=!1},d(u){u&&A(i),o[t].d(u)}}}function Al(e){return!e||!(e instanceof Date)||isNaN(e)?{className:"SLATag",icon:"",tagStyles:""}:e>new Date?{className:"SLATag Pending",icon:"la-sla",tagStyles:"color: var(--ok-color); background-color: #D9FAE0; border-radius: 4px; border: 1px solid var(--ok-color); margin: 0"}:{className:"SLATag Overdue",icon:"la-sla-compliance",tagStyles:"color: var(--notif-error-color); background-color: #FEEAE8; border-radius: 4px; border: 1px solid var(--notif-error-color); margin: 0"}}function Ol(e,t,n){let i,r,s;V(e,we,u=>n(4,s=u));let{tagText:o=s("First answer")}=t,{due:a}=t;return e.$$set=u=>{"tagText"in u&&n(0,o=u.tagText),"due"in u&&n(1,a=u.due)},e.$$.update=()=>{e.$$.dirty&2&&n(3,i=Al(a)),e.$$.dirty&2&&n(2,r=a instanceof Date&&!isNaN(a))},[o,a,r,i,s]}class Hl extends ie{constructor(t){super(),ne(this,t,Ol,Ll,ee,{tagText:0,due:1})}}function Rl(e){le(e,"svelte-eafxx5",".TicketId.svelte-eafxx5{font-weight:bold;font-size:14px;line-height:20px;margin-right:14px}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:14px;line-height:20px}.Communication.svelte-eafxx5{font-size:14px;line-height:20px;display:inline-flex;align-items:center;justify-content:center;margin-right:6px}.ticketDetails.svelte-eafxx5{display:flex;align-items:center;margin-top:6px;margin-bottom:2px}@media(min-width: 900px){.Changed.svelte-eafxx5{display:none}.Created.svelte-eafxx5,.Changed.svelte-eafxx5{font-size:13px}.TicketId.svelte-eafxx5{font-size:13px}.ticketDetails.svelte-eafxx5{margin:0}.Communication.svelte-eafxx5{font-size:13px}}")}function Dl(e){let t,n,i=e[1].code+"",r,s,o,a,u,l,c,f=e[1].messagegroupsIn+"",d,h,p,v,y,m,w=e[1].messagegroupsOut+"",C,L,H,Z,fe=e[2]("Created")+"",te,ce,oe,z,xe,Ee,M,S=e[2]("Changed")+"",E,R,N,B,G,X,j;return u=new Le({props:{iconLaClassName:"la-incoming"}}),v=new Le({props:{iconLaClassName:"la-outgoing"}}),z=new ri({props:{data:Lt(e[1].datecreated)}}),B=new ri({props:{data:Lt(e[1].datechanged)}}),X=new Hl({props:{tagText:"",due:e[1].datedue}}),{c(){t=T("div"),n=T("span"),r=q(i),s=U(),o=T("div"),a=T("div"),P(u.$$.fragment),l=U(),c=T("span"),d=q(f),h=U(),p=T("div"),P(v.$$.fragment),y=U(),m=T("span"),C=q(w),L=U(),H=T("div"),Z=T("span"),te=q(fe),ce=q(":"),oe=U(),P(z.$$.fragment),xe=U(),Ee=T("div"),M=T("span"),E=q(S),R=q(":"),N=U(),P(B.$$.fragment),G=U(),P(X.$$.fragment),_(n,"class","TicketId svelte-eafxx5"),_(a,"class","Communication incomingMessages svelte-eafxx5"),_(p,"class","Communication outgoingMessages svelte-eafxx5"),_(o,"class","arrows"),_(t,"class","ticketDetails svelte-eafxx5"),_(H,"class","Created svelte-eafxx5"),_(Ee,"class","Changed svelte-eafxx5")},m(I,Y){O(I,t,Y),b(t,n),b(n,r),b(t,s),b(t,o),b(o,a),F(u,a,null),b(a,l),b(a,c),b(c,d),b(o,h),b(o,p),F(v,p,null),b(p,y),b(p,m),b(m,C),O(I,L,Y),O(I,H,Y),b(H,Z),b(Z,te),b(Z,ce),b(H,oe),F(z,H,null),O(I,xe,Y),O(I,Ee,Y),b(Ee,M),b(M,E),b(M,R),b(Ee,N),F(B,Ee,null),O(I,G,Y),F(X,I,Y),j=!0},p(I,Y){(!j||Y&2)&&i!==(i=I[1].code+"")&&se(r,i),(!j||Y&2)&&f!==(f=I[1].messagegroupsIn+"")&&se(d,f),(!j||Y&2)&&w!==(w=I[1].messagegroupsOut+"")&&se(C,w),(!j||Y&4)&&fe!==(fe=I[2]("Created")+"")&&se(te,fe);const ge={};Y&2&&(ge.data=Lt(I[1].datecreated)),z.$set(ge),(!j||Y&4)&&S!==(S=I[2]("Changed")+"")&&se(E,S);const Ne={};Y&2&&(Ne.data=Lt(I[1].datechanged)),B.$set(Ne);const Ce={};Y&2&&(Ce.due=I[1].datedue),X.$set(Ce)},i(I){j||(x(u.$$.fragment,I),x(v.$$.fragment,I),x(z.$$.fragment,I),x(B.$$.fragment,I),x(X.$$.fragment,I),j=!0)},o(I){k(u.$$.fragment,I),k(v.$$.fragment,I),k(z.$$.fragment,I),k(B.$$.fragment,I),k(X.$$.fragment,I),j=!1},d(I){I&&(A(t),A(L),A(H),A(xe),A(Ee),A(G)),$(u),$(v),$(z),$(B),$(X,I)}}}function Il(e){let t,n;return t=new Nn({props:{className:e[0],$$slots:{default:[Dl]},$$scope:{ctx:e}}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.className=i[0]),r&14&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ml(e,t,n){let i;V(e,we,o=>n(2,i=o));let{className:r="importanceColumn"}=t,{row:s}=t;return e.$$set=o=>{"className"in o&&n(0,r=o.className),"row"in o&&n(1,s=o.row)},[r,s,i]}class Bl extends ie{constructor(t){super(),ne(this,t,Ml,Il,ee,{className:0,row:1},Rl)}}function Fl(e){le(e,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function $l(e){let t,n;return t=new Xt({props:{style:"color: #"+e[2]+"; background: #"+e[1]+"99; border: 1px solid #"+e[1],text:e[0],className:"TicketTag"}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const s={};r&6&&(s.style="color: #"+i[2]+"; background: #"+i[1]+"99; border: 1px solid #"+i[1]),r&1&&(s.text=i[0]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Pl(e,t,n){let i,r,s,o;V(e,Ki,u=>n(4,o=u));let{tagId:a}=t;return console.log(o[a]),e.$$set=u=>{"tagId"in u&&n(3,a=u.tagId)},e.$$.update=()=>{var u,l,c;e.$$.dirty&24&&n(2,i=((u=o[a])==null?void 0:u.color)??0),e.$$.dirty&24&&n(1,r=((l=o[a])==null?void 0:l.backgroundcolor)??0),e.$$.dirty&24&&n(0,s=((c=o[a])==null?void 0:c.name)??"")},[s,r,i,a,o]}class Gl extends ie{constructor(t){super(),ne(this,t,Pl,$l,ee,{tagId:3},Fl)}}function si(e,t,n){const i=e.slice();return i[1]=t[n],i}function oi(e){let t,n;return t=new Gl({props:{tagId:e[1]}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.tagId=i[1]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ul(e){let t,n,i=Je(e[0]),r=[];for(let o=0;o<i.length;o+=1)r[o]=oi(si(e,i,o));const s=o=>k(r[o],1,1,()=>{r[o]=null});return{c(){t=T("span");for(let o=0;o<r.length;o+=1)r[o].c()},m(o,a){O(o,t,a);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(t,null);n=!0},p(o,[a]){if(a&1){i=Je(o[0]);let u;for(u=0;u<i.length;u+=1){const l=si(o,i,u);r[u]?(r[u].p(l,a),x(r[u],1)):(r[u]=oi(l),r[u].c(),x(r[u],1),r[u].m(t,null))}for(ye(),u=i.length;u<r.length;u+=1)s(u);be()}},i(o){if(!n){for(let a=0;a<i.length;a+=1)x(r[a]);n=!0}},o(o){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)k(r[a]);n=!1},d(o){o&&A(t),yn(r,o)}}}function zl(e,t,n){let{tags:i}=t;return e.$$set=r=>{"tags"in r&&n(0,i=r.tags)},[i]}class Vl extends ie{constructor(t){super(),ne(this,t,zl,Ul,ee,{tags:0})}}function Wl(e){le(e,"svelte-q9af99",".Tag.IconTag.StatusTag .text{display:none}@media(min-width: 768px){.Tag.IconTag.StatusTag .text{display:inline}}")}function Kl(e){let t,n;return t=new Jt({props:{className:"StatusTag "+e[1][e[0]].text,style:"color: "+He(e[0]).text+"; background-color: "+He(e[0]).bg+"; border-color: "+He(e[0]).border,text:e[1][e[0]].text,iconLaClassName:e[1][e[0]].icon}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const s={};r&1&&(s.className="StatusTag "+i[1][i[0]].text),r&1&&(s.style="color: "+He(i[0]).text+"; background-color: "+He(i[0]).bg+"; border-color: "+He(i[0]).border),r&1&&(s.text=i[1][i[0]].text),r&1&&(s.iconLaClassName=i[1][i[0]].icon),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Xl(e,t,n){let i;V(e,we,o=>n(2,i=o));let{status:r}=t;const s={A:{text:i("Answered"),icon:"la-ticket-answered"},T:{text:i("Chatting"),icon:"la-chatting"},P:{text:i("Calling"),icon:"la-call"},X:{text:i("Deleted"),icon:"la-ticket-deleted"},B:{text:i("Spam"),icon:"la-spam"},I:{text:i("Init"),icon:""},R:{text:i("Resolved"),icon:"la-ticket-resolved"},N:{text:i("New"),icon:"la-ticket-new"},C:{text:i("Open"),icon:"la-ticket-open"},W:{text:i("Postponed"),icon:"la-ticket-postponed"}};return e.$$set=o=>{"status"in o&&n(0,r=o.status)},[r,s]}class Jl extends ie{constructor(t){super(),ne(this,t,Xl,Kl,ee,{status:0},Wl)}}function Zl(e){let t,n;return t=new Jt({props:{className:rr,text:e[0].departmentname,iconLaClassName:ir}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.text=i[0].departmentname),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Yl(e){let t,n;return t=new nr({props:{iconText:e[0].departmentname,tagText:e[0].agentname,iconLaClassName:ir,className:rr,iconTagStyles:e[1],tagStyles:e[2]}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.iconText=i[0].departmentname),r&1&&(s.tagText=i[0].agentname),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ql(e){let t,n,i,r,s;const o=[Yl,Zl],a=[];function u(l,c){return c&1&&(t=null),t==null&&(t=l[0].agentname.trim()!==""),t?0:1}return n=u(e,-1),i=a[n]=o[n](e),{c(){i.c(),r=Tt()},m(l,c){a[n].m(l,c),O(l,r,c),s=!0},p(l,[c]){let f=n;n=u(l,c),n===f?a[n].p(l,c):(ye(),k(a[f],1,1,()=>{a[f]=null}),be(),i=a[n],i?i.p(l,c):(i=a[n]=o[n](l),i.c()),x(i,1),i.m(r.parentNode,r))},i(l){s||(x(i),s=!0)},o(l){k(i),s=!1},d(l){l&&A(r),a[n].d(l)}}}const ir="la-department",rr="Department";function ql(e,t,n){let{data:i}=t,r="color: white; background-color: var(--department-bg-color); margin-top: 0;",s="color: var(--tag-department-agent-text); background-color: var(--tag-department-agent-bg); border-radius: 4px; margin: 0";return e.$$set=o=>{"data"in o&&n(0,i=o.data)},[i,r,s]}class jl extends ie{constructor(t){super(),ne(this,t,ql,Ql,ee,{data:0})}}function eu(e){le(e,"svelte-ccmpo7",`.subject.svelte-ccmpo7{font-size:14px;font-weight:bold;line-height:20px;margin:0}.preview.svelte-ccmpo7{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px;margin:0 0 4px;line-height:20px;font-size:14px}.no-text.svelte-ccmpo7{color:var(--main-lighter-textcolor)}.additional.svelte-ccmpo7{display:flex}.CombinedTag.Department{background-color:var(--department-bg-color)}@media(min-width: 768px){.subject.svelte-ccmpo7{font-size:13px
12
+ }.preview.svelte-ccmpo7{font-size:13px;margin:0}}`)}function tu(e){let t,n=e[0].subject+"",i,r,s,o=(e[0].preview?e[0].preview:e[2]("No text for preview"))+"",a,u,l,c,f,d,h,p,v,y;return f=new Jl({props:{status:e[0].status}}),h=new jl({props:{data:e[0]}}),v=new Vl({props:{tags:e[0].tags}}),{c(){t=T("h1"),i=q(n),r=U(),s=T("p"),a=q(o),l=U(),c=T("div"),P(f.$$.fragment),d=U(),P(h.$$.fragment),p=U(),P(v.$$.fragment),_(t,"class","subject svelte-ccmpo7"),_(s,"class",u=ue(e[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"),_(c,"class","additional svelte-ccmpo7")},m(m,w){O(m,t,w),b(t,i),O(m,r,w),O(m,s,w),b(s,a),O(m,l,w),O(m,c,w),F(f,c,null),b(c,d),F(h,c,null),b(c,p),F(v,c,null),y=!0},p(m,w){(!y||w&1)&&n!==(n=m[0].subject+"")&&se(i,n),(!y||w&5)&&o!==(o=(m[0].preview?m[0].preview:m[2]("No text for preview"))+"")&&se(a,o),(!y||w&1&&u!==(u=ue(m[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"))&&_(s,"class",u);const C={};w&1&&(C.status=m[0].status),f.$set(C);const L={};w&1&&(L.data=m[0]),h.$set(L);const H={};w&1&&(H.tags=m[0].tags),v.$set(H)},i(m){y||(x(f.$$.fragment,m),x(h.$$.fragment,m),x(v.$$.fragment,m),y=!0)},o(m){k(f.$$.fragment,m),k(h.$$.fragment,m),k(v.$$.fragment,m),y=!1},d(m){m&&(A(t),A(r),A(s),A(l),A(c)),$(f),$(h),$(v)}}}function nu(e){let t,n;return t=new Nn({props:{className:e[1],$$slots:{default:[tu]},$$scope:{ctx:e}}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const s={};r&2&&(s.className=i[1]),r&13&&(s.$$scope={dirty:r,ctx:i}),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function iu(e,t,n){let i;V(e,we,o=>n(2,i=o));let{row:r}=t,{className:s="statusColumn"}=t;return e.$$set=o=>{"row"in o&&n(0,r=o.row),"className"in o&&n(1,s=o.className)},[r,s,i]}class ru extends ie{constructor(t){super(),ne(this,t,iu,nu,ee,{row:0,className:1},eu)}}function su(e){le(e,"svelte-d34xx3",`.Body.svelte-d34xx3.svelte-d34xx3{padding:0px 20px}.Row.svelte-d34xx3.svelte-d34xx3{display:grid;grid-template-columns:60px 1fr;grid-template-rows:auto;grid-template-areas:"checkbox user"
9
13
  "checkbox status"
10
14
  "checkbox importance";border-radius:12px;box-shadow:var(--header-tickets-shadow);border-bottom:1px solid var(--menu-selected-bg);padding:4px 0;margin-top:8px;background-color:var(--main-background);cursor:pointer}.Row.svelte-d34xx3.svelte-d34xx3:hover{background-color:var(--menu-hover-bg)}.Row.Selected.svelte-d34xx3.svelte-d34xx3{background-color:var(--ticket-selected-bg) !important}.UserColumn.svelte-d34xx3.svelte-d34xx3{grid-area:user}.StatusColumn.svelte-d34xx3.svelte-d34xx3{grid-area:status;display:flex;flex-direction:column;justify-content:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ImportanceColumn.svelte-d34xx3.svelte-d34xx3{grid-area:importance}.Checkbox.svelte-d34xx3.svelte-d34xx3{grid-area:checkbox;position:relative}.StatusBar.svelte-d34xx3.svelte-d34xx3{position:absolute;left:0;top:10%;content:"";width:6px;height:80%;margin-left:8px;border-radius:69px;transition:width 0.1s ease}.Row.svelte-d34xx3:hover .StatusBar.svelte-d34xx3{width:10px}input.svelte-d34xx3.svelte-d34xx3{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(min-width: 768px){.Row.svelte-d34xx3.svelte-d34xx3{display:grid;grid-template-areas:"checkbox user importance"
11
- "checkbox status importance";grid-template-columns:60px 3fr 1fr;height:110px;column-gap:6px}}@media(min-width: 900px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-areas:"checkbox user status importance";grid-template-columns:60px 180px auto 190px;height:72px}}@media(min-width: 1300px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-columns:60px 260px auto 230px}}`)}function Ht(t,e,i){const n=t.slice();return n[9]=e[i],n[10]=e,n[11]=i,n}function Kt(t){let e,i,n,r,s,a,o,c,l,d,u,f,g,m,v,$,p,R,G;function L(){t[5].call(s,t[11])}function B(...W){return t[6](t[11],...W)}l=new Lr({props:{row:t[9]}}),f=new ps({props:{row:t[9]}}),v=new qr({props:{row:t[9]}});function ne(){return t[7](t[9])}function _e(...W){return t[8](t[9],...W)}return{c(){e=x("div"),i=x("div"),n=x("div"),r=K(),s=x("input"),o=K(),c=x("div"),I(l.$$.fragment),d=K(),u=x("div"),I(f.$$.fragment),g=K(),m=x("div"),I(v.$$.fragment),_(n,"class","StatusBar svelte-d34xx3"),ft(n,"background-color",xe(t[9].status).border),_(s,"type","checkbox"),s.__value=a=t[9].conversationid,Nt(s,s.__value),_(s,"class","svelte-d34xx3"),_(i,"class","Checkbox svelte-d34xx3"),ft(i,"position","relative"),_(c,"class","UserColumn svelte-d34xx3"),_(u,"class","StatusColumn svelte-d34xx3"),_(m,"class","ImportanceColumn svelte-d34xx3"),_(e,"class",$="Row "+(t[1][t[11]].__selected?"Selected":"")+" svelte-d34xx3")},m(W,re){D(W,e,re),w(e,i),w(i,n),w(i,r),w(i,s),s.checked=t[1][t[11]].__selected,w(e,o),w(e,c),M(l,c,null),w(e,d),w(e,u),M(f,u,null),w(e,g),w(e,m),M(v,m,null),p=!0,R||(G=[le(s,"change",L),le(s,"click",mt(B)),le(i,"click",mt(ys)),le(e,"click",ne),le(e,"mousedown",_e)],R=!0)},p(W,re){t=W,(!p||re&2)&&ft(n,"background-color",xe(t[9].status).border),(!p||re&2&&a!==(a=t[9].conversationid))&&(s.__value=a,Nt(s,s.__value)),re&2&&(s.checked=t[1][t[11]].__selected);const P={};re&2&&(P.row=t[9]),l.$set(P);const U={};re&2&&(U.row=t[9]),f.$set(U);const ye={};re&2&&(ye.row=t[9]),v.$set(ye),(!p||re&2&&$!==($="Row "+(t[1][t[11]].__selected?"Selected":"")+" svelte-d34xx3"))&&_(e,"class",$)},i(W){p||(k(l.$$.fragment,W),k(f.$$.fragment,W),k(v.$$.fragment,W),p=!0)},o(W){T(l.$$.fragment,W),T(f.$$.fragment,W),T(v.$$.fragment,W),p=!1},d(W){W&&N(e),z(l),z(f),z(v),R=!1,Te(G)}}}function vs(t){let e,i,n,r=Ee(t[1]),s=[];for(let l=0;l<r.length;l+=1)s[l]=Kt(Ht(t,r,l));const a=l=>T(s[l],1,1,()=>{s[l]=null}),o=t[4].default,c=Xe(o,t,t[3],null);return{c(){e=x("div");for(let l=0;l<s.length;l+=1)s[l].c();i=K(),c&&c.c(),_(e,"class","Body svelte-d34xx3")},m(l,d){D(l,e,d);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(e,null);w(e,i),c&&c.m(e,null),n=!0},p(l,[d]){if(d&7){r=Ee(l[1]);let u;for(u=0;u<r.length;u+=1){const f=Ht(l,r,u);s[u]?(s[u].p(f,d),k(s[u],1)):(s[u]=Kt(f),s[u].c(),k(s[u],1),s[u].m(e,i))}for(me(),u=r.length;u<s.length;u+=1)a(u);pe()}c&&c.p&&(!n||d&8)&&je(c,o,l,l[3],n?Qe(o,l[3],d,null):et(l[3]),null)},i(l){if(!n){for(let d=0;d<r.length;d+=1)k(s[d]);k(c,l),n=!0}},o(l){s=s.filter(Boolean);for(let d=0;d<s.length;d+=1)T(s[d]);T(c,l),n=!1},d(l){l&&N(e),bt(s,l),c&&c.d(l)}}}const ys=()=>{};function bs(t,e,i){let n;Q(t,he,f=>i(1,n=f));let{$$slots:r={},$$scope:s}=e,{rowMiddleClickHandler:a}=e;function o(f,g){if(f.shiftKey){let m=n.findIndex(v=>v.__selected);if(m!==-1){let v=Math.min(m,g),$=Math.max(m,g);for(let p=v;p<=$;p++)kn(he,n[p].__selected=!0,n)}}}function c(f){n[f].__selected=this.checked,he.set(n)}const l=(f,g)=>o(g,f),d=f=>location.assign("#Conversation;id="+f.conversationid),u=(f,g)=>{g.button===1&&a&&(a(f.conversationid),g.preventDefault(),g.stopPropagation())};return t.$$set=f=>{"rowMiddleClickHandler"in f&&i(0,a=f.rowMiddleClickHandler),"$$scope"in f&&i(3,s=f.$$scope)},[a,n,o,s,r,c,l,d,u]}class ws extends Z{constructor(e){super(),q(this,e,bs,vs,Y,{rowMiddleClickHandler:0},_s)}}function ks(t){ee(t,"svelte-1nok758","div.svelte-1nok758{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto}")}function Cs(t){let e,i,n;return{c(){e=x("div"),i=x("p"),n=j(t[0]),_(e,"class","svelte-1nok758")},m(r,s){D(r,e,s),w(e,i),w(i,n)},p(r,[s]){s&1&&ae(n,r[0])},i:J,o:J,d(r){r&&N(e)}}}function xs(t,e,i){let n,r,s,a,o;return Q(t,Ne,c=>i(1,r=c)),Q(t,he,c=>i(2,s=c)),Q(t,an,c=>i(3,a=c)),Q(t,Ge,c=>i(4,o=c)),t.$$.update=()=>{t.$$.dirty&30&&i(0,n=o?F("Loading..."):a?F("Loading failed. Please try again later."):!s||s.length===0?F("No results match your filter. Try broadening the search criteria."):r==null?F("All data loaded"):F("Load more data"))},[n,r,s,a,o]}class Ts extends Z{constructor(e){super(),q(this,e,xs,Cs,Y,{},ks)}}function $s(t){ee(t,"svelte-1srt8g7",`button.SortingButton{width:calc(100% - 8px);text-align:left;font-weight:normal;margin:0 0 0 30px}button.SortingButton.Selected{width:100%;text-align:left;font-weight:bold}.radio-option.svelte-1srt8g7 input[type="radio"].svelte-1srt8g7{display:none}.radio-option.svelte-1srt8g7.svelte-1srt8g7{display:flex;align-items:center;position:relative;width:calc(100% - 8px);padding:6px 10px;color:var(--main-textcolor);cursor:pointer}.radio-option.svelte-1srt8g7.svelte-1srt8g7::before{content:'';display:inline-block;width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid var(--menu-selected-bg);background-color:white}.selected.svelte-1srt8g7.svelte-1srt8g7{font-weight:700}.selected.svelte-1srt8g7.svelte-1srt8g7::before{width:10px;height:10px;border:5px solid var(--ticket-status-chat-background)}.radio-option.svelte-1srt8g7.svelte-1srt8g7:hover{background:var(--menu-hover-bg)}.Title.svelte-1srt8g7.svelte-1srt8g7{width:100%;margin:4px 0 12px 10px;color:var(--main-textcolor);font-size:13px;font-style:normal;font-weight:700;line-height:20px;font-family:'Roboto', sans-serif}.Title.svelte-1srt8g7.svelte-1srt8g7::after{content:'';position:absolute;left:10px;right:10px;bottom:calc(100% - 37px);height:1px;background-color:var(--menu-selected-bg)}.modal.svelte-1srt8g7.svelte-1srt8g7{min-width:200px;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:4px;background-color:var(--main-background);border:none;border-radius:6px;overflow:hidden;z-index:99999;box-shadow:0px 1px 3px 0px rgba(30, 34, 39, 0.12), 0px 8px 24px 0px rgba(30, 34, 39, 0.10)}`)}function Bt(t,e,i){const n=t.slice();return n[8]=e[i],n}function Jt(t){let e,i,n,r,s=t[8].label+"",a,o,c,l,d;return{c(){e=x("label"),i=x("input"),r=K(),a=j(s),o=K(),_(i,"type","radio"),_(i,"name","sorting"),i.value=t[8].value,i.checked=n=t[0]&&t[0].value===t[8].value,_(i,"class","svelte-1srt8g7"),_(e,"class",c=ie(t[0].value===t[8].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")},m(u,f){D(u,e,f),w(e,i),w(e,r),w(e,a),w(e,o),l||(d=le(i,"click",t[4]),l=!0)},p(u,f){f&1&&n!==(n=u[0]&&u[0].value===u[8].value)&&(i.checked=n),f&1&&c!==(c=ie(u[0].value===u[8].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")&&_(e,"class",c)},d(u){u&&N(e),l=!1,d()}}}function Ss(t){let e,i,n,r=Ee(t[3]),s=[];for(let a=0;a<r.length;a+=1)s[a]=Jt(Bt(t,r,a));return{c(){e=x("dialog"),i=x("span"),i.textContent=`${F("Sort by")}`,n=K();for(let a=0;a<s.length;a+=1)s[a].c();_(i,"class","Title svelte-1srt8g7"),_(e,"class","modal svelte-1srt8g7"),_(e,"style",t[1])},m(a,o){D(a,e,o),w(e,i),w(e,n);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(e,null);t[6](e)},p(a,[o]){if(o&25){r=Ee(a[3]);let c;for(c=0;c<r.length;c+=1){const l=Bt(a,r,c);s[c]?s[c].p(l,o):(s[c]=Jt(l),s[c].c(),s[c].m(e,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=r.length}o&2&&_(e,"style",a[1])},i:J,o:J,d(a){a&&N(e),bt(s,a),t[6](null)}}}function Ls(t,e,i){let{currentFilter:n}=e,{closeModal:r=()=>c.close()}=e,{style:s=""}=e;const a=Xt(),o=[{value:"Datedue",label:F("Importance"),sort:Ue.Datedue,dir:!1},{value:"Created-newest",label:F("Date created - Newest"),sort:Ue.Datecreated,dir:!1},{value:"Created-oldest",label:F("Date created - Oldest"),sort:Ue.Datecreated,dir:!0},{value:"Changed-newest",label:F("Date changed - Newest"),sort:Ue.Datechanged,dir:!1},{value:"Changed-oldest",label:F("Date changed - Oldest"),sort:Ue.Datechanged,dir:!0}];let c;function l(u){const f=o.find(g=>g.value===u.target.value);i(0,n=f),a("filterChange",{option:f}),r()}function d(u){Ie[u?"unshift":"push"](()=>{c=u,i(2,c)})}return t.$$set=u=>{"currentFilter"in u&&i(0,n=u.currentFilter),"closeModal"in u&&i(5,r=u.closeModal),"style"in u&&i(1,s=u.style)},[n,s,c,o,l,r,d]}class Ns extends Z{constructor(e){super(),q(this,e,Ls,Ss,Y,{currentFilter:0,closeModal:5,style:1},$s)}}function Ds(t){ee(t,"svelte-657q9o",".backdrop.svelte-657q9o{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:100}")}function Fs(t){let e,i,n;return{c(){e=x("div"),_(e,"class","backdrop svelte-657q9o")},m(r,s){D(r,e,s),i||(n=le(e,"click",mt(function(){yt(t[0])&&t[0].apply(this,arguments)})),i=!0)},p(r,[s]){t=r},i:J,o:J,d(r){r&&N(e),i=!1,n()}}}function Os(t,e,i){let{onClick:n}=e;return t.$$set=r=>{"onClick"in r&&i(0,n=r.onClick)},[n]}class Rs extends Z{constructor(e){super(),q(this,e,Os,Fs,Y,{onClick:0},Ds)}}function As(t){ee(t,"svelte-1od4wyj",".load.svelte-1od4wyj{display:block}.container.svelte-1od4wyj{width:100%;flex-grow:1;flex-basis:0;overflow-y:scroll;overflow-x:hidden;border-spacing:4px 5px;border:none}@media screen and (min-width: 768px){.load.svelte-1od4wyj{width:100%}}")}function Ms(t){let e,i,n,r,s,a;return n=new Ts({}),{c(){e=x("div"),i=x("div"),I(n.$$.fragment),_(i,"class","load svelte-1od4wyj"),_(e,"class","load svelte-1od4wyj")},m(o,c){D(o,e,c),w(e,i),M(n,i,null),t[11](i),r=!0,s||(a=le(i,"click",t[12]),s=!0)},p:J,i(o){r||(k(n.$$.fragment,o),r=!0)},o(o){T(n.$$.fragment,o),r=!1},d(o){o&&N(e),z(n),t[11](null),s=!1,a()}}}function Ut(t){let e,i,n,r;return e=new Ns({props:{closeModal:t[8],currentFilter:t[5],style:t[4]}}),e.$on("filterChange",t[10]),n=new Rs({props:{onClick:t[8]}}),{c(){I(e.$$.fragment),i=K(),I(n.$$.fragment)},m(s,a){M(e,s,a),D(s,i,a),M(n,s,a),r=!0},p(s,a){const o={};a&32&&(o.currentFilter=s[5]),a&16&&(o.style=s[4]),e.$set(o)},i(s){r||(k(e.$$.fragment,s),k(n.$$.fragment,s),r=!0)},o(s){T(e.$$.fragment,s),T(n.$$.fragment,s),r=!1},d(s){s&&N(i),z(e,s),z(n,s)}}}function zs(t){let e,i,n,r,s,a;i=new Hi({props:{currentFilter:t[5].label}}),i.$on("openModal",t[9]),r=new ws({props:{rowMiddleClickHandler:t[0],$$slots:{default:[Ms]},$$scope:{ctx:t}}});let o=t[3]&&Ut(t);return{c(){e=x("div"),I(i.$$.fragment),n=K(),I(r.$$.fragment),s=K(),o&&o.c(),_(e,"class","container svelte-1od4wyj")},m(c,l){D(c,e,l),M(i,e,null),w(e,n),M(r,e,null),w(e,s),o&&o.m(e,null),t[13](e),a=!0},p(c,[l]){const d={};l&32&&(d.currentFilter=c[5].label),i.$set(d);const u={};l&1&&(u.rowMiddleClickHandler=c[0]),l&16578&&(u.$$scope={dirty:l,ctx:c}),r.$set(u),c[3]?o?(o.p(c,l),l&8&&k(o,1)):(o=Ut(c),o.c(),k(o,1),o.m(e,null)):o&&(me(),T(o,1,1,()=>{o=null}),pe())},i(c){a||(k(i.$$.fragment,c),k(r.$$.fragment,c),k(o),a=!0)},o(c){T(i.$$.fragment,c),T(r.$$.fragment,c),T(o),a=!1},d(c){c&&N(e),z(i),z(r),o&&o.d(),t[13](null)}}}function Gs(t,e,i){let n,r,s;Q(t,Pe,p=>i(6,r=p)),Q(t,Ne,p=>i(7,s=p));let{rowMiddleClickHandler:a}=e,o,c,l=!1,d="";ot(()=>{const p=localStorage.getItem("TicketGridCurrentFilter");p&&i(5,n=JSON.parse(p));const R=new IntersectionObserver(G=>{G[0].isIntersecting&&He()},{root:c,threshold:.5});return R.observe(o),()=>R.unobserve(o)});function u(){i(3,l=!1)}function f(p){i(3,l=!0),i(4,d=p.detail.dialogStyles)}function g(p){u(),console.log("filter changed: "+p.detail.option.sort+" "+p.detail.option.dir),p.detail.option.value!==n.value&&(i(5,n=p.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(n)),ct.set(n.dir),Ct.set(n.sort))}function m(p){Ie[p?"unshift":"push"](()=>{o=p,i(1,o)})}const v=()=>He(r&&!s);function $(p){Ie[p?"unshift":"push"](()=>{c=p,i(2,c)})}return t.$$set=p=>{"rowMiddleClickHandler"in p&&i(0,a=p.rowMiddleClickHandler)},i(5,n={value:"Datedue",label:"Importance"}),[a,o,c,l,d,n,r,s,u,f,g,m,v,$]}class Is extends Z{constructor(e){super(),q(this,e,Gs,zs,Y,{rowMiddleClickHandler:0},As)}}class Es{constructor(e,i){const n=new wt({apiKey:e,basePath:i+"/api/v3"});this.api=new rn(n)}async load(){let e=await this.api.getTagsGridList();e=e.reduce((i,n)=>(i[n.tagid]=n,i),{}),sn.set(e)}}function Hs(t){ee(t,"svelte-10fvxzv","button.svelte-10fvxzv{padding:10px;margin:5px;border:none;border-radius:5px;cursor:pointer;font-size:13px;font-weight:600}")}function Ks(t){let e,i,n,r,s;const a=t[4].default,o=Xe(a,t,t[3],null);return{c(){e=x("button"),o&&o.c(),_(e,"class",i=ie(t[0])+" svelte-10fvxzv")},m(c,l){D(c,e,l),o&&o.m(e,null),n=!0,r||(s=le(e,"click",t[1]),r=!0)},p(c,[l]){o&&o.p&&(!n||l&8)&&je(o,a,c,c[3],n?Qe(a,c[3],l,null):et(c[3]),null),(!n||l&1&&i!==(i=ie(c[0])+" svelte-10fvxzv"))&&_(e,"class",i)},i(c){n||(k(o,c),n=!0)},o(c){T(o,c),n=!1},d(c){c&&N(e),o&&o.d(c),r=!1,s()}}}function Bs(t,e,i){let{$$slots:n={},$$scope:r}=e,{onAction:s=c=>{}}=e,{className:a=""}=e;function o(c){s(c)}return t.$$set=c=>{"onAction"in c&&i(2,s=c.onAction),"className"in c&&i(0,a=c.className),"$$scope"in c&&i(3,r=c.$$scope)},[a,o,s,r,n]}class Wt extends Z{constructor(e){super(),q(this,e,Bs,Ks,Y,{onAction:2,className:0},Hs)}}function Js(t){ee(t,"svelte-19qi61t",".NoTickets.svelte-19qi61t{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}p.svelte-19qi61t{max-width:450px;font-size:13px;font-weight:400;text-align:center}h1.svelte-19qi61t{font-size:20px;font-weight:600;margin:50px auto 0 auto}img.svelte-19qi61t{max-width:300px}")}function Us(t){let e,i,n=F("Change filter")+"",r,s;return e=new we({props:{className:"FilterIcon",iconLaClassName:"la-tune"}}),{c(){I(e.$$.fragment),i=K(),r=j(n)},m(a,o){M(e,a,o),D(a,i,o),D(a,r,o),s=!0},p:J,i(a){s||(k(e.$$.fragment,a),s=!0)},o(a){T(e.$$.fragment,a),s=!1},d(a){a&&(N(i),N(r)),z(e,a)}}}function Ws(t){let e,i,n=F("Configure chat button")+"",r,s;return e=new we({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){I(e.$$.fragment),i=K(),r=j(n)},m(a,o){M(e,a,o),D(a,i,o),D(a,r,o),s=!0},p:J,i(a){s||(k(e.$$.fragment,a),s=!0)},o(a){T(e.$$.fragment,a),s=!1},d(a){a&&(N(i),N(r)),z(e,a)}}}function Ys(t){let e,i,n,r,s,a,o,c,l,d,u,f,g;return d=new Wt({props:{className:"Filter",onAction:t[2],$$slots:{default:[Us]},$$scope:{ctx:t}}}),f=new Wt({props:{className:"Configure",onAction:t[3],$$slots:{default:[Ws]},$$scope:{ctx:t}}}),{c(){e=x("div"),i=x("img"),r=K(),s=x("h1"),s.textContent=`${F("No tickets found")}`,a=K(),o=x("p"),o.textContent=`${F("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")}`,c=K(),l=x("div"),I(d.$$.fragment),u=K(),I(f.$$.fragment),_(i,"alt","No results placeholder"),st(i.src,n=t[0]+"/themes/agent/obsidian/img/no-result.svg")||_(i,"src",n),_(i,"class","svelte-19qi61t"),_(s,"class","svelte-19qi61t"),_(o,"class","svelte-19qi61t"),_(l,"class","Buttons"),_(e,"class","NoTickets svelte-19qi61t")},m(m,v){D(m,e,v),w(e,i),w(e,r),w(e,s),w(e,a),w(e,o),w(e,c),w(e,l),M(d,l,null),w(l,u),M(f,l,null),g=!0},p(m,[v]){(!g||v&1&&!st(i.src,n=m[0]+"/themes/agent/obsidian/img/no-result.svg"))&&_(i,"src",n);const $={};v&2&&($.onAction=m[2]),v&16&&($.$$scope={dirty:v,ctx:m}),d.$set($);const p={};v&16&&(p.$$scope={dirty:v,ctx:m}),f.$set(p)},i(m){g||(k(d.$$.fragment,m),k(f.$$.fragment,m),g=!0)},o(m){T(d.$$.fragment,m),T(f.$$.fragment,m),g=!1},d(m){m&&N(e),z(d),z(f)}}}function Ps(t,e,i){let{basePath:n}=e,{changeFilterHandler:r=()=>{}}=e;const s=()=>r(),a=()=>window.location.hash="Chat-Buttons";return t.$$set=o=>{"basePath"in o&&i(0,n=o.basePath),"changeFilterHandler"in o&&i(1,r=o.changeFilterHandler)},[n,r,s,a]}class Vs extends Z{constructor(e){super(),q(this,e,Ps,Ys,Y,{basePath:0,changeFilterHandler:1},Js)}}function qs(t){ee(t,"svelte-14f2ism","main.svelte-14f2ism{height:100%;display:flex;flex-direction:column}")}function Zs(t){let e,i;return e=new Is({props:{rowMiddleClickHandler:t[0]}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&1&&(s.rowMiddleClickHandler=n[0]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Xs(t){let e,i;return e=new Vs({props:{basePath:t[1],changeFilterHandler:t[2]}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&2&&(s.basePath=n[1]),r&4&&(s.changeFilterHandler=n[2]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function Qs(t){let e,i,n,r;const s=[Xs,Zs],a=[];function o(c,l){return!c[3].length&&c[4]?0:1}return i=o(t),n=a[i]=s[i](t),{c(){e=x("main"),n.c(),_(e,"class","svelte-14f2ism")},m(c,l){D(c,e,l),a[i].m(e,null),r=!0},p(c,[l]){let d=i;i=o(c),i===d?a[i].p(c,l):(me(),T(a[d],1,1,()=>{a[d]=null}),pe(),n=a[i],n?n.p(c,l):(n=a[i]=s[i](c),n.c()),k(n,1),n.m(e,null))},i(c){r||(k(n),r=!0)},o(c){T(n),r=!1},d(c){c&&N(e),a[i].d()}}}function js(t,e,i){let n,r,s,a,o,c;Q(t,ze,g=>i(9,n=g)),Q(t,Ze,g=>i(6,r=g)),Q(t,Ct,g=>i(7,s=g)),Q(t,ct,g=>i(8,a=g)),Q(t,he,g=>i(3,o=g)),Q(t,Pe,g=>i(4,c=g));let{apiKey:l}=e,{rowMiddleClickHandler:d}=e,{basePath:u}=e,{changeFilterHandler:f}=e;return ot(async()=>{await new Es(l,u).load();const g=new rn(new wt({apiKey:l,basePath:u+"/api/v3"}));at.set(g),await He(!0)}),he.subscribe(g=>{kt.set(n?g.filter(m=>!m.__selected).map(m=>m.conversationid):g.filter(m=>m.__selected).map(m=>m.conversationid))}),t.$$set=g=>{"apiKey"in g&&i(5,l=g.apiKey),"rowMiddleClickHandler"in g&&i(0,d=g.rowMiddleClickHandler),"basePath"in g&&i(1,u=g.basePath),"changeFilterHandler"in g&&i(2,f=g.changeFilterHandler)},t.$$.update=()=>{t.$$.dirty&448&&(a||s||r)&&He(!0)},[d,u,f,o,c,l,r,s,a]}class ea extends Z{constructor(e){super(),q(this,e,js,Qs,Y,{apiKey:5,rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},qs)}}function Yt(t){let e,i;return e=new ea({props:{apiKey:t[0],basePath:t[2],rowMiddleClickHandler:t[1],changeFilterHandler:t[3]}}),{c(){I(e.$$.fragment)},m(n,r){M(e,n,r),i=!0},p(n,r){const s={};r&1&&(s.apiKey=n[0]),r&4&&(s.basePath=n[2]),r&2&&(s.rowMiddleClickHandler=n[1]),r&8&&(s.changeFilterHandler=n[3]),e.$set(s)},i(n){i||(k(e.$$.fragment,n),i=!0)},o(n){T(e.$$.fragment,n),i=!1},d(n){z(e,n)}}}function ta(t){let e,i,n,r,s=t[0]&&Yt(t);return{c(){s&&s.c(),e=K(),i=x("link"),_(i,"rel","stylesheet"),_(i,"href",n=t[2]+"/themes/agent/_common_templates/icons_mapping.css")},m(a,o){s&&s.m(a,o),D(a,e,o),D(a,i,o),r=!0},p(a,[o]){a[0]?s?(s.p(a,o),o&1&&k(s,1)):(s=Yt(a),s.c(),k(s,1),s.m(e.parentNode,e)):s&&(me(),T(s,1,1,()=>{s=null}),pe()),(!r||o&4&&n!==(n=a[2]+"/themes/agent/_common_templates/icons_mapping.css"))&&_(i,"href",n)},i(a){r||(k(s),r=!0)},o(a){T(s),r=!1},d(a){a&&(N(e),N(i)),s&&s.d(a)}}}function na(t){const e={};return t.forEach(i=>{if(i.length===2){const[n,r]=i;e[n]=r}}),e}function ia(t,e,i){let n,r,s;Q(t,he,g=>i(7,n=g)),Q(t,ze,g=>i(8,r=g)),Q(t,kt,g=>i(9,s=g));let{apiKey:a}=e,{filters:o='[["rstatus","IN","A,P,T,N,C,R,W"],["channel_type","IN","B,M,E,F,A,I,Q,S,C,W,T,V"]]'}=e,{rowMiddleClickHandler:c=g=>{}}=e,{basePath:l}=e,{ticketSelectionChangeHandler:d=(g,m,v)=>{}}=e,{changeFilterHandler:u=()=>{}}=e;const f=function(g=!1){He(g)};return ot(()=>{Ze.set(o);const g=localStorage.getItem("la-dictionary-a");if(g)try{const m=JSON.parse(g);on.set(na(m[3][1]))}catch(m){console.error("Error parsing translation data:",m)}}),t.$$set=g=>{"apiKey"in g&&i(0,a=g.apiKey),"filters"in g&&i(4,o=g.filters),"rowMiddleClickHandler"in g&&i(1,c=g.rowMiddleClickHandler),"basePath"in g&&i(2,l=g.basePath),"ticketSelectionChangeHandler"in g&&i(5,d=g.ticketSelectionChangeHandler),"changeFilterHandler"in g&&i(3,u=g.changeFilterHandler)},t.$$.update=()=>{t.$$.dirty&16&&o&&Ze.set(o),t.$$.dirty&928&&d(s,r,n.length)},[a,c,l,u,o,d,f,n,r,s]}class ra extends Z{constructor(e){super(),q(this,e,ia,ta,Y,{apiKey:0,filters:4,rowMiddleClickHandler:1,basePath:2,ticketSelectionChangeHandler:5,changeFilterHandler:3,reload:6})}get apiKey(){return this.$$.ctx[0]}set apiKey(e){this.$$set({apiKey:e}),Ce()}get filters(){return this.$$.ctx[4]}set filters(e){this.$$set({filters:e}),Ce()}get rowMiddleClickHandler(){return this.$$.ctx[1]}set rowMiddleClickHandler(e){this.$$set({rowMiddleClickHandler:e}),Ce()}get basePath(){return this.$$.ctx[2]}set basePath(e){this.$$set({basePath:e}),Ce()}get ticketSelectionChangeHandler(){return this.$$.ctx[5]}set ticketSelectionChangeHandler(e){this.$$set({ticketSelectionChangeHandler:e}),Ce()}get changeFilterHandler(){return this.$$.ctx[3]}set changeFilterHandler(e){this.$$set({changeFilterHandler:e}),Ce()}get reload(){return this.$$.ctx[6]}}customElements.define("tickets-table",In(ra,{apiKey:{},filters:{},rowMiddleClickHandler:{},basePath:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));
15
+ "checkbox status importance";grid-template-columns:60px 3fr 1fr;height:110px;column-gap:6px}}@media(min-width: 900px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-areas:"checkbox user status importance";grid-template-columns:60px 180px auto 190px;height:72px}}@media(min-width: 1300px){.Row.svelte-d34xx3.svelte-d34xx3{grid-template-columns:60px 260px auto 230px}}`)}function ai(e,t,n){const i=e.slice();return i[9]=t[n],i[10]=t,i[11]=n,i}function li(e){let t,n,i,r,s,o,a,u,l,c,f,d,h,p,v,y,m,w,C;function L(){e[5].call(s,e[11])}function H(...te){return e[6](e[11],...te)}l=new pl({props:{row:e[9]}}),d=new ru({props:{row:e[9]}}),v=new Bl({props:{row:e[9]}});function Z(){return e[7](e[9])}function fe(...te){return e[8](e[9],...te)}return{c(){t=T("div"),n=T("div"),i=T("div"),r=U(),s=T("input"),a=U(),u=T("div"),P(l.$$.fragment),c=U(),f=T("div"),P(d.$$.fragment),h=U(),p=T("div"),P(v.$$.fragment),_(i,"class","StatusBar svelte-d34xx3"),Zt(i,"background-color",He(e[9].status).border),_(s,"type","checkbox"),s.__value=o=e[9].conversationid,Hn(s,s.__value),_(s,"class","svelte-d34xx3"),_(n,"class","Checkbox svelte-d34xx3"),Zt(n,"position","relative"),_(u,"class","UserColumn svelte-d34xx3"),_(f,"class","StatusColumn svelte-d34xx3"),_(p,"class","ImportanceColumn svelte-d34xx3"),_(t,"class",y="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3")},m(te,ce){O(te,t,ce),b(t,n),b(n,i),b(n,r),b(n,s),s.checked=e[1][e[11]].__selected,b(t,a),b(t,u),F(l,u,null),b(t,c),b(t,f),F(d,f,null),b(t,h),b(t,p),F(v,p,null),m=!0,w||(C=[de(s,"change",L),de(s,"click",sn(H)),de(n,"click",sn(au)),de(t,"click",Z),de(t,"mousedown",fe)],w=!0)},p(te,ce){e=te,(!m||ce&2)&&Zt(i,"background-color",He(e[9].status).border),(!m||ce&2&&o!==(o=e[9].conversationid))&&(s.__value=o,Hn(s,s.__value)),ce&2&&(s.checked=e[1][e[11]].__selected);const oe={};ce&2&&(oe.row=e[9]),l.$set(oe);const z={};ce&2&&(z.row=e[9]),d.$set(z);const xe={};ce&2&&(xe.row=e[9]),v.$set(xe),(!m||ce&2&&y!==(y="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3"))&&_(t,"class",y)},i(te){m||(x(l.$$.fragment,te),x(d.$$.fragment,te),x(v.$$.fragment,te),m=!0)},o(te){k(l.$$.fragment,te),k(d.$$.fragment,te),k(v.$$.fragment,te),m=!1},d(te){te&&A(t),$(l),$(d),$(v),w=!1,Ae(C)}}}function ou(e){let t,n,i,r=Je(e[1]),s=[];for(let l=0;l<r.length;l+=1)s[l]=li(ai(e,r,l));const o=l=>k(s[l],1,1,()=>{s[l]=null}),a=e[4].default,u=yt(a,e,e[3],null);return{c(){t=T("div");for(let l=0;l<s.length;l+=1)s[l].c();n=U(),u&&u.c(),_(t,"class","Body svelte-d34xx3")},m(l,c){O(l,t,c);for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(t,null);b(t,n),u&&u.m(t,null),i=!0},p(l,[c]){if(c&7){r=Je(l[1]);let f;for(f=0;f<r.length;f+=1){const d=ai(l,r,f);s[f]?(s[f].p(d,c),x(s[f],1)):(s[f]=li(d),s[f].c(),x(s[f],1),s[f].m(t,n))}for(ye(),f=r.length;f<s.length;f+=1)o(f);be()}u&&u.p&&(!i||c&8)&&wt(u,a,l,l[3],i?bt(a,l[3],c,null):xt(l[3]),null)},i(l){if(!i){for(let c=0;c<r.length;c+=1)x(s[c]);x(u,l),i=!0}},o(l){s=s.filter(Boolean);for(let c=0;c<s.length;c+=1)k(s[c]);k(u,l),i=!1},d(l){l&&A(t),yn(s,l),u&&u.d(l)}}}const au=()=>{};function lu(e,t,n){let i;V(e,_e,d=>n(1,i=d));let{$$slots:r={},$$scope:s}=t,{rowMiddleClickHandler:o}=t;function a(d,h){if(d.shiftKey){let p=i.findIndex(v=>v.__selected);if(p!==-1){let v=Math.min(p,h),y=Math.max(p,h);for(let m=v;m<=y;m++)ur(_e,i[m].__selected=!0,i)}}}function u(d){i[d].__selected=this.checked,_e.set(i)}const l=(d,h)=>a(h,d),c=d=>location.assign("#Conversation;id="+d.conversationid),f=(d,h)=>{h.button===1&&o&&(o(d.conversationid),h.preventDefault(),h.stopPropagation())};return e.$$set=d=>{"rowMiddleClickHandler"in d&&n(0,o=d.rowMiddleClickHandler),"$$scope"in d&&n(3,s=d.$$scope)},[o,i,a,s,r,u,l,c,f]}class uu extends ie{constructor(t){super(),ne(this,t,lu,ou,ee,{rowMiddleClickHandler:0},su)}}function cu(e){le(e,"svelte-1nok758","div.svelte-1nok758{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto}")}function fu(e){let t,n,i;return{c(){t=T("div"),n=T("p"),i=q(e[0]),_(t,"class","svelte-1nok758")},m(r,s){O(r,t,s),b(t,n),b(n,i)},p(r,[s]){s&1&&se(i,r[0])},i:K,o:K,d(r){r&&A(t)}}}function du(e,t,n){let i,r,s,o,a,u;return V(e,we,l=>n(1,r=l)),V(e,Fe,l=>n(2,s=l)),V(e,_e,l=>n(3,o=l)),V(e,Xi,l=>n(4,a=l)),V(e,Ke,l=>n(5,u=l)),e.$$.update=()=>{e.$$.dirty&62&&n(0,i=u?r("Loading..."):a?r("Loading failed. Please try again later."):!o||o.length===0?r("No results match your filter. Try broadening the search criteria."):s==null?r("All data loaded"):r("Load more data"))},[i,r,s,o,a,u]}class hu extends ie{constructor(t){super(),ne(this,t,du,fu,ee,{},cu)}}function gu(e){le(e,"svelte-1srt8g7",`button.SortingButton{width:calc(100% - 8px);text-align:left;font-weight:normal;margin:0 0 0 30px}button.SortingButton.Selected{width:100%;text-align:left;font-weight:bold}.radio-option.svelte-1srt8g7 input[type="radio"].svelte-1srt8g7{display:none}.radio-option.svelte-1srt8g7.svelte-1srt8g7{display:flex;align-items:center;position:relative;width:calc(100% - 8px);padding:6px 10px;color:var(--main-textcolor);cursor:pointer}.radio-option.svelte-1srt8g7.svelte-1srt8g7::before{content:'';display:inline-block;width:16px;height:16px;margin-right:10px;border-radius:50%;border:2px solid var(--menu-selected-bg);background-color:white}.selected.svelte-1srt8g7.svelte-1srt8g7{font-weight:700}.selected.svelte-1srt8g7.svelte-1srt8g7::before{width:10px;height:10px;border:5px solid var(--ticket-status-chat-background)}.radio-option.svelte-1srt8g7.svelte-1srt8g7:hover{background:var(--menu-hover-bg)}.Title.svelte-1srt8g7.svelte-1srt8g7{width:100%;margin:4px 0 12px 10px;color:var(--main-textcolor);font-size:13px;font-style:normal;font-weight:700;line-height:20px;font-family:'Roboto', sans-serif}.Title.svelte-1srt8g7.svelte-1srt8g7::after{content:'';position:absolute;left:10px;right:10px;bottom:calc(100% - 37px);height:1px;background-color:var(--menu-selected-bg)}.modal.svelte-1srt8g7.svelte-1srt8g7{min-width:200px;display:flex;flex-direction:column;align-items:flex-start;margin:0;padding:4px;background-color:var(--main-background);border:none;border-radius:6px;overflow:hidden;z-index:99999;box-shadow:0px 1px 3px 0px rgba(30, 34, 39, 0.12), 0px 8px 24px 0px rgba(30, 34, 39, 0.10)}`)}function ui(e,t,n){const i=e.slice();return i[9]=t[n],i}function ci(e){let t,n,i,r,s=e[9].label+"",o,a,u,l,c;return{c(){t=T("label"),n=T("input"),r=U(),o=q(s),a=U(),_(n,"type","radio"),_(n,"name","sorting"),n.value=e[9].value,n.checked=i=e[0]&&e[0].value===e[9].value,_(n,"class","svelte-1srt8g7"),_(t,"class",u=ue(e[0].value===e[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")},m(f,d){O(f,t,d),b(t,n),b(t,r),b(t,o),b(t,a),l||(c=de(n,"click",e[5]),l=!0)},p(f,d){d&1&&i!==(i=f[0]&&f[0].value===f[9].value)&&(n.checked=i),d&1&&u!==(u=ue(f[0].value===f[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")&&_(t,"class",u)},d(f){f&&A(t),l=!1,c()}}}function mu(e){let t,n,i=e[3]("Sort by")+"",r,s,o=Je(e[4]),a=[];for(let u=0;u<o.length;u+=1)a[u]=ci(ui(e,o,u));return{c(){t=T("dialog"),n=T("span"),r=q(i),s=U();for(let u=0;u<a.length;u+=1)a[u].c();_(n,"class","Title svelte-1srt8g7"),_(t,"class","modal svelte-1srt8g7"),_(t,"style",e[1])},m(u,l){O(u,t,l),b(t,n),b(n,r),b(t,s);for(let c=0;c<a.length;c+=1)a[c]&&a[c].m(t,null);e[7](t)},p(u,[l]){if(l&8&&i!==(i=u[3]("Sort by")+"")&&se(r,i),l&49){o=Je(u[4]);let c;for(c=0;c<o.length;c+=1){const f=ui(u,o,c);a[c]?a[c].p(f,l):(a[c]=ci(f),a[c].c(),a[c].m(t,null))}for(;c<a.length;c+=1)a[c].d(1);a.length=o.length}l&2&&_(t,"style",u[1])},i:K,o:K,d(u){u&&A(t),yn(a,u),e[7](null)}}}function pu(e,t,n){let i;V(e,we,d=>n(3,i=d));let{currentFilter:r}=t,{closeModal:s=()=>l.close()}=t,{style:o=""}=t;const a=pi(),u=[{value:"Datedue",label:i("Importance"),sort:at.Datedue,dir:!1},{value:"Created-newest",label:i("Date created - Newest"),sort:at.Datecreated,dir:!1},{value:"Created-oldest",label:i("Date created - Oldest"),sort:at.Datecreated,dir:!0},{value:"Changed-newest",label:i("Date changed - Newest"),sort:at.Datechanged,dir:!1},{value:"Changed-oldest",label:i("Date changed - Oldest"),sort:at.Datechanged,dir:!0}];let l;function c(d){const h=u.find(p=>p.value===d.target.value);n(0,r=h),a("filterChange",{option:h}),s()}function f(d){Xe[d?"unshift":"push"](()=>{l=d,n(2,l)})}return e.$$set=d=>{"currentFilter"in d&&n(0,r=d.currentFilter),"closeModal"in d&&n(6,s=d.closeModal),"style"in d&&n(1,o=d.style)},[r,o,l,i,u,c,s,f]}class vu extends ie{constructor(t){super(),ne(this,t,pu,mu,ee,{currentFilter:0,closeModal:6,style:1},gu)}}function _u(e){le(e,"svelte-657q9o",".backdrop.svelte-657q9o{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);z-index:100}")}function yu(e){let t,n,i;return{c(){t=T("div"),_(t,"class","backdrop svelte-657q9o")},m(r,s){O(r,t,s),n||(i=de(t,"click",sn(function(){$t(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(r,[s]){e=r},i:K,o:K,d(r){r&&A(t),n=!1,i()}}}function bu(e,t,n){let{onClick:i}=t;return e.$$set=r=>{"onClick"in r&&n(0,i=r.onClick)},[i]}class wu extends ie{constructor(t){super(),ne(this,t,bu,yu,ee,{onClick:0},_u)}}function xu(e){le(e,"svelte-1od4wyj",".load.svelte-1od4wyj{display:block}.container.svelte-1od4wyj{width:100%;flex-grow:1;flex-basis:0;overflow-y:scroll;overflow-x:hidden;border-spacing:4px 5px;border:none}@media screen and (min-width: 768px){.load.svelte-1od4wyj{width:100%}}")}function Tu(e){let t,n,i,r,s,o;return i=new hu({}),{c(){t=T("div"),n=T("div"),P(i.$$.fragment),_(n,"class","load svelte-1od4wyj"),_(t,"class","load svelte-1od4wyj")},m(a,u){O(a,t,u),b(t,n),F(i,n,null),e[11](n),r=!0,s||(o=de(n,"click",e[12]),s=!0)},p:K,i(a){r||(x(i.$$.fragment,a),r=!0)},o(a){k(i.$$.fragment,a),r=!1},d(a){a&&A(t),$(i),e[11](null),s=!1,o()}}}function fi(e){let t,n,i,r;return t=new vu({props:{closeModal:e[8],currentFilter:e[5],style:e[4]}}),t.$on("filterChange",e[10]),i=new wu({props:{onClick:e[8]}}),{c(){P(t.$$.fragment),n=U(),P(i.$$.fragment)},m(s,o){F(t,s,o),O(s,n,o),F(i,s,o),r=!0},p(s,o){const a={};o&32&&(a.currentFilter=s[5]),o&16&&(a.style=s[4]),t.$set(a)},i(s){r||(x(t.$$.fragment,s),x(i.$$.fragment,s),r=!0)},o(s){k(t.$$.fragment,s),k(i.$$.fragment,s),r=!1},d(s){s&&A(n),$(t,s),$(i,s)}}}function ku(e){let t,n,i,r,s,o;n=new Na({props:{currentFilter:e[5].label}}),n.$on("openModal",e[9]),r=new uu({props:{rowMiddleClickHandler:e[0],$$slots:{default:[Tu]},$$scope:{ctx:e}}});let a=e[3]&&fi(e);return{c(){t=T("div"),P(n.$$.fragment),i=U(),P(r.$$.fragment),s=U(),a&&a.c(),_(t,"class","container svelte-1od4wyj")},m(u,l){O(u,t,l),F(n,t,null),b(t,i),F(r,t,null),b(t,s),a&&a.m(t,null),e[13](t),o=!0},p(u,[l]){const c={};l&32&&(c.currentFilter=u[5].label),n.$set(c);const f={};l&1&&(f.rowMiddleClickHandler=u[0]),l&16578&&(f.$$scope={dirty:l,ctx:u}),r.$set(f),u[3]?a?(a.p(u,l),l&8&&x(a,1)):(a=fi(u),a.c(),x(a,1),a.m(t,null)):a&&(ye(),k(a,1,1,()=>{a=null}),be())},i(u){o||(x(n.$$.fragment,u),x(r.$$.fragment,u),x(a),o=!0)},o(u){k(n.$$.fragment,u),k(r.$$.fragment,u),k(a),o=!1},d(u){u&&A(t),$(n),$(r),a&&a.d(),e[13](null)}}}function Eu(e,t,n){let i,r,s;V(e,ht,m=>n(6,r=m)),V(e,Fe,m=>n(7,s=m));let{rowMiddleClickHandler:o}=t,a,u,l=!1,c="";Pt(()=>{const m=localStorage.getItem("TicketGridCurrentFilter");m&&n(5,i=JSON.parse(m));const w=new IntersectionObserver(C=>{C[0].isIntersecting&&je()},{root:u,threshold:.5});return w.observe(a),()=>w.unobserve(a)});function f(){n(3,l=!1)}function d(m){n(3,l=!0),n(4,c=m.detail.dialogStyles)}function h(m){f(),console.log("filter changed: "+m.detail.option.sort+" "+m.detail.option.dir),m.detail.option.value!==i.value&&(n(5,i=m.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(i)),Kt.set(i.dir),Sn.set(i.sort))}function p(m){Xe[m?"unshift":"push"](()=>{a=m,n(1,a)})}const v=()=>je(r&&!s);function y(m){Xe[m?"unshift":"push"](()=>{u=m,n(2,u)})}return e.$$set=m=>{"rowMiddleClickHandler"in m&&n(0,o=m.rowMiddleClickHandler)},n(5,i={value:"Datedue",label:"Importance"}),[o,a,u,l,c,i,r,s,f,d,h,p,v,y]}class Cu extends ie{constructor(t){super(),ne(this,t,Eu,ku,ee,{rowMiddleClickHandler:0},xu)}}class Su{constructor(t,n){const i=new En({apiKey:t,basePath:n+"/api/v3"});this.api=new Wi(i)}async load(){let t=await this.api.getTagsGridList();t=t.reduce((n,i)=>(n[i.tagid]=i,n),{}),Ki.set(t)}}function Nu(e){le(e,"svelte-10fvxzv","button.svelte-10fvxzv{padding:10px;margin:5px;border:none;border-radius:5px;cursor:pointer;font-size:13px;font-weight:600}")}function Lu(e){let t,n,i,r,s;const o=e[4].default,a=yt(o,e,e[3],null);return{c(){t=T("button"),a&&a.c(),_(t,"class",n=ue(e[0])+" svelte-10fvxzv")},m(u,l){O(u,t,l),a&&a.m(t,null),i=!0,r||(s=de(t,"click",e[1]),r=!0)},p(u,[l]){a&&a.p&&(!i||l&8)&&wt(a,o,u,u[3],i?bt(o,u[3],l,null):xt(u[3]),null),(!i||l&1&&n!==(n=ue(u[0])+" svelte-10fvxzv"))&&_(t,"class",n)},i(u){i||(x(a,u),i=!0)},o(u){k(a,u),i=!1},d(u){u&&A(t),a&&a.d(u),r=!1,s()}}}function Au(e,t,n){let{$$slots:i={},$$scope:r}=t,{onAction:s=u=>{}}=t,{className:o=""}=t;function a(u){s(u)}return e.$$set=u=>{"onAction"in u&&n(2,s=u.onAction),"className"in u&&n(0,o=u.className),"$$scope"in u&&n(3,r=u.$$scope)},[o,a,s,r,i]}class di extends ie{constructor(t){super(),ne(this,t,Au,Lu,ee,{onAction:2,className:0},Nu)}}function Ou(e){le(e,"svelte-19qi61t",".NoTickets.svelte-19qi61t{width:100%;height:100%;display:flex;flex-direction:column;align-items:center}p.svelte-19qi61t{max-width:450px;font-size:13px;font-weight:400;text-align:center}h1.svelte-19qi61t{font-size:20px;font-weight:600;margin:50px auto 0 auto}img.svelte-19qi61t{max-width:300px}")}function Hu(e){let t,n,i=e[2]("Change filter")+"",r,s;return t=new Le({props:{className:"FilterIcon",iconLaClassName:"la-tune"}}),{c(){P(t.$$.fragment),n=U(),r=q(i)},m(o,a){F(t,o,a),O(o,n,a),O(o,r,a),s=!0},p(o,a){(!s||a&4)&&i!==(i=o[2]("Change filter")+"")&&se(r,i)},i(o){s||(x(t.$$.fragment,o),s=!0)},o(o){k(t.$$.fragment,o),s=!1},d(o){o&&(A(n),A(r)),$(t,o)}}}function Ru(e){let t,n,i=e[2]("Configure chat button")+"",r,s;return t=new Le({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){P(t.$$.fragment),n=U(),r=q(i)},m(o,a){F(t,o,a),O(o,n,a),O(o,r,a),s=!0},p(o,a){(!s||a&4)&&i!==(i=o[2]("Configure chat button")+"")&&se(r,i)},i(o){s||(x(t.$$.fragment,o),s=!0)},o(o){k(t.$$.fragment,o),s=!1},d(o){o&&(A(n),A(r)),$(t,o)}}}function Du(e){let t,n,i,r,s,o=e[2]("No tickets found")+"",a,u,l,c=e[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"",f,d,h,p,v,y,m;return p=new di({props:{className:"Filter",onAction:e[3],$$slots:{default:[Hu]},$$scope:{ctx:e}}}),y=new di({props:{className:"Configure",onAction:e[4],$$slots:{default:[Ru]},$$scope:{ctx:e}}}),{c(){t=T("div"),n=T("img"),r=U(),s=T("h1"),a=q(o),u=U(),l=T("p"),f=q(c),d=U(),h=T("div"),P(p.$$.fragment),v=U(),P(y.$$.fragment),_(n,"alt","No results placeholder"),Dt(n.src,i=e[0]+"/themes/agent/obsidian/img/no-result.svg")||_(n,"src",i),_(n,"class","svelte-19qi61t"),_(s,"class","svelte-19qi61t"),_(l,"class","svelte-19qi61t"),_(h,"class","Buttons"),_(t,"class","NoTickets svelte-19qi61t")},m(w,C){O(w,t,C),b(t,n),b(t,r),b(t,s),b(s,a),b(t,u),b(t,l),b(l,f),b(t,d),b(t,h),F(p,h,null),b(h,v),F(y,h,null),m=!0},p(w,[C]){(!m||C&1&&!Dt(n.src,i=w[0]+"/themes/agent/obsidian/img/no-result.svg"))&&_(n,"src",i),(!m||C&4)&&o!==(o=w[2]("No tickets found")+"")&&se(a,o),(!m||C&4)&&c!==(c=w[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"")&&se(f,c);const L={};C&2&&(L.onAction=w[3]),C&36&&(L.$$scope={dirty:C,ctx:w}),p.$set(L);const H={};C&36&&(H.$$scope={dirty:C,ctx:w}),y.$set(H)},i(w){m||(x(p.$$.fragment,w),x(y.$$.fragment,w),m=!0)},o(w){k(p.$$.fragment,w),k(y.$$.fragment,w),m=!1},d(w){w&&A(t),$(p),$(y)}}}function Iu(e,t,n){let i;V(e,we,u=>n(2,i=u));let{basePath:r}=t,{changeFilterHandler:s=()=>{}}=t;const o=()=>s(),a=()=>window.location.hash="Chat-Buttons";return e.$$set=u=>{"basePath"in u&&n(0,r=u.basePath),"changeFilterHandler"in u&&n(1,s=u.changeFilterHandler)},[r,s,i,o,a]}class Mu extends ie{constructor(t){super(),ne(this,t,Iu,Du,ee,{basePath:0,changeFilterHandler:1},Ou)}}function Bu(e){le(e,"svelte-14f2ism","main.svelte-14f2ism{height:100%;display:flex;flex-direction:column}")}function Fu(e){let t,n;return t=new Cu({props:{rowMiddleClickHandler:e[0]}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.rowMiddleClickHandler=i[0]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function $u(e){let t,n;return t=new Mu({props:{basePath:e[1],changeFilterHandler:e[2]}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&2&&(s.basePath=i[1]),r&4&&(s.changeFilterHandler=i[2]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Pu(e){let t,n,i,r;const s=[$u,Fu],o=[];function a(u,l){return!u[3].length&&u[4]?0:1}return n=a(e),i=o[n]=s[n](e),{c(){t=T("main"),i.c(),_(t,"class","svelte-14f2ism")},m(u,l){O(u,t,l),o[n].m(t,null),r=!0},p(u,[l]){let c=n;n=a(u),n===c?o[n].p(u,l):(ye(),k(o[c],1,1,()=>{o[c]=null}),be(),i=o[n],i?i.p(u,l):(i=o[n]=s[n](u),i.c()),x(i,1),i.m(t,null))},i(u){r||(x(i),r=!0)},o(u){k(i),r=!1},d(u){u&&A(t),o[n].d()}}}function Gu(e,t,n){let i,r,s,o,a,u;V(e,We,h=>n(9,i=h)),V(e,_t,h=>n(6,r=h)),V(e,Sn,h=>n(7,s=h)),V(e,Kt,h=>n(8,o=h)),V(e,_e,h=>n(3,a=h)),V(e,ht,h=>n(4,u=h));let{apiKey:l}=t,{rowMiddleClickHandler:c}=t,{basePath:f}=t,{changeFilterHandler:d}=t;return Pt(async()=>{await new Su(l,f).load();const h=new Wi(new En({apiKey:l,basePath:f+"/api/v3"}));Ft.set(h),await je(!0)}),_e.subscribe(h=>{Cn.set(i?h.filter(p=>!p.__selected).map(p=>p.conversationid):h.filter(p=>p.__selected).map(p=>p.conversationid))}),e.$$set=h=>{"apiKey"in h&&n(5,l=h.apiKey),"rowMiddleClickHandler"in h&&n(0,c=h.rowMiddleClickHandler),"basePath"in h&&n(1,f=h.basePath),"changeFilterHandler"in h&&n(2,d=h.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&448&&(o||s||r)&&je(!0)},[c,f,d,a,u,l,r,s,o]}class Uu extends ie{constructor(t){super(),ne(this,t,Gu,Pu,ee,{apiKey:5,rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},Bu)}}function zu(e){let t,n;return t=new Uu({props:{apiKey:e[0].apiKey,basePath:e[0].basePath,rowMiddleClickHandler:e[1],changeFilterHandler:e[2]}}),{c(){P(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const s={};r&1&&(s.apiKey=i[0].apiKey),r&1&&(s.basePath=i[0].basePath),r&2&&(s.rowMiddleClickHandler=i[1]),r&4&&(s.changeFilterHandler=i[2]),t.$set(s)},i(i){n||(x(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Vu(e){let t;return{c(){t=T("p"),t.textContent="Loading..."},m(n,i){O(n,t,i)},p:K,i:K,o:K,d(n){n&&A(t)}}}function Wu(e){let t,n,i,r,s,o;const a=[Vu,zu],u=[];function l(c,f){return c[3]?0:c[0].apiKey?1:-1}return~(t=l(e))&&(n=u[t]=a[t](e)),{c(){n&&n.c(),i=U(),r=T("link"),_(r,"rel","stylesheet"),_(r,"href",s=e[0].basePath+"/themes/agent/_common_templates/icons_mapping.css")},m(c,f){~t&&u[t].m(c,f),O(c,i,f),O(c,r,f),o=!0},p(c,[f]){let d=t;t=l(c),t===d?~t&&u[t].p(c,f):(n&&(ye(),k(u[d],1,1,()=>{u[d]=null}),be()),~t?(n=u[t],n?n.p(c,f):(n=u[t]=a[t](c),n.c()),x(n,1),n.m(i.parentNode,i)):n=null),(!o||f&1&&s!==(s=c[0].basePath+"/themes/agent/_common_templates/icons_mapping.css"))&&_(r,"href",s)},i(c){o||(x(n),o=!0)},o(c){k(n),o=!1},d(c){c&&(A(i),A(r)),~t&&u[t].d(c)}}}function Ku(e,t,n){let i,r,s,o;V(e,_e,h=>n(7,i=h)),V(e,We,h=>n(8,r=h)),V(e,Cn,h=>n(9,s=h)),V(e,Rt,h=>n(3,o=h));let{filters:a='[["rstatus","IN","A,P,T,N,C,R,W"],["channel_type","IN","B,M,E,F,A,I,Q,S,C,W,T,V"]]'}=t,{options:u={apiKey:null,basePath:null,localeOptions:{thousandsSeparator:"S",decimalSeparator:"D",dateFormat:"MM/d/yyyy",timeFormat:"HH:mm:ss",timeShortFormat:"HH:mm",locale:"sk"}}}=t,{rowMiddleClickHandler:l=h=>{}}=t,{ticketSelectionChangeHandler:c=(h,p,v)=>{}}=t,{changeFilterHandler:f=()=>{}}=t;const d=function(h=!1){je(h)};return ia(u.localeOptions),Pt(()=>{_t.set(a)}),e.$$set=h=>{"filters"in h&&n(4,a=h.filters),"options"in h&&n(0,u=h.options),"rowMiddleClickHandler"in h&&n(1,l=h.rowMiddleClickHandler),"ticketSelectionChangeHandler"in h&&n(5,c=h.ticketSelectionChangeHandler),"changeFilterHandler"in h&&n(2,f=h.changeFilterHandler)},e.$$.update=()=>{e.$$.dirty&16&&a&&_t.set(a),e.$$.dirty&928&&c(s,r,i.length)},[u,l,f,o,a,c,d,i,r,s]}class Xu extends ie{constructor(t){super(),ne(this,t,Ku,Wu,ee,{filters:4,options:0,rowMiddleClickHandler:1,ticketSelectionChangeHandler:5,changeFilterHandler:2,reload:6})}get filters(){return this.$$.ctx[4]}set filters(t){this.$$set({filters:t}),Me()}get options(){return this.$$.ctx[0]}set options(t){this.$$set({options:t}),Me()}get rowMiddleClickHandler(){return this.$$.ctx[1]}set rowMiddleClickHandler(t){this.$$set({rowMiddleClickHandler:t}),Me()}get ticketSelectionChangeHandler(){return this.$$.ctx[5]}set ticketSelectionChangeHandler(t){this.$$set({ticketSelectionChangeHandler:t}),Me()}get changeFilterHandler(){return this.$$.ctx[2]}set changeFilterHandler(t){this.$$set({changeFilterHandler:t}),Me()}get reload(){return this.$$.ctx[6]}}customElements.define("tickets-table",Er(Xu,{filters:{},options:{},rowMiddleClickHandler:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));
@@ -0,0 +1,44 @@
1
+ {
2
+ "Created": "",
3
+ "Changed": "",
4
+ "No text for preview": "",
5
+ "No name": "",
6
+ "No email": "",
7
+ "No Company": "",
8
+ "No tickets found": "",
9
+ "There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.": "",
10
+ "Change filter": "",
11
+ "Configure chat button": "",
12
+ "Reload": "",
13
+ "First answer": "",
14
+ "No SLA": "",
15
+ "Answered": "",
16
+ "Chatting": "",
17
+ "Calling": "",
18
+ "Deleted": "",
19
+ "Spam": "",
20
+ "Init": "",
21
+ "Resolved": "",
22
+ "New": "",
23
+ "Open": "",
24
+ "Postponed": "",
25
+ "Invalid data": "",
26
+ "all rows selected except %pCount rows": "all rows selected except {pCount, plural, one {1 row} other {# rows}}",
27
+ "all rows selected": "",
28
+ "%pCount rows selected": "{pCount, plural, one {1 row} other {# rows}} selected",
29
+ "Loading...": "",
30
+ "Displaying %count of": "Displaying {count} of",
31
+ "Displaying %count of %allCount": "Displaying {count} of {allCount}",
32
+ "Loading..": "",
33
+ "many": "",
34
+ "Loading failed. Please try again later.": "",
35
+ "No results match your filter. Try broadening the search criteria.": "",
36
+ "All data loaded": "",
37
+ "Load more data": "",
38
+ "Importance": "",
39
+ "Date created - Newest": "",
40
+ "Date created - Oldest": "",
41
+ "Date changed - Newest": "",
42
+ "Date changed - Oldest": "",
43
+ "Sort by": ""
44
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "Created": "",
3
+ "Changed": "",
4
+ "No text for preview": "",
5
+ "No name": "",
6
+ "No email": "",
7
+ "No Company": "",
8
+ "No tickets found": "",
9
+ "There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.": "",
10
+ "Change filter": "",
11
+ "Configure chat button": "",
12
+ "Reload": "",
13
+ "First answer": "",
14
+ "No SLA": "",
15
+ "Answered": "",
16
+ "Chatting": "",
17
+ "Calling": "",
18
+ "Deleted": "",
19
+ "Spam": "",
20
+ "Init": "",
21
+ "Resolved": "",
22
+ "New": "",
23
+ "Open": "",
24
+ "Postponed": "",
25
+ "Invalid data": "",
26
+ "all rows selected except %pCount rows": "all rows selected except {pCount, plural, one {1 row} other {# rows}}",
27
+ "all rows selected": "",
28
+ "%pCount rows selected": "{pCount, plural, one {1 row} other {# rows}} selected",
29
+ "Loading...": "",
30
+ "Displaying %count of": "Displaying {count} of",
31
+ "Loading..": "",
32
+ "many": "",
33
+ "Displaying %count of %allCount": "Displaying {count} of {allCount}",
34
+ "Loading failed. Please try again later.": "",
35
+ "No results match your filter. Try broadening the search criteria.": "",
36
+ "All data loaded": "",
37
+ "Load more data": "",
38
+ "Importance": "",
39
+ "Date created - Newest": "",
40
+ "Date created - Oldest": "",
41
+ "Date changed - Newest": "",
42
+ "Date changed - Oldest": "",
43
+ "Sort by": ""
44
+ }
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@qualityunit/liveagent-ticket-grid",
3
3
  "private": false,
4
- "version": "0.0.60",
4
+ "version": "0.0.64",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
8
+ "prebuild": "npm run extractLocales",
8
9
  "build": "vite build",
10
+ "postbuild": "cp -r src/locales dist/",
9
11
  "preview": "vite preview",
10
- "check": "svelte-check --tsconfig ./tsconfig.json"
12
+ "check": "svelte-check --tsconfig ./tsconfig.json",
13
+ "extractLocales": "svelte-i18n extract --shallow \"src/**/*.svelte\" src/locales/en.json"
11
14
  },
12
15
  "files": [
13
16
  "dist/"
@@ -17,6 +20,7 @@
17
20
  "@tsconfig/svelte": "^5.0.2",
18
21
  "svelte": "^4.2.8",
19
22
  "svelte-check": "^3.6.2",
23
+ "svelte-i18n": "^4.0.0",
20
24
  "svelte-time": "^0.8.0",
21
25
  "tslib": "^2.6.2",
22
26
  "typescript": "^5.3.3",