@orderingstack/front-hooks 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +499 -7
- package/dist/index.es.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/useCms.d.ts +23 -0
- package/dist/src/useCms.d.ts.map +1 -1
- package/dist/src/useMediaUrl.d.ts +14 -0
- package/dist/src/useMediaUrl.d.ts.map +1 -0
- package/dist/src/utils/cms.d.ts +11 -0
- package/dist/src/utils/cms.d.ts.map +1 -0
- package/package.json +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var F=require("react"),On=require("@orderingstack/ordering-core-react");function Re(e,t){const r=F.useRef(),[n,a]=F.useState(null);return F.useEffect(()=>{r.current=e},[e]),F.useEffect(()=>{function i(){var s;(s=r.current)==null||s.call(r)}if(t!==null){const s=setInterval(i,t);return a(s),()=>{a(null),clearInterval(s)}}},[t]),()=>{n&&clearInterval(n)}}var X=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Sn=Object.prototype;function wn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Sn;return e===r}var je=wn;function In(e,t){return function(r){return e(t(r))}}var Cr=In,Dn=Cr,Cn=Dn(Object.keys,Object),Ln=Cn,Rn=je,jn=Ln,Pn=Object.prototype,Nn=Pn.hasOwnProperty;function xn(e){if(!Rn(e))return jn(e);var t=[];for(var r in Object(e))Nn.call(e,r)&&r!="constructor"&&t.push(r);return t}var Lr=xn,Mn=typeof X=="object"&&X&&X.Object===Object&&X,Rr=Mn,Un=Rr,Bn=typeof self=="object"&&self&&self.Object===Object&&self,Fn=Un||Bn||Function("return this")(),K=Fn,Hn=K,Yn=Hn.Symbol,Pe=Yn,wt=Pe,jr=Object.prototype,Gn=jr.hasOwnProperty,Vn=jr.toString,de=wt?wt.toStringTag:void 0;function Wn(e){var t=Gn.call(e,de),r=e[de];try{e[de]=void 0;var n=!0}catch{}var a=Vn.call(e);return n&&(t?e[de]=r:delete e[de]),a}var Kn=Wn,qn=Object.prototype,zn=qn.toString;function kn(e){return zn.call(e)}var Jn=kn,It=Pe,Zn=Kn,Xn=Jn,Qn="[object Null]",ea="[object Undefined]",Dt=It?It.toStringTag:void 0;function ta(e){return e==null?e===void 0?ea:Qn:Dt&&Dt in Object(e)?Zn(e):Xn(e)}var Ne=ta;function ra(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ge=ra,na=Ne,aa=ge,ia="[object AsyncFunction]",sa="[object Function]",oa="[object GeneratorFunction]",ua="[object Proxy]";function fa(e){if(!aa(e))return!1;var t=na(e);return t==sa||t==oa||t==ia||t==ua}var Pr=fa,ca=K,la=ca["__core-js_shared__"],ha=la,We=ha,Ct=function(){var e=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function da(e){return!!Ct&&Ct in e}var va=da,pa=Function.prototype,ga=pa.toString;function $a(e){if(e!=null){try{return ga.call(e)}catch{}try{return e+""}catch{}}return""}var Nr=$a,ya=Pr,ma=va,ba=ge,_a=Nr,Aa=/[\\^$.*+?()[\]{}|]/g,Ea=/^\[object .+?Constructor\]$/,Ta=Function.prototype,Oa=Object.prototype,Sa=Ta.toString,wa=Oa.hasOwnProperty,Ia=RegExp("^"+Sa.call(wa).replace(Aa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Da(e){if(!ba(e)||ma(e))return!1;var t=ya(e)?Ia:Ea;return t.test(_a(e))}var Ca=Da;function La(e,t){return e==null?void 0:e[t]}var Ra=La,ja=Ca,Pa=Ra;function Na(e,t){var r=Pa(e,t);return ja(r)?r:void 0}var Q=Na,xa=Q,Ma=K,Ua=xa(Ma,"DataView"),Ba=Ua,Fa=Q,Ha=K,Ya=Fa(Ha,"Map"),ft=Ya,Ga=Q,Va=K,Wa=Ga(Va,"Promise"),Ka=Wa,qa=Q,za=K,ka=qa(za,"Set"),Ja=ka,Za=Q,Xa=K,Qa=Za(Xa,"WeakMap"),ei=Qa,Xe=Ba,Qe=ft,et=Ka,tt=Ja,rt=ei,xr=Ne,ie=Nr,Lt="[object Map]",ti="[object Object]",Rt="[object Promise]",jt="[object Set]",Pt="[object WeakMap]",Nt="[object DataView]",ri=ie(Xe),ni=ie(Qe),ai=ie(et),ii=ie(tt),si=ie(rt),Z=xr;(Xe&&Z(new Xe(new ArrayBuffer(1)))!=Nt||Qe&&Z(new Qe)!=Lt||et&&Z(et.resolve())!=Rt||tt&&Z(new tt)!=jt||rt&&Z(new rt)!=Pt)&&(Z=function(e){var t=xr(e),r=t==ti?e.constructor:void 0,n=r?ie(r):"";if(n)switch(n){case ri:return Nt;case ni:return Lt;case ai:return Rt;case ii:return jt;case si:return Pt}return t});var $e=Z;function oi(e){return e!=null&&typeof e=="object"}var se=oi,ui=Ne,fi=se,ci="[object Arguments]";function li(e){return fi(e)&&ui(e)==ci}var hi=li,xt=hi,di=se,Mr=Object.prototype,vi=Mr.hasOwnProperty,pi=Mr.propertyIsEnumerable,gi=xt(function(){return arguments}())?xt:function(e){return di(e)&&vi.call(e,"callee")&&!pi.call(e,"callee")},Ur=gi,$i=Array.isArray,ye=$i,yi=9007199254740991;function mi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yi}var Br=mi,bi=Pr,_i=Br;function Ai(e){return e!=null&&_i(e.length)&&!bi(e)}var ct=Ai,ae={exports:{}};function Ei(){return!1}var Ti=Ei;(function(e,t){var r=K,n=Ti,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s?r.Buffer:void 0,o=u?u.isBuffer:void 0,l=o||n;e.exports=l})(ae,ae.exports);var Oi=Ne,Si=Br,wi=se,Ii="[object Arguments]",Di="[object Array]",Ci="[object Boolean]",Li="[object Date]",Ri="[object Error]",ji="[object Function]",Pi="[object Map]",Ni="[object Number]",xi="[object Object]",Mi="[object RegExp]",Ui="[object Set]",Bi="[object String]",Fi="[object WeakMap]",Hi="[object ArrayBuffer]",Yi="[object DataView]",Gi="[object Float32Array]",Vi="[object Float64Array]",Wi="[object Int8Array]",Ki="[object Int16Array]",qi="[object Int32Array]",zi="[object Uint8Array]",ki="[object Uint8ClampedArray]",Ji="[object Uint16Array]",Zi="[object Uint32Array]",R={};R[Gi]=R[Vi]=R[Wi]=R[Ki]=R[qi]=R[zi]=R[ki]=R[Ji]=R[Zi]=!0;R[Ii]=R[Di]=R[Hi]=R[Ci]=R[Yi]=R[Li]=R[Ri]=R[ji]=R[Pi]=R[Ni]=R[xi]=R[Mi]=R[Ui]=R[Bi]=R[Fi]=!1;function Xi(e){return wi(e)&&Si(e.length)&&!!R[Oi(e)]}var Qi=Xi;function es(e){return function(t){return e(t)}}var lt=es,ve={exports:{}};(function(e,t){var r=Rr,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i&&r.process,u=function(){try{var o=a&&a.require&&a.require("util").types;return o||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u})(ve,ve.exports);var ts=Qi,rs=lt,Mt=ve.exports,Ut=Mt&&Mt.isTypedArray,ns=Ut?rs(Ut):ts,ht=ns,as=Lr,is=$e,ss=Ur,os=ye,us=ct,fs=ae.exports,cs=je,ls=ht,hs="[object Map]",ds="[object Set]",vs=Object.prototype,ps=vs.hasOwnProperty;function gs(e){if(e==null)return!0;if(us(e)&&(os(e)||typeof e=="string"||typeof e.splice=="function"||fs(e)||ls(e)||ss(e)))return!e.length;var t=is(e);if(t==hs||t==ds)return!e.size;if(cs(e))return!as(e).length;for(var r in e)if(ps.call(e,r))return!1;return!0}var dt=gs,Fr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(X,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,s,u){var o=s.prototype;u.utc=function(f){var y={date:f,utc:!0,args:arguments};return new s(y)},o.utc=function(f){var y=u(this.toDate(),{locale:this.$L,utc:!0});return f?y.add(this.utcOffset(),r):y},o.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=o.parse;o.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),l.call(this,f)};var m=o.init;o.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else m.call(this)};var v=o.utcOffset;o.utcOffset=function(f,y){var O=this.$utils().u;if(O(f))return this.$u?0:O(this.$offset)?v.call(this):this.$offset;if(typeof f=="string"&&(f=function(D){D===void 0&&(D="");var B=D.match(n);if(!B)return null;var H=(""+B[0]).match(a)||["-",0,0],V=H[0],C=60*+H[1]+ +H[2];return C===0?0:V==="+"?C:-C}(f),f===null))return this;var w=Math.abs(f)<=16?60*f:f,E=this;if(y)return E.$offset=w,E.$u=f===0,E;if(f!==0){var P=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(w+P,r)).$offset=w,E.$x.$localOffset=P}else E=this.utc();return E};var c=o.format;o.format=function(f){var y=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,y)},o.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var h=o.toDate;o.toDate=function(f){return f==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var $=o.diff;o.diff=function(f,y,O){if(f&&this.$u===f.$u)return $.call(this,f,y,O);var w=this.local(),E=u(f).local();return $.call(w,E,y,O)}}})})(Fr);var $s=Fr.exports,Hr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(X,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(a,i,s){var u,o=function(c,h,$){$===void 0&&($={});var f=new Date(c),y=function(O,w){w===void 0&&(w={});var E=w.timeZoneName||"short",P=O+"|"+E,D=n[P];return D||(D=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:O,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),n[P]=D),D}(h,$);return y.formatToParts(f)},l=function(c,h){for(var $=o(c,h),f=[],y=0;y<$.length;y+=1){var O=$[y],w=O.type,E=O.value,P=r[w];P>=0&&(f[P]=parseInt(E,10))}var D=f[3],B=D===24?0:D,H=f[0]+"-"+f[1]+"-"+f[2]+" "+B+":"+f[4]+":"+f[5]+":000",V=+c;return(s.utc(H).valueOf()-(V-=V%1e3))/6e4},m=i.prototype;m.tz=function(c,h){c===void 0&&(c=u);var $=this.utcOffset(),f=this.toDate(),y=f.toLocaleString("en-US",{timeZone:c}),O=Math.round((f-new Date(y))/1e3/60),w=s(y).$set("millisecond",this.$ms).utcOffset(15*-Math.round(f.getTimezoneOffset()/15)-O,!0);if(h){var E=w.utcOffset();w=w.add($-E,"minute")}return w.$x.$timezone=c,w},m.offsetName=function(c){var h=this.$x.$timezone||s.tz.guess(),$=o(this.valueOf(),h,{timeZoneName:c}).find(function(f){return f.type.toLowerCase()==="timezonename"});return $&&$.value};var v=m.startOf;m.startOf=function(c,h){if(!this.$x||!this.$x.$timezone)return v.call(this,c,h);var $=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return v.call($,c,h).tz(this.$x.$timezone,!0)},s.tz=function(c,h,$){var f=$&&h,y=$||h||u,O=l(+s(),y);if(typeof c!="string")return s(c).tz(y);var w=function(B,H,V){var C=B-60*H*1e3,S=l(C,V);if(H===S)return[C,H];var z=l(C-=60*(S-H)*1e3,V);return S===z?[C,S]:[B-60*Math.min(S,z)*1e3,Math.max(S,z)]}(s.utc(c,f).valueOf(),O,y),E=w[0],P=w[1],D=s(E).utcOffset(P);return D.$x.$timezone=y,D},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(c){u=c}}})})(Hr);var ys=Hr.exports,Yr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(X,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",s="second",u="minute",o="hour",l="day",m="week",v="month",c="quarter",h="year",$="date",f="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},E=function(T,g,d){var b=String(T);return!b||b.length>=g?T:""+Array(g+1-b.length).join(d)+T},P={s:E,z:function(T){var g=-T.utcOffset(),d=Math.abs(g),b=Math.floor(d/60),p=d%60;return(g<=0?"+":"-")+E(b,2,"0")+":"+E(p,2,"0")},m:function T(g,d){if(g.date()<d.date())return-T(d,g);var b=12*(d.year()-g.year())+(d.month()-g.month()),p=g.clone().add(b,v),A=d-p<0,_=g.clone().add(b+(A?-1:1),v);return+(-(b+(d-p)/(A?p-_:_-p))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:v,y:h,w:m,d:l,D:$,h:o,m:u,s,ms:i,Q:c}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},D="en",B={};B[D]=w;var H=function(T){return T instanceof z},V=function T(g,d,b){var p;if(!g)return D;if(typeof g=="string"){var A=g.toLowerCase();B[A]&&(p=A),d&&(B[A]=d,p=A);var _=g.split("-");if(!p&&_.length>1)return T(_[0])}else{var I=g.name;B[I]=g,p=I}return!b&&p&&(D=p),p||!b&&D},C=function(T,g){if(H(T))return T.clone();var d=typeof g=="object"?g:{};return d.date=T,d.args=arguments,new z(d)},S=P;S.l=V,S.i=H,S.w=function(T,g){return C(T,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var z=function(){function T(d){this.$L=V(d.locale,null,!0),this.parse(d)}var g=T.prototype;return g.parse=function(d){this.$d=function(b){var p=b.date,A=b.utc;if(p===null)return new Date(NaN);if(S.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var _=p.match(y);if(_){var I=_[2]-1||0,N=(_[7]||"0").substring(0,3);return A?new Date(Date.UTC(_[1],I,_[3]||1,_[4]||0,_[5]||0,_[6]||0,N)):new Date(_[1],I,_[3]||1,_[4]||0,_[5]||0,_[6]||0,N)}}return new Date(p)}(d),this.$x=d.x||{},this.init()},g.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return this.$d.toString()!==f},g.isSame=function(d,b){var p=C(d);return this.startOf(b)<=p&&p<=this.endOf(b)},g.isAfter=function(d,b){return C(d)<this.startOf(b)},g.isBefore=function(d,b){return this.endOf(b)<C(d)},g.$g=function(d,b,p){return S.u(d)?this[b]:this.set(p,d)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(d,b){var p=this,A=!!S.u(b)||b,_=S.p(d),I=function(te,Y){var J=S.w(p.$u?Date.UTC(p.$y,Y,te):new Date(p.$y,Y,te),p);return A?J:J.endOf(l)},N=function(te,Y){return S.w(p.toDate()[te].apply(p.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Y)),p)},j=this.$W,M=this.$M,k=this.$D,q="set"+(this.$u?"UTC":"");switch(_){case h:return A?I(1,0):I(31,11);case v:return A?I(1,M):I(0,M+1);case m:var le=this.$locale().weekStart||0,he=(j<le?j+7:j)-le;return I(A?k-he:k+(6-he),M);case l:case $:return N(q+"Hours",0);case o:return N(q+"Minutes",1);case u:return N(q+"Seconds",2);case s:return N(q+"Milliseconds",3);default:return this.clone()}},g.endOf=function(d){return this.startOf(d,!1)},g.$set=function(d,b){var p,A=S.p(d),_="set"+(this.$u?"UTC":""),I=(p={},p[l]=_+"Date",p[$]=_+"Date",p[v]=_+"Month",p[h]=_+"FullYear",p[o]=_+"Hours",p[u]=_+"Minutes",p[s]=_+"Seconds",p[i]=_+"Milliseconds",p)[A],N=A===l?this.$D+(b-this.$W):b;if(A===v||A===h){var j=this.clone().set($,1);j.$d[I](N),j.init(),this.$d=j.set($,Math.min(this.$D,j.daysInMonth())).$d}else I&&this.$d[I](N);return this.init(),this},g.set=function(d,b){return this.clone().$set(d,b)},g.get=function(d){return this[S.p(d)]()},g.add=function(d,b){var p,A=this;d=Number(d);var _=S.p(b),I=function(M){var k=C(A);return S.w(k.date(k.date()+Math.round(M*d)),A)};if(_===v)return this.set(v,this.$M+d);if(_===h)return this.set(h,this.$y+d);if(_===l)return I(1);if(_===m)return I(7);var N=(p={},p[u]=n,p[o]=a,p[s]=r,p)[_]||1,j=this.$d.getTime()+d*N;return S.w(j,this)},g.subtract=function(d,b){return this.add(-1*d,b)},g.format=function(d){var b=this,p=this.$locale();if(!this.isValid())return p.invalidDate||f;var A=d||"YYYY-MM-DDTHH:mm:ssZ",_=S.z(this),I=this.$H,N=this.$m,j=this.$M,M=p.weekdays,k=p.months,q=function(Y,J,Ve,be){return Y&&(Y[J]||Y(b,A))||Ve[J].slice(0,be)},le=function(Y){return S.s(I%12||12,Y,"0")},he=p.meridiem||function(Y,J,Ve){var be=Y<12?"AM":"PM";return Ve?be.toLowerCase():be},te={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:S.s(j+1,2,"0"),MMM:q(p.monthsShort,j,k,3),MMMM:q(k,j),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:q(p.weekdaysMin,this.$W,M,2),ddd:q(p.weekdaysShort,this.$W,M,3),dddd:M[this.$W],H:String(I),HH:S.s(I,2,"0"),h:le(1),hh:le(2),a:he(I,N,!0),A:he(I,N,!1),m:String(N),mm:S.s(N,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:_};return A.replace(O,function(Y,J){return J||te[Y]||_.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(d,b,p){var A,_=S.p(b),I=C(d),N=(I.utcOffset()-this.utcOffset())*n,j=this-I,M=S.m(this,I);return M=(A={},A[h]=M/12,A[v]=M,A[c]=M/3,A[m]=(j-N)/6048e5,A[l]=(j-N)/864e5,A[o]=j/a,A[u]=j/n,A[s]=j/r,A)[_]||j,p?M:S.a(M)},g.daysInMonth=function(){return this.endOf(v).$D},g.$locale=function(){return B[this.$L]},g.locale=function(d,b){if(!d)return this.$L;var p=this.clone(),A=V(d,b,!0);return A&&(p.$L=A),p},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},T}(),St=z.prototype;return C.prototype=St,[["$ms",i],["$s",s],["$m",u],["$H",o],["$W",l],["$M",v],["$y",h],["$D",$]].forEach(function(T){St[T[1]]=function(g){return this.$g(g,T[0],T[1])}}),C.extend=function(T,g){return T.$i||(T(g,z,C),T.$i=!0),C},C.locale=V,C.isDayjs=H,C.unix=function(T){return C(1e3*T)},C.en=B[D],C.Ls=B,C.p={},C})})(Yr);var pe=Yr.exports;pe.extend($s);pe.extend(ys);const Gr=["SUN","MON","TUE","WED","THU","FRI","SAT"],Ie=e=>{const[t,r]=e.split(":");return{hour:parseInt(t||"0",10),minutes:parseInt(r||"0",10)}};function nt(e,t,r){const{availability:n}=e;if(!n)return!0;if(dt(n))return!1;const a=r?pe(r).tz(t):pe().tz(t),i=a.day(),s=n[Gr[i]];if(!Array.isArray(s)||s.length!==2)return!1;const u=a.hour(),o=a.minute(),l=Ie(s[0]),m=Ie(s[1]);return u<l.hour||u===l.hour&&o<l.minutes?!1:!(u>m.hour||u===m.hour&&o>m.minutes)}const at=(e,t=void 0,r=void 0,n=!1)=>n?e.map(i=>{let s;return Array.isArray(i.items)&&(s=at(i.items,t,r,n)),{...i,items:s,outsideAvailabilitySlot:!nt(i,t,r)||(s==null?void 0:s.every(u=>u.outsideAvailabilitySlot))||!1}}):e.filter(i=>nt(i,t,r)).map(i=>Array.isArray(i.items)?{...i,items:at(i.items,t,r)}:i),Bt=(e,t=void 0,r=void 0,n=!1)=>{let a=[];return e.forEach(i=>{if(!Array.isArray(i.items)){a.push(i);return}const s=at(i.items,t,r,n);s.length>0&&a.push({...i,items:s})}),n&&(a=a.map(i=>!i.items||!Array.isArray(i.items)?i:{...i,outsideAvailabilitySlot:!nt(i,t,r)||i.items.every(s=>s.outsideAvailabilitySlot)})),a};function _e(e){const t=e==null?void 0:e.week;if(!e||!e.active||!t)return!1;const r=pe(),n=r.day(),a=t[Gr[n]];return a?a.some(i=>ms(r,i)):!1}function ms(e,t){const r=e.hour(),n=e.minute(),a=Ie(t.from),i=Ie(t.to);return r<a.hour||r===a.hour&&n<a.minutes?!1:!(r>i.hour||r===i.hour&&n>i.minutes)}function bs(){this.__data__=[],this.size=0}var _s=bs;function As(e,t){return e===t||e!==e&&t!==t}var vt=As,Es=vt;function Ts(e,t){for(var r=e.length;r--;)if(Es(e[r][0],t))return r;return-1}var xe=Ts,Os=xe,Ss=Array.prototype,ws=Ss.splice;function Is(e){var t=this.__data__,r=Os(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ws.call(t,r,1),--this.size,!0}var Ds=Is,Cs=xe;function Ls(e){var t=this.__data__,r=Cs(t,e);return r<0?void 0:t[r][1]}var Rs=Ls,js=xe;function Ps(e){return js(this.__data__,e)>-1}var Ns=Ps,xs=xe;function Ms(e,t){var r=this.__data__,n=xs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Us=Ms,Bs=_s,Fs=Ds,Hs=Rs,Ys=Ns,Gs=Us;function oe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}oe.prototype.clear=Bs;oe.prototype.delete=Fs;oe.prototype.get=Hs;oe.prototype.has=Ys;oe.prototype.set=Gs;var Me=oe,Vs=Me;function Ws(){this.__data__=new Vs,this.size=0}var Ks=Ws;function qs(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var zs=qs;function ks(e){return this.__data__.get(e)}var Js=ks;function Zs(e){return this.__data__.has(e)}var Xs=Zs,Qs=Q,eo=Qs(Object,"create"),Ue=eo,Ft=Ue;function to(){this.__data__=Ft?Ft(null):{},this.size=0}var ro=to;function no(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ao=no,io=Ue,so="__lodash_hash_undefined__",oo=Object.prototype,uo=oo.hasOwnProperty;function fo(e){var t=this.__data__;if(io){var r=t[e];return r===so?void 0:r}return uo.call(t,e)?t[e]:void 0}var co=fo,lo=Ue,ho=Object.prototype,vo=ho.hasOwnProperty;function po(e){var t=this.__data__;return lo?t[e]!==void 0:vo.call(t,e)}var go=po,$o=Ue,yo="__lodash_hash_undefined__";function mo(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$o&&t===void 0?yo:t,this}var bo=mo,_o=ro,Ao=ao,Eo=co,To=go,Oo=bo;function ue(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ue.prototype.clear=_o;ue.prototype.delete=Ao;ue.prototype.get=Eo;ue.prototype.has=To;ue.prototype.set=Oo;var So=ue,Ht=So,wo=Me,Io=ft;function Do(){this.size=0,this.__data__={hash:new Ht,map:new(Io||wo),string:new Ht}}var Co=Do;function Lo(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ro=Lo,jo=Ro;function Po(e,t){var r=e.__data__;return jo(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Be=Po,No=Be;function xo(e){var t=No(this,e).delete(e);return this.size-=t?1:0,t}var Mo=xo,Uo=Be;function Bo(e){return Uo(this,e).get(e)}var Fo=Bo,Ho=Be;function Yo(e){return Ho(this,e).has(e)}var Go=Yo,Vo=Be;function Wo(e,t){var r=Vo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Ko=Wo,qo=Co,zo=Mo,ko=Fo,Jo=Go,Zo=Ko;function fe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fe.prototype.clear=qo;fe.prototype.delete=zo;fe.prototype.get=ko;fe.prototype.has=Jo;fe.prototype.set=Zo;var Vr=fe,Xo=Me,Qo=ft,eu=Vr,tu=200;function ru(e,t){var r=this.__data__;if(r instanceof Xo){var n=r.__data__;if(!Qo||n.length<tu-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eu(n)}return r.set(e,t),this.size=r.size,this}var nu=ru,au=Me,iu=Ks,su=zs,ou=Js,uu=Xs,fu=nu;function ce(e){var t=this.__data__=new au(e);this.size=t.size}ce.prototype.clear=iu;ce.prototype.delete=su;ce.prototype.get=ou;ce.prototype.has=uu;ce.prototype.set=fu;var Wr=ce,cu="__lodash_hash_undefined__";function lu(e){return this.__data__.set(e,cu),this}var hu=lu;function du(e){return this.__data__.has(e)}var vu=du,pu=Vr,gu=hu,$u=vu;function De(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new pu;++t<r;)this.add(e[t])}De.prototype.add=De.prototype.push=gu;De.prototype.has=$u;var yu=De;function mu(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var bu=mu;function _u(e,t){return e.has(t)}var Au=_u,Eu=yu,Tu=bu,Ou=Au,Su=1,wu=2;function Iu(e,t,r,n,a,i){var s=r&Su,u=e.length,o=t.length;if(u!=o&&!(s&&o>u))return!1;var l=i.get(e),m=i.get(t);if(l&&m)return l==t&&m==e;var v=-1,c=!0,h=r&wu?new Eu:void 0;for(i.set(e,t),i.set(t,e);++v<u;){var $=e[v],f=t[v];if(n)var y=s?n(f,$,v,t,e,i):n($,f,v,e,t,i);if(y!==void 0){if(y)continue;c=!1;break}if(h){if(!Tu(t,function(O,w){if(!Ou(h,w)&&($===O||a($,O,r,n,i)))return h.push(w)})){c=!1;break}}else if(!($===f||a($,f,r,n,i))){c=!1;break}}return i.delete(e),i.delete(t),c}var Kr=Iu,Du=K,Cu=Du.Uint8Array,qr=Cu;function Lu(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var Ru=Lu;function ju(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Pu=ju,Yt=Pe,Gt=qr,Nu=vt,xu=Kr,Mu=Ru,Uu=Pu,Bu=1,Fu=2,Hu="[object Boolean]",Yu="[object Date]",Gu="[object Error]",Vu="[object Map]",Wu="[object Number]",Ku="[object RegExp]",qu="[object Set]",zu="[object String]",ku="[object Symbol]",Ju="[object ArrayBuffer]",Zu="[object DataView]",Vt=Yt?Yt.prototype:void 0,Ke=Vt?Vt.valueOf:void 0;function Xu(e,t,r,n,a,i,s){switch(r){case Zu:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ju:return!(e.byteLength!=t.byteLength||!i(new Gt(e),new Gt(t)));case Hu:case Yu:case Wu:return Nu(+e,+t);case Gu:return e.name==t.name&&e.message==t.message;case Ku:case zu:return e==t+"";case Vu:var u=Mu;case qu:var o=n&Bu;if(u||(u=Uu),e.size!=t.size&&!o)return!1;var l=s.get(e);if(l)return l==t;n|=Fu,s.set(e,t);var m=xu(u(e),u(t),n,a,i,s);return s.delete(e),m;case ku:if(Ke)return Ke.call(e)==Ke.call(t)}return!1}var Qu=Xu;function ef(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var zr=ef,tf=zr,rf=ye;function nf(e,t,r){var n=t(e);return rf(e)?n:tf(n,r(e))}var kr=nf;function af(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}var sf=af;function of(){return[]}var Jr=of,uf=sf,ff=Jr,cf=Object.prototype,lf=cf.propertyIsEnumerable,Wt=Object.getOwnPropertySymbols,hf=Wt?function(e){return e==null?[]:(e=Object(e),uf(Wt(e),function(t){return lf.call(e,t)}))}:ff,pt=hf;function df(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var vf=df,pf=9007199254740991,gf=/^(?:0|[1-9]\d*)$/;function $f(e,t){var r=typeof e;return t=t==null?pf:t,!!t&&(r=="number"||r!="symbol"&&gf.test(e))&&e>-1&&e%1==0&&e<t}var yf=$f,mf=vf,bf=Ur,_f=ye,Af=ae.exports,Ef=yf,Tf=ht,Of=Object.prototype,Sf=Of.hasOwnProperty;function wf(e,t){var r=_f(e),n=!r&&bf(e),a=!r&&!n&&Af(e),i=!r&&!n&&!a&&Tf(e),s=r||n||a||i,u=s?mf(e.length,String):[],o=u.length;for(var l in e)(t||Sf.call(e,l))&&!(s&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ef(l,o)))&&u.push(l);return u}var Zr=wf,If=Zr,Df=Lr,Cf=ct;function Lf(e){return Cf(e)?If(e):Df(e)}var gt=Lf,Rf=kr,jf=pt,Pf=gt;function Nf(e){return Rf(e,Pf,jf)}var Xr=Nf,Kt=Xr,xf=1,Mf=Object.prototype,Uf=Mf.hasOwnProperty;function Bf(e,t,r,n,a,i){var s=r&xf,u=Kt(e),o=u.length,l=Kt(t),m=l.length;if(o!=m&&!s)return!1;for(var v=o;v--;){var c=u[v];if(!(s?c in t:Uf.call(t,c)))return!1}var h=i.get(e),$=i.get(t);if(h&&$)return h==t&&$==e;var f=!0;i.set(e,t),i.set(t,e);for(var y=s;++v<o;){c=u[v];var O=e[c],w=t[c];if(n)var E=s?n(w,O,c,t,e,i):n(O,w,c,e,t,i);if(!(E===void 0?O===w||a(O,w,r,n,i):E)){f=!1;break}y||(y=c=="constructor")}if(f&&!y){var P=e.constructor,D=t.constructor;P!=D&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof D=="function"&&D instanceof D)&&(f=!1)}return i.delete(e),i.delete(t),f}var Ff=Bf,qe=Wr,Hf=Kr,Yf=Qu,Gf=Ff,qt=$e,zt=ye,kt=ae.exports,Vf=ht,Wf=1,Jt="[object Arguments]",Zt="[object Array]",Ae="[object Object]",Kf=Object.prototype,Xt=Kf.hasOwnProperty;function qf(e,t,r,n,a,i){var s=zt(e),u=zt(t),o=s?Zt:qt(e),l=u?Zt:qt(t);o=o==Jt?Ae:o,l=l==Jt?Ae:l;var m=o==Ae,v=l==Ae,c=o==l;if(c&&kt(e)){if(!kt(t))return!1;s=!0,m=!1}if(c&&!m)return i||(i=new qe),s||Vf(e)?Hf(e,t,r,n,a,i):Yf(e,t,o,r,n,a,i);if(!(r&Wf)){var h=m&&Xt.call(e,"__wrapped__"),$=v&&Xt.call(t,"__wrapped__");if(h||$){var f=h?e.value():e,y=$?t.value():t;return i||(i=new qe),a(f,y,r,n,i)}}return c?(i||(i=new qe),Gf(e,t,r,n,a,i)):!1}var zf=qf,kf=zf,Qt=se;function Qr(e,t,r,n,a){return e===t?!0:e==null||t==null||!Qt(e)&&!Qt(t)?e!==e&&t!==t:kf(e,t,r,n,Qr,a)}var Jf=Qr,Zf=Jf;function Xf(e,t){return Zf(e,t)}var en=Xf;function Qf(e,t=!1,r=void 0,n=60){const[a,i]=F.useState(e&&Bt(e,r,void 0,t));Re(s,n*1e3);function s(){const u=e&&Bt(e,r,void 0,t);en(u,a)||(console.log("menu has changed",u),i(u))}return F.useEffect(s,[a,e]),a}var er;(function(e){e.UNINITIALIZED="UNINITIALIZED",e.PROCESSING="PROCESSING",e.PAID="PAID",e.FAILED="FAILED",e.PRINTING_RECEIPT="PRINTING_RECEIPT",e.PRINTING_RECEIPT_SUCCESS="PRINTING_RECEIPT_SUCCESS",e.SENDING_RECEIPT="SENDING_RECEIPT",e.SENDING_RECEIPT_SUCCESS="SENDING_RECEIPT_SUCCESS",e.ERROR="ERROR"})(er||(er={}));var tr;(function(e){e.CAROUSEL="carousel",e.NORMAL="normal",e.IMAGE="image"})(tr||(tr={}));var it;(function(e){e.GROUP="3e/group",e.PRODUCT="3e/product",e.CATEGORY="3e/group/category",e.OPTIONS="3e/group/options",e.CONFIG="3e/group/config",e.STATIC="3e/static",e.REF="3e/ref",e.QUERY="3e/query"})(it||(it={}));var rr;(function(e){e.GROUP="group",e.PRODUCT="product"})(rr||(rr={}));var nr;(function(e){e.TAKE_AWAY="TAKE_AWAY",e.DELIVERY="DELIVERY",e.DINE_IN="DINE_IN",e.DINE_IN_OPEN="DINE_IN_OPEN",e.GLOVO_DELIVERY="GLOVO_DELIVERY",e.GLOVO_TAKE_AWAY="GLOVO_TAKE_AWAY",e.JUSTEAT_DELIVERY="JUSTEAT_DELIVERY",e.JUSTEAT_TAKE_AWAY="JUSTEAT_TAKE_AWAY",e.UBER_DELIVERY="UBER_DELIVERY",e.UBER_TAKE_AWAY="UBER_TAKE_AWAY",e.UBER_DINE_IN="UBER_DINE_IN",e.BOLT_DELIVERY="BOLT_DELIVERY",e.BOLT_TAKE_AWAY="BOLT_TAKE_AWAY",e.WOLT_DELIVERY="WOLT_DELIVERY",e.WOLT_TAKE_AWAY="WOLT_TAKE_AWAY",e.WOLT_DINE_IN="WOLT_DINE_IN"})(nr||(nr={}));var ar;(function(e){e.NEW="NEW",e.COMPLETED="COMPLETED",e.VERIFIED="VERIFIED",e.DELIVER="DELIVER",e.DELIVERED="DELIVERED",e.CLOSED="CLOSED",e.ABANDONED="ABANDONED",e.CANCELLED="CANCELLED",e.PICKED="PICKED"})(ar||(ar={}));var ir;(function(e){e.CASH="CASH",e.CARD="CARD",e.COD="COD",e.TERMINAL="TERMINAL",e.EPAYMENT="EPAYMENT",e.COUPON="COUPON",e.WALLET="WALLET",e.PREAUTHORIZED="PREAUTHORIZED",e.RETURN="RETURN",e.EXTERNAL="EXTERNAL"})(ir||(ir={}));var sr;(function(e){e.KIOSK="KIOSK",e.WEB="WEB",e.JUST_EAT_TAKE_AWAY="JUSTEATTAKEAWAY",e.GLOVO="GLOVO",e.PYSZNE="PYSZNE",e.WOLT="WOLT",e.UBER="UBER",e.BOLT="BOLT"})(sr||(sr={}));var or;(function(e){e.NEW="NEW",e.TECHNICAL="TECHNICAL",e.CONFIRMED="CONFIRMED",e.PROCESSING="PROCESSING",e.PROCESSED="PROCESSED",e.VOID="VOID",e.WASTE="WASTE"})(or||(or={}));var ur;(function(e){e.GROUP="group",e.PRODUCT="product"})(ur||(ur={}));var fr;(function(e){e.DINE_IN="DINE_IN",e.TAKE_AWAY="TAKE_AWAY",e.DELIVERY="DELIVERY",e.GLOVO_DELIVERY="GLOVO_DELIVERY",e.JUSTEAT_DELIVERY="JUSTEAT_DELIVERY",e.UBER_DELIVERY="UBER_DELIVERY",e.BOLT_DELIVERY="BOLT_DELIVERY",e.WOLT_DELIVERY="WOLT_DELIVERY"})(fr||(fr={}));function ec(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var tc=ec,rc=Q,nc=function(){try{var e=rc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ac=nc,cr=ac;function ic(e,t,r){t=="__proto__"&&cr?cr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var tn=ic,sc=tn,oc=vt,uc=Object.prototype,fc=uc.hasOwnProperty;function cc(e,t,r){var n=e[t];(!(fc.call(e,t)&&oc(n,r))||r===void 0&&!(t in e))&&sc(e,t,r)}var rn=cc,lc=rn,hc=tn;function dc(e,t,r,n){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],o=n?n(r[u],e[u],u,r,e):void 0;o===void 0&&(o=e[u]),a?hc(r,u,o):lc(r,u,o)}return r}var Fe=dc,vc=Fe,pc=gt;function gc(e,t){return e&&vc(t,pc(t),e)}var $c=gc;function yc(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var mc=yc,bc=ge,_c=je,Ac=mc,Ec=Object.prototype,Tc=Ec.hasOwnProperty;function Oc(e){if(!bc(e))return Ac(e);var t=_c(e),r=[];for(var n in e)n=="constructor"&&(t||!Tc.call(e,n))||r.push(n);return r}var Sc=Oc,wc=Zr,Ic=Sc,Dc=ct;function Cc(e){return Dc(e)?wc(e,!0):Ic(e)}var $t=Cc,Lc=Fe,Rc=$t;function jc(e,t){return e&&Lc(t,Rc(t),e)}var Pc=jc,st={exports:{}};(function(e,t){var r=K,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function o(l,m){if(m)return l.slice();var v=l.length,c=u?u(v):new l.constructor(v);return l.copy(c),c}e.exports=o})(st,st.exports);function Nc(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var xc=Nc,Mc=Fe,Uc=pt;function Bc(e,t){return Mc(e,Uc(e),t)}var Fc=Bc,Hc=Cr,Yc=Hc(Object.getPrototypeOf,Object),nn=Yc,Gc=zr,Vc=nn,Wc=pt,Kc=Jr,qc=Object.getOwnPropertySymbols,zc=qc?function(e){for(var t=[];e;)Gc(t,Wc(e)),e=Vc(e);return t}:Kc,an=zc,kc=Fe,Jc=an;function Zc(e,t){return kc(e,Jc(e),t)}var Xc=Zc,Qc=kr,el=an,tl=$t;function rl(e){return Qc(e,tl,el)}var nl=rl,al=Object.prototype,il=al.hasOwnProperty;function sl(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&il.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var ol=sl,lr=qr;function ul(e){var t=new e.constructor(e.byteLength);return new lr(t).set(new lr(e)),t}var yt=ul,fl=yt;function cl(e,t){var r=t?fl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var ll=cl,hl=/\w*$/;function dl(e){var t=new e.constructor(e.source,hl.exec(e));return t.lastIndex=e.lastIndex,t}var vl=dl,hr=Pe,dr=hr?hr.prototype:void 0,vr=dr?dr.valueOf:void 0;function pl(e){return vr?Object(vr.call(e)):{}}var gl=pl,$l=yt;function yl(e,t){var r=t?$l(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ml=yl,bl=yt,_l=ll,Al=vl,El=gl,Tl=ml,Ol="[object Boolean]",Sl="[object Date]",wl="[object Map]",Il="[object Number]",Dl="[object RegExp]",Cl="[object Set]",Ll="[object String]",Rl="[object Symbol]",jl="[object ArrayBuffer]",Pl="[object DataView]",Nl="[object Float32Array]",xl="[object Float64Array]",Ml="[object Int8Array]",Ul="[object Int16Array]",Bl="[object Int32Array]",Fl="[object Uint8Array]",Hl="[object Uint8ClampedArray]",Yl="[object Uint16Array]",Gl="[object Uint32Array]";function Vl(e,t,r){var n=e.constructor;switch(t){case jl:return bl(e);case Ol:case Sl:return new n(+e);case Pl:return _l(e,r);case Nl:case xl:case Ml:case Ul:case Bl:case Fl:case Hl:case Yl:case Gl:return Tl(e,r);case wl:return new n;case Il:case Ll:return new n(e);case Dl:return Al(e);case Cl:return new n;case Rl:return El(e)}}var Wl=Vl,Kl=ge,pr=Object.create,ql=function(){function e(){}return function(t){if(!Kl(t))return{};if(pr)return pr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),zl=ql,kl=zl,Jl=nn,Zl=je;function Xl(e){return typeof e.constructor=="function"&&!Zl(e)?kl(Jl(e)):{}}var Ql=Xl,eh=$e,th=se,rh="[object Map]";function nh(e){return th(e)&&eh(e)==rh}var ah=nh,ih=ah,sh=lt,gr=ve.exports,$r=gr&&gr.isMap,oh=$r?sh($r):ih,uh=oh,fh=$e,ch=se,lh="[object Set]";function hh(e){return ch(e)&&fh(e)==lh}var dh=hh,vh=dh,ph=lt,yr=ve.exports,mr=yr&&yr.isSet,gh=mr?ph(mr):vh,$h=gh,yh=Wr,mh=tc,bh=rn,_h=$c,Ah=Pc,Eh=st.exports,Th=xc,Oh=Fc,Sh=Xc,wh=Xr,Ih=nl,Dh=$e,Ch=ol,Lh=Wl,Rh=Ql,jh=ye,Ph=ae.exports,Nh=uh,xh=ge,Mh=$h,Uh=gt,Bh=$t,Fh=1,Hh=2,Yh=4,sn="[object Arguments]",Gh="[object Array]",Vh="[object Boolean]",Wh="[object Date]",Kh="[object Error]",on="[object Function]",qh="[object GeneratorFunction]",zh="[object Map]",kh="[object Number]",un="[object Object]",Jh="[object RegExp]",Zh="[object Set]",Xh="[object String]",Qh="[object Symbol]",ed="[object WeakMap]",td="[object ArrayBuffer]",rd="[object DataView]",nd="[object Float32Array]",ad="[object Float64Array]",id="[object Int8Array]",sd="[object Int16Array]",od="[object Int32Array]",ud="[object Uint8Array]",fd="[object Uint8ClampedArray]",cd="[object Uint16Array]",ld="[object Uint32Array]",L={};L[sn]=L[Gh]=L[td]=L[rd]=L[Vh]=L[Wh]=L[nd]=L[ad]=L[id]=L[sd]=L[od]=L[zh]=L[kh]=L[un]=L[Jh]=L[Zh]=L[Xh]=L[Qh]=L[ud]=L[fd]=L[cd]=L[ld]=!0;L[Kh]=L[on]=L[ed]=!1;function Oe(e,t,r,n,a,i){var s,u=t&Fh,o=t&Hh,l=t&Yh;if(r&&(s=a?r(e,n,a,i):r(e)),s!==void 0)return s;if(!xh(e))return e;var m=jh(e);if(m){if(s=Ch(e),!u)return Th(e,s)}else{var v=Dh(e),c=v==on||v==qh;if(Ph(e))return Eh(e,u);if(v==un||v==sn||c&&!a){if(s=o||c?{}:Rh(e),!u)return o?Sh(e,Ah(s,e)):Oh(e,_h(s,e))}else{if(!L[v])return a?e:{};s=Lh(e,v,u)}}i||(i=new yh);var h=i.get(e);if(h)return h;i.set(e,s),Mh(e)?e.forEach(function(y){s.add(Oe(y,t,r,y,e,i))}):Nh(e)&&e.forEach(function(y,O){s.set(O,Oe(y,t,r,O,e,i))});var $=l?o?Ih:wh:o?Bh:Uh,f=m?void 0:$(e);return mh(f||e,function(y,O){f&&(O=y,y=e[O]),bh(s,O,Oe(y,t,r,O,e,i))}),s}var hd=Oe,dd=hd,vd=1,pd=4;function gd(e){return dd(e,vd|pd)}var $d=gd;function yd(e,t){if(!t||!t.filter||!e||!e.filter||e.kind!==it.CONFIG)return!0;if(e.filter&&e.items){const r=Object.values(e.filter).flat().filter(n=>{var a,i,s,u;return t.filter[(i=(a=e.items)==null?void 0:a[0])==null?void 0:i.fltCtx]&&Object.values(t.filter[(u=(s=e.items)==null?void 0:s[0])==null?void 0:u.fltCtx]).includes(n)});if(Array.isArray(r)&&r.length===0)return!1}return!0}const Ce=(e,t,r=0)=>{if(!e)return 0;let n=parseFloat(e.price)||0;const{items:a}=e,i=$d(t);return yd(e,i)&&Array.isArray(a)&&a.forEach(s=>{let u=0;if(s.kind!=="3e/product")u=Ce(s,i,r+1);else{const{selected:o={}}=i,{selCtx:l,id:m}=s;l in o&&m in o[l]&&(u=Ce(s,i,r+1)*o[l][m],delete i.selected[l][m])}n+=u}),Math.round(100*n)/100},md=({product:e,state:t,selected:r,cheapestGroupOptionsProduct:n})=>{var o;const a=t?Ce(e,t):0,i=e.state&&!dt((o=e==null?void 0:e.state)==null?void 0:o.selected)?Ce(e,e.state):0,s=e.minPrice&&parseFloat(e.price)===a;let u=r||!!n||parseFloat(e.price)===0?a||i:parseFloat(e.price);return n!==void 0&&(u-=n),s&&e.minPrice&&(u=parseFloat(e.minPrice)),{displayPrice:u,showAsMinPrice:s,calculatedPriceDefaultProductState:i}};function mt(e){const t=[];return e.reduce((r,n)=>{if(r[n.hash]||(r[n.hash]={...n,quantity:0,discounted:0,discounts:[],firstProductQuantity:n.quantity,itemsToRemove:[]},t.push(r[n.hash])),r[n.hash].quantity+=n.quantity,r[n.hash].itemsToRemove.push(n.id),n.discounts){r[n.hash].discounts||(r[n.hash].discounts=[]),r[n.hash].discounts=r[n.hash].discounts.concat(n.discounts),r[n.hash].discounted=0;for(let a=0;a<r[n.hash].discounts.length;a+=1)r[n.hash].discounts[a]&&(r[n.hash].discounted+=parseFloat(r[n.hash].discounts[a].discountPrice))}return r},{}),t}function bd(e){return mt(e)}function _d(e){return!e||e.length===0?null:mt(e.flatMap(t=>t.lines))}var bt={exports:{}},fn=function(t,r){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return t.apply(r,a)}},Ad=fn,ee=Object.prototype.toString;function _t(e){return ee.call(e)==="[object Array]"}function ot(e){return typeof e=="undefined"}function Ed(e){return e!==null&&!ot(e)&&e.constructor!==null&&!ot(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Td(e){return ee.call(e)==="[object ArrayBuffer]"}function Od(e){return typeof FormData!="undefined"&&e instanceof FormData}function Sd(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function wd(e){return typeof e=="string"}function Id(e){return typeof e=="number"}function cn(e){return e!==null&&typeof e=="object"}function Se(e){if(ee.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Dd(e){return ee.call(e)==="[object Date]"}function Cd(e){return ee.call(e)==="[object File]"}function Ld(e){return ee.call(e)==="[object Blob]"}function ln(e){return ee.call(e)==="[object Function]"}function Rd(e){return cn(e)&&ln(e.pipe)}function jd(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Pd(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Nd(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function At(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),_t(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function ut(){var e={};function t(a,i){Se(e[i])&&Se(a)?e[i]=ut(e[i],a):Se(a)?e[i]=ut({},a):_t(a)?e[i]=a.slice():e[i]=a}for(var r=0,n=arguments.length;r<n;r++)At(arguments[r],t);return e}function xd(e,t,r){return At(t,function(a,i){r&&typeof a=="function"?e[i]=Ad(a,r):e[i]=a}),e}function Md(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var G={isArray:_t,isArrayBuffer:Td,isBuffer:Ed,isFormData:Od,isArrayBufferView:Sd,isString:wd,isNumber:Id,isObject:cn,isPlainObject:Se,isUndefined:ot,isDate:Dd,isFile:Cd,isBlob:Ld,isFunction:ln,isStream:Rd,isURLSearchParams:jd,isStandardBrowserEnv:Nd,forEach:At,merge:ut,extend:xd,trim:Pd,stripBOM:Md},re=G;function br(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var hn=function(t,r,n){if(!r)return t;var a;if(n)a=n(r);else if(re.isURLSearchParams(r))a=r.toString();else{var i=[];re.forEach(r,function(o,l){o===null||typeof o=="undefined"||(re.isArray(o)?l=l+"[]":o=[o],re.forEach(o,function(v){re.isDate(v)?v=v.toISOString():re.isObject(v)&&(v=JSON.stringify(v)),i.push(br(l)+"="+br(v))}))}),a=i.join("&")}if(a){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t},Ud=G;function He(){this.handlers=[]}He.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};He.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};He.prototype.forEach=function(t){Ud.forEach(this.handlers,function(n){n!==null&&t(n)})};var Bd=He,Fd=G,Hd=function(t,r){Fd.forEach(t,function(a,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=a,delete t[i])})},dn=function(t,r,n,a,i){return t.config=r,n&&(t.code=n),t.request=a,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},Yd=dn,vn=function(t,r,n,a,i){var s=new Error(t);return Yd(s,r,n,a,i)},Gd=vn,Vd=function(t,r,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?t(n):r(Gd("Request failed with status code "+n.status,n.config,null,n.request,n))},Ee=G,Wd=Ee.isStandardBrowserEnv()?function(){return{write:function(r,n,a,i,s,u){var o=[];o.push(r+"="+encodeURIComponent(n)),Ee.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),Ee.isString(i)&&o.push("path="+i),Ee.isString(s)&&o.push("domain="+s),u===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Kd=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)},qd=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t},zd=Kd,kd=qd,Jd=function(t,r){return t&&!zd(r)?kd(t,r):r},ze=G,Zd=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Xd=function(t){var r={},n,a,i;return t&&ze.forEach(t.split(`
|
|
2
|
-
`),function(u){if(i=u.indexOf(":"),n=ze.trim(u.substr(0,i)).toLowerCase(),a=ze.trim(u.substr(i+1)),n){if(r[n]&&Zd.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([a]):r[n]=r[n]?r[n]+", "+a:a}}),r},_r=G,Qd=_r.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function a(i){var s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(s){var u=_r.isString(s)?a(s):s;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}(),Te=G,ev=Vd,tv=Wd,rv=hn,nv=Jd,av=Xd,iv=Qd,ke=vn,Ar=function(t){return new Promise(function(n,a){var i=t.data,s=t.headers,u=t.responseType;Te.isFormData(i)&&delete s["Content-Type"];var o=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(l+":"+m)}var v=nv(t.baseURL,t.url);o.open(t.method.toUpperCase(),rv(v,t.params,t.paramsSerializer),!0),o.timeout=t.timeout;function c(){if(!!o){var $="getAllResponseHeaders"in o?av(o.getAllResponseHeaders()):null,f=!u||u==="text"||u==="json"?o.responseText:o.response,y={data:f,status:o.status,statusText:o.statusText,headers:$,config:t,request:o};ev(n,a,y),o=null}}if("onloadend"in o?o.onloadend=c:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(c)},o.onabort=function(){!o||(a(ke("Request aborted",t,"ECONNABORTED",o)),o=null)},o.onerror=function(){a(ke("Network Error",t,null,o)),o=null},o.ontimeout=function(){var f="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(f=t.timeoutErrorMessage),a(ke(f,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",o)),o=null},Te.isStandardBrowserEnv()){var h=(t.withCredentials||iv(v))&&t.xsrfCookieName?tv.read(t.xsrfCookieName):void 0;h&&(s[t.xsrfHeaderName]=h)}"setRequestHeader"in o&&Te.forEach(s,function(f,y){typeof i=="undefined"&&y.toLowerCase()==="content-type"?delete s[y]:o.setRequestHeader(y,f)}),Te.isUndefined(t.withCredentials)||(o.withCredentials=!!t.withCredentials),u&&u!=="json"&&(o.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&o.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(f){!o||(o.abort(),a(f),o=null)}),i||(i=null),o.send(i)})},x=G,Er=Hd,sv=dn,ov={"Content-Type":"application/x-www-form-urlencoded"};function Tr(e,t){!x.isUndefined(e)&&x.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function uv(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ar),e}function fv(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Ye={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:uv(),transformRequest:[function(t,r){return Er(r,"Accept"),Er(r,"Content-Type"),x.isFormData(t)||x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)?t:x.isArrayBufferView(t)?t.buffer:x.isURLSearchParams(t)?(Tr(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):x.isObject(t)||r&&r["Content-Type"]==="application/json"?(Tr(r,"application/json"),fv(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&x.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?sv(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Ye.headers={common:{Accept:"application/json, text/plain, */*"}};x.forEach(["delete","get","head"],function(t){Ye.headers[t]={}});x.forEach(["post","put","patch"],function(t){Ye.headers[t]=x.merge(ov)});var Et=Ye,cv=G,lv=Et,hv=function(t,r,n){var a=this||lv;return cv.forEach(n,function(s){t=s.call(a,t,r)}),t},pn=function(t){return!!(t&&t.__CANCEL__)},Or=G,Je=hv,dv=pn,vv=Et;function Ze(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var pv=function(t){Ze(t),t.headers=t.headers||{},t.data=Je.call(t,t.data,t.headers,t.transformRequest),t.headers=Or.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Or.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||vv.adapter;return r(t).then(function(a){return Ze(t),a.data=Je.call(t,a.data,a.headers,t.transformResponse),a},function(a){return dv(a)||(Ze(t),a&&a.response&&(a.response.data=Je.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},U=G,gn=function(t,r){r=r||{};var n={},a=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function o(c,h){return U.isPlainObject(c)&&U.isPlainObject(h)?U.merge(c,h):U.isPlainObject(h)?U.merge({},h):U.isArray(h)?h.slice():h}function l(c){U.isUndefined(r[c])?U.isUndefined(t[c])||(n[c]=o(void 0,t[c])):n[c]=o(t[c],r[c])}U.forEach(a,function(h){U.isUndefined(r[h])||(n[h]=o(void 0,r[h]))}),U.forEach(i,l),U.forEach(s,function(h){U.isUndefined(r[h])?U.isUndefined(t[h])||(n[h]=o(void 0,t[h])):n[h]=o(void 0,r[h])}),U.forEach(u,function(h){h in r?n[h]=o(t[h],r[h]):h in t&&(n[h]=o(void 0,t[h]))});var m=a.concat(i).concat(s).concat(u),v=Object.keys(t).concat(Object.keys(r)).filter(function(h){return m.indexOf(h)===-1});return U.forEach(v,l),n};const gv="axios",$v="0.21.4",yv="Promise based HTTP client for the browser and node.js",mv="index.js",bv={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},_v={type:"git",url:"https://github.com/axios/axios.git"},Av=["xhr","http","ajax","promise","node"],Ev="Matt Zabriskie",Tv="MIT",Ov={url:"https://github.com/axios/axios/issues"},Sv="https://axios-http.com",wv={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},Iv={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Dv="dist/axios.min.js",Cv="dist/axios.min.js",Lv="./index.d.ts",Rv={"follow-redirects":"^1.14.0"},jv=[{path:"./dist/axios.min.js",threshold:"5kB"}];var Pv={name:gv,version:$v,description:yv,main:mv,scripts:bv,repository:_v,keywords:Av,author:Ev,license:Tv,bugs:Ov,homepage:Sv,devDependencies:wv,browser:Iv,jsdelivr:Dv,unpkg:Cv,typings:Lv,dependencies:Rv,bundlesize:jv},$n=Pv,Tt={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Tt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Sr={},Nv=$n.version.split(".");function yn(e,t){for(var r=t?t.split("."):Nv,n=e.split("."),a=0;a<3;a++){if(r[a]>n[a])return!0;if(r[a]<n[a])return!1}return!1}Tt.transitional=function(t,r,n){var a=r&&yn(r);function i(s,u){return"[Axios v"+$n.version+"] Transitional option '"+s+"'"+u+(n?". "+n:"")}return function(s,u,o){if(t===!1)throw new Error(i(u," has been removed in "+r));return a&&!Sr[u]&&(Sr[u]=!0,console.warn(i(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,u,o):!0}};function xv(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),a=n.length;a-- >0;){var i=n[a],s=t[i];if(s){var u=e[i],o=u===void 0||s(u,i,e);if(o!==!0)throw new TypeError("option "+i+" must be "+o);continue}if(r!==!0)throw Error("Unknown option "+i)}}var Mv={isOlderVersion:yn,assertOptions:xv,validators:Tt},mn=G,Uv=hn,wr=Bd,Ir=pv,Ge=gn,bn=Mv,ne=bn.validators;function me(e){this.defaults=e,this.interceptors={request:new wr,response:new wr}}me.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Ge(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&bn.assertOptions(r,{silentJSONParsing:ne.transitional(ne.boolean,"1.0.0"),forcedJSONParsing:ne.transitional(ne.boolean,"1.0.0"),clarifyTimeoutError:ne.transitional(ne.boolean,"1.0.0")},!1);var n=[],a=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(t)===!1||(a=a&&c.synchronous,n.unshift(c.fulfilled,c.rejected))});var i=[];this.interceptors.response.forEach(function(c){i.push(c.fulfilled,c.rejected)});var s;if(!a){var u=[Ir,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),s=Promise.resolve(t);u.length;)s=s.then(u.shift(),u.shift());return s}for(var o=t;n.length;){var l=n.shift(),m=n.shift();try{o=l(o)}catch(v){m(v);break}}try{s=Ir(o)}catch(v){return Promise.reject(v)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};me.prototype.getUri=function(t){return t=Ge(this.defaults,t),Uv(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};mn.forEach(["delete","get","head","options"],function(t){me.prototype[t]=function(r,n){return this.request(Ge(n||{},{method:t,url:r,data:(n||{}).data}))}});mn.forEach(["post","put","patch"],function(t){me.prototype[t]=function(r,n,a){return this.request(Ge(a||{},{method:t,url:r,data:n}))}});var Bv=me;function Ot(e){this.message=e}Ot.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ot.prototype.__CANCEL__=!0;var _n=Ot,Fv=_n;function Le(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(a){t=a});var r=this;e(function(a){r.reason||(r.reason=new Fv(a),t(r.reason))})}Le.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Le.source=function(){var t,r=new Le(function(a){t=a});return{token:r,cancel:t}};var Hv=Le,Yv=function(t){return function(n){return t.apply(null,n)}},Gv=function(t){return typeof t=="object"&&t.isAxiosError===!0},Dr=G,Vv=fn,we=Bv,Wv=gn,Kv=Et;function An(e){var t=new we(e),r=Vv(we.prototype.request,t);return Dr.extend(r,we.prototype,t),Dr.extend(r,t),r}var W=An(Kv);W.Axios=we;W.create=function(t){return An(Wv(W.defaults,t))};W.Cancel=_n;W.CancelToken=Hv;W.isCancel=pn;W.all=function(t){return Promise.all(t)};W.spread=Yv;W.isAxiosError=Gv;bt.exports=W;bt.exports.default=W;var qv=bt.exports;function En(e,t=600,r=!0,n,a){var O,w;if(!n||!a)throw new Error("baseUrl or tenant was not provided");const i=`${e}_${a}_${n}`,s=`${n.endsWith("/")?n.slice(0,-1):n}/cms-api/content/${a}/${e}`,u=((O=y())==null?void 0:O.value)||null,[o,l]=F.useState(((w=y())==null?void 0:w.timestamp)||0),[m,v]=F.useState(u||null),[c,h]=F.useState(!1);function $(){qv.get(s).then(E=>{if(dt(E.data))throw new Error(`CMS data '${e}' is an empty object`);en(E.data,m)||v(E.data),c&&h(!1),r&&f(E.data)}).catch(E=>{console.error(E),h(!0)})}function f(E){const P=new Date().valueOf(),D=JSON.stringify({value:E,timestamp:P});localStorage.setItem(i,D),l(P)}function y(){try{const E=localStorage.getItem(i);if(E)return JSON.parse(E)}catch(E){console.warn(E)}return null}return F.useEffect(()=>{new Date().valueOf()-o>t*1e3&&$()},[]),Re($,t*1e3),{value:m,isError:c,isLoading:!c&&!m}}function Tn(e,t=600,r=!0,n,a,i){var u,o,l,m;if(!n||!a||!i)throw new Error("baseUrl, tenant or venue was not provided");const s=En(e,t,r,n,a);return{value:((o=(u=s.value)==null?void 0:u.find)==null?void 0:o.call(u,v=>v.venue===i))||((m=(l=s.value)==null?void 0:l.find)==null?void 0:m.call(l,v=>v.venue==="*"))||null,isError:s.isError}}function zv(e,t,r,n=300,a=!0){var m,v,c,h;const i=F.useContext(On.ConfigContext);if(!i)throw new Error("Missing config context");const{value:s,isError:u}=Tn(e,n,a,i.baseUrl,i.tenant,t);let o=null,l=null;return s&&((m=s==null?void 0:s.url)==null?void 0:m.length)>0&&(o=((v=s.url.find($=>$.locale===r))==null?void 0:v.value)||((c=s.url.find($=>$.locale==="*"))==null?void 0:c.value)||null),!o&&s&&((h=s==null?void 0:s.url)==null?void 0:h.length)>0&&(l=s.url[0].value),{url:o,fallbackUrl:l,isError:u}}function kv(e,t){F.useEffect(()=>{const r=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}function Jv(e){const[t,r]=F.useState(_e(e==null?void 0:e.DINE_IN)),[n,a]=F.useState(_e(e==null?void 0:e.TAKE_AWAY));function i(){const s=_e(e==null?void 0:e.DINE_IN),u=_e(e==null?void 0:e.TAKE_AWAY);s!==t&&(console.log("dine in open changed",t,"=>",s),r(s)),u!==n&&(console.log("take away open changed",n,"=>",u),a(u))}return F.useEffect(()=>{i()},[e]),Re(i,6e4),{dineInOpen:t,takeAwayOpen:n}}exports.getGroupedBucketLines=_d;exports.groupOrderLines=mt;exports.useAvailability=Qf;exports.useCms=En;exports.useDisplayPrice=md;exports.useGroupOrderLines=bd;exports.useInterval=Re;exports.useKioskChannelsAvailability=Jv;exports.useLocalizedVenueMedia=zv;exports.useOnClickOutside=kv;exports.useVenueCms=Tn;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Y=require("react"),jn=require("@orderingstack/ordering-core-react");function Le(e,r){const t=Y.useRef(),[n,a]=Y.useState(null);return Y.useEffect(()=>{t.current=e},[e]),Y.useEffect(()=>{function i(){var s;(s=t.current)==null||s.call(t)}if(r!==null){const s=setInterval(i,r);return a(s),()=>{a(null),clearInterval(s)}}},[r]),()=>{n&&clearInterval(n)}}var X=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Ln=Object.prototype;function Rn(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Ln;return e===t}var Re=Rn;function Nn(e,r){return function(t){return e(r(t))}}var xt=Nn,xn=xt,Pn=xn(Object.keys,Object),Un=Pn,Mn=Re,Fn=Un,Bn=Object.prototype,Hn=Bn.hasOwnProperty;function Yn(e){if(!Mn(e))return Fn(e);var r=[];for(var t in Object(e))Hn.call(e,t)&&t!="constructor"&&r.push(t);return r}var Pt=Yn,Gn=typeof X=="object"&&X&&X.Object===Object&&X,Ut=Gn,qn=Ut,Wn=typeof self=="object"&&self&&self.Object===Object&&self,Kn=qn||Wn||Function("return this")(),K=Kn,Vn=K,kn=Vn.Symbol,Ne=kn,Dr=Ne,Mt=Object.prototype,Jn=Mt.hasOwnProperty,zn=Mt.toString,he=Dr?Dr.toStringTag:void 0;function Zn(e){var r=Jn.call(e,he),t=e[he];try{e[he]=void 0;var n=!0}catch{}var a=zn.call(e);return n&&(r?e[he]=t:delete e[he]),a}var Xn=Zn,Qn=Object.prototype,ea=Qn.toString;function ra(e){return ea.call(e)}var ta=ra,jr=Ne,na=Xn,aa=ta,ia="[object Null]",sa="[object Undefined]",Lr=jr?jr.toStringTag:void 0;function oa(e){return e==null?e===void 0?sa:ia:Lr&&Lr in Object(e)?na(e):aa(e)}var xe=oa;function ua(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var ge=ua,fa=xe,ca=ge,la="[object AsyncFunction]",da="[object Function]",ha="[object GeneratorFunction]",pa="[object Proxy]";function va(e){if(!ca(e))return!1;var r=fa(e);return r==da||r==ha||r==la||r==pa}var Ft=va,ga=K,$a=ga["__core-js_shared__"],ya=$a,We=ya,Rr=function(){var e=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ma(e){return!!Rr&&Rr in e}var ba=ma,_a=Function.prototype,Aa=_a.toString;function Ea(e){if(e!=null){try{return Aa.call(e)}catch{}try{return e+""}catch{}}return""}var Bt=Ea,Ta=Ft,Oa=ba,Sa=ge,wa=Bt,Ia=/[\\^$.*+?()[\]{}|]/g,Ca=/^\[object .+?Constructor\]$/,Da=Function.prototype,ja=Object.prototype,La=Da.toString,Ra=ja.hasOwnProperty,Na=RegExp("^"+La.call(Ra).replace(Ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xa(e){if(!Sa(e)||Oa(e))return!1;var r=Ta(e)?Na:Ca;return r.test(wa(e))}var Pa=xa;function Ua(e,r){return e==null?void 0:e[r]}var Ma=Ua,Fa=Pa,Ba=Ma;function Ha(e,r){var t=Ba(e,r);return Fa(t)?t:void 0}var Q=Ha,Ya=Q,Ga=K,qa=Ya(Ga,"DataView"),Wa=qa,Ka=Q,Va=K,ka=Ka(Va,"Map"),lr=ka,Ja=Q,za=K,Za=Ja(za,"Promise"),Xa=Za,Qa=Q,ei=K,ri=Qa(ei,"Set"),ti=ri,ni=Q,ai=K,ii=ni(ai,"WeakMap"),si=ii,Xe=Wa,Qe=lr,er=Xa,rr=ti,tr=si,Ht=xe,ie=Bt,Nr="[object Map]",oi="[object Object]",xr="[object Promise]",Pr="[object Set]",Ur="[object WeakMap]",Mr="[object DataView]",ui=ie(Xe),fi=ie(Qe),ci=ie(er),li=ie(rr),di=ie(tr),Z=Ht;(Xe&&Z(new Xe(new ArrayBuffer(1)))!=Mr||Qe&&Z(new Qe)!=Nr||er&&Z(er.resolve())!=xr||rr&&Z(new rr)!=Pr||tr&&Z(new tr)!=Ur)&&(Z=function(e){var r=Ht(e),t=r==oi?e.constructor:void 0,n=t?ie(t):"";if(n)switch(n){case ui:return Mr;case fi:return Nr;case ci:return xr;case li:return Pr;case di:return Ur}return r});var $e=Z;function hi(e){return e!=null&&typeof e=="object"}var se=hi,pi=xe,vi=se,gi="[object Arguments]";function $i(e){return vi(e)&&pi(e)==gi}var yi=$i,Fr=yi,mi=se,Yt=Object.prototype,bi=Yt.hasOwnProperty,_i=Yt.propertyIsEnumerable,Ai=Fr(function(){return arguments}())?Fr:function(e){return mi(e)&&bi.call(e,"callee")&&!_i.call(e,"callee")},Gt=Ai,Ei=Array.isArray,ye=Ei,Ti=9007199254740991;function Oi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ti}var qt=Oi,Si=Ft,wi=qt;function Ii(e){return e!=null&&wi(e.length)&&!Si(e)}var dr=Ii,ae={exports:{}};function Ci(){return!1}var Di=Ci;(function(e,r){var t=K,n=Di,a=r&&!r.nodeType&&r,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,f=s?t.Buffer:void 0,o=f?f.isBuffer:void 0,v=o||n;e.exports=v})(ae,ae.exports);var ji=xe,Li=qt,Ri=se,Ni="[object Arguments]",xi="[object Array]",Pi="[object Boolean]",Ui="[object Date]",Mi="[object Error]",Fi="[object Function]",Bi="[object Map]",Hi="[object Number]",Yi="[object Object]",Gi="[object RegExp]",qi="[object Set]",Wi="[object String]",Ki="[object WeakMap]",Vi="[object ArrayBuffer]",ki="[object DataView]",Ji="[object Float32Array]",zi="[object Float64Array]",Zi="[object Int8Array]",Xi="[object Int16Array]",Qi="[object Int32Array]",es="[object Uint8Array]",rs="[object Uint8ClampedArray]",ts="[object Uint16Array]",ns="[object Uint32Array]",P={};P[Ji]=P[zi]=P[Zi]=P[Xi]=P[Qi]=P[es]=P[rs]=P[ts]=P[ns]=!0;P[Ni]=P[xi]=P[Vi]=P[Pi]=P[ki]=P[Ui]=P[Mi]=P[Fi]=P[Bi]=P[Hi]=P[Yi]=P[Gi]=P[qi]=P[Wi]=P[Ki]=!1;function as(e){return Ri(e)&&Li(e.length)&&!!P[ji(e)]}var is=as;function ss(e){return function(r){return e(r)}}var hr=ss,pe={exports:{}};(function(e,r){var t=Ut,n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i&&t.process,f=function(){try{var o=a&&a.require&&a.require("util").types;return o||s&&s.binding&&s.binding("util")}catch{}}();e.exports=f})(pe,pe.exports);var os=is,us=hr,Br=pe.exports,Hr=Br&&Br.isTypedArray,fs=Hr?us(Hr):os,pr=fs,cs=Pt,ls=$e,ds=Gt,hs=ye,ps=dr,vs=ae.exports,gs=Re,$s=pr,ys="[object Map]",ms="[object Set]",bs=Object.prototype,_s=bs.hasOwnProperty;function As(e){if(e==null)return!0;if(ps(e)&&(hs(e)||typeof e=="string"||typeof e.splice=="function"||vs(e)||$s(e)||ds(e)))return!e.length;var r=ls(e);if(r==ys||r==ms)return!e.size;if(gs(e))return!cs(e).length;for(var t in e)if(_s.call(e,t))return!1;return!0}var vr=As,Wt={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(X,function(){var t="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,s,f){var o=s.prototype;f.utc=function(p){var T={date:p,utc:!0,args:arguments};return new s(T)},o.utc=function(p){var T=f(this.toDate(),{locale:this.$L,utc:!0});return p?T.add(this.utcOffset(),t):T},o.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var v=o.parse;o.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),v.call(this,p)};var m=o.init;o.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else m.call(this)};var $=o.utcOffset;o.utcOffset=function(p,T){var j=this.$utils().u;if(j(p))return this.$u?0:j(this.$offset)?$.call(this):this.$offset;if(typeof p=="string"&&(p=function(l){l===void 0&&(l="");var y=l.match(n);if(!y)return null;var w=(""+y[0]).match(a)||["-",0,0],O=w[0],I=60*+w[1]+ +w[2];return I===0?0:O==="+"?I:-I}(p),p===null))return this;var u=Math.abs(p)<=16?60*p:p,c=this;if(T)return c.$offset=u,c.$u=p===0,c;if(p!==0){var d=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(c=this.local().add(u+d,t)).$offset=u,c.$x.$localOffset=d}else c=this.utc();return c};var h=o.format;o.format=function(p){var T=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,T)},o.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var g=o.toDate;o.toDate=function(p){return p==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var A=o.diff;o.diff=function(p,T,j){if(p&&this.$u===p.$u)return A.call(this,p,T,j);var u=this.local(),c=f(p).local();return A.call(u,c,T,j)}}})})(Wt);var Es=Wt.exports,Kt={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(X,function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(a,i,s){var f,o=function(h,g,A){A===void 0&&(A={});var p=new Date(h),T=function(j,u){u===void 0&&(u={});var c=u.timeZoneName||"short",d=j+"|"+c,l=n[d];return l||(l=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:j,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:c}),n[d]=l),l}(g,A);return T.formatToParts(p)},v=function(h,g){for(var A=o(h,g),p=[],T=0;T<A.length;T+=1){var j=A[T],u=j.type,c=j.value,d=t[u];d>=0&&(p[d]=parseInt(c,10))}var l=p[3],y=l===24?0:l,w=p[0]+"-"+p[1]+"-"+p[2]+" "+y+":"+p[4]+":"+p[5]+":000",O=+h;return(s.utc(w).valueOf()-(O-=O%1e3))/6e4},m=i.prototype;m.tz=function(h,g){h===void 0&&(h=f);var A=this.utcOffset(),p=this.toDate(),T=p.toLocaleString("en-US",{timeZone:h}),j=Math.round((p-new Date(T))/1e3/60),u=s(T).$set("millisecond",this.$ms).utcOffset(15*-Math.round(p.getTimezoneOffset()/15)-j,!0);if(g){var c=u.utcOffset();u=u.add(A-c,"minute")}return u.$x.$timezone=h,u},m.offsetName=function(h){var g=this.$x.$timezone||s.tz.guess(),A=o(this.valueOf(),g,{timeZoneName:h}).find(function(p){return p.type.toLowerCase()==="timezonename"});return A&&A.value};var $=m.startOf;m.startOf=function(h,g){if(!this.$x||!this.$x.$timezone)return $.call(this,h,g);var A=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return $.call(A,h,g).tz(this.$x.$timezone,!0)},s.tz=function(h,g,A){var p=A&&g,T=A||g||f,j=v(+s(),T);if(typeof h!="string")return s(h).tz(T);var u=function(y,w,O){var I=y-60*w*1e3,R=v(I,O);if(w===R)return[I,w];var k=v(I-=60*(R-w)*1e3,O);return R===k?[I,R]:[y-60*Math.min(R,k)*1e3,Math.max(R,k)]}(s.utc(h,p).valueOf(),j,T),c=u[0],d=u[1],l=s(c).utcOffset(d);return l.$x.$timezone=T,l},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(h){f=h}}})})(Kt);var Ts=Kt.exports,Vt={exports:{}};(function(e,r){(function(t,n){e.exports=n()})(X,function(){var t=1e3,n=6e4,a=36e5,i="millisecond",s="second",f="minute",o="hour",v="day",m="week",$="month",h="quarter",g="year",A="date",p="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},c=function(L,E,b){var S=String(L);return!S||S.length>=E?L:""+Array(E+1-S.length).join(b)+L},d={s:c,z:function(L){var E=-L.utcOffset(),b=Math.abs(E),S=Math.floor(b/60),_=b%60;return(E<=0?"+":"-")+c(S,2,"0")+":"+c(_,2,"0")},m:function L(E,b){if(E.date()<b.date())return-L(b,E);var S=12*(b.year()-E.year())+(b.month()-E.month()),_=E.clone().add(S,$),D=b-_<0,C=E.clone().add(S+(D?-1:1),$);return+(-(S+(b-_)/(D?_-C:C-_))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:$,y:g,w:m,d:v,D:A,h:o,m:f,s,ms:i,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},l="en",y={};y[l]=u;var w=function(L){return L instanceof k},O=function L(E,b,S){var _;if(!E)return l;if(typeof E=="string"){var D=E.toLowerCase();y[D]&&(_=D),b&&(y[D]=b,_=D);var C=E.split("-");if(!_&&C.length>1)return L(C[0])}else{var N=E.name;y[N]=E,_=N}return!S&&_&&(l=_),_||!S&&l},I=function(L,E){if(w(L))return L.clone();var b=typeof E=="object"?E:{};return b.date=L,b.args=arguments,new k(b)},R=d;R.l=O,R.i=w,R.w=function(L,E){return I(L,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var k=function(){function L(b){this.$L=O(b.locale,null,!0),this.parse(b)}var E=L.prototype;return E.parse=function(b){this.$d=function(S){var _=S.date,D=S.utc;if(_===null)return new Date(NaN);if(R.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var C=_.match(T);if(C){var N=C[2]-1||0,M=(C[7]||"0").substring(0,3);return D?new Date(Date.UTC(C[1],N,C[3]||1,C[4]||0,C[5]||0,C[6]||0,M)):new Date(C[1],N,C[3]||1,C[4]||0,C[5]||0,C[6]||0,M)}}return new Date(_)}(b),this.$x=b.x||{},this.init()},E.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},E.$utils=function(){return R},E.isValid=function(){return this.$d.toString()!==p},E.isSame=function(b,S){var _=I(b);return this.startOf(S)<=_&&_<=this.endOf(S)},E.isAfter=function(b,S){return I(b)<this.startOf(S)},E.isBefore=function(b,S){return this.endOf(S)<I(b)},E.$g=function(b,S,_){return R.u(b)?this[S]:this.set(_,b)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(b,S){var _=this,D=!!R.u(S)||S,C=R.p(b),N=function(re,G){var z=R.w(_.$u?Date.UTC(_.$y,G,re):new Date(_.$y,G,re),_);return D?z:z.endOf(v)},M=function(re,G){return R.w(_.toDate()[re].apply(_.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(G)),_)},U=this.$W,B=this.$M,J=this.$D,V="set"+(this.$u?"UTC":"");switch(C){case g:return D?N(1,0):N(31,11);case $:return D?N(1,B):N(0,B+1);case m:var le=this.$locale().weekStart||0,de=(U<le?U+7:U)-le;return N(D?J-de:J+(6-de),B);case v:case A:return M(V+"Hours",0);case o:return M(V+"Minutes",1);case f:return M(V+"Seconds",2);case s:return M(V+"Milliseconds",3);default:return this.clone()}},E.endOf=function(b){return this.startOf(b,!1)},E.$set=function(b,S){var _,D=R.p(b),C="set"+(this.$u?"UTC":""),N=(_={},_[v]=C+"Date",_[A]=C+"Date",_[$]=C+"Month",_[g]=C+"FullYear",_[o]=C+"Hours",_[f]=C+"Minutes",_[s]=C+"Seconds",_[i]=C+"Milliseconds",_)[D],M=D===v?this.$D+(S-this.$W):S;if(D===$||D===g){var U=this.clone().set(A,1);U.$d[N](M),U.init(),this.$d=U.set(A,Math.min(this.$D,U.daysInMonth())).$d}else N&&this.$d[N](M);return this.init(),this},E.set=function(b,S){return this.clone().$set(b,S)},E.get=function(b){return this[R.p(b)]()},E.add=function(b,S){var _,D=this;b=Number(b);var C=R.p(S),N=function(B){var J=I(D);return R.w(J.date(J.date()+Math.round(B*b)),D)};if(C===$)return this.set($,this.$M+b);if(C===g)return this.set(g,this.$y+b);if(C===v)return N(1);if(C===m)return N(7);var M=(_={},_[f]=n,_[o]=a,_[s]=t,_)[C]||1,U=this.$d.getTime()+b*M;return R.w(U,this)},E.subtract=function(b,S){return this.add(-1*b,S)},E.format=function(b){var S=this,_=this.$locale();if(!this.isValid())return _.invalidDate||p;var D=b||"YYYY-MM-DDTHH:mm:ssZ",C=R.z(this),N=this.$H,M=this.$m,U=this.$M,B=_.weekdays,J=_.months,V=function(G,z,qe,be){return G&&(G[z]||G(S,D))||qe[z].slice(0,be)},le=function(G){return R.s(N%12||12,G,"0")},de=_.meridiem||function(G,z,qe){var be=G<12?"AM":"PM";return qe?be.toLowerCase():be},re={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:R.s(U+1,2,"0"),MMM:V(_.monthsShort,U,J,3),MMMM:V(J,U),D:this.$D,DD:R.s(this.$D,2,"0"),d:String(this.$W),dd:V(_.weekdaysMin,this.$W,B,2),ddd:V(_.weekdaysShort,this.$W,B,3),dddd:B[this.$W],H:String(N),HH:R.s(N,2,"0"),h:le(1),hh:le(2),a:de(N,M,!0),A:de(N,M,!1),m:String(M),mm:R.s(M,2,"0"),s:String(this.$s),ss:R.s(this.$s,2,"0"),SSS:R.s(this.$ms,3,"0"),Z:C};return D.replace(j,function(G,z){return z||re[G]||C.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(b,S,_){var D,C=R.p(S),N=I(b),M=(N.utcOffset()-this.utcOffset())*n,U=this-N,B=R.m(this,N);return B=(D={},D[g]=B/12,D[$]=B,D[h]=B/3,D[m]=(U-M)/6048e5,D[v]=(U-M)/864e5,D[o]=U/a,D[f]=U/n,D[s]=U/t,D)[C]||U,_?B:R.a(B)},E.daysInMonth=function(){return this.endOf($).$D},E.$locale=function(){return y[this.$L]},E.locale=function(b,S){if(!b)return this.$L;var _=this.clone(),D=O(b,S,!0);return D&&(_.$L=D),_},E.clone=function(){return R.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},L}(),Cr=k.prototype;return I.prototype=Cr,[["$ms",i],["$s",s],["$m",f],["$H",o],["$W",v],["$M",$],["$y",g],["$D",A]].forEach(function(L){Cr[L[1]]=function(E){return this.$g(E,L[0],L[1])}}),I.extend=function(L,E){return L.$i||(L(E,k,I),L.$i=!0),I},I.locale=O,I.isDayjs=w,I.unix=function(L){return I(1e3*L)},I.en=y[l],I.Ls=y,I.p={},I})})(Vt);var ve=Vt.exports;ve.extend(Es);ve.extend(Ts);const kt=["SUN","MON","TUE","WED","THU","FRI","SAT"],Ie=e=>{const[r,t]=e.split(":");return{hour:parseInt(r||"0",10),minutes:parseInt(t||"0",10)}};function nr(e,r,t){const{availability:n}=e;if(!n)return!0;if(vr(n))return!1;const a=t?ve(t).tz(r):ve().tz(r),i=a.day(),s=n[kt[i]];if(!Array.isArray(s)||s.length!==2)return!1;const f=a.hour(),o=a.minute(),v=Ie(s[0]),m=Ie(s[1]);return f<v.hour||f===v.hour&&o<v.minutes?!1:!(f>m.hour||f===m.hour&&o>m.minutes)}const ar=(e,r=void 0,t=void 0,n=!1)=>n?e.map(i=>{let s;return Array.isArray(i.items)&&(s=ar(i.items,r,t,n)),{...i,items:s,outsideAvailabilitySlot:!nr(i,r,t)||(s==null?void 0:s.every(f=>f.outsideAvailabilitySlot))||!1}}):e.filter(i=>nr(i,r,t)).map(i=>Array.isArray(i.items)?{...i,items:ar(i.items,r,t)}:i),Yr=(e,r=void 0,t=void 0,n=!1)=>{let a=[];return e.forEach(i=>{if(!Array.isArray(i.items)){a.push(i);return}const s=ar(i.items,r,t,n);s.length>0&&a.push({...i,items:s})}),n&&(a=a.map(i=>!i.items||!Array.isArray(i.items)?i:{...i,outsideAvailabilitySlot:!nr(i,r,t)||i.items.every(s=>s.outsideAvailabilitySlot)})),a};function _e(e){const r=e==null?void 0:e.week;if(!e||!e.active||!r)return!1;const t=ve(),n=t.day(),a=r[kt[n]];return a?a.some(i=>Os(t,i)):!1}function Os(e,r){const t=e.hour(),n=e.minute(),a=Ie(r.from),i=Ie(r.to);return t<a.hour||t===a.hour&&n<a.minutes?!1:!(t>i.hour||t===i.hour&&n>i.minutes)}function Ss(){this.__data__=[],this.size=0}var ws=Ss;function Is(e,r){return e===r||e!==e&&r!==r}var gr=Is,Cs=gr;function Ds(e,r){for(var t=e.length;t--;)if(Cs(e[t][0],r))return t;return-1}var Pe=Ds,js=Pe,Ls=Array.prototype,Rs=Ls.splice;function Ns(e){var r=this.__data__,t=js(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Rs.call(r,t,1),--this.size,!0}var xs=Ns,Ps=Pe;function Us(e){var r=this.__data__,t=Ps(r,e);return t<0?void 0:r[t][1]}var Ms=Us,Fs=Pe;function Bs(e){return Fs(this.__data__,e)>-1}var Hs=Bs,Ys=Pe;function Gs(e,r){var t=this.__data__,n=Ys(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var qs=Gs,Ws=ws,Ks=xs,Vs=Ms,ks=Hs,Js=qs;function oe(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}oe.prototype.clear=Ws;oe.prototype.delete=Ks;oe.prototype.get=Vs;oe.prototype.has=ks;oe.prototype.set=Js;var Ue=oe,zs=Ue;function Zs(){this.__data__=new zs,this.size=0}var Xs=Zs;function Qs(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var eo=Qs;function ro(e){return this.__data__.get(e)}var to=ro;function no(e){return this.__data__.has(e)}var ao=no,io=Q,so=io(Object,"create"),Me=so,Gr=Me;function oo(){this.__data__=Gr?Gr(null):{},this.size=0}var uo=oo;function fo(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var co=fo,lo=Me,ho="__lodash_hash_undefined__",po=Object.prototype,vo=po.hasOwnProperty;function go(e){var r=this.__data__;if(lo){var t=r[e];return t===ho?void 0:t}return vo.call(r,e)?r[e]:void 0}var $o=go,yo=Me,mo=Object.prototype,bo=mo.hasOwnProperty;function _o(e){var r=this.__data__;return yo?r[e]!==void 0:bo.call(r,e)}var Ao=_o,Eo=Me,To="__lodash_hash_undefined__";function Oo(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Eo&&r===void 0?To:r,this}var So=Oo,wo=uo,Io=co,Co=$o,Do=Ao,jo=So;function ue(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}ue.prototype.clear=wo;ue.prototype.delete=Io;ue.prototype.get=Co;ue.prototype.has=Do;ue.prototype.set=jo;var Lo=ue,qr=Lo,Ro=Ue,No=lr;function xo(){this.size=0,this.__data__={hash:new qr,map:new(No||Ro),string:new qr}}var Po=xo;function Uo(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Mo=Uo,Fo=Mo;function Bo(e,r){var t=e.__data__;return Fo(r)?t[typeof r=="string"?"string":"hash"]:t.map}var Fe=Bo,Ho=Fe;function Yo(e){var r=Ho(this,e).delete(e);return this.size-=r?1:0,r}var Go=Yo,qo=Fe;function Wo(e){return qo(this,e).get(e)}var Ko=Wo,Vo=Fe;function ko(e){return Vo(this,e).has(e)}var Jo=ko,zo=Fe;function Zo(e,r){var t=zo(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this}var Xo=Zo,Qo=Po,eu=Go,ru=Ko,tu=Jo,nu=Xo;function fe(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}fe.prototype.clear=Qo;fe.prototype.delete=eu;fe.prototype.get=ru;fe.prototype.has=tu;fe.prototype.set=nu;var Jt=fe,au=Ue,iu=lr,su=Jt,ou=200;function uu(e,r){var t=this.__data__;if(t instanceof au){var n=t.__data__;if(!iu||n.length<ou-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new su(n)}return t.set(e,r),this.size=t.size,this}var fu=uu,cu=Ue,lu=Xs,du=eo,hu=to,pu=ao,vu=fu;function ce(e){var r=this.__data__=new cu(e);this.size=r.size}ce.prototype.clear=lu;ce.prototype.delete=du;ce.prototype.get=hu;ce.prototype.has=pu;ce.prototype.set=vu;var zt=ce,gu="__lodash_hash_undefined__";function $u(e){return this.__data__.set(e,gu),this}var yu=$u;function mu(e){return this.__data__.has(e)}var bu=mu,_u=Jt,Au=yu,Eu=bu;function Ce(e){var r=-1,t=e==null?0:e.length;for(this.__data__=new _u;++r<t;)this.add(e[r])}Ce.prototype.add=Ce.prototype.push=Au;Ce.prototype.has=Eu;var Tu=Ce;function Ou(e,r){for(var t=-1,n=e==null?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}var Su=Ou;function wu(e,r){return e.has(r)}var Iu=wu,Cu=Tu,Du=Su,ju=Iu,Lu=1,Ru=2;function Nu(e,r,t,n,a,i){var s=t&Lu,f=e.length,o=r.length;if(f!=o&&!(s&&o>f))return!1;var v=i.get(e),m=i.get(r);if(v&&m)return v==r&&m==e;var $=-1,h=!0,g=t&Ru?new Cu:void 0;for(i.set(e,r),i.set(r,e);++$<f;){var A=e[$],p=r[$];if(n)var T=s?n(p,A,$,r,e,i):n(A,p,$,e,r,i);if(T!==void 0){if(T)continue;h=!1;break}if(g){if(!Du(r,function(j,u){if(!ju(g,u)&&(A===j||a(A,j,t,n,i)))return g.push(u)})){h=!1;break}}else if(!(A===p||a(A,p,t,n,i))){h=!1;break}}return i.delete(e),i.delete(r),h}var Zt=Nu,xu=K,Pu=xu.Uint8Array,Xt=Pu;function Uu(e){var r=-1,t=Array(e.size);return e.forEach(function(n,a){t[++r]=[a,n]}),t}var Mu=Uu;function Fu(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Bu=Fu,Wr=Ne,Kr=Xt,Hu=gr,Yu=Zt,Gu=Mu,qu=Bu,Wu=1,Ku=2,Vu="[object Boolean]",ku="[object Date]",Ju="[object Error]",zu="[object Map]",Zu="[object Number]",Xu="[object RegExp]",Qu="[object Set]",ef="[object String]",rf="[object Symbol]",tf="[object ArrayBuffer]",nf="[object DataView]",Vr=Wr?Wr.prototype:void 0,Ke=Vr?Vr.valueOf:void 0;function af(e,r,t,n,a,i,s){switch(t){case nf:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case tf:return!(e.byteLength!=r.byteLength||!i(new Kr(e),new Kr(r)));case Vu:case ku:case Zu:return Hu(+e,+r);case Ju:return e.name==r.name&&e.message==r.message;case Xu:case ef:return e==r+"";case zu:var f=Gu;case Qu:var o=n&Wu;if(f||(f=qu),e.size!=r.size&&!o)return!1;var v=s.get(e);if(v)return v==r;n|=Ku,s.set(e,r);var m=Yu(f(e),f(r),n,a,i,s);return s.delete(e),m;case rf:if(Ke)return Ke.call(e)==Ke.call(r)}return!1}var sf=af;function of(e,r){for(var t=-1,n=r.length,a=e.length;++t<n;)e[a+t]=r[t];return e}var Qt=of,uf=Qt,ff=ye;function cf(e,r,t){var n=r(e);return ff(e)?n:uf(n,t(e))}var en=cf;function lf(e,r){for(var t=-1,n=e==null?0:e.length,a=0,i=[];++t<n;){var s=e[t];r(s,t,e)&&(i[a++]=s)}return i}var df=lf;function hf(){return[]}var rn=hf,pf=df,vf=rn,gf=Object.prototype,$f=gf.propertyIsEnumerable,kr=Object.getOwnPropertySymbols,yf=kr?function(e){return e==null?[]:(e=Object(e),pf(kr(e),function(r){return $f.call(e,r)}))}:vf,$r=yf;function mf(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var bf=mf,_f=9007199254740991,Af=/^(?:0|[1-9]\d*)$/;function Ef(e,r){var t=typeof e;return r=r==null?_f:r,!!r&&(t=="number"||t!="symbol"&&Af.test(e))&&e>-1&&e%1==0&&e<r}var Tf=Ef,Of=bf,Sf=Gt,wf=ye,If=ae.exports,Cf=Tf,Df=pr,jf=Object.prototype,Lf=jf.hasOwnProperty;function Rf(e,r){var t=wf(e),n=!t&&Sf(e),a=!t&&!n&&If(e),i=!t&&!n&&!a&&Df(e),s=t||n||a||i,f=s?Of(e.length,String):[],o=f.length;for(var v in e)(r||Lf.call(e,v))&&!(s&&(v=="length"||a&&(v=="offset"||v=="parent")||i&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||Cf(v,o)))&&f.push(v);return f}var tn=Rf,Nf=tn,xf=Pt,Pf=dr;function Uf(e){return Pf(e)?Nf(e):xf(e)}var yr=Uf,Mf=en,Ff=$r,Bf=yr;function Hf(e){return Mf(e,Bf,Ff)}var nn=Hf,Jr=nn,Yf=1,Gf=Object.prototype,qf=Gf.hasOwnProperty;function Wf(e,r,t,n,a,i){var s=t&Yf,f=Jr(e),o=f.length,v=Jr(r),m=v.length;if(o!=m&&!s)return!1;for(var $=o;$--;){var h=f[$];if(!(s?h in r:qf.call(r,h)))return!1}var g=i.get(e),A=i.get(r);if(g&&A)return g==r&&A==e;var p=!0;i.set(e,r),i.set(r,e);for(var T=s;++$<o;){h=f[$];var j=e[h],u=r[h];if(n)var c=s?n(u,j,h,r,e,i):n(j,u,h,e,r,i);if(!(c===void 0?j===u||a(j,u,t,n,i):c)){p=!1;break}T||(T=h=="constructor")}if(p&&!T){var d=e.constructor,l=r.constructor;d!=l&&"constructor"in e&&"constructor"in r&&!(typeof d=="function"&&d instanceof d&&typeof l=="function"&&l instanceof l)&&(p=!1)}return i.delete(e),i.delete(r),p}var Kf=Wf,Ve=zt,Vf=Zt,kf=sf,Jf=Kf,zr=$e,Zr=ye,Xr=ae.exports,zf=pr,Zf=1,Qr="[object Arguments]",et="[object Array]",Ae="[object Object]",Xf=Object.prototype,rt=Xf.hasOwnProperty;function Qf(e,r,t,n,a,i){var s=Zr(e),f=Zr(r),o=s?et:zr(e),v=f?et:zr(r);o=o==Qr?Ae:o,v=v==Qr?Ae:v;var m=o==Ae,$=v==Ae,h=o==v;if(h&&Xr(e)){if(!Xr(r))return!1;s=!0,m=!1}if(h&&!m)return i||(i=new Ve),s||zf(e)?Vf(e,r,t,n,a,i):kf(e,r,o,t,n,a,i);if(!(t&Zf)){var g=m&&rt.call(e,"__wrapped__"),A=$&&rt.call(r,"__wrapped__");if(g||A){var p=g?e.value():e,T=A?r.value():r;return i||(i=new Ve),a(p,T,t,n,i)}}return h?(i||(i=new Ve),Jf(e,r,t,n,a,i)):!1}var ec=Qf,rc=ec,tt=se;function an(e,r,t,n,a){return e===r?!0:e==null||r==null||!tt(e)&&!tt(r)?e!==e&&r!==r:rc(e,r,t,n,an,a)}var tc=an,nc=tc;function ac(e,r){return nc(e,r)}var sn=ac;function ic(e,r=!1,t=void 0,n=60){const[a,i]=Y.useState(e&&Yr(e,t,void 0,r));Le(s,n*1e3);function s(){const f=e&&Yr(e,t,void 0,r);sn(f,a)||(console.log("menu has changed",f),i(f))}return Y.useEffect(s,[a,e]),a}var nt;(function(e){e.UNINITIALIZED="UNINITIALIZED",e.PROCESSING="PROCESSING",e.PAID="PAID",e.FAILED="FAILED",e.PRINTING_RECEIPT="PRINTING_RECEIPT",e.PRINTING_RECEIPT_SUCCESS="PRINTING_RECEIPT_SUCCESS",e.SENDING_RECEIPT="SENDING_RECEIPT",e.SENDING_RECEIPT_SUCCESS="SENDING_RECEIPT_SUCCESS",e.ERROR="ERROR"})(nt||(nt={}));var at;(function(e){e.CAROUSEL="carousel",e.NORMAL="normal",e.IMAGE="image"})(at||(at={}));var ir;(function(e){e.GROUP="3e/group",e.PRODUCT="3e/product",e.CATEGORY="3e/group/category",e.OPTIONS="3e/group/options",e.CONFIG="3e/group/config",e.STATIC="3e/static",e.REF="3e/ref",e.QUERY="3e/query"})(ir||(ir={}));var it;(function(e){e.GROUP="group",e.PRODUCT="product"})(it||(it={}));var st;(function(e){e.TAKE_AWAY="TAKE_AWAY",e.DELIVERY="DELIVERY",e.DINE_IN="DINE_IN",e.DINE_IN_OPEN="DINE_IN_OPEN",e.GLOVO_DELIVERY="GLOVO_DELIVERY",e.GLOVO_TAKE_AWAY="GLOVO_TAKE_AWAY",e.JUSTEAT_DELIVERY="JUSTEAT_DELIVERY",e.JUSTEAT_TAKE_AWAY="JUSTEAT_TAKE_AWAY",e.UBER_DELIVERY="UBER_DELIVERY",e.UBER_TAKE_AWAY="UBER_TAKE_AWAY",e.UBER_DINE_IN="UBER_DINE_IN",e.BOLT_DELIVERY="BOLT_DELIVERY",e.BOLT_TAKE_AWAY="BOLT_TAKE_AWAY",e.WOLT_DELIVERY="WOLT_DELIVERY",e.WOLT_TAKE_AWAY="WOLT_TAKE_AWAY",e.WOLT_DINE_IN="WOLT_DINE_IN"})(st||(st={}));var ot;(function(e){e.NEW="NEW",e.COMPLETED="COMPLETED",e.VERIFIED="VERIFIED",e.DELIVER="DELIVER",e.DELIVERED="DELIVERED",e.CLOSED="CLOSED",e.ABANDONED="ABANDONED",e.CANCELLED="CANCELLED",e.PICKED="PICKED"})(ot||(ot={}));var ut;(function(e){e.CASH="CASH",e.CARD="CARD",e.COD="COD",e.TERMINAL="TERMINAL",e.EPAYMENT="EPAYMENT",e.COUPON="COUPON",e.WALLET="WALLET",e.PREAUTHORIZED="PREAUTHORIZED",e.RETURN="RETURN",e.EXTERNAL="EXTERNAL"})(ut||(ut={}));var ft;(function(e){e.KIOSK="KIOSK",e.WEB="WEB",e.JUST_EAT_TAKE_AWAY="JUSTEATTAKEAWAY",e.GLOVO="GLOVO",e.PYSZNE="PYSZNE",e.WOLT="WOLT",e.UBER="UBER",e.BOLT="BOLT"})(ft||(ft={}));var ct;(function(e){e.NEW="NEW",e.TECHNICAL="TECHNICAL",e.CONFIRMED="CONFIRMED",e.PROCESSING="PROCESSING",e.PROCESSED="PROCESSED",e.VOID="VOID",e.WASTE="WASTE"})(ct||(ct={}));var lt;(function(e){e.GROUP="group",e.PRODUCT="product"})(lt||(lt={}));var dt;(function(e){e.DINE_IN="DINE_IN",e.TAKE_AWAY="TAKE_AWAY",e.DELIVERY="DELIVERY",e.GLOVO_DELIVERY="GLOVO_DELIVERY",e.JUSTEAT_DELIVERY="JUSTEAT_DELIVERY",e.UBER_DELIVERY="UBER_DELIVERY",e.BOLT_DELIVERY="BOLT_DELIVERY",e.WOLT_DELIVERY="WOLT_DELIVERY"})(dt||(dt={}));function sc(e,r){for(var t=-1,n=e==null?0:e.length;++t<n&&r(e[t],t,e)!==!1;);return e}var oc=sc,uc=Q,fc=function(){try{var e=uc(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cc=fc,ht=cc;function lc(e,r,t){r=="__proto__"&&ht?ht(e,r,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[r]=t}var on=lc,dc=on,hc=gr,pc=Object.prototype,vc=pc.hasOwnProperty;function gc(e,r,t){var n=e[r];(!(vc.call(e,r)&&hc(n,t))||t===void 0&&!(r in e))&&dc(e,r,t)}var un=gc,$c=un,yc=on;function mc(e,r,t,n){var a=!t;t||(t={});for(var i=-1,s=r.length;++i<s;){var f=r[i],o=n?n(t[f],e[f],f,t,e):void 0;o===void 0&&(o=e[f]),a?yc(t,f,o):$c(t,f,o)}return t}var Be=mc,bc=Be,_c=yr;function Ac(e,r){return e&&bc(r,_c(r),e)}var Ec=Ac;function Tc(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var Oc=Tc,Sc=ge,wc=Re,Ic=Oc,Cc=Object.prototype,Dc=Cc.hasOwnProperty;function jc(e){if(!Sc(e))return Ic(e);var r=wc(e),t=[];for(var n in e)n=="constructor"&&(r||!Dc.call(e,n))||t.push(n);return t}var Lc=jc,Rc=tn,Nc=Lc,xc=dr;function Pc(e){return xc(e)?Rc(e,!0):Nc(e)}var mr=Pc,Uc=Be,Mc=mr;function Fc(e,r){return e&&Uc(r,Mc(r),e)}var Bc=Fc,sr={exports:{}};(function(e,r){var t=K,n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,s=i?t.Buffer:void 0,f=s?s.allocUnsafe:void 0;function o(v,m){if(m)return v.slice();var $=v.length,h=f?f($):new v.constructor($);return v.copy(h),h}e.exports=o})(sr,sr.exports);function Hc(e,r){var t=-1,n=e.length;for(r||(r=Array(n));++t<n;)r[t]=e[t];return r}var Yc=Hc,Gc=Be,qc=$r;function Wc(e,r){return Gc(e,qc(e),r)}var Kc=Wc,Vc=xt,kc=Vc(Object.getPrototypeOf,Object),fn=kc,Jc=Qt,zc=fn,Zc=$r,Xc=rn,Qc=Object.getOwnPropertySymbols,el=Qc?function(e){for(var r=[];e;)Jc(r,Zc(e)),e=zc(e);return r}:Xc,cn=el,rl=Be,tl=cn;function nl(e,r){return rl(e,tl(e),r)}var al=nl,il=en,sl=cn,ol=mr;function ul(e){return il(e,ol,sl)}var fl=ul,cl=Object.prototype,ll=cl.hasOwnProperty;function dl(e){var r=e.length,t=new e.constructor(r);return r&&typeof e[0]=="string"&&ll.call(e,"index")&&(t.index=e.index,t.input=e.input),t}var hl=dl,pt=Xt;function pl(e){var r=new e.constructor(e.byteLength);return new pt(r).set(new pt(e)),r}var br=pl,vl=br;function gl(e,r){var t=r?vl(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var $l=gl,yl=/\w*$/;function ml(e){var r=new e.constructor(e.source,yl.exec(e));return r.lastIndex=e.lastIndex,r}var bl=ml,vt=Ne,gt=vt?vt.prototype:void 0,$t=gt?gt.valueOf:void 0;function _l(e){return $t?Object($t.call(e)):{}}var Al=_l,El=br;function Tl(e,r){var t=r?El(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var Ol=Tl,Sl=br,wl=$l,Il=bl,Cl=Al,Dl=Ol,jl="[object Boolean]",Ll="[object Date]",Rl="[object Map]",Nl="[object Number]",xl="[object RegExp]",Pl="[object Set]",Ul="[object String]",Ml="[object Symbol]",Fl="[object ArrayBuffer]",Bl="[object DataView]",Hl="[object Float32Array]",Yl="[object Float64Array]",Gl="[object Int8Array]",ql="[object Int16Array]",Wl="[object Int32Array]",Kl="[object Uint8Array]",Vl="[object Uint8ClampedArray]",kl="[object Uint16Array]",Jl="[object Uint32Array]";function zl(e,r,t){var n=e.constructor;switch(r){case Fl:return Sl(e);case jl:case Ll:return new n(+e);case Bl:return wl(e,t);case Hl:case Yl:case Gl:case ql:case Wl:case Kl:case Vl:case kl:case Jl:return Dl(e,t);case Rl:return new n;case Nl:case Ul:return new n(e);case xl:return Il(e);case Pl:return new n;case Ml:return Cl(e)}}var Zl=zl,Xl=ge,yt=Object.create,Ql=function(){function e(){}return function(r){if(!Xl(r))return{};if(yt)return yt(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}(),ed=Ql,rd=ed,td=fn,nd=Re;function ad(e){return typeof e.constructor=="function"&&!nd(e)?rd(td(e)):{}}var id=ad,sd=$e,od=se,ud="[object Map]";function fd(e){return od(e)&&sd(e)==ud}var cd=fd,ld=cd,dd=hr,mt=pe.exports,bt=mt&&mt.isMap,hd=bt?dd(bt):ld,pd=hd,vd=$e,gd=se,$d="[object Set]";function yd(e){return gd(e)&&vd(e)==$d}var md=yd,bd=md,_d=hr,_t=pe.exports,At=_t&&_t.isSet,Ad=At?_d(At):bd,Ed=Ad,Td=zt,Od=oc,Sd=un,wd=Ec,Id=Bc,Cd=sr.exports,Dd=Yc,jd=Kc,Ld=al,Rd=nn,Nd=fl,xd=$e,Pd=hl,Ud=Zl,Md=id,Fd=ye,Bd=ae.exports,Hd=pd,Yd=ge,Gd=Ed,qd=yr,Wd=mr,Kd=1,Vd=2,kd=4,ln="[object Arguments]",Jd="[object Array]",zd="[object Boolean]",Zd="[object Date]",Xd="[object Error]",dn="[object Function]",Qd="[object GeneratorFunction]",eh="[object Map]",rh="[object Number]",hn="[object Object]",th="[object RegExp]",nh="[object Set]",ah="[object String]",ih="[object Symbol]",sh="[object WeakMap]",oh="[object ArrayBuffer]",uh="[object DataView]",fh="[object Float32Array]",ch="[object Float64Array]",lh="[object Int8Array]",dh="[object Int16Array]",hh="[object Int32Array]",ph="[object Uint8Array]",vh="[object Uint8ClampedArray]",gh="[object Uint16Array]",$h="[object Uint32Array]",x={};x[ln]=x[Jd]=x[oh]=x[uh]=x[zd]=x[Zd]=x[fh]=x[ch]=x[lh]=x[dh]=x[hh]=x[eh]=x[rh]=x[hn]=x[th]=x[nh]=x[ah]=x[ih]=x[ph]=x[vh]=x[gh]=x[$h]=!0;x[Xd]=x[dn]=x[sh]=!1;function Oe(e,r,t,n,a,i){var s,f=r&Kd,o=r&Vd,v=r&kd;if(t&&(s=a?t(e,n,a,i):t(e)),s!==void 0)return s;if(!Yd(e))return e;var m=Fd(e);if(m){if(s=Pd(e),!f)return Dd(e,s)}else{var $=xd(e),h=$==dn||$==Qd;if(Bd(e))return Cd(e,f);if($==hn||$==ln||h&&!a){if(s=o||h?{}:Md(e),!f)return o?Ld(e,Id(s,e)):jd(e,wd(s,e))}else{if(!x[$])return a?e:{};s=Ud(e,$,f)}}i||(i=new Td);var g=i.get(e);if(g)return g;i.set(e,s),Gd(e)?e.forEach(function(T){s.add(Oe(T,r,t,T,e,i))}):Hd(e)&&e.forEach(function(T,j){s.set(j,Oe(T,r,t,j,e,i))});var A=v?o?Nd:Rd:o?Wd:qd,p=m?void 0:A(e);return Od(p||e,function(T,j){p&&(j=T,T=e[j]),Sd(s,j,Oe(T,r,t,j,e,i))}),s}var yh=Oe,mh=yh,bh=1,_h=4;function Ah(e){return mh(e,bh|_h)}var Eh=Ah;function Th(e,r){if(!r||!r.filter||!e||!e.filter||e.kind!==ir.CONFIG)return!0;if(e.filter&&e.items){const t=Object.values(e.filter).flat().filter(n=>{var a,i,s,f;return r.filter[(i=(a=e.items)==null?void 0:a[0])==null?void 0:i.fltCtx]&&Object.values(r.filter[(f=(s=e.items)==null?void 0:s[0])==null?void 0:f.fltCtx]).includes(n)});if(Array.isArray(t)&&t.length===0)return!1}return!0}const De=(e,r,t=0)=>{if(!e)return 0;let n=parseFloat(e.price)||0;const{items:a}=e,i=Eh(r);return Th(e,i)&&Array.isArray(a)&&a.forEach(s=>{let f=0;if(s.kind!=="3e/product")f=De(s,i,t+1);else{const{selected:o={}}=i,{selCtx:v,id:m}=s;v in o&&m in o[v]&&(f=De(s,i,t+1)*o[v][m],delete i.selected[v][m])}n+=f}),Math.round(100*n)/100},Oh=({product:e,state:r,selected:t,cheapestGroupOptionsProduct:n})=>{var o;const a=r?De(e,r):0,i=e.state&&!vr((o=e==null?void 0:e.state)==null?void 0:o.selected)?De(e,e.state):0,s=e.minPrice&&parseFloat(e.price)===a;let f=t||!!n||parseFloat(e.price)===0?a||i:parseFloat(e.price);return n!==void 0&&(f-=n),s&&e.minPrice&&(f=parseFloat(e.minPrice)),{displayPrice:f,showAsMinPrice:s,calculatedPriceDefaultProductState:i}};function _r(e){const r=[];return e.reduce((t,n)=>{if(t[n.hash]||(t[n.hash]={...n,quantity:0,discounted:0,discounts:[],firstProductQuantity:n.quantity,itemsToRemove:[]},r.push(t[n.hash])),t[n.hash].quantity+=n.quantity,t[n.hash].itemsToRemove.push(n.id),n.discounts){t[n.hash].discounts||(t[n.hash].discounts=[]),t[n.hash].discounts=t[n.hash].discounts.concat(n.discounts),t[n.hash].discounted=0;for(let a=0;a<t[n.hash].discounts.length;a+=1)t[n.hash].discounts[a]&&(t[n.hash].discounted+=parseFloat(t[n.hash].discounts[a].discountPrice))}return t},{}),r}function Sh(e){return _r(e)}function wh(e){return!e||e.length===0?null:_r(e.flatMap(r=>r.lines))}var Ar={exports:{}},pn=function(r,t){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return r.apply(t,a)}},Ih=pn,ee=Object.prototype.toString;function Er(e){return ee.call(e)==="[object Array]"}function or(e){return typeof e=="undefined"}function Ch(e){return e!==null&&!or(e)&&e.constructor!==null&&!or(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Dh(e){return ee.call(e)==="[object ArrayBuffer]"}function jh(e){return typeof FormData!="undefined"&&e instanceof FormData}function Lh(e){var r;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&e.buffer instanceof ArrayBuffer,r}function Rh(e){return typeof e=="string"}function Nh(e){return typeof e=="number"}function vn(e){return e!==null&&typeof e=="object"}function Se(e){if(ee.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function xh(e){return ee.call(e)==="[object Date]"}function Ph(e){return ee.call(e)==="[object File]"}function Uh(e){return ee.call(e)==="[object Blob]"}function gn(e){return ee.call(e)==="[object Function]"}function Mh(e){return vn(e)&&gn(e.pipe)}function Fh(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function Bh(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Hh(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Tr(e,r){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Er(e))for(var t=0,n=e.length;t<n;t++)r.call(null,e[t],t,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.call(null,e[a],a,e)}function ur(){var e={};function r(a,i){Se(e[i])&&Se(a)?e[i]=ur(e[i],a):Se(a)?e[i]=ur({},a):Er(a)?e[i]=a.slice():e[i]=a}for(var t=0,n=arguments.length;t<n;t++)Tr(arguments[t],r);return e}function Yh(e,r,t){return Tr(r,function(a,i){t&&typeof a=="function"?e[i]=Ih(a,t):e[i]=a}),e}function Gh(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var q={isArray:Er,isArrayBuffer:Dh,isBuffer:Ch,isFormData:jh,isArrayBufferView:Lh,isString:Rh,isNumber:Nh,isObject:vn,isPlainObject:Se,isUndefined:or,isDate:xh,isFile:Ph,isBlob:Uh,isFunction:gn,isStream:Mh,isURLSearchParams:Fh,isStandardBrowserEnv:Hh,forEach:Tr,merge:ur,extend:Yh,trim:Bh,stripBOM:Gh},te=q;function Et(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var $n=function(r,t,n){if(!t)return r;var a;if(n)a=n(t);else if(te.isURLSearchParams(t))a=t.toString();else{var i=[];te.forEach(t,function(o,v){o===null||typeof o=="undefined"||(te.isArray(o)?v=v+"[]":o=[o],te.forEach(o,function($){te.isDate($)?$=$.toISOString():te.isObject($)&&($=JSON.stringify($)),i.push(Et(v)+"="+Et($))}))}),a=i.join("&")}if(a){var s=r.indexOf("#");s!==-1&&(r=r.slice(0,s)),r+=(r.indexOf("?")===-1?"?":"&")+a}return r},qh=q;function He(){this.handlers=[]}He.prototype.use=function(r,t,n){return this.handlers.push({fulfilled:r,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};He.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)};He.prototype.forEach=function(r){qh.forEach(this.handlers,function(n){n!==null&&r(n)})};var Wh=He,Kh=q,Vh=function(r,t){Kh.forEach(r,function(a,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(r[t]=a,delete r[i])})},yn=function(r,t,n,a,i){return r.config=t,n&&(r.code=n),r.request=a,r.response=i,r.isAxiosError=!0,r.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},r},kh=yn,mn=function(r,t,n,a,i){var s=new Error(r);return kh(s,t,n,a,i)},Jh=mn,zh=function(r,t,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?r(n):t(Jh("Request failed with status code "+n.status,n.config,null,n.request,n))},Ee=q,Zh=Ee.isStandardBrowserEnv()?function(){return{write:function(t,n,a,i,s,f){var o=[];o.push(t+"="+encodeURIComponent(n)),Ee.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),Ee.isString(i)&&o.push("path="+i),Ee.isString(s)&&o.push("domain="+s),f===!0&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Xh=function(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)},Qh=function(r,t){return t?r.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):r},ep=Xh,rp=Qh,tp=function(r,t){return r&&!ep(t)?rp(r,t):t},ke=q,np=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ap=function(r){var t={},n,a,i;return r&&ke.forEach(r.split(`
|
|
2
|
+
`),function(f){if(i=f.indexOf(":"),n=ke.trim(f.substr(0,i)).toLowerCase(),a=ke.trim(f.substr(i+1)),n){if(t[n]&&np.indexOf(n)>=0)return;n==="set-cookie"?t[n]=(t[n]?t[n]:[]).concat([a]):t[n]=t[n]?t[n]+", "+a:a}}),t},Tt=q,ip=Tt.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function a(i){var s=i;return r&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(s){var f=Tt.isString(s)?a(s):s;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return!0}}(),Te=q,sp=zh,op=Zh,up=$n,fp=tp,cp=ap,lp=ip,Je=mn,Ot=function(r){return new Promise(function(n,a){var i=r.data,s=r.headers,f=r.responseType;Te.isFormData(i)&&delete s["Content-Type"];var o=new XMLHttpRequest;if(r.auth){var v=r.auth.username||"",m=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";s.Authorization="Basic "+btoa(v+":"+m)}var $=fp(r.baseURL,r.url);o.open(r.method.toUpperCase(),up($,r.params,r.paramsSerializer),!0),o.timeout=r.timeout;function h(){if(!!o){var A="getAllResponseHeaders"in o?cp(o.getAllResponseHeaders()):null,p=!f||f==="text"||f==="json"?o.responseText:o.response,T={data:p,status:o.status,statusText:o.statusText,headers:A,config:r,request:o};sp(n,a,T),o=null}}if("onloadend"in o?o.onloadend=h:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(h)},o.onabort=function(){!o||(a(Je("Request aborted",r,"ECONNABORTED",o)),o=null)},o.onerror=function(){a(Je("Network Error",r,null,o)),o=null},o.ontimeout=function(){var p="timeout of "+r.timeout+"ms exceeded";r.timeoutErrorMessage&&(p=r.timeoutErrorMessage),a(Je(p,r,r.transitional&&r.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",o)),o=null},Te.isStandardBrowserEnv()){var g=(r.withCredentials||lp($))&&r.xsrfCookieName?op.read(r.xsrfCookieName):void 0;g&&(s[r.xsrfHeaderName]=g)}"setRequestHeader"in o&&Te.forEach(s,function(p,T){typeof i=="undefined"&&T.toLowerCase()==="content-type"?delete s[T]:o.setRequestHeader(T,p)}),Te.isUndefined(r.withCredentials)||(o.withCredentials=!!r.withCredentials),f&&f!=="json"&&(o.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&o.addEventListener("progress",r.onDownloadProgress),typeof r.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",r.onUploadProgress),r.cancelToken&&r.cancelToken.promise.then(function(p){!o||(o.abort(),a(p),o=null)}),i||(i=null),o.send(i)})},F=q,St=Vh,dp=yn,hp={"Content-Type":"application/x-www-form-urlencoded"};function wt(e,r){!F.isUndefined(e)&&F.isUndefined(e["Content-Type"])&&(e["Content-Type"]=r)}function pp(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ot),e}function vp(e,r,t){if(F.isString(e))try{return(r||JSON.parse)(e),F.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}var Ye={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:pp(),transformRequest:[function(r,t){return St(t,"Accept"),St(t,"Content-Type"),F.isFormData(r)||F.isArrayBuffer(r)||F.isBuffer(r)||F.isStream(r)||F.isFile(r)||F.isBlob(r)?r:F.isArrayBufferView(r)?r.buffer:F.isURLSearchParams(r)?(wt(t,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):F.isObject(r)||t&&t["Content-Type"]==="application/json"?(wt(t,"application/json"),vp(r)):r}],transformResponse:[function(r){var t=this.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&F.isString(r)&&r.length)try{return JSON.parse(r)}catch(s){if(i)throw s.name==="SyntaxError"?dp(s,this,"E_JSON_PARSE"):s}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(r){return r>=200&&r<300}};Ye.headers={common:{Accept:"application/json, text/plain, */*"}};F.forEach(["delete","get","head"],function(r){Ye.headers[r]={}});F.forEach(["post","put","patch"],function(r){Ye.headers[r]=F.merge(hp)});var Or=Ye,gp=q,$p=Or,yp=function(r,t,n){var a=this||$p;return gp.forEach(n,function(s){r=s.call(a,r,t)}),r},bn=function(r){return!!(r&&r.__CANCEL__)},It=q,ze=yp,mp=bn,bp=Or;function Ze(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var _p=function(r){Ze(r),r.headers=r.headers||{},r.data=ze.call(r,r.data,r.headers,r.transformRequest),r.headers=It.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),It.forEach(["delete","get","head","post","put","patch","common"],function(a){delete r.headers[a]});var t=r.adapter||bp.adapter;return t(r).then(function(a){return Ze(r),a.data=ze.call(r,a.data,a.headers,r.transformResponse),a},function(a){return mp(a)||(Ze(r),a&&a.response&&(a.response.data=ze.call(r,a.response.data,a.response.headers,r.transformResponse))),Promise.reject(a)})},H=q,_n=function(r,t){t=t||{};var n={},a=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],f=["validateStatus"];function o(h,g){return H.isPlainObject(h)&&H.isPlainObject(g)?H.merge(h,g):H.isPlainObject(g)?H.merge({},g):H.isArray(g)?g.slice():g}function v(h){H.isUndefined(t[h])?H.isUndefined(r[h])||(n[h]=o(void 0,r[h])):n[h]=o(r[h],t[h])}H.forEach(a,function(g){H.isUndefined(t[g])||(n[g]=o(void 0,t[g]))}),H.forEach(i,v),H.forEach(s,function(g){H.isUndefined(t[g])?H.isUndefined(r[g])||(n[g]=o(void 0,r[g])):n[g]=o(void 0,t[g])}),H.forEach(f,function(g){g in t?n[g]=o(r[g],t[g]):g in r&&(n[g]=o(void 0,r[g]))});var m=a.concat(i).concat(s).concat(f),$=Object.keys(r).concat(Object.keys(t)).filter(function(g){return m.indexOf(g)===-1});return H.forEach($,v),n};const Ap="axios",Ep="0.21.4",Tp="Promise based HTTP client for the browser and node.js",Op="index.js",Sp={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},wp={type:"git",url:"https://github.com/axios/axios.git"},Ip=["xhr","http","ajax","promise","node"],Cp="Matt Zabriskie",Dp="MIT",jp={url:"https://github.com/axios/axios/issues"},Lp="https://axios-http.com",Rp={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},Np={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},xp="dist/axios.min.js",Pp="dist/axios.min.js",Up="./index.d.ts",Mp={"follow-redirects":"^1.14.0"},Fp=[{path:"./dist/axios.min.js",threshold:"5kB"}];var Bp={name:Ap,version:Ep,description:Tp,main:Op,scripts:Sp,repository:wp,keywords:Ip,author:Cp,license:Dp,bugs:jp,homepage:Lp,devDependencies:Rp,browser:Np,jsdelivr:xp,unpkg:Pp,typings:Up,dependencies:Mp,bundlesize:Fp},An=Bp,Sr={};["object","boolean","number","function","string","symbol"].forEach(function(e,r){Sr[e]=function(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}});var Ct={},Hp=An.version.split(".");function En(e,r){for(var t=r?r.split("."):Hp,n=e.split("."),a=0;a<3;a++){if(t[a]>n[a])return!0;if(t[a]<n[a])return!1}return!1}Sr.transitional=function(r,t,n){var a=t&&En(t);function i(s,f){return"[Axios v"+An.version+"] Transitional option '"+s+"'"+f+(n?". "+n:"")}return function(s,f,o){if(r===!1)throw new Error(i(f," has been removed in "+t));return a&&!Ct[f]&&(Ct[f]=!0,console.warn(i(f," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(s,f,o):!0}};function Yp(e,r,t){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),a=n.length;a-- >0;){var i=n[a],s=r[i];if(s){var f=e[i],o=f===void 0||s(f,i,e);if(o!==!0)throw new TypeError("option "+i+" must be "+o);continue}if(t!==!0)throw Error("Unknown option "+i)}}var Gp={isOlderVersion:En,assertOptions:Yp,validators:Sr},Tn=q,qp=$n,Dt=Wh,jt=_p,Ge=_n,On=Gp,ne=On.validators;function me(e){this.defaults=e,this.interceptors={request:new Dt,response:new Dt}}me.prototype.request=function(r){typeof r=="string"?(r=arguments[1]||{},r.url=arguments[0]):r=r||{},r=Ge(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var t=r.transitional;t!==void 0&&On.assertOptions(t,{silentJSONParsing:ne.transitional(ne.boolean,"1.0.0"),forcedJSONParsing:ne.transitional(ne.boolean,"1.0.0"),clarifyTimeoutError:ne.transitional(ne.boolean,"1.0.0")},!1);var n=[],a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(a=a&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var i=[];this.interceptors.response.forEach(function(h){i.push(h.fulfilled,h.rejected)});var s;if(!a){var f=[jt,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(i),s=Promise.resolve(r);f.length;)s=s.then(f.shift(),f.shift());return s}for(var o=r;n.length;){var v=n.shift(),m=n.shift();try{o=v(o)}catch($){m($);break}}try{s=jt(o)}catch($){return Promise.reject($)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};me.prototype.getUri=function(r){return r=Ge(this.defaults,r),qp(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")};Tn.forEach(["delete","get","head","options"],function(r){me.prototype[r]=function(t,n){return this.request(Ge(n||{},{method:r,url:t,data:(n||{}).data}))}});Tn.forEach(["post","put","patch"],function(r){me.prototype[r]=function(t,n,a){return this.request(Ge(a||{},{method:r,url:t,data:n}))}});var Wp=me;function wr(e){this.message=e}wr.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};wr.prototype.__CANCEL__=!0;var Sn=wr,Kp=Sn;function je(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a});var t=this;e(function(a){t.reason||(t.reason=new Kp(a),r(t.reason))})}je.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};je.source=function(){var r,t=new je(function(a){r=a});return{token:t,cancel:r}};var Vp=je,kp=function(r){return function(n){return r.apply(null,n)}},Jp=function(r){return typeof r=="object"&&r.isAxiosError===!0},Lt=q,zp=pn,we=Wp,Zp=_n,Xp=Or;function wn(e){var r=new we(e),t=zp(we.prototype.request,r);return Lt.extend(t,we.prototype,r),Lt.extend(t,r),t}var W=wn(Xp);W.Axios=we;W.create=function(r){return wn(Zp(W.defaults,r))};W.Cancel=Sn;W.CancelToken=Vp;W.isCancel=bn;W.all=function(r){return Promise.all(r)};W.spread=kp;W.isAxiosError=Jp;Ar.exports=W;Ar.exports.default=W;var Qp=Ar.exports;const ev=(e,r)=>{var t,n,a;return e&&((t=e==null?void 0:e.url)==null?void 0:t.length)>0&&(((n=e.url.find(i=>i.locale===r))==null?void 0:n.value)||((a=e.url.find(i=>i.locale==="*"))==null?void 0:a.value))||null},rv=(e,r)=>{var t,n;return((t=e==null?void 0:e.find)==null?void 0:t.call(e,a=>a.venue===r))||((n=e==null?void 0:e.find)==null?void 0:n.call(e,a=>a.venue==="*"))};function Ir(e,r=600,t=!0,n,a){var j,u;if(!n||!a)throw new Error("baseUrl or tenant was not provided");const i=`${e}_${a}_${n}`,s=`${n.endsWith("/")?n.slice(0,-1):n}/cms-api/content/${a}/${e}`,f=((j=T())==null?void 0:j.value)||null,[o,v]=Y.useState(((u=T())==null?void 0:u.timestamp)||0),[m,$]=Y.useState(f||null),[h,g]=Y.useState(!1);function A(){Qp.get(s).then(c=>{if(vr(c.data))throw new Error(`CMS data '${e}' is an empty object`);sn(c.data,m)||$(c.data),h&&g(!1),t&&p(c.data)}).catch(c=>{console.error(c),g(!0)})}function p(c){const d=new Date().valueOf(),l=JSON.stringify({value:c,timestamp:d});localStorage.setItem(i,l),v(d)}function T(){try{const c=localStorage.getItem(i);if(c)return JSON.parse(c)}catch(c){console.warn(c)}return null}return Y.useEffect(()=>{new Date().valueOf()-o>r*1e3&&A()},[]),Le(A,r*1e3),{value:m,isError:h,isLoading:!h&&!m}}function In(e,r=600,t=!0,n,a,i){var f,o,v,m;if(!n||!a||!i)throw new Error("baseUrl, tenant or venue was not provided");const s=Ir(e,r,t,n,a);return{value:((o=(f=s.value)==null?void 0:f.find)==null?void 0:o.call(f,$=>$.venue===i))||((m=(v=s.value)==null?void 0:v.find)==null?void 0:m.call(v,$=>$.venue==="*"))||null,isError:s.isError}}function tv(e,r,t,n=300,a=!0){var m,$,h,g;const i=Y.useContext(jn.ConfigContext);if(!i)throw new Error("Missing config context");const{value:s,isError:f}=In(e,n,a,i.baseUrl,i.tenant,r);let o=null,v=null;return s&&((m=s==null?void 0:s.url)==null?void 0:m.length)>0&&(o=(($=s.url.find(A=>A.locale===t))==null?void 0:$.value)||((h=s.url.find(A=>A.locale==="*"))==null?void 0:h.value)||null),!o&&s&&((g=s==null?void 0:s.url)==null?void 0:g.length)>0&&(v=s.url[0].value),{url:o,fallbackUrl:v,isError:f}}function nv({kioskMediaId:e,kioskMediaType:r,intervalSeconds:t=600,withLocalStorage:n=!0,baseUrl:a,tenant:i,venue:s,locale:f}){var p;const{value:o,isError:v,isLoading:m}=Ir(e,t,n,a,i),$=(o==null?void 0:o[r])||[],h=rv($,s),g=ev(h,f),A=!g&&h&&((p=h==null?void 0:h.url)==null?void 0:p.length)>0?h.url[0].value:null;return{url:g,fallbackUrl:A,mediaType:h==null?void 0:h.mediaType,isError:v,isLoading:m}}function av(e,r){Y.useEffect(()=>{const t=n=>{!e.current||e.current.contains(n.target)||r(n)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e,r])}function iv(e){const[r,t]=Y.useState(_e(e==null?void 0:e.DINE_IN)),[n,a]=Y.useState(_e(e==null?void 0:e.TAKE_AWAY));function i(){const s=_e(e==null?void 0:e.DINE_IN),f=_e(e==null?void 0:e.TAKE_AWAY);s!==r&&(console.log("dine in open changed",r,"=>",s),t(s)),f!==n&&(console.log("take away open changed",n,"=>",f),a(f))}return Y.useEffect(()=>{i()},[e]),Le(i,6e4),{dineInOpen:r,takeAwayOpen:n}}var fr={},sv=e=>encodeURIComponent(e).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Cn="%[a-f0-9]{2}",Rt=new RegExp("("+Cn+")|([^%]+?)","gi"),Nt=new RegExp("("+Cn+")+","gi");function cr(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;var t=e.slice(0,r),n=e.slice(r);return Array.prototype.concat.call([],cr(t),cr(n))}function ov(e){try{return decodeURIComponent(e)}catch{for(var r=e.match(Rt)||[],t=1;t<r.length;t++)e=cr(r,t).join(""),r=e.match(Rt)||[];return e}}function uv(e){for(var r={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},t=Nt.exec(e);t;){try{r[t[0]]=decodeURIComponent(t[0])}catch{var n=ov(t[0]);n!==t[0]&&(r[t[0]]=n)}t=Nt.exec(e)}r["%C2"]="\uFFFD";for(var a=Object.keys(r),i=0;i<a.length;i++){var s=a[i];e=e.replace(new RegExp(s,"g"),r[s])}return e}var fv=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return uv(e)}},cv=(e,r)=>{if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(r==="")return[e];const t=e.indexOf(r);return t===-1?[e]:[e.slice(0,t),e.slice(t+r.length)]},lv=function(e,r){for(var t={},n=Object.keys(e),a=Array.isArray(r),i=0;i<n.length;i++){var s=n[i],f=e[s];(a?r.indexOf(s)!==-1:r(s,f,e))&&(t[s]=f)}return t};(function(e){const r=sv,t=fv,n=cv,a=lv,i=u=>u==null,s=Symbol("encodeFragmentIdentifier");function f(u){switch(u.arrayFormat){case"index":return c=>(d,l)=>{const y=d.length;return l===void 0||u.skipNull&&l===null||u.skipEmptyString&&l===""?d:l===null?[...d,[m(c,u),"[",y,"]"].join("")]:[...d,[m(c,u),"[",m(y,u),"]=",m(l,u)].join("")]};case"bracket":return c=>(d,l)=>l===void 0||u.skipNull&&l===null||u.skipEmptyString&&l===""?d:l===null?[...d,[m(c,u),"[]"].join("")]:[...d,[m(c,u),"[]=",m(l,u)].join("")];case"colon-list-separator":return c=>(d,l)=>l===void 0||u.skipNull&&l===null||u.skipEmptyString&&l===""?d:l===null?[...d,[m(c,u),":list="].join("")]:[...d,[m(c,u),":list=",m(l,u)].join("")];case"comma":case"separator":case"bracket-separator":{const c=u.arrayFormat==="bracket-separator"?"[]=":"=";return d=>(l,y)=>y===void 0||u.skipNull&&y===null||u.skipEmptyString&&y===""?l:(y=y===null?"":y,l.length===0?[[m(d,u),c,m(y,u)].join("")]:[[l,m(y,u)].join(u.arrayFormatSeparator)])}default:return c=>(d,l)=>l===void 0||u.skipNull&&l===null||u.skipEmptyString&&l===""?d:l===null?[...d,m(c,u)]:[...d,[m(c,u),"=",m(l,u)].join("")]}}function o(u){let c;switch(u.arrayFormat){case"index":return(d,l,y)=>{if(c=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!c){y[d]=l;return}y[d]===void 0&&(y[d]={}),y[d][c[1]]=l};case"bracket":return(d,l,y)=>{if(c=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!c){y[d]=l;return}if(y[d]===void 0){y[d]=[l];return}y[d]=[].concat(y[d],l)};case"colon-list-separator":return(d,l,y)=>{if(c=/(:list)$/.exec(d),d=d.replace(/:list$/,""),!c){y[d]=l;return}if(y[d]===void 0){y[d]=[l];return}y[d]=[].concat(y[d],l)};case"comma":case"separator":return(d,l,y)=>{const w=typeof l=="string"&&l.includes(u.arrayFormatSeparator),O=typeof l=="string"&&!w&&$(l,u).includes(u.arrayFormatSeparator);l=O?$(l,u):l;const I=w||O?l.split(u.arrayFormatSeparator).map(R=>$(R,u)):l===null?l:$(l,u);y[d]=I};case"bracket-separator":return(d,l,y)=>{const w=/(\[\])$/.test(d);if(d=d.replace(/\[\]$/,""),!w){y[d]=l&&$(l,u);return}const O=l===null?[]:l.split(u.arrayFormatSeparator).map(I=>$(I,u));if(y[d]===void 0){y[d]=O;return}y[d]=[].concat(y[d],O)};default:return(d,l,y)=>{if(y[d]===void 0){y[d]=l;return}y[d]=[].concat(y[d],l)}}}function v(u){if(typeof u!="string"||u.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function m(u,c){return c.encode?c.strict?r(u):encodeURIComponent(u):u}function $(u,c){return c.decode?t(u):u}function h(u){return Array.isArray(u)?u.sort():typeof u=="object"?h(Object.keys(u)).sort((c,d)=>Number(c)-Number(d)).map(c=>u[c]):u}function g(u){const c=u.indexOf("#");return c!==-1&&(u=u.slice(0,c)),u}function A(u){let c="";const d=u.indexOf("#");return d!==-1&&(c=u.slice(d)),c}function p(u){u=g(u);const c=u.indexOf("?");return c===-1?"":u.slice(c+1)}function T(u,c){return c.parseNumbers&&!Number.isNaN(Number(u))&&typeof u=="string"&&u.trim()!==""?u=Number(u):c.parseBooleans&&u!==null&&(u.toLowerCase()==="true"||u.toLowerCase()==="false")&&(u=u.toLowerCase()==="true"),u}function j(u,c){c=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},c),v(c.arrayFormatSeparator);const d=o(c),l=Object.create(null);if(typeof u!="string"||(u=u.trim().replace(/^[?#&]/,""),!u))return l;for(const y of u.split("&")){if(y==="")continue;let[w,O]=n(c.decode?y.replace(/\+/g," "):y,"=");O=O===void 0?null:["comma","separator","bracket-separator"].includes(c.arrayFormat)?O:$(O,c),d($(w,c),O,l)}for(const y of Object.keys(l)){const w=l[y];if(typeof w=="object"&&w!==null)for(const O of Object.keys(w))w[O]=T(w[O],c);else l[y]=T(w,c)}return c.sort===!1?l:(c.sort===!0?Object.keys(l).sort():Object.keys(l).sort(c.sort)).reduce((y,w)=>{const O=l[w];return Boolean(O)&&typeof O=="object"&&!Array.isArray(O)?y[w]=h(O):y[w]=O,y},Object.create(null))}e.extract=p,e.parse=j,e.stringify=(u,c)=>{if(!u)return"";c=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},c),v(c.arrayFormatSeparator);const d=O=>c.skipNull&&i(u[O])||c.skipEmptyString&&u[O]==="",l=f(c),y={};for(const O of Object.keys(u))d(O)||(y[O]=u[O]);const w=Object.keys(y);return c.sort!==!1&&w.sort(c.sort),w.map(O=>{const I=u[O];return I===void 0?"":I===null?m(O,c):Array.isArray(I)?I.length===0&&c.arrayFormat==="bracket-separator"?m(O,c)+"[]":I.reduce(l(O),[]).join("&"):m(O,c)+"="+m(I,c)}).filter(O=>O.length>0).join("&")},e.parseUrl=(u,c)=>{c=Object.assign({decode:!0},c);const[d,l]=n(u,"#");return Object.assign({url:d.split("?")[0]||"",query:j(p(u),c)},c&&c.parseFragmentIdentifier&&l?{fragmentIdentifier:$(l,c)}:{})},e.stringifyUrl=(u,c)=>{c=Object.assign({encode:!0,strict:!0,[s]:!0},c);const d=g(u.url).split("?")[0]||"",l=e.extract(u.url),y=e.parse(l,{sort:!1}),w=Object.assign(y,u.query);let O=e.stringify(w,c);O&&(O=`?${O}`);let I=A(u.url);return u.fragmentIdentifier&&(I=`#${c[s]?m(u.fragmentIdentifier,c):u.fragmentIdentifier}`),`${d}${O}${I}`},e.pick=(u,c,d)=>{d=Object.assign({parseFragmentIdentifier:!0,[s]:!1},d);const{url:l,query:y,fragmentIdentifier:w}=e.parseUrl(u,d);return e.stringifyUrl({url:l,query:a(y,c),fragmentIdentifier:w},d)},e.exclude=(u,c,d)=>{const l=Array.isArray(c)?y=>!c.includes(y):(y,w)=>!c(y,w);return e.pick(u,l,d)}})(fr);const dv=[".png",".jpg",".jpeg",".webp",".bmp",".tiff"];function Dn(e,r=500){const t=fr.parseUrl(e);if(!(e.startsWith("https://orderingstackmedia.blob.core.windows.net/pictures")||e.startsWith("https://orderingstack-mmedia-tools.azurewebsites.net/api/img/")))return e;const n=t.url.substring(t.url.lastIndexOf("."));return dv.includes(n)?fr.stringifyUrl({url:t.url.replace("https://orderingstackmedia.blob.core.windows.net/pictures/","https://orderingstack-mmedia-tools.azurewebsites.net/api/img/"),query:{...t.query,w:r}}):e}function hv(e,r=500){return Dn(e,r)}exports.getGroupedBucketLines=wh;exports.getMediaUrl=Dn;exports.groupOrderLines=_r;exports.useAvailability=ic;exports.useCms=Ir;exports.useDisplayPrice=Oh;exports.useGroupOrderLines=Sh;exports.useInterval=Le;exports.useKioskChannelsAvailability=iv;exports.useKioskMediaCms=nv;exports.useLocalizedVenueMedia=tv;exports.useMediaUrl=hv;exports.useOnClickOutside=av;exports.useVenueCms=In;
|
|
3
3
|
//# sourceMappingURL=index.cjs.js.map
|