@sesamy/sesamy-components 0.0.6 → 0.0.7
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/README.md +13 -41
- package/dist/lib/sesamy-components.d.ts +1 -1
- package/dist/lib/sesamy-components.es.js +300 -376
- package/dist/lib/sesamy-components.umd.js +4 -4
- package/package.json +1 -1
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var E = (e, t, n) =>
|
|
4
|
-
|
|
5
|
-
function L() {
|
|
1
|
+
var le = Object.defineProperty;
|
|
2
|
+
var se = (e, t, n) => t in e ? le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var E = (e, t, n) => se(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
function j() {
|
|
6
5
|
}
|
|
7
|
-
function
|
|
6
|
+
function W(e, t) {
|
|
8
7
|
for (const n in t) e[n] = t[n];
|
|
9
8
|
return (
|
|
10
9
|
/** @type {T & S} */
|
|
11
10
|
e
|
|
12
11
|
);
|
|
13
12
|
}
|
|
14
|
-
function
|
|
13
|
+
function Wt(e) {
|
|
15
14
|
return e();
|
|
16
15
|
}
|
|
17
16
|
function Ct() {
|
|
18
17
|
return /* @__PURE__ */ Object.create(null);
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
e.forEach(
|
|
19
|
+
function G(e) {
|
|
20
|
+
e.forEach(Wt);
|
|
22
21
|
}
|
|
23
|
-
function
|
|
22
|
+
function Ht(e) {
|
|
24
23
|
return typeof e == "function";
|
|
25
24
|
}
|
|
26
|
-
function
|
|
25
|
+
function nt(e, t) {
|
|
27
26
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
28
27
|
}
|
|
29
|
-
let
|
|
28
|
+
let ct;
|
|
30
29
|
function It(e, t) {
|
|
31
|
-
return e === t ? !0 : (
|
|
30
|
+
return e === t ? !0 : (ct || (ct = document.createElement("a")), ct.href = t, e === ct.href);
|
|
32
31
|
}
|
|
33
32
|
function oe(e) {
|
|
34
33
|
return Object.keys(e).length === 0;
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function Ft(e, t, n, l) {
|
|
37
36
|
if (e) {
|
|
38
37
|
const s = Dt(e, t, n, l);
|
|
39
38
|
return e[0](s);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
function Dt(e, t, n, l) {
|
|
43
|
-
return e[1] && l ?
|
|
42
|
+
return e[1] && l ? W(n.ctx.slice(), e[1](l(t))) : n.ctx;
|
|
44
43
|
}
|
|
45
|
-
function
|
|
44
|
+
function Rt(e, t, n, l) {
|
|
46
45
|
if (e[2] && l) {
|
|
47
46
|
const s = e[2](l(n));
|
|
48
47
|
if (t.dirty === void 0)
|
|
@@ -57,13 +56,13 @@ function Ft(e, t, n, l) {
|
|
|
57
56
|
}
|
|
58
57
|
return t.dirty;
|
|
59
58
|
}
|
|
60
|
-
function
|
|
59
|
+
function Kt(e, t, n, l, s, o) {
|
|
61
60
|
if (s) {
|
|
62
61
|
const i = Dt(t, n, l, o);
|
|
63
62
|
e.p(i, s);
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
function
|
|
65
|
+
function Gt(e) {
|
|
67
66
|
if (e.ctx.length > 32) {
|
|
68
67
|
const t = [], n = e.ctx.length / 32;
|
|
69
68
|
for (let l = 0; l < n; l++)
|
|
@@ -72,7 +71,7 @@ function Kt(e) {
|
|
|
72
71
|
}
|
|
73
72
|
return -1;
|
|
74
73
|
}
|
|
75
|
-
function
|
|
74
|
+
function ft(e) {
|
|
76
75
|
const t = {};
|
|
77
76
|
for (const n in e) n[0] !== "$" && (t[n] = e[n]);
|
|
78
77
|
return t;
|
|
@@ -86,10 +85,10 @@ function zt(e, t) {
|
|
|
86
85
|
function u(e, t) {
|
|
87
86
|
e.appendChild(t);
|
|
88
87
|
}
|
|
89
|
-
function
|
|
88
|
+
function Ut(e, t, n) {
|
|
90
89
|
const l = ie(e);
|
|
91
90
|
if (!l.getElementById(t)) {
|
|
92
|
-
const s =
|
|
91
|
+
const s = g("style");
|
|
93
92
|
s.id = t, s.textContent = n, re(l, s);
|
|
94
93
|
}
|
|
95
94
|
}
|
|
@@ -109,40 +108,40 @@ function re(e, t) {
|
|
|
109
108
|
t
|
|
110
109
|
), t.sheet;
|
|
111
110
|
}
|
|
112
|
-
function
|
|
111
|
+
function N(e, t, n) {
|
|
113
112
|
e.insertBefore(t, n || null);
|
|
114
113
|
}
|
|
115
|
-
function
|
|
114
|
+
function C(e) {
|
|
116
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
116
|
}
|
|
118
117
|
function _t(e, t) {
|
|
119
118
|
for (let n = 0; n < e.length; n += 1)
|
|
120
119
|
e[n] && e[n].d(t);
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function g(e) {
|
|
123
122
|
return document.createElement(e);
|
|
124
123
|
}
|
|
125
|
-
function
|
|
124
|
+
function Vt(e) {
|
|
126
125
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function Jt(e) {
|
|
129
128
|
return document.createTextNode(e);
|
|
130
129
|
}
|
|
131
130
|
function b() {
|
|
132
|
-
return
|
|
131
|
+
return Jt(" ");
|
|
133
132
|
}
|
|
134
133
|
function vt() {
|
|
135
|
-
return
|
|
134
|
+
return Jt("");
|
|
136
135
|
}
|
|
137
|
-
function
|
|
136
|
+
function S(e, t, n, l) {
|
|
138
137
|
return e.addEventListener(t, n, l), () => e.removeEventListener(t, n, l);
|
|
139
138
|
}
|
|
140
|
-
function
|
|
139
|
+
function a(e, t, n) {
|
|
141
140
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
142
141
|
}
|
|
143
|
-
function
|
|
142
|
+
function dt(e, t) {
|
|
144
143
|
for (const n in t)
|
|
145
|
-
|
|
144
|
+
a(e, n, t[n]);
|
|
146
145
|
}
|
|
147
146
|
function ce(e) {
|
|
148
147
|
let t;
|
|
@@ -160,7 +159,7 @@ function ce(e) {
|
|
|
160
159
|
function ue(e) {
|
|
161
160
|
return Array.from(e.childNodes);
|
|
162
161
|
}
|
|
163
|
-
function
|
|
162
|
+
function Et(e, t) {
|
|
164
163
|
e.value = t ?? "";
|
|
165
164
|
}
|
|
166
165
|
function ae(e) {
|
|
@@ -173,81 +172,81 @@ function ae(e) {
|
|
|
173
172
|
), t;
|
|
174
173
|
}
|
|
175
174
|
let kt;
|
|
176
|
-
function
|
|
175
|
+
function ot(e) {
|
|
177
176
|
kt = e;
|
|
178
177
|
}
|
|
179
|
-
const
|
|
180
|
-
let
|
|
178
|
+
const X = [], Nt = [];
|
|
179
|
+
let tt = [];
|
|
181
180
|
const Lt = [], fe = /* @__PURE__ */ Promise.resolve();
|
|
182
181
|
let bt = !1;
|
|
183
182
|
function de() {
|
|
184
|
-
bt || (bt = !0, fe.then(
|
|
183
|
+
bt || (bt = !0, fe.then(Yt));
|
|
185
184
|
}
|
|
186
185
|
function $t(e) {
|
|
187
|
-
|
|
186
|
+
tt.push(e);
|
|
188
187
|
}
|
|
189
|
-
const
|
|
188
|
+
const mt = /* @__PURE__ */ new Set();
|
|
190
189
|
let Y = 0;
|
|
191
|
-
function
|
|
190
|
+
function Yt() {
|
|
192
191
|
if (Y !== 0)
|
|
193
192
|
return;
|
|
194
193
|
const e = kt;
|
|
195
194
|
do {
|
|
196
195
|
try {
|
|
197
|
-
for (; Y <
|
|
198
|
-
const t =
|
|
199
|
-
Y++,
|
|
196
|
+
for (; Y < X.length; ) {
|
|
197
|
+
const t = X[Y];
|
|
198
|
+
Y++, ot(t), he(t.$$);
|
|
200
199
|
}
|
|
201
200
|
} catch (t) {
|
|
202
|
-
throw
|
|
201
|
+
throw X.length = 0, Y = 0, t;
|
|
203
202
|
}
|
|
204
|
-
for (
|
|
205
|
-
for (let t = 0; t <
|
|
206
|
-
const n =
|
|
207
|
-
|
|
203
|
+
for (ot(null), X.length = 0, Y = 0; Nt.length; ) Nt.pop()();
|
|
204
|
+
for (let t = 0; t < tt.length; t += 1) {
|
|
205
|
+
const n = tt[t];
|
|
206
|
+
mt.has(n) || (mt.add(n), n());
|
|
208
207
|
}
|
|
209
|
-
|
|
210
|
-
} while (
|
|
208
|
+
tt.length = 0;
|
|
209
|
+
} while (X.length);
|
|
211
210
|
for (; Lt.length; )
|
|
212
211
|
Lt.pop()();
|
|
213
|
-
bt = !1,
|
|
212
|
+
bt = !1, mt.clear(), ot(e);
|
|
214
213
|
}
|
|
215
214
|
function he(e) {
|
|
216
215
|
if (e.fragment !== null) {
|
|
217
|
-
e.update(),
|
|
216
|
+
e.update(), G(e.before_update);
|
|
218
217
|
const t = e.dirty;
|
|
219
218
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($t);
|
|
220
219
|
}
|
|
221
220
|
}
|
|
222
|
-
function
|
|
221
|
+
function ge(e) {
|
|
223
222
|
const t = [], n = [];
|
|
224
|
-
|
|
223
|
+
tt.forEach((l) => e.indexOf(l) === -1 ? t.push(l) : n.push(l)), n.forEach((l) => l()), tt = t;
|
|
225
224
|
}
|
|
226
|
-
const
|
|
227
|
-
let
|
|
228
|
-
function
|
|
229
|
-
|
|
225
|
+
const ut = /* @__PURE__ */ new Set();
|
|
226
|
+
let K;
|
|
227
|
+
function me() {
|
|
228
|
+
K = {
|
|
230
229
|
r: 0,
|
|
231
230
|
c: [],
|
|
232
|
-
p:
|
|
231
|
+
p: K
|
|
233
232
|
// parent group
|
|
234
233
|
};
|
|
235
234
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
235
|
+
function pe() {
|
|
236
|
+
K.r || G(K.c), K = K.p;
|
|
238
237
|
}
|
|
239
238
|
function B(e, t) {
|
|
240
|
-
e && e.i && (
|
|
239
|
+
e && e.i && (ut.delete(e), e.i(t));
|
|
241
240
|
}
|
|
242
|
-
function
|
|
241
|
+
function et(e, t, n, l) {
|
|
243
242
|
if (e && e.o) {
|
|
244
|
-
if (
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
if (ut.has(e)) return;
|
|
244
|
+
ut.add(e), K.c.push(() => {
|
|
245
|
+
ut.delete(e), l && (n && e.d(1), l());
|
|
247
246
|
}), e.o(t);
|
|
248
247
|
} else l && l();
|
|
249
248
|
}
|
|
250
|
-
function
|
|
249
|
+
function Z(e) {
|
|
251
250
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
252
251
|
}
|
|
253
252
|
function yt(e, t) {
|
|
@@ -256,14 +255,14 @@ function yt(e, t) {
|
|
|
256
255
|
for (; o--; ) {
|
|
257
256
|
const i = e[o], r = t[o];
|
|
258
257
|
if (r) {
|
|
259
|
-
for (const
|
|
260
|
-
|
|
261
|
-
for (const
|
|
262
|
-
s[
|
|
258
|
+
for (const f in i)
|
|
259
|
+
f in r || (l[f] = 1);
|
|
260
|
+
for (const f in r)
|
|
261
|
+
s[f] || (n[f] = r[f], s[f] = 1);
|
|
263
262
|
e[o] = r;
|
|
264
263
|
} else
|
|
265
|
-
for (const
|
|
266
|
-
s[
|
|
264
|
+
for (const f in i)
|
|
265
|
+
s[f] = 1;
|
|
267
266
|
}
|
|
268
267
|
for (const i in l)
|
|
269
268
|
i in n || (n[i] = void 0);
|
|
@@ -272,32 +271,32 @@ function yt(e, t) {
|
|
|
272
271
|
function _e(e) {
|
|
273
272
|
return typeof e == "object" && e !== null ? e : {};
|
|
274
273
|
}
|
|
275
|
-
function
|
|
274
|
+
function Qt(e) {
|
|
276
275
|
e && e.c();
|
|
277
276
|
}
|
|
278
277
|
function wt(e, t, n) {
|
|
279
278
|
const { fragment: l, after_update: s } = e.$$;
|
|
280
279
|
l && l.m(t, n), $t(() => {
|
|
281
|
-
const o = e.$$.on_mount.map(
|
|
282
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
280
|
+
const o = e.$$.on_mount.map(Wt).filter(Ht);
|
|
281
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : G(o), e.$$.on_mount = [];
|
|
283
282
|
}), s.forEach($t);
|
|
284
283
|
}
|
|
285
|
-
function
|
|
284
|
+
function xt(e, t) {
|
|
286
285
|
const n = e.$$;
|
|
287
|
-
n.fragment !== null && (
|
|
286
|
+
n.fragment !== null && (ge(n.after_update), G(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
288
287
|
}
|
|
289
288
|
function be(e, t) {
|
|
290
|
-
e.$$.dirty[0] === -1 && (
|
|
289
|
+
e.$$.dirty[0] === -1 && (X.push(e), de(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
291
290
|
}
|
|
292
|
-
function
|
|
293
|
-
const
|
|
294
|
-
|
|
291
|
+
function it(e, t, n, l, s, o, i = null, r = [-1]) {
|
|
292
|
+
const f = kt;
|
|
293
|
+
ot(e);
|
|
295
294
|
const h = e.$$ = {
|
|
296
295
|
fragment: null,
|
|
297
296
|
ctx: [],
|
|
298
297
|
// state
|
|
299
298
|
props: o,
|
|
300
|
-
update:
|
|
299
|
+
update: j,
|
|
301
300
|
not_equal: s,
|
|
302
301
|
bound: Ct(),
|
|
303
302
|
// lifecycle
|
|
@@ -306,30 +305,30 @@ function ot(e, t, n, l, s, o, i = null, r = [-1]) {
|
|
|
306
305
|
on_disconnect: [],
|
|
307
306
|
before_update: [],
|
|
308
307
|
after_update: [],
|
|
309
|
-
context: new Map(t.context || (
|
|
308
|
+
context: new Map(t.context || (f ? f.$$.context : [])),
|
|
310
309
|
// everything else
|
|
311
310
|
callbacks: Ct(),
|
|
312
311
|
dirty: r,
|
|
313
312
|
skip_bound: !1,
|
|
314
|
-
root: t.target ||
|
|
313
|
+
root: t.target || f.$$.root
|
|
315
314
|
};
|
|
316
315
|
i && i(h.root);
|
|
317
316
|
let $ = !1;
|
|
318
317
|
if (h.ctx = n ? n(e, t.props || {}, (_, c, ...v) => {
|
|
319
318
|
const d = v.length ? v[0] : c;
|
|
320
319
|
return h.ctx && s(h.ctx[_], h.ctx[_] = d) && (!h.skip_bound && h.bound[_] && h.bound[_](d), $ && be(e, _)), c;
|
|
321
|
-
}) : [], h.update(), $ = !0,
|
|
320
|
+
}) : [], h.update(), $ = !0, G(h.before_update), h.fragment = l ? l(h.ctx) : !1, t.target) {
|
|
322
321
|
if (t.hydrate) {
|
|
323
322
|
const _ = ue(t.target);
|
|
324
|
-
h.fragment && h.fragment.l(_), _.forEach(
|
|
323
|
+
h.fragment && h.fragment.l(_), _.forEach(C);
|
|
325
324
|
} else
|
|
326
325
|
h.fragment && h.fragment.c();
|
|
327
|
-
t.intro && B(e.$$.fragment), wt(e, t.target, t.anchor),
|
|
326
|
+
t.intro && B(e.$$.fragment), wt(e, t.target, t.anchor), Yt();
|
|
328
327
|
}
|
|
329
|
-
|
|
328
|
+
ot(f);
|
|
330
329
|
}
|
|
331
|
-
let
|
|
332
|
-
typeof HTMLElement == "function" && (
|
|
330
|
+
let Xt;
|
|
331
|
+
typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
|
|
333
332
|
constructor(t, n, l) {
|
|
334
333
|
super();
|
|
335
334
|
/** The Svelte component constructor */
|
|
@@ -372,17 +371,17 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
372
371
|
let i;
|
|
373
372
|
return {
|
|
374
373
|
c: function() {
|
|
375
|
-
i =
|
|
374
|
+
i = g("slot"), o !== "default" && a(i, "name", o);
|
|
376
375
|
},
|
|
377
376
|
/**
|
|
378
377
|
* @param {HTMLElement} target
|
|
379
378
|
* @param {HTMLElement} [anchor]
|
|
380
379
|
*/
|
|
381
380
|
m: function(h, $) {
|
|
382
|
-
|
|
381
|
+
N(h, i, $);
|
|
383
382
|
},
|
|
384
383
|
d: function(h) {
|
|
385
|
-
h &&
|
|
384
|
+
h && C(i);
|
|
386
385
|
}
|
|
387
386
|
};
|
|
388
387
|
};
|
|
@@ -394,7 +393,7 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
394
393
|
o in l && (n[o] = [t(o)]);
|
|
395
394
|
for (const o of this.attributes) {
|
|
396
395
|
const i = this.$$g_p(o.name);
|
|
397
|
-
i in this.$$d || (this.$$d[i] =
|
|
396
|
+
i in this.$$d || (this.$$d[i] = at(i, o.value, this.$$p_d, "toProp"));
|
|
398
397
|
}
|
|
399
398
|
for (const o in this.$$p_d)
|
|
400
399
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -412,7 +411,7 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
412
411
|
this.$$r = !0;
|
|
413
412
|
for (const o in this.$$p_d)
|
|
414
413
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
415
|
-
const i =
|
|
414
|
+
const i = at(
|
|
416
415
|
o,
|
|
417
416
|
this.$$d[o],
|
|
418
417
|
this.$$p_d,
|
|
@@ -435,7 +434,7 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
435
434
|
// and setting attributes through setAttribute etc, this is helpful
|
|
436
435
|
attributeChangedCallback(t, n, l) {
|
|
437
436
|
var s;
|
|
438
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
437
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = at(t, l, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [t]: this.$$d[t] }));
|
|
439
438
|
}
|
|
440
439
|
disconnectedCallback() {
|
|
441
440
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -448,7 +447,7 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
448
447
|
) || t;
|
|
449
448
|
}
|
|
450
449
|
});
|
|
451
|
-
function
|
|
450
|
+
function at(e, t, n, l) {
|
|
452
451
|
var o;
|
|
453
452
|
const s = (o = n[e]) == null ? void 0 : o.type;
|
|
454
453
|
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !l || !n[e])
|
|
@@ -478,8 +477,8 @@ function ut(e, t, n, l) {
|
|
|
478
477
|
return t;
|
|
479
478
|
}
|
|
480
479
|
}
|
|
481
|
-
function
|
|
482
|
-
let i = class extends
|
|
480
|
+
function qt(e, t, n, l, s, o) {
|
|
481
|
+
let i = class extends Xt {
|
|
483
482
|
constructor() {
|
|
484
483
|
super(e, n, s), this.$$p_d = t;
|
|
485
484
|
}
|
|
@@ -494,22 +493,22 @@ function xt(e, t, n, l, s, o) {
|
|
|
494
493
|
get() {
|
|
495
494
|
return this.$$c && r in this.$$c ? this.$$c[r] : this.$$d[r];
|
|
496
495
|
},
|
|
497
|
-
set(
|
|
496
|
+
set(f) {
|
|
498
497
|
var h;
|
|
499
|
-
|
|
498
|
+
f = at(r, f, t), this.$$d[r] = f, (h = this.$$c) == null || h.$set({ [r]: f });
|
|
500
499
|
}
|
|
501
500
|
});
|
|
502
501
|
}), l.forEach((r) => {
|
|
503
502
|
Object.defineProperty(i.prototype, r, {
|
|
504
503
|
get() {
|
|
505
|
-
var
|
|
506
|
-
return (
|
|
504
|
+
var f;
|
|
505
|
+
return (f = this.$$c) == null ? void 0 : f[r];
|
|
507
506
|
}
|
|
508
507
|
});
|
|
509
508
|
}), e.element = /** @type {any} */
|
|
510
509
|
i, i;
|
|
511
510
|
}
|
|
512
|
-
class
|
|
511
|
+
class rt {
|
|
513
512
|
constructor() {
|
|
514
513
|
/**
|
|
515
514
|
* ### PRIVATE API
|
|
@@ -530,7 +529,7 @@ class it {
|
|
|
530
529
|
}
|
|
531
530
|
/** @returns {void} */
|
|
532
531
|
$destroy() {
|
|
533
|
-
|
|
532
|
+
xt(this, 1), this.$destroy = j;
|
|
534
533
|
}
|
|
535
534
|
/**
|
|
536
535
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -539,8 +538,8 @@ class it {
|
|
|
539
538
|
* @returns {() => void}
|
|
540
539
|
*/
|
|
541
540
|
$on(t, n) {
|
|
542
|
-
if (!
|
|
543
|
-
return
|
|
541
|
+
if (!Ht(n))
|
|
542
|
+
return j;
|
|
544
543
|
const l = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
545
544
|
return l.push(n), () => {
|
|
546
545
|
const s = l.indexOf(n);
|
|
@@ -558,25 +557,25 @@ class it {
|
|
|
558
557
|
const $e = "4";
|
|
559
558
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($e);
|
|
560
559
|
function ve(e) {
|
|
561
|
-
|
|
560
|
+
Ut(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}}");
|
|
562
561
|
}
|
|
563
562
|
function ke(e) {
|
|
564
563
|
let t, n, l;
|
|
565
564
|
return {
|
|
566
565
|
c() {
|
|
567
|
-
t =
|
|
566
|
+
t = g("button"), t.textContent = "Login", a(t, "class", "login-btn svelte-1nq6lsq"), a(t, "aria-label", "Log in");
|
|
568
567
|
},
|
|
569
568
|
m(s, o) {
|
|
570
|
-
|
|
569
|
+
N(s, t, o), n || (l = S(
|
|
571
570
|
t,
|
|
572
571
|
"click",
|
|
573
572
|
/*login*/
|
|
574
573
|
e[2]
|
|
575
574
|
), n = !0);
|
|
576
575
|
},
|
|
577
|
-
p:
|
|
576
|
+
p: j,
|
|
578
577
|
d(s) {
|
|
579
|
-
s &&
|
|
578
|
+
s && C(t), n = !1, l();
|
|
580
579
|
}
|
|
581
580
|
};
|
|
582
581
|
}
|
|
@@ -584,19 +583,19 @@ function ye(e) {
|
|
|
584
583
|
let t, n, l, s, o;
|
|
585
584
|
return {
|
|
586
585
|
c() {
|
|
587
|
-
t =
|
|
586
|
+
t = g("button"), n = g("img"), It(n.src, l = qe) || a(n, "src", l), a(n, "alt", "User Avatar"), a(n, "class", "svelte-1nq6lsq"), a(t, "class", "avatar-btn svelte-1nq6lsq"), a(t, "aria-label", "Log out");
|
|
588
587
|
},
|
|
589
588
|
m(i, r) {
|
|
590
|
-
|
|
589
|
+
N(i, t, r), u(t, n), s || (o = S(
|
|
591
590
|
t,
|
|
592
591
|
"click",
|
|
593
592
|
/*logout*/
|
|
594
593
|
e[3]
|
|
595
594
|
), s = !0);
|
|
596
595
|
},
|
|
597
|
-
p:
|
|
596
|
+
p: j,
|
|
598
597
|
d(i) {
|
|
599
|
-
i &&
|
|
598
|
+
i && C(t), s = !1, o();
|
|
600
599
|
}
|
|
601
600
|
};
|
|
602
601
|
}
|
|
@@ -604,18 +603,18 @@ function we(e) {
|
|
|
604
603
|
let t;
|
|
605
604
|
return {
|
|
606
605
|
c() {
|
|
607
|
-
t =
|
|
606
|
+
t = g("button"), t.innerHTML = "", a(t, "class", "loading-btn svelte-1nq6lsq"), a(t, "aria-busy", "true"), a(t, "aria-label", "Logging in");
|
|
608
607
|
},
|
|
609
608
|
m(n, l) {
|
|
610
|
-
|
|
609
|
+
N(n, t, l);
|
|
611
610
|
},
|
|
612
|
-
p:
|
|
611
|
+
p: j,
|
|
613
612
|
d(n) {
|
|
614
|
-
n &&
|
|
613
|
+
n && C(t);
|
|
615
614
|
}
|
|
616
615
|
};
|
|
617
616
|
}
|
|
618
|
-
function
|
|
617
|
+
function xe(e) {
|
|
619
618
|
let t;
|
|
620
619
|
function n(o, i) {
|
|
621
620
|
return (
|
|
@@ -632,35 +631,35 @@ function qe(e) {
|
|
|
632
631
|
s.c(), t = vt();
|
|
633
632
|
},
|
|
634
633
|
m(o, i) {
|
|
635
|
-
s.m(o, i),
|
|
634
|
+
s.m(o, i), N(o, t, i);
|
|
636
635
|
},
|
|
637
636
|
p(o, [i]) {
|
|
638
637
|
l === (l = n(o)) && s ? s.p(o, i) : (s.d(1), s = l(o), s && (s.c(), s.m(t.parentNode, t)));
|
|
639
638
|
},
|
|
640
|
-
i:
|
|
641
|
-
o:
|
|
639
|
+
i: j,
|
|
640
|
+
o: j,
|
|
642
641
|
d(o) {
|
|
643
|
-
o &&
|
|
642
|
+
o && C(t), s.d(o);
|
|
644
643
|
}
|
|
645
644
|
};
|
|
646
645
|
}
|
|
647
|
-
let
|
|
646
|
+
let qe = "https://via.placeholder.com/50";
|
|
648
647
|
function je(e, t, n) {
|
|
649
648
|
let l = !1, s = !1;
|
|
650
649
|
const o = async () => {
|
|
651
|
-
n(0, l = !0), await new Promise((
|
|
650
|
+
n(0, l = !0), await new Promise((f) => setTimeout(f, 2e3)), n(0, l = !1), n(1, s = !0);
|
|
652
651
|
}, i = () => {
|
|
653
652
|
n(1, s = !1);
|
|
654
653
|
};
|
|
655
654
|
return s = s, [l, s, o, i];
|
|
656
655
|
}
|
|
657
|
-
class
|
|
656
|
+
class Zt extends rt {
|
|
658
657
|
constructor(t) {
|
|
659
|
-
super(),
|
|
658
|
+
super(), it(this, t, je, xe, nt, {}, ve);
|
|
660
659
|
}
|
|
661
660
|
}
|
|
662
|
-
customElements.define("sesamy-login",
|
|
663
|
-
const
|
|
661
|
+
customElements.define("sesamy-login", qt(Zt, {}, [], [], !0));
|
|
662
|
+
const We = Zt;
|
|
664
663
|
/**
|
|
665
664
|
* @license lucide-svelte v0.445.0 - ISC
|
|
666
665
|
*
|
|
@@ -678,80 +677,80 @@ const St = {
|
|
|
678
677
|
"stroke-linecap": "round",
|
|
679
678
|
"stroke-linejoin": "round"
|
|
680
679
|
};
|
|
681
|
-
function
|
|
680
|
+
function At(e, t, n) {
|
|
682
681
|
const l = e.slice();
|
|
683
682
|
return l[11] = t[n][0], l[12] = t[n][1], l;
|
|
684
683
|
}
|
|
685
|
-
function
|
|
684
|
+
function pt(e) {
|
|
686
685
|
let t, n = [
|
|
687
686
|
/*attrs*/
|
|
688
687
|
e[12]
|
|
689
688
|
], l = {};
|
|
690
689
|
for (let s = 0; s < n.length; s += 1)
|
|
691
|
-
l =
|
|
690
|
+
l = W(l, n[s]);
|
|
692
691
|
return {
|
|
693
692
|
c() {
|
|
694
|
-
t =
|
|
693
|
+
t = Vt(
|
|
695
694
|
/*tag*/
|
|
696
695
|
e[11]
|
|
697
|
-
),
|
|
696
|
+
), dt(t, l);
|
|
698
697
|
},
|
|
699
698
|
m(s, o) {
|
|
700
|
-
|
|
699
|
+
N(s, t, o);
|
|
701
700
|
},
|
|
702
701
|
p(s, o) {
|
|
703
|
-
|
|
702
|
+
dt(t, l = yt(n, [o & /*iconNode*/
|
|
704
703
|
32 && /*attrs*/
|
|
705
704
|
s[12]]));
|
|
706
705
|
},
|
|
707
706
|
d(s) {
|
|
708
|
-
s &&
|
|
707
|
+
s && C(t);
|
|
709
708
|
}
|
|
710
709
|
};
|
|
711
710
|
}
|
|
712
|
-
function
|
|
711
|
+
function Pt(e) {
|
|
713
712
|
let t = (
|
|
714
713
|
/*tag*/
|
|
715
714
|
e[11]
|
|
716
715
|
), n, l = (
|
|
717
716
|
/*tag*/
|
|
718
|
-
e[11] &&
|
|
717
|
+
e[11] && pt(e)
|
|
719
718
|
);
|
|
720
719
|
return {
|
|
721
720
|
c() {
|
|
722
721
|
l && l.c(), n = vt();
|
|
723
722
|
},
|
|
724
723
|
m(s, o) {
|
|
725
|
-
l && l.m(s, o),
|
|
724
|
+
l && l.m(s, o), N(s, n, o);
|
|
726
725
|
},
|
|
727
726
|
p(s, o) {
|
|
728
727
|
/*tag*/
|
|
729
|
-
s[11] ? t ?
|
|
728
|
+
s[11] ? t ? nt(
|
|
730
729
|
t,
|
|
731
730
|
/*tag*/
|
|
732
731
|
s[11]
|
|
733
|
-
) ? (l.d(1), l =
|
|
734
|
-
s[11], l.c(), l.m(n.parentNode, n)) : l.p(s, o) : (l =
|
|
732
|
+
) ? (l.d(1), l = pt(s), t = /*tag*/
|
|
733
|
+
s[11], l.c(), l.m(n.parentNode, n)) : l.p(s, o) : (l = pt(s), t = /*tag*/
|
|
735
734
|
s[11], l.c(), l.m(n.parentNode, n)) : t && (l.d(1), l = null, t = /*tag*/
|
|
736
735
|
s[11]);
|
|
737
736
|
},
|
|
738
737
|
d(s) {
|
|
739
|
-
s &&
|
|
738
|
+
s && C(n), l && l.d(s);
|
|
740
739
|
}
|
|
741
740
|
};
|
|
742
741
|
}
|
|
743
742
|
function Ce(e) {
|
|
744
|
-
let t, n, l, s, o, i =
|
|
743
|
+
let t, n, l, s, o, i = Z(
|
|
745
744
|
/*iconNode*/
|
|
746
745
|
e[5]
|
|
747
746
|
), r = [];
|
|
748
747
|
for (let c = 0; c < i.length; c += 1)
|
|
749
|
-
r[c] = At(
|
|
750
|
-
const
|
|
748
|
+
r[c] = Pt(At(e, i, c));
|
|
749
|
+
const f = (
|
|
751
750
|
/*#slots*/
|
|
752
751
|
e[10].default
|
|
753
|
-
), h =
|
|
754
|
-
|
|
752
|
+
), h = Ft(
|
|
753
|
+
f,
|
|
755
754
|
e,
|
|
756
755
|
/*$$scope*/
|
|
757
756
|
e[9],
|
|
@@ -800,16 +799,16 @@ function Ce(e) {
|
|
|
800
799
|
}
|
|
801
800
|
], _ = {};
|
|
802
801
|
for (let c = 0; c < $.length; c += 1)
|
|
803
|
-
_ =
|
|
802
|
+
_ = W(_, $[c]);
|
|
804
803
|
return {
|
|
805
804
|
c() {
|
|
806
|
-
t =
|
|
805
|
+
t = Vt("svg");
|
|
807
806
|
for (let c = 0; c < r.length; c += 1)
|
|
808
807
|
r[c].c();
|
|
809
|
-
n = vt(), h && h.c(),
|
|
808
|
+
n = vt(), h && h.c(), dt(t, _);
|
|
810
809
|
},
|
|
811
810
|
m(c, v) {
|
|
812
|
-
|
|
811
|
+
N(c, t, v);
|
|
813
812
|
for (let d = 0; d < r.length; d += 1)
|
|
814
813
|
r[d] && r[d].m(t, null);
|
|
815
814
|
u(t, n), h && h.m(t, null), o = !0;
|
|
@@ -817,38 +816,38 @@ function Ce(e) {
|
|
|
817
816
|
p(c, [v]) {
|
|
818
817
|
if (v & /*iconNode*/
|
|
819
818
|
32) {
|
|
820
|
-
i =
|
|
819
|
+
i = Z(
|
|
821
820
|
/*iconNode*/
|
|
822
821
|
c[5]
|
|
823
822
|
);
|
|
824
823
|
let d;
|
|
825
824
|
for (d = 0; d < i.length; d += 1) {
|
|
826
|
-
const
|
|
827
|
-
r[d] ? r[d].p(
|
|
825
|
+
const L = At(c, i, d);
|
|
826
|
+
r[d] ? r[d].p(L, v) : (r[d] = Pt(L), r[d].c(), r[d].m(t, n));
|
|
828
827
|
}
|
|
829
828
|
for (; d < r.length; d += 1)
|
|
830
829
|
r[d].d(1);
|
|
831
830
|
r.length = i.length;
|
|
832
831
|
}
|
|
833
832
|
h && h.p && (!o || v & /*$$scope*/
|
|
834
|
-
512) &&
|
|
833
|
+
512) && Kt(
|
|
835
834
|
h,
|
|
836
|
-
|
|
835
|
+
f,
|
|
837
836
|
c,
|
|
838
837
|
/*$$scope*/
|
|
839
838
|
c[9],
|
|
840
|
-
o ?
|
|
841
|
-
|
|
839
|
+
o ? Rt(
|
|
840
|
+
f,
|
|
842
841
|
/*$$scope*/
|
|
843
842
|
c[9],
|
|
844
843
|
v,
|
|
845
844
|
null
|
|
846
|
-
) :
|
|
845
|
+
) : Gt(
|
|
847
846
|
/*$$scope*/
|
|
848
847
|
c[9]
|
|
849
848
|
),
|
|
850
849
|
null
|
|
851
|
-
),
|
|
850
|
+
), dt(t, _ = yt($, [
|
|
852
851
|
St,
|
|
853
852
|
v & /*$$restProps*/
|
|
854
853
|
128 && /*$$restProps*/
|
|
@@ -897,22 +896,22 @@ function Ce(e) {
|
|
|
897
896
|
o || (B(h, c), o = !0);
|
|
898
897
|
},
|
|
899
898
|
o(c) {
|
|
900
|
-
|
|
899
|
+
et(h, c), o = !1;
|
|
901
900
|
},
|
|
902
901
|
d(c) {
|
|
903
|
-
c &&
|
|
902
|
+
c && C(t), _t(r, c), h && h.d(c);
|
|
904
903
|
}
|
|
905
904
|
};
|
|
906
905
|
}
|
|
907
906
|
function ze(e, t, n) {
|
|
908
907
|
const l = ["name", "color", "size", "strokeWidth", "absoluteStrokeWidth", "iconNode"];
|
|
909
|
-
let s = zt(t, l), { $$slots: o = {}, $$scope: i } = t, { name: r = void 0 } = t, { color:
|
|
910
|
-
const v = (...d) => d.filter((
|
|
908
|
+
let s = zt(t, l), { $$slots: o = {}, $$scope: i } = t, { name: r = void 0 } = t, { color: f = "currentColor" } = t, { size: h = 24 } = t, { strokeWidth: $ = 2 } = t, { absoluteStrokeWidth: _ = !1 } = t, { iconNode: c = [] } = t;
|
|
909
|
+
const v = (...d) => d.filter((L, z, H) => !!L && H.indexOf(L) === z).join(" ");
|
|
911
910
|
return e.$$set = (d) => {
|
|
912
|
-
n(8, t =
|
|
913
|
-
}, t =
|
|
911
|
+
n(8, t = W(W({}, t), ft(d))), n(7, s = zt(t, l)), "name" in d && n(0, r = d.name), "color" in d && n(1, f = d.color), "size" in d && n(2, h = d.size), "strokeWidth" in d && n(3, $ = d.strokeWidth), "absoluteStrokeWidth" in d && n(4, _ = d.absoluteStrokeWidth), "iconNode" in d && n(5, c = d.iconNode), "$$scope" in d && n(9, i = d.$$scope);
|
|
912
|
+
}, t = ft(t), [
|
|
914
913
|
r,
|
|
915
|
-
|
|
914
|
+
f,
|
|
916
915
|
h,
|
|
917
916
|
$,
|
|
918
917
|
_,
|
|
@@ -924,9 +923,9 @@ function ze(e, t, n) {
|
|
|
924
923
|
o
|
|
925
924
|
];
|
|
926
925
|
}
|
|
927
|
-
class Ee extends
|
|
926
|
+
class Ee extends rt {
|
|
928
927
|
constructor(t) {
|
|
929
|
-
super(),
|
|
928
|
+
super(), it(this, t, ze, Ce, nt, {
|
|
930
929
|
name: 0,
|
|
931
930
|
color: 1,
|
|
932
931
|
size: 2,
|
|
@@ -936,12 +935,12 @@ class Ee extends it {
|
|
|
936
935
|
});
|
|
937
936
|
}
|
|
938
937
|
}
|
|
939
|
-
function
|
|
938
|
+
function Ne(e) {
|
|
940
939
|
let t;
|
|
941
940
|
const n = (
|
|
942
941
|
/*#slots*/
|
|
943
942
|
e[2].default
|
|
944
|
-
), l =
|
|
943
|
+
), l = Ft(
|
|
945
944
|
n,
|
|
946
945
|
e,
|
|
947
946
|
/*$$scope*/
|
|
@@ -957,19 +956,19 @@ function Le(e) {
|
|
|
957
956
|
},
|
|
958
957
|
p(s, o) {
|
|
959
958
|
l && l.p && (!t || o & /*$$scope*/
|
|
960
|
-
8) &&
|
|
959
|
+
8) && Kt(
|
|
961
960
|
l,
|
|
962
961
|
n,
|
|
963
962
|
s,
|
|
964
963
|
/*$$scope*/
|
|
965
964
|
s[3],
|
|
966
|
-
t ?
|
|
965
|
+
t ? Rt(
|
|
967
966
|
n,
|
|
968
967
|
/*$$scope*/
|
|
969
968
|
s[3],
|
|
970
969
|
o,
|
|
971
970
|
null
|
|
972
|
-
) :
|
|
971
|
+
) : Gt(
|
|
973
972
|
/*$$scope*/
|
|
974
973
|
s[3]
|
|
975
974
|
),
|
|
@@ -980,14 +979,14 @@ function Le(e) {
|
|
|
980
979
|
t || (B(l, s), t = !0);
|
|
981
980
|
},
|
|
982
981
|
o(s) {
|
|
983
|
-
|
|
982
|
+
et(l, s), t = !1;
|
|
984
983
|
},
|
|
985
984
|
d(s) {
|
|
986
985
|
l && l.d(s);
|
|
987
986
|
}
|
|
988
987
|
};
|
|
989
988
|
}
|
|
990
|
-
function
|
|
989
|
+
function Le(e) {
|
|
991
990
|
let t, n;
|
|
992
991
|
const l = [
|
|
993
992
|
{ name: "circle-check" },
|
|
@@ -999,14 +998,14 @@ function Se(e) {
|
|
|
999
998
|
) }
|
|
1000
999
|
];
|
|
1001
1000
|
let s = {
|
|
1002
|
-
$$slots: { default: [
|
|
1001
|
+
$$slots: { default: [Ne] },
|
|
1003
1002
|
$$scope: { ctx: e }
|
|
1004
1003
|
};
|
|
1005
1004
|
for (let o = 0; o < l.length; o += 1)
|
|
1006
|
-
s =
|
|
1005
|
+
s = W(s, l[o]);
|
|
1007
1006
|
return t = new Ee({ props: s }), {
|
|
1008
1007
|
c() {
|
|
1009
|
-
|
|
1008
|
+
Qt(t.$$.fragment);
|
|
1010
1009
|
},
|
|
1011
1010
|
m(o, i) {
|
|
1012
1011
|
wt(t, o, i), n = !0;
|
|
@@ -1033,188 +1032,188 @@ function Se(e) {
|
|
|
1033
1032
|
n || (B(t.$$.fragment, o), n = !0);
|
|
1034
1033
|
},
|
|
1035
1034
|
o(o) {
|
|
1036
|
-
|
|
1035
|
+
et(t.$$.fragment, o), n = !1;
|
|
1037
1036
|
},
|
|
1038
1037
|
d(o) {
|
|
1039
|
-
|
|
1038
|
+
xt(t, o);
|
|
1040
1039
|
}
|
|
1041
1040
|
};
|
|
1042
1041
|
}
|
|
1043
|
-
function
|
|
1042
|
+
function Se(e, t, n) {
|
|
1044
1043
|
let { $$slots: l = {}, $$scope: s } = t;
|
|
1045
1044
|
const o = [
|
|
1046
1045
|
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
1047
1046
|
["path", { d: "m9 12 2 2 4-4" }]
|
|
1048
1047
|
];
|
|
1049
1048
|
return e.$$set = (i) => {
|
|
1050
|
-
n(1, t =
|
|
1051
|
-
}, t =
|
|
1049
|
+
n(1, t = W(W({}, t), ft(i))), "$$scope" in i && n(3, s = i.$$scope);
|
|
1050
|
+
}, t = ft(t), [o, t, l, s];
|
|
1052
1051
|
}
|
|
1053
|
-
class Ae extends
|
|
1052
|
+
class Ae extends rt {
|
|
1054
1053
|
constructor(t) {
|
|
1055
|
-
super(),
|
|
1054
|
+
super(), it(this, t, Se, Le, nt, {});
|
|
1056
1055
|
}
|
|
1057
1056
|
}
|
|
1058
1057
|
function Ot(e, t, n) {
|
|
1059
1058
|
const l = e.slice();
|
|
1060
1059
|
return l[6] = t[n], l;
|
|
1061
1060
|
}
|
|
1062
|
-
function
|
|
1061
|
+
function Tt(e, t, n) {
|
|
1063
1062
|
const l = e.slice();
|
|
1064
1063
|
return l[9] = t[n], l;
|
|
1065
1064
|
}
|
|
1066
|
-
function
|
|
1065
|
+
function Mt(e) {
|
|
1067
1066
|
let t, n, l, s, o, i;
|
|
1068
1067
|
return n = new Ae({
|
|
1069
1068
|
props: { class: "text-green-500 mr-2", size: 20 }
|
|
1070
1069
|
}), {
|
|
1071
1070
|
c() {
|
|
1072
|
-
t =
|
|
1073
|
-
e[9]}`, o = b(),
|
|
1071
|
+
t = g("li"), Qt(n.$$.fragment), l = b(), s = g("span"), s.textContent = `${/*feature*/
|
|
1072
|
+
e[9]}`, o = b(), a(t, "class", "flex items-center");
|
|
1074
1073
|
},
|
|
1075
|
-
m(r,
|
|
1076
|
-
|
|
1074
|
+
m(r, f) {
|
|
1075
|
+
N(r, t, f), wt(n, t, null), u(t, l), u(t, s), u(t, o), i = !0;
|
|
1077
1076
|
},
|
|
1078
|
-
p:
|
|
1077
|
+
p: j,
|
|
1079
1078
|
i(r) {
|
|
1080
1079
|
i || (B(n.$$.fragment, r), i = !0);
|
|
1081
1080
|
},
|
|
1082
1081
|
o(r) {
|
|
1083
|
-
|
|
1082
|
+
et(n.$$.fragment, r), i = !1;
|
|
1084
1083
|
},
|
|
1085
1084
|
d(r) {
|
|
1086
|
-
r &&
|
|
1085
|
+
r && C(t), xt(n);
|
|
1087
1086
|
}
|
|
1088
1087
|
};
|
|
1089
1088
|
}
|
|
1090
|
-
function
|
|
1089
|
+
function Bt(e) {
|
|
1091
1090
|
let t, n;
|
|
1092
1091
|
return {
|
|
1093
1092
|
c() {
|
|
1094
|
-
t =
|
|
1093
|
+
t = g("img"), It(t.src, n = "/api/placeholder/40/25") || a(t, "src", n), a(
|
|
1095
1094
|
t,
|
|
1096
1095
|
"alt",
|
|
1097
1096
|
/*method*/
|
|
1098
1097
|
e[6]
|
|
1099
|
-
),
|
|
1098
|
+
), a(t, "class", "h-6");
|
|
1100
1099
|
},
|
|
1101
1100
|
m(l, s) {
|
|
1102
|
-
|
|
1101
|
+
N(l, t, s);
|
|
1103
1102
|
},
|
|
1104
|
-
p:
|
|
1103
|
+
p: j,
|
|
1105
1104
|
d(l) {
|
|
1106
|
-
l &&
|
|
1105
|
+
l && C(t);
|
|
1107
1106
|
}
|
|
1108
1107
|
};
|
|
1109
1108
|
}
|
|
1110
|
-
function
|
|
1111
|
-
let t, n, l, s, o, i, r,
|
|
1109
|
+
function Pe(e) {
|
|
1110
|
+
let t, n, l, s, o, i, r, f, h, $, _, c, v, d, L, z, H, q, y, O, U, A, I, F, D, T, M, lt, P, V, ht, gt, jt, R = Z(
|
|
1112
1111
|
/*features*/
|
|
1113
1112
|
e[1]
|
|
1114
1113
|
), k = [];
|
|
1115
|
-
for (let
|
|
1116
|
-
k[
|
|
1117
|
-
const
|
|
1118
|
-
k[
|
|
1114
|
+
for (let p = 0; p < R.length; p += 1)
|
|
1115
|
+
k[p] = Mt(Tt(e, R, p));
|
|
1116
|
+
const ne = (p) => et(k[p], 1, 1, () => {
|
|
1117
|
+
k[p] = null;
|
|
1119
1118
|
});
|
|
1120
|
-
let J =
|
|
1119
|
+
let J = Z(
|
|
1121
1120
|
/*paymentMethods*/
|
|
1122
1121
|
e[2]
|
|
1123
|
-
),
|
|
1124
|
-
for (let
|
|
1125
|
-
|
|
1122
|
+
), x = [];
|
|
1123
|
+
for (let p = 0; p < J.length; p += 1)
|
|
1124
|
+
x[p] = Bt(Ot(e, J, p));
|
|
1126
1125
|
return ht = ce(
|
|
1127
1126
|
/*$$binding_groups*/
|
|
1128
1127
|
e[4][0]
|
|
1129
1128
|
), {
|
|
1130
1129
|
c() {
|
|
1131
|
-
t =
|
|
1132
|
-
for (let
|
|
1133
|
-
k[
|
|
1134
|
-
h = b(), $ =
|
|
1135
|
-
for (let
|
|
1136
|
-
|
|
1137
|
-
|
|
1130
|
+
t = g("div"), n = g("div"), n.textContent = "Redan prenumerant? Logga in", l = b(), s = g("h1"), s.textContent = "FOKUS", o = b(), i = g("h2"), i.textContent = "Läs Fokus Digital i 6 månader för bara 79 kr!", r = b(), f = g("ul");
|
|
1131
|
+
for (let p = 0; p < k.length; p += 1)
|
|
1132
|
+
k[p].c();
|
|
1133
|
+
h = b(), $ = g("div"), _ = g("label"), c = g("input"), v = b(), d = g("div"), d.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>', L = b(), z = g("div"), z.textContent = "79 SEK/6 mån", H = b(), q = g("label"), y = g("input"), O = b(), U = g("div"), U.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>', A = b(), I = g("div"), I.textContent = "995 SEK/år", F = b(), D = g("button"), D.textContent = "Fortsätt", T = b(), M = g("div"), M.textContent = "Säker SSL-krypterad betalning", lt = b(), P = g("div");
|
|
1134
|
+
for (let p = 0; p < x.length; p += 1)
|
|
1135
|
+
x[p].c();
|
|
1136
|
+
a(n, "class", "text-right text-sm text-red-500 mb-4"), a(s, "class", "text-4xl font-bold text-red-500 mb-4"), a(i, "class", "text-xl font-semibold mb-6"), a(f, "class", "space-y-2 mb-6"), a(c, "type", "radio"), a(c, "name", "subscription"), c.__value = "sixMonths", Et(c, c.__value), a(c, "class", "mr-3"), a(z, "class", "ml-auto font-semibold"), a(_, "class", "flex items-center p-4 border rounded-lg"), a(y, "type", "radio"), a(y, "name", "subscription"), y.__value = "oneYear", Et(y, y.__value), a(y, "class", "mr-3"), a(I, "class", "ml-auto font-semibold"), a(q, "class", "flex items-center p-4 border rounded-lg"), a($, "class", "space-y-4 mb-6"), a(D, "class", "w-full bg-red-500 text-white py-3 rounded-lg font-semibold"), a(M, "class", "text-center text-sm text-gray-600 mt-4"), a(P, "class", "flex justify-center space-x-2 mt-2"), a(t, "class", "max-w-md mx-auto bg-white p-6 rounded-lg shadow-lg"), ht.p(c, y);
|
|
1138
1137
|
},
|
|
1139
|
-
m(
|
|
1140
|
-
|
|
1141
|
-
for (let
|
|
1142
|
-
k[
|
|
1138
|
+
m(p, w) {
|
|
1139
|
+
N(p, t, w), u(t, n), u(t, l), u(t, s), u(t, o), u(t, i), u(t, r), u(t, f);
|
|
1140
|
+
for (let m = 0; m < k.length; m += 1)
|
|
1141
|
+
k[m] && k[m].m(f, null);
|
|
1143
1142
|
u(t, h), u(t, $), u($, _), u(_, c), c.checked = c.__value === /*selectedPlan*/
|
|
1144
|
-
e[0], u(_, v), u(_, d), u(_,
|
|
1145
|
-
e[0], u(
|
|
1146
|
-
for (let
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1143
|
+
e[0], u(_, v), u(_, d), u(_, L), u(_, z), u($, H), u($, q), u(q, y), y.checked = y.__value === /*selectedPlan*/
|
|
1144
|
+
e[0], u(q, O), u(q, U), u(q, A), u(q, I), u(t, F), u(t, D), u(t, T), u(t, M), u(t, lt), u(t, P);
|
|
1145
|
+
for (let m = 0; m < x.length; m += 1)
|
|
1146
|
+
x[m] && x[m].m(P, null);
|
|
1147
|
+
V = !0, gt || (jt = [
|
|
1148
|
+
S(
|
|
1150
1149
|
c,
|
|
1151
1150
|
"change",
|
|
1152
1151
|
/*input0_change_handler*/
|
|
1153
1152
|
e[3]
|
|
1154
1153
|
),
|
|
1155
|
-
|
|
1154
|
+
S(
|
|
1156
1155
|
y,
|
|
1157
1156
|
"change",
|
|
1158
1157
|
/*input1_change_handler*/
|
|
1159
1158
|
e[5]
|
|
1160
1159
|
)
|
|
1161
|
-
],
|
|
1160
|
+
], gt = !0);
|
|
1162
1161
|
},
|
|
1163
|
-
p(
|
|
1162
|
+
p(p, [w]) {
|
|
1164
1163
|
if (w & /*features*/
|
|
1165
1164
|
2) {
|
|
1166
|
-
|
|
1165
|
+
R = Z(
|
|
1167
1166
|
/*features*/
|
|
1168
|
-
|
|
1167
|
+
p[1]
|
|
1169
1168
|
);
|
|
1170
|
-
let
|
|
1171
|
-
for (
|
|
1172
|
-
const
|
|
1173
|
-
k[
|
|
1169
|
+
let m;
|
|
1170
|
+
for (m = 0; m < R.length; m += 1) {
|
|
1171
|
+
const st = Tt(p, R, m);
|
|
1172
|
+
k[m] ? (k[m].p(st, w), B(k[m], 1)) : (k[m] = Mt(st), k[m].c(), B(k[m], 1), k[m].m(f, null));
|
|
1174
1173
|
}
|
|
1175
|
-
for (
|
|
1176
|
-
|
|
1177
|
-
|
|
1174
|
+
for (me(), m = R.length; m < k.length; m += 1)
|
|
1175
|
+
ne(m);
|
|
1176
|
+
pe();
|
|
1178
1177
|
}
|
|
1179
1178
|
if (w & /*selectedPlan*/
|
|
1180
1179
|
1 && (c.checked = c.__value === /*selectedPlan*/
|
|
1181
|
-
|
|
1180
|
+
p[0]), w & /*selectedPlan*/
|
|
1182
1181
|
1 && (y.checked = y.__value === /*selectedPlan*/
|
|
1183
|
-
|
|
1182
|
+
p[0]), w & /*paymentMethods*/
|
|
1184
1183
|
4) {
|
|
1185
|
-
J =
|
|
1184
|
+
J = Z(
|
|
1186
1185
|
/*paymentMethods*/
|
|
1187
|
-
|
|
1186
|
+
p[2]
|
|
1188
1187
|
);
|
|
1189
|
-
let
|
|
1190
|
-
for (
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1188
|
+
let m;
|
|
1189
|
+
for (m = 0; m < J.length; m += 1) {
|
|
1190
|
+
const st = Ot(p, J, m);
|
|
1191
|
+
x[m] ? x[m].p(st, w) : (x[m] = Bt(st), x[m].c(), x[m].m(P, null));
|
|
1193
1192
|
}
|
|
1194
|
-
for (;
|
|
1195
|
-
|
|
1196
|
-
|
|
1193
|
+
for (; m < x.length; m += 1)
|
|
1194
|
+
x[m].d(1);
|
|
1195
|
+
x.length = J.length;
|
|
1197
1196
|
}
|
|
1198
1197
|
},
|
|
1199
|
-
i(
|
|
1200
|
-
if (!
|
|
1201
|
-
for (let w = 0; w <
|
|
1198
|
+
i(p) {
|
|
1199
|
+
if (!V) {
|
|
1200
|
+
for (let w = 0; w < R.length; w += 1)
|
|
1202
1201
|
B(k[w]);
|
|
1203
|
-
|
|
1202
|
+
V = !0;
|
|
1204
1203
|
}
|
|
1205
1204
|
},
|
|
1206
|
-
o(
|
|
1205
|
+
o(p) {
|
|
1207
1206
|
k = k.filter(Boolean);
|
|
1208
1207
|
for (let w = 0; w < k.length; w += 1)
|
|
1209
|
-
|
|
1210
|
-
|
|
1208
|
+
et(k[w]);
|
|
1209
|
+
V = !1;
|
|
1211
1210
|
},
|
|
1212
|
-
d(
|
|
1213
|
-
|
|
1211
|
+
d(p) {
|
|
1212
|
+
p && C(t), _t(k, p), _t(x, p), ht.r(), gt = !1, G(jt);
|
|
1214
1213
|
}
|
|
1215
1214
|
};
|
|
1216
1215
|
}
|
|
1217
|
-
function
|
|
1216
|
+
function Oe(e, t, n) {
|
|
1218
1217
|
let l = "sixMonths";
|
|
1219
1218
|
const s = [
|
|
1220
1219
|
"Allt material på Fokus.se",
|
|
@@ -1233,7 +1232,7 @@ function Pe(e, t, n) {
|
|
|
1233
1232
|
function r() {
|
|
1234
1233
|
l = this.__value, n(0, l);
|
|
1235
1234
|
}
|
|
1236
|
-
function
|
|
1235
|
+
function f() {
|
|
1237
1236
|
l = this.__value, n(0, l);
|
|
1238
1237
|
}
|
|
1239
1238
|
return [
|
|
@@ -1242,133 +1241,58 @@ function Pe(e, t, n) {
|
|
|
1242
1241
|
o,
|
|
1243
1242
|
r,
|
|
1244
1243
|
i,
|
|
1245
|
-
|
|
1244
|
+
f
|
|
1246
1245
|
];
|
|
1247
1246
|
}
|
|
1248
|
-
class
|
|
1247
|
+
class te extends rt {
|
|
1249
1248
|
constructor(t) {
|
|
1250
|
-
super(),
|
|
1249
|
+
super(), it(this, t, Oe, Pe, nt, {});
|
|
1251
1250
|
}
|
|
1252
1251
|
}
|
|
1253
|
-
customElements.define("sesamy-paywall",
|
|
1254
|
-
const
|
|
1252
|
+
customElements.define("sesamy-paywall", qt(te, {}, [], [], !0));
|
|
1253
|
+
const He = te;
|
|
1255
1254
|
function Te(e) {
|
|
1256
|
-
|
|
1255
|
+
Ut(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}');
|
|
1257
1256
|
}
|
|
1258
|
-
function
|
|
1259
|
-
let t, n, l, s, o, i, r,
|
|
1257
|
+
function Me(e) {
|
|
1258
|
+
let t, n, l, s, o, i, r, f, h, $, _, c, v, d, L, z, H, q, y, O, U, A, I, F, D, T, M, lt;
|
|
1260
1259
|
return {
|
|
1261
1260
|
c() {
|
|
1262
|
-
t =
|
|
1263
|
-
podcasts and some daily games.`, o = b(), i =
|
|
1261
|
+
t = g("div"), n = g("h1"), n.textContent = "Create a free account, or log in.", l = b(), s = g("p"), s.textContent = `Gain access to limited free articles, news alerts, select newsletters,
|
|
1262
|
+
podcasts and some daily games.`, o = b(), i = g("label"), i.textContent = "Email Address", r = b(), f = g("input"), h = b(), $ = g("button"), $.textContent = "Continue", _ = b(), c = g("div"), c.textContent = "or", v = b(), d = g("p"), d.innerHTML = `By continuing, you agree to the <a href="#terms" class="svelte-phjzbp">Terms of Sale</a>,
|
|
1264
1263
|
<a href="#service" class="svelte-phjzbp">Terms of Service</a>, and
|
|
1265
|
-
<a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`,
|
|
1266
|
-
},
|
|
1267
|
-
m(z, M) {
|
|
1268
|
-
S(z, t, M), u(t, n), u(t, l), u(t, s), u(t, o), u(t, i), u(t, r), u(t, a), dt(
|
|
1269
|
-
a,
|
|
1270
|
-
/*email*/
|
|
1271
|
-
e[0]
|
|
1272
|
-
), u(t, h), u(t, $), u(t, _), u(t, c), u(t, v), u(t, d), u(t, N), u(t, C), u(t, R), u(t, x), u(t, y), u(t, P), u(t, V), u(t, O), u(t, D), u(t, F), u(t, H), u(t, T), W || (nt = [
|
|
1273
|
-
A(
|
|
1274
|
-
a,
|
|
1275
|
-
"input",
|
|
1276
|
-
/*input_input_handler*/
|
|
1277
|
-
e[5]
|
|
1278
|
-
),
|
|
1279
|
-
A(
|
|
1280
|
-
$,
|
|
1281
|
-
"click",
|
|
1282
|
-
/*handleContinue*/
|
|
1283
|
-
e[1]
|
|
1284
|
-
),
|
|
1285
|
-
A(
|
|
1286
|
-
C,
|
|
1287
|
-
"click",
|
|
1288
|
-
/*click_handler*/
|
|
1289
|
-
e[6]
|
|
1290
|
-
),
|
|
1291
|
-
A(
|
|
1292
|
-
x,
|
|
1293
|
-
"click",
|
|
1294
|
-
/*click_handler_1*/
|
|
1295
|
-
e[7]
|
|
1296
|
-
),
|
|
1297
|
-
A(
|
|
1298
|
-
P,
|
|
1299
|
-
"click",
|
|
1300
|
-
/*click_handler_2*/
|
|
1301
|
-
e[8]
|
|
1302
|
-
),
|
|
1303
|
-
A(
|
|
1304
|
-
O,
|
|
1305
|
-
"click",
|
|
1306
|
-
/*handleWorkSchoolLogin*/
|
|
1307
|
-
e[3]
|
|
1308
|
-
),
|
|
1309
|
-
A(
|
|
1310
|
-
T,
|
|
1311
|
-
"click",
|
|
1312
|
-
/*handleSubscriptionOptions*/
|
|
1313
|
-
e[4]
|
|
1314
|
-
)
|
|
1315
|
-
], W = !0);
|
|
1264
|
+
<a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`, L = b(), z = g("button"), z.textContent = "Continue with Google", H = b(), q = g("button"), q.textContent = "Continue with Facebook", y = b(), O = g("button"), O.textContent = "Continue with Apple", U = b(), A = g("a"), A.textContent = "Continue with work or school single sign-on >", I = b(), F = g("p"), F.textContent = "Enjoy unlimited access to all of The Times.", D = b(), T = g("button"), T.textContent = "See subscription options", a(n, "class", "svelte-phjzbp"), a(s, "class", "svelte-phjzbp"), a(i, "for", "email"), a(f, "type", "email"), a(f, "id", "email"), a(f, "placeholder", "Enter your email"), a(f, "class", "svelte-phjzbp"), a($, "class", "svelte-phjzbp"), a(c, "class", "divider svelte-phjzbp"), a(d, "class", "terms svelte-phjzbp"), a(z, "class", "social-button google svelte-phjzbp"), a(q, "class", "social-button facebook svelte-phjzbp"), a(O, "class", "social-button apple svelte-phjzbp"), a(A, "href", "#"), a(A, "class", "svelte-phjzbp"), a(F, "class", "svelte-phjzbp"), a(T, "class", "svelte-phjzbp"), a(t, "class", "registration-wall svelte-phjzbp");
|
|
1316
1265
|
},
|
|
1317
|
-
|
|
1318
|
-
M
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1266
|
+
m(P, V) {
|
|
1267
|
+
N(P, t, V), u(t, n), u(t, l), u(t, s), u(t, o), u(t, i), u(t, r), u(t, f), u(t, h), u(t, $), u(t, _), u(t, c), u(t, v), u(t, d), u(t, L), u(t, z), u(t, H), u(t, q), u(t, y), u(t, O), u(t, U), u(t, A), u(t, I), u(t, F), u(t, D), u(t, T), M || (lt = [
|
|
1268
|
+
S($, "click", Q),
|
|
1269
|
+
S(z, "click", Q),
|
|
1270
|
+
S(q, "click", Q),
|
|
1271
|
+
S(O, "click", Q),
|
|
1272
|
+
S(A, "click", Q),
|
|
1273
|
+
S(T, "click", Q)
|
|
1274
|
+
], M = !0);
|
|
1325
1275
|
},
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1276
|
+
p: j,
|
|
1277
|
+
i: j,
|
|
1278
|
+
o: j,
|
|
1279
|
+
d(P) {
|
|
1280
|
+
P && C(t), M = !1, G(lt);
|
|
1330
1281
|
}
|
|
1331
1282
|
};
|
|
1332
1283
|
}
|
|
1333
|
-
function
|
|
1334
|
-
|
|
1335
|
-
let s = "";
|
|
1336
|
-
function o() {
|
|
1337
|
-
l("continue", { email: s });
|
|
1338
|
-
}
|
|
1339
|
-
function i(v) {
|
|
1340
|
-
l("socialLogin", { provider: v });
|
|
1341
|
-
}
|
|
1342
|
-
function r() {
|
|
1343
|
-
l("workSchoolLogin");
|
|
1344
|
-
}
|
|
1345
|
-
function a() {
|
|
1346
|
-
l("subscriptionOptions");
|
|
1347
|
-
}
|
|
1348
|
-
function h() {
|
|
1349
|
-
s = this.value, n(0, s);
|
|
1350
|
-
}
|
|
1351
|
-
return [
|
|
1352
|
-
s,
|
|
1353
|
-
o,
|
|
1354
|
-
i,
|
|
1355
|
-
r,
|
|
1356
|
-
a,
|
|
1357
|
-
h,
|
|
1358
|
-
() => i("google"),
|
|
1359
|
-
() => i("facebook"),
|
|
1360
|
-
() => i("apple")
|
|
1361
|
-
];
|
|
1284
|
+
function Q() {
|
|
1285
|
+
console.log("Button clicked");
|
|
1362
1286
|
}
|
|
1363
|
-
class
|
|
1287
|
+
class ee extends rt {
|
|
1364
1288
|
constructor(t) {
|
|
1365
|
-
super(),
|
|
1289
|
+
super(), it(this, t, null, Me, nt, {}, Te);
|
|
1366
1290
|
}
|
|
1367
1291
|
}
|
|
1368
|
-
customElements.define("sesamy-
|
|
1369
|
-
const
|
|
1292
|
+
customElements.define("sesamy-hello", qt(ee, {}, [], [], !0));
|
|
1293
|
+
const Ie = ee;
|
|
1370
1294
|
export {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1295
|
+
Ie as Hello,
|
|
1296
|
+
We as Login,
|
|
1297
|
+
He as Paywall
|
|
1374
1298
|
};
|