@everymatrix/cashier-header 1.88.6 → 1.88.7
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/components/{CashierHeader-BOyZAhWT.cjs → CashierHeader-CfGAEEyA.cjs} +1 -1
- package/components/{CashierHeader-CrD00HbH.js → CashierHeader-DHCYBOaL.js} +1 -1
- package/components/{CashierHeader-CXow1th-.js → CashierHeader-DYGp3HI6.js} +1 -2
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
3
|
`,X.MISSING_INTL_API,a);var I=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));H=h.options[I]||h.options.other}if(!H)throw new ct(h.value,m,Object.keys(h.options),a);o.push.apply(o,fe(H.value,t,r,n,i,m-(h.offset||0)));continue}}return Dn(o)}function Fn(e,t){return t?T(T(T({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=T(T({},e[n]),t[n]||{}),r},{})):e}function jn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Fn(e[n],t[n]),r},T({},e)):e}function Ne(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function kn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ce(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Oe([void 0],r,!1)))},{cache:Ne(e.number),strategy:Pe.variadic}),getDateTimeFormat:Ce(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Oe([void 0],r,!1)))},{cache:Ne(e.dateTime),strategy:Pe.variadic}),getPluralRules:Ce(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Oe([void 0],r,!1)))},{cache:Ne(e.pluralRules),strategy:Pe.variadic})}}var Qt=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var h=u.reduce(function(c,m){return!c.length||m.type!==x.literal||typeof c[c.length-1]!="string"?c.push(m.value):c[c.length-1]+=m.value,c},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return fe(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Yr(a,["formatters"]);this.ast=e.__parse(t,T(T({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=jn(e.formats,n),this.formatters=i&&i.formatters||kn(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Rn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function Vn(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const P={},Xn=(e,t,r)=>r&&(t in P||(P[t]={}),e in P[t]||(P[t][e]=r),r),Jt=(e,t)=>{if(t==null)return;if(t in P&&e in P[t])return P[t][e];const r=se(t);for(let n=0;n<r.length;n++){const i=r[n],s=zn(i,e);if(s)return Xn(e,t,s)}};let Ze;const ie=_e({});function Wn(e){return Ze[e]||null}function qt(e){return e in Ze}function zn(e,t){if(!qt(e))return null;const r=Wn(e);return Vn(r,t)}function Zn(e){if(e==null)return;const t=se(e);for(let r=0;r<t.length;r++){const n=t[r];if(qt(n))return n}}function Yt(e,...t){delete P[e],ie.update(r=>(r[e]=qr.all([r[e]||{},...t]),r))}Z([ie],([e])=>Object.keys(e));ie.subscribe(e=>Ze=e);const ce={};function Qn(e,t){ce[e].delete(t),ce[e].size===0&&delete ce[e]}function Kt(e){return ce[e]}function Jn(e){return se(e).map(t=>{const r=Kt(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function de(e){return e==null?!1:se(e).some(t=>{var r;return(r=Kt(t))==null?void 0:r.size})}function qn(e,t){return Promise.all(t.map(n=>(Qn(e,n),n().then(i=>i.default||i)))).then(n=>Yt(e,...n))}const J={};function er(e){if(!de(e))return e in J?J[e]:Promise.resolve();const t=Jn(e);return J[e]=Promise.all(t.map(([r,n])=>qn(r,n))).then(()=>{if(de(e))return er(e);delete J[e]}),J[e]}var mt=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,ei=(e,t)=>{var r={};for(var n in e)Yn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&mt)for(var n of mt(e))t.indexOf(n)<0&&Kn.call(e,n)&&(r[n]=e[n]);return r};const ti={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function ri({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${se(e).join('", "')}".${de(N())?`
|
|
4
4
|
|
|
5
|
-
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ni={fallbackLocale:null,loadingDelay:200,formats:ti,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},q=ni;function W(){return q}function ii(e){const t=e,{formats:r}=t,n=ei(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Qt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=ri:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(q,n,{initialLocale:i}),r&&("number"in r&&Object.assign(q.formats.number,r.number),"date"in r&&Object.assign(q.formats.date,r.date),"time"in r&&Object.assign(q.formats.time,r.time)),R.set(i)}const Ie=_e(!1);var si=Object.defineProperty,oi=Object.defineProperties,ai=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,dt=(e,t,r)=>t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,li=(e,t)=>{for(var r in t||(t={}))ui.call(t,r)&&dt(e,r,t[r]);if(pt)for(var r of pt(t))hi.call(t,r)&&dt(e,r,t[r]);return e},fi=(e,t)=>oi(e,ai(t));let Xe;const be=_e(null);function bt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function se(e,t=W().fallbackLocale){const r=bt(e);return t?[...new Set([...r,...bt(t)])]:r}function N(){return Xe!=null?Xe:void 0}be.subscribe(e=>{Xe=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ci=e=>{if(e&&Zn(e)&&de(e)){const{loadingDelay:t}=W();let r;return typeof window!="undefined"&&N()!=null&&t?r=window.setTimeout(()=>Ie.set(!0),t):Ie.set(!0),er(e).then(()=>{be.set(e)}).finally(()=>{clearTimeout(r),Ie.set(!1)})}return be.set(e)},R=fi(li({},be),{set:ci}),xe=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var mi=Object.defineProperty,ge=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,gt=(e,t,r)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qe=(e,t)=>{for(var r in t||(t={}))tr.call(t,r)&>(e,r,t[r]);if(ge)for(var r of ge(t))rr.call(t,r)&>(e,r,t[r]);return e},Q=(e,t)=>{var r={};for(var n in e)tr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ge)for(var n of ge(e))t.indexOf(n)<0&&rr.call(e,n)&&(r[n]=e[n]);return r};const te=(e,t)=>{const{formats:r}=W();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pi=xe(e=>{var t=e,{locale:r,format:n}=t,i=Q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=te("number",n)),new Intl.NumberFormat(r,i)}),di=xe(e=>{var t=e,{locale:r,format:n}=t,i=Q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=te("date",n):Object.keys(i).length===0&&(i=te("date","short")),new Intl.DateTimeFormat(r,i)}),bi=xe(e=>{var t=e,{locale:r,format:n}=t,i=Q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=te("time",n):Object.keys(i).length===0&&(i=te("time","short")),new Intl.DateTimeFormat(r,i)}),gi=(e={})=>{var t=e,{locale:r=N()}=t,n=Q(t,["locale"]);return pi(Qe({locale:r},n))},_i=(e={})=>{var t=e,{locale:r=N()}=t,n=Q(t,["locale"]);return di(Qe({locale:r},n))},yi=(e={})=>{var t=e,{locale:r=N()}=t,n=Q(t,["locale"]);return bi(Qe({locale:r},n))},Ei=xe((e,t=N())=>new Qt(e,t,W().formats,{ignoreTag:W().ignoreTag})),xi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=N(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Jt(e,l);if(!h)h=(s=(i=(n=(r=W()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=Ei(h,l).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},vi=(e,t)=>yi(t).format(e),Hi=(e,t)=>_i(t).format(e),wi=(e,t)=>gi(t).format(e),Si=(e,t=N())=>Jt(e,t),Bi=Z([R,ie],()=>xi);Z([R],()=>vi);Z([R],()=>Hi);Z([R],()=>wi);Z([R,ie],()=>Si);function _t(e,t){Yt(e,t)}function Ti(e){ii({fallbackLocale:"en"}),R.set(e)}const yt={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},fr:{header:{general:"Caisse",deposit:"Dépôt",withdraw:"Retrait"}}},F="__WIDGET_GLOBAL_STYLE_CACHE__";function Ai(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Oi(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ci(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Pi(e,t),r;window[F]||(window[F]={}),r=Li(e,t);const s=r.unsubscribe.bind(r),a=()=>{if(window[F][t]){const o=window[F][t];o.refCount>1?o.refCount=o.refCount-1:delete window[F][t]}s()};return r.unsubscribe=a,r}function Pi(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function Li(e,t){return window.emMessageBus.subscribe(t,r=>{var o;if(!e)return;const n=e.getRootNode(),i=window[F];let s=(o=i[t])==null?void 0:o.sheet;s?i[t].refCount=i[t].refCount+1:(s=new CSSStyleSheet,s.replaceSync(r),i[t]={sheet:s,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(s)||(n.adoptedStyleSheets=[...a,s])})}function Ni(e){dr(e,"svelte-1p7ag40",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}")}const Ii=e=>({}),Et=e=>({}),Mi=e=>({}),xt=e=>({}),Ri=e=>({}),vt=e=>({});function Ht(e){let t,r,n;return{c(){t=z("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>',ne(t,"class","CashierHeaderLeftButton")},m(i,s){M(i,t,s),r||(n=Ct(t,"click",e[6]),r=!0)},p:S,d(i){i&&L(t),r=!1,n()}}}function $i(e){let t,r=e[1]&&Ht(e);return{c(){r&&r.c(),t=Ot()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[1]?r?r.p(n,i):(r=Ht(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function Ui(e){let t,r=e[4](e[2])+"",n;return{c(){t=z("span"),n=ze(r),ne(t,"class","CashierHeaderTitle")},m(i,s){M(i,t,s),me(t,n)},p(i,s){s&20&&r!==(r=i[4](i[2])+"")&&yr(n,r)},d(i){i&&L(t)}}}function wt(e){let t,r,n;return{c(){t=z("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"></path></svg>',ne(t,"class","CashierHeaderRightButton")},m(i,s){M(i,t,s),r||(n=Ct(t,"click",e[5]),r=!0)},p:S,d(i){i&&L(t),r=!1,n()}}}function Di(e){let t,r=e[3]&&wt(e);return{c(){r&&r.c(),t=Ot()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[3]?r?r.p(n,i):(r=wt(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function Gi(e){let t,r,n,i;const s=e[16].leftButton,a=He(s,e,e[15],vt),o=a||$i(e),l=e[16].title,u=He(l,e,e[15],xt),h=u||Ui(e),c=e[16].rightButton,m=He(c,e,e[15],Et),p=m||Di(e);return{c(){t=z("div"),o&&o.c(),r=rt(),h&&h.c(),n=rt(),p&&p.c(),ne(t,"class","CashierHeader")},m(f,_){M(f,t,_),o&&o.m(t,null),me(t,r),h&&h.m(t,null),me(t,n),p&&p.m(t,null),e[17](t),i=!0},p(f,[_]){a?a.p&&(!i||_&32768)&&Se(a,s,f,f[15],i?we(s,f[15],_,Ri):Be(f[15]),vt):o&&o.p&&(!i||_&2)&&o.p(f,i?_:-1),u?u.p&&(!i||_&32768)&&Se(u,l,f,f[15],i?we(l,f[15],_,Mi):Be(f[15]),xt):h&&h.p&&(!i||_&20)&&h.p(f,i?_:-1),m?m.p&&(!i||_&32768)&&Se(m,c,f,f[15],i?we(c,f[15],_,Ii):Be(f[15]),Et):p&&p.p&&(!i||_&8)&&p.p(f,i?_:-1)},i(f){i||(he(o,f),he(h,f),he(p,f),i=!0)},o(f){Ae(o,f),Ae(h,f),Ae(p,f),i=!1},d(f){f&&L(t),o&&o.d(f),h&&h.d(f),p&&p.d(f),e[17](null)}}}function Fi(e,t,r){let n;pr(e,Bi,g=>r(4,n=g));let{$$slots:i={},$$scope:s}=t,{clientstyling:a=""}=t,{clientstylingurl:o=""}=t,{translationurl:l=""}=t,{showbackbutton:u=""}=t,{title:h="header.general"}=t,{lang:c="en"}=t,{showclosebutton:m=""}=t,{mbsource:p=""}=t,f,_,v=!1,C,A=!1;const H=()=>{fetch(l).then(g=>g.json()).then(g=>{Object.keys(g).forEach(Je=>{_t(Je,g[Je])})}).catch(g=>{console.log(g)})};Object.keys(yt).forEach(g=>{_t(g,yt[g])});const I=()=>{Ti(c)},O=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},$=()=>{window.postMessage({type:"BackCashier"},window.location.href)},oe=()=>{r(1,v=!!u&&u!=="false")},ir=()=>{r(3,A=!!m&&m!=="false")},sr=()=>{r(2,C=h||"header.general")};vr(()=>()=>{});function or(g){Me[g?"unshift":"push"](()=>{f=g,r(0,f)})}return e.$$set=g=>{"clientstyling"in g&&r(7,a=g.clientstyling),"clientstylingurl"in g&&r(8,o=g.clientstylingurl),"translationurl"in g&&r(9,l=g.translationurl),"showbackbutton"in g&&r(10,u=g.showbackbutton),"title"in g&&r(11,h=g.title),"lang"in g&&r(12,c=g.lang),"showclosebutton"in g&&r(13,m=g.showclosebutton),"mbsource"in g&&r(14,p=g.mbsource),"$$scope"in g&&r(15,s=g.$$scope)},e.$$.update=()=>{e.$$.dirty&4096&&c&&I(),e.$$.dirty&6144&&c&&h&&sr(),e.$$.dirty&129&&a&&f&&Ai(f,a),e.$$.dirty&257&&o&&f&&Oi(f,o),e.$$.dirty&16385&&p&&f&&Ci(f,`${p}.Style`,_),e.$$.dirty&4608&&c&&l&&H(),e.$$.dirty&1024&&u&&oe(),e.$$.dirty&8192&&m&&ir()},[f,v,C,A,n,O,$,a,o,l,u,h,c,m,p,s,i,or]}class nr extends Nr{constructor(t){super(),Pr(this,t,Fi,Gi,Bt,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},Ni)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),B()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),B()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),B()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),B()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),B()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),B()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),B()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),B()}}Lr(nr,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);exports.default=nr;
|
|
5
|
+
Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ni={fallbackLocale:null,loadingDelay:200,formats:ti,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},q=ni;function W(){return q}function ii(e){const t=e,{formats:r}=t,n=ei(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{Qt.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch(s){console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=ri:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(q,n,{initialLocale:i}),r&&("number"in r&&Object.assign(q.formats.number,r.number),"date"in r&&Object.assign(q.formats.date,r.date),"time"in r&&Object.assign(q.formats.time,r.time)),R.set(i)}const Ie=_e(!1);var si=Object.defineProperty,oi=Object.defineProperties,ai=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,dt=(e,t,r)=>t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,li=(e,t)=>{for(var r in t||(t={}))ui.call(t,r)&&dt(e,r,t[r]);if(pt)for(var r of pt(t))hi.call(t,r)&&dt(e,r,t[r]);return e},fi=(e,t)=>oi(e,ai(t));let Xe;const be=_e(null);function bt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function se(e,t=W().fallbackLocale){const r=bt(e);return t?[...new Set([...r,...bt(t)])]:r}function N(){return Xe!=null?Xe:void 0}be.subscribe(e=>{Xe=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ci=e=>{if(e&&Zn(e)&&de(e)){const{loadingDelay:t}=W();let r;return typeof window!="undefined"&&N()!=null&&t?r=window.setTimeout(()=>Ie.set(!0),t):Ie.set(!0),er(e).then(()=>{be.set(e)}).finally(()=>{clearTimeout(r),Ie.set(!1)})}return be.set(e)},R=fi(li({},be),{set:ci}),xe=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var mi=Object.defineProperty,ge=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,gt=(e,t,r)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qe=(e,t)=>{for(var r in t||(t={}))tr.call(t,r)&>(e,r,t[r]);if(ge)for(var r of ge(t))rr.call(t,r)&>(e,r,t[r]);return e},Q=(e,t)=>{var r={};for(var n in e)tr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ge)for(var n of ge(e))t.indexOf(n)<0&&rr.call(e,n)&&(r[n]=e[n]);return r};const te=(e,t)=>{const{formats:r}=W();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},pi=xe(e=>{var t=e,{locale:r,format:n}=t,i=Q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=te("number",n)),new Intl.NumberFormat(r,i)}),di=xe(e=>{var t=e,{locale:r,format:n}=t,i=Q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=te("date",n):Object.keys(i).length===0&&(i=te("date","short")),new Intl.DateTimeFormat(r,i)}),bi=xe(e=>{var t=e,{locale:r,format:n}=t,i=Q(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=te("time",n):Object.keys(i).length===0&&(i=te("time","short")),new Intl.DateTimeFormat(r,i)}),gi=(e={})=>{var t=e,{locale:r=N()}=t,n=Q(t,["locale"]);return pi(Qe({locale:r},n))},_i=(e={})=>{var t=e,{locale:r=N()}=t,n=Q(t,["locale"]);return di(Qe({locale:r},n))},yi=(e={})=>{var t=e,{locale:r=N()}=t,n=Q(t,["locale"]);return bi(Qe({locale:r},n))},Ei=xe((e,t=N())=>new Qt(e,t,W().formats,{ignoreTag:W().ignoreTag})),xi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=N(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Jt(e,l);if(!h)h=(s=(i=(n=(r=W()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=Ei(h,l).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},vi=(e,t)=>yi(t).format(e),Hi=(e,t)=>_i(t).format(e),wi=(e,t)=>gi(t).format(e),Si=(e,t=N())=>Jt(e,t),Bi=Z([R,ie],()=>xi);Z([R],()=>vi);Z([R],()=>Hi);Z([R],()=>wi);Z([R,ie],()=>Si);function _t(e,t){Yt(e,t)}function Ti(e){ii({fallbackLocale:"en"}),R.set(e)}const yt={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}},fr:{header:{general:"Caisse",deposit:"Dépôt",withdraw:"Retrait"}}},F="__WIDGET_GLOBAL_STYLE_CACHE__";function Ai(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Oi(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ci(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Pi(e,t),r;window[F]||(window[F]={}),r=Li(e,t);const s=r.unsubscribe.bind(r),a=()=>{if(window[F][t]){const o=window[F][t];o.refCount>1?o.refCount=o.refCount-1:delete window[F][t]}s()};return r.unsubscribe=a,r}function Pi(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function Li(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),i=window[F];let s=i[t]&&i[t].sheet;s?i[t].refCount=i[t].refCount+1:(s=new CSSStyleSheet,s.replaceSync(r),i[t]={sheet:s,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(s)||(n.adoptedStyleSheets=[...a,s])})}function Ni(e){dr(e,"svelte-1p7ag40",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer;fill:var(--emw--color-primary, #F9C405)}")}const Ii=e=>({}),Et=e=>({}),Mi=e=>({}),xt=e=>({}),Ri=e=>({}),vt=e=>({});function Ht(e){let t,r,n;return{c(){t=z("div"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z"></path></svg>',ne(t,"class","CashierHeaderLeftButton")},m(i,s){M(i,t,s),r||(n=Ct(t,"click",e[6]),r=!0)},p:S,d(i){i&&L(t),r=!1,n()}}}function $i(e){let t,r=e[1]&&Ht(e);return{c(){r&&r.c(),t=Ot()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[1]?r?r.p(n,i):(r=Ht(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function Ui(e){let t,r=e[4](e[2])+"",n;return{c(){t=z("span"),n=ze(r),ne(t,"class","CashierHeaderTitle")},m(i,s){M(i,t,s),me(t,n)},p(i,s){s&20&&r!==(r=i[4](i[2])+"")&&yr(n,r)},d(i){i&&L(t)}}}function wt(e){let t,r,n;return{c(){t=z("span"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"></path></svg>',ne(t,"class","CashierHeaderRightButton")},m(i,s){M(i,t,s),r||(n=Ct(t,"click",e[5]),r=!0)},p:S,d(i){i&&L(t),r=!1,n()}}}function Di(e){let t,r=e[3]&&wt(e);return{c(){r&&r.c(),t=Ot()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[3]?r?r.p(n,i):(r=wt(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&L(t),r&&r.d(n)}}}function Gi(e){let t,r,n,i;const s=e[16].leftButton,a=He(s,e,e[15],vt),o=a||$i(e),l=e[16].title,u=He(l,e,e[15],xt),h=u||Ui(e),c=e[16].rightButton,m=He(c,e,e[15],Et),p=m||Di(e);return{c(){t=z("div"),o&&o.c(),r=rt(),h&&h.c(),n=rt(),p&&p.c(),ne(t,"class","CashierHeader")},m(f,_){M(f,t,_),o&&o.m(t,null),me(t,r),h&&h.m(t,null),me(t,n),p&&p.m(t,null),e[17](t),i=!0},p(f,[_]){a?a.p&&(!i||_&32768)&&Se(a,s,f,f[15],i?we(s,f[15],_,Ri):Be(f[15]),vt):o&&o.p&&(!i||_&2)&&o.p(f,i?_:-1),u?u.p&&(!i||_&32768)&&Se(u,l,f,f[15],i?we(l,f[15],_,Mi):Be(f[15]),xt):h&&h.p&&(!i||_&20)&&h.p(f,i?_:-1),m?m.p&&(!i||_&32768)&&Se(m,c,f,f[15],i?we(c,f[15],_,Ii):Be(f[15]),Et):p&&p.p&&(!i||_&8)&&p.p(f,i?_:-1)},i(f){i||(he(o,f),he(h,f),he(p,f),i=!0)},o(f){Ae(o,f),Ae(h,f),Ae(p,f),i=!1},d(f){f&&L(t),o&&o.d(f),h&&h.d(f),p&&p.d(f),e[17](null)}}}function Fi(e,t,r){let n;pr(e,Bi,g=>r(4,n=g));let{$$slots:i={},$$scope:s}=t,{clientstyling:a=""}=t,{clientstylingurl:o=""}=t,{translationurl:l=""}=t,{showbackbutton:u=""}=t,{title:h="header.general"}=t,{lang:c="en"}=t,{showclosebutton:m=""}=t,{mbsource:p=""}=t,f,_,v=!1,C,A=!1;const H=()=>{fetch(l).then(g=>g.json()).then(g=>{Object.keys(g).forEach(Je=>{_t(Je,g[Je])})}).catch(g=>{console.log(g)})};Object.keys(yt).forEach(g=>{_t(g,yt[g])});const I=()=>{Ti(c)},O=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},$=()=>{window.postMessage({type:"BackCashier"},window.location.href)},oe=()=>{r(1,v=!!u&&u!=="false")},ir=()=>{r(3,A=!!m&&m!=="false")},sr=()=>{r(2,C=h||"header.general")};vr(()=>()=>{});function or(g){Me[g?"unshift":"push"](()=>{f=g,r(0,f)})}return e.$$set=g=>{"clientstyling"in g&&r(7,a=g.clientstyling),"clientstylingurl"in g&&r(8,o=g.clientstylingurl),"translationurl"in g&&r(9,l=g.translationurl),"showbackbutton"in g&&r(10,u=g.showbackbutton),"title"in g&&r(11,h=g.title),"lang"in g&&r(12,c=g.lang),"showclosebutton"in g&&r(13,m=g.showclosebutton),"mbsource"in g&&r(14,p=g.mbsource),"$$scope"in g&&r(15,s=g.$$scope)},e.$$.update=()=>{e.$$.dirty&4096&&c&&I(),e.$$.dirty&6144&&c&&h&&sr(),e.$$.dirty&129&&a&&f&&Ai(f,a),e.$$.dirty&257&&o&&f&&Oi(f,o),e.$$.dirty&16385&&p&&f&&Ci(f,`${p}.Style`,_),e.$$.dirty&4608&&c&&l&&H(),e.$$.dirty&1024&&u&&oe(),e.$$.dirty&8192&&m&&ir()},[f,v,C,A,n,O,$,a,o,l,u,h,c,m,p,s,i,or]}class nr extends Nr{constructor(t){super(),Pr(this,t,Fi,Gi,Bt,{clientstyling:7,clientstylingurl:8,translationurl:9,showbackbutton:10,title:11,lang:12,showclosebutton:13,mbsource:14},Ni)}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),B()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),B()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),B()}get showbackbutton(){return this.$$.ctx[10]}set showbackbutton(t){this.$$set({showbackbutton:t}),B()}get title(){return this.$$.ctx[11]}set title(t){this.$$set({title:t}),B()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),B()}get showclosebutton(){return this.$$.ctx[13]}set showclosebutton(t){this.$$set({showclosebutton:t}),B()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),B()}}Lr(nr,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{},showclosebutton:{},mbsource:{}},["leftButton","title","rightButton"],[],!0);exports.default=nr;
|
|
@@ -3861,7 +3861,7 @@ function Ei(e, t) {
|
|
|
3861
3861
|
if (!e)
|
|
3862
3862
|
return;
|
|
3863
3863
|
const n = e.getRootNode(), i = window[G];
|
|
3864
|
-
let s = i[t]
|
|
3864
|
+
let s = i[t] && i[t].sheet;
|
|
3865
3865
|
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
3866
3866
|
sheet: s,
|
|
3867
3867
|
refCount: 1
|
|
@@ -3895,11 +3895,10 @@ function Oi(e, t) {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
function Pi(e, t) {
|
|
3897
3897
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
3898
|
-
var o;
|
|
3899
3898
|
if (!e)
|
|
3900
3899
|
return;
|
|
3901
3900
|
const n = e.getRootNode(), i = window[F];
|
|
3902
|
-
let s =
|
|
3901
|
+
let s = i[t] && i[t].sheet;
|
|
3903
3902
|
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
3904
3903
|
sheet: s,
|
|
3905
3904
|
refCount: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierHeader-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierHeader-CfGAEEyA.cjs")).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}
|
package/es2015/cashier-header.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierHeader-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierHeader-DYGp3HI6.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-header") && customElements.define("cashier-header", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-header.js
CHANGED