1import{ba as ke,ga as Oe}from"./chunk-4KQZIYN5.js";import"./chunk-YULL2WLA.js";import"./chunk-D7EE7E6W.js";import{a as Ne}from"./chunk-EQ5CQLSI.js";import"./chunk-QASUSEMK.js";import{j as Pe,l as Le,s as Re}from"./chunk-OHGDOQ4W.js";import{a as qt}from"./chunk-WVUMCZ6E.js";import"./chunk-2IDUPOBL.js";import"./chunk-KA2JSYKK.js";import{ea as Ae}from"./chunk-FFIE3C6U.js";import{$ as Nt,$a as p,Ab as j,B as Lt,Bb as x,Cb as P,Cc as Se,Da as pe,Db as ut,Ea as I,Gc as Me,Ia as K,Ic as ft,Ja as Ce,Kc as Ie,Nc as Be,Ob as _e,Rc as Te,T as ue,U as fe,Va as b,W as ge,Wa as _,X as Rt,Xa as Z,Ya as X,Za as tt,_ as At,_a as H,ab as C,ad as et,bb as E,d as f,e as Fn,eb as we,f as Pt,fa as he,ib as kt,kb as Ot,kc as Ee,la as me,mb as v,qb as ye,rb as xe,sb as be,uc as ve,va as dt,ya as g}from"./chunk-J2RHNESS.js";var De=f((si,Ue)=>{"use strict";Ue.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var N=f(U=>{"use strict";var Vt,$n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];U.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};U.getSymbolTotalCodewords=function(t){return $n[t]};U.getBCHDigit=function(n){let t=0;for(;n!==0;)t++,n>>>=1;return t};U.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Vt=t};U.isKanjiModeEnabled=function(){return typeof Vt<"u"};U.toSJIS=function(t){return Vt(t)}});var mt=f(S=>{"use strict";S.L={bit:1};S.M={bit:0};S.Q={bit:3};S.H={bit:2};function Zn(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return S.L;case"m":case"medium":return S.M;case"q":case"quartile":return S.Q;case"h":case"high":return S.H;default:throw new Error("Unknown EC Level: "+n)}}S.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};S.from=function(t,e){if(S.isValid(t))return t;try{return Zn(t)}catch(r){return e}}});var ze=f((li,Fe)=>{"use strict";function Ve(){this.buffer=[],this.length=0}Ve.prototype={get:function(n){let t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)===1},put:function(n,t){for(let e=0;e<t;e++)this.putBit((n>>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Fe.exports=Ve});var He=f((di,Ke)=>{"use strict";function nt(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}nt.prototype.set=function(n,t,e,r){let i=n*this.size+t;this.data[i]=e,r&&(this.reservedBit[i]=!0)};nt.prototype.get=function(n,t){return this.data[n*this.size+t]};nt.prototype.xor=function(n,t,e){this.data[n*this.size+t]^=e};nt.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};Ke.exports=nt});var je=f(pt=>{"use strict";var Xn=N().getSymbolSize;pt.getRowColCoords=function(t){if(t===1)return[];let e=Math.floor(t/7)+2,r=Xn(t),i=r===145?26:Math.ceil((r-13)/(2*e-2))*2,o=[r-7];for(let s=1;s<e-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};pt.getPositions=function(t){let e=[],r=pt.getRowColCoords(t),i=r.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||e.push([r[o],r[s]]);return e}});var Je=f(Qe=>{"use strict";var tr=N().getSymbolSize,We=7;Qe.getPositions=function(t){let e=tr(t);return[[0,0],[e-We,0],[0,e-We]]}});var Ye=f(h=>{"use strict";h.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var D={N1:3,N2:3,N3:40,N4:10};h.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};h.from=function(t){return h.isValid(t)?parseInt(t,10):void 0};h.getPenaltyN1=function(t){let e=t.size,r=0,i=0,o=0,s=null,a=null;for(let c=0;c<e;c++){i=o=0,s=a=null;for(let l=0;l<e;l++){let d=t.get(c,l);d===s?i++:(i>=5&&(r+=D.N1+(i-5)),s=d,i=1),d=t.get(l,c),d===a?o++:(o>=5&&(r+=D.N1+(o-5)),a=d,o=1)}i>=5&&(r+=D.N1+(i-5)),o>=5&&(r+=D.N1+(o-5))}return r};h.getPenaltyN2=function(t){let e=t.size,r=0;for(let i=0;i<e-1;i++)for(let o=0;o<e-1;o++){let s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(s===4||s===0)&&r++}return r*D.N2};h.getPenaltyN3=function(t){let e=t.size,r=0,i=0,o=0;for(let s=0;s<e;s++){i=o=0;for(let a=0;a<e;a++)i=i<<1&2047|t.get(s,a),a>=10&&(i===1488||i===93)&&r++,o=o<<1&2047|t.get(a,s),a>=10&&(o===1488||o===93)&&r++}return r*D.N3};h.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let o=0;o<r;o++)e+=t.data[o];return Math.abs(Math.ceil(e*100/r/5)-10)*D.N4};function er(n,t,e){switch(n){case h.Patterns.PATTERN000:return(t+e)%2===0;case h.Patterns.PATTERN001:return t%2===0;case h.Patterns.PATTERN010:return e%3===0;case h.Patterns.PATTERN011:return(t+e)%3===0;case h.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case h.Patterns.PATTERN101:return t*e%2+t*e%3===0;case h.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case h.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}h.applyMask=function(t,e){let r=e.size;
1for(let i=0;i<r;i++)for(let o=0;o<r;o++)e.isReserved(o,i)||e.xor(o,i,er(t,o,i))};h.getBestMask=function(t,e){let r=Object.keys(h.Patterns).length,i=0,o=1/0;for(let s=0;s<r;s++){e(s),h.applyMask(s,t);let a=h.getPenaltyN1(t)+h.getPenaltyN2(t)+h.getPenaltyN3(t)+h.getPenaltyN4(t);h.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var zt=f(Ft=>{"use strict";var k=mt(),Ct=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],wt=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Ft.getBlocksCount=function(t,e){switch(e){case k.L:return Ct[(t-1)*4+0];case k.M:return Ct[(t-1)*4+1];case k.Q:return Ct[(t-1)*4+2];case k.H:return Ct[(t-1)*4+3];default:return}};Ft.getTotalCodewordsCount=function(t,e){switch(e){case k.L:return wt[(t-1)*4+0];case k.M:return wt[(t-1)*4+1];case k.Q:return wt[(t-1)*4+2];case k.H:return wt[(t-1)*4+3];default:return}}});var Ge=f(xt=>{"use strict";var rt=new Uint8Array(512),yt=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)rt[e]=t,yt[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)rt[e]=rt[e-255]})();xt.log=function(t){if(t<1)throw new Error("log("+t+")");return yt[t]};xt.exp=function(t){return rt[t]};xt.mul=function(t,e){return t===0||e===0?0:rt[yt[t]+yt[e]]}});var $e=f(it=>{"use strict";var Kt=Ge();it.mul=function(t,e){let r=new Uint8Array(t.length+e.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<e.length;o++)r[i+o]^=Kt.mul(t[i],e[o]);return r};it.mod=function(t,e){let r=new Uint8Array(t);for(;r.length-e.length>=0;){let i=r[0];for(let s=0;s<e.length;s++)r[s]^=Kt.mul(e[s],i);let o=0;for(;o<r.length&&r[o]===0;)o++;r=r.slice(o)}return r};it.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let r=0;r<t;r++)e=it.mul(e,new Uint8Array([1,Kt.exp(r)]));return e}});var tn=f((Ci,Xe)=>{"use strict";var Ze=$e();function Ht(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}Ht.prototype.initialize=function(t){this.degree=t,this.genPoly=Ze.generateECPolynomial(this.degree)};Ht.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let r=Ze.mod(e,this.genPoly),i=this.degree-r.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(r,i),o}return r};Xe.exports=Ht});var jt=f(en=>{"use strict";en.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Wt=f(L=>{"use strict";var nn="[0-9]+",nr="[A-Z $%*+\\-./:]+",ot="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ot=ot.replace(/u/g,"\\u");var rr="(?:(?![A-Z0-9 $%*+\\-./:]|"+ot+`)(?:.|[\r 2]))+`;L.KANJI=new RegExp(ot,"g");L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");L.BYTE=new RegExp(rr,"g");L.NUMERIC=new RegExp(nn,"g");L.ALPHANUMERIC=new RegExp(nr,"g");var ir=new RegExp("^"+ot+"$"),or=new RegExp("^"+nn+"$"),sr=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");L.testKanji=function(t){return ir.test(t)};L.testNumeric=function(t){return or.test(t)};L.testAlphanumeric=function(t){return sr.test(t)}});var O=f(w=>{"use strict";var ar=jt(),Qt=Wt();w.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};w.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};w.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};w.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};w.MIXED={bit:-1};w.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);
2if(!ar.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]};w.getBestModeForData=function(t){return Qt.testNumeric(t)?w.NUMERIC:Qt.testAlphanumeric(t)?w.ALPHANUMERIC:Qt.testKanji(t)?w.KANJI:w.BYTE};w.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};w.isValid=function(t){return t&&t.bit&&t.ccBits};function cr(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return w.NUMERIC;case"alphanumeric":return w.ALPHANUMERIC;case"kanji":return w.KANJI;case"byte":return w.BYTE;default:throw new Error("Unknown mode: "+n)}}w.from=function(t,e){if(w.isValid(t))return t;try{return cr(t)}catch(r){return e}}});var cn=f(V=>{"use strict";var bt=N(),lr=zt(),rn=mt(),q=O(),Jt=jt(),sn=7973,on=bt.getBCHDigit(sn);function dr(n,t,e){for(let r=1;r<=40;r++)if(t<=V.getCapacity(r,e,n))return r}function an(n,t){return q.getCharCountIndicator(n,t)+4}function ur(n,t){let e=0;return n.forEach(function(r){let i=an(r.mode,t);e+=i+r.getBitsLength()}),e}function fr(n,t){for(let e=1;e<=40;e++)if(ur(n,e)<=V.getCapacity(e,t,q.MIXED))return e}V.from=function(t,e){return Jt.isValid(t)?parseInt(t,10):e};V.getCapacity=function(t,e,r){if(!Jt.isValid(t))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=q.BYTE);let i=bt.getSymbolTotalCodewords(t),o=lr.getTotalCodewordsCount(t,e),s=(i-o)*8;if(r===q.MIXED)return s;let a=s-an(r,t);switch(r){case q.NUMERIC:return Math.floor(a/10*3);case q.ALPHANUMERIC:return Math.floor(a/11*2);case q.KANJI:return Math.floor(a/13);case q.BYTE:default:return Math.floor(a/8)}};V.getBestVersionForData=function(t,e){let r,i=rn.from(e,rn.M);if(Array.isArray(t)){if(t.length>1)return fr(t,i);if(t.length===0)return 1;r=t[0]}else r=t;return dr(r.mode,r.getLength(),i)};V.getEncodedBits=function(t){if(!Jt.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;bt.getBCHDigit(e)-on>=0;)e^=sn<<bt.getBCHDigit(e)-on;return t<<12|e}});var fn=f(un=>{"use strict";var Yt=N(),dn=1335,gr=21522,ln=Yt.getBCHDigit(dn);un.getEncodedBits=function(t,e){let r=t.bit<<3|e,i=r<<10;for(;Yt.getBCHDigit(i)-ln>=0;)i^=dn<<Yt.getBCHDigit(i)-ln;return(r<<10|i)^gr}});var hn=f((Ei,gn)=>{"use strict";var hr=O();function W(n){this.mode=hr.NUMERIC,this.data=n.toString()}W.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};W.prototype.getLength=function(){return this.data.length};W.prototype.getBitsLength=function(){return W.getBitsLength(this.data.length)};W.prototype.write=function(t){let e,r,i;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),i=parseInt(r,10),t.put(i,10);let o=this.data.length-e;o>0&&(r=this.data.substr(e),i=parseInt(r,10),t.put(i,o*3+1))};gn.exports=W});var pn=f((vi,mn)=>{"use strict";var mr=O(),Gt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Q(n){this.mode=mr.ALPHANUMERIC,this.data=n}Q.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Q.prototype.getLength=function(){return this.data.length};Q.prototype.getBitsLength=function(){return Q.getBitsLength(this.data.length)};Q.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=Gt.indexOf(this.data[e])*45;r+=Gt.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(Gt.indexOf(this.data[e]),6)};mn.exports=Q});var wn=f((Si,Cn)=>{"use strict";var pr=O();function J(n){this.mode=pr.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}J.getBitsLength=function(t){return t*8};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(n){for(let t=0,e=this.data.length;t<e;t++)n.put(this.data[t],8)};Cn.exports=J});var xn=f((Mi,yn)=>{"use strict";var Cr=O(),wr=N();function Y(n){this.mode=Cr.KANJI,this.data=n}Y.getBitsLength=function(t){return t*13};Y.prototype.getLength=function(){return this.data.length};Y.prototype.getBitsLength=function(){return Y.getBitsLength(this.data.length)};Y.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=wr.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+` 3Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}};yn.exports=Y});var bn=f((Ii,$t)=>{"use strict";var st={single_source_shortest_paths:function(n,t,e){var r={},i={};i[t]=0;var o=st.PriorityQueue.make();o.push(t,0);for(var s,a,c,l,d,y,m,M,R;!o.empty();){s=o.pop(),a=s.value,l=s.cost,d=n[a]||{};for(c in d)d.hasOwnProperty(c)&&(y=d[c],m=l+y,M=i[c],R=typeof i[c]>"u",(R||M>m)&&(i[c]=m,o.push(c,m),r[c]=a))}if(typeof e<"u"&&typeof i[e]>"u"){var A=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(A)}return r},extract_shortest_path_from_predecessor_list:function(n,t){for(var e=[],r=t,i;r;)e.push(r),i=n[r],r=n[r];return e.reverse(),e},find_path:function(n,t,e){var r=st.single_source_shortest_paths(n,t,e);return st.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(n){var t=st.PriorityQueue,e={},r;n=n||{};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e.queue=[],e.sorter=n.sorter||t.default_sorter,e},default_sorter:function(n,t){return n.cost-t.cost},push:function(n,t){var e={value:n,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};
vendor: 5,692 bytes, lines 3-7
3typeof $t<"u"&&($t.exports=st)});var Tn=f(G=>{"use strict";var u=O(),vn=hn(),Sn=pn(),Mn=wn(),In=xn(),at=Wt(),_t=N(),yr=bn();function _n(n){return unescape(encodeURIComponent(n)).length}function ct(n,t,e){let r=[],i;for(;(i=n.exec(e))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function Bn(n){let t=ct(at.NUMERIC,u.NUMERIC,n),e=ct(at.ALPHANUMERIC,u.ALPHANUMERIC,n),r,i;return _t.isKanjiModeEnabled()?(r=ct(at.BYTE,u.BYTE,n),i=ct(at.KANJI,u.KANJI,n)):(r=ct(at.BYTE_KANJI,u.BYTE,n),i=[]),t.concat(e,r,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Zt(n,t){switch(t){case u.NUMERIC:return vn.getBitsLength(n);case u.ALPHANUMERIC:return Sn.getBitsLength(n);case u.KANJI:return In.getBitsLength(n);case u.BYTE:return Mn.getBitsLength(n)}}function xr(n){return n.reduce(function(t,e){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}function br(n){let t=[];for(let e=0;e<n.length;e++){let r=n[e];switch(r.mode){case u.NUMERIC:t.push([r,{data:r.data,mode:u.ALPHANUMERIC,length:r.length},{data:r.data,mode:u.BYTE,length:r.length}]);break;case u.ALPHANUMERIC:t.push([r,{data:r.data,mode:u.BYTE,length:r.length}]);break;case u.KANJI:t.push([r,{data:r.data,mode:u.BYTE,length:_n(r.data)}]);break;case u.BYTE:t.push([{data:r.data,mode:u.BYTE,length:_n(r.data)}])}}return t}function _r(n,t){let e={},r={start:{}},i=["start"];for(let o=0;o<n.length;o++){let s=n[o],a=[];for(let c=0;c<s.length;c++){let l=s[c],d=""+o+c;a.push(d),e[d]={node:l,lastCount:0},r[d]={};for(let y=0;y<i.length;y++){let m=i[y];e[m]&&e[m].node.mode===l.mode?(r[m][d]=Zt(e[m].lastCount+l.length,l.mode)-Zt(e[m].lastCount,l.mode),e[m].lastCount+=l.length):(e[m]&&(e[m].lastCount=l.length),r[m][d]=Zt(l.length,l.mode)+4+u.getCharCountIndicator(l.mode,t))}}i=a}for(let o=0;o<i.length;o++)r[i[o]].end=0;return{map:r,table:e}}function En(n,t){let e,r=u.getBestModeForData(n);if(e=u.from(t,r),e!==u.BYTE&&e.bit<r.bit)throw new Error('"'+n+'" cannot be encoded with mode '+u.toString(e)+`. 4 Suggested mode is: `+u.toString(r));switch(e===u.KANJI&&!_t.isKanjiModeEnabled()&&(e=u.BYTE),e){case u.NUMERIC:return new vn(n);case u.ALPHANUMERIC:return new Sn(n);case u.KANJI:return new In(n);case u.BYTE:return new Mn(n)}}G.fromArray=function(t){return t.reduce(function(e,r){return typeof r=="string"?e.push(En(r,null)):r.data&&e.push(En(r.data,r.mode)),e},[])};G.fromString=function(t,e){let r=Bn(t,_t.isKanjiModeEnabled()),i=br(r),o=_r(i,e),s=yr.find_path(o.map,"start","end"),a=[];for(let c=1;c<s.length-1;c++)a.push(o.table[s[c]].node);return G.fromArray(xr(a))};G.rawSplit=function(t){return G.fromArray(Bn(t,_t.isKanjiModeEnabled()))}});var Ln=f(Pn=>{"use strict";var vt=N(),Xt=mt(),Er=ze(),vr=He(),Sr=je(),Mr=Je(),ne=Ye(),re=zt(),Ir=tn(),Et=cn(),Br=fn(),Tr=O(),te=Tn();function Pr(n,t){let e=n.size,r=Mr.getPositions(t);for(let i=0;i<r.length;i++){let o=r[i][0],s=r[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||e<=o+a))for(let c=-1;c<=7;c++)s+c<=-1||e<=s+c||(a>=0&&a<=6&&(c===0||c===6)||c>=0&&c<=6&&(a===0||a===6)||a>=2&&a<=4&&c>=2&&c<=4?n.set(o+a,s+c,!0,!0):n.set(o+a,s+c,!1,!0))}}function Lr(n){let t=n.size;for(let e=8;e<t-8;e++){let r=e%2===0;n.set(e,6,r,!0),n.set(6,e,r,!0)}}function Rr(n,t){let e=Sr.getPositions(t);for(let r=0;r<e.length;r++){let i=e[r][0],o=e[r][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?n.set(i+s,o+a,!0,!0):n.set(i+s,o+a,!1,!0)}}function Ar(n,t){let e=n.size,r=Et.getEncodedBits(t),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+e-8-3,s=(r>>a&1)===1,n.set(i,o,s,!0),n.set(o,i,s,!0)}function ee(n,t,e){let r=n.size,i=Br.getEncodedBits(t,e),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?n.set(o,8,s,!0):o<8?n.set(o+1,8,s,!0):n.set(r-15+o,8,s,!0),o<8?n.set(8,r-o-1,s,!0):o<9?n.set(8,15-o-1+1,s,!0):n.set(8,15-o-1,s,!0);n.set(r-8,8,1,!0)}function Nr(n,t){let e=n.size,r=-1,i=e-1,o=7,s=0;for(let a=e-1;a>0;a-=2)for(a===6&&a--;;){for(let c=0;c<2;c++)if(!n.isReserved(i,a-c)){let l=!1;s<t.length&&(l=(t[s]>>>o&1)===1),n.set(i,a-c,l),o--,o===-1&&(s++,o=7)}if(i+=r,i<0||e<=i){i-=r,r=-r;break}}}function kr(n,t,e){let r=new Er;e.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),Tr.getCharCountIndicator(c.mode,n)),c.write(r)});let i=vt.getSymbolTotalCodewords(n),o=re.getTotalCodewordsCount(n,t),s=(i-o)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let a=(s-r.getLengthInBits())/8;for(let c=0;c<a;c++)r.put(c%2?17:236,8);return Or(r,n,t)}function Or(n,t,e){let r=vt.getSymbolTotalCodewords(t),i=re.getTotalCodewordsCount(t,e),o=r-i,s=re.getBlocksCount(t,e),a=r%s,c=s-a,l=Math.floor(r/s),d=Math.floor(o/s),y=d+1,m=l-d,M=new Ir(m),R=0,A=new Array(s),le=new Array(s),It=0,Vn=new Uint8Array(n.buffer);for(let z=0;z<s;z++){let Tt=z<c?d:y;A[z]=Vn.slice(R,R+Tt),le[z]=M.encode(A[z]),R+=Tt,It=Math.max(It,Tt)}let Bt=new Uint8Array(r),de=0,B,T;for(B=0;B<It;B++)for(T=0;T<s;T++)B<A[T].length&&(Bt[de++]=A[T][B]);for(B=0;B<m;B++)for(T=0;T<s;T++)Bt[de++]=le[T][B];return Bt}function qr(n,t,e,r){let i;if(Array.isArray(n))i=te.fromArray(n);else if(typeof n=="string"){let l=t;if(!l){let d=te.rawSplit(n);l=Et.getBestVersionForData(d,e)}i=te.fromString(n,l||40)}else throw new Error("Invalid data");let o=Et.getBestVersionForData(i,e);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(` 5The chosen QR Code version cannot contain this amount of data. 6Minimum version required to store current data is: `+o+`. 7`);let s=kr(t,e,i),a=vt.getSymbolSize(t),c=new vr(a);return Pr(c,t),Lr(c),Rr(c,t),ee(c,e,0),t>
7=7&&Ar(c,t),Nr(c,s),isNaN(r)&&(r=ne.getBestMask(c,ee.bind(null,c,e))),ne.applyMask(r,c),ee(c,e,r),{modules:c,version:t,errorCorrectionLevel:e,maskPattern:r,segments:i}}Pn.create=function(t,e){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Xt.M,i,o;return typeof e<"u"&&(r=Xt.from(e.errorCorrectionLevel,Xt.M),i=Et.from(e.version),o=ne.from(e.maskPattern),e.toSJISFunc&&vt.setToSJISFunction(e.toSJISFunc)),qr(t,i,r,o)}});var ie=f(F=>{"use strict";function Rn(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let t=n.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+n);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(r){return[r,r]}))),t.length===6&&t.push("F","F");let e=parseInt(t.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+t.slice(0,6).join("")}}F.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;
7return{width:r,scale:r?4:i,margin:e,color:{dark:Rn(t.color.dark||"#000000ff"),light:Rn(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};F.getScale=function(t,e){return e.width&&e.width>=t+e.margin*2?e.width/(t+e.margin*2):e.scale};F.getImageWidth=function(t,e){let r=F.getScale(t,e);return Math.floor((t+e.margin*2)*r)};F.qrToImageData=function(t,e,r){let i=e.modules.size,o=e.modules.data,s=F.getScale(i,r),a=Math.floor((i+r.margin*2)*s),c=r.margin*s,l=[r.color.light,r.color.dark];for(let d=0;d<a;d++)for(let y=0;y<a;y++){let m=(d*a+y)*4,M=r.color.light;if(d>=c&&y>=c&&d<a-c&&y<a-c){let R=Math.floor((d-c)/s),A=Math.floor((y-c)/s);M=l[o[R*i+A]?1:0]}t[m++]=M.r,t[m++]=M.g,t[m++]=M.b,t[m]=M.a}}});var An=f(St=>{"use strict";var oe=ie();function Ur(n,t,e){n.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=e,t.width=e,t.style.height=e+"px",t.style.width=e+"px"}function Dr(){try{return document.createElement("canvas")}catch(n){throw new Error("You need to specify a canvas element")}}St.render=function(t,e,r){let i=r,o=e;typeof i>"u"&&(!e||!e.getContext)&&(i=e,e=void 0),e||(o=Dr()),i=oe.getOptions(i);let s=oe.getImageWidth(t.modules.size,i),a=o.getContext("2d"),c=a.createImageData(s,s);return oe.qrToImageData(c.data,t,i),Ur(a,o,s),a.putImageData(c,0,0),o};St.renderToDataURL=function(t,e,r){let i=r;typeof i>"u"&&(!e||!e.getContext)&&(i=e,e=void 0),i||(i={});let o=St.render(t,e,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var On=f(kn=>{"use strict";var Vr=ie();function Nn(n,t){let e=n.a/255,r=t+'="'+n.hex+'"';return e<1?r+" "+t+'-opacity="'+e.toFixed(2).slice(1)+'"':r}function se(n,t,e){let r=n+t;return typeof e<"u"&&(r+=" "+e),r}function Fr(n,t,e){let r="",i=0,o=!1,s=0;for(let a=0;a<n.length;a++){let c=Math.floor(a%t),l=Math.floor(a/t);!c&&!o&&(o=!0),n[a]?(s++,a>0&&c>0&&n[a-1]||(r+=o?se("M",c+e,.5+l+e):se("m",i,0),i=0,o=!1),c+1<t&&n[a+1]||(r+=se("h",s),s=0)):i++}return r}kn.render=function(t,e,r){let i=Vr.getOptions(e),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,c=i.color.light.a?"<path "+Nn(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+Nn(i.color.dark,"stroke")+' d="'+Fr(s,o,i.margin)+'"/>',d='viewBox="0 0 '+a+" "+a+'"',m='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+d+' shape-rendering="crispEdges">'+c+l+`</svg> 8`;return typeof r=="function"&&r(null,m),m}});var Un=f(lt=>{"use strict";var zr=De(),ae=Ln(),qn=An(),Kr=On();function ce(n,t,e,r,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!zr())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=e,e=t,t=r=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=e,e=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(e=t,t=r=void 0):s===2&&!t.getContext&&(r=e,e=t,t=void 0),new Promise(function(c,l){try{let d=ae.create(e,r);c(n(d,t,r))}catch(d){l(d)}})}try{let c=ae.create(e,r);i(null,n(c,t,r))}catch(c){i(c)}}lt.create=ae.create;lt.toCanvas=ce.bind(null,qn.render);lt.toDataURL=ce.bind(null,qn.renderToDataURL);lt.toString=ce.bind(null,function(n,t,e){return Kr.render(n,e)})});var ht=(()=>{class n{constructor(e){this.http=e}getKdsOrders(e=25,r=0){return this.http.get("/api/pos/locations/kds/orders",{params:{rowsPerPage:e.toString(),pageNum:(r+1).toString()}}).pipe(Lt(i=>qt(i)))}getKdsOrdersByStore(e,r=25,i=0){return this.http.get(`/api/pos/locations/${e}/kds/orders`,{params:{rowsPerPage:r.toString(),pageNum:(i+1).toString()}}).pipe(Lt(o=>qt(o)))}static{this.\u0275fac=function(r){return new(r||n)(ge(Se))}}static{this.\u0275prov=ue({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Kn(n,t){n&1&&E(0,"app-tv-view")}function Hn(n,t){if(n&1&&(p(0,"div",10)(1,"div",11),E(2,"mat-icon",12),C(),p(3,"div",13)(4,"h1"),x(5),C(),p(6,"p",14),x(7),C()(),p(8,"div")(9,"p"),x(10),C()()()),n&2){let e=t.$implicit,r=v(4);g(5),P(e.CustomerName),g(2),ut("#",e.OrderNumber),g(),j("badge "+r.getBadgeClass(e.Status)),g(2),P(e.Status)}}function jn(n,t){if(n&1&&(p(0,"h1",9),x(1),C(),X(2,Hn,11,5,"div",10,Z)),n&2){let e=t.$implicit;g(),P(e.locationName),g(),tt(e.kdsOrders)}}function Wn(n,t){if(n&1){let e=kt();p(0,"button",15),Ot("click",function(){At(e);let i=v(3);return Nt(i.onLoadMore())}),x(1," Load more... "),C()}}function Qn(n,t){if(n&1&&(X(0,jn,4,1,null,null,Z),b(2,Wn,2,0,"button",8)),n&2){let e=v(2);tt(e.kdsOrdersByLocations),g(2),_(e.showMoreBtn()?2:-1)}}function Jn(n,t){n&1&&E(0,"mat-spinner",7)}function Yn(n,t){if(n&1){let e=kt();E(0,"mat-icon",0),p(1,"header",1),E(2,"div",2)(3,"img",3),p(4,"button",4),Ot("click",function(){At(e);let i=v();return Nt(i.onRefresh())}),E(5,"mat-icon",5),C()(),p(6,"div",6),b(7,Qn,3,1),b(8,Jn,1,0,"mat-spinner",7),C()}if(n&2){let e=v();g(3),H("src",e.logoLightUrl,dt),g(4),_(e.isLoading?-1:7),g(),_(e.isLoading?8:-1)}}var Ut=(()=>{class n{get kdsOrdersByLocations(){let e=[];
8return Object.keys(this.kdsOrdersByLocationsMap).forEach(r=>{e.push({locationName:r,kdsOrders:this.kdsOrdersByLocationsMap[r]})}),e}constructor(e,r,i,o){this.breakpointObserver=e,this.kdsStatusService=r,this.alertService=i,this.route=o,this.kdsOrders=[],this.kdsOrdersByLocationsMap={},this.logoLightUrl=et.logoLightUrl,this.totalRecords=0,this.currentPage=0,this.pageSize=25,this.pageSizeIncrease=25,this.isTVLayout=!1,this.showMoreBtn=()=>this.kdsOrders.length===this.pageSize,this.getBadgeClass=a=>Dt(a);let{divisionId:s}=this.route.snapshot.params;s&&(this.divisionId=s)}ngOnInit(){this.subscriptionBreakpoint=this.breakpointObserver.observe(["(max-width: 1919px)"]).subscribe(e=>{this.isTVLayout=!e.matches}),this.isLoading=!0,this.getWaitStatus()}getWaitStatus(){let e;this.divisionId?e=this.kdsStatusService.getKdsOrdersByStore(this.divisionId,this.pageSize,this.currentPage):e=this.kdsStatusService.getKdsOrders(this.pageSize,this.currentPage),e?.subscribe(r=>{this.isLoading=!1,this.kdsOrders=r.KdsOrders,this.kdsOrdersByLocationsMap=Gn(r.KdsOrders,"LocationName")},r=>{console.log(r),this.isLoading=!1,this.alertService.show("alert.something_is_not_right")})}onRefresh(){this.kdsOrders=[],this.isLoading=!0,this.getWaitStatus()}getOrderStatus(e){switch(console.log(e),e){case"Completed":return"ready";case"Active":return"in_progress";case"Hold":return"waiting";default:return""}}onLoadMore(){this.pageSize+=this.pageSizeIncrease,this.getWaitStatus()}static{this.\u0275fac=function(r){return new(r||n)(I(Te),I(ht),I(Re),I(ft))}}static{this.\u0275cmp=K({type:n,selectors:[["app-kds-wait-status"]],standalone:!1,decls:2,vars:1,consts:[["svgIcon","Profile","color","primary",1,"hidden"],[1,"h-20","p-4","flex","w-full","justify-between"],[2,"width","40px"],["alt","",1,"w-48","my-auto",3,"src"],["mat-icon-button","",3,"click"],["svgIcon","Refresh","color","primary",1,"linear","my-auto"],[1,"h-full","mt-2","pb-28","overflow-y-scroll","flex","flex-col","space-y-6","p-4","mx-auto",2,"max-width","50rem"],["diameter","30",1,"mt-6","mx-auto"],["mat-flat-button","","color","primary",1,"self-end"],[1,"text-center"],[1,"card"],[1,"icon-wrapper"],["svgIcon","Profile","color","primary",1,"my-auto"],[1,"flex","flex-col","space-y-1.5","justify-center","flex-1"],[1,"text-gray"],["mat-flat-button","","color","primary",1,"self-end",3,"click"]],template:function(r,i){r&1&&b(0,Kn,1,0,"app-tv-view")(1,Yn,9,3),r&2&&_(i.isTVLayout?0:1)},styles:[":root{--primary-color: #793fff}.card[_ngcontent-%COMP%]{box-shadow:0 4px 14px #a9b2e12e;border-radius:10px;background:#fff;padding:17px;display:flex}.card[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.icon-wrapper[_ngcontent-%COMP%]{width:50px;height:50px;background:#793fff1a;border-radius:6px;padding:10px;margin-top:auto;margin-bottom:auto;display:flex;justify-content:center} .mat-mdc-unelevated-button.mat-primary{color:var(--primary-color)} .mat-icon.mat-primary path{stroke:var(--primary-color)}",".mat-mdc-unelevated-button.mat-primary{color:var(--primary-color)} .mat-icon.mat-primary path{stroke:var(--primary-color)}.badge[_ngcontent-%COMP%]{height:fit-content!important;margin-top:auto;margin-bottom:auto}.badge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.green-badge[_ngcontent-%COMP%]{background:#31ec921a;border-radius:6px;padding:4px 12px;width:fit-content;display:flex;justify-content:center}.green-badge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#31ec92!important;margin-top:auto!important;margin-bottom:auto!important;width:auto!important;font-weight:900!important}.yellow-badge[_ngcontent-%COMP%]{background:#fff3dd;border-radius:6px;padding:4px 12px;width:fit-content;display:flex;justify-content:center}.yellow-badge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fcce7f!important;margin-top:auto!important;margin-bottom:auto!important;width:auto!important;font-weight:900!important}.red-badge[_ngcontent-%COMP%]{background:#ffc9c8;border-radius:6px;padding:4px 12px;width:fit-content;display:flex;justify-content:center}.red-badge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#ec3531!important;margin-top:auto!important;margin-bottom:auto!important;width:auto!important;font-weight:900!important}"]})}}return n})();function Gn(n,t){return n.reduce((e,r)=>{let i=r[t];return e[i]||(e[i]=[]),e[i].push(r),e},{})}function Dt(n){switch(n){case"Ready":return"green-badge";case"In Progress":return"yellow-badge";case"Waiting":return"red-badge";default:return""}}var $=Fn(Un(),1);var Hr=["qrcElement"],Mt=(()=>{class n{allowEmptyString=!1;colorDark="#000000ff";colorLight="#ffffffff";cssClass="qrcode";elementType="canvas";errorCorrectionLevel="M";imageSrc;imageHeight;imageWidth;margin=4;qrdata="";scale=4;version;width=10;alt;ariaLabel;title;qrCodeURL=new he;qrcElement;context=null;centerImage;renderer=Rt(pe);sanitizer=Rt(Me);ngOnChanges(){return Pt(this,null,function*(){yield this.createQRCode()})}isValidQrCodeText(e){return this.allowEmptyString===!1?!(typeof e>"u"||e===""||e==="null"||e===null):!(typeof e>"u")}toDataURL(e){return new Promise((r,i)=>{(0,$.toDataURL)(this.qrdata,e,(o,s)=>{o?i(o):r(s)})})}toCanvas(e,r){return new Promise((i,o)=>{(0,$.toCanvas)(e,this.qrdata,r,s=>{s?o(s):i("success")})})}toSVG(e){return new Promise((r,i)=>{(0,$.toString)(this.qrdata,e,(o,s)=>{o?i(o):r(s)})})}renderElement(e){for(let r of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,r);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){return Pt(this,null,function*(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):this.version!==void 0&&isNaN(this.version)&&(console.warn("[angularx-qrcode] ver
8sion should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");this.isValidQrCodeText(this.qrdata)&&this.qrdata===""&&(this.qrdata=" ");let e={color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},r=this.imageSrc,i=this.imageHeight?+this.imageHeight:40,o=this.imageWidth?+this.imageWidth:40;switch(this.elementType){case"canvas":{let s=this.renderer.createElement("canvas");this.context=s.getContext("2d"),this.toCanvas(s,e).then(()=>{if(this.ariaLabel&&this.renderer.setAttribute(s,"aria-label",`${this.ariaLabel}`),this.title&&this.renderer.setAttribute(s,"title",`${this.title}`),r&&this.context){this.centerImage=new Image(o,i),r!==this.centerImage.src&&(this.centerImage.crossOrigin="anonymous",this.centerImage.src=r),i!==this.centerImage.height&&(this.centerImage.height=i),o!==this.centerImage.width&&(this.centerImage.width=o);let a=this.centerImage;a&&(a.onload=()=>{this.context?.drawImage(a,s.width/2-o/2,s.height/2-i/2,o,i)})}this.renderElement(s),this.emitQRCodeURL(s)}).catch(a=>{console.error("[angularx-qrcode] canvas error:",a)});break}case"svg":{let s=this.renderer.createElement("div");this.toSVG(e).then(a=>{this.renderer.setProperty(s,"innerHTML",a);let c=s.firstChild;this.renderer.setAttribute(c,"height",`${this.width}`),this.renderer.setAttribute(c,"width",`${this.width}`),this.renderElement(c),this.emitQRCodeURL(c)}).catch(a=>{console.error("[angularx-qrcode] svg error:",a)});break}default:{let s=this.renderer.createElement("img");this.toDataURL(e).then(a=>{this.alt&&s.setAttribute("alt",this.alt),this.ariaLabel&&s.setAttribute("aria-label",this.ariaLabel),s.setAttribute("src",a),this.title&&s.setAttribute("title",this.title),this.renderElement(s),this.emitQRCodeURL(s)}).catch(a=>{console.error("[angularx-qrcode] img/url error:",a)})}}}catch(e){console.error("[angularx-qrcode] Error generating QR Code:",e.message)}})}convertBase64ImageUrlToBlob(e){let r=e.split(";base64,"),i=r[0].split(":")[1],o=atob(r[1]),s=new Uint8Array(o.length);for(let a=0;a<o.length;++a)s[a]=o.charCodeAt(a);return new Blob([s],{type:i})}emitQRCodeURL(e){let r=e.constructor.name;if(r===SVGSVGElement.name){let c=e.outerHTML,l=new Blob([c],{type:"image/svg+xml"}),d=URL.createObjectURL(l),y=this.sanitizer.bypassSecurityTrustUrl(d);this.qrCodeURL.emit(y);return}let i="";r===HTMLCanvasElement.name&&(i=e.toDataURL("image/png")),r===HTMLImageElement.name&&(i=e.src);let o=this.convertBase64ImageUrlToBlob(i),s=URL.createObjectURL(o),a=this.sanitizer.bypassSecurityTrustUrl(s);this.qrCodeURL.emit(a)}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=K({type:n,selectors:[["qrcode"]],viewQuery:function(r,i){if(r&1&&ye(Hr,7),r&2){let o;xe(o=be())&&(i.qrcElement=o.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[me],decls:2,vars:2,consts:[["qrcElement",""]],template:function(r,i){r&1&&we(0,"div",null,0),r&2&&j(i.cssClass)},encapsulation:2,changeDetection:0})}return n})();function Wr(n,t){n&1&&(p(0,"span"),x(1,"0"),C())}function Qr(n,t){if(n&1&&(p(0,"div")(1,"div",12)(2,"div",13)(3,"p"),b(4,Wr,2,0,"span"),x(5),C()(),p(6,"div",14)(7,"h1",15),x(8),C(),p(9,"p",16),x(10),C()(),p(11,"div")(12,"p"),x(13),C()()()()),n&2){let e=t.$implicit,r=t.$index,i=v(2);g(4),_(r+1+i.currentPage*10<10?4:-1),g(),P(r+1+i.currentPage*10),g(3),P(e.CustomerName),g(2),ut("#",e.OrderNumber),g(),j("badge text-4xl "+i.getBadgeClass(e.Status)),g(2),P(e.Status)}}function Jr(n,t){if(n&1&&(p(0,"h2",6),x(1),C()),n&2){let e=v(2);g(),P(e.totalRecords)}}function Yr(n,t){n&1&&E(0,"div",7)}function Gr(n,t){if(n&1&&(p(0,"div",0)(1,"div",1),X(2,Qr,14,7,"div",null,Z),C(),p(4,"div",2),E(5,"img",3),p(6,"div",4)(7,"p",5),x(8,"Total Orders"),C(),b(9,Jr,2,1,"h2",6),b(10,Yr,1,0,"div",7),C(),p(11,"div",8)(12,"div",9),E(13,"qrcode",10),C(),p(14,"p",11),x(15,"scan to track"),C()()()()),n&2){let e=v();g(2),tt(e.kdsOrders),g(3),H("src",e.logoLightUrl,dt),g(4),_(e.totalRecords>0?9:-1),g(),_(e.totalRecords===0?10:-1),g(3),H("width",200)("qrdata",e.link)("errorCorrectionLevel","M")}}function $r(n,t){if(n&1&&E(0,"app-video-player",17),n&2){let e=v(2);H("videoUrl",e.backgroundVideoUrl)}}function Zr(n,t){if(n&1&&(p(0,"div"),b(1,$r,1,1,"app-video-player",17),C()),n&2){let e=v();g(),_(e.backgroundVideoUrl?1:-1)}}var Dn=(()=>{class n{constructor(e,r,i,o){this.route=e,this.router=r,this.location=i,this.kdsStatusService=o,this.kdsOrders=[],this.logoLightUrl=et.logoLightUrl,this.totalRecords=0,this.currentPage=0,this.pageSize=10,this.link="",this.showVideo=!0,this.backgroundVideoUrl=et.tvStatusVideoUrl,this.getBadgeClass=a=>Dt(a);let{divisionId:s}
8=this.route.snapshot.params;s&&(this.divisionId=s),this.link=window.location.href}ngOnInit(){this.getWaitStatus(),this.timer=setInterval(()=>{this.currentPage++,this.kdsOrders=[],this.getWaitStatus()},15e3)}getWaitStatus(){this.divisionId&&this.kdsStatusService.getKdsOrdersByStore(this.divisionId,this.pageSize,this.currentPage).subscribe(e=>{e.TotalRecords!=this.totalRecords&&(this.totalRecords=e.TotalRecords),this.totalRecords>0?this.showVideo=!1:this.backgroundVideoUrl&&(this.showVideo=!0),e.KdsOrders?.length>0?this.kdsOrders=e.KdsOrders:(this.currentPage=0,this.getWaitStatus())},e=>{console.log(e)})}static{this.\u0275fac=function(r){return new(r||n)(I(ft),I(Ie),I(Ee),I(ht))}}static{this.\u0275cmp=K({type:n,selectors:[["app-tv-view"]],standalone:!1,decls:2,vars:2,consts:[[1,"w-screen","h-screen","bg-no-repeat","bg-contain","bg-bottom","flex","px-14","py-24","space-x-16",2,"background-image","url(assets/images/waves-bg.png)"],[1,"orders-container","flex-1"],[1,"flex","flex-col","w-3/12","p-3","justify-between"],["alt","",1,"w-full",3,"src"],[1,"total-records-box","p-10","mx-auto"],[1,"text-gray","text-3xl","mb-2","text-center"],[1,"text-gray-dark","font-black","text-center",2,"font-size","50px"],[2,"height","50px"],[1,"qr-container","mx-auto","flex","flex-col"],[1,"rounded-lg","overflow-hidden","w-full"],[3,"width","qrdata","errorCorrectionLevel"],[1,"mx-auto","pt-2"],[1,"card"],[1,"box-number"],[1,"flex","flex-col","space-y-1.5","justify-center","flex-1"],[1,"text-7xl","font-black"],[1,"text-3xl","text-gray"],[3,"videoUrl"]],template:function(r,i){r&1&&(b(0,Gr,16,6,"div",0),b(1,Zr,2,1,"div")),r&2&&(_(i.showVideo?-1:0),g(),_(i.showVideo?1:-1))},dependencies:[ke,Mt],styles:[".orders-container[_ngcontent-%COMP%]{height:100%;width:100%;display:grid;grid-gap:2rem;grid-template-rows:repeat(5,1fr);grid-template-columns:repeat(2,1fr);grid-auto-flow:column}.orders-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%;width:100%}.card[_ngcontent-%COMP%]{box-shadow:0 7.40741px 30px #818abe38;border-radius:10px;background:#fff;padding:1.968rem 2.329rem;height:100%;width:100%;display:flex}.card[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not([hidden]) ~ [_ngcontent-%COMP%]:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.box-number[_ngcontent-%COMP%]{background:#793fff1a;position:relative;height:100%;aspect-ratio:1 / 1;border-radius:.375rem;margin-top:auto;margin-bottom:auto;display:flex;justify-content:center}.box-number[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .box-number[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:2.5rem;line-height:2.5rem;font-weight:900;color:var(--primary-color);margin:auto;font-family:Poppins SemiBold,Helvetica Neue,sans-serif}.qr-container[_ngcontent-%COMP%]{background:#000;border-radius:9.31507px;padding:.5rem}.qr-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:19.1781px;color:#fff;text-transform:uppercase}.total-records-box[_ngcontent-%COMP%]{background:#fff;box-shadow:0 7.40741px 30px #a9b2e138;border-radius:18.5185px;width:fit-content}",".mat-mdc-unelevated-button.mat-primary{color:var(--primary-color)} .mat-icon.mat-primary path{stroke:var(--primary-color)}.badge[_ngcontent-%COMP%]{height:fit-content!important;margin-top:auto;margin-bottom:auto}.badge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.green-badge[_ngcontent-%COMP%]{background:#31ec921a;border-radius:6px;padding:4px 12px;width:fit-content;display:flex;justify-content:center}.green-badge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#31ec92!important;margin-top:auto!important;margin-bottom:auto!important;width:auto!important;font-weight:900!important}.yellow-badge[_ngcontent-%COMP%]{background:#fff3dd;border-radius:6px;padding:4px 12px;width:fit-content;display:flex;justify-content:center}.yellow-badge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fcce7f!important;margin-top:auto!important;margin-bottom:auto!important;width:auto!important;font-weight:900!important}.red-badge[_ngcontent-%COMP%]{background:#ffc9c8;border-radius:6px;padding:4px 12px;width:fit-content;display:flex;justify-content:center}.red-badge[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#ec3531!important;margin-top:auto!important;margin-bottom:auto!important;width:auto!important;font-weight:900!important}"]})}}return n})();var no=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=Ce({type:n})}static{this.\u0275inj=fe({imports:[ve,Oe,Mt,Be.forChild([{path:"",component:Ut}])]})}}return n})();_e(Ut,function(){return[Ae,Le,Pe,Ne,Dn]},[]);export{no as KdsWaitStatusModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.