diff --git a/client/main.lua b/client/main.lua index 146f6140..13ccbb33 100644 --- a/client/main.lua +++ b/client/main.lua @@ -46,6 +46,7 @@ local function setupDispatch() player = PlayerData, keybind = Config.RespondKeybind, maxCallList = Config.MaxCallList, + shortCalls = Config.ShortCalls, } }) end diff --git a/html/index.js b/html/index.js index bbe6d9d9..efee22cb 100644 --- a/html/index.js +++ b/html/index.js @@ -1,6 +1,6 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function l(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=l(i);fetch(i.href,s)}})();function J(){}const Ft=e=>e;function Bt(e,t){for(const l in t)e[l]=t[l];return e}function Et(e){return e()}function Ve(){return Object.create(null)}function Z(e){e.forEach(Et)}function je(e){return typeof e=="function"}function ie(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Pt(e){return Object.keys(e).length===0}function Ht(e,...t){if(e==null)return J;const l=e.subscribe(...t);return l.unsubscribe?()=>l.unsubscribe():l}function z(e,t,l){e.$$.on_destroy.push(Ht(t,l))}function Vt(e,t,l,n){if(e){const i=Nt(e,t,l,n);return e[0](i)}}function Nt(e,t,l,n){return e[1]&&n?Bt(l.ctx.slice(),e[1](n(t))):l.ctx}function Gt(e,t,l,n){if(e[2]&&n){const i=e[2](n(l));if(t.dirty===void 0)return i;if(typeof i=="object"){const s=[],r=Math.max(t.dirty.length,i.length);for(let a=0;a32){const t=[],l=e.ctx.length/32;for(let n=0;nwindow.performance.now():()=>Date.now(),Oe=St?e=>requestAnimationFrame(e):J;const ae=new Set;function At(e){ae.forEach(t=>{t.c(e)||(ae.delete(t),t.f())}),ae.size!==0&&Oe(At)}function qt(e){let t;return ae.size===0&&Oe(At),{promise:new Promise(l=>{ae.add(t={c:e,f:l})}),abort(){ae.delete(t)}}}function c(e,t){e.appendChild(t)}function Mt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Jt(e){const t=b("style");return Kt(Mt(e),t),t.sheet}function Kt(e,t){return c(e.head||e,t),t.sheet}function C(e,t,l){e.insertBefore(t,l||null)}function M(e){e.parentNode&&e.parentNode.removeChild(e)}function _e(e,t){for(let l=0;le.removeEventListener(t,l,n)}function p(e,t,l){l==null?e.removeAttribute(t):e.getAttribute(t)!==l&&e.setAttribute(t,l)}function Xt(e){return Array.from(e.childNodes)}function B(e,t){t=""+t,e.data!==t&&(e.data=t)}function W(e,t,l){e.classList[l?"add":"remove"](t)}function Qt(e,t,{bubbles:l=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,l,n,t),i}const ke=new Map;let Ee=0;function Zt(e){let t=5381,l=e.length;for(;l--;)t=(t<<5)-t^e.charCodeAt(l);return t>>>0}function xt(e,t){const l={stylesheet:Jt(t),rules:{}};return ke.set(e,l),l}function Ye(e,t,l,n,i,s,r,a=0){const o=16.666/n;let f=`{ -`;for(let $=0;$<=1;$+=o){const y=t+(l-t)*s($);f+=$*100+`%{${r(y,1-y)}} -`}const u=f+`100% {${r(l,1-l)}} -}`,d=`__svelte_${Zt(u)}_${a}`,h=Mt(e),{stylesheet:m,rules:g}=ke.get(h)||xt(h,e);g[d]||(g[d]=!0,m.insertRule(`@keyframes ${d} ${u}`,m.cssRules.length));const N=e.style.animation||"";return e.style.animation=`${N?`${N}, `:""}${d} ${n}ms linear ${i}ms 1 both`,Ee+=1,d}function el(e,t){const l=(e.style.animation||"").split(", "),n=l.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=l.length-n.length;i&&(e.style.animation=n.join(", "),Ee-=i,Ee||tl())}function tl(){Oe(()=>{Ee||(ke.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&M(t)}),ke.clear())})}let be;function ge(e){be=e}function Ue(){if(!be)throw new Error("Function called outside component initialization");return be}function Fe(e){Ue().$$.on_mount.push(e)}function ll(e){Ue().$$.after_update.push(e)}function nl(e){Ue().$$.on_destroy.push(e)}const oe=[],ze=[];let fe=[];const We=[],il=Promise.resolve();let Ie=!1;function rl(){Ie||(Ie=!0,il.then(It))}function te(e){fe.push(e)}const Ae=new Set;let re=0;function It(){if(re!==0)return;const e=be;do{try{for(;ree.indexOf(n)===-1?t.push(n):l.push(n)),l.forEach(n=>n()),fe=t}let me;function al(){return me||(me=Promise.resolve(),me.then(()=>{me=null})),me}function Me(e,t,l){e.dispatchEvent(Qt(`${t?"intro":"outro"}${l}`))}const $e=new Set;let Q;function le(){Q={r:0,c:[],p:Q}}function ne(){Q.r||Z(Q.c),Q=Q.p}function U(e,t){e&&e.i&&($e.delete(e),e.i(t))}function H(e,t,l,n){if(e&&e.o){if($e.has(e))return;$e.add(e),Q.c.push(()=>{$e.delete(e),n&&(l&&e.d(1),n())}),e.o(t)}else n&&n()}const fl={duration:0};function ce(e,t,l,n){const i={direction:"both"};let s=t(e,l,i),r=n?0:1,a=null,o=null,f=null;function u(){f&&el(e,f)}function d(m,g){const N=m.b-r;return g*=Math.abs(N),{a:r,b:m.b,d:N,duration:g,start:m.start,end:m.start+g,group:m.group}}function h(m){const{delay:g=0,duration:N=300,easing:$=Ft,tick:y=J,css:j}=s||fl,E={start:Wt()+g,b:m};m||(E.group=Q,Q.r+=1),a||o?o=E:(j&&(u(),f=Ye(e,r,m,N,g,$,j)),m&&y(0,1),a=d(E,N),te(()=>Me(e,m,"start")),qt(w=>{if(o&&w>o.start&&(a=d(o,N),o=null,Me(e,a.b,"start"),j&&(u(),f=Ye(e,r,a.b,a.duration,0,$,s.css))),a){if(w>=a.end)y(r=a.b,1-r),Me(e,a.b,"end"),o||(a.b?u():--a.group.r||Z(a.group.c)),a=null;else if(w>=a.start){const F=w-a.start;r=a.a+a.d*$(F/a.duration),y(r,1-r)}}return!!(a||o)}))}return{run(m){je(s)?al().then(()=>{s=s(i),h(m)}):h(m)},end(){u(),a=o=null}}}function cl(e,t){H(e,1,1,()=>{t.delete(e.key)})}function ul(e,t,l,n,i,s,r,a,o,f,u,d){let h=e.length,m=s.length,g=h;const N={};for(;g--;)N[e[g].key]=g;const $=[],y=new Map,j=new Map,E=[];for(g=m;g--;){const k=d(i,s,g),_=l(k);let v=r.get(_);v?n&&E.push(()=>v.p(k,t)):(v=f(_,k),v.c()),y.set(_,$[g]=v),_ in N&&j.set(_,Math.abs(g-N[_]))}const w=new Set,F=new Set;function A(k){U(k,1),k.m(a,u),r.set(k.key,k),u=k.first,m--}for(;h&&m;){const k=$[m-1],_=e[h-1],v=k.key,D=_.key;k===_?(u=k.first,h--,m--):y.has(D)?!r.has(v)||w.has(v)?A(k):F.has(D)?h--:j.get(v)>j.get(D)?(F.add(v),A(k)):(w.add(D),h--):(o(_,r),h--)}for(;h--;){const k=e[h];y.has(k.key)||o(k,r)}for(;m;)A($[m-1]);return Z(E),$}function ye(e){e&&e.c()}function ue(e,t,l,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,l),n||te(()=>{const r=e.$$.on_mount.map(Et).filter(je);e.$$.on_destroy?e.$$.on_destroy.push(...r):Z(r),e.$$.on_mount=[]}),s.forEach(te)}function de(e,t){const l=e.$$;l.fragment!==null&&(ol(l.after_update),Z(l.on_destroy),l.fragment&&l.fragment.d(t),l.on_destroy=l.fragment=null,l.ctx=[])}function dl(e,t){e.$$.dirty[0]===-1&&(oe.push(e),rl(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const g=m.length?m[0]:h;return f.ctx&&i(f.ctx[d],f.ctx[d]=g)&&(!f.skip_bound&&f.bound[d]&&f.bound[d](g),u&&dl(e,d)),h}):[],f.update(),u=!0,Z(f.before_update),f.fragment=n?n(f.ctx):!1,t.target){if(t.hydrate){const d=Xt(t.target);f.fragment&&f.fragment.l(d),d.forEach(M)}else f.fragment&&f.fragment.c();t.intro&&U(e.$$.fragment),ue(e,t.target,t.anchor,t.customElement),It()}ge(o)}class he{$destroy(){de(this,1),this.$destroy=J}$on(t,l){if(!je(l))return J;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(l),()=>{const i=n.indexOf(l);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Pt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function ve(e,t){const l=n=>{const{action:i,data:s}=n.data;i===e&&t(s)};Fe(()=>window.addEventListener("message",l)),nl(()=>window.removeEventListener("message",l))}const se=[];function q(e,t=J){let l;const n=new Set;function i(a){if(ie(e,a)&&(e=a,l)){const o=!se.length;for(const f of n)f[1](),se.push(f,e);if(o){for(let f=0;f{n.delete(f),n.size===0&&l&&(l(),l=null)}}return{set:i,update:s,subscribe:r}}const ee=q(!1),Se=q(!1),De=q(""),Dt=q(null),Lt=q(null),Tt=q(""),qe=q(!1),Je=q(!1),Be=q(null),Le=q(!0);function _l(e){Be.update(t=>t.filter(l=>l.data.id!==e))}const Ct=q(null),Pe=q(null);let Te=!1;Se.subscribe(e=>{Te=e});let jt="";De.subscribe(e=>{jt=e});async function K(e,t={},l){if(Te==!0&&l||Te==!0)return Promise.resolve(l||{});const n={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},i=window.GetParentResourceName?window.GetParentResourceName():jt;return await(await fetch(`https://${i}/${e}`,n)).json()}function Ke(e){let t,l;const n=e[2].default,i=Vt(n,e,e[1],null);return{c(){t=b("main"),i&&i.c(),p(t,"class","svelte-a4h32x")},m(s,r){C(s,t,r),i&&i.m(t,null),l=!0},p(s,r){i&&i.p&&(!l||r&2)&&Yt(i,n,s,s[1],l?Gt(n,s[1],r,null):zt(s[1]),null)},i(s){l||(U(i,s),l=!0)},o(s){H(i,s),l=!1},d(s){s&&M(t),i&&i.d(s)}}}function pl(e){let t,l,n=e[0]&&Ke(e);return{c(){n&&n.c(),t=x()},m(i,s){n&&n.m(i,s),C(i,t,s),l=!0},p(i,[s]){i[0]?n?(n.p(i,s),s&1&&U(n,1)):(n=Ke(i),n.c(),U(n,1),n.m(t.parentNode,t)):n&&(le(),H(n,1,1,()=>{n=null}),ne())},i(i){l||(U(n),l=!0)},o(i){H(n),l=!1},d(i){n&&n.d(i),i&&M(t)}}}function hl(e,t,l){let n,i;z(e,Se,o=>l(4,n=o)),z(e,ee,o=>l(0,i=o));let{$$slots:s={},$$scope:r}=t,a;return ee.subscribe(o=>{a=o}),ve("setVisible",o=>{ee.set(o)}),Fe(()=>{const o=f=>{a&&f.code==="Escape"&&(K("hideUI"),ee.set(!1)),!a&&f.code==="Escape"&&n&&(K("setVisible",!0),ee.set(!0))};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)}),e.$$set=o=>{"$$scope"in o&&l(1,r=o.$$scope)},[i,r,s]}class ml extends he{constructor(t){super(),pe(this,t,hl,pl,ie,{})}}const vl=()=>!window.invokeNative,Ce=(e,t=0)=>{if(vl())for(const l of e)setTimeout(()=>{window.dispatchEvent(new MessageEvent("message",{data:{action:l.action,data:l.data}}))},t)};function Xe(e,t,l){const n=e.slice();return n[4]=t[l],n}function Qe(e,t,l){const n=e.slice();return n[7]=t[l],n}function Ze(e){let t,l=e[1],n=[];for(let i=0;i{l(0,n=!n)},a=>{if(a.custom==!0){a.customFunction();return}Ce([{action:a.action,data:a.data}])}]}class yl extends he{constructor(t){super(),pe(this,t,bl,gl,ie,{})}}function wl(e,t,l){let n;z(e,ee,s=>l(0,n=s)),Ce([{action:"setVisible",data:!0}]),Ce([{action:"setBrowserMode",data:!0}]);function i(s){s.key==="="&&Re(ee,n=!0,n)}return ve("setBrowserMode",s=>{Se.set(s),console.log("browser mode enabled"),s?window.addEventListener("keydown",i):window.removeEventListener("keydown",i)}),ve("newCall",s=>{Be.update(r=>(r=r||[],r.push(s),r))}),ve("setDispatchs",s=>{Ct.set(s)}),ve("setupUI",s=>{Dt.set(s.player),Pe.set(s.locales),Tt.set(s.keybind),Lt.set(s.maxCallList)}),[]}class $l extends he{constructor(t){super(),pe(this,t,wl,null,ie,{})}}function Rt(e){const t=e-1;return t*t*t+1}function Ne(e,{delay:t=0,duration:l=400,easing:n=Rt,x:i=0,y:s=0,opacity:r=0}={}){const a=getComputedStyle(e),o=+a.opacity,f=a.transform==="none"?"":a.transform,u=o*(1-r),[d,h]=Ge(i),[m,g]=Ge(s);return{delay:t,duration:l,easing:n,css:(N,$)=>` - transform: ${f} translate(${(1-N)*d}${h}, ${(1-N)*m}${g}); - opacity: ${o-u*$}`}}function tt(e,{delay:t=0,duration:l=400,easing:n=Rt,axis:i="y"}={}){const s=getComputedStyle(e),r=+s.opacity,a=i==="y"?"height":"width",o=parseFloat(s[a]),f=i==="y"?["top","bottom"]:["left","right"],u=f.map(y=>`${y[0].toUpperCase()}${y.slice(1)}`),d=parseFloat(s[`padding${u[0]}`]),h=parseFloat(s[`padding${u[1]}`]),m=parseFloat(s[`margin${u[0]}`]),g=parseFloat(s[`margin${u[1]}`]),N=parseFloat(s[`border${u[0]}Width`]),$=parseFloat(s[`border${u[1]}Width`]);return{delay:t,duration:l,easing:n,css:y=>`overflow: hidden;opacity: ${Math.min(y*20,1)*r};${a}: ${y*o}px;padding-${f[0]}: ${y*d}px;padding-${f[1]}: ${y*h}px;margin-${f[0]}: ${y*m}px;margin-${f[1]}: ${y*g}px;border-${f[0]}-width: ${y*N}px;border-${f[1]}-width: ${y*$}px;`}}const kl=["January","February","March","April","May","June","July","August","September","October","November","December"];function we(e,t=!1,l=!1){const n=e.getDate(),i=kl[e.getMonth()],s=e.getFullYear(),r=e.getHours();let a=e.getMinutes();return a<10&&(a=`0${a}`),t?`${t} at ${r}:${a}`:l?`${n}. ${i} at ${r}:${a}`:`${n}. ${i} ${s}. at ${r}:${a}`}function Ot(e){if(!e)return"Unknown";let t;try{t=typeof e=="object"?e:new Date(e)}catch{return"Invalid date"}if(isNaN(t))return"Invalid date";const l=864e5,n=new Date,i=new Date(n-l),s=Math.round((n-t)/1e3),r=Math.round(s/60),a=n.toDateString()===t.toDateString(),o=i.toDateString()===t.toDateString(),f=n.getFullYear()===t.getFullYear();return s<5?"Just Now":s<60?`${s} Seconds ago`:s<90?"A minute ago":r<60?`${r} Minutes ago`:a?we(t,"Today"):o?we(t,"Yesterday"):f?we(t,!1,!0):we(t)}function lt(e,t,l){const n=e.slice();return n[21]=t[l],n}function nt(e,t,l){const n=e.slice();return n[24]=t[l],n}function it(e,t,l){const n=e.slice();return n[27]=t[l],n}function rt(e){let t,l,n=e[5].slice(-e[6]).filter(e[17]).slice().reverse(),i=[];for(let r=0;rH(i[r],1,1,()=>{i[r]=null});return{c(){for(let r=0;r0&&ft(e);function F(v,D){return D&224&&(m=null),m==null&&(m=!!Ut(v[21].units,v[7].citizenid)),m?Nl:El}let A=F(e,-1),k=A(e);function _(){return e[20](e[21])}return{c(){t=b("div"),w&&w.c(),l=S(),n=b("button"),i=b("p"),r=T(s),a=S(),f=T(o),d=S(),h=b("p"),k.c(),N=S(),p(i,"class",u="mx-[2vh] px-[2vh] py-[0.2vh] rounded-full "+(e[21].priority==1?" bg-accent_dark_red":" bg-accent_dark_green")),p(h,"class","ml-[3vh]"),p(n,"class",g="w-full h-[5vh] "+(e[21].priority==1?" bg-priority_quaternary":" bg-accent_green")+" flex items-center font-medium"),p(t,"class","mb-[1vh]")},m(v,D){C(v,t,D),w&&w.m(t,null),c(t,l),c(t,n),c(n,i),c(i,r),c(i,a),c(i,f),c(n,d),c(n,h),k.m(h,null),c(t,N),y=!0,j||(E=X(n,"click",_),j=!0)},p(v,D){e=v,e[21].units.length>0?w?w.p(e,D):(w=ft(e),w.c(),w.m(t,l)):w&&(w.d(1),w=null),(!y||D&224)&&s!==(s=e[21].units.length+"")&&B(r,s),(!y||D&256)&&o!==(o=e[8].units+"")&&B(f,o),(!y||D&224&&u!==(u="mx-[2vh] px-[2vh] py-[0.2vh] rounded-full "+(e[21].priority==1?" bg-accent_dark_red":" bg-accent_dark_green")))&&p(i,"class",u),A===(A=F(e,D))&&k?k.p(e,D):(k.d(1),k=A(e),k&&(k.c(),k.m(h,null))),(!y||D&224&&g!==(g="w-full h-[5vh] "+(e[21].priority==1?" bg-priority_quaternary":" bg-accent_green")+" flex items-center font-medium"))&&p(n,"class",g)},i(v){y||(te(()=>{y&&($||($=ce(t,tt,{duration:300},!0)),$.run(1))}),y=!0)},o(v){$||($=ce(t,tt,{duration:300},!1)),$.run(0),y=!1},d(v){v&&M(t),w&&w.d(),k.d(),v&&$&&$.end(),j=!1,E()}}}function ft(e){let t,l,n=e[21].units.slice(0,e[1][e[21].id]?e[21].units.length:3),i=[];for(let r=0;r3&&ut(e);return{c(){t=b("div");for(let r=0;r3?s?s.p(r,a):(s=ut(r),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(r){r&&M(t),_e(i,r),s&&s.d()}}}function ct(e){let t,l,n=e[24].metadata.callsign+"",i,s,r,a,o=e[24].job.name+"",f,u,d,h,m=e[24].charinfo.firstname+"",g,N,$=e[24].charinfo.lastname+"",y,j;return{c(){t=b("div"),l=b("p"),i=T(n),r=S(),a=b("p"),f=T(o),d=S(),h=b("p"),g=T(m),N=S(),y=T($),p(l,"class",s="ml-[2vh] px-[1.4vh] py-[0.2vh] rounded-full "+(e[21].priority==1?"bg-priority_secondary":"bg-secondary")),p(a,"class",u="mx-[1vh] px-[1.5vh] py-[0.2vh] rounded-full uppercase "+(e[24].job.type=="leo"?"bg-[#004ca5] ":e[24].job.type=="ems"?"bg-[#e03535]":"bg-[#4b4b4b]")),p(h,"class","ml-[0.5vh]"),p(t,"class",j="w-full h-[5vh] flex "+(e[21].priority==1?"bg-priority_tertiary":"bg-tertiary")+" flex items-center font-medium")},m(E,w){C(E,t,w),c(t,l),c(l,i),c(t,r),c(t,a),c(a,f),c(t,d),c(t,h),c(h,g),c(h,N),c(h,y)},p(E,w){w&226&&n!==(n=E[24].metadata.callsign+"")&&B(i,n),w&224&&s!==(s="ml-[2vh] px-[1.4vh] py-[0.2vh] rounded-full "+(E[21].priority==1?"bg-priority_secondary":"bg-secondary"))&&p(l,"class",s),w&226&&o!==(o=E[24].job.name+"")&&B(f,o),w&226&&u!==(u="mx-[1vh] px-[1.5vh] py-[0.2vh] rounded-full uppercase "+(E[24].job.type=="leo"?"bg-[#004ca5] ":E[24].job.type=="ems"?"bg-[#e03535]":"bg-[#4b4b4b]"))&&p(a,"class",u),w&226&&m!==(m=E[24].charinfo.firstname+"")&&B(g,m),w&226&&$!==($=E[24].charinfo.lastname+"")&&B(y,$),w&224&&j!==(j="w-full h-[5vh] flex "+(E[21].priority==1?"bg-priority_tertiary":"bg-tertiary")+" flex items-center font-medium")&&p(t,"class",j)},d(E){E&&M(t)}}}function ut(e){let t,l=!e[1][e[21].id]&&dt(e);return{c(){l&&l.c(),t=x()},m(n,i){l&&l.m(n,i),C(n,t,i)},p(n,i){n[1][n[21].id]?l&&(l.d(1),l=null):l?l.p(n,i):(l=dt(n),l.c(),l.m(t.parentNode,t))},d(n){l&&l.d(n),n&&M(t)}}}function dt(e){let t,l,n,i=pt(e[21])+"",s,r,a=e[8].additionals+"",o,f,u,d;function h(){return e[19](e[21])}return{c(){t=b("button"),l=b("p"),n=T("+"),s=T(i),r=S(),o=T(a),p(l,"class","ml-[0.5vh]"),p(t,"class",f="w-full h-[5vh] flex items-center justify-center "+(e[21].priority==1?"bg-priority_tertiary":"bg-tertiary")+" flex items-center font-medium")},m(m,g){C(m,t,g),c(t,l),c(l,n),c(l,s),c(l,r),c(l,o),u||(d=X(t,"click",h),u=!0)},p(m,g){e=m,g&224&&i!==(i=pt(e[21])+"")&&B(s,i),g&256&&a!==(a=e[8].additionals+"")&&B(o,a),g&224&&f!==(f="w-full h-[5vh] flex items-center justify-center "+(e[21].priority==1?"bg-priority_tertiary":"bg-tertiary")+" flex items-center font-medium")&&p(t,"class",f)},d(m){m&&M(t),u=!1,d()}}}function El(e){let t=e[8].dispatch_attach+"",l;return{c(){l=T(t)},m(n,i){C(n,l,i)},p(n,i){i&256&&t!==(t=n[8].dispatch_attach+"")&&B(l,t)},d(n){n&&M(l)}}}function Nl(e){let t=e[8].dispatch_detach+"",l;return{c(){l=T(t)},m(n,i){C(n,l,i)},p(n,i){i&256&&t!==(t=n[8].dispatch_detach+"")&&B(l,t)},d(n){n&&M(l)}}}function _t(e){let t,l,n,i,s=e[21].id+"",r,a,o,f=e[21].code+"",u,d,h,m,g=e[21].message+"",N,$,y,j,E,w,F,A,k,_,v,D,P,Y=e[14](e[21]),R=[];for(let L=0;L{I=null}),ne())},i(L){v||(U(I),v=!0)},o(L){H(I),v=!1},d(L){L&&M(t),_e(R,L),L&&M(k),I&&I.d(L),L&&M(_),D=!1,P()}}}function Sl(e){let t,l,n,i,s,r,a,o,f,u,d,h,m,g,N,$,y,j,E,w,F,A,k,_,v=e[5]&&rt(e);return{c(){t=b("div"),l=b("div"),n=b("button"),n.innerHTML='',i=S(),s=b("button"),r=b("i"),o=S(),f=b("button"),u=b("i"),h=S(),m=b("button"),m.innerHTML='',g=S(),N=b("button"),$=b("i"),j=S(),E=b("div"),v&&v.c(),p(n,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p(r,"class",a="fas fa-volume-"+(e[3]?"xmark":"high")+" text-[1.5vh]"),p(s,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p(u,"class",d="fas fa-"+(e[2]?"bell-slash":"bell")+" text-[1.5vh]"),p(f,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p(m,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p($,"class",y="fas fa-"+(e[4]?"hand-point-left":"hand-point-right")+" text-[1.5vh]"),p(N,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p(l,"class","w-[3.2vh] h-[85%] flex flex-col gap-[1vh]"),W(l,"ml-[1vh]",!e[4]),W(l,"mr-[1vh]",e[4]),p(E,"class","w-[25%] h-[97%] overflow-auto pr-[0.5vh]"),W(E,"ml-[2vh]",!e[4]),W(E,"mr-[2vh]",e[4]),p(t,"class",w="w-screen h-screen flex items-center justify-end "+(e[4]?"flex-row":"flex-row-reverse"))},m(D,P){C(D,t,P),c(t,l),c(l,n),c(l,i),c(l,s),c(s,r),c(l,o),c(l,f),c(f,u),c(l,h),c(l,m),c(l,g),c(l,N),c(N,$),c(t,j),c(t,E),v&&v.m(E,null),A=!0,k||(_=[X(n,"click",e[15]),X(s,"click",e[12]),X(f,"click",e[13]),X(m,"click",e[16]),X(N,"click",e[11])],k=!0)},p(D,[P]){e=D,(!A||P&8&&a!==(a="fas fa-volume-"+(e[3]?"xmark":"high")+" text-[1.5vh]"))&&p(r,"class",a),(!A||P&4&&d!==(d="fas fa-"+(e[2]?"bell-slash":"bell")+" text-[1.5vh]"))&&p(u,"class",d),(!A||P&16&&y!==(y="fas fa-"+(e[4]?"hand-point-left":"hand-point-right")+" text-[1.5vh]"))&&p($,"class",y),(!A||P&16)&&W(l,"ml-[1vh]",!e[4]),(!A||P&16)&&W(l,"mr-[1vh]",e[4]),e[5]?v?(v.p(e,P),P&32&&U(v,1)):(v=rt(e),v.c(),U(v,1),v.m(E,null)):v&&(le(),H(v,1,1,()=>{v=null}),ne()),(!A||P&16)&&W(E,"ml-[2vh]",!e[4]),(!A||P&16)&&W(E,"mr-[2vh]",e[4]),(!A||P&16&&w!==(w="w-screen h-screen flex items-center justify-end "+(e[4]?"flex-row":"flex-row-reverse")))&&p(t,"class",w)},i(D){A||(U(v),te(()=>{A&&(F||(F=ce(t,Ne,{x:e[4]?400:-400},!0)),F.run(1))}),A=!0)},o(D){H(v),F||(F=ce(t,Ne,{x:e[4]?400:-400},!1)),F.run(0),A=!1},d(D){D&&M(t),v&&v.d(),D&&F&&F.end(),k=!1,Z(_)}}}function Ut(e,t){for(let l=0;ll(2,n=_)),z(e,qe,_=>l(3,i=_)),z(e,Le,_=>l(4,s=_)),z(e,Ct,_=>l(5,r=_)),z(e,Lt,_=>l(6,a=_)),z(e,Dt,_=>l(7,o=_)),z(e,Pe,_=>l(8,f=_));let u=null,d={};function h(_){u===_?l(0,u=null):l(0,u=_)}function m(_){l(1,d[_]=!d[_],d)}function g(){Re(Le,s=!s,s)}function N(){qe.update(_=>!_),K("toggleMute",{boolean:i})}function $(){Je.update(_=>!_),K("toggleAlerts",{boolean:n})}function y(_){return[{icon:"fas fa-clock",label:"Time",value:Ot(_.time)},{icon:"fas fa-user",label:"Name",value:_.name},{icon:"fas fa-phone",label:"Number",value:_.number},{icon:"fas fa-comment",label:"Information",value:_.information},{icon:"fas fa-map-location-dot",label:"Street",value:_.street},{icon:"fas fa-user",label:"Gender",value:_.gender},{icon:"fas fa-gun",label:"Automatic Gun Fire",value:_.automaticGunFire},{icon:"fas fa-gun",label:"Weapon",value:_.weapon},{icon:"fas fa-car",label:"Vehicle",value:_.vehicle},{icon:"fas fa-rectangle-list",label:"Plate",value:_.plate},{icon:"fas fa-droplet",label:"Color",value:_.color},{icon:"fas fa-car",label:"Class",value:_.class},{icon:"fas fa-door-open",label:"Doors",value:_.doors},{icon:"fas fa-compass",label:"Heading",value:_.heading},{icon:"fas fa-user-group",label:"Units",value:_.units.length}]}return[u,d,n,i,s,r,a,o,f,h,m,g,N,$,y,()=>{K("refreshAlerts")},()=>{K("clearBlips")},_=>_.message&&_.jobs.includes(o.job.type),_=>h(_.id),_=>m(_.id),_=>{Ut(_.units,o.citizenid)?(K("detachUnit",_),K("refreshAlerts")):(K("attachUnit",_),K("refreshAlerts"))}]}class Ml extends he{constructor(t){super(),pe(this,t,Al,Sl,ie,{})}}function ht(e,t,l){const n=e.slice();return n[5]=t[l],n[7]=l,n}function mt(e,t,l){const n=e.slice();return n[8]=t[l],n}function vt(e){let t,l=e[3](e[5]),n=[];for(let i=0;i{R&&(Y||(Y=ce(l,Ne,{x:t[1]?400:-400},!0)),Y.run(1))}),R=!0)},o(L){Y||(Y=ce(l,Ne,{x:t[1]?400:-400},!1)),Y.run(0),R=!1},d(L){L&&M(l),G&&G.d(),I&&I.d(),L&&Y&&Y.end()}}}function Il(e){let t,l,n=[],i=new Map,s,r,a=e[0].slice().reverse();const o=f=>f[5].data.id;for(let f=0;fl(1,n=o)),z(e,Tt,o=>l(2,i=o));let s=[];Be.subscribe(o=>{l(0,s=o||[])});function r(o){_l(o)}Fe(()=>{s.forEach(o=>{const{data:f,timer:u}=o;setTimeout(()=>{r(f.id)},u)})}),ll(()=>{s.forEach(o=>{const{data:f,timer:u}=o;setTimeout(()=>{r(f.id)},u)})});function a(o){return[{icon:"fas fa-clock",label:"Time",value:Ot(o.data.time)},{icon:"fas fa-user",label:"Name",value:o.data.name},{icon:"fas fa-phone",label:"Number",value:o.data.number},{icon:"fas fa-comment",label:"Information",value:o.data.information},{icon:"fas fa-map-location-dot",label:"Street",value:o.data.street},{icon:"fas fa-user",label:"Gender",value:o.data.gender},{icon:"fas fa-gun",label:"Automatic Gun Fire",value:o.data.automaticGunFire},{icon:"fas fa-gun",label:"Weapon",value:o.data.weapon},{icon:"fas fa-car",label:"Vehicle",value:o.data.vehicle},{icon:"fas fa-rectangle-list",label:"Plate",value:o.data.plate},{icon:"fas fa-droplet",label:"Color",value:o.data.color},{icon:"fas fa-car",label:"Class",value:o.data.class},{icon:"fas fa-door-open",label:"Doors",value:o.data.doors},{icon:"fas fa-compass",label:"Heading",value:o.data.heading}]}return[s,n,i,a]}class Ll extends he{constructor(t){super(),pe(this,t,Dl,Il,ie,{})}}function $t(e){let t,l,n,i;return t=new ml({props:{$$slots:{default:[Tl]},$$scope:{ctx:e}}}),n=new Ll({}),{c(){ye(t.$$.fragment),l=S(),ye(n.$$.fragment)},m(s,r){ue(t,s,r),C(s,l,r),ue(n,s,r),i=!0},i(s){i||(U(t.$$.fragment,s),U(n.$$.fragment,s),i=!0)},o(s){H(t.$$.fragment,s),H(n.$$.fragment,s),i=!1},d(s){de(t,s),s&&M(l),de(n,s)}}}function Tl(e){let t,l;return t=new Ml({}),{c(){ye(t.$$.fragment)},m(n,i){ue(t,n,i),l=!0},i(n){l||(U(t.$$.fragment,n),l=!0)},o(n){H(t.$$.fragment,n),l=!1},d(n){de(t,n)}}}function kt(e){let t,l,n,i;return t=new yl({}),{c(){ye(t.$$.fragment),l=S(),n=b("body"),p(n,"class","bg-neutral-700")},m(s,r){ue(t,s,r),C(s,l,r),C(s,n,r),i=!0},i(s){i||(U(t.$$.fragment,s),i=!0)},o(s){H(t.$$.fragment,s),i=!1},d(s){de(t,s),s&&M(l),s&&M(n)}}}function Cl(e){let t,l,n,i,s,r=e[0]&&$t(e);l=new $l({});let a=e[1]&&kt();return{c(){r&&r.c(),t=S(),ye(l.$$.fragment),n=S(),a&&a.c(),i=x()},m(o,f){r&&r.m(o,f),C(o,t,f),ue(l,o,f),C(o,n,f),a&&a.m(o,f),C(o,i,f),s=!0},p(o,[f]){o[0]?r?f&1&&U(r,1):(r=$t(o),r.c(),U(r,1),r.m(t.parentNode,t)):r&&(le(),H(r,1,1,()=>{r=null}),ne()),o[1]?a?f&2&&U(a,1):(a=kt(),a.c(),U(a,1),a.m(i.parentNode,i)):a&&(le(),H(a,1,1,()=>{a=null}),ne())},i(o){s||(U(r),U(l.$$.fragment,o),U(a),s=!0)},o(o){H(r),H(l.$$.fragment,o),H(a),s=!1},d(o){r&&r.d(o),o&&M(t),de(l,o),o&&M(n),a&&a.d(o),o&&M(i)}}}function jl(e,t,l){let n,i,s;return z(e,De,r=>l(2,n=r)),z(e,Pe,r=>l(0,i=r)),z(e,Se,r=>l(1,s=r)),Re(De,n="ps-dispatch",n),[i,s]}class Rl extends he{constructor(t){super(),pe(this,t,jl,Cl,ie,{})}}new Rl({target:document.getElementById("app")}); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function l(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=l(i);fetch(i.href,s)}})();function q(){}const Pt=e=>e;function Vt(e,t){for(const l in t)e[l]=t[l];return e}function Mt(e){return e()}function Ye(){return Object.create(null)}function Z(e){e.forEach(Mt)}function Ne(e){return typeof e=="function"}function ie(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Ht(e){return Object.keys(e).length===0}function St(e,...t){if(e==null)return q;const l=e.subscribe(...t);return l.unsubscribe?()=>l.unsubscribe():l}function Y(e,t,l){e.$$.on_destroy.push(St(t,l))}function Gt(e,t,l,n){if(e){const i=Nt(e,t,l,n);return e[0](i)}}function Nt(e,t,l,n){return e[1]&&n?Vt(l.ctx.slice(),e[1](n(t))):l.ctx}function Yt(e,t,l,n){if(e[2]&&n){const i=e[2](n(l));if(t.dirty===void 0)return i;if(typeof i=="object"){const s=[],r=Math.max(t.dirty.length,i.length);for(let a=0;a32){const t=[],l=e.ctx.length/32;for(let n=0;nwindow.performance.now():()=>Date.now(),Oe=Dt?e=>requestAnimationFrame(e):q;const ae=new Set;function At(e){ae.forEach(t=>{t.c(e)||(ae.delete(t),t.f())}),ae.size!==0&&Oe(At)}function Jt(e){let t;return ae.size===0&&Oe(At),{promise:new Promise(l=>{ae.add(t={c:e,f:l})}),abort(){ae.delete(t)}}}function d(e,t){e.appendChild(t)}function Ct(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Kt(e){const t=b("style");return Qt(Ct(e),t),t.sheet}function Qt(e,t){return d(e.head||e,t),t.sheet}function R(e,t,l){e.insertBefore(t,l||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function _e(e,t){for(let l=0;le.removeEventListener(t,l,n)}function p(e,t,l){l==null?e.removeAttribute(t):e.getAttribute(t)!==l&&e.setAttribute(t,l)}function Xt(e){return Array.from(e.childNodes)}function B(e,t){t=""+t,e.data!==t&&(e.data=t)}function J(e,t,l){e.classList[l?"add":"remove"](t)}function Zt(e,t,{bubbles:l=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,l,n,t),i}const Ie=new Map;let Me=0;function xt(e){let t=5381,l=e.length;for(;l--;)t=(t<<5)-t^e.charCodeAt(l);return t>>>0}function el(e,t){const l={stylesheet:Kt(t),rules:{}};return Ie.set(e,l),l}function We(e,t,l,n,i,s,r,a=0){const f=16.666/n;let o=`{ +`;for(let $=0;$<=1;$+=f){const y=t+(l-t)*s($);o+=$*100+`%{${r(y,1-y)}} +`}const u=o+`100% {${r(l,1-l)}} +}`,c=`__svelte_${xt(u)}_${a}`,m=Ct(e),{stylesheet:h,rules:g}=Ie.get(m)||el(m,e);g[c]||(g[c]=!0,h.insertRule(`@keyframes ${c} ${u}`,h.cssRules.length));const k=e.style.animation||"";return e.style.animation=`${k?`${k}, `:""}${c} ${n}ms linear ${i}ms 1 both`,Me+=1,c}function tl(e,t){const l=(e.style.animation||"").split(", "),n=l.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=l.length-n.length;i&&(e.style.animation=n.join(", "),Me-=i,Me||ll())}function ll(){Oe(()=>{Me||(Ie.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&S(t)}),Ie.clear())})}let we;function ve(e){we=e}function Ue(){if(!we)throw new Error("Function called outside component initialization");return we}function Fe(e){Ue().$$.on_mount.push(e)}function nl(e){Ue().$$.after_update.push(e)}function il(e){Ue().$$.on_destroy.push(e)}const oe=[],qe=[];let fe=[];const Je=[],rl=Promise.resolve();let Re=!1;function sl(){Re||(Re=!0,rl.then(Rt))}function te(e){fe.push(e)}const Ae=new Set;let re=0;function Rt(){if(re!==0)return;const e=we;do{try{for(;ree.indexOf(n)===-1?t.push(n):l.push(n)),l.forEach(n=>n()),fe=t}let me;function fl(){return me||(me=Promise.resolve(),me.then(()=>{me=null})),me}function Ce(e,t,l){e.dispatchEvent(Zt(`${t?"intro":"outro"}${l}`))}const Ee=new Set;let X;function le(){X={r:0,c:[],p:X}}function ne(){X.r||Z(X.c),X=X.p}function O(e,t){e&&e.i&&(Ee.delete(e),e.i(t))}function V(e,t,l,n){if(e&&e.o){if(Ee.has(e))return;Ee.add(e),X.c.push(()=>{Ee.delete(e),n&&(l&&e.d(1),n())}),e.o(t)}else n&&n()}const cl={duration:0};function ce(e,t,l,n){const i={direction:"both"};let s=t(e,l,i),r=n?0:1,a=null,f=null,o=null;function u(){o&&tl(e,o)}function c(h,g){const k=h.b-r;return g*=Math.abs(k),{a:r,b:h.b,d:k,duration:g,start:h.start,end:h.start+g,group:h.group}}function m(h){const{delay:g=0,duration:k=300,easing:$=Pt,tick:y=q,css:j}=s||cl,E={start:qt()+g,b:h};h||(E.group=X,X.r+=1),a||f?f=E:(j&&(u(),o=We(e,r,h,k,g,$,j)),h&&y(0,1),a=c(E,k),te(()=>Ce(e,h,"start")),Jt(w=>{if(f&&w>f.start&&(a=c(f,k),f=null,Ce(e,a.b,"start"),j&&(u(),o=We(e,r,a.b,a.duration,0,$,s.css))),a){if(w>=a.end)y(r=a.b,1-r),Ce(e,a.b,"end"),f||(a.b?u():--a.group.r||Z(a.group.c)),a=null;else if(w>=a.start){const U=w-a.start;r=a.a+a.d*$(U/a.duration),y(r,1-r)}}return!!(a||f)}))}return{run(h){Ne(s)?fl().then(()=>{s=s(i),m(h)}):m(h)},end(){u(),a=f=null}}}function ul(e,t){V(e,1,1,()=>{t.delete(e.key)})}function dl(e,t,l,n,i,s,r,a,f,o,u,c){let m=e.length,h=s.length,g=m;const k={};for(;g--;)k[e[g].key]=g;const $=[],y=new Map,j=new Map,E=[];for(g=h;g--;){const _=c(i,s,g),F=l(_);let v=r.get(F);v?n&&E.push(()=>v.p(_,t)):(v=o(F,_),v.c()),y.set(F,$[g]=v),F in k&&j.set(F,Math.abs(g-k[F]))}const w=new Set,U=new Set;function M(_){O(_,1),_.m(a,u),r.set(_.key,_),u=_.first,h--}for(;m&&h;){const _=$[h-1],F=e[m-1],v=_.key,D=F.key;_===F?(u=_.first,m--,h--):y.has(D)?!r.has(v)||w.has(v)?M(_):U.has(D)?m--:j.get(v)>j.get(D)?(U.add(v),M(_)):(w.add(D),m--):(f(F,r),m--)}for(;m--;){const _=e[m];y.has(_.key)||f(_,r)}for(;h;)M($[h-1]);return Z(E),$}function $e(e){e&&e.c()}function ue(e,t,l,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,l),n||te(()=>{const r=e.$$.on_mount.map(Mt).filter(Ne);e.$$.on_destroy?e.$$.on_destroy.push(...r):Z(r),e.$$.on_mount=[]}),s.forEach(te)}function de(e,t){const l=e.$$;l.fragment!==null&&(al(l.after_update),Z(l.on_destroy),l.fragment&&l.fragment.d(t),l.on_destroy=l.fragment=null,l.ctx=[])}function _l(e,t){e.$$.dirty[0]===-1&&(oe.push(e),sl(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const g=h.length?h[0]:m;return o.ctx&&i(o.ctx[c],o.ctx[c]=g)&&(!o.skip_bound&&o.bound[c]&&o.bound[c](g),u&&_l(e,c)),m}):[],o.update(),u=!0,Z(o.before_update),o.fragment=n?n(o.ctx):!1,t.target){if(t.hydrate){const c=Xt(t.target);o.fragment&&o.fragment.l(c),c.forEach(S)}else o.fragment&&o.fragment.c();t.intro&&O(e.$$.fragment),ue(e,t.target,t.anchor,t.customElement),Rt()}ve(f)}class he{$destroy(){de(this,1),this.$destroy=q}$on(t,l){if(!Ne(l))return q;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(l),()=>{const i=n.indexOf(l);i!==-1&&n.splice(i,1)}}$set(t){this.$$set&&!Ht(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function ge(e,t){const l=n=>{const{action:i,data:s}=n.data;i===e&&t(s)};Fe(()=>window.addEventListener("message",l)),il(()=>window.removeEventListener("message",l))}const se=[];function pl(e,t){return{subscribe:W(e,t).subscribe}}function W(e,t=q){let l;const n=new Set;function i(a){if(ie(e,a)&&(e=a,l)){const f=!se.length;for(const o of n)o[1](),se.push(o,e);if(f){for(let o=0;o{n.delete(o),n.size===0&&l&&(l(),l=null)}}return{set:i,update:s,subscribe:r}}function hl(e,t,l){const n=!Array.isArray(e),i=n?[e]:e,s=t.length<2;return pl(l,r=>{let a=!1;const f=[];let o=0,u=q;const c=()=>{if(o)return;u();const h=t(n?f[0]:f,r);s?r(h):u=Ne(h)?h:q},m=i.map((h,g)=>St(h,k=>{f[g]=k,o&=~(1<{o|=1<t.filter(l=>l.data.id!==e))}const Ve=W(null),He=W(null),gl=hl([Ve,jt,Be],([e,t,l])=>!e||t===null||!l?[]:e.slice(-t).filter(n=>n.message&&n.jobs.includes(l.job.type)).reverse());let Te=!1;De.subscribe(e=>{Te=e});let Ot="";je.subscribe(e=>{Ot=e});async function K(e,t={},l){if(Te==!0&&l||Te==!0)return Promise.resolve(l||{});const n={method:"post",headers:{"Content-Type":"application/json; charset=UTF-8"},body:JSON.stringify(t)},i=window.GetParentResourceName?window.GetParentResourceName():Ot;return await(await fetch(`https://${i}/${e}`,n)).json()}function Xe(e){let t,l;const n=e[2].default,i=Gt(n,e,e[1],null);return{c(){t=b("main"),i&&i.c(),p(t,"class","svelte-a4h32x")},m(s,r){R(s,t,r),i&&i.m(t,null),l=!0},p(s,r){i&&i.p&&(!l||r&2)&&zt(i,n,s,s[1],l?Yt(n,s[1],r,null):Wt(s[1]),null)},i(s){l||(O(i,s),l=!0)},o(s){V(i,s),l=!1},d(s){s&&S(t),i&&i.d(s)}}}function vl(e){let t,l,n=e[0]&&Xe(e);return{c(){n&&n.c(),t=x()},m(i,s){n&&n.m(i,s),R(i,t,s),l=!0},p(i,[s]){i[0]?n?(n.p(i,s),s&1&&O(n,1)):(n=Xe(i),n.c(),O(n,1),n.m(t.parentNode,t)):n&&(le(),V(n,1,1,()=>{n=null}),ne())},i(i){l||(O(n),l=!0)},o(i){V(n),l=!1},d(i){n&&n.d(i),i&&S(t)}}}function bl(e,t,l){let n,i;Y(e,De,f=>l(4,n=f)),Y(e,ee,f=>l(0,i=f));let{$$slots:s={},$$scope:r}=t,a;return ee.subscribe(f=>{a=f}),ge("setVisible",f=>{ee.set(f)}),Fe(()=>{const f=o=>{a&&o.code==="Escape"&&(K("hideUI"),ee.set(!1)),!a&&o.code==="Escape"&&n&&(K("setVisible",!0),ee.set(!0))};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)}),e.$$set=f=>{"$$scope"in f&&l(1,r=f.$$scope)},[i,r,s]}class yl extends he{constructor(t){super(),pe(this,t,bl,vl,ie,{})}}const wl=()=>!window.invokeNative,Le=(e,t=0)=>{if(wl())for(const l of e)setTimeout(()=>{window.dispatchEvent(new MessageEvent("message",{data:{action:l.action,data:l.data}}))},t)};function Ze(e,t,l){const n=e.slice();return n[4]=t[l],n}function xe(e,t,l){const n=e.slice();return n[7]=t[l],n}function et(e){let t,l=e[1],n=[];for(let i=0;i{l(0,n=!n)},a=>{if(a.custom==!0){a.customFunction();return}Le([{action:a.action,data:a.data}])}]}class El extends he{constructor(t){super(),pe(this,t,kl,$l,ie,{})}}function Il(e,t,l){let n;Y(e,ee,s=>l(0,n=s)),Le([{action:"setVisible",data:!0}]),Le([{action:"setBrowserMode",data:!0}]);function i(s){s.key==="="&&ye(ee,n=!0,n)}return ge("setBrowserMode",s=>{De.set(s),console.log("browser mode enabled"),s?window.addEventListener("keydown",i):window.removeEventListener("keydown",i)}),ge("newCall",s=>{Pe.update(r=>(r=r||[],r.push(s),r))}),ge("setDispatchs",s=>{Ve.set(s)}),ge("setupUI",s=>{Be.set(s.player),He.set(s.locales),Tt.set(s.keybind),jt.set(s.maxCallList),Lt.set(s.shortCalls)}),[]}class Ml extends he{constructor(t){super(),pe(this,t,Il,null,ie,{})}}function Ut(e){const t=e-1;return t*t*t+1}function Se(e,{delay:t=0,duration:l=400,easing:n=Ut,x:i=0,y:s=0,opacity:r=0}={}){const a=getComputedStyle(e),f=+a.opacity,o=a.transform==="none"?"":a.transform,u=f*(1-r),[c,m]=ze(i),[h,g]=ze(s);return{delay:t,duration:l,easing:n,css:(k,$)=>` + transform: ${o} translate(${(1-k)*c}${m}, ${(1-k)*h}${g}); + opacity: ${f-u*$}`}}function nt(e,{delay:t=0,duration:l=400,easing:n=Ut,axis:i="y"}={}){const s=getComputedStyle(e),r=+s.opacity,a=i==="y"?"height":"width",f=parseFloat(s[a]),o=i==="y"?["top","bottom"]:["left","right"],u=o.map(y=>`${y[0].toUpperCase()}${y.slice(1)}`),c=parseFloat(s[`padding${u[0]}`]),m=parseFloat(s[`padding${u[1]}`]),h=parseFloat(s[`margin${u[0]}`]),g=parseFloat(s[`margin${u[1]}`]),k=parseFloat(s[`border${u[0]}Width`]),$=parseFloat(s[`border${u[1]}Width`]);return{delay:t,duration:l,easing:n,css:y=>`overflow: hidden;opacity: ${Math.min(y*20,1)*r};${a}: ${y*f}px;padding-${o[0]}: ${y*c}px;padding-${o[1]}: ${y*m}px;margin-${o[0]}: ${y*h}px;margin-${o[1]}: ${y*g}px;border-${o[0]}-width: ${y*k}px;border-${o[1]}-width: ${y*$}px;`}}const Sl=["January","February","March","April","May","June","July","August","September","October","November","December"];function ke(e,t=!1,l=!1){const n=e.getDate(),i=Sl[e.getMonth()],s=e.getFullYear(),r=e.getHours();let a=e.getMinutes();return a<10&&(a=`0${a}`),t?`${t} at ${r}:${a}`:l?`${n}. ${i} at ${r}:${a}`:`${n}. ${i} ${s}. at ${r}:${a}`}function Ft(e){if(!e)return"Unknown";let t;try{t=typeof e=="object"?e:new Date(e)}catch{return"Invalid date"}if(isNaN(t))return"Invalid date";const l=864e5,n=new Date,i=new Date(n-l),s=Math.round((n-t)/1e3),r=Math.round(s/60),a=n.toDateString()===t.toDateString(),f=i.toDateString()===t.toDateString(),o=n.getFullYear()===t.getFullYear();return s<5?"Just Now":s<60?`${s} Seconds ago`:s<90?"A minute ago":r<60?`${r} Minutes ago`:a?ke(t,"Today"):f?ke(t,"Yesterday"):o?ke(t,!1,!0):ke(t)}function it(e,t,l){const n=e.slice();return n[20]=t[l],n}function rt(e,t,l){const n=e.slice();return n[23]=t[l],n}function st(e,t,l){const n=e.slice();return n[26]=t[l],n}function ot(e){let t,l,n=e[6],i=[];for(let r=0;rV(i[r],1,1,()=>{i[r]=null});return{c(){for(let r=0;r0&&ut(e);function U(v,D){return D&320&&(h=null),h==null&&(h=!!Bt(v[20].units,v[8].citizenid)),h?Dl:Nl}let M=U(e,-1),_=M(e);function F(){return e[19](e[20])}return{c(){t=b("div"),w&&w.c(),l=I(),n=b("button"),i=b("p"),r=C(s),a=I(),o=C(f),c=I(),m=b("p"),_.c(),k=I(),p(i,"class",u="mx-[2vh] px-[2vh] py-[0.2vh] rounded-full "+(e[20].priority==1?" bg-accent_dark_red":" bg-accent_dark_green")),p(m,"class","ml-[3vh]"),p(n,"class",g="w-full h-[5vh] "+(e[20].priority==1?" bg-priority_quaternary":" bg-accent_green")+" flex items-center font-medium"),p(t,"class","mb-[1vh]")},m(v,D){R(v,t,D),w&&w.m(t,null),d(t,l),d(t,n),d(n,i),d(i,r),d(i,a),d(i,o),d(n,c),d(n,m),_.m(m,null),d(t,k),y=!0,j||(E=Q(n,"click",F),j=!0)},p(v,D){e=v,e[20].units.length>0?w?w.p(e,D):(w=ut(e),w.c(),w.m(t,l)):w&&(w.d(1),w=null),(!y||D&64)&&s!==(s=e[20].units.length+"")&&B(r,s),(!y||D&128)&&f!==(f=e[7].units+"")&&B(o,f),(!y||D&64&&u!==(u="mx-[2vh] px-[2vh] py-[0.2vh] rounded-full "+(e[20].priority==1?" bg-accent_dark_red":" bg-accent_dark_green")))&&p(i,"class",u),M===(M=U(e,D))&&_?_.p(e,D):(_.d(1),_=M(e),_&&(_.c(),_.m(m,null))),(!y||D&64&&g!==(g="w-full h-[5vh] "+(e[20].priority==1?" bg-priority_quaternary":" bg-accent_green")+" flex items-center font-medium"))&&p(n,"class",g)},i(v){y||(te(()=>{y&&($||($=ce(t,nt,{duration:300},!0)),$.run(1))}),y=!0)},o(v){$||($=ce(t,nt,{duration:300},!1)),$.run(0),y=!1},d(v){v&&S(t),w&&w.d(),_.d(),v&&$&&$.end(),j=!1,E()}}}function ut(e){let t,l,n=e[20].units.slice(0,e[1][e[20].id]?e[20].units.length:3),i=[];for(let r=0;r3&&_t(e);return{c(){t=b("div");for(let r=0;r3?s?s.p(r,a):(s=_t(r),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(r){r&&S(t),_e(i,r),s&&s.d()}}}function dt(e){let t,l,n=e[23].metadata.callsign+"",i,s,r,a,f=e[23].job.name+"",o,u,c,m,h=e[23].charinfo.firstname+"",g,k,$=e[23].charinfo.lastname+"",y,j;return{c(){t=b("div"),l=b("p"),i=C(n),r=I(),a=b("p"),o=C(f),c=I(),m=b("p"),g=C(h),k=I(),y=C($),p(l,"class",s="ml-[2vh] px-[1.4vh] py-[0.2vh] rounded-full "+(e[20].priority==1?"bg-priority_secondary":"bg-secondary")),p(a,"class",u="mx-[1vh] px-[1.5vh] py-[0.2vh] rounded-full uppercase "+(e[23].job.type=="leo"?"bg-[#004ca5] ":e[23].job.type=="ems"?"bg-[#e03535]":"bg-[#4b4b4b]")),p(m,"class","ml-[0.5vh]"),p(t,"class",j="w-full h-[5vh] flex "+(e[20].priority==1?"bg-priority_tertiary":"bg-tertiary")+" flex items-center font-medium")},m(E,w){R(E,t,w),d(t,l),d(l,i),d(t,r),d(t,a),d(a,o),d(t,c),d(t,m),d(m,g),d(m,k),d(m,y)},p(E,w){w&66&&n!==(n=E[23].metadata.callsign+"")&&B(i,n),w&64&&s!==(s="ml-[2vh] px-[1.4vh] py-[0.2vh] rounded-full "+(E[20].priority==1?"bg-priority_secondary":"bg-secondary"))&&p(l,"class",s),w&66&&f!==(f=E[23].job.name+"")&&B(o,f),w&66&&u!==(u="mx-[1vh] px-[1.5vh] py-[0.2vh] rounded-full uppercase "+(E[23].job.type=="leo"?"bg-[#004ca5] ":E[23].job.type=="ems"?"bg-[#e03535]":"bg-[#4b4b4b]"))&&p(a,"class",u),w&66&&h!==(h=E[23].charinfo.firstname+"")&&B(g,h),w&66&&$!==($=E[23].charinfo.lastname+"")&&B(y,$),w&64&&j!==(j="w-full h-[5vh] flex "+(E[20].priority==1?"bg-priority_tertiary":"bg-tertiary")+" flex items-center font-medium")&&p(t,"class",j)},d(E){E&&S(t)}}}function _t(e){let t,l=!e[1][e[20].id]&&pt(e);return{c(){l&&l.c(),t=x()},m(n,i){l&&l.m(n,i),R(n,t,i)},p(n,i){n[1][n[20].id]?l&&(l.d(1),l=null):l?l.p(n,i):(l=pt(n),l.c(),l.m(t.parentNode,t))},d(n){l&&l.d(n),n&&S(t)}}}function pt(e){let t,l,n,i=mt(e[20])+"",s,r,a=e[7].additionals+"",f,o,u,c;function m(){return e[18](e[20])}return{c(){t=b("button"),l=b("p"),n=C("+"),s=C(i),r=I(),f=C(a),p(l,"class","ml-[0.5vh]"),p(t,"class",o="w-full h-[5vh] flex items-center justify-center "+(e[20].priority==1?"bg-priority_tertiary":"bg-tertiary")+" flex items-center font-medium")},m(h,g){R(h,t,g),d(t,l),d(l,n),d(l,s),d(l,r),d(l,f),u||(c=Q(t,"click",m),u=!0)},p(h,g){e=h,g&64&&i!==(i=mt(e[20])+"")&&B(s,i),g&128&&a!==(a=e[7].additionals+"")&&B(f,a),g&64&&o!==(o="w-full h-[5vh] flex items-center justify-center "+(e[20].priority==1?"bg-priority_tertiary":"bg-tertiary")+" flex items-center font-medium")&&p(t,"class",o)},d(h){h&&S(t),u=!1,c()}}}function Nl(e){let t=e[7].dispatch_attach+"",l;return{c(){l=C(t)},m(n,i){R(n,l,i)},p(n,i){i&128&&t!==(t=n[7].dispatch_attach+"")&&B(l,t)},d(n){n&&S(l)}}}function Dl(e){let t=e[7].dispatch_detach+"",l;return{c(){l=C(t)},m(n,i){R(n,l,i)},p(n,i){i&128&&t!==(t=n[7].dispatch_detach+"")&&B(l,t)},d(n){n&&S(l)}}}function ht(e){let t,l,n,i,s=e[20].id+"",r,a,f,o=e[20].code+"",u,c,m,h,g=e[20].message+"",k,$,y,j,E,w,U,M,_,F,v,D,P,z=e[14](e[20]),T=[];for(let A=0;A{N=null}),ne())},i(A){v||(O(N),v=!0)},o(A){V(N),v=!1},d(A){A&&S(t),_e(T,A),A&&S(_),N&&N.d(A),A&&S(F),D=!1,P()}}}function Al(e){let t,l,n,i,s,r,a,f,o,u,c,m,h,g,k,$,y,j,E,w,U,M,_,F,v=e[5]&&ot(e);return{c(){t=b("div"),l=b("div"),n=b("button"),n.innerHTML='',i=I(),s=b("button"),r=b("i"),f=I(),o=b("button"),u=b("i"),m=I(),h=b("button"),h.innerHTML='',g=I(),k=b("button"),$=b("i"),j=I(),E=b("div"),v&&v.c(),p(n,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p(r,"class",a="fas fa-volume-"+(e[3]?"xmark":"high")+" text-[1.5vh]"),p(s,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p(u,"class",c="fas fa-"+(e[2]?"bell-slash":"bell")+" text-[1.5vh]"),p(o,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p(h,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p($,"class",y="fas fa-"+(e[4]?"hand-point-left":"hand-point-right")+" text-[1.5vh]"),p(k,"class","w-full h-[3vh] flex items-center justify-center bg-primary hover:bg-secondary"),p(l,"class","w-[3.2vh] h-[85%] flex flex-col gap-[1vh]"),J(l,"ml-[1vh]",!e[4]),J(l,"mr-[1vh]",e[4]),p(E,"class","w-[25%] h-[97%] overflow-auto pr-[0.5vh]"),J(E,"ml-[2vh]",!e[4]),J(E,"mr-[2vh]",e[4]),p(t,"class",w="w-screen h-screen flex items-center justify-end "+(e[4]?"flex-row":"flex-row-reverse"))},m(D,P){R(D,t,P),d(t,l),d(l,n),d(l,i),d(l,s),d(s,r),d(l,f),d(l,o),d(o,u),d(l,m),d(l,h),d(l,g),d(l,k),d(k,$),d(t,j),d(t,E),v&&v.m(E,null),M=!0,_||(F=[Q(n,"click",e[15]),Q(s,"click",e[12]),Q(o,"click",e[13]),Q(h,"click",e[16]),Q(k,"click",e[11])],_=!0)},p(D,[P]){e=D,(!M||P&8&&a!==(a="fas fa-volume-"+(e[3]?"xmark":"high")+" text-[1.5vh]"))&&p(r,"class",a),(!M||P&4&&c!==(c="fas fa-"+(e[2]?"bell-slash":"bell")+" text-[1.5vh]"))&&p(u,"class",c),(!M||P&16&&y!==(y="fas fa-"+(e[4]?"hand-point-left":"hand-point-right")+" text-[1.5vh]"))&&p($,"class",y),(!M||P&16)&&J(l,"ml-[1vh]",!e[4]),(!M||P&16)&&J(l,"mr-[1vh]",e[4]),e[5]?v?(v.p(e,P),P&32&&O(v,1)):(v=ot(e),v.c(),O(v,1),v.m(E,null)):v&&(le(),V(v,1,1,()=>{v=null}),ne()),(!M||P&16)&&J(E,"ml-[2vh]",!e[4]),(!M||P&16)&&J(E,"mr-[2vh]",e[4]),(!M||P&16&&w!==(w="w-screen h-screen flex items-center justify-end "+(e[4]?"flex-row":"flex-row-reverse")))&&p(t,"class",w)},i(D){M||(O(v),te(()=>{M&&(U||(U=ce(t,Se,{x:e[4]?400:-400},!0)),U.run(1))}),M=!0)},o(D){V(v),U||(U=ce(t,Se,{x:e[4]?400:-400},!1)),U.run(0),M=!1},d(D){D&&S(t),v&&v.d(),D&&U&&U.end(),_=!1,Z(F)}}}function Bt(e,t){for(let l=0;ll(2,n=_)),Y(e,Ke,_=>l(3,i=_)),Y(e,be,_=>l(4,s=_)),Y(e,Ve,_=>l(5,r=_)),Y(e,gl,_=>l(6,a=_)),Y(e,He,_=>l(7,f=_)),Y(e,Be,_=>l(8,o=_));let u=null,c={};ye(be,s=localStorage.getItem("IsRightMargin")==="true",s);function m(_){u===_?l(0,u=null):l(0,u=_)}function h(_){l(1,c[_]=!c[_],c)}function g(){s?localStorage.setItem("IsRightMargin","false"):localStorage.setItem("IsRightMargin","true"),ye(be,s=localStorage.getItem("IsRightMargin")==="true",s)}function k(){Ke.update(_=>!_),K("toggleMute",{boolean:i})}function $(){Qe.update(_=>!_),K("toggleAlerts",{boolean:n})}function y(_){return[{icon:"fas fa-clock",label:"Time",value:Ft(_.time)},{icon:"fas fa-user",label:"Name",value:_.name},{icon:"fas fa-phone",label:"Number",value:_.number},{icon:"fas fa-comment",label:"Information",value:_.information},{icon:"fas fa-map-location-dot",label:"Street",value:_.street},{icon:"fas fa-user",label:"Gender",value:_.gender},{icon:"fas fa-gun",label:"Automatic Gun Fire",value:_.automaticGunFire},{icon:"fas fa-gun",label:"Weapon",value:_.weapon},{icon:"fas fa-car",label:"Vehicle",value:_.vehicle},{icon:"fas fa-rectangle-list",label:"Plate",value:_.plate},{icon:"fas fa-droplet",label:"Color",value:_.color},{icon:"fas fa-car",label:"Class",value:_.class},{icon:"fas fa-door-open",label:"Doors",value:_.doors},{icon:"fas fa-compass",label:"Heading",value:_.heading},{icon:"fas fa-user-group",label:"Units",value:_.units.length}]}return[u,c,n,i,s,r,a,f,o,m,h,g,k,$,y,()=>{K("refreshAlerts")},()=>{K("clearBlips")},_=>m(_.id),_=>h(_.id),_=>{Bt(_.units,o.citizenid)?(K("detachUnit",_),K("refreshAlerts")):(K("attachUnit",_),K("refreshAlerts"))}]}class Rl extends he{constructor(t){super(),pe(this,t,Cl,Al,ie,{})}}function gt(e,t,l){const n=e.slice();return n[6]=t[l],n[8]=l,n}function vt(e,t,l){const n=e.slice();return n[9]=t[l],n}function bt(e){let t,l=e[3](e[6]),n=[];for(let i=0;i{T&&(z||(z=ce(l,Se,{x:t[1]?400:-400},!0)),z.run(1))}),T=!0)},o(A){z||(z=ce(l,Se,{x:t[1]?400:-400},!1)),z.run(0),T=!1},d(A){A&&S(l),G&&G.d(),N&&N.d(),A&&z&&z.end()}}}function jl(e){let t,l,n=[],i=new Map,s,r,a=e[0].slice().reverse();const f=o=>o[6].data.id;for(let o=0;ol(4,n=o)),Y(e,be,o=>l(1,i=o)),Y(e,Tt,o=>l(2,s=o));let r=[];ye(be,i=localStorage.getItem("IsRightMargin")==="true",i),Pe.subscribe(o=>{l(0,r=o||[])});function a(o){ml(o)}Fe(()=>{r.forEach(o=>{const{data:u,timer:c}=o;setTimeout(()=>{a(u.id)},c)})}),nl(()=>{r.forEach(o=>{const{data:u,timer:c}=o;setTimeout(()=>{a(u.id)},c)})});function f(o){return n?[{label:"Call",value:o.data.message},{icon:"fas fa-comment",label:"Information",value:o.data.information}]:[{icon:"fas fa-clock",label:"Time",value:Ft(o.data.time)},{icon:"fas fa-user",label:"Name",value:o.data.name},{icon:"fas fa-phone",label:"Number",value:o.data.number},{icon:"fas fa-comment",label:"Information",value:o.data.information},{icon:"fas fa-map-location-dot",label:"Street",value:o.data.street},{icon:"fas fa-user",label:"Gender",value:o.data.gender},{icon:"fas fa-gun",label:"Automatic Gun Fire",value:o.data.automaticGunFire},{icon:"fas fa-gun",label:"Weapon",value:o.data.weapon},{icon:"fas fa-car",label:"Vehicle",value:o.data.vehicle},{icon:"fas fa-rectangle-list",label:"Plate",value:o.data.plate},{icon:"fas fa-droplet",label:"Color",value:o.data.color},{icon:"fas fa-car",label:"Class",value:o.data.class},{icon:"fas fa-door-open",label:"Doors",value:o.data.doors},{icon:"fas fa-compass",label:"Heading",value:o.data.heading}]}return[r,i,s,f]}class Ll extends he{constructor(t){super(),pe(this,t,Tl,jl,ie,{})}}function Et(e){let t,l,n,i;return t=new yl({props:{$$slots:{default:[Ol]},$$scope:{ctx:e}}}),n=new Ll({}),{c(){$e(t.$$.fragment),l=I(),$e(n.$$.fragment)},m(s,r){ue(t,s,r),R(s,l,r),ue(n,s,r),i=!0},i(s){i||(O(t.$$.fragment,s),O(n.$$.fragment,s),i=!0)},o(s){V(t.$$.fragment,s),V(n.$$.fragment,s),i=!1},d(s){de(t,s),s&&S(l),de(n,s)}}}function Ol(e){let t,l;return t=new Rl({}),{c(){$e(t.$$.fragment)},m(n,i){ue(t,n,i),l=!0},i(n){l||(O(t.$$.fragment,n),l=!0)},o(n){V(t.$$.fragment,n),l=!1},d(n){de(t,n)}}}function It(e){let t,l,n,i;return t=new El({}),{c(){$e(t.$$.fragment),l=I(),n=b("body"),p(n,"class","bg-neutral-700")},m(s,r){ue(t,s,r),R(s,l,r),R(s,n,r),i=!0},i(s){i||(O(t.$$.fragment,s),i=!0)},o(s){V(t.$$.fragment,s),i=!1},d(s){de(t,s),s&&S(l),s&&S(n)}}}function Ul(e){let t,l,n,i,s,r=e[0]&&Et(e);l=new Ml({});let a=e[1]&&It();return{c(){r&&r.c(),t=I(),$e(l.$$.fragment),n=I(),a&&a.c(),i=x()},m(f,o){r&&r.m(f,o),R(f,t,o),ue(l,f,o),R(f,n,o),a&&a.m(f,o),R(f,i,o),s=!0},p(f,[o]){f[0]?r?o&1&&O(r,1):(r=Et(f),r.c(),O(r,1),r.m(t.parentNode,t)):r&&(le(),V(r,1,1,()=>{r=null}),ne()),f[1]?a?o&2&&O(a,1):(a=It(),a.c(),O(a,1),a.m(i.parentNode,i)):a&&(le(),V(a,1,1,()=>{a=null}),ne())},i(f){s||(O(r),O(l.$$.fragment,f),O(a),s=!0)},o(f){V(r),V(l.$$.fragment,f),V(a),s=!1},d(f){r&&r.d(f),f&&S(t),de(l,f),f&&S(n),a&&a.d(f),f&&S(i)}}}function Fl(e,t,l){let n,i,s;return Y(e,je,r=>l(2,n=r)),Y(e,He,r=>l(0,i=r)),Y(e,De,r=>l(1,s=r)),ye(je,n="ps-dispatch",n),[i,s]}class Bl extends he{constructor(t){super(),pe(this,t,Fl,Ul,ie,{})}}new Bl({target:document.getElementById("app")}); diff --git a/shared/config.lua b/shared/config.lua index de7bdd90..44effcf2 100644 --- a/shared/config.lua +++ b/shared/config.lua @@ -1,5 +1,6 @@ Config = Config or {} +Config.ShortCalls = false -- Dispatch notifications are sent containing only the alert name, omitting additional details. For more information, the dispatch menu can be accessed. Config.Debug = false -- Enables debug and send alerts when leo break the law. Config.RespondKeybind = 'E' diff --git a/ui/src/components/Main.svelte b/ui/src/components/Main.svelte index ffed2657..dbc29247 100644 --- a/ui/src/components/Main.svelte +++ b/ui/src/components/Main.svelte @@ -1,6 +1,6 @@ diff --git a/ui/src/providers/AlwaysListener.svelte b/ui/src/providers/AlwaysListener.svelte index df26d802..0145659d 100644 --- a/ui/src/providers/AlwaysListener.svelte +++ b/ui/src/providers/AlwaysListener.svelte @@ -1,7 +1,7 @@ diff --git a/ui/src/store/stores.ts b/ui/src/store/stores.ts index 1f0ead03..d7bc307f 100644 --- a/ui/src/store/stores.ts +++ b/ui/src/store/stores.ts @@ -15,6 +15,8 @@ export const DISPATCH = writable(null); export const IS_RIGHT_MARGIN = writable(true); +export const shortCalls = writable(true); + export function removeDispatch(callID) { DISPATCH.update(dispatches => { return dispatches.filter(dispatch => dispatch.data.id !== callID);