@sesamy/sesamy-components 0.0.9 → 0.0.10
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.
|
@@ -25,9 +25,9 @@ function Yt(e) {
|
|
|
25
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
|
|
28
|
+
let bt;
|
|
29
29
|
function Qt(e, t) {
|
|
30
|
-
return e === t ? !0 : (
|
|
30
|
+
return e === t ? !0 : (bt || (bt = document.createElement("a")), bt.href = t, e === bt.href);
|
|
31
31
|
}
|
|
32
32
|
function ae(e) {
|
|
33
33
|
return Object.keys(e).length === 0;
|
|
@@ -41,7 +41,7 @@ function $t(e, t, n, l) {
|
|
|
41
41
|
function Xt(e, t, n, l) {
|
|
42
42
|
return e[1] && l ? X(n.ctx.slice(), e[1](l(t))) : n.ctx;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function wt(e, t, n, l) {
|
|
45
45
|
if (e[2] && l) {
|
|
46
46
|
const s = e[2](l(n));
|
|
47
47
|
if (t.dirty === void 0)
|
|
@@ -56,13 +56,13 @@ function kt(e, t, n, l) {
|
|
|
56
56
|
}
|
|
57
57
|
return t.dirty;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function yt(e, t, n, l, s, i) {
|
|
60
60
|
if (s) {
|
|
61
61
|
const r = Xt(t, n, l, i);
|
|
62
62
|
e.p(r, s);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function kt(e) {
|
|
66
66
|
if (e.ctx.length > 32) {
|
|
67
67
|
const t = [], n = e.ctx.length / 32;
|
|
68
68
|
for (let l = 0; l < n; l++)
|
|
@@ -127,7 +127,7 @@ function K(e) {
|
|
|
127
127
|
function te(e) {
|
|
128
128
|
return document.createTextNode(e);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function m() {
|
|
131
131
|
return te(" ");
|
|
132
132
|
}
|
|
133
133
|
function At() {
|
|
@@ -179,7 +179,7 @@ const rt = [], Ot = [];
|
|
|
179
179
|
let at = [];
|
|
180
180
|
const Tt = [], pe = /* @__PURE__ */ Promise.resolve();
|
|
181
181
|
let Lt = !1;
|
|
182
|
-
function
|
|
182
|
+
function be() {
|
|
183
183
|
Lt || (Lt = !0, pe.then(ee));
|
|
184
184
|
}
|
|
185
185
|
function Nt(e) {
|
|
@@ -195,7 +195,7 @@ function ee() {
|
|
|
195
195
|
try {
|
|
196
196
|
for (; it < rt.length; ) {
|
|
197
197
|
const t = rt[it];
|
|
198
|
-
it++, gt(t),
|
|
198
|
+
it++, gt(t), me(t.$$);
|
|
199
199
|
}
|
|
200
200
|
} catch (t) {
|
|
201
201
|
throw rt.length = 0, it = 0, t;
|
|
@@ -211,7 +211,7 @@ function ee() {
|
|
|
211
211
|
Tt.pop()();
|
|
212
212
|
Lt = !1, jt.clear(), gt(e);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function me(e) {
|
|
215
215
|
if (e.fragment !== null) {
|
|
216
216
|
e.update(), tt(e.before_update);
|
|
217
217
|
const t = e.dirty;
|
|
@@ -268,7 +268,7 @@ function Pt(e, t) {
|
|
|
268
268
|
r in n || (n[r] = void 0);
|
|
269
269
|
return n;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function we(e) {
|
|
272
272
|
return typeof e == "object" && e !== null ? e : {};
|
|
273
273
|
}
|
|
274
274
|
function pt(e) {
|
|
@@ -285,8 +285,8 @@ function ft(e, t) {
|
|
|
285
285
|
const n = e.$$;
|
|
286
286
|
n.fragment !== null && (_e(n.after_update), tt(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
e.$$.dirty[0] === -1 && (rt.push(e),
|
|
288
|
+
function ye(e, t) {
|
|
289
|
+
e.$$.dirty[0] === -1 && (rt.push(e), be(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
290
290
|
}
|
|
291
291
|
function J(e, t, n, l, s, i, r = null, a = [-1]) {
|
|
292
292
|
const h = Mt;
|
|
@@ -313,11 +313,11 @@ function J(e, t, n, l, s, i, r = null, a = [-1]) {
|
|
|
313
313
|
root: t.target || h.$$.root
|
|
314
314
|
};
|
|
315
315
|
r && r(p.root);
|
|
316
|
-
let
|
|
316
|
+
let w = !1;
|
|
317
317
|
if (p.ctx = n ? n(e, t.props || {}, (_, u, ...$) => {
|
|
318
318
|
const g = $.length ? $[0] : u;
|
|
319
|
-
return p.ctx && s(p.ctx[_], p.ctx[_] = g) && (!p.skip_bound && p.bound[_] && p.bound[_](g),
|
|
320
|
-
}) : [], p.update(),
|
|
319
|
+
return p.ctx && s(p.ctx[_], p.ctx[_] = g) && (!p.skip_bound && p.bound[_] && p.bound[_](g), w && ye(e, _)), u;
|
|
320
|
+
}) : [], p.update(), w = !0, tt(p.before_update), p.fragment = l ? l(p.ctx) : !1, t.target) {
|
|
321
321
|
if (t.hydrate) {
|
|
322
322
|
const _ = he(t.target);
|
|
323
323
|
p.fragment && p.fragment.l(_), _.forEach(j);
|
|
@@ -377,8 +377,8 @@ typeof HTMLElement == "function" && (ne = class extends HTMLElement {
|
|
|
377
377
|
* @param {HTMLElement} target
|
|
378
378
|
* @param {HTMLElement} [anchor]
|
|
379
379
|
*/
|
|
380
|
-
m: function(p,
|
|
381
|
-
z(p, r,
|
|
380
|
+
m: function(p, w) {
|
|
381
|
+
z(p, r, w);
|
|
382
382
|
},
|
|
383
383
|
d: function(p) {
|
|
384
384
|
p && j(r);
|
|
@@ -554,8 +554,8 @@ class Y {
|
|
|
554
554
|
this.$$set && !ae(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
557
|
+
const ke = "4";
|
|
558
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ke);
|
|
559
559
|
function xe(e) {
|
|
560
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
|
}
|
|
@@ -756,7 +756,7 @@ function Ne(e) {
|
|
|
756
756
|
e[9],
|
|
757
757
|
null
|
|
758
758
|
);
|
|
759
|
-
let
|
|
759
|
+
let w = [
|
|
760
760
|
Wt,
|
|
761
761
|
/*$$restProps*/
|
|
762
762
|
e[7],
|
|
@@ -798,8 +798,8 @@ function Ne(e) {
|
|
|
798
798
|
)
|
|
799
799
|
}
|
|
800
800
|
], _ = {};
|
|
801
|
-
for (let u = 0; u <
|
|
802
|
-
_ = X(_,
|
|
801
|
+
for (let u = 0; u < w.length; u += 1)
|
|
802
|
+
_ = X(_, w[u]);
|
|
803
803
|
return {
|
|
804
804
|
c() {
|
|
805
805
|
t = K("svg");
|
|
@@ -830,24 +830,24 @@ function Ne(e) {
|
|
|
830
830
|
a.length = r.length;
|
|
831
831
|
}
|
|
832
832
|
p && p.p && (!i || $ & /*$$scope*/
|
|
833
|
-
512) &&
|
|
833
|
+
512) && yt(
|
|
834
834
|
p,
|
|
835
835
|
h,
|
|
836
836
|
u,
|
|
837
837
|
/*$$scope*/
|
|
838
838
|
u[9],
|
|
839
|
-
i ?
|
|
839
|
+
i ? wt(
|
|
840
840
|
h,
|
|
841
841
|
/*$$scope*/
|
|
842
842
|
u[9],
|
|
843
843
|
$,
|
|
844
844
|
null
|
|
845
|
-
) :
|
|
845
|
+
) : kt(
|
|
846
846
|
/*$$scope*/
|
|
847
847
|
u[9]
|
|
848
848
|
),
|
|
849
849
|
null
|
|
850
|
-
), Ct(t, _ = Pt(
|
|
850
|
+
), Ct(t, _ = Pt(w, [
|
|
851
851
|
Wt,
|
|
852
852
|
$ & /*$$restProps*/
|
|
853
853
|
128 && /*$$restProps*/
|
|
@@ -905,15 +905,15 @@ function Ne(e) {
|
|
|
905
905
|
}
|
|
906
906
|
function Se(e, t, n) {
|
|
907
907
|
const l = ["name", "color", "size", "strokeWidth", "absoluteStrokeWidth", "iconNode"];
|
|
908
|
-
let s = Ft(t, l), { $$slots: i = {}, $$scope: r } = t, { name: a = void 0 } = t, { color: h = "currentColor" } = t, { size: p = 24 } = t, { strokeWidth:
|
|
908
|
+
let s = Ft(t, l), { $$slots: i = {}, $$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
909
|
const $ = (...g) => g.filter((E, L, B) => !!E && B.indexOf(E) === L).join(" ");
|
|
910
910
|
return e.$$set = (g) => {
|
|
911
|
-
n(8, t = X(X({}, t), xt(g))), n(7, s = Ft(t, l)), "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,
|
|
911
|
+
n(8, t = X(X({}, t), xt(g))), n(7, s = Ft(t, l)), "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
912
|
}, t = xt(t), [
|
|
913
913
|
a,
|
|
914
914
|
h,
|
|
915
915
|
p,
|
|
916
|
-
|
|
916
|
+
w,
|
|
917
917
|
_,
|
|
918
918
|
u,
|
|
919
919
|
$,
|
|
@@ -956,19 +956,19 @@ function Me(e) {
|
|
|
956
956
|
},
|
|
957
957
|
p(s, i) {
|
|
958
958
|
l && l.p && (!t || i & /*$$scope*/
|
|
959
|
-
8) &&
|
|
959
|
+
8) && yt(
|
|
960
960
|
l,
|
|
961
961
|
n,
|
|
962
962
|
s,
|
|
963
963
|
/*$$scope*/
|
|
964
964
|
s[3],
|
|
965
|
-
t ?
|
|
965
|
+
t ? wt(
|
|
966
966
|
n,
|
|
967
967
|
/*$$scope*/
|
|
968
968
|
s[3],
|
|
969
969
|
i,
|
|
970
970
|
null
|
|
971
|
-
) :
|
|
971
|
+
) : kt(
|
|
972
972
|
/*$$scope*/
|
|
973
973
|
s[3]
|
|
974
974
|
),
|
|
@@ -1015,7 +1015,7 @@ function Pe(e) {
|
|
|
1015
1015
|
3 ? Pt(l, [
|
|
1016
1016
|
l[0],
|
|
1017
1017
|
r & /*$$props*/
|
|
1018
|
-
2 &&
|
|
1018
|
+
2 && we(
|
|
1019
1019
|
/*$$props*/
|
|
1020
1020
|
i[1]
|
|
1021
1021
|
),
|
|
@@ -1068,8 +1068,8 @@ function Gt(e) {
|
|
|
1068
1068
|
props: { class: "text-green-500 mr-2", size: 20 }
|
|
1069
1069
|
}), {
|
|
1070
1070
|
c() {
|
|
1071
|
-
t = d("li"), pt(n.$$.fragment), l =
|
|
1072
|
-
e[9]}`, i =
|
|
1071
|
+
t = d("li"), pt(n.$$.fragment), l = m(), s = d("span"), s.textContent = `${/*feature*/
|
|
1072
|
+
e[9]}`, i = m(), o(t, "class", "flex items-center");
|
|
1073
1073
|
},
|
|
1074
1074
|
m(a, h) {
|
|
1075
1075
|
z(a, t, h), ut(n, t, null), c(t, l), c(t, s), c(t, i), r = !0;
|
|
@@ -1107,7 +1107,7 @@ function Kt(e) {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
}
|
|
1109
1109
|
function He(e) {
|
|
1110
|
-
let t, n, l, s, i, r, a, h, p,
|
|
1110
|
+
let t, n, l, s, i, r, a, h, p, w, _, u, $, g, E, L, B, C, y, I, R, T, F, S, A, D, H, Q, M, N, et, lt, st, W = ct(
|
|
1111
1111
|
/*features*/
|
|
1112
1112
|
e[1]
|
|
1113
1113
|
), v = [];
|
|
@@ -1119,31 +1119,31 @@ function He(e) {
|
|
|
1119
1119
|
let G = ct(
|
|
1120
1120
|
/*paymentMethods*/
|
|
1121
1121
|
e[2]
|
|
1122
|
-
),
|
|
1122
|
+
), k = [];
|
|
1123
1123
|
for (let f = 0; f < G.length; f += 1)
|
|
1124
|
-
|
|
1124
|
+
k[f] = Kt(Rt(e, G, f));
|
|
1125
1125
|
return et = de(
|
|
1126
1126
|
/*$$binding_groups*/
|
|
1127
1127
|
e[4][0]
|
|
1128
1128
|
), {
|
|
1129
1129
|
c() {
|
|
1130
|
-
t = d("div"), n = d("div"), n.textContent = "Redan prenumerant? Logga in", l =
|
|
1130
|
+
t = d("div"), n = d("div"), n.textContent = "Redan prenumerant? Logga in", l = m(), s = d("h1"), s.textContent = "FOKUS", i = m(), r = d("h2"), r.textContent = "Läs Fokus Digital i 6 månader för bara 79 kr!", a = m(), h = d("ul");
|
|
1131
1131
|
for (let f = 0; f < v.length; f += 1)
|
|
1132
1132
|
v[f].c();
|
|
1133
|
-
p =
|
|
1134
|
-
for (let f = 0; f <
|
|
1135
|
-
|
|
1136
|
-
o(n, "class", "text-right text-sm text-red-500 mb-4"), o(s, "class", "text-4xl font-bold text-red-500 mb-4"), o(r, "class", "text-xl font-semibold mb-6"), o(h, "class", "space-y-2 mb-6"), o(u, "type", "radio"), o(u, "name", "subscription"), u.__value = "sixMonths", Ht(u, u.__value), o(u, "class", "mr-3"), o(L, "class", "ml-auto font-semibold"), o(_, "class", "flex items-center p-4 border rounded-lg"), o(
|
|
1133
|
+
p = m(), w = d("div"), _ = d("label"), u = d("input"), $ = m(), 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 = m(), L = d("div"), L.textContent = "79 SEK/6 mån", B = m(), C = d("label"), y = d("input"), I = m(), 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 = m(), F = d("div"), F.textContent = "995 SEK/år", S = m(), A = d("button"), A.textContent = "Fortsätt", D = m(), H = d("div"), H.textContent = "Säker SSL-krypterad betalning", Q = m(), M = d("div");
|
|
1134
|
+
for (let f = 0; f < k.length; f += 1)
|
|
1135
|
+
k[f].c();
|
|
1136
|
+
o(n, "class", "text-right text-sm text-red-500 mb-4"), o(s, "class", "text-4xl font-bold text-red-500 mb-4"), o(r, "class", "text-xl font-semibold mb-6"), o(h, "class", "space-y-2 mb-6"), o(u, "type", "radio"), o(u, "name", "subscription"), u.__value = "sixMonths", Ht(u, u.__value), o(u, "class", "mr-3"), o(L, "class", "ml-auto font-semibold"), o(_, "class", "flex items-center p-4 border rounded-lg"), o(y, "type", "radio"), o(y, "name", "subscription"), y.__value = "oneYear", Ht(y, y.__value), o(y, "class", "mr-3"), o(F, "class", "ml-auto font-semibold"), o(C, "class", "flex items-center p-4 border rounded-lg"), o(w, "class", "space-y-4 mb-6"), o(A, "class", "w-full bg-red-500 text-white py-3 rounded-lg font-semibold"), o(H, "class", "text-center text-sm text-gray-600 mt-4"), o(M, "class", "flex justify-center space-x-2 mt-2"), o(t, "class", "max-w-md mx-auto bg-white p-6 rounded-lg shadow-lg"), et.p(u, y);
|
|
1137
1137
|
},
|
|
1138
1138
|
m(f, x) {
|
|
1139
1139
|
z(f, t, x), c(t, n), c(t, l), c(t, s), c(t, i), c(t, r), c(t, a), c(t, h);
|
|
1140
|
-
for (let
|
|
1141
|
-
v[
|
|
1142
|
-
c(t, p), c(t,
|
|
1143
|
-
e[0], c(_, $), c(_, g), c(_, E), c(_, L), c(
|
|
1140
|
+
for (let b = 0; b < v.length; b += 1)
|
|
1141
|
+
v[b] && v[b].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, C), c(C, y), y.checked = y.__value === /*selectedPlan*/
|
|
1144
1144
|
e[0], c(C, I), c(C, R), c(C, T), c(C, F), c(t, S), c(t, A), c(t, D), c(t, H), c(t, Q), c(t, M);
|
|
1145
|
-
for (let
|
|
1146
|
-
|
|
1145
|
+
for (let b = 0; b < k.length; b += 1)
|
|
1146
|
+
k[b] && k[b].m(M, null);
|
|
1147
1147
|
N = !0, lt || (st = [
|
|
1148
1148
|
P(
|
|
1149
1149
|
u,
|
|
@@ -1152,7 +1152,7 @@ function He(e) {
|
|
|
1152
1152
|
e[3]
|
|
1153
1153
|
),
|
|
1154
1154
|
P(
|
|
1155
|
-
|
|
1155
|
+
y,
|
|
1156
1156
|
"change",
|
|
1157
1157
|
/*input1_change_handler*/
|
|
1158
1158
|
e[5]
|
|
@@ -1166,33 +1166,33 @@ function He(e) {
|
|
|
1166
1166
|
/*features*/
|
|
1167
1167
|
f[1]
|
|
1168
1168
|
);
|
|
1169
|
-
let
|
|
1170
|
-
for (
|
|
1171
|
-
const ht = Dt(f, W,
|
|
1172
|
-
v[
|
|
1169
|
+
let b;
|
|
1170
|
+
for (b = 0; b < W.length; b += 1) {
|
|
1171
|
+
const ht = Dt(f, W, b);
|
|
1172
|
+
v[b] ? (v[b].p(ht, x), O(v[b], 1)) : (v[b] = Gt(ht), v[b].c(), O(v[b], 1), v[b].m(h, null));
|
|
1173
1173
|
}
|
|
1174
|
-
for (ve(),
|
|
1175
|
-
dt(
|
|
1174
|
+
for (ve(), b = W.length; b < v.length; b += 1)
|
|
1175
|
+
dt(b);
|
|
1176
1176
|
$e();
|
|
1177
1177
|
}
|
|
1178
1178
|
if (x & /*selectedPlan*/
|
|
1179
1179
|
1 && (u.checked = u.__value === /*selectedPlan*/
|
|
1180
1180
|
f[0]), x & /*selectedPlan*/
|
|
1181
|
-
1 && (
|
|
1181
|
+
1 && (y.checked = y.__value === /*selectedPlan*/
|
|
1182
1182
|
f[0]), x & /*paymentMethods*/
|
|
1183
1183
|
4) {
|
|
1184
1184
|
G = ct(
|
|
1185
1185
|
/*paymentMethods*/
|
|
1186
1186
|
f[2]
|
|
1187
1187
|
);
|
|
1188
|
-
let
|
|
1189
|
-
for (
|
|
1190
|
-
const ht = Rt(f, G,
|
|
1191
|
-
|
|
1188
|
+
let b;
|
|
1189
|
+
for (b = 0; b < G.length; b += 1) {
|
|
1190
|
+
const ht = Rt(f, G, b);
|
|
1191
|
+
k[b] ? k[b].p(ht, x) : (k[b] = Kt(ht), k[b].c(), k[b].m(M, null));
|
|
1192
1192
|
}
|
|
1193
|
-
for (;
|
|
1194
|
-
|
|
1195
|
-
|
|
1193
|
+
for (; b < k.length; b += 1)
|
|
1194
|
+
k[b].d(1);
|
|
1195
|
+
k.length = G.length;
|
|
1196
1196
|
}
|
|
1197
1197
|
},
|
|
1198
1198
|
i(f) {
|
|
@@ -1209,7 +1209,7 @@ function He(e) {
|
|
|
1209
1209
|
N = !1;
|
|
1210
1210
|
},
|
|
1211
1211
|
d(f) {
|
|
1212
|
-
f && j(t), Et(v, f), Et(
|
|
1212
|
+
f && j(t), Et(v, f), Et(k, f), et.r(), lt = !1, tt(st);
|
|
1213
1213
|
}
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
@@ -1255,17 +1255,17 @@ function Te(e) {
|
|
|
1255
1255
|
St(e, "svelte-phjzbp", '.registration-wall.svelte-phjzbp{font-family:Arial, sans-serif;max-width:400px;margin:0 auto;padding:20px;text-align:center}h1.svelte-phjzbp{font-size:24px;margin-bottom:10px}p.svelte-phjzbp{font-size:16px;margin-bottom:20px}input.svelte-phjzbp{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px}button.svelte-phjzbp{width:100%;padding:10px;background-color:#000;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:10px}.divider.svelte-phjzbp{margin:20px 0;text-align:center;position:relative}.divider.svelte-phjzbp::before,.divider.svelte-phjzbp::after{content:"";position:absolute;top:50%;width:45%;height:1px;background-color:#ccc}.divider.svelte-phjzbp::before{left:0}.divider.svelte-phjzbp::after{right:0}.social-button.svelte-phjzbp{background-color:#fff;color:#000;border:1px solid #ccc}a.svelte-phjzbp{color:#000;text-decoration:none}.terms.svelte-phjzbp{font-size:12px;margin-bottom:20px}');
|
|
1256
1256
|
}
|
|
1257
1257
|
function We(e) {
|
|
1258
|
-
let t, n, l, s, i, r, a, h, p,
|
|
1258
|
+
let t, n, l, s, i, r, a, h, p, w, _, u, $, g, E, L, B, C, y, I, R, T, F, S, A, D, H, Q;
|
|
1259
1259
|
return {
|
|
1260
1260
|
c() {
|
|
1261
|
-
t = d("div"), n = d("h1"), n.textContent = "Create a free account, or log in.", l =
|
|
1262
|
-
podcasts and some daily games.`, i =
|
|
1261
|
+
t = d("div"), n = d("h1"), n.textContent = "Create a free account, or log in.", l = m(), s = d("p"), s.textContent = `Gain access to limited free articles, news alerts, select newsletters,
|
|
1262
|
+
podcasts and some daily games.`, i = m(), r = d("label"), r.textContent = "Email Address", a = m(), h = d("input"), p = m(), w = d("button"), w.textContent = "Continue", _ = m(), u = d("div"), u.textContent = "or", $ = m(), 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>.`, E =
|
|
1264
|
+
<a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`, E = m(), L = d("button"), L.textContent = "Continue with Google", B = m(), C = d("button"), C.textContent = "Continue with Facebook", y = m(), I = d("button"), I.textContent = "Continue with Apple", R = m(), T = d("a"), T.textContent = "Continue with work or school single sign-on >", F = m(), S = d("p"), S.textContent = "Enjoy unlimited access to all of The Times.", A = m(), D = d("button"), D.textContent = "See subscription options", o(n, "class", "svelte-phjzbp"), o(s, "class", "svelte-phjzbp"), o(r, "for", "email"), o(h, "type", "email"), o(h, "id", "email"), o(h, "placeholder", "Enter your email"), o(h, "class", "svelte-phjzbp"), o(w, "class", "svelte-phjzbp"), o(u, "class", "divider svelte-phjzbp"), o(g, "class", "terms svelte-phjzbp"), o(L, "class", "social-button google svelte-phjzbp"), o(C, "class", "social-button facebook svelte-phjzbp"), o(I, "class", "social-button apple svelte-phjzbp"), o(T, "href", "#"), o(T, "class", "svelte-phjzbp"), o(S, "class", "svelte-phjzbp"), o(D, "class", "svelte-phjzbp"), o(t, "class", "registration-wall svelte-phjzbp");
|
|
1265
1265
|
},
|
|
1266
1266
|
m(M, N) {
|
|
1267
|
-
z(M, t, N), c(t, n), c(t, l), c(t, s), c(t, i), c(t, r), c(t, a), c(t, h), c(t, p), c(t,
|
|
1268
|
-
P(
|
|
1267
|
+
z(M, t, N), c(t, n), c(t, l), c(t, s), c(t, i), 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, C), c(t, y), 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", ot),
|
|
1269
1269
|
P(L, "click", ot),
|
|
1270
1270
|
P(C, "click", ot),
|
|
1271
1271
|
P(I, "click", ot),
|
|
@@ -1448,14 +1448,14 @@ class Je extends Y {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
function Ye(e) {
|
|
1451
|
-
St(e, "svelte-
|
|
1451
|
+
St(e, "svelte-13yb62f", ':host{--max-width:700px;--font-family:Arial, sans-serif;display:block}.registration-wall.svelte-13yb62f{font-family:var(--font-family);max-width:var(--max-width);margin:0 auto;padding:20px;text-align:center;background-color:rgb(248, 248, 245);border:solid 1px #e9e9da;border-radius:8px}h1.svelte-13yb62f{font-size:24px;margin-bottom:10px}p.svelte-13yb62f{font-size:14px;margin-bottom:20px;color:#555}.form-container.svelte-13yb62f{width:100%}input.svelte-13yb62f{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.continue-button.svelte-13yb62f{width:100%;padding:10px;background-color:#4285f4;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:10px;font-size:14px}.divider.svelte-13yb62f{margin:15px 0;text-align:center;position:relative;color:#777}.divider.svelte-13yb62f::before,.divider.svelte-13yb62f::after{content:"";position:absolute;top:50%;width:45%;height:1px;background-color:#ccc}.divider.svelte-13yb62f::before{left:0}.divider.svelte-13yb62f::after{right:0}.social-button.svelte-13yb62f{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-13yb62f{display:flex;align-items:center;justify-content:center}.button-content.svelte-13yb62f svg{margin-right:8px}.terms.svelte-13yb62f{font-size:12px;margin-top:20px;color:#777}a.svelte-13yb62f{color:#4285f4;text-decoration:none}');
|
|
1452
1452
|
}
|
|
1453
1453
|
const Qe = (e) => ({}), Zt = (e) => ({}), Xe = (e) => ({}), Ut = (e) => ({});
|
|
1454
1454
|
function tn(e) {
|
|
1455
1455
|
let t;
|
|
1456
1456
|
return {
|
|
1457
1457
|
c() {
|
|
1458
|
-
t = d("h1"), t.textContent = "Skapa ett gratis konto eller logga in", o(t, "class", "svelte-
|
|
1458
|
+
t = d("h1"), t.textContent = "Skapa ett gratis konto eller logga in", o(t, "class", "svelte-13yb62f");
|
|
1459
1459
|
},
|
|
1460
1460
|
m(n, l) {
|
|
1461
1461
|
z(n, t, l);
|
|
@@ -1470,7 +1470,7 @@ function en(e) {
|
|
|
1470
1470
|
let t;
|
|
1471
1471
|
return {
|
|
1472
1472
|
c() {
|
|
1473
|
-
t = d("p"), t.textContent = "Få tillgång till gratis artiklar och nyhetsbrev.", o(t, "class", "svelte-
|
|
1473
|
+
t = d("p"), t.textContent = "Få tillgång till gratis artiklar och nyhetsbrev.", o(t, "class", "svelte-13yb62f");
|
|
1474
1474
|
},
|
|
1475
1475
|
m(n, l) {
|
|
1476
1476
|
z(n, t, l);
|
|
@@ -1482,7 +1482,7 @@ function en(e) {
|
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
1484
|
function nn(e) {
|
|
1485
|
-
let t, n, l, s, i, r, a, h, p,
|
|
1485
|
+
let t, n, l, s, i, r, a, h, p, w, _, u, $, g, E, L, B, C, y, I, R, T, F, S, A, D, H, Q, M, N, et, lt;
|
|
1486
1486
|
const st = (
|
|
1487
1487
|
/*#slots*/
|
|
1488
1488
|
e[1].title
|
|
@@ -1501,52 +1501,52 @@ function nn(e) {
|
|
|
1501
1501
|
/*$$scope*/
|
|
1502
1502
|
e[0],
|
|
1503
1503
|
Zt
|
|
1504
|
-
),
|
|
1505
|
-
return $ = new Je({ props: { width: "18", height: "18" } }),
|
|
1504
|
+
), k = G || en();
|
|
1505
|
+
return $ = new Je({ props: { width: "18", height: "18" } }), y = new Ke({ props: { width: "18", height: "18" } }), A = new Re({ props: { width: "18", height: "18" } }), {
|
|
1506
1506
|
c() {
|
|
1507
|
-
t = d("div"), v && v.c(), n =
|
|
1507
|
+
t = d("div"), v && v.c(), n = m(), k && k.c(), l = m(), s = d("div"), i = d("input"), r = m(), a = d("button"), a.textContent = "Fortsätt", h = m(), p = d("div"), p.textContent = "eller", w = m(), _ = d("button"), u = d("span"), pt($.$$.fragment), g = m(), E = d("span"), E.textContent = "Fortsätt med Google", L = m(), B = d("button"), C = d("span"), pt(y.$$.fragment), I = m(), R = d("span"), R.textContent = "Fortsätt med Facebook", T = m(), F = d("button"), S = d("span"), pt(A.$$.fragment), D = m(), H = d("span"), H.textContent = "Fortsätt med Apple", Q = m(), M = d("p"), M.innerHTML = 'Genom att logga in godkänner du våra <a href="#terms" class="svelte-13yb62f">Vilkor</a>', o(i, "type", "email"), o(i, "id", "email"), o(i, "placeholder", "Skriv in din epost"), o(i, "class", "svelte-13yb62f"), o(a, "part", "continueButton"), o(a, "class", "continue-button svelte-13yb62f"), o(p, "class", "divider svelte-13yb62f"), o(E, "class", "button-text"), o(u, "class", "button-content svelte-13yb62f"), o(_, "class", "social-button google svelte-13yb62f"), o(R, "class", "button-text"), o(C, "class", "button-content svelte-13yb62f"), o(B, "class", "social-button facebook svelte-13yb62f"), o(H, "class", "button-text"), o(S, "class", "button-content svelte-13yb62f"), o(F, "class", "social-button apple svelte-13yb62f"), o(s, "class", "form-container svelte-13yb62f"), o(M, "class", "terms svelte-13yb62f"), o(t, "class", "registration-wall svelte-13yb62f");
|
|
1508
1508
|
},
|
|
1509
1509
|
m(f, x) {
|
|
1510
|
-
z(f, t, x), v && v.m(t, null), c(t, n),
|
|
1511
|
-
P(a, "click",
|
|
1512
|
-
P(_, "click",
|
|
1513
|
-
P(B, "click",
|
|
1514
|
-
P(F, "click",
|
|
1510
|
+
z(f, t, x), v && v.m(t, null), c(t, n), k && k.m(t, null), c(t, l), c(t, s), c(s, i), c(s, r), c(s, a), c(s, h), c(s, p), c(s, w), c(s, _), c(_, u), ut($, u, null), c(u, g), c(u, E), c(s, L), c(s, B), c(B, C), ut(y, C, null), c(C, I), c(C, R), c(s, T), c(s, F), c(F, S), ut(A, S, null), c(S, D), c(S, H), c(t, Q), c(t, M), N = !0, et || (lt = [
|
|
1511
|
+
P(a, "click", mt),
|
|
1512
|
+
P(_, "click", mt),
|
|
1513
|
+
P(B, "click", mt),
|
|
1514
|
+
P(F, "click", mt)
|
|
1515
1515
|
], et = !0);
|
|
1516
1516
|
},
|
|
1517
1517
|
p(f, [x]) {
|
|
1518
1518
|
W && W.p && (!N || x & /*$$scope*/
|
|
1519
|
-
1) &&
|
|
1519
|
+
1) && yt(
|
|
1520
1520
|
W,
|
|
1521
1521
|
st,
|
|
1522
1522
|
f,
|
|
1523
1523
|
/*$$scope*/
|
|
1524
1524
|
f[0],
|
|
1525
|
-
N ?
|
|
1525
|
+
N ? wt(
|
|
1526
1526
|
st,
|
|
1527
1527
|
/*$$scope*/
|
|
1528
1528
|
f[0],
|
|
1529
1529
|
x,
|
|
1530
1530
|
Xe
|
|
1531
|
-
) :
|
|
1531
|
+
) : kt(
|
|
1532
1532
|
/*$$scope*/
|
|
1533
1533
|
f[0]
|
|
1534
1534
|
),
|
|
1535
1535
|
Ut
|
|
1536
1536
|
), G && G.p && (!N || x & /*$$scope*/
|
|
1537
|
-
1) &&
|
|
1537
|
+
1) && yt(
|
|
1538
1538
|
G,
|
|
1539
1539
|
dt,
|
|
1540
1540
|
f,
|
|
1541
1541
|
/*$$scope*/
|
|
1542
1542
|
f[0],
|
|
1543
|
-
N ?
|
|
1543
|
+
N ? wt(
|
|
1544
1544
|
dt,
|
|
1545
1545
|
/*$$scope*/
|
|
1546
1546
|
f[0],
|
|
1547
1547
|
x,
|
|
1548
1548
|
Qe
|
|
1549
|
-
) :
|
|
1549
|
+
) : kt(
|
|
1550
1550
|
/*$$scope*/
|
|
1551
1551
|
f[0]
|
|
1552
1552
|
),
|
|
@@ -1554,17 +1554,17 @@ function nn(e) {
|
|
|
1554
1554
|
);
|
|
1555
1555
|
},
|
|
1556
1556
|
i(f) {
|
|
1557
|
-
N || (O(v, f), O(
|
|
1557
|
+
N || (O(v, f), O(k, f), O($.$$.fragment, f), O(y.$$.fragment, f), O(A.$$.fragment, f), N = !0);
|
|
1558
1558
|
},
|
|
1559
1559
|
o(f) {
|
|
1560
|
-
Z(v, f), Z(
|
|
1560
|
+
Z(v, f), Z(k, f), Z($.$$.fragment, f), Z(y.$$.fragment, f), Z(A.$$.fragment, f), N = !1;
|
|
1561
1561
|
},
|
|
1562
1562
|
d(f) {
|
|
1563
|
-
f && j(t), v && v.d(f),
|
|
1563
|
+
f && j(t), v && v.d(f), k && k.d(f), ft($), ft(y), ft(A), et = !1, tt(lt);
|
|
1564
1564
|
}
|
|
1565
1565
|
};
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function mt() {
|
|
1568
1568
|
console.log("Button clicked");
|
|
1569
1569
|
}
|
|
1570
1570
|
function ln(e, t, n) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(L,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(L=typeof globalThis<"u"?globalThis:L||self,v(L["@sesamy/sesamy-components"]={}))})(this,function(L){"use strict";var cn=Object.defineProperty;var an=(L,v,O)=>v in L?cn(L,v,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[v]=O;var R=(L,v,O)=>an(L,typeof v!="symbol"?v+"":v,O);function v(){}function O(e,t){for(const n in t)e[n]=t[n];return e}function Ot(e){return e()}function Tt(){return Object.create(null)}function tt(e){e.forEach(Ot)}function Ft(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let bt;function Ht(e,t){return e===t?!0:(bt||(bt=document.createElement("a")),bt.href=t,e===bt.href)}function ce(e){return Object.keys(e).length===0}function _t(e,t,n,l){if(e){const s=Wt(e,t,n,l);return e[0](s)}}function Wt(e,t,n,l){return e[1]&&l?O(n.ctx.slice(),e[1](l(t))):n.ctx}function vt(e,t,n,l){if(e[2]&&l){const s=e[2](l(n));if(t.dirty===void 0)return s;if(typeof s=="object"){const i=[],r=Math.max(t.dirty.length,s.length);for(let a=0;a<r;a+=1)i[a]=t.dirty[a]|s[a];return i}return t.dirty|s}return t.dirty}function $t(e,t,n,l,s,i){if(s){const r=Wt(t,n,l,i);e.p(r,s)}}function kt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let l=0;l<n;l++)t[l]=-1;return t}return-1}function yt(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function Vt(e,t){const n={};t=new Set(t);for(const l in e)!t.has(l)&&l[0]!=="$"&&(n[l]=e[l]);return n}function c(e,t){e.appendChild(t)}function zt(e,t,n){const l=ae(e);if(!l.getElementById(t)){const s=d("style");s.id=t,s.textContent=n,ue(l,s)}}function ae(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ue(e,t){return c(e.head||e,t),t.sheet}function z(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function Et(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function d(e){return document.createElement(e)}function D(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function It(e){return document.createTextNode(e)}function b(){return It(" ")}function Lt(){return It("")}function A(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function o(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function wt(e,t){for(const n in t)o(e,n,t[n])}function fe(e){let t;return{p(...n){t=n,t.forEach(l=>e.push(l))},r(){t.forEach(n=>e.splice(e.indexOf(n),1))}}}function de(e){return Array.from(e.childNodes)}function Rt(e,t){e.value=t??""}function he(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let St;function ht(e){St=e}const st=[],Dt=[];let it=[];const Gt=[],ge=Promise.resolve();let Nt=!1;function pe(){Nt||(Nt=!0,ge.then(Kt))}function At(e){it.push(e)}const Mt=new Set;let ot=0;function Kt(){if(ot!==0)return;const e=St;do{try{for(;ot<st.length;){const t=st[ot];ot++,ht(t),me(t.$$)}}catch(t){throw st.length=0,ot=0,t}for(ht(null),st.length=0,ot=0;Dt.length;)Dt.pop()();for(let t=0;t<it.length;t+=1){const n=it[t];Mt.has(n)||(Mt.add(n),n())}it.length=0}while(st.length);for(;Gt.length;)Gt.pop()();Nt=!1,Mt.clear(),ht(e)}function me(e){if(e.fragment!==null){e.update(),tt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(At)}}function be(e){const t=[],n=[];it.forEach(l=>e.indexOf(l)===-1?t.push(l):n.push(l)),n.forEach(l=>l()),it=t}const xt=new Set;let nt;function _e(){nt={r:0,c:[],p:nt}}function ve(){nt.r||tt(nt.c),nt=nt.p}function T(e,t){e&&e.i&&(xt.delete(e),e.i(t))}function G(e,t,n,l){if(e&&e.o){if(xt.has(e))return;xt.add(e),nt.c.push(()=>{xt.delete(e),l&&(n&&e.d(1),l())}),e.o(t)}else l&&l()}function rt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Pt(e,t){const n={},l={},s={$$scope:1};let i=e.length;for(;i--;){const r=e[i],a=t[i];if(a){for(const h in r)h in a||(l[h]=1);for(const h in a)s[h]||(n[h]=a[h],s[h]=1);e[i]=a}else for(const h in r)s[h]=1}for(const r in l)r in n||(n[r]=void 0);return n}function $e(e){return typeof e=="object"&&e!==null?e:{}}function gt(e){e&&e.c()}function ct(e,t,n){const{fragment:l,after_update:s}=e.$$;l&&l.m(t,n),At(()=>{const i=e.$$.on_mount.map(Ot).filter(Ft);e.$$.on_destroy?e.$$.on_destroy.push(...i):tt(i),e.$$.on_mount=[]}),s.forEach(At)}function at(e,t){const n=e.$$;n.fragment!==null&&(be(n.after_update),tt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ke(e,t){e.$$.dirty[0]===-1&&(st.push(e),pe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Q(e,t,n,l,s,i,r=null,a=[-1]){const h=St;ht(e);const p=e.$$={fragment:null,ctx:[],props:i,update:v,not_equal:s,bound:Tt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:Tt(),dirty:a,skip_bound:!1,root:t.target||h.$$.root};r&&r(p.root);let y=!1;if(p.ctx=n?n(e,t.props||{},(_,u,...k)=>{const g=k.length?k[0]:u;return p.ctx&&s(p.ctx[_],p.ctx[_]=g)&&(!p.skip_bound&&p.bound[_]&&p.bound[_](g),y&&ke(e,_)),u}):[],p.update(),y=!0,tt(p.before_update),p.fragment=l?l(p.ctx):!1,t.target){if(t.hydrate){const _=de(t.target);p.fragment&&p.fragment.l(_),_.forEach(j)}else p.fragment&&p.fragment.c();t.intro&&T(e.$$.fragment),ct(e,t.target,t.anchor),Kt()}ht(h)}let Zt;typeof HTMLElement=="function"&&(Zt=class extends HTMLElement{constructor(t,n,l){super();R(this,"$$ctor");R(this,"$$s");R(this,"$$c");R(this,"$$cn",!1);R(this,"$$d",{});R(this,"$$r",!1);R(this,"$$p_d",{});R(this,"$$l",{});R(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,l&&this.attachShadow({mode:"open"})}addEventListener(t,n,l){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,l)}removeEventListener(t,n,l){if(super.removeEventListener(t,n,l),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let r;return{c:function(){r=d("slot"),i!=="default"&&o(r,"name",i)},m:function(p,y){z(p,r,y)},d:function(p){p&&j(r)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},l=he(this);for(const i of this.$$s)i in l&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=Ct(r,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=Ct(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const i in this.$$l)for(const r of this.$$l[i]){const a=this.$$c.$on(i,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,n,l){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ct(t,l,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Ct(e,t,n,l){var i;const s=(i=n[e])==null?void 0:i.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!l||!n[e])return t;if(l==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function qt(e,t,n,l,s,i){let r=class extends Zt{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(r.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(h){var p;h=Ct(a,h,t),this.$$d[a]=h,(p=this.$$c)==null||p.$set({[a]:h})}})}),l.forEach(a=>{Object.defineProperty(r.prototype,a,{get(){var h;return(h=this.$$c)==null?void 0:h[a]}})}),e.element=r,r}class X{constructor(){R(this,"$$");R(this,"$$set")}$destroy(){at(this,1),this.$destroy=v}$on(t,n){if(!Ft(n))return v;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(n),()=>{const s=l.indexOf(n);s!==-1&&l.splice(s,1)}}$set(t){this.$$set&&!ce(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ye="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ye);function we(e){zt(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}}")}function xe(e){let t,n,l;return{c(){t=d("button"),t.textContent="Login",o(t,"class","login-btn svelte-1nq6lsq"),o(t,"aria-label","Log in")},m(s,i){z(s,t,i),n||(l=A(t,"click",e[2]),n=!0)},p:v,d(s){s&&j(t),n=!1,l()}}}function Ce(e){let t,n,l,s,i;return{c(){t=d("button"),n=d("img"),Ht(n.src,l=ze)||o(n,"src",l),o(n,"alt","User Avatar"),o(n,"class","svelte-1nq6lsq"),o(t,"class","avatar-btn svelte-1nq6lsq"),o(t,"aria-label","Log out")},m(r,a){z(r,t,a),c(t,n),s||(i=A(t,"click",e[3]),s=!0)},p:v,d(r){r&&j(t),s=!1,i()}}}function qe(e){let t;return{c(){t=d("button"),t.innerHTML="",o(t,"class","loading-btn svelte-1nq6lsq"),o(t,"aria-busy","true"),o(t,"aria-label","Logging in")},m(n,l){z(n,t,l)},p:v,d(n){n&&j(t)}}}function je(e){let t;function n(i,r){return i[0]?qe:i[1]?Ce:xe}let l=n(e),s=l(e);return{c(){s.c(),t=Lt()},m(i,r){s.m(i,r),z(i,t,r)},p(i,[r]){l===(l=n(i))&&s?s.p(i,r):(s.d(1),s=l(i),s&&(s.c(),s.m(t.parentNode,t)))},i:v,o:v,d(i){i&&j(t),s.d(i)}}}let ze="https://via.placeholder.com/50";function Ee(e,t,n){let l=!1,s=!1;const i=async()=>{n(0,l=!0),await new Promise(h=>setTimeout(h,2e3)),n(0,l=!1),n(1,s=!0)},r=()=>{n(1,s=!1)};return s=s,[l,s,i,r]}class Ut extends X{constructor(t){super(),Q(this,t,Ee,je,Y,{},we)}}customElements.define("sesamy-login",qt(Ut,{},[],[],!0));const Le=Ut;/**
|
|
1
|
+
(function(L,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(L=typeof globalThis<"u"?globalThis:L||self,v(L["@sesamy/sesamy-components"]={}))})(this,function(L){"use strict";var cn=Object.defineProperty;var an=(L,v,O)=>v in L?cn(L,v,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[v]=O;var R=(L,v,O)=>an(L,typeof v!="symbol"?v+"":v,O);function v(){}function O(e,t){for(const n in t)e[n]=t[n];return e}function Ot(e){return e()}function Tt(){return Object.create(null)}function tt(e){e.forEach(Ot)}function Ft(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let mt;function Ht(e,t){return e===t?!0:(mt||(mt=document.createElement("a")),mt.href=t,e===mt.href)}function ce(e){return Object.keys(e).length===0}function _t(e,t,n,l){if(e){const s=Wt(e,t,n,l);return e[0](s)}}function Wt(e,t,n,l){return e[1]&&l?O(n.ctx.slice(),e[1](l(t))):n.ctx}function vt(e,t,n,l){if(e[2]&&l){const s=e[2](l(n));if(t.dirty===void 0)return s;if(typeof s=="object"){const i=[],r=Math.max(t.dirty.length,s.length);for(let a=0;a<r;a+=1)i[a]=t.dirty[a]|s[a];return i}return t.dirty|s}return t.dirty}function $t(e,t,n,l,s,i){if(s){const r=Wt(t,n,l,i);e.p(r,s)}}function yt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let l=0;l<n;l++)t[l]=-1;return t}return-1}function wt(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function Vt(e,t){const n={};t=new Set(t);for(const l in e)!t.has(l)&&l[0]!=="$"&&(n[l]=e[l]);return n}function c(e,t){e.appendChild(t)}function zt(e,t,n){const l=ae(e);if(!l.getElementById(t)){const s=d("style");s.id=t,s.textContent=n,ue(l,s)}}function ae(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ue(e,t){return c(e.head||e,t),t.sheet}function z(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function Et(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function d(e){return document.createElement(e)}function D(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function It(e){return document.createTextNode(e)}function m(){return It(" ")}function Lt(){return It("")}function A(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function o(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function kt(e,t){for(const n in t)o(e,n,t[n])}function fe(e){let t;return{p(...n){t=n,t.forEach(l=>e.push(l))},r(){t.forEach(n=>e.splice(e.indexOf(n),1))}}}function de(e){return Array.from(e.childNodes)}function Rt(e,t){e.value=t??""}function he(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let St;function ht(e){St=e}const st=[],Dt=[];let it=[];const Gt=[],ge=Promise.resolve();let Nt=!1;function pe(){Nt||(Nt=!0,ge.then(Kt))}function At(e){it.push(e)}const Mt=new Set;let ot=0;function Kt(){if(ot!==0)return;const e=St;do{try{for(;ot<st.length;){const t=st[ot];ot++,ht(t),be(t.$$)}}catch(t){throw st.length=0,ot=0,t}for(ht(null),st.length=0,ot=0;Dt.length;)Dt.pop()();for(let t=0;t<it.length;t+=1){const n=it[t];Mt.has(n)||(Mt.add(n),n())}it.length=0}while(st.length);for(;Gt.length;)Gt.pop()();Nt=!1,Mt.clear(),ht(e)}function be(e){if(e.fragment!==null){e.update(),tt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(At)}}function me(e){const t=[],n=[];it.forEach(l=>e.indexOf(l)===-1?t.push(l):n.push(l)),n.forEach(l=>l()),it=t}const xt=new Set;let nt;function _e(){nt={r:0,c:[],p:nt}}function ve(){nt.r||tt(nt.c),nt=nt.p}function T(e,t){e&&e.i&&(xt.delete(e),e.i(t))}function G(e,t,n,l){if(e&&e.o){if(xt.has(e))return;xt.add(e),nt.c.push(()=>{xt.delete(e),l&&(n&&e.d(1),l())}),e.o(t)}else l&&l()}function rt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Pt(e,t){const n={},l={},s={$$scope:1};let i=e.length;for(;i--;){const r=e[i],a=t[i];if(a){for(const h in r)h in a||(l[h]=1);for(const h in a)s[h]||(n[h]=a[h],s[h]=1);e[i]=a}else for(const h in r)s[h]=1}for(const r in l)r in n||(n[r]=void 0);return n}function $e(e){return typeof e=="object"&&e!==null?e:{}}function gt(e){e&&e.c()}function ct(e,t,n){const{fragment:l,after_update:s}=e.$$;l&&l.m(t,n),At(()=>{const i=e.$$.on_mount.map(Ot).filter(Ft);e.$$.on_destroy?e.$$.on_destroy.push(...i):tt(i),e.$$.on_mount=[]}),s.forEach(At)}function at(e,t){const n=e.$$;n.fragment!==null&&(me(n.after_update),tt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ye(e,t){e.$$.dirty[0]===-1&&(st.push(e),pe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Q(e,t,n,l,s,i,r=null,a=[-1]){const h=St;ht(e);const p=e.$$={fragment:null,ctx:[],props:i,update:v,not_equal:s,bound:Tt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:Tt(),dirty:a,skip_bound:!1,root:t.target||h.$$.root};r&&r(p.root);let w=!1;if(p.ctx=n?n(e,t.props||{},(_,u,...y)=>{const g=y.length?y[0]:u;return p.ctx&&s(p.ctx[_],p.ctx[_]=g)&&(!p.skip_bound&&p.bound[_]&&p.bound[_](g),w&&ye(e,_)),u}):[],p.update(),w=!0,tt(p.before_update),p.fragment=l?l(p.ctx):!1,t.target){if(t.hydrate){const _=de(t.target);p.fragment&&p.fragment.l(_),_.forEach(j)}else p.fragment&&p.fragment.c();t.intro&&T(e.$$.fragment),ct(e,t.target,t.anchor),Kt()}ht(h)}let Zt;typeof HTMLElement=="function"&&(Zt=class extends HTMLElement{constructor(t,n,l){super();R(this,"$$ctor");R(this,"$$s");R(this,"$$c");R(this,"$$cn",!1);R(this,"$$d",{});R(this,"$$r",!1);R(this,"$$p_d",{});R(this,"$$l",{});R(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,l&&this.attachShadow({mode:"open"})}addEventListener(t,n,l){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,l)}removeEventListener(t,n,l){if(super.removeEventListener(t,n,l),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let r;return{c:function(){r=d("slot"),i!=="default"&&o(r,"name",i)},m:function(p,w){z(p,r,w)},d:function(p){p&&j(r)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},l=he(this);for(const i of this.$$s)i in l&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=Ct(r,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=Ct(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const i in this.$$l)for(const r of this.$$l[i]){const a=this.$$c.$on(i,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,n,l){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ct(t,l,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Ct(e,t,n,l){var i;const s=(i=n[e])==null?void 0:i.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!l||!n[e])return t;if(l==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function qt(e,t,n,l,s,i){let r=class extends Zt{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(r.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(h){var p;h=Ct(a,h,t),this.$$d[a]=h,(p=this.$$c)==null||p.$set({[a]:h})}})}),l.forEach(a=>{Object.defineProperty(r.prototype,a,{get(){var h;return(h=this.$$c)==null?void 0:h[a]}})}),e.element=r,r}class X{constructor(){R(this,"$$");R(this,"$$set")}$destroy(){at(this,1),this.$destroy=v}$on(t,n){if(!Ft(n))return v;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(n),()=>{const s=l.indexOf(n);s!==-1&&l.splice(s,1)}}$set(t){this.$$set&&!ce(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const we="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(we);function ke(e){zt(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}}")}function xe(e){let t,n,l;return{c(){t=d("button"),t.textContent="Login",o(t,"class","login-btn svelte-1nq6lsq"),o(t,"aria-label","Log in")},m(s,i){z(s,t,i),n||(l=A(t,"click",e[2]),n=!0)},p:v,d(s){s&&j(t),n=!1,l()}}}function Ce(e){let t,n,l,s,i;return{c(){t=d("button"),n=d("img"),Ht(n.src,l=ze)||o(n,"src",l),o(n,"alt","User Avatar"),o(n,"class","svelte-1nq6lsq"),o(t,"class","avatar-btn svelte-1nq6lsq"),o(t,"aria-label","Log out")},m(r,a){z(r,t,a),c(t,n),s||(i=A(t,"click",e[3]),s=!0)},p:v,d(r){r&&j(t),s=!1,i()}}}function qe(e){let t;return{c(){t=d("button"),t.innerHTML="",o(t,"class","loading-btn svelte-1nq6lsq"),o(t,"aria-busy","true"),o(t,"aria-label","Logging in")},m(n,l){z(n,t,l)},p:v,d(n){n&&j(t)}}}function je(e){let t;function n(i,r){return i[0]?qe:i[1]?Ce:xe}let l=n(e),s=l(e);return{c(){s.c(),t=Lt()},m(i,r){s.m(i,r),z(i,t,r)},p(i,[r]){l===(l=n(i))&&s?s.p(i,r):(s.d(1),s=l(i),s&&(s.c(),s.m(t.parentNode,t)))},i:v,o:v,d(i){i&&j(t),s.d(i)}}}let ze="https://via.placeholder.com/50";function Ee(e,t,n){let l=!1,s=!1;const i=async()=>{n(0,l=!0),await new Promise(h=>setTimeout(h,2e3)),n(0,l=!1),n(1,s=!0)},r=()=>{n(1,s=!1)};return s=s,[l,s,i,r]}class Ut extends X{constructor(t){super(),Q(this,t,Ee,je,Y,{},ke)}}customElements.define("sesamy-login",qt(Ut,{},[],[],!0));const Le=Ut;/**
|
|
2
2
|
* @license lucide-svelte v0.445.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const Jt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Yt(e,t,n){const l=e.slice();return l[11]=t[n][0],l[12]=t[n][1],l}function Bt(e){let t,n=[e[12]],l={};for(let s=0;s<n.length;s+=1)l=O(l,n[s]);return{c(){t=D(e[11]),
|
|
7
|
-
podcasts and some daily games.`,i=
|
|
6
|
+
*/const Jt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Yt(e,t,n){const l=e.slice();return l[11]=t[n][0],l[12]=t[n][1],l}function Bt(e){let t,n=[e[12]],l={};for(let s=0;s<n.length;s+=1)l=O(l,n[s]);return{c(){t=D(e[11]),kt(t,l)},m(s,i){z(s,t,i)},p(s,i){kt(t,l=Pt(n,[i&32&&s[12]]))},d(s){s&&j(t)}}}function Qt(e){let t=e[11],n,l=e[11]&&Bt(e);return{c(){l&&l.c(),n=Lt()},m(s,i){l&&l.m(s,i),z(s,n,i)},p(s,i){s[11]?t?Y(t,s[11])?(l.d(1),l=Bt(s),t=s[11],l.c(),l.m(n.parentNode,n)):l.p(s,i):(l=Bt(s),t=s[11],l.c(),l.m(n.parentNode,n)):t&&(l.d(1),l=null,t=s[11])},d(s){s&&j(n),l&&l.d(s)}}}function Se(e){let t,n,l,s,i,r=rt(e[5]),a=[];for(let u=0;u<r.length;u+=1)a[u]=Qt(Yt(e,r,u));const h=e[10].default,p=_t(h,e,e[9],null);let w=[Jt,e[7],{width:e[2]},{height:e[2]},{stroke:e[1]},{"stroke-width":l=e[4]?Number(e[3])*24/Number(e[2]):e[3]},{class:s=e[6]("lucide-icon","lucide",e[0]?`lucide-${e[0]}`:"",e[8].class)}],_={};for(let u=0;u<w.length;u+=1)_=O(_,w[u]);return{c(){t=D("svg");for(let u=0;u<a.length;u+=1)a[u].c();n=Lt(),p&&p.c(),kt(t,_)},m(u,y){z(u,t,y);for(let g=0;g<a.length;g+=1)a[g]&&a[g].m(t,null);c(t,n),p&&p.m(t,null),i=!0},p(u,[y]){if(y&32){r=rt(u[5]);let g;for(g=0;g<r.length;g+=1){const E=Yt(u,r,g);a[g]?a[g].p(E,y):(a[g]=Qt(E),a[g].c(),a[g].m(t,n))}for(;g<a.length;g+=1)a[g].d(1);a.length=r.length}p&&p.p&&(!i||y&512)&&$t(p,h,u,u[9],i?vt(h,u[9],y,null):yt(u[9]),null),kt(t,_=Pt(w,[Jt,y&128&&u[7],(!i||y&4)&&{width:u[2]},(!i||y&4)&&{height:u[2]},(!i||y&2)&&{stroke:u[1]},(!i||y&28&&l!==(l=u[4]?Number(u[3])*24/Number(u[2]):u[3]))&&{"stroke-width":l},(!i||y&257&&s!==(s=u[6]("lucide-icon","lucide",u[0]?`lucide-${u[0]}`:"",u[8].class)))&&{class:s}]))},i(u){i||(T(p,u),i=!0)},o(u){G(p,u),i=!1},d(u){u&&j(t),Et(a,u),p&&p.d(u)}}}function Ne(e,t,n){const l=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let s=Vt(t,l),{$$slots:i={},$$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;const y=(...g)=>g.filter((E,S,F)=>!!E&&F.indexOf(E)===S).join(" ");return e.$$set=g=>{n(8,t=O(O({},t),wt(g))),n(7,s=Vt(t,l)),"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)},t=wt(t),[a,h,p,w,_,u,y,s,t,r,i]}class Ae extends X{constructor(t){super(),Q(this,t,Ne,Se,Y,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Me(e){let t;const n=e[2].default,l=_t(n,e,e[3],null);return{c(){l&&l.c()},m(s,i){l&&l.m(s,i),t=!0},p(s,i){l&&l.p&&(!t||i&8)&&$t(l,n,s,s[3],t?vt(n,s[3],i,null):yt(s[3]),null)},i(s){t||(T(l,s),t=!0)},o(s){G(l,s),t=!1},d(s){l&&l.d(s)}}}function Pe(e){let t,n;const l=[{name:"circle-check"},e[1],{iconNode:e[0]}];let s={$$slots:{default:[Me]},$$scope:{ctx:e}};for(let i=0;i<l.length;i+=1)s=O(s,l[i]);return t=new Ae({props:s}),{c(){gt(t.$$.fragment)},m(i,r){ct(t,i,r),n=!0},p(i,[r]){const a=r&3?Pt(l,[l[0],r&2&&$e(i[1]),r&1&&{iconNode:i[0]}]):{};r&8&&(a.$$scope={dirty:r,ctx:i}),t.$set(a)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){G(t.$$.fragment,i),n=!1},d(i){at(t,i)}}}function Be(e,t,n){let{$$slots:l={},$$scope:s}=t;const i=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];return e.$$set=r=>{n(1,t=O(O({},t),wt(r))),"$$scope"in r&&n(3,s=r.$$scope)},t=wt(t),[i,t,l,s]}class Oe extends X{constructor(t){super(),Q(this,t,Be,Pe,Y,{})}}function Xt(e,t,n){const l=e.slice();return l[6]=t[n],l}function te(e,t,n){const l=e.slice();return l[9]=t[n],l}function ee(e){let t,n,l,s,i,r;return n=new Oe({props:{class:"text-green-500 mr-2",size:20}}),{c(){t=d("li"),gt(n.$$.fragment),l=m(),s=d("span"),s.textContent=`${e[9]}`,i=m(),o(t,"class","flex items-center")},m(a,h){z(a,t,h),ct(n,t,null),c(t,l),c(t,s),c(t,i),r=!0},p:v,i(a){r||(T(n.$$.fragment,a),r=!0)},o(a){G(n.$$.fragment,a),r=!1},d(a){a&&j(t),at(n)}}}function ne(e){let t,n;return{c(){t=d("img"),Ht(t.src,n="/api/placeholder/40/25")||o(t,"src",n),o(t,"alt",e[6]),o(t,"class","h-6")},m(l,s){z(l,t,s)},p:v,d(l){l&&j(t)}}}function Te(e){let t,n,l,s,i,r,a,h,p,w,_,u,y,g,E,S,F,q,k,K,Z,V,H,M,P,U,W,et,B,N,lt,ft,dt,I=rt(e[1]),$=[];for(let f=0;f<I.length;f+=1)$[f]=ee(te(e,I,f));const pt=f=>G($[f],1,1,()=>{$[f]=null});let J=rt(e[2]),x=[];for(let f=0;f<J.length;f+=1)x[f]=ne(Xt(e,J,f));return lt=fe(e[4][0]),{c(){t=d("div"),n=d("div"),n.textContent="Redan prenumerant? Logga in",l=m(),s=d("h1"),s.textContent="FOKUS",i=m(),r=d("h2"),r.textContent="Läs Fokus Digital i 6 månader för bara 79 kr!",a=m(),h=d("ul");for(let f=0;f<$.length;f+=1)$[f].c();p=m(),w=d("div"),_=d("label"),u=d("input"),y=m(),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=m(),S=d("div"),S.textContent="79 SEK/6 mån",F=m(),q=d("label"),k=d("input"),K=m(),Z=d("div"),Z.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>',V=m(),H=d("div"),H.textContent="995 SEK/år",M=m(),P=d("button"),P.textContent="Fortsätt",U=m(),W=d("div"),W.textContent="Säker SSL-krypterad betalning",et=m(),B=d("div");for(let f=0;f<x.length;f+=1)x[f].c();o(n,"class","text-right text-sm text-red-500 mb-4"),o(s,"class","text-4xl font-bold text-red-500 mb-4"),o(r,"class","text-xl font-semibold mb-6"),o(h,"class","space-y-2 mb-6"),o(u,"type","radio"),o(u,"name","subscription"),u.__value="sixMonths",Rt(u,u.__value),o(u,"class","mr-3"),o(S,"class","ml-auto font-semibold"),o(_,"class","flex items-center p-4 border rounded-lg"),o(k,"type","radio"),o(k,"name","subscription"),k.__value="oneYear",Rt(k,k.__value),o(k,"class","mr-3"),o(H,"class","ml-auto font-semibold"),o(q,"class","flex items-center p-4 border rounded-lg"),o(w,"class","space-y-4 mb-6"),o(P,"class","w-full bg-red-500 text-white py-3 rounded-lg font-semibold"),o(W,"class","text-center text-sm text-gray-600 mt-4"),o(B,"class","flex justify-center space-x-2 mt-2"),o(t,"class","max-w-md mx-auto bg-white p-6 rounded-lg shadow-lg"),lt.p(u,k)},m(f,C){z(f,t,C),c(t,n),c(t,l),c(t,s),c(t,i),c(t,r),c(t,a),c(t,h);for(let b=0;b<$.length;b+=1)$[b]&&$[b].m(h,null);c(t,p),c(t,w),c(w,_),c(_,u),u.checked=u.__value===e[0],c(_,y),c(_,g),c(_,E),c(_,S),c(w,F),c(w,q),c(q,k),k.checked=k.__value===e[0],c(q,K),c(q,Z),c(q,V),c(q,H),c(t,M),c(t,P),c(t,U),c(t,W),c(t,et),c(t,B);for(let b=0;b<x.length;b+=1)x[b]&&x[b].m(B,null);N=!0,ft||(dt=[A(u,"change",e[3]),A(k,"change",e[5])],ft=!0)},p(f,[C]){if(C&2){I=rt(f[1]);let b;for(b=0;b<I.length;b+=1){const bt=te(f,I,b);$[b]?($[b].p(bt,C),T($[b],1)):($[b]=ee(bt),$[b].c(),T($[b],1),$[b].m(h,null))}for(_e(),b=I.length;b<$.length;b+=1)pt(b);ve()}if(C&1&&(u.checked=u.__value===f[0]),C&1&&(k.checked=k.__value===f[0]),C&4){J=rt(f[2]);let b;for(b=0;b<J.length;b+=1){const bt=Xt(f,J,b);x[b]?x[b].p(bt,C):(x[b]=ne(bt),x[b].c(),x[b].m(B,null))}for(;b<x.length;b+=1)x[b].d(1);x.length=J.length}},i(f){if(!N){for(let C=0;C<I.length;C+=1)T($[C]);N=!0}},o(f){$=$.filter(Boolean);for(let C=0;C<$.length;C+=1)G($[C]);N=!1},d(f){f&&j(t),Et($,f),Et(x,f),lt.r(),ft=!1,tt(dt)}}}function Fe(e,t,n){let l="sixMonths";const s=["Allt material på Fokus.se","Tillgång till e-tidning","Tillgång till våra podcasts","Nyhetsbrev"],i=["Visa","American Express","Mastercard","Klarna","Google Pay","Apple Pay","Swish"],r=[[]];function a(){l=this.__value,n(0,l)}function h(){l=this.__value,n(0,l)}return[l,s,i,a,r,h]}class le extends X{constructor(t){super(),Q(this,t,Fe,Te,Y,{})}}customElements.define("sesamy-paywall",qt(le,{},[],[],!0));const He=le;function We(e){zt(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}')}function Ve(e){let t,n,l,s,i,r,a,h,p,w,_,u,y,g,E,S,F,q,k,K,Z,V,H,M,P,U,W,et;return{c(){t=d("div"),n=d("h1"),n.textContent="Create a free account, or log in.",l=m(),s=d("p"),s.textContent=`Gain access to limited free articles, news alerts, select newsletters,
|
|
7
|
+
podcasts and some daily games.`,i=m(),r=d("label"),r.textContent="Email Address",a=m(),h=d("input"),p=m(),w=d("button"),w.textContent="Continue",_=m(),u=d("div"),u.textContent="or",y=m(),g=d("p"),g.innerHTML=`By continuing, you agree to the <a href="#terms" class="svelte-phjzbp">Terms of Sale</a>,
|
|
8
8
|
<a href="#service" class="svelte-phjzbp">Terms of Service</a>, and
|
|
9
|
-
<a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`,E=
|
|
9
|
+
<a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`,E=m(),S=d("button"),S.textContent="Continue with Google",F=m(),q=d("button"),q.textContent="Continue with Facebook",k=m(),K=d("button"),K.textContent="Continue with Apple",Z=m(),V=d("a"),V.textContent="Continue with work or school single sign-on >",H=m(),M=d("p"),M.textContent="Enjoy unlimited access to all of The Times.",P=m(),U=d("button"),U.textContent="See subscription options",o(n,"class","svelte-phjzbp"),o(s,"class","svelte-phjzbp"),o(r,"for","email"),o(h,"type","email"),o(h,"id","email"),o(h,"placeholder","Enter your email"),o(h,"class","svelte-phjzbp"),o(w,"class","svelte-phjzbp"),o(u,"class","divider svelte-phjzbp"),o(g,"class","terms svelte-phjzbp"),o(S,"class","social-button google svelte-phjzbp"),o(q,"class","social-button facebook svelte-phjzbp"),o(K,"class","social-button apple svelte-phjzbp"),o(V,"href","#"),o(V,"class","svelte-phjzbp"),o(M,"class","svelte-phjzbp"),o(U,"class","svelte-phjzbp"),o(t,"class","registration-wall svelte-phjzbp")},m(B,N){z(B,t,N),c(t,n),c(t,l),c(t,s),c(t,i),c(t,r),c(t,a),c(t,h),c(t,p),c(t,w),c(t,_),c(t,u),c(t,y),c(t,g),c(t,E),c(t,S),c(t,F),c(t,q),c(t,k),c(t,K),c(t,Z),c(t,V),c(t,H),c(t,M),c(t,P),c(t,U),W||(et=[A(w,"click",ut),A(S,"click",ut),A(q,"click",ut),A(K,"click",ut),A(V,"click",ut),A(U,"click",ut)],W=!0)},p:v,i:v,o:v,d(B){B&&j(t),W=!1,tt(et)}}}function ut(){console.log("Button clicked")}class se extends X{constructor(t){super(),Q(this,t,null,Ve,Y,{},We)}}customElements.define("sesamy-hello",qt(se,{},[],[],!0));const Ie=se;function Re(e){let t,n;return{c(){t=D("svg"),n=D("path"),o(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"),o(n,"fill","#000"),o(t,"xmlns","http://www.w3.org/2000/svg"),o(t,"width",e[0]),o(t,"height",e[1]),o(t,"viewBox","0 0 22.773 28.025")},m(l,s){z(l,t,s),c(t,n)},p(l,[s]){s&1&&o(t,"width",l[0]),s&2&&o(t,"height",l[1])},i:v,o:v,d(l){l&&j(t)}}}function De(e,t,n){let{width:l="18"}=t,{height:s="18"}=t;return e.$$set=i=>{"width"in i&&n(0,l=i.width),"height"in i&&n(1,s=i.height)},[l,s]}class Ge extends X{constructor(t){super(),Q(this,t,De,Re,Y,{width:0,height:1})}}function Ke(e){let t,n;return{c(){t=D("svg"),n=D("path"),o(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"),o(n,"fill","#1877F2"),o(t,"xmlns","http://www.w3.org/2000/svg"),o(t,"width",e[0]),o(t,"height",e[1]),o(t,"viewBox","0 0 18 18")},m(l,s){z(l,t,s),c(t,n)},p(l,[s]){s&1&&o(t,"width",l[0]),s&2&&o(t,"height",l[1])},i:v,o:v,d(l){l&&j(t)}}}function Ze(e,t,n){let{width:l="18"}=t,{height:s="18"}=t;return e.$$set=i=>{"width"in i&&n(0,l=i.width),"height"in i&&n(1,s=i.height)},[l,s]}class Ue extends X{constructor(t){super(),Q(this,t,Ze,Ke,Y,{width:0,height:1})}}function Je(e){let t,n,l,s,i;return{c(){t=D("svg"),n=D("path"),l=D("path"),s=D("path"),i=D("path"),o(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"),o(n,"fill","#4285F4"),o(l,"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"),o(l,"fill","#34A853"),o(s,"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"),o(s,"fill","#FBBC04"),o(i,"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"),o(i,"fill","#EA4335"),o(t,"width",e[0]),o(t,"height",e[1]),o(t,"viewBox","0 0 45 45"),o(t,"xmlns","http://www.w3.org/2000/svg")},m(r,a){z(r,t,a),c(t,n),c(t,l),c(t,s),c(t,i)},p(r,[a]){a&1&&o(t,"width",r[0]),a&2&&o(t,"height",r[1])},i:v,o:v,d(r){r&&j(t)}}}function Ye(e,t,n){let{width:l="18"}=t,{height:s="18"}=t;return e.$$set=i=>{"width"in i&&n(0,l=i.width),"height"in i&&n(1,s=i.height)},[l,s]}class Qe extends X{constructor(t){super(),Q(this,t,Ye,Je,Y,{width:0,height:1})}}function Xe(e){zt(e,"svelte-13yb62f",':host{--max-width:700px;--font-family:Arial, sans-serif;display:block}.registration-wall.svelte-13yb62f{font-family:var(--font-family);max-width:var(--max-width);margin:0 auto;padding:20px;text-align:center;background-color:rgb(248, 248, 245);border:solid 1px #e9e9da;border-radius:8px}h1.svelte-13yb62f{font-size:24px;margin-bottom:10px}p.svelte-13yb62f{font-size:14px;margin-bottom:20px;color:#555}.form-container.svelte-13yb62f{width:100%}input.svelte-13yb62f{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.continue-button.svelte-13yb62f{width:100%;padding:10px;background-color:#4285f4;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:10px;font-size:14px}.divider.svelte-13yb62f{margin:15px 0;text-align:center;position:relative;color:#777}.divider.svelte-13yb62f::before,.divider.svelte-13yb62f::after{content:"";position:absolute;top:50%;width:45%;height:1px;background-color:#ccc}.divider.svelte-13yb62f::before{left:0}.divider.svelte-13yb62f::after{right:0}.social-button.svelte-13yb62f{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-13yb62f{display:flex;align-items:center;justify-content:center}.button-content.svelte-13yb62f svg{margin-right:8px}.terms.svelte-13yb62f{font-size:12px;margin-top:20px;color:#777}a.svelte-13yb62f{color:#4285f4;text-decoration:none}')}const tn=e=>({}),ie=e=>({}),en=e=>({}),oe=e=>({});function nn(e){let t;return{c(){t=d("h1"),t.textContent="Skapa ett gratis konto eller logga in",o(t,"class","svelte-13yb62f")},m(n,l){z(n,t,l)},p:v,d(n){n&&j(t)}}}function ln(e){let t;return{c(){t=d("p"),t.textContent="Få tillgång till gratis artiklar och nyhetsbrev.",o(t,"class","svelte-13yb62f")},m(n,l){z(n,t,l)},p:v,d(n){n&&j(t)}}}function sn(e){let t,n,l,s,i,r,a,h,p,w,_,u,y,g,E,S,F,q,k,K,Z,V,H,M,P,U,W,et,B,N,lt,ft;const dt=e[1].title,I=_t(dt,e,e[0],oe),$=I||nn(),pt=e[1].description,J=_t(pt,e,e[0],ie),x=J||ln();return y=new Qe({props:{width:"18",height:"18"}}),k=new Ue({props:{width:"18",height:"18"}}),P=new Ge({props:{width:"18",height:"18"}}),{c(){t=d("div"),$&&$.c(),n=m(),x&&x.c(),l=m(),s=d("div"),i=d("input"),r=m(),a=d("button"),a.textContent="Fortsätt",h=m(),p=d("div"),p.textContent="eller",w=m(),_=d("button"),u=d("span"),gt(y.$$.fragment),g=m(),E=d("span"),E.textContent="Fortsätt med Google",S=m(),F=d("button"),q=d("span"),gt(k.$$.fragment),K=m(),Z=d("span"),Z.textContent="Fortsätt med Facebook",V=m(),H=d("button"),M=d("span"),gt(P.$$.fragment),U=m(),W=d("span"),W.textContent="Fortsätt med Apple",et=m(),B=d("p"),B.innerHTML='Genom att logga in godkänner du våra <a href="#terms" class="svelte-13yb62f">Vilkor</a>',o(i,"type","email"),o(i,"id","email"),o(i,"placeholder","Skriv in din epost"),o(i,"class","svelte-13yb62f"),o(a,"part","continueButton"),o(a,"class","continue-button svelte-13yb62f"),o(p,"class","divider svelte-13yb62f"),o(E,"class","button-text"),o(u,"class","button-content svelte-13yb62f"),o(_,"class","social-button google svelte-13yb62f"),o(Z,"class","button-text"),o(q,"class","button-content svelte-13yb62f"),o(F,"class","social-button facebook svelte-13yb62f"),o(W,"class","button-text"),o(M,"class","button-content svelte-13yb62f"),o(H,"class","social-button apple svelte-13yb62f"),o(s,"class","form-container svelte-13yb62f"),o(B,"class","terms svelte-13yb62f"),o(t,"class","registration-wall svelte-13yb62f")},m(f,C){z(f,t,C),$&&$.m(t,null),c(t,n),x&&x.m(t,null),c(t,l),c(t,s),c(s,i),c(s,r),c(s,a),c(s,h),c(s,p),c(s,w),c(s,_),c(_,u),ct(y,u,null),c(u,g),c(u,E),c(s,S),c(s,F),c(F,q),ct(k,q,null),c(q,K),c(q,Z),c(s,V),c(s,H),c(H,M),ct(P,M,null),c(M,U),c(M,W),c(t,et),c(t,B),N=!0,lt||(ft=[A(a,"click",jt),A(_,"click",jt),A(F,"click",jt),A(H,"click",jt)],lt=!0)},p(f,[C]){I&&I.p&&(!N||C&1)&&$t(I,dt,f,f[0],N?vt(dt,f[0],C,en):yt(f[0]),oe),J&&J.p&&(!N||C&1)&&$t(J,pt,f,f[0],N?vt(pt,f[0],C,tn):yt(f[0]),ie)},i(f){N||(T($,f),T(x,f),T(y.$$.fragment,f),T(k.$$.fragment,f),T(P.$$.fragment,f),N=!0)},o(f){G($,f),G(x,f),G(y.$$.fragment,f),G(k.$$.fragment,f),G(P.$$.fragment,f),N=!1},d(f){f&&j(t),$&&$.d(f),x&&x.d(f),at(y),at(k),at(P),lt=!1,tt(ft)}}}function jt(){console.log("Button clicked")}function on(e,t,n){let{$$slots:l={},$$scope:s}=t;return e.$$set=i=>{"$$scope"in i&&n(0,s=i.$$scope)},[s,l]}class re extends X{constructor(t){super(),Q(this,t,on,sn,Y,{},Xe)}}customElements.define("sesamy-registration-wall",qt(re,{},["title","description"],[],!0));const rn=re;L.Hello=Ie,L.Login=Le,L.Paywall=He,L.RegistrationWall=rn,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sesamy/sesamy-components",
|
|
3
3
|
"description": "Ahareable web components library with Vite + Svelte",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/lib/sesamy-components.es.js",
|
|
7
7
|
"main": "dist/lib/sesamy-components.umd.js",
|