@qualityunit/liveagent-ticket-grid 0.0.66 → 0.0.70
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.
- package/dist/assets/ar-SA.js +1 -0
- package/dist/assets/bg-BG.js +1 -0
- package/dist/assets/bs-BA.js +1 -0
- package/dist/assets/ca-ES.js +1 -0
- package/dist/assets/cs-CZ.js +1 -0
- package/dist/assets/da-DK.js +1 -0
- package/dist/assets/de-DE.js +1 -0
- package/dist/assets/el-GR.js +1 -0
- package/dist/assets/en-US.js +1 -1
- package/dist/assets/en.js +1 -1
- package/dist/assets/es-ES.js +1 -0
- package/dist/assets/et-EE.js +1 -0
- package/dist/assets/fa-IR.js +1 -0
- package/dist/assets/fi-FI.js +1 -0
- package/dist/assets/fil-PH.js +1 -0
- package/dist/assets/fr-FR.js +1 -0
- package/dist/assets/he-IL.js +1 -0
- package/dist/assets/hr-HR.js +1 -0
- package/dist/assets/hu-HU.js +1 -0
- package/dist/assets/id-ID.js +1 -0
- package/dist/assets/index.js +7 -7
- package/dist/assets/it-IT.js +1 -0
- package/dist/assets/ja-JP.js +1 -0
- package/dist/assets/ko-KR.js +1 -0
- package/dist/assets/lt-LT.js +1 -0
- package/dist/assets/lv-LV.js +1 -0
- package/dist/assets/me-ME.js +1 -0
- package/dist/assets/mk-MK.js +1 -0
- package/dist/assets/ms-MY.js +1 -0
- package/dist/assets/nl-NL.js +1 -0
- package/dist/assets/no-NO.js +1 -0
- package/dist/assets/pl-PL.js +1 -0
- package/dist/assets/pt-BR.js +1 -0
- package/dist/assets/ro-RO.js +1 -0
- package/dist/assets/ru-RU.js +1 -0
- package/dist/assets/sk-SK.js +1 -0
- package/dist/assets/sl-SI.js +1 -0
- package/dist/assets/sr-CS.js +1 -0
- package/dist/assets/sv-SE.js +1 -0
- package/dist/assets/th-TH.js +1 -0
- package/dist/assets/tl-PH.js +1 -0
- package/dist/assets/tr-TR.js +1 -0
- package/dist/assets/uk-UA.js +1 -0
- package/dist/assets/vi-VN.js +1 -0
- package/dist/assets/vls-BE.js +1 -0
- package/dist/assets/zh-CN.js +1 -0
- package/dist/assets/zh-TW.js +1 -0
- package/dist/locales/ar-SA.json +21 -0
- package/dist/locales/bg-BG.json +20 -0
- package/dist/locales/bs-BA.json +19 -0
- package/dist/locales/ca-ES.json +13 -0
- package/dist/locales/cs-CZ.json +20 -0
- package/dist/locales/da-DK.json +21 -0
- package/dist/locales/de-DE.json +21 -0
- package/dist/locales/el-GR.json +21 -0
- package/dist/locales/en-US.json +21 -38
- package/dist/locales/en.json +37 -38
- package/dist/locales/es-ES.json +21 -0
- package/dist/locales/et-EE.json +20 -0
- package/dist/locales/fa-IR.json +19 -0
- package/dist/locales/fi-FI.json +21 -0
- package/dist/locales/fil-PH.json +20 -0
- package/dist/locales/fr-FR.json +21 -0
- package/dist/locales/he-IL.json +15 -0
- package/dist/locales/hr-HR.json +19 -0
- package/dist/locales/hu-HU.json +21 -0
- package/dist/locales/id-ID.json +19 -0
- package/dist/locales/it-IT.json +21 -0
- package/dist/locales/ja-JP.json +20 -0
- package/dist/locales/ko-KR.json +18 -0
- package/dist/locales/lt-LT.json +20 -0
- package/dist/locales/lv-LV.json +21 -0
- package/dist/locales/me-ME.json +19 -0
- package/dist/locales/mk-MK.json +3 -0
- package/dist/locales/ms-MY.json +11 -0
- package/dist/locales/nl-NL.json +21 -0
- package/dist/locales/no-NO.json +20 -0
- package/dist/locales/pl-PL.json +20 -0
- package/dist/locales/pt-BR.json +21 -0
- package/dist/locales/ro-RO.json +20 -0
- package/dist/locales/ru-RU.json +20 -0
- package/dist/locales/sk-SK.json +28 -0
- package/dist/locales/sl-SI.json +21 -0
- package/dist/locales/sr-CS.json +21 -0
- package/dist/locales/sv-SE.json +19 -0
- package/dist/locales/th-TH.json +4 -0
- package/dist/locales/tl-PH.json +21 -0
- package/dist/locales/tr-TR.json +19 -0
- package/dist/locales/uk-UA.json +16 -0
- package/dist/locales/vi-VN.json +21 -0
- package/dist/locales/vls-BE.json +16 -0
- package/dist/locales/zh-CN.json +20 -0
- package/dist/locales/zh-TW.json +20 -0
- package/package.json +1 -1
package/dist/assets/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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.
|
|
1
|
+
var or=Object.defineProperty;var sr=(e,t,n)=>t in e?or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(sr(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 o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function X(){}function gt(e,t){for(const n in t)e[n]=t[n];return e}function hi(e){return e()}function An(){return Object.create(null)}function Re(e){e.forEach(hi)}function Ft(e){return typeof e=="function"}function te(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Lt;function Dt(e,t){return e===t?!0:(Lt||(Lt=document.createElement("a")),Lt.href=t,e===Lt.href)}function ar(e){return Object.keys(e).length===0}function vn(e,...t){if(e==null){for(const i of t)i(void 0);return X}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ke(e){let t;return vn(e,n=>t=n)(),t}function K(e,t,n){e.$$.on_destroy.push(vn(t,n))}function bt(e,t,n,i){if(e){const r=mi(e,t,n,i);return e[0](r)}}function mi(e,t,n,i){return e[1]&&i?gt(n.ctx.slice(),e[1](i(t))):n.ctx}function wt(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 o=[],s=Math.max(t.dirty.length,r.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|r[a];return o}return t.dirty|r}return t.dirty}function Et(e,t,n,i,r,o){if(r){const s=mi(t,n,i,o);e.p(s,r)}}function Tt(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 On(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 ce(e){return e??""}function ur(e,t,n){return e.set(n),t}const cr=["",!0,1,"true","contenteditable"];function w(e,t){e.appendChild(t)}function ue(e,t,n){const i=fr(e);if(!i.getElementById(t)){const r=x("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 w(e.head||e,t),t.sheet}function N(e,t,n){e.insertBefore(t,n||null)}function R(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 x(e){return document.createElement(e)}function j(e){return document.createTextNode(e)}function V(){return j(" ")}function xt(){return j("")}function he(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function on(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function v(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const hr=["width","height"];function Rn(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]:v(e,i,t[i])}function mr(e){return Array.from(e.childNodes)}function se(e,t){t=""+t,e.data!==t&&(e.data=t)}function gr(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function pr(e,t,n){~cr.indexOf(n)?gr(e,t):se(e,t)}function Nn(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 In(e,t,n){e.classList.toggle(t,!!n)}function _r(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function vr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let pt;function ft(e){pt=e}function gi(){if(!pt)throw new Error("Function called outside component initialization");return pt}function $t(e){gi().$$.on_mount.push(e)}function pi(){const e=gi();return(t,n,{cancelable:i=!1}={})=>{const r=e.$$.callbacks[t];if(r){const o=_r(t,n,{cancelable:i});return r.slice().forEach(s=>{s.call(e,o)}),!o.defaultPrevented}return!0}}const Ue=[],Je=[];let Ke=[];const Dn=[],yr=Promise.resolve();let sn=!1;function br(){sn||(sn=!0,yr.then(Me))}function an(e){Ke.push(e)}const Yt=new Set;let $e=0;function Me(){if($e!==0)return;const e=pt;do{try{for(;$e<Ue.length;){const t=Ue[$e];$e++,ft(t),wr(t.$$)}}catch(t){throw Ue.length=0,$e=0,t}for(ft(null),Ue.length=0,$e=0;Je.length;)Je.pop()();for(let t=0;t<Ke.length;t+=1){const n=Ke[t];Yt.has(n)||(Yt.add(n),n())}Ke.length=0}while(Ue.length);for(;Dn.length;)Dn.pop()();sn=!1,Yt.clear(),ft(e)}function wr(e){if(e.fragment!==null){e.update(),Re(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(an)}}function Er(e){const t=[],n=[];Ke.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),Ke=t}const Ot=new Set;let Be;function be(){Be={r:0,c:[],p:Be}}function we(){Be.r||Re(Be.c),Be=Be.p}function T(e,t){e&&e.i&&(Ot.delete(e),e.i(t))}function k(e,t,n,i){if(e&&e.o){if(Ot.has(e))return;Ot.add(e),Be.c.push(()=>{Ot.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Ze(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function _i(e,t){const n={},i={},r={$$scope:1};let o=e.length;for(;o--;){const s=e[o],a=t[o];if(a){for(const u in s)u in a||(i[u]=1);for(const u in a)r[u]||(n[u]=a[u],r[u]=1);e[o]=a}else for(const u in s)r[u]=1}for(const s in i)s in n||(n[s]=void 0);return n}function Tr(e){return typeof e=="object"&&e!==null?e:{}}function G(e){e&&e.c()}function F(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),an(()=>{const o=e.$$.on_mount.map(hi).filter(Ft);e.$$.on_destroy?e.$$.on_destroy.push(...o):Re(o),e.$$.on_mount=[]}),r.forEach(an)}function $(e,t){const n=e.$$;n.fragment!==null&&(Er(n.after_update),Re(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function xr(e,t){e.$$.dirty[0]===-1&&(Ue.push(e),br(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,r,o,s=null,a=[-1]){const u=pt;ft(e);const l=e.$$={fragment:null,ctx:[],props:o,update:X,not_equal:r,bound:An(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:An(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(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&&xr(e,f)),d}):[],l.update(),c=!0,Re(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=mr(t.target);l.fragment&&l.fragment.l(f),f.forEach(R)}else l.fragment&&l.fragment.c();t.intro&&T(e.$$.fragment),F(e,t.target,t.anchor),Me()}ft(u)}let vi;typeof HTMLElement=="function"&&(vi=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(s){return()=>{let a;return{c:function(){a=x("slot"),s!=="default"&&v(a,"name",s)},m:function(c,f){N(c,a,f)},d:function(c){c&&R(a)}}}};var t=n;if(await Promise.resolve(),!this.$$cn)return;const i={},r=vr(this);for(const s of this.$$s)s in r&&(i[s]=[n(s)]);for(const s of this.attributes){const a=this.$$g_p(s.name);a in this.$$d||(this.$$d[a]=Rt(a,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const a=Rt(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const a of this.$$l[s]){const u=this.$$c.$on(s,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]=Rt(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 Rt(e,t,n,i){var o;const r=(o=n[e])==null?void 0:o.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 kr(e,t,n,i,r,o){let s=class extends vi{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(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var l;u=Rt(a,u,t),this.$$d[a]=u,(l=this.$$c)==null||l.$set({[a]:u})}})}),i.forEach(a=>{Object.defineProperty(s.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),o&&(s=o(s)),e.element=s,s}class re{constructor(){ve(this,"$$");ve(this,"$$set")}$destroy(){$(this,1),this.$destroy=X}$on(t,n){if(!Ft(n))return X;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 Lr(e){ue(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 Sr(e){let t,n;return{c(){t=x("span"),v(t,"class",n=ce(`Icon ${e[0]} ${e[1]}`)+" svelte-uqg1eo")},m(i,r){N(i,t,r)},p(i,[r]){r&3&&n!==(n=ce(`Icon ${i[0]} ${i[1]}`)+" svelte-uqg1eo")&&v(t,"class",n)},i:X,o:X,d(i){i&&R(t)}}}function Ar(e,t,n){let{className:i=""}=t,{iconLaClassName:r}=t;return e.$$set=o=>{"className"in o&&n(0,i=o.className),"iconLaClassName"in o&&n(1,r=o.iconLaClassName)},[i,r]}class Oe extends re{constructor(t){super(),ie(this,t,Ar,Sr,te,{className:0,iconLaClassName:1},Lr)}}const Ge=[];function Or(e,t){return{subscribe:me(e,t).subscribe}}function me(e,t=X){let n;const i=new Set;function r(a){if(te(e,a)&&(e=a,n)){const u=!Ge.length;for(const l of i)l[1](),Ge.push(l,e);if(u){for(let l=0;l<Ge.length;l+=2)Ge[l][0](Ge[l+1]);Ge.length=0}}}function o(a){r(a(e))}function s(a,u=X){const l=[a,u];return i.add(l),i.size===1&&(n=t(r,o)||X),a(e),()=>{i.delete(l),i.size===0&&n&&(n(),n=null)}}return{set:r,update:o,subscribe:s}}function tt(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 o=t.length<2;return Or(n,(s,a)=>{let u=!1;const l=[];let c=0,f=X;const d=()=>{if(c)return;f();const p=t(i?l[0]:l,s,a);o?s(p):f=Ft(p)?p:X},h=r.map((p,_)=>vn(p,y=>{l[_]=y,c&=~(1<<_),u&&d()},()=>{c|=1<<_}));return u=!0,d(),function(){Re(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 Rr=function(t){return Nr(t)&&!Ir(t)};function Nr(e){return!!e&&typeof e=="object"}function Ir(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Pr(e)}var Dr=typeof Symbol=="function"&&Symbol.for,Hr=Dr?Symbol.for("react.element"):60103;function Pr(e){return e.$$typeof===Hr}function Mr(e){return Array.isArray(e)?[]:{}}function _t(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ye(Mr(e),e,t):e}function Br(e,t,n){return e.concat(t).map(function(i){return _t(i,n)})}function Fr(e,t){if(!t.customMerge)return Ye;var n=t.customMerge(e);return typeof n=="function"?n:Ye}function $r(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Hn(e){return Object.keys(e).concat($r(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)&&Hn(e).forEach(function(r){i[r]=_t(e[r],n)}),Hn(t).forEach(function(r){Gr(e,r)||(bi(e,r)&&n.isMergeableObject(t[r])?i[r]=Fr(r,n)(e[r],t[r],n):i[r]=_t(t[r],n))}),i}function Ye(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Br,n.isMergeableObject=n.isMergeableObject||Rr,n.cloneUnlessOtherwiseSpecified=_t;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):Ur(e,t,n):_t(t,n)}Ye.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Ye(i,r,n)},{})};var Vr=Ye,zr=Vr;const Kr=Gt(zr);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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},q.apply(this,arguments)};function Wr(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,o;i<r;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||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 le;(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"})(le||(le={}));var Qe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qe||(Qe={}));function Pn(e){return e.type===le.literal}function Xr(e){return e.type===le.argument}function wi(e){return e.type===le.number}function Ei(e){return e.type===le.date}function Ti(e){return e.type===le.time}function xi(e){return e.type===le.select}function ki(e){return e.type===le.plural}function Jr(e){return e.type===le.pound}function Ci(e){return e.type===le.tag}function Li(e){return!!(e&&typeof e=="object"&&e.type===Qe.number)}function un(e){return!!(e&&typeof e=="object"&&e.type===Qe.dateTime)}var Si=/[ \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 o=r[i],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.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 Mn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ai=/^(@+)?(\+|#+)?[rs]?$/g,eo=/(\*)(0+)|(#+)(0+)|(0+)/g,Oi=/^(0+)$/;function Bn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ai,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 Ri(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 to(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)),!Oi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Fn(e){var t={},n=Ri(e);return n||t}function no(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),Fn(l))},{}));continue;case"engineering":t=q(q(q({},t),{notation:"engineering"}),r.options.reduce(function(u,l){return q(q({},u),Fn(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(eo,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(Oi.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(Mn.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Mn,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 o=r.options[0];o==="w"?t=q(q({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=q(q({},t),Bn(o)));continue}if(Ai.test(r.stem)){t=q(q({},t),Bn(r.stem));continue}var s=Ri(r.stem);s&&(t=q(q({},t),s));var a=to(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 io(e,t){for(var n="",i=0;i<e.length;i++){var r=e.charAt(i);if(r==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===r;)o++,i++;var s=1+(o&1),a=o<2?1:3+(o>>1),u="a",l=ro(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=l+n}else r==="J"?n+="H":n+=r}return n}function ro(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,oo=new RegExp("^".concat(Si.source,"*")),so=new RegExp("".concat(Si.source,"*$"));function Z(e,t){return{start:e,end:t}}var ao=!!String.prototype.startsWith&&"_a".startsWith("a",1),lo=!!String.fromCodePoint,uo=!!Object.fromEntries,co=!!String.prototype.codePointAt,fo=!!String.prototype.trimStart,ho=!!String.prototype.trimEnd,mo=!!Number.isSafeInteger,go=mo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},cn=!0;try{var po=Ii("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cn=((qt=po.exec("a"))===null||qt===void 0?void 0:qt[0])==="a"}catch{cn=!1}var $n=ao?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},fn=lo?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",r=t.length,o=0,s;r>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},Gn=uo?Object.fromEntries:function(t){for(var n={},i=0,r=t;i<r.length;i++){var o=r[i],s=o[0],a=o[1];n[s]=a}return n},Ni=co?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var r=t.charCodeAt(n),o;return r<55296||r>56319||n+1===i||(o=t.charCodeAt(n+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},_o=fo?function(t){return t.trimStart()}:function(t){return t.replace(oo,"")},vo=ho?function(t){return t.trimEnd()}:function(t){return t.replace(so,"")};function Ii(e,t){return new RegExp(e,t)}var dn;if(cn){var Un=Ii("([^\\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=Ni(t,n);if(r===void 0||Di(r)||Eo(r))break;i.push(r),n+=r>=65536?2:1}return fn.apply(void 0,i)};var yo=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 o=this.char();if(o===123){var s=this.parseArgument(t,i);if(s.err)return s;r.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),r.push({type:le.pound,location:Z(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(W.UNMATCHED_CLOSING_TAG,Z(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&hn(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;r.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;r.push(s.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:le.literal,value:"<".concat(r,"/>"),location:Z(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!hn(this.char()))return this.error(W.INVALID_TAG,Z(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return r!==l?this.error(W.UNMATCHED_CLOSING_TAG,Z(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:le.tag,value:r,children:s,location:Z(i,this.clonePosition())},err:null}:this.error(W.INVALID_TAG,Z(a,this.clonePosition())))}else return this.error(W.UNCLOSED_TAG,Z(i,this.clonePosition()))}else return this.error(W.INVALID_TAG,Z(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&wo(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(n);if(o){r+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){r+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var u=Z(i,this.clonePosition());return{val:{type:le.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!bo(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,Z(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(W.EMPTY_ARGUMENT,Z(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(W.MALFORMED_ARGUMENT,Z(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:le.argument,value:r,location:Z(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(i,this.clonePosition())):this.parseArgumentOptions(t,n,r,i);default:return this.error(W.MALFORMED_ARGUMENT,Z(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 o=this.clonePosition(),s=Z(t,o);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(t,n,i,r){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(W.EXPECT_ARGUMENT_TYPE,Z(s,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=vo(f.val);if(d.length===0)return this.error(W.EXPECT_ARGUMENT_STYLE,Z(this.clonePosition(),this.clonePosition()));var h=Z(c,this.clonePosition());l={style:d,styleLocation:h}}var p=this.tryParseArgumentClose(r);if(p.err)return p;var _=Z(r,this.clonePosition());if(l&&$n(l==null?void 0:l.style,"::",0)){var y=_o(l.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(y,l.styleLocation);return f.err?f:{val:{type:le.number,value:i,location:_,style:f.val},err:null}}else{if(y.length===0)return this.error(W.EXPECT_DATE_TIME_SKELETON,_);var g=y;this.locale&&(g=io(y,this.locale));var d={type:Qe.dateTime,pattern:g,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Yr(g):{}},E=a==="date"?le.date:le.time;return{val:{type:E,value:i,location:_,style:d},err:null}}}return{val:{type:a==="number"?le.number:a==="date"?le.date:le.time,value:i,location:_,style:(o=l==null?void 0:l.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var L=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(W.EXPECT_SELECT_ARGUMENT_OPTIONS,Z(L,q({},L)));this.bumpSpace();var O=this.parseIdentifierIfPossible(),I=0;if(a!=="select"&&O.value==="offset"){if(!this.bumpIf(":"))return this.error(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z(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(),O=this.parseIdentifierIfPossible(),I=f.val}var Y=this.tryParsePluralOrSelectOptions(t,a,n,O);if(Y.err)return Y;var p=this.tryParseArgumentClose(r);if(p.err)return p;var de=Z(r,this.clonePosition());return a==="select"?{val:{type:le.select,value:i,options:Gn(Y.val),location:de},err:null}:{val:{type:le.plural,value:i,options:Gn(Y.val),offset:I,pluralType:a==="plural"?"cardinal":"ordinal",location:de},err:null}}default:return this.error(W.INVALID_ARGUMENT_TYPE,Z(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Z(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,Z(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:Qe.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?no(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,r){for(var o,s=!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=Z(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"&&(s=!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,Z(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,i);if(p.err)return p;var _=this.tryParseArgumentClose(h);if(_.err)return _;a.push([l,{value:p.val,location:Z(h,this.clonePosition())}]),u.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,c=o.location}return a.length===0?this.error(n==="select"?W.EXPECT_SELECT_ARGUMENT_SELECTOR:W.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(W.MISSING_OTHER_CLAUSE,Z(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 o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var u=Z(r,this.clonePosition());return o?(s*=i,go(s)?{val:s,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=Ni(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($n(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 bo(e){return hn(e)||e===47}function wo(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 Eo(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 mn(e){e.forEach(function(t){if(delete t.location,xi(t)||ki(t))for(var n in t.options)delete t.options[n].location,mn(t.options[n].value);else wi(t)&&Li(t.style)||(Ei(t)||Ti(t))&&un(t.style)?delete t.style.location:Ci(t)&&mn(t.children)})}function To(e,t){t===void 0&&(t={}),t=q({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new yo(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||mn(n.val),n.val}function jt(e,t){var n=t&&t.cache?t.cache:Ao,i=t&&t.serializer?t.serializer:So,r=t&&t.strategy?t.strategy:ko;return r(e,{cache:n,serializer:i})}function xo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Hi(e,t,n,i){var r=xo(i)?i:n(i),o=t.get(r);return typeof o>"u"&&(o=e.call(this,i),t.set(r,o)),o}function Pi(e,t,n){var i=Array.prototype.slice.call(arguments,3),r=n(i),o=t.get(r);return typeof o>"u"&&(o=e.apply(this,i),t.set(r,o)),o}function bn(e,t,n,i,r){return n.bind(t,e,i,r)}function ko(e,t){var n=e.length===1?Hi:Pi;return bn(e,this,n,t.cache.create(),t.serializer)}function Co(e,t){return bn(e,this,Pi,t.cache.create(),t.serializer)}function Lo(e,t){return bn(e,this,Hi,t.cache.create(),t.serializer)}var So=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 Ao={create:function(){return new wn}},en={variadic:Co,monadic:Lo},qe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(qe||(qe={}));var Vt=function(e){Ut(t,e);function t(n,i,r){var o=e.call(this,n)||this;return o.code=i,o.originalMessage=r,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Vn=function(e){Ut(t,e);function t(n,i,r,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),qe.INVALID_VALUE,o)||this}return t}(Vt),Oo=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}(Vt),Ro=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}(Vt),pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(pe||(pe={}));function No(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==pe.literal||n.type!==pe.literal?t.push(n):i.value+=n.value,t},[])}function Io(e){return typeof e=="function"}function Nt(e,t,n,i,r,o,s){if(e.length===1&&Pn(e[0]))return[{type:pe.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var c=l[u];if(Pn(c)){a.push({type:pe.literal,value:c.value});continue}if(Jr(c)){typeof o=="number"&&a.push({type:pe.literal,value:n.getNumberFormat(t).format(o)});continue}var f=c.value;if(!(r&&f in r))throw new Ro(f,s);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"?pe.literal:pe.object,value:d});continue}if(Ei(c)){var h=typeof c.style=="string"?i.date[c.style]:un(c.style)?c.style.parsedOptions:void 0;a.push({type:pe.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:pe.literal,value:n.getDateTimeFormat(t,h).format(d)});continue}if(wi(c)){var h=typeof c.style=="string"?i.number[c.style]:Li(c.style)?c.style.parsedOptions:void 0;h&&h.scale&&(d=d*(h.scale||1)),a.push({type:pe.literal,value:n.getNumberFormat(t,h).format(d)});continue}if(Ci(c)){var p=c.children,_=c.value,y=r[_];if(!Io(y))throw new Oo(_,"function",s);var g=Nt(p,t,n,i,r,o),E=y(g.map(function(I){return I.value}));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map(function(I){return{type:typeof I=="string"?pe.literal:pe.object,value:I}}))}if(xi(c)){var L=c.options[d]||c.options.other;if(!L)throw new Vn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Nt(L.value,t,n,i,r));continue}if(ki(c)){var L=c.options["=".concat(d)];if(!L){if(!Intl.PluralRules)throw new Vt(`Intl.PluralRules is not available in this environment.
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,
|
|
3
|
+
`,qe.MISSING_INTL_API,s);var O=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));L=c.options[O]||c.options.other}if(!L)throw new Vn(c.value,d,Object.keys(c.options),s);a.push.apply(a,Nt(L.value,t,n,i,r,d-(c.offset||0)));continue}}return No(a)}function Do(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 Ho(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=Do(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 Po(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 Mi=function(){function e(t,n,i,r){var o=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=o.formatToParts(u);if(l.length===1)return l[0].value;var c=l.reduce(function(f,d){return!f.length||d.type!==pe.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 Nt(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.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 s=r||{};s.formatters;var a=Wr(s,["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=Ho(e.formats,i),this.formatters=r&&r.formatters||Po(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=To,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 Mo(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 o=n.slice(r,n.length).join(".");if(o in i){i=i[o];break}}i=i[n[r]]}else i=void 0;return i}const De={},Bo=(e,t,n)=>n&&(t in De||(De[t]={}),e in De[t]||(De[t][e]=n),n),Bi=(e,t)=>{if(t==null)return;if(t in De&&e in De[t])return De[t][e];const n=kt(t);for(let i=0;i<n.length;i++){const r=n[i],o=$o(r,e);if(o)return Bo(e,t,o)}};let En;const nt=me({});function Fo(e){return En[e]||null}function Tn(e){return e in En}function $o(e,t){if(!Tn(e))return null;const n=Fo(e);return Mo(n,t)}function Go(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 Uo(e,...t){delete De[e],nt.update(n=>(n[e]=Kr.all([n[e]||{},...t]),n))}tt([nt],([e])=>Object.keys(e));nt.subscribe(e=>En=e);const dt={};function Vo(e){dt[e]=new Set}function zo(e,t){dt[e].delete(t),dt[e].size===0&&delete dt[e]}function ht(e){return dt[e]}function Ko(e){return kt(e).map(t=>{const n=ht(t);return[t,n?[...n]:[]]}).filter(([,t])=>t.length>0)}function Ht(e){return e==null?!1:kt(e).some(t=>{var n;return(n=ht(t))==null?void 0:n.size})}function Wo(e,t){return Promise.all(t.map(i=>(zo(e,i),i().then(r=>r.default||r)))).then(i=>Uo(e,...i))}const at={};function Fi(e){if(!Ht(e))return e in at?at[e]:Promise.resolve();const t=Ko(e);return at[e]=Promise.all(t.map(([n,i])=>Wo(n,i))).then(()=>{if(Ht(e))return Fi(e);delete at[e]}),at[e]}function zn(e,t){ht(e)||Vo(e);const n=ht(e);ht(e).has(t)||(Tn(e)||nt.update(i=>(i[e]={},i)),n.add(t))}var Kn=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Jo=Object.prototype.propertyIsEnumerable,Zo=(e,t)=>{var n={};for(var i in e)Xo.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Kn)for(var i of Kn(e))t.indexOf(i)<0&&Jo.call(e,i)&&(n[i]=e[i]);return n};const Yo={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 Qo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${kt(e).join('", "')}".${Ht(He())?`
|
|
4
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;/*!
|
|
5
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const qo={fallbackLocale:null,loadingDelay:200,formats:Yo,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},ut=qo;function je(){return ut}function jo(e){const t=e,{formats:n}=t,i=Zo(t,["formats"]);let r=e.fallbackLocale;if(e.initialLocale)try{Mi.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=Qo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ut,i,{initialLocale:r}),n&&("number"in n&&Object.assign(ut.formats.number,n.number),"date"in n&&Object.assign(ut.formats.date,n.date),"time"in n&&Object.assign(ut.formats.time,n.time)),it.set(r)}const It=me(!1);var es=Object.defineProperty,ts=Object.defineProperties,ns=Object.getOwnPropertyDescriptors,Wn=Object.getOwnPropertySymbols,is=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable,Xn=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,os=(e,t)=>{for(var n in t||(t={}))is.call(t,n)&&Xn(e,n,t[n]);if(Wn)for(var n of Wn(t))rs.call(t,n)&&Xn(e,n,t[n]);return e},ss=(e,t)=>ts(e,ns(t));let gn;const Pt=me(null);function Jn(e){return e.split("-").map((t,n,i)=>i.slice(0,n+1).join("-")).reverse()}function kt(e,t=je().fallbackLocale){const n=Jn(e);return t?[...new Set([...n,...Jn(t)])]:n}function He(){return gn??void 0}Pt.subscribe(e=>{gn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const as=e=>{if(e&&Go(e)&&Ht(e)){const{loadingDelay:t}=je();let n;return typeof window<"u"&&He()!=null&&t?n=window.setTimeout(()=>It.set(!0),t):It.set(!0),Fi(e).then(()=>{Pt.set(e)}).finally(()=>{clearTimeout(n),It.set(!1)})}return Pt.set(e)},it=ss(os({},Pt),{set:as}),zt=e=>{const t=Object.create(null);return i=>{const r=JSON.stringify(i);return r in t?t[r]:t[r]=e(i)}};var ls=Object.defineProperty,Mt=Object.getOwnPropertySymbols,$i=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Zn=(e,t,n)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xn=(e,t)=>{for(var n in t||(t={}))$i.call(t,n)&&Zn(e,n,t[n]);if(Mt)for(var n of Mt(t))Gi.call(t,n)&&Zn(e,n,t[n]);return e},rt=(e,t)=>{var n={};for(var i in e)$i.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Mt)for(var i of Mt(e))t.indexOf(i)<0&&Gi.call(e,i)&&(n[i]=e[i]);return n};const vt=(e,t)=>{const{formats:n}=je();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},us=zt(e=>{var t=e,{locale:n,format:i}=t,r=rt(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)}),cs=zt(e=>{var t=e,{locale:n,format:i}=t,r=rt(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)}),fs=zt(e=>{var t=e,{locale:n,format:i}=t,r=rt(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)}),ds=(e={})=>{var t=e,{locale:n=He()}=t,i=rt(t,["locale"]);return us(xn({locale:n},i))},hs=(e={})=>{var t=e,{locale:n=He()}=t,i=rt(t,["locale"]);return cs(xn({locale:n},i))},ms=(e={})=>{var t=e,{locale:n=He()}=t,i=rt(t,["locale"]);return fs(xn({locale:n},i))},gs=zt((e,t=He())=>new Mi(e,t,je().formats,{ignoreTag:je().ignoreTag})),ps=(e,t={})=>{var n,i,r,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:u=He(),default:l}=s;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Bi(e,u);if(!c)c=(o=(r=(i=(n=je()).handleMissingMessage)==null?void 0:i.call(n,{locale:u,id:e,defaultValue:l}))!=null?r:l)!=null?o: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=gs(c,u).format(a)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},_s=(e,t)=>ms(t).format(e),vs=(e,t)=>hs(t).format(e),ys=(e,t)=>ds(t).format(e),bs=(e,t=He())=>Bi(e,t),Ee=tt([it,nt],()=>ps);tt([it],()=>_s);tt([it],()=>vs);tt([it],()=>ys);tt([it,nt],()=>bs);var Ve=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{l(i.next(c))}catch(f){s(f)}}function u(c){try{l(i.throw(c))}catch(f){s(f)}}function l(c){c.done?o(c.value):r(c.value).then(a,u)}l((i=i.apply(e,t||[])).next())})};const ws="https://localhost/api/v3".replace(/\/+$/,"");class kn{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:ws}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:()=>Ve(this,void 0,void 0,function*(){return t})}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const Es=new kn;class Kt{constructor(t=Es){this.configuration=t,this.fetchApi=(n,i)=>Ve(this,void 0,void 0,function*(){let r={url:n,init:i};for(const s of this.middleware)s.pre&&(r=(yield s.pre(Object.assign({fetch:this.fetchApi},r)))||r);let o;try{o=yield(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(s){for(const a of this.middleware)a.onError&&(o=(yield a.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:s,response:o?o.clone():void 0}))||o);if(o===void 0)throw s instanceof Error?new Cs(s,"The request failed and the interceptors did not return an alternative response"):s}for(const s of this.middleware)s.post&&(o=(yield s.post({fetch:this.fetchApi,url:r.url,init:r.init,response:o.clone()}))||o);return o}),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?Kt.jsonRegex.test(t):!1}request(t,n){return Ve(this,void 0,void 0,function*(){const{url:i,init:r}=yield this.createFetchParams(t,n),o=yield this.fetchApi(i,r);if(o&&o.status>=200&&o.status<300)return o;throw new ks(o,"Response returned an error code")})}createFetchParams(t,n){return Ve(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 o=typeof n=="function"?n:()=>Ve(this,void 0,void 0,function*(){return n}),s={method:t.method,headers:r,body:t.body,credentials:this.configuration.credentials},a=Object.assign(Object.assign({},s),yield o({init:s,context:t})),u=Object.assign(Object.assign({},a),{body:xs(a.body)||a.body instanceof URLSearchParams||Ts(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}}Kt.jsonRegex=new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i");function Ts(e){return typeof Blob<"u"&&e instanceof Blob}function xs(e){return typeof FormData<"u"&&e instanceof FormData}class ks extends Error{constructor(t,n){super(n),this.response=t,this.name="ResponseError"}}class Cs 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 m(e,t){const n=e[t];return n!=null}function Ui(e,t=""){return Object.keys(e).map(n=>Vi(n,e[n],t)).filter(n=>n.length>0).join("&")}function Vi(e,t,n=""){const i=n+(n.length?`[${e}]`:e);if(t instanceof Array){const r=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);return`${encodeURIComponent(i)}=${r}`}if(t instanceof Set){const r=Array.from(t);return Vi(e,r,n)}return t instanceof Date?`${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?Ui(t,i):`${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`}class oe{constructor(t,n=i=>i){this.raw=t,this.transformer=n}value(){return Ve(this,void 0,void 0,function*(){return this.transformer(yield this.raw.json())})}}function Ls(e){return Ss(e)}function Ss(e,t){return e==null?e:{departmentid:m(e,"departmentid")?e.departmentid:void 0,onlineStatus:m(e,"online_status")?e.online_status:void 0,presetStatus:m(e,"preset_status")?e.preset_status:void 0}}function As(e){return Os(e)}function Os(e,t){return e==null?e:{agentid:m(e,"agentid")?e.agentid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,username:m(e,"username")?e.username:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,roleid:m(e,"roleid")?e.roleid:void 0,departmentsStatuses:m(e,"departments_statuses")?e.departments_statuses.map(Ls):void 0,twofa:m(e,"twofa")?e.twofa:void 0,lastPswdChange:m(e,"last_pswd_change")?new Date(e.last_pswd_change):void 0,userstatus:m(e,"userstatus")?e.userstatus:void 0}}function Rs(e){return Ns(e)}function Ns(e,t){return e==null?e:{conversationid:m(e,"conversationid")?e.conversationid:void 0,datechanged:m(e,"datechanged")?new Date(e.datechanged):void 0,status:m(e,"status")?e.status:void 0,preview:m(e,"preview")?e.preview:void 0,subject:m(e,"subject")?e.subject:void 0,departmentname:m(e,"departmentname")?e.departmentname:void 0,agentname:m(e,"agentname")?e.agentname:void 0,tags:m(e,"tags")?e.tags:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,emails:m(e,"emails")?e.emails:void 0,city:m(e,"city")?e.city:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,rstatus:m(e,"rstatus")?e.rstatus:void 0,statusdatestarted:m(e,"statusdatestarted")?new Date(e.statusdatestarted):void 0,chatOrder:m(e,"chat_order")?e.chat_order:void 0}}function Is(e){return Ds(e)}function Ds(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,name:m(e,"name")?e.name:void 0,type:m(e,"type")?e.type:void 0,onlineCode:m(e,"online_code")?e.online_code:void 0,offlineCode:m(e,"offline_code")?e.offline_code:void 0,onlineCodeCss:m(e,"online_code_css")?e.online_code_css:void 0,offlineCodeCss:m(e,"offline_code_css")?e.offline_code_css:void 0,provide:m(e,"provide")?e.provide:void 0,impressions:m(e,"impressions")?e.impressions:void 0,tickets:m(e,"tickets")?e.tickets:void 0,status:m(e,"status")?e.status:void 0,lastDisplayTime:m(e,"last_display_time")?e.last_display_time:void 0,lastDisplayUrl:m(e,"last_display_url")?e.last_display_url:void 0}}function xe(e){return Hs(e)}function Hs(e,t){return e==null?e:{count:m(e,"count")?e.count:void 0}}function Ps(e){return Ms(e)}function Ms(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,name:m(e,"name")?e.name:void 0,agentCount:m(e,"agent_count")?e.agent_count:void 0}}function Bs(e){return Fs(e)}function Fs(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,logid:m(e,"logid")?e.logid:void 0,line:m(e,"line")?e.line:void 0,filename:m(e,"filename")?e.filename:void 0,created:m(e,"created")?e.created:void 0,level:m(e,"level")?e.level:void 0,type:m(e,"type")?e.type:void 0,message:m(e,"message")?e.message:void 0,ip:m(e,"ip")?e.ip:void 0,groupid:m(e,"groupid")?e.groupid:void 0}}function $s(e){return Gs(e)}function Gs(e,t){return e==null?e:{agentid:m(e,"agentid")?e.agentid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,chats:m(e,"chats")?e.chats:void 0}}function Us(e){return Vs(e)}function Vs(e,t){return e==null?e:{name:m(e,"name")?e.name:void 0,code:m(e,"code")?e.code:void 0,engName:m(e,"eng_name")?e.eng_name:void 0,translated:m(e,"translated")?e.translated:void 0,isDefault:m(e,"is_default")?e.is_default:void 0,active:m(e,"active")?e.active:void 0,isCustom:m(e,"is_custom")?e.is_custom:void 0,isBuiltIn:m(e,"is_builtIn")?e.is_builtIn:void 0}}function zs(e){return Ks(e)}function Ks(e,t){return e==null?e:{codeName:m(e,"code_name")?e.code_name:void 0,name:m(e,"name")?e.name:void 0,description:m(e,"description")?e.description:void 0,active:m(e,"active")?e.active:void 0,help:m(e,"help")?e.help:void 0,multiple:m(e,"multiple")?e.multiple:void 0,configFile:m(e,"config_file")?e.config_file:void 0,price:m(e,"price")?e.price:void 0,legacyIntegration:m(e,"legacy_integration")?e.legacy_integration:void 0}}function nn(e){return Ws(e)}function Ws(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,conversationid:m(e,"conversationid")?e.conversationid:void 0,code:m(e,"code")?e.code:void 0,slaTicketId:m(e,"sla_ticket_id")?e.sla_ticket_id:void 0,departmentid:m(e,"departmentid")?e.departmentid:void 0,departmentName:m(e,"department_name")?e.department_name:void 0,levelid:m(e,"levelid")?e.levelid:void 0,slaLevelName:m(e,"sla_level_name")?e.sla_level_name:void 0,sla:m(e,"sla")?e.sla:void 0,dateCreated:m(e,"date_created")?e.date_created:void 0,dateClosed:m(e,"date_closed")?e.date_closed:void 0,dateDue:m(e,"date_due")?e.date_due:void 0,slaLevelId:m(e,"sla_level_id")?e.sla_level_id:void 0,slaType:m(e,"sla_type")?new Date(e.sla_type):void 0,agentid:m(e,"agentid")?e.agentid:void 0,agentFirstname:m(e,"agent_firstname")?e.agent_firstname:void 0,agentLastname:m(e,"agent_lastname")?e.agent_lastname:void 0,agentAvatarUrl:m(e,"agent_avatar_url")?e.agent_avatar_url:void 0,reqContactid:m(e,"req_contactid")?e.req_contactid:void 0,reqFirstname:m(e,"req_firstname")?e.req_firstname:void 0,reqLastname:m(e,"req_lastname")?e.req_lastname:void 0,reqSystemname:m(e,"req_systemname")?e.req_systemname:void 0,reqContactName:m(e,"req_contactName")?e.req_contactName:void 0,reqAvatarUrl:m(e,"req_avatar_url")?e.req_avatar_url:void 0}}function Qn(e){return Xs(e)}function Xs(e,t){return e==null?e:{tagid:m(e,"tagid")?e.tagid:void 0,name:m(e,"name")?e.name:void 0,type:m(e,"type")?e.type:void 0,color:m(e,"color")?e.color:void 0,backgroundcolor:m(e,"backgroundcolor")?e.backgroundcolor:void 0,isPublic:m(e,"is_public")?e.is_public:void 0}}function zi(e){return Js(e)}function Js(e,t){return e==null?e:{conversationid:m(e,"conversationid")?e.conversationid:void 0,code:m(e,"code")?e.code:void 0,datecreated:m(e,"datecreated")?new Date(e.datecreated):void 0,datechanged:m(e,"datechanged")?new Date(e.datechanged):void 0,dateresolved:m(e,"dateresolved")?new Date(e.dateresolved):void 0,statuschanged:m(e,"statuschanged")?new Date(e.statuschanged):void 0,rorder:m(e,"rorder")?e.rorder:void 0,datedue:m(e,"datedue")?new Date(e.datedue):void 0,datereopen:m(e,"datereopen")?new Date(e.datereopen):void 0,status:m(e,"status")?e.status:void 0,channelType:m(e,"channel_type")?e.channel_type:void 0,departmentid:m(e,"departmentid")?e.departmentid:void 0,agentid:m(e,"agentid")?e.agentid:void 0,preview:m(e,"preview")?e.preview:void 0,subject:m(e,"subject")?e.subject:void 0,departmentname:m(e,"departmentname")?e.departmentname:void 0,agentname:m(e,"agentname")?e.agentname:void 0,tags:m(e,"tags")?e.tags:void 0,messagegroupsIn:m(e,"messagegroups_in")?e.messagegroups_in:void 0,messagegroupsOut:m(e,"messagegroups_out")?e.messagegroups_out:void 0,contactid:m(e,"contactid")?e.contactid:void 0,parentContactid:m(e,"parent_contactid")?e.parent_contactid:void 0,firstname:m(e,"firstname")?e.firstname:void 0,lastname:m(e,"lastname")?e.lastname:void 0,systemName:m(e,"system_name")?e.system_name:void 0,emails:m(e,"emails")?e.emails:void 0,phones:m(e,"phones")?e.phones:void 0,jobPosition:m(e,"job_position")?e.job_position:void 0,contactType:m(e,"contact_type")?e.contact_type:void 0,city:m(e,"city")?e.city:void 0,countrycode:m(e,"countrycode")?e.countrycode:void 0,timeOffset:m(e,"time_offset")?e.time_offset:void 0,gender:m(e,"gender")?e.gender:void 0,levelid:m(e,"levelid")?e.levelid:void 0,groups:m(e,"groups")?e.groups:void 0,contactStatus:m(e,"contact_status")?e.contact_status:void 0,company:m(e,"company")?e.company:void 0,avatarUrl:m(e,"avatar_url")?e.avatar_url:void 0,userid:m(e,"userid")?e.userid:void 0,roleid:m(e,"roleid")?e.roleid:void 0,userstatus:m(e,"userstatus")?e.userstatus:void 0,accountuserstatus:m(e,"accountuserstatus")?e.accountuserstatus:void 0,description:m(e,"description")?e.description:void 0,note:m(e,"note")?e.note:void 0,lastActivity:m(e,"last_activity")?new Date(e.last_activity):void 0,tagnames:m(e,"tagnames")?e.tagnames:void 0,groupnames:m(e,"groupnames")?e.groupnames:void 0}}function Zs(e){return Ys(e)}function Ys(e,t){return e==null?e:{cursor:m(e,"cursor")?e.cursor:void 0,rows:m(e,"rows")?e.rows.map(zi):void 0}}function Qs(e){return qs(e)}function qs(e,t){return e==null?e:{id:m(e,"id")?e.id:void 0,agentid:m(e,"agentid")?e.agentid:void 0,agent:m(e,"agent")?e.agent:void 0,conversationid:m(e,"conversationid")?e.conversationid:void 0,ticket:m(e,"ticket")?e.ticket:void 0,parentContactid:m(e,"parent_contactid")?e.parent_contactid:void 0,company:m(e,"company")?e.company:void 0,contactid:m(e,"contactid")?e.contactid:void 0,customer:m(e,"customer")?e.customer:void 0,customerFirstname:m(e,"customer_firstname")?e.customer_firstname:void 0,customerLastname:m(e,"customer_lastname")?e.customer_lastname:void 0,customerSystemname:m(e,"customer_systemname")?e.customer_systemname:void 0,agentTicket:m(e,"agent_ticket")?e.agent_ticket:void 0,reportdate:m(e,"reportdate")?e.reportdate:void 0,reportedtime:m(e,"reportedtime")?e.reportedtime:void 0,reportedtimeHhmmss:m(e,"reportedtime_hhmmss")?e.reportedtime_hhmmss:void 0,spenttime:m(e,"spenttime")?e.spenttime:void 0,dateinvoiced:m(e,"dateinvoiced")?e.dateinvoiced:void 0,note:m(e,"note")?e.note:void 0,type:m(e,"type")?e.type:void 0}}var H=globalThis&&globalThis.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{l(i.next(c))}catch(f){s(f)}}function u(c){try{l(i.throw(c))}catch(f){s(f)}}function l(c){c.done?o(c.value):r(c.value).then(a,u)}l((i=i.apply(e,t||[])).next())})};class Ki extends Kt{getAgentsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/agents",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(As))})}getAgentsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListRaw(t,n)).value()})}getAgentsGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/agents/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getAgentsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getAgentsGridListCountRaw(t,n)).value()})}getCallsSlaLogGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/calls/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(nn))})}getCallsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListRaw(t,n)).value()})}getCallsSlaLogGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/calls/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getCallsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCallsSlaLogGridListCountRaw(t,n)).value()})}getChatsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/chats",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Rs))})}getChatsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListRaw(t,n)).value()})}getChatsGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/chats/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getChatsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsGridListCountRaw(t,n)).value()})}getChatsSlaLogGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/chats/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(nn))})}getChatsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListRaw(t,n)).value()})}getChatsSlaLogGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/chats/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getChatsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getChatsSlaLogGridListCountRaw(t,n)).value()})}getContactWidgetsCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/contact-widgets/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getContactWidgetsCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsCountRaw(t,n)).value()})}getContactWidgetsListRaw(t,n){return H(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 o=yield this.request({path:"/grid/contact-widgets",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Is))})}getContactWidgetsList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getContactWidgetsListRaw(t,n)).value()})}getCustomerGroupsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/customer_groups",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Qn))})}getCustomerGroupsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getCustomerGroupsGridListRaw(t,n)).value()})}getDepartmensGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/departments/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getDepartmensGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getDepartmensGridListCountRaw(t,n)).value()})}getDepartmentsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/departments",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Ps))})}getDepartmentsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getDepartmentsGridListRaw(t,n)).value()})}getEventLogsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/eventlogs",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Bs))})}getEventLogsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListRaw(t,n)).value()})}getEventLogsGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/eventlogs/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getEventLogsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getEventLogsGridListCountRaw(t,n)).value()})}getInviteAgentsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/{departmentId}/invite/agents".replace("{departmentId}",encodeURIComponent(String(t.departmentId))),method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map($s))})}getInviteAgentsGridList(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getInviteAgentsGridListRaw(t,n)).value()})}getLanguagesGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/languages",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Us))})}getLanguagesGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListRaw(t,n)).value()})}getLanguagesGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/languages/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getLanguagesGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getLanguagesGridListCountRaw(t,n)).value()})}getPlugindGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/plugins",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(zs))})}getPlugindGridList(t,n){return H(this,void 0,void 0,function*(){return yield(yield this.getPlugindGridListRaw(t,n)).value()})}getTagsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/tags",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Qn))})}getTagsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTagsGridListRaw(t,n)).value()})}getTicketsGridDatasetRaw(t,n){return H(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 o=yield this.request({path:"/grid/tickets_new",method:"GET",headers:r,query:i},n);return new oe(o,s=>Zs(s))})}getTicketsGridDataset(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridDatasetRaw(t,n)).value()})}getTicketsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/tickets",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(zi))})}getTicketsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListRaw(t,n)).value()})}getTicketsGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/tickets/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTicketsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsGridListCountRaw(t,n)).value()})}getTicketsSlaLogGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/tickets/sla",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(nn))})}getTicketsSlaLogGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListRaw(t,n)).value()})}getTicketsSlaLogGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/tickets/sla/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTicketsSlaLogGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTicketsSlaLogGridListCountRaw(t,n)).value()})}getTimeReportsGridListRaw(t,n){return H(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 o=yield this.request({path:"/grid/reports/time",method:"GET",headers:r,query:i},n);return new oe(o,s=>s.map(Qs))})}getTimeReportsGridList(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListRaw(t,n)).value()})}getTimeReportsGridListCountRaw(t,n){return H(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 o=yield this.request({path:"/grid/reports/time/count",method:"GET",headers:r,query:i},n);return new oe(o,s=>xe(s))})}getTimeReportsGridListCount(t={},n){return H(this,void 0,void 0,function*(){return yield(yield this.getTimeReportsGridListCountRaw(t,n)).value()})}}const qn={Asc:"ASC",Desc:"DESC"},lt={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"},js={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=me(!1),Cn=me([]),Bt=me(null),yt=me(null),Xe=me(!1),mt=me(!1),Wi=me({}),ye=me([]),Xi=me(null),Fe=me(null),Wt=me(!0),Ln=me(js.Rorder),ea="modulepreload",ta=function(e){return"/"+e},jn={},b=function(t,n,i){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=ta(o),o in jn)return;jn[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let c=r.length-1;c>=0;c--){const f=r[c];if(f.href===o&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const l=document.createElement("link");if(l.rel=s?"stylesheet":ea,s||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),s)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},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,zn(rn,()=>ei(Object.assign({"../../locales/ar-SA.json":()=>b(()=>import("./ar-SA.js"),[]),"../../locales/bg-BG.json":()=>b(()=>import("./bg-BG.js"),[]),"../../locales/bs-BA.json":()=>b(()=>import("./bs-BA.js"),[]),"../../locales/ca-ES.json":()=>b(()=>import("./ca-ES.js"),[]),"../../locales/cs-CZ.json":()=>b(()=>import("./cs-CZ.js"),[]),"../../locales/da-DK.json":()=>b(()=>import("./da-DK.js"),[]),"../../locales/de-DE.json":()=>b(()=>import("./de-DE.js"),[]),"../../locales/el-GR.json":()=>b(()=>import("./el-GR.js"),[]),"../../locales/en-US.json":()=>b(()=>import("./en-US.js"),[]),"../../locales/en.json":()=>b(()=>import("./en.js"),[]),"../../locales/es-ES.json":()=>b(()=>import("./es-ES.js"),[]),"../../locales/et-EE.json":()=>b(()=>import("./et-EE.js"),[]),"../../locales/fa-IR.json":()=>b(()=>import("./fa-IR.js"),[]),"../../locales/fi-FI.json":()=>b(()=>import("./fi-FI.js"),[]),"../../locales/fil-PH.json":()=>b(()=>import("./fil-PH.js"),[]),"../../locales/fr-FR.json":()=>b(()=>import("./fr-FR.js"),[]),"../../locales/he-IL.json":()=>b(()=>import("./he-IL.js"),[]),"../../locales/hr-HR.json":()=>b(()=>import("./hr-HR.js"),[]),"../../locales/hu-HU.json":()=>b(()=>import("./hu-HU.js"),[]),"../../locales/id-ID.json":()=>b(()=>import("./id-ID.js"),[]),"../../locales/it-IT.json":()=>b(()=>import("./it-IT.js"),[]),"../../locales/ja-JP.json":()=>b(()=>import("./ja-JP.js"),[]),"../../locales/ko-KR.json":()=>b(()=>import("./ko-KR.js"),[]),"../../locales/lt-LT.json":()=>b(()=>import("./lt-LT.js"),[]),"../../locales/lv-LV.json":()=>b(()=>import("./lv-LV.js"),[]),"../../locales/me-ME.json":()=>b(()=>import("./me-ME.js"),[]),"../../locales/mk-MK.json":()=>b(()=>import("./mk-MK.js"),[]),"../../locales/ms-MY.json":()=>b(()=>import("./ms-MY.js"),[]),"../../locales/nl-NL.json":()=>b(()=>import("./nl-NL.js"),[]),"../../locales/no-NO.json":()=>b(()=>import("./no-NO.js"),[]),"../../locales/pl-PL.json":()=>b(()=>import("./pl-PL.js"),[]),"../../locales/pt-BR.json":()=>b(()=>import("./pt-BR.js"),[]),"../../locales/ro-RO.json":()=>b(()=>import("./ro-RO.js"),[]),"../../locales/ru-RU.json":()=>b(()=>import("./ru-RU.js"),[]),"../../locales/sk-SK.json":()=>b(()=>import("./sk-SK.js"),[]),"../../locales/sl-SI.json":()=>b(()=>import("./sl-SI.js"),[]),"../../locales/sr-CS.json":()=>b(()=>import("./sr-CS.js"),[]),"../../locales/sv-SE.json":()=>b(()=>import("./sv-SE.js"),[]),"../../locales/th-TH.json":()=>b(()=>import("./th-TH.js"),[]),"../../locales/tl-PH.json":()=>b(()=>import("./tl-PH.js"),[]),"../../locales/tr-TR.json":()=>b(()=>import("./tr-TR.js"),[]),"../../locales/uk-UA.json":()=>b(()=>import("./uk-UA.js"),[]),"../../locales/vi-VN.json":()=>b(()=>import("./vi-VN.js"),[]),"../../locales/vls-BE.json":()=>b(()=>import("./vls-BE.js"),[]),"../../locales/zh-CN.json":()=>b(()=>import("./zh-CN.js"),[]),"../../locales/zh-TW.json":()=>b(()=>import("./zh-TW.js"),[])}),`../../locales/${rn}.json`)),zn(Se.locale,()=>ei(Object.assign({"../../locales/ar-SA.json":()=>b(()=>import("./ar-SA.js"),[]),"../../locales/bg-BG.json":()=>b(()=>import("./bg-BG.js"),[]),"../../locales/bs-BA.json":()=>b(()=>import("./bs-BA.js"),[]),"../../locales/ca-ES.json":()=>b(()=>import("./ca-ES.js"),[]),"../../locales/cs-CZ.json":()=>b(()=>import("./cs-CZ.js"),[]),"../../locales/da-DK.json":()=>b(()=>import("./da-DK.js"),[]),"../../locales/de-DE.json":()=>b(()=>import("./de-DE.js"),[]),"../../locales/el-GR.json":()=>b(()=>import("./el-GR.js"),[]),"../../locales/en-US.json":()=>b(()=>import("./en-US.js"),[]),"../../locales/en.json":()=>b(()=>import("./en.js"),[]),"../../locales/es-ES.json":()=>b(()=>import("./es-ES.js"),[]),"../../locales/et-EE.json":()=>b(()=>import("./et-EE.js"),[]),"../../locales/fa-IR.json":()=>b(()=>import("./fa-IR.js"),[]),"../../locales/fi-FI.json":()=>b(()=>import("./fi-FI.js"),[]),"../../locales/fil-PH.json":()=>b(()=>import("./fil-PH.js"),[]),"../../locales/fr-FR.json":()=>b(()=>import("./fr-FR.js"),[]),"../../locales/he-IL.json":()=>b(()=>import("./he-IL.js"),[]),"../../locales/hr-HR.json":()=>b(()=>import("./hr-HR.js"),[]),"../../locales/hu-HU.json":()=>b(()=>import("./hu-HU.js"),[]),"../../locales/id-ID.json":()=>b(()=>import("./id-ID.js"),[]),"../../locales/it-IT.json":()=>b(()=>import("./it-IT.js"),[]),"../../locales/ja-JP.json":()=>b(()=>import("./ja-JP.js"),[]),"../../locales/ko-KR.json":()=>b(()=>import("./ko-KR.js"),[]),"../../locales/lt-LT.json":()=>b(()=>import("./lt-LT.js"),[]),"../../locales/lv-LV.json":()=>b(()=>import("./lv-LV.js"),[]),"../../locales/me-ME.json":()=>b(()=>import("./me-ME.js"),[]),"../../locales/mk-MK.json":()=>b(()=>import("./mk-MK.js"),[]),"../../locales/ms-MY.json":()=>b(()=>import("./ms-MY.js"),[]),"../../locales/nl-NL.json":()=>b(()=>import("./nl-NL.js"),[]),"../../locales/no-NO.json":()=>b(()=>import("./no-NO.js"),[]),"../../locales/pl-PL.json":()=>b(()=>import("./pl-PL.js"),[]),"../../locales/pt-BR.json":()=>b(()=>import("./pt-BR.js"),[]),"../../locales/ro-RO.json":()=>b(()=>import("./ro-RO.js"),[]),"../../locales/ru-RU.json":()=>b(()=>import("./ru-RU.js"),[]),"../../locales/sk-SK.json":()=>b(()=>import("./sk-SK.js"),[]),"../../locales/sl-SI.json":()=>b(()=>import("./sl-SI.js"),[]),"../../locales/sr-CS.json":()=>b(()=>import("./sr-CS.js"),[]),"../../locales/sv-SE.json":()=>b(()=>import("./sv-SE.js"),[]),"../../locales/th-TH.json":()=>b(()=>import("./th-TH.js"),[]),"../../locales/tl-PH.json":()=>b(()=>import("./tl-PH.js"),[]),"../../locales/tr-TR.json":()=>b(()=>import("./tr-TR.js"),[]),"../../locales/uk-UA.json":()=>b(()=>import("./uk-UA.js"),[]),"../../locales/vi-VN.json":()=>b(()=>import("./vi-VN.js"),[]),"../../locales/vls-BE.json":()=>b(()=>import("./vls-BE.js"),[]),"../../locales/zh-CN.json":()=>b(()=>import("./zh-CN.js"),[]),"../../locales/zh-TW.json":()=>b(()=>import("./zh-TW.js"),[])}),`../../locales/${Se.locale}.json`)),jo({fallbackLocale:rn,initialLocale:Se.locale}))}function ra(e){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function At(e){return ra(new Date(e))}function oa(){return Se.dateFormat.toUpperCase()}function sa(){return Se.timeFormat}function aa(){return oa()+" "+sa()}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){ue(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=x("span"),i=j(n),v(t,"class","text svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&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&&R(t)}}}function ma(e){let t,n=e[5]("Displaying %count of",{values:{count:ze(e[7].length)}})+"",i,r,o,s=(e[1]?e[5]("Loading..."):e[5]("many"))+"",a,u,l,c;return{c(){t=x("span"),i=j(n),r=V(),o=x("span"),a=j(s),v(t,"class","text svelte-mupm4a"),v(o,"class",u=ce(e[2])+" svelte-mupm4a")},m(f,d){N(f,t,d),w(t,i),N(f,r,d),N(f,o,d),w(o,a),l||(c=he(o,"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&&s!==(s=(f[1]?f[5]("Loading..."):f[5]("many"))+"")&&se(a,s),d&4&&u!==(u=ce(f[2])+" svelte-mupm4a")&&v(o,"class",u)},d(f){f&&(R(t),R(r),R(o)),l=!1,c()}}}function ga(e){let t,n=e[5]("Loading...")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","text svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&32&&n!==(n=r[5]("Loading...")+"")&&se(i,n)},d(r){r&&R(t)}}}function pa(e){let t;function n(o,s){return o[3]?va:_a}let i=n(e),r=i(e);return{c(){r.c(),t=xt()},m(o,s){r.m(o,s),N(o,t,s)},p(o,s){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t.parentNode,t)))},d(o){o&&R(t),r.d(o)}}}function _a(e){let t,n=e[5]("%pCount rows selected",{values:{pCount:e[4].length}})+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&48&&n!==(n=r[5]("%pCount rows selected",{values:{pCount:r[4].length}})+"")&&se(i,n)},d(r){r&&R(t)}}}function va(e){let t;function n(o,s){return o[4].length>0?ba:ya}let i=n(e),r=i(e);return{c(){r.c(),t=xt()},m(o,s){r.m(o,s),N(o,t,s)},p(o,s){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t.parentNode,t)))},d(o){o&&R(t),r.d(o)}}}function ya(e){let t,n=e[5]("all rows selected")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&32&&n!==(n=r[5]("all rows selected")+"")&&se(i,n)},d(r){r&&R(t)}}}function ba(e){let t,n=e[5]("all rows selected except %pCount rows",{values:{pCount:e[4].length}})+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","Selection svelte-mupm4a")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&48&&n!==(n=r[5]("all rows selected except %pCount rows",{values:{pCount:r[4].length}})+"")&&se(i,n)},d(r){r&&R(t)}}}function wa(e){let t;function n(o,s){return o[3]||o[4].length>0?pa:o[6]?ga:o[0]==null?ma:ha}let i=n(e),r=i(e);return{c(){t=x("div"),r.c(),v(t,"class","Counter svelte-mupm4a")},m(o,s){N(o,t,s),r.m(t,null)},p(o,[s]){i===(i=n(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t,null)))},i:X,o:X,d(o){o&&R(t),r.d()}}}function Ea(e,t,n){let i,r,o,s,a,u,l;K(e,yt,_=>n(9,i=_)),K(e,Bt,_=>n(10,r=_)),K(e,We,_=>n(3,o=_)),K(e,Cn,_=>n(4,s=_)),K(e,Ee,_=>n(5,a=_)),K(e,Xe,_=>n(6,u=_)),K(e,ye,_=>n(7,l=_));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 _=await r.getTicketsGridListCount({filters:i,timezoneOffset:new Date().getTimezoneOffset()});n(0,c=_.count),n(1,f=!1)}return e.$$.update=()=>{e.$$.dirty&512&&i&&h()},[c,f,d,o,s,a,u,l,p,i]}class Ta extends re{constructor(t){super(),ie(this,t,Ea,wa,te,{},da)}}async function et(e=!1){if(!(ke(Xe)||!ke(Bt))&&(e&&(Fe.set(null),mt.set(!1)),!(!ke(Fe)&&ke(mt)))){Xe.set(!0);try{const n=await(await ke(Bt).getTicketsGridDatasetRaw(xa())).value();e&&ye.set([]),ye.set([...ke(ye),...n.rows]),Fe.set(n.cursor),mt.set(!0)}catch(t){Xi.set(t.toString())}Xe.set(!1)}}function xa(){return{perPage:20,sortDir:ke(Wt)?qn.Asc:qn.Desc,filters:ke(yt),sortField:ke(Ln),cursor:ke(Fe)?ke(Fe):""}}function ka(e){ue(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,o,s,a,u,l,c,f,d,h,p,_,y,g,E,L,O;return o=new Oe({props:{iconLaClassName:"la-filter",className:"FilterIcon"}}),c=new Oe({props:{iconLaClassName:"la-show"}}),h=new Ta({}),y=new Oe({props:{iconLaClassName:"la-refresh"}}),{c(){t=x("div"),n=x("div"),i=x("input"),r=V(),G(o.$$.fragment),s=V(),a=x("button"),u=j(e[0]),l=V(),G(c.$$.fragment),f=V(),d=x("div"),G(h.$$.fragment),p=V(),_=x("button"),G(y.$$.fragment),v(i,"type","checkbox"),v(i,"class","svelte-oyjuek"),v(n,"class","headCheckbox svelte-oyjuek"),v(a,"class","Sorting svelte-oyjuek"),v(_,"class","spinner svelte-oyjuek"),v(_,"title",g=e[4]("Reload")),In(_,"loading",e[3]),v(d,"class","rightPanel svelte-oyjuek"),v(t,"class","Head svelte-oyjuek")},m(I,Y){N(I,t,Y),w(t,n),w(n,i),i.checked=e[2],w(t,r),F(o,t,null),w(t,s),w(t,a),w(a,u),e[8](a),w(t,l),F(c,t,null),w(t,f),w(t,d),F(h,d,null),w(d,p),w(d,_),F(y,_,null),E=!0,L||(O=[he(i,"change",e[7]),he(i,"click",e[5]),he(a,"click",e[6]),he(_,"click",e[9])],L=!0)},p(I,[Y]){Y&4&&(i.checked=I[2]),(!E||Y&1)&&se(u,I[0]),(!E||Y&16&&g!==(g=I[4]("Reload")))&&v(_,"title",g),(!E||Y&8)&&In(_,"loading",I[3])},i(I){E||(T(o.$$.fragment,I),T(c.$$.fragment,I),T(h.$$.fragment,I),T(y.$$.fragment,I),E=!0)},o(I){k(o.$$.fragment,I),k(c.$$.fragment,I),k(h.$$.fragment,I),k(y.$$.fragment,I),E=!1},d(I){I&&R(t),$(o),e[8](null),$(c),$(h),$(y),L=!1,Re(O)}}}function La(e,t,n){let i,r,o;K(e,Wt,y=>n(12,y)),K(e,We,y=>n(2,i=y)),K(e,Xe,y=>n(3,r=y)),K(e,Ee,y=>n(4,o=y));let{currentFilter:s}=t;const a=pi();let u,l,c;function f(){We.set(!i),ye.update(y=>y.map(g=>({...g,__selected:i})))}function d(){u=l.getBoundingClientRect();let g=u.bottom-58,E=u.left-7;window.innerWidth>=768&&(E-=258),c=`position: absolute; top: ${g}px; left: ${E}px;`,a("openModal",{dialogStyles:c})}function h(){i=this.checked,We.set(i)}function p(y){Je[y?"unshift":"push"](()=>{l=y,n(1,l)})}const _=()=>et(!0);return e.$$set=y=>{"currentFilter"in y&&n(0,s=y.currentFilter)},[s,l,i,r,o,f,d,h,p,_]}class Sa extends re{constructor(t){super(),ie(this,t,La,Ca,te,{currentFilter:0},ka)}}function Ie(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 Aa=()=>{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]},Oa=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 Ra(e){ue(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 Na(e){let t;return{c(){t=x("div"),t.textContent=`${e[10]}`,v(t,"class","innerInitials svelte-hbozhk")},m(n,i){N(n,t,i)},p:X,d(n){n&&R(t)}}}function Ia(e){let t,n,i,r,o,s;return{c(){t=x("div"),n=x("img"),v(n,"alt",""),v(n,"class",ce("innerImage")+" svelte-hbozhk"),Dt(n.src,i=e[2])||v(n,"src",i),v(t,"class",r=ce(e[8]?"imageLoading":"")+" svelte-hbozhk")},m(a,u){N(a,t,u),w(t,n),o||(s=[he(n,"error",e[15]),he(n,"load",e[16])],o=!0)},p(a,u){u&4&&!Dt(n.src,i=a[2])&&v(n,"src",i),u&256&&r!==(r=ce(a[8]?"imageLoading":"")+" svelte-hbozhk")&&v(t,"class",r)},d(a){a&&R(t),o=!1,Re(s)}}}function Da(e){let t,n;function i(s,a){return s[2]&&!s[7]?Ia:Na}let r=i(e),o=r(e);return{c(){t=x("div"),o.c(),v(t,"aria-label",e[1]),v(t,"class","wrapper svelte-hbozhk"),v(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(s,a){N(s,t,a),o.m(t,null)},p(s,[a]){r===(r=i(s))&&o?o.p(s,a):(o.d(1),o=r(s),o&&(o.c(),o.m(t,null))),a&2&&v(t,"aria-label",s[1]),a&125&&n!==(n=s[0]+"--borderRadius:"+(s[6]?0:s[5])+"; --size:"+s[4]+"; --bgColor:"+s[9]+"; --src:"+s[2]+"; --textColor:"+s[3]+"; --abbrLength:"+s[11])&&v(t,"style",n)},i:X,o:X,d(s){s&&R(t),o.d()}}}function Ha(e,t,n){let{style:i=""}=t,{name:r="Avatar"}=t,{initials:o}=t,{src:s}=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?Aa():a,p=o||Oa(r),_=p.length;let y=!1,g=!0;const E=()=>n(7,y=!0),L=()=>n(8,g=!1);return e.$$set=O=>{"style"in O&&n(0,i=O.style),"name"in O&&n(1,r=O.name),"initials"in O&&n(12,o=O.initials),"src"in O&&n(2,s=O.src),"bgColor"in O&&n(13,a=O.bgColor),"textColor"in O&&n(3,u=O.textColor),"size"in O&&n(4,l=O.size),"borderRadius"in O&&n(5,c=O.borderRadius),"square"in O&&n(6,f=O.square),"randomBgColor"in O&&n(14,d=O.randomBgColor)},[i,r,s,u,l,c,f,y,g,h,p,_,o,a,d,E,L]}class Pa extends re{constructor(t){super(),ie(this,t,Ha,Da,te,{style:0,name:1,initials:12,src:2,bgColor:13,textColor:3,size:4,borderRadius:5,square:6,randomBgColor:14},Ra)}}function Ma(e){let t,n;return t=new Pa({props:{bgColor:e[0],name:e[1],src:e[2],initials:e[3],size:"40px"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.bgColor=i[0]),r&2&&(o.name=i[1]),r&4&&(o.src=i[2]),r&8&&(o.initials=i[3]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ba(e,t,n){let{bgColor:i}=t,{name:r}=t,{src:o}=t,{initials:s}=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,o=a.src),"initials"in a&&n(3,s=a.initials)},[i,r,o,s]}class Fa extends re{constructor(t){super(),ie(this,t,Ba,Ma,te,{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,o=0;r<n.length;r++,o+=8)i[o>>>5]|=n[r]<<24-o%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 o=n[r]<<16|n[r+1]<<8|n[r+2],s=0;s<4;s++)r*8+s*6<=n.length*8?i.push(e.charAt(o>>>6*(3-s)&63)):i.push("=");return i.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],r=0,o=0;r<n.length;o=++r%4)o!=0&&i.push((e.indexOf(n.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(n.charAt(r))>>>6-o*2);return i}};Qi.exports=t})();var $a=Qi.exports,_n={utf8:{stringToBytes:function(e){return _n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(_n.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=_n;/*!
|
|
6
6
|
* Determine if an object is a Buffer
|
|
7
7
|
*
|
|
8
8
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
9
9
|
* @license MIT
|
|
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
|
|
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=$a,t=ni.utf8,n=Ga,i=ni.bin,r=function(o,s){o.constructor==String?s&&s.encoding==="binary"?o=i.stringToBytes(o):o=t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var a=e.bytesToWords(o),u=o.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,_=r._gg,y=r._hh,g=r._ii,h=0;h<a.length;h+=16){var E=l,L=c,O=f,I=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=_(l,c,f,d,a[h+1],5,-165796510),d=_(d,l,c,f,a[h+6],9,-1069501632),f=_(f,d,l,c,a[h+11],14,643717713),c=_(c,f,d,l,a[h+0],20,-373897302),l=_(l,c,f,d,a[h+5],5,-701558691),d=_(d,l,c,f,a[h+10],9,38016083),f=_(f,d,l,c,a[h+15],14,-660478335),c=_(c,f,d,l,a[h+4],20,-405537848),l=_(l,c,f,d,a[h+9],5,568446438),d=_(d,l,c,f,a[h+14],9,-1019803690),f=_(f,d,l,c,a[h+3],14,-187363961),c=_(c,f,d,l,a[h+8],20,1163531501),l=_(l,c,f,d,a[h+13],5,-1444681467),d=_(d,l,c,f,a[h+2],9,-51403784),f=_(f,d,l,c,a[h+7],14,1735328473),c=_(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=g(l,c,f,d,a[h+0],6,-198630844),d=g(d,l,c,f,a[h+7],10,1126891415),f=g(f,d,l,c,a[h+14],15,-1416354905),c=g(c,f,d,l,a[h+5],21,-57434055),l=g(l,c,f,d,a[h+12],6,1700485571),d=g(d,l,c,f,a[h+3],10,-1894986606),f=g(f,d,l,c,a[h+10],15,-1051523),c=g(c,f,d,l,a[h+1],21,-2054922799),l=g(l,c,f,d,a[h+8],6,1873313359),d=g(d,l,c,f,a[h+15],10,-30611744),f=g(f,d,l,c,a[h+6],15,-1560198380),c=g(c,f,d,l,a[h+13],21,1309151649),l=g(l,c,f,d,a[h+4],6,-145523070),d=g(d,l,c,f,a[h+11],10,-1120210379),f=g(f,d,l,c,a[h+2],15,718787259),c=g(c,f,d,l,a[h+9],21,-343485551),l=l+E>>>0,c=c+L>>>0,f=f+O>>>0,d=d+I>>>0}return e.endian([l,c,f,d])};r._ff=function(o,s,a,u,l,c,f){var d=o+(s&a|~s&u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._gg=function(o,s,a,u,l,c,f){var d=o+(s&u|a&~u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._hh=function(o,s,a,u,l,c,f){var d=o+(s^a^u)+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._ii=function(o,s,a,u,l,c,f){var d=o+(a^(s|~u))+(l>>>0)+f;return(d<<c|d>>>32-c)+s},r._blocksize=16,r._digestsize=16,Yi.exports=function(o,s){if(o==null)throw new Error("Illegal argument "+o);var a=e.wordsToBytes(r(o,s));return s&&s.asBytes?a:s&&s.asString?i.bytesToString(a):e.bytesToHex(a)}})();var Va=Yi.exports;const za=Gt(Va);function Ka(e){return[...e].reduce((t,n)=>Math.imul(31,t)+n.charCodeAt(0)|0,0)}function Wa(e){ue(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,o=bt(r,e,e[1],null);return{c(){t=x("div"),o&&o.c(),v(t,"class",n="Column "+e[0]+" svelte-1rap1nb")},m(s,a){N(s,t,a),o&&o.m(t,null),i=!0},p(s,[a]){o&&o.p&&(!i||a&2)&&Et(o,r,s,s[1],i?wt(r,s[1],a,null):Tt(s[1]),null),(!i||a&1&&n!==(n="Column "+s[0]+" svelte-1rap1nb"))&&v(t,"class",n)},i(s){i||(T(o,s),i=!0)},o(s){k(o,s),i=!1},d(s){s&&R(t),o&&o.d(s)}}}function Ja(e,t,n){let{$$slots:i={},$$scope:r}=t,{className:o=""}=t;return e.$$set=s=>{"className"in s&&n(0,o=s.className),"$$scope"in s&&n(1,r=s.$$scope)},[o,r,i]}class Sn extends re{constructor(t){super(),ie(this,t,Ja,Xa,te,{className:0},Wa)}}var ji={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(yi,function(){var n=1e3,i=6e4,r=36e5,o="millisecond",s="second",a="minute",u="hour",l="day",c="week",f="month",d="quarter",h="year",p="date",_="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,E={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"],C=M%100;return"["+M+(S[(C-20)%10]||S[C]||S[0])+"]"}},L=function(M,S,C){var D=String(M);return!D||D.length>=S?M:""+Array(S+1-D.length).join(C)+M},O={s:L,z:function(M){var S=-M.utcOffset(),C=Math.abs(S),D=Math.floor(C/60),A=C%60;return(S<=0?"+":"-")+L(D,2,"0")+":"+L(A,2,"0")},m:function M(S,C){if(S.date()<C.date())return-M(C,S);var D=12*(C.year()-S.year())+(C.month()-S.month()),A=S.clone().add(D,f),B=C-A<0,U=S.clone().add(D+(B?-1:1),f);return+(-(D+(C-A)/(B?A-U:U-A))||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,ms:o,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},I="en",Y={};Y[I]=E;var de="$isDayjsObject",ne=function(M){return M instanceof Te||!(!M||!M[de])},fe=function M(S,C,D){var A;if(!S)return I;if(typeof S=="string"){var B=S.toLowerCase();Y[B]&&(A=B),C&&(Y[B]=C,A=B);var U=S.split("-");if(!A&&U.length>1)return M(U[0])}else{var J=S.name;Y[J]=S,A=J}return!D&&A&&(I=A),A||!D&&I},ae=function(M,S){if(ne(M))return M.clone();var C=typeof S=="object"?S:{};return C.date=M,C.args=arguments,new Te(C)},z=O;z.l=fe,z.i=ne,z.w=function(M,S){return ae(M,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Te=function(){function M(C){this.$L=fe(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[de]=!0}var S=M.prototype;return S.parse=function(C){this.$d=function(D){var A=D.date,B=D.utc;if(A===null)return new Date(NaN);if(z.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var U=A.match(y);if(U){var J=U[2]-1||0,ee=(U[7]||"0").substring(0,3);return B?new Date(Date.UTC(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ee)):new Date(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ee)}}return new Date(A)}(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 z},S.isValid=function(){return this.$d.toString()!==_},S.isSame=function(C,D){var A=ae(C);return this.startOf(D)<=A&&A<=this.endOf(D)},S.isAfter=function(C,D){return ae(C)<this.startOf(D)},S.isBefore=function(C,D){return this.endOf(D)<ae(C)},S.$g=function(C,D,A){return z.u(C)?this[D]:this.set(A,C)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(C,D){var A=this,B=!!z.u(D)||D,U=z.p(C),J=function(Pe,_e){var Ne=z.w(A.$u?Date.UTC(A.$y,_e,Pe):new Date(A.$y,_e,Pe),A);return B?Ne:Ne.endOf(l)},ee=function(Pe,_e){return z.w(A.toDate()[Pe].apply(A.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(_e)),A)},P=this.$W,Q=this.$M,ge=this.$D,Ae="set"+(this.$u?"UTC":"");switch(U){case h:return B?J(1,0):J(31,11);case f:return B?J(1,Q):J(0,Q+1);case c:var Le=this.$locale().weekStart||0,ot=(P<Le?P+7:P)-Le;return J(B?ge-ot:ge+(6-ot),Q);case l:case p:return ee(Ae+"Hours",0);case u:return ee(Ae+"Minutes",1);case a:return ee(Ae+"Seconds",2);case s:return ee(Ae+"Milliseconds",3);default:return this.clone()}},S.endOf=function(C){return this.startOf(C,!1)},S.$set=function(C,D){var A,B=z.p(C),U="set"+(this.$u?"UTC":""),J=(A={},A[l]=U+"Date",A[p]=U+"Date",A[f]=U+"Month",A[h]=U+"FullYear",A[u]=U+"Hours",A[a]=U+"Minutes",A[s]=U+"Seconds",A[o]=U+"Milliseconds",A)[B],ee=B===l?this.$D+(D-this.$W):D;if(B===f||B===h){var P=this.clone().set(p,1);P.$d[J](ee),P.init(),this.$d=P.set(p,Math.min(this.$D,P.daysInMonth())).$d}else J&&this.$d[J](ee);return this.init(),this},S.set=function(C,D){return this.clone().$set(C,D)},S.get=function(C){return this[z.p(C)]()},S.add=function(C,D){var A,B=this;C=Number(C);var U=z.p(D),J=function(Q){var ge=ae(B);return z.w(ge.date(ge.date()+Math.round(Q*C)),B)};if(U===f)return this.set(f,this.$M+C);if(U===h)return this.set(h,this.$y+C);if(U===l)return J(1);if(U===c)return J(7);var ee=(A={},A[a]=i,A[u]=r,A[s]=n,A)[U]||1,P=this.$d.getTime()+C*ee;return z.w(P,this)},S.subtract=function(C,D){return this.add(-1*C,D)},S.format=function(C){var D=this,A=this.$locale();if(!this.isValid())return A.invalidDate||_;var B=C||"YYYY-MM-DDTHH:mm:ssZ",U=z.z(this),J=this.$H,ee=this.$m,P=this.$M,Q=A.weekdays,ge=A.months,Ae=A.meridiem,Le=function(_e,Ne,st,Ct){return _e&&(_e[Ne]||_e(D,B))||st[Ne].slice(0,Ct)},ot=function(_e){return z.s(J%12||12,_e,"0")},Pe=Ae||function(_e,Ne,st){var Ct=_e<12?"AM":"PM";return st?Ct.toLowerCase():Ct};return B.replace(g,function(_e,Ne){return Ne||function(st){switch(st){case"YY":return String(D.$y).slice(-2);case"YYYY":return z.s(D.$y,4,"0");case"M":return P+1;case"MM":return z.s(P+1,2,"0");case"MMM":return Le(A.monthsShort,P,ge,3);case"MMMM":return Le(ge,P);case"D":return D.$D;case"DD":return z.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return Le(A.weekdaysMin,D.$W,Q,2);case"ddd":return Le(A.weekdaysShort,D.$W,Q,3);case"dddd":return Q[D.$W];case"H":return String(J);case"HH":return z.s(J,2,"0");case"h":return ot(1);case"hh":return ot(2);case"a":return Pe(J,ee,!0);case"A":return Pe(J,ee,!1);case"m":return String(ee);case"mm":return z.s(ee,2,"0");case"s":return String(D.$s);case"ss":return z.s(D.$s,2,"0");case"SSS":return z.s(D.$ms,3,"0");case"Z":return U}return null}(_e)||U.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(C,D,A){var B,U=this,J=z.p(D),ee=ae(C),P=(ee.utcOffset()-this.utcOffset())*i,Q=this-ee,ge=function(){return z.m(U,ee)};switch(J){case h:B=ge()/12;break;case f:B=ge();break;case d:B=ge()/3;break;case c:B=(Q-P)/6048e5;break;case l:B=(Q-P)/864e5;break;case u:B=Q/r;break;case a:B=Q/i;break;case s:B=Q/n;break;default:B=Q}return A?B:z.a(B)},S.daysInMonth=function(){return this.endOf(f).$D},S.$locale=function(){return Y[this.$L]},S.locale=function(C,D){if(!C)return this.$L;var A=this.clone(),B=fe(C,D,!0);return B&&(A.$L=B),A},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}(),Ce=Te.prototype;return ae.prototype=Ce,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",l],["$M",f],["$y",h],["$D",p]].forEach(function(M){Ce[M[1]]=function(S){return this.$g(S,M[0],M[1])}}),ae.extend=function(M,S){return M.$i||(M(S,Te,ae),M.$i=!0),ae},ae.locale=fe,ae.isDayjs=ne,ae.unix=function(M){return ae(1e3*M)},ae.en=Y[I],ae.Ls=Y,ae.p={},ae})})(ji);var Za=ji.exports;const ct=Gt(Za);var er={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(yi,function(){return function(n,i,r){n=n||{};var o=i.prototype,s={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 o.fromToBase(l,c,f,d)}r.en.relativeTime=s,o.fromToBase=function(l,c,f,d,h){for(var p,_,y,g=f.$locale().relativeTime||s,E=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"}],L=E.length,O=0;O<L;O+=1){var I=E[O];I.d&&(p=d?r(l).diff(f,I.d,!0):f.diff(l,I.d,!0));var Y=(n.rounding||Math.round)(Math.abs(p));if(y=p>0,Y<=I.r||!I.r){Y<=1&&O>0&&(I=E[O-1]);var de=g[I.l];h&&(Y=h(""+Y)),_=typeof de=="string"?de.replace("%d",Y):de(Y,c,I.l,y);break}}if(c)return _;var ne=y?g.future:g.past;return typeof ne=="function"?ne(_):ne.replace("%s",_)},o.to=function(l,c){return a(l,c,this,!0)},o.from=function(l,c){return a(l,c,this)};var u=function(l){return l.$u?r.utc():r()};o.toNow=function(l){return this.to(u(this),l)},o.fromNow=function(l){return this.from(u(this),l)}}})})(er);var Ya=er.exports;const Qa=Gt(Ya);ct.extend(Qa);function qa(e){let t,n,i=[e[3],{title:e[2]},{datetime:e[1]}],r={};for(let o=0;o<i.length;o+=1)r=gt(r,i[o]);return{c(){t=x("time"),n=j(e[0]),Rn(t,r)},m(o,s){N(o,t,s),w(t,n)},p(o,[s]){s&1&&pr(n,o[0],r.contenteditable),Rn(t,r=_i(i,[s&8&&o[3],s&4&&{title:o[2]},s&2&&{datetime:o[1]}]))},i:X,o:X,d(o){o&&R(t)}}}function ja(e,t,n){let i;const r=["timestamp","format","relative","live","formatted"];let o=On(t,r),{timestamp:s=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 $t(()=>()=>clearInterval(f)),e.$$set=h=>{t=gt(gt({},t),lr(h)),n(3,o=On(t,r)),"timestamp"in h&&n(1,s=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=ct(s).from())},Math.abs(typeof l=="number"?l:d))),e.$$.dirty&50&&n(0,c=u?ct(s).from():ct(s).format(a)),e.$$.dirty&50&&n(2,i=u?ct(s).format(a):void 0)},[c,s,i,o,a,u,l]}class tr extends re{constructor(t){super(),ie(this,t,ja,qa,te,{timestamp:1,format:4,relative:5,live:6,formatted:0})}}function el(e){ue(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=x("span"),n=j(e[1]),v(t,"class","text")},m(i,r){N(i,t,r),w(t,n)},p(i,r){r&2&&se(n,i[1])},i:X,o:X,d(i){i&&R(t)}}}function nl(e){let t,n,i,r,o;const s=[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]=s[n](e),{c(){i.c(),r=xt()},m(l,c){a[n].m(l,c),N(l,r,c),o=!0},p(l,c){let f=n;n=u(l,c),n===f?a[n].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),i=a[n],i?i.p(l,c):(i=a[n]=s[n](l),i.c()),T(i,1),i.m(r.parentNode,r))},i(l){o||(T(i),o=!0)},o(l){k(i),o=!1},d(l){l&&R(r),a[n].d(l)}}}function il(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","invalid")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&16&&n!==(n=r[4]("Invalid data")+"")&&se(i,n)},i:X,o:X,d(r){r&&R(t)}}}function rl(e){let t,n;return t=new tr({props:{style:e[3],timestamp:e[1],format:"",relative:!0}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&8&&(o.style=i[3]),r&2&&(o.timestamp=i[1]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function ol(e){let t,n,i,r,o,s;const a=e[6].default,u=bt(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=x("div"),u&&u.c(),n=V(),r.c(),v(t,"class",o="Tag "+e[0]+" svelte-1xxfpqg"),v(t,"style",e[2])},m(d,h){N(d,t,h),u&&u.m(t,null),w(t,n),c[i].m(t,null),s=!0},p(d,[h]){u&&u.p&&(!s||h&32)&&Et(u,a,d,d[5],s?wt(a,d[5],h,null):Tt(d[5]),null);let p=i;i=f(d),i===p?c[i].p(d,h):(be(),k(c[p],1,1,()=>{c[p]=null}),we(),r=c[i],r?r.p(d,h):(r=c[i]=l[i](d),r.c()),T(r,1),r.m(t,null)),(!s||h&1&&o!==(o="Tag "+d[0]+" svelte-1xxfpqg"))&&v(t,"class",o),(!s||h&4)&&v(t,"style",d[2])},i(d){s||(T(u,d),T(r),s=!0)},o(d){k(u,d),k(r),s=!1},d(d){d&&R(t),u&&u.d(d),c[i].d()}}}function sl(e,t,n){let i;K(e,Ee,c=>n(4,i=c));let{$$slots:r={},$$scope:o}=t,{text:s}=t,{className:a=""}=t,{style:u=""}=t,{timeStyle:l=""}=t;return e.$$set=c=>{"text"in c&&n(1,s=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,o=c.$$scope)},e.$$.update=()=>{e.$$.dirty&3&&s===""&&n(0,a="empty")},[a,s,u,l,i,o,r]}class Xt extends re{constructor(t){super(),ie(this,t,sl,ol,te,{text:1,className:0,style:2,timeStyle:3},el)}}function al(e){ue(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 Oe({props:{iconLaClassName:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&4&&(o.iconLaClassName=i[2]),t.$set(o)},i(i){n||(T(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(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.text=i[0]),r&2&&(o.style=i[1]),r&36&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(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:o=""}=t,{iconLaClassName:s}=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,o=u.style),"iconLaClassName"in u&&n(2,s=u.iconLaClassName)},[i,o,s,a,r]}class Jt extends re{constructor(t){super(),ie(this,t,cl,ul,te,{text:0,className:4,style:1,iconLaClassName:2},al)}}function fl(e){ue(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 o=0;o<i.length;o+=1)r=gt(r,i[o]);return t=new Fa({props:r}),{c(){G(t.$$.fragment)},m(o,s){F(t,o,s),n=!0},p(o,s){const a=s&4?_i(i,[Tr(o[2])]):{};t.$set(a)},i(o){n||(T(t.$$.fragment,o),n=!0)},o(o){k(t.$$.fragment,o),n=!1},d(o){$(t,o)}}}function dl(e){let t,n=e[2].name,i,r,o,s=(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,_,y,g,E=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=x("div"),E.c(),i=V(),r=x("div"),o=x("div"),a=j(s),l=V(),c=x("div"),d=j(f),p=V(),_=x("div"),G(y.$$.fragment),v(t,"class","avatar svelte-1wen6ck"),v(o,"class",u=ce(e[3]?"name":"no name")+" svelte-1wen6ck"),v(c,"class",h=ce(e[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"),v(_,"class","companyTag svelte-1wen6ck"),v(r,"class","texts svelte-1wen6ck")},m(L,O){N(L,t,O),E.m(t,null),N(L,i,O),N(L,r,O),w(r,o),w(o,a),w(r,l),w(r,c),w(c,d),w(r,p),w(r,_),F(y,_,null),g=!0},p(L,O){O&4&&te(n,n=L[2].name)?(be(),k(E,1,1,X),we(),E=ii(L),E.c(),T(E,1),E.m(t,null)):E.p(L,O),(!g||O&24)&&s!==(s=(L[3]!==void 0?L[3]:L[4]("No name"))+"")&&se(a,s),(!g||O&8&&u!==(u=ce(L[3]?"name":"no name")+" svelte-1wen6ck"))&&v(o,"class",u),(!g||O&17)&&f!==(f=(L[0].emails.length!==0?L[0].emails[0]:L[4]("No email"))+"")&&se(d,f),(!g||O&1&&h!==(h=ce(L[0].emails.length===0?"no email":"email")+" svelte-1wen6ck"))&&v(c,"class",h);const I={};O&17&&(I.text=L[0].company==="Y"?"Company":L[4]("No Company")),O&1&&(I.className=(L[0].company==="Y"?"Company":"No Company")=="Company"?"CompanyTag":"NoCompanyTag"),y.$set(I)},i(L){g||(T(E),T(y.$$.fragment,L),g=!0)},o(L){k(E),k(y.$$.fragment,L),g=!1},d(L){L&&(R(t),R(i),R(r)),E.d(L),$(y)}}}function hl(e){let t,n;return t=new Sn({props:{className:e[1],$$slots:{default:[dl]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&2&&(o.className=i[1]),r&285&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function ml(e,t,n){if(!e)return(n[0]+n[1]).toUpperCase();let i=e[0];return t&&(i+=t[0]),i}function gl(e,t,n){let i,r,o;K(e,Ee,f=>n(4,o=f));let{row:s}=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/"+za(d[0]??"")+"?s=200&d=404"),h}function c(f,d,h,p){let _;p?_=Ka(u(f,d,p)+h):_=Math.floor(Math.random()*16777215);let y=(_&16711680)>>16,g=(_&65280)>>8,E=_&255;return y+g+E<150&&(y=150),y+g+E>400&&(y=0),`rgb(${y},${g},${E})`}return e.$$set=f=>{"row"in f&&n(0,s=f.row),"className"in f&&n(1,a=f.className)},e.$$.update=()=>{e.$$.dirty&1&&n(3,i=s.name),e.$$.dirty&1&&n(2,r={bgColor:c(s.firstname,s.lastname,s.emails,s.systemName),name:u(s.firstname,s.lastname,s.systemName),src:l(s.avatarUrl,s.emails),initials:ml(s.firstname,s.lastname,s.systemName)})},[s,a,r,i,o]}class pl extends re{constructor(t){super(),ie(this,t,gl,hl,te,{row:0,className:1},fl)}}function _l(e){ue(e,"svelte-hsbbji",".invalid.svelte-hsbbji{color:var(--panel_text_color)}.Date.svelte-hsbbji{display:inline-flex;align-items:center;justify-content:center}")}function vl(e){let t,n=e[4]("Invalid data")+"",i;return{c(){t=x("span"),i=j(n),v(t,"class","invalid svelte-hsbbji")},m(r,o){N(r,t,o),w(t,i)},p(r,o){o&16&&n!==(n=r[4]("Invalid data")+"")&&se(i,n)},i:X,o:X,d(r){r&&R(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(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&4&&(o.style=i[2]),r&1&&(o.timestamp=i[0]),r&2&&(o.format=i[1]),r&8&&(o.relative=i[3]),t.$set(o)},i(i){n||(T(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,o;const s=[yl,vl],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]=s[i](e),{c(){t=x("div"),r.c(),v(t,"class","Date svelte-hsbbji")},m(l,c){N(l,t,c),a[i].m(t,null),o=!0},p(l,[c]){let f=i;i=u(l,c),i===f?a[i].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),r=a[i],r?r.p(l,c):(r=a[i]=s[i](l),r.c()),T(r,1),r.m(t,null))},i(l){o||(T(r),o=!0)},o(l){k(r),o=!1},d(l){l&&R(t),a[i].d()}}}function wl(e,t,n){let i;K(e,Ee,u=>n(4,i=u));let{data:r}=t,{format:o=aa()}=t,{style:s=""}=t,{relative:a=!1}=t;return e.$$set=u=>{"data"in u&&n(0,r=u.data),"format"in u&&n(1,o=u.format),"style"in u&&n(2,s=u.style),"relative"in u&&n(3,a=u.relative)},[r,o,s,a,i]}class ri extends re{constructor(t){super(),ie(this,t,wl,bl,te,{data:0,format:1,style:2,relative:3},_l)}}function El(e){ue(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 Oe({props:{iconLaClassName:e[2]}});const o=e[7].default,s=bt(o,e,e[6],null);return{c(){t=x("div"),G(n.$$.fragment),i=V(),s&&s.c(),v(t,"class","IconWrapper svelte-1q9wgt3")},m(a,u){N(a,t,u),F(n,t,null),N(a,i,u),s&&s.m(a,u),r=!0},p(a,u){const l={};u&4&&(l.iconLaClassName=a[2]),n.$set(l),s&&s.p&&(!r||u&64)&&Et(s,o,a,a[6],r?wt(o,a[6],u,null):Tt(a[6]),null)},i(a){r||(T(n.$$.fragment,a),T(s,a),r=!0)},o(a){k(n.$$.fragment,a),k(s,a),r=!1},d(a){a&&(R(t),R(i)),$(n),s&&s.d(a)}}}function xl(e){let t,n;return t=new Jt({props:{style:e[4],text:e[0],iconLaClassName:e[2],className:"Combined"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&16&&(o.style=i[4]),r&1&&(o.text=i[0]),r&4&&(o.iconLaClassName=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function kl(e){let t,n,i,r,o,s,a;const u=[xl,Tl],l=[];function c(f,d){return f[0]!==""?0:1}return n=c(e),i=l[n]=u[n](e),o=new Xt({props:{style:e[5],text:e[1]}}),{c(){t=x("div"),i.c(),r=V(),G(o.$$.fragment),v(t,"class",s=ce(`CombinedTag ${e[3]}`)+" svelte-1q9wgt3")},m(f,d){N(f,t,d),l[n].m(t,null),w(t,r),F(o,t,null),a=!0},p(f,[d]){let h=n;n=c(f),n===h?l[n].p(f,d):(be(),k(l[h],1,1,()=>{l[h]=null}),we(),i=l[n],i?i.p(f,d):(i=l[n]=u[n](f),i.c()),T(i,1),i.m(t,r));const p={};d&32&&(p.style=f[5]),d&2&&(p.text=f[1]),o.$set(p),(!a||d&8&&s!==(s=ce(`CombinedTag ${f[3]}`)+" svelte-1q9wgt3"))&&v(t,"class",s)},i(f){a||(T(i),T(o.$$.fragment,f),a=!0)},o(f){k(i),k(o.$$.fragment,f),a=!1},d(f){f&&R(t),l[n].d(),$(o)}}}function Cl(e,t,n){let{$$slots:i={},$$scope:r}=t,{iconText:o=""}=t,{tagText:s}=t,{iconLaClassName:a}=t,{className:u}=t,{iconTagStyles:l}=t,{tagStyles:c}=t;return e.$$set=f=>{"iconText"in f&&n(0,o=f.iconText),"tagText"in f&&n(1,s=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)},[o,s,a,u,l,c,r,i]}class nr extends re{constructor(t){super(),ie(this,t,Cl,kl,te,{iconText:0,tagText:1,iconLaClassName:2,className:3,iconTagStyles:4,tagStyles:5},El)}}function Ll(e){let t,n;return t=new Xt({props:{text:e[4]("No SLA"),className:"SLA"}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&16&&(o.text=i[4]("No SLA")),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Sl(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(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&2&&(o.iconText=i[1]),r&8&&(o.iconLaClassName=i[3].icon),r&1&&(o.tagText=i[0]),r&8&&(o.className=i[3].className),r&8&&(o.tagStyles=i[3].tagStyles),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Al(e){let t,n,i,r;const o=[Sl,Ll],s=[];function a(u,l){return u[2]?0:1}return t=a(e),n=s[t]=o[t](e),{c(){n.c(),i=xt()},m(u,l){s[t].m(u,l),N(u,i,l),r=!0},p(u,[l]){let c=t;t=a(u),t===c?s[t].p(u,l):(be(),k(s[c],1,1,()=>{s[c]=null}),we(),n=s[t],n?n.p(u,l):(n=s[t]=o[t](u),n.c()),T(n,1),n.m(i.parentNode,i))},i(u){r||(T(n),r=!0)},o(u){k(n),r=!1},d(u){u&&R(i),s[t].d(u)}}}function Ol(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 Rl(e,t,n){let i,r,o;K(e,Ee,u=>n(4,o=u));let{tagText:s=o("First answer")}=t,{due:a}=t;return e.$$set=u=>{"tagText"in u&&n(0,s=u.tagText),"due"in u&&n(1,a=u.due)},e.$$.update=()=>{e.$$.dirty&2&&n(3,i=Ol(a)),e.$$.dirty&2&&n(2,r=a instanceof Date&&!isNaN(a))},[s,a,r,i,o]}class Nl extends re{constructor(t){super(),ie(this,t,Rl,Al,te,{tagText:0,due:1})}}function Il(e){ue(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,o,s,a,u,l,c,f=e[1].messagegroupsIn+"",d,h,p,_,y,g,E=e[1].messagegroupsOut+"",L,O,I,Y,de=e[2]("Created")+"",ne,fe,ae,z,Te,Ce,M,S=e[2]("Changed")+"",C,D,A,B,U,J,ee;return u=new Oe({props:{iconLaClassName:"la-incoming"}}),_=new Oe({props:{iconLaClassName:"la-outgoing"}}),z=new ri({props:{data:At(e[1].datecreated)}}),B=new ri({props:{data:At(e[1].datechanged)}}),J=new Nl({props:{tagText:"",due:e[1].datedue}}),{c(){t=x("div"),n=x("span"),r=j(i),o=V(),s=x("div"),a=x("div"),G(u.$$.fragment),l=V(),c=x("span"),d=j(f),h=V(),p=x("div"),G(_.$$.fragment),y=V(),g=x("span"),L=j(E),O=V(),I=x("div"),Y=x("span"),ne=j(de),fe=j(":"),ae=V(),G(z.$$.fragment),Te=V(),Ce=x("div"),M=x("span"),C=j(S),D=j(":"),A=V(),G(B.$$.fragment),U=V(),G(J.$$.fragment),v(n,"class","TicketId svelte-eafxx5"),v(a,"class","Communication incomingMessages svelte-eafxx5"),v(p,"class","Communication outgoingMessages svelte-eafxx5"),v(s,"class","arrows"),v(t,"class","ticketDetails svelte-eafxx5"),v(I,"class","Created svelte-eafxx5"),v(Ce,"class","Changed svelte-eafxx5")},m(P,Q){N(P,t,Q),w(t,n),w(n,r),w(t,o),w(t,s),w(s,a),F(u,a,null),w(a,l),w(a,c),w(c,d),w(s,h),w(s,p),F(_,p,null),w(p,y),w(p,g),w(g,L),N(P,O,Q),N(P,I,Q),w(I,Y),w(Y,ne),w(Y,fe),w(I,ae),F(z,I,null),N(P,Te,Q),N(P,Ce,Q),w(Ce,M),w(M,C),w(M,D),w(Ce,A),F(B,Ce,null),N(P,U,Q),F(J,P,Q),ee=!0},p(P,Q){(!ee||Q&2)&&i!==(i=P[1].code+"")&&se(r,i),(!ee||Q&2)&&f!==(f=P[1].messagegroupsIn+"")&&se(d,f),(!ee||Q&2)&&E!==(E=P[1].messagegroupsOut+"")&&se(L,E),(!ee||Q&4)&&de!==(de=P[2]("Created")+"")&&se(ne,de);const ge={};Q&2&&(ge.data=At(P[1].datecreated)),z.$set(ge),(!ee||Q&4)&&S!==(S=P[2]("Changed")+"")&&se(C,S);const Ae={};Q&2&&(Ae.data=At(P[1].datechanged)),B.$set(Ae);const Le={};Q&2&&(Le.due=P[1].datedue),J.$set(Le)},i(P){ee||(T(u.$$.fragment,P),T(_.$$.fragment,P),T(z.$$.fragment,P),T(B.$$.fragment,P),T(J.$$.fragment,P),ee=!0)},o(P){k(u.$$.fragment,P),k(_.$$.fragment,P),k(z.$$.fragment,P),k(B.$$.fragment,P),k(J.$$.fragment,P),ee=!1},d(P){P&&(R(t),R(O),R(I),R(Te),R(Ce),R(U)),$(u),$(_),$(z),$(B),$(J,P)}}}function Hl(e){let t,n;return t=new Sn({props:{className:e[0],$$slots:{default:[Dl]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.className=i[0]),r&14&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Pl(e,t,n){let i;K(e,Ee,s=>n(2,i=s));let{className:r="importanceColumn"}=t,{row:o}=t;return e.$$set=s=>{"className"in s&&n(0,r=s.className),"row"in s&&n(1,o=s.row)},[r,o,i]}class Ml extends re{constructor(t){super(),ie(this,t,Pl,Hl,te,{className:0,row:1},Il)}}function Bl(e){ue(e,"svelte-1ufzjpr",".Tag.TicketTag{font-size:12px;font-weight:normal !important;padding:2px 10px !important}")}function Fl(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(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&6&&(o.style="color: #"+i[2]+"; background: #"+i[1]+"99; border: 1px solid #"+i[1]),r&1&&(o.text=i[0]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function $l(e,t,n){let i,r,o,s;K(e,Wi,u=>n(4,s=u));let{tagId:a}=t;return console.log(s[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=s[a])==null?void 0:u.color)??0),e.$$.dirty&24&&n(1,r=((l=s[a])==null?void 0:l.backgroundcolor)??0),e.$$.dirty&24&&n(0,o=((c=s[a])==null?void 0:c.name)??"")},[o,r,i,a,s]}class Gl extends re{constructor(t){super(),ie(this,t,$l,Fl,te,{tagId:3},Bl)}}function oi(e,t,n){const i=e.slice();return i[1]=t[n],i}function si(e){let t,n;return t=new Gl({props:{tagId:e[1]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.tagId=i[1]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Ul(e){let t,n,i=Ze(e[0]),r=[];for(let s=0;s<i.length;s+=1)r[s]=si(oi(e,i,s));const o=s=>k(r[s],1,1,()=>{r[s]=null});return{c(){t=x("span");for(let s=0;s<r.length;s+=1)r[s].c()},m(s,a){N(s,t,a);for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(t,null);n=!0},p(s,[a]){if(a&1){i=Ze(s[0]);let u;for(u=0;u<i.length;u+=1){const l=oi(s,i,u);r[u]?(r[u].p(l,a),T(r[u],1)):(r[u]=si(l),r[u].c(),T(r[u],1),r[u].m(t,null))}for(be(),u=i.length;u<r.length;u+=1)o(u);we()}},i(s){if(!n){for(let a=0;a<i.length;a+=1)T(r[a]);n=!0}},o(s){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)k(r[a]);n=!1},d(s){s&&R(t),yn(r,s)}}}function Vl(e,t,n){let{tags:i}=t;return e.$$set=r=>{"tags"in r&&n(0,i=r.tags)},[i]}class zl extends re{constructor(t){super(),ie(this,t,Vl,Ul,te,{tags:0})}}function Kl(e){ue(e,"svelte-q9af99",".Tag.IconTag.StatusTag .text{display:none}@media(min-width: 768px){.Tag.IconTag.StatusTag .text{display:inline}}")}function Wl(e){let t,n;return t=new Jt({props:{className:"StatusTag "+e[1][e[0]].text,style:"color: "+Ie(e[0]).text+"; background-color: "+Ie(e[0]).bg+"; border-color: "+Ie(e[0]).border,text:e[1][e[0]].text,iconLaClassName:e[1][e[0]].icon}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&1&&(o.className="StatusTag "+i[1][i[0]].text),r&1&&(o.style="color: "+Ie(i[0]).text+"; background-color: "+Ie(i[0]).bg+"; border-color: "+Ie(i[0]).border),r&1&&(o.text=i[1][i[0]].text),r&1&&(o.iconLaClassName=i[1][i[0]].icon),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Xl(e,t,n){let i;K(e,Ee,s=>n(2,i=s));let{status:r}=t;const o={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=s=>{"status"in s&&n(0,r=s.status)},[r,o]}class Jl extends re{constructor(t){super(),ie(this,t,Xl,Wl,te,{status:0},Kl)}}function Zl(e){let t,n;return t=new Jt({props:{className:rr,text:e[0].departmentname,iconLaClassName:ir}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.text=i[0].departmentname),t.$set(o)},i(i){n||(T(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(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.iconText=i[0].departmentname),r&1&&(o.tagText=i[0].agentname),t.$set(o)},i(i){n||(T(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,o;const s=[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]=s[n](e),{c(){i.c(),r=xt()},m(l,c){a[n].m(l,c),N(l,r,c),o=!0},p(l,[c]){let f=n;n=u(l,c),n===f?a[n].p(l,c):(be(),k(a[f],1,1,()=>{a[f]=null}),we(),i=a[n],i?i.p(l,c):(i=a[n]=s[n](l),i.c()),T(i,1),i.m(r.parentNode,r))},i(l){o||(T(i),o=!0)},o(l){k(i),o=!1},d(l){l&&R(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;",o="color: var(--tag-department-agent-text); background-color: var(--tag-department-agent-bg); border-radius: 4px; margin: 0";return e.$$set=s=>{"data"in s&&n(0,i=s.data)},[i,r,o]}class jl extends re{constructor(t){super(),ie(this,t,ql,Ql,te,{data:0})}}function eu(e){ue(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,o,s=(e[0].preview?e[0].preview:e[2]("No text for preview"))+"",a,u,l,c,f,d,h,p,_,y;return f=new Jl({props:{status:e[0].status}}),h=new jl({props:{data:e[0]}}),_=new zl({props:{tags:e[0].tags}}),{c(){t=x("h1"),i=j(n),r=V(),o=x("p"),a=j(s),l=V(),c=x("div"),G(f.$$.fragment),d=V(),G(h.$$.fragment),p=V(),G(_.$$.fragment),v(t,"class","subject svelte-ccmpo7"),v(o,"class",u=ce(e[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"),v(c,"class","additional svelte-ccmpo7")},m(g,E){N(g,t,E),w(t,i),N(g,r,E),N(g,o,E),w(o,a),N(g,l,E),N(g,c,E),F(f,c,null),w(c,d),F(h,c,null),w(c,p),F(_,c,null),y=!0},p(g,E){(!y||E&1)&&n!==(n=g[0].subject+"")&&se(i,n),(!y||E&5)&&s!==(s=(g[0].preview?g[0].preview:g[2]("No text for preview"))+"")&&se(a,s),(!y||E&1&&u!==(u=ce(g[0].preview?"preview":"preview no-text")+" svelte-ccmpo7"))&&v(o,"class",u);const L={};E&1&&(L.status=g[0].status),f.$set(L);const O={};E&1&&(O.data=g[0]),h.$set(O);const I={};E&1&&(I.tags=g[0].tags),_.$set(I)},i(g){y||(T(f.$$.fragment,g),T(h.$$.fragment,g),T(_.$$.fragment,g),y=!0)},o(g){k(f.$$.fragment,g),k(h.$$.fragment,g),k(_.$$.fragment,g),y=!1},d(g){g&&(R(t),R(r),R(o),R(l),R(c)),$(f),$(h),$(_)}}}function nu(e){let t,n;return t=new Sn({props:{className:e[1],$$slots:{default:[tu]},$$scope:{ctx:e}}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,[r]){const o={};r&2&&(o.className=i[1]),r&13&&(o.$$scope={dirty:r,ctx:i}),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function iu(e,t,n){let i;K(e,Ee,s=>n(2,i=s));let{row:r}=t,{className:o="statusColumn"}=t;return e.$$set=s=>{"row"in s&&n(0,r=s.row),"className"in s&&n(1,o=s.className)},[r,o,i]}class ru extends re{constructor(t){super(),ie(this,t,iu,nu,te,{row:0,className:1},eu)}}function ou(e){ue(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"
|
|
13
13
|
"checkbox status"
|
|
14
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"
|
|
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));
|
|
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,o,s,a,u,l,c,f,d,h,p,_,y,g,E,L;function O(){e[5].call(o,e[11])}function I(...ne){return e[6](e[11],...ne)}l=new pl({props:{row:e[9]}}),d=new ru({props:{row:e[9]}}),_=new Ml({props:{row:e[9]}});function Y(){return e[7](e[9])}function de(...ne){return e[8](e[9],...ne)}return{c(){t=x("div"),n=x("div"),i=x("div"),r=V(),o=x("input"),a=V(),u=x("div"),G(l.$$.fragment),c=V(),f=x("div"),G(d.$$.fragment),h=V(),p=x("div"),G(_.$$.fragment),v(i,"class","StatusBar svelte-d34xx3"),Zt(i,"background-color",Ie(e[9].status).border),v(o,"type","checkbox"),o.__value=s=e[9].conversationid,Nn(o,o.__value),v(o,"class","svelte-d34xx3"),v(n,"class","Checkbox svelte-d34xx3"),Zt(n,"position","relative"),v(u,"class","UserColumn svelte-d34xx3"),v(f,"class","StatusColumn svelte-d34xx3"),v(p,"class","ImportanceColumn svelte-d34xx3"),v(t,"class",y="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3")},m(ne,fe){N(ne,t,fe),w(t,n),w(n,i),w(n,r),w(n,o),o.checked=e[1][e[11]].__selected,w(t,a),w(t,u),F(l,u,null),w(t,c),w(t,f),F(d,f,null),w(t,h),w(t,p),F(_,p,null),g=!0,E||(L=[he(o,"change",O),he(o,"click",on(I)),he(n,"click",on(au)),he(t,"click",Y),he(t,"mousedown",de)],E=!0)},p(ne,fe){e=ne,(!g||fe&2)&&Zt(i,"background-color",Ie(e[9].status).border),(!g||fe&2&&s!==(s=e[9].conversationid))&&(o.__value=s,Nn(o,o.__value)),fe&2&&(o.checked=e[1][e[11]].__selected);const ae={};fe&2&&(ae.row=e[9]),l.$set(ae);const z={};fe&2&&(z.row=e[9]),d.$set(z);const Te={};fe&2&&(Te.row=e[9]),_.$set(Te),(!g||fe&2&&y!==(y="Row "+(e[1][e[11]].__selected?"Selected":"")+" svelte-d34xx3"))&&v(t,"class",y)},i(ne){g||(T(l.$$.fragment,ne),T(d.$$.fragment,ne),T(_.$$.fragment,ne),g=!0)},o(ne){k(l.$$.fragment,ne),k(d.$$.fragment,ne),k(_.$$.fragment,ne),g=!1},d(ne){ne&&R(t),$(l),$(d),$(_),E=!1,Re(L)}}}function su(e){let t,n,i,r=Ze(e[1]),o=[];for(let l=0;l<r.length;l+=1)o[l]=li(ai(e,r,l));const s=l=>k(o[l],1,1,()=>{o[l]=null}),a=e[4].default,u=bt(a,e,e[3],null);return{c(){t=x("div");for(let l=0;l<o.length;l+=1)o[l].c();n=V(),u&&u.c(),v(t,"class","Body svelte-d34xx3")},m(l,c){N(l,t,c);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(t,null);w(t,n),u&&u.m(t,null),i=!0},p(l,[c]){if(c&7){r=Ze(l[1]);let f;for(f=0;f<r.length;f+=1){const d=ai(l,r,f);o[f]?(o[f].p(d,c),T(o[f],1)):(o[f]=li(d),o[f].c(),T(o[f],1),o[f].m(t,n))}for(be(),f=r.length;f<o.length;f+=1)s(f);we()}u&&u.p&&(!i||c&8)&&Et(u,a,l,l[3],i?wt(a,l[3],c,null):Tt(l[3]),null)},i(l){if(!i){for(let c=0;c<r.length;c+=1)T(o[c]);T(u,l),i=!0}},o(l){o=o.filter(Boolean);for(let c=0;c<o.length;c+=1)k(o[c]);k(u,l),i=!1},d(l){l&&R(t),yn(o,l),u&&u.d(l)}}}const au=()=>{};function lu(e,t,n){let i;K(e,ye,d=>n(1,i=d));let{$$slots:r={},$$scope:o}=t,{rowMiddleClickHandler:s}=t;function a(d,h){if(d.shiftKey){let p=i.findIndex(_=>_.__selected);if(p!==-1){let _=Math.min(p,h),y=Math.max(p,h);for(let g=_;g<=y;g++)ur(ye,i[g].__selected=!0,i)}}}function u(d){i[d].__selected=this.checked,ye.set(i)}const l=(d,h)=>a(h,d),c=d=>location.assign("#Conversation;id="+d.conversationid),f=(d,h)=>{h.button===1&&s&&(s(d.conversationid),h.preventDefault(),h.stopPropagation())};return e.$$set=d=>{"rowMiddleClickHandler"in d&&n(0,s=d.rowMiddleClickHandler),"$$scope"in d&&n(3,o=d.$$scope)},[s,i,a,o,r,u,l,c,f]}class uu extends re{constructor(t){super(),ie(this,t,lu,su,te,{rowMiddleClickHandler:0},ou)}}function cu(e){ue(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=x("div"),n=x("p"),i=j(e[0]),v(t,"class","svelte-1nok758")},m(r,o){N(r,t,o),w(t,n),w(n,i)},p(r,[o]){o&1&&se(i,r[0])},i:X,o:X,d(r){r&&R(t)}}}function du(e,t,n){let i,r,o,s,a,u;return K(e,Ee,l=>n(1,r=l)),K(e,Fe,l=>n(2,o=l)),K(e,ye,l=>n(3,s=l)),K(e,Xi,l=>n(4,a=l)),K(e,Xe,l=>n(5,u=l)),e.$$.update=()=>{e.$$.dirty&62&&n(0,i=u?r("Loading..."):a?r("Loading failed. Please try again later."):!s||s.length===0?r("No results match your filter. Try broadening the search criteria."):o==null?r("All data loaded"):r("Load more data"))},[i,r,o,s,a,u]}class hu extends re{constructor(t){super(),ie(this,t,du,fu,te,{},cu)}}function mu(e){ue(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,o=e[9].label+"",s,a,u,l,c;return{c(){t=x("label"),n=x("input"),r=V(),s=j(o),a=V(),v(n,"type","radio"),v(n,"name","sorting"),n.value=e[9].value,n.checked=i=e[0]&&e[0].value===e[9].value,v(n,"class","svelte-1srt8g7"),v(t,"class",u=ce(e[0].value===e[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")},m(f,d){N(f,t,d),w(t,n),w(t,r),w(t,s),w(t,a),l||(c=he(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=ce(f[0].value===f[9].value?"radio-option selected":"radio-option")+" svelte-1srt8g7")&&v(t,"class",u)},d(f){f&&R(t),l=!1,c()}}}function gu(e){let t,n,i=e[3]("Sort by")+"",r,o,s=Ze(e[4]),a=[];for(let u=0;u<s.length;u+=1)a[u]=ci(ui(e,s,u));return{c(){t=x("dialog"),n=x("span"),r=j(i),o=V();for(let u=0;u<a.length;u+=1)a[u].c();v(n,"class","Title svelte-1srt8g7"),v(t,"class","modal svelte-1srt8g7"),v(t,"style",e[1])},m(u,l){N(u,t,l),w(t,n),w(n,r),w(t,o);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){s=Ze(u[4]);let c;for(c=0;c<s.length;c+=1){const f=ui(u,s,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=s.length}l&2&&v(t,"style",u[1])},i:X,o:X,d(u){u&&R(t),yn(a,u),e[7](null)}}}function pu(e,t,n){let i;K(e,Ee,d=>n(3,i=d));let{currentFilter:r}=t,{closeModal:o=()=>l.close()}=t,{style:s=""}=t;const a=pi(),u=[{value:"Datedue",label:i("Importance"),sort:lt.Datedue,dir:!1},{value:"Created-newest",label:i("Date created - Newest"),sort:lt.Datecreated,dir:!1},{value:"Created-oldest",label:i("Date created - Oldest"),sort:lt.Datecreated,dir:!0},{value:"Changed-newest",label:i("Date changed - Newest"),sort:lt.Datechanged,dir:!1},{value:"Changed-oldest",label:i("Date changed - Oldest"),sort:lt.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}),o()}function f(d){Je[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,o=d.closeModal),"style"in d&&n(1,s=d.style)},[r,s,l,i,u,c,o,f]}class _u extends re{constructor(t){super(),ie(this,t,pu,gu,te,{currentFilter:0,closeModal:6,style:1},mu)}}function vu(e){ue(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=x("div"),v(t,"class","backdrop svelte-657q9o")},m(r,o){N(r,t,o),n||(i=he(t,"click",on(function(){Ft(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(r,[o]){e=r},i:X,o:X,d(r){r&&R(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 re{constructor(t){super(),ie(this,t,bu,yu,te,{onClick:0},vu)}}function Eu(e){ue(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,o,s;return i=new hu({}),{c(){t=x("div"),n=x("div"),G(i.$$.fragment),v(n,"class","load svelte-1od4wyj"),v(t,"class","load svelte-1od4wyj")},m(a,u){N(a,t,u),w(t,n),F(i,n,null),e[11](n),r=!0,o||(s=he(n,"click",e[12]),o=!0)},p:X,i(a){r||(T(i.$$.fragment,a),r=!0)},o(a){k(i.$$.fragment,a),r=!1},d(a){a&&R(t),$(i),e[11](null),o=!1,s()}}}function fi(e){let t,n,i,r;return t=new _u({props:{closeModal:e[8],currentFilter:e[5],style:e[4]}}),t.$on("filterChange",e[10]),i=new wu({props:{onClick:e[8]}}),{c(){G(t.$$.fragment),n=V(),G(i.$$.fragment)},m(o,s){F(t,o,s),N(o,n,s),F(i,o,s),r=!0},p(o,s){const a={};s&32&&(a.currentFilter=o[5]),s&16&&(a.style=o[4]),t.$set(a)},i(o){r||(T(t.$$.fragment,o),T(i.$$.fragment,o),r=!0)},o(o){k(t.$$.fragment,o),k(i.$$.fragment,o),r=!1},d(o){o&&R(n),$(t,o),$(i,o)}}}function xu(e){let t,n,i,r,o,s;n=new Sa({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=x("div"),G(n.$$.fragment),i=V(),G(r.$$.fragment),o=V(),a&&a.c(),v(t,"class","container svelte-1od4wyj")},m(u,l){N(u,t,l),F(n,t,null),w(t,i),F(r,t,null),w(t,o),a&&a.m(t,null),e[13](t),s=!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&&T(a,1)):(a=fi(u),a.c(),T(a,1),a.m(t,null)):a&&(be(),k(a,1,1,()=>{a=null}),we())},i(u){s||(T(n.$$.fragment,u),T(r.$$.fragment,u),T(a),s=!0)},o(u){k(n.$$.fragment,u),k(r.$$.fragment,u),k(a),s=!1},d(u){u&&R(t),$(n),$(r),a&&a.d(),e[13](null)}}}function ku(e,t,n){let i,r,o;K(e,mt,g=>n(6,r=g)),K(e,Fe,g=>n(7,o=g));let{rowMiddleClickHandler:s}=t,a,u,l=!1,c="";$t(()=>{const g=localStorage.getItem("TicketGridCurrentFilter");g&&n(5,i=JSON.parse(g));const E=new IntersectionObserver(L=>{L[0].isIntersecting&&et()},{root:u,threshold:.5});return E.observe(a),()=>E.unobserve(a)});function f(){n(3,l=!1)}function d(g){n(3,l=!0),n(4,c=g.detail.dialogStyles)}function h(g){f(),console.log("filter changed: "+g.detail.option.sort+" "+g.detail.option.dir),g.detail.option.value!==i.value&&(n(5,i=g.detail.option),localStorage.setItem("TicketGridCurrentFilter",JSON.stringify(i)),Wt.set(i.dir),Ln.set(i.sort))}function p(g){Je[g?"unshift":"push"](()=>{a=g,n(1,a)})}const _=()=>et(r&&!o);function y(g){Je[g?"unshift":"push"](()=>{u=g,n(2,u)})}return e.$$set=g=>{"rowMiddleClickHandler"in g&&n(0,s=g.rowMiddleClickHandler)},n(5,i={value:"Datedue",label:"Importance"}),[s,a,u,l,c,i,r,o,f,d,h,p,_,y]}class Cu extends re{constructor(t){super(),ie(this,t,ku,xu,te,{rowMiddleClickHandler:0},Eu)}}class Lu{constructor(t,n){const i=new kn({apiKey:t,basePath:n+"/api/v3"});this.api=new Ki(i)}async load(){let t=await this.api.getTagsGridList();t=t.reduce((n,i)=>(n[i.tagid]=i,n),{}),Wi.set(t)}}function Su(e){ue(e,"svelte-10fvxzv","button.svelte-10fvxzv{padding:10px;margin:5px;border:none;border-radius:5px;cursor:pointer;font-size:13px;font-weight:600}")}function Au(e){let t,n,i,r,o;const s=e[4].default,a=bt(s,e,e[3],null);return{c(){t=x("button"),a&&a.c(),v(t,"class",n=ce(e[0])+" svelte-10fvxzv")},m(u,l){N(u,t,l),a&&a.m(t,null),i=!0,r||(o=he(t,"click",e[1]),r=!0)},p(u,[l]){a&&a.p&&(!i||l&8)&&Et(a,s,u,u[3],i?wt(s,u[3],l,null):Tt(u[3]),null),(!i||l&1&&n!==(n=ce(u[0])+" svelte-10fvxzv"))&&v(t,"class",n)},i(u){i||(T(a,u),i=!0)},o(u){k(a,u),i=!1},d(u){u&&R(t),a&&a.d(u),r=!1,o()}}}function Ou(e,t,n){let{$$slots:i={},$$scope:r}=t,{onAction:o=u=>{}}=t,{className:s=""}=t;function a(u){o(u)}return e.$$set=u=>{"onAction"in u&&n(2,o=u.onAction),"className"in u&&n(0,s=u.className),"$$scope"in u&&n(3,r=u.$$scope)},[s,a,o,r,i]}class di extends re{constructor(t){super(),ie(this,t,Ou,Au,te,{onAction:2,className:0},Su)}}function Ru(e){ue(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 Nu(e){let t,n,i=e[2]("Change filter")+"",r,o;return t=new Oe({props:{className:"FilterIcon",iconLaClassName:"la-tune"}}),{c(){G(t.$$.fragment),n=V(),r=j(i)},m(s,a){F(t,s,a),N(s,n,a),N(s,r,a),o=!0},p(s,a){(!o||a&4)&&i!==(i=s[2]("Change filter")+"")&&se(r,i)},i(s){o||(T(t.$$.fragment,s),o=!0)},o(s){k(t.$$.fragment,s),o=!1},d(s){s&&(R(n),R(r)),$(t,s)}}}function Iu(e){let t,n,i=e[2]("Configure chat button")+"",r,o;return t=new Oe({props:{className:"ConfigureIcon",iconLaClassName:"la-configuration"}}),{c(){G(t.$$.fragment),n=V(),r=j(i)},m(s,a){F(t,s,a),N(s,n,a),N(s,r,a),o=!0},p(s,a){(!o||a&4)&&i!==(i=s[2]("Configure chat button")+"")&&se(r,i)},i(s){o||(T(t.$$.fragment,s),o=!0)},o(s){k(t.$$.fragment,s),o=!1},d(s){s&&(R(n),R(r)),$(t,s)}}}function Du(e){let t,n,i,r,o,s=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,_,y,g;return p=new di({props:{className:"Filter",onAction:e[3],$$slots:{default:[Nu]},$$scope:{ctx:e}}}),y=new di({props:{className:"Configure",onAction:e[4],$$slots:{default:[Iu]},$$scope:{ctx:e}}}),{c(){t=x("div"),n=x("img"),r=V(),o=x("h1"),a=j(s),u=V(),l=x("p"),f=j(c),d=V(),h=x("div"),G(p.$$.fragment),_=V(),G(y.$$.fragment),v(n,"alt","No results placeholder"),Dt(n.src,i=e[0]+"/themes/agent/obsidian/img/no-result.svg")||v(n,"src",i),v(n,"class","svelte-19qi61t"),v(o,"class","svelte-19qi61t"),v(l,"class","svelte-19qi61t"),v(h,"class","Buttons"),v(t,"class","NoTickets svelte-19qi61t")},m(E,L){N(E,t,L),w(t,n),w(t,r),w(t,o),w(o,a),w(t,u),w(t,l),w(l,f),w(t,d),w(t,h),F(p,h,null),w(h,_),F(y,h,null),g=!0},p(E,[L]){(!g||L&1&&!Dt(n.src,i=E[0]+"/themes/agent/obsidian/img/no-result.svg"))&&v(n,"src",i),(!g||L&4)&&s!==(s=E[2]("No tickets found")+"")&&se(a,s),(!g||L&4)&&c!==(c=E[2]("There is no tickets to be displayed. Change filter or place chat widget on your website to reach customers.")+"")&&se(f,c);const O={};L&2&&(O.onAction=E[3]),L&36&&(O.$$scope={dirty:L,ctx:E}),p.$set(O);const I={};L&36&&(I.$$scope={dirty:L,ctx:E}),y.$set(I)},i(E){g||(T(p.$$.fragment,E),T(y.$$.fragment,E),g=!0)},o(E){k(p.$$.fragment,E),k(y.$$.fragment,E),g=!1},d(E){E&&R(t),$(p),$(y)}}}function Hu(e,t,n){let i;K(e,Ee,u=>n(2,i=u));let{basePath:r}=t,{changeFilterHandler:o=()=>{}}=t;const s=()=>o(),a=()=>window.location.hash="Chat-Buttons";return e.$$set=u=>{"basePath"in u&&n(0,r=u.basePath),"changeFilterHandler"in u&&n(1,o=u.changeFilterHandler)},[r,o,i,s,a]}class Pu extends re{constructor(t){super(),ie(this,t,Hu,Du,te,{basePath:0,changeFilterHandler:1},Ru)}}function Mu(e){ue(e,"svelte-14f2ism","main.svelte-14f2ism{height:100%;display:flex;flex-direction:column}")}function Bu(e){let t,n;return t=new Cu({props:{rowMiddleClickHandler:e[0]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.rowMiddleClickHandler=i[0]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function Fu(e){let t,n;return t=new Pu({props:{basePath:e[1],changeFilterHandler:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&2&&(o.basePath=i[1]),r&4&&(o.changeFilterHandler=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function $u(e){let t,n,i,r;const o=[Fu,Bu],s=[];function a(u,l){return!u[3].length&&u[4]?0:1}return n=a(e),i=s[n]=o[n](e),{c(){t=x("main"),i.c(),v(t,"class","svelte-14f2ism")},m(u,l){N(u,t,l),s[n].m(t,null),r=!0},p(u,[l]){let c=n;n=a(u),n===c?s[n].p(u,l):(be(),k(s[c],1,1,()=>{s[c]=null}),we(),i=s[n],i?i.p(u,l):(i=s[n]=o[n](u),i.c()),T(i,1),i.m(t,null))},i(u){r||(T(i),r=!0)},o(u){k(i),r=!1},d(u){u&&R(t),s[n].d()}}}function Gu(e,t,n){let i,r,o,s,a,u;K(e,We,h=>n(9,i=h)),K(e,yt,h=>n(6,r=h)),K(e,Ln,h=>n(7,o=h)),K(e,Wt,h=>n(8,s=h)),K(e,ye,h=>n(3,a=h)),K(e,mt,h=>n(4,u=h));let{apiKey:l}=t,{rowMiddleClickHandler:c}=t,{basePath:f}=t,{changeFilterHandler:d}=t;return $t(async()=>{await new Lu(l,f).load();const h=new Ki(new kn({apiKey:l,basePath:f+"/api/v3"}));Bt.set(h),await et(!0)}),ye.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&&(s||o||r)&&et(!0)},[c,f,d,a,u,l,r,o,s]}class Uu extends re{constructor(t){super(),ie(this,t,Gu,$u,te,{apiKey:5,rowMiddleClickHandler:0,basePath:1,changeFilterHandler:2},Mu)}}function Vu(e){let t,n;return t=new Uu({props:{apiKey:e[0].apiKey,basePath:e[0].basePath,rowMiddleClickHandler:e[1],changeFilterHandler:e[2]}}),{c(){G(t.$$.fragment)},m(i,r){F(t,i,r),n=!0},p(i,r){const o={};r&1&&(o.apiKey=i[0].apiKey),r&1&&(o.basePath=i[0].basePath),r&2&&(o.rowMiddleClickHandler=i[1]),r&4&&(o.changeFilterHandler=i[2]),t.$set(o)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){k(t.$$.fragment,i),n=!1},d(i){$(t,i)}}}function zu(e){let t;return{c(){t=x("p"),t.textContent="Loading..."},m(n,i){N(n,t,i)},p:X,i:X,o:X,d(n){n&&R(t)}}}function Ku(e){let t,n,i,r,o,s;const a=[zu,Vu],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=V(),r=x("link"),v(r,"rel","stylesheet"),v(r,"href",o=e[0].basePath+"/themes/agent/_common_templates/icons_mapping.css")},m(c,f){~t&&u[t].m(c,f),N(c,i,f),N(c,r,f),s=!0},p(c,[f]){let d=t;t=l(c),t===d?~t&&u[t].p(c,f):(n&&(be(),k(u[d],1,1,()=>{u[d]=null}),we()),~t?(n=u[t],n?n.p(c,f):(n=u[t]=a[t](c),n.c()),T(n,1),n.m(i.parentNode,i)):n=null),(!s||f&1&&o!==(o=c[0].basePath+"/themes/agent/_common_templates/icons_mapping.css"))&&v(r,"href",o)},i(c){s||(T(n),s=!0)},o(c){k(n),s=!1},d(c){c&&(R(i),R(r)),~t&&u[t].d(c)}}}function Wu(e,t,n){let i,r,o,s;K(e,ye,h=>n(7,i=h)),K(e,We,h=>n(8,r=h)),K(e,Cn,h=>n(9,o=h)),K(e,It,h=>n(3,s=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,_)=>{}}=t,{changeFilterHandler:f=()=>{}}=t;const d=function(h=!1){et(h)};return ia(u.localeOptions),$t(()=>{yt.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&&yt.set(a),e.$$.dirty&928&&c(o,r,i.length)},[u,l,f,s,a,c,d,i,r,o]}class Xu extends re{constructor(t){super(),ie(this,t,Wu,Ku,te,{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",kr(Xu,{filters:{},options:{},rowMiddleClickHandler:{},ticketSelectionChangeHandler:{},changeFilterHandler:{}},[],["reload"],!0));
|