import { S as p, b as y, s as m, f as h, c as g, n as o, e as k, l as x, o as v, q as w, z as C, E as S } from "./CashierConfirmModal-B74OQHQ9.js";
function _(n) {
  g(n, "svelte-sjjtuo", ".CashierSpinner{display:block;width:var(--emw--spinner-size, 32px);height:var(--emw--spinner-size, 32px);position:absolute;top:var(--emw--spinner-top-position, 50%);left:var(--emw--spinner-left-position, 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-width:var(--emw--stroke-width, 2px);stroke:var(--emw--spinner-color, #2dcc70)}@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 b(n) {
  let e;
  return {
    c() {
      e = v("div"), e.innerHTML = '<svg class="spinner" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"></circle></svg>', w(e, "class", "CashierSpinner");
    },
    m(s, r) {
      x(s, e, r), n[3](e);
    },
    p: o,
    i: o,
    o,
    d(s) {
      s && k(e), n[3](null);
    }
  };
}
function L(n, e, s) {
  let { clientstyling: r = "" } = e, { clientstylingurl: a = "" } = e, i;
  const d = () => {
    let t = document.createElement("style");
    t.innerHTML = r, i.appendChild(t);
  }, u = () => {
    let t = new URL(a), c = document.createElement("style");
    fetch(t.href).then((l) => l.text()).then((l) => {
      c.innerHTML = l, setTimeout(
        () => {
          i.appendChild(c);
        },
        1
      );
    });
  };
  function f(t) {
    C[t ? "unshift" : "push"](() => {
      i = t, s(0, i);
    });
  }
  return n.$$set = (t) => {
    "clientstyling" in t && s(1, r = t.clientstyling), "clientstylingurl" in t && s(2, a = t.clientstylingurl);
  }, n.$$.update = () => {
    n.$$.dirty & /*clientstyling, customStylingContainer*/
    3 && r && i && d(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
    5 && a && i && u();
  }, [i, r, a, f];
}
class z extends p {
  constructor(e) {
    super(), y(this, e, L, b, m, { clientstyling: 1, clientstylingurl: 2 }, _);
  }
  get clientstyling() {
    return this.$$.ctx[1];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), h();
  }
  get clientstylingurl() {
    return this.$$.ctx[2];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), h();
  }
}
S(z, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
export {
  z as default
};
