@everymatrix/cashier-method-details 1.0.69 → 1.0.70

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,71 @@
1
+ import { S as f, b as y, f as m, c as g, a as p, d as v, g as k, j as C, k as x, n as c, v as S, C as _ } from "./CashierConfirmModal-Du_O46d4.js";
2
+ function b(s) {
3
+ v(s, "svelte-a7mser", ".CashierSpinner.svelte-a7mser.svelte-a7mser{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierSpinner.svelte-a7mser .spinner.svelte-a7mser{animation:svelte-a7mser-rotate 2s linear infinite;transform-origin:center center}.CashierSpinner.svelte-a7mser .spinner .path.svelte-a7mser{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:svelte-a7mser-dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes svelte-a7mser-rotate{100%{transform:rotate(360deg)}}@keyframes svelte-a7mser-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
+ }
5
+ function w(s) {
6
+ let e;
7
+ return {
8
+ c() {
9
+ e = k("div"), e.innerHTML = '<svg class="spinner svelte-a7mser" viewBox="25 25 50 50"><circle class="path svelte-a7mser" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>', C(e, "class", "CashierSpinner svelte-a7mser");
10
+ },
11
+ m(n, r) {
12
+ x(n, e, r), s[3](e);
13
+ },
14
+ p: c,
15
+ i: c,
16
+ o: c,
17
+ d(n) {
18
+ n && S(e), s[3](null);
19
+ }
20
+ };
21
+ }
22
+ function L(s, e, n) {
23
+ let { clientstyling: r = "" } = e, { clientstylingurl: a = "" } = e, i;
24
+ const h = () => {
25
+ let t = document.createElement("style");
26
+ t.innerHTML = r, i.appendChild(t);
27
+ }, d = () => {
28
+ let t = new URL(a), o = document.createElement("style");
29
+ fetch(t.href).then((l) => l.text()).then((l) => {
30
+ o.innerHTML = l, setTimeout(
31
+ () => {
32
+ i.appendChild(o);
33
+ },
34
+ 1
35
+ );
36
+ });
37
+ };
38
+ function u(t) {
39
+ _[t ? "unshift" : "push"](() => {
40
+ i = t, n(0, i);
41
+ });
42
+ }
43
+ return s.$$set = (t) => {
44
+ "clientstyling" in t && n(1, r = t.clientstyling), "clientstylingurl" in t && n(2, a = t.clientstylingurl);
45
+ }, s.$$.update = () => {
46
+ s.$$.dirty & /*clientstyling, customStylingContainer*/
47
+ 3 && r && i && h(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
48
+ 5 && a && i && d();
49
+ }, [i, r, a, u];
50
+ }
51
+ class E extends f {
52
+ constructor(e) {
53
+ super(), y(this, e, L, w, p, { clientstyling: 1, clientstylingurl: 2 }, b);
54
+ }
55
+ get clientstyling() {
56
+ return this.$$.ctx[1];
57
+ }
58
+ set clientstyling(e) {
59
+ this.$$set({ clientstyling: e }), m();
60
+ }
61
+ get clientstylingurl() {
62
+ return this.$$.ctx[2];
63
+ }
64
+ set clientstylingurl(e) {
65
+ this.$$set({ clientstylingurl: e }), m();
66
+ }
67
+ }
68
+ g(E, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
69
+ export {
70
+ E as default
71
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-MLLynZHj.cjs");function f(n){t.append_styles(n,"svelte-a7mser",".CashierSpinner.svelte-a7mser.svelte-a7mser{display:block;width:80px;height:80px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierSpinner.svelte-a7mser .spinner.svelte-a7mser{animation:svelte-a7mser-rotate 2s linear infinite;transform-origin:center center}.CashierSpinner.svelte-a7mser .spinner .path.svelte-a7mser{stroke-dasharray:1, 200;stroke-dashoffset:0;animation:svelte-a7mser-dash 1.5s ease-in-out infinite;stroke-linecap:round;stroke:var(--emw--color-primary, #7EC51E)}@keyframes svelte-a7mser-rotate{100%{transform:rotate(360deg)}}@keyframes svelte-a7mser-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 y(n){let e;return{c(){e=t.element("div"),e.innerHTML='<svg class="spinner svelte-a7mser" viewBox="25 25 50 50"><circle class="path svelte-a7mser" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle></svg>',t.attr(e,"class","CashierSpinner svelte-a7mser")},m(i,l){t.insert(i,e,l),n[3](e)},p:t.noop,i:t.noop,o:t.noop,d(i){i&&t.detach(e),n[3](null)}}}function g(n,e,i){let{clientstyling:l=""}=e,{clientstylingurl:a=""}=e,r;const h=()=>{let s=document.createElement("style");s.innerHTML=l,r.appendChild(s)},u=()=>{let s=new URL(a),c=document.createElement("style");fetch(s.href).then(o=>o.text()).then(o=>{c.innerHTML=o,setTimeout(()=>{r.appendChild(c)},1)})};function d(s){t.binding_callbacks[s?"unshift":"push"](()=>{r=s,i(0,r)})}return n.$$set=s=>{"clientstyling"in s&&i(1,l=s.clientstyling),"clientstylingurl"in s&&i(2,a=s.clientstylingurl)},n.$$.update=()=>{n.$$.dirty&3&&l&&r&&h(),n.$$.dirty&5&&a&&r&&u()},[r,l,a,d]}class m extends t.SvelteComponent{constructor(e){super(),t.init(this,e,g,y,t.safe_not_equal,{clientstyling:1,clientstylingurl:2},f)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(m,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=m;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-method-details",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "type": "module",
5
5
  "main": "es2015/cashier-method-details.cjs",
6
6
  "module": "es2015/cashier-method-details.js",
@@ -11,18 +11,19 @@
11
11
  },
12
12
  "./es2015/cashier-method-details.cjs": "./es2015/cashier-method-details.cjs"
13
13
  },
14
- "files": [
15
- "es2015/"
14
+ "files": [
15
+ "es2015/",
16
+ "components"
16
17
  ],
17
18
  "publishConfig": {
18
19
  "access": "public"
19
20
  },
20
21
  "dependencies": {
21
- "@everymatrix/cashier-iframe-redirect": "1.0.69",
22
- "@everymatrix/cashier-receipt-page": "1.0.69",
23
- "@everymatrix/cashier-confirm-modal": "1.0.69",
24
- "@everymatrix/cashier-notifications": "1.0.69",
25
- "@everymatrix/cashier-error": "1.0.69",
26
- "@everymatrix/cashier-modal": "1.0.69"
22
+ "@everymatrix/cashier-iframe-redirect": "1.0.78",
23
+ "@everymatrix/cashier-receipt-page": "1.0.78",
24
+ "@everymatrix/cashier-confirm-modal": "1.0.78",
25
+ "@everymatrix/cashier-notifications": "1.0.78",
26
+ "@everymatrix/cashier-error": "1.0.78",
27
+ "@everymatrix/cashier-modal": "1.0.78"
27
28
  }
28
29
  }