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