@sesamy/sesamy-components 0.0.6 → 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.
- package/README.md +13 -41
- package/dist/lib/sesamy-components.d.ts +1 -0
- package/dist/lib/sesamy-components.es.js +885 -671
- package/dist/lib/sesamy-components.umd.js +4 -4
- package/package.json +1 -1
|
@@ -1,99 +1,98 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
function L() {
|
|
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() {
|
|
6
5
|
}
|
|
7
|
-
function
|
|
6
|
+
function X(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 Jt(e) {
|
|
15
14
|
return e();
|
|
16
15
|
}
|
|
17
|
-
function
|
|
16
|
+
function Bt() {
|
|
18
17
|
return /* @__PURE__ */ Object.create(null);
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
e.forEach(
|
|
19
|
+
function tt(e) {
|
|
20
|
+
e.forEach(Jt);
|
|
22
21
|
}
|
|
23
|
-
function
|
|
22
|
+
function Yt(e) {
|
|
24
23
|
return typeof e == "function";
|
|
25
24
|
}
|
|
26
|
-
function
|
|
25
|
+
function U(e, t) {
|
|
27
26
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
28
27
|
}
|
|
29
|
-
let
|
|
30
|
-
function
|
|
31
|
-
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);
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function ae(e) {
|
|
34
33
|
return Object.keys(e).length === 0;
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function $t(e, t, n, s) {
|
|
37
36
|
if (e) {
|
|
38
|
-
const
|
|
39
|
-
return e[0](
|
|
37
|
+
const l = Xt(e, t, n, s);
|
|
38
|
+
return e[0](l);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
|
-
function
|
|
43
|
-
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;
|
|
44
43
|
}
|
|
45
|
-
function
|
|
46
|
-
if (e[2] &&
|
|
47
|
-
const
|
|
44
|
+
function wt(e, t, n, s) {
|
|
45
|
+
if (e[2] && s) {
|
|
46
|
+
const l = e[2](s(n));
|
|
48
47
|
if (t.dirty === void 0)
|
|
49
|
-
return
|
|
50
|
-
if (typeof
|
|
51
|
-
const o = [],
|
|
52
|
-
for (let
|
|
53
|
-
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];
|
|
54
53
|
return o;
|
|
55
54
|
}
|
|
56
|
-
return t.dirty |
|
|
55
|
+
return t.dirty | l;
|
|
57
56
|
}
|
|
58
57
|
return t.dirty;
|
|
59
58
|
}
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
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);
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
function
|
|
65
|
+
function xt(e) {
|
|
67
66
|
if (e.ctx.length > 32) {
|
|
68
67
|
const t = [], n = e.ctx.length / 32;
|
|
69
|
-
for (let
|
|
70
|
-
t[
|
|
68
|
+
for (let s = 0; s < n; s++)
|
|
69
|
+
t[s] = -1;
|
|
71
70
|
return t;
|
|
72
71
|
}
|
|
73
72
|
return -1;
|
|
74
73
|
}
|
|
75
|
-
function
|
|
74
|
+
function jt(e) {
|
|
76
75
|
const t = {};
|
|
77
76
|
for (const n in e) n[0] !== "$" && (t[n] = e[n]);
|
|
78
77
|
return t;
|
|
79
78
|
}
|
|
80
|
-
function
|
|
79
|
+
function Ft(e, t) {
|
|
81
80
|
const n = {};
|
|
82
81
|
t = new Set(t);
|
|
83
|
-
for (const
|
|
82
|
+
for (const s in e) !t.has(s) && s[0] !== "$" && (n[s] = e[s]);
|
|
84
83
|
return n;
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function c(e, t) {
|
|
87
86
|
e.appendChild(t);
|
|
88
87
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
if (!
|
|
92
|
-
const
|
|
93
|
-
|
|
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);
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
|
-
function
|
|
95
|
+
function ue(e) {
|
|
97
96
|
if (!e) return document;
|
|
98
97
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
99
98
|
return t && /** @type {ShadowRoot} */
|
|
@@ -102,54 +101,54 @@ function ie(e) {
|
|
|
102
101
|
t
|
|
103
102
|
) : e.ownerDocument;
|
|
104
103
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
104
|
+
function fe(e, t) {
|
|
105
|
+
return c(
|
|
107
106
|
/** @type {Document} */
|
|
108
107
|
e.head || e,
|
|
109
108
|
t
|
|
110
109
|
), t.sheet;
|
|
111
110
|
}
|
|
112
|
-
function
|
|
111
|
+
function z(e, t, n) {
|
|
113
112
|
e.insertBefore(t, n || null);
|
|
114
113
|
}
|
|
115
|
-
function
|
|
114
|
+
function q(e) {
|
|
116
115
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
116
|
}
|
|
118
|
-
function
|
|
117
|
+
function Et(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 d(e) {
|
|
123
122
|
return document.createElement(e);
|
|
124
123
|
}
|
|
125
|
-
function
|
|
124
|
+
function K(e) {
|
|
126
125
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function te(e) {
|
|
129
128
|
return document.createTextNode(e);
|
|
130
129
|
}
|
|
131
130
|
function b() {
|
|
132
|
-
return
|
|
131
|
+
return te(" ");
|
|
133
132
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
133
|
+
function At() {
|
|
134
|
+
return te("");
|
|
136
135
|
}
|
|
137
|
-
function
|
|
138
|
-
return e.addEventListener(t, n,
|
|
136
|
+
function P(e, t, n, s) {
|
|
137
|
+
return e.addEventListener(t, n, s), () => e.removeEventListener(t, n, s);
|
|
139
138
|
}
|
|
140
|
-
function
|
|
139
|
+
function i(e, t, n) {
|
|
141
140
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
142
141
|
}
|
|
143
|
-
function
|
|
142
|
+
function yt(e, t) {
|
|
144
143
|
for (const n in t)
|
|
145
|
-
|
|
144
|
+
i(e, n, t[n]);
|
|
146
145
|
}
|
|
147
|
-
function
|
|
146
|
+
function de(e) {
|
|
148
147
|
let t;
|
|
149
148
|
return {
|
|
150
149
|
/* push */
|
|
151
150
|
p(...n) {
|
|
152
|
-
t = n, t.forEach((
|
|
151
|
+
t = n, t.forEach((s) => e.push(s));
|
|
153
152
|
},
|
|
154
153
|
/* remove */
|
|
155
154
|
r() {
|
|
@@ -157,13 +156,13 @@ function ce(e) {
|
|
|
157
156
|
}
|
|
158
157
|
};
|
|
159
158
|
}
|
|
160
|
-
function
|
|
159
|
+
function he(e) {
|
|
161
160
|
return Array.from(e.childNodes);
|
|
162
161
|
}
|
|
163
|
-
function
|
|
162
|
+
function Ht(e, t) {
|
|
164
163
|
e.value = t ?? "";
|
|
165
164
|
}
|
|
166
|
-
function
|
|
165
|
+
function ge(e) {
|
|
167
166
|
const t = {};
|
|
168
167
|
return e.childNodes.forEach(
|
|
169
168
|
/** @param {Element} node */
|
|
@@ -172,229 +171,229 @@ function ae(e) {
|
|
|
172
171
|
}
|
|
173
172
|
), t;
|
|
174
173
|
}
|
|
175
|
-
let
|
|
176
|
-
function
|
|
177
|
-
|
|
174
|
+
let Mt;
|
|
175
|
+
function gt(e) {
|
|
176
|
+
Mt = e;
|
|
178
177
|
}
|
|
179
|
-
const
|
|
180
|
-
let
|
|
181
|
-
const
|
|
182
|
-
let
|
|
183
|
-
function
|
|
184
|
-
|
|
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));
|
|
185
184
|
}
|
|
186
|
-
function
|
|
187
|
-
|
|
185
|
+
function Nt(e) {
|
|
186
|
+
at.push(e);
|
|
188
187
|
}
|
|
189
|
-
const
|
|
190
|
-
let
|
|
191
|
-
function
|
|
192
|
-
if (
|
|
188
|
+
const qt = /* @__PURE__ */ new Set();
|
|
189
|
+
let ot = 0;
|
|
190
|
+
function ee() {
|
|
191
|
+
if (ot !== 0)
|
|
193
192
|
return;
|
|
194
|
-
const e =
|
|
193
|
+
const e = Mt;
|
|
195
194
|
do {
|
|
196
195
|
try {
|
|
197
|
-
for (;
|
|
198
|
-
const t =
|
|
199
|
-
|
|
196
|
+
for (; ot < rt.length; ) {
|
|
197
|
+
const t = rt[ot];
|
|
198
|
+
ot++, gt(t), be(t.$$);
|
|
200
199
|
}
|
|
201
200
|
} catch (t) {
|
|
202
|
-
throw
|
|
201
|
+
throw rt.length = 0, ot = 0, t;
|
|
203
202
|
}
|
|
204
|
-
for (
|
|
205
|
-
for (let t = 0; t <
|
|
206
|
-
const n =
|
|
207
|
-
|
|
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());
|
|
208
207
|
}
|
|
209
|
-
|
|
210
|
-
} while (
|
|
211
|
-
for (;
|
|
212
|
-
|
|
213
|
-
|
|
208
|
+
at.length = 0;
|
|
209
|
+
} while (rt.length);
|
|
210
|
+
for (; Tt.length; )
|
|
211
|
+
Tt.pop()();
|
|
212
|
+
Lt = !1, qt.clear(), gt(e);
|
|
214
213
|
}
|
|
215
|
-
function
|
|
214
|
+
function be(e) {
|
|
216
215
|
if (e.fragment !== null) {
|
|
217
|
-
e.update(),
|
|
216
|
+
e.update(), tt(e.before_update);
|
|
218
217
|
const t = e.dirty;
|
|
219
|
-
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);
|
|
220
219
|
}
|
|
221
220
|
}
|
|
222
|
-
function
|
|
221
|
+
function _e(e) {
|
|
223
222
|
const t = [], n = [];
|
|
224
|
-
|
|
223
|
+
at.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), at = t;
|
|
225
224
|
}
|
|
226
|
-
const
|
|
227
|
-
let
|
|
228
|
-
function
|
|
229
|
-
|
|
225
|
+
const _t = /* @__PURE__ */ new Set();
|
|
226
|
+
let nt;
|
|
227
|
+
function ve() {
|
|
228
|
+
nt = {
|
|
230
229
|
r: 0,
|
|
231
230
|
c: [],
|
|
232
|
-
p:
|
|
231
|
+
p: nt
|
|
233
232
|
// parent group
|
|
234
233
|
};
|
|
235
234
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
235
|
+
function $e() {
|
|
236
|
+
nt.r || tt(nt.c), nt = nt.p;
|
|
238
237
|
}
|
|
239
|
-
function
|
|
240
|
-
e && e.i && (
|
|
238
|
+
function O(e, t) {
|
|
239
|
+
e && e.i && (_t.delete(e), e.i(t));
|
|
241
240
|
}
|
|
242
|
-
function
|
|
241
|
+
function Z(e, t, n, s) {
|
|
243
242
|
if (e && e.o) {
|
|
244
|
-
if (
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
if (_t.has(e)) return;
|
|
244
|
+
_t.add(e), nt.c.push(() => {
|
|
245
|
+
_t.delete(e), s && (n && e.d(1), s());
|
|
247
246
|
}), e.o(t);
|
|
248
|
-
} else
|
|
247
|
+
} else s && s();
|
|
249
248
|
}
|
|
250
|
-
function
|
|
249
|
+
function ct(e) {
|
|
251
250
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
252
251
|
}
|
|
253
|
-
function
|
|
254
|
-
const n = {},
|
|
252
|
+
function Pt(e, t) {
|
|
253
|
+
const n = {}, s = {}, l = { $$scope: 1 };
|
|
255
254
|
let o = e.length;
|
|
256
255
|
for (; o--; ) {
|
|
257
|
-
const
|
|
258
|
-
if (
|
|
259
|
-
for (const
|
|
260
|
-
|
|
261
|
-
for (const
|
|
262
|
-
|
|
263
|
-
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;
|
|
264
263
|
} else
|
|
265
|
-
for (const
|
|
266
|
-
|
|
264
|
+
for (const h in r)
|
|
265
|
+
l[h] = 1;
|
|
267
266
|
}
|
|
268
|
-
for (const
|
|
269
|
-
|
|
267
|
+
for (const r in s)
|
|
268
|
+
r in n || (n[r] = void 0);
|
|
270
269
|
return n;
|
|
271
270
|
}
|
|
272
|
-
function
|
|
271
|
+
function we(e) {
|
|
273
272
|
return typeof e == "object" && e !== null ? e : {};
|
|
274
273
|
}
|
|
275
|
-
function
|
|
274
|
+
function pt(e) {
|
|
276
275
|
e && e.c();
|
|
277
276
|
}
|
|
278
|
-
function
|
|
279
|
-
const { fragment:
|
|
280
|
-
|
|
281
|
-
const o = e.$$.on_mount.map(
|
|
282
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
283
|
-
}),
|
|
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);
|
|
284
283
|
}
|
|
285
|
-
function
|
|
284
|
+
function ft(e, t) {
|
|
286
285
|
const n = e.$$;
|
|
287
|
-
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 = []);
|
|
288
287
|
}
|
|
289
|
-
function
|
|
290
|
-
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;
|
|
291
290
|
}
|
|
292
|
-
function
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
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.$$ = {
|
|
296
295
|
fragment: null,
|
|
297
296
|
ctx: [],
|
|
298
297
|
// state
|
|
299
298
|
props: o,
|
|
300
|
-
update:
|
|
301
|
-
not_equal:
|
|
302
|
-
bound:
|
|
299
|
+
update: C,
|
|
300
|
+
not_equal: l,
|
|
301
|
+
bound: Bt(),
|
|
303
302
|
// lifecycle
|
|
304
303
|
on_mount: [],
|
|
305
304
|
on_destroy: [],
|
|
306
305
|
on_disconnect: [],
|
|
307
306
|
before_update: [],
|
|
308
307
|
after_update: [],
|
|
309
|
-
context: new Map(t.context || (
|
|
308
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
310
309
|
// everything else
|
|
311
|
-
callbacks:
|
|
312
|
-
dirty:
|
|
310
|
+
callbacks: Bt(),
|
|
311
|
+
dirty: a,
|
|
313
312
|
skip_bound: !1,
|
|
314
|
-
root: t.target ||
|
|
313
|
+
root: t.target || h.$$.root
|
|
315
314
|
};
|
|
316
|
-
|
|
317
|
-
let
|
|
318
|
-
if (
|
|
319
|
-
const
|
|
320
|
-
return
|
|
321
|
-
}) : [],
|
|
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) {
|
|
322
321
|
if (t.hydrate) {
|
|
323
|
-
const _ =
|
|
324
|
-
|
|
322
|
+
const _ = he(t.target);
|
|
323
|
+
p.fragment && p.fragment.l(_), _.forEach(q);
|
|
325
324
|
} else
|
|
326
|
-
|
|
327
|
-
t.intro &&
|
|
325
|
+
p.fragment && p.fragment.c();
|
|
326
|
+
t.intro && O(e.$$.fragment), ut(e, t.target, t.anchor), ee();
|
|
328
327
|
}
|
|
329
|
-
|
|
328
|
+
gt(h);
|
|
330
329
|
}
|
|
331
|
-
let
|
|
332
|
-
typeof HTMLElement == "function" && (
|
|
333
|
-
constructor(t, n,
|
|
330
|
+
let ne;
|
|
331
|
+
typeof HTMLElement == "function" && (ne = class extends HTMLElement {
|
|
332
|
+
constructor(t, n, s) {
|
|
334
333
|
super();
|
|
335
334
|
/** The Svelte component constructor */
|
|
336
|
-
|
|
335
|
+
V(this, "$$ctor");
|
|
337
336
|
/** Slots */
|
|
338
|
-
|
|
337
|
+
V(this, "$$s");
|
|
339
338
|
/** The Svelte component instance */
|
|
340
|
-
|
|
339
|
+
V(this, "$$c");
|
|
341
340
|
/** Whether or not the custom element is connected */
|
|
342
|
-
|
|
341
|
+
V(this, "$$cn", !1);
|
|
343
342
|
/** Component props data */
|
|
344
|
-
|
|
343
|
+
V(this, "$$d", {});
|
|
345
344
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
346
|
-
|
|
345
|
+
V(this, "$$r", !1);
|
|
347
346
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
348
|
-
|
|
347
|
+
V(this, "$$p_d", {});
|
|
349
348
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
350
|
-
|
|
349
|
+
V(this, "$$l", {});
|
|
351
350
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
352
|
-
|
|
353
|
-
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" });
|
|
354
353
|
}
|
|
355
|
-
addEventListener(t, n,
|
|
354
|
+
addEventListener(t, n, s) {
|
|
356
355
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
357
|
-
const
|
|
358
|
-
this.$$l_u.set(n,
|
|
356
|
+
const l = this.$$c.$on(t, n);
|
|
357
|
+
this.$$l_u.set(n, l);
|
|
359
358
|
}
|
|
360
|
-
super.addEventListener(t, n,
|
|
359
|
+
super.addEventListener(t, n, s);
|
|
361
360
|
}
|
|
362
|
-
removeEventListener(t, n,
|
|
363
|
-
if (super.removeEventListener(t, n,
|
|
364
|
-
const
|
|
365
|
-
|
|
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));
|
|
366
365
|
}
|
|
367
366
|
}
|
|
368
367
|
async connectedCallback() {
|
|
369
368
|
if (this.$$cn = !0, !this.$$c) {
|
|
370
369
|
let t = function(o) {
|
|
371
370
|
return () => {
|
|
372
|
-
let
|
|
371
|
+
let r;
|
|
373
372
|
return {
|
|
374
373
|
c: function() {
|
|
375
|
-
|
|
374
|
+
r = d("slot"), o !== "default" && i(r, "name", o);
|
|
376
375
|
},
|
|
377
376
|
/**
|
|
378
377
|
* @param {HTMLElement} target
|
|
379
378
|
* @param {HTMLElement} [anchor]
|
|
380
379
|
*/
|
|
381
|
-
m: function(
|
|
382
|
-
|
|
380
|
+
m: function(p, w) {
|
|
381
|
+
z(p, r, w);
|
|
383
382
|
},
|
|
384
|
-
d: function(
|
|
385
|
-
|
|
383
|
+
d: function(p) {
|
|
384
|
+
p && q(r);
|
|
386
385
|
}
|
|
387
386
|
};
|
|
388
387
|
};
|
|
389
388
|
};
|
|
390
389
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
391
390
|
return;
|
|
392
|
-
const n = {},
|
|
391
|
+
const n = {}, s = ge(this);
|
|
393
392
|
for (const o of this.$$s)
|
|
394
|
-
o in
|
|
393
|
+
o in s && (n[o] = [t(o)]);
|
|
395
394
|
for (const o of this.attributes) {
|
|
396
|
-
const
|
|
397
|
-
|
|
395
|
+
const r = this.$$g_p(o.name);
|
|
396
|
+
r in this.$$d || (this.$$d[r] = vt(r, 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]);
|
|
@@ -408,34 +407,34 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
408
407
|
}
|
|
409
408
|
}
|
|
410
409
|
});
|
|
411
|
-
const
|
|
410
|
+
const l = () => {
|
|
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
|
|
414
|
+
const r = vt(
|
|
416
415
|
o,
|
|
417
416
|
this.$$d[o],
|
|
418
417
|
this.$$p_d,
|
|
419
418
|
"toAttribute"
|
|
420
419
|
);
|
|
421
|
-
|
|
420
|
+
r == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, r);
|
|
422
421
|
}
|
|
423
422
|
this.$$r = !1;
|
|
424
423
|
};
|
|
425
|
-
this.$$c.$$.after_update.push(
|
|
424
|
+
this.$$c.$$.after_update.push(l), l();
|
|
426
425
|
for (const o in this.$$l)
|
|
427
|
-
for (const
|
|
428
|
-
const
|
|
429
|
-
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);
|
|
430
429
|
}
|
|
431
430
|
this.$$l = {};
|
|
432
431
|
}
|
|
433
432
|
}
|
|
434
433
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
435
434
|
// and setting attributes through setAttribute etc, this is helpful
|
|
436
|
-
attributeChangedCallback(t, n,
|
|
437
|
-
var
|
|
438
|
-
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] }));
|
|
439
438
|
}
|
|
440
439
|
disconnectedCallback() {
|
|
441
440
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -448,13 +447,13 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
448
447
|
) || t;
|
|
449
448
|
}
|
|
450
449
|
});
|
|
451
|
-
function
|
|
450
|
+
function vt(e, t, n, s) {
|
|
452
451
|
var o;
|
|
453
|
-
const
|
|
454
|
-
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])
|
|
455
454
|
return t;
|
|
456
|
-
if (
|
|
457
|
-
switch (
|
|
455
|
+
if (s === "toAttribute")
|
|
456
|
+
switch (l) {
|
|
458
457
|
case "Object":
|
|
459
458
|
case "Array":
|
|
460
459
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -466,7 +465,7 @@ function ut(e, t, n, l) {
|
|
|
466
465
|
return t;
|
|
467
466
|
}
|
|
468
467
|
else
|
|
469
|
-
switch (
|
|
468
|
+
switch (l) {
|
|
470
469
|
case "Object":
|
|
471
470
|
case "Array":
|
|
472
471
|
return t && JSON.parse(t);
|
|
@@ -478,38 +477,38 @@ function ut(e, t, n, l) {
|
|
|
478
477
|
return t;
|
|
479
478
|
}
|
|
480
479
|
}
|
|
481
|
-
function
|
|
482
|
-
let
|
|
480
|
+
function Ct(e, t, n, s, l, o) {
|
|
481
|
+
let r = class extends ne {
|
|
483
482
|
constructor() {
|
|
484
|
-
super(e, n,
|
|
483
|
+
super(e, n, l), this.$$p_d = t;
|
|
485
484
|
}
|
|
486
485
|
static get observedAttributes() {
|
|
487
486
|
return Object.keys(t).map(
|
|
488
|
-
(
|
|
487
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
489
488
|
);
|
|
490
489
|
}
|
|
491
490
|
};
|
|
492
|
-
return Object.keys(t).forEach((
|
|
493
|
-
Object.defineProperty(
|
|
491
|
+
return Object.keys(t).forEach((a) => {
|
|
492
|
+
Object.defineProperty(r.prototype, a, {
|
|
494
493
|
get() {
|
|
495
|
-
return this.$$c &&
|
|
494
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
496
495
|
},
|
|
497
|
-
set(
|
|
498
|
-
var
|
|
499
|
-
|
|
496
|
+
set(h) {
|
|
497
|
+
var p;
|
|
498
|
+
h = vt(a, h, t), this.$$d[a] = h, (p = this.$$c) == null || p.$set({ [a]: h });
|
|
500
499
|
}
|
|
501
500
|
});
|
|
502
|
-
}),
|
|
503
|
-
Object.defineProperty(
|
|
501
|
+
}), s.forEach((a) => {
|
|
502
|
+
Object.defineProperty(r.prototype, a, {
|
|
504
503
|
get() {
|
|
505
|
-
var
|
|
506
|
-
return (
|
|
504
|
+
var h;
|
|
505
|
+
return (h = this.$$c) == null ? void 0 : h[a];
|
|
507
506
|
}
|
|
508
507
|
});
|
|
509
508
|
}), e.element = /** @type {any} */
|
|
510
|
-
|
|
509
|
+
r, r;
|
|
511
510
|
}
|
|
512
|
-
class
|
|
511
|
+
class Y {
|
|
513
512
|
constructor() {
|
|
514
513
|
/**
|
|
515
514
|
* ### PRIVATE API
|
|
@@ -518,7 +517,7 @@ class it {
|
|
|
518
517
|
*
|
|
519
518
|
* @type {any}
|
|
520
519
|
*/
|
|
521
|
-
|
|
520
|
+
V(this, "$$");
|
|
522
521
|
/**
|
|
523
522
|
* ### PRIVATE API
|
|
524
523
|
*
|
|
@@ -526,11 +525,11 @@ class it {
|
|
|
526
525
|
*
|
|
527
526
|
* @type {any}
|
|
528
527
|
*/
|
|
529
|
-
|
|
528
|
+
V(this, "$$set");
|
|
530
529
|
}
|
|
531
530
|
/** @returns {void} */
|
|
532
531
|
$destroy() {
|
|
533
|
-
|
|
532
|
+
ft(this, 1), this.$destroy = C;
|
|
534
533
|
}
|
|
535
534
|
/**
|
|
536
535
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -539,12 +538,12 @@ class it {
|
|
|
539
538
|
* @returns {() => void}
|
|
540
539
|
*/
|
|
541
540
|
$on(t, n) {
|
|
542
|
-
if (!
|
|
543
|
-
return
|
|
544
|
-
const
|
|
545
|
-
return
|
|
546
|
-
const
|
|
547
|
-
|
|
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);
|
|
548
547
|
};
|
|
549
548
|
}
|
|
550
549
|
/**
|
|
@@ -552,122 +551,122 @@ class it {
|
|
|
552
551
|
* @returns {void}
|
|
553
552
|
*/
|
|
554
553
|
$set(t) {
|
|
555
|
-
this.$$set && !
|
|
554
|
+
this.$$set && !ae(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
556
555
|
}
|
|
557
556
|
}
|
|
558
|
-
const
|
|
559
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
560
|
-
function
|
|
561
|
-
|
|
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}}");
|
|
562
561
|
}
|
|
563
|
-
function
|
|
564
|
-
let t, n,
|
|
562
|
+
function ye(e) {
|
|
563
|
+
let t, n, s;
|
|
565
564
|
return {
|
|
566
565
|
c() {
|
|
567
|
-
t =
|
|
566
|
+
t = d("button"), t.textContent = "Login", i(t, "class", "login-btn svelte-1nq6lsq"), i(t, "aria-label", "Log in");
|
|
568
567
|
},
|
|
569
|
-
m(
|
|
570
|
-
|
|
568
|
+
m(l, o) {
|
|
569
|
+
z(l, t, o), n || (s = P(
|
|
571
570
|
t,
|
|
572
571
|
"click",
|
|
573
572
|
/*login*/
|
|
574
573
|
e[2]
|
|
575
574
|
), n = !0);
|
|
576
575
|
},
|
|
577
|
-
p:
|
|
578
|
-
d(
|
|
579
|
-
|
|
576
|
+
p: C,
|
|
577
|
+
d(l) {
|
|
578
|
+
l && q(t), n = !1, s();
|
|
580
579
|
}
|
|
581
580
|
};
|
|
582
581
|
}
|
|
583
|
-
function
|
|
584
|
-
let t, n,
|
|
582
|
+
function Ce(e) {
|
|
583
|
+
let t, n, s, l, o;
|
|
585
584
|
return {
|
|
586
585
|
c() {
|
|
587
|
-
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");
|
|
588
587
|
},
|
|
589
|
-
m(
|
|
590
|
-
|
|
588
|
+
m(r, a) {
|
|
589
|
+
z(r, t, a), c(t, n), l || (o = P(
|
|
591
590
|
t,
|
|
592
591
|
"click",
|
|
593
592
|
/*logout*/
|
|
594
593
|
e[3]
|
|
595
|
-
),
|
|
594
|
+
), l = !0);
|
|
596
595
|
},
|
|
597
|
-
p:
|
|
598
|
-
d(
|
|
599
|
-
|
|
596
|
+
p: C,
|
|
597
|
+
d(r) {
|
|
598
|
+
r && q(t), l = !1, o();
|
|
600
599
|
}
|
|
601
600
|
};
|
|
602
601
|
}
|
|
603
|
-
function
|
|
602
|
+
function qe(e) {
|
|
604
603
|
let t;
|
|
605
604
|
return {
|
|
606
605
|
c() {
|
|
607
|
-
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");
|
|
608
607
|
},
|
|
609
|
-
m(n,
|
|
610
|
-
|
|
608
|
+
m(n, s) {
|
|
609
|
+
z(n, t, s);
|
|
611
610
|
},
|
|
612
|
-
p:
|
|
611
|
+
p: C,
|
|
613
612
|
d(n) {
|
|
614
|
-
n &&
|
|
613
|
+
n && q(t);
|
|
615
614
|
}
|
|
616
615
|
};
|
|
617
616
|
}
|
|
618
|
-
function
|
|
617
|
+
function ze(e) {
|
|
619
618
|
let t;
|
|
620
|
-
function n(o,
|
|
619
|
+
function n(o, r) {
|
|
621
620
|
return (
|
|
622
621
|
/*loading*/
|
|
623
|
-
o[0] ?
|
|
622
|
+
o[0] ? qe : (
|
|
624
623
|
/*loggedIn*/
|
|
625
|
-
o[1] ?
|
|
624
|
+
o[1] ? Ce : ye
|
|
626
625
|
)
|
|
627
626
|
);
|
|
628
627
|
}
|
|
629
|
-
let
|
|
628
|
+
let s = n(e), l = s(e);
|
|
630
629
|
return {
|
|
631
630
|
c() {
|
|
632
|
-
|
|
631
|
+
l.c(), t = At();
|
|
633
632
|
},
|
|
634
|
-
m(o,
|
|
635
|
-
|
|
633
|
+
m(o, r) {
|
|
634
|
+
l.m(o, r), z(o, t, r);
|
|
636
635
|
},
|
|
637
|
-
p(o, [
|
|
638
|
-
|
|
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)));
|
|
639
638
|
},
|
|
640
|
-
i:
|
|
641
|
-
o:
|
|
639
|
+
i: C,
|
|
640
|
+
o: C,
|
|
642
641
|
d(o) {
|
|
643
|
-
o &&
|
|
642
|
+
o && q(t), l.d(o);
|
|
644
643
|
}
|
|
645
644
|
};
|
|
646
645
|
}
|
|
647
|
-
let
|
|
648
|
-
function
|
|
649
|
-
let
|
|
646
|
+
let Ee = "https://via.placeholder.com/50";
|
|
647
|
+
function Le(e, t, n) {
|
|
648
|
+
let s = !1, l = !1;
|
|
650
649
|
const o = async () => {
|
|
651
|
-
n(0,
|
|
652
|
-
},
|
|
653
|
-
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);
|
|
654
653
|
};
|
|
655
|
-
return
|
|
654
|
+
return l = l, [s, l, o, r];
|
|
656
655
|
}
|
|
657
|
-
class
|
|
656
|
+
class se extends Y {
|
|
658
657
|
constructor(t) {
|
|
659
|
-
super(),
|
|
658
|
+
super(), J(this, t, Le, ze, U, {}, je);
|
|
660
659
|
}
|
|
661
660
|
}
|
|
662
|
-
customElements.define("sesamy-login",
|
|
663
|
-
const
|
|
661
|
+
customElements.define("sesamy-login", Ct(se, {}, [], [], !0));
|
|
662
|
+
const on = se;
|
|
664
663
|
/**
|
|
665
664
|
* @license lucide-svelte v0.445.0 - ISC
|
|
666
665
|
*
|
|
667
666
|
* This source code is licensed under the ISC license.
|
|
668
667
|
* See the LICENSE file in the root directory of this source tree.
|
|
669
668
|
*/
|
|
670
|
-
const
|
|
669
|
+
const Wt = {
|
|
671
670
|
xmlns: "http://www.w3.org/2000/svg",
|
|
672
671
|
width: 24,
|
|
673
672
|
height: 24,
|
|
@@ -678,87 +677,87 @@ const St = {
|
|
|
678
677
|
"stroke-linecap": "round",
|
|
679
678
|
"stroke-linejoin": "round"
|
|
680
679
|
};
|
|
681
|
-
function
|
|
682
|
-
const
|
|
683
|
-
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;
|
|
684
683
|
}
|
|
685
|
-
function
|
|
684
|
+
function zt(e) {
|
|
686
685
|
let t, n = [
|
|
687
686
|
/*attrs*/
|
|
688
687
|
e[12]
|
|
689
|
-
],
|
|
690
|
-
for (let
|
|
691
|
-
|
|
688
|
+
], s = {};
|
|
689
|
+
for (let l = 0; l < n.length; l += 1)
|
|
690
|
+
s = X(s, n[l]);
|
|
692
691
|
return {
|
|
693
692
|
c() {
|
|
694
|
-
t =
|
|
693
|
+
t = K(
|
|
695
694
|
/*tag*/
|
|
696
695
|
e[11]
|
|
697
|
-
),
|
|
696
|
+
), yt(t, s);
|
|
698
697
|
},
|
|
699
|
-
m(
|
|
700
|
-
|
|
698
|
+
m(l, o) {
|
|
699
|
+
z(l, t, o);
|
|
701
700
|
},
|
|
702
|
-
p(
|
|
703
|
-
|
|
701
|
+
p(l, o) {
|
|
702
|
+
yt(t, s = Pt(n, [o & /*iconNode*/
|
|
704
703
|
32 && /*attrs*/
|
|
705
|
-
|
|
704
|
+
l[12]]));
|
|
706
705
|
},
|
|
707
|
-
d(
|
|
708
|
-
|
|
706
|
+
d(l) {
|
|
707
|
+
l && q(t);
|
|
709
708
|
}
|
|
710
709
|
};
|
|
711
710
|
}
|
|
712
|
-
function
|
|
711
|
+
function It(e) {
|
|
713
712
|
let t = (
|
|
714
713
|
/*tag*/
|
|
715
714
|
e[11]
|
|
716
|
-
), n,
|
|
715
|
+
), n, s = (
|
|
717
716
|
/*tag*/
|
|
718
|
-
e[11] &&
|
|
717
|
+
e[11] && zt(e)
|
|
719
718
|
);
|
|
720
719
|
return {
|
|
721
720
|
c() {
|
|
722
|
-
|
|
721
|
+
s && s.c(), n = At();
|
|
723
722
|
},
|
|
724
|
-
m(
|
|
725
|
-
|
|
723
|
+
m(l, o) {
|
|
724
|
+
s && s.m(l, o), z(l, n, o);
|
|
726
725
|
},
|
|
727
|
-
p(
|
|
726
|
+
p(l, o) {
|
|
728
727
|
/*tag*/
|
|
729
|
-
|
|
728
|
+
l[11] ? t ? U(
|
|
730
729
|
t,
|
|
731
730
|
/*tag*/
|
|
732
|
-
|
|
733
|
-
) ? (
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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]);
|
|
737
736
|
},
|
|
738
|
-
d(
|
|
739
|
-
|
|
737
|
+
d(l) {
|
|
738
|
+
l && q(n), s && s.d(l);
|
|
740
739
|
}
|
|
741
740
|
};
|
|
742
741
|
}
|
|
743
|
-
function
|
|
744
|
-
let t, n,
|
|
742
|
+
function Ne(e) {
|
|
743
|
+
let t, n, s, l, o, r = ct(
|
|
745
744
|
/*iconNode*/
|
|
746
745
|
e[5]
|
|
747
|
-
),
|
|
748
|
-
for (let
|
|
749
|
-
|
|
750
|
-
const
|
|
746
|
+
), a = [];
|
|
747
|
+
for (let u = 0; u < r.length; u += 1)
|
|
748
|
+
a[u] = It(Vt(e, r, u));
|
|
749
|
+
const h = (
|
|
751
750
|
/*#slots*/
|
|
752
751
|
e[10].default
|
|
753
|
-
),
|
|
754
|
-
|
|
752
|
+
), p = $t(
|
|
753
|
+
h,
|
|
755
754
|
e,
|
|
756
755
|
/*$$scope*/
|
|
757
756
|
e[9],
|
|
758
757
|
null
|
|
759
758
|
);
|
|
760
|
-
let
|
|
761
|
-
|
|
759
|
+
let w = [
|
|
760
|
+
Wt,
|
|
762
761
|
/*$$restProps*/
|
|
763
762
|
e[7],
|
|
764
763
|
{ width: (
|
|
@@ -774,7 +773,7 @@ function Ce(e) {
|
|
|
774
773
|
e[1]
|
|
775
774
|
) },
|
|
776
775
|
{
|
|
777
|
-
"stroke-width":
|
|
776
|
+
"stroke-width": s = /*absoluteStrokeWidth*/
|
|
778
777
|
e[4] ? Number(
|
|
779
778
|
/*strokeWidth*/
|
|
780
779
|
e[3]
|
|
@@ -787,7 +786,7 @@ function Ce(e) {
|
|
|
787
786
|
)
|
|
788
787
|
},
|
|
789
788
|
{
|
|
790
|
-
class:
|
|
789
|
+
class: l = /*mergeClasses*/
|
|
791
790
|
e[6](
|
|
792
791
|
"lucide-icon",
|
|
793
792
|
"lucide",
|
|
@@ -799,134 +798,134 @@ function Ce(e) {
|
|
|
799
798
|
)
|
|
800
799
|
}
|
|
801
800
|
], _ = {};
|
|
802
|
-
for (let
|
|
803
|
-
_ =
|
|
801
|
+
for (let u = 0; u < w.length; u += 1)
|
|
802
|
+
_ = X(_, w[u]);
|
|
804
803
|
return {
|
|
805
804
|
c() {
|
|
806
|
-
t =
|
|
807
|
-
for (let
|
|
808
|
-
|
|
809
|
-
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, _);
|
|
810
809
|
},
|
|
811
|
-
m(
|
|
812
|
-
|
|
813
|
-
for (let
|
|
814
|
-
|
|
815
|
-
|
|
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;
|
|
816
815
|
},
|
|
817
|
-
p(
|
|
818
|
-
if (
|
|
816
|
+
p(u, [$]) {
|
|
817
|
+
if ($ & /*iconNode*/
|
|
819
818
|
32) {
|
|
820
|
-
|
|
819
|
+
r = ct(
|
|
821
820
|
/*iconNode*/
|
|
822
|
-
|
|
821
|
+
u[5]
|
|
823
822
|
);
|
|
824
|
-
let
|
|
825
|
-
for (
|
|
826
|
-
const
|
|
827
|
-
|
|
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));
|
|
828
827
|
}
|
|
829
|
-
for (;
|
|
830
|
-
|
|
831
|
-
|
|
828
|
+
for (; g < a.length; g += 1)
|
|
829
|
+
a[g].d(1);
|
|
830
|
+
a.length = r.length;
|
|
832
831
|
}
|
|
833
|
-
|
|
834
|
-
512) &&
|
|
832
|
+
p && p.p && (!o || $ & /*$$scope*/
|
|
833
|
+
512) && kt(
|
|
834
|
+
p,
|
|
835
835
|
h,
|
|
836
|
-
|
|
837
|
-
c,
|
|
836
|
+
u,
|
|
838
837
|
/*$$scope*/
|
|
839
|
-
|
|
840
|
-
o ?
|
|
841
|
-
|
|
838
|
+
u[9],
|
|
839
|
+
o ? wt(
|
|
840
|
+
h,
|
|
842
841
|
/*$$scope*/
|
|
843
|
-
|
|
844
|
-
|
|
842
|
+
u[9],
|
|
843
|
+
$,
|
|
845
844
|
null
|
|
846
|
-
) :
|
|
845
|
+
) : xt(
|
|
847
846
|
/*$$scope*/
|
|
848
|
-
|
|
847
|
+
u[9]
|
|
849
848
|
),
|
|
850
849
|
null
|
|
851
|
-
),
|
|
852
|
-
|
|
853
|
-
|
|
850
|
+
), yt(t, _ = Pt(w, [
|
|
851
|
+
Wt,
|
|
852
|
+
$ & /*$$restProps*/
|
|
854
853
|
128 && /*$$restProps*/
|
|
855
|
-
|
|
856
|
-
(!o ||
|
|
854
|
+
u[7],
|
|
855
|
+
(!o || $ & /*size*/
|
|
857
856
|
4) && { width: (
|
|
858
857
|
/*size*/
|
|
859
|
-
|
|
858
|
+
u[2]
|
|
860
859
|
) },
|
|
861
|
-
(!o ||
|
|
860
|
+
(!o || $ & /*size*/
|
|
862
861
|
4) && { height: (
|
|
863
862
|
/*size*/
|
|
864
|
-
|
|
863
|
+
u[2]
|
|
865
864
|
) },
|
|
866
|
-
(!o ||
|
|
865
|
+
(!o || $ & /*color*/
|
|
867
866
|
2) && { stroke: (
|
|
868
867
|
/*color*/
|
|
869
|
-
|
|
868
|
+
u[1]
|
|
870
869
|
) },
|
|
871
|
-
(!o ||
|
|
872
|
-
28 &&
|
|
873
|
-
|
|
870
|
+
(!o || $ & /*absoluteStrokeWidth, strokeWidth, size*/
|
|
871
|
+
28 && s !== (s = /*absoluteStrokeWidth*/
|
|
872
|
+
u[4] ? Number(
|
|
874
873
|
/*strokeWidth*/
|
|
875
|
-
|
|
874
|
+
u[3]
|
|
876
875
|
) * 24 / Number(
|
|
877
876
|
/*size*/
|
|
878
|
-
|
|
877
|
+
u[2]
|
|
879
878
|
) : (
|
|
880
879
|
/*strokeWidth*/
|
|
881
|
-
|
|
882
|
-
))) && { "stroke-width":
|
|
883
|
-
(!o ||
|
|
884
|
-
257 &&
|
|
885
|
-
|
|
880
|
+
u[3]
|
|
881
|
+
))) && { "stroke-width": s },
|
|
882
|
+
(!o || $ & /*name, $$props*/
|
|
883
|
+
257 && l !== (l = /*mergeClasses*/
|
|
884
|
+
u[6](
|
|
886
885
|
"lucide-icon",
|
|
887
886
|
"lucide",
|
|
888
887
|
/*name*/
|
|
889
|
-
|
|
890
|
-
|
|
888
|
+
u[0] ? `lucide-${/*name*/
|
|
889
|
+
u[0]}` : "",
|
|
891
890
|
/*$$props*/
|
|
892
|
-
|
|
893
|
-
))) && { class:
|
|
891
|
+
u[8].class
|
|
892
|
+
))) && { class: l }
|
|
894
893
|
]));
|
|
895
894
|
},
|
|
896
|
-
i(
|
|
897
|
-
o || (
|
|
895
|
+
i(u) {
|
|
896
|
+
o || (O(p, u), o = !0);
|
|
898
897
|
},
|
|
899
|
-
o(
|
|
900
|
-
|
|
898
|
+
o(u) {
|
|
899
|
+
Z(p, u), o = !1;
|
|
901
900
|
},
|
|
902
|
-
d(
|
|
903
|
-
|
|
901
|
+
d(u) {
|
|
902
|
+
u && q(t), Et(a, u), p && p.d(u);
|
|
904
903
|
}
|
|
905
904
|
};
|
|
906
905
|
}
|
|
907
|
-
function
|
|
908
|
-
const
|
|
909
|
-
let
|
|
910
|
-
const
|
|
911
|
-
return e.$$set = (
|
|
912
|
-
n(8, t =
|
|
913
|
-
}, t =
|
|
914
|
-
r,
|
|
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), [
|
|
915
913
|
a,
|
|
916
914
|
h,
|
|
917
|
-
|
|
915
|
+
p,
|
|
916
|
+
w,
|
|
918
917
|
_,
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
918
|
+
u,
|
|
919
|
+
$,
|
|
920
|
+
l,
|
|
922
921
|
t,
|
|
923
|
-
|
|
922
|
+
r,
|
|
924
923
|
o
|
|
925
924
|
];
|
|
926
925
|
}
|
|
927
|
-
class
|
|
926
|
+
class Ae extends Y {
|
|
928
927
|
constructor(t) {
|
|
929
|
-
super(),
|
|
928
|
+
super(), J(this, t, Se, Ne, U, {
|
|
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 Me(e) {
|
|
940
939
|
let t;
|
|
941
940
|
const n = (
|
|
942
941
|
/*#slots*/
|
|
943
942
|
e[2].default
|
|
944
|
-
),
|
|
943
|
+
), s = $t(
|
|
945
944
|
n,
|
|
946
945
|
e,
|
|
947
946
|
/*$$scope*/
|
|
@@ -950,46 +949,46 @@ function Le(e) {
|
|
|
950
949
|
);
|
|
951
950
|
return {
|
|
952
951
|
c() {
|
|
953
|
-
|
|
952
|
+
s && s.c();
|
|
954
953
|
},
|
|
955
|
-
m(
|
|
956
|
-
|
|
954
|
+
m(l, o) {
|
|
955
|
+
s && s.m(l, o), t = !0;
|
|
957
956
|
},
|
|
958
|
-
p(
|
|
959
|
-
|
|
960
|
-
8) &&
|
|
961
|
-
l,
|
|
962
|
-
n,
|
|
957
|
+
p(l, o) {
|
|
958
|
+
s && s.p && (!t || o & /*$$scope*/
|
|
959
|
+
8) && kt(
|
|
963
960
|
s,
|
|
961
|
+
n,
|
|
962
|
+
l,
|
|
964
963
|
/*$$scope*/
|
|
965
|
-
|
|
966
|
-
t ?
|
|
964
|
+
l[3],
|
|
965
|
+
t ? wt(
|
|
967
966
|
n,
|
|
968
967
|
/*$$scope*/
|
|
969
|
-
|
|
968
|
+
l[3],
|
|
970
969
|
o,
|
|
971
970
|
null
|
|
972
|
-
) :
|
|
971
|
+
) : xt(
|
|
973
972
|
/*$$scope*/
|
|
974
|
-
|
|
973
|
+
l[3]
|
|
975
974
|
),
|
|
976
975
|
null
|
|
977
976
|
);
|
|
978
977
|
},
|
|
979
|
-
i(
|
|
980
|
-
t || (
|
|
978
|
+
i(l) {
|
|
979
|
+
t || (O(s, l), t = !0);
|
|
981
980
|
},
|
|
982
|
-
o(
|
|
983
|
-
|
|
981
|
+
o(l) {
|
|
982
|
+
Z(s, l), t = !1;
|
|
984
983
|
},
|
|
985
|
-
d(
|
|
986
|
-
|
|
984
|
+
d(l) {
|
|
985
|
+
s && s.d(l);
|
|
987
986
|
}
|
|
988
987
|
};
|
|
989
988
|
}
|
|
990
|
-
function
|
|
989
|
+
function Pe(e) {
|
|
991
990
|
let t, n;
|
|
992
|
-
const
|
|
991
|
+
const s = [
|
|
993
992
|
{ name: "circle-check" },
|
|
994
993
|
/*$$props*/
|
|
995
994
|
e[1],
|
|
@@ -998,225 +997,225 @@ function Se(e) {
|
|
|
998
997
|
e[0]
|
|
999
998
|
) }
|
|
1000
999
|
];
|
|
1001
|
-
let
|
|
1002
|
-
$$slots: { default: [
|
|
1000
|
+
let l = {
|
|
1001
|
+
$$slots: { default: [Me] },
|
|
1003
1002
|
$$scope: { ctx: e }
|
|
1004
1003
|
};
|
|
1005
|
-
for (let o = 0; o <
|
|
1006
|
-
|
|
1007
|
-
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 }), {
|
|
1008
1007
|
c() {
|
|
1009
|
-
|
|
1008
|
+
pt(t.$$.fragment);
|
|
1010
1009
|
},
|
|
1011
|
-
m(o,
|
|
1012
|
-
|
|
1010
|
+
m(o, r) {
|
|
1011
|
+
ut(t, o, r), n = !0;
|
|
1013
1012
|
},
|
|
1014
|
-
p(o, [
|
|
1015
|
-
const
|
|
1016
|
-
3 ?
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
2 &&
|
|
1013
|
+
p(o, [r]) {
|
|
1014
|
+
const a = r & /*$$props, iconNode*/
|
|
1015
|
+
3 ? Pt(s, [
|
|
1016
|
+
s[0],
|
|
1017
|
+
r & /*$$props*/
|
|
1018
|
+
2 && we(
|
|
1020
1019
|
/*$$props*/
|
|
1021
1020
|
o[1]
|
|
1022
1021
|
),
|
|
1023
|
-
|
|
1022
|
+
r & /*iconNode*/
|
|
1024
1023
|
1 && { iconNode: (
|
|
1025
1024
|
/*iconNode*/
|
|
1026
1025
|
o[0]
|
|
1027
1026
|
) }
|
|
1028
1027
|
]) : {};
|
|
1029
|
-
|
|
1030
|
-
8 && (
|
|
1028
|
+
r & /*$$scope*/
|
|
1029
|
+
8 && (a.$$scope = { dirty: r, ctx: o }), t.$set(a);
|
|
1031
1030
|
},
|
|
1032
1031
|
i(o) {
|
|
1033
|
-
n || (
|
|
1032
|
+
n || (O(t.$$.fragment, o), n = !0);
|
|
1034
1033
|
},
|
|
1035
1034
|
o(o) {
|
|
1036
|
-
|
|
1035
|
+
Z(t.$$.fragment, o), n = !1;
|
|
1037
1036
|
},
|
|
1038
1037
|
d(o) {
|
|
1039
|
-
|
|
1038
|
+
ft(t, o);
|
|
1040
1039
|
}
|
|
1041
1040
|
};
|
|
1042
1041
|
}
|
|
1043
|
-
function
|
|
1044
|
-
let { $$slots:
|
|
1042
|
+
function Be(e, t, n) {
|
|
1043
|
+
let { $$slots: s = {}, $$scope: l } = 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
|
-
return e.$$set = (
|
|
1050
|
-
n(1, t =
|
|
1051
|
-
}, 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];
|
|
1052
1051
|
}
|
|
1053
|
-
class
|
|
1052
|
+
class Fe extends Y {
|
|
1054
1053
|
constructor(t) {
|
|
1055
|
-
super(),
|
|
1054
|
+
super(), J(this, t, Be, Pe, U, {});
|
|
1056
1055
|
}
|
|
1057
1056
|
}
|
|
1058
|
-
function
|
|
1059
|
-
const
|
|
1060
|
-
return
|
|
1057
|
+
function Rt(e, t, n) {
|
|
1058
|
+
const s = e.slice();
|
|
1059
|
+
return s[6] = t[n], s;
|
|
1061
1060
|
}
|
|
1062
|
-
function
|
|
1063
|
-
const
|
|
1064
|
-
return
|
|
1061
|
+
function Dt(e, t, n) {
|
|
1062
|
+
const s = e.slice();
|
|
1063
|
+
return s[9] = t[n], s;
|
|
1065
1064
|
}
|
|
1066
|
-
function
|
|
1067
|
-
let t, n,
|
|
1068
|
-
return n = new
|
|
1065
|
+
function Gt(e) {
|
|
1066
|
+
let t, n, s, l, o, r;
|
|
1067
|
+
return n = new Fe({
|
|
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 = d("li"), pt(n.$$.fragment), s = b(), l = d("span"), l.textContent = `${/*feature*/
|
|
1072
|
+
e[9]}`, o = b(), i(t, "class", "flex items-center");
|
|
1074
1073
|
},
|
|
1075
|
-
m(
|
|
1076
|
-
|
|
1074
|
+
m(a, h) {
|
|
1075
|
+
z(a, t, h), ut(n, t, null), c(t, s), c(t, l), c(t, o), r = !0;
|
|
1077
1076
|
},
|
|
1078
|
-
p:
|
|
1079
|
-
i(
|
|
1080
|
-
|
|
1077
|
+
p: C,
|
|
1078
|
+
i(a) {
|
|
1079
|
+
r || (O(n.$$.fragment, a), r = !0);
|
|
1081
1080
|
},
|
|
1082
|
-
o(
|
|
1083
|
-
|
|
1081
|
+
o(a) {
|
|
1082
|
+
Z(n.$$.fragment, a), r = !1;
|
|
1084
1083
|
},
|
|
1085
|
-
d(
|
|
1086
|
-
|
|
1084
|
+
d(a) {
|
|
1085
|
+
a && q(t), ft(n);
|
|
1087
1086
|
}
|
|
1088
1087
|
};
|
|
1089
1088
|
}
|
|
1090
|
-
function
|
|
1089
|
+
function Kt(e) {
|
|
1091
1090
|
let t, n;
|
|
1092
1091
|
return {
|
|
1093
1092
|
c() {
|
|
1094
|
-
t =
|
|
1093
|
+
t = d("img"), Qt(t.src, n = "/api/placeholder/40/25") || i(t, "src", n), i(
|
|
1095
1094
|
t,
|
|
1096
1095
|
"alt",
|
|
1097
1096
|
/*method*/
|
|
1098
1097
|
e[6]
|
|
1099
|
-
),
|
|
1098
|
+
), i(t, "class", "h-6");
|
|
1100
1099
|
},
|
|
1101
|
-
m(
|
|
1102
|
-
|
|
1100
|
+
m(s, l) {
|
|
1101
|
+
z(s, t, l);
|
|
1103
1102
|
},
|
|
1104
|
-
p:
|
|
1105
|
-
d(
|
|
1106
|
-
|
|
1103
|
+
p: C,
|
|
1104
|
+
d(s) {
|
|
1105
|
+
s && q(t);
|
|
1107
1106
|
}
|
|
1108
1107
|
};
|
|
1109
1108
|
}
|
|
1110
|
-
function
|
|
1111
|
-
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(
|
|
1112
1111
|
/*features*/
|
|
1113
1112
|
e[1]
|
|
1114
|
-
),
|
|
1115
|
-
for (let
|
|
1116
|
-
|
|
1117
|
-
const
|
|
1118
|
-
|
|
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;
|
|
1119
1118
|
});
|
|
1120
|
-
let
|
|
1119
|
+
let G = ct(
|
|
1121
1120
|
/*paymentMethods*/
|
|
1122
1121
|
e[2]
|
|
1123
|
-
),
|
|
1124
|
-
for (let
|
|
1125
|
-
|
|
1126
|
-
return
|
|
1122
|
+
), x = [];
|
|
1123
|
+
for (let f = 0; f < G.length; f += 1)
|
|
1124
|
+
x[f] = Kt(Rt(e, G, f));
|
|
1125
|
+
return et = de(
|
|
1127
1126
|
/*$$binding_groups*/
|
|
1128
1127
|
e[4][0]
|
|
1129
1128
|
), {
|
|
1130
1129
|
c() {
|
|
1131
|
-
t =
|
|
1132
|
-
for (let
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
for (let
|
|
1136
|
-
|
|
1137
|
-
|
|
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);
|
|
1138
1137
|
},
|
|
1139
|
-
m(
|
|
1140
|
-
|
|
1141
|
-
for (let
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
e[0],
|
|
1145
|
-
e[0],
|
|
1146
|
-
for (let
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
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
|
+
for (let m = 0; m < x.length; m += 1)
|
|
1146
|
+
x[m] && x[m].m(M, null);
|
|
1147
|
+
N = !0, st || (lt = [
|
|
1148
|
+
P(
|
|
1149
|
+
u,
|
|
1151
1150
|
"change",
|
|
1152
1151
|
/*input0_change_handler*/
|
|
1153
1152
|
e[3]
|
|
1154
1153
|
),
|
|
1155
|
-
|
|
1156
|
-
|
|
1154
|
+
P(
|
|
1155
|
+
k,
|
|
1157
1156
|
"change",
|
|
1158
1157
|
/*input1_change_handler*/
|
|
1159
1158
|
e[5]
|
|
1160
1159
|
)
|
|
1161
|
-
],
|
|
1160
|
+
], st = !0);
|
|
1162
1161
|
},
|
|
1163
|
-
p(
|
|
1164
|
-
if (
|
|
1162
|
+
p(f, [j]) {
|
|
1163
|
+
if (j & /*features*/
|
|
1165
1164
|
2) {
|
|
1166
|
-
|
|
1165
|
+
W = ct(
|
|
1167
1166
|
/*features*/
|
|
1168
|
-
|
|
1167
|
+
f[1]
|
|
1169
1168
|
);
|
|
1170
|
-
let
|
|
1171
|
-
for (
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1169
|
+
let m;
|
|
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));
|
|
1174
1173
|
}
|
|
1175
|
-
for (
|
|
1176
|
-
|
|
1177
|
-
|
|
1174
|
+
for (ve(), m = W.length; m < v.length; m += 1)
|
|
1175
|
+
dt(m);
|
|
1176
|
+
$e();
|
|
1178
1177
|
}
|
|
1179
|
-
if (
|
|
1180
|
-
1 && (
|
|
1181
|
-
|
|
1182
|
-
1 && (
|
|
1183
|
-
|
|
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*/
|
|
1184
1183
|
4) {
|
|
1185
|
-
|
|
1184
|
+
G = ct(
|
|
1186
1185
|
/*paymentMethods*/
|
|
1187
|
-
|
|
1186
|
+
f[2]
|
|
1188
1187
|
);
|
|
1189
|
-
let
|
|
1190
|
-
for (
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1188
|
+
let m;
|
|
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));
|
|
1193
1192
|
}
|
|
1194
|
-
for (;
|
|
1195
|
-
|
|
1196
|
-
|
|
1193
|
+
for (; m < x.length; m += 1)
|
|
1194
|
+
x[m].d(1);
|
|
1195
|
+
x.length = G.length;
|
|
1197
1196
|
}
|
|
1198
1197
|
},
|
|
1199
|
-
i(
|
|
1200
|
-
if (!
|
|
1201
|
-
for (let
|
|
1202
|
-
|
|
1203
|
-
|
|
1198
|
+
i(f) {
|
|
1199
|
+
if (!N) {
|
|
1200
|
+
for (let j = 0; j < W.length; j += 1)
|
|
1201
|
+
O(v[j]);
|
|
1202
|
+
N = !0;
|
|
1204
1203
|
}
|
|
1205
1204
|
},
|
|
1206
|
-
o(
|
|
1207
|
-
|
|
1208
|
-
for (let
|
|
1209
|
-
|
|
1210
|
-
|
|
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;
|
|
1211
1210
|
},
|
|
1212
|
-
d(
|
|
1213
|
-
|
|
1211
|
+
d(f) {
|
|
1212
|
+
f && q(t), Et(v, f), Et(x, f), et.r(), st = !1, tt(lt);
|
|
1214
1213
|
}
|
|
1215
1214
|
};
|
|
1216
1215
|
}
|
|
1217
|
-
function
|
|
1218
|
-
let
|
|
1219
|
-
const
|
|
1216
|
+
function Oe(e, t, n) {
|
|
1217
|
+
let s = "sixMonths";
|
|
1218
|
+
const l = [
|
|
1220
1219
|
"Allt material på Fokus.se",
|
|
1221
1220
|
"Tillgång till e-tidning",
|
|
1222
1221
|
"Tillgång till våra podcasts",
|
|
@@ -1229,146 +1228,361 @@ function Pe(e, t, n) {
|
|
|
1229
1228
|
"Google Pay",
|
|
1230
1229
|
"Apple Pay",
|
|
1231
1230
|
"Swish"
|
|
1232
|
-
],
|
|
1233
|
-
function r() {
|
|
1234
|
-
l = this.__value, n(0, l);
|
|
1235
|
-
}
|
|
1231
|
+
], r = [[]];
|
|
1236
1232
|
function a() {
|
|
1237
|
-
|
|
1233
|
+
s = this.__value, n(0, s);
|
|
1234
|
+
}
|
|
1235
|
+
function h() {
|
|
1236
|
+
s = this.__value, n(0, s);
|
|
1238
1237
|
}
|
|
1239
1238
|
return [
|
|
1240
|
-
l,
|
|
1241
1239
|
s,
|
|
1240
|
+
l,
|
|
1242
1241
|
o,
|
|
1242
|
+
a,
|
|
1243
1243
|
r,
|
|
1244
|
-
|
|
1245
|
-
a
|
|
1244
|
+
h
|
|
1246
1245
|
];
|
|
1247
1246
|
}
|
|
1248
|
-
class
|
|
1247
|
+
class le extends Y {
|
|
1249
1248
|
constructor(t) {
|
|
1250
|
-
super(),
|
|
1249
|
+
super(), J(this, t, Oe, He, U, {});
|
|
1251
1250
|
}
|
|
1252
1251
|
}
|
|
1253
|
-
customElements.define("sesamy-paywall",
|
|
1254
|
-
const
|
|
1252
|
+
customElements.define("sesamy-paywall", Ct(le, {}, [], [], !0));
|
|
1253
|
+
const rn = le;
|
|
1255
1254
|
function Te(e) {
|
|
1256
|
-
|
|
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}');
|
|
1257
1256
|
}
|
|
1258
1257
|
function We(e) {
|
|
1259
|
-
let t, n,
|
|
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;
|
|
1260
1259
|
return {
|
|
1261
1260
|
c() {
|
|
1262
|
-
t =
|
|
1263
|
-
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>,
|
|
1264
1263
|
<a href="#service" class="svelte-phjzbp">Terms of Service</a>, and
|
|
1265
|
-
<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
|
+
},
|
|
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);
|
|
1266
1275
|
},
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1276
|
+
p: C,
|
|
1277
|
+
i: C,
|
|
1278
|
+
o: C,
|
|
1279
|
+
d(M) {
|
|
1280
|
+
M && q(t), H = !1, tt(Q);
|
|
1281
|
+
}
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
function it() {
|
|
1285
|
+
console.log("Button clicked");
|
|
1286
|
+
}
|
|
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*/
|
|
1271
1302
|
e[0]
|
|
1272
|
-
),
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
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);
|
|
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);
|
|
1316
1312
|
},
|
|
1317
|
-
p(
|
|
1318
|
-
|
|
1319
|
-
1 &&
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
/*
|
|
1323
|
-
|
|
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]
|
|
1324
1326
|
);
|
|
1325
1327
|
},
|
|
1326
|
-
i:
|
|
1327
|
-
o:
|
|
1328
|
-
d(
|
|
1329
|
-
|
|
1328
|
+
i: C,
|
|
1329
|
+
o: C,
|
|
1330
|
+
d(s) {
|
|
1331
|
+
s && q(t);
|
|
1330
1332
|
}
|
|
1331
1333
|
};
|
|
1332
1334
|
}
|
|
1333
|
-
function
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
function r() {
|
|
1343
|
-
l("workSchoolLogin");
|
|
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
1344
|
}
|
|
1345
|
-
|
|
1346
|
-
|
|
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 });
|
|
1347
1396
|
}
|
|
1348
|
-
|
|
1349
|
-
|
|
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 });
|
|
1350
1448
|
}
|
|
1351
|
-
return [
|
|
1352
|
-
s,
|
|
1353
|
-
o,
|
|
1354
|
-
i,
|
|
1355
|
-
r,
|
|
1356
|
-
a,
|
|
1357
|
-
h,
|
|
1358
|
-
() => i("google"),
|
|
1359
|
-
() => i("facebook"),
|
|
1360
|
-
() => i("apple")
|
|
1361
|
-
];
|
|
1362
1449
|
}
|
|
1363
|
-
|
|
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 {
|
|
1364
1577
|
constructor(t) {
|
|
1365
|
-
super(),
|
|
1578
|
+
super(), J(this, t, sn, nn, U, {}, Ye);
|
|
1366
1579
|
}
|
|
1367
1580
|
}
|
|
1368
|
-
customElements.define("sesamy-registration-wall",
|
|
1369
|
-
const
|
|
1581
|
+
customElements.define("sesamy-registration-wall", Ct(ie, {}, ["title", "description"], [], !0));
|
|
1582
|
+
const an = ie;
|
|
1370
1583
|
export {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1584
|
+
cn as Hello,
|
|
1585
|
+
on as Login,
|
|
1586
|
+
rn as Paywall,
|
|
1587
|
+
an as RegistrationWall
|
|
1374
1588
|
};
|