@sesamy/sesamy-components 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,335 +1,336 @@
1
- var et = Object.defineProperty;
2
- var tt = (t, e, n) => e in t ? et(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var E = (t, e, n) => tt(t, typeof e != "symbol" ? e + "" : e, n);
1
+ var ne = Object.defineProperty;
2
+ var le = (e, t, n) => t in e ? ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var E = (e, t, n) => le(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { createEventDispatcher as se } from "svelte";
4
5
  function L() {
5
6
  }
6
- function A(t, e) {
7
- for (const n in e) t[n] = e[n];
7
+ function I(e, t) {
8
+ for (const n in t) e[n] = t[n];
8
9
  return (
9
10
  /** @type {T & S} */
10
- t
11
+ e
11
12
  );
12
13
  }
13
- function Be(t) {
14
- return t();
14
+ function Mt(e) {
15
+ return e();
15
16
  }
16
- function Ee() {
17
+ function Ct() {
17
18
  return /* @__PURE__ */ Object.create(null);
18
19
  }
19
- function F(t) {
20
- t.forEach(Be);
20
+ function U(e) {
21
+ e.forEach(Mt);
21
22
  }
22
- function Te(t) {
23
- return typeof t == "function";
23
+ function Bt(e) {
24
+ return typeof e == "function";
24
25
  }
25
- function U(t, e) {
26
- return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
26
+ function et(e, t) {
27
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
27
28
  }
28
- let X;
29
- function Ie(t, e) {
30
- return t === e ? !0 : (X || (X = document.createElement("a")), X.href = e, t === X.href);
29
+ let rt;
30
+ function It(e, t) {
31
+ return e === t ? !0 : (rt || (rt = document.createElement("a")), rt.href = t, e === rt.href);
31
32
  }
32
- function nt(t) {
33
- return Object.keys(t).length === 0;
33
+ function oe(e) {
34
+ return Object.keys(e).length === 0;
34
35
  }
35
- function ze(t, e, n, s) {
36
- if (t) {
37
- const l = De(t, e, n, s);
38
- return t[0](l);
36
+ function Rt(e, t, n, l) {
37
+ if (e) {
38
+ const s = Dt(e, t, n, l);
39
+ return e[0](s);
39
40
  }
40
41
  }
41
- function De(t, e, n, s) {
42
- return t[1] && s ? A(n.ctx.slice(), t[1](s(e))) : n.ctx;
43
- }
44
- function Fe(t, e, n, s) {
45
- if (t[2] && s) {
46
- const l = t[2](s(n));
47
- if (e.dirty === void 0)
48
- return l;
49
- if (typeof l == "object") {
50
- const i = [], o = Math.max(e.dirty.length, l.length);
51
- for (let r = 0; r < o; r += 1)
52
- i[r] = e.dirty[r] | l[r];
53
- return i;
42
+ function Dt(e, t, n, l) {
43
+ return e[1] && l ? I(n.ctx.slice(), e[1](l(t))) : n.ctx;
44
+ }
45
+ function Ft(e, t, n, l) {
46
+ if (e[2] && l) {
47
+ const s = e[2](l(n));
48
+ if (t.dirty === void 0)
49
+ return s;
50
+ if (typeof s == "object") {
51
+ const o = [], i = Math.max(t.dirty.length, s.length);
52
+ for (let r = 0; r < i; r += 1)
53
+ o[r] = t.dirty[r] | s[r];
54
+ return o;
54
55
  }
55
- return e.dirty | l;
56
+ return t.dirty | s;
56
57
  }
57
- return e.dirty;
58
+ return t.dirty;
58
59
  }
59
- function He(t, e, n, s, l, i) {
60
- if (l) {
61
- const o = De(e, n, s, i);
62
- t.p(o, l);
60
+ function Ht(e, t, n, l, s, o) {
61
+ if (s) {
62
+ const i = Dt(t, n, l, o);
63
+ e.p(i, s);
63
64
  }
64
65
  }
65
- function Re(t) {
66
- if (t.ctx.length > 32) {
67
- const e = [], n = t.ctx.length / 32;
68
- for (let s = 0; s < n; s++)
69
- e[s] = -1;
70
- return e;
66
+ function Kt(e) {
67
+ if (e.ctx.length > 32) {
68
+ const t = [], n = e.ctx.length / 32;
69
+ for (let l = 0; l < n; l++)
70
+ t[l] = -1;
71
+ return t;
71
72
  }
72
73
  return -1;
73
74
  }
74
- function te(t) {
75
- const e = {};
76
- for (const n in t) n[0] !== "$" && (e[n] = t[n]);
77
- return e;
75
+ function at(e) {
76
+ const t = {};
77
+ for (const n in e) n[0] !== "$" && (t[n] = e[n]);
78
+ return t;
78
79
  }
79
- function xe(t, e) {
80
+ function zt(e, t) {
80
81
  const n = {};
81
- e = new Set(e);
82
- for (const s in t) !e.has(s) && s[0] !== "$" && (n[s] = t[s]);
82
+ t = new Set(t);
83
+ for (const l in e) !t.has(l) && l[0] !== "$" && (n[l] = e[l]);
83
84
  return n;
84
85
  }
85
- function g(t, e) {
86
- t.appendChild(e);
86
+ function u(e, t) {
87
+ e.appendChild(t);
87
88
  }
88
- function st(t, e, n) {
89
- const s = lt(t);
90
- if (!s.getElementById(e)) {
91
- const l = m("style");
92
- l.id = e, l.textContent = n, it(s, l);
89
+ function Gt(e, t, n) {
90
+ const l = ie(e);
91
+ if (!l.getElementById(t)) {
92
+ const s = p("style");
93
+ s.id = t, s.textContent = n, re(l, s);
93
94
  }
94
95
  }
95
- function lt(t) {
96
- if (!t) return document;
97
- const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
98
- return e && /** @type {ShadowRoot} */
99
- e.host ? (
96
+ function ie(e) {
97
+ if (!e) return document;
98
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
99
+ return t && /** @type {ShadowRoot} */
100
+ t.host ? (
100
101
  /** @type {ShadowRoot} */
101
- e
102
- ) : t.ownerDocument;
102
+ t
103
+ ) : e.ownerDocument;
103
104
  }
104
- function it(t, e) {
105
- return g(
105
+ function re(e, t) {
106
+ return u(
106
107
  /** @type {Document} */
107
- t.head || t,
108
- e
109
- ), e.sheet;
108
+ e.head || e,
109
+ t
110
+ ), t.sheet;
110
111
  }
111
- function N(t, e, n) {
112
- t.insertBefore(e, n || null);
112
+ function S(e, t, n) {
113
+ e.insertBefore(t, n || null);
113
114
  }
114
- function x(t) {
115
- t.parentNode && t.parentNode.removeChild(t);
115
+ function j(e) {
116
+ e.parentNode && e.parentNode.removeChild(e);
116
117
  }
117
- function ae(t, e) {
118
- for (let n = 0; n < t.length; n += 1)
119
- t[n] && t[n].d(e);
118
+ function _t(e, t) {
119
+ for (let n = 0; n < e.length; n += 1)
120
+ e[n] && e[n].d(t);
120
121
  }
121
- function m(t) {
122
- return document.createElement(t);
122
+ function p(e) {
123
+ return document.createElement(e);
123
124
  }
124
- function Ke(t) {
125
- return document.createElementNS("http://www.w3.org/2000/svg", t);
125
+ function Ut(e) {
126
+ return document.createElementNS("http://www.w3.org/2000/svg", e);
126
127
  }
127
- function Ue(t) {
128
- return document.createTextNode(t);
128
+ function Vt(e) {
129
+ return document.createTextNode(e);
129
130
  }
130
- function w() {
131
- return Ue(" ");
131
+ function b() {
132
+ return Vt(" ");
132
133
  }
133
- function _e() {
134
- return Ue("");
134
+ function vt() {
135
+ return Vt("");
135
136
  }
136
- function ne(t, e, n, s) {
137
- return t.addEventListener(e, n, s), () => t.removeEventListener(e, n, s);
137
+ function A(e, t, n, l) {
138
+ return e.addEventListener(t, n, l), () => e.removeEventListener(t, n, l);
138
139
  }
139
- function _(t, e, n) {
140
- n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
140
+ function f(e, t, n) {
141
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
141
142
  }
142
- function se(t, e) {
143
- for (const n in e)
144
- _(t, n, e[n]);
143
+ function ft(e, t) {
144
+ for (const n in t)
145
+ f(e, n, t[n]);
145
146
  }
146
- function ot(t) {
147
- let e;
147
+ function ce(e) {
148
+ let t;
148
149
  return {
149
150
  /* push */
150
151
  p(...n) {
151
- e = n, e.forEach((s) => t.push(s));
152
+ t = n, t.forEach((l) => e.push(l));
152
153
  },
153
154
  /* remove */
154
155
  r() {
155
- e.forEach((n) => t.splice(t.indexOf(n), 1));
156
+ t.forEach((n) => e.splice(e.indexOf(n), 1));
156
157
  }
157
158
  };
158
159
  }
159
- function rt(t) {
160
- return Array.from(t.childNodes);
160
+ function ue(e) {
161
+ return Array.from(e.childNodes);
161
162
  }
162
- function Ne(t, e) {
163
- t.value = e ?? "";
163
+ function dt(e, t) {
164
+ e.value = t ?? "";
164
165
  }
165
- function ct(t) {
166
- const e = {};
167
- return t.childNodes.forEach(
166
+ function ae(e) {
167
+ const t = {};
168
+ return e.childNodes.forEach(
168
169
  /** @param {Element} node */
169
170
  (n) => {
170
- e[n.slot || "default"] = !0;
171
+ t[n.slot || "default"] = !0;
171
172
  }
172
- ), e;
173
- }
174
- let ge;
175
- function K(t) {
176
- ge = t;
177
- }
178
- const T = [], Le = [];
179
- let z = [];
180
- const Ce = [], ut = /* @__PURE__ */ Promise.resolve();
181
- let de = !1;
182
- function ft() {
183
- de || (de = !0, ut.then(Ve));
184
- }
185
- function he(t) {
186
- z.push(t);
187
- }
188
- const ue = /* @__PURE__ */ new Set();
189
- let B = 0;
190
- function Ve() {
191
- if (B !== 0)
173
+ ), t;
174
+ }
175
+ let kt;
176
+ function st(e) {
177
+ kt = e;
178
+ }
179
+ const Q = [], Et = [];
180
+ let Z = [];
181
+ const Lt = [], fe = /* @__PURE__ */ Promise.resolve();
182
+ let bt = !1;
183
+ function de() {
184
+ bt || (bt = !0, fe.then(Jt));
185
+ }
186
+ function $t(e) {
187
+ Z.push(e);
188
+ }
189
+ const gt = /* @__PURE__ */ new Set();
190
+ let Y = 0;
191
+ function Jt() {
192
+ if (Y !== 0)
192
193
  return;
193
- const t = ge;
194
+ const e = kt;
194
195
  do {
195
196
  try {
196
- for (; B < T.length; ) {
197
- const e = T[B];
198
- B++, K(e), at(e.$$);
197
+ for (; Y < Q.length; ) {
198
+ const t = Q[Y];
199
+ Y++, st(t), he(t.$$);
199
200
  }
200
- } catch (e) {
201
- throw T.length = 0, B = 0, e;
201
+ } catch (t) {
202
+ throw Q.length = 0, Y = 0, t;
202
203
  }
203
- for (K(null), T.length = 0, B = 0; Le.length; ) Le.pop()();
204
- for (let e = 0; e < z.length; e += 1) {
205
- const n = z[e];
206
- ue.has(n) || (ue.add(n), n());
204
+ for (st(null), Q.length = 0, Y = 0; Et.length; ) Et.pop()();
205
+ for (let t = 0; t < Z.length; t += 1) {
206
+ const n = Z[t];
207
+ gt.has(n) || (gt.add(n), n());
207
208
  }
208
- z.length = 0;
209
- } while (T.length);
210
- for (; Ce.length; )
211
- Ce.pop()();
212
- de = !1, ue.clear(), K(t);
213
- }
214
- function at(t) {
215
- if (t.fragment !== null) {
216
- t.update(), F(t.before_update);
217
- const e = t.dirty;
218
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(he);
209
+ Z.length = 0;
210
+ } while (Q.length);
211
+ for (; Lt.length; )
212
+ Lt.pop()();
213
+ bt = !1, gt.clear(), st(e);
214
+ }
215
+ function he(e) {
216
+ if (e.fragment !== null) {
217
+ e.update(), U(e.before_update);
218
+ const t = e.dirty;
219
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($t);
219
220
  }
220
221
  }
221
- function dt(t) {
222
- const e = [], n = [];
223
- z.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), z = e;
222
+ function pe(e) {
223
+ const t = [], n = [];
224
+ Z.forEach((l) => e.indexOf(l) === -1 ? t.push(l) : n.push(l)), n.forEach((l) => l()), Z = t;
224
225
  }
225
- const Z = /* @__PURE__ */ new Set();
226
- let P;
227
- function ht() {
228
- P = {
226
+ const ct = /* @__PURE__ */ new Set();
227
+ let G;
228
+ function ge() {
229
+ G = {
229
230
  r: 0,
230
231
  c: [],
231
- p: P
232
+ p: G
232
233
  // parent group
233
234
  };
234
235
  }
235
- function _t() {
236
- P.r || F(P.c), P = P.p;
236
+ function me() {
237
+ G.r || U(G.c), G = G.p;
237
238
  }
238
- function j(t, e) {
239
- t && t.i && (Z.delete(t), t.i(e));
239
+ function B(e, t) {
240
+ e && e.i && (ct.delete(e), e.i(t));
240
241
  }
241
- function D(t, e, n, s) {
242
- if (t && t.o) {
243
- if (Z.has(t)) return;
244
- Z.add(t), P.c.push(() => {
245
- Z.delete(t), s && (n && t.d(1), s());
246
- }), t.o(e);
247
- } else s && s();
242
+ function tt(e, t, n, l) {
243
+ if (e && e.o) {
244
+ if (ct.has(e)) return;
245
+ ct.add(e), G.c.push(() => {
246
+ ct.delete(e), l && (n && e.d(1), l());
247
+ }), e.o(t);
248
+ } else l && l();
248
249
  }
249
- function I(t) {
250
- return (t == null ? void 0 : t.length) !== void 0 ? t : Array.from(t);
250
+ function X(e) {
251
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
251
252
  }
252
- function me(t, e) {
253
- const n = {}, s = {}, l = { $$scope: 1 };
254
- let i = t.length;
255
- for (; i--; ) {
256
- const o = t[i], r = e[i];
253
+ function yt(e, t) {
254
+ const n = {}, l = {}, s = { $$scope: 1 };
255
+ let o = e.length;
256
+ for (; o--; ) {
257
+ const i = e[o], r = t[o];
257
258
  if (r) {
258
- for (const u in o)
259
- u in r || (s[u] = 1);
260
- for (const u in r)
261
- l[u] || (n[u] = r[u], l[u] = 1);
262
- t[i] = r;
259
+ for (const a in i)
260
+ a in r || (l[a] = 1);
261
+ for (const a in r)
262
+ s[a] || (n[a] = r[a], s[a] = 1);
263
+ e[o] = r;
263
264
  } else
264
- for (const u in o)
265
- l[u] = 1;
265
+ for (const a in i)
266
+ s[a] = 1;
266
267
  }
267
- for (const o in s)
268
- o in n || (n[o] = void 0);
268
+ for (const i in l)
269
+ i in n || (n[i] = void 0);
269
270
  return n;
270
271
  }
271
- function gt(t) {
272
- return typeof t == "object" && t !== null ? t : {};
272
+ function _e(e) {
273
+ return typeof e == "object" && e !== null ? e : {};
273
274
  }
274
- function Je(t) {
275
- t && t.c();
275
+ function Yt(e) {
276
+ e && e.c();
276
277
  }
277
- function $e(t, e, n) {
278
- const { fragment: s, after_update: l } = t.$$;
279
- s && s.m(e, n), he(() => {
280
- const i = t.$$.on_mount.map(Be).filter(Te);
281
- t.$$.on_destroy ? t.$$.on_destroy.push(...i) : F(i), t.$$.on_mount = [];
282
- }), l.forEach(he);
278
+ function wt(e, t, n) {
279
+ const { fragment: l, after_update: s } = e.$$;
280
+ l && l.m(t, n), $t(() => {
281
+ const o = e.$$.on_mount.map(Mt).filter(Bt);
282
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : U(o), e.$$.on_mount = [];
283
+ }), s.forEach($t);
283
284
  }
284
- function be(t, e) {
285
- const n = t.$$;
286
- n.fragment !== null && (dt(n.after_update), F(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
285
+ function qt(e, t) {
286
+ const n = e.$$;
287
+ n.fragment !== null && (pe(n.after_update), U(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
287
288
  }
288
- function mt(t, e) {
289
- t.$$.dirty[0] === -1 && (T.push(t), ft(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
289
+ function be(e, t) {
290
+ e.$$.dirty[0] === -1 && (Q.push(e), de(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
290
291
  }
291
- function le(t, e, n, s, l, i, o = null, r = [-1]) {
292
- const u = ge;
293
- K(t);
294
- const a = t.$$ = {
292
+ function ot(e, t, n, l, s, o, i = null, r = [-1]) {
293
+ const a = kt;
294
+ st(e);
295
+ const h = e.$$ = {
295
296
  fragment: null,
296
297
  ctx: [],
297
298
  // state
298
- props: i,
299
+ props: o,
299
300
  update: L,
300
- not_equal: l,
301
- bound: Ee(),
301
+ not_equal: s,
302
+ bound: Ct(),
302
303
  // lifecycle
303
304
  on_mount: [],
304
305
  on_destroy: [],
305
306
  on_disconnect: [],
306
307
  before_update: [],
307
308
  after_update: [],
308
- context: new Map(e.context || (u ? u.$$.context : [])),
309
+ context: new Map(t.context || (a ? a.$$.context : [])),
309
310
  // everything else
310
- callbacks: Ee(),
311
+ callbacks: Ct(),
311
312
  dirty: r,
312
313
  skip_bound: !1,
313
- root: e.target || u.$$.root
314
+ root: t.target || a.$$.root
314
315
  };
315
- o && o(a.root);
316
- let v = !1;
317
- if (a.ctx = n ? n(t, e.props || {}, ($, c, ...p) => {
318
- const f = p.length ? p[0] : c;
319
- return a.ctx && l(a.ctx[$], a.ctx[$] = f) && (!a.skip_bound && a.bound[$] && a.bound[$](f), v && mt(t, $)), c;
320
- }) : [], a.update(), v = !0, F(a.before_update), a.fragment = s ? s(a.ctx) : !1, e.target) {
321
- if (e.hydrate) {
322
- const $ = rt(e.target);
323
- a.fragment && a.fragment.l($), $.forEach(x);
316
+ i && i(h.root);
317
+ let $ = !1;
318
+ if (h.ctx = n ? n(e, t.props || {}, (_, c, ...v) => {
319
+ const d = v.length ? v[0] : c;
320
+ return h.ctx && s(h.ctx[_], h.ctx[_] = d) && (!h.skip_bound && h.bound[_] && h.bound[_](d), $ && be(e, _)), c;
321
+ }) : [], h.update(), $ = !0, U(h.before_update), h.fragment = l ? l(h.ctx) : !1, t.target) {
322
+ if (t.hydrate) {
323
+ const _ = ue(t.target);
324
+ h.fragment && h.fragment.l(_), _.forEach(j);
324
325
  } else
325
- a.fragment && a.fragment.c();
326
- e.intro && j(t.$$.fragment), $e(t, e.target, e.anchor), Ve();
326
+ h.fragment && h.fragment.c();
327
+ t.intro && B(e.$$.fragment), wt(e, t.target, t.anchor), Jt();
327
328
  }
328
- K(u);
329
+ st(a);
329
330
  }
330
- let Ge;
331
- typeof HTMLElement == "function" && (Ge = class extends HTMLElement {
332
- constructor(e, n, s) {
331
+ let Qt;
332
+ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
333
+ constructor(t, n, l) {
333
334
  super();
334
335
  /** The Svelte component constructor */
335
336
  E(this, "$$ctor");
@@ -349,54 +350,54 @@ typeof HTMLElement == "function" && (Ge = class extends HTMLElement {
349
350
  E(this, "$$l", {});
350
351
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
351
352
  E(this, "$$l_u", /* @__PURE__ */ new Map());
352
- this.$$ctor = e, this.$$s = n, s && this.attachShadow({ mode: "open" });
353
+ this.$$ctor = t, this.$$s = n, l && this.attachShadow({ mode: "open" });
353
354
  }
354
- addEventListener(e, n, s) {
355
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(n), this.$$c) {
356
- const l = this.$$c.$on(e, n);
357
- this.$$l_u.set(n, l);
355
+ addEventListener(t, n, l) {
356
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
357
+ const s = this.$$c.$on(t, n);
358
+ this.$$l_u.set(n, s);
358
359
  }
359
- super.addEventListener(e, n, s);
360
+ super.addEventListener(t, n, l);
360
361
  }
361
- removeEventListener(e, n, s) {
362
- if (super.removeEventListener(e, n, s), this.$$c) {
363
- const l = this.$$l_u.get(n);
364
- l && (l(), this.$$l_u.delete(n));
362
+ removeEventListener(t, n, l) {
363
+ if (super.removeEventListener(t, n, l), this.$$c) {
364
+ const s = this.$$l_u.get(n);
365
+ s && (s(), this.$$l_u.delete(n));
365
366
  }
366
367
  }
367
368
  async connectedCallback() {
368
369
  if (this.$$cn = !0, !this.$$c) {
369
- let e = function(i) {
370
+ let t = function(o) {
370
371
  return () => {
371
- let o;
372
+ let i;
372
373
  return {
373
374
  c: function() {
374
- o = m("slot"), i !== "default" && _(o, "name", i);
375
+ i = p("slot"), o !== "default" && f(i, "name", o);
375
376
  },
376
377
  /**
377
378
  * @param {HTMLElement} target
378
379
  * @param {HTMLElement} [anchor]
379
380
  */
380
- m: function(a, v) {
381
- N(a, o, v);
381
+ m: function(h, $) {
382
+ S(h, i, $);
382
383
  },
383
- d: function(a) {
384
- a && x(o);
384
+ d: function(h) {
385
+ h && j(i);
385
386
  }
386
387
  };
387
388
  };
388
389
  };
389
390
  if (await Promise.resolve(), !this.$$cn || this.$$c)
390
391
  return;
391
- const n = {}, s = ct(this);
392
- for (const i of this.$$s)
393
- i in s && (n[i] = [e(i)]);
394
- for (const i of this.attributes) {
395
- const o = this.$$g_p(i.name);
396
- o in this.$$d || (this.$$d[o] = ee(o, i.value, this.$$p_d, "toProp"));
392
+ const n = {}, l = ae(this);
393
+ for (const o of this.$$s)
394
+ o in l && (n[o] = [t(o)]);
395
+ for (const o of this.attributes) {
396
+ const i = this.$$g_p(o.name);
397
+ i in this.$$d || (this.$$d[i] = ut(i, o.value, this.$$p_d, "toProp"));
397
398
  }
398
- for (const i in this.$$p_d)
399
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
399
+ for (const o in this.$$p_d)
400
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
400
401
  this.$$c = new this.$$ctor({
401
402
  target: this.shadowRoot || this,
402
403
  props: {
@@ -407,108 +408,108 @@ typeof HTMLElement == "function" && (Ge = class extends HTMLElement {
407
408
  }
408
409
  }
409
410
  });
410
- const l = () => {
411
+ const s = () => {
411
412
  this.$$r = !0;
412
- for (const i in this.$$p_d)
413
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
414
- const o = ee(
415
- i,
416
- this.$$d[i],
413
+ for (const o in this.$$p_d)
414
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
415
+ const i = ut(
416
+ o,
417
+ this.$$d[o],
417
418
  this.$$p_d,
418
419
  "toAttribute"
419
420
  );
420
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
421
+ i == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, i);
421
422
  }
422
423
  this.$$r = !1;
423
424
  };
424
- this.$$c.$$.after_update.push(l), l();
425
- for (const i in this.$$l)
426
- for (const o of this.$$l[i]) {
427
- const r = this.$$c.$on(i, o);
428
- this.$$l_u.set(o, r);
425
+ this.$$c.$$.after_update.push(s), s();
426
+ for (const o in this.$$l)
427
+ for (const i of this.$$l[o]) {
428
+ const r = this.$$c.$on(o, i);
429
+ this.$$l_u.set(i, r);
429
430
  }
430
431
  this.$$l = {};
431
432
  }
432
433
  }
433
434
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
434
435
  // and setting attributes through setAttribute etc, this is helpful
435
- attributeChangedCallback(e, n, s) {
436
- var l;
437
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ee(e, s, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [e]: this.$$d[e] }));
436
+ attributeChangedCallback(t, n, l) {
437
+ var s;
438
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ut(t, l, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [t]: this.$$d[t] }));
438
439
  }
439
440
  disconnectedCallback() {
440
441
  this.$$cn = !1, Promise.resolve().then(() => {
441
442
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
442
443
  });
443
444
  }
444
- $$g_p(e) {
445
+ $$g_p(t) {
445
446
  return Object.keys(this.$$p_d).find(
446
- (n) => this.$$p_d[n].attribute === e || !this.$$p_d[n].attribute && n.toLowerCase() === e
447
- ) || e;
447
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
448
+ ) || t;
448
449
  }
449
450
  });
450
- function ee(t, e, n, s) {
451
- var i;
452
- const l = (i = n[t]) == null ? void 0 : i.type;
453
- if (e = l === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
454
- return e;
455
- if (s === "toAttribute")
456
- switch (l) {
451
+ function ut(e, t, n, l) {
452
+ var o;
453
+ const s = (o = n[e]) == null ? void 0 : o.type;
454
+ if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !l || !n[e])
455
+ return t;
456
+ if (l === "toAttribute")
457
+ switch (s) {
457
458
  case "Object":
458
459
  case "Array":
459
- return e == null ? null : JSON.stringify(e);
460
+ return t == null ? null : JSON.stringify(t);
460
461
  case "Boolean":
461
- return e ? "" : null;
462
+ return t ? "" : null;
462
463
  case "Number":
463
- return e ?? null;
464
+ return t ?? null;
464
465
  default:
465
- return e;
466
+ return t;
466
467
  }
467
468
  else
468
- switch (l) {
469
+ switch (s) {
469
470
  case "Object":
470
471
  case "Array":
471
- return e && JSON.parse(e);
472
+ return t && JSON.parse(t);
472
473
  case "Boolean":
473
- return e;
474
+ return t;
474
475
  case "Number":
475
- return e != null ? +e : e;
476
+ return t != null ? +t : t;
476
477
  default:
477
- return e;
478
+ return t;
478
479
  }
479
480
  }
480
- function Ye(t, e, n, s, l, i) {
481
- let o = class extends Ge {
481
+ function xt(e, t, n, l, s, o) {
482
+ let i = class extends Qt {
482
483
  constructor() {
483
- super(t, n, l), this.$$p_d = e;
484
+ super(e, n, s), this.$$p_d = t;
484
485
  }
485
486
  static get observedAttributes() {
486
- return Object.keys(e).map(
487
- (r) => (e[r].attribute || r).toLowerCase()
487
+ return Object.keys(t).map(
488
+ (r) => (t[r].attribute || r).toLowerCase()
488
489
  );
489
490
  }
490
491
  };
491
- return Object.keys(e).forEach((r) => {
492
- Object.defineProperty(o.prototype, r, {
492
+ return Object.keys(t).forEach((r) => {
493
+ Object.defineProperty(i.prototype, r, {
493
494
  get() {
494
495
  return this.$$c && r in this.$$c ? this.$$c[r] : this.$$d[r];
495
496
  },
496
- set(u) {
497
- var a;
498
- u = ee(r, u, e), this.$$d[r] = u, (a = this.$$c) == null || a.$set({ [r]: u });
497
+ set(a) {
498
+ var h;
499
+ a = ut(r, a, t), this.$$d[r] = a, (h = this.$$c) == null || h.$set({ [r]: a });
499
500
  }
500
501
  });
501
- }), s.forEach((r) => {
502
- Object.defineProperty(o.prototype, r, {
502
+ }), l.forEach((r) => {
503
+ Object.defineProperty(i.prototype, r, {
503
504
  get() {
504
- var u;
505
- return (u = this.$$c) == null ? void 0 : u[r];
505
+ var a;
506
+ return (a = this.$$c) == null ? void 0 : a[r];
506
507
  }
507
508
  });
508
- }), t.element = /** @type {any} */
509
- o, o;
509
+ }), e.element = /** @type {any} */
510
+ i, i;
510
511
  }
511
- class ie {
512
+ class it {
512
513
  constructor() {
513
514
  /**
514
515
  * ### PRIVATE API
@@ -529,7 +530,7 @@ class ie {
529
530
  }
530
531
  /** @returns {void} */
531
532
  $destroy() {
532
- be(this, 1), this.$destroy = L;
533
+ qt(this, 1), this.$destroy = L;
533
534
  }
534
535
  /**
535
536
  * @template {Extract<keyof Events, string>} K
@@ -537,136 +538,136 @@ class ie {
537
538
  * @param {((e: Events[K]) => void) | null | undefined} callback
538
539
  * @returns {() => void}
539
540
  */
540
- $on(e, n) {
541
- if (!Te(n))
541
+ $on(t, n) {
542
+ if (!Bt(n))
542
543
  return L;
543
- const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
544
- return s.push(n), () => {
545
- const l = s.indexOf(n);
546
- l !== -1 && s.splice(l, 1);
544
+ const l = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
545
+ return l.push(n), () => {
546
+ const s = l.indexOf(n);
547
+ s !== -1 && l.splice(s, 1);
547
548
  };
548
549
  }
549
550
  /**
550
551
  * @param {Partial<Props>} props
551
552
  * @returns {void}
552
553
  */
553
- $set(e) {
554
- this.$$set && !nt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
554
+ $set(t) {
555
+ this.$$set && !oe(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
555
556
  }
556
557
  }
557
- const $t = "4";
558
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($t);
559
- function bt(t) {
560
- st(t, "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}}");
558
+ const $e = "4";
559
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($e);
560
+ function ve(e) {
561
+ Gt(e, "svelte-1nq6lsq", ".login-btn.svelte-1nq6lsq.svelte-1nq6lsq,.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.3s ease;border:none;outline:none}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq{width:120px;height:40px;border-radius:5px;background-color:#007bff;color:white;font-size:16px;font-weight:bold}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq:hover{background-color:#0056b3}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq:focus,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq:focus{outline:2px solid #0056b3;outline-offset:4px}.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq{width:50px;height:50px;border-radius:50%}.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq{background-color:#00bfff;animation:svelte-1nq6lsq-pulse 1s infinite ease-in-out}.avatar-btn.svelte-1nq6lsq img.svelte-1nq6lsq{width:100%;height:100%;object-fit:cover;border-radius:50%}@keyframes svelte-1nq6lsq-pulse{0%{opacity:1}50%{opacity:0.5}100%{opacity:1}}");
561
562
  }
562
- function pt(t) {
563
- let e, n, s;
563
+ function ke(e) {
564
+ let t, n, l;
564
565
  return {
565
566
  c() {
566
- e = m("button"), e.textContent = "Login", _(e, "class", "login-btn svelte-1nq6lsq"), _(e, "aria-label", "Log in");
567
+ t = p("button"), t.textContent = "Login", f(t, "class", "login-btn svelte-1nq6lsq"), f(t, "aria-label", "Log in");
567
568
  },
568
- m(l, i) {
569
- N(l, e, i), n || (s = ne(
570
- e,
569
+ m(s, o) {
570
+ S(s, t, o), n || (l = A(
571
+ t,
571
572
  "click",
572
573
  /*login*/
573
- t[2]
574
+ e[2]
574
575
  ), n = !0);
575
576
  },
576
577
  p: L,
577
- d(l) {
578
- l && x(e), n = !1, s();
578
+ d(s) {
579
+ s && j(t), n = !1, l();
579
580
  }
580
581
  };
581
582
  }
582
- function vt(t) {
583
- let e, n, s, l, i;
583
+ function ye(e) {
584
+ let t, n, l, s, o;
584
585
  return {
585
586
  c() {
586
- e = m("button"), n = m("img"), Ie(n.src, s = qt) || _(n, "src", s), _(n, "alt", "User Avatar"), _(n, "class", "svelte-1nq6lsq"), _(e, "class", "avatar-btn svelte-1nq6lsq"), _(e, "aria-label", "Log out");
587
+ t = p("button"), n = p("img"), It(n.src, l = xe) || f(n, "src", l), f(n, "alt", "User Avatar"), f(n, "class", "svelte-1nq6lsq"), f(t, "class", "avatar-btn svelte-1nq6lsq"), f(t, "aria-label", "Log out");
587
588
  },
588
- m(o, r) {
589
- N(o, e, r), g(e, n), l || (i = ne(
590
- e,
589
+ m(i, r) {
590
+ S(i, t, r), u(t, n), s || (o = A(
591
+ t,
591
592
  "click",
592
593
  /*logout*/
593
- t[3]
594
- ), l = !0);
594
+ e[3]
595
+ ), s = !0);
595
596
  },
596
597
  p: L,
597
- d(o) {
598
- o && x(e), l = !1, i();
598
+ d(i) {
599
+ i && j(t), s = !1, o();
599
600
  }
600
601
  };
601
602
  }
602
- function kt(t) {
603
- let e;
603
+ function we(e) {
604
+ let t;
604
605
  return {
605
606
  c() {
606
- e = m("button"), e.innerHTML = "", _(e, "class", "loading-btn svelte-1nq6lsq"), _(e, "aria-busy", "true"), _(e, "aria-label", "Logging in");
607
+ t = p("button"), t.innerHTML = "", f(t, "class", "loading-btn svelte-1nq6lsq"), f(t, "aria-busy", "true"), f(t, "aria-label", "Logging in");
607
608
  },
608
- m(n, s) {
609
- N(n, e, s);
609
+ m(n, l) {
610
+ S(n, t, l);
610
611
  },
611
612
  p: L,
612
613
  d(n) {
613
- n && x(e);
614
+ n && j(t);
614
615
  }
615
616
  };
616
617
  }
617
- function yt(t) {
618
- let e;
619
- function n(i, o) {
618
+ function qe(e) {
619
+ let t;
620
+ function n(o, i) {
620
621
  return (
621
622
  /*loading*/
622
- i[0] ? kt : (
623
+ o[0] ? we : (
623
624
  /*loggedIn*/
624
- i[1] ? vt : pt
625
+ o[1] ? ye : ke
625
626
  )
626
627
  );
627
628
  }
628
- let s = n(t), l = s(t);
629
+ let l = n(e), s = l(e);
629
630
  return {
630
631
  c() {
631
- l.c(), e = _e();
632
+ s.c(), t = vt();
632
633
  },
633
- m(i, o) {
634
- l.m(i, o), N(i, e, o);
634
+ m(o, i) {
635
+ s.m(o, i), S(o, t, i);
635
636
  },
636
- p(i, [o]) {
637
- s === (s = n(i)) && l ? l.p(i, o) : (l.d(1), l = s(i), l && (l.c(), l.m(e.parentNode, e)));
637
+ p(o, [i]) {
638
+ l === (l = n(o)) && s ? s.p(o, i) : (s.d(1), s = l(o), s && (s.c(), s.m(t.parentNode, t)));
638
639
  },
639
640
  i: L,
640
641
  o: L,
641
- d(i) {
642
- i && x(e), l.d(i);
642
+ d(o) {
643
+ o && j(t), s.d(o);
643
644
  }
644
645
  };
645
646
  }
646
- let qt = "https://via.placeholder.com/50";
647
- function wt(t, e, n) {
648
- let s = !1, l = !1;
649
- const i = async () => {
650
- n(0, s = !0), await new Promise((u) => setTimeout(u, 2e3)), n(0, s = !1), n(1, l = !0);
651
- }, o = () => {
652
- n(1, l = !1);
647
+ let xe = "https://via.placeholder.com/50";
648
+ function je(e, t, n) {
649
+ let l = !1, s = !1;
650
+ const o = async () => {
651
+ n(0, l = !0), await new Promise((a) => setTimeout(a, 2e3)), n(0, l = !1), n(1, s = !0);
652
+ }, i = () => {
653
+ n(1, s = !1);
653
654
  };
654
- return l = l, [s, l, i, o];
655
+ return s = s, [l, s, o, i];
655
656
  }
656
- class Qe extends ie {
657
- constructor(e) {
658
- super(), le(this, e, wt, yt, U, {}, bt);
657
+ class Xt extends it {
658
+ constructor(t) {
659
+ super(), ot(this, t, je, qe, et, {}, ve);
659
660
  }
660
661
  }
661
- customElements.define("sesamy-login", Ye(Qe, {}, [], [], !0));
662
- const Mt = Qe;
662
+ customElements.define("sesamy-login", xt(Xt, {}, [], [], !0));
663
+ const Re = Xt;
663
664
  /**
664
665
  * @license lucide-svelte v0.445.0 - ISC
665
666
  *
666
667
  * This source code is licensed under the ISC license.
667
668
  * See the LICENSE file in the root directory of this source tree.
668
669
  */
669
- const Se = {
670
+ const St = {
670
671
  xmlns: "http://www.w3.org/2000/svg",
671
672
  width: 24,
672
673
  height: 24,
@@ -677,198 +678,198 @@ const Se = {
677
678
  "stroke-linecap": "round",
678
679
  "stroke-linejoin": "round"
679
680
  };
680
- function je(t, e, n) {
681
- const s = t.slice();
682
- return s[11] = e[n][0], s[12] = e[n][1], s;
681
+ function Nt(e, t, n) {
682
+ const l = e.slice();
683
+ return l[11] = t[n][0], l[12] = t[n][1], l;
683
684
  }
684
- function fe(t) {
685
- let e, n = [
685
+ function mt(e) {
686
+ let t, n = [
686
687
  /*attrs*/
687
- t[12]
688
- ], s = {};
689
- for (let l = 0; l < n.length; l += 1)
690
- s = A(s, n[l]);
688
+ e[12]
689
+ ], l = {};
690
+ for (let s = 0; s < n.length; s += 1)
691
+ l = I(l, n[s]);
691
692
  return {
692
693
  c() {
693
- e = Ke(
694
+ t = Ut(
694
695
  /*tag*/
695
- t[11]
696
- ), se(e, s);
696
+ e[11]
697
+ ), ft(t, l);
697
698
  },
698
- m(l, i) {
699
- N(l, e, i);
699
+ m(s, o) {
700
+ S(s, t, o);
700
701
  },
701
- p(l, i) {
702
- se(e, s = me(n, [i & /*iconNode*/
702
+ p(s, o) {
703
+ ft(t, l = yt(n, [o & /*iconNode*/
703
704
  32 && /*attrs*/
704
- l[12]]));
705
+ s[12]]));
705
706
  },
706
- d(l) {
707
- l && x(e);
707
+ d(s) {
708
+ s && j(t);
708
709
  }
709
710
  };
710
711
  }
711
- function Ae(t) {
712
- let e = (
712
+ function At(e) {
713
+ let t = (
713
714
  /*tag*/
714
- t[11]
715
- ), n, s = (
715
+ e[11]
716
+ ), n, l = (
716
717
  /*tag*/
717
- t[11] && fe(t)
718
+ e[11] && mt(e)
718
719
  );
719
720
  return {
720
721
  c() {
721
- s && s.c(), n = _e();
722
+ l && l.c(), n = vt();
722
723
  },
723
- m(l, i) {
724
- s && s.m(l, i), N(l, n, i);
724
+ m(s, o) {
725
+ l && l.m(s, o), S(s, n, o);
725
726
  },
726
- p(l, i) {
727
+ p(s, o) {
727
728
  /*tag*/
728
- l[11] ? e ? U(
729
- e,
729
+ s[11] ? t ? et(
730
+ t,
730
731
  /*tag*/
731
- l[11]
732
- ) ? (s.d(1), s = fe(l), e = /*tag*/
733
- l[11], s.c(), s.m(n.parentNode, n)) : s.p(l, i) : (s = fe(l), e = /*tag*/
734
- l[11], s.c(), s.m(n.parentNode, n)) : e && (s.d(1), s = null, e = /*tag*/
735
- l[11]);
732
+ s[11]
733
+ ) ? (l.d(1), l = mt(s), t = /*tag*/
734
+ s[11], l.c(), l.m(n.parentNode, n)) : l.p(s, o) : (l = mt(s), t = /*tag*/
735
+ s[11], l.c(), l.m(n.parentNode, n)) : t && (l.d(1), l = null, t = /*tag*/
736
+ s[11]);
736
737
  },
737
- d(l) {
738
- l && x(n), s && s.d(l);
738
+ d(s) {
739
+ s && j(n), l && l.d(s);
739
740
  }
740
741
  };
741
742
  }
742
- function Et(t) {
743
- let e, n, s, l, i, o = I(
743
+ function Ce(e) {
744
+ let t, n, l, s, o, i = X(
744
745
  /*iconNode*/
745
- t[5]
746
+ e[5]
746
747
  ), r = [];
747
- for (let c = 0; c < o.length; c += 1)
748
- r[c] = Ae(je(t, o, c));
749
- const u = (
748
+ for (let c = 0; c < i.length; c += 1)
749
+ r[c] = At(Nt(e, i, c));
750
+ const a = (
750
751
  /*#slots*/
751
- t[10].default
752
- ), a = ze(
753
- u,
754
- t,
752
+ e[10].default
753
+ ), h = Rt(
754
+ a,
755
+ e,
755
756
  /*$$scope*/
756
- t[9],
757
+ e[9],
757
758
  null
758
759
  );
759
- let v = [
760
- Se,
760
+ let $ = [
761
+ St,
761
762
  /*$$restProps*/
762
- t[7],
763
+ e[7],
763
764
  { width: (
764
765
  /*size*/
765
- t[2]
766
+ e[2]
766
767
  ) },
767
768
  { height: (
768
769
  /*size*/
769
- t[2]
770
+ e[2]
770
771
  ) },
771
772
  { stroke: (
772
773
  /*color*/
773
- t[1]
774
+ e[1]
774
775
  ) },
775
776
  {
776
- "stroke-width": s = /*absoluteStrokeWidth*/
777
- t[4] ? Number(
777
+ "stroke-width": l = /*absoluteStrokeWidth*/
778
+ e[4] ? Number(
778
779
  /*strokeWidth*/
779
- t[3]
780
+ e[3]
780
781
  ) * 24 / Number(
781
782
  /*size*/
782
- t[2]
783
+ e[2]
783
784
  ) : (
784
785
  /*strokeWidth*/
785
- t[3]
786
+ e[3]
786
787
  )
787
788
  },
788
789
  {
789
- class: l = /*mergeClasses*/
790
- t[6](
790
+ class: s = /*mergeClasses*/
791
+ e[6](
791
792
  "lucide-icon",
792
793
  "lucide",
793
794
  /*name*/
794
- t[0] ? `lucide-${/*name*/
795
- t[0]}` : "",
795
+ e[0] ? `lucide-${/*name*/
796
+ e[0]}` : "",
796
797
  /*$$props*/
797
- t[8].class
798
+ e[8].class
798
799
  )
799
800
  }
800
- ], $ = {};
801
- for (let c = 0; c < v.length; c += 1)
802
- $ = A($, v[c]);
801
+ ], _ = {};
802
+ for (let c = 0; c < $.length; c += 1)
803
+ _ = I(_, $[c]);
803
804
  return {
804
805
  c() {
805
- e = Ke("svg");
806
+ t = Ut("svg");
806
807
  for (let c = 0; c < r.length; c += 1)
807
808
  r[c].c();
808
- n = _e(), a && a.c(), se(e, $);
809
+ n = vt(), h && h.c(), ft(t, _);
809
810
  },
810
- m(c, p) {
811
- N(c, e, p);
812
- for (let f = 0; f < r.length; f += 1)
813
- r[f] && r[f].m(e, null);
814
- g(e, n), a && a.m(e, null), i = !0;
811
+ m(c, v) {
812
+ S(c, t, v);
813
+ for (let d = 0; d < r.length; d += 1)
814
+ r[d] && r[d].m(t, null);
815
+ u(t, n), h && h.m(t, null), o = !0;
815
816
  },
816
- p(c, [p]) {
817
- if (p & /*iconNode*/
817
+ p(c, [v]) {
818
+ if (v & /*iconNode*/
818
819
  32) {
819
- o = I(
820
+ i = X(
820
821
  /*iconNode*/
821
822
  c[5]
822
823
  );
823
- let f;
824
- for (f = 0; f < o.length; f += 1) {
825
- const C = je(c, o, f);
826
- r[f] ? r[f].p(C, p) : (r[f] = Ae(C), r[f].c(), r[f].m(e, n));
824
+ let d;
825
+ for (d = 0; d < i.length; d += 1) {
826
+ const N = Nt(c, i, d);
827
+ r[d] ? r[d].p(N, v) : (r[d] = At(N), r[d].c(), r[d].m(t, n));
827
828
  }
828
- for (; f < r.length; f += 1)
829
- r[f].d(1);
830
- r.length = o.length;
829
+ for (; d < r.length; d += 1)
830
+ r[d].d(1);
831
+ r.length = i.length;
831
832
  }
832
- a && a.p && (!i || p & /*$$scope*/
833
- 512) && He(
833
+ h && h.p && (!o || v & /*$$scope*/
834
+ 512) && Ht(
835
+ h,
834
836
  a,
835
- u,
836
837
  c,
837
838
  /*$$scope*/
838
839
  c[9],
839
- i ? Fe(
840
- u,
840
+ o ? Ft(
841
+ a,
841
842
  /*$$scope*/
842
843
  c[9],
843
- p,
844
+ v,
844
845
  null
845
- ) : Re(
846
+ ) : Kt(
846
847
  /*$$scope*/
847
848
  c[9]
848
849
  ),
849
850
  null
850
- ), se(e, $ = me(v, [
851
- Se,
852
- p & /*$$restProps*/
851
+ ), ft(t, _ = yt($, [
852
+ St,
853
+ v & /*$$restProps*/
853
854
  128 && /*$$restProps*/
854
855
  c[7],
855
- (!i || p & /*size*/
856
+ (!o || v & /*size*/
856
857
  4) && { width: (
857
858
  /*size*/
858
859
  c[2]
859
860
  ) },
860
- (!i || p & /*size*/
861
+ (!o || v & /*size*/
861
862
  4) && { height: (
862
863
  /*size*/
863
864
  c[2]
864
865
  ) },
865
- (!i || p & /*color*/
866
+ (!o || v & /*color*/
866
867
  2) && { stroke: (
867
868
  /*color*/
868
869
  c[1]
869
870
  ) },
870
- (!i || p & /*absoluteStrokeWidth, strokeWidth, size*/
871
- 28 && s !== (s = /*absoluteStrokeWidth*/
871
+ (!o || v & /*absoluteStrokeWidth, strokeWidth, size*/
872
+ 28 && l !== (l = /*absoluteStrokeWidth*/
872
873
  c[4] ? Number(
873
874
  /*strokeWidth*/
874
875
  c[3]
@@ -878,9 +879,9 @@ function Et(t) {
878
879
  ) : (
879
880
  /*strokeWidth*/
880
881
  c[3]
881
- ))) && { "stroke-width": s },
882
- (!i || p & /*name, $$props*/
883
- 257 && l !== (l = /*mergeClasses*/
882
+ ))) && { "stroke-width": l },
883
+ (!o || v & /*name, $$props*/
884
+ 257 && s !== (s = /*mergeClasses*/
884
885
  c[6](
885
886
  "lucide-icon",
886
887
  "lucide",
@@ -889,43 +890,43 @@ function Et(t) {
889
890
  c[0]}` : "",
890
891
  /*$$props*/
891
892
  c[8].class
892
- ))) && { class: l }
893
+ ))) && { class: s }
893
894
  ]));
894
895
  },
895
896
  i(c) {
896
- i || (j(a, c), i = !0);
897
+ o || (B(h, c), o = !0);
897
898
  },
898
899
  o(c) {
899
- D(a, c), i = !1;
900
+ tt(h, c), o = !1;
900
901
  },
901
902
  d(c) {
902
- c && x(e), ae(r, c), a && a.d(c);
903
+ c && j(t), _t(r, c), h && h.d(c);
903
904
  }
904
905
  };
905
906
  }
906
- function xt(t, e, n) {
907
- const s = ["name", "color", "size", "strokeWidth", "absoluteStrokeWidth", "iconNode"];
908
- let l = xe(e, s), { $$slots: i = {}, $$scope: o } = e, { name: r = void 0 } = e, { color: u = "currentColor" } = e, { size: a = 24 } = e, { strokeWidth: v = 2 } = e, { absoluteStrokeWidth: $ = !1 } = e, { iconNode: c = [] } = e;
909
- const p = (...f) => f.filter((C, M, V) => !!C && V.indexOf(C) === M).join(" ");
910
- return t.$$set = (f) => {
911
- n(8, e = A(A({}, e), te(f))), n(7, l = xe(e, s)), "name" in f && n(0, r = f.name), "color" in f && n(1, u = f.color), "size" in f && n(2, a = f.size), "strokeWidth" in f && n(3, v = f.strokeWidth), "absoluteStrokeWidth" in f && n(4, $ = f.absoluteStrokeWidth), "iconNode" in f && n(5, c = f.iconNode), "$$scope" in f && n(9, o = f.$$scope);
912
- }, e = te(e), [
907
+ function ze(e, t, n) {
908
+ 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: a = "currentColor" } = t, { size: h = 24 } = t, { strokeWidth: $ = 2 } = t, { absoluteStrokeWidth: _ = !1 } = t, { iconNode: c = [] } = t;
910
+ const v = (...d) => d.filter((N, C, R) => !!N && R.indexOf(N) === C).join(" ");
911
+ return e.$$set = (d) => {
912
+ n(8, t = I(I({}, t), at(d))), n(7, s = zt(t, l)), "name" in d && n(0, r = d.name), "color" in d && n(1, a = 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);
913
+ }, t = at(t), [
913
914
  r,
914
- u,
915
915
  a,
916
- v,
916
+ h,
917
917
  $,
918
+ _,
918
919
  c,
919
- p,
920
- l,
921
- e,
922
- o,
923
- i
920
+ v,
921
+ s,
922
+ t,
923
+ i,
924
+ o
924
925
  ];
925
926
  }
926
- class Nt extends ie {
927
- constructor(e) {
928
- super(), le(this, e, xt, Et, U, {
927
+ class Ee extends it {
928
+ constructor(t) {
929
+ super(), ot(this, t, ze, Ce, et, {
929
930
  name: 0,
930
931
  color: 1,
931
932
  size: 2,
@@ -935,292 +936,292 @@ class Nt extends ie {
935
936
  });
936
937
  }
937
938
  }
938
- function Lt(t) {
939
- let e;
939
+ function Le(e) {
940
+ let t;
940
941
  const n = (
941
942
  /*#slots*/
942
- t[2].default
943
- ), s = ze(
943
+ e[2].default
944
+ ), l = Rt(
944
945
  n,
945
- t,
946
+ e,
946
947
  /*$$scope*/
947
- t[3],
948
+ e[3],
948
949
  null
949
950
  );
950
951
  return {
951
952
  c() {
952
- s && s.c();
953
+ l && l.c();
953
954
  },
954
- m(l, i) {
955
- s && s.m(l, i), e = !0;
955
+ m(s, o) {
956
+ l && l.m(s, o), t = !0;
956
957
  },
957
- p(l, i) {
958
- s && s.p && (!e || i & /*$$scope*/
959
- 8) && He(
960
- s,
961
- n,
958
+ p(s, o) {
959
+ l && l.p && (!t || o & /*$$scope*/
960
+ 8) && Ht(
962
961
  l,
962
+ n,
963
+ s,
963
964
  /*$$scope*/
964
- l[3],
965
- e ? Fe(
965
+ s[3],
966
+ t ? Ft(
966
967
  n,
967
968
  /*$$scope*/
968
- l[3],
969
- i,
969
+ s[3],
970
+ o,
970
971
  null
971
- ) : Re(
972
+ ) : Kt(
972
973
  /*$$scope*/
973
- l[3]
974
+ s[3]
974
975
  ),
975
976
  null
976
977
  );
977
978
  },
978
- i(l) {
979
- e || (j(s, l), e = !0);
979
+ i(s) {
980
+ t || (B(l, s), t = !0);
980
981
  },
981
- o(l) {
982
- D(s, l), e = !1;
982
+ o(s) {
983
+ tt(l, s), t = !1;
983
984
  },
984
- d(l) {
985
- s && s.d(l);
985
+ d(s) {
986
+ l && l.d(s);
986
987
  }
987
988
  };
988
989
  }
989
- function Ct(t) {
990
- let e, n;
991
- const s = [
990
+ function Se(e) {
991
+ let t, n;
992
+ const l = [
992
993
  { name: "circle-check" },
993
994
  /*$$props*/
994
- t[1],
995
+ e[1],
995
996
  { iconNode: (
996
997
  /*iconNode*/
997
- t[0]
998
+ e[0]
998
999
  ) }
999
1000
  ];
1000
- let l = {
1001
- $$slots: { default: [Lt] },
1002
- $$scope: { ctx: t }
1001
+ let s = {
1002
+ $$slots: { default: [Le] },
1003
+ $$scope: { ctx: e }
1003
1004
  };
1004
- for (let i = 0; i < s.length; i += 1)
1005
- l = A(l, s[i]);
1006
- return e = new Nt({ props: l }), {
1005
+ for (let o = 0; o < l.length; o += 1)
1006
+ s = I(s, l[o]);
1007
+ return t = new Ee({ props: s }), {
1007
1008
  c() {
1008
- Je(e.$$.fragment);
1009
+ Yt(t.$$.fragment);
1009
1010
  },
1010
- m(i, o) {
1011
- $e(e, i, o), n = !0;
1011
+ m(o, i) {
1012
+ wt(t, o, i), n = !0;
1012
1013
  },
1013
- p(i, [o]) {
1014
- const r = o & /*$$props, iconNode*/
1015
- 3 ? me(s, [
1016
- s[0],
1017
- o & /*$$props*/
1018
- 2 && gt(
1014
+ p(o, [i]) {
1015
+ const r = i & /*$$props, iconNode*/
1016
+ 3 ? yt(l, [
1017
+ l[0],
1018
+ i & /*$$props*/
1019
+ 2 && _e(
1019
1020
  /*$$props*/
1020
- i[1]
1021
+ o[1]
1021
1022
  ),
1022
- o & /*iconNode*/
1023
+ i & /*iconNode*/
1023
1024
  1 && { iconNode: (
1024
1025
  /*iconNode*/
1025
- i[0]
1026
+ o[0]
1026
1027
  ) }
1027
1028
  ]) : {};
1028
- o & /*$$scope*/
1029
- 8 && (r.$$scope = { dirty: o, ctx: i }), e.$set(r);
1029
+ i & /*$$scope*/
1030
+ 8 && (r.$$scope = { dirty: i, ctx: o }), t.$set(r);
1030
1031
  },
1031
- i(i) {
1032
- n || (j(e.$$.fragment, i), n = !0);
1032
+ i(o) {
1033
+ n || (B(t.$$.fragment, o), n = !0);
1033
1034
  },
1034
- o(i) {
1035
- D(e.$$.fragment, i), n = !1;
1035
+ o(o) {
1036
+ tt(t.$$.fragment, o), n = !1;
1036
1037
  },
1037
- d(i) {
1038
- be(e, i);
1038
+ d(o) {
1039
+ qt(t, o);
1039
1040
  }
1040
1041
  };
1041
1042
  }
1042
- function St(t, e, n) {
1043
- let { $$slots: s = {}, $$scope: l } = e;
1044
- const i = [
1043
+ function Ne(e, t, n) {
1044
+ let { $$slots: l = {}, $$scope: s } = t;
1045
+ const o = [
1045
1046
  ["circle", { cx: "12", cy: "12", r: "10" }],
1046
1047
  ["path", { d: "m9 12 2 2 4-4" }]
1047
1048
  ];
1048
- return t.$$set = (o) => {
1049
- n(1, e = A(A({}, e), te(o))), "$$scope" in o && n(3, l = o.$$scope);
1050
- }, e = te(e), [i, e, s, l];
1049
+ return e.$$set = (i) => {
1050
+ n(1, t = I(I({}, t), at(i))), "$$scope" in i && n(3, s = i.$$scope);
1051
+ }, t = at(t), [o, t, l, s];
1051
1052
  }
1052
- class jt extends ie {
1053
- constructor(e) {
1054
- super(), le(this, e, St, Ct, U, {});
1053
+ class Ae extends it {
1054
+ constructor(t) {
1055
+ super(), ot(this, t, Ne, Se, et, {});
1055
1056
  }
1056
1057
  }
1057
- function Oe(t, e, n) {
1058
- const s = t.slice();
1059
- return s[6] = e[n], s;
1058
+ function Ot(e, t, n) {
1059
+ const l = e.slice();
1060
+ return l[6] = t[n], l;
1060
1061
  }
1061
- function Pe(t, e, n) {
1062
- const s = t.slice();
1063
- return s[9] = e[n], s;
1062
+ function Pt(e, t, n) {
1063
+ const l = e.slice();
1064
+ return l[9] = t[n], l;
1064
1065
  }
1065
- function Me(t) {
1066
- let e, n, s, l, i, o;
1067
- return n = new jt({
1066
+ function Tt(e) {
1067
+ let t, n, l, s, o, i;
1068
+ return n = new Ae({
1068
1069
  props: { class: "text-green-500 mr-2", size: 20 }
1069
1070
  }), {
1070
1071
  c() {
1071
- e = m("li"), Je(n.$$.fragment), s = w(), l = m("span"), l.textContent = `${/*feature*/
1072
- t[9]}`, i = w(), _(e, "class", "flex items-center");
1072
+ t = p("li"), Yt(n.$$.fragment), l = b(), s = p("span"), s.textContent = `${/*feature*/
1073
+ e[9]}`, o = b(), f(t, "class", "flex items-center");
1073
1074
  },
1074
- m(r, u) {
1075
- N(r, e, u), $e(n, e, null), g(e, s), g(e, l), g(e, i), o = !0;
1075
+ m(r, a) {
1076
+ S(r, t, a), wt(n, t, null), u(t, l), u(t, s), u(t, o), i = !0;
1076
1077
  },
1077
1078
  p: L,
1078
1079
  i(r) {
1079
- o || (j(n.$$.fragment, r), o = !0);
1080
+ i || (B(n.$$.fragment, r), i = !0);
1080
1081
  },
1081
1082
  o(r) {
1082
- D(n.$$.fragment, r), o = !1;
1083
+ tt(n.$$.fragment, r), i = !1;
1083
1084
  },
1084
1085
  d(r) {
1085
- r && x(e), be(n);
1086
+ r && j(t), qt(n);
1086
1087
  }
1087
1088
  };
1088
1089
  }
1089
- function We(t) {
1090
- let e, n;
1090
+ function Wt(e) {
1091
+ let t, n;
1091
1092
  return {
1092
1093
  c() {
1093
- e = m("img"), Ie(e.src, n = "/api/placeholder/40/25") || _(e, "src", n), _(
1094
- e,
1094
+ t = p("img"), It(t.src, n = "/api/placeholder/40/25") || f(t, "src", n), f(
1095
+ t,
1095
1096
  "alt",
1096
1097
  /*method*/
1097
- t[6]
1098
- ), _(e, "class", "h-6");
1098
+ e[6]
1099
+ ), f(t, "class", "h-6");
1099
1100
  },
1100
- m(s, l) {
1101
- N(s, e, l);
1101
+ m(l, s) {
1102
+ S(l, t, s);
1102
1103
  },
1103
1104
  p: L,
1104
- d(s) {
1105
- s && x(e);
1105
+ d(l) {
1106
+ l && j(t);
1106
1107
  }
1107
1108
  };
1108
1109
  }
1109
- function At(t) {
1110
- let e, n, s, l, i, o, r, u, a, v, $, c, p, f, C, M, V, S, q, pe, oe, ve, J, ke, G, ye, Y, qe, H, Q, re, ce, we, O = I(
1110
+ function Oe(e) {
1111
+ let t, n, l, s, o, i, r, a, h, $, _, c, v, d, N, C, R, x, y, P, V, O, D, F, H, T, W, nt, z, M, ht, pt, jt, K = X(
1111
1112
  /*features*/
1112
- t[1]
1113
- ), b = [];
1114
- for (let h = 0; h < O.length; h += 1)
1115
- b[h] = Me(Pe(t, O, h));
1116
- const Ze = (h) => D(b[h], 1, 1, () => {
1117
- b[h] = null;
1113
+ e[1]
1114
+ ), k = [];
1115
+ for (let m = 0; m < K.length; m += 1)
1116
+ k[m] = Tt(Pt(e, K, m));
1117
+ const ee = (m) => tt(k[m], 1, 1, () => {
1118
+ k[m] = null;
1118
1119
  });
1119
- let W = I(
1120
+ let J = X(
1120
1121
  /*paymentMethods*/
1121
- t[2]
1122
- ), y = [];
1123
- for (let h = 0; h < W.length; h += 1)
1124
- y[h] = We(Oe(t, W, h));
1125
- return re = ot(
1122
+ e[2]
1123
+ ), q = [];
1124
+ for (let m = 0; m < J.length; m += 1)
1125
+ q[m] = Wt(Ot(e, J, m));
1126
+ return ht = ce(
1126
1127
  /*$$binding_groups*/
1127
- t[4][0]
1128
+ e[4][0]
1128
1129
  ), {
1129
1130
  c() {
1130
- e = m("div"), n = m("div"), n.textContent = "Redan prenumerant? Logga in", s = w(), l = m("h1"), l.textContent = "FOKUS", i = w(), o = m("h2"), o.textContent = "Läs Fokus Digital i 6 månader för bara 79 kr!", r = w(), u = m("ul");
1131
- for (let h = 0; h < b.length; h += 1)
1132
- b[h].c();
1133
- a = w(), v = m("div"), $ = m("label"), c = m("input"), p = w(), f = m("div"), f.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>', C = w(), M = m("div"), M.textContent = "79 SEK/6 mån", V = w(), S = m("label"), q = m("input"), pe = w(), oe = m("div"), oe.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>', ve = w(), J = m("div"), J.textContent = "995 SEK/år", ke = w(), G = m("button"), G.textContent = "Fortsätt", ye = w(), Y = m("div"), Y.textContent = "Säker SSL-krypterad betalning", qe = w(), H = m("div");
1134
- for (let h = 0; h < y.length; h += 1)
1135
- y[h].c();
1136
- _(n, "class", "text-right text-sm text-red-500 mb-4"), _(l, "class", "text-4xl font-bold text-red-500 mb-4"), _(o, "class", "text-xl font-semibold mb-6"), _(u, "class", "space-y-2 mb-6"), _(c, "type", "radio"), _(c, "name", "subscription"), c.__value = "sixMonths", Ne(c, c.__value), _(c, "class", "mr-3"), _(M, "class", "ml-auto font-semibold"), _($, "class", "flex items-center p-4 border rounded-lg"), _(q, "type", "radio"), _(q, "name", "subscription"), q.__value = "oneYear", Ne(q, q.__value), _(q, "class", "mr-3"), _(J, "class", "ml-auto font-semibold"), _(S, "class", "flex items-center p-4 border rounded-lg"), _(v, "class", "space-y-4 mb-6"), _(G, "class", "w-full bg-red-500 text-white py-3 rounded-lg font-semibold"), _(Y, "class", "text-center text-sm text-gray-600 mt-4"), _(H, "class", "flex justify-center space-x-2 mt-2"), _(e, "class", "max-w-md mx-auto bg-white p-6 rounded-lg shadow-lg"), re.p(c, q);
1131
+ t = p("div"), n = p("div"), n.textContent = "Redan prenumerant? Logga in", l = b(), s = p("h1"), s.textContent = "FOKUS", o = b(), i = p("h2"), i.textContent = "Läs Fokus Digital i 6 månader för bara 79 kr!", r = b(), a = p("ul");
1132
+ for (let m = 0; m < k.length; m += 1)
1133
+ k[m].c();
1134
+ h = b(), $ = p("div"), _ = p("label"), c = p("input"), v = b(), d = p("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>', N = b(), C = p("div"), C.textContent = "79 SEK/6 mån", R = b(), x = p("label"), y = p("input"), P = b(), V = p("div"), V.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>', O = b(), D = p("div"), D.textContent = "995 SEK/år", F = b(), H = p("button"), H.textContent = "Fortsätt", T = b(), W = p("div"), W.textContent = "Säker SSL-krypterad betalning", nt = b(), z = p("div");
1135
+ for (let m = 0; m < q.length; m += 1)
1136
+ q[m].c();
1137
+ f(n, "class", "text-right text-sm text-red-500 mb-4"), f(s, "class", "text-4xl font-bold text-red-500 mb-4"), f(i, "class", "text-xl font-semibold mb-6"), f(a, "class", "space-y-2 mb-6"), f(c, "type", "radio"), f(c, "name", "subscription"), c.__value = "sixMonths", dt(c, c.__value), f(c, "class", "mr-3"), f(C, "class", "ml-auto font-semibold"), f(_, "class", "flex items-center p-4 border rounded-lg"), f(y, "type", "radio"), f(y, "name", "subscription"), y.__value = "oneYear", dt(y, y.__value), f(y, "class", "mr-3"), f(D, "class", "ml-auto font-semibold"), f(x, "class", "flex items-center p-4 border rounded-lg"), f($, "class", "space-y-4 mb-6"), f(H, "class", "w-full bg-red-500 text-white py-3 rounded-lg font-semibold"), f(W, "class", "text-center text-sm text-gray-600 mt-4"), f(z, "class", "flex justify-center space-x-2 mt-2"), f(t, "class", "max-w-md mx-auto bg-white p-6 rounded-lg shadow-lg"), ht.p(c, y);
1137
1138
  },
1138
- m(h, k) {
1139
- N(h, e, k), g(e, n), g(e, s), g(e, l), g(e, i), g(e, o), g(e, r), g(e, u);
1140
- for (let d = 0; d < b.length; d += 1)
1141
- b[d] && b[d].m(u, null);
1142
- g(e, a), g(e, v), g(v, $), g($, c), c.checked = c.__value === /*selectedPlan*/
1143
- t[0], g($, p), g($, f), g($, C), g($, M), g(v, V), g(v, S), g(S, q), q.checked = q.__value === /*selectedPlan*/
1144
- t[0], g(S, pe), g(S, oe), g(S, ve), g(S, J), g(e, ke), g(e, G), g(e, ye), g(e, Y), g(e, qe), g(e, H);
1145
- for (let d = 0; d < y.length; d += 1)
1146
- y[d] && y[d].m(H, null);
1147
- Q = !0, ce || (we = [
1148
- ne(
1139
+ m(m, w) {
1140
+ S(m, t, w), u(t, n), u(t, l), u(t, s), u(t, o), u(t, i), u(t, r), u(t, a);
1141
+ for (let g = 0; g < k.length; g += 1)
1142
+ k[g] && k[g].m(a, null);
1143
+ u(t, h), u(t, $), u($, _), u(_, c), c.checked = c.__value === /*selectedPlan*/
1144
+ e[0], u(_, v), u(_, d), u(_, N), u(_, C), u($, R), u($, x), u(x, y), y.checked = y.__value === /*selectedPlan*/
1145
+ e[0], u(x, P), u(x, V), u(x, O), u(x, D), u(t, F), u(t, H), u(t, T), u(t, W), u(t, nt), u(t, z);
1146
+ for (let g = 0; g < q.length; g += 1)
1147
+ q[g] && q[g].m(z, null);
1148
+ M = !0, pt || (jt = [
1149
+ A(
1149
1150
  c,
1150
1151
  "change",
1151
1152
  /*input0_change_handler*/
1152
- t[3]
1153
+ e[3]
1153
1154
  ),
1154
- ne(
1155
- q,
1155
+ A(
1156
+ y,
1156
1157
  "change",
1157
1158
  /*input1_change_handler*/
1158
- t[5]
1159
+ e[5]
1159
1160
  )
1160
- ], ce = !0);
1161
+ ], pt = !0);
1161
1162
  },
1162
- p(h, [k]) {
1163
- if (k & /*features*/
1163
+ p(m, [w]) {
1164
+ if (w & /*features*/
1164
1165
  2) {
1165
- O = I(
1166
+ K = X(
1166
1167
  /*features*/
1167
- h[1]
1168
+ m[1]
1168
1169
  );
1169
- let d;
1170
- for (d = 0; d < O.length; d += 1) {
1171
- const R = Pe(h, O, d);
1172
- b[d] ? (b[d].p(R, k), j(b[d], 1)) : (b[d] = Me(R), b[d].c(), j(b[d], 1), b[d].m(u, null));
1170
+ let g;
1171
+ for (g = 0; g < K.length; g += 1) {
1172
+ const lt = Pt(m, K, g);
1173
+ k[g] ? (k[g].p(lt, w), B(k[g], 1)) : (k[g] = Tt(lt), k[g].c(), B(k[g], 1), k[g].m(a, null));
1173
1174
  }
1174
- for (ht(), d = O.length; d < b.length; d += 1)
1175
- Ze(d);
1176
- _t();
1175
+ for (ge(), g = K.length; g < k.length; g += 1)
1176
+ ee(g);
1177
+ me();
1177
1178
  }
1178
- if (k & /*selectedPlan*/
1179
+ if (w & /*selectedPlan*/
1179
1180
  1 && (c.checked = c.__value === /*selectedPlan*/
1180
- h[0]), k & /*selectedPlan*/
1181
- 1 && (q.checked = q.__value === /*selectedPlan*/
1182
- h[0]), k & /*paymentMethods*/
1181
+ m[0]), w & /*selectedPlan*/
1182
+ 1 && (y.checked = y.__value === /*selectedPlan*/
1183
+ m[0]), w & /*paymentMethods*/
1183
1184
  4) {
1184
- W = I(
1185
+ J = X(
1185
1186
  /*paymentMethods*/
1186
- h[2]
1187
+ m[2]
1187
1188
  );
1188
- let d;
1189
- for (d = 0; d < W.length; d += 1) {
1190
- const R = Oe(h, W, d);
1191
- y[d] ? y[d].p(R, k) : (y[d] = We(R), y[d].c(), y[d].m(H, null));
1189
+ let g;
1190
+ for (g = 0; g < J.length; g += 1) {
1191
+ const lt = Ot(m, J, g);
1192
+ q[g] ? q[g].p(lt, w) : (q[g] = Wt(lt), q[g].c(), q[g].m(z, null));
1192
1193
  }
1193
- for (; d < y.length; d += 1)
1194
- y[d].d(1);
1195
- y.length = W.length;
1194
+ for (; g < q.length; g += 1)
1195
+ q[g].d(1);
1196
+ q.length = J.length;
1196
1197
  }
1197
1198
  },
1198
- i(h) {
1199
- if (!Q) {
1200
- for (let k = 0; k < O.length; k += 1)
1201
- j(b[k]);
1202
- Q = !0;
1199
+ i(m) {
1200
+ if (!M) {
1201
+ for (let w = 0; w < K.length; w += 1)
1202
+ B(k[w]);
1203
+ M = !0;
1203
1204
  }
1204
1205
  },
1205
- o(h) {
1206
- b = b.filter(Boolean);
1207
- for (let k = 0; k < b.length; k += 1)
1208
- D(b[k]);
1209
- Q = !1;
1206
+ o(m) {
1207
+ k = k.filter(Boolean);
1208
+ for (let w = 0; w < k.length; w += 1)
1209
+ tt(k[w]);
1210
+ M = !1;
1210
1211
  },
1211
- d(h) {
1212
- h && x(e), ae(b, h), ae(y, h), re.r(), ce = !1, F(we);
1212
+ d(m) {
1213
+ m && j(t), _t(k, m), _t(q, m), ht.r(), pt = !1, U(jt);
1213
1214
  }
1214
1215
  };
1215
1216
  }
1216
- function Ot(t, e, n) {
1217
- let s = "sixMonths";
1218
- const l = [
1217
+ function Pe(e, t, n) {
1218
+ let l = "sixMonths";
1219
+ const s = [
1219
1220
  "Allt material på Fokus.se",
1220
1221
  "Tillgång till e-tidning",
1221
1222
  "Tillgång till våra podcasts",
1222
1223
  "Nyhetsbrev"
1223
- ], i = [
1224
+ ], o = [
1224
1225
  "Visa",
1225
1226
  "American Express",
1226
1227
  "Mastercard",
@@ -1228,30 +1229,146 @@ function Ot(t, e, n) {
1228
1229
  "Google Pay",
1229
1230
  "Apple Pay",
1230
1231
  "Swish"
1231
- ], o = [[]];
1232
+ ], i = [[]];
1232
1233
  function r() {
1233
- s = this.__value, n(0, s);
1234
+ l = this.__value, n(0, l);
1234
1235
  }
1235
- function u() {
1236
- s = this.__value, n(0, s);
1236
+ function a() {
1237
+ l = this.__value, n(0, l);
1237
1238
  }
1238
1239
  return [
1239
- s,
1240
1240
  l,
1241
- i,
1241
+ s,
1242
+ o,
1242
1243
  r,
1244
+ i,
1245
+ a
1246
+ ];
1247
+ }
1248
+ class Zt extends it {
1249
+ constructor(t) {
1250
+ super(), ot(this, t, Pe, Oe, et, {});
1251
+ }
1252
+ }
1253
+ customElements.define("sesamy-paywall", xt(Zt, {}, [], [], !0));
1254
+ const De = Zt;
1255
+ function Te(e) {
1256
+ Gt(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
+ }
1258
+ function We(e) {
1259
+ let t, n, l, s, o, i, r, a, h, $, _, c, v, d, N, C, R, x, y, P, V, O, D, F, H, T, W, nt;
1260
+ return {
1261
+ c() {
1262
+ t = p("div"), n = p("h1"), n.textContent = "Create a free account, or log in.", l = b(), s = p("p"), s.textContent = `Gain access to limited free articles, news alerts, select newsletters,
1263
+ podcasts and some daily games.`, o = b(), i = p("label"), i.textContent = "Email Address", r = b(), a = p("input"), h = b(), $ = p("button"), $.textContent = "Continue", _ = b(), c = p("div"), c.textContent = "or", v = b(), d = p("p"), d.innerHTML = `By continuing, you agree to the <a href="#terms" class="svelte-phjzbp">Terms of Sale</a>,
1264
+ <a href="#service" class="svelte-phjzbp">Terms of Service</a>, and
1265
+ <a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`, N = b(), C = p("button"), C.textContent = "Continue with Google", R = b(), x = p("button"), x.textContent = "Continue with Facebook", y = b(), P = p("button"), P.textContent = "Continue with Apple", V = b(), O = p("a"), O.textContent = "Continue with work or school single sign-on >", D = b(), F = p("p"), F.textContent = "Enjoy unlimited access to all of The Times.", H = b(), T = p("button"), T.textContent = "See subscription options", f(n, "class", "svelte-phjzbp"), f(s, "class", "svelte-phjzbp"), f(i, "for", "email"), f(a, "type", "email"), f(a, "id", "email"), f(a, "placeholder", "Enter your email"), f(a, "class", "svelte-phjzbp"), f($, "class", "svelte-phjzbp"), f(c, "class", "divider svelte-phjzbp"), f(d, "class", "terms svelte-phjzbp"), f(C, "class", "social-button google svelte-phjzbp"), f(x, "class", "social-button facebook svelte-phjzbp"), f(P, "class", "social-button apple svelte-phjzbp"), f(O, "href", "#"), f(O, "class", "svelte-phjzbp"), f(F, "class", "svelte-phjzbp"), f(T, "class", "svelte-phjzbp"), f(t, "class", "registration-wall svelte-phjzbp");
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);
1316
+ },
1317
+ p(z, [M]) {
1318
+ M & /*email*/
1319
+ 1 && a.value !== /*email*/
1320
+ z[0] && dt(
1321
+ a,
1322
+ /*email*/
1323
+ z[0]
1324
+ );
1325
+ },
1326
+ i: L,
1327
+ o: L,
1328
+ d(z) {
1329
+ z && j(t), W = !1, U(nt);
1330
+ }
1331
+ };
1332
+ }
1333
+ function Me(e, t, n) {
1334
+ const l = se();
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,
1243
1353
  o,
1244
- u
1354
+ i,
1355
+ r,
1356
+ a,
1357
+ h,
1358
+ () => i("google"),
1359
+ () => i("facebook"),
1360
+ () => i("apple")
1245
1361
  ];
1246
1362
  }
1247
- class Xe extends ie {
1248
- constructor(e) {
1249
- super(), le(this, e, Ot, At, U, {});
1363
+ class te extends it {
1364
+ constructor(t) {
1365
+ super(), ot(this, t, Me, We, et, {}, Te);
1250
1366
  }
1251
1367
  }
1252
- customElements.define("sesamy-paywall", Ye(Xe, {}, [], [], !0));
1253
- const Wt = Xe;
1368
+ customElements.define("sesamy-registration-wall", xt(te, {}, [], [], !0));
1369
+ const Fe = te;
1254
1370
  export {
1255
- Mt as Login,
1256
- Wt as Paywall
1371
+ Re as Login,
1372
+ De as Paywall,
1373
+ Fe as RegistrationWall
1257
1374
  };