@getmicdrop/venue-calendar 3.4.0 → 3.4.3
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.
- package/dist/CarouselView.legacy-DdcBQB8k.js +65 -0
- package/dist/CarouselView.legacy-DdcBQB8k.js.map +1 -0
- package/dist/Checkout.legacy-ColJbEgW.js +1147 -0
- package/dist/Checkout.legacy-ColJbEgW.js.map +1 -0
- package/dist/FeaturedView.legacy-CtZabSNQ.js +128 -0
- package/dist/FeaturedView.legacy-CtZabSNQ.js.map +1 -0
- package/dist/GalleryCard-Ch072lif.js +84 -0
- package/dist/GalleryCard-Ch072lif.js.map +1 -0
- package/dist/GalleryView.legacy-CQOF_kYd.js +52 -0
- package/dist/GalleryView.legacy-CQOF_kYd.js.map +1 -0
- package/dist/GroupedListView.legacy-BWqs_hha.js +148 -0
- package/dist/GroupedListView.legacy-BWqs_hha.js.map +1 -0
- package/dist/Success.legacy-BcuRT_6P.js +191 -0
- package/dist/Success.legacy-BcuRT_6P.js.map +1 -0
- package/dist/VenueCalendar-DXZ34Hv2.js +26492 -0
- package/dist/VenueCalendar-DXZ34Hv2.js.map +1 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +171 -136
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/client.d.ts +2 -2
- package/dist/api/events.d.ts +31 -1
- package/dist/api/index.d.ts +3 -3
- package/dist/api/types.d.ts +61 -0
- package/dist/colors-BZoMuXdh.js +62 -0
- package/dist/colors-BZoMuXdh.js.map +1 -0
- package/dist/index-DKIxsGNJ.js +499 -0
- package/dist/index-DKIxsGNJ.js.map +1 -0
- package/dist/types/index.d.ts +24 -32
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +21 -25375
- package/dist/venue-calendar.es.js.map +1 -1
- package/dist/venue-calendar.iife.js +50 -27
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +50 -27
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +12 -6
- package/src/lib/theme.js +18 -10
- package/dist/index-GqsPc-C2.js +0 -479
- package/dist/index-GqsPc-C2.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmicdrop/venue-calendar",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "A customizable Svelte calendar component for displaying comedy events",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
"preview": "vite preview",
|
|
41
41
|
"prepare": "svelte-kit sync || echo ''",
|
|
42
42
|
"prepublishOnly": "npm run build:all",
|
|
43
|
+
"lint": "eslint src",
|
|
44
|
+
"lint:fix": "eslint src --fix",
|
|
43
45
|
"check": "svelte-check --diagnostic-sources \"js,svelte\"",
|
|
44
46
|
"check:all": "svelte-check",
|
|
45
47
|
"test": "vitest run",
|
|
@@ -77,21 +79,25 @@
|
|
|
77
79
|
"@testing-library/svelte": "^5.3.1",
|
|
78
80
|
"@vitest/coverage-v8": "^4.0.16",
|
|
79
81
|
"baseline-browser-mapping": "^2.9.11",
|
|
80
|
-
"jsdom": "^
|
|
82
|
+
"jsdom": "^28.0.0",
|
|
81
83
|
"svelte": "^5.46.1",
|
|
82
84
|
"svelte-check": "^4.3.5",
|
|
83
85
|
"tailwindcss": "^4.0.0",
|
|
84
86
|
"typescript": "^5.9.3",
|
|
85
87
|
"vite": "^7.0.0",
|
|
86
88
|
"vite-plugin-dts": "^4.5.0",
|
|
87
|
-
"vitest": "^4.0.16"
|
|
89
|
+
"vitest": "^4.0.16",
|
|
90
|
+
"@eslint/js": "^9.39.1",
|
|
91
|
+
"eslint": "^9.7.0",
|
|
92
|
+
"globals": "^16.5.0"
|
|
88
93
|
},
|
|
89
94
|
"dependencies": {
|
|
90
|
-
"@getmicdrop/svelte-components": "^5.
|
|
91
|
-
"@stripe/stripe-js": "^
|
|
95
|
+
"@getmicdrop/svelte-components": "^5.17.1",
|
|
96
|
+
"@stripe/stripe-js": "^8.0.0",
|
|
92
97
|
"carbon-icons-svelte": "^13.7.0",
|
|
98
|
+
"date-fns": "^4.1.0",
|
|
93
99
|
"esbuild": "^0.27.2",
|
|
94
100
|
"js-cookie": "^3.0.5",
|
|
95
|
-
"svelte-stripe": "^
|
|
101
|
+
"svelte-stripe": "^2.0.0"
|
|
96
102
|
}
|
|
97
103
|
}
|
package/src/lib/theme.js
CHANGED
|
@@ -134,7 +134,7 @@ export function applyTheme(theme, container = document.documentElement) {
|
|
|
134
134
|
brandPrimary: '--Brand-Primary',
|
|
135
135
|
textPrimary: '--Text-Primary',
|
|
136
136
|
textSecondary: '--Text-Secondary',
|
|
137
|
-
textTertiary: '--Text-
|
|
137
|
+
textTertiary: '--Text-Tertiary',
|
|
138
138
|
bgPrimary: '--BG-Primary',
|
|
139
139
|
bgSecondary: '--BG-Secondary',
|
|
140
140
|
bgQuaternary: '--BG-Quaternary',
|
|
@@ -156,6 +156,10 @@ export function applyTheme(theme, container = document.documentElement) {
|
|
|
156
156
|
const cssVar = cssVarMap[key];
|
|
157
157
|
if (cssVar) {
|
|
158
158
|
container.style.setProperty(cssVar, value);
|
|
159
|
+
// Backwards compat: also set the typo'd variable name
|
|
160
|
+
if (key === 'textTertiary') {
|
|
161
|
+
container.style.setProperty('--Text-Tartiary', value);
|
|
162
|
+
}
|
|
159
163
|
}
|
|
160
164
|
});
|
|
161
165
|
}
|
|
@@ -170,7 +174,7 @@ export function generateThemeCSS(theme) {
|
|
|
170
174
|
brandPrimary: '--Brand-Primary',
|
|
171
175
|
textPrimary: '--Text-Primary',
|
|
172
176
|
textSecondary: '--Text-Secondary',
|
|
173
|
-
textTertiary: '--Text-
|
|
177
|
+
textTertiary: '--Text-Tertiary',
|
|
174
178
|
bgPrimary: '--BG-Primary',
|
|
175
179
|
bgSecondary: '--BG-Secondary',
|
|
176
180
|
bgQuaternary: '--BG-Quaternary',
|
|
@@ -188,15 +192,19 @@ export function generateThemeCSS(theme) {
|
|
|
188
192
|
focusRing: '--Focus-Ring',
|
|
189
193
|
};
|
|
190
194
|
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
const lines = [];
|
|
196
|
+
Object.entries(theme).forEach(([key, value]) => {
|
|
197
|
+
const cssVar = cssVarMap[key];
|
|
198
|
+
if (cssVar) {
|
|
199
|
+
lines.push(` ${cssVar}: ${value};`);
|
|
200
|
+
// Backwards compat: also emit the typo'd variable name
|
|
201
|
+
if (key === 'textTertiary') {
|
|
202
|
+
lines.push(` --Text-Tartiary: ${value};`);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
});
|
|
198
206
|
|
|
199
|
-
return `:root {\n${
|
|
207
|
+
return `:root {\n${lines.join('\n')}\n}`;
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
export default {
|
package/dist/index-GqsPc-C2.js
DELETED
|
@@ -1,479 +0,0 @@
|
|
|
1
|
-
import "svelte/internal/disclose-version";
|
|
2
|
-
import "svelte/internal/flags/legacy";
|
|
3
|
-
import * as e from "svelte/internal/client";
|
|
4
|
-
import { createEventDispatcher as C, getContext as w, onMount as k, onDestroy as T, setContext as P } from "svelte";
|
|
5
|
-
function x(b, t, a, r, f = {}) {
|
|
6
|
-
const i = a.create(t, f);
|
|
7
|
-
return i.mount(b), i.on("change", (n) => r("change", n)), i.on("ready", (n) => r("ready", n)), i.on("focus", (n) => r("focus", n)), i.on("blur", (n) => r("blur", n)), i.on("escape", (n) => r("escape", n)), i.on("click", (n) => r("click", n)), i.on("loaderror", (n) => r("loaderror", n)), i.on("loaderstart", (n) => r("loaderstart", n)), i.on("networkschange", (n) => r("networkschange", n)), i;
|
|
8
|
-
}
|
|
9
|
-
const E = typeof window > "u";
|
|
10
|
-
function I(b) {
|
|
11
|
-
if (!E)
|
|
12
|
-
return b.registerAppInfo({
|
|
13
|
-
name: "svelte-stripe-js",
|
|
14
|
-
url: "https://svelte-stripe-js.vercel.app"
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
var q = e.from_html("<div></div>");
|
|
18
|
-
function K(b, t) {
|
|
19
|
-
e.push(t, !1);
|
|
20
|
-
let a = e.prop(t, "classes", 24, () => ({})), r = e.prop(t, "style", 24, () => ({})), f = e.prop(t, "value", 24, () => ({})), i = e.prop(t, "hidePostalCode", 8, !1), n = e.prop(t, "hideIcon", 8, !1), d = e.prop(t, "disabled", 8, !1), l = e.prop(t, "iconStyle", 8, "default"), o = e.prop(t, "element", 12, null), s = e.mutable_source();
|
|
21
|
-
const u = C(), { elements: m } = w("stripe");
|
|
22
|
-
k(() => {
|
|
23
|
-
const h = {
|
|
24
|
-
classes: a(),
|
|
25
|
-
style: r(),
|
|
26
|
-
value: f(),
|
|
27
|
-
hidePostalCode: i(),
|
|
28
|
-
hideIcon: n(),
|
|
29
|
-
disabled: d(),
|
|
30
|
-
iconStyle: l()
|
|
31
|
-
};
|
|
32
|
-
return o(x(e.get(s), "card", m, u, h)), () => o().destroy();
|
|
33
|
-
});
|
|
34
|
-
function p() {
|
|
35
|
-
o().blur();
|
|
36
|
-
}
|
|
37
|
-
function _() {
|
|
38
|
-
o().clear();
|
|
39
|
-
}
|
|
40
|
-
function c() {
|
|
41
|
-
o().destroy();
|
|
42
|
-
}
|
|
43
|
-
function y() {
|
|
44
|
-
o().focus();
|
|
45
|
-
}
|
|
46
|
-
var v = { blur: p, clear: _, destroy: c, focus: y };
|
|
47
|
-
e.init();
|
|
48
|
-
var g = q();
|
|
49
|
-
return e.bind_this(g, (h) => e.set(s, h), () => e.get(s)), e.append(b, g), e.bind_prop(t, "blur", p), e.bind_prop(t, "clear", _), e.bind_prop(t, "destroy", c), e.bind_prop(t, "focus", y), e.pop(v);
|
|
50
|
-
}
|
|
51
|
-
var R = e.from_html("<div></div>");
|
|
52
|
-
function Q(b, t) {
|
|
53
|
-
e.push(t, !1);
|
|
54
|
-
let a = e.prop(t, "classes", 24, () => ({})), r = e.prop(t, "style", 24, () => ({})), f = e.prop(t, "placeholder", 8, "Card number"), i = e.prop(t, "disabled", 8, !1), n = e.prop(t, "showIcon", 8, !0), d = e.prop(t, "iconStyle", 8, "default"), l = e.prop(t, "element", 12, null), o = e.mutable_source();
|
|
55
|
-
const s = C(), { elements: u } = w("stripe");
|
|
56
|
-
k(() => {
|
|
57
|
-
const g = {
|
|
58
|
-
classes: a(),
|
|
59
|
-
style: r(),
|
|
60
|
-
placeholder: f(),
|
|
61
|
-
disabled: i(),
|
|
62
|
-
showIcon: n(),
|
|
63
|
-
iconStyle: d()
|
|
64
|
-
};
|
|
65
|
-
return l(x(e.get(o), "cardNumber", u, s, g)), () => l().destroy();
|
|
66
|
-
});
|
|
67
|
-
function m() {
|
|
68
|
-
l().blur();
|
|
69
|
-
}
|
|
70
|
-
function p() {
|
|
71
|
-
l().clear();
|
|
72
|
-
}
|
|
73
|
-
function _() {
|
|
74
|
-
l().destroy();
|
|
75
|
-
}
|
|
76
|
-
function c() {
|
|
77
|
-
l().focus();
|
|
78
|
-
}
|
|
79
|
-
var y = { blur: m, clear: p, destroy: _, focus: c };
|
|
80
|
-
e.init();
|
|
81
|
-
var v = R();
|
|
82
|
-
return e.bind_this(v, (g) => e.set(o, g), () => e.get(o)), e.append(b, v), e.bind_prop(t, "blur", m), e.bind_prop(t, "clear", p), e.bind_prop(t, "destroy", _), e.bind_prop(t, "focus", c), e.pop(y);
|
|
83
|
-
}
|
|
84
|
-
var B = e.from_html("<div></div>");
|
|
85
|
-
function U(b, t) {
|
|
86
|
-
e.push(t, !1);
|
|
87
|
-
let a = e.prop(t, "classes", 24, () => ({})), r = e.prop(t, "style", 24, () => ({})), f = e.prop(t, "placeholder", 8, "MM / YY"), i = e.prop(t, "disabled", 8, !1), n = e.prop(t, "element", 12, null), d = e.mutable_source();
|
|
88
|
-
const l = C(), { elements: o } = w("stripe");
|
|
89
|
-
k(() => {
|
|
90
|
-
const y = {
|
|
91
|
-
classes: a(),
|
|
92
|
-
style: r(),
|
|
93
|
-
placeholder: f(),
|
|
94
|
-
disabled: i()
|
|
95
|
-
};
|
|
96
|
-
return n(x(e.get(d), "cardExpiry", o, l, y)), () => n().destroy();
|
|
97
|
-
});
|
|
98
|
-
function s() {
|
|
99
|
-
n().blur();
|
|
100
|
-
}
|
|
101
|
-
function u() {
|
|
102
|
-
n().clear();
|
|
103
|
-
}
|
|
104
|
-
function m() {
|
|
105
|
-
n().destroy();
|
|
106
|
-
}
|
|
107
|
-
function p() {
|
|
108
|
-
n().focus();
|
|
109
|
-
}
|
|
110
|
-
var _ = { blur: s, clear: u, destroy: m, focus: p };
|
|
111
|
-
e.init();
|
|
112
|
-
var c = B();
|
|
113
|
-
return e.bind_this(c, (y) => e.set(d, y), () => e.get(d)), e.append(b, c), e.bind_prop(t, "blur", s), e.bind_prop(t, "clear", u), e.bind_prop(t, "destroy", m), e.bind_prop(t, "focus", p), e.pop(_);
|
|
114
|
-
}
|
|
115
|
-
var V = e.from_html("<div></div>");
|
|
116
|
-
function W(b, t) {
|
|
117
|
-
e.push(t, !1);
|
|
118
|
-
let a = e.prop(t, "classes", 24, () => ({})), r = e.prop(t, "style", 24, () => ({})), f = e.prop(t, "placeholder", 8, "CVC"), i = e.prop(t, "disabled", 8, !1), n = e.prop(t, "element", 12, null), d = e.mutable_source();
|
|
119
|
-
const l = C(), { elements: o } = w("stripe");
|
|
120
|
-
k(() => {
|
|
121
|
-
const y = {
|
|
122
|
-
classes: a(),
|
|
123
|
-
style: r(),
|
|
124
|
-
placeholder: f(),
|
|
125
|
-
disabled: i()
|
|
126
|
-
};
|
|
127
|
-
return n(x(e.get(d), "cardCvc", o, l, y)), () => n().destroy();
|
|
128
|
-
});
|
|
129
|
-
function s() {
|
|
130
|
-
n().blur();
|
|
131
|
-
}
|
|
132
|
-
function u() {
|
|
133
|
-
n().clear();
|
|
134
|
-
}
|
|
135
|
-
function m() {
|
|
136
|
-
n().destroy();
|
|
137
|
-
}
|
|
138
|
-
function p() {
|
|
139
|
-
n().focus();
|
|
140
|
-
}
|
|
141
|
-
var _ = { blur: s, clear: u, destroy: m, focus: p };
|
|
142
|
-
e.init();
|
|
143
|
-
var c = V();
|
|
144
|
-
return e.bind_this(c, (y) => e.set(d, y), () => e.get(d)), e.append(b, c), e.bind_prop(t, "blur", s), e.bind_prop(t, "clear", u), e.bind_prop(t, "destroy", m), e.bind_prop(t, "focus", p), e.pop(_);
|
|
145
|
-
}
|
|
146
|
-
var A = e.from_html("<div></div>");
|
|
147
|
-
function X(b, t) {
|
|
148
|
-
e.push(t, !1);
|
|
149
|
-
let a = e.prop(t, "classes", 24, () => ({})), r = e.prop(t, "style", 24, () => ({})), f = e.prop(t, "paymentRequest", 8), i = e.prop(t, "element", 12, null), n = e.prop(t, "canMakePayment", 12, null), d = e.mutable_source(), l;
|
|
150
|
-
const o = C(), { stripe: s, elements: u } = w("stripe");
|
|
151
|
-
k(async () => {
|
|
152
|
-
l = s.paymentRequest(f());
|
|
153
|
-
const p = {
|
|
154
|
-
classes: a(),
|
|
155
|
-
style: { paymentRequestButton: r() },
|
|
156
|
-
paymentRequest: l
|
|
157
|
-
};
|
|
158
|
-
i(u.create("paymentRequestButton", p));
|
|
159
|
-
const _ = await l.canMakePayment();
|
|
160
|
-
return l.on("token", (c) => o("token", c)), l.on("cancel", (c) => o("cancel", c)), l.on("paymentmethod", (c) => o("paymentmethod", c)), l.on("shippingaddresschange", (c) => o("shippingaddresschange", c)), l.on("shippingoptionchange", (c) => o("shippingoptionchange", c)), _ ? (n(!0), i().mount(e.get(d))) : (n(!1), e.mutate(d, e.get(d).style.display = "none")), () => i().destroy();
|
|
161
|
-
}), e.init();
|
|
162
|
-
var m = A();
|
|
163
|
-
e.bind_this(m, (p) => e.set(d, p), () => e.get(d)), e.append(b, m), e.pop();
|
|
164
|
-
}
|
|
165
|
-
var O = e.from_html("<div></div>");
|
|
166
|
-
function Z(b, t) {
|
|
167
|
-
e.push(t, !1);
|
|
168
|
-
let a = e.prop(t, "classes", 24, () => ({})), r = e.prop(t, "style", 24, () => ({})), f = e.prop(t, "supportedCountries", 24, () => []), i = e.prop(t, "placeholderCountry", 8, ""), n = e.prop(t, "hideIcon", 8, !1), d = e.prop(t, "iconStyle", 8, "default"), l = e.prop(t, "disabled", 8, !1), o = e.prop(t, "element", 12, null), s = e.mutable_source();
|
|
169
|
-
const u = C(), { elements: m } = w("stripe");
|
|
170
|
-
k(() => {
|
|
171
|
-
const h = {
|
|
172
|
-
classes: a(),
|
|
173
|
-
style: r(),
|
|
174
|
-
supportedCountries: f(),
|
|
175
|
-
placeholderCountry: i(),
|
|
176
|
-
disabled: l(),
|
|
177
|
-
hideIcon: n(),
|
|
178
|
-
iconStyle: d()
|
|
179
|
-
};
|
|
180
|
-
return o(x(e.get(s), "iban", m, u, h)), () => o().destroy();
|
|
181
|
-
});
|
|
182
|
-
function p() {
|
|
183
|
-
o().blur();
|
|
184
|
-
}
|
|
185
|
-
function _() {
|
|
186
|
-
o().clear();
|
|
187
|
-
}
|
|
188
|
-
function c() {
|
|
189
|
-
o().destroy();
|
|
190
|
-
}
|
|
191
|
-
function y() {
|
|
192
|
-
o().focus();
|
|
193
|
-
}
|
|
194
|
-
var v = { blur: p, clear: _, destroy: c, focus: y };
|
|
195
|
-
e.init();
|
|
196
|
-
var g = O();
|
|
197
|
-
return e.bind_this(g, (h) => e.set(s, h), () => e.get(s)), e.append(b, g), e.bind_prop(t, "blur", p), e.bind_prop(t, "clear", _), e.bind_prop(t, "destroy", c), e.bind_prop(t, "focus", y), e.pop(v);
|
|
198
|
-
}
|
|
199
|
-
var j = e.from_html("<div></div>");
|
|
200
|
-
function $(b, t) {
|
|
201
|
-
e.push(t, !1);
|
|
202
|
-
let a = e.prop(t, "classes", 24, () => ({})), r = e.prop(t, "style", 24, () => ({})), f = e.prop(t, "value", 8, ""), i = e.prop(t, "disabled", 8, !1), n = e.prop(t, "hideIcon", 8, !0), d = e.prop(t, "element", 12, null), l = e.mutable_source();
|
|
203
|
-
const o = C(), { elements: s } = w("stripe");
|
|
204
|
-
k(() => {
|
|
205
|
-
const v = {
|
|
206
|
-
classes: a(),
|
|
207
|
-
style: r(),
|
|
208
|
-
value: f(),
|
|
209
|
-
disabled: i(),
|
|
210
|
-
hideIcon: n()
|
|
211
|
-
};
|
|
212
|
-
return d(x(e.get(l), "idealBank", s, o, v)), () => d().destroy();
|
|
213
|
-
});
|
|
214
|
-
function u() {
|
|
215
|
-
d().blur();
|
|
216
|
-
}
|
|
217
|
-
function m() {
|
|
218
|
-
d().clear();
|
|
219
|
-
}
|
|
220
|
-
function p() {
|
|
221
|
-
d().destroy();
|
|
222
|
-
}
|
|
223
|
-
function _() {
|
|
224
|
-
d().focus();
|
|
225
|
-
}
|
|
226
|
-
var c = { blur: u, clear: m, destroy: p, focus: _ };
|
|
227
|
-
e.init();
|
|
228
|
-
var y = j();
|
|
229
|
-
return e.bind_this(y, (v) => e.set(l, v), () => e.get(l)), e.append(b, y), e.bind_prop(t, "blur", u), e.bind_prop(t, "clear", m), e.bind_prop(t, "destroy", p), e.bind_prop(t, "focus", _), e.pop(c);
|
|
230
|
-
}
|
|
231
|
-
var H = e.from_html("<div></div>");
|
|
232
|
-
function ee(b, t) {
|
|
233
|
-
e.push(t, !1);
|
|
234
|
-
let a, r = e.mutable_source();
|
|
235
|
-
const f = C(), { elements: i } = w("stripe");
|
|
236
|
-
let n = e.prop(t, "options", 8, void 0);
|
|
237
|
-
k(() => (a = x(e.get(r), "payment", i, f, n()), () => a.destroy()));
|
|
238
|
-
function d() {
|
|
239
|
-
a.blur();
|
|
240
|
-
}
|
|
241
|
-
function l() {
|
|
242
|
-
a.clear();
|
|
243
|
-
}
|
|
244
|
-
function o() {
|
|
245
|
-
a.destroy();
|
|
246
|
-
}
|
|
247
|
-
function s() {
|
|
248
|
-
a.focus();
|
|
249
|
-
}
|
|
250
|
-
var u = { blur: d, clear: l, destroy: o, focus: s };
|
|
251
|
-
e.init();
|
|
252
|
-
var m = H();
|
|
253
|
-
return e.bind_this(m, (p) => e.set(r, p), () => e.get(r)), e.append(b, m), e.bind_prop(t, "blur", d), e.bind_prop(t, "clear", l), e.bind_prop(t, "destroy", o), e.bind_prop(t, "focus", s), e.pop(u);
|
|
254
|
-
}
|
|
255
|
-
var D = e.from_html("<div></div>");
|
|
256
|
-
function te(b, t) {
|
|
257
|
-
e.push(t, !1);
|
|
258
|
-
let a = e.prop(t, "defaultValues", 8, null), r, f = e.mutable_source();
|
|
259
|
-
const i = C(), { elements: n } = w("stripe");
|
|
260
|
-
k(() => {
|
|
261
|
-
const p = a() ? { defaultValues: a() } : {};
|
|
262
|
-
return r = x(e.get(f), "linkAuthentication", n, i, p), r.on("change", (_) => {
|
|
263
|
-
i("change", _);
|
|
264
|
-
}), () => r.destroy();
|
|
265
|
-
});
|
|
266
|
-
function d() {
|
|
267
|
-
r.blur();
|
|
268
|
-
}
|
|
269
|
-
function l() {
|
|
270
|
-
r.clear();
|
|
271
|
-
}
|
|
272
|
-
function o() {
|
|
273
|
-
r.destroy();
|
|
274
|
-
}
|
|
275
|
-
function s() {
|
|
276
|
-
r.focus();
|
|
277
|
-
}
|
|
278
|
-
var u = { blur: d, clear: l, destroy: o, focus: s };
|
|
279
|
-
e.init();
|
|
280
|
-
var m = D();
|
|
281
|
-
return e.bind_this(m, (p) => e.set(f, p), () => e.get(f)), e.append(b, m), e.bind_prop(t, "blur", d), e.bind_prop(t, "clear", l), e.bind_prop(t, "destroy", o), e.bind_prop(t, "focus", s), e.pop(u);
|
|
282
|
-
}
|
|
283
|
-
var N = e.from_html("<div></div>");
|
|
284
|
-
function ne(b, t) {
|
|
285
|
-
e.push(t, !1);
|
|
286
|
-
let a = e.prop(t, "mode", 8), r = e.prop(t, "allowedCountries", 8, void 0), f = e.prop(t, "autocomplete", 24, () => ({ mode: "automatic" })), i = e.prop(t, "blockPoBox", 8, void 0), n = e.prop(t, "contacts", 8, void 0), d = e.prop(t, "defaultValues", 8, void 0), l = e.prop(t, "fields", 8, void 0), o = e.prop(t, "validation", 8, void 0), s = e.prop(t, "display", 8, void 0), u, m = e.mutable_source();
|
|
287
|
-
const p = C(), { elements: _ } = w("stripe");
|
|
288
|
-
k(() => {
|
|
289
|
-
const M = {
|
|
290
|
-
mode: a(),
|
|
291
|
-
allowedCountries: r(),
|
|
292
|
-
autocomplete: f(),
|
|
293
|
-
blockPoBox: i(),
|
|
294
|
-
contacts: n(),
|
|
295
|
-
defaultValues: d(),
|
|
296
|
-
fields: l(),
|
|
297
|
-
validation: o(),
|
|
298
|
-
display: s()
|
|
299
|
-
};
|
|
300
|
-
return u = x(e.get(m), "address", _, p, M), () => u.destroy();
|
|
301
|
-
});
|
|
302
|
-
function c() {
|
|
303
|
-
u.blur();
|
|
304
|
-
}
|
|
305
|
-
function y() {
|
|
306
|
-
u.clear();
|
|
307
|
-
}
|
|
308
|
-
function v() {
|
|
309
|
-
u.destroy();
|
|
310
|
-
}
|
|
311
|
-
function g() {
|
|
312
|
-
u.focus();
|
|
313
|
-
}
|
|
314
|
-
var h = { blur: c, clear: y, destroy: v, focus: g };
|
|
315
|
-
e.init();
|
|
316
|
-
var S = N();
|
|
317
|
-
return e.bind_this(S, (M) => e.set(m, M), () => e.get(m)), e.append(b, S), e.bind_prop(t, "blur", c), e.bind_prop(t, "clear", y), e.bind_prop(t, "destroy", v), e.bind_prop(t, "focus", g), e.pop(h);
|
|
318
|
-
}
|
|
319
|
-
var Y = e.from_html("<div></div>");
|
|
320
|
-
function le(b, t) {
|
|
321
|
-
e.push(t, !1);
|
|
322
|
-
let a = e.prop(t, "amount", 8), r = e.prop(t, "currency", 8), f = e.prop(t, "paymentMethodTypes", 8), i = e.prop(t, "countryCode", 8), n = e.prop(t, "logoColor", 8, null), d = e.prop(t, "metadata", 8, null), l = e.prop(t, "element", 12, null), o = e.mutable_source();
|
|
323
|
-
const s = C(), { elements: u } = w("stripe");
|
|
324
|
-
k(() => {
|
|
325
|
-
const p = {
|
|
326
|
-
amount: a(),
|
|
327
|
-
currency: r(),
|
|
328
|
-
paymentMethodTypes: f(),
|
|
329
|
-
countryCode: i(),
|
|
330
|
-
logoColor: n(),
|
|
331
|
-
metadata: d()
|
|
332
|
-
};
|
|
333
|
-
return l(x(e.get(o), "paymentMethodMessaging", u, s, p)), () => l().destroy();
|
|
334
|
-
}), e.init();
|
|
335
|
-
var m = Y();
|
|
336
|
-
e.bind_this(m, (p) => e.set(o, p), () => e.get(o)), e.append(b, m), e.pop();
|
|
337
|
-
}
|
|
338
|
-
var L = e.from_html("<div></div>");
|
|
339
|
-
function oe(b, t) {
|
|
340
|
-
e.push(t, !1);
|
|
341
|
-
let a = e.prop(t, "buttonHeight", 8, void 0), r = e.prop(t, "buttonTheme", 8, void 0), f = e.prop(t, "buttonType", 8, void 0), i = e.prop(t, "layout", 8, void 0), n = e.prop(t, "paymentMethodOrder", 8, void 0), d = e.prop(t, "wallets", 8, void 0), l = e.prop(t, "element", 12, null), o = e.mutable_source();
|
|
342
|
-
const s = C(), { elements: u } = w("stripe");
|
|
343
|
-
k(() => {
|
|
344
|
-
const g = {
|
|
345
|
-
buttonHeight: a(),
|
|
346
|
-
buttonTheme: r(),
|
|
347
|
-
buttonType: f(),
|
|
348
|
-
layout: i(),
|
|
349
|
-
paymentMethodOrder: n(),
|
|
350
|
-
wallets: d()
|
|
351
|
-
};
|
|
352
|
-
return l(x(e.get(o), "expressCheckout", u, s, g)), l().on("click", (h) => s("click", h)), l().on("cancel", (h) => s("cancel", h)), l().on("confirm", (h) => s("confirm", h)), l().on("shippingaddresschange", (h) => s("shippingaddresschange", h)), l().on("shippingratechange", (h) => s("shippingratechange", h)), () => l().destroy();
|
|
353
|
-
});
|
|
354
|
-
function m() {
|
|
355
|
-
l().blur();
|
|
356
|
-
}
|
|
357
|
-
function p() {
|
|
358
|
-
l().clear();
|
|
359
|
-
}
|
|
360
|
-
function _() {
|
|
361
|
-
l().destroy();
|
|
362
|
-
}
|
|
363
|
-
function c() {
|
|
364
|
-
l().focus();
|
|
365
|
-
}
|
|
366
|
-
var y = { blur: m, clear: p, destroy: _, focus: c };
|
|
367
|
-
e.init();
|
|
368
|
-
var v = L();
|
|
369
|
-
return e.bind_this(v, (g) => e.set(o, g), () => e.get(o)), e.append(b, v), e.bind_prop(t, "blur", m), e.bind_prop(t, "clear", p), e.bind_prop(t, "destroy", _), e.bind_prop(t, "focus", c), e.pop(y);
|
|
370
|
-
}
|
|
371
|
-
var z = e.from_html("<div></div>");
|
|
372
|
-
function re(b, t) {
|
|
373
|
-
e.push(t, !1);
|
|
374
|
-
let a = e.prop(t, "stripe", 8), r = e.prop(t, "clientSecret", 8), f = e.mutable_source(), i = e.mutable_source();
|
|
375
|
-
T(() => {
|
|
376
|
-
e.get(i)?.destroy();
|
|
377
|
-
}), e.legacy_pre_effect(() => (e.deep_read_state(a()), I), () => {
|
|
378
|
-
a() && I(a());
|
|
379
|
-
}), e.legacy_pre_effect(
|
|
380
|
-
() => (e.deep_read_state(a()), e.deep_read_state(r()), e.get(f), e.get(i)),
|
|
381
|
-
() => {
|
|
382
|
-
a() && r() && e.get(f) && a().initEmbeddedCheckout({ clientSecret: r() }).then((o) => {
|
|
383
|
-
e.set(i, o), e.get(i).mount(e.get(f));
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
), e.legacy_pre_effect_reset(), e.init();
|
|
387
|
-
var n = e.comment(), d = e.first_child(n);
|
|
388
|
-
{
|
|
389
|
-
var l = (o) => {
|
|
390
|
-
var s = z();
|
|
391
|
-
e.bind_this(s, (u) => e.set(f, u), () => e.get(f)), e.append(o, s);
|
|
392
|
-
};
|
|
393
|
-
e.if(d, (o) => {
|
|
394
|
-
a() && r() && o(l);
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
e.append(b, n), e.pop();
|
|
398
|
-
}
|
|
399
|
-
function ae(b, t) {
|
|
400
|
-
e.push(t, !1);
|
|
401
|
-
const a = e.mutable_source();
|
|
402
|
-
let r = e.prop(t, "stripe", 8), f = e.prop(t, "mode", 8, void 0), i = e.prop(t, "theme", 8, "stripe"), n = e.prop(t, "variables", 24, () => ({})), d = e.prop(t, "rules", 24, () => ({})), l = e.prop(t, "labels", 8, "above"), o = e.prop(t, "loader", 8, "auto"), s = e.prop(t, "fonts", 24, () => []), u = e.prop(t, "locale", 8, "auto"), m = e.prop(t, "currency", 8, void 0), p = e.prop(t, "amount", 8, void 0), _ = e.prop(t, "clientSecret", 8, void 0), c = e.prop(t, "elements", 12, null);
|
|
403
|
-
e.legacy_pre_effect(
|
|
404
|
-
() => (e.deep_read_state(i()), e.deep_read_state(n()), e.deep_read_state(d()), e.deep_read_state(l())),
|
|
405
|
-
() => {
|
|
406
|
-
e.set(a, {
|
|
407
|
-
theme: i(),
|
|
408
|
-
variables: n(),
|
|
409
|
-
rules: d(),
|
|
410
|
-
labels: l()
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
), e.legacy_pre_effect(
|
|
414
|
-
() => (e.deep_read_state(r()), e.deep_read_state(c()), e.deep_read_state(f()), e.deep_read_state(m()), e.deep_read_state(p()), e.get(a), e.deep_read_state(_()), e.deep_read_state(s()), e.deep_read_state(o()), e.deep_read_state(u()), P),
|
|
415
|
-
() => {
|
|
416
|
-
r() && !c() && (c(r().elements({
|
|
417
|
-
mode: f(),
|
|
418
|
-
currency: m(),
|
|
419
|
-
amount: p(),
|
|
420
|
-
appearance: e.get(a),
|
|
421
|
-
clientSecret: _(),
|
|
422
|
-
fonts: s(),
|
|
423
|
-
loader: o(),
|
|
424
|
-
locale: u()
|
|
425
|
-
})), I(r()), P("stripe", { stripe: r(), elements: c() }));
|
|
426
|
-
}
|
|
427
|
-
), e.legacy_pre_effect(
|
|
428
|
-
() => (e.deep_read_state(c()), e.get(a), e.deep_read_state(u())),
|
|
429
|
-
() => {
|
|
430
|
-
c() && c().update({ appearance: e.get(a), locale: u() });
|
|
431
|
-
}
|
|
432
|
-
), e.legacy_pre_effect_reset(), e.init();
|
|
433
|
-
var y = e.comment(), v = e.first_child(y);
|
|
434
|
-
{
|
|
435
|
-
var g = (h) => {
|
|
436
|
-
var S = e.comment(), M = e.first_child(S);
|
|
437
|
-
e.slot(M, t, "default", {}, null), e.append(h, S);
|
|
438
|
-
};
|
|
439
|
-
e.if(v, (h) => {
|
|
440
|
-
r() && c() && h(g);
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
e.append(b, y), e.pop();
|
|
444
|
-
}
|
|
445
|
-
function ie(b, t) {
|
|
446
|
-
e.push(t, !1);
|
|
447
|
-
let a = e.prop(t, "stripe", 8), r = e.prop(t, "theme", 8, "stripe"), f = e.prop(t, "variables", 24, () => ({})), i = e.prop(t, "rules", 24, () => ({})), n = e.prop(t, "labels", 8, "above"), d = e.prop(t, "loader", 8, "auto"), l = e.prop(t, "clientSecret", 8, void 0), o = e.prop(t, "elements", 24, () => E ? null : a().elements({
|
|
448
|
-
appearance: {
|
|
449
|
-
theme: r(),
|
|
450
|
-
variables: f(),
|
|
451
|
-
rules: i(),
|
|
452
|
-
labels: n()
|
|
453
|
-
},
|
|
454
|
-
clientSecret: l(),
|
|
455
|
-
loader: d()
|
|
456
|
-
}));
|
|
457
|
-
I(a()), P("stripe", { stripe: a(), elements: o() }), console.warn("svelte-stripe: <Container/> is deprecated, please use <Elements/> instead."), e.init();
|
|
458
|
-
var s = e.comment(), u = e.first_child(s);
|
|
459
|
-
e.slot(u, t, "default", {}, null), e.append(b, s), e.pop();
|
|
460
|
-
}
|
|
461
|
-
export {
|
|
462
|
-
ne as Address,
|
|
463
|
-
K as Card,
|
|
464
|
-
W as CardCvc,
|
|
465
|
-
U as CardExpiry,
|
|
466
|
-
Q as CardNumber,
|
|
467
|
-
ie as Container,
|
|
468
|
-
ae as Elements,
|
|
469
|
-
re as EmbeddedCheckout,
|
|
470
|
-
oe as ExpressCheckout,
|
|
471
|
-
Z as Iban,
|
|
472
|
-
$ as Ideal,
|
|
473
|
-
te as LinkAuthenticationElement,
|
|
474
|
-
ee as PaymentElement,
|
|
475
|
-
le as PaymentMethodMessaging,
|
|
476
|
-
X as PaymentRequestButton,
|
|
477
|
-
E as isServer
|
|
478
|
-
};
|
|
479
|
-
//# sourceMappingURL=index-GqsPc-C2.js.map
|