@everymatrix/cashier-method-details 1.45.0 → 1.45.2
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/CashierConfirmModal-BsoB5fQM.cjs +4 -0
- package/components/{CashierConfirmModal-B-t1-wAt.js → CashierConfirmModal-Dw8BnUfp.js} +168 -168
- package/components/{CashierError-DaumM6Zr.js → CashierError-B_iMgTfr.js} +28 -27
- package/components/CashierError-ClzxZoH7.cjs +5 -0
- package/components/CashierHeader-BU_vM2lH.cjs +1 -0
- package/components/CashierHeader-VE5z702l.js +360 -0
- package/components/{CashierIframeRedirect-Bilctj-5.js → CashierIframeRedirect-CUdjcENK.js} +72 -73
- package/components/CashierIframeRedirect-DSYHz0IC.cjs +1 -0
- package/components/{CashierMethodDetails-CJU3RjOA.js → CashierMethodDetails-5wGvaaR0.js} +674 -675
- package/components/CashierMethodDetails-DPowLei9.cjs +18 -0
- package/components/CashierModal-BFlGJozz.js +221 -0
- package/components/CashierModal-DljNagOg.cjs +1 -0
- package/components/CashierNotifications-BhCyEcyg.js +136 -0
- package/components/CashierNotifications-FlAVIynI.cjs +1 -0
- package/components/{CashierReceiptPage-DT7FhfRz.js → CashierReceiptPage-CY8dJVSv.js} +242 -243
- package/components/CashierReceiptPage-gWSm3RqW.cjs +1 -0
- package/components/CashierSpinner-DREUPtXI.js +71 -0
- package/components/CashierSpinner-DUwdQyI3.cjs +1 -0
- package/es2015/cashier-method-details.cjs +1 -1
- package/es2015/cashier-method-details.js +1 -1
- package/package.json +2 -2
- package/components/CashierConfirmModal-O8Y6vOPF.cjs +0 -4
- package/components/CashierError-CnDiY61e.cjs +0 -5
- package/components/CashierHeader-4ARwc1sM.cjs +0 -1
- package/components/CashierHeader-CYcLko5g.js +0 -361
- package/components/CashierIframeRedirect-BOPLcueW.cjs +0 -1
- package/components/CashierMethodDetails-7O4DrJHq.cjs +0 -18
- package/components/CashierModal-CdNYc0Aj.js +0 -220
- package/components/CashierModal-DjXj2L6b.cjs +0 -1
- package/components/CashierNotifications-BVX2JvTh.cjs +0 -1
- package/components/CashierNotifications-DOgyzpyH.js +0 -136
- package/components/CashierReceiptPage-D9_BjYHP.cjs +0 -1
- package/components/CashierSpinner-BUe-mWNE.js +0 -71
- package/components/CashierSpinner-C7awkOxo.cjs +0 -1
| @@ -0,0 +1,71 @@ | |
| 1 | 
            +
            import { S as y, b as g, f as d, c as m, a as p, d as k, g as C, j as x, k as S, n as c, v as _, C as v } from "./CashierConfirmModal-Dw8BnUfp.js";
         | 
| 2 | 
            +
            function b(n) {
         | 
| 3 | 
            +
              k(n, "svelte-fidj5e", ".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}");
         | 
| 4 | 
            +
            }
         | 
| 5 | 
            +
            function w(n) {
         | 
| 6 | 
            +
              let t;
         | 
| 7 | 
            +
              return {
         | 
| 8 | 
            +
                c() {
         | 
| 9 | 
            +
                  t = C("div"), t.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', x(t, "class", "CashierSpinner");
         | 
| 10 | 
            +
                },
         | 
| 11 | 
            +
                m(i, r) {
         | 
| 12 | 
            +
                  S(i, t, r), n[3](t);
         | 
| 13 | 
            +
                },
         | 
| 14 | 
            +
                p: c,
         | 
| 15 | 
            +
                i: c,
         | 
| 16 | 
            +
                o: c,
         | 
| 17 | 
            +
                d(i) {
         | 
| 18 | 
            +
                  i && _(t), n[3](null);
         | 
| 19 | 
            +
                }
         | 
| 20 | 
            +
              };
         | 
| 21 | 
            +
            }
         | 
| 22 | 
            +
            function L(n, t, i) {
         | 
| 23 | 
            +
              let { clientstyling: r = "" } = t, { clientstylingurl: a = "" } = t, s;
         | 
| 24 | 
            +
              const h = () => {
         | 
| 25 | 
            +
                let e = document.createElement("style");
         | 
| 26 | 
            +
                e.innerHTML = r, s.appendChild(e);
         | 
| 27 | 
            +
              }, f = () => {
         | 
| 28 | 
            +
                let e = new URL(a), o = document.createElement("style");
         | 
| 29 | 
            +
                fetch(e.href).then((l) => l.text()).then((l) => {
         | 
| 30 | 
            +
                  o.innerHTML = l, setTimeout(
         | 
| 31 | 
            +
                    () => {
         | 
| 32 | 
            +
                      s.appendChild(o);
         | 
| 33 | 
            +
                    },
         | 
| 34 | 
            +
                    1
         | 
| 35 | 
            +
                  );
         | 
| 36 | 
            +
                });
         | 
| 37 | 
            +
              };
         | 
| 38 | 
            +
              function u(e) {
         | 
| 39 | 
            +
                v[e ? "unshift" : "push"](() => {
         | 
| 40 | 
            +
                  s = e, i(0, s);
         | 
| 41 | 
            +
                });
         | 
| 42 | 
            +
              }
         | 
| 43 | 
            +
              return n.$$set = (e) => {
         | 
| 44 | 
            +
                "clientstyling" in e && i(1, r = e.clientstyling), "clientstylingurl" in e && i(2, a = e.clientstylingurl);
         | 
| 45 | 
            +
              }, n.$$.update = () => {
         | 
| 46 | 
            +
                n.$$.dirty & /*clientstyling, customStylingContainer*/
         | 
| 47 | 
            +
                3 && r && s && h(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
         | 
| 48 | 
            +
                5 && a && s && f();
         | 
| 49 | 
            +
              }, [s, r, a, u];
         | 
| 50 | 
            +
            }
         | 
| 51 | 
            +
            class E extends y {
         | 
| 52 | 
            +
              constructor(t) {
         | 
| 53 | 
            +
                super(), g(this, t, L, w, p, { clientstyling: 1, clientstylingurl: 2 }, b);
         | 
| 54 | 
            +
              }
         | 
| 55 | 
            +
              get clientstyling() {
         | 
| 56 | 
            +
                return this.$$.ctx[1];
         | 
| 57 | 
            +
              }
         | 
| 58 | 
            +
              set clientstyling(t) {
         | 
| 59 | 
            +
                this.$$set({ clientstyling: t }), d();
         | 
| 60 | 
            +
              }
         | 
| 61 | 
            +
              get clientstylingurl() {
         | 
| 62 | 
            +
                return this.$$.ctx[2];
         | 
| 63 | 
            +
              }
         | 
| 64 | 
            +
              set clientstylingurl(t) {
         | 
| 65 | 
            +
                this.$$set({ clientstylingurl: t }), d();
         | 
| 66 | 
            +
              }
         | 
| 67 | 
            +
            }
         | 
| 68 | 
            +
            m(E, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
         | 
| 69 | 
            +
            export {
         | 
| 70 | 
            +
              E as default
         | 
| 71 | 
            +
            };
         | 
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-BsoB5fQM.cjs");function y(i){e.append_styles(i,"svelte-fidj5e",".CashierSpinner{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1}.CashierSpinner .spinner{animation:rotate 2s linear infinite;transform-origin:center center}.CashierSpinner .spinner .path{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}")}function g(i){let t;return{c(){t=e.element("div"),t.innerHTML='<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',e.attr(t,"class","CashierSpinner")},m(s,l){e.insert(s,t,l),i[3](t)},p:e.noop,i:e.noop,o:e.noop,d(s){s&&e.detach(t),i[3](null)}}}function p(i,t,s){let{clientstyling:l=""}=t,{clientstylingurl:a=""}=t,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},u=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function f(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,s(0,r)})}return i.$$set=n=>{"clientstyling"in n&&s(1,l=n.clientstyling),"clientstylingurl"in n&&s(2,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&3&&l&&r&&h(),i.$$.dirty&5&&a&&r&&u()},[r,l,a,f]}class d extends e.SvelteComponent{constructor(t){super(),e.init(this,t,p,g,e.safe_not_equal,{clientstyling:1,clientstylingurl:2},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(d,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=d;
         | 
| @@ -1 +1 @@ | |
| 1 | 
            -
            "use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodDetails- | 
| 1 | 
            +
            "use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodDetails-DPowLei9.cjs")).then(e=>e.CashierMethodDetails_ce).then(({default:e})=>{!customElements.get("cashier-method-details")&&customElements.define("cashier-method-details",e.element)})}
         | 
| @@ -10,7 +10,7 @@ if (typeof window != "undefined") { | |
| 10 10 | 
             
                  }
         | 
| 11 11 | 
             
                };
         | 
| 12 12 | 
             
              };
         | 
| 13 | 
            -
              customElements.define = n(customElements.define), import("../components/CashierMethodDetails- | 
| 13 | 
            +
              customElements.define = n(customElements.define), import("../components/CashierMethodDetails-5wGvaaR0.js").then((e) => e.C).then(({ default: e }) => {
         | 
| 14 14 | 
             
                !customElements.get("cashier-method-details") && customElements.define("cashier-method-details", e.element);
         | 
| 15 15 | 
             
              });
         | 
| 16 16 | 
             
            }
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "@everymatrix/cashier-method-details",
         | 
| 3 | 
            -
              "version": "1.45. | 
| 3 | 
            +
              "version": "1.45.2",
         | 
| 4 4 | 
             
              "type": "module",
         | 
| 5 5 | 
             
              "main": "es2015/cashier-method-details.cjs",
         | 
| 6 6 | 
             
              "module": "es2015/cashier-method-details.js",
         | 
| @@ -11,7 +11,7 @@ | |
| 11 11 | 
             
                },
         | 
| 12 12 | 
             
                "./es2015/cashier-method-details.cjs": "./es2015/cashier-method-details.cjs"
         | 
| 13 13 | 
             
              },
         | 
| 14 | 
            -
             | 
| 14 | 
            +
              "files": [
         | 
| 15 15 | 
             
                "es2015/",
         | 
| 16 16 | 
             
                "components"
         | 
| 17 17 | 
             
              ],
         | 
| @@ -1,4 +0,0 @@ | |
| 1 | 
            -
            "use strict";var Rt=Object.defineProperty,Dt=Object.defineProperties;var Wt=Object.getOwnPropertyDescriptors;var ft=Object.getOwnPropertySymbols;var qt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var st=(t,e,n)=>e in t?Rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dt=(t,e)=>{for(var n in e||(e={}))qt.call(e,n)&&st(t,n,e[n]);if(ft)for(var n of ft(e))Ht.call(e,n)&&st(t,n,e[n]);return t},ht=(t,e)=>Dt(t,Wt(e));var v=(t,e,n)=>st(t,typeof e!="symbol"?e+"":e,n);var _t=(t,e,n)=>new Promise((s,r)=>{var i=u=>{try{o(n.next(u))}catch(c){r(c)}},l=u=>{try{o(n.throw(u))}catch(c){r(c)}},o=u=>u.done?s(u.value):Promise.resolve(u.value).then(i,l);o((n=n.apply(t,e)).next())});function z(){}const vt=t=>t;function It(t,e){for(const n in e)t[n]=e[n];return t}function Ct(t){return t()}function $t(){return Object.create(null)}function k(t){t.forEach(Ct)}function et(t){return typeof t=="function"}function xt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let V;function Ft(t,e){return t===e?!0:(V||(V=document.createElement("a")),V.href=e,t===V.href)}function Ut(t){return Object.keys(t).length===0}function Et(t,...e){if(t==null){for(const s of e)s(void 0);return z}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Jt(t,e,n){t.$$.on_destroy.push(Et(e,n))}function T(t,e,n,s){if(t){const r=Mt(t,e,n,s);return t[0](r)}}function Mt(t,e,n,s){return t[1]&&s?It(n.ctx.slice(),t[1](s(e))):n.ctx}function R(t,e,n,s){if(t[2]&&s){const r=t[2](s(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const i=[],l=Math.max(e.dirty.length,r.length);for(let o=0;o<l;o+=1)i[o]=e.dirty[o]|r[o];return i}return e.dirty|r}return e.dirty}function D(t,e,n,s,r,i){if(r){const l=Mt(e,n,s,i);t.p(l,r)}}function W(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let s=0;s<n;s++)e[s]=-1;return e}return-1}const zt=typeof window!="undefined";let Vt=zt?()=>window.performance.now():()=>Date.now(),ct=zt?t=>requestAnimationFrame(t):z;const N=new Set;function kt(t){N.forEach(e=>{e.c(t)||(N.delete(e),e.f())}),N.size!==0&&ct(kt)}function Zt(t){let e;return N.size===0&&ct(kt),{promise:new Promise(n=>{N.add(e={c:t,f:n})}),abort(){N.delete(e)}}}const Gt=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function C(t,e){t.appendChild(e)}function Lt(t,e,n){const s=ut(t);if(!s.getElementById(e)){const r=x("style");r.id=e,r.textContent=n,jt(s,r)}}function ut(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Kt(t){const e=x("style");return e.textContent="/* empty */",jt(ut(t),e),e.sheet}function jt(t,e){return C(t.head||t,e),e.sheet}function nt(t,e,n){t.insertBefore(e,n||null)}function j(t){t.parentNode&&t.parentNode.removeChild(t)}function Qt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function x(t){return document.createElement(t)}function rt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function at(t){return document.createTextNode(t)}function G(){return at(" ")}function Xt(){return at("")}function I(t,e,n,s){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}function Yt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function $(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function te(t,e,n){const s=e.toLowerCase();s in t?t[s]=typeof t[s]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:$(t,e,n)}function ee(t){return t===""?null:+t}function ne(t){return Array.from(t.childNodes)}function se(t,e){e=""+e,t.data!==e&&(t.data=e)}function ie(t,e){t.value=e==null?"":e}function oe(t,e,n,s){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}let Z;function re(){if(Z===void 0){Z=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(t){Z=!0}}return Z}function le(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const s=x("iframe");s.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),s.setAttribute("aria-hidden","true"),s.tabIndex=-1;const r=re();let i;return r?(s.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=I(window,"message",l=>{l.source===s.contentWindow&&e()})):(s.src="about:blank",s.onload=()=>{i=I(s.contentWindow,"resize",e),e()}),C(t,s),()=>{(r||i&&s.contentWindow)&&i(),j(s)}}function ce(t,e,n){t.classList.toggle(e,!!n)}function Ot(t,e,{bubbles:n=!1,cancelable:s=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:s})}function ue(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}const X=new Map;let Y=0;function ae(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function fe(t,e){const n={stylesheet:Kt(e),rules:{}};return X.set(t,n),n}function mt(t,e,n,s,r,i,l,o=0){const u=16.666/s;let c=`{
         | 
| 2 | 
            -
            `;for(let g=0;g<=1;g+=u){const m=e+(n-e)*i(g);c+=g*100+`%{${l(m,1-m)}}
         | 
| 3 | 
            -
            `}const p=c+`100% {${l(n,1-n)}}
         | 
| 4 | 
            -
            }`,_=`__svelte_${ae(p)}_${o}`,b=ut(t),{stylesheet:f,rules:d}=X.get(b)||fe(b,t);d[_]||(d[_]=!0,f.insertRule(`@keyframes ${_} ${p}`,f.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${_} ${s}ms linear ${r}ms 1 both`,Y+=1,_}function de(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?i=>i.indexOf(e)<0:i=>i.indexOf("__svelte")===-1),r=n.length-s.length;r&&(t.style.animation=s.join(", "),Y-=r,Y||he())}function he(){ct(()=>{Y||(X.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&j(e)}),X.clear())})}let F;function H(t){F=t}function St(){if(!F)throw new Error("Function called outside component initialization");return F}function _e(t){St().$$.on_mount.push(t)}function $e(){const t=St();return(e,n,{cancelable:s=!1}={})=>{const r=t.$$.callbacks[e];if(r){const i=Ot(e,n,{cancelable:s});return r.slice().forEach(l=>{l.call(t,i)}),!i.defaultPrevented}return!0}}const S=[],tt=[];let P=[];const pt=[],me=Promise.resolve();let lt=!1;function pe(){lt||(lt=!0,me.then(J))}function U(t){P.push(t)}const it=new Set;let O=0;function J(){if(O!==0)return;const t=F;do{try{for(;O<S.length;){const e=S[O];O++,H(e),ge(e.$$)}}catch(e){throw S.length=0,O=0,e}for(H(null),S.length=0,O=0;tt.length;)tt.pop()();for(let e=0;e<P.length;e+=1){const n=P[e];it.has(n)||(it.add(n),n())}P.length=0}while(S.length);for(;pt.length;)pt.pop()();lt=!1,it.clear(),H(t)}function ge(t){if(t.fragment!==null){t.update(),k(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(U)}}function be(t){const e=[],n=[];P.forEach(s=>t.indexOf(s)===-1?e.push(s):n.push(s)),n.forEach(s=>s()),P=e}let B;function ye(){return B||(B=Promise.resolve(),B.then(()=>{B=null})),B}function ot(t,e,n){t.dispatchEvent(Ot(`${e?"intro":"outro"}${n}`))}const K=new Set;let E;function we(){E={r:0,c:[],p:E}}function ve(){E.r||k(E.c),E=E.p}function A(t,e){t&&t.i&&(K.delete(t),t.i(e))}function q(t,e,n,s){if(t&&t.o){if(K.has(t))return;K.add(t),E.c.push(()=>{K.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const Ce={duration:0};function xe(t,e,n,s){let i=e(t,n,{direction:"both"}),l=s?0:1,o=null,u=null,c=null,p;function _(){c&&de(t,c)}function b(d,h){const g=d.b-l;return h*=Math.abs(g),{a:l,b:d.b,d:g,duration:h,start:d.start,end:d.start+h,group:d.group}}function f(d){const{delay:h=0,duration:g=300,easing:m=vt,tick:L=z,css:M}=i||Ce,y={start:Vt()+h,b:d};d||(y.group=E,E.r+=1),"inert"in t&&(d?p!==void 0&&(t.inert=p):(p=t.inert,t.inert=!0)),o||u?u=y:(M&&(_(),c=mt(t,l,d,g,h,m,M)),d&&L(0,1),o=b(y,g),U(()=>ot(t,d,"start")),Zt(a=>{if(u&&a>u.start&&(o=b(u,g),u=null,ot(t,o.b,"start"),M&&(_(),c=mt(t,l,o.b,o.duration,0,m,i.css))),o){if(a>=o.end)L(l=o.b,1-l),ot(t,o.b,"end"),u||(o.b?_():--o.group.r||k(o.group.c)),o=null;else if(a>=o.start){const w=a-o.start;l=o.a+o.d*m(w/o.duration),L(l,1-l)}}return!!(o||u)}))}return{run(d){et(i)?ye().then(()=>{i=i({direction:d?"in":"out"}),f(d)}):f(d)},end(){_(),o=u=null}}}function Ee(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function Me(t,e,n){const{fragment:s,after_update:r}=t.$$;s&&s.m(e,n),U(()=>{const i=t.$$.on_mount.map(Ct).filter(et);t.$$.on_destroy?t.$$.on_destroy.push(...i):k(i),t.$$.on_mount=[]}),r.forEach(U)}function ze(t,e){const n=t.$$;n.fragment!==null&&(be(n.after_update),k(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ke(t,e){t.$$.dirty[0]===-1&&(S.push(t),pe(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function At(t,e,n,s,r,i,l=null,o=[-1]){const u=F;H(t);const c=t.$$={fragment:null,ctx:[],props:i,update:z,not_equal:r,bound:$t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:$t(),dirty:o,skip_bound:!1,root:e.target||u.$$.root};l&&l(c.root);let p=!1;if(c.ctx=n?n(t,e.props||{},(_,b,...f)=>{const d=f.length?f[0]:b;return c.ctx&&r(c.ctx[_],c.ctx[_]=d)&&(!c.skip_bound&&c.bound[_]&&c.bound[_](d),p&&ke(t,_)),b}):[],c.update(),p=!0,k(c.before_update),c.fragment=s?s(c.ctx):!1,e.target){if(e.hydrate){const _=ne(e.target);c.fragment&&c.fragment.l(_),_.forEach(j)}else c.fragment&&c.fragment.c();e.intro&&A(t.$$.fragment),Me(t,e.target,e.anchor),J()}H(u)}let Nt;typeof HTMLElement=="function"&&(Nt=class extends HTMLElement{constructor(e,n,s){super();v(this,"$$ctor");v(this,"$$s");v(this,"$$c");v(this,"$$cn",!1);v(this,"$$d",{});v(this,"$$r",!1);v(this,"$$p_d",{});v(this,"$$l",{});v(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(e,n,s){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const r=this.$$c.$on(e,n);this.$$l_u.set(n,r)}super.addEventListener(e,n,s)}removeEventListener(e,n,s){if(super.removeEventListener(e,n,s),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return _t(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(i){return()=>{let l;return{c:function(){l=x("slot"),i!=="default"&&$(l,"name",i)},m:function(c,p){nt(c,l,p)},d:function(c){c&&j(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=ue(this);for(const i of this.$$s)i in s&&(n[i]=[e(i)]);for(const i of this.attributes){const l=this.$$g_p(i.name);l in this.$$d||(this.$$d[l]=Q(l,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ht(dt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const l=Q(i,this.$$d[i],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const l of this.$$l[i]){const o=this.$$c.$on(i,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(e,n,s){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Q(e,s,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function Q(t,e,n,s){var i;const r=(i=n[t])==null?void 0:i.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!n[t])return e;if(s==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Pt(t,e,n,s,r,i){let l=class extends Nt{constructor(){super(t,n,r),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Object.keys(e).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=Q(o,u,e),this.$$d[o]=u,(c=this.$$c)==null||c.$set({[o]:u})}})}),s.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),t.element=l,l}class Bt{constructor(){v(this,"$$");v(this,"$$set")}$destroy(){ze(this,1),this.$destroy=z}$on(e,n){if(!et(n))return z;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}$set(e){this.$$set&&!Ut(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Le="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Le);function je(t){Lt(t,"svelte-8szw87",".svelte-8szw87,.svelte-8szw87::before,.svelte-8szw87::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow.svelte-8szw87{container-type:inline-size;container-name:confirm-modal;display:flex;position:absolute;align-items:center;justify-content:center;width:100%;height:100%;z-index:4;top:0;left:0;background-color:var(--emw--color-background, rgba(255, 255, 255, 0.5))}.CashierModalContainer.svelte-8szw87{width:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--emw--spacing-large, 20px);position:relative;padding:var(--emw--spacing-medium, 15px);min-height:200px;box-shadow:0 2px 6px 0 var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff)}.ModalOkBtn.svelte-8szw87{color:var(--emw--color-white, #fff);display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-normal, 400);font-family:inherit;height:46px;width:100%;border:none;border-radius:50px;line-height:normal;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn.svelte-8szw87{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:var(--emw--spacing-small, 12px) var(--emw--spacing-small, 12px);height:inherit;right:0;top:0;cursor:pointer}@container confirm-modal (max-width: 750px){.CashierModalContainer.svelte-8szw87{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}")}const Oe=t=>({}),gt=t=>({}),Se=t=>({}),bt=t=>({}),Ae=t=>({}),yt=t=>({class:"CashierModalText svelte-8szw87"}),Ne=t=>({}),wt=t=>({class:"CashierModalTitle svelte-8szw87"});function Pe(t){let e,n;return{c(){e=rt("svg"),n=rt("path"),$(n,"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"),$(n,"fill","#111111"),$(n,"class","svelte-8szw87"),$(e,"xmlns","http://www.w3.org/2000/svg"),$(e,"width","13"),$(e,"height","20"),$(e,"viewBox","0 0 13 13"),$(e,"fill","none"),$(e,"class","svelte-8szw87")},m(s,r){nt(s,e,r),C(e,n)},p:z,d(s){s&&j(e)}}}function Be(t){let e,n,s,r,i,l,o,u,c,p,_;const b=t[6].title,f=T(b,t,t[5],wt),d=t[6].text,h=T(d,t,t[5],yt),g=t[6].confirm,m=T(g,t,t[5],bt),L=t[6].close,M=T(L,t,t[5],gt),y=M||Pe();return{c(){e=x("div"),n=x("div"),s=x("div"),f&&f.c(),r=G(),h&&h.c(),i=G(),l=x("span"),m&&m.c(),o=G(),u=x("span"),y&&y.c(),$(l,"class","ModalOkBtn svelte-8szw87"),$(l,"role","button"),$(u,"class","ModalCloseBtn svelte-8szw87"),$(u,"role","button"),$(s,"class","CashierModalContainer svelte-8szw87"),$(s,"part","CashierModalContainer"),$(n,"class","CashierModalWindow svelte-8szw87"),$(n,"part","CashierModalWindow"),$(n,"id","Modal"),$(e,"part","CustomStylingContainer"),$(e,"class","svelte-8szw87")},m(a,w){nt(a,e,w),C(e,n),C(n,s),f&&f.m(s,null),C(s,r),h&&h.m(s,null),C(s,i),C(s,l),m&&m.m(l,null),C(s,o),C(s,u),y&&y.m(u,null),t[7](e),c=!0,p||(_=[I(l,"click",t[2]),I(u,"click",t[1])],p=!0)},p(a,[w]){f&&f.p&&(!c||w&32)&&D(f,b,a,a[5],c?R(b,a[5],w,Ne):W(a[5]),wt),h&&h.p&&(!c||w&32)&&D(h,d,a,a[5],c?R(d,a[5],w,Ae):W(a[5]),yt),m&&m.p&&(!c||w&32)&&D(m,g,a,a[5],c?R(g,a[5],w,Se):W(a[5]),bt),M&&M.p&&(!c||w&32)&&D(M,L,a,a[5],c?R(L,a[5],w,Oe):W(a[5]),gt)},i(a){c||(A(f,a),A(h,a),A(m,a),A(y,a),c=!0)},o(a){q(f,a),q(h,a),q(m,a),q(y,a),c=!1},d(a){a&&j(e),f&&f.d(a),h&&h.d(a),m&&m.d(a),y&&y.d(a),t[7](null),p=!1,k(_)}}}function Te(t,e,n){let{$$slots:s={},$$scope:r}=e,{clientstyling:i=""}=e,{clientstylingurl:l=""}=e,o;const u=()=>{dispatchEvent(new CustomEvent("closeModal",{bubbles:!0,cancelable:!0,composed:!0}))},c=()=>{dispatchEvent(new CustomEvent("confirmModal",{bubbles:!0,cancelable:!0,composed:!0})),u()},p=()=>{let f=document.createElement("style");f.innerHTML=i,o.appendChild(f)},_=()=>{let f=new URL(l),d=document.createElement("style");fetch(f.href).then(h=>h.text()).then(h=>{d.innerHTML=h,setTimeout(()=>{o.appendChild(d)},1)})};function b(f){tt[f?"unshift":"push"](()=>{o=f,n(0,o)})}return t.$$set=f=>{"clientstyling"in f&&n(3,i=f.clientstyling),"clientstylingurl"in f&&n(4,l=f.clientstylingurl),"$$scope"in f&&n(5,r=f.$$scope)},t.$$.update=()=>{t.$$.dirty&9&&i&&o&&p(),t.$$.dirty&17&&l&&o&&_()},[o,u,c,i,l,r,s,b]}class Tt extends Bt{constructor(e){super(),At(this,e,Te,Be,xt,{clientstyling:3,clientstylingurl:4},je)}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),J()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),J()}}Pt(Tt,{clientstyling:{},clientstylingurl:{}},["title","text","confirm","close"],[],!0);const Re=Object.freeze(Object.defineProperty({__proto__:null,default:Tt},Symbol.toStringTag,{value:"Module"}));exports.CashierConfirmModal_ce=Re;exports.SvelteComponent=Bt;exports.add_iframe_resize_listener=le;exports.add_render_callback=U;exports.append=C;exports.append_styles=Lt;exports.attr=$;exports.binding_callbacks=tt;exports.check_outros=ve;exports.component_subscribe=Jt;exports.createEventDispatcher=$e;exports.create_bidirectional_transition=xe;exports.create_custom_element=Pt;exports.create_slot=T;exports.destroy_each=Qt;exports.detach=j;exports.element=x;exports.empty=Xt;exports.ensure_array_like=Ee;exports.flush=J;exports.get_all_dirty_from_scope=W;exports.get_slot_changes=R;exports.globals=Gt;exports.group_outros=we;exports.identity=vt;exports.init=At;exports.insert=nt;exports.is_function=et;exports.listen=I;exports.noop=z;exports.onMount=_e;exports.prevent_default=Yt;exports.run_all=k;exports.safe_not_equal=xt;exports.set_custom_element_data=te;exports.set_data=se;exports.set_input_value=ie;exports.set_style=oe;exports.space=G;exports.src_url_equal=Ft;exports.subscribe=Et;exports.svg_element=rt;exports.text=at;exports.to_number=ee;exports.toggle_class=ce;exports.transition_in=A;exports.transition_out=q;exports.update_slot_base=D;
         |