@everymatrix/cashier-method-details 1.45.7 → 1.45.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/components/{CashierConfirmModal-BihPvQBJ.cjs → CashierConfirmModal-BeEK5pGj.cjs} +1 -1
  2. package/components/{CashierConfirmModal-BMW4zSn1.js → CashierConfirmModal-Ccz0Sdnq.js} +5 -5
  3. package/components/{CashierError-gARTV8-m.js → CashierError-CujgVRnj.js} +1 -1
  4. package/components/{CashierError-D6oq8-CP.cjs → CashierError-CxH7AHkC.cjs} +1 -1
  5. package/components/{CashierHeader-yroTHP8Z.js → CashierHeader-BjbX0y3M.js} +20 -20
  6. package/components/CashierHeader-D4Fvlhzb.cjs +1 -0
  7. package/components/{CashierIframeRedirect-J3YBaaqC.js → CashierIframeRedirect-BYex8D-E.js} +4 -4
  8. package/components/{CashierIframeRedirect-BVX_GPxi.cjs → CashierIframeRedirect-D1r0SPVl.cjs} +1 -1
  9. package/components/{CashierMethodDetails-BA_zrJUt.cjs → CashierMethodDetails-alFTu3Oh.cjs} +3 -3
  10. package/components/{CashierMethodDetails-CwK4FlNt.js → CashierMethodDetails-h2WzVV9I.js} +1031 -1003
  11. package/components/{CashierModal-DhSF7r-z.cjs → CashierModal-Dh8HuQn-.cjs} +1 -1
  12. package/components/{CashierModal-B8UzDwRR.js → CashierModal-DjGgvDJK.js} +1 -1
  13. package/components/{CashierNotifications-DKp7tXLX.js → CashierNotifications-BmUYtlED.js} +1 -1
  14. package/components/{CashierNotifications-YYL3Z0mZ.cjs → CashierNotifications-C2D2LjK6.cjs} +1 -1
  15. package/components/{CashierReceiptPage-Bb2A4Vm-.cjs → CashierReceiptPage-CoOmD9Dv.cjs} +1 -1
  16. package/components/{CashierReceiptPage--wA7aLAd.js → CashierReceiptPage-D-0VzBys.js} +23 -23
  17. package/components/{CashierSpinner-CsQIAFM9.cjs → CashierSpinner-BYRAyXQ3.cjs} +1 -1
  18. package/components/{CashierSpinner-Lm8ZCB8I.js → CashierSpinner-BhJd9GIb.js} +1 -1
  19. package/es2015/cashier-method-details.cjs +1 -1
  20. package/es2015/cashier-method-details.js +1 -1
  21. package/package.json +1 -1
  22. package/components/CashierHeader-BsMg5hLV.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { S as Be, b as Ee, f as B, c as Le, a as Ze, d as Me, g as z, h as E, D as x, j as a, l as p, k as d, n as K, v as u, w as we, H as Re, C as ie, E as M, y as w, A as I, z as R, J as le, x as Qe, L as Se } from "./CashierConfirmModal-BMW4zSn1.js";
2
- import { d as ce, u as De } from "./CashierMethodDetails-CwK4FlNt.js";
3
- import { a as Ge, i as xe, $ as Ue, b as Ce } from "./CashierError-gARTV8-m.js";
1
+ import { S as Be, b as Ee, f as B, c as Ze, a as Le, d as Me, g as z, h as E, D as x, j as a, l as p, k as d, n as K, v as u, w as we, H as Re, C as ie, E as M, y as w, A as I, z as R, K as le, x as Qe, M as Se } from "./CashierConfirmModal-Ccz0Sdnq.js";
2
+ import { d as ce, u as De } from "./CashierMethodDetails-h2WzVV9I.js";
3
+ import { a as Ge, i as xe, $ as Ue, b as Ce } from "./CashierError-CujgVRnj.js";
4
4
  function oe(A, e) {
5
5
  Ge(A, e);
6
6
  }
@@ -326,7 +326,7 @@ function $e(A) {
326
326
  };
327
327
  }
328
328
  function en(A) {
329
- let e, n, t, f, l, c, v, o, s, g, L, X, m, b, Q, S, D, U, T, G, C = (
329
+ let e, n, t, f, l, c, v, o, s, g, Z, X, m, b, Q, S, D, U, T, G, C = (
330
330
  /*$_*/
331
331
  A[18]("close") + ""
332
332
  ), N, F, Y, j = (
@@ -349,7 +349,7 @@ function en(A) {
349
349
  e = z("div"), j && j.c(), n = E(), h && h.c(), t = E(), f = z("div"), l = z("img"), v = E(), o = z("div"), s = z("h2"), g = w(
350
350
  /*title*/
351
351
  A[12]
352
- ), L = E(), X = z("div"), m = w(
352
+ ), Z = E(), X = z("div"), m = w(
353
353
  /*subTitle*/
354
354
  A[11]
355
355
  ), b = E(), Q = z("div"), S = w(
@@ -359,7 +359,7 @@ function en(A) {
359
359
  A[14]) || a(l, "src", c), a(l, "class", "StatusLogo"), a(s, "class", "Title"), a(X, "class", "SubTitle"), a(o, "class", "TitleWrapper"), a(f, "class", "ReceiptWrapper"), a(Q, "class", "Text"), a(G, "class", "PrimaryButton");
360
360
  },
361
361
  m(r, P) {
362
- d(r, e, P), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, P), d(r, f, P), p(f, l), p(f, v), p(f, o), p(o, s), p(s, g), p(o, L), p(o, X), p(X, m), d(r, b, P), d(r, Q, P), p(Q, S), d(r, D, P), H && H.m(r, P), d(r, U, P), J && J.m(r, P), d(r, T, P), d(r, G, P), p(G, N), F || (Y = I(
362
+ d(r, e, P), j && j.m(e, null), p(e, n), h && h.m(e, null), d(r, t, P), d(r, f, P), p(f, l), p(f, v), p(f, o), p(o, s), p(s, g), p(o, Z), p(o, X), p(X, m), d(r, b, P), d(r, Q, P), p(Q, S), d(r, D, P), H && H.m(r, P), d(r, U, P), J && J.m(r, P), d(r, T, P), d(r, G, P), p(G, N), F || (Y = I(
363
363
  G,
364
364
  "click",
365
365
  /*closeReceipt*/
@@ -413,7 +413,7 @@ function ve(A) {
413
413
  m[3] ? tn : nn
414
414
  );
415
415
  }
416
- let L = g(A), X = L(A);
416
+ let Z = g(A), X = Z(A);
417
417
  return {
418
418
  c() {
419
419
  e = z("div"), X.c(), n = E(), t = z("span"), l = w(f), c = E(), v = z("span"), s = w(o), a(e, "slot", "icon"), a(t, "slot", "title"), a(t, "class", "CashierErrorTitle"), a(v, "slot", "text"), a(v, "class", "CashierErrorText");
@@ -422,7 +422,7 @@ function ve(A) {
422
422
  d(m, e, b), X.m(e, null), d(m, n, b), d(m, t, b), p(t, l), d(m, c, b), d(m, v, b), p(v, s);
423
423
  },
424
424
  p(m, b) {
425
- L === (L = g(m)) && X ? X.p(m, b) : (X.d(1), X = L(m), X && (X.c(), X.m(e, null))), b[0] & /*$_*/
425
+ Z === (Z = g(m)) && X ? X.p(m, b) : (X.d(1), X = Z(m), X && (X.c(), X.m(e, null))), b[0] & /*$_*/
426
426
  262144 && f !== (f = /*$_*/
427
427
  m[18]("receipt.maintenance.title") + "") && R(l, f), b[0] & /*$_*/
428
428
  262144 && o !== (o = /*$_*/
@@ -780,7 +780,7 @@ let an = "https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js", s
780
780
  function vn(A, e, n) {
781
781
  let t;
782
782
  we(A, Ce, (i) => n(18, t = i)), ce.extend(De);
783
- let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: v = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: g = "false" } = e, { translationurl: L } = e, { assetsurl: X = "" } = e, { customerid: m } = e, { transactionid: b } = e, { clientstyling: Q = "" } = e, { clientstylingurl: S = "" } = e;
783
+ let { endpoint: f } = e, { session: l } = e, { lang: c = "en" } = e, { local: v = "en-US" } = e, { showerrors: o = "true" } = e, { showclosebutton: s = "false" } = e, { showcontactbutton: g = "false" } = e, { translationurl: Z } = e, { assetsurl: X = "" } = e, { customerid: m } = e, { transactionid: b } = e, { clientstyling: Q = "" } = e, { clientstylingurl: S = "" } = e;
784
784
  var D;
785
785
  (function(i) {
786
786
  i.Success = "Success", i.Maintenance = "Maintenance";
@@ -802,9 +802,9 @@ function vn(A, e, n) {
802
802
  (function(i) {
803
803
  i.Unknown = "Unknown", i.Text = "Text", i.Boolean = "Boolean", i.Number = "Number", i.Money = "Money", i.DateTime = "DateTime", i.Lookup = "Lookup", i.IpAddress = "IpAddress", i.Date = "Date", i.Time = "Time", i.LookupCollection = "LookupCollection", i.Hidden = "Hidden", i.Label = "Label", i.Password = "Password", i.Link = "Link", i.Image = "Image", i.Html = "Html", i.QRCode = "QR";
804
804
  })(T || (T = {}));
805
- const G = (i, [y, Z]) => [
805
+ const G = (i, [y, L]) => [
806
806
  ...i,
807
- ...Array.isArray(y) ? [...y.map((k) => [k, Z])] : [[y, Z]]
807
+ ...Array.isArray(y) ? [...y.map((k) => [k, L])] : [[y, L]]
808
808
  ], C = new Map([
809
809
  [["Unknown", 0], T.Unknown],
810
810
  [["Text", 1], T.Text],
@@ -829,11 +829,11 @@ function vn(A, e, n) {
829
829
  const pe = () => {
830
830
  Fe(c);
831
831
  }, Je = () => {
832
- let i = L;
832
+ let i = Z;
833
833
  if (i)
834
834
  return fetch(i).then((y) => y.json()).then((y) => {
835
- Object.keys(y).forEach((Z) => {
836
- oe(Z, y[Z]);
835
+ Object.keys(y).forEach((L) => {
836
+ oe(L, y[L]);
837
837
  });
838
838
  }).catch((y) => {
839
839
  });
@@ -846,8 +846,8 @@ function vn(A, e, n) {
846
846
  i.innerHTML = Q, J.appendChild(i);
847
847
  }, Xe = () => {
848
848
  let i = new URL(S), y = document.createElement("style");
849
- fetch(i.href).then((Z) => Z.text()).then((Z) => {
850
- y.innerHTML = Z, setTimeout(
849
+ fetch(i.href).then((L) => L.text()).then((L) => {
850
+ y.innerHTML = L, setTimeout(
851
851
  () => {
852
852
  J.appendChild(y);
853
853
  },
@@ -874,12 +874,12 @@ function vn(A, e, n) {
874
874
  }, Ne = () => {
875
875
  const i = new URL(`${f}/v1/player/${m}/payment/GetPaymentInfo`), y = new Headers();
876
876
  y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("X-SessionId", `${l}`), y.append("X-Client-Request-Timestamp", ce.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
877
- const Z = {
877
+ const L = {
878
878
  method: "POST",
879
879
  headers: y,
880
880
  body: JSON.stringify({ TransactionCode: b })
881
881
  };
882
- fetch(i, Z).then((k) => k.json()).then((k) => {
882
+ fetch(i, L).then((k) => k.json()).then((k) => {
883
883
  var ne, te, fe, Ae;
884
884
  if (k.ResponseCode !== D.Success) {
885
885
  n(16, P = k.ResponseCode), n(17, V = o.toLowerCase() === "false" || !o), ye();
@@ -937,18 +937,18 @@ function vn(A, e, n) {
937
937
  });
938
938
  }
939
939
  return A.$$set = (i) => {
940
- "endpoint" in i && n(22, f = i.endpoint), "session" in i && n(23, l = i.session), "lang" in i && n(24, c = i.lang), "local" in i && n(25, v = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(0, s = i.showclosebutton), "showcontactbutton" in i && n(1, g = i.showcontactbutton), "translationurl" in i && n(2, L = i.translationurl), "assetsurl" in i && n(3, X = i.assetsurl), "customerid" in i && n(27, m = i.customerid), "transactionid" in i && n(28, b = i.transactionid), "clientstyling" in i && n(4, Q = i.clientstyling), "clientstylingurl" in i && n(5, S = i.clientstylingurl);
940
+ "endpoint" in i && n(22, f = i.endpoint), "session" in i && n(23, l = i.session), "lang" in i && n(24, c = i.lang), "local" in i && n(25, v = i.local), "showerrors" in i && n(26, o = i.showerrors), "showclosebutton" in i && n(0, s = i.showclosebutton), "showcontactbutton" in i && n(1, g = i.showcontactbutton), "translationurl" in i && n(2, Z = i.translationurl), "assetsurl" in i && n(3, X = i.assetsurl), "customerid" in i && n(27, m = i.customerid), "transactionid" in i && n(28, b = i.transactionid), "clientstyling" in i && n(4, Q = i.clientstyling), "clientstylingurl" in i && n(5, S = i.clientstylingurl);
941
941
  }, A.$$.update = () => {
942
942
  A.$$.dirty[0] & /*endpoint, session, customerid, transactionid, showerrors*/
943
943
  482344960 && f && l && m && b && o && Ne(), A.$$.dirty[0] & /*lang*/
944
944
  16777216 && c && pe(), A.$$.dirty[0] & /*lang, translationurl*/
945
- 16777220 && c && L && Je(), A.$$.dirty[0] & /*clientstyling, customStylingContainer*/
945
+ 16777220 && c && Z && Je(), A.$$.dirty[0] & /*clientstyling, customStylingContainer*/
946
946
  80 && Q && J && ge(), A.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
947
947
  96 && S && J && Xe();
948
948
  }, [
949
949
  s,
950
950
  g,
951
- L,
951
+ Z,
952
952
  X,
953
953
  Q,
954
954
  S,
@@ -987,7 +987,7 @@ class un extends Be {
987
987
  e,
988
988
  vn,
989
989
  rn,
990
- Ze,
990
+ Le,
991
991
  {
992
992
  endpoint: 22,
993
993
  session: 23,
@@ -1086,7 +1086,7 @@ class un extends Be {
1086
1086
  this.$$set({ clientstylingurl: e }), B();
1087
1087
  }
1088
1088
  }
1089
- Le(un, { endpoint: {}, session: {}, lang: {}, local: {}, showerrors: {}, showclosebutton: {}, showcontactbutton: {}, translationurl: {}, assetsurl: {}, customerid: {}, transactionid: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
1089
+ Ze(un, { endpoint: {}, session: {}, lang: {}, local: {}, showerrors: {}, showclosebutton: {}, showcontactbutton: {}, translationurl: {}, assetsurl: {}, customerid: {}, transactionid: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
1090
1090
  export {
1091
1091
  un as default
1092
1092
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-BihPvQBJ.cjs");function y(i){e.append_styles(i,"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 g(i){let t;return{c(){t=e.element("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>',e.attr(t,"class","CashierSpinner")},m(s,l){e.insert(s,t,l),i[3](t)},p:e.noop,i:e.noop,o:e.noop,d(s){s&&e.detach(t),i[3](null)}}}function p(i,t,s){let{clientstyling:l=""}=t,{clientstylingurl:a=""}=t,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},u=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function f(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,s(0,r)})}return i.$$set=n=>{"clientstyling"in n&&s(1,l=n.clientstyling),"clientstylingurl"in n&&s(2,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&3&&l&&r&&h(),i.$$.dirty&5&&a&&r&&u()},[r,l,a,f]}class d extends e.SvelteComponent{constructor(t){super(),e.init(this,t,p,g,e.safe_not_equal,{clientstyling:1,clientstylingurl:2},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(d,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierConfirmModal-BeEK5pGj.cjs");function y(i){e.append_styles(i,"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 g(i){let t;return{c(){t=e.element("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>',e.attr(t,"class","CashierSpinner")},m(s,l){e.insert(s,t,l),i[3](t)},p:e.noop,i:e.noop,o:e.noop,d(s){s&&e.detach(t),i[3](null)}}}function p(i,t,s){let{clientstyling:l=""}=t,{clientstylingurl:a=""}=t,r;const h=()=>{let n=document.createElement("style");n.innerHTML=l,r.appendChild(n)},u=()=>{let n=new URL(a),c=document.createElement("style");fetch(n.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function f(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,s(0,r)})}return i.$$set=n=>{"clientstyling"in n&&s(1,l=n.clientstyling),"clientstylingurl"in n&&s(2,a=n.clientstylingurl)},i.$$.update=()=>{i.$$.dirty&3&&l&&r&&h(),i.$$.dirty&5&&a&&r&&u()},[r,l,a,f]}class d extends e.SvelteComponent{constructor(t){super(),e.init(this,t,p,g,e.safe_not_equal,{clientstyling:1,clientstylingurl:2},y)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(d,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=d;
@@ -1,4 +1,4 @@
1
- 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-BMW4zSn1.js";
1
+ 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-Ccz0Sdnq.js";
2
2
  function b(n) {
3
3
  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}}");
4
4
  }
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodDetails-BA_zrJUt.cjs")).then(e=>e.CashierMethodDetails_ce).then(({default:e})=>{!customElements.get("cashier-method-details")&&customElements.define("cashier-method-details",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/CashierMethodDetails-alFTu3Oh.cjs")).then(e=>e.CashierMethodDetails_ce).then(({default:e})=>{!customElements.get("cashier-method-details")&&customElements.define("cashier-method-details",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierMethodDetails-CwK4FlNt.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierMethodDetails-h2WzVV9I.js").then((e) => e.C).then(({ default: e }) => {
14
14
  !customElements.get("cashier-method-details") && customElements.define("cashier-method-details", e.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-method-details",
3
- "version": "1.45.7",
3
+ "version": "1.45.9",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-method-details.cjs",
6
6
  "module": "es2015/cashier-method-details.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-BihPvQBJ.cjs"),b=require("./CashierError-D6oq8-CP.cjs");function y(n,e){b.addMessages(n,e)}function O(n){b.init({fallbackLocale:"en"}),b.$locale.set(n)}const k={en:{header:{general:"Cashier",deposit:"Deposit",withdraw:"Withdraw"}},tr:{header:{general:"Cashier",deposit:"Para Yatır",withdraw:"Çekim"}}};function q(n){t.append_styles(n,"svelte-v7co4a",".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 32px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.CashierHeaderRightButton{position:absolute;display:flex;justify-content:space-between;align-items:center;padding:0 var(--emw--spacing-small, 12px);height:inherit;right:0;gap:var(--emw--spacing-small, 12px);cursor:pointer}")}const A=n=>({}),L=n=>({}),U=n=>({}),v=n=>({}),P=n=>({}),B=n=>({});function H(n){let e,i,a;return{c(){e=t.element("div"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>',t.attr(e,"class","CashierHeaderLeftButton")},m(l,u){t.insert(l,e,u),i||(a=t.listen(e,"click",n[5]),i=!0)},p:t.noop,d(l){l&&t.detach(e),i=!1,a()}}}function Z(n){let e,i=n[1]&&H(n);return{c(){i&&i.c(),e=t.empty()},m(a,l){i&&i.m(a,l),t.insert(a,e,l)},p(a,l){a[1]?i?i.p(a,l):(i=H(a),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(a){a&&t.detach(e),i&&i.d(a)}}}function D(n){let e,i=n[3](n[2])+"",a;return{c(){e=t.element("span"),a=t.text(i),t.attr(e,"class","CashierHeaderTitle")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&12&&i!==(i=l[3](l[2])+"")&&t.set_data(a,i)},d(l){l&&t.detach(e)}}}function F(n){let e,i,a;return{c(){e=t.element("span"),e.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path 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" fill="#111111"></path></svg>',t.attr(e,"class","CashierHeaderRightButton")},m(l,u){t.insert(l,e,u),i||(a=t.listen(e,"click",n[4]),i=!0)},p:t.noop,d(l){l&&t.detach(e),i=!1,a()}}}function I(n){let e,i,a,l;const u=n[13].leftButton,m=t.create_slot(u,n,n[12],B),r=m||Z(n),w=n[13].title,_=t.create_slot(w,n,n[12],v),c=_||D(n),d=n[13].rightButton,h=t.create_slot(d,n,n[12],L),g=h||F(n);return{c(){e=t.element("div"),r&&r.c(),i=t.space(),c&&c.c(),a=t.space(),g&&g.c(),t.attr(e,"class","CashierHeader")},m(s,f){t.insert(s,e,f),r&&r.m(e,null),t.append(e,i),c&&c.m(e,null),t.append(e,a),g&&g.m(e,null),n[14](e),l=!0},p(s,[f]){m?m.p&&(!l||f&4096)&&t.update_slot_base(m,u,s,s[12],l?t.get_slot_changes(u,s[12],f,P):t.get_all_dirty_from_scope(s[12]),B):r&&r.p&&(!l||f&2)&&r.p(s,l?f:-1),_?_.p&&(!l||f&4096)&&t.update_slot_base(_,w,s,s[12],l?t.get_slot_changes(w,s[12],f,U):t.get_all_dirty_from_scope(s[12]),v):c&&c.p&&(!l||f&12)&&c.p(s,l?f:-1),h&&h.p&&(!l||f&4096)&&t.update_slot_base(h,d,s,s[12],l?t.get_slot_changes(d,s[12],f,A):t.get_all_dirty_from_scope(s[12]),L)},i(s){l||(t.transition_in(r,s),t.transition_in(c,s),t.transition_in(g,s),l=!0)},o(s){t.transition_out(r,s),t.transition_out(c,s),t.transition_out(g,s),l=!1},d(s){s&&t.detach(e),r&&r.d(s),c&&c.d(s),g&&g.d(s),n[14](null)}}}function W(n,e,i){let a;t.component_subscribe(n,b.$format,o=>i(3,a=o));let{$$slots:l={},$$scope:u}=e,{clientstyling:m=""}=e,{clientstylingurl:r=""}=e,{translationurl:w=""}=e,{showbackbutton:_=""}=e,{title:c="header.general"}=e,{lang:d="en"}=e,h,g=!1,s;const f=()=>{let o=w;o&&fetch(o).then(p=>p.json()).then(p=>{Object.keys(p).forEach(C=>{y(C,p[C])})}).catch(p=>{console.log(p)})};Object.keys(k).forEach(o=>{y(o,k[o])});const M=()=>{let o=document.createElement("style");o.innerHTML=m,h.appendChild(o)},E=()=>{let o=new URL(r),p=document.createElement("style");fetch(o.href).then(C=>C.text()).then(C=>{p.innerHTML=C,setTimeout(()=>{h.appendChild(p)},1)})},S=()=>{O(d)},j=()=>{window.postMessage({type:"CloseCashier"},window.location.href)},x=()=>{window.postMessage({type:"BackCashier"},window.location.href)},R=()=>{i(1,g=!!_&&_!=="false")},z=()=>{i(2,s=c||"header.general")};function N(o){t.binding_callbacks[o?"unshift":"push"](()=>{h=o,i(0,h)})}return n.$$set=o=>{"clientstyling"in o&&i(6,m=o.clientstyling),"clientstylingurl"in o&&i(7,r=o.clientstylingurl),"translationurl"in o&&i(8,w=o.translationurl),"showbackbutton"in o&&i(9,_=o.showbackbutton),"title"in o&&i(10,c=o.title),"lang"in o&&i(11,d=o.lang),"$$scope"in o&&i(12,u=o.$$scope)},n.$$.update=()=>{n.$$.dirty&2048&&d&&S(),n.$$.dirty&3072&&d&&c&&z(),n.$$.dirty&65&&m&&h&&M(),n.$$.dirty&129&&r&&h&&E(),n.$$.dirty&2304&&d&&w&&f(),n.$$.dirty&512&&_&&R()},[h,g,s,a,j,x,m,r,w,_,c,d,u,l,N]}class T extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,I,t.safe_not_equal,{clientstyling:6,clientstylingurl:7,translationurl:8,showbackbutton:9,title:10,lang:11},q)}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get showbackbutton(){return this.$$.ctx[9]}set showbackbutton(e){this.$$set({showbackbutton:e}),t.flush()}get title(){return this.$$.ctx[10]}set title(e){this.$$set({title:e}),t.flush()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),t.flush()}}t.create_custom_element(T,{clientstyling:{},clientstylingurl:{},translationurl:{},showbackbutton:{},title:{},lang:{}},["leftButton","title","rightButton"],[],!0);exports.default=T;