@sesamy/sesamy-components 0.0.7 → 0.0.8

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