function E() {
}
const ot = (t) => t;
function Ot(t, e) {
  for (const n in e)
    t[n] = e[n];
  return (
    /** @type {T & S} */
    t
  );
}
function wt(t) {
  return t();
}
function _t() {
  return /* @__PURE__ */ Object.create(null);
}
function L(t) {
  t.forEach(wt);
}
function D(t) {
  return typeof t == "function";
}
function St(t, e) {
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
}
let H;
function ce(t, e) {
  return t === e ? !0 : (H || (H = document.createElement("a")), H.href = e, t === H.href);
}
function At(t) {
  return Object.keys(t).length === 0;
}
function Nt(t, ...e) {
  if (t == null) {
    for (const i of e)
      i(void 0);
    return E;
  }
  const n = t.subscribe(...e);
  return n.unsubscribe ? () => n.unsubscribe() : n;
}
function ae(t, e, n) {
  t.$$.on_destroy.push(Nt(e, n));
}
function I(t, e, n, i) {
  if (t) {
    const s = Ct(t, e, n, i);
    return t[0](s);
  }
}
function Ct(t, e, n, i) {
  return t[1] && i ? Ot(n.ctx.slice(), t[1](i(e))) : n.ctx;
}
function q(t, e, n, i) {
  if (t[2] && i) {
    const s = t[2](i(n));
    if (e.dirty === void 0)
      return s;
    if (typeof s == "object") {
      const o = [], l = Math.max(e.dirty.length, s.length);
      for (let r = 0; r < l; r += 1)
        o[r] = e.dirty[r] | s[r];
      return o;
    }
    return e.dirty | s;
  }
  return e.dirty;
}
function F(t, e, n, i, s, o) {
  if (s) {
    const l = Ct(e, n, i, o);
    t.p(l, s);
  }
}
function U(t) {
  if (t.ctx.length > 32) {
    const e = [], n = t.ctx.length / 32;
    for (let i = 0; i < n; i++)
      e[i] = -1;
    return e;
  }
  return -1;
}
const xt = typeof window < "u";
let lt = xt ? () => window.performance.now() : () => Date.now(), ct = xt ? (t) => requestAnimationFrame(t) : E;
const A = /* @__PURE__ */ new Set();
function vt(t) {
  A.forEach((e) => {
    e.c(t) || (A.delete(e), e.f());
  }), A.size !== 0 && ct(vt);
}
function at(t) {
  let e;
  return A.size === 0 && ct(vt), {
    promise: new Promise((n) => {
      A.add(e = { c: t, f: n });
    }),
    abort() {
      A.delete(e);
    }
  };
}
const ue = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
  // @ts-ignore Node typings have this
  global
);
function v(t, e) {
  t.appendChild(e);
}
function zt(t, e, n) {
  const i = ut(t);
  if (!i.getElementById(e)) {
    const s = k("style");
    s.id = e, s.textContent = n, Mt(i, s);
  }
}
function ut(t) {
  if (!t)
    return document;
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
  return e && /** @type {ShadowRoot} */
  e.host ? (
    /** @type {ShadowRoot} */
    e
  ) : t.ownerDocument;
}
function Pt(t) {
  const e = k("style");
  return e.textContent = "/* empty */", Mt(ut(t), e), e.sheet;
}
function Mt(t, e) {
  return v(
    /** @type {Document} */
    t.head || t,
    e
  ), e.sheet;
}
function ft(t, e, n) {
  t.insertBefore(e, n || null);
}
function P(t) {
  t.parentNode && t.parentNode.removeChild(t);
}
function fe(t, e) {
  for (let n = 0; n < t.length; n += 1)
    t[n] && t[n].d(e);
}
function k(t) {
  return document.createElement(t);
}
function $t(t) {
  return document.createElementNS("http://www.w3.org/2000/svg", t);
}
function kt(t) {
  return document.createTextNode(t);
}
function nt() {
  return kt(" ");
}
function de() {
  return kt("");
}
function Q(t, e, n, i) {
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
}
function he(t) {
  return function(e) {
    return e.preventDefault(), t.call(this, e);
  };
}
function y(t, e, n) {
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
}
function _e(t, e, n) {
  const i = e.toLowerCase();
  i in t ? t[i] = typeof t[i] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : y(t, e, n);
}
function $e(t) {
  return t === "" ? null : +t;
}
function Bt(t) {
  return Array.from(t.childNodes);
}
function me(t, e) {
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
  e);
}
function ge(t, e) {
  t.value = e ?? "";
}
function pe(t, e, n, i) {
  n == null ? t.style.removeProperty(e) : t.style.setProperty(e, n, "");
}
let J;
function Tt() {
  if (J === void 0) {
    J = !1;
    try {
      typeof window < "u" && window.parent && window.parent.document;
    } catch {
      J = !0;
    }
  }
  return J;
}
function ye(t, e) {
  getComputedStyle(t).position === "static" && (t.style.position = "relative");
  const i = k("iframe");
  i.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;"
  ), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
  const s = Tt();
  let o;
  return s ? (i.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Q(
    window,
    "message",
    /** @param {MessageEvent} event */
    (l) => {
      l.source === i.contentWindow && e();
    }
  )) : (i.src = "about:blank", i.onload = () => {
    o = Q(i.contentWindow, "resize", e), e();
  }), v(t, i), () => {
    (s || o && i.contentWindow) && o(), P(i);
  };
}
function be(t, e, n) {
  t.classList.toggle(e, !!n);
}
function Rt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
}
function Wt(t) {
  const e = {};
  return t.childNodes.forEach(
    /** @param {Element} node */
    (n) => {
      e[n.slot || "default"] = !0;
    }
  ), e;
}
const X = /* @__PURE__ */ new Map();
let Z = 0;
function Dt(t) {
  let e = 5381, n = t.length;
  for (; n--; )
    e = (e << 5) - e ^ t.charCodeAt(n);
  return e >>> 0;
}
function Ht(t, e) {
  const n = { stylesheet: Pt(e), rules: {} };
  return X.set(t, n), n;
}
function Y(t, e, n, i, s, o, l, r = 0) {
  const u = 16.666 / i;
  let c = `{
`;
  for (let p = 0; p <= 1; p += u) {
    const $ = e + (n - e) * o(p);
    c += p * 100 + `%{${l($, 1 - $)}}
`;
  }
  const m = c + `100% {${l(n, 1 - n)}}
}`, _ = `__svelte_${Dt(m)}_${r}`, g = ut(t), { stylesheet: a, rules: d } = X.get(g) || Ht(g, t);
  d[_] || (d[_] = !0, a.insertRule(`@keyframes ${_} ${m}`, a.cssRules.length));
  const h = t.style.animation || "";
  return t.style.animation = `${h ? `${h}, ` : ""}${_} ${i}ms linear ${s}ms 1 both`, Z += 1, _;
}
function tt(t, e) {
  const n = (t.style.animation || "").split(", "), i = n.filter(
    e ? (o) => o.indexOf(e) < 0 : (o) => o.indexOf("__svelte") === -1
    // remove all Svelte animations
  ), s = n.length - i.length;
  s && (t.style.animation = i.join(", "), Z -= s, Z || It());
}
function It() {
  ct(() => {
    Z || (X.forEach((t) => {
      const { ownerNode: e } = t.stylesheet;
      e && P(e);
    }), X.clear());
  });
}
let W;
function R(t) {
  W = t;
}
function Et() {
  if (!W)
    throw new Error("Function called outside component initialization");
  return W;
}
function we(t) {
  Et().$$.on_mount.push(t);
}
function Ce(t) {
  Et().$$.on_destroy.push(t);
}
const S = [], st = [];
let N = [];
const mt = [], qt = /* @__PURE__ */ Promise.resolve();
let rt = !1;
function Ft() {
  rt || (rt = !0, qt.then(et));
}
function z(t) {
  N.push(t);
}
const it = /* @__PURE__ */ new Set();
let O = 0;
function et() {
  if (O !== 0)
    return;
  const t = W;
  do {
    try {
      for (; O < S.length; ) {
        const e = S[O];
        O++, R(e), Ut(e.$$);
      }
    } catch (e) {
      throw S.length = 0, O = 0, e;
    }
    for (R(null), S.length = 0, O = 0; st.length; )
      st.pop()();
    for (let e = 0; e < N.length; e += 1) {
      const n = N[e];
      it.has(n) || (it.add(n), n());
    }
    N.length = 0;
  } while (S.length);
  for (; mt.length; )
    mt.pop()();
  rt = !1, it.clear(), R(t);
}
function Ut(t) {
  if (t.fragment !== null) {
    t.update(), L(t.before_update);
    const e = t.dirty;
    t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(z);
  }
}
function Jt(t) {
  const e = [], n = [];
  N.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), N = e;
}
let B;
function dt() {
  return B || (B = Promise.resolve(), B.then(() => {
    B = null;
  })), B;
}
function j(t, e, n) {
  t.dispatchEvent(Rt(`${e ? "intro" : "outro"}${n}`));
}
const G = /* @__PURE__ */ new Set();
let M;
function xe() {
  M = {
    r: 0,
    c: [],
    p: M
    // parent group
  };
}
function ve() {
  M.r || L(M.c), M = M.p;
}
function T(t, e) {
  t && t.i && (G.delete(t), t.i(e));
}
function V(t, e, n, i) {
  if (t && t.o) {
    if (G.has(t))
      return;
    G.add(t), M.c.push(() => {
      G.delete(t), i && (n && t.d(1), i());
    }), t.o(e);
  } else
    i && i();
}
const ht = { duration: 0 };
function Me(t, e, n) {
  const i = { direction: "in" };
  let s = e(t, n, i), o = !1, l, r, u = 0;
  function c() {
    l && tt(t, l);
  }
  function m() {
    const {
      delay: g = 0,
      duration: a = 300,
      easing: d = ot,
      tick: h = E,
      css: p
    } = s || ht;
    p && (l = Y(t, 0, 1, a, g, d, p, u++)), h(0, 1);
    const $ = lt() + g, w = $ + a;
    r && r.abort(), o = !0, z(() => j(t, !0, "start")), r = at((C) => {
      if (o) {
        if (C >= w)
          return h(1, 0), j(t, !0, "end"), c(), o = !1;
        if (C >= $) {
          const b = d((C - $) / a);
          h(b, 1 - b);
        }
      }
      return o;
    });
  }
  let _ = !1;
  return {
    start() {
      _ || (_ = !0, tt(t), D(s) ? (s = s(i), dt().then(m)) : m());
    },
    invalidate() {
      _ = !1;
    },
    end() {
      o && (c(), o = !1);
    }
  };
}
function ke(t, e, n) {
  const i = { direction: "out" };
  let s = e(t, n, i), o = !0, l;
  const r = M;
  r.r += 1;
  let u;
  function c() {
    const {
      delay: m = 0,
      duration: _ = 300,
      easing: g = ot,
      tick: a = E,
      css: d
    } = s || ht;
    d && (l = Y(t, 1, 0, _, m, g, d));
    const h = lt() + m, p = h + _;
    z(() => j(t, !1, "start")), "inert" in t && (u = /** @type {HTMLElement} */
    t.inert, t.inert = !0), at(($) => {
      if (o) {
        if ($ >= p)
          return a(0, 1), j(t, !1, "end"), --r.r || L(r.c), !1;
        if ($ >= h) {
          const w = g(($ - h) / _);
          a(1 - w, w);
        }
      }
      return o;
    });
  }
  return D(s) ? dt().then(() => {
    s = s(i), c();
  }) : c(), {
    end(m) {
      m && "inert" in t && (t.inert = u), m && s.tick && s.tick(1, 0), o && (l && tt(t, l), o = !1);
    }
  };
}
function Ee(t, e, n, i) {
  let o = e(t, n, { direction: "both" }), l = i ? 0 : 1, r = null, u = null, c = null, m;
  function _() {
    c && tt(t, c);
  }
  function g(d, h) {
    const p = (
      /** @type {Program['d']} */
      d.b - l
    );
    return h *= Math.abs(p), {
      a: l,
      b: d.b,
      d: p,
      duration: h,
      start: d.start,
      end: d.start + h,
      group: d.group
    };
  }
  function a(d) {
    const {
      delay: h = 0,
      duration: p = 300,
      easing: $ = ot,
      tick: w = E,
      css: C
    } = o || ht, b = {
      start: lt() + h,
      b: d
    };
    d || (b.group = M, M.r += 1), "inert" in t && (d ? m !== void 0 && (t.inert = m) : (m = /** @type {HTMLElement} */
    t.inert, t.inert = !0)), r || u ? u = b : (C && (_(), c = Y(t, l, d, p, h, $, C)), d && w(0, 1), r = g(b, p), z(() => j(t, d, "start")), at((f) => {
      if (u && f > u.start && (r = g(u, p), u = null, j(t, r.b, "start"), C && (_(), c = Y(
        t,
        l,
        r.b,
        r.duration,
        0,
        $,
        o.css
      ))), r) {
        if (f >= r.end)
          w(l = r.b, 1 - l), j(t, r.b, "end"), u || (r.b ? _() : --r.group.r || L(r.group.c)), r = null;
        else if (f >= r.start) {
          const x = f - r.start;
          l = r.a + r.d * $(x / r.duration), w(l, 1 - l);
        }
      }
      return !!(r || u);
    }));
  }
  return {
    run(d) {
      D(o) ? dt().then(() => {
        o = o({ direction: d ? "in" : "out" }), a(d);
      }) : a(d);
    },
    end() {
      _(), r = u = null;
    }
  };
}
function Le(t) {
  return t?.length !== void 0 ? t : Array.from(t);
}
function Vt(t, e, n) {
  const { fragment: i, after_update: s } = t.$$;
  i && i.m(e, n), z(() => {
    const o = t.$$.on_mount.map(wt).filter(D);
    t.$$.on_destroy ? t.$$.on_destroy.push(...o) : L(o), t.$$.on_mount = [];
  }), s.forEach(z);
}
function Gt(t, e) {
  const n = t.$$;
  n.fragment !== null && (Jt(n.after_update), L(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
}
function Kt(t, e) {
  t.$$.dirty[0] === -1 && (S.push(t), Ft(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
}
function Qt(t, e, n, i, s, o, l = null, r = [-1]) {
  const u = W;
  R(t);
  const c = t.$$ = {
    fragment: null,
    ctx: [],
    // state
    props: o,
    update: E,
    not_equal: s,
    bound: _t(),
    // lifecycle
    on_mount: [],
    on_destroy: [],
    on_disconnect: [],
    before_update: [],
    after_update: [],
    context: new Map(e.context || (u ? u.$$.context : [])),
    // everything else
    callbacks: _t(),
    dirty: r,
    skip_bound: !1,
    root: e.target || u.$$.root
  };
  l && l(c.root);
  let m = !1;
  if (c.ctx = n ? n(t, e.props || {}, (_, g, ...a) => {
    const d = a.length ? a[0] : g;
    return c.ctx && s(c.ctx[_], c.ctx[_] = d) && (!c.skip_bound && c.bound[_] && c.bound[_](d), m && Kt(t, _)), g;
  }) : [], c.update(), m = !0, L(c.before_update), c.fragment = i ? i(c.ctx) : !1, e.target) {
    if (e.hydrate) {
      const _ = Bt(e.target);
      c.fragment && c.fragment.l(_), _.forEach(P);
    } else
      c.fragment && c.fragment.c();
    e.intro && T(t.$$.fragment), Vt(t, e.target, e.anchor), et();
  }
  R(u);
}
let Lt;
typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
  /** The Svelte component constructor */
  $$ctor;
  /** Slots */
  $$s;
  /** The Svelte component instance */
  $$c;
  /** Whether or not the custom element is connected */
  $$cn = !1;
  /** Component props data */
  $$d = {};
  /** `true` if currently in the process of reflecting component props back to attributes */
  $$r = !1;
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
  $$p_d = {};
  /** @type {Record<string, Function[]>} Event listeners */
  $$l = {};
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
  $$l_u = /* @__PURE__ */ new Map();
  constructor(t, e, n) {
    super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
  }
  addEventListener(t, e, n) {
    if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
      const i = this.$$c.$on(t, e);
      this.$$l_u.set(e, i);
    }
    super.addEventListener(t, e, n);
  }
  removeEventListener(t, e, n) {
    if (super.removeEventListener(t, e, n), this.$$c) {
      const i = this.$$l_u.get(e);
      i && (i(), this.$$l_u.delete(e));
    }
  }
  async connectedCallback() {
    if (this.$$cn = !0, !this.$$c) {
      let t = function(s) {
        return () => {
          let o;
          return {
            c: function() {
              o = k("slot"), s !== "default" && y(o, "name", s);
            },
            /**
             * @param {HTMLElement} target
             * @param {HTMLElement} [anchor]
             */
            m: function(u, c) {
              ft(u, o, c);
            },
            d: function(u) {
              u && P(o);
            }
          };
        };
      };
      if (await Promise.resolve(), !this.$$cn || this.$$c)
        return;
      const e = {}, n = Wt(this);
      for (const s of this.$$s)
        s in n && (e[s] = [t(s)]);
      for (const s of this.attributes) {
        const o = this.$$g_p(s.name);
        o in this.$$d || (this.$$d[o] = K(o, s.value, this.$$p_d, "toProp"));
      }
      for (const s in this.$$p_d)
        !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
      this.$$c = new this.$$ctor({
        target: this.shadowRoot || this,
        props: {
          ...this.$$d,
          $$slots: e,
          $$scope: {
            ctx: []
          }
        }
      });
      const i = () => {
        this.$$r = !0;
        for (const s in this.$$p_d)
          if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
            const o = K(
              s,
              this.$$d[s],
              this.$$p_d,
              "toAttribute"
            );
            o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
          }
        this.$$r = !1;
      };
      this.$$c.$$.after_update.push(i), i();
      for (const s in this.$$l)
        for (const o of this.$$l[s]) {
          const l = this.$$c.$on(s, o);
          this.$$l_u.set(o, l);
        }
      this.$$l = {};
    }
  }
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
  // and setting attributes through setAttribute etc, this is helpful
  attributeChangedCallback(t, e, n) {
    this.$$r || (t = this.$$g_p(t), this.$$d[t] = K(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
  }
  disconnectedCallback() {
    this.$$cn = !1, Promise.resolve().then(() => {
      !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
    });
  }
  $$g_p(t) {
    return Object.keys(this.$$p_d).find(
      (e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
    ) || t;
  }
});
function K(t, e, n, i) {
  const s = n[t]?.type;
  if (e = s === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !n[t])
    return e;
  if (i === "toAttribute")
    switch (s) {
      case "Object":
      case "Array":
        return e == null ? null : JSON.stringify(e);
      case "Boolean":
        return e ? "" : null;
      case "Number":
        return e ?? null;
      default:
        return e;
    }
  else
    switch (s) {
      case "Object":
      case "Array":
        return e && JSON.parse(e);
      case "Boolean":
        return e;
      case "Number":
        return e != null ? +e : e;
      default:
        return e;
    }
}
function Xt(t, e, n, i, s, o) {
  let l = class extends Lt {
    constructor() {
      super(t, n, s), this.$$p_d = e;
    }
    static get observedAttributes() {
      return Object.keys(e).map(
        (r) => (e[r].attribute || r).toLowerCase()
      );
    }
  };
  return Object.keys(e).forEach((r) => {
    Object.defineProperty(l.prototype, r, {
      get() {
        return this.$$c && r in this.$$c ? this.$$c[r] : this.$$d[r];
      },
      set(u) {
        u = K(r, u, e), this.$$d[r] = u, this.$$c?.$set({ [r]: u });
      }
    });
  }), i.forEach((r) => {
    Object.defineProperty(l.prototype, r, {
      get() {
        return this.$$c?.[r];
      }
    });
  }), t.element = /** @type {any} */
  l, l;
}
class Zt {
  /**
   * ### PRIVATE API
   *
   * Do not use, may change at any time
   *
   * @type {any}
   */
  $$ = void 0;
  /**
   * ### PRIVATE API
   *
   * Do not use, may change at any time
   *
   * @type {any}
   */
  $$set = void 0;
  /** @returns {void} */
  $destroy() {
    Gt(this, 1), this.$destroy = E;
  }
  /**
   * @template {Extract<keyof Events, string>} K
   * @param {K} type
   * @param {((e: Events[K]) => void) | null | undefined} callback
   * @returns {() => void}
   */
  $on(e, n) {
    if (!D(n))
      return E;
    const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
    return i.push(n), () => {
      const s = i.indexOf(n);
      s !== -1 && i.splice(s, 1);
    };
  }
  /**
   * @param {Partial<Props>} props
   * @returns {void}
   */
  $set(e) {
    this.$$set && !At(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
  }
}
const Yt = "4";
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yt);
function te(t) {
  zt(t, "svelte-1m890h5", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CashierModalWindow{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(0, 0, 0, 0.1))}.CashierModalContainer{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{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:125%;background-color:var(--emw--color-primary, #7EC51E);margin-top:var(--emw--spacing-small, 12px);cursor:pointer}.ModalCloseBtn{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{margin:var(--emw--spacing-x-large, 30px) var(--emw--spacing-small, 12px)}}");
}
const ee = (t) => ({}), gt = (t) => ({}), ne = (t) => ({}), pt = (t) => ({}), ie = (t) => ({}), yt = (t) => ({ class: "CashierModalText" }), se = (t) => ({}), bt = (t) => ({ class: "CashierModalTitle" });
function re(t) {
  let e, n;
  return {
    c() {
      e = $t("svg"), n = $t("path"), y(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"), y(n, "fill", "#111111"), y(e, "xmlns", "http://www.w3.org/2000/svg"), y(e, "width", "13"), y(e, "height", "20"), y(e, "viewBox", "0 0 13 13"), y(e, "fill", "none");
    },
    m(i, s) {
      ft(i, e, s), v(e, n);
    },
    p: E,
    d(i) {
      i && P(e);
    }
  };
}
function oe(t) {
  let e, n, i, s, o, l, r, u, c, m, _;
  const g = (
    /*#slots*/
    t[6].title
  ), a = I(
    g,
    t,
    /*$$scope*/
    t[5],
    bt
  ), d = (
    /*#slots*/
    t[6].text
  ), h = I(
    d,
    t,
    /*$$scope*/
    t[5],
    yt
  ), p = (
    /*#slots*/
    t[6].confirm
  ), $ = I(
    p,
    t,
    /*$$scope*/
    t[5],
    pt
  ), w = (
    /*#slots*/
    t[6].close
  ), C = I(
    w,
    t,
    /*$$scope*/
    t[5],
    gt
  ), b = C || re();
  return {
    c() {
      e = k("div"), n = k("div"), i = k("div"), a && a.c(), s = nt(), h && h.c(), o = nt(), l = k("span"), $ && $.c(), r = nt(), u = k("span"), b && b.c(), y(l, "class", "ModalOkBtn"), y(l, "role", "button"), y(u, "class", "ModalCloseBtn"), y(u, "role", "button"), y(i, "class", "CashierModalContainer"), y(i, "part", "CashierModalContainer"), y(n, "class", "CashierModalWindow"), y(n, "part", "CashierModalWindow"), y(n, "id", "Modal"), y(e, "part", "CustomStylingContainer");
    },
    m(f, x) {
      ft(f, e, x), v(e, n), v(n, i), a && a.m(i, null), v(i, s), h && h.m(i, null), v(i, o), v(i, l), $ && $.m(l, null), v(i, r), v(i, u), b && b.m(u, null), t[7](e), c = !0, m || (_ = [
        Q(
          l,
          "click",
          /*confirm*/
          t[2]
        ),
        Q(
          u,
          "click",
          /*close*/
          t[1]
        )
      ], m = !0);
    },
    p(f, [x]) {
      a && a.p && (!c || x & /*$$scope*/
      32) && F(
        a,
        g,
        f,
        /*$$scope*/
        f[5],
        c ? q(
          g,
          /*$$scope*/
          f[5],
          x,
          se
        ) : U(
          /*$$scope*/
          f[5]
        ),
        bt
      ), h && h.p && (!c || x & /*$$scope*/
      32) && F(
        h,
        d,
        f,
        /*$$scope*/
        f[5],
        c ? q(
          d,
          /*$$scope*/
          f[5],
          x,
          ie
        ) : U(
          /*$$scope*/
          f[5]
        ),
        yt
      ), $ && $.p && (!c || x & /*$$scope*/
      32) && F(
        $,
        p,
        f,
        /*$$scope*/
        f[5],
        c ? q(
          p,
          /*$$scope*/
          f[5],
          x,
          ne
        ) : U(
          /*$$scope*/
          f[5]
        ),
        pt
      ), C && C.p && (!c || x & /*$$scope*/
      32) && F(
        C,
        w,
        f,
        /*$$scope*/
        f[5],
        c ? q(
          w,
          /*$$scope*/
          f[5],
          x,
          ee
        ) : U(
          /*$$scope*/
          f[5]
        ),
        gt
      );
    },
    i(f) {
      c || (T(a, f), T(h, f), T($, f), T(b, f), c = !0);
    },
    o(f) {
      V(a, f), V(h, f), V($, f), V(b, f), c = !1;
    },
    d(f) {
      f && P(e), a && a.d(f), h && h.d(f), $ && $.d(f), b && b.d(f), t[7](null), m = !1, L(_);
    }
  };
}
function le(t, e, n) {
  let { $$slots: i = {}, $$scope: s } = e, { clientstyling: o = "" } = e, { clientstylingurl: l = "" } = e, r;
  const u = () => {
    window.postMessage({ type: "CloseModal" }, window.location.href);
  }, c = () => {
    window.postMessage({ type: "ConfirmModal" }, window.location.href), u();
  }, m = () => {
    let a = document.createElement("style");
    a.innerHTML = o, r.appendChild(a);
  }, _ = () => {
    let a = new URL(l), d = document.createElement("style");
    fetch(a.href).then((h) => h.text()).then((h) => {
      d.innerHTML = h, setTimeout(
        () => {
          r.appendChild(d);
        },
        1
      );
    });
  };
  function g(a) {
    st[a ? "unshift" : "push"](() => {
      r = a, n(0, r);
    });
  }
  return t.$$set = (a) => {
    "clientstyling" in a && n(3, o = a.clientstyling), "clientstylingurl" in a && n(4, l = a.clientstylingurl), "$$scope" in a && n(5, s = a.$$scope);
  }, t.$$.update = () => {
    t.$$.dirty & /*clientstyling, customStylingContainer*/
    9 && o && r && m(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
    17 && l && r && _();
  }, [
    r,
    u,
    c,
    o,
    l,
    s,
    i,
    g
  ];
}
class jt extends Zt {
  constructor(e) {
    super(), Qt(this, e, le, oe, St, { clientstyling: 3, clientstylingurl: 4 }, te);
  }
  get clientstyling() {
    return this.$$.ctx[3];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), et();
  }
  get clientstylingurl() {
    return this.$$.ctx[4];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), et();
  }
}
Xt(jt, { clientstyling: {}, clientstylingurl: {} }, ["title", "text", "confirm", "close"], [], !0);
const je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  default: jt
}, Symbol.toStringTag, { value: "Module" }));
export {
  Q as A,
  ce as B,
  _e as C,
  xe as D,
  Xt as E,
  z as F,
  ue as G,
  we as H,
  $e as I,
  be as J,
  Le as K,
  fe as L,
  he as M,
  $t as N,
  ge as O,
  pe as P,
  ot as Q,
  Ee as R,
  Zt as S,
  ye as T,
  Ce as U,
  ke as V,
  Me as W,
  je as X,
  Nt as a,
  Qt as b,
  zt as c,
  I as d,
  P as e,
  et as f,
  T as g,
  U as h,
  D as i,
  q as j,
  ve as k,
  ft as l,
  v as m,
  E as n,
  k as o,
  nt as p,
  y as q,
  L as r,
  St as s,
  V as t,
  F as u,
  ae as v,
  de as w,
  me as x,
  kt as y,
  st as z
};
