@everymatrix/cashier-page 1.75.1 → 1.76.1

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.
Files changed (84) hide show
  1. package/components/{CashierError-Do2yNrqx.cjs → CashierError-BQyQ2QE7.cjs} +17 -4
  2. package/components/{CashierError-DW5fJt8u.js → CashierError-DrApuR85.js} +755 -723
  3. package/components/{CashierError-C-zeMshr.js → CashierError-bO6xrjYl.js} +772 -740
  4. package/components/{CashierHeader-DO8Jda8y.js → CashierHeader-BbZGAnuG.js} +35 -35
  5. package/components/{CashierHeader-b4lqjMMD.cjs → CashierHeader-CCegZMC-.cjs} +1 -1
  6. package/components/{CashierHeader-BvRhx3QL.js → CashierHeader-DNaxJTUL.js} +37 -37
  7. package/components/{CashierIframeRedirect-tAMQ7K0U.cjs → CashierIframeRedirect-Blfr3pyV.cjs} +1 -1
  8. package/components/{CashierIframeRedirect-DaYR4ZSu.js → CashierIframeRedirect-C4vwtj8l.js} +28 -28
  9. package/components/{CashierIframeRedirect-BeOg9j9R.js → CashierIframeRedirect-CTxdepS4.js} +34 -34
  10. package/components/{CashierMethodDetails-D1Rbykqx.js → CashierMethodDetails-Baj2EjN-.js} +2781 -2549
  11. package/components/{CashierMethodDetails-3jy1FDno.js → CashierMethodDetails-DVo0cXMI.js} +2832 -2600
  12. package/components/CashierMethodDetails-DdrzL7xr.cjs +86 -0
  13. package/components/{CashierMethodsList-LrhQVCu_.js → CashierMethodsList-DKbeO7Zb.js} +78 -78
  14. package/components/{CashierMethodsList-CscGn4Gv.cjs → CashierMethodsList-DPzaIMdg.cjs} +1 -1
  15. package/components/{CashierMethodsList-B2qR503A.js → CashierMethodsList-Dy8fB_k6.js} +72 -72
  16. package/components/CashierModal-Bn0175Ok.cjs +1 -0
  17. package/components/CashierModal-CvFJoOmo.js +249 -0
  18. package/components/CashierModal-IDFc2AKX.js +249 -0
  19. package/components/{CashierNotifications-BRJ9mXv_.cjs → CashierNotifications-C8NH2amn.cjs} +1 -1
  20. package/components/{CashierNotifications-BD7efj1m.js → CashierNotifications-CN6iz8Le.js} +32 -32
  21. package/components/{CashierNotifications-CUz6gwXF.js → CashierNotifications-Ca26lmek.js} +32 -32
  22. package/components/{CashierPage-BbXHTH84.cjs → CashierPage-CfO-JUd0.cjs} +1 -1
  23. package/components/{CashierPage-Db8ZicVP.js → CashierPage-CyTi5QHc.js} +808 -1186
  24. package/components/{CashierPage-CW6lgArf.js → CashierPage-D5aNp8Ge.js} +808 -1186
  25. package/components/{CashierReceiptPage-CBbzq7O6.js → CashierReceiptPage-0O5m5b_q.js} +112 -112
  26. package/components/{CashierReceiptPage-Br9U1RfK.js → CashierReceiptPage-CihaXe7B.js} +88 -88
  27. package/components/{CashierReceiptPage-Cf5pCh8Z.cjs → CashierReceiptPage-Dpca_ujT.cjs} +1 -1
  28. package/components/{CashierSessionExpirationModal-B8lZyvQF.js → CashierSessionExpirationModal-BLu4TNHt.js} +57 -48
  29. package/components/CashierSessionExpirationModal-Bzf6Fc1m.cjs +2 -0
  30. package/components/{CashierSessionExpirationModal-BZLQ4F3T.js → CashierSessionExpirationModal-DBxlWcf6.js} +57 -48
  31. package/components/{CashierSpinner-B3kDZ7DD.cjs → CashierSpinner-DDvJyQQW.cjs} +1 -1
  32. package/components/{CashierSpinner-u67Lmpn1.js → CashierSpinner-DFcKn5vy.js} +19 -19
  33. package/components/{CashierSpinner-CWDfPPKy.js → CashierSpinner-wbkrOsgH.js} +19 -19
  34. package/components/{CashierTransactionHistory-DVJeMS7y.cjs → CashierTransactionHistory-BtkRWtAp.cjs} +1 -1
  35. package/components/{CashierTransactionHistory-BmG7XPkF.js → CashierTransactionHistory-C-r7zjU6.js} +76 -76
  36. package/components/{CashierTransactionHistory-C81J2b3z.js → CashierTransactionHistory-CCfgwGru.js} +119 -119
  37. package/components/CashierVerifications-BnkVpYfm.cjs +1 -0
  38. package/components/CashierVerifications-C7CPpJhz.js +647 -0
  39. package/components/CashierVerifications-Cwymmpvc.js +643 -0
  40. package/components/{TxnStatusIcon-DlBt7swO.cjs → TxnStatusIcon-CRrx95-L.cjs} +1 -1
  41. package/components/{TxnStatusIcon-Degz9oJQ.js → TxnStatusIcon-CiKk-nYc.js} +27 -27
  42. package/components/{TxnStatusIcon-DK8gf5Ec.js → TxnStatusIcon-DXXsTrZP.js} +23 -23
  43. package/components/{TxnTypeIcons-Cjawm9IS.js → TxnTypeIcons-Cdt9fsws.js} +14 -14
  44. package/components/{TxnTypeIcons-DH1CxqvE.cjs → TxnTypeIcons-DmiRydbQ.cjs} +1 -1
  45. package/components/{TxnTypeIcons-DdfELKt3.js → TxnTypeIcons-FNu8rfdT.js} +14 -14
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/stencil/index-97d17652-BD-QREJe.js +558 -0
  51. package/stencil/index-97d17652-DJqGt8q2.js +542 -0
  52. package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
  53. package/stencil/index-b2193545-ByMYc64n.cjs +1 -0
  54. package/stencil/index-b2193545-DWKmtYUG.js +503 -0
  55. package/stencil/index-b2193545-Dfy4Cgny.js +519 -0
  56. package/stencil/{ui-image-BWJXFWH1.js → ui-image-4dZyD9yF.js} +1 -1
  57. package/stencil/{ui-image-DIEeZy5u.js → ui-image-6u7OR3Eo.js} +1 -1
  58. package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-CER01gdl.cjs} +1 -1
  59. package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
  60. package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
  61. package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
  62. package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
  63. package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-Dh5Eqdlm.js} +2 -2
  64. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-_K8Pt3w9.js} +2 -2
  65. package/stencil/{ui-skeleton-4-zrLsIW.js → ui-skeleton-BTr272EW.js} +2 -2
  66. package/stencil/{ui-skeleton-DgAs7VA3.cjs → ui-skeleton-C4Ir1ffm.cjs} +1 -1
  67. package/stencil/{ui-skeleton-9boHSjtG.js → ui-skeleton-P4PO_42z.js} +2 -2
  68. package/stencil/{ui-skeleton-ae35c6f2-8tYGV8SR.js → ui-skeleton-ae35c6f2-BIdXBK8D.js} +1 -1
  69. package/stencil/{ui-skeleton-ae35c6f2-IN_dPA5_.js → ui-skeleton-ae35c6f2-C7WHUwAT.js} +1 -1
  70. package/stencil/{ui-skeleton-ae35c6f2-DLHrpWJM.cjs → ui-skeleton-ae35c6f2-jcrjm-Kl.cjs} +1 -1
  71. package/components/CashierMethodDetails-BccXMt8_.cjs +0 -99
  72. package/components/CashierModal-BU4NlVMY.js +0 -229
  73. package/components/CashierModal-CVXS5J4T.cjs +0 -1
  74. package/components/CashierModal-DvL5giYo.js +0 -229
  75. package/components/CashierSessionExpirationModal-CqZBSAuZ.cjs +0 -2
  76. package/components/CashierVerifications-BluIxyAW.js +0 -595
  77. package/components/CashierVerifications-DMMGPuTt.js +0 -599
  78. package/components/CashierVerifications-DbTUG014.cjs +0 -1
  79. package/stencil/index-97d17652--F7PvMq9.js +0 -542
  80. package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
  81. package/stencil/index-97d17652-CCFHkzJw.js +0 -558
  82. package/stencil/index-b2193545-BoSqyMpB.js +0 -519
  83. package/stencil/index-b2193545-D4dOaNlR.js +0 -503
  84. package/stencil/index-b2193545-DGHOe8n4.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./CashierError-BQyQ2QE7.cjs");function w(i,{delay:e=0,duration:n=400,easing:s=t.identity}={}){const l=+getComputedStyle(i).opacity;return{delay:e,duration:n,easing:s,css:a=>`opacity: ${a*l}`}}function k(i){t.append_styles(i,"svelte-f275jp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;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;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@media(max-width: 475px){#Modal{align-items:start}.ModalContainer{margin-top:50%;max-width:90%}}")}const x=i=>({}),C=i=>({});function v(i){let e,n,s,l,a,g,h,b,c,d,f,_;const m=i[12].content,o=t.create_slot(m,i,i[11],C);return{c(){e=t.element("div"),n=t.element("div"),s=t.element("div"),l=t.svg_element("svg"),a=t.svg_element("path"),g=t.space(),o&&o.c(),t.attr(a,"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"),t.attr(a,"fill","#111111"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","13"),t.attr(l,"height","13"),t.attr(l,"viewBox","0 0 13 13"),t.attr(l,"fill","none"),t.attr(l,"class","CloseButton"),t.attr(s,"class","ModalContainer"),t.attr(s,"style",h=i[3]==="true"?"height: 70%":"height: auto"),t.attr(n,"id","Modal"),t.add_render_callback(()=>i[14].call(n))},m(u,y){t.insert(u,e,y),t.append(e,n),t.append(n,s),t.append(s,l),t.append(l,a),t.append(s,g),o&&o.m(s,null),i[13](n),b=t.add_iframe_resize_listener(n,i[14].bind(n)),i[15](e),d=!0,f||(_=t.listen(l,"click",i[7]),f=!0)},p(u,y){i=u,o&&o.p&&(!d||y&2048)&&t.update_slot_base(o,m,i,i[11],d?t.get_slot_changes(m,i[11],y,x):t.get_all_dirty_from_scope(i[11]),C),(!d||y&8&&h!==(h=i[3]==="true"?"height: 70%":"height: auto"))&&t.attr(s,"style",h)},i(u){d||(t.transition_in(o,u),u&&t.add_render_callback(()=>{d&&(c||(c=t.create_bidirectional_transition(n,w,i[4],!0)),c.run(1))}),d=!0)},o(u){t.transition_out(o,u),u&&(c||(c=t.create_bidirectional_transition(n,w,i[4],!1)),c.run(0)),d=!1},d(u){u&&t.detach(e),o&&o.d(u),i[13](null),b(),u&&c&&c.end(),i[15](null),f=!1,_()}}}function S(i){let e,n,s=i[2]==="true"&&v(i);return{c(){s&&s.c(),e=t.empty()},m(l,a){s&&s.m(l,a),t.insert(l,e,a),n=!0},p(l,[a]){l[2]==="true"?s?(s.p(l,a),a&4&&t.transition_in(s,1)):(s=v(l),s.c(),t.transition_in(s,1),s.m(e.parentNode,e)):s&&(t.group_outros(),t.transition_out(s,1,1,()=>{s=null}),t.check_outros())},i(l){n||(t.transition_in(s),n=!0)},o(l){t.transition_out(s),n=!1},d(l){l&&t.detach(e),s&&s.d(l)}}}function z(i,e,n){let{$$slots:s={},$$scope:l}=e,{mbsource:a}=e,{clientstyling:g}=e,{clientstylingurl:h}=e,{show:b}=e,{isvideo:c=""}=e,{duration:d=200}=e,{width:f}=e,{height:_}=e,m,o;const u=()=>{window.postMessage({type:"CloseModal"},window.location.href)};t.onMount(()=>()=>{});function y(r){t.binding_callbacks[r?"unshift":"push"](()=>{m=r,n(6,m)})}function M(){f=this.clientWidth,_=this.clientHeight,n(0,f),n(1,_)}function L(r){t.binding_callbacks[r?"unshift":"push"](()=>{o=r,n(5,o)})}return i.$$set=r=>{"mbsource"in r&&n(8,a=r.mbsource),"clientstyling"in r&&n(9,g=r.clientstyling),"clientstylingurl"in r&&n(10,h=r.clientstylingurl),"show"in r&&n(2,b=r.show),"isvideo"in r&&n(3,c=r.isvideo),"duration"in r&&n(4,d=r.duration),"width"in r&&n(0,f=r.width),"height"in r&&n(1,_=r.height),"$$scope"in r&&n(11,l=r.$$scope)},i.$$.update=()=>{i.$$.dirty&544&&g&&o&&t.setClientStyling(o,g),i.$$.dirty&1056&&h&&o&&t.setClientStylingURL(o,h),i.$$.dirty&288&&a&&o&&t.setStreamStyling(o,`${a}.Style`)},[f,_,b,c,d,o,m,u,a,g,h,l,s,y,M,L]}class p extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,z,S,t.safe_not_equal,{mbsource:8,clientstyling:9,clientstylingurl:10,show:2,isvideo:3,duration:4,width:0,height:1},k)}get mbsource(){return this.$$.ctx[8]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get show(){return this.$$.ctx[2]}set show(e){this.$$set({show:e}),t.flush()}get isvideo(){return this.$$.ctx[3]}set isvideo(e){this.$$set({isvideo:e}),t.flush()}get duration(){return this.$$.ctx[4]}set duration(e){this.$$set({duration:e}),t.flush()}get width(){return this.$$.ctx[0]}set width(e){this.$$set({width:e}),t.flush()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),t.flush()}}t.create_custom_element(p,{mbsource:{},clientstyling:{},clientstylingurl:{},show:{},isvideo:{},duration:{},width:{},height:{}},["content"],[],!0);const j=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}));exports.CashierModal_ce=j;exports.fade=w;
@@ -0,0 +1,249 @@
1
+ import { Z as E, S as H, b as P, f as g, c as R, s as T, d as U, x as W, k as N, t as v, o as M, a0 as X, p as O, r as D, v as F, w as G, e as I, g as x, X as L, h as J, j as u, N as k, l as C, a1 as K, C as Q, u as V, m as Y, n as $, a2 as p, a3 as tt, A as S, B as et } from "./CashierError-bO6xrjYl.js";
2
+ function z(e, { delay: t = 0, duration: i = 400, easing: n = E } = {}) {
3
+ const s = +getComputedStyle(e).opacity;
4
+ return {
5
+ delay: t,
6
+ duration: i,
7
+ easing: n,
8
+ css: (r) => `opacity: ${r * s}`
9
+ };
10
+ }
11
+ function it(e) {
12
+ U(e, "svelte-f275jp", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;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;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@media(max-width: 475px){#Modal{align-items:start}.ModalContainer{margin-top:50%;max-width:90%}}");
13
+ }
14
+ const nt = (e) => ({}), j = (e) => ({});
15
+ function B(e) {
16
+ let t, i, n, s, r, _, h, b, c, d, f, m;
17
+ const y = (
18
+ /*#slots*/
19
+ e[12].content
20
+ ), o = I(
21
+ y,
22
+ e,
23
+ /*$$scope*/
24
+ e[11],
25
+ j
26
+ );
27
+ return {
28
+ c() {
29
+ t = x("div"), i = x("div"), n = x("div"), s = L("svg"), r = L("path"), _ = J(), o && o.c(), u(r, "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"), u(r, "fill", "#111111"), u(s, "xmlns", "http://www.w3.org/2000/svg"), u(s, "width", "13"), u(s, "height", "13"), u(s, "viewBox", "0 0 13 13"), u(s, "fill", "none"), u(s, "class", "CloseButton"), u(n, "class", "ModalContainer"), u(n, "style", h = /*isvideo*/
30
+ e[3] === "true" ? "height: 70%" : "height: auto"), u(i, "id", "Modal"), k(() => (
31
+ /*div1_elementresize_handler*/
32
+ e[14].call(i)
33
+ ));
34
+ },
35
+ m(a, w) {
36
+ N(a, t, w), C(t, i), C(i, n), C(n, s), C(s, r), C(n, _), o && o.m(n, null), e[13](i), b = K(
37
+ i,
38
+ /*div1_elementresize_handler*/
39
+ e[14].bind(i)
40
+ ), e[15](t), d = !0, f || (m = Q(
41
+ s,
42
+ "click",
43
+ /*closeModal*/
44
+ e[7]
45
+ ), f = !0);
46
+ },
47
+ p(a, w) {
48
+ e = a, o && o.p && (!d || w & /*$$scope*/
49
+ 2048) && V(
50
+ o,
51
+ y,
52
+ e,
53
+ /*$$scope*/
54
+ e[11],
55
+ d ? $(
56
+ y,
57
+ /*$$scope*/
58
+ e[11],
59
+ w,
60
+ nt
61
+ ) : Y(
62
+ /*$$scope*/
63
+ e[11]
64
+ ),
65
+ j
66
+ ), (!d || w & /*isvideo*/
67
+ 8 && h !== (h = /*isvideo*/
68
+ e[3] === "true" ? "height: 70%" : "height: auto")) && u(n, "style", h);
69
+ },
70
+ i(a) {
71
+ d || (v(o, a), a && k(() => {
72
+ d && (c || (c = p(
73
+ i,
74
+ z,
75
+ /*duration*/
76
+ e[4],
77
+ !0
78
+ )), c.run(1));
79
+ }), d = !0);
80
+ },
81
+ o(a) {
82
+ M(o, a), a && (c || (c = p(
83
+ i,
84
+ z,
85
+ /*duration*/
86
+ e[4],
87
+ !1
88
+ )), c.run(0)), d = !1;
89
+ },
90
+ d(a) {
91
+ a && O(t), o && o.d(a), e[13](null), b(), a && c && c.end(), e[15](null), f = !1, m();
92
+ }
93
+ };
94
+ }
95
+ function st(e) {
96
+ let t, i, n = (
97
+ /*show*/
98
+ e[2] === "true" && B(e)
99
+ );
100
+ return {
101
+ c() {
102
+ n && n.c(), t = W();
103
+ },
104
+ m(s, r) {
105
+ n && n.m(s, r), N(s, t, r), i = !0;
106
+ },
107
+ p(s, [r]) {
108
+ /*show*/
109
+ s[2] === "true" ? n ? (n.p(s, r), r & /*show*/
110
+ 4 && v(n, 1)) : (n = B(s), n.c(), v(n, 1), n.m(t.parentNode, t)) : n && (tt(), M(n, 1, 1, () => {
111
+ n = null;
112
+ }), X());
113
+ },
114
+ i(s) {
115
+ i || (v(n), i = !0);
116
+ },
117
+ o(s) {
118
+ M(n), i = !1;
119
+ },
120
+ d(s) {
121
+ s && O(t), n && n.d(s);
122
+ }
123
+ };
124
+ }
125
+ function lt(e, t, i) {
126
+ let { $$slots: n = {}, $$scope: s } = t, { mbsource: r } = t, { clientstyling: _ } = t, { clientstylingurl: h } = t, { show: b } = t, { isvideo: c = "" } = t, { duration: d = 200 } = t, { width: f } = t, { height: m } = t, y, o;
127
+ const a = () => {
128
+ window.postMessage({ type: "CloseModal" }, window.location.href);
129
+ };
130
+ D(() => () => {
131
+ });
132
+ function w(l) {
133
+ S[l ? "unshift" : "push"](() => {
134
+ y = l, i(6, y);
135
+ });
136
+ }
137
+ function q() {
138
+ f = this.clientWidth, m = this.clientHeight, i(0, f), i(1, m);
139
+ }
140
+ function A(l) {
141
+ S[l ? "unshift" : "push"](() => {
142
+ o = l, i(5, o);
143
+ });
144
+ }
145
+ return e.$$set = (l) => {
146
+ "mbsource" in l && i(8, r = l.mbsource), "clientstyling" in l && i(9, _ = l.clientstyling), "clientstylingurl" in l && i(10, h = l.clientstylingurl), "show" in l && i(2, b = l.show), "isvideo" in l && i(3, c = l.isvideo), "duration" in l && i(4, d = l.duration), "width" in l && i(0, f = l.width), "height" in l && i(1, m = l.height), "$$scope" in l && i(11, s = l.$$scope);
147
+ }, e.$$.update = () => {
148
+ e.$$.dirty & /*clientstyling, customStylingContainer*/
149
+ 544 && _ && o && et(o, _), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
150
+ 1056 && h && o && F(o, h), e.$$.dirty & /*mbsource, customStylingContainer*/
151
+ 288 && r && o && G(o, `${r}.Style`);
152
+ }, [
153
+ f,
154
+ m,
155
+ b,
156
+ c,
157
+ d,
158
+ o,
159
+ y,
160
+ a,
161
+ r,
162
+ _,
163
+ h,
164
+ s,
165
+ n,
166
+ w,
167
+ q,
168
+ A
169
+ ];
170
+ }
171
+ class Z extends H {
172
+ constructor(t) {
173
+ super(), P(
174
+ this,
175
+ t,
176
+ lt,
177
+ st,
178
+ T,
179
+ {
180
+ mbsource: 8,
181
+ clientstyling: 9,
182
+ clientstylingurl: 10,
183
+ show: 2,
184
+ isvideo: 3,
185
+ duration: 4,
186
+ width: 0,
187
+ height: 1
188
+ },
189
+ it
190
+ );
191
+ }
192
+ get mbsource() {
193
+ return this.$$.ctx[8];
194
+ }
195
+ set mbsource(t) {
196
+ this.$$set({ mbsource: t }), g();
197
+ }
198
+ get clientstyling() {
199
+ return this.$$.ctx[9];
200
+ }
201
+ set clientstyling(t) {
202
+ this.$$set({ clientstyling: t }), g();
203
+ }
204
+ get clientstylingurl() {
205
+ return this.$$.ctx[10];
206
+ }
207
+ set clientstylingurl(t) {
208
+ this.$$set({ clientstylingurl: t }), g();
209
+ }
210
+ get show() {
211
+ return this.$$.ctx[2];
212
+ }
213
+ set show(t) {
214
+ this.$$set({ show: t }), g();
215
+ }
216
+ get isvideo() {
217
+ return this.$$.ctx[3];
218
+ }
219
+ set isvideo(t) {
220
+ this.$$set({ isvideo: t }), g();
221
+ }
222
+ get duration() {
223
+ return this.$$.ctx[4];
224
+ }
225
+ set duration(t) {
226
+ this.$$set({ duration: t }), g();
227
+ }
228
+ get width() {
229
+ return this.$$.ctx[0];
230
+ }
231
+ set width(t) {
232
+ this.$$set({ width: t }), g();
233
+ }
234
+ get height() {
235
+ return this.$$.ctx[1];
236
+ }
237
+ set height(t) {
238
+ this.$$set({ height: t }), g();
239
+ }
240
+ }
241
+ R(Z, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, isvideo: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
242
+ const rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
243
+ __proto__: null,
244
+ default: Z
245
+ }, Symbol.toStringTag, { value: "Module" }));
246
+ export {
247
+ rt as C,
248
+ z as f
249
+ };
@@ -0,0 +1,249 @@
1
+ import { Z as E, S as H, b as P, f as g, c as R, s as T, d as U, x as W, k as N, t as v, o as M, a0 as X, p as O, r as D, v as F, w as G, e as I, g as x, X as L, h as J, j as u, N as k, l as C, a1 as K, C as Q, u as V, m as Y, n as $, a2 as p, a3 as tt, A as S, B as et } from "./CashierError-DrApuR85.js";
2
+ function z(e, { delay: t = 0, duration: i = 400, easing: n = E } = {}) {
3
+ const s = +getComputedStyle(e).opacity;
4
+ return {
5
+ delay: t,
6
+ duration: i,
7
+ easing: n,
8
+ css: (r) => `opacity: ${r * s}`
9
+ };
10
+ }
11
+ function it(e) {
12
+ U(e, "svelte-f275jp", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}#Modal{position:fixed;width:100%;height:100%;top:0;left:0;background:var(--emw--color-black-transparency-10, rgba(0, 0, 0, 0.1));display:flex;justify-content:center;align-items:center;z-index:10}.ModalContainer{min-width:300px;height:100%;max-height:70%;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;border-radius:var(--mmw--border-radius-large-plus, 10px);background-color:var(--emw--color-white, #fff);max-width:600px}.CloseButton{position:absolute;left:0;top:0;margin:10px;z-index:20}@media(max-width: 475px){#Modal{align-items:start}.ModalContainer{margin-top:50%;max-width:90%}}");
13
+ }
14
+ const nt = (e) => ({}), j = (e) => ({});
15
+ function B(e) {
16
+ let t, i, n, s, r, _, h, b, c, d, f, m;
17
+ const y = (
18
+ /*#slots*/
19
+ e[12].content
20
+ ), o = I(
21
+ y,
22
+ e,
23
+ /*$$scope*/
24
+ e[11],
25
+ j
26
+ );
27
+ return {
28
+ c() {
29
+ t = x("div"), i = x("div"), n = x("div"), s = L("svg"), r = L("path"), _ = J(), o && o.c(), u(r, "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"), u(r, "fill", "#111111"), u(s, "xmlns", "http://www.w3.org/2000/svg"), u(s, "width", "13"), u(s, "height", "13"), u(s, "viewBox", "0 0 13 13"), u(s, "fill", "none"), u(s, "class", "CloseButton"), u(n, "class", "ModalContainer"), u(n, "style", h = /*isvideo*/
30
+ e[3] === "true" ? "height: 70%" : "height: auto"), u(i, "id", "Modal"), k(() => (
31
+ /*div1_elementresize_handler*/
32
+ e[14].call(i)
33
+ ));
34
+ },
35
+ m(a, w) {
36
+ N(a, t, w), C(t, i), C(i, n), C(n, s), C(s, r), C(n, _), o && o.m(n, null), e[13](i), b = K(
37
+ i,
38
+ /*div1_elementresize_handler*/
39
+ e[14].bind(i)
40
+ ), e[15](t), d = !0, f || (m = Q(
41
+ s,
42
+ "click",
43
+ /*closeModal*/
44
+ e[7]
45
+ ), f = !0);
46
+ },
47
+ p(a, w) {
48
+ e = a, o && o.p && (!d || w & /*$$scope*/
49
+ 2048) && V(
50
+ o,
51
+ y,
52
+ e,
53
+ /*$$scope*/
54
+ e[11],
55
+ d ? $(
56
+ y,
57
+ /*$$scope*/
58
+ e[11],
59
+ w,
60
+ nt
61
+ ) : Y(
62
+ /*$$scope*/
63
+ e[11]
64
+ ),
65
+ j
66
+ ), (!d || w & /*isvideo*/
67
+ 8 && h !== (h = /*isvideo*/
68
+ e[3] === "true" ? "height: 70%" : "height: auto")) && u(n, "style", h);
69
+ },
70
+ i(a) {
71
+ d || (v(o, a), a && k(() => {
72
+ d && (c || (c = p(
73
+ i,
74
+ z,
75
+ /*duration*/
76
+ e[4],
77
+ !0
78
+ )), c.run(1));
79
+ }), d = !0);
80
+ },
81
+ o(a) {
82
+ M(o, a), a && (c || (c = p(
83
+ i,
84
+ z,
85
+ /*duration*/
86
+ e[4],
87
+ !1
88
+ )), c.run(0)), d = !1;
89
+ },
90
+ d(a) {
91
+ a && O(t), o && o.d(a), e[13](null), b(), a && c && c.end(), e[15](null), f = !1, m();
92
+ }
93
+ };
94
+ }
95
+ function st(e) {
96
+ let t, i, n = (
97
+ /*show*/
98
+ e[2] === "true" && B(e)
99
+ );
100
+ return {
101
+ c() {
102
+ n && n.c(), t = W();
103
+ },
104
+ m(s, r) {
105
+ n && n.m(s, r), N(s, t, r), i = !0;
106
+ },
107
+ p(s, [r]) {
108
+ /*show*/
109
+ s[2] === "true" ? n ? (n.p(s, r), r & /*show*/
110
+ 4 && v(n, 1)) : (n = B(s), n.c(), v(n, 1), n.m(t.parentNode, t)) : n && (tt(), M(n, 1, 1, () => {
111
+ n = null;
112
+ }), X());
113
+ },
114
+ i(s) {
115
+ i || (v(n), i = !0);
116
+ },
117
+ o(s) {
118
+ M(n), i = !1;
119
+ },
120
+ d(s) {
121
+ s && O(t), n && n.d(s);
122
+ }
123
+ };
124
+ }
125
+ function lt(e, t, i) {
126
+ let { $$slots: n = {}, $$scope: s } = t, { mbsource: r } = t, { clientstyling: _ } = t, { clientstylingurl: h } = t, { show: b } = t, { isvideo: c = "" } = t, { duration: d = 200 } = t, { width: f } = t, { height: m } = t, y, o;
127
+ const a = () => {
128
+ window.postMessage({ type: "CloseModal" }, window.location.href);
129
+ };
130
+ D(() => () => {
131
+ });
132
+ function w(l) {
133
+ S[l ? "unshift" : "push"](() => {
134
+ y = l, i(6, y);
135
+ });
136
+ }
137
+ function q() {
138
+ f = this.clientWidth, m = this.clientHeight, i(0, f), i(1, m);
139
+ }
140
+ function A(l) {
141
+ S[l ? "unshift" : "push"](() => {
142
+ o = l, i(5, o);
143
+ });
144
+ }
145
+ return e.$$set = (l) => {
146
+ "mbsource" in l && i(8, r = l.mbsource), "clientstyling" in l && i(9, _ = l.clientstyling), "clientstylingurl" in l && i(10, h = l.clientstylingurl), "show" in l && i(2, b = l.show), "isvideo" in l && i(3, c = l.isvideo), "duration" in l && i(4, d = l.duration), "width" in l && i(0, f = l.width), "height" in l && i(1, m = l.height), "$$scope" in l && i(11, s = l.$$scope);
147
+ }, e.$$.update = () => {
148
+ e.$$.dirty & /*clientstyling, customStylingContainer*/
149
+ 544 && _ && o && et(o, _), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
150
+ 1056 && h && o && F(o, h), e.$$.dirty & /*mbsource, customStylingContainer*/
151
+ 288 && r && o && G(o, `${r}.Style`);
152
+ }, [
153
+ f,
154
+ m,
155
+ b,
156
+ c,
157
+ d,
158
+ o,
159
+ y,
160
+ a,
161
+ r,
162
+ _,
163
+ h,
164
+ s,
165
+ n,
166
+ w,
167
+ q,
168
+ A
169
+ ];
170
+ }
171
+ class Z extends H {
172
+ constructor(t) {
173
+ super(), P(
174
+ this,
175
+ t,
176
+ lt,
177
+ st,
178
+ T,
179
+ {
180
+ mbsource: 8,
181
+ clientstyling: 9,
182
+ clientstylingurl: 10,
183
+ show: 2,
184
+ isvideo: 3,
185
+ duration: 4,
186
+ width: 0,
187
+ height: 1
188
+ },
189
+ it
190
+ );
191
+ }
192
+ get mbsource() {
193
+ return this.$$.ctx[8];
194
+ }
195
+ set mbsource(t) {
196
+ this.$$set({ mbsource: t }), g();
197
+ }
198
+ get clientstyling() {
199
+ return this.$$.ctx[9];
200
+ }
201
+ set clientstyling(t) {
202
+ this.$$set({ clientstyling: t }), g();
203
+ }
204
+ get clientstylingurl() {
205
+ return this.$$.ctx[10];
206
+ }
207
+ set clientstylingurl(t) {
208
+ this.$$set({ clientstylingurl: t }), g();
209
+ }
210
+ get show() {
211
+ return this.$$.ctx[2];
212
+ }
213
+ set show(t) {
214
+ this.$$set({ show: t }), g();
215
+ }
216
+ get isvideo() {
217
+ return this.$$.ctx[3];
218
+ }
219
+ set isvideo(t) {
220
+ this.$$set({ isvideo: t }), g();
221
+ }
222
+ get duration() {
223
+ return this.$$.ctx[4];
224
+ }
225
+ set duration(t) {
226
+ this.$$set({ duration: t }), g();
227
+ }
228
+ get width() {
229
+ return this.$$.ctx[0];
230
+ }
231
+ set width(t) {
232
+ this.$$set({ width: t }), g();
233
+ }
234
+ get height() {
235
+ return this.$$.ctx[1];
236
+ }
237
+ set height(t) {
238
+ this.$$set({ height: t }), g();
239
+ }
240
+ }
241
+ R(Z, { mbsource: {}, clientstyling: {}, clientstylingurl: {}, show: {}, isvideo: {}, duration: {}, width: {}, height: {} }, ["content"], [], !0);
242
+ const rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
243
+ __proto__: null,
244
+ default: Z
245
+ }, Symbol.toStringTag, { value: "Module" }));
246
+ export {
247
+ rt as C,
248
+ z as f
249
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierError-Do2yNrqx.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,r,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),r=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(a,u){t.insert(a,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,r),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(a,[u]){u&1&&t.set_data(c,a[0]),u&2&&t.set_data(r,a[1])},i:t.noop,o:t.noop,d(a){a&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:r=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},a=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(r),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,r=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&a(),i.$$.dirty&36&&r&&l&&u()},[c,f,l,d,o,r,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierError-BQyQ2QE7.cjs");function y(i){t.append_styles(i,"svelte-ags340",".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}")}function b(i){let e,s,c,f,o,r,l,d;return{c(){e=t.element("div"),s=t.element("span"),c=t.text(i[0]),f=t.space(),o=t.element("button"),r=t.text(i[1]),t.attr(e,"class","CashierNotifications")},m(a,u){t.insert(a,e,u),t.append(e,s),t.append(s,c),t.append(e,f),t.append(e,o),t.append(o,r),i[6](e),l||(d=t.listen(o,"click",i[3]),l=!0)},p(a,[u]){u&1&&t.set_data(c,a[0]),u&2&&t.set_data(r,a[1])},i:t.noop,o:t.noop,d(a){a&&t.detach(e),i[6](null),l=!1,d()}}}function x(i,e,s){let{text:c}=e,{button:f}=e,{clientstyling:o=""}=e,{clientstylingurl:r=""}=e,l;const d=()=>{window.postMessage({type:"NotificationButtonClick"},window.location.href)},a=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},u=()=>{let n=new URL(r),h=document.createElement("style");fetch(n.href).then(m=>m.text()).then(m=>{h.innerHTML=m,setTimeout(()=>{l.appendChild(h)},1)})};function p(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(2,l)})}return i.$$set=n=>{"text"in n&&s(0,c=n.text),"button"in n&&s(1,f=n.button),"clientstyling"in n&&s(4,o=n.clientstyling),"clientstylingurl"in n&&s(5,r=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&20&&o&&l&&a(),i.$$.dirty&36&&r&&l&&u()},[c,f,l,d,o,r,p]}class g extends t.SvelteComponent{constructor(e){super(),t.init$1(this,e,x,b,t.safe_not_equal,{text:0,button:1,clientstyling:4,clientstylingurl:5},y)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),t.flush()}get button(){return this.$$.ctx[1]}set button(e){this.$$set({button:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(g,{text:{},button:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=g;
@@ -1,26 +1,26 @@
1
- import { S as C, b as v, s as _, f as d, c as k, y as b, e as N, v as p, k as z, l as f, z as S, m as h, w as x, n as E, o as L, x as M, D as T } from "./CashierError-C-zeMshr.js";
2
- function H(n) {
3
- k(n, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
1
+ import { S as C, b as v, f as d, c as _, s as k, d as N, g as h, y as b, h as z, j as S, k as E, l as f, C as L, z as p, D as x, p as M, A as T } from "./CashierError-bO6xrjYl.js";
2
+ function H(i) {
3
+ N(i, "svelte-ags340", ".CashierNotifications{position:absolute;z-index:2;background-color:var(--emw--color-background, #111);color:var(--emw--color-white, #fff);display:flex;border-radius:var(--emw--border-radius-medium, 4px);align-items:center;gap:var(--emw--spacing-small, 12px);font-size:var(--emw--font-size-small, 14px);padding:var(--emw--spacing-small, 12px) var(--emw--spacing-medium, 15px);min-height:50px;pointer-events:auto;bottom:0;width:calc(100% - 30px)}.CashierNotifications span,.CashierNotifications button{font-family:inherit;border:none;font-variant:normal}.CashierNotifications span{line-height:normal}.CashierNotifications button{color:var(--emw--color-primary, #7EC51E);background-color:transparent;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-bold, 700);font-family:inherit}");
4
4
  }
5
- function R(n) {
6
- let t, s, r, u, l, a, i, m;
5
+ function R(i) {
6
+ let t, s, r, u, l, a, n, m;
7
7
  return {
8
8
  c() {
9
- t = h("div"), s = h("span"), r = x(
9
+ t = h("div"), s = h("span"), r = b(
10
10
  /*text*/
11
- n[0]
12
- ), u = E(), l = h("button"), a = x(
11
+ i[0]
12
+ ), u = z(), l = h("button"), a = b(
13
13
  /*button*/
14
- n[1]
15
- ), L(t, "class", "CashierNotifications");
14
+ i[1]
15
+ ), S(t, "class", "CashierNotifications");
16
16
  },
17
17
  m(o, c) {
18
- z(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), n[6](t), i || (m = S(
18
+ E(o, t, c), f(t, s), f(s, r), f(t, u), f(t, l), f(l, a), i[6](t), n || (m = L(
19
19
  l,
20
20
  "click",
21
21
  /*notificationClick*/
22
- n[3]
23
- ), i = !0);
22
+ i[3]
23
+ ), n = !0);
24
24
  },
25
25
  p(o, [c]) {
26
26
  c & /*text*/
@@ -35,60 +35,60 @@ function R(n) {
35
35
  o[1]
36
36
  );
37
37
  },
38
- i: b,
39
- o: b,
38
+ i: x,
39
+ o: x,
40
40
  d(o) {
41
- o && N(t), n[6](null), i = !1, m();
41
+ o && M(t), i[6](null), n = !1, m();
42
42
  }
43
43
  };
44
44
  }
45
- function U(n, t, s) {
46
- let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, i;
45
+ function U(i, t, s) {
46
+ let { text: r } = t, { button: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, n;
47
47
  const m = () => {
48
48
  window.postMessage({ type: "NotificationButtonClick" }, window.location.href);
49
49
  }, o = () => {
50
50
  let e = document.createElement("style");
51
- e.innerHTML = l, i.appendChild(e);
51
+ e.innerHTML = l, n.appendChild(e);
52
52
  }, c = () => {
53
53
  let e = new URL(a), y = document.createElement("style");
54
54
  fetch(e.href).then((g) => g.text()).then((g) => {
55
55
  y.innerHTML = g, setTimeout(
56
56
  () => {
57
- i.appendChild(y);
57
+ n.appendChild(y);
58
58
  },
59
59
  1
60
60
  );
61
61
  });
62
62
  };
63
63
  function w(e) {
64
- M[e ? "unshift" : "push"](() => {
65
- i = e, s(2, i);
64
+ T[e ? "unshift" : "push"](() => {
65
+ n = e, s(2, n);
66
66
  });
67
67
  }
68
- return n.$$set = (e) => {
68
+ return i.$$set = (e) => {
69
69
  "text" in e && s(0, r = e.text), "button" in e && s(1, u = e.button), "clientstyling" in e && s(4, l = e.clientstyling), "clientstylingurl" in e && s(5, a = e.clientstylingurl);
70
- }, n.$$.update = () => {
71
- n.$$.dirty & /*clientstyling, customStylingContainer*/
72
- 20 && l && i && o(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
73
- 36 && a && i && c();
70
+ }, i.$$.update = () => {
71
+ i.$$.dirty & /*clientstyling, customStylingContainer*/
72
+ 20 && l && n && o(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
73
+ 36 && a && n && c();
74
74
  }, [
75
75
  r,
76
76
  u,
77
- i,
77
+ n,
78
78
  m,
79
79
  l,
80
80
  a,
81
81
  w
82
82
  ];
83
83
  }
84
- class q extends C {
84
+ class j extends C {
85
85
  constructor(t) {
86
86
  super(), v(
87
87
  this,
88
88
  t,
89
89
  U,
90
90
  R,
91
- _,
91
+ k,
92
92
  {
93
93
  text: 0,
94
94
  button: 1,
@@ -123,7 +123,7 @@ class q extends C {
123
123
  this.$$set({ clientstylingurl: t }), d();
124
124
  }
125
125
  }
126
- T(q, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
126
+ _(j, { text: {}, button: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
127
127
  export {
128
- q as default
128
+ j as default
129
129
  };