import { S as y, b as g, s as m, f as h, c as p, n as c, e as k, m as C, p as x, v as S, A as _, D as v } from "./CashierConfirmModal-B5fOc6GC.js";
function b(n) {
  p(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}}");
}
function w(n) {
  let t;
  return {
    c() {
      t = x("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>', S(t, "class", "CashierSpinner");
    },
    m(s, r) {
      C(s, t, r), n[3](t);
    },
    p: c,
    i: c,
    o: c,
    d(s) {
      s && k(t), n[3](null);
    }
  };
}
function L(n, t, s) {
  let { clientstyling: r = "" } = t, { clientstylingurl: l = "" } = t, i;
  const d = () => {
    let e = document.createElement("style");
    e.innerHTML = r, i.appendChild(e);
  }, f = () => {
    let e = new URL(l), o = document.createElement("style");
    fetch(e.href).then((a) => a.text()).then((a) => {
      o.innerHTML = a, setTimeout(
        () => {
          i.appendChild(o);
        },
        1
      );
    });
  };
  function u(e) {
    _[e ? "unshift" : "push"](() => {
      i = e, s(0, i);
    });
  }
  return n.$$set = (e) => {
    "clientstyling" in e && s(1, r = e.clientstyling), "clientstylingurl" in e && s(2, l = e.clientstylingurl);
  }, n.$$.update = () => {
    n.$$.dirty & /*clientstyling, customStylingContainer*/
    3 && r && i && d(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
    5 && l && i && f();
  }, [i, r, l, u];
}
class E extends y {
  constructor(t) {
    super(), g(this, t, L, w, m, { clientstyling: 1, clientstylingurl: 2 }, b);
  }
  get clientstyling() {
    return this.$$.ctx[1];
  }
  set clientstyling(t) {
    this.$$set({ clientstyling: t }), h();
  }
  get clientstylingurl() {
    return this.$$.ctx[2];
  }
  set clientstylingurl(t) {
    this.$$set({ clientstylingurl: t }), h();
  }
}
v(E, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
export {
  E as default
};
