@sesamy/sesamy-components 0.0.7 → 0.0.8
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.
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
1
|
+
var re = Object.defineProperty;
|
|
2
|
+
var ce = (e, t, n) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var V = (e, t, n) => ce(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
function C() {
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function X(e, t) {
|
|
7
7
|
for (const n in t) e[n] = t[n];
|
|
8
8
|
return (
|
|
9
9
|
/** @type {T & S} */
|
|
10
10
|
e
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Jt(e) {
|
|
14
14
|
return e();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Bt() {
|
|
17
17
|
return /* @__PURE__ */ Object.create(null);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
e.forEach(
|
|
19
|
+
function tt(e) {
|
|
20
|
+
e.forEach(Jt);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Yt(e) {
|
|
23
23
|
return typeof e == "function";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function U(e, t) {
|
|
26
26
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
27
27
|
}
|
|
28
|
-
let
|
|
29
|
-
function
|
|
30
|
-
return e === t ? !0 : (
|
|
28
|
+
let mt;
|
|
29
|
+
function Qt(e, t) {
|
|
30
|
+
return e === t ? !0 : (mt || (mt = document.createElement("a")), mt.href = t, e === mt.href);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ae(e) {
|
|
33
33
|
return Object.keys(e).length === 0;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function $t(e, t, n, s) {
|
|
36
36
|
if (e) {
|
|
37
|
-
const
|
|
38
|
-
return e[0](
|
|
37
|
+
const l = Xt(e, t, n, s);
|
|
38
|
+
return e[0](l);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return e[1] &&
|
|
41
|
+
function Xt(e, t, n, s) {
|
|
42
|
+
return e[1] && s ? X(n.ctx.slice(), e[1](s(t))) : n.ctx;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (e[2] &&
|
|
46
|
-
const
|
|
44
|
+
function wt(e, t, n, s) {
|
|
45
|
+
if (e[2] && s) {
|
|
46
|
+
const l = e[2](s(n));
|
|
47
47
|
if (t.dirty === void 0)
|
|
48
|
-
return
|
|
49
|
-
if (typeof
|
|
50
|
-
const o = [],
|
|
51
|
-
for (let
|
|
52
|
-
o[
|
|
48
|
+
return l;
|
|
49
|
+
if (typeof l == "object") {
|
|
50
|
+
const o = [], r = Math.max(t.dirty.length, l.length);
|
|
51
|
+
for (let a = 0; a < r; a += 1)
|
|
52
|
+
o[a] = t.dirty[a] | l[a];
|
|
53
53
|
return o;
|
|
54
54
|
}
|
|
55
|
-
return t.dirty |
|
|
55
|
+
return t.dirty | l;
|
|
56
56
|
}
|
|
57
57
|
return t.dirty;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
e.p(
|
|
59
|
+
function kt(e, t, n, s, l, o) {
|
|
60
|
+
if (l) {
|
|
61
|
+
const r = Xt(t, n, s, o);
|
|
62
|
+
e.p(r, l);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function xt(e) {
|
|
66
66
|
if (e.ctx.length > 32) {
|
|
67
67
|
const t = [], n = e.ctx.length / 32;
|
|
68
|
-
for (let
|
|
69
|
-
t[
|
|
68
|
+
for (let s = 0; s < n; s++)
|
|
69
|
+
t[s] = -1;
|
|
70
70
|
return t;
|
|
71
71
|
}
|
|
72
72
|
return -1;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function jt(e) {
|
|
75
75
|
const t = {};
|
|
76
76
|
for (const n in e) n[0] !== "$" && (t[n] = e[n]);
|
|
77
77
|
return t;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ft(e, t) {
|
|
80
80
|
const n = {};
|
|
81
81
|
t = new Set(t);
|
|
82
|
-
for (const
|
|
82
|
+
for (const s in e) !t.has(s) && s[0] !== "$" && (n[s] = e[s]);
|
|
83
83
|
return n;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function c(e, t) {
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
if (!
|
|
91
|
-
const
|
|
92
|
-
|
|
88
|
+
function St(e, t, n) {
|
|
89
|
+
const s = ue(e);
|
|
90
|
+
if (!s.getElementById(t)) {
|
|
91
|
+
const l = d("style");
|
|
92
|
+
l.id = t, l.textContent = n, fe(s, l);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function ue(e) {
|
|
96
96
|
if (!e) return document;
|
|
97
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
98
98
|
return t && /** @type {ShadowRoot} */
|
|
@@ -101,54 +101,54 @@ function ie(e) {
|
|
|
101
101
|
t
|
|
102
102
|
) : e.ownerDocument;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function fe(e, t) {
|
|
105
|
+
return c(
|
|
106
106
|
/** @type {Document} */
|
|
107
107
|
e.head || e,
|
|
108
108
|
t
|
|
109
109
|
), t.sheet;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function z(e, t, n) {
|
|
112
112
|
e.insertBefore(t, n || null);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function q(e) {
|
|
115
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Et(e, t) {
|
|
118
118
|
for (let n = 0; n < e.length; n += 1)
|
|
119
119
|
e[n] && e[n].d(t);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function d(e) {
|
|
122
122
|
return document.createElement(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function K(e) {
|
|
125
125
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function te(e) {
|
|
128
128
|
return document.createTextNode(e);
|
|
129
129
|
}
|
|
130
130
|
function b() {
|
|
131
|
-
return
|
|
131
|
+
return te(" ");
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function At() {
|
|
134
|
+
return te("");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return e.addEventListener(t, n,
|
|
136
|
+
function P(e, t, n, s) {
|
|
137
|
+
return e.addEventListener(t, n, s), () => e.removeEventListener(t, n, s);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function i(e, t, n) {
|
|
140
140
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function yt(e, t) {
|
|
143
143
|
for (const n in t)
|
|
144
|
-
|
|
144
|
+
i(e, n, t[n]);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function de(e) {
|
|
147
147
|
let t;
|
|
148
148
|
return {
|
|
149
149
|
/* push */
|
|
150
150
|
p(...n) {
|
|
151
|
-
t = n, t.forEach((
|
|
151
|
+
t = n, t.forEach((s) => e.push(s));
|
|
152
152
|
},
|
|
153
153
|
/* remove */
|
|
154
154
|
r() {
|
|
@@ -156,13 +156,13 @@ function ce(e) {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function he(e) {
|
|
160
160
|
return Array.from(e.childNodes);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Ht(e, t) {
|
|
163
163
|
e.value = t ?? "";
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ge(e) {
|
|
166
166
|
const t = {};
|
|
167
167
|
return e.childNodes.forEach(
|
|
168
168
|
/** @param {Element} node */
|
|
@@ -171,229 +171,229 @@ function ae(e) {
|
|
|
171
171
|
}
|
|
172
172
|
), t;
|
|
173
173
|
}
|
|
174
|
-
let
|
|
175
|
-
function
|
|
176
|
-
|
|
174
|
+
let Mt;
|
|
175
|
+
function gt(e) {
|
|
176
|
+
Mt = e;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
const
|
|
181
|
-
let
|
|
182
|
-
function
|
|
183
|
-
|
|
178
|
+
const rt = [], Ot = [];
|
|
179
|
+
let at = [];
|
|
180
|
+
const Tt = [], pe = /* @__PURE__ */ Promise.resolve();
|
|
181
|
+
let Lt = !1;
|
|
182
|
+
function me() {
|
|
183
|
+
Lt || (Lt = !0, pe.then(ee));
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
185
|
+
function Nt(e) {
|
|
186
|
+
at.push(e);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
if (
|
|
188
|
+
const qt = /* @__PURE__ */ new Set();
|
|
189
|
+
let ot = 0;
|
|
190
|
+
function ee() {
|
|
191
|
+
if (ot !== 0)
|
|
192
192
|
return;
|
|
193
|
-
const e =
|
|
193
|
+
const e = Mt;
|
|
194
194
|
do {
|
|
195
195
|
try {
|
|
196
|
-
for (;
|
|
197
|
-
const t =
|
|
198
|
-
|
|
196
|
+
for (; ot < rt.length; ) {
|
|
197
|
+
const t = rt[ot];
|
|
198
|
+
ot++, gt(t), be(t.$$);
|
|
199
199
|
}
|
|
200
200
|
} catch (t) {
|
|
201
|
-
throw
|
|
201
|
+
throw rt.length = 0, ot = 0, t;
|
|
202
202
|
}
|
|
203
|
-
for (
|
|
204
|
-
for (let t = 0; t <
|
|
205
|
-
const n =
|
|
206
|
-
|
|
203
|
+
for (gt(null), rt.length = 0, ot = 0; Ot.length; ) Ot.pop()();
|
|
204
|
+
for (let t = 0; t < at.length; t += 1) {
|
|
205
|
+
const n = at[t];
|
|
206
|
+
qt.has(n) || (qt.add(n), n());
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
} while (
|
|
210
|
-
for (;
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
at.length = 0;
|
|
209
|
+
} while (rt.length);
|
|
210
|
+
for (; Tt.length; )
|
|
211
|
+
Tt.pop()();
|
|
212
|
+
Lt = !1, qt.clear(), gt(e);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function be(e) {
|
|
215
215
|
if (e.fragment !== null) {
|
|
216
|
-
e.update(),
|
|
216
|
+
e.update(), tt(e.before_update);
|
|
217
217
|
const t = e.dirty;
|
|
218
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
218
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Nt);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function _e(e) {
|
|
222
222
|
const t = [], n = [];
|
|
223
|
-
|
|
223
|
+
at.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), at = t;
|
|
224
224
|
}
|
|
225
|
-
const
|
|
226
|
-
let
|
|
227
|
-
function
|
|
228
|
-
|
|
225
|
+
const _t = /* @__PURE__ */ new Set();
|
|
226
|
+
let nt;
|
|
227
|
+
function ve() {
|
|
228
|
+
nt = {
|
|
229
229
|
r: 0,
|
|
230
230
|
c: [],
|
|
231
|
-
p:
|
|
231
|
+
p: nt
|
|
232
232
|
// parent group
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
235
|
+
function $e() {
|
|
236
|
+
nt.r || tt(nt.c), nt = nt.p;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
e && e.i && (
|
|
238
|
+
function O(e, t) {
|
|
239
|
+
e && e.i && (_t.delete(e), e.i(t));
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Z(e, t, n, s) {
|
|
242
242
|
if (e && e.o) {
|
|
243
|
-
if (
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
if (_t.has(e)) return;
|
|
244
|
+
_t.add(e), nt.c.push(() => {
|
|
245
|
+
_t.delete(e), s && (n && e.d(1), s());
|
|
246
246
|
}), e.o(t);
|
|
247
|
-
} else
|
|
247
|
+
} else s && s();
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function ct(e) {
|
|
250
250
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
const n = {},
|
|
252
|
+
function Pt(e, t) {
|
|
253
|
+
const n = {}, s = {}, l = { $$scope: 1 };
|
|
254
254
|
let o = e.length;
|
|
255
255
|
for (; o--; ) {
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
258
|
-
for (const
|
|
259
|
-
|
|
260
|
-
for (const
|
|
261
|
-
|
|
262
|
-
e[o] =
|
|
256
|
+
const r = e[o], a = t[o];
|
|
257
|
+
if (a) {
|
|
258
|
+
for (const h in r)
|
|
259
|
+
h in a || (s[h] = 1);
|
|
260
|
+
for (const h in a)
|
|
261
|
+
l[h] || (n[h] = a[h], l[h] = 1);
|
|
262
|
+
e[o] = a;
|
|
263
263
|
} else
|
|
264
|
-
for (const
|
|
265
|
-
|
|
264
|
+
for (const h in r)
|
|
265
|
+
l[h] = 1;
|
|
266
266
|
}
|
|
267
|
-
for (const
|
|
268
|
-
|
|
267
|
+
for (const r in s)
|
|
268
|
+
r in n || (n[r] = void 0);
|
|
269
269
|
return n;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function we(e) {
|
|
272
272
|
return typeof e == "object" && e !== null ? e : {};
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function pt(e) {
|
|
275
275
|
e && e.c();
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
const { fragment:
|
|
279
|
-
|
|
280
|
-
const o = e.$$.on_mount.map(
|
|
281
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
282
|
-
}),
|
|
277
|
+
function ut(e, t, n) {
|
|
278
|
+
const { fragment: s, after_update: l } = e.$$;
|
|
279
|
+
s && s.m(t, n), Nt(() => {
|
|
280
|
+
const o = e.$$.on_mount.map(Jt).filter(Yt);
|
|
281
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : tt(o), e.$$.on_mount = [];
|
|
282
|
+
}), l.forEach(Nt);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function ft(e, t) {
|
|
285
285
|
const n = e.$$;
|
|
286
|
-
n.fragment !== null && (
|
|
286
|
+
n.fragment !== null && (_e(n.after_update), tt(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
e.$$.dirty[0] === -1 && (
|
|
288
|
+
function ke(e, t) {
|
|
289
|
+
e.$$.dirty[0] === -1 && (rt.push(e), me(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
const
|
|
291
|
+
function J(e, t, n, s, l, o, r = null, a = [-1]) {
|
|
292
|
+
const h = Mt;
|
|
293
|
+
gt(e);
|
|
294
|
+
const p = e.$$ = {
|
|
295
295
|
fragment: null,
|
|
296
296
|
ctx: [],
|
|
297
297
|
// state
|
|
298
298
|
props: o,
|
|
299
|
-
update:
|
|
300
|
-
not_equal:
|
|
301
|
-
bound:
|
|
299
|
+
update: C,
|
|
300
|
+
not_equal: l,
|
|
301
|
+
bound: Bt(),
|
|
302
302
|
// lifecycle
|
|
303
303
|
on_mount: [],
|
|
304
304
|
on_destroy: [],
|
|
305
305
|
on_disconnect: [],
|
|
306
306
|
before_update: [],
|
|
307
307
|
after_update: [],
|
|
308
|
-
context: new Map(t.context || (
|
|
308
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
309
309
|
// everything else
|
|
310
|
-
callbacks:
|
|
311
|
-
dirty:
|
|
310
|
+
callbacks: Bt(),
|
|
311
|
+
dirty: a,
|
|
312
312
|
skip_bound: !1,
|
|
313
|
-
root: t.target ||
|
|
313
|
+
root: t.target || h.$$.root
|
|
314
314
|
};
|
|
315
|
-
|
|
316
|
-
let
|
|
317
|
-
if (
|
|
318
|
-
const
|
|
319
|
-
return
|
|
320
|
-
}) : [],
|
|
315
|
+
r && r(p.root);
|
|
316
|
+
let w = !1;
|
|
317
|
+
if (p.ctx = n ? n(e, t.props || {}, (_, u, ...$) => {
|
|
318
|
+
const g = $.length ? $[0] : u;
|
|
319
|
+
return p.ctx && l(p.ctx[_], p.ctx[_] = g) && (!p.skip_bound && p.bound[_] && p.bound[_](g), w && ke(e, _)), u;
|
|
320
|
+
}) : [], p.update(), w = !0, tt(p.before_update), p.fragment = s ? s(p.ctx) : !1, t.target) {
|
|
321
321
|
if (t.hydrate) {
|
|
322
|
-
const _ =
|
|
323
|
-
|
|
322
|
+
const _ = he(t.target);
|
|
323
|
+
p.fragment && p.fragment.l(_), _.forEach(q);
|
|
324
324
|
} else
|
|
325
|
-
|
|
326
|
-
t.intro &&
|
|
325
|
+
p.fragment && p.fragment.c();
|
|
326
|
+
t.intro && O(e.$$.fragment), ut(e, t.target, t.anchor), ee();
|
|
327
327
|
}
|
|
328
|
-
|
|
328
|
+
gt(h);
|
|
329
329
|
}
|
|
330
|
-
let
|
|
331
|
-
typeof HTMLElement == "function" && (
|
|
332
|
-
constructor(t, n,
|
|
330
|
+
let ne;
|
|
331
|
+
typeof HTMLElement == "function" && (ne = class extends HTMLElement {
|
|
332
|
+
constructor(t, n, s) {
|
|
333
333
|
super();
|
|
334
334
|
/** The Svelte component constructor */
|
|
335
|
-
|
|
335
|
+
V(this, "$$ctor");
|
|
336
336
|
/** Slots */
|
|
337
|
-
|
|
337
|
+
V(this, "$$s");
|
|
338
338
|
/** The Svelte component instance */
|
|
339
|
-
|
|
339
|
+
V(this, "$$c");
|
|
340
340
|
/** Whether or not the custom element is connected */
|
|
341
|
-
|
|
341
|
+
V(this, "$$cn", !1);
|
|
342
342
|
/** Component props data */
|
|
343
|
-
|
|
343
|
+
V(this, "$$d", {});
|
|
344
344
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
345
|
-
|
|
345
|
+
V(this, "$$r", !1);
|
|
346
346
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
347
|
-
|
|
347
|
+
V(this, "$$p_d", {});
|
|
348
348
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
349
|
-
|
|
349
|
+
V(this, "$$l", {});
|
|
350
350
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
351
|
-
|
|
352
|
-
this.$$ctor = t, this.$$s = n,
|
|
351
|
+
V(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
352
|
+
this.$$ctor = t, this.$$s = n, s && this.attachShadow({ mode: "open" });
|
|
353
353
|
}
|
|
354
|
-
addEventListener(t, n,
|
|
354
|
+
addEventListener(t, n, s) {
|
|
355
355
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
356
|
-
const
|
|
357
|
-
this.$$l_u.set(n,
|
|
356
|
+
const l = this.$$c.$on(t, n);
|
|
357
|
+
this.$$l_u.set(n, l);
|
|
358
358
|
}
|
|
359
|
-
super.addEventListener(t, n,
|
|
359
|
+
super.addEventListener(t, n, s);
|
|
360
360
|
}
|
|
361
|
-
removeEventListener(t, n,
|
|
362
|
-
if (super.removeEventListener(t, n,
|
|
363
|
-
const
|
|
364
|
-
|
|
361
|
+
removeEventListener(t, n, s) {
|
|
362
|
+
if (super.removeEventListener(t, n, s), this.$$c) {
|
|
363
|
+
const l = this.$$l_u.get(n);
|
|
364
|
+
l && (l(), this.$$l_u.delete(n));
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
async connectedCallback() {
|
|
368
368
|
if (this.$$cn = !0, !this.$$c) {
|
|
369
369
|
let t = function(o) {
|
|
370
370
|
return () => {
|
|
371
|
-
let
|
|
371
|
+
let r;
|
|
372
372
|
return {
|
|
373
373
|
c: function() {
|
|
374
|
-
|
|
374
|
+
r = d("slot"), o !== "default" && i(r, "name", o);
|
|
375
375
|
},
|
|
376
376
|
/**
|
|
377
377
|
* @param {HTMLElement} target
|
|
378
378
|
* @param {HTMLElement} [anchor]
|
|
379
379
|
*/
|
|
380
|
-
m: function(
|
|
381
|
-
|
|
380
|
+
m: function(p, w) {
|
|
381
|
+
z(p, r, w);
|
|
382
382
|
},
|
|
383
|
-
d: function(
|
|
384
|
-
|
|
383
|
+
d: function(p) {
|
|
384
|
+
p && q(r);
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
389
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
390
390
|
return;
|
|
391
|
-
const n = {},
|
|
391
|
+
const n = {}, s = ge(this);
|
|
392
392
|
for (const o of this.$$s)
|
|
393
|
-
o in
|
|
393
|
+
o in s && (n[o] = [t(o)]);
|
|
394
394
|
for (const o of this.attributes) {
|
|
395
|
-
const
|
|
396
|
-
|
|
395
|
+
const r = this.$$g_p(o.name);
|
|
396
|
+
r in this.$$d || (this.$$d[r] = vt(r, o.value, this.$$p_d, "toProp"));
|
|
397
397
|
}
|
|
398
398
|
for (const o in this.$$p_d)
|
|
399
399
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -407,34 +407,34 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
});
|
|
410
|
-
const
|
|
410
|
+
const l = () => {
|
|
411
411
|
this.$$r = !0;
|
|
412
412
|
for (const o in this.$$p_d)
|
|
413
413
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
414
|
-
const
|
|
414
|
+
const r = vt(
|
|
415
415
|
o,
|
|
416
416
|
this.$$d[o],
|
|
417
417
|
this.$$p_d,
|
|
418
418
|
"toAttribute"
|
|
419
419
|
);
|
|
420
|
-
|
|
420
|
+
r == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, r);
|
|
421
421
|
}
|
|
422
422
|
this.$$r = !1;
|
|
423
423
|
};
|
|
424
|
-
this.$$c.$$.after_update.push(
|
|
424
|
+
this.$$c.$$.after_update.push(l), l();
|
|
425
425
|
for (const o in this.$$l)
|
|
426
|
-
for (const
|
|
427
|
-
const
|
|
428
|
-
this.$$l_u.set(
|
|
426
|
+
for (const r of this.$$l[o]) {
|
|
427
|
+
const a = this.$$c.$on(o, r);
|
|
428
|
+
this.$$l_u.set(r, a);
|
|
429
429
|
}
|
|
430
430
|
this.$$l = {};
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
434
434
|
// and setting attributes through setAttribute etc, this is helpful
|
|
435
|
-
attributeChangedCallback(t, n,
|
|
436
|
-
var
|
|
437
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
435
|
+
attributeChangedCallback(t, n, s) {
|
|
436
|
+
var l;
|
|
437
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = vt(t, s, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [t]: this.$$d[t] }));
|
|
438
438
|
}
|
|
439
439
|
disconnectedCallback() {
|
|
440
440
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -447,13 +447,13 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
|
447
447
|
) || t;
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
function
|
|
450
|
+
function vt(e, t, n, s) {
|
|
451
451
|
var o;
|
|
452
|
-
const
|
|
453
|
-
if (t =
|
|
452
|
+
const l = (o = n[e]) == null ? void 0 : o.type;
|
|
453
|
+
if (t = l === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
|
|
454
454
|
return t;
|
|
455
|
-
if (
|
|
456
|
-
switch (
|
|
455
|
+
if (s === "toAttribute")
|
|
456
|
+
switch (l) {
|
|
457
457
|
case "Object":
|
|
458
458
|
case "Array":
|
|
459
459
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -465,7 +465,7 @@ function at(e, t, n, l) {
|
|
|
465
465
|
return t;
|
|
466
466
|
}
|
|
467
467
|
else
|
|
468
|
-
switch (
|
|
468
|
+
switch (l) {
|
|
469
469
|
case "Object":
|
|
470
470
|
case "Array":
|
|
471
471
|
return t && JSON.parse(t);
|
|
@@ -477,38 +477,38 @@ function at(e, t, n, l) {
|
|
|
477
477
|
return t;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
let
|
|
480
|
+
function Ct(e, t, n, s, l, o) {
|
|
481
|
+
let r = class extends ne {
|
|
482
482
|
constructor() {
|
|
483
|
-
super(e, n,
|
|
483
|
+
super(e, n, l), this.$$p_d = t;
|
|
484
484
|
}
|
|
485
485
|
static get observedAttributes() {
|
|
486
486
|
return Object.keys(t).map(
|
|
487
|
-
(
|
|
487
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
return Object.keys(t).forEach((
|
|
492
|
-
Object.defineProperty(
|
|
491
|
+
return Object.keys(t).forEach((a) => {
|
|
492
|
+
Object.defineProperty(r.prototype, a, {
|
|
493
493
|
get() {
|
|
494
|
-
return this.$$c &&
|
|
494
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
495
495
|
},
|
|
496
|
-
set(
|
|
497
|
-
var
|
|
498
|
-
|
|
496
|
+
set(h) {
|
|
497
|
+
var p;
|
|
498
|
+
h = vt(a, h, t), this.$$d[a] = h, (p = this.$$c) == null || p.$set({ [a]: h });
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
|
-
}),
|
|
502
|
-
Object.defineProperty(
|
|
501
|
+
}), s.forEach((a) => {
|
|
502
|
+
Object.defineProperty(r.prototype, a, {
|
|
503
503
|
get() {
|
|
504
|
-
var
|
|
505
|
-
return (
|
|
504
|
+
var h;
|
|
505
|
+
return (h = this.$$c) == null ? void 0 : h[a];
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
}), e.element = /** @type {any} */
|
|
509
|
-
|
|
509
|
+
r, r;
|
|
510
510
|
}
|
|
511
|
-
class
|
|
511
|
+
class Y {
|
|
512
512
|
constructor() {
|
|
513
513
|
/**
|
|
514
514
|
* ### PRIVATE API
|
|
@@ -517,7 +517,7 @@ class rt {
|
|
|
517
517
|
*
|
|
518
518
|
* @type {any}
|
|
519
519
|
*/
|
|
520
|
-
|
|
520
|
+
V(this, "$$");
|
|
521
521
|
/**
|
|
522
522
|
* ### PRIVATE API
|
|
523
523
|
*
|
|
@@ -525,11 +525,11 @@ class rt {
|
|
|
525
525
|
*
|
|
526
526
|
* @type {any}
|
|
527
527
|
*/
|
|
528
|
-
|
|
528
|
+
V(this, "$$set");
|
|
529
529
|
}
|
|
530
530
|
/** @returns {void} */
|
|
531
531
|
$destroy() {
|
|
532
|
-
|
|
532
|
+
ft(this, 1), this.$destroy = C;
|
|
533
533
|
}
|
|
534
534
|
/**
|
|
535
535
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -538,12 +538,12 @@ class rt {
|
|
|
538
538
|
* @returns {() => void}
|
|
539
539
|
*/
|
|
540
540
|
$on(t, n) {
|
|
541
|
-
if (!
|
|
542
|
-
return
|
|
543
|
-
const
|
|
544
|
-
return
|
|
545
|
-
const
|
|
546
|
-
|
|
541
|
+
if (!Yt(n))
|
|
542
|
+
return C;
|
|
543
|
+
const s = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
544
|
+
return s.push(n), () => {
|
|
545
|
+
const l = s.indexOf(n);
|
|
546
|
+
l !== -1 && s.splice(l, 1);
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
/**
|
|
@@ -551,122 +551,122 @@ class rt {
|
|
|
551
551
|
* @returns {void}
|
|
552
552
|
*/
|
|
553
553
|
$set(t) {
|
|
554
|
-
this.$$set && !
|
|
554
|
+
this.$$set && !ae(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
559
|
-
function
|
|
560
|
-
|
|
557
|
+
const xe = "4";
|
|
558
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xe);
|
|
559
|
+
function je(e) {
|
|
560
|
+
St(e, "svelte-1nq6lsq", ".login-btn.svelte-1nq6lsq.svelte-1nq6lsq,.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.3s ease;border:none;outline:none}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq{width:120px;height:40px;border-radius:5px;background-color:#007bff;color:white;font-size:16px;font-weight:bold}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq:hover{background-color:#0056b3}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq:focus,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq:focus{outline:2px solid #0056b3;outline-offset:4px}.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq{width:50px;height:50px;border-radius:50%}.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq{background-color:#00bfff;animation:svelte-1nq6lsq-pulse 1s infinite ease-in-out}.avatar-btn.svelte-1nq6lsq img.svelte-1nq6lsq{width:100%;height:100%;object-fit:cover;border-radius:50%}@keyframes svelte-1nq6lsq-pulse{0%{opacity:1}50%{opacity:0.5}100%{opacity:1}}");
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
let t, n,
|
|
562
|
+
function ye(e) {
|
|
563
|
+
let t, n, s;
|
|
564
564
|
return {
|
|
565
565
|
c() {
|
|
566
|
-
t =
|
|
566
|
+
t = d("button"), t.textContent = "Login", i(t, "class", "login-btn svelte-1nq6lsq"), i(t, "aria-label", "Log in");
|
|
567
567
|
},
|
|
568
|
-
m(
|
|
569
|
-
|
|
568
|
+
m(l, o) {
|
|
569
|
+
z(l, t, o), n || (s = P(
|
|
570
570
|
t,
|
|
571
571
|
"click",
|
|
572
572
|
/*login*/
|
|
573
573
|
e[2]
|
|
574
574
|
), n = !0);
|
|
575
575
|
},
|
|
576
|
-
p:
|
|
577
|
-
d(
|
|
578
|
-
|
|
576
|
+
p: C,
|
|
577
|
+
d(l) {
|
|
578
|
+
l && q(t), n = !1, s();
|
|
579
579
|
}
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
let t, n,
|
|
582
|
+
function Ce(e) {
|
|
583
|
+
let t, n, s, l, o;
|
|
584
584
|
return {
|
|
585
585
|
c() {
|
|
586
|
-
t =
|
|
586
|
+
t = d("button"), n = d("img"), Qt(n.src, s = Ee) || i(n, "src", s), i(n, "alt", "User Avatar"), i(n, "class", "svelte-1nq6lsq"), i(t, "class", "avatar-btn svelte-1nq6lsq"), i(t, "aria-label", "Log out");
|
|
587
587
|
},
|
|
588
|
-
m(
|
|
589
|
-
|
|
588
|
+
m(r, a) {
|
|
589
|
+
z(r, t, a), c(t, n), l || (o = P(
|
|
590
590
|
t,
|
|
591
591
|
"click",
|
|
592
592
|
/*logout*/
|
|
593
593
|
e[3]
|
|
594
|
-
),
|
|
594
|
+
), l = !0);
|
|
595
595
|
},
|
|
596
|
-
p:
|
|
597
|
-
d(
|
|
598
|
-
|
|
596
|
+
p: C,
|
|
597
|
+
d(r) {
|
|
598
|
+
r && q(t), l = !1, o();
|
|
599
599
|
}
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function qe(e) {
|
|
603
603
|
let t;
|
|
604
604
|
return {
|
|
605
605
|
c() {
|
|
606
|
-
t =
|
|
606
|
+
t = d("button"), t.innerHTML = "", i(t, "class", "loading-btn svelte-1nq6lsq"), i(t, "aria-busy", "true"), i(t, "aria-label", "Logging in");
|
|
607
607
|
},
|
|
608
|
-
m(n,
|
|
609
|
-
|
|
608
|
+
m(n, s) {
|
|
609
|
+
z(n, t, s);
|
|
610
610
|
},
|
|
611
|
-
p:
|
|
611
|
+
p: C,
|
|
612
612
|
d(n) {
|
|
613
|
-
n &&
|
|
613
|
+
n && q(t);
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function ze(e) {
|
|
618
618
|
let t;
|
|
619
|
-
function n(o,
|
|
619
|
+
function n(o, r) {
|
|
620
620
|
return (
|
|
621
621
|
/*loading*/
|
|
622
|
-
o[0] ?
|
|
622
|
+
o[0] ? qe : (
|
|
623
623
|
/*loggedIn*/
|
|
624
|
-
o[1] ?
|
|
624
|
+
o[1] ? Ce : ye
|
|
625
625
|
)
|
|
626
626
|
);
|
|
627
627
|
}
|
|
628
|
-
let
|
|
628
|
+
let s = n(e), l = s(e);
|
|
629
629
|
return {
|
|
630
630
|
c() {
|
|
631
|
-
|
|
631
|
+
l.c(), t = At();
|
|
632
632
|
},
|
|
633
|
-
m(o,
|
|
634
|
-
|
|
633
|
+
m(o, r) {
|
|
634
|
+
l.m(o, r), z(o, t, r);
|
|
635
635
|
},
|
|
636
|
-
p(o, [
|
|
637
|
-
|
|
636
|
+
p(o, [r]) {
|
|
637
|
+
s === (s = n(o)) && l ? l.p(o, r) : (l.d(1), l = s(o), l && (l.c(), l.m(t.parentNode, t)));
|
|
638
638
|
},
|
|
639
|
-
i:
|
|
640
|
-
o:
|
|
639
|
+
i: C,
|
|
640
|
+
o: C,
|
|
641
641
|
d(o) {
|
|
642
|
-
o &&
|
|
642
|
+
o && q(t), l.d(o);
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
-
let
|
|
647
|
-
function
|
|
648
|
-
let
|
|
646
|
+
let Ee = "https://via.placeholder.com/50";
|
|
647
|
+
function Le(e, t, n) {
|
|
648
|
+
let s = !1, l = !1;
|
|
649
649
|
const o = async () => {
|
|
650
|
-
n(0,
|
|
651
|
-
},
|
|
652
|
-
n(1,
|
|
650
|
+
n(0, s = !0), await new Promise((h) => setTimeout(h, 2e3)), n(0, s = !1), n(1, l = !0);
|
|
651
|
+
}, r = () => {
|
|
652
|
+
n(1, l = !1);
|
|
653
653
|
};
|
|
654
|
-
return
|
|
654
|
+
return l = l, [s, l, o, r];
|
|
655
655
|
}
|
|
656
|
-
class
|
|
656
|
+
class se extends Y {
|
|
657
657
|
constructor(t) {
|
|
658
|
-
super(),
|
|
658
|
+
super(), J(this, t, Le, ze, U, {}, je);
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
customElements.define("sesamy-login",
|
|
662
|
-
const
|
|
661
|
+
customElements.define("sesamy-login", Ct(se, {}, [], [], !0));
|
|
662
|
+
const on = se;
|
|
663
663
|
/**
|
|
664
664
|
* @license lucide-svelte v0.445.0 - ISC
|
|
665
665
|
*
|
|
666
666
|
* This source code is licensed under the ISC license.
|
|
667
667
|
* See the LICENSE file in the root directory of this source tree.
|
|
668
668
|
*/
|
|
669
|
-
const
|
|
669
|
+
const Wt = {
|
|
670
670
|
xmlns: "http://www.w3.org/2000/svg",
|
|
671
671
|
width: 24,
|
|
672
672
|
height: 24,
|
|
@@ -677,87 +677,87 @@ const St = {
|
|
|
677
677
|
"stroke-linecap": "round",
|
|
678
678
|
"stroke-linejoin": "round"
|
|
679
679
|
};
|
|
680
|
-
function
|
|
681
|
-
const
|
|
682
|
-
return
|
|
680
|
+
function Vt(e, t, n) {
|
|
681
|
+
const s = e.slice();
|
|
682
|
+
return s[11] = t[n][0], s[12] = t[n][1], s;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function zt(e) {
|
|
685
685
|
let t, n = [
|
|
686
686
|
/*attrs*/
|
|
687
687
|
e[12]
|
|
688
|
-
],
|
|
689
|
-
for (let
|
|
690
|
-
|
|
688
|
+
], s = {};
|
|
689
|
+
for (let l = 0; l < n.length; l += 1)
|
|
690
|
+
s = X(s, n[l]);
|
|
691
691
|
return {
|
|
692
692
|
c() {
|
|
693
|
-
t =
|
|
693
|
+
t = K(
|
|
694
694
|
/*tag*/
|
|
695
695
|
e[11]
|
|
696
|
-
),
|
|
696
|
+
), yt(t, s);
|
|
697
697
|
},
|
|
698
|
-
m(
|
|
699
|
-
|
|
698
|
+
m(l, o) {
|
|
699
|
+
z(l, t, o);
|
|
700
700
|
},
|
|
701
|
-
p(
|
|
702
|
-
|
|
701
|
+
p(l, o) {
|
|
702
|
+
yt(t, s = Pt(n, [o & /*iconNode*/
|
|
703
703
|
32 && /*attrs*/
|
|
704
|
-
|
|
704
|
+
l[12]]));
|
|
705
705
|
},
|
|
706
|
-
d(
|
|
707
|
-
|
|
706
|
+
d(l) {
|
|
707
|
+
l && q(t);
|
|
708
708
|
}
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function It(e) {
|
|
712
712
|
let t = (
|
|
713
713
|
/*tag*/
|
|
714
714
|
e[11]
|
|
715
|
-
), n,
|
|
715
|
+
), n, s = (
|
|
716
716
|
/*tag*/
|
|
717
|
-
e[11] &&
|
|
717
|
+
e[11] && zt(e)
|
|
718
718
|
);
|
|
719
719
|
return {
|
|
720
720
|
c() {
|
|
721
|
-
|
|
721
|
+
s && s.c(), n = At();
|
|
722
722
|
},
|
|
723
|
-
m(
|
|
724
|
-
|
|
723
|
+
m(l, o) {
|
|
724
|
+
s && s.m(l, o), z(l, n, o);
|
|
725
725
|
},
|
|
726
|
-
p(
|
|
726
|
+
p(l, o) {
|
|
727
727
|
/*tag*/
|
|
728
|
-
|
|
728
|
+
l[11] ? t ? U(
|
|
729
729
|
t,
|
|
730
730
|
/*tag*/
|
|
731
|
-
|
|
732
|
-
) ? (
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
731
|
+
l[11]
|
|
732
|
+
) ? (s.d(1), s = zt(l), t = /*tag*/
|
|
733
|
+
l[11], s.c(), s.m(n.parentNode, n)) : s.p(l, o) : (s = zt(l), t = /*tag*/
|
|
734
|
+
l[11], s.c(), s.m(n.parentNode, n)) : t && (s.d(1), s = null, t = /*tag*/
|
|
735
|
+
l[11]);
|
|
736
736
|
},
|
|
737
|
-
d(
|
|
738
|
-
|
|
737
|
+
d(l) {
|
|
738
|
+
l && q(n), s && s.d(l);
|
|
739
739
|
}
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
let t, n,
|
|
742
|
+
function Ne(e) {
|
|
743
|
+
let t, n, s, l, o, r = ct(
|
|
744
744
|
/*iconNode*/
|
|
745
745
|
e[5]
|
|
746
|
-
),
|
|
747
|
-
for (let
|
|
748
|
-
|
|
749
|
-
const
|
|
746
|
+
), a = [];
|
|
747
|
+
for (let u = 0; u < r.length; u += 1)
|
|
748
|
+
a[u] = It(Vt(e, r, u));
|
|
749
|
+
const h = (
|
|
750
750
|
/*#slots*/
|
|
751
751
|
e[10].default
|
|
752
|
-
),
|
|
753
|
-
|
|
752
|
+
), p = $t(
|
|
753
|
+
h,
|
|
754
754
|
e,
|
|
755
755
|
/*$$scope*/
|
|
756
756
|
e[9],
|
|
757
757
|
null
|
|
758
758
|
);
|
|
759
|
-
let
|
|
760
|
-
|
|
759
|
+
let w = [
|
|
760
|
+
Wt,
|
|
761
761
|
/*$$restProps*/
|
|
762
762
|
e[7],
|
|
763
763
|
{ width: (
|
|
@@ -773,7 +773,7 @@ function Ce(e) {
|
|
|
773
773
|
e[1]
|
|
774
774
|
) },
|
|
775
775
|
{
|
|
776
|
-
"stroke-width":
|
|
776
|
+
"stroke-width": s = /*absoluteStrokeWidth*/
|
|
777
777
|
e[4] ? Number(
|
|
778
778
|
/*strokeWidth*/
|
|
779
779
|
e[3]
|
|
@@ -786,7 +786,7 @@ function Ce(e) {
|
|
|
786
786
|
)
|
|
787
787
|
},
|
|
788
788
|
{
|
|
789
|
-
class:
|
|
789
|
+
class: l = /*mergeClasses*/
|
|
790
790
|
e[6](
|
|
791
791
|
"lucide-icon",
|
|
792
792
|
"lucide",
|
|
@@ -798,134 +798,134 @@ function Ce(e) {
|
|
|
798
798
|
)
|
|
799
799
|
}
|
|
800
800
|
], _ = {};
|
|
801
|
-
for (let
|
|
802
|
-
_ =
|
|
801
|
+
for (let u = 0; u < w.length; u += 1)
|
|
802
|
+
_ = X(_, w[u]);
|
|
803
803
|
return {
|
|
804
804
|
c() {
|
|
805
|
-
t =
|
|
806
|
-
for (let
|
|
807
|
-
|
|
808
|
-
n =
|
|
805
|
+
t = K("svg");
|
|
806
|
+
for (let u = 0; u < a.length; u += 1)
|
|
807
|
+
a[u].c();
|
|
808
|
+
n = At(), p && p.c(), yt(t, _);
|
|
809
809
|
},
|
|
810
|
-
m(
|
|
811
|
-
|
|
812
|
-
for (let
|
|
813
|
-
|
|
814
|
-
|
|
810
|
+
m(u, $) {
|
|
811
|
+
z(u, t, $);
|
|
812
|
+
for (let g = 0; g < a.length; g += 1)
|
|
813
|
+
a[g] && a[g].m(t, null);
|
|
814
|
+
c(t, n), p && p.m(t, null), o = !0;
|
|
815
815
|
},
|
|
816
|
-
p(
|
|
817
|
-
if (
|
|
816
|
+
p(u, [$]) {
|
|
817
|
+
if ($ & /*iconNode*/
|
|
818
818
|
32) {
|
|
819
|
-
|
|
819
|
+
r = ct(
|
|
820
820
|
/*iconNode*/
|
|
821
|
-
|
|
821
|
+
u[5]
|
|
822
822
|
);
|
|
823
|
-
let
|
|
824
|
-
for (
|
|
825
|
-
const
|
|
826
|
-
|
|
823
|
+
let g;
|
|
824
|
+
for (g = 0; g < r.length; g += 1) {
|
|
825
|
+
const E = Vt(u, r, g);
|
|
826
|
+
a[g] ? a[g].p(E, $) : (a[g] = It(E), a[g].c(), a[g].m(t, n));
|
|
827
827
|
}
|
|
828
|
-
for (;
|
|
829
|
-
|
|
830
|
-
|
|
828
|
+
for (; g < a.length; g += 1)
|
|
829
|
+
a[g].d(1);
|
|
830
|
+
a.length = r.length;
|
|
831
831
|
}
|
|
832
|
-
|
|
833
|
-
512) &&
|
|
832
|
+
p && p.p && (!o || $ & /*$$scope*/
|
|
833
|
+
512) && kt(
|
|
834
|
+
p,
|
|
834
835
|
h,
|
|
835
|
-
|
|
836
|
-
c,
|
|
836
|
+
u,
|
|
837
837
|
/*$$scope*/
|
|
838
|
-
|
|
839
|
-
o ?
|
|
840
|
-
|
|
838
|
+
u[9],
|
|
839
|
+
o ? wt(
|
|
840
|
+
h,
|
|
841
841
|
/*$$scope*/
|
|
842
|
-
|
|
843
|
-
|
|
842
|
+
u[9],
|
|
843
|
+
$,
|
|
844
844
|
null
|
|
845
|
-
) :
|
|
845
|
+
) : xt(
|
|
846
846
|
/*$$scope*/
|
|
847
|
-
|
|
847
|
+
u[9]
|
|
848
848
|
),
|
|
849
849
|
null
|
|
850
|
-
),
|
|
851
|
-
|
|
852
|
-
|
|
850
|
+
), yt(t, _ = Pt(w, [
|
|
851
|
+
Wt,
|
|
852
|
+
$ & /*$$restProps*/
|
|
853
853
|
128 && /*$$restProps*/
|
|
854
|
-
|
|
855
|
-
(!o ||
|
|
854
|
+
u[7],
|
|
855
|
+
(!o || $ & /*size*/
|
|
856
856
|
4) && { width: (
|
|
857
857
|
/*size*/
|
|
858
|
-
|
|
858
|
+
u[2]
|
|
859
859
|
) },
|
|
860
|
-
(!o ||
|
|
860
|
+
(!o || $ & /*size*/
|
|
861
861
|
4) && { height: (
|
|
862
862
|
/*size*/
|
|
863
|
-
|
|
863
|
+
u[2]
|
|
864
864
|
) },
|
|
865
|
-
(!o ||
|
|
865
|
+
(!o || $ & /*color*/
|
|
866
866
|
2) && { stroke: (
|
|
867
867
|
/*color*/
|
|
868
|
-
|
|
868
|
+
u[1]
|
|
869
869
|
) },
|
|
870
|
-
(!o ||
|
|
871
|
-
28 &&
|
|
872
|
-
|
|
870
|
+
(!o || $ & /*absoluteStrokeWidth, strokeWidth, size*/
|
|
871
|
+
28 && s !== (s = /*absoluteStrokeWidth*/
|
|
872
|
+
u[4] ? Number(
|
|
873
873
|
/*strokeWidth*/
|
|
874
|
-
|
|
874
|
+
u[3]
|
|
875
875
|
) * 24 / Number(
|
|
876
876
|
/*size*/
|
|
877
|
-
|
|
877
|
+
u[2]
|
|
878
878
|
) : (
|
|
879
879
|
/*strokeWidth*/
|
|
880
|
-
|
|
881
|
-
))) && { "stroke-width":
|
|
882
|
-
(!o ||
|
|
883
|
-
257 &&
|
|
884
|
-
|
|
880
|
+
u[3]
|
|
881
|
+
))) && { "stroke-width": s },
|
|
882
|
+
(!o || $ & /*name, $$props*/
|
|
883
|
+
257 && l !== (l = /*mergeClasses*/
|
|
884
|
+
u[6](
|
|
885
885
|
"lucide-icon",
|
|
886
886
|
"lucide",
|
|
887
887
|
/*name*/
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
u[0] ? `lucide-${/*name*/
|
|
889
|
+
u[0]}` : "",
|
|
890
890
|
/*$$props*/
|
|
891
|
-
|
|
892
|
-
))) && { class:
|
|
891
|
+
u[8].class
|
|
892
|
+
))) && { class: l }
|
|
893
893
|
]));
|
|
894
894
|
},
|
|
895
|
-
i(
|
|
896
|
-
o || (
|
|
895
|
+
i(u) {
|
|
896
|
+
o || (O(p, u), o = !0);
|
|
897
897
|
},
|
|
898
|
-
o(
|
|
899
|
-
|
|
898
|
+
o(u) {
|
|
899
|
+
Z(p, u), o = !1;
|
|
900
900
|
},
|
|
901
|
-
d(
|
|
902
|
-
|
|
901
|
+
d(u) {
|
|
902
|
+
u && q(t), Et(a, u), p && p.d(u);
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
const
|
|
908
|
-
let
|
|
909
|
-
const
|
|
910
|
-
return e.$$set = (
|
|
911
|
-
n(8, t =
|
|
912
|
-
}, t =
|
|
913
|
-
|
|
914
|
-
f,
|
|
906
|
+
function Se(e, t, n) {
|
|
907
|
+
const s = ["name", "color", "size", "strokeWidth", "absoluteStrokeWidth", "iconNode"];
|
|
908
|
+
let l = Ft(t, s), { $$slots: o = {}, $$scope: r } = t, { name: a = void 0 } = t, { color: h = "currentColor" } = t, { size: p = 24 } = t, { strokeWidth: w = 2 } = t, { absoluteStrokeWidth: _ = !1 } = t, { iconNode: u = [] } = t;
|
|
909
|
+
const $ = (...g) => g.filter((E, L, B) => !!E && B.indexOf(E) === L).join(" ");
|
|
910
|
+
return e.$$set = (g) => {
|
|
911
|
+
n(8, t = X(X({}, t), jt(g))), n(7, l = Ft(t, s)), "name" in g && n(0, a = g.name), "color" in g && n(1, h = g.color), "size" in g && n(2, p = g.size), "strokeWidth" in g && n(3, w = g.strokeWidth), "absoluteStrokeWidth" in g && n(4, _ = g.absoluteStrokeWidth), "iconNode" in g && n(5, u = g.iconNode), "$$scope" in g && n(9, r = g.$$scope);
|
|
912
|
+
}, t = jt(t), [
|
|
913
|
+
a,
|
|
915
914
|
h,
|
|
916
|
-
|
|
915
|
+
p,
|
|
916
|
+
w,
|
|
917
917
|
_,
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
918
|
+
u,
|
|
919
|
+
$,
|
|
920
|
+
l,
|
|
921
921
|
t,
|
|
922
|
-
|
|
922
|
+
r,
|
|
923
923
|
o
|
|
924
924
|
];
|
|
925
925
|
}
|
|
926
|
-
class
|
|
926
|
+
class Ae extends Y {
|
|
927
927
|
constructor(t) {
|
|
928
|
-
super(),
|
|
928
|
+
super(), J(this, t, Se, Ne, U, {
|
|
929
929
|
name: 0,
|
|
930
930
|
color: 1,
|
|
931
931
|
size: 2,
|
|
@@ -935,12 +935,12 @@ class Ee extends rt {
|
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function Me(e) {
|
|
939
939
|
let t;
|
|
940
940
|
const n = (
|
|
941
941
|
/*#slots*/
|
|
942
942
|
e[2].default
|
|
943
|
-
),
|
|
943
|
+
), s = $t(
|
|
944
944
|
n,
|
|
945
945
|
e,
|
|
946
946
|
/*$$scope*/
|
|
@@ -949,46 +949,46 @@ function Ne(e) {
|
|
|
949
949
|
);
|
|
950
950
|
return {
|
|
951
951
|
c() {
|
|
952
|
-
|
|
952
|
+
s && s.c();
|
|
953
953
|
},
|
|
954
|
-
m(
|
|
955
|
-
|
|
954
|
+
m(l, o) {
|
|
955
|
+
s && s.m(l, o), t = !0;
|
|
956
956
|
},
|
|
957
|
-
p(
|
|
958
|
-
|
|
959
|
-
8) &&
|
|
960
|
-
l,
|
|
961
|
-
n,
|
|
957
|
+
p(l, o) {
|
|
958
|
+
s && s.p && (!t || o & /*$$scope*/
|
|
959
|
+
8) && kt(
|
|
962
960
|
s,
|
|
961
|
+
n,
|
|
962
|
+
l,
|
|
963
963
|
/*$$scope*/
|
|
964
|
-
|
|
965
|
-
t ?
|
|
964
|
+
l[3],
|
|
965
|
+
t ? wt(
|
|
966
966
|
n,
|
|
967
967
|
/*$$scope*/
|
|
968
|
-
|
|
968
|
+
l[3],
|
|
969
969
|
o,
|
|
970
970
|
null
|
|
971
|
-
) :
|
|
971
|
+
) : xt(
|
|
972
972
|
/*$$scope*/
|
|
973
|
-
|
|
973
|
+
l[3]
|
|
974
974
|
),
|
|
975
975
|
null
|
|
976
976
|
);
|
|
977
977
|
},
|
|
978
|
-
i(
|
|
979
|
-
t || (
|
|
978
|
+
i(l) {
|
|
979
|
+
t || (O(s, l), t = !0);
|
|
980
980
|
},
|
|
981
|
-
o(
|
|
982
|
-
|
|
981
|
+
o(l) {
|
|
982
|
+
Z(s, l), t = !1;
|
|
983
983
|
},
|
|
984
|
-
d(
|
|
985
|
-
|
|
984
|
+
d(l) {
|
|
985
|
+
s && s.d(l);
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function Pe(e) {
|
|
990
990
|
let t, n;
|
|
991
|
-
const
|
|
991
|
+
const s = [
|
|
992
992
|
{ name: "circle-check" },
|
|
993
993
|
/*$$props*/
|
|
994
994
|
e[1],
|
|
@@ -997,225 +997,225 @@ function Le(e) {
|
|
|
997
997
|
e[0]
|
|
998
998
|
) }
|
|
999
999
|
];
|
|
1000
|
-
let
|
|
1001
|
-
$$slots: { default: [
|
|
1000
|
+
let l = {
|
|
1001
|
+
$$slots: { default: [Me] },
|
|
1002
1002
|
$$scope: { ctx: e }
|
|
1003
1003
|
};
|
|
1004
|
-
for (let o = 0; o <
|
|
1005
|
-
|
|
1006
|
-
return t = new
|
|
1004
|
+
for (let o = 0; o < s.length; o += 1)
|
|
1005
|
+
l = X(l, s[o]);
|
|
1006
|
+
return t = new Ae({ props: l }), {
|
|
1007
1007
|
c() {
|
|
1008
|
-
|
|
1008
|
+
pt(t.$$.fragment);
|
|
1009
1009
|
},
|
|
1010
|
-
m(o,
|
|
1011
|
-
|
|
1010
|
+
m(o, r) {
|
|
1011
|
+
ut(t, o, r), n = !0;
|
|
1012
1012
|
},
|
|
1013
|
-
p(o, [
|
|
1014
|
-
const
|
|
1015
|
-
3 ?
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
2 &&
|
|
1013
|
+
p(o, [r]) {
|
|
1014
|
+
const a = r & /*$$props, iconNode*/
|
|
1015
|
+
3 ? Pt(s, [
|
|
1016
|
+
s[0],
|
|
1017
|
+
r & /*$$props*/
|
|
1018
|
+
2 && we(
|
|
1019
1019
|
/*$$props*/
|
|
1020
1020
|
o[1]
|
|
1021
1021
|
),
|
|
1022
|
-
|
|
1022
|
+
r & /*iconNode*/
|
|
1023
1023
|
1 && { iconNode: (
|
|
1024
1024
|
/*iconNode*/
|
|
1025
1025
|
o[0]
|
|
1026
1026
|
) }
|
|
1027
1027
|
]) : {};
|
|
1028
|
-
|
|
1029
|
-
8 && (
|
|
1028
|
+
r & /*$$scope*/
|
|
1029
|
+
8 && (a.$$scope = { dirty: r, ctx: o }), t.$set(a);
|
|
1030
1030
|
},
|
|
1031
1031
|
i(o) {
|
|
1032
|
-
n || (
|
|
1032
|
+
n || (O(t.$$.fragment, o), n = !0);
|
|
1033
1033
|
},
|
|
1034
1034
|
o(o) {
|
|
1035
|
-
|
|
1035
|
+
Z(t.$$.fragment, o), n = !1;
|
|
1036
1036
|
},
|
|
1037
1037
|
d(o) {
|
|
1038
|
-
|
|
1038
|
+
ft(t, o);
|
|
1039
1039
|
}
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1043
|
-
let { $$slots:
|
|
1042
|
+
function Be(e, t, n) {
|
|
1043
|
+
let { $$slots: s = {}, $$scope: l } = t;
|
|
1044
1044
|
const o = [
|
|
1045
1045
|
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
1046
1046
|
["path", { d: "m9 12 2 2 4-4" }]
|
|
1047
1047
|
];
|
|
1048
|
-
return e.$$set = (
|
|
1049
|
-
n(1, t =
|
|
1050
|
-
}, t =
|
|
1048
|
+
return e.$$set = (r) => {
|
|
1049
|
+
n(1, t = X(X({}, t), jt(r))), "$$scope" in r && n(3, l = r.$$scope);
|
|
1050
|
+
}, t = jt(t), [o, t, s, l];
|
|
1051
1051
|
}
|
|
1052
|
-
class
|
|
1052
|
+
class Fe extends Y {
|
|
1053
1053
|
constructor(t) {
|
|
1054
|
-
super(),
|
|
1054
|
+
super(), J(this, t, Be, Pe, U, {});
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1058
|
-
const
|
|
1059
|
-
return
|
|
1057
|
+
function Rt(e, t, n) {
|
|
1058
|
+
const s = e.slice();
|
|
1059
|
+
return s[6] = t[n], s;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1062
|
-
const
|
|
1063
|
-
return
|
|
1061
|
+
function Dt(e, t, n) {
|
|
1062
|
+
const s = e.slice();
|
|
1063
|
+
return s[9] = t[n], s;
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
let t, n,
|
|
1067
|
-
return n = new
|
|
1065
|
+
function Gt(e) {
|
|
1066
|
+
let t, n, s, l, o, r;
|
|
1067
|
+
return n = new Fe({
|
|
1068
1068
|
props: { class: "text-green-500 mr-2", size: 20 }
|
|
1069
1069
|
}), {
|
|
1070
1070
|
c() {
|
|
1071
|
-
t =
|
|
1072
|
-
e[9]}`, o = b(),
|
|
1071
|
+
t = d("li"), pt(n.$$.fragment), s = b(), l = d("span"), l.textContent = `${/*feature*/
|
|
1072
|
+
e[9]}`, o = b(), i(t, "class", "flex items-center");
|
|
1073
1073
|
},
|
|
1074
|
-
m(
|
|
1075
|
-
|
|
1074
|
+
m(a, h) {
|
|
1075
|
+
z(a, t, h), ut(n, t, null), c(t, s), c(t, l), c(t, o), r = !0;
|
|
1076
1076
|
},
|
|
1077
|
-
p:
|
|
1078
|
-
i(
|
|
1079
|
-
|
|
1077
|
+
p: C,
|
|
1078
|
+
i(a) {
|
|
1079
|
+
r || (O(n.$$.fragment, a), r = !0);
|
|
1080
1080
|
},
|
|
1081
|
-
o(
|
|
1082
|
-
|
|
1081
|
+
o(a) {
|
|
1082
|
+
Z(n.$$.fragment, a), r = !1;
|
|
1083
1083
|
},
|
|
1084
|
-
d(
|
|
1085
|
-
|
|
1084
|
+
d(a) {
|
|
1085
|
+
a && q(t), ft(n);
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function Kt(e) {
|
|
1090
1090
|
let t, n;
|
|
1091
1091
|
return {
|
|
1092
1092
|
c() {
|
|
1093
|
-
t =
|
|
1093
|
+
t = d("img"), Qt(t.src, n = "/api/placeholder/40/25") || i(t, "src", n), i(
|
|
1094
1094
|
t,
|
|
1095
1095
|
"alt",
|
|
1096
1096
|
/*method*/
|
|
1097
1097
|
e[6]
|
|
1098
|
-
),
|
|
1098
|
+
), i(t, "class", "h-6");
|
|
1099
1099
|
},
|
|
1100
|
-
m(
|
|
1101
|
-
|
|
1100
|
+
m(s, l) {
|
|
1101
|
+
z(s, t, l);
|
|
1102
1102
|
},
|
|
1103
|
-
p:
|
|
1104
|
-
d(
|
|
1105
|
-
|
|
1103
|
+
p: C,
|
|
1104
|
+
d(s) {
|
|
1105
|
+
s && q(t);
|
|
1106
1106
|
}
|
|
1107
1107
|
};
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1110
|
-
let t, n,
|
|
1109
|
+
function He(e) {
|
|
1110
|
+
let t, n, s, l, o, r, a, h, p, w, _, u, $, g, E, L, B, y, k, I, R, T, F, S, A, D, H, Q, M, N, et, st, lt, W = ct(
|
|
1111
1111
|
/*features*/
|
|
1112
1112
|
e[1]
|
|
1113
|
-
),
|
|
1114
|
-
for (let
|
|
1115
|
-
|
|
1116
|
-
const
|
|
1117
|
-
|
|
1113
|
+
), v = [];
|
|
1114
|
+
for (let f = 0; f < W.length; f += 1)
|
|
1115
|
+
v[f] = Gt(Dt(e, W, f));
|
|
1116
|
+
const dt = (f) => Z(v[f], 1, 1, () => {
|
|
1117
|
+
v[f] = null;
|
|
1118
1118
|
});
|
|
1119
|
-
let
|
|
1119
|
+
let G = ct(
|
|
1120
1120
|
/*paymentMethods*/
|
|
1121
1121
|
e[2]
|
|
1122
1122
|
), x = [];
|
|
1123
|
-
for (let
|
|
1124
|
-
x[
|
|
1125
|
-
return
|
|
1123
|
+
for (let f = 0; f < G.length; f += 1)
|
|
1124
|
+
x[f] = Kt(Rt(e, G, f));
|
|
1125
|
+
return et = de(
|
|
1126
1126
|
/*$$binding_groups*/
|
|
1127
1127
|
e[4][0]
|
|
1128
1128
|
), {
|
|
1129
1129
|
c() {
|
|
1130
|
-
t =
|
|
1131
|
-
for (let
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
for (let
|
|
1135
|
-
x[
|
|
1136
|
-
|
|
1130
|
+
t = d("div"), n = d("div"), n.textContent = "Redan prenumerant? Logga in", s = b(), l = d("h1"), l.textContent = "FOKUS", o = b(), r = d("h2"), r.textContent = "Läs Fokus Digital i 6 månader för bara 79 kr!", a = b(), h = d("ul");
|
|
1131
|
+
for (let f = 0; f < v.length; f += 1)
|
|
1132
|
+
v[f].c();
|
|
1133
|
+
p = b(), w = d("div"), _ = d("label"), u = d("input"), $ = b(), g = d("div"), g.innerHTML = '<div class="font-semibold">Fokus Digital i 6 månader för 79kr!</div> <div class="text-sm text-gray-600">Efter kampanjperioden 149 kr/mån. Ingen bindningstid!</div>', E = b(), L = d("div"), L.textContent = "79 SEK/6 mån", B = b(), y = d("label"), k = d("input"), I = b(), R = d("div"), R.innerHTML = '<div class="font-semibold">Fokus Digital i ett år för 995kr</div> <div class="text-sm text-gray-600">Du sparar 793 kr. Prenumerationen förnyas automatiskt årsvis.</div>', T = b(), F = d("div"), F.textContent = "995 SEK/år", S = b(), A = d("button"), A.textContent = "Fortsätt", D = b(), H = d("div"), H.textContent = "Säker SSL-krypterad betalning", Q = b(), M = d("div");
|
|
1134
|
+
for (let f = 0; f < x.length; f += 1)
|
|
1135
|
+
x[f].c();
|
|
1136
|
+
i(n, "class", "text-right text-sm text-red-500 mb-4"), i(l, "class", "text-4xl font-bold text-red-500 mb-4"), i(r, "class", "text-xl font-semibold mb-6"), i(h, "class", "space-y-2 mb-6"), i(u, "type", "radio"), i(u, "name", "subscription"), u.__value = "sixMonths", Ht(u, u.__value), i(u, "class", "mr-3"), i(L, "class", "ml-auto font-semibold"), i(_, "class", "flex items-center p-4 border rounded-lg"), i(k, "type", "radio"), i(k, "name", "subscription"), k.__value = "oneYear", Ht(k, k.__value), i(k, "class", "mr-3"), i(F, "class", "ml-auto font-semibold"), i(y, "class", "flex items-center p-4 border rounded-lg"), i(w, "class", "space-y-4 mb-6"), i(A, "class", "w-full bg-red-500 text-white py-3 rounded-lg font-semibold"), i(H, "class", "text-center text-sm text-gray-600 mt-4"), i(M, "class", "flex justify-center space-x-2 mt-2"), i(t, "class", "max-w-md mx-auto bg-white p-6 rounded-lg shadow-lg"), et.p(u, k);
|
|
1137
1137
|
},
|
|
1138
|
-
m(
|
|
1139
|
-
|
|
1140
|
-
for (let m = 0; m <
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
e[0],
|
|
1144
|
-
e[0],
|
|
1138
|
+
m(f, j) {
|
|
1139
|
+
z(f, t, j), c(t, n), c(t, s), c(t, l), c(t, o), c(t, r), c(t, a), c(t, h);
|
|
1140
|
+
for (let m = 0; m < v.length; m += 1)
|
|
1141
|
+
v[m] && v[m].m(h, null);
|
|
1142
|
+
c(t, p), c(t, w), c(w, _), c(_, u), u.checked = u.__value === /*selectedPlan*/
|
|
1143
|
+
e[0], c(_, $), c(_, g), c(_, E), c(_, L), c(w, B), c(w, y), c(y, k), k.checked = k.__value === /*selectedPlan*/
|
|
1144
|
+
e[0], c(y, I), c(y, R), c(y, T), c(y, F), c(t, S), c(t, A), c(t, D), c(t, H), c(t, Q), c(t, M);
|
|
1145
1145
|
for (let m = 0; m < x.length; m += 1)
|
|
1146
|
-
x[m] && x[m].m(
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1146
|
+
x[m] && x[m].m(M, null);
|
|
1147
|
+
N = !0, st || (lt = [
|
|
1148
|
+
P(
|
|
1149
|
+
u,
|
|
1150
1150
|
"change",
|
|
1151
1151
|
/*input0_change_handler*/
|
|
1152
1152
|
e[3]
|
|
1153
1153
|
),
|
|
1154
|
-
|
|
1155
|
-
|
|
1154
|
+
P(
|
|
1155
|
+
k,
|
|
1156
1156
|
"change",
|
|
1157
1157
|
/*input1_change_handler*/
|
|
1158
1158
|
e[5]
|
|
1159
1159
|
)
|
|
1160
|
-
],
|
|
1160
|
+
], st = !0);
|
|
1161
1161
|
},
|
|
1162
|
-
p(
|
|
1163
|
-
if (
|
|
1162
|
+
p(f, [j]) {
|
|
1163
|
+
if (j & /*features*/
|
|
1164
1164
|
2) {
|
|
1165
|
-
|
|
1165
|
+
W = ct(
|
|
1166
1166
|
/*features*/
|
|
1167
|
-
|
|
1167
|
+
f[1]
|
|
1168
1168
|
);
|
|
1169
1169
|
let m;
|
|
1170
|
-
for (m = 0; m <
|
|
1171
|
-
const
|
|
1172
|
-
|
|
1170
|
+
for (m = 0; m < W.length; m += 1) {
|
|
1171
|
+
const ht = Dt(f, W, m);
|
|
1172
|
+
v[m] ? (v[m].p(ht, j), O(v[m], 1)) : (v[m] = Gt(ht), v[m].c(), O(v[m], 1), v[m].m(h, null));
|
|
1173
1173
|
}
|
|
1174
|
-
for (
|
|
1175
|
-
|
|
1176
|
-
|
|
1174
|
+
for (ve(), m = W.length; m < v.length; m += 1)
|
|
1175
|
+
dt(m);
|
|
1176
|
+
$e();
|
|
1177
1177
|
}
|
|
1178
|
-
if (
|
|
1179
|
-
1 && (
|
|
1180
|
-
|
|
1181
|
-
1 && (
|
|
1182
|
-
|
|
1178
|
+
if (j & /*selectedPlan*/
|
|
1179
|
+
1 && (u.checked = u.__value === /*selectedPlan*/
|
|
1180
|
+
f[0]), j & /*selectedPlan*/
|
|
1181
|
+
1 && (k.checked = k.__value === /*selectedPlan*/
|
|
1182
|
+
f[0]), j & /*paymentMethods*/
|
|
1183
1183
|
4) {
|
|
1184
|
-
|
|
1184
|
+
G = ct(
|
|
1185
1185
|
/*paymentMethods*/
|
|
1186
|
-
|
|
1186
|
+
f[2]
|
|
1187
1187
|
);
|
|
1188
1188
|
let m;
|
|
1189
|
-
for (m = 0; m <
|
|
1190
|
-
const
|
|
1191
|
-
x[m] ? x[m].p(
|
|
1189
|
+
for (m = 0; m < G.length; m += 1) {
|
|
1190
|
+
const ht = Rt(f, G, m);
|
|
1191
|
+
x[m] ? x[m].p(ht, j) : (x[m] = Kt(ht), x[m].c(), x[m].m(M, null));
|
|
1192
1192
|
}
|
|
1193
1193
|
for (; m < x.length; m += 1)
|
|
1194
1194
|
x[m].d(1);
|
|
1195
|
-
x.length =
|
|
1195
|
+
x.length = G.length;
|
|
1196
1196
|
}
|
|
1197
1197
|
},
|
|
1198
|
-
i(
|
|
1199
|
-
if (!
|
|
1200
|
-
for (let
|
|
1201
|
-
|
|
1202
|
-
|
|
1198
|
+
i(f) {
|
|
1199
|
+
if (!N) {
|
|
1200
|
+
for (let j = 0; j < W.length; j += 1)
|
|
1201
|
+
O(v[j]);
|
|
1202
|
+
N = !0;
|
|
1203
1203
|
}
|
|
1204
1204
|
},
|
|
1205
|
-
o(
|
|
1206
|
-
|
|
1207
|
-
for (let
|
|
1208
|
-
|
|
1209
|
-
|
|
1205
|
+
o(f) {
|
|
1206
|
+
v = v.filter(Boolean);
|
|
1207
|
+
for (let j = 0; j < v.length; j += 1)
|
|
1208
|
+
Z(v[j]);
|
|
1209
|
+
N = !1;
|
|
1210
1210
|
},
|
|
1211
|
-
d(
|
|
1212
|
-
|
|
1211
|
+
d(f) {
|
|
1212
|
+
f && q(t), Et(v, f), Et(x, f), et.r(), st = !1, tt(lt);
|
|
1213
1213
|
}
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
1216
|
function Oe(e, t, n) {
|
|
1217
|
-
let
|
|
1218
|
-
const
|
|
1217
|
+
let s = "sixMonths";
|
|
1218
|
+
const l = [
|
|
1219
1219
|
"Allt material på Fokus.se",
|
|
1220
1220
|
"Tillgång till e-tidning",
|
|
1221
1221
|
"Tillgång till våra podcasts",
|
|
@@ -1228,71 +1228,361 @@ function Oe(e, t, n) {
|
|
|
1228
1228
|
"Google Pay",
|
|
1229
1229
|
"Apple Pay",
|
|
1230
1230
|
"Swish"
|
|
1231
|
-
],
|
|
1232
|
-
function
|
|
1233
|
-
|
|
1231
|
+
], r = [[]];
|
|
1232
|
+
function a() {
|
|
1233
|
+
s = this.__value, n(0, s);
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1236
|
-
|
|
1235
|
+
function h() {
|
|
1236
|
+
s = this.__value, n(0, s);
|
|
1237
1237
|
}
|
|
1238
1238
|
return [
|
|
1239
|
-
l,
|
|
1240
1239
|
s,
|
|
1240
|
+
l,
|
|
1241
1241
|
o,
|
|
1242
|
+
a,
|
|
1242
1243
|
r,
|
|
1243
|
-
|
|
1244
|
-
f
|
|
1244
|
+
h
|
|
1245
1245
|
];
|
|
1246
1246
|
}
|
|
1247
|
-
class
|
|
1247
|
+
class le extends Y {
|
|
1248
1248
|
constructor(t) {
|
|
1249
|
-
super(),
|
|
1249
|
+
super(), J(this, t, Oe, He, U, {});
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
|
-
customElements.define("sesamy-paywall",
|
|
1253
|
-
const
|
|
1252
|
+
customElements.define("sesamy-paywall", Ct(le, {}, [], [], !0));
|
|
1253
|
+
const rn = le;
|
|
1254
1254
|
function Te(e) {
|
|
1255
|
-
|
|
1255
|
+
St(e, "svelte-phjzbp", '.registration-wall.svelte-phjzbp{font-family:Arial, sans-serif;max-width:400px;margin:0 auto;padding:20px;text-align:center}h1.svelte-phjzbp{font-size:24px;margin-bottom:10px}p.svelte-phjzbp{font-size:16px;margin-bottom:20px}input.svelte-phjzbp{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px}button.svelte-phjzbp{width:100%;padding:10px;background-color:#000;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:10px}.divider.svelte-phjzbp{margin:20px 0;text-align:center;position:relative}.divider.svelte-phjzbp::before,.divider.svelte-phjzbp::after{content:"";position:absolute;top:50%;width:45%;height:1px;background-color:#ccc}.divider.svelte-phjzbp::before{left:0}.divider.svelte-phjzbp::after{right:0}.social-button.svelte-phjzbp{background-color:#fff;color:#000;border:1px solid #ccc}a.svelte-phjzbp{color:#000;text-decoration:none}.terms.svelte-phjzbp{font-size:12px;margin-bottom:20px}');
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1258
|
-
let t, n,
|
|
1257
|
+
function We(e) {
|
|
1258
|
+
let t, n, s, l, o, r, a, h, p, w, _, u, $, g, E, L, B, y, k, I, R, T, F, S, A, D, H, Q;
|
|
1259
1259
|
return {
|
|
1260
1260
|
c() {
|
|
1261
|
-
t =
|
|
1262
|
-
podcasts and some daily games.`, o = b(),
|
|
1261
|
+
t = d("div"), n = d("h1"), n.textContent = "Create a free account, or log in.", s = b(), l = d("p"), l.textContent = `Gain access to limited free articles, news alerts, select newsletters,
|
|
1262
|
+
podcasts and some daily games.`, o = b(), r = d("label"), r.textContent = "Email Address", a = b(), h = d("input"), p = b(), w = d("button"), w.textContent = "Continue", _ = b(), u = d("div"), u.textContent = "or", $ = b(), g = d("p"), g.innerHTML = `By continuing, you agree to the <a href="#terms" class="svelte-phjzbp">Terms of Sale</a>,
|
|
1263
1263
|
<a href="#service" class="svelte-phjzbp">Terms of Service</a>, and
|
|
1264
|
-
<a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`,
|
|
1264
|
+
<a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`, E = b(), L = d("button"), L.textContent = "Continue with Google", B = b(), y = d("button"), y.textContent = "Continue with Facebook", k = b(), I = d("button"), I.textContent = "Continue with Apple", R = b(), T = d("a"), T.textContent = "Continue with work or school single sign-on >", F = b(), S = d("p"), S.textContent = "Enjoy unlimited access to all of The Times.", A = b(), D = d("button"), D.textContent = "See subscription options", i(n, "class", "svelte-phjzbp"), i(l, "class", "svelte-phjzbp"), i(r, "for", "email"), i(h, "type", "email"), i(h, "id", "email"), i(h, "placeholder", "Enter your email"), i(h, "class", "svelte-phjzbp"), i(w, "class", "svelte-phjzbp"), i(u, "class", "divider svelte-phjzbp"), i(g, "class", "terms svelte-phjzbp"), i(L, "class", "social-button google svelte-phjzbp"), i(y, "class", "social-button facebook svelte-phjzbp"), i(I, "class", "social-button apple svelte-phjzbp"), i(T, "href", "#"), i(T, "class", "svelte-phjzbp"), i(S, "class", "svelte-phjzbp"), i(D, "class", "svelte-phjzbp"), i(t, "class", "registration-wall svelte-phjzbp");
|
|
1265
1265
|
},
|
|
1266
|
-
m(
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
],
|
|
1266
|
+
m(M, N) {
|
|
1267
|
+
z(M, t, N), c(t, n), c(t, s), c(t, l), c(t, o), c(t, r), c(t, a), c(t, h), c(t, p), c(t, w), c(t, _), c(t, u), c(t, $), c(t, g), c(t, E), c(t, L), c(t, B), c(t, y), c(t, k), c(t, I), c(t, R), c(t, T), c(t, F), c(t, S), c(t, A), c(t, D), H || (Q = [
|
|
1268
|
+
P(w, "click", it),
|
|
1269
|
+
P(L, "click", it),
|
|
1270
|
+
P(y, "click", it),
|
|
1271
|
+
P(I, "click", it),
|
|
1272
|
+
P(T, "click", it),
|
|
1273
|
+
P(D, "click", it)
|
|
1274
|
+
], H = !0);
|
|
1275
1275
|
},
|
|
1276
|
-
p:
|
|
1277
|
-
i:
|
|
1278
|
-
o:
|
|
1279
|
-
d(
|
|
1280
|
-
|
|
1276
|
+
p: C,
|
|
1277
|
+
i: C,
|
|
1278
|
+
o: C,
|
|
1279
|
+
d(M) {
|
|
1280
|
+
M && q(t), H = !1, tt(Q);
|
|
1281
1281
|
}
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function it() {
|
|
1285
1285
|
console.log("Button clicked");
|
|
1286
1286
|
}
|
|
1287
|
-
class
|
|
1287
|
+
class oe extends Y {
|
|
1288
|
+
constructor(t) {
|
|
1289
|
+
super(), J(this, t, null, We, U, {}, Te);
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
customElements.define("sesamy-hello", Ct(oe, {}, [], [], !0));
|
|
1293
|
+
const cn = oe;
|
|
1294
|
+
function Ve(e) {
|
|
1295
|
+
let t, n;
|
|
1296
|
+
return {
|
|
1297
|
+
c() {
|
|
1298
|
+
t = K("svg"), n = K("path"), i(n, "d", "M20.4 7.8c-.8.5-1.4 1.1-1.8 1.9-.4.8-.7 1.6-.7 2.5 0 1 .3 2 .9 2.8.6.8 1.3 1.5 2.3 1.9-.4 1.2-.9 2.3-1.6 3.3-1 1.4-2 2.8-3.6 2.8s-2-.9-3.8-.9c-1.8 0-2.4.9-3.9.9s-2.5-1.3-3.6-2.9c-1.5-2.3-2.4-4.9-2.4-7.6C2 8 4.9 5.6 7.9 5.6c1.5 0 2.8 1 3.8 1 .9 0 2.4-1.1 4.1-1.1.9 0 1.8.2 2.6.6.8.4 1.5 1 2 1.7zm-5.5-4.1c.8-.9 1.2-2 1.2-3.2V0c-1.3.1-2.6.8-3.4 1.7-.8.9-1.2 2-1.3 3.1v.4h.3c.6 0 1.2-.2 1.8-.5.6-.2 1-.6 1.4-1z"), i(n, "fill", "#000"), i(t, "xmlns", "http://www.w3.org/2000/svg"), i(
|
|
1299
|
+
t,
|
|
1300
|
+
"width",
|
|
1301
|
+
/*width*/
|
|
1302
|
+
e[0]
|
|
1303
|
+
), i(
|
|
1304
|
+
t,
|
|
1305
|
+
"height",
|
|
1306
|
+
/*height*/
|
|
1307
|
+
e[1]
|
|
1308
|
+
), i(t, "viewBox", "0 0 22.773 28.025");
|
|
1309
|
+
},
|
|
1310
|
+
m(s, l) {
|
|
1311
|
+
z(s, t, l), c(t, n);
|
|
1312
|
+
},
|
|
1313
|
+
p(s, [l]) {
|
|
1314
|
+
l & /*width*/
|
|
1315
|
+
1 && i(
|
|
1316
|
+
t,
|
|
1317
|
+
"width",
|
|
1318
|
+
/*width*/
|
|
1319
|
+
s[0]
|
|
1320
|
+
), l & /*height*/
|
|
1321
|
+
2 && i(
|
|
1322
|
+
t,
|
|
1323
|
+
"height",
|
|
1324
|
+
/*height*/
|
|
1325
|
+
s[1]
|
|
1326
|
+
);
|
|
1327
|
+
},
|
|
1328
|
+
i: C,
|
|
1329
|
+
o: C,
|
|
1330
|
+
d(s) {
|
|
1331
|
+
s && q(t);
|
|
1332
|
+
}
|
|
1333
|
+
};
|
|
1334
|
+
}
|
|
1335
|
+
function Ie(e, t, n) {
|
|
1336
|
+
let { width: s = "18" } = t, { height: l = "18" } = t;
|
|
1337
|
+
return e.$$set = (o) => {
|
|
1338
|
+
"width" in o && n(0, s = o.width), "height" in o && n(1, l = o.height);
|
|
1339
|
+
}, [s, l];
|
|
1340
|
+
}
|
|
1341
|
+
class Re extends Y {
|
|
1342
|
+
constructor(t) {
|
|
1343
|
+
super(), J(this, t, Ie, Ve, U, { width: 0, height: 1 });
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
function De(e) {
|
|
1347
|
+
let t, n;
|
|
1348
|
+
return {
|
|
1349
|
+
c() {
|
|
1350
|
+
t = K("svg"), n = K("path"), i(n, "d", "M12.8 9h-2.5v9H6.6V9H4.9V5.8h1.8v-2C6.6 2.3 7.3 0 10.4 0h2.8v3.1h-2c-.3 0-.8.2-.8.9v1.9h2.8L12.8 9z"), i(n, "fill", "#1877F2"), i(t, "xmlns", "http://www.w3.org/2000/svg"), i(
|
|
1351
|
+
t,
|
|
1352
|
+
"width",
|
|
1353
|
+
/*width*/
|
|
1354
|
+
e[0]
|
|
1355
|
+
), i(
|
|
1356
|
+
t,
|
|
1357
|
+
"height",
|
|
1358
|
+
/*height*/
|
|
1359
|
+
e[1]
|
|
1360
|
+
), i(t, "viewBox", "0 0 18 18");
|
|
1361
|
+
},
|
|
1362
|
+
m(s, l) {
|
|
1363
|
+
z(s, t, l), c(t, n);
|
|
1364
|
+
},
|
|
1365
|
+
p(s, [l]) {
|
|
1366
|
+
l & /*width*/
|
|
1367
|
+
1 && i(
|
|
1368
|
+
t,
|
|
1369
|
+
"width",
|
|
1370
|
+
/*width*/
|
|
1371
|
+
s[0]
|
|
1372
|
+
), l & /*height*/
|
|
1373
|
+
2 && i(
|
|
1374
|
+
t,
|
|
1375
|
+
"height",
|
|
1376
|
+
/*height*/
|
|
1377
|
+
s[1]
|
|
1378
|
+
);
|
|
1379
|
+
},
|
|
1380
|
+
i: C,
|
|
1381
|
+
o: C,
|
|
1382
|
+
d(s) {
|
|
1383
|
+
s && q(t);
|
|
1384
|
+
}
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
function Ge(e, t, n) {
|
|
1388
|
+
let { width: s = "18" } = t, { height: l = "18" } = t;
|
|
1389
|
+
return e.$$set = (o) => {
|
|
1390
|
+
"width" in o && n(0, s = o.width), "height" in o && n(1, l = o.height);
|
|
1391
|
+
}, [s, l];
|
|
1392
|
+
}
|
|
1393
|
+
class Ke extends Y {
|
|
1394
|
+
constructor(t) {
|
|
1395
|
+
super(), J(this, t, Ge, De, U, { width: 0, height: 1 });
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
function Ze(e) {
|
|
1399
|
+
let t, n, s, l, o;
|
|
1400
|
+
return {
|
|
1401
|
+
c() {
|
|
1402
|
+
t = K("svg"), n = K("path"), s = K("path"), l = K("path"), o = K("path"), i(n, "d", "M44.1035 23.0123C44.1054 21.4791 43.9758 19.9486 43.716 18.4375H22.498V27.1028H34.6507C34.4021 28.4868 33.8757 29.8061 33.1034 30.9812C32.3311 32.1562 31.3289 33.1628 30.1571 33.9401V39.5649H37.41C41.6567 35.6494 44.1035 29.859 44.1035 23.0123Z"), i(n, "fill", "#4285F4"), i(s, "d", "M22.4982 44.9997C28.5698 44.9997 33.6821 43.0061 37.4101 39.5687L30.1573 33.9439C28.1386 35.3126 25.5387 36.0938 22.4982 36.0938C16.6296 36.0938 11.6485 32.1377 9.86736 26.8066H2.39575V32.6033C4.26839 36.3297 7.13989 39.4622 10.6896 41.6512C14.2394 43.8402 18.3277 44.9995 22.4982 44.9997Z"), i(s, "fill", "#34A853"), i(l, "d", "M9.86737 26.8073C8.92572 24.0138 8.92572 20.9886 9.86737 18.1951V12.3984H2.39576C0.820432 15.5332 0 18.9929 0 22.5012C0 26.0095 0.820432 29.4692 2.39576 32.604L9.86737 26.8073Z"), i(l, "fill", "#FBBC04"), i(o, "d", "M22.4982 8.90741C25.7068 8.85499 28.8071 10.0673 31.1291 12.2823L37.5507 5.86064C33.4788 2.03602 28.0843 -0.0637686 22.4982 0.00147616C18.3277 0.00166623 14.2394 1.16098 10.6896 3.34999C7.13989 5.539 4.26839 8.67155 2.39575 12.3979L9.86736 18.1946C11.6485 12.8635 16.6296 8.90741 22.4982 8.90741Z"), i(o, "fill", "#EA4335"), i(
|
|
1403
|
+
t,
|
|
1404
|
+
"width",
|
|
1405
|
+
/*width*/
|
|
1406
|
+
e[0]
|
|
1407
|
+
), i(
|
|
1408
|
+
t,
|
|
1409
|
+
"height",
|
|
1410
|
+
/*height*/
|
|
1411
|
+
e[1]
|
|
1412
|
+
), i(t, "viewBox", "0 0 45 45"), i(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
1413
|
+
},
|
|
1414
|
+
m(r, a) {
|
|
1415
|
+
z(r, t, a), c(t, n), c(t, s), c(t, l), c(t, o);
|
|
1416
|
+
},
|
|
1417
|
+
p(r, [a]) {
|
|
1418
|
+
a & /*width*/
|
|
1419
|
+
1 && i(
|
|
1420
|
+
t,
|
|
1421
|
+
"width",
|
|
1422
|
+
/*width*/
|
|
1423
|
+
r[0]
|
|
1424
|
+
), a & /*height*/
|
|
1425
|
+
2 && i(
|
|
1426
|
+
t,
|
|
1427
|
+
"height",
|
|
1428
|
+
/*height*/
|
|
1429
|
+
r[1]
|
|
1430
|
+
);
|
|
1431
|
+
},
|
|
1432
|
+
i: C,
|
|
1433
|
+
o: C,
|
|
1434
|
+
d(r) {
|
|
1435
|
+
r && q(t);
|
|
1436
|
+
}
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
function Ue(e, t, n) {
|
|
1440
|
+
let { width: s = "18" } = t, { height: l = "18" } = t;
|
|
1441
|
+
return e.$$set = (o) => {
|
|
1442
|
+
"width" in o && n(0, s = o.width), "height" in o && n(1, l = o.height);
|
|
1443
|
+
}, [s, l];
|
|
1444
|
+
}
|
|
1445
|
+
class Je extends Y {
|
|
1446
|
+
constructor(t) {
|
|
1447
|
+
super(), J(this, t, Ue, Ze, U, { width: 0, height: 1 });
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
function Ye(e) {
|
|
1451
|
+
St(e, "svelte-592fsj", '.registration-wall.svelte-592fsj{font-family:Arial, sans-serif;max-width:500px;margin:0 auto;padding:20px;text-align:center;background-color:rgb(248, 248, 245);border:solid 1px #e9e9da;border-radius:8px}h1.svelte-592fsj{font-size:24px;margin-bottom:10px}p.svelte-592fsj{font-size:14px;margin-bottom:20px;color:#555}.form-container.svelte-592fsj{width:100%}input.svelte-592fsj{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.continue-button.svelte-592fsj{width:100%;padding:10px;background-color:#4285f4;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:10px;font-size:14px}.divider.svelte-592fsj{margin:15px 0;text-align:center;position:relative;color:#777}.divider.svelte-592fsj::before,.divider.svelte-592fsj::after{content:"";position:absolute;top:50%;width:45%;height:1px;background-color:#ccc}.divider.svelte-592fsj::before{left:0}.divider.svelte-592fsj::after{right:0}.social-button.svelte-592fsj{width:100%;padding:10px;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;cursor:pointer;margin-bottom:10px;font-size:14px;display:flex;justify-content:center}.button-content.svelte-592fsj{display:flex;align-items:center;justify-content:center}.button-content.svelte-592fsj svg{margin-right:8px}.terms.svelte-592fsj{font-size:12px;margin-top:20px;color:#777}a.svelte-592fsj{color:#4285f4;text-decoration:none}');
|
|
1452
|
+
}
|
|
1453
|
+
const Qe = (e) => ({}), Zt = (e) => ({}), Xe = (e) => ({}), Ut = (e) => ({});
|
|
1454
|
+
function tn(e) {
|
|
1455
|
+
let t;
|
|
1456
|
+
return {
|
|
1457
|
+
c() {
|
|
1458
|
+
t = d("h1"), t.textContent = "Skapa ett gratis konto eller logga in", i(t, "class", "svelte-592fsj");
|
|
1459
|
+
},
|
|
1460
|
+
m(n, s) {
|
|
1461
|
+
z(n, t, s);
|
|
1462
|
+
},
|
|
1463
|
+
p: C,
|
|
1464
|
+
d(n) {
|
|
1465
|
+
n && q(t);
|
|
1466
|
+
}
|
|
1467
|
+
};
|
|
1468
|
+
}
|
|
1469
|
+
function en(e) {
|
|
1470
|
+
let t;
|
|
1471
|
+
return {
|
|
1472
|
+
c() {
|
|
1473
|
+
t = d("p"), t.textContent = "Få tillgång till gratis artiklar och nyhetsbrev.", i(t, "class", "svelte-592fsj");
|
|
1474
|
+
},
|
|
1475
|
+
m(n, s) {
|
|
1476
|
+
z(n, t, s);
|
|
1477
|
+
},
|
|
1478
|
+
p: C,
|
|
1479
|
+
d(n) {
|
|
1480
|
+
n && q(t);
|
|
1481
|
+
}
|
|
1482
|
+
};
|
|
1483
|
+
}
|
|
1484
|
+
function nn(e) {
|
|
1485
|
+
let t, n, s, l, o, r, a, h, p, w, _, u, $, g, E, L, B, y, k, I, R, T, F, S, A, D, H, Q, M, N, et, st;
|
|
1486
|
+
const lt = (
|
|
1487
|
+
/*#slots*/
|
|
1488
|
+
e[1].title
|
|
1489
|
+
), W = $t(
|
|
1490
|
+
lt,
|
|
1491
|
+
e,
|
|
1492
|
+
/*$$scope*/
|
|
1493
|
+
e[0],
|
|
1494
|
+
Ut
|
|
1495
|
+
), v = W || tn(), dt = (
|
|
1496
|
+
/*#slots*/
|
|
1497
|
+
e[1].description
|
|
1498
|
+
), G = $t(
|
|
1499
|
+
dt,
|
|
1500
|
+
e,
|
|
1501
|
+
/*$$scope*/
|
|
1502
|
+
e[0],
|
|
1503
|
+
Zt
|
|
1504
|
+
), x = G || en();
|
|
1505
|
+
return $ = new Je({ props: { width: "18", height: "18" } }), k = new Ke({ props: { width: "18", height: "18" } }), A = new Re({ props: { width: "18", height: "18" } }), {
|
|
1506
|
+
c() {
|
|
1507
|
+
t = d("div"), v && v.c(), n = b(), x && x.c(), s = b(), l = d("div"), o = d("input"), r = b(), a = d("button"), a.textContent = "Fortsätt", h = b(), p = d("div"), p.textContent = "eller", w = b(), _ = d("button"), u = d("span"), pt($.$$.fragment), g = b(), E = d("span"), E.textContent = "Fortsätt med Google", L = b(), B = d("button"), y = d("span"), pt(k.$$.fragment), I = b(), R = d("span"), R.textContent = "Fortsätt med Facebook", T = b(), F = d("button"), S = d("span"), pt(A.$$.fragment), D = b(), H = d("span"), H.textContent = "Fortsätt med Apple", Q = b(), M = d("p"), M.innerHTML = 'Genom att logga in godkänner du våra <a href="#terms" class="svelte-592fsj">Vilkor</a>', i(o, "type", "email"), i(o, "id", "email"), i(o, "placeholder", "Skriv in din epost"), i(o, "class", "svelte-592fsj"), i(a, "part", "continueButton"), i(a, "class", "continue-button svelte-592fsj"), i(p, "class", "divider svelte-592fsj"), i(E, "class", "button-text"), i(u, "class", "button-content svelte-592fsj"), i(_, "class", "social-button google svelte-592fsj"), i(R, "class", "button-text"), i(y, "class", "button-content svelte-592fsj"), i(B, "class", "social-button facebook svelte-592fsj"), i(H, "class", "button-text"), i(S, "class", "button-content svelte-592fsj"), i(F, "class", "social-button apple svelte-592fsj"), i(l, "class", "form-container svelte-592fsj"), i(M, "class", "terms svelte-592fsj"), i(t, "class", "registration-wall svelte-592fsj");
|
|
1508
|
+
},
|
|
1509
|
+
m(f, j) {
|
|
1510
|
+
z(f, t, j), v && v.m(t, null), c(t, n), x && x.m(t, null), c(t, s), c(t, l), c(l, o), c(l, r), c(l, a), c(l, h), c(l, p), c(l, w), c(l, _), c(_, u), ut($, u, null), c(u, g), c(u, E), c(l, L), c(l, B), c(B, y), ut(k, y, null), c(y, I), c(y, R), c(l, T), c(l, F), c(F, S), ut(A, S, null), c(S, D), c(S, H), c(t, Q), c(t, M), N = !0, et || (st = [
|
|
1511
|
+
P(a, "click", bt),
|
|
1512
|
+
P(_, "click", bt),
|
|
1513
|
+
P(B, "click", bt),
|
|
1514
|
+
P(F, "click", bt)
|
|
1515
|
+
], et = !0);
|
|
1516
|
+
},
|
|
1517
|
+
p(f, [j]) {
|
|
1518
|
+
W && W.p && (!N || j & /*$$scope*/
|
|
1519
|
+
1) && kt(
|
|
1520
|
+
W,
|
|
1521
|
+
lt,
|
|
1522
|
+
f,
|
|
1523
|
+
/*$$scope*/
|
|
1524
|
+
f[0],
|
|
1525
|
+
N ? wt(
|
|
1526
|
+
lt,
|
|
1527
|
+
/*$$scope*/
|
|
1528
|
+
f[0],
|
|
1529
|
+
j,
|
|
1530
|
+
Xe
|
|
1531
|
+
) : xt(
|
|
1532
|
+
/*$$scope*/
|
|
1533
|
+
f[0]
|
|
1534
|
+
),
|
|
1535
|
+
Ut
|
|
1536
|
+
), G && G.p && (!N || j & /*$$scope*/
|
|
1537
|
+
1) && kt(
|
|
1538
|
+
G,
|
|
1539
|
+
dt,
|
|
1540
|
+
f,
|
|
1541
|
+
/*$$scope*/
|
|
1542
|
+
f[0],
|
|
1543
|
+
N ? wt(
|
|
1544
|
+
dt,
|
|
1545
|
+
/*$$scope*/
|
|
1546
|
+
f[0],
|
|
1547
|
+
j,
|
|
1548
|
+
Qe
|
|
1549
|
+
) : xt(
|
|
1550
|
+
/*$$scope*/
|
|
1551
|
+
f[0]
|
|
1552
|
+
),
|
|
1553
|
+
Zt
|
|
1554
|
+
);
|
|
1555
|
+
},
|
|
1556
|
+
i(f) {
|
|
1557
|
+
N || (O(v, f), O(x, f), O($.$$.fragment, f), O(k.$$.fragment, f), O(A.$$.fragment, f), N = !0);
|
|
1558
|
+
},
|
|
1559
|
+
o(f) {
|
|
1560
|
+
Z(v, f), Z(x, f), Z($.$$.fragment, f), Z(k.$$.fragment, f), Z(A.$$.fragment, f), N = !1;
|
|
1561
|
+
},
|
|
1562
|
+
d(f) {
|
|
1563
|
+
f && q(t), v && v.d(f), x && x.d(f), ft($), ft(k), ft(A), et = !1, tt(st);
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
function bt() {
|
|
1568
|
+
console.log("Button clicked");
|
|
1569
|
+
}
|
|
1570
|
+
function sn(e, t, n) {
|
|
1571
|
+
let { $$slots: s = {}, $$scope: l } = t;
|
|
1572
|
+
return e.$$set = (o) => {
|
|
1573
|
+
"$$scope" in o && n(0, l = o.$$scope);
|
|
1574
|
+
}, [l, s];
|
|
1575
|
+
}
|
|
1576
|
+
class ie extends Y {
|
|
1288
1577
|
constructor(t) {
|
|
1289
|
-
super(),
|
|
1578
|
+
super(), J(this, t, sn, nn, U, {}, Ye);
|
|
1290
1579
|
}
|
|
1291
1580
|
}
|
|
1292
|
-
customElements.define("sesamy-
|
|
1293
|
-
const
|
|
1581
|
+
customElements.define("sesamy-registration-wall", Ct(ie, {}, ["title", "description"], [], !0));
|
|
1582
|
+
const an = ie;
|
|
1294
1583
|
export {
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1584
|
+
cn as Hello,
|
|
1585
|
+
on as Login,
|
|
1586
|
+
rn as Paywall,
|
|
1587
|
+
an as RegistrationWall
|
|
1298
1588
|
};
|