@sesamy/sesamy-components 1.8.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/sesamy-components.es.js +1217 -1182
- package/dist/lib/sesamy-components.umd.js +13 -13
- package/package.json +4 -4
|
@@ -258,8 +258,8 @@ function proxy($e, De = null, Fe) {
|
|
|
258
258
|
var Ye = (
|
|
259
259
|
/** @type {Source<number>} */
|
|
260
260
|
Be.get("length")
|
|
261
|
-
),
|
|
262
|
-
Number.isInteger(
|
|
261
|
+
), et = Number(Je);
|
|
262
|
+
Number.isInteger(et) && et < Ye.v && set$2(Ye, et);
|
|
263
263
|
}
|
|
264
264
|
set$2(Ze, UNINITIALIZED), update_version(Ke);
|
|
265
265
|
}
|
|
@@ -269,10 +269,10 @@ function proxy($e, De = null, Fe) {
|
|
|
269
269
|
var tt;
|
|
270
270
|
if (Je === STATE_SYMBOL)
|
|
271
271
|
return $e;
|
|
272
|
-
var Ye = Be.get(Je),
|
|
273
|
-
if (Ye === void 0 && (!
|
|
274
|
-
var
|
|
275
|
-
return
|
|
272
|
+
var Ye = Be.get(Je), et = Je in Xe;
|
|
273
|
+
if (Ye === void 0 && (!et || (tt = get_descriptor(Xe, Je)) != null && tt.writable) && (Ye = source(proxy(et ? Xe[Je] : UNINITIALIZED, We)), Be.set(Je, Ye)), Ye !== void 0) {
|
|
274
|
+
var Qe = get$1(Ye);
|
|
275
|
+
return Qe === UNINITIALIZED ? void 0 : Qe;
|
|
276
276
|
}
|
|
277
277
|
return Reflect.get(Xe, Je, Ze);
|
|
278
278
|
},
|
|
@@ -282,42 +282,42 @@ function proxy($e, De = null, Fe) {
|
|
|
282
282
|
var Ye = Be.get(Je);
|
|
283
283
|
Ye && (Ze.value = get$1(Ye));
|
|
284
284
|
} else if (Ze === void 0) {
|
|
285
|
-
var
|
|
286
|
-
if (
|
|
285
|
+
var et = Be.get(Je), Qe = et == null ? void 0 : et.v;
|
|
286
|
+
if (et !== void 0 && Qe !== UNINITIALIZED)
|
|
287
287
|
return {
|
|
288
288
|
enumerable: !0,
|
|
289
289
|
configurable: !0,
|
|
290
|
-
value:
|
|
290
|
+
value: Qe,
|
|
291
291
|
writable: !0
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
294
|
return Ze;
|
|
295
295
|
},
|
|
296
296
|
has(Xe, Je) {
|
|
297
|
-
var
|
|
297
|
+
var Qe;
|
|
298
298
|
if (Je === STATE_SYMBOL)
|
|
299
299
|
return !0;
|
|
300
300
|
var Ze = Be.get(Je), Ye = Ze !== void 0 && Ze.v !== UNINITIALIZED || Reflect.has(Xe, Je);
|
|
301
|
-
if (Ze !== void 0 || active_effect !== null && (!Ye || (
|
|
301
|
+
if (Ze !== void 0 || active_effect !== null && (!Ye || (Qe = get_descriptor(Xe, Je)) != null && Qe.writable)) {
|
|
302
302
|
Ze === void 0 && (Ze = source(Ye ? proxy(Xe[Je], We) : UNINITIALIZED), Be.set(Je, Ze));
|
|
303
|
-
var
|
|
304
|
-
if (
|
|
303
|
+
var et = get$1(Ze);
|
|
304
|
+
if (et === UNINITIALIZED)
|
|
305
305
|
return !1;
|
|
306
306
|
}
|
|
307
307
|
return Ye;
|
|
308
308
|
},
|
|
309
309
|
set(Xe, Je, Ze, Ye) {
|
|
310
310
|
var ct;
|
|
311
|
-
var
|
|
311
|
+
var et = Be.get(Je), Qe = Je in Xe;
|
|
312
312
|
if (Ge && Je === "length")
|
|
313
313
|
for (var tt = Ze; tt < /** @type {Source<number>} */
|
|
314
|
-
|
|
314
|
+
et.v; tt += 1) {
|
|
315
315
|
var rt = Be.get(tt + "");
|
|
316
316
|
rt !== void 0 ? set$2(rt, UNINITIALIZED) : tt in Xe && (rt = source(UNINITIALIZED), Be.set(tt + "", rt));
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
et === void 0 ? (!Qe || (ct = get_descriptor(Xe, Je)) != null && ct.writable) && (et = source(void 0), set$2(et, proxy(Ze, We)), Be.set(Je, et)) : (Qe = et.v !== UNINITIALIZED, set$2(et, proxy(Ze, We)));
|
|
319
319
|
var nt = Reflect.getOwnPropertyDescriptor(Xe, Je);
|
|
320
|
-
if (nt != null && nt.set && nt.set.call(Ye, Ze), !
|
|
320
|
+
if (nt != null && nt.set && nt.set.call(Ye, Ze), !Qe) {
|
|
321
321
|
if (Ge && typeof Je == "string") {
|
|
322
322
|
var at = (
|
|
323
323
|
/** @type {Source<number>} */
|
|
@@ -331,9 +331,9 @@ function proxy($e, De = null, Fe) {
|
|
|
331
331
|
},
|
|
332
332
|
ownKeys(Xe) {
|
|
333
333
|
get$1(Ke);
|
|
334
|
-
var Je = Reflect.ownKeys(Xe).filter((
|
|
335
|
-
var
|
|
336
|
-
return
|
|
334
|
+
var Je = Reflect.ownKeys(Xe).filter((et) => {
|
|
335
|
+
var Qe = Be.get(et);
|
|
336
|
+
return Qe === void 0 || Qe.v !== UNINITIALIZED;
|
|
337
337
|
});
|
|
338
338
|
for (var [Ze, Ye] of Be)
|
|
339
339
|
Ye.v !== UNINITIALIZED && !(Ze in Xe) && Je.push(Ze);
|
|
@@ -808,7 +808,7 @@ function handle_error($e, De, Fe, He) {
|
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
function update_reaction($e) {
|
|
811
|
-
var
|
|
811
|
+
var et;
|
|
812
812
|
var De = new_deps, Fe = skipped_deps, He = untracked_writes, Be = active_reaction, Ge = skip_reaction, Ke = derived_sources, We = component_context, Xe = $e.f;
|
|
813
813
|
new_deps = /** @type {null | Value[]} */
|
|
814
814
|
null, skipped_deps = 0, untracked_writes = null, active_reaction = Xe & (BRANCH_EFFECT | ROOT_EFFECT) ? null : $e, skip_reaction = !is_flushing_effect && (Xe & UNOWNED) !== 0, derived_sources = null, component_context = $e.ctx;
|
|
@@ -826,7 +826,7 @@ function update_reaction($e) {
|
|
|
826
826
|
$e.deps = Ze = new_deps;
|
|
827
827
|
if (!skip_reaction)
|
|
828
828
|
for (Ye = skipped_deps; Ye < Ze.length; Ye++)
|
|
829
|
-
((
|
|
829
|
+
((et = Ze[Ye]).reactions ?? (et.reactions = [])).push($e);
|
|
830
830
|
} else Ze !== null && skipped_deps < Ze.length && (remove_reactions($e, skipped_deps), Ze.length = skipped_deps);
|
|
831
831
|
return Je;
|
|
832
832
|
} finally {
|
|
@@ -1209,7 +1209,7 @@ function handle_event_propagation($e) {
|
|
|
1209
1209
|
var Ze = active_reaction, Ye = active_effect;
|
|
1210
1210
|
set_active_reaction(null), set_active_effect(null);
|
|
1211
1211
|
try {
|
|
1212
|
-
for (var
|
|
1212
|
+
for (var et, Qe = []; Ge !== null; ) {
|
|
1213
1213
|
var tt = Ge.assignedSlot || Ge.parentNode || /** @type {any} */
|
|
1214
1214
|
Ge.host || null;
|
|
1215
1215
|
try {
|
|
@@ -1222,18 +1222,18 @@ function handle_event_propagation($e) {
|
|
|
1222
1222
|
} else
|
|
1223
1223
|
rt.call(Ge, $e);
|
|
1224
1224
|
} catch (ct) {
|
|
1225
|
-
|
|
1225
|
+
et ? Qe.push(ct) : et = ct;
|
|
1226
1226
|
}
|
|
1227
1227
|
if ($e.cancelBubble || tt === De || tt === null)
|
|
1228
1228
|
break;
|
|
1229
1229
|
Ge = tt;
|
|
1230
1230
|
}
|
|
1231
|
-
if (
|
|
1232
|
-
for (let ct of
|
|
1231
|
+
if (et) {
|
|
1232
|
+
for (let ct of Qe)
|
|
1233
1233
|
queueMicrotask(() => {
|
|
1234
1234
|
throw ct;
|
|
1235
1235
|
});
|
|
1236
|
-
throw
|
|
1236
|
+
throw et;
|
|
1237
1237
|
}
|
|
1238
1238
|
} finally {
|
|
1239
1239
|
$e.__root = De, delete $e.currentTarget, set_active_reaction(Ze), set_active_effect(Ye);
|
|
@@ -1371,14 +1371,14 @@ const document_listeners = /* @__PURE__ */ new Map();
|
|
|
1371
1371
|
function _mount($e, { target: De, anchor: Fe, props: He = {}, events: Be, context: Ge, intro: Ke = !0 }) {
|
|
1372
1372
|
init_operations();
|
|
1373
1373
|
var We = /* @__PURE__ */ new Set(), Xe = (Ye) => {
|
|
1374
|
-
for (var
|
|
1375
|
-
var
|
|
1376
|
-
if (!We.has(
|
|
1377
|
-
We.add(
|
|
1378
|
-
var tt = is_passive_event(
|
|
1379
|
-
De.addEventListener(
|
|
1380
|
-
var rt = document_listeners.get(
|
|
1381
|
-
rt === void 0 ? (document.addEventListener(
|
|
1374
|
+
for (var et = 0; et < Ye.length; et++) {
|
|
1375
|
+
var Qe = Ye[et];
|
|
1376
|
+
if (!We.has(Qe)) {
|
|
1377
|
+
We.add(Qe);
|
|
1378
|
+
var tt = is_passive_event(Qe);
|
|
1379
|
+
De.addEventListener(Qe, handle_event_propagation, { passive: tt });
|
|
1380
|
+
var rt = document_listeners.get(Qe);
|
|
1381
|
+
rt === void 0 ? (document.addEventListener(Qe, handle_event_propagation, { passive: tt }), document_listeners.set(Qe, 1)) : document_listeners.set(Qe, rt + 1);
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
};
|
|
@@ -1388,11 +1388,11 @@ function _mount($e, { target: De, anchor: Fe, props: He = {}, events: Be, contex
|
|
|
1388
1388
|
return branch(() => {
|
|
1389
1389
|
if (Ge) {
|
|
1390
1390
|
push$6({});
|
|
1391
|
-
var
|
|
1391
|
+
var et = (
|
|
1392
1392
|
/** @type {ComponentContext} */
|
|
1393
1393
|
component_context
|
|
1394
1394
|
);
|
|
1395
|
-
|
|
1395
|
+
et.c = Ge;
|
|
1396
1396
|
}
|
|
1397
1397
|
Be && (He.$$events = Be), hydrating && assign_nodes(
|
|
1398
1398
|
/** @type {TemplateNode} */
|
|
@@ -1401,13 +1401,13 @@ function _mount($e, { target: De, anchor: Fe, props: He = {}, events: Be, contex
|
|
|
1401
1401
|
), should_intro = Ke, Je = $e(Ye, He) || {}, should_intro = !0, hydrating && (active_effect.nodes_end = hydrate_node), Ge && pop$1();
|
|
1402
1402
|
}), () => {
|
|
1403
1403
|
var tt;
|
|
1404
|
-
for (var
|
|
1405
|
-
De.removeEventListener(
|
|
1406
|
-
var
|
|
1404
|
+
for (var et of We) {
|
|
1405
|
+
De.removeEventListener(et, handle_event_propagation);
|
|
1406
|
+
var Qe = (
|
|
1407
1407
|
/** @type {number} */
|
|
1408
|
-
document_listeners.get(
|
|
1408
|
+
document_listeners.get(et)
|
|
1409
1409
|
);
|
|
1410
|
-
--
|
|
1410
|
+
--Qe === 0 ? (document.removeEventListener(et, handle_event_propagation), document_listeners.delete(et)) : document_listeners.set(et, Qe);
|
|
1411
1411
|
}
|
|
1412
1412
|
root_event_handles.delete(Xe), Ye !== Fe && ((tt = Ye.parentNode) == null || tt.removeChild(Ye));
|
|
1413
1413
|
};
|
|
@@ -1422,14 +1422,14 @@ function unmount($e, De) {
|
|
|
1422
1422
|
const PENDING$1 = 0, THEN = 1, CATCH = 2;
|
|
1423
1423
|
function await_block($e, De, Fe, He, Be) {
|
|
1424
1424
|
hydrating && hydrate_next();
|
|
1425
|
-
var Ge = $e, Ke = is_runes(), We = component_context, Xe = UNINITIALIZED, Je, Ze, Ye,
|
|
1425
|
+
var Ge = $e, Ke = is_runes(), We = component_context, Xe = UNINITIALIZED, Je, Ze, Ye, et = (Ke ? source : mutable_source)(
|
|
1426
1426
|
/** @type {V} */
|
|
1427
1427
|
void 0
|
|
1428
|
-
),
|
|
1428
|
+
), Qe = (Ke ? source : mutable_source)(void 0), tt = !1;
|
|
1429
1429
|
function rt(at, st) {
|
|
1430
1430
|
tt = !0, st && (set_active_effect(nt), set_active_reaction(nt), set_component_context(We));
|
|
1431
1431
|
try {
|
|
1432
|
-
at === PENDING$1 && Fe && (Je ? resume_effect(Je) : Je = branch(() => Fe(Ge))), at === THEN && He && (Ze ? resume_effect(Ze) : Ze = branch(() => He(Ge,
|
|
1432
|
+
at === PENDING$1 && Fe && (Je ? resume_effect(Je) : Je = branch(() => Fe(Ge))), at === THEN && He && (Ze ? resume_effect(Ze) : Ze = branch(() => He(Ge, et))), at === CATCH && Be && (Ye ? resume_effect(Ye) : Ye = branch(() => Be(Ge, Qe))), at !== PENDING$1 && Je && pause_effect(Je, () => Je = null), at !== THEN && Ze && pause_effect(Ze, () => Ze = null), at !== CATCH && Ye && pause_effect(Ye, () => Ye = null);
|
|
1433
1433
|
} finally {
|
|
1434
1434
|
st && (set_component_context(null), set_active_reaction(null), set_active_effect(null), flush_sync());
|
|
1435
1435
|
}
|
|
@@ -1440,17 +1440,17 @@ function await_block($e, De, Fe, He, Be) {
|
|
|
1440
1440
|
var at = Xe;
|
|
1441
1441
|
tt = !1, at.then(
|
|
1442
1442
|
(st) => {
|
|
1443
|
-
at === Xe && (internal_set(
|
|
1443
|
+
at === Xe && (internal_set(et, st), rt(THEN, !0));
|
|
1444
1444
|
},
|
|
1445
1445
|
(st) => {
|
|
1446
|
-
if (at === Xe && (internal_set(
|
|
1447
|
-
throw
|
|
1446
|
+
if (at === Xe && (internal_set(Qe, st), rt(CATCH, !0), !Be))
|
|
1447
|
+
throw Qe.v;
|
|
1448
1448
|
}
|
|
1449
1449
|
), hydrating ? Fe && (Je = branch(() => Fe(Ge))) : queue_micro_task(() => {
|
|
1450
1450
|
tt || rt(PENDING$1, !0);
|
|
1451
1451
|
});
|
|
1452
1452
|
} else
|
|
1453
|
-
internal_set(
|
|
1453
|
+
internal_set(et, Xe), rt(THEN, !1);
|
|
1454
1454
|
return () => Xe = UNINITIALIZED;
|
|
1455
1455
|
}
|
|
1456
1456
|
});
|
|
@@ -1459,23 +1459,23 @@ function await_block($e, De, Fe, He, Be) {
|
|
|
1459
1459
|
function if_block($e, De, Fe = !1) {
|
|
1460
1460
|
hydrating && hydrate_next();
|
|
1461
1461
|
var He = $e, Be = null, Ge = null, Ke = UNINITIALIZED, We = Fe ? EFFECT_TRANSPARENT : 0, Xe = !1;
|
|
1462
|
-
const Je = (Ye,
|
|
1463
|
-
Xe = !0, Ze(
|
|
1464
|
-
}, Ze = (Ye,
|
|
1462
|
+
const Je = (Ye, et = !0) => {
|
|
1463
|
+
Xe = !0, Ze(et, Ye);
|
|
1464
|
+
}, Ze = (Ye, et) => {
|
|
1465
1465
|
if (Ke === (Ke = Ye)) return;
|
|
1466
|
-
let
|
|
1466
|
+
let Qe = !1;
|
|
1467
1467
|
if (hydrating) {
|
|
1468
1468
|
const tt = (
|
|
1469
1469
|
/** @type {Comment} */
|
|
1470
1470
|
He.data === HYDRATION_START_ELSE
|
|
1471
1471
|
);
|
|
1472
|
-
!!Ke === tt && (He = remove_nodes(), set_hydrate_node(He), set_hydrating(!1),
|
|
1472
|
+
!!Ke === tt && (He = remove_nodes(), set_hydrate_node(He), set_hydrating(!1), Qe = !0);
|
|
1473
1473
|
}
|
|
1474
|
-
Ke ? (Be ? resume_effect(Be) :
|
|
1474
|
+
Ke ? (Be ? resume_effect(Be) : et && (Be = branch(() => et(He))), Ge && pause_effect(Ge, () => {
|
|
1475
1475
|
Ge = null;
|
|
1476
|
-
})) : (Ge ? resume_effect(Ge) :
|
|
1476
|
+
})) : (Ge ? resume_effect(Ge) : et && (Ge = branch(() => et(He))), Be && pause_effect(Be, () => {
|
|
1477
1477
|
Be = null;
|
|
1478
|
-
})),
|
|
1478
|
+
})), Qe && set_hydrating(!0);
|
|
1479
1479
|
};
|
|
1480
1480
|
block(() => {
|
|
1481
1481
|
Xe = !1, De(Je), Xe || Ze(null, null);
|
|
@@ -1521,7 +1521,7 @@ function each($e, De, Fe, He, Be, Ge = null) {
|
|
|
1521
1521
|
hydrating && hydrate_next();
|
|
1522
1522
|
var Ze = null, Ye = !1;
|
|
1523
1523
|
block(() => {
|
|
1524
|
-
var
|
|
1524
|
+
var et = Fe(), Qe = is_array(et) ? et : et == null ? [] : array_from(et), tt = Qe.length;
|
|
1525
1525
|
if (Ye && tt === 0)
|
|
1526
1526
|
return;
|
|
1527
1527
|
Ye = tt === 0;
|
|
@@ -1541,7 +1541,7 @@ function each($e, De, Fe, He, Be, Ge = null) {
|
|
|
1541
1541
|
hydrate_node, rt = !0, set_hydrating(!1);
|
|
1542
1542
|
break;
|
|
1543
1543
|
}
|
|
1544
|
-
var ot =
|
|
1544
|
+
var ot = Qe[ct], lt = He(ot, ct);
|
|
1545
1545
|
st = create_item(
|
|
1546
1546
|
hydrate_node,
|
|
1547
1547
|
We,
|
|
@@ -1557,17 +1557,17 @@ function each($e, De, Fe, He, Be, Ge = null) {
|
|
|
1557
1557
|
tt > 0 && set_hydrate_node(remove_nodes());
|
|
1558
1558
|
}
|
|
1559
1559
|
if (!hydrating) {
|
|
1560
|
-
var
|
|
1560
|
+
var ft = (
|
|
1561
1561
|
/** @type {Effect} */
|
|
1562
1562
|
active_reaction
|
|
1563
1563
|
);
|
|
1564
1564
|
reconcile(
|
|
1565
|
-
|
|
1565
|
+
Qe,
|
|
1566
1566
|
We,
|
|
1567
1567
|
Ke,
|
|
1568
1568
|
Be,
|
|
1569
1569
|
De,
|
|
1570
|
-
(
|
|
1570
|
+
(ft.f & INERT) !== 0,
|
|
1571
1571
|
He
|
|
1572
1572
|
);
|
|
1573
1573
|
}
|
|
@@ -1577,16 +1577,16 @@ function each($e, De, Fe, He, Be, Ge = null) {
|
|
|
1577
1577
|
}), hydrating && (Ke = hydrate_node);
|
|
1578
1578
|
}
|
|
1579
1579
|
function reconcile($e, De, Fe, He, Be, Ge, Ke, We) {
|
|
1580
|
-
var vt,
|
|
1581
|
-
var Xe = (Be & EACH_IS_ANIMATED) !== 0, Je = (Be & (EACH_ITEM_REACTIVE | EACH_INDEX_REACTIVE)) !== 0, Ze = $e.length, Ye = De.items,
|
|
1580
|
+
var vt, Rt, xt, Nt;
|
|
1581
|
+
var Xe = (Be & EACH_IS_ANIMATED) !== 0, Je = (Be & (EACH_ITEM_REACTIVE | EACH_INDEX_REACTIVE)) !== 0, Ze = $e.length, Ye = De.items, et = De.first, Qe = et, tt, rt = null, nt, at = [], st = [], ct, ot, lt, ft;
|
|
1582
1582
|
if (Xe)
|
|
1583
|
-
for (
|
|
1584
|
-
ct = $e[
|
|
1585
|
-
for (
|
|
1586
|
-
if (ct = $e[
|
|
1587
|
-
var mt =
|
|
1583
|
+
for (ft = 0; ft < Ze; ft += 1)
|
|
1584
|
+
ct = $e[ft], ot = Ke(ct, ft), lt = Ye.get(ot), lt !== void 0 && ((vt = lt.a) == null || vt.measure(), (nt ?? (nt = /* @__PURE__ */ new Set())).add(lt));
|
|
1585
|
+
for (ft = 0; ft < Ze; ft += 1) {
|
|
1586
|
+
if (ct = $e[ft], ot = Ke(ct, ft), lt = Ye.get(ot), lt === void 0) {
|
|
1587
|
+
var mt = Qe ? (
|
|
1588
1588
|
/** @type {TemplateNode} */
|
|
1589
|
-
|
|
1589
|
+
Qe.e.nodes_start
|
|
1590
1590
|
) : Fe;
|
|
1591
1591
|
rt = create_item(
|
|
1592
1592
|
mt,
|
|
@@ -1595,48 +1595,48 @@ function reconcile($e, De, Fe, He, Be, Ge, Ke, We) {
|
|
|
1595
1595
|
rt === null ? De.first : rt.next,
|
|
1596
1596
|
ct,
|
|
1597
1597
|
ot,
|
|
1598
|
-
|
|
1598
|
+
ft,
|
|
1599
1599
|
He,
|
|
1600
1600
|
Be
|
|
1601
|
-
), Ye.set(ot, rt), at = [], st = [],
|
|
1601
|
+
), Ye.set(ot, rt), at = [], st = [], Qe = rt.next;
|
|
1602
1602
|
continue;
|
|
1603
1603
|
}
|
|
1604
|
-
if (Je && update_item(lt, ct,
|
|
1604
|
+
if (Je && update_item(lt, ct, ft, Be), lt.e.f & INERT && (resume_effect(lt.e), Xe && ((Rt = lt.a) == null || Rt.unfix(), (nt ?? (nt = /* @__PURE__ */ new Set())).delete(lt))), lt !== Qe) {
|
|
1605
1605
|
if (tt !== void 0 && tt.has(lt)) {
|
|
1606
1606
|
if (at.length < st.length) {
|
|
1607
1607
|
var gt = st[0], wt;
|
|
1608
1608
|
rt = gt.prev;
|
|
1609
|
-
var
|
|
1609
|
+
var It = at[0], bt = at[at.length - 1];
|
|
1610
1610
|
for (wt = 0; wt < at.length; wt += 1)
|
|
1611
1611
|
move(at[wt], gt, Fe);
|
|
1612
1612
|
for (wt = 0; wt < st.length; wt += 1)
|
|
1613
1613
|
tt.delete(st[wt]);
|
|
1614
|
-
link(De,
|
|
1614
|
+
link(De, It.prev, bt.next), link(De, rt, It), link(De, bt, gt), Qe = gt, rt = bt, ft -= 1, at = [], st = [];
|
|
1615
1615
|
} else
|
|
1616
|
-
tt.delete(lt), move(lt,
|
|
1616
|
+
tt.delete(lt), move(lt, Qe, Fe), link(De, lt.prev, lt.next), link(De, lt, rt === null ? De.first : rt.next), link(De, rt, lt), rt = lt;
|
|
1617
1617
|
continue;
|
|
1618
1618
|
}
|
|
1619
|
-
for (at = [], st = [];
|
|
1620
|
-
(Ge || !(
|
|
1621
|
-
if (
|
|
1619
|
+
for (at = [], st = []; Qe !== null && Qe.k !== ot; )
|
|
1620
|
+
(Ge || !(Qe.e.f & INERT)) && (tt ?? (tt = /* @__PURE__ */ new Set())).add(Qe), st.push(Qe), Qe = Qe.next;
|
|
1621
|
+
if (Qe === null)
|
|
1622
1622
|
continue;
|
|
1623
|
-
lt =
|
|
1623
|
+
lt = Qe;
|
|
1624
1624
|
}
|
|
1625
|
-
at.push(lt), rt = lt,
|
|
1625
|
+
at.push(lt), rt = lt, Qe = lt.next;
|
|
1626
1626
|
}
|
|
1627
|
-
if (
|
|
1628
|
-
for (var
|
|
1629
|
-
(Ge || !(
|
|
1630
|
-
var yt =
|
|
1627
|
+
if (Qe !== null || tt !== void 0) {
|
|
1628
|
+
for (var pt = tt === void 0 ? [] : array_from(tt); Qe !== null; )
|
|
1629
|
+
(Ge || !(Qe.e.f & INERT)) && pt.push(Qe), Qe = Qe.next;
|
|
1630
|
+
var yt = pt.length;
|
|
1631
1631
|
if (yt > 0) {
|
|
1632
1632
|
var $t = Be & EACH_IS_CONTROLLED && Ze === 0 ? Fe : null;
|
|
1633
1633
|
if (Xe) {
|
|
1634
|
-
for (
|
|
1635
|
-
(
|
|
1636
|
-
for (
|
|
1637
|
-
(Nt =
|
|
1634
|
+
for (ft = 0; ft < yt; ft += 1)
|
|
1635
|
+
(xt = pt[ft].a) == null || xt.measure();
|
|
1636
|
+
for (ft = 0; ft < yt; ft += 1)
|
|
1637
|
+
(Nt = pt[ft].a) == null || Nt.fix();
|
|
1638
1638
|
}
|
|
1639
|
-
pause_effects(De,
|
|
1639
|
+
pause_effects(De, pt, $t, Ye);
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
1642
|
Xe && queue_micro_task(() => {
|
|
@@ -1654,9 +1654,9 @@ function update_item($e, De, Fe, He) {
|
|
|
1654
1654
|
) : $e.i = Fe;
|
|
1655
1655
|
}
|
|
1656
1656
|
function create_item($e, De, Fe, He, Be, Ge, Ke, We, Xe, Je) {
|
|
1657
|
-
var Ze = (Xe & EACH_ITEM_REACTIVE) !== 0, Ye = (Xe & EACH_ITEM_IMMUTABLE) === 0,
|
|
1658
|
-
i:
|
|
1659
|
-
v:
|
|
1657
|
+
var Ze = (Xe & EACH_ITEM_REACTIVE) !== 0, Ye = (Xe & EACH_ITEM_IMMUTABLE) === 0, et = Ze ? Ye ? /* @__PURE__ */ mutable_source(Be) : source(Be) : Be, Qe = Xe & EACH_INDEX_REACTIVE ? source(Ke) : Ke, tt = {
|
|
1658
|
+
i: Qe,
|
|
1659
|
+
v: et,
|
|
1660
1660
|
k: Ge,
|
|
1661
1661
|
a: null,
|
|
1662
1662
|
// @ts-expect-error
|
|
@@ -1665,7 +1665,7 @@ function create_item($e, De, Fe, He, Be, Ge, Ke, We, Xe, Je) {
|
|
|
1665
1665
|
next: He
|
|
1666
1666
|
};
|
|
1667
1667
|
try {
|
|
1668
|
-
return tt.e = branch(() => We($e,
|
|
1668
|
+
return tt.e = branch(() => We($e, et, Qe), hydrating), tt.e.prev = Fe && Fe.e, tt.e.next = He && He.e, Fe === null ? De.first = tt : (Fe.next = tt, Fe.e.next = tt.e), He !== null && (He.prev = tt, He.e.prev = tt.e), tt;
|
|
1669
1669
|
} finally {
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
@@ -1755,16 +1755,16 @@ function element($e, De, Fe, He, Be, Ge) {
|
|
|
1755
1755
|
hydrating ? hydrate_node : $e
|
|
1756
1756
|
), Ye;
|
|
1757
1757
|
block(() => {
|
|
1758
|
-
const
|
|
1759
|
-
var
|
|
1760
|
-
|
|
1758
|
+
const et = De() || null;
|
|
1759
|
+
var Qe = et === "svg" ? NAMESPACE_SVG : null;
|
|
1760
|
+
et !== We && (Ye && (et === null ? pause_effect(Ye, () => {
|
|
1761
1761
|
Ye = null, Xe = null;
|
|
1762
|
-
}) :
|
|
1762
|
+
}) : et === Xe ? resume_effect(Ye) : (destroy_effect(Ye), set_should_intro(!1))), et && et !== Xe && (Ye = branch(() => {
|
|
1763
1763
|
if (Je = hydrating ? (
|
|
1764
1764
|
/** @type {Element} */
|
|
1765
1765
|
Je
|
|
1766
|
-
) :
|
|
1767
|
-
hydrating && is_raw_text_element(
|
|
1766
|
+
) : Qe ? document.createElementNS(Qe, et) : document.createElement(et), assign_nodes(Je, Je), He) {
|
|
1767
|
+
hydrating && is_raw_text_element(et) && Je.append(document.createComment(""));
|
|
1768
1768
|
var tt = (
|
|
1769
1769
|
/** @type {TemplateNode} */
|
|
1770
1770
|
hydrating ? /* @__PURE__ */ get_first_child(Je) : Je.appendChild(create_text())
|
|
@@ -1772,7 +1772,7 @@ function element($e, De, Fe, He, Be, Ge) {
|
|
|
1772
1772
|
hydrating && (tt === null ? set_hydrating(!1) : set_hydrate_node(tt)), He(Je, tt);
|
|
1773
1773
|
}
|
|
1774
1774
|
active_effect.nodes_end = Je, Ze.before(Je);
|
|
1775
|
-
})), We =
|
|
1775
|
+
})), We = et, We && (Xe = We), set_should_intro(!0));
|
|
1776
1776
|
}, EFFECT_TRANSPARENT), Ke && (set_hydrating(!0), set_hydrate_node(Ze));
|
|
1777
1777
|
}
|
|
1778
1778
|
function remove_input_defaults($e) {
|
|
@@ -1830,16 +1830,16 @@ function set_attributes($e, De, Fe, He, Be = !1, Ge = !1, Ke = !1) {
|
|
|
1830
1830
|
$e.value = $e.__value = "", We[at] = st;
|
|
1831
1831
|
continue;
|
|
1832
1832
|
}
|
|
1833
|
-
var
|
|
1834
|
-
if (st !==
|
|
1833
|
+
var et = We[at];
|
|
1834
|
+
if (st !== et) {
|
|
1835
1835
|
We[at] = st;
|
|
1836
|
-
var
|
|
1837
|
-
if (
|
|
1838
|
-
if (
|
|
1836
|
+
var Qe = at[0] + at[1];
|
|
1837
|
+
if (Qe !== "$$") {
|
|
1838
|
+
if (Qe === "on") {
|
|
1839
1839
|
const ct = {}, ot = "$$" + at;
|
|
1840
1840
|
let lt = at.slice(2);
|
|
1841
1841
|
var tt = is_delegated(lt);
|
|
1842
|
-
if (is_capture_event(lt) && (lt = lt.slice(0, -7), ct.capture = !0), !tt &&
|
|
1842
|
+
if (is_capture_event(lt) && (lt = lt.slice(0, -7), ct.capture = !0), !tt && et) {
|
|
1843
1843
|
if (st != null) continue;
|
|
1844
1844
|
$e.removeEventListener(lt, We[ot], ct), We[ot] = null;
|
|
1845
1845
|
}
|
|
@@ -1847,10 +1847,10 @@ function set_attributes($e, De, Fe, He, Be = !1, Ge = !1, Ke = !1) {
|
|
|
1847
1847
|
if (tt)
|
|
1848
1848
|
$e[`__${lt}`] = st, delegate([lt]);
|
|
1849
1849
|
else {
|
|
1850
|
-
let
|
|
1850
|
+
let ft = function(mt) {
|
|
1851
1851
|
We[at].call(this, mt);
|
|
1852
1852
|
};
|
|
1853
|
-
We[ot] = create_event(lt, $e,
|
|
1853
|
+
We[ot] = create_event(lt, $e, ft, ct);
|
|
1854
1854
|
}
|
|
1855
1855
|
else tt && ($e[`__${lt}`] = void 0);
|
|
1856
1856
|
} else if (at === "style" && st != null)
|
|
@@ -2001,22 +2001,22 @@ function transition($e, De, Fe, He) {
|
|
|
2001
2001
|
stop: () => {
|
|
2002
2002
|
Xe == null || Xe.abort(), Je == null || Je.abort();
|
|
2003
2003
|
}
|
|
2004
|
-
},
|
|
2004
|
+
}, et = (
|
|
2005
2005
|
/** @type {Effect} */
|
|
2006
2006
|
active_effect
|
|
2007
2007
|
);
|
|
2008
|
-
if ((
|
|
2009
|
-
var
|
|
2010
|
-
if (!
|
|
2008
|
+
if ((et.transitions ?? (et.transitions = [])).push(Ye), should_intro) {
|
|
2009
|
+
var Qe = Be;
|
|
2010
|
+
if (!Qe) {
|
|
2011
2011
|
for (var tt = (
|
|
2012
2012
|
/** @type {Effect | null} */
|
|
2013
|
-
|
|
2013
|
+
et.parent
|
|
2014
2014
|
); tt && tt.f & EFFECT_TRANSPARENT; )
|
|
2015
2015
|
for (; (tt = tt.parent) && !(tt.f & BLOCK_EFFECT); )
|
|
2016
2016
|
;
|
|
2017
|
-
|
|
2017
|
+
Qe = !tt || (tt.f & EFFECT_RAN) !== 0;
|
|
2018
2018
|
}
|
|
2019
|
-
|
|
2019
|
+
Qe && effect(() => {
|
|
2020
2020
|
untrack(() => Ye.in());
|
|
2021
2021
|
});
|
|
2022
2022
|
}
|
|
@@ -2047,12 +2047,12 @@ function animate($e, De, Fe, He, Be) {
|
|
|
2047
2047
|
t: () => He
|
|
2048
2048
|
};
|
|
2049
2049
|
const { delay: Xe = 0, css: Je, tick: Ze, easing: Ye = linear } = De;
|
|
2050
|
-
var
|
|
2050
|
+
var et = [];
|
|
2051
2051
|
if (Ge && Fe === void 0 && (Ze && Ze(0, 1), Je)) {
|
|
2052
|
-
var
|
|
2053
|
-
|
|
2052
|
+
var Qe = css_to_keyframe(Je(0, 1));
|
|
2053
|
+
et.push(Qe, Qe);
|
|
2054
2054
|
}
|
|
2055
|
-
var tt = () => 1 - He, rt = $e.animate(
|
|
2055
|
+
var tt = () => 1 - He, rt = $e.animate(et, { duration: Xe });
|
|
2056
2056
|
return rt.onfinish = () => {
|
|
2057
2057
|
var nt = (Fe == null ? void 0 : Fe.t()) ?? 1 - He;
|
|
2058
2058
|
Fe == null || Fe.abort();
|
|
@@ -2063,7 +2063,7 @@ function animate($e, De, Fe, He, Be) {
|
|
|
2063
2063
|
if (st > 0) {
|
|
2064
2064
|
if (Je)
|
|
2065
2065
|
for (var ot = Math.ceil(st / 16.666666666666668), lt = 0; lt <= ot; lt += 1) {
|
|
2066
|
-
var
|
|
2066
|
+
var ft = nt + at * Ye(lt / ot), mt = Je(ft, 1 - ft);
|
|
2067
2067
|
ct.push(css_to_keyframe(mt));
|
|
2068
2068
|
}
|
|
2069
2069
|
tt = () => {
|
|
@@ -2322,14 +2322,14 @@ function prop($e, De, Fe, He) {
|
|
|
2322
2322
|
$e[De]
|
|
2323
2323
|
)) : Je = /** @type {V} */
|
|
2324
2324
|
$e[De];
|
|
2325
|
-
var Ze = STATE_SYMBOL in $e || LEGACY_PROPS in $e, Ye = ((mt = get_descriptor($e, De)) == null ? void 0 : mt.set) ?? (Ze && Ke && De in $e ? (gt) => $e[De] = gt : void 0),
|
|
2325
|
+
var Ze = STATE_SYMBOL in $e || LEGACY_PROPS in $e, Ye = ((mt = get_descriptor($e, De)) == null ? void 0 : mt.set) ?? (Ze && Ke && De in $e ? (gt) => $e[De] = gt : void 0), et = (
|
|
2326
2326
|
/** @type {V} */
|
|
2327
2327
|
He
|
|
2328
|
-
),
|
|
2328
|
+
), Qe = !0, tt = !1, rt = () => (tt = !0, Qe && (Qe = !1, We ? et = untrack(
|
|
2329
2329
|
/** @type {() => V} */
|
|
2330
2330
|
He
|
|
2331
|
-
) :
|
|
2332
|
-
He),
|
|
2331
|
+
) : et = /** @type {V} */
|
|
2332
|
+
He), et);
|
|
2333
2333
|
Je === void 0 && He !== void 0 && (Ye && Ge && props_invalid_value(), Je = rt(), Ye && Ye(Je));
|
|
2334
2334
|
var nt;
|
|
2335
2335
|
if (Ge)
|
|
@@ -2338,7 +2338,7 @@ function prop($e, De, Fe, He) {
|
|
|
2338
2338
|
/** @type {V} */
|
|
2339
2339
|
$e[De]
|
|
2340
2340
|
);
|
|
2341
|
-
return gt === void 0 ? rt() : (
|
|
2341
|
+
return gt === void 0 ? rt() : (Qe = !0, tt = !1, gt);
|
|
2342
2342
|
};
|
|
2343
2343
|
else {
|
|
2344
2344
|
var at = with_parent_branch(
|
|
@@ -2349,8 +2349,8 @@ function prop($e, De, Fe, He) {
|
|
|
2349
2349
|
);
|
|
2350
2350
|
at.f |= LEGACY_DERIVED_PROP, nt = () => {
|
|
2351
2351
|
var gt = get$1(at);
|
|
2352
|
-
return gt !== void 0 && (
|
|
2353
|
-
void 0), gt === void 0 ?
|
|
2352
|
+
return gt !== void 0 && (et = /** @type {V} */
|
|
2353
|
+
void 0), gt === void 0 ? et : gt;
|
|
2354
2354
|
};
|
|
2355
2355
|
}
|
|
2356
2356
|
if (!(Fe & PROPS_IS_UPDATED))
|
|
@@ -2361,18 +2361,18 @@ function prop($e, De, Fe, He) {
|
|
|
2361
2361
|
return arguments.length > 0 ? ((!Ge || !wt || st || Xe) && Ye(wt ? nt() : gt), gt) : nt();
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
|
-
var ct = !1, ot = !1, lt = /* @__PURE__ */ mutable_source(Je),
|
|
2364
|
+
var ct = !1, ot = !1, lt = /* @__PURE__ */ mutable_source(Je), ft = with_parent_branch(
|
|
2365
2365
|
() => /* @__PURE__ */ derived(() => {
|
|
2366
2366
|
var gt = nt(), wt = get$1(lt);
|
|
2367
2367
|
return ct ? (ct = !1, ot = !0, wt) : (ot = !1, lt.v = gt);
|
|
2368
2368
|
})
|
|
2369
2369
|
);
|
|
2370
|
-
return Be || (
|
|
2370
|
+
return Be || (ft.equals = safe_equals), function(gt, wt) {
|
|
2371
2371
|
if (arguments.length > 0) {
|
|
2372
|
-
const
|
|
2373
|
-
return
|
|
2372
|
+
const It = wt ? get$1(ft) : Ge && Ke ? proxy(gt) : gt;
|
|
2373
|
+
return ft.equals(It) || (ct = !0, set$2(lt, It), tt && et !== void 0 && (et = It), untrack(() => get$1(ft))), gt;
|
|
2374
2374
|
}
|
|
2375
|
-
return get$1(
|
|
2375
|
+
return get$1(ft);
|
|
2376
2376
|
};
|
|
2377
2377
|
}
|
|
2378
2378
|
function createClassComponent($e) {
|
|
@@ -2791,10 +2791,10 @@ const CLASS_PART_SEPARATOR = "-", createClassGroupUtils = ($e) => {
|
|
|
2791
2791
|
}
|
|
2792
2792
|
at === "[" ? Je++ : at === "]" && Je--;
|
|
2793
2793
|
}
|
|
2794
|
-
const
|
|
2794
|
+
const et = Xe.length === 0 ? We : We.substring(Ze), Qe = et.startsWith(IMPORTANT_MODIFIER), tt = Qe ? et.substring(1) : et, rt = Ye && Ye > Ze ? Ye - Ze : void 0;
|
|
2795
2795
|
return {
|
|
2796
2796
|
modifiers: Xe,
|
|
2797
|
-
hasImportantModifier:
|
|
2797
|
+
hasImportantModifier: Qe,
|
|
2798
2798
|
baseClassName: tt,
|
|
2799
2799
|
maybePostfixModifierPosition: rt
|
|
2800
2800
|
};
|
|
@@ -2826,16 +2826,16 @@ const CLASS_PART_SEPARATOR = "-", createClassGroupUtils = ($e) => {
|
|
|
2826
2826
|
const Je = Ke[Xe], {
|
|
2827
2827
|
modifiers: Ze,
|
|
2828
2828
|
hasImportantModifier: Ye,
|
|
2829
|
-
baseClassName:
|
|
2830
|
-
maybePostfixModifierPosition:
|
|
2829
|
+
baseClassName: et,
|
|
2830
|
+
maybePostfixModifierPosition: Qe
|
|
2831
2831
|
} = Fe(Je);
|
|
2832
|
-
let tt = !!
|
|
2832
|
+
let tt = !!Qe, rt = He(tt ? et.substring(0, Qe) : et);
|
|
2833
2833
|
if (!rt) {
|
|
2834
2834
|
if (!tt) {
|
|
2835
2835
|
We = Je + (We.length > 0 ? " " + We : We);
|
|
2836
2836
|
continue;
|
|
2837
2837
|
}
|
|
2838
|
-
if (rt = He(
|
|
2838
|
+
if (rt = He(et), !rt) {
|
|
2839
2839
|
We = Je + (We.length > 0 ? " " + We : We);
|
|
2840
2840
|
continue;
|
|
2841
2841
|
}
|
|
@@ -2897,7 +2897,7 @@ const fromTheme = ($e) => {
|
|
|
2897
2897
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2898
2898
|
lengthUnitRegex.test($e) && !colorFunctionRegex.test($e)
|
|
2899
2899
|
), isNever = () => !1, isShadow = ($e) => shadowRegex.test($e), isImage = ($e) => imageRegex.test($e), getDefaultConfig = () => {
|
|
2900
|
-
const $e = fromTheme("colors"), De = fromTheme("spacing"), Fe = fromTheme("blur"), He = fromTheme("brightness"), Be = fromTheme("borderColor"), Ge = fromTheme("borderRadius"), Ke = fromTheme("borderSpacing"), We = fromTheme("borderWidth"), Xe = fromTheme("contrast"), Je = fromTheme("grayscale"), Ze = fromTheme("hueRotate"), Ye = fromTheme("invert"),
|
|
2900
|
+
const $e = fromTheme("colors"), De = fromTheme("spacing"), Fe = fromTheme("blur"), He = fromTheme("brightness"), Be = fromTheme("borderColor"), Ge = fromTheme("borderRadius"), Ke = fromTheme("borderSpacing"), We = fromTheme("borderWidth"), Xe = fromTheme("contrast"), Je = fromTheme("grayscale"), Ze = fromTheme("hueRotate"), Ye = fromTheme("invert"), et = fromTheme("gap"), Qe = fromTheme("gradientColorStops"), tt = fromTheme("gradientColorStopPositions"), rt = fromTheme("inset"), nt = fromTheme("margin"), at = fromTheme("opacity"), st = fromTheme("padding"), ct = fromTheme("saturate"), ot = fromTheme("scale"), lt = fromTheme("sepia"), ft = fromTheme("skew"), mt = fromTheme("space"), gt = fromTheme("translate"), wt = () => ["auto", "contain", "none"], It = () => ["auto", "hidden", "clip", "visible", "scroll"], bt = () => ["auto", isArbitraryValue, De], pt = () => [isArbitraryValue, De], yt = () => ["", isLength, isArbitraryLength], $t = () => ["auto", isNumber, isArbitraryValue], vt = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Rt = () => ["solid", "dashed", "dotted", "double", "none"], xt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Nt = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ut = () => ["", "0", isArbitraryValue], dt = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _t = () => [isNumber, isArbitraryValue];
|
|
2901
2901
|
return {
|
|
2902
2902
|
cacheSize: 500,
|
|
2903
2903
|
separator: ":",
|
|
@@ -2908,25 +2908,25 @@ const fromTheme = ($e) => {
|
|
|
2908
2908
|
brightness: _t(),
|
|
2909
2909
|
borderColor: [$e],
|
|
2910
2910
|
borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
|
|
2911
|
-
borderSpacing:
|
|
2911
|
+
borderSpacing: pt(),
|
|
2912
2912
|
borderWidth: yt(),
|
|
2913
2913
|
contrast: _t(),
|
|
2914
2914
|
grayscale: ut(),
|
|
2915
2915
|
hueRotate: _t(),
|
|
2916
2916
|
invert: ut(),
|
|
2917
|
-
gap:
|
|
2917
|
+
gap: pt(),
|
|
2918
2918
|
gradientColorStops: [$e],
|
|
2919
2919
|
gradientColorStopPositions: [isPercent, isArbitraryLength],
|
|
2920
2920
|
inset: bt(),
|
|
2921
2921
|
margin: bt(),
|
|
2922
2922
|
opacity: _t(),
|
|
2923
|
-
padding:
|
|
2923
|
+
padding: pt(),
|
|
2924
2924
|
saturate: _t(),
|
|
2925
2925
|
scale: _t(),
|
|
2926
2926
|
sepia: ut(),
|
|
2927
2927
|
skew: _t(),
|
|
2928
|
-
space:
|
|
2929
|
-
translate:
|
|
2928
|
+
space: pt(),
|
|
2929
|
+
translate: pt()
|
|
2930
2930
|
},
|
|
2931
2931
|
classGroups: {
|
|
2932
2932
|
// Layout
|
|
@@ -2954,14 +2954,14 @@ const fromTheme = ($e) => {
|
|
|
2954
2954
|
* @see https://tailwindcss.com/docs/break-after
|
|
2955
2955
|
*/
|
|
2956
2956
|
"break-after": [{
|
|
2957
|
-
"break-after":
|
|
2957
|
+
"break-after": dt()
|
|
2958
2958
|
}],
|
|
2959
2959
|
/**
|
|
2960
2960
|
* Break Before
|
|
2961
2961
|
* @see https://tailwindcss.com/docs/break-before
|
|
2962
2962
|
*/
|
|
2963
2963
|
"break-before": [{
|
|
2964
|
-
"break-before":
|
|
2964
|
+
"break-before": dt()
|
|
2965
2965
|
}],
|
|
2966
2966
|
/**
|
|
2967
2967
|
* Break Inside
|
|
@@ -3027,21 +3027,21 @@ const fromTheme = ($e) => {
|
|
|
3027
3027
|
* @see https://tailwindcss.com/docs/overflow
|
|
3028
3028
|
*/
|
|
3029
3029
|
overflow: [{
|
|
3030
|
-
overflow:
|
|
3030
|
+
overflow: It()
|
|
3031
3031
|
}],
|
|
3032
3032
|
/**
|
|
3033
3033
|
* Overflow X
|
|
3034
3034
|
* @see https://tailwindcss.com/docs/overflow
|
|
3035
3035
|
*/
|
|
3036
3036
|
"overflow-x": [{
|
|
3037
|
-
"overflow-x":
|
|
3037
|
+
"overflow-x": It()
|
|
3038
3038
|
}],
|
|
3039
3039
|
/**
|
|
3040
3040
|
* Overflow Y
|
|
3041
3041
|
* @see https://tailwindcss.com/docs/overflow
|
|
3042
3042
|
*/
|
|
3043
3043
|
"overflow-y": [{
|
|
3044
|
-
"overflow-y":
|
|
3044
|
+
"overflow-y": It()
|
|
3045
3045
|
}],
|
|
3046
3046
|
/**
|
|
3047
3047
|
* Overscroll Behavior
|
|
@@ -3280,21 +3280,21 @@ const fromTheme = ($e) => {
|
|
|
3280
3280
|
* @see https://tailwindcss.com/docs/gap
|
|
3281
3281
|
*/
|
|
3282
3282
|
gap: [{
|
|
3283
|
-
gap: [
|
|
3283
|
+
gap: [et]
|
|
3284
3284
|
}],
|
|
3285
3285
|
/**
|
|
3286
3286
|
* Gap X
|
|
3287
3287
|
* @see https://tailwindcss.com/docs/gap
|
|
3288
3288
|
*/
|
|
3289
3289
|
"gap-x": [{
|
|
3290
|
-
"gap-x": [
|
|
3290
|
+
"gap-x": [et]
|
|
3291
3291
|
}],
|
|
3292
3292
|
/**
|
|
3293
3293
|
* Gap Y
|
|
3294
3294
|
* @see https://tailwindcss.com/docs/gap
|
|
3295
3295
|
*/
|
|
3296
3296
|
"gap-y": [{
|
|
3297
|
-
"gap-y": [
|
|
3297
|
+
"gap-y": [et]
|
|
3298
3298
|
}],
|
|
3299
3299
|
/**
|
|
3300
3300
|
* Justify Content
|
|
@@ -3712,7 +3712,7 @@ const fromTheme = ($e) => {
|
|
|
3712
3712
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
3713
3713
|
*/
|
|
3714
3714
|
"text-decoration-style": [{
|
|
3715
|
-
decoration: [...
|
|
3715
|
+
decoration: [...Rt(), "wavy"]
|
|
3716
3716
|
}],
|
|
3717
3717
|
/**
|
|
3718
3718
|
* Text Decoration Thickness
|
|
@@ -3757,7 +3757,7 @@ const fromTheme = ($e) => {
|
|
|
3757
3757
|
* @see https://tailwindcss.com/docs/text-indent
|
|
3758
3758
|
*/
|
|
3759
3759
|
indent: [{
|
|
3760
|
-
indent:
|
|
3760
|
+
indent: pt()
|
|
3761
3761
|
}],
|
|
3762
3762
|
/**
|
|
3763
3763
|
* Vertical Alignment
|
|
@@ -3889,21 +3889,21 @@ const fromTheme = ($e) => {
|
|
|
3889
3889
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3890
3890
|
*/
|
|
3891
3891
|
"gradient-from": [{
|
|
3892
|
-
from: [
|
|
3892
|
+
from: [Qe]
|
|
3893
3893
|
}],
|
|
3894
3894
|
/**
|
|
3895
3895
|
* Gradient Color Stops Via
|
|
3896
3896
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3897
3897
|
*/
|
|
3898
3898
|
"gradient-via": [{
|
|
3899
|
-
via: [
|
|
3899
|
+
via: [Qe]
|
|
3900
3900
|
}],
|
|
3901
3901
|
/**
|
|
3902
3902
|
* Gradient Color Stops To
|
|
3903
3903
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
3904
3904
|
*/
|
|
3905
3905
|
"gradient-to": [{
|
|
3906
|
-
to: [
|
|
3906
|
+
to: [Qe]
|
|
3907
3907
|
}],
|
|
3908
3908
|
// Borders
|
|
3909
3909
|
/**
|
|
@@ -4086,7 +4086,7 @@ const fromTheme = ($e) => {
|
|
|
4086
4086
|
* @see https://tailwindcss.com/docs/border-style
|
|
4087
4087
|
*/
|
|
4088
4088
|
"border-style": [{
|
|
4089
|
-
border: [...
|
|
4089
|
+
border: [...Rt(), "hidden"]
|
|
4090
4090
|
}],
|
|
4091
4091
|
/**
|
|
4092
4092
|
* Divide Width X
|
|
@@ -4124,7 +4124,7 @@ const fromTheme = ($e) => {
|
|
|
4124
4124
|
* @see https://tailwindcss.com/docs/divide-style
|
|
4125
4125
|
*/
|
|
4126
4126
|
"divide-style": [{
|
|
4127
|
-
divide:
|
|
4127
|
+
divide: Rt()
|
|
4128
4128
|
}],
|
|
4129
4129
|
/**
|
|
4130
4130
|
* Border Color
|
|
@@ -4201,7 +4201,7 @@ const fromTheme = ($e) => {
|
|
|
4201
4201
|
* @see https://tailwindcss.com/docs/outline-style
|
|
4202
4202
|
*/
|
|
4203
4203
|
"outline-style": [{
|
|
4204
|
-
outline: ["", ...
|
|
4204
|
+
outline: ["", ...Rt()]
|
|
4205
4205
|
}],
|
|
4206
4206
|
/**
|
|
4207
4207
|
* Outline Offset
|
|
@@ -4291,14 +4291,14 @@ const fromTheme = ($e) => {
|
|
|
4291
4291
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
4292
4292
|
*/
|
|
4293
4293
|
"mix-blend": [{
|
|
4294
|
-
"mix-blend": [...
|
|
4294
|
+
"mix-blend": [...xt(), "plus-lighter", "plus-darker"]
|
|
4295
4295
|
}],
|
|
4296
4296
|
/**
|
|
4297
4297
|
* Background Blend Mode
|
|
4298
4298
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
4299
4299
|
*/
|
|
4300
4300
|
"bg-blend": [{
|
|
4301
|
-
"bg-blend":
|
|
4301
|
+
"bg-blend": xt()
|
|
4302
4302
|
}],
|
|
4303
4303
|
// Filters
|
|
4304
4304
|
/**
|
|
@@ -4577,14 +4577,14 @@ const fromTheme = ($e) => {
|
|
|
4577
4577
|
* @see https://tailwindcss.com/docs/skew
|
|
4578
4578
|
*/
|
|
4579
4579
|
"skew-x": [{
|
|
4580
|
-
"skew-x": [
|
|
4580
|
+
"skew-x": [ft]
|
|
4581
4581
|
}],
|
|
4582
4582
|
/**
|
|
4583
4583
|
* Skew Y
|
|
4584
4584
|
* @see https://tailwindcss.com/docs/skew
|
|
4585
4585
|
*/
|
|
4586
4586
|
"skew-y": [{
|
|
4587
|
-
"skew-y": [
|
|
4587
|
+
"skew-y": [ft]
|
|
4588
4588
|
}],
|
|
4589
4589
|
/**
|
|
4590
4590
|
* Transform Origin
|
|
@@ -4648,126 +4648,126 @@ const fromTheme = ($e) => {
|
|
|
4648
4648
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4649
4649
|
*/
|
|
4650
4650
|
"scroll-m": [{
|
|
4651
|
-
"scroll-m":
|
|
4651
|
+
"scroll-m": pt()
|
|
4652
4652
|
}],
|
|
4653
4653
|
/**
|
|
4654
4654
|
* Scroll Margin X
|
|
4655
4655
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4656
4656
|
*/
|
|
4657
4657
|
"scroll-mx": [{
|
|
4658
|
-
"scroll-mx":
|
|
4658
|
+
"scroll-mx": pt()
|
|
4659
4659
|
}],
|
|
4660
4660
|
/**
|
|
4661
4661
|
* Scroll Margin Y
|
|
4662
4662
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4663
4663
|
*/
|
|
4664
4664
|
"scroll-my": [{
|
|
4665
|
-
"scroll-my":
|
|
4665
|
+
"scroll-my": pt()
|
|
4666
4666
|
}],
|
|
4667
4667
|
/**
|
|
4668
4668
|
* Scroll Margin Start
|
|
4669
4669
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4670
4670
|
*/
|
|
4671
4671
|
"scroll-ms": [{
|
|
4672
|
-
"scroll-ms":
|
|
4672
|
+
"scroll-ms": pt()
|
|
4673
4673
|
}],
|
|
4674
4674
|
/**
|
|
4675
4675
|
* Scroll Margin End
|
|
4676
4676
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4677
4677
|
*/
|
|
4678
4678
|
"scroll-me": [{
|
|
4679
|
-
"scroll-me":
|
|
4679
|
+
"scroll-me": pt()
|
|
4680
4680
|
}],
|
|
4681
4681
|
/**
|
|
4682
4682
|
* Scroll Margin Top
|
|
4683
4683
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4684
4684
|
*/
|
|
4685
4685
|
"scroll-mt": [{
|
|
4686
|
-
"scroll-mt":
|
|
4686
|
+
"scroll-mt": pt()
|
|
4687
4687
|
}],
|
|
4688
4688
|
/**
|
|
4689
4689
|
* Scroll Margin Right
|
|
4690
4690
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4691
4691
|
*/
|
|
4692
4692
|
"scroll-mr": [{
|
|
4693
|
-
"scroll-mr":
|
|
4693
|
+
"scroll-mr": pt()
|
|
4694
4694
|
}],
|
|
4695
4695
|
/**
|
|
4696
4696
|
* Scroll Margin Bottom
|
|
4697
4697
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4698
4698
|
*/
|
|
4699
4699
|
"scroll-mb": [{
|
|
4700
|
-
"scroll-mb":
|
|
4700
|
+
"scroll-mb": pt()
|
|
4701
4701
|
}],
|
|
4702
4702
|
/**
|
|
4703
4703
|
* Scroll Margin Left
|
|
4704
4704
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
4705
4705
|
*/
|
|
4706
4706
|
"scroll-ml": [{
|
|
4707
|
-
"scroll-ml":
|
|
4707
|
+
"scroll-ml": pt()
|
|
4708
4708
|
}],
|
|
4709
4709
|
/**
|
|
4710
4710
|
* Scroll Padding
|
|
4711
4711
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4712
4712
|
*/
|
|
4713
4713
|
"scroll-p": [{
|
|
4714
|
-
"scroll-p":
|
|
4714
|
+
"scroll-p": pt()
|
|
4715
4715
|
}],
|
|
4716
4716
|
/**
|
|
4717
4717
|
* Scroll Padding X
|
|
4718
4718
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4719
4719
|
*/
|
|
4720
4720
|
"scroll-px": [{
|
|
4721
|
-
"scroll-px":
|
|
4721
|
+
"scroll-px": pt()
|
|
4722
4722
|
}],
|
|
4723
4723
|
/**
|
|
4724
4724
|
* Scroll Padding Y
|
|
4725
4725
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4726
4726
|
*/
|
|
4727
4727
|
"scroll-py": [{
|
|
4728
|
-
"scroll-py":
|
|
4728
|
+
"scroll-py": pt()
|
|
4729
4729
|
}],
|
|
4730
4730
|
/**
|
|
4731
4731
|
* Scroll Padding Start
|
|
4732
4732
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4733
4733
|
*/
|
|
4734
4734
|
"scroll-ps": [{
|
|
4735
|
-
"scroll-ps":
|
|
4735
|
+
"scroll-ps": pt()
|
|
4736
4736
|
}],
|
|
4737
4737
|
/**
|
|
4738
4738
|
* Scroll Padding End
|
|
4739
4739
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4740
4740
|
*/
|
|
4741
4741
|
"scroll-pe": [{
|
|
4742
|
-
"scroll-pe":
|
|
4742
|
+
"scroll-pe": pt()
|
|
4743
4743
|
}],
|
|
4744
4744
|
/**
|
|
4745
4745
|
* Scroll Padding Top
|
|
4746
4746
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4747
4747
|
*/
|
|
4748
4748
|
"scroll-pt": [{
|
|
4749
|
-
"scroll-pt":
|
|
4749
|
+
"scroll-pt": pt()
|
|
4750
4750
|
}],
|
|
4751
4751
|
/**
|
|
4752
4752
|
* Scroll Padding Right
|
|
4753
4753
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4754
4754
|
*/
|
|
4755
4755
|
"scroll-pr": [{
|
|
4756
|
-
"scroll-pr":
|
|
4756
|
+
"scroll-pr": pt()
|
|
4757
4757
|
}],
|
|
4758
4758
|
/**
|
|
4759
4759
|
* Scroll Padding Bottom
|
|
4760
4760
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4761
4761
|
*/
|
|
4762
4762
|
"scroll-pb": [{
|
|
4763
|
-
"scroll-pb":
|
|
4763
|
+
"scroll-pb": pt()
|
|
4764
4764
|
}],
|
|
4765
4765
|
/**
|
|
4766
4766
|
* Scroll Padding Left
|
|
4767
4767
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
4768
4768
|
*/
|
|
4769
4769
|
"scroll-pl": [{
|
|
4770
|
-
"scroll-pl":
|
|
4770
|
+
"scroll-pl": pt()
|
|
4771
4771
|
}],
|
|
4772
4772
|
/**
|
|
4773
4773
|
* Scroll Snap Align
|
|
@@ -5107,10 +5107,10 @@ const hexToHsl = ($e) => {
|
|
|
5107
5107
|
}, hslArrayToCSS = ($e) => $e.map((De, Fe) => Fe ? `${De}%` : De).join(" ");
|
|
5108
5108
|
var root_2$6 = /* @__PURE__ */ template('<p style="color: red"> </p>'), root$g = /* @__PURE__ */ template("<!> <!>", 1);
|
|
5109
5109
|
function Base($e, De) {
|
|
5110
|
-
var
|
|
5110
|
+
var et;
|
|
5111
5111
|
push$6(De, !0);
|
|
5112
5112
|
let Fe = prop(De, "applyStyles", 3, !0);
|
|
5113
|
-
const He = (
|
|
5113
|
+
const He = (et = document.querySelector("html")) == null ? void 0 : et.getAttribute("lang"), Be = He == null ? void 0 : He.split("-")[0], Ge = getApi(), Ke = init$4(De.lang || Be || "en");
|
|
5114
5114
|
let We = `
|
|
5115
5115
|
:host {
|
|
5116
5116
|
display: contents;
|
|
@@ -5128,7 +5128,7 @@ function Base($e, De) {
|
|
|
5128
5128
|
Ze,
|
|
5129
5129
|
() => Ge,
|
|
5130
5130
|
null,
|
|
5131
|
-
(
|
|
5131
|
+
(Qe, tt) => {
|
|
5132
5132
|
var rt = comment(), nt = first_child(rt);
|
|
5133
5133
|
slot(
|
|
5134
5134
|
nt,
|
|
@@ -5141,11 +5141,11 @@ function Base($e, De) {
|
|
|
5141
5141
|
t: Ke
|
|
5142
5142
|
},
|
|
5143
5143
|
null
|
|
5144
|
-
), append$1(
|
|
5144
|
+
), append$1(Qe, rt);
|
|
5145
5145
|
},
|
|
5146
|
-
(
|
|
5146
|
+
(Qe, tt) => {
|
|
5147
5147
|
var rt = root_2$6(), nt = child(rt, !0);
|
|
5148
|
-
reset(rt), template_effect(() => set_text(nt, get$1(tt).message)), append$1(
|
|
5148
|
+
reset(rt), template_effect(() => set_text(nt, get$1(tt).message)), append$1(Qe, rt);
|
|
5149
5149
|
}
|
|
5150
5150
|
);
|
|
5151
5151
|
var Ye = sibling(Ze, 2);
|
|
@@ -5186,12 +5186,12 @@ function Avatar_wc($e, De) {
|
|
|
5186
5186
|
class: "relative inline-block",
|
|
5187
5187
|
children: (Je, Ze) => {
|
|
5188
5188
|
var Ye = root_2$5();
|
|
5189
|
-
const
|
|
5189
|
+
const et = /* @__PURE__ */ derived_safe_equal(() => twMerge("relative inline-block rounded-full overflow-hidden bg-purple-500", Be() === "sm" && "w-8 h-8", Be() === "md" && "w-12 h-12", Be() === "lg" && "w-16 h-16"));
|
|
5190
5190
|
Ye.__click = function(...nt) {
|
|
5191
5191
|
var at;
|
|
5192
5192
|
(at = Ke()) == null || at.apply(this, nt);
|
|
5193
5193
|
}, Ye.__keydown = [on_keydown, Ke];
|
|
5194
|
-
var
|
|
5194
|
+
var Qe = child(Ye);
|
|
5195
5195
|
{
|
|
5196
5196
|
var tt = (nt) => {
|
|
5197
5197
|
var at = root_3$4(), st = child(at);
|
|
@@ -5201,17 +5201,17 @@ function Avatar_wc($e, De) {
|
|
|
5201
5201
|
var at = comment(), st = first_child(at);
|
|
5202
5202
|
{
|
|
5203
5203
|
var ct = (lt) => {
|
|
5204
|
-
var
|
|
5204
|
+
var ft = root_5$1();
|
|
5205
5205
|
template_effect(() => {
|
|
5206
|
-
set_attribute(
|
|
5207
|
-
}), append$1(lt,
|
|
5206
|
+
set_attribute(ft, "src", Fe()), set_attribute(ft, "alt", He());
|
|
5207
|
+
}), append$1(lt, ft);
|
|
5208
5208
|
}, ot = (lt) => {
|
|
5209
5209
|
Row(lt, {
|
|
5210
5210
|
class: "absolute top-0 left-0 w-full h-full text-white",
|
|
5211
|
-
children: (
|
|
5211
|
+
children: (ft, mt) => {
|
|
5212
5212
|
next();
|
|
5213
5213
|
var gt = text();
|
|
5214
|
-
template_effect(() => set_text(gt, He().charAt(0).toUpperCase())), append$1(
|
|
5214
|
+
template_effect(() => set_text(gt, He().charAt(0).toUpperCase())), append$1(ft, gt);
|
|
5215
5215
|
},
|
|
5216
5216
|
$$slots: { default: !0 }
|
|
5217
5217
|
});
|
|
@@ -5226,12 +5226,12 @@ function Avatar_wc($e, De) {
|
|
|
5226
5226
|
}
|
|
5227
5227
|
append$1(nt, at);
|
|
5228
5228
|
};
|
|
5229
|
-
if_block(
|
|
5229
|
+
if_block(Qe, (nt) => {
|
|
5230
5230
|
Ge() ? nt(tt) : nt(rt, !1);
|
|
5231
5231
|
});
|
|
5232
5232
|
}
|
|
5233
5233
|
reset(Ye), template_effect(() => {
|
|
5234
|
-
set_class(Ye, get$1(
|
|
5234
|
+
set_class(Ye, get$1(et)), set_attribute(Ye, "aria-label", He());
|
|
5235
5235
|
}), append$1(Je, Ye);
|
|
5236
5236
|
},
|
|
5237
5237
|
$$slots: { default: !0 }
|
|
@@ -5362,16 +5362,16 @@ function Button($e, De) {
|
|
|
5362
5362
|
children: (Xe, Je) => {
|
|
5363
5363
|
var Ze = root_1$5(), Ye = first_child(Ze);
|
|
5364
5364
|
{
|
|
5365
|
-
var
|
|
5365
|
+
var et = (tt) => {
|
|
5366
5366
|
var rt = root_2$4();
|
|
5367
5367
|
append$1(tt, rt);
|
|
5368
5368
|
};
|
|
5369
5369
|
if_block(Ye, (tt) => {
|
|
5370
|
-
Fe() && tt(
|
|
5370
|
+
Fe() && tt(et);
|
|
5371
5371
|
});
|
|
5372
5372
|
}
|
|
5373
|
-
var
|
|
5374
|
-
slot(
|
|
5373
|
+
var Qe = sibling(Ye, 2);
|
|
5374
|
+
slot(Qe, De, "default", {}, null), append$1(Xe, Ze);
|
|
5375
5375
|
},
|
|
5376
5376
|
$$slots: { default: !0 }
|
|
5377
5377
|
}
|
|
@@ -5384,35 +5384,35 @@ function Login_wc($e, De) {
|
|
|
5384
5384
|
set$2(We, !0);
|
|
5385
5385
|
try {
|
|
5386
5386
|
await Ye.auth.loginWithRedirect();
|
|
5387
|
-
} catch (
|
|
5388
|
-
set$2(We, !1), console.error("Login failed:",
|
|
5387
|
+
} catch (et) {
|
|
5388
|
+
set$2(We, !1), console.error("Login failed:", et);
|
|
5389
5389
|
}
|
|
5390
5390
|
}, Je = async (Ye) => {
|
|
5391
5391
|
Fe(!0);
|
|
5392
5392
|
try {
|
|
5393
5393
|
await Ye.auth.logout(), He(!1);
|
|
5394
|
-
} catch (
|
|
5395
|
-
console.error("Logout failed:",
|
|
5394
|
+
} catch (et) {
|
|
5395
|
+
console.error("Logout failed:", et);
|
|
5396
5396
|
}
|
|
5397
5397
|
}, Ze = async (Ye) => {
|
|
5398
5398
|
try {
|
|
5399
5399
|
if (He(await Ye.auth.isAuthenticated()), He()) {
|
|
5400
|
-
const
|
|
5401
|
-
Be((
|
|
5400
|
+
const et = await Ye.auth.getUser();
|
|
5401
|
+
Be((et == null ? void 0 : et.picture) || "");
|
|
5402
5402
|
}
|
|
5403
|
-
} catch (
|
|
5404
|
-
console.error("Error checking login status:",
|
|
5403
|
+
} catch (et) {
|
|
5404
|
+
console.error("Error checking login status:", et);
|
|
5405
5405
|
}
|
|
5406
5406
|
};
|
|
5407
5407
|
return Base($e, {
|
|
5408
5408
|
children: invalid_default_snippet,
|
|
5409
5409
|
$$slots: {
|
|
5410
|
-
default: (Ye,
|
|
5411
|
-
const
|
|
5410
|
+
default: (Ye, et) => {
|
|
5411
|
+
const Qe = /* @__PURE__ */ derived(() => et.api), tt = /* @__PURE__ */ derived(() => et.t);
|
|
5412
5412
|
var rt = comment(), nt = first_child(rt);
|
|
5413
5413
|
await_block(
|
|
5414
5414
|
nt,
|
|
5415
|
-
() => Ze(get$1(
|
|
5415
|
+
() => Ze(get$1(Qe)),
|
|
5416
5416
|
(at) => {
|
|
5417
5417
|
Avatar_wc(at, { loading: !0, size: "sm" });
|
|
5418
5418
|
},
|
|
@@ -5424,22 +5424,22 @@ function Login_wc($e, De) {
|
|
|
5424
5424
|
get loading() {
|
|
5425
5425
|
return Fe();
|
|
5426
5426
|
},
|
|
5427
|
-
onclick: () => Je(get$1(
|
|
5427
|
+
onclick: () => Je(get$1(Qe)),
|
|
5428
5428
|
size: "sm"
|
|
5429
5429
|
});
|
|
5430
|
-
},
|
|
5430
|
+
}, ft = (mt) => {
|
|
5431
5431
|
var gt = comment(), wt = first_child(gt);
|
|
5432
5432
|
{
|
|
5433
|
-
var
|
|
5434
|
-
Avatar_wc(
|
|
5433
|
+
var It = (pt) => {
|
|
5434
|
+
Avatar_wc(pt, {
|
|
5435
5435
|
get loading() {
|
|
5436
5436
|
return Fe();
|
|
5437
5437
|
},
|
|
5438
|
-
onclick: () => Je(get$1(
|
|
5438
|
+
onclick: () => Je(get$1(Qe)),
|
|
5439
5439
|
size: "sm"
|
|
5440
5440
|
});
|
|
5441
|
-
}, bt = (
|
|
5442
|
-
Button(
|
|
5441
|
+
}, bt = (pt) => {
|
|
5442
|
+
Button(pt, {
|
|
5443
5443
|
get class() {
|
|
5444
5444
|
return Ke();
|
|
5445
5445
|
},
|
|
@@ -5447,7 +5447,7 @@ function Login_wc($e, De) {
|
|
|
5447
5447
|
get disabled() {
|
|
5448
5448
|
return get$1(We);
|
|
5449
5449
|
},
|
|
5450
|
-
onclick: () => Xe(get$1(
|
|
5450
|
+
onclick: () => Xe(get$1(Qe)),
|
|
5451
5451
|
size: "sm",
|
|
5452
5452
|
children: (yt, $t) => {
|
|
5453
5453
|
next();
|
|
@@ -5459,8 +5459,8 @@ function Login_wc($e, De) {
|
|
|
5459
5459
|
};
|
|
5460
5460
|
if_block(
|
|
5461
5461
|
wt,
|
|
5462
|
-
(
|
|
5463
|
-
He() ?
|
|
5462
|
+
(pt) => {
|
|
5463
|
+
He() ? pt(It) : pt(bt, !1);
|
|
5464
5464
|
},
|
|
5465
5465
|
!0
|
|
5466
5466
|
);
|
|
@@ -5468,7 +5468,7 @@ function Login_wc($e, De) {
|
|
|
5468
5468
|
append$1(mt, gt);
|
|
5469
5469
|
};
|
|
5470
5470
|
if_block(ot, (mt) => {
|
|
5471
|
-
Fe() ? mt(lt) : mt(
|
|
5471
|
+
Fe() ? mt(lt) : mt(ft, !1);
|
|
5472
5472
|
});
|
|
5473
5473
|
}
|
|
5474
5474
|
append$1(at, ct);
|
|
@@ -5586,12 +5586,12 @@ function Icon($e, De) {
|
|
|
5586
5586
|
widthRatio: Ze,
|
|
5587
5587
|
heightRatio: Ye
|
|
5588
5588
|
} = icons[De.name];
|
|
5589
|
-
var
|
|
5590
|
-
let
|
|
5591
|
-
var tt = child(
|
|
5592
|
-
html$3(tt, () => Ge.join(""), !0, !1), reset(
|
|
5593
|
-
Qe,
|
|
5589
|
+
var et = root$d();
|
|
5590
|
+
let Qe;
|
|
5591
|
+
var tt = child(et);
|
|
5592
|
+
html$3(tt, () => Ge.join(""), !0, !1), reset(et), template_effect(() => Qe = set_attributes(
|
|
5594
5593
|
et,
|
|
5594
|
+
Qe,
|
|
5595
5595
|
{
|
|
5596
5596
|
class: twMerge(`icon-${De.name}`, De.class),
|
|
5597
5597
|
viewBox: Xe && Je ? `0 0 ${Xe} ${Je}` : void 0,
|
|
@@ -5605,7 +5605,7 @@ function Icon($e, De) {
|
|
|
5605
5605
|
},
|
|
5606
5606
|
void 0,
|
|
5607
5607
|
!0
|
|
5608
|
-
)), append$1($e,
|
|
5608
|
+
)), append$1($e, et), pop$1();
|
|
5609
5609
|
}
|
|
5610
5610
|
function PaymentMethod($e, De) {
|
|
5611
5611
|
push$6(De, !0);
|
|
@@ -5632,10 +5632,10 @@ function Button_wc($e, De) {
|
|
|
5632
5632
|
let Fe = prop(De, "loading", 7, !1), He = prop(De, "variant", 7, "primary"), Be = prop(De, "disabled", 7, !1), Ge = prop(De, "size", 7, "md"), Ke = prop(De, "part", 7), We = prop(De, "onclick", 7), Xe = prop(De, "href", 7), Je = prop(De, "class", 7);
|
|
5633
5633
|
return Base($e, {
|
|
5634
5634
|
children: (Ze, Ye) => {
|
|
5635
|
-
var
|
|
5635
|
+
var et = /* @__PURE__ */ derived(() => twMerge("inline-flex font-bold ring-2 ring-transparent focus:ring-primary/25 active:enabled:translate-y-px border border-transparent items-center justify-center outline-none rounded-md transition-colors duration-200 ease-in-out", Ge() == "sm" && "px-3 py-1.5 text-sm", Ge() == "md" && "px-4 py-2 text-base", Ge() == "lg" && "px-6 py-3 text-lg", He() === "primary" && "bg-primary text-white enabled:hover:bg-primary/90", He() === "secondary" && "bg-transparent border-primary text-primary enabled:hover:bg-primary/10", He() === "tertiary" && "text-primary enabled:hover:bg-primary/10", Be() && "opacity-50 cursor-not-allowed", Je()));
|
|
5636
5636
|
Clickable(Ze, {
|
|
5637
5637
|
get class() {
|
|
5638
|
-
return get$1(
|
|
5638
|
+
return get$1(et);
|
|
5639
5639
|
},
|
|
5640
5640
|
get href() {
|
|
5641
5641
|
return Xe();
|
|
@@ -5649,7 +5649,7 @@ function Button_wc($e, De) {
|
|
|
5649
5649
|
get disabled() {
|
|
5650
5650
|
return Be();
|
|
5651
5651
|
},
|
|
5652
|
-
children: (
|
|
5652
|
+
children: (Qe, tt) => {
|
|
5653
5653
|
var rt = root_2$3(), nt = first_child(rt);
|
|
5654
5654
|
{
|
|
5655
5655
|
var at = (ct) => {
|
|
@@ -5661,7 +5661,7 @@ function Button_wc($e, De) {
|
|
|
5661
5661
|
});
|
|
5662
5662
|
}
|
|
5663
5663
|
var st = sibling(nt, 2);
|
|
5664
|
-
slot(st, De, "default", {}, null), append$1(
|
|
5664
|
+
slot(st, De, "default", {}, null), append$1(Qe, rt);
|
|
5665
5665
|
},
|
|
5666
5666
|
$$slots: { default: !0 }
|
|
5667
5667
|
});
|
|
@@ -5744,7 +5744,7 @@ function slide($e, { delay: De = 0, duration: Fe = 400, easing: He = cubic_out,
|
|
|
5744
5744
|
/** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
|
|
5745
5745
|
`${at[0].toUpperCase()}${at.slice(1)}`
|
|
5746
5746
|
)
|
|
5747
|
-
), Ye = parseFloat(Ge[`padding${Ze[0]}`]),
|
|
5747
|
+
), Ye = parseFloat(Ge[`padding${Ze[0]}`]), et = parseFloat(Ge[`padding${Ze[1]}`]), Qe = parseFloat(Ge[`margin${Ze[0]}`]), tt = parseFloat(Ge[`margin${Ze[1]}`]), rt = parseFloat(
|
|
5748
5748
|
Ge[`border${Ze[0]}Width`]
|
|
5749
5749
|
), nt = parseFloat(
|
|
5750
5750
|
Ge[`border${Ze[1]}Width`]
|
|
@@ -5753,7 +5753,7 @@ function slide($e, { delay: De = 0, duration: Fe = 400, easing: He = cubic_out,
|
|
|
5753
5753
|
delay: De,
|
|
5754
5754
|
duration: Fe,
|
|
5755
5755
|
easing: He,
|
|
5756
|
-
css: (at) => `overflow: hidden;opacity: ${Math.min(at * 20, 1) * Ke};${We}: ${at * Xe}px;padding-${Je[0]}: ${at * Ye}px;padding-${Je[1]}: ${at *
|
|
5756
|
+
css: (at) => `overflow: hidden;opacity: ${Math.min(at * 20, 1) * Ke};${We}: ${at * Xe}px;padding-${Je[0]}: ${at * Ye}px;padding-${Je[1]}: ${at * et}px;margin-${Je[0]}: ${at * Qe}px;margin-${Je[1]}: ${at * tt}px;border-${Je[0]}-width: ${at * rt}px;border-${Je[1]}-width: ${at * nt}px;`
|
|
5757
5757
|
};
|
|
5758
5758
|
}
|
|
5759
5759
|
var root_1$4 = /* @__PURE__ */ template('<li class="row-up-left gap-2"><!> <div> </div></li>'), root$c = /* @__PURE__ */ template("<ul></ul>");
|
|
@@ -5829,7 +5829,7 @@ function Selection($e, De) {
|
|
|
5829
5829
|
}), append$1($e, He), pop$1();
|
|
5830
5830
|
}
|
|
5831
5831
|
delegate(["change"]);
|
|
5832
|
-
var root_10
|
|
5832
|
+
var root_10 = /* @__PURE__ */ template('<div class="leading-none"><span class="font-bold text-2xl @xl:text-4xl"> </span> <span class="text-xl @xl:text-2xl"> </span></div>'), root_9$2 = /* @__PURE__ */ template('<!> <div class="relative leading-tight"><span> </span> <span> </span> <div></div></div>', 1), root_11$1 = /* @__PURE__ */ template('<div class="text-sm text-gray-700"> </div>'), root_7 = /* @__PURE__ */ template('<div class="text-base @xl:text-lg font-bold leading-tight"> </div> <!> <!> <!>', 1), root_6$2 = /* @__PURE__ */ template("<!> <!>", 1), root_4$3 = /* @__PURE__ */ template("<!> <!>", 1), root_16 = /* @__PURE__ */ template('<hr class="w-full border-gray-100">'), root_19 = /* @__PURE__ */ template('<div class="leading-tight text-sm"> </div>'), root_18 = /* @__PURE__ */ template('<div class="text-base font-bold leading-tight"> </div> <!>', 1), root_20 = /* @__PURE__ */ template('<div class="text-base font-bold leading-none"> </div>'), root_17 = /* @__PURE__ */ template('<!> <div class="column-left @md:column-right"><!> <div> </div></div> <!>', 1), root_15$1 = /* @__PURE__ */ template("<!> <!>", 1);
|
|
5833
5833
|
function Subscriptions($e, De) {
|
|
5834
5834
|
push$6(De, !0);
|
|
5835
5835
|
let Fe = prop(De, "horizontal", 3, !1);
|
|
@@ -5851,19 +5851,19 @@ function Subscriptions($e, De) {
|
|
|
5851
5851
|
children: (Ge, Ke) => {
|
|
5852
5852
|
var We = comment(), Xe = first_child(We);
|
|
5853
5853
|
each(Xe, 17, () => De.subscriptions, index, (Je, Ze, Ye) => {
|
|
5854
|
-
var
|
|
5855
|
-
const
|
|
5854
|
+
var et = comment();
|
|
5855
|
+
const Qe = /* @__PURE__ */ derived(() => {
|
|
5856
5856
|
const {
|
|
5857
5857
|
id: at,
|
|
5858
5858
|
title: st,
|
|
5859
5859
|
description: ct,
|
|
5860
5860
|
price: ot,
|
|
5861
5861
|
periodText: lt,
|
|
5862
|
-
features:
|
|
5862
|
+
features: ft,
|
|
5863
5863
|
selected: mt,
|
|
5864
5864
|
tag: gt,
|
|
5865
5865
|
buttonText: wt,
|
|
5866
|
-
url:
|
|
5866
|
+
url: It,
|
|
5867
5867
|
discountPrice: bt
|
|
5868
5868
|
} = get$1(Ze);
|
|
5869
5869
|
return {
|
|
@@ -5872,29 +5872,29 @@ function Subscriptions($e, De) {
|
|
|
5872
5872
|
description: ct,
|
|
5873
5873
|
price: ot,
|
|
5874
5874
|
periodText: lt,
|
|
5875
|
-
features:
|
|
5875
|
+
features: ft,
|
|
5876
5876
|
selected: mt,
|
|
5877
5877
|
tag: gt,
|
|
5878
5878
|
buttonText: wt,
|
|
5879
|
-
url:
|
|
5879
|
+
url: It,
|
|
5880
5880
|
discountPrice: bt
|
|
5881
5881
|
};
|
|
5882
5882
|
});
|
|
5883
|
-
var tt = first_child(
|
|
5883
|
+
var tt = first_child(et);
|
|
5884
5884
|
{
|
|
5885
5885
|
var rt = (at) => {
|
|
5886
|
-
var st = /* @__PURE__ */ derived(() => twMerge("border bg-white border-gray-300 rounded-lg relative", get$1(
|
|
5886
|
+
var st = /* @__PURE__ */ derived(() => twMerge("border bg-white border-gray-300 rounded-lg relative", get$1(Qe).tag && "border-primary mt-0 border-2"));
|
|
5887
5887
|
Column(at, {
|
|
5888
5888
|
get class() {
|
|
5889
5889
|
return get$1(st);
|
|
5890
5890
|
},
|
|
5891
5891
|
children: (ct, ot) => {
|
|
5892
|
-
var lt = root_4$3(),
|
|
5892
|
+
var lt = root_4$3(), ft = first_child(lt);
|
|
5893
5893
|
{
|
|
5894
5894
|
var mt = (wt) => {
|
|
5895
5895
|
Tag(wt, {
|
|
5896
5896
|
get text() {
|
|
5897
|
-
return get$1(
|
|
5897
|
+
return get$1(Qe).tag;
|
|
5898
5898
|
},
|
|
5899
5899
|
get t() {
|
|
5900
5900
|
return De.t;
|
|
@@ -5902,109 +5902,109 @@ function Subscriptions($e, De) {
|
|
|
5902
5902
|
chunky: !0
|
|
5903
5903
|
});
|
|
5904
5904
|
};
|
|
5905
|
-
if_block(
|
|
5906
|
-
get$1(
|
|
5905
|
+
if_block(ft, (wt) => {
|
|
5906
|
+
get$1(Qe).tag && wt(mt);
|
|
5907
5907
|
});
|
|
5908
5908
|
}
|
|
5909
|
-
var gt = sibling(
|
|
5909
|
+
var gt = sibling(ft, 2);
|
|
5910
5910
|
Column(gt, {
|
|
5911
5911
|
class: "p-4 flex-1 gap-2 w-full !justify-between shadow-md",
|
|
5912
5912
|
left: !0,
|
|
5913
5913
|
up: !0,
|
|
5914
|
-
children: (wt,
|
|
5915
|
-
var bt = root_6$
|
|
5916
|
-
Column(
|
|
5914
|
+
children: (wt, It) => {
|
|
5915
|
+
var bt = root_6$2(), pt = first_child(bt);
|
|
5916
|
+
Column(pt, {
|
|
5917
5917
|
class: "@xl:p-1",
|
|
5918
5918
|
left: !0,
|
|
5919
5919
|
children: ($t, vt) => {
|
|
5920
|
-
var
|
|
5921
|
-
reset(
|
|
5922
|
-
var ut = sibling(
|
|
5920
|
+
var Rt = root_7(), xt = first_child(Rt), Nt = child(xt, !0);
|
|
5921
|
+
reset(xt);
|
|
5922
|
+
var ut = sibling(xt, 2);
|
|
5923
5923
|
{
|
|
5924
|
-
var
|
|
5925
|
-
Column(
|
|
5924
|
+
var dt = (St) => {
|
|
5925
|
+
Column(St, {
|
|
5926
5926
|
class: "mb-0 @xl:mb-4",
|
|
5927
5927
|
left: !0,
|
|
5928
|
-
children: (
|
|
5929
|
-
var
|
|
5928
|
+
children: (Tt, Lt) => {
|
|
5929
|
+
var Pt = root_9$2(), Mt = first_child(Pt);
|
|
5930
5930
|
{
|
|
5931
|
-
var
|
|
5932
|
-
var
|
|
5931
|
+
var Bt = (qt) => {
|
|
5932
|
+
var Gt = root_10(), Kt = child(Gt), Jt = child(Kt);
|
|
5933
5933
|
reset(Kt);
|
|
5934
5934
|
var er = sibling(Kt, 2), or = child(er);
|
|
5935
|
-
reset(er), reset(
|
|
5936
|
-
set_text(Jt, `${get$1(
|
|
5937
|
-
${De.currency ?? ""}`), set_text(or, `/ ${get$1(
|
|
5938
|
-
}), append$1(qt,
|
|
5935
|
+
reset(er), reset(Gt), template_effect(() => {
|
|
5936
|
+
set_text(Jt, `${get$1(Qe).discountPrice ?? ""}
|
|
5937
|
+
${De.currency ?? ""}`), set_text(or, `/ ${get$1(Qe).periodText ?? ""}`);
|
|
5938
|
+
}), append$1(qt, Gt);
|
|
5939
5939
|
};
|
|
5940
|
-
if_block(
|
|
5941
|
-
get$1(
|
|
5940
|
+
if_block(Mt, (qt) => {
|
|
5941
|
+
get$1(Qe).discountPrice && qt(Bt);
|
|
5942
5942
|
});
|
|
5943
5943
|
}
|
|
5944
|
-
var
|
|
5945
|
-
const
|
|
5946
|
-
var Et = child(
|
|
5947
|
-
reset(
|
|
5948
|
-
var
|
|
5949
|
-
const
|
|
5950
|
-
var
|
|
5951
|
-
reset(
|
|
5952
|
-
var Ut = sibling(
|
|
5953
|
-
const
|
|
5954
|
-
reset(
|
|
5955
|
-
set_class(
|
|
5956
|
-
${De.currency ?? ""}`), set_class(
|
|
5957
|
-
}), append$1(
|
|
5944
|
+
var zt = sibling(Mt, 2), Vt = child(zt);
|
|
5945
|
+
const ht = /* @__PURE__ */ derived(() => twMerge("font-bold text-2xl @xl:text-4xl", get$1(Qe).discountPrice && "text-xl @xl:text-2xl text-gray-400"));
|
|
5946
|
+
var Et = child(Vt);
|
|
5947
|
+
reset(Vt);
|
|
5948
|
+
var Ct = sibling(Vt, 2);
|
|
5949
|
+
const jt = /* @__PURE__ */ derived(() => twMerge("text-xl @xl:text-2xl whitespace-nowrap", get$1(Qe).discountPrice && "text-base @xl:text-lg text-gray-400"));
|
|
5950
|
+
var Ft = child(Ct);
|
|
5951
|
+
reset(Ct);
|
|
5952
|
+
var Ut = sibling(Ct, 2);
|
|
5953
|
+
const Ht = /* @__PURE__ */ derived(() => twMerge("hidden absolute top-1/2 left-0 right-0 h-px bg-gray-400", get$1(Qe).discountPrice && "block"));
|
|
5954
|
+
reset(zt), template_effect(() => {
|
|
5955
|
+
set_class(Vt, get$1(ht)), set_text(Et, `${get$1(Qe).price ?? ""}
|
|
5956
|
+
${De.currency ?? ""}`), set_class(Ct, get$1(jt)), set_text(Ft, `/ ${get$1(Qe).periodText ?? ""}`), set_class(Ut, get$1(Ht));
|
|
5957
|
+
}), append$1(Tt, Pt);
|
|
5958
5958
|
},
|
|
5959
5959
|
$$slots: { default: !0 }
|
|
5960
5960
|
});
|
|
5961
5961
|
};
|
|
5962
|
-
if_block(ut, (
|
|
5963
|
-
typeof get$1(
|
|
5962
|
+
if_block(ut, (St) => {
|
|
5963
|
+
typeof get$1(Qe).price == "number" && St(dt);
|
|
5964
5964
|
});
|
|
5965
5965
|
}
|
|
5966
5966
|
var _t = sibling(ut, 2);
|
|
5967
5967
|
{
|
|
5968
|
-
var
|
|
5969
|
-
var
|
|
5970
|
-
reset(
|
|
5968
|
+
var Ot = (St) => {
|
|
5969
|
+
var Tt = root_11$1(), Lt = child(Tt, !0);
|
|
5970
|
+
reset(Tt), template_effect(() => set_text(Lt, get$1(Qe).description)), append$1(St, Tt);
|
|
5971
5971
|
};
|
|
5972
|
-
if_block(_t, (
|
|
5973
|
-
get$1(
|
|
5972
|
+
if_block(_t, (St) => {
|
|
5973
|
+
get$1(Qe).description && (!get$1(Qe).features || get$1(Qe).features.length < 1) && St(Ot);
|
|
5974
5974
|
});
|
|
5975
5975
|
}
|
|
5976
|
-
var
|
|
5976
|
+
var At = sibling(_t, 2);
|
|
5977
5977
|
{
|
|
5978
|
-
var
|
|
5979
|
-
Features(
|
|
5978
|
+
var kt = (St) => {
|
|
5979
|
+
Features(St, {
|
|
5980
5980
|
get features() {
|
|
5981
|
-
return get$1(
|
|
5981
|
+
return get$1(Qe).features;
|
|
5982
5982
|
}
|
|
5983
5983
|
});
|
|
5984
5984
|
};
|
|
5985
|
-
if_block(
|
|
5986
|
-
get$1(
|
|
5985
|
+
if_block(At, (St) => {
|
|
5986
|
+
get$1(Qe).features && get$1(Qe).features.length > 0 && St(kt);
|
|
5987
5987
|
});
|
|
5988
5988
|
}
|
|
5989
|
-
template_effect(() => set_text(Nt, get$1(
|
|
5989
|
+
template_effect(() => set_text(Nt, get$1(Qe).title)), append$1($t, Rt);
|
|
5990
5990
|
},
|
|
5991
5991
|
$$slots: { default: !0 }
|
|
5992
5992
|
});
|
|
5993
|
-
var yt = sibling(
|
|
5993
|
+
var yt = sibling(pt, 2);
|
|
5994
5994
|
await_block(yt, () => He(get$1(Ze)), null, ($t, vt) => {
|
|
5995
|
-
var
|
|
5995
|
+
var Rt = /* @__PURE__ */ derived(() => get$1(vt).replace("poId", "option")), xt = /* @__PURE__ */ derived(() => get$1(Qe).selected || get$1(Qe).tag ? "primary" : "secondary");
|
|
5996
5996
|
Button_wc($t, {
|
|
5997
5997
|
get href() {
|
|
5998
|
-
return get$1(
|
|
5998
|
+
return get$1(Rt);
|
|
5999
5999
|
},
|
|
6000
6000
|
class: "w-full mt-4",
|
|
6001
6001
|
get variant() {
|
|
6002
|
-
return get$1(
|
|
6002
|
+
return get$1(xt);
|
|
6003
6003
|
},
|
|
6004
6004
|
children: (Nt, ut) => {
|
|
6005
6005
|
next();
|
|
6006
|
-
var
|
|
6007
|
-
template_effect(() => set_text(
|
|
6006
|
+
var dt = text();
|
|
6007
|
+
template_effect(() => set_text(dt, get$1(Qe).buttonText || De.t("continue"))), append$1(Nt, dt);
|
|
6008
6008
|
},
|
|
6009
6009
|
$$slots: { default: !0 }
|
|
6010
6010
|
});
|
|
@@ -6018,82 +6018,82 @@ function Subscriptions($e, De) {
|
|
|
6018
6018
|
}, nt = (at) => {
|
|
6019
6019
|
var st = root_15$1(), ct = first_child(st);
|
|
6020
6020
|
{
|
|
6021
|
-
var ot = (
|
|
6021
|
+
var ot = (ft) => {
|
|
6022
6022
|
var mt = root_16();
|
|
6023
|
-
append$1(
|
|
6023
|
+
append$1(ft, mt);
|
|
6024
6024
|
};
|
|
6025
|
-
if_block(ct, (
|
|
6026
|
-
Ye &&
|
|
6025
|
+
if_block(ct, (ft) => {
|
|
6026
|
+
Ye && ft(ot);
|
|
6027
6027
|
});
|
|
6028
6028
|
}
|
|
6029
6029
|
var lt = sibling(ct, 2);
|
|
6030
6030
|
Selection(lt, {
|
|
6031
6031
|
get id() {
|
|
6032
|
-
return get$1(
|
|
6032
|
+
return get$1(Qe).id;
|
|
6033
6033
|
},
|
|
6034
6034
|
class: "gap-2 @md:gap-4",
|
|
6035
6035
|
name: "purchase-option",
|
|
6036
6036
|
get checked() {
|
|
6037
|
-
return get$1(
|
|
6037
|
+
return get$1(Qe).selected;
|
|
6038
6038
|
},
|
|
6039
6039
|
onchange: () => De.selectProduct(get$1(Ze)),
|
|
6040
|
-
children: (
|
|
6040
|
+
children: (ft, mt) => {
|
|
6041
6041
|
var gt = root_17(), wt = first_child(gt);
|
|
6042
6042
|
Column(wt, {
|
|
6043
6043
|
class: "flex-1",
|
|
6044
6044
|
left: !0,
|
|
6045
6045
|
children: (Nt, ut) => {
|
|
6046
|
-
var
|
|
6046
|
+
var dt = root_18(), _t = first_child(dt), Ot = child(_t, !0);
|
|
6047
6047
|
reset(_t);
|
|
6048
|
-
var
|
|
6048
|
+
var At = sibling(_t, 2);
|
|
6049
6049
|
{
|
|
6050
|
-
var
|
|
6051
|
-
var
|
|
6052
|
-
reset(
|
|
6050
|
+
var kt = (St) => {
|
|
6051
|
+
var Tt = root_19(), Lt = child(Tt, !0);
|
|
6052
|
+
reset(Tt), template_effect(() => set_text(Lt, get$1(Qe).description)), append$1(St, Tt);
|
|
6053
6053
|
};
|
|
6054
|
-
if_block(
|
|
6055
|
-
get$1(
|
|
6054
|
+
if_block(At, (St) => {
|
|
6055
|
+
get$1(Qe).description && St(kt);
|
|
6056
6056
|
});
|
|
6057
6057
|
}
|
|
6058
|
-
template_effect(() => set_text(
|
|
6058
|
+
template_effect(() => set_text(Ot, get$1(Qe).title)), append$1(Nt, dt);
|
|
6059
6059
|
},
|
|
6060
6060
|
$$slots: { default: !0 }
|
|
6061
6061
|
});
|
|
6062
|
-
var
|
|
6062
|
+
var It = sibling(wt, 2), bt = child(It);
|
|
6063
6063
|
{
|
|
6064
|
-
var
|
|
6065
|
-
var ut = root_20(),
|
|
6066
|
-
reset(ut), template_effect(() => set_text(
|
|
6067
|
-
${De.currency ?? ""} / ${get$1(
|
|
6064
|
+
var pt = (Nt) => {
|
|
6065
|
+
var ut = root_20(), dt = child(ut);
|
|
6066
|
+
reset(ut), template_effect(() => set_text(dt, `${get$1(Qe).discountPrice ?? ""}
|
|
6067
|
+
${De.currency ?? ""} / ${get$1(Qe).periodText ?? ""}`)), append$1(Nt, ut);
|
|
6068
6068
|
};
|
|
6069
6069
|
if_block(bt, (Nt) => {
|
|
6070
|
-
get$1(
|
|
6070
|
+
get$1(Qe).discountPrice && Nt(pt);
|
|
6071
6071
|
});
|
|
6072
6072
|
}
|
|
6073
6073
|
var yt = sibling(bt, 2);
|
|
6074
|
-
const $t = /* @__PURE__ */ derived(() => twMerge("text-base font-bold leading-none", get$1(
|
|
6074
|
+
const $t = /* @__PURE__ */ derived(() => twMerge("text-base font-bold leading-none", get$1(Qe).discountPrice && "line-through text-gray-400 text-sm"));
|
|
6075
6075
|
var vt = child(yt);
|
|
6076
|
-
reset(yt), reset(
|
|
6077
|
-
var
|
|
6076
|
+
reset(yt), reset(It);
|
|
6077
|
+
var Rt = sibling(It, 2);
|
|
6078
6078
|
{
|
|
6079
|
-
var
|
|
6079
|
+
var xt = (Nt) => {
|
|
6080
6080
|
Tag(Nt, {
|
|
6081
6081
|
get text() {
|
|
6082
|
-
return get$1(
|
|
6082
|
+
return get$1(Qe).tag;
|
|
6083
6083
|
},
|
|
6084
6084
|
get t() {
|
|
6085
6085
|
return De.t;
|
|
6086
6086
|
}
|
|
6087
6087
|
});
|
|
6088
6088
|
};
|
|
6089
|
-
if_block(
|
|
6090
|
-
get$1(
|
|
6089
|
+
if_block(Rt, (Nt) => {
|
|
6090
|
+
get$1(Qe).tag && Nt(xt);
|
|
6091
6091
|
});
|
|
6092
6092
|
}
|
|
6093
6093
|
template_effect(() => {
|
|
6094
|
-
set_class(yt, get$1($t)), set_text(vt, `${get$1(
|
|
6095
|
-
${De.currency ?? ""} / ${get$1(
|
|
6096
|
-
}), append$1(
|
|
6094
|
+
set_class(yt, get$1($t)), set_text(vt, `${get$1(Qe).price ?? ""}
|
|
6095
|
+
${De.currency ?? ""} / ${get$1(Qe).periodText ?? ""}`);
|
|
6096
|
+
}), append$1(ft, gt);
|
|
6097
6097
|
},
|
|
6098
6098
|
$$slots: { default: !0 }
|
|
6099
6099
|
}), append$1(at, st);
|
|
@@ -6102,7 +6102,7 @@ function Subscriptions($e, De) {
|
|
|
6102
6102
|
Fe() ? at(rt) : at(nt, !1);
|
|
6103
6103
|
});
|
|
6104
6104
|
}
|
|
6105
|
-
append$1(Je,
|
|
6105
|
+
append$1(Je, et);
|
|
6106
6106
|
}), append$1(Ge, We);
|
|
6107
6107
|
},
|
|
6108
6108
|
$$slots: { default: !0 }
|
|
@@ -6110,7 +6110,7 @@ function Subscriptions($e, De) {
|
|
|
6110
6110
|
}
|
|
6111
6111
|
var root_4$2 = /* @__PURE__ */ template('<div class="text-base font-bold leading-tight"></div> <div class="text-sm"></div>', 1), root_3$2 = /* @__PURE__ */ template('<!> <div class="text-base font-bold"> </div>', 1);
|
|
6112
6112
|
function SinglePurchase($e, De) {
|
|
6113
|
-
var Ye,
|
|
6113
|
+
var Ye, et, Qe;
|
|
6114
6114
|
push$6(De, !0);
|
|
6115
6115
|
let Fe = prop(De, "item-src", 7), He = prop(De, "price", 7), Be = prop(De, "currency", 7), { title: Ge, description: Ke } = De.singlePurchase;
|
|
6116
6116
|
const We = () => {
|
|
@@ -6121,7 +6121,7 @@ function SinglePurchase($e, De) {
|
|
|
6121
6121
|
url: Fe()
|
|
6122
6122
|
});
|
|
6123
6123
|
};
|
|
6124
|
-
He() || He((Ye = document.querySelector('meta[property="sesamy:price"]')) == null ? void 0 : Ye.content), Be() || Be((
|
|
6124
|
+
He() || He((Ye = document.querySelector('meta[property="sesamy:price"]')) == null ? void 0 : Ye.content), Be() || Be((et = document.querySelector('meta[property="sesamy:currency"]')) == null ? void 0 : et.content), Fe() || Fe((Qe = document.querySelector('meta[property="sesamy:item-src"]')) == null ? void 0 : Qe.content), Fe() && !De.hasSubscriptions && We();
|
|
6125
6125
|
var Xe = comment(), Je = first_child(Xe);
|
|
6126
6126
|
{
|
|
6127
6127
|
var Ze = (tt) => {
|
|
@@ -6141,15 +6141,15 @@ function SinglePurchase($e, De) {
|
|
|
6141
6141
|
Column(lt, {
|
|
6142
6142
|
left: !0,
|
|
6143
6143
|
children: (gt, wt) => {
|
|
6144
|
-
var
|
|
6144
|
+
var It = root_4$2(), bt = first_child(It);
|
|
6145
6145
|
bt.textContent = Ge;
|
|
6146
|
-
var
|
|
6147
|
-
|
|
6146
|
+
var pt = sibling(bt, 2);
|
|
6147
|
+
pt.textContent = Ke, append$1(gt, It);
|
|
6148
6148
|
},
|
|
6149
6149
|
$$slots: { default: !0 }
|
|
6150
6150
|
});
|
|
6151
|
-
var
|
|
6152
|
-
reset(
|
|
6151
|
+
var ft = sibling(lt, 2), mt = child(ft);
|
|
6152
|
+
reset(ft), template_effect(() => set_text(mt, `${He() ?? ""} ${Be() ?? ""}`)), append$1(st, ot);
|
|
6153
6153
|
},
|
|
6154
6154
|
$$slots: { default: !0 }
|
|
6155
6155
|
});
|
|
@@ -6404,16 +6404,16 @@ function Input($e, De) {
|
|
|
6404
6404
|
let Ze;
|
|
6405
6405
|
var Ye = sibling(Je, 2);
|
|
6406
6406
|
{
|
|
6407
|
-
var
|
|
6407
|
+
var et = (Qe) => {
|
|
6408
6408
|
var tt = root_1$3();
|
|
6409
6409
|
const rt = /* @__PURE__ */ derived(() => twMerge("pointer-events-none absolute left-4 right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus-visible:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs", !!Fe() && "-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs"));
|
|
6410
6410
|
var nt = child(tt, !0);
|
|
6411
6411
|
reset(tt), template_effect(() => {
|
|
6412
6412
|
set_class(tt, get$1(rt)), set_text(nt, Be());
|
|
6413
|
-
}), append$1(
|
|
6413
|
+
}), append$1(Qe, tt);
|
|
6414
6414
|
};
|
|
6415
|
-
if_block(Ye, (
|
|
6416
|
-
Ge() && et
|
|
6415
|
+
if_block(Ye, (Qe) => {
|
|
6416
|
+
Ge() && Qe(et);
|
|
6417
6417
|
});
|
|
6418
6418
|
}
|
|
6419
6419
|
reset(We), template_effect(() => {
|
|
@@ -6457,7 +6457,7 @@ function Select($e, De) {
|
|
|
6457
6457
|
}), reset(Xe);
|
|
6458
6458
|
var Ye = sibling(Xe, 2);
|
|
6459
6459
|
{
|
|
6460
|
-
var
|
|
6460
|
+
var et = (tt) => {
|
|
6461
6461
|
var rt = root_2$2();
|
|
6462
6462
|
const nt = /* @__PURE__ */ derived(() => twMerge("pointer-events-none absolute left-4 right-4 top-1/2 line-clamp-1 -translate-y-1/2 text-base font-medium text-gray-400 transition-[transform,font-size] peer-focus:-translate-y-[calc(50%+theme(space.3))] peer-focus:text-xs", Fe() !== void 0 && Fe() && "-translate-y-[calc(50%+theme(space.3))] text-xs sm:text-xs"));
|
|
6463
6463
|
var at = child(rt, !0);
|
|
@@ -6466,11 +6466,11 @@ function Select($e, De) {
|
|
|
6466
6466
|
}), append$1(tt, rt);
|
|
6467
6467
|
};
|
|
6468
6468
|
if_block(Ye, (tt) => {
|
|
6469
|
-
Ge() && tt(
|
|
6469
|
+
Ge() && tt(et);
|
|
6470
6470
|
});
|
|
6471
6471
|
}
|
|
6472
|
-
var
|
|
6473
|
-
Icon(
|
|
6472
|
+
var Qe = sibling(Ye, 2);
|
|
6473
|
+
Icon(Qe, {
|
|
6474
6474
|
class: "pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-xs text-gray-300 peer-focus-visible:text-gray-400 sm:text-xs",
|
|
6475
6475
|
name: "chevron-down"
|
|
6476
6476
|
}), reset(We), template_effect(() => Je = set_attributes(Xe, Je, {
|
|
@@ -6610,20 +6610,20 @@ function requireSuggestEmail() {
|
|
|
6610
6610
|
const Ke = De.default(Ge.email.toLowerCase()), We = He.default(Ke);
|
|
6611
6611
|
if (!We)
|
|
6612
6612
|
return;
|
|
6613
|
-
const { domains: Xe, domainThreshold: Je, distanceFunction: Ze, secondLevelDomains: Ye, topLevelDomains:
|
|
6614
|
-
if (Ye &&
|
|
6613
|
+
const { domains: Xe, domainThreshold: Je, distanceFunction: Ze, secondLevelDomains: Ye, topLevelDomains: et } = Ge;
|
|
6614
|
+
if (Ye && et && Ye.indexOf(We.secondLevelDomain) !== -1 && et.indexOf(We.topLevelDomain) !== -1)
|
|
6615
6615
|
return;
|
|
6616
|
-
let
|
|
6616
|
+
let Qe = Fe.default({
|
|
6617
6617
|
domain: We.domain,
|
|
6618
6618
|
domains: Xe,
|
|
6619
6619
|
distanceFunction: Ze,
|
|
6620
6620
|
threshold: Je
|
|
6621
6621
|
});
|
|
6622
|
-
if (
|
|
6623
|
-
return
|
|
6622
|
+
if (Qe)
|
|
6623
|
+
return Qe == We.domain ? void 0 : {
|
|
6624
6624
|
address: We.address,
|
|
6625
|
-
domain:
|
|
6626
|
-
full: We.address + "@" +
|
|
6625
|
+
domain: Qe,
|
|
6626
|
+
full: We.address + "@" + Qe
|
|
6627
6627
|
};
|
|
6628
6628
|
const tt = Fe.default({
|
|
6629
6629
|
domain: We.secondLevelDomain,
|
|
@@ -6632,18 +6632,18 @@ function requireSuggestEmail() {
|
|
|
6632
6632
|
threshold: Ge.secondLevelThreshold
|
|
6633
6633
|
}), rt = Fe.default({
|
|
6634
6634
|
domain: We.topLevelDomain,
|
|
6635
|
-
domains:
|
|
6635
|
+
domains: et,
|
|
6636
6636
|
distanceFunction: Ze,
|
|
6637
6637
|
threshold: Ge.topLevelThreshold
|
|
6638
6638
|
});
|
|
6639
6639
|
if (We.domain) {
|
|
6640
|
-
|
|
6640
|
+
Qe = We.domain;
|
|
6641
6641
|
let nt = !1;
|
|
6642
|
-
if (tt && tt != We.secondLevelDomain && (
|
|
6642
|
+
if (tt && tt != We.secondLevelDomain && (Qe = Qe.replace(We.secondLevelDomain, tt), nt = !0), rt && rt != We.topLevelDomain && We.secondLevelDomain !== "" && (Qe = Qe.replace(new RegExp(We.topLevelDomain + "$"), rt), nt = !0), nt)
|
|
6643
6643
|
return {
|
|
6644
6644
|
address: We.address,
|
|
6645
|
-
domain:
|
|
6646
|
-
full: We.address + "@" +
|
|
6645
|
+
domain: Qe,
|
|
6646
|
+
full: We.address + "@" + Qe
|
|
6647
6647
|
};
|
|
6648
6648
|
}
|
|
6649
6649
|
}
|
|
@@ -6910,25 +6910,25 @@ function Accordion($e, De) {
|
|
|
6910
6910
|
var Ge = child(He), Ke = child(Ge);
|
|
6911
6911
|
slot(Ke, De, "default", {}, null), reset(Ge), reset(He), template_effect(() => set_class(He, get$1(Be))), append$1($e, He), pop$1();
|
|
6912
6912
|
}
|
|
6913
|
-
var root_4$1 = /* @__PURE__ */ template('<!> <div> <span class="text-primary"> </span>?</div>', 1), root_3$1 = /* @__PURE__ */ template('<!> <div class="text-center whitespace-nowrap"> </div>', 1),
|
|
6913
|
+
var root_4$1 = /* @__PURE__ */ template('<!> <div> <span class="text-primary"> </span>?</div>', 1), root_3$1 = /* @__PURE__ */ template('<!> <div class="text-center whitespace-nowrap"> </div>', 1), root_6$1 = /* @__PURE__ */ template("<!> <!>", 1), root_1$1 = /* @__PURE__ */ template("<!> <!> <!> <!> <!>", 1), root_11 = /* @__PURE__ */ template('<div class="gap-1 hidden @xl:row-left"><!> <!> <!></div>'), root_9$1 = /* @__PURE__ */ template("<!> <!>", 1), root$4 = /* @__PURE__ */ template('<form class="contents"><!> <div class="grid grid-cols-2 w-full gap-2 auto-rows-fr"></div> <!></form> <!>', 1);
|
|
6914
6914
|
function PayNowForm($e, De) {
|
|
6915
6915
|
push$6(De, !0);
|
|
6916
6916
|
const Fe = "https://checkout3.sesamy.com", He = getCountriesOptions(De.checkout.language);
|
|
6917
|
-
let Be = state(""), Ge = state(""), Ke = state(""), We = state(""), Xe = state(proxy(De.checkout.country || "SE")), Je = state(!1), Ze = state(void 0), Ye = state(void 0),
|
|
6917
|
+
let Be = state(""), Ge = state(""), Ke = state(""), We = state(""), Xe = state(proxy(De.checkout.country || "SE")), Je = state(!1), Ze = state(void 0), Ye = state(void 0), et = state(""), Qe;
|
|
6918
6918
|
const tt = () => {
|
|
6919
|
-
var
|
|
6919
|
+
var pt, yt, $t, vt, Rt, xt, Nt, ut, dt, _t, Ot, At, kt, St, Tt, Lt, Pt, Mt;
|
|
6920
6920
|
const bt = [];
|
|
6921
|
-
isValidEmail(get$1(Be)) || bt.push(["email", "invalid_email"]), ($t = (yt = (
|
|
6921
|
+
isValidEmail(get$1(Be)) || bt.push(["email", "invalid_email"]), ($t = (yt = (pt = De.checkout) == null ? void 0 : pt.fieldSettings) == null ? void 0 : yt.phone) != null && $t.enabled && ((xt = (Rt = (vt = De.checkout) == null ? void 0 : vt.fieldSettings) == null ? void 0 : Rt.phone) != null && xt.required) && !get$1(We) && bt.push(["phoneNumber", "phone_number_required"]), (dt = (ut = (Nt = De.checkout) == null ? void 0 : Nt.fieldSettings) == null ? void 0 : ut.name) != null && dt.enabled && ((At = (Ot = (_t = De.checkout) == null ? void 0 : _t.fieldSettings) == null ? void 0 : Ot.name) != null && At.required) && !get$1(Ge) && bt.push(["firstName", "first_name_required"]), (Tt = (St = (kt = De.checkout) == null ? void 0 : kt.fieldSettings) == null ? void 0 : St.name) != null && Tt.enabled && ((Mt = (Pt = (Lt = De.checkout) == null ? void 0 : Lt.fieldSettings) == null ? void 0 : Pt.name) != null && Mt.required) && !get$1(Ke) && bt.push(["lastName", "last_name_required"]), set$2(Ze, proxy(bt.length ? bt.reduce((Bt, [zt, Vt]) => ({ ...Bt, [zt]: Vt }), {}) : void 0));
|
|
6922
6922
|
}, rt = (bt) => set$2(Ye, proxy(bt)), nt = () => {
|
|
6923
|
-
set$2(Ze, void 0), clearTimeout(
|
|
6923
|
+
set$2(Ze, void 0), clearTimeout(Qe), Qe = setTimeout(
|
|
6924
6924
|
() => {
|
|
6925
6925
|
var bt;
|
|
6926
|
-
set$2(
|
|
6926
|
+
set$2(et, proxy(((bt = emailSpellChecker.run({ email: get$1(Be) })) == null ? void 0 : bt.full) || ""));
|
|
6927
6927
|
},
|
|
6928
6928
|
400
|
|
6929
6929
|
);
|
|
6930
6930
|
}, at = async (bt) => {
|
|
6931
|
-
var
|
|
6931
|
+
var pt;
|
|
6932
6932
|
if (bt.preventDefault(), tt(), !get$1(Ze) && get$1(Ye)) {
|
|
6933
6933
|
set$2(Je, !0);
|
|
6934
6934
|
try {
|
|
@@ -6946,15 +6946,15 @@ function PayNowForm($e, De) {
|
|
|
6946
6946
|
$t.pathname = De.checkout.id, $t.searchParams.set("norecreate", "true"), $t.searchParams.set("lang", De.checkout.language), $t.searchParams.set("redirect-url", De.checkout.redirectUrl), $t.searchParams.set("payment-method", get$1(Ye).method), window.location.href = $t.href;
|
|
6947
6947
|
return;
|
|
6948
6948
|
} catch (yt) {
|
|
6949
|
-
(
|
|
6949
|
+
(pt = yt == null ? void 0 : yt.message) != null && pt.includes("User already owns item") ? set$2(Ze, proxy({ general: "user_already_owns_item" })) : (console.error(yt), set$2(Ze, proxy({ general: "something_went_wrong" }))), set$2(Je, !1);
|
|
6950
6950
|
return;
|
|
6951
6951
|
}
|
|
6952
6952
|
}
|
|
6953
6953
|
}, st = De.checkout.availablePaymentMethods.filter(({ provider: bt }) => !["DUMMY", "SESAMY", "BILLOGRAM"].includes(bt)).reduce(
|
|
6954
|
-
(bt, { provider:
|
|
6954
|
+
(bt, { provider: pt, methods: yt }) => [
|
|
6955
6955
|
...bt,
|
|
6956
6956
|
...yt != null && yt.length ? yt.map(($t) => ({
|
|
6957
|
-
provider:
|
|
6957
|
+
provider: pt,
|
|
6958
6958
|
method: $t,
|
|
6959
6959
|
icon: $t.toLocaleLowerCase()
|
|
6960
6960
|
})) : []
|
|
@@ -6972,10 +6972,10 @@ function PayNowForm($e, De) {
|
|
|
6972
6972
|
}), st.length && rt(st[0]);
|
|
6973
6973
|
var ct = root$4(), ot = first_child(ct), lt = child(ot);
|
|
6974
6974
|
InputGroup(lt, {
|
|
6975
|
-
children: (bt,
|
|
6976
|
-
var yt = root_1$1(), $t = first_child(yt), vt = /* @__PURE__ */ derived(() => De.t("email")),
|
|
6977
|
-
var
|
|
6978
|
-
return (
|
|
6975
|
+
children: (bt, pt) => {
|
|
6976
|
+
var yt = root_1$1(), $t = first_child(yt), vt = /* @__PURE__ */ derived(() => De.t("email")), Rt = /* @__PURE__ */ derived(() => {
|
|
6977
|
+
var St;
|
|
6978
|
+
return (St = get$1(Ze)) == null ? void 0 : St.email;
|
|
6979
6979
|
});
|
|
6980
6980
|
Input($t, {
|
|
6981
6981
|
onkeyup: nt,
|
|
@@ -6984,178 +6984,169 @@ function PayNowForm($e, De) {
|
|
|
6984
6984
|
return get$1(vt);
|
|
6985
6985
|
},
|
|
6986
6986
|
get hasError() {
|
|
6987
|
-
return get$1(
|
|
6987
|
+
return get$1(Rt);
|
|
6988
6988
|
},
|
|
6989
6989
|
get value() {
|
|
6990
6990
|
return get$1(Be);
|
|
6991
6991
|
},
|
|
6992
|
-
set value(
|
|
6993
|
-
set$2(Be, proxy(
|
|
6992
|
+
set value(St) {
|
|
6993
|
+
set$2(Be, proxy(St));
|
|
6994
6994
|
}
|
|
6995
6995
|
});
|
|
6996
|
-
var
|
|
6997
|
-
Accordion(
|
|
6996
|
+
var xt = sibling($t, 2), Nt = /* @__PURE__ */ derived(() => !!get$1(et));
|
|
6997
|
+
Accordion(xt, {
|
|
6998
6998
|
get isOpen() {
|
|
6999
6999
|
return get$1(Nt);
|
|
7000
7000
|
},
|
|
7001
|
-
children: (
|
|
7002
|
-
Row(
|
|
7001
|
+
children: (St, Tt) => {
|
|
7002
|
+
Row(St, {
|
|
7003
7003
|
onclick: () => {
|
|
7004
|
-
set$2(Be, proxy(get$1(
|
|
7004
|
+
set$2(Be, proxy(get$1(et))), set$2(et, "");
|
|
7005
7005
|
},
|
|
7006
7006
|
class: "bg-primary/10 gap-4 px-2 py-3 !justify-between active:bg-primary/10 text-sm border-x border-gray-200 text-gray-500 hover:cursor-pointer hover:bg-primary/15 transition-colors duration-75",
|
|
7007
|
-
children: (
|
|
7008
|
-
var
|
|
7009
|
-
Row(
|
|
7007
|
+
children: (Lt, Pt) => {
|
|
7008
|
+
var Mt = root_3$1(), Bt = first_child(Mt);
|
|
7009
|
+
Row(Bt, {
|
|
7010
7010
|
class: "gap-2",
|
|
7011
|
-
children: (
|
|
7012
|
-
var
|
|
7013
|
-
Icon(
|
|
7014
|
-
var
|
|
7015
|
-
template_effect(() => set_text(
|
|
7016
|
-
var
|
|
7017
|
-
reset(
|
|
7011
|
+
children: (ht, Et) => {
|
|
7012
|
+
var Ct = root_4$1(), jt = first_child(Ct);
|
|
7013
|
+
Icon(jt, { class: "text-primary text-xl", name: "info" });
|
|
7014
|
+
var Ft = sibling(jt, 2), Ut = child(Ft);
|
|
7015
|
+
template_effect(() => set_text(Ut, `${De.t("did_you_mean") ?? ""} `));
|
|
7016
|
+
var Ht = sibling(Ut), qt = child(Ht, !0);
|
|
7017
|
+
reset(Ht), next(), reset(Ft), template_effect(() => set_text(qt, get$1(et))), append$1(ht, Ct);
|
|
7018
7018
|
},
|
|
7019
7019
|
$$slots: { default: !0 }
|
|
7020
7020
|
});
|
|
7021
|
-
var
|
|
7022
|
-
template_effect(() => set_text(
|
|
7021
|
+
var zt = sibling(Bt, 2), Vt = child(zt, !0);
|
|
7022
|
+
template_effect(() => set_text(Vt, De.t("click_to_update"))), reset(zt), append$1(Lt, Mt);
|
|
7023
7023
|
},
|
|
7024
7024
|
$$slots: { default: !0 }
|
|
7025
7025
|
});
|
|
7026
7026
|
},
|
|
7027
7027
|
$$slots: { default: !0 }
|
|
7028
7028
|
});
|
|
7029
|
-
var ut = sibling(
|
|
7029
|
+
var ut = sibling(xt, 2), dt = /* @__PURE__ */ derived(() => De.t("country"));
|
|
7030
7030
|
Select(ut, {
|
|
7031
7031
|
options: He,
|
|
7032
7032
|
compact: !0,
|
|
7033
7033
|
get placeholder() {
|
|
7034
|
-
return get$1(
|
|
7034
|
+
return get$1(dt);
|
|
7035
7035
|
},
|
|
7036
7036
|
get value() {
|
|
7037
7037
|
return get$1(Xe);
|
|
7038
7038
|
},
|
|
7039
|
-
set value(
|
|
7040
|
-
set$2(Xe, proxy(
|
|
7039
|
+
set value(St) {
|
|
7040
|
+
set$2(Xe, proxy(St));
|
|
7041
7041
|
}
|
|
7042
7042
|
});
|
|
7043
7043
|
var _t = sibling(ut, 2);
|
|
7044
7044
|
{
|
|
7045
|
-
var
|
|
7046
|
-
var Tt = /* @__PURE__ */ derived(() => De.t("phone_number")),
|
|
7047
|
-
var
|
|
7048
|
-
return (
|
|
7045
|
+
var Ot = (St) => {
|
|
7046
|
+
var Tt = /* @__PURE__ */ derived(() => De.t("phone_number")), Lt = /* @__PURE__ */ derived(() => {
|
|
7047
|
+
var Pt;
|
|
7048
|
+
return (Pt = get$1(Ze)) == null ? void 0 : Pt.phoneNumber;
|
|
7049
7049
|
});
|
|
7050
|
-
Input(
|
|
7050
|
+
Input(St, {
|
|
7051
7051
|
onkeyup: () => set$2(Ze, void 0),
|
|
7052
7052
|
compact: !0,
|
|
7053
7053
|
get placeholder() {
|
|
7054
7054
|
return get$1(Tt);
|
|
7055
7055
|
},
|
|
7056
7056
|
get hasError() {
|
|
7057
|
-
return get$1(
|
|
7057
|
+
return get$1(Lt);
|
|
7058
7058
|
},
|
|
7059
7059
|
get value() {
|
|
7060
7060
|
return get$1(We);
|
|
7061
7061
|
},
|
|
7062
|
-
set value(
|
|
7063
|
-
set$2(We, proxy(
|
|
7062
|
+
set value(Pt) {
|
|
7063
|
+
set$2(We, proxy(Pt));
|
|
7064
7064
|
}
|
|
7065
7065
|
});
|
|
7066
7066
|
};
|
|
7067
|
-
if_block(_t, (
|
|
7068
|
-
var Tt,
|
|
7069
|
-
(
|
|
7067
|
+
if_block(_t, (St) => {
|
|
7068
|
+
var Tt, Lt, Pt;
|
|
7069
|
+
(Pt = (Lt = (Tt = De.checkout) == null ? void 0 : Tt.fieldSettings) == null ? void 0 : Lt.phone) != null && Pt.enabled && St(Ot);
|
|
7070
7070
|
});
|
|
7071
7071
|
}
|
|
7072
|
-
var
|
|
7072
|
+
var At = sibling(_t, 2);
|
|
7073
7073
|
{
|
|
7074
|
-
var
|
|
7075
|
-
var Tt = /* @__PURE__ */ derived(() => De.t("first_name")),
|
|
7076
|
-
var
|
|
7077
|
-
return (
|
|
7074
|
+
var kt = (St) => {
|
|
7075
|
+
var Tt = root_6$1(), Lt = first_child(Tt), Pt = /* @__PURE__ */ derived(() => De.t("first_name")), Mt = /* @__PURE__ */ derived(() => {
|
|
7076
|
+
var ht;
|
|
7077
|
+
return (ht = get$1(Ze)) == null ? void 0 : ht.firstName;
|
|
7078
7078
|
});
|
|
7079
|
-
Input(
|
|
7079
|
+
Input(Lt, {
|
|
7080
7080
|
onkeyup: () => set$2(Ze, void 0),
|
|
7081
7081
|
compact: !0,
|
|
7082
7082
|
get placeholder() {
|
|
7083
|
-
return get$1(
|
|
7083
|
+
return get$1(Pt);
|
|
7084
7084
|
},
|
|
7085
7085
|
get hasError() {
|
|
7086
|
-
return get$1(
|
|
7086
|
+
return get$1(Mt);
|
|
7087
7087
|
},
|
|
7088
7088
|
get value() {
|
|
7089
7089
|
return get$1(Ge);
|
|
7090
7090
|
},
|
|
7091
|
-
set value(
|
|
7092
|
-
set$2(Ge, proxy(
|
|
7091
|
+
set value(ht) {
|
|
7092
|
+
set$2(Ge, proxy(ht));
|
|
7093
7093
|
}
|
|
7094
7094
|
});
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
(Mt = (jt = (Tt = De.checkout) == null ? void 0 : Tt.settings) == null ? void 0 : jt.name) != null && Mt.enabled && At(Lt);
|
|
7099
|
-
});
|
|
7100
|
-
}
|
|
7101
|
-
var xt = sibling(Rt, 2);
|
|
7102
|
-
{
|
|
7103
|
-
var Ot = (At) => {
|
|
7104
|
-
var Tt = /* @__PURE__ */ derived(() => De.t("last_name")), jt = /* @__PURE__ */ derived(() => {
|
|
7105
|
-
var Mt;
|
|
7106
|
-
return (Mt = get$1(Ze)) == null ? void 0 : Mt.lastName;
|
|
7095
|
+
var Bt = sibling(Lt, 2), zt = /* @__PURE__ */ derived(() => De.t("last_name")), Vt = /* @__PURE__ */ derived(() => {
|
|
7096
|
+
var ht;
|
|
7097
|
+
return (ht = get$1(Ze)) == null ? void 0 : ht.lastName;
|
|
7107
7098
|
});
|
|
7108
|
-
Input(
|
|
7099
|
+
Input(Bt, {
|
|
7109
7100
|
onkeyup: () => set$2(Ze, void 0),
|
|
7110
7101
|
compact: !0,
|
|
7111
7102
|
get placeholder() {
|
|
7112
|
-
return get$1(
|
|
7103
|
+
return get$1(zt);
|
|
7113
7104
|
},
|
|
7114
7105
|
get hasError() {
|
|
7115
|
-
return get$1(
|
|
7106
|
+
return get$1(Vt);
|
|
7116
7107
|
},
|
|
7117
7108
|
get value() {
|
|
7118
7109
|
return get$1(Ke);
|
|
7119
7110
|
},
|
|
7120
|
-
set value(
|
|
7121
|
-
set$2(Ke, proxy(
|
|
7111
|
+
set value(ht) {
|
|
7112
|
+
set$2(Ke, proxy(ht));
|
|
7122
7113
|
}
|
|
7123
|
-
});
|
|
7114
|
+
}), append$1(St, Tt);
|
|
7124
7115
|
};
|
|
7125
|
-
if_block(
|
|
7126
|
-
var Tt,
|
|
7127
|
-
(
|
|
7116
|
+
if_block(At, (St) => {
|
|
7117
|
+
var Tt, Lt, Pt;
|
|
7118
|
+
(Pt = (Lt = (Tt = De.checkout) == null ? void 0 : Tt.fieldSettings) == null ? void 0 : Lt.name) != null && Pt.enabled && St(kt);
|
|
7128
7119
|
});
|
|
7129
7120
|
}
|
|
7130
7121
|
append$1(bt, yt);
|
|
7131
7122
|
},
|
|
7132
7123
|
$$slots: { default: !0 }
|
|
7133
7124
|
});
|
|
7134
|
-
var
|
|
7135
|
-
each(
|
|
7125
|
+
var ft = sibling(lt, 2);
|
|
7126
|
+
each(ft, 23, () => st, (bt) => `${bt.provider}-${bt.method}`, (bt, pt, yt) => {
|
|
7136
7127
|
const $t = /* @__PURE__ */ derived(() => {
|
|
7137
|
-
const { provider: vt, method:
|
|
7138
|
-
return { provider: vt, method:
|
|
7128
|
+
const { provider: vt, method: Rt, icon: xt } = get$1(pt);
|
|
7129
|
+
return { provider: vt, method: Rt, icon: xt };
|
|
7139
7130
|
});
|
|
7140
7131
|
SelectionGroup(bt, {
|
|
7141
|
-
children: (vt,
|
|
7142
|
-
var
|
|
7132
|
+
children: (vt, Rt) => {
|
|
7133
|
+
var xt = /* @__PURE__ */ derived(() => !get$1(yt)), Nt = /* @__PURE__ */ derived(() => `${get$1($t).provider}-${get$1($t).method}`);
|
|
7143
7134
|
Selection(vt, {
|
|
7144
7135
|
get checked() {
|
|
7145
|
-
return get$1(
|
|
7136
|
+
return get$1(xt);
|
|
7146
7137
|
},
|
|
7147
7138
|
get id() {
|
|
7148
7139
|
return get$1(Nt);
|
|
7149
7140
|
},
|
|
7150
7141
|
name: "payment-method",
|
|
7151
|
-
onchange: () => rt(get$1(
|
|
7152
|
-
children: (ut,
|
|
7153
|
-
var _t =
|
|
7154
|
-
Row(
|
|
7142
|
+
onchange: () => rt(get$1(pt)),
|
|
7143
|
+
children: (ut, dt) => {
|
|
7144
|
+
var _t = root_9$1(), Ot = first_child(_t);
|
|
7145
|
+
Row(Ot, {
|
|
7155
7146
|
class: "w-16",
|
|
7156
7147
|
left: !0,
|
|
7157
|
-
children: (
|
|
7158
|
-
Icon(
|
|
7148
|
+
children: (St, Tt) => {
|
|
7149
|
+
Icon(St, {
|
|
7159
7150
|
class: "text-3xl",
|
|
7160
7151
|
multiColor: !0,
|
|
7161
7152
|
get name() {
|
|
@@ -7165,18 +7156,18 @@ function PayNowForm($e, De) {
|
|
|
7165
7156
|
},
|
|
7166
7157
|
$$slots: { default: !0 }
|
|
7167
7158
|
});
|
|
7168
|
-
var
|
|
7159
|
+
var At = sibling(Ot, 2);
|
|
7169
7160
|
{
|
|
7170
|
-
var
|
|
7171
|
-
var
|
|
7172
|
-
PaymentMethod(
|
|
7173
|
-
var
|
|
7174
|
-
PaymentMethod(
|
|
7175
|
-
var
|
|
7176
|
-
PaymentMethod(
|
|
7161
|
+
var kt = (St) => {
|
|
7162
|
+
var Tt = root_11(), Lt = child(Tt);
|
|
7163
|
+
PaymentMethod(Lt, { size: "sm", name: "visa" });
|
|
7164
|
+
var Pt = sibling(Lt, 2);
|
|
7165
|
+
PaymentMethod(Pt, { size: "sm", name: "amex" });
|
|
7166
|
+
var Mt = sibling(Pt, 2);
|
|
7167
|
+
PaymentMethod(Mt, { size: "sm", name: "mastercard" }), reset(Tt), append$1(St, Tt);
|
|
7177
7168
|
};
|
|
7178
|
-
if_block(
|
|
7179
|
-
get$1($t).method && ["CARD", "GOOGLE-PAY", "APPLE-PAY"].includes(get$1($t).method) &&
|
|
7169
|
+
if_block(At, (St) => {
|
|
7170
|
+
get$1($t).method && ["CARD", "GOOGLE-PAY", "APPLE-PAY"].includes(get$1($t).method) && St(kt);
|
|
7180
7171
|
});
|
|
7181
7172
|
}
|
|
7182
7173
|
append$1(ut, _t);
|
|
@@ -7186,8 +7177,8 @@ function PayNowForm($e, De) {
|
|
|
7186
7177
|
},
|
|
7187
7178
|
$$slots: { default: !0 }
|
|
7188
7179
|
});
|
|
7189
|
-
}), reset(
|
|
7190
|
-
var gt = sibling(
|
|
7180
|
+
}), reset(ft);
|
|
7181
|
+
var gt = sibling(ft, 2);
|
|
7191
7182
|
Button_wc(gt, {
|
|
7192
7183
|
get loading() {
|
|
7193
7184
|
return get$1(Je);
|
|
@@ -7197,7 +7188,7 @@ function PayNowForm($e, De) {
|
|
|
7197
7188
|
},
|
|
7198
7189
|
class: "mt-2 w-full shadow-md",
|
|
7199
7190
|
type: "submit",
|
|
7200
|
-
children: (bt,
|
|
7191
|
+
children: (bt, pt) => {
|
|
7201
7192
|
next();
|
|
7202
7193
|
var yt = text();
|
|
7203
7194
|
template_effect(() => set_text(yt, De.t("pay_now"))), append$1(bt, yt);
|
|
@@ -7206,25 +7197,25 @@ function PayNowForm($e, De) {
|
|
|
7206
7197
|
}), reset(ot);
|
|
7207
7198
|
var wt = sibling(ot, 2);
|
|
7208
7199
|
{
|
|
7209
|
-
var
|
|
7200
|
+
var It = (bt) => {
|
|
7210
7201
|
Column(bt, {
|
|
7211
7202
|
left: !0,
|
|
7212
|
-
children: (
|
|
7203
|
+
children: (pt, yt) => {
|
|
7213
7204
|
var $t = comment(), vt = first_child($t);
|
|
7214
|
-
each(vt, 17, () => Object.values(get$1(Ze)), index, (
|
|
7215
|
-
var Nt = /* @__PURE__ */ derived(() => De.t(get$1(
|
|
7216
|
-
Error$1(
|
|
7205
|
+
each(vt, 17, () => Object.values(get$1(Ze)), index, (Rt, xt) => {
|
|
7206
|
+
var Nt = /* @__PURE__ */ derived(() => De.t(get$1(xt)));
|
|
7207
|
+
Error$1(Rt, {
|
|
7217
7208
|
get text() {
|
|
7218
7209
|
return get$1(Nt);
|
|
7219
7210
|
}
|
|
7220
7211
|
});
|
|
7221
|
-
}), append$1(
|
|
7212
|
+
}), append$1(pt, $t);
|
|
7222
7213
|
},
|
|
7223
7214
|
$$slots: { default: !0 }
|
|
7224
7215
|
});
|
|
7225
7216
|
};
|
|
7226
7217
|
if_block(wt, (bt) => {
|
|
7227
|
-
get$1(Ze) && bt(
|
|
7218
|
+
get$1(Ze) && bt(It);
|
|
7228
7219
|
});
|
|
7229
7220
|
}
|
|
7230
7221
|
event("submit", ot, at), append$1($e, ct), pop$1();
|
|
@@ -7243,8 +7234,8 @@ function NotLoggedIn($e, De) {
|
|
|
7243
7234
|
var We = comment(), Xe = first_child(We);
|
|
7244
7235
|
{
|
|
7245
7236
|
var Je = (Ze) => {
|
|
7246
|
-
var Ye = comment(),
|
|
7247
|
-
snippet(
|
|
7237
|
+
var Ye = comment(), et = first_child(Ye);
|
|
7238
|
+
snippet(et, () => De.children), append$1(Ze, Ye);
|
|
7248
7239
|
};
|
|
7249
7240
|
if_block(Xe, (Ze) => {
|
|
7250
7241
|
get$1(Ke) || Ze(Je);
|
|
@@ -7270,8 +7261,8 @@ function Renderer($e, De) {
|
|
|
7270
7261
|
subscriptions: Je,
|
|
7271
7262
|
singlePurchase: Ze,
|
|
7272
7263
|
headline: Ye,
|
|
7273
|
-
currency:
|
|
7274
|
-
mainColor:
|
|
7264
|
+
currency: et,
|
|
7265
|
+
mainColor: Qe,
|
|
7275
7266
|
showLoginButton: tt,
|
|
7276
7267
|
features: rt,
|
|
7277
7268
|
footerPaymentMethods: nt,
|
|
@@ -7279,22 +7270,22 @@ function Renderer($e, De) {
|
|
|
7279
7270
|
vendorId: st,
|
|
7280
7271
|
settings: { useDefaultLogo: ct, styling: ot }
|
|
7281
7272
|
} = De.paywall;
|
|
7282
|
-
const lt = async (
|
|
7273
|
+
const lt = async (Rt) => {
|
|
7283
7274
|
var Nt;
|
|
7284
|
-
if (set$2(We, ""),
|
|
7275
|
+
if (set$2(We, ""), Rt.preventDefault(), !get$1(Be)) return;
|
|
7285
7276
|
set$2(Ke, !0);
|
|
7286
|
-
const
|
|
7277
|
+
const xt = (Nt = get$1(Be)) != null && Nt.url ? { url: get$1(Be).url } : {
|
|
7287
7278
|
sku: get$1(Be).sku,
|
|
7288
7279
|
purchaseOptionId: get$1(Be).poId
|
|
7289
7280
|
};
|
|
7290
7281
|
try {
|
|
7291
7282
|
set$2(Ge, proxy(await De.api.checkouts.create({
|
|
7292
7283
|
vendorId: st,
|
|
7293
|
-
items: [
|
|
7284
|
+
items: [xt],
|
|
7294
7285
|
discountCode: get$1(Be).discountCode,
|
|
7295
7286
|
redirectUrl: Xe,
|
|
7296
7287
|
price: get$1(Be).price,
|
|
7297
|
-
currency:
|
|
7288
|
+
currency: et,
|
|
7298
7289
|
attribution: {
|
|
7299
7290
|
utmSource: He == null ? void 0 : He["utm-source"],
|
|
7300
7291
|
utmMedium: He == null ? void 0 : He["utm-medium"],
|
|
@@ -7309,45 +7300,45 @@ function Renderer($e, De) {
|
|
|
7309
7300
|
console.error(ut), set$2(We, proxy(De.t("something_went_wrong"))), set$2(Ke, !1);
|
|
7310
7301
|
return;
|
|
7311
7302
|
}
|
|
7312
|
-
},
|
|
7303
|
+
}, ft = (Rt) => {
|
|
7313
7304
|
set$2(We, ""), set$2(Be, proxy({
|
|
7314
|
-
...
|
|
7315
|
-
features: (
|
|
7305
|
+
...Rt,
|
|
7306
|
+
features: (Rt == null ? void 0 : Rt.features) || rt
|
|
7316
7307
|
}));
|
|
7317
7308
|
}, mt = Je.length > 0;
|
|
7318
7309
|
if (mt) {
|
|
7319
|
-
const
|
|
7320
|
-
|
|
7310
|
+
const Rt = Je.find(({ selected: xt }) => xt);
|
|
7311
|
+
Rt ? ft(Rt) : (Je[0].selected = !0, ft(Je[0]));
|
|
7321
7312
|
}
|
|
7322
7313
|
const gt = hexToHsl((ot == null ? void 0 : ot.backgroundColor) || "#FFFFFF");
|
|
7323
|
-
let
|
|
7314
|
+
let It = "<style>" + `
|
|
7324
7315
|
:host * {
|
|
7325
7316
|
--s-paywall-bg-start-color: var(--sesamy-paywall-bg-start-color, ${gt[0]},${gt[1]}%,${gt[2]}%);
|
|
7326
7317
|
--s-paywall-bg-end-color: var(--sesamy-paywall-bg-end-color, ${gt[0]},${gt[1]}%,${gt[2] + (100 - gt[2]) * 0.5}%);
|
|
7327
|
-
--s-primary-color: var(--sesamy-paywall-primary-color, ${hslArrayToCSS(hexToHsl(
|
|
7318
|
+
--s-primary-color: var(--sesamy-paywall-primary-color, ${hslArrayToCSS(hexToHsl(Qe))}) !important;
|
|
7328
7319
|
}
|
|
7329
7320
|
` + "</style>";
|
|
7330
|
-
var bt = root$3(),
|
|
7321
|
+
var bt = root$3(), pt = first_child(bt), yt = child(pt), $t = /* @__PURE__ */ derived(() => twMerge("w-full py-4 @md:py-6 rounded-lg @xl:rounded-3xl", (ot == null ? void 0 : ot.showBackground) && "bg-gradient-to-b from-[hsl(var(--s-paywall-bg-start-color))] to-[hsl(var(--s-paywall-bg-end-color))]", (ot == null ? void 0 : ot.showBackground) && (ot == null ? void 0 : ot.dropShadow) && "shadow-md @xl:shadow-lg"));
|
|
7331
7322
|
Column(yt, {
|
|
7332
7323
|
get class() {
|
|
7333
7324
|
return get$1($t);
|
|
7334
7325
|
},
|
|
7335
|
-
children: (
|
|
7326
|
+
children: (Rt, xt) => {
|
|
7336
7327
|
var Nt = /* @__PURE__ */ derived(() => twMerge("gap-2 @md:gap-4 pt-0 w-full", (ot == null ? void 0 : ot.showBackground) && "px-2 pb-6 @xs:px-8 @md:pb-8 @3xl:px-16", Fe() && (ot == null ? void 0 : ot.showBackground) && "px-6 pb-4", !Fe() && "max-w-[800px]"));
|
|
7337
|
-
Column(
|
|
7328
|
+
Column(Rt, {
|
|
7338
7329
|
get class() {
|
|
7339
7330
|
return get$1(Nt);
|
|
7340
7331
|
},
|
|
7341
7332
|
up: !0,
|
|
7342
7333
|
left: !0,
|
|
7343
|
-
children: (ut,
|
|
7344
|
-
var _t = root_2$1(),
|
|
7345
|
-
NotLoggedIn(
|
|
7334
|
+
children: (ut, dt) => {
|
|
7335
|
+
var _t = root_2$1(), Ot = first_child(_t);
|
|
7336
|
+
NotLoggedIn(Ot, {
|
|
7346
7337
|
get api() {
|
|
7347
7338
|
return De.api;
|
|
7348
7339
|
},
|
|
7349
|
-
children: (Ut,
|
|
7350
|
-
var qt = comment(),
|
|
7340
|
+
children: (Ut, Ht) => {
|
|
7341
|
+
var qt = comment(), Gt = first_child(qt);
|
|
7351
7342
|
{
|
|
7352
7343
|
var Kt = (Jt) => {
|
|
7353
7344
|
var er = root_4(), or = first_child(er);
|
|
@@ -7362,7 +7353,7 @@ function Renderer($e, De) {
|
|
|
7362
7353
|
$$slots: { default: !0 }
|
|
7363
7354
|
}), next(2), append$1(Jt, er);
|
|
7364
7355
|
};
|
|
7365
|
-
if_block(
|
|
7356
|
+
if_block(Gt, (Jt) => {
|
|
7366
7357
|
tt && !Fe() && Jt(Kt);
|
|
7367
7358
|
});
|
|
7368
7359
|
}
|
|
@@ -7370,23 +7361,23 @@ function Renderer($e, De) {
|
|
|
7370
7361
|
},
|
|
7371
7362
|
$$slots: { default: !0 }
|
|
7372
7363
|
});
|
|
7373
|
-
var
|
|
7374
|
-
const
|
|
7375
|
-
var
|
|
7364
|
+
var At = sibling(Ot, 2);
|
|
7365
|
+
const kt = /* @__PURE__ */ derived(() => twMerge("w-full pt-2 @md:pt-4", Fe() && "column text-center mb-6"));
|
|
7366
|
+
var St = child(At);
|
|
7376
7367
|
{
|
|
7377
|
-
var
|
|
7378
|
-
var
|
|
7379
|
-
set_attribute(
|
|
7368
|
+
var Tt = (Ut) => {
|
|
7369
|
+
var Ht = root_6();
|
|
7370
|
+
set_attribute(Ht, "src", at), template_effect(() => set_attribute(Ht, "alt", `${De.t("logo_of")} ${st}`)), append$1(Ut, Ht);
|
|
7380
7371
|
};
|
|
7381
|
-
if_block(
|
|
7382
|
-
ct && Ut(
|
|
7372
|
+
if_block(St, (Ut) => {
|
|
7373
|
+
ct && Ut(Tt);
|
|
7383
7374
|
});
|
|
7384
7375
|
}
|
|
7385
|
-
var
|
|
7386
|
-
|
|
7387
|
-
var
|
|
7376
|
+
var Lt = sibling(St, 2);
|
|
7377
|
+
Lt.textContent = Ye, reset(At);
|
|
7378
|
+
var Pt = sibling(At, 2);
|
|
7388
7379
|
{
|
|
7389
|
-
var
|
|
7380
|
+
var Mt = (Ut) => {
|
|
7390
7381
|
Features(Ut, {
|
|
7391
7382
|
get features() {
|
|
7392
7383
|
return get$1(Be).features;
|
|
@@ -7394,13 +7385,13 @@ function Renderer($e, De) {
|
|
|
7394
7385
|
class: "font-bold text-black mb-2"
|
|
7395
7386
|
});
|
|
7396
7387
|
};
|
|
7397
|
-
if_block(
|
|
7398
|
-
get$1(Be) && !Fe() && Ut(
|
|
7388
|
+
if_block(Pt, (Ut) => {
|
|
7389
|
+
get$1(Be) && !Fe() && Ut(Mt);
|
|
7399
7390
|
});
|
|
7400
7391
|
}
|
|
7401
|
-
var
|
|
7392
|
+
var Bt = sibling(Pt, 2);
|
|
7402
7393
|
{
|
|
7403
|
-
var
|
|
7394
|
+
var zt = (Ut) => {
|
|
7404
7395
|
PayNowForm(Ut, {
|
|
7405
7396
|
get api() {
|
|
7406
7397
|
return De.api;
|
|
@@ -7412,10 +7403,10 @@ function Renderer($e, De) {
|
|
|
7412
7403
|
return De.t;
|
|
7413
7404
|
}
|
|
7414
7405
|
});
|
|
7415
|
-
},
|
|
7416
|
-
var
|
|
7406
|
+
}, Vt = (Ut) => {
|
|
7407
|
+
var Ht = root_9(), qt = child(Ht);
|
|
7417
7408
|
{
|
|
7418
|
-
var
|
|
7409
|
+
var Gt = (Yt) => {
|
|
7419
7410
|
Subscriptions(Yt, {
|
|
7420
7411
|
get horizontal() {
|
|
7421
7412
|
return Fe();
|
|
@@ -7424,13 +7415,13 @@ function Renderer($e, De) {
|
|
|
7424
7415
|
get t() {
|
|
7425
7416
|
return De.t;
|
|
7426
7417
|
},
|
|
7427
|
-
currency:
|
|
7428
|
-
selectProduct:
|
|
7418
|
+
currency: et,
|
|
7419
|
+
selectProduct: ft,
|
|
7429
7420
|
redirectUrl: Xe
|
|
7430
7421
|
});
|
|
7431
7422
|
};
|
|
7432
7423
|
if_block(qt, (Yt) => {
|
|
7433
|
-
Je.length && Yt(
|
|
7424
|
+
Je.length && Yt(Gt);
|
|
7434
7425
|
});
|
|
7435
7426
|
}
|
|
7436
7427
|
var Kt = sibling(qt, 2);
|
|
@@ -7442,7 +7433,7 @@ function Renderer($e, De) {
|
|
|
7442
7433
|
get t() {
|
|
7443
7434
|
return De.t;
|
|
7444
7435
|
},
|
|
7445
|
-
selectProduct:
|
|
7436
|
+
selectProduct: ft,
|
|
7446
7437
|
hasSubscriptions: mt
|
|
7447
7438
|
},
|
|
7448
7439
|
() => He
|
|
@@ -7476,13 +7467,13 @@ function Renderer($e, De) {
|
|
|
7476
7467
|
Fe() || Yt(or);
|
|
7477
7468
|
});
|
|
7478
7469
|
}
|
|
7479
|
-
reset(
|
|
7470
|
+
reset(Ht), event("submit", Ht, lt), append$1(Ut, Ht);
|
|
7480
7471
|
};
|
|
7481
|
-
if_block(
|
|
7482
|
-
get$1(Ge) ? Ut(
|
|
7472
|
+
if_block(Bt, (Ut) => {
|
|
7473
|
+
get$1(Ge) ? Ut(zt) : Ut(Vt, !1);
|
|
7483
7474
|
});
|
|
7484
7475
|
}
|
|
7485
|
-
var
|
|
7476
|
+
var ht = sibling(Bt, 2);
|
|
7486
7477
|
{
|
|
7487
7478
|
var Et = (Ut) => {
|
|
7488
7479
|
Error$1(Ut, {
|
|
@@ -7491,27 +7482,27 @@ function Renderer($e, De) {
|
|
|
7491
7482
|
}
|
|
7492
7483
|
});
|
|
7493
7484
|
};
|
|
7494
|
-
if_block(
|
|
7485
|
+
if_block(ht, (Ut) => {
|
|
7495
7486
|
get$1(We) && Ut(Et);
|
|
7496
7487
|
});
|
|
7497
7488
|
}
|
|
7498
|
-
var
|
|
7499
|
-
Row(
|
|
7489
|
+
var Ct = sibling(ht, 2), jt = child(Ct);
|
|
7490
|
+
Row(jt, {
|
|
7500
7491
|
class: "gap-2 text-[#5F6D85] text-xs",
|
|
7501
|
-
children: (Ut,
|
|
7502
|
-
var qt = root_15(),
|
|
7503
|
-
Icon(
|
|
7504
|
-
var Kt = sibling(
|
|
7492
|
+
children: (Ut, Ht) => {
|
|
7493
|
+
var qt = root_15(), Gt = first_child(qt);
|
|
7494
|
+
Icon(Gt, { name: "lock" });
|
|
7495
|
+
var Kt = sibling(Gt, 1, !0);
|
|
7505
7496
|
template_effect(() => set_text(Kt, De.t("secure_payment"))), append$1(Ut, qt);
|
|
7506
7497
|
},
|
|
7507
7498
|
$$slots: { default: !0 }
|
|
7508
7499
|
});
|
|
7509
|
-
var
|
|
7510
|
-
Row(
|
|
7500
|
+
var Ft = sibling(jt, 2);
|
|
7501
|
+
Row(Ft, {
|
|
7511
7502
|
class: "gap-2",
|
|
7512
|
-
children: (Ut,
|
|
7513
|
-
var qt = comment(),
|
|
7514
|
-
each(
|
|
7503
|
+
children: (Ut, Ht) => {
|
|
7504
|
+
var qt = comment(), Gt = first_child(qt);
|
|
7505
|
+
each(Gt, 17, () => nt, index, (Kt, Jt) => {
|
|
7515
7506
|
PaymentMethod(Kt, {
|
|
7516
7507
|
get name() {
|
|
7517
7508
|
return get$1(Jt);
|
|
@@ -7520,15 +7511,15 @@ function Renderer($e, De) {
|
|
|
7520
7511
|
}), append$1(Ut, qt);
|
|
7521
7512
|
},
|
|
7522
7513
|
$$slots: { default: !0 }
|
|
7523
|
-
}), reset(
|
|
7514
|
+
}), reset(Ct), template_effect(() => set_class(At, get$1(kt))), append$1(ut, _t);
|
|
7524
7515
|
},
|
|
7525
7516
|
$$slots: { default: !0 }
|
|
7526
7517
|
});
|
|
7527
7518
|
},
|
|
7528
7519
|
$$slots: { default: !0 }
|
|
7529
|
-
}), reset(
|
|
7530
|
-
var vt = sibling(
|
|
7531
|
-
html$3(vt, () =>
|
|
7520
|
+
}), reset(pt);
|
|
7521
|
+
var vt = sibling(pt, 2);
|
|
7522
|
+
html$3(vt, () => It, !1, !1), append$1($e, bt), pop$1();
|
|
7532
7523
|
}
|
|
7533
7524
|
function Paywall_wc($e, De) {
|
|
7534
7525
|
push$6(De, !0);
|
|
@@ -7551,9 +7542,9 @@ function Paywall_wc($e, De) {
|
|
|
7551
7542
|
const We = /* @__PURE__ */ derived(() => Ke.api), Xe = /* @__PURE__ */ derived(() => Ke.t);
|
|
7552
7543
|
var Je = comment(), Ze = first_child(Je);
|
|
7553
7544
|
{
|
|
7554
|
-
var Ye = (
|
|
7555
|
-
var
|
|
7556
|
-
Renderer(
|
|
7545
|
+
var Ye = (et) => {
|
|
7546
|
+
var Qe = /* @__PURE__ */ derived(() => Fe() === "BOXES"), tt = /* @__PURE__ */ derived(() => ({ ...He, template: Fe() }));
|
|
7547
|
+
Renderer(et, spread_props(
|
|
7557
7548
|
{
|
|
7558
7549
|
get api() {
|
|
7559
7550
|
return get$1(We);
|
|
@@ -7562,7 +7553,7 @@ function Paywall_wc($e, De) {
|
|
|
7562
7553
|
return get$1(Be);
|
|
7563
7554
|
},
|
|
7564
7555
|
get horizontal() {
|
|
7565
|
-
return get$1(
|
|
7556
|
+
return get$1(Qe);
|
|
7566
7557
|
},
|
|
7567
7558
|
get t() {
|
|
7568
7559
|
return get$1(Xe);
|
|
@@ -7571,8 +7562,8 @@ function Paywall_wc($e, De) {
|
|
|
7571
7562
|
() => get$1(tt)
|
|
7572
7563
|
));
|
|
7573
7564
|
};
|
|
7574
|
-
if_block(Ze, (
|
|
7575
|
-
get$1(Be) &&
|
|
7565
|
+
if_block(Ze, (et) => {
|
|
7566
|
+
get$1(Be) && et(Ye);
|
|
7576
7567
|
});
|
|
7577
7568
|
}
|
|
7578
7569
|
append$1(Ge, Je);
|
|
@@ -7640,8 +7631,8 @@ function RegistrationWall_wc($e, De) {
|
|
|
7640
7631
|
Ze.__click = [on_click, Fe, Ge];
|
|
7641
7632
|
var Ye = sibling(Ze, 4);
|
|
7642
7633
|
Ye.__click = [on_click_1, Fe, Ge];
|
|
7643
|
-
var
|
|
7644
|
-
GoogleLogo(
|
|
7634
|
+
var et = child(Ye), Qe = child(et);
|
|
7635
|
+
GoogleLogo(Qe, { width: "18", height: "18" }), next(2), reset(et), reset(Ye);
|
|
7645
7636
|
var tt = sibling(Ye, 2);
|
|
7646
7637
|
tt.__click = [on_click_2, Fe, Ge];
|
|
7647
7638
|
var rt = child(tt), nt = child(rt);
|
|
@@ -8078,7 +8069,7 @@ var iteratorsCore = {
|
|
|
8078
8069
|
}, iteratorDefine = function($e, De, Fe, He, Be, Ge, Ke) {
|
|
8079
8070
|
createIteratorConstructor$1(Fe, De, He);
|
|
8080
8071
|
var We = function(at) {
|
|
8081
|
-
if (at === Be &&
|
|
8072
|
+
if (at === Be && et) return et;
|
|
8082
8073
|
if (!BUGGY_SAFARI_ITERATORS && at && at in Ze) return Ze[at];
|
|
8083
8074
|
switch (at) {
|
|
8084
8075
|
case KEYS:
|
|
@@ -8097,18 +8088,18 @@ var iteratorsCore = {
|
|
|
8097
8088
|
return function() {
|
|
8098
8089
|
return new Fe(this);
|
|
8099
8090
|
};
|
|
8100
|
-
}, Xe = De + " Iterator", Je = !1, Ze = $e.prototype, Ye = Ze[ITERATOR$6] || Ze["@@iterator"] || Be && Ze[Be],
|
|
8101
|
-
if (
|
|
8091
|
+
}, Xe = De + " Iterator", Je = !1, Ze = $e.prototype, Ye = Ze[ITERATOR$6] || Ze["@@iterator"] || Be && Ze[Be], et = !BUGGY_SAFARI_ITERATORS && Ye || We(Be), Qe = De === "Array" && Ze.entries || Ye, tt, rt, nt;
|
|
8092
|
+
if (Qe && (tt = getPrototypeOf$1(Qe.call(new $e())), tt !== Object.prototype && tt.next && (getPrototypeOf$1(tt) !== IteratorPrototype && (setPrototypeOf$2 ? setPrototypeOf$2(tt, IteratorPrototype) : isCallable$8(tt[ITERATOR$6]) || defineBuiltIn$9(tt, ITERATOR$6, returnThis)), setToStringTag$4(tt, Xe, !0))), PROPER_FUNCTION_NAME && Be === VALUES && Ye && Ye.name !== VALUES && (CONFIGURABLE_FUNCTION_NAME ? createNonEnumerableProperty$4(Ze, "name", VALUES) : (Je = !0, et = function() {
|
|
8102
8093
|
return call$d(Ye, this);
|
|
8103
8094
|
})), Be)
|
|
8104
8095
|
if (rt = {
|
|
8105
8096
|
values: We(VALUES),
|
|
8106
|
-
keys: Ge ?
|
|
8097
|
+
keys: Ge ? et : We(KEYS),
|
|
8107
8098
|
entries: We(ENTRIES)
|
|
8108
8099
|
}, Ke) for (nt in rt)
|
|
8109
8100
|
(BUGGY_SAFARI_ITERATORS || Je || !(nt in Ze)) && defineBuiltIn$9(Ze, nt, rt[nt]);
|
|
8110
8101
|
else $$l({ target: De, proto: !0, forced: BUGGY_SAFARI_ITERATORS || Je }, rt);
|
|
8111
|
-
return Ze[ITERATOR$6] !==
|
|
8102
|
+
return Ze[ITERATOR$6] !== et && defineBuiltIn$9(Ze, ITERATOR$6, et, { name: Be }), Iterators$3[De] = et, rt;
|
|
8112
8103
|
}, createIterResultObject$3 = function($e, De) {
|
|
8113
8104
|
return { value: $e, done: De };
|
|
8114
8105
|
}, toIndexedObject = toIndexedObject$5, addToUnscopables = addToUnscopables$1, Iterators$2 = iterators, InternalStateModule$4 = internalState, defineProperty$2 = objectDefineProperty.f, defineIterator$1 = iteratorDefine, createIterResultObject$2 = createIterResultObject$3, DESCRIPTORS$8 = descriptors, ARRAY_ITERATOR = "Array Iterator", setInternalState$4 = InternalStateModule$4.set, getInternalState$1 = InternalStateModule$4.getterFor(ARRAY_ITERATOR), es_array_iterator = defineIterator$1(Array, "Array", function($e, De) {
|
|
@@ -8207,8 +8198,8 @@ var toStringTagSupport = String(test) === "[object z]", TO_STRING_TAG_SUPPORT$2
|
|
|
8207
8198
|
Ge !== He++ && ($e[Ge] = Be);
|
|
8208
8199
|
}
|
|
8209
8200
|
else
|
|
8210
|
-
for (var Ke = floor$2(Fe / 2), We = sort(arraySlice$2($e, 0, Ke), De), Xe = sort(arraySlice$2($e, Ke), De), Je = We.length, Ze = Xe.length, Ye = 0,
|
|
8211
|
-
$e[Ye +
|
|
8201
|
+
for (var Ke = floor$2(Fe / 2), We = sort(arraySlice$2($e, 0, Ke), De), Xe = sort(arraySlice$2($e, Ke), De), Je = We.length, Ze = Xe.length, Ye = 0, et = 0; Ye < Je || et < Ze; )
|
|
8202
|
+
$e[Ye + et] = Ye < Je && et < Ze ? De(We[Ye], Xe[et]) <= 0 ? We[Ye++] : Xe[et++] : Ye < Je ? We[Ye++] : Xe[et++];
|
|
8212
8203
|
return $e;
|
|
8213
8204
|
}, arraySort$1 = sort, $$j = _export, globalThis$b = globalThis_1, safeGetBuiltIn$1 = safeGetBuiltIn$2, getBuiltIn$8 = getBuiltIn$c, call$b = functionCall, uncurryThis$9 = functionUncurryThis, DESCRIPTORS$5 = descriptors, USE_NATIVE_URL$3 = urlConstructorDetection, defineBuiltIn$7 = defineBuiltIn$c, defineBuiltInAccessor$3 = defineBuiltInAccessor$4, defineBuiltIns = defineBuiltIns$1, setToStringTag$3 = setToStringTag$6, createIteratorConstructor = iteratorCreateConstructor, InternalStateModule$3 = internalState, anInstance$2 = anInstance$3, isCallable$6 = isCallable$l, hasOwn$2 = hasOwnProperty_1, bind$6 = functionBindContext, classof$3 = classof$6, anObject$5 = anObject$b, isObject$3 = isObject$c, $toString$1 = toString$8, create$1 = objectCreate, createPropertyDescriptor$3 = createPropertyDescriptor$7, getIterator$2 = getIterator$3, getIteratorMethod$2 = getIteratorMethod$4, createIterResultObject$1 = createIterResultObject$3, validateArgumentsLength$6 = validateArgumentsLength$7, wellKnownSymbol$7 = wellKnownSymbol$h, arraySort = arraySort$1, ITERATOR$3 = wellKnownSymbol$7("iterator"), URL_SEARCH_PARAMS = "URLSearchParams", URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + "Iterator", setInternalState$3 = InternalStateModule$3.set, getInternalParamsState = InternalStateModule$3.getterFor(URL_SEARCH_PARAMS), getInternalIteratorState = InternalStateModule$3.getterFor(URL_SEARCH_PARAMS_ITERATOR), nativeFetch = safeGetBuiltIn$1("fetch"), NativeRequest = safeGetBuiltIn$1("Request"), Headers = safeGetBuiltIn$1("Headers"), RequestPrototype = NativeRequest && NativeRequest.prototype, HeadersPrototype = Headers && Headers.prototype, TypeError$3 = globalThis$b.TypeError, encodeURIComponent$1 = globalThis$b.encodeURIComponent, fromCharCode$1 = String.fromCharCode, fromCodePoint = getBuiltIn$8("String", "fromCodePoint"), $parseInt = parseInt, charAt$3 = uncurryThis$9("".charAt), join$2 = uncurryThis$9([].join), push$4 = uncurryThis$9([].push), replace$4 = uncurryThis$9("".replace), shift$1 = uncurryThis$9([].shift), splice = uncurryThis$9([].splice), split$2 = uncurryThis$9("".split), stringSlice$2 = uncurryThis$9("".slice), exec$3 = uncurryThis$9(/./.exec), plus = /\+/g, FALLBACK_REPLACER = "�", VALID_HEX = /^[0-9a-f]+$/i, parseHexOctet = function($e, De) {
|
|
8214
8205
|
var Fe = stringSlice$2($e, De, De + 2);
|
|
@@ -8479,8 +8470,8 @@ params$1 + "" != "a=2" && defineBuiltIn$6(URLSearchParamsPrototype$2, "delete",
|
|
|
8479
8470
|
var De = arguments.length, Fe = De < 2 ? void 0 : arguments[1];
|
|
8480
8471
|
if (De && Fe === void 0) return $delete(this, $e);
|
|
8481
8472
|
var He = [];
|
|
8482
|
-
forEach$1(this, function(Ye,
|
|
8483
|
-
push$3(He, { key:
|
|
8473
|
+
forEach$1(this, function(Ye, et) {
|
|
8474
|
+
push$3(He, { key: et, value: Ye });
|
|
8484
8475
|
}), validateArgumentsLength$5(De, 1);
|
|
8485
8476
|
for (var Be = toString$7($e), Ge = toString$7(Fe), Ke = 0, We = 0, Xe = !1, Je = He.length, Ze; Ke < Je; )
|
|
8486
8477
|
Ze = He[Ke++], Xe || Ze.key === Be ? (Xe = !0, $delete(this, Ze.key)) : We++;
|
|
@@ -8608,13 +8599,13 @@ var isConstructor$2 = !construct || fails$4(function() {
|
|
|
8608
8599
|
}, bind$5 = functionBindContext, call$8 = functionCall, toObject = toObject$4, callWithSafeIterationClosing = callWithSafeIterationClosing$1, isArrayIteratorMethod$1 = isArrayIteratorMethod$2, isConstructor$1 = isConstructor$2, lengthOfArrayLike$1 = lengthOfArrayLike$3, createProperty = createProperty$1, getIterator$1 = getIterator$3, getIteratorMethod$1 = getIteratorMethod$4, $Array = Array, arrayFrom$1 = function($e) {
|
|
8609
8600
|
var De = toObject($e), Fe = isConstructor$1(this), He = arguments.length, Be = He > 1 ? arguments[1] : void 0, Ge = Be !== void 0;
|
|
8610
8601
|
Ge && (Be = bind$5(Be, He > 2 ? arguments[2] : void 0));
|
|
8611
|
-
var Ke = getIteratorMethod$1(De), We = 0, Xe, Je, Ze, Ye,
|
|
8602
|
+
var Ke = getIteratorMethod$1(De), We = 0, Xe, Je, Ze, Ye, et, Qe;
|
|
8612
8603
|
if (Ke && !(this === $Array && isArrayIteratorMethod$1(Ke)))
|
|
8613
|
-
for (Je = Fe ? new this() : [], Ye = getIterator$1(De, Ke),
|
|
8614
|
-
|
|
8604
|
+
for (Je = Fe ? new this() : [], Ye = getIterator$1(De, Ke), et = Ye.next; !(Ze = call$8(et, Ye)).done; We++)
|
|
8605
|
+
Qe = Ge ? callWithSafeIterationClosing(Ye, Be, [Ze.value, We], !0) : Ze.value, createProperty(Je, We, Qe);
|
|
8615
8606
|
else
|
|
8616
8607
|
for (Xe = lengthOfArrayLike$1(De), Je = Fe ? new this(Xe) : $Array(Xe); Xe > We; We++)
|
|
8617
|
-
|
|
8608
|
+
Qe = Ge ? Be(De[We], We) : De[We], createProperty(Je, We, Qe);
|
|
8618
8609
|
return Je.length = We, Je;
|
|
8619
8610
|
}, uncurryThis$2 = functionUncurryThis, maxInt = 2147483647, base = 36, tMin = 1, tMax = 26, skew = 38, damp = 700, initialBias = 72, initialN = 128, delimiter = "-", regexNonASCII = /[^\0-\u007E]/, regexSeparators = /[.\u3002\uFF0E\uFF61]/g, OVERFLOW_ERROR = "Overflow: input needs wider integers to process", baseMinusTMin = base - tMin, $RangeError = RangeError, exec$1 = uncurryThis$2(regexSeparators.exec), floor$1 = Math.floor, fromCharCode = String.fromCharCode, charCodeAt = uncurryThis$2("".charCodeAt), join$1 = uncurryThis$2([].join), push$2 = uncurryThis$2([].push), replace$3 = uncurryThis$2("".replace), split$1 = uncurryThis$2("".split), toLowerCase$1 = uncurryThis$2("".toLowerCase), ucs2decode = function($e) {
|
|
8620
8611
|
for (var De = [], Fe = 0, He = $e.length; Fe < He; ) {
|
|
@@ -8651,13 +8642,13 @@ var isConstructor$2 = !construct || fails$4(function() {
|
|
|
8651
8642
|
if (We = $e[Ke], We < He && ++Be > maxInt)
|
|
8652
8643
|
throw new $RangeError(OVERFLOW_ERROR);
|
|
8653
8644
|
if (We === He) {
|
|
8654
|
-
for (var
|
|
8655
|
-
var tt =
|
|
8656
|
-
if (
|
|
8657
|
-
var rt =
|
|
8658
|
-
push$2(De, fromCharCode(digitToBasic(tt + rt % nt))),
|
|
8645
|
+
for (var et = Be, Qe = base; ; ) {
|
|
8646
|
+
var tt = Qe <= Ge ? tMin : Qe >= Ge + tMax ? tMax : Qe - Ge;
|
|
8647
|
+
if (et < tt) break;
|
|
8648
|
+
var rt = et - tt, nt = base - tt;
|
|
8649
|
+
push$2(De, fromCharCode(digitToBasic(tt + rt % nt))), et = floor$1(rt / nt), Qe += base;
|
|
8659
8650
|
}
|
|
8660
|
-
push$2(De, fromCharCode(digitToBasic(
|
|
8651
|
+
push$2(De, fromCharCode(digitToBasic(et))), Ge = adapt(Be, Ye, Je === Xe), Be = 0, Je++;
|
|
8661
8652
|
}
|
|
8662
8653
|
}
|
|
8663
8654
|
Be++, He++;
|
|
@@ -8689,31 +8680,31 @@ var isConstructor$2 = !construct || fails$4(function() {
|
|
|
8689
8680
|
Xe += He[Be] * pow(256, 3 - Be);
|
|
8690
8681
|
return Xe;
|
|
8691
8682
|
}, parseIPv6 = function($e) {
|
|
8692
|
-
var De = [0, 0, 0, 0, 0, 0, 0, 0], Fe = 0, He = null, Be = 0, Ge, Ke, We, Xe, Je, Ze, Ye,
|
|
8683
|
+
var De = [0, 0, 0, 0, 0, 0, 0, 0], Fe = 0, He = null, Be = 0, Ge, Ke, We, Xe, Je, Ze, Ye, et = function() {
|
|
8693
8684
|
return charAt($e, Be);
|
|
8694
8685
|
};
|
|
8695
|
-
if (
|
|
8686
|
+
if (et() === ":") {
|
|
8696
8687
|
if (charAt($e, 1) !== ":") return;
|
|
8697
8688
|
Be += 2, Fe++, He = Fe;
|
|
8698
8689
|
}
|
|
8699
|
-
for (;
|
|
8690
|
+
for (; et(); ) {
|
|
8700
8691
|
if (Fe === 8) return;
|
|
8701
|
-
if (
|
|
8692
|
+
if (et() === ":") {
|
|
8702
8693
|
if (He !== null) return;
|
|
8703
8694
|
Be++, Fe++, He = Fe;
|
|
8704
8695
|
continue;
|
|
8705
8696
|
}
|
|
8706
|
-
for (Ge = Ke = 0; Ke < 4 && exec(HEX,
|
|
8707
|
-
Ge = Ge * 16 + parseInt$1(
|
|
8708
|
-
if (
|
|
8697
|
+
for (Ge = Ke = 0; Ke < 4 && exec(HEX, et()); )
|
|
8698
|
+
Ge = Ge * 16 + parseInt$1(et(), 16), Be++, Ke++;
|
|
8699
|
+
if (et() === ".") {
|
|
8709
8700
|
if (Ke === 0 || (Be -= Ke, Fe > 6)) return;
|
|
8710
|
-
for (We = 0;
|
|
8701
|
+
for (We = 0; et(); ) {
|
|
8711
8702
|
if (Xe = null, We > 0)
|
|
8712
|
-
if (
|
|
8703
|
+
if (et() === "." && We < 4) Be++;
|
|
8713
8704
|
else return;
|
|
8714
|
-
if (!exec(DIGIT,
|
|
8715
|
-
for (; exec(DIGIT,
|
|
8716
|
-
if (Je = parseInt$1(
|
|
8705
|
+
if (!exec(DIGIT, et())) return;
|
|
8706
|
+
for (; exec(DIGIT, et()); ) {
|
|
8707
|
+
if (Je = parseInt$1(et(), 10), Xe === null) Xe = Je;
|
|
8717
8708
|
else {
|
|
8718
8709
|
if (Xe === 0) return;
|
|
8719
8710
|
Xe = Xe * 10 + Je;
|
|
@@ -8725,9 +8716,9 @@ var isConstructor$2 = !construct || fails$4(function() {
|
|
|
8725
8716
|
}
|
|
8726
8717
|
if (We !== 4) return;
|
|
8727
8718
|
break;
|
|
8728
|
-
} else if (
|
|
8729
|
-
if (Be++, !
|
|
8730
|
-
} else if (
|
|
8719
|
+
} else if (et() === ":") {
|
|
8720
|
+
if (Be++, !et()) return;
|
|
8721
|
+
} else if (et()) return;
|
|
8731
8722
|
De[Fe++] = Ge;
|
|
8732
8723
|
}
|
|
8733
8724
|
if (He !== null)
|
|
@@ -8809,7 +8800,7 @@ URLState.prototype = {
|
|
|
8809
8800
|
// https://url.spec.whatwg.org/#url-parsing
|
|
8810
8801
|
// eslint-disable-next-line max-statements -- TODO
|
|
8811
8802
|
parse: function($e, De, Fe) {
|
|
8812
|
-
var He = this, Be = De || SCHEME_START, Ge = 0, Ke = "", We = !1, Xe = !1, Je = !1, Ze, Ye,
|
|
8803
|
+
var He = this, Be = De || SCHEME_START, Ge = 0, Ke = "", We = !1, Xe = !1, Je = !1, Ze, Ye, et, Qe;
|
|
8813
8804
|
for ($e = $toString($e), De || (He.scheme = "", He.username = "", He.password = "", He.host = null, He.port = null, He.path = [], He.query = null, He.fragment = null, He.cannotBeABaseURL = !1, $e = replace$2($e, LEADING_C0_CONTROL_OR_SPACE, ""), $e = replace$2($e, TRAILING_C0_CONTROL_OR_SPACE, "$1")), $e = replace$2($e, TAB_AND_NEW_LINE, ""), Ze = arrayFrom($e); Ge <= Ze.length; ) {
|
|
8814
8805
|
switch (Ye = Ze[Ge], Be) {
|
|
8815
8806
|
case SCHEME_START:
|
|
@@ -8899,9 +8890,9 @@ URLState.prototype = {
|
|
|
8899
8890
|
break;
|
|
8900
8891
|
case AUTHORITY:
|
|
8901
8892
|
if (Ye === "@") {
|
|
8902
|
-
We && (Ke = "%40" + Ke), We = !0,
|
|
8903
|
-
for (var tt = 0; tt <
|
|
8904
|
-
var rt =
|
|
8893
|
+
We && (Ke = "%40" + Ke), We = !0, et = arrayFrom(Ke);
|
|
8894
|
+
for (var tt = 0; tt < et.length; tt++) {
|
|
8895
|
+
var rt = et[tt];
|
|
8905
8896
|
if (rt === ":" && !Je) {
|
|
8906
8897
|
Je = !0;
|
|
8907
8898
|
continue;
|
|
@@ -8922,12 +8913,12 @@ URLState.prototype = {
|
|
|
8922
8913
|
continue;
|
|
8923
8914
|
} else if (Ye === ":" && !Xe) {
|
|
8924
8915
|
if (Ke === "") return INVALID_HOST;
|
|
8925
|
-
if (
|
|
8916
|
+
if (Qe = He.parseHost(Ke), Qe) return Qe;
|
|
8926
8917
|
if (Ke = "", Be = PORT, De === HOSTNAME) return;
|
|
8927
8918
|
} else if (Ye === EOF || Ye === "/" || Ye === "?" || Ye === "#" || Ye === "\\" && He.isSpecial()) {
|
|
8928
8919
|
if (He.isSpecial() && Ke === "") return INVALID_HOST;
|
|
8929
8920
|
if (De && Ke === "" && (He.includesCredentials() || He.port !== null)) return;
|
|
8930
|
-
if (
|
|
8921
|
+
if (Qe = He.parseHost(Ke), Qe) return Qe;
|
|
8931
8922
|
if (Ke = "", Be = PATH_START, De) return;
|
|
8932
8923
|
continue;
|
|
8933
8924
|
} else
|
|
@@ -8984,7 +8975,7 @@ URLState.prototype = {
|
|
|
8984
8975
|
if (He.host = "", De) return;
|
|
8985
8976
|
Be = PATH_START;
|
|
8986
8977
|
} else {
|
|
8987
|
-
if (
|
|
8978
|
+
if (Qe = He.parseHost(Ke), Qe) return Qe;
|
|
8988
8979
|
if (He.host === "localhost" && (He.host = ""), De) return;
|
|
8989
8980
|
Ke = "", Be = PATH_START;
|
|
8990
8981
|
}
|
|
@@ -9300,7 +9291,7 @@ var isObject$2 = isObject$c, createNonEnumerableProperty$2 = createNonEnumerable
|
|
|
9300
9291
|
}, bind$3 = functionBindContext, call$6 = functionCall, anObject$2 = anObject$b, tryToString$1 = tryToString$4, isArrayIteratorMethod = isArrayIteratorMethod$2, lengthOfArrayLike = lengthOfArrayLike$3, isPrototypeOf$1 = objectIsPrototypeOf, getIterator = getIterator$3, getIteratorMethod = getIteratorMethod$4, iteratorClose = iteratorClose$2, $TypeError$2 = TypeError, Result = function($e, De) {
|
|
9301
9292
|
this.stopped = $e, this.result = De;
|
|
9302
9293
|
}, ResultPrototype = Result.prototype, iterate$5 = function($e, De, Fe) {
|
|
9303
|
-
var He = Fe && Fe.that, Be = !!(Fe && Fe.AS_ENTRIES), Ge = !!(Fe && Fe.IS_RECORD), Ke = !!(Fe && Fe.IS_ITERATOR), We = !!(Fe && Fe.INTERRUPTED), Xe = bind$3(De, He), Je, Ze, Ye,
|
|
9294
|
+
var He = Fe && Fe.that, Be = !!(Fe && Fe.AS_ENTRIES), Ge = !!(Fe && Fe.IS_RECORD), Ke = !!(Fe && Fe.IS_ITERATOR), We = !!(Fe && Fe.INTERRUPTED), Xe = bind$3(De, He), Je, Ze, Ye, et, Qe, tt, rt, nt = function(st) {
|
|
9304
9295
|
return Je && iteratorClose(Je, "normal", st), new Result(!0, st);
|
|
9305
9296
|
}, at = function(st) {
|
|
9306
9297
|
return Be ? (anObject$2(st), We ? Xe(st[0], st[1], nt) : Xe(st[0], st[1])) : We ? Xe(st, nt) : Xe(st);
|
|
@@ -9312,19 +9303,19 @@ var isObject$2 = isObject$c, createNonEnumerableProperty$2 = createNonEnumerable
|
|
|
9312
9303
|
else {
|
|
9313
9304
|
if (Ze = getIteratorMethod($e), !Ze) throw new $TypeError$2(tryToString$1($e) + " is not iterable");
|
|
9314
9305
|
if (isArrayIteratorMethod(Ze)) {
|
|
9315
|
-
for (Ye = 0,
|
|
9316
|
-
if (
|
|
9306
|
+
for (Ye = 0, et = lengthOfArrayLike($e); et > Ye; Ye++)
|
|
9307
|
+
if (Qe = at($e[Ye]), Qe && isPrototypeOf$1(ResultPrototype, Qe)) return Qe;
|
|
9317
9308
|
return new Result(!1);
|
|
9318
9309
|
}
|
|
9319
9310
|
Je = getIterator($e, Ze);
|
|
9320
9311
|
}
|
|
9321
9312
|
for (tt = Ge ? $e.next : Je.next; !(rt = call$6(tt, Je)).done; ) {
|
|
9322
9313
|
try {
|
|
9323
|
-
|
|
9314
|
+
Qe = at(rt.value);
|
|
9324
9315
|
} catch (st) {
|
|
9325
9316
|
iteratorClose(Je, "throw", st);
|
|
9326
9317
|
}
|
|
9327
|
-
if (typeof
|
|
9318
|
+
if (typeof Qe == "object" && Qe && isPrototypeOf$1(ResultPrototype, Qe)) return Qe;
|
|
9328
9319
|
}
|
|
9329
9320
|
return new Result(!1);
|
|
9330
9321
|
}, toString$1 = toString$8, normalizeStringArgument$1 = function($e, De) {
|
|
@@ -9645,9 +9636,9 @@ $$c({ target: "Promise", stat: !0, forced: PROMISE_STATICS_INCORRECT_ITERATION$3
|
|
|
9645
9636
|
var De = this, Fe = newPromiseCapabilityModule$6.f(De), He = Fe.resolve, Be = Fe.reject, Ge = perform$4(function() {
|
|
9646
9637
|
var Ke = aCallable$4(De.resolve), We = [], Xe = 0, Je = 1;
|
|
9647
9638
|
iterate$3($e, function(Ze) {
|
|
9648
|
-
var Ye = Xe++,
|
|
9649
|
-
Je++, call$3(Ke, De, Ze).then(function(
|
|
9650
|
-
|
|
9639
|
+
var Ye = Xe++, et = !1;
|
|
9640
|
+
Je++, call$3(Ke, De, Ze).then(function(Qe) {
|
|
9641
|
+
et || (et = !0, We[Ye] = Qe, --Je || He(We));
|
|
9651
9642
|
}, Be);
|
|
9652
9643
|
}), --Je || He(We);
|
|
9653
9644
|
});
|
|
@@ -9700,11 +9691,11 @@ $$7({ target: "Promise", stat: !0, forced: PROMISE_STATICS_INCORRECT_ITERATION$1
|
|
|
9700
9691
|
var De = this, Fe = newPromiseCapabilityModule$3.f(De), He = Fe.resolve, Be = Fe.reject, Ge = perform$2(function() {
|
|
9701
9692
|
var Ke = aCallable$2(De.resolve), We = [], Xe = 0, Je = 1;
|
|
9702
9693
|
iterate$1($e, function(Ze) {
|
|
9703
|
-
var Ye = Xe++,
|
|
9704
|
-
Je++, call$1(Ke, De, Ze).then(function(
|
|
9705
|
-
|
|
9706
|
-
}, function(
|
|
9707
|
-
|
|
9694
|
+
var Ye = Xe++, et = !1;
|
|
9695
|
+
Je++, call$1(Ke, De, Ze).then(function(Qe) {
|
|
9696
|
+
et || (et = !0, We[Ye] = { status: "fulfilled", value: Qe }, --Je || He(We));
|
|
9697
|
+
}, function(Qe) {
|
|
9698
|
+
et || (et = !0, We[Ye] = { status: "rejected", reason: Qe }, --Je || He(We));
|
|
9708
9699
|
});
|
|
9709
9700
|
}), --Je || He(We);
|
|
9710
9701
|
});
|
|
@@ -9716,12 +9707,12 @@ $$6({ target: "Promise", stat: !0, forced: PROMISE_STATICS_INCORRECT_ITERATION }
|
|
|
9716
9707
|
any: function($e) {
|
|
9717
9708
|
var De = this, Fe = getBuiltIn$1("AggregateError"), He = newPromiseCapabilityModule$2.f(De), Be = He.resolve, Ge = He.reject, Ke = perform$1(function() {
|
|
9718
9709
|
var We = aCallable$1(De.resolve), Xe = [], Je = 0, Ze = 1, Ye = !1;
|
|
9719
|
-
iterate($e, function(
|
|
9720
|
-
var
|
|
9721
|
-
Ze++, call(We, De,
|
|
9710
|
+
iterate($e, function(et) {
|
|
9711
|
+
var Qe = Je++, tt = !1;
|
|
9712
|
+
Ze++, call(We, De, et).then(function(rt) {
|
|
9722
9713
|
tt || Ye || (Ye = !0, Be(rt));
|
|
9723
9714
|
}, function(rt) {
|
|
9724
|
-
tt || Ye || (tt = !0, Xe[
|
|
9715
|
+
tt || Ye || (tt = !0, Xe[Qe] = rt, --Ze || Ge(new Fe(Xe, PROMISE_ANY_ERROR)));
|
|
9725
9716
|
});
|
|
9726
9717
|
}), --Ze || Ge(new Fe(Xe, PROMISE_ANY_ERROR));
|
|
9727
9718
|
});
|
|
@@ -9867,31 +9858,31 @@ var n$2 = o$5(function($e, De) {
|
|
|
9867
9858
|
});
|
|
9868
9859
|
i$6(n$2);
|
|
9869
9860
|
var a$6 = i$6(o$5(function($e, De) {
|
|
9870
|
-
var Fe = t$1 && t$1.__awaiter || function(Ze, Ye,
|
|
9871
|
-
return new (
|
|
9861
|
+
var Fe = t$1 && t$1.__awaiter || function(Ze, Ye, et, Qe) {
|
|
9862
|
+
return new (et || (et = Promise))(function(tt, rt) {
|
|
9872
9863
|
function nt(ct) {
|
|
9873
9864
|
try {
|
|
9874
|
-
st(
|
|
9865
|
+
st(Qe.next(ct));
|
|
9875
9866
|
} catch (ot) {
|
|
9876
9867
|
rt(ot);
|
|
9877
9868
|
}
|
|
9878
9869
|
}
|
|
9879
9870
|
function at(ct) {
|
|
9880
9871
|
try {
|
|
9881
|
-
st(
|
|
9872
|
+
st(Qe.throw(ct));
|
|
9882
9873
|
} catch (ot) {
|
|
9883
9874
|
rt(ot);
|
|
9884
9875
|
}
|
|
9885
9876
|
}
|
|
9886
9877
|
function st(ct) {
|
|
9887
|
-
ct.done ? tt(ct.value) : new
|
|
9878
|
+
ct.done ? tt(ct.value) : new et(function(ot) {
|
|
9888
9879
|
ot(ct.value);
|
|
9889
9880
|
}).then(nt, at);
|
|
9890
9881
|
}
|
|
9891
|
-
st((
|
|
9882
|
+
st((Qe = Qe.apply(Ze, Ye || [])).next());
|
|
9892
9883
|
});
|
|
9893
9884
|
}, He = t$1 && t$1.__generator || function(Ze, Ye) {
|
|
9894
|
-
var
|
|
9885
|
+
var et, Qe, tt, rt, nt = { label: 0, sent: function() {
|
|
9895
9886
|
if (1 & tt[0]) throw tt[1];
|
|
9896
9887
|
return tt[1];
|
|
9897
9888
|
}, trys: [], ops: [] };
|
|
@@ -9901,10 +9892,10 @@ var a$6 = i$6(o$5(function($e, De) {
|
|
|
9901
9892
|
function at(st) {
|
|
9902
9893
|
return function(ct) {
|
|
9903
9894
|
return function(ot) {
|
|
9904
|
-
if (
|
|
9895
|
+
if (et) throw new TypeError("Generator is already executing.");
|
|
9905
9896
|
for (; nt; ) try {
|
|
9906
|
-
if (
|
|
9907
|
-
switch (
|
|
9897
|
+
if (et = 1, Qe && (tt = 2 & ot[0] ? Qe.return : ot[0] ? Qe.throw || ((tt = Qe.return) && tt.call(Qe), 0) : Qe.next) && !(tt = tt.call(Qe, ot[1])).done) return tt;
|
|
9898
|
+
switch (Qe = 0, tt && (ot = [2 & ot[0], tt.value]), ot[0]) {
|
|
9908
9899
|
case 0:
|
|
9909
9900
|
case 1:
|
|
9910
9901
|
tt = ot;
|
|
@@ -9912,7 +9903,7 @@ var a$6 = i$6(o$5(function($e, De) {
|
|
|
9912
9903
|
case 4:
|
|
9913
9904
|
return nt.label++, { value: ot[1], done: !1 };
|
|
9914
9905
|
case 5:
|
|
9915
|
-
nt.label++,
|
|
9906
|
+
nt.label++, Qe = ot[1], ot = [0];
|
|
9916
9907
|
continue;
|
|
9917
9908
|
case 7:
|
|
9918
9909
|
ot = nt.ops.pop(), nt.trys.pop();
|
|
@@ -9939,9 +9930,9 @@ var a$6 = i$6(o$5(function($e, De) {
|
|
|
9939
9930
|
}
|
|
9940
9931
|
ot = Ye.call(Ze, nt);
|
|
9941
9932
|
} catch (lt) {
|
|
9942
|
-
ot = [6, lt],
|
|
9933
|
+
ot = [6, lt], Qe = 0;
|
|
9943
9934
|
} finally {
|
|
9944
|
-
|
|
9935
|
+
et = tt = 0;
|
|
9945
9936
|
}
|
|
9946
9937
|
if (5 & ot[0]) throw ot[1];
|
|
9947
9938
|
return { value: ot[0] ? ot[1] : void 0, done: !0 };
|
|
@@ -9976,7 +9967,7 @@ var a$6 = i$6(o$5(function($e, De) {
|
|
|
9976
9967
|
});
|
|
9977
9968
|
}, setItem: function(Ze, Ye) {
|
|
9978
9969
|
return Fe(Be, void 0, void 0, function() {
|
|
9979
|
-
return He(this, function(
|
|
9970
|
+
return He(this, function(et) {
|
|
9980
9971
|
throw new Error("Unsupported");
|
|
9981
9972
|
});
|
|
9982
9973
|
});
|
|
@@ -9997,53 +9988,53 @@ var a$6 = i$6(o$5(function($e, De) {
|
|
|
9997
9988
|
});
|
|
9998
9989
|
}
|
|
9999
9990
|
function Xe(Ze) {
|
|
10000
|
-
for (var Ye = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",
|
|
10001
|
-
|
|
10002
|
-
return
|
|
9991
|
+
for (var Ye = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz", et = "", Qe = 0; Qe < Ze; Qe++)
|
|
9992
|
+
et += Ye[Math.floor(Math.random() * Ye.length)];
|
|
9993
|
+
return et;
|
|
10003
9994
|
}
|
|
10004
9995
|
var Je = function() {
|
|
10005
9996
|
function Ze(Ye) {
|
|
10006
9997
|
this.acquiredIatSet = /* @__PURE__ */ new Set(), this.storageHandler = void 0, this.id = Date.now().toString() + Xe(15), this.acquireLock = this.acquireLock.bind(this), this.releaseLock = this.releaseLock.bind(this), this.releaseLock__private__ = this.releaseLock__private__.bind(this), this.waitForSomethingToChange = this.waitForSomethingToChange.bind(this), this.refreshLockWhileAcquired = this.refreshLockWhileAcquired.bind(this), this.storageHandler = Ye, Ze.waiters === void 0 && (Ze.waiters = []);
|
|
10007
9998
|
}
|
|
10008
|
-
return Ze.prototype.acquireLock = function(Ye,
|
|
10009
|
-
return
|
|
10010
|
-
var
|
|
9999
|
+
return Ze.prototype.acquireLock = function(Ye, et) {
|
|
10000
|
+
return et === void 0 && (et = 5e3), Fe(this, void 0, void 0, function() {
|
|
10001
|
+
var Qe, tt, rt, nt, at, st, ct;
|
|
10011
10002
|
return He(this, function(ot) {
|
|
10012
10003
|
switch (ot.label) {
|
|
10013
10004
|
case 0:
|
|
10014
|
-
|
|
10005
|
+
Qe = Date.now() + Xe(4), tt = Date.now() + et, rt = Ge + "-" + Ye, nt = this.storageHandler === void 0 ? Ke : this.storageHandler, ot.label = 1;
|
|
10015
10006
|
case 1:
|
|
10016
10007
|
return Date.now() < tt ? [4, We(30)] : [3, 8];
|
|
10017
10008
|
case 2:
|
|
10018
|
-
return ot.sent(), nt.getItemSync(rt) !== null ? [3, 5] : (at = this.id + "-" + Ye + "-" +
|
|
10009
|
+
return ot.sent(), nt.getItemSync(rt) !== null ? [3, 5] : (at = this.id + "-" + Ye + "-" + Qe, [4, We(Math.floor(25 * Math.random()))]);
|
|
10019
10010
|
case 3:
|
|
10020
|
-
return ot.sent(), nt.setItemSync(rt, JSON.stringify({ id: this.id, iat:
|
|
10011
|
+
return ot.sent(), nt.setItemSync(rt, JSON.stringify({ id: this.id, iat: Qe, timeoutKey: at, timeAcquired: Date.now(), timeRefreshed: Date.now() })), [4, We(30)];
|
|
10021
10012
|
case 4:
|
|
10022
|
-
return ot.sent(), (st = nt.getItemSync(rt)) !== null && (ct = JSON.parse(st)).id === this.id && ct.iat ===
|
|
10013
|
+
return ot.sent(), (st = nt.getItemSync(rt)) !== null && (ct = JSON.parse(st)).id === this.id && ct.iat === Qe ? (this.acquiredIatSet.add(Qe), this.refreshLockWhileAcquired(rt, Qe), [2, !0]) : [3, 7];
|
|
10023
10014
|
case 5:
|
|
10024
10015
|
return Ze.lockCorrector(this.storageHandler === void 0 ? Ke : this.storageHandler), [4, this.waitForSomethingToChange(tt)];
|
|
10025
10016
|
case 6:
|
|
10026
10017
|
ot.sent(), ot.label = 7;
|
|
10027
10018
|
case 7:
|
|
10028
|
-
return
|
|
10019
|
+
return Qe = Date.now() + Xe(4), [3, 1];
|
|
10029
10020
|
case 8:
|
|
10030
10021
|
return [2, !1];
|
|
10031
10022
|
}
|
|
10032
10023
|
});
|
|
10033
10024
|
});
|
|
10034
|
-
}, Ze.prototype.refreshLockWhileAcquired = function(Ye,
|
|
10025
|
+
}, Ze.prototype.refreshLockWhileAcquired = function(Ye, et) {
|
|
10035
10026
|
return Fe(this, void 0, void 0, function() {
|
|
10036
|
-
var
|
|
10027
|
+
var Qe = this;
|
|
10037
10028
|
return He(this, function(tt) {
|
|
10038
10029
|
return setTimeout(function() {
|
|
10039
|
-
return Fe(
|
|
10030
|
+
return Fe(Qe, void 0, void 0, function() {
|
|
10040
10031
|
var rt, nt, at;
|
|
10041
10032
|
return He(this, function(st) {
|
|
10042
10033
|
switch (st.label) {
|
|
10043
10034
|
case 0:
|
|
10044
|
-
return [4, n$2.default().lock(
|
|
10035
|
+
return [4, n$2.default().lock(et)];
|
|
10045
10036
|
case 1:
|
|
10046
|
-
return st.sent(), this.acquiredIatSet.has(
|
|
10037
|
+
return st.sent(), this.acquiredIatSet.has(et) ? (rt = this.storageHandler === void 0 ? Ke : this.storageHandler, (nt = rt.getItemSync(Ye)) === null ? (n$2.default().unlock(et), [2]) : ((at = JSON.parse(nt)).timeRefreshed = Date.now(), rt.setItemSync(Ye, JSON.stringify(at)), n$2.default().unlock(et), this.refreshLockWhileAcquired(Ye, et), [2])) : (n$2.default().unlock(et), [2]);
|
|
10047
10038
|
}
|
|
10048
10039
|
});
|
|
10049
10040
|
});
|
|
@@ -10052,31 +10043,31 @@ var a$6 = i$6(o$5(function($e, De) {
|
|
|
10052
10043
|
});
|
|
10053
10044
|
}, Ze.prototype.waitForSomethingToChange = function(Ye) {
|
|
10054
10045
|
return Fe(this, void 0, void 0, function() {
|
|
10055
|
-
return He(this, function(
|
|
10056
|
-
switch (
|
|
10046
|
+
return He(this, function(et) {
|
|
10047
|
+
switch (et.label) {
|
|
10057
10048
|
case 0:
|
|
10058
|
-
return [4, new Promise(function(
|
|
10049
|
+
return [4, new Promise(function(Qe) {
|
|
10059
10050
|
var tt = !1, rt = Date.now(), nt = !1;
|
|
10060
10051
|
function at() {
|
|
10061
10052
|
if (nt || (window.removeEventListener("storage", at), Ze.removeFromWaiting(at), clearTimeout(st), nt = !0), !tt) {
|
|
10062
10053
|
tt = !0;
|
|
10063
10054
|
var ct = 50 - (Date.now() - rt);
|
|
10064
|
-
ct > 0 ? setTimeout(
|
|
10055
|
+
ct > 0 ? setTimeout(Qe, ct) : Qe(null);
|
|
10065
10056
|
}
|
|
10066
10057
|
}
|
|
10067
10058
|
window.addEventListener("storage", at), Ze.addToWaiting(at);
|
|
10068
10059
|
var st = setTimeout(at, Math.max(0, Ye - Date.now()));
|
|
10069
10060
|
})];
|
|
10070
10061
|
case 1:
|
|
10071
|
-
return
|
|
10062
|
+
return et.sent(), [2];
|
|
10072
10063
|
}
|
|
10073
10064
|
});
|
|
10074
10065
|
});
|
|
10075
10066
|
}, Ze.addToWaiting = function(Ye) {
|
|
10076
10067
|
this.removeFromWaiting(Ye), Ze.waiters !== void 0 && Ze.waiters.push(Ye);
|
|
10077
10068
|
}, Ze.removeFromWaiting = function(Ye) {
|
|
10078
|
-
Ze.waiters !== void 0 && (Ze.waiters = Ze.waiters.filter(function(
|
|
10079
|
-
return
|
|
10069
|
+
Ze.waiters !== void 0 && (Ze.waiters = Ze.waiters.filter(function(et) {
|
|
10070
|
+
return et !== Ye;
|
|
10080
10071
|
}));
|
|
10081
10072
|
}, Ze.notifyWaiters = function() {
|
|
10082
10073
|
Ze.waiters !== void 0 && Ze.waiters.slice().forEach(function(Ye) {
|
|
@@ -10084,42 +10075,42 @@ var a$6 = i$6(o$5(function($e, De) {
|
|
|
10084
10075
|
});
|
|
10085
10076
|
}, Ze.prototype.releaseLock = function(Ye) {
|
|
10086
10077
|
return Fe(this, void 0, void 0, function() {
|
|
10087
|
-
return He(this, function(
|
|
10088
|
-
switch (
|
|
10078
|
+
return He(this, function(et) {
|
|
10079
|
+
switch (et.label) {
|
|
10089
10080
|
case 0:
|
|
10090
10081
|
return [4, this.releaseLock__private__(Ye)];
|
|
10091
10082
|
case 1:
|
|
10092
|
-
return [2,
|
|
10083
|
+
return [2, et.sent()];
|
|
10093
10084
|
}
|
|
10094
10085
|
});
|
|
10095
10086
|
});
|
|
10096
10087
|
}, Ze.prototype.releaseLock__private__ = function(Ye) {
|
|
10097
10088
|
return Fe(this, void 0, void 0, function() {
|
|
10098
|
-
var
|
|
10089
|
+
var et, Qe, tt, rt;
|
|
10099
10090
|
return He(this, function(nt) {
|
|
10100
10091
|
switch (nt.label) {
|
|
10101
10092
|
case 0:
|
|
10102
|
-
return
|
|
10093
|
+
return et = this.storageHandler === void 0 ? Ke : this.storageHandler, Qe = Ge + "-" + Ye, (tt = et.getItemSync(Qe)) === null ? [2] : (rt = JSON.parse(tt)).id !== this.id ? [3, 2] : [4, n$2.default().lock(rt.iat)];
|
|
10103
10094
|
case 1:
|
|
10104
|
-
nt.sent(), this.acquiredIatSet.delete(rt.iat),
|
|
10095
|
+
nt.sent(), this.acquiredIatSet.delete(rt.iat), et.removeItemSync(Qe), n$2.default().unlock(rt.iat), Ze.notifyWaiters(), nt.label = 2;
|
|
10105
10096
|
case 2:
|
|
10106
10097
|
return [2];
|
|
10107
10098
|
}
|
|
10108
10099
|
});
|
|
10109
10100
|
});
|
|
10110
10101
|
}, Ze.lockCorrector = function(Ye) {
|
|
10111
|
-
for (var
|
|
10112
|
-
var nt =
|
|
10102
|
+
for (var et = Date.now() - 5e3, Qe = Ye, tt = [], rt = 0; ; ) {
|
|
10103
|
+
var nt = Qe.keySync(rt);
|
|
10113
10104
|
if (nt === null) break;
|
|
10114
10105
|
tt.push(nt), rt++;
|
|
10115
10106
|
}
|
|
10116
10107
|
for (var at = !1, st = 0; st < tt.length; st++) {
|
|
10117
10108
|
var ct = tt[st];
|
|
10118
10109
|
if (ct.includes(Ge)) {
|
|
10119
|
-
var ot =
|
|
10110
|
+
var ot = Qe.getItemSync(ct);
|
|
10120
10111
|
if (ot !== null) {
|
|
10121
10112
|
var lt = JSON.parse(ot);
|
|
10122
|
-
(lt.timeRefreshed === void 0 && lt.timeAcquired <
|
|
10113
|
+
(lt.timeRefreshed === void 0 && lt.timeAcquired < et || lt.timeRefreshed !== void 0 && lt.timeRefreshed < et) && (Qe.removeItemSync(ct), at = !0);
|
|
10123
10114
|
}
|
|
10124
10115
|
}
|
|
10125
10116
|
}
|
|
@@ -10187,8 +10178,8 @@ const w$1 = () => window.crypto, y$2 = () => {
|
|
|
10187
10178
|
}, S$1 = async ($e, De, Fe, He, Be, Ge, Ke) => {
|
|
10188
10179
|
return We = { auth: { audience: De, scope: Fe }, timeout: Be, fetchUrl: $e, fetchOptions: He, useFormData: Ke }, Xe = Ge, new Promise(function(Je, Ze) {
|
|
10189
10180
|
const Ye = new MessageChannel();
|
|
10190
|
-
Ye.port1.onmessage = function(
|
|
10191
|
-
|
|
10181
|
+
Ye.port1.onmessage = function(et) {
|
|
10182
|
+
et.data.error ? Ze(new Error(et.data.error)) : Je(et.data), Ye.port1.close();
|
|
10192
10183
|
}, Xe.postMessage(We, [Ye.port2]);
|
|
10193
10184
|
});
|
|
10194
10185
|
var We, Xe;
|
|
@@ -10196,21 +10187,21 @@ const w$1 = () => window.crypto, y$2 = () => {
|
|
|
10196
10187
|
async function T$1($e, De) {
|
|
10197
10188
|
var { baseUrl: Fe, timeout: He, audience: Be, scope: Ge, auth0Client: Ke, useFormData: We } = $e, Xe = e$1($e, ["baseUrl", "timeout", "audience", "scope", "auth0Client", "useFormData"]);
|
|
10198
10189
|
const Je = We ? v$1(Xe) : JSON.stringify(Xe);
|
|
10199
|
-
return await async function(Ze, Ye,
|
|
10190
|
+
return await async function(Ze, Ye, et, Qe, tt, rt, nt) {
|
|
10200
10191
|
let at, st = null;
|
|
10201
10192
|
for (let gt = 0; gt < 3; gt++) try {
|
|
10202
|
-
at = await O$2(Ze,
|
|
10193
|
+
at = await O$2(Ze, et, Qe, tt, rt, nt, Ye), st = null;
|
|
10203
10194
|
break;
|
|
10204
10195
|
} catch (wt) {
|
|
10205
10196
|
st = wt;
|
|
10206
10197
|
}
|
|
10207
10198
|
if (st) throw st;
|
|
10208
|
-
const ct = at.json, { error: ot, error_description: lt } = ct,
|
|
10199
|
+
const ct = at.json, { error: ot, error_description: lt } = ct, ft = e$1(ct, ["error", "error_description"]), { ok: mt } = at;
|
|
10209
10200
|
if (!mt) {
|
|
10210
10201
|
const gt = lt || `HTTP error. Unable to fetch ${Ze}`;
|
|
10211
|
-
throw ot === "mfa_required" ? new m$2(ot, gt,
|
|
10202
|
+
throw ot === "mfa_required" ? new m$2(ot, gt, ft.mfa_token) : ot === "missing_refresh_token" ? new f$2(et, Qe) : new d$2(ot || "request_error", gt);
|
|
10212
10203
|
}
|
|
10213
|
-
return
|
|
10204
|
+
return ft;
|
|
10214
10205
|
}(`${Fe}/oauth/token`, He, Be || "default", Ge, { method: "POST", body: Je, headers: { "Content-Type": We ? "application/x-www-form-urlencoded" : "application/json", "Auth0-Client": btoa(JSON.stringify(Ke || s$2)) } }, De, We);
|
|
10215
10206
|
}
|
|
10216
10207
|
const j$1 = (...$e) => {
|
|
@@ -10343,10 +10334,10 @@ const K$1 = ($e) => typeof $e == "number", W$2 = ["iss", "aud", "exp", "nbf", "i
|
|
|
10343
10334
|
const De = ((Ge) => {
|
|
10344
10335
|
const Ke = Ge.split("."), [We, Xe, Je] = Ke;
|
|
10345
10336
|
if (Ke.length !== 3 || !We || !Xe || !Je) throw new Error("ID token could not be decoded");
|
|
10346
|
-
const Ze = JSON.parse(b$5(Xe)), Ye = { __raw: Ge },
|
|
10347
|
-
return Object.keys(Ze).forEach((
|
|
10348
|
-
Ye[
|
|
10349
|
-
}), { encoded: { header: We, payload: Xe, signature: Je }, header: JSON.parse(b$5(We)), claims: Ye, user:
|
|
10337
|
+
const Ze = JSON.parse(b$5(Xe)), Ye = { __raw: Ge }, et = {};
|
|
10338
|
+
return Object.keys(Ze).forEach((Qe) => {
|
|
10339
|
+
Ye[Qe] = Ze[Qe], W$2.includes(Qe) || (et[Qe] = Ze[Qe]);
|
|
10340
|
+
}), { encoded: { header: We, payload: Xe, signature: Je }, header: JSON.parse(b$5(We)), claims: Ye, user: et };
|
|
10350
10341
|
})($e.id_token);
|
|
10351
10342
|
if (!De.claims.iss) throw new Error("Issuer (iss) claim must be a string present in the ID token");
|
|
10352
10343
|
if (De.claims.iss !== $e.iss) throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${$e.iss}", found "${De.claims.iss}"`);
|
|
@@ -10394,7 +10385,7 @@ const K$1 = ($e) => typeof $e == "number", W$2 = ["iss", "aud", "exp", "nbf", "i
|
|
|
10394
10385
|
var R$2 = o$5(function($e, De) {
|
|
10395
10386
|
var Fe = t$1 && t$1.__assign || function() {
|
|
10396
10387
|
return Fe = Object.assign || function(Xe) {
|
|
10397
|
-
for (var Je, Ze = 1, Ye = arguments.length; Ze < Ye; Ze++) for (var
|
|
10388
|
+
for (var Je, Ze = 1, Ye = arguments.length; Ze < Ye; Ze++) for (var et in Je = arguments[Ze]) Object.prototype.hasOwnProperty.call(Je, et) && (Xe[et] = Je[et]);
|
|
10398
10389
|
return Xe;
|
|
10399
10390
|
}, Fe.apply(this, arguments);
|
|
10400
10391
|
};
|
|
@@ -10406,18 +10397,18 @@ var R$2 = o$5(function($e, De) {
|
|
|
10406
10397
|
function Be(Xe, Je, Ze) {
|
|
10407
10398
|
return encodeURIComponent(Xe).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/\(/g, "%28").replace(/\)/g, "%29") + "=" + encodeURIComponent(Je).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent) + function(Ye) {
|
|
10408
10399
|
if (typeof Ye.expires == "number") {
|
|
10409
|
-
var
|
|
10410
|
-
|
|
10400
|
+
var et = /* @__PURE__ */ new Date();
|
|
10401
|
+
et.setMilliseconds(et.getMilliseconds() + 864e5 * Ye.expires), Ye.expires = et;
|
|
10411
10402
|
}
|
|
10412
10403
|
return He("Expires", Ye.expires ? Ye.expires.toUTCString() : "") + He("Domain", Ye.domain) + He("Path", Ye.path) + He("Secure", Ye.secure) + He("SameSite", Ye.sameSite);
|
|
10413
10404
|
}(Ze);
|
|
10414
10405
|
}
|
|
10415
10406
|
function Ge(Xe) {
|
|
10416
|
-
for (var Je = {}, Ze = Xe ? Xe.split("; ") : [], Ye = /(%[\dA-F]{2})+/gi,
|
|
10417
|
-
var
|
|
10407
|
+
for (var Je = {}, Ze = Xe ? Xe.split("; ") : [], Ye = /(%[\dA-F]{2})+/gi, et = 0; et < Ze.length; et++) {
|
|
10408
|
+
var Qe = Ze[et].split("="), tt = Qe.slice(1).join("=");
|
|
10418
10409
|
tt.charAt(0) === '"' && (tt = tt.slice(1, -1));
|
|
10419
10410
|
try {
|
|
10420
|
-
Je[
|
|
10411
|
+
Je[Qe[0].replace(Ye, decodeURIComponent)] = tt.replace(Ye, decodeURIComponent);
|
|
10421
10412
|
} catch {
|
|
10422
10413
|
}
|
|
10423
10414
|
}
|
|
@@ -10467,7 +10458,7 @@ function F$3($e, De, Fe) {
|
|
|
10467
10458
|
var He = De === void 0 ? null : De, Be = function(Xe, Je) {
|
|
10468
10459
|
var Ze = atob(Xe);
|
|
10469
10460
|
if (Je) {
|
|
10470
|
-
for (var Ye = new Uint8Array(Ze.length),
|
|
10461
|
+
for (var Ye = new Uint8Array(Ze.length), et = 0, Qe = Ze.length; et < Qe; ++et) Ye[et] = Ze.charCodeAt(et);
|
|
10471
10462
|
return String.fromCharCode.apply(null, new Uint16Array(Ye.buffer));
|
|
10472
10463
|
}
|
|
10473
10464
|
return Ze;
|
|
@@ -10548,10 +10539,10 @@ let te$1 = class {
|
|
|
10548
10539
|
const He = k$2(y$2()), Be = k$2(y$2()), Ge = y$2(), Ke = ((Je) => {
|
|
10549
10540
|
const Ze = new Uint8Array(Je);
|
|
10550
10541
|
return ((Ye) => {
|
|
10551
|
-
const
|
|
10552
|
-
return Ye.replace(/[+/=]/g, (
|
|
10542
|
+
const et = { "+": "-", "/": "_", "=": "" };
|
|
10543
|
+
return Ye.replace(/[+/=]/g, (Qe) => et[Qe]);
|
|
10553
10544
|
})(window.btoa(String.fromCharCode(...Array.from(Ze))));
|
|
10554
|
-
})(await (async (Je) => await w$1().subtle.digest({ name: "SHA-256" }, new TextEncoder().encode(Je)))(Ge)), We = ((Je, Ze, Ye,
|
|
10545
|
+
})(await (async (Je) => await w$1().subtle.digest({ name: "SHA-256" }, new TextEncoder().encode(Je)))(Ge)), We = ((Je, Ze, Ye, et, Qe, tt, rt, nt) => Object.assign(Object.assign(Object.assign({ client_id: Je.clientId }, Je.authorizationParams), Ye), { scope: j$1(Ze, Ye.scope), response_type: "code", response_mode: nt || "query", state: et, nonce: Qe, redirect_uri: rt || Je.authorizationParams.redirect_uri, code_challenge: tt, code_challenge_method: "S256" }))(this.options, this.scope, $e, He, Be, Ke, $e.redirect_uri || this.options.authorizationParams.redirect_uri || Fe, De == null ? void 0 : De.response_mode), Xe = this._authorizeUrl(We);
|
|
10555
10546
|
return { nonce: Be, code_verifier: Ge, scope: We.scope, audience: We.audience || "default", redirect_uri: We.redirect_uri, state: He, url: Xe };
|
|
10556
10547
|
}
|
|
10557
10548
|
async loginWithPopup($e, De) {
|
|
@@ -10569,10 +10560,10 @@ let te$1 = class {
|
|
|
10569
10560
|
}, 1e3), Ye = setTimeout(() => {
|
|
10570
10561
|
clearInterval(Ze), Xe(new h$1(Ke.popup)), window.removeEventListener("message", Je, !1);
|
|
10571
10562
|
}, 1e3 * (Ke.timeoutInSeconds || 60));
|
|
10572
|
-
Je = function(
|
|
10573
|
-
if (
|
|
10574
|
-
if (clearTimeout(Ye), clearInterval(Ze), window.removeEventListener("message", Je, !1), Ke.popup.close(),
|
|
10575
|
-
We(
|
|
10563
|
+
Je = function(et) {
|
|
10564
|
+
if (et.data && et.data.type === "authorization_response") {
|
|
10565
|
+
if (clearTimeout(Ye), clearInterval(Ze), window.removeEventListener("message", Je, !1), Ke.popup.close(), et.data.response.error) return Xe(d$2.fromPayload(et.data.response));
|
|
10566
|
+
We(et.data.response);
|
|
10576
10567
|
}
|
|
10577
10568
|
}, window.addEventListener("message", Je);
|
|
10578
10569
|
}))(Object.assign(Object.assign({}, De), { timeoutInSeconds: De.timeoutInSeconds || this.options.authorizeTimeoutInSeconds || 60 }));
|
|
@@ -10679,7 +10670,7 @@ let te$1 = class {
|
|
|
10679
10670
|
const { url: He, state: Be, nonce: Ge, code_verifier: Ke, redirect_uri: We, scope: Xe, audience: Je } = await this._prepareAuthorizeUrl(De, { response_mode: "web_message" }, window.location.origin);
|
|
10680
10671
|
try {
|
|
10681
10672
|
if (window.crossOriginIsolated) throw new d$2("login_required", "The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");
|
|
10682
|
-
const Ze = $e.timeoutInSeconds || this.options.authorizeTimeoutInSeconds, Ye = await ((
|
|
10673
|
+
const Ze = $e.timeoutInSeconds || this.options.authorizeTimeoutInSeconds, Ye = await ((Qe, tt, rt = 60) => new Promise((nt, at) => {
|
|
10683
10674
|
const st = window.document.createElement("iframe");
|
|
10684
10675
|
st.setAttribute("width", "0"), st.setAttribute("height", "0"), st.style.display = "none";
|
|
10685
10676
|
const ct = () => {
|
|
@@ -10689,15 +10680,15 @@ let te$1 = class {
|
|
|
10689
10680
|
const lt = setTimeout(() => {
|
|
10690
10681
|
at(new l$3()), ct();
|
|
10691
10682
|
}, 1e3 * rt);
|
|
10692
|
-
ot = function(
|
|
10693
|
-
if (
|
|
10694
|
-
const mt =
|
|
10695
|
-
mt && mt.close(),
|
|
10696
|
-
}, window.addEventListener("message", ot, !1), window.document.body.appendChild(st), st.setAttribute("src",
|
|
10683
|
+
ot = function(ft) {
|
|
10684
|
+
if (ft.origin != tt || !ft.data || ft.data.type !== "authorization_response") return;
|
|
10685
|
+
const mt = ft.source;
|
|
10686
|
+
mt && mt.close(), ft.data.response.error ? at(d$2.fromPayload(ft.data.response)) : nt(ft.data.response), clearTimeout(lt), window.removeEventListener("message", ot, !1), setTimeout(ct, 2e3);
|
|
10687
|
+
}, window.addEventListener("message", ot, !1), window.document.body.appendChild(st), st.setAttribute("src", Qe);
|
|
10697
10688
|
}))(He, this.domainUrl, Ze);
|
|
10698
10689
|
if (Be !== Ye.state) throw new d$2("state_mismatch", "Invalid state");
|
|
10699
|
-
const
|
|
10700
|
-
return Object.assign(Object.assign({},
|
|
10690
|
+
const et = await this._requestToken(Object.assign(Object.assign({}, $e.authorizationParams), { code_verifier: Ke, code: Ye.code, grant_type: "authorization_code", redirect_uri: We, timeout: $e.authorizationParams.timeout || this.httpTimeoutMs }), { nonceIn: Ge, organization: De.organization });
|
|
10691
|
+
return Object.assign(Object.assign({}, et), { scope: Xe, oauthTokenScope: et.scope, audience: Je });
|
|
10701
10692
|
} catch (Ze) {
|
|
10702
10693
|
throw Ze.error === "login_required" && this.logout({ openUrl: !1 }), Ze;
|
|
10703
10694
|
}
|
|
@@ -11177,11 +11168,11 @@ const defaultSkip = ($e, De) => De.skipDedupe || De.method !== "GET", defaultKey
|
|
|
11177
11168
|
let Ye = 0;
|
|
11178
11169
|
if (We && We(Je, Ze))
|
|
11179
11170
|
return Xe(Je, Ze);
|
|
11180
|
-
const
|
|
11171
|
+
const et = (Qe, tt) => Promise.resolve(He(Qe, tt)).then((rt) => rt ? Qe && Ke ? Qe : tt ? Promise.reject(tt) : Qe : (Ye++, !Fe || Ye <= Fe ? new Promise((nt) => {
|
|
11181
11172
|
const at = De($e, Ye);
|
|
11182
11173
|
setTimeout(() => {
|
|
11183
11174
|
typeof Be == "function" ? Promise.resolve(Be({
|
|
11184
|
-
response:
|
|
11175
|
+
response: Qe,
|
|
11185
11176
|
error: tt,
|
|
11186
11177
|
url: Je,
|
|
11187
11178
|
options: Ze
|
|
@@ -11190,15 +11181,15 @@ const defaultSkip = ($e, De) => De.skipDedupe || De.method !== "GET", defaultKey
|
|
|
11190
11181
|
nt(Xe((ct = st && st.url) !== null && ct !== void 0 ? ct : Je, (ot = st && st.options) !== null && ot !== void 0 ? ot : Ze));
|
|
11191
11182
|
}) : nt(Xe(Je, Ze));
|
|
11192
11183
|
}, at);
|
|
11193
|
-
}).then(
|
|
11184
|
+
}).then(et).catch((nt) => {
|
|
11194
11185
|
if (!Ge)
|
|
11195
11186
|
throw nt;
|
|
11196
|
-
return
|
|
11197
|
-
}) :
|
|
11198
|
-
return Xe(Je, Ze).then(
|
|
11187
|
+
return et(null, nt);
|
|
11188
|
+
}) : Qe && Ke ? Qe : Promise.reject(tt || new Error("Number of attempts exceeded."))));
|
|
11189
|
+
return Xe(Je, Ze).then(et).catch((Qe) => {
|
|
11199
11190
|
if (!Ge)
|
|
11200
|
-
throw
|
|
11201
|
-
return
|
|
11191
|
+
throw Qe;
|
|
11192
|
+
return et(null, Qe);
|
|
11202
11193
|
});
|
|
11203
11194
|
}, JSON_MIME = "application/json", CONTENT_TYPE_HEADER = "Content-Type", FETCH_ERROR = Symbol(), CATCHER_FALLBACK = Symbol();
|
|
11204
11195
|
function extractContentType($e = {}) {
|
|
@@ -11252,35 +11243,35 @@ const resolver = ($e) => {
|
|
|
11252
11243
|
$e = $e._addons.reduce((ct, ot) => ot.beforeRequest && ot.beforeRequest(ct, $e._options, De) || ct, $e);
|
|
11253
11244
|
const { _url: Fe, _options: He, _config: Be, _catchers: Ge, _resolvers: Ke, _middlewares: We, _addons: Xe } = $e, Je = new Map(Ge), Ze = mix(Be.options, He);
|
|
11254
11245
|
let Ye = Fe;
|
|
11255
|
-
const
|
|
11246
|
+
const et = middlewareHelper(We)((ct, ot) => (Ye = ct, Be.polyfill("fetch")(ct, ot)))(Fe, Ze), Qe = new Error(), tt = et.catch((ct) => {
|
|
11256
11247
|
throw { [FETCH_ERROR]: ct };
|
|
11257
11248
|
}).then((ct) => {
|
|
11258
11249
|
var ot;
|
|
11259
11250
|
if (!ct.ok) {
|
|
11260
11251
|
const lt = new WretchError();
|
|
11261
|
-
if (lt.cause =
|
|
11262
|
-
CAUSE: ` +
|
|
11252
|
+
if (lt.cause = Qe, lt.stack = lt.stack + `
|
|
11253
|
+
CAUSE: ` + Qe.stack, lt.response = ct, lt.status = ct.status, lt.url = Ye, ct.type === "opaque")
|
|
11263
11254
|
throw lt;
|
|
11264
|
-
const
|
|
11265
|
-
return (Be.errorType ?
|
|
11266
|
-
throw lt.message = typeof mt == "string" ? mt : ct.statusText, mt && (
|
|
11255
|
+
const ft = Be.errorType === "json" || ((ot = ct.headers.get("Content-Type")) === null || ot === void 0 ? void 0 : ot.split(";")[0]) === "application/json";
|
|
11256
|
+
return (Be.errorType ? ft ? ct.text() : ct[Be.errorType]() : Promise.resolve(ct.body)).then((mt) => {
|
|
11257
|
+
throw lt.message = typeof mt == "string" ? mt : ct.statusText, mt && (ft && typeof mt == "string" ? (lt.text = mt, lt.json = JSON.parse(mt)) : lt[Be.errorType] = mt), lt;
|
|
11267
11258
|
});
|
|
11268
11259
|
}
|
|
11269
11260
|
return ct;
|
|
11270
11261
|
}), rt = (ct) => ct.catch((ot) => {
|
|
11271
|
-
const lt = Object.prototype.hasOwnProperty.call(ot, FETCH_ERROR),
|
|
11262
|
+
const lt = Object.prototype.hasOwnProperty.call(ot, FETCH_ERROR), ft = lt ? ot[FETCH_ERROR] : ot, mt = (ft == null ? void 0 : ft.status) && Je.get(ft.status) || Je.get(ft == null ? void 0 : ft.name) || lt && Je.has(FETCH_ERROR) && Je.get(FETCH_ERROR);
|
|
11272
11263
|
if (mt)
|
|
11273
|
-
return mt(
|
|
11264
|
+
return mt(ft, $e);
|
|
11274
11265
|
const gt = Je.get(CATCHER_FALLBACK);
|
|
11275
11266
|
if (gt)
|
|
11276
|
-
return gt(
|
|
11277
|
-
throw
|
|
11267
|
+
return gt(ft, $e);
|
|
11268
|
+
throw ft;
|
|
11278
11269
|
}), nt = (ct) => (ot) => (
|
|
11279
11270
|
/* If a callback is provided, then callback with the body result otherwise return the parsed body itself. */
|
|
11280
11271
|
rt(ct ? tt.then((lt) => lt && lt[ct]()).then((lt) => ot ? ot(lt) : lt) : tt.then((lt) => ot ? ot(lt) : lt))
|
|
11281
11272
|
), at = {
|
|
11282
11273
|
_wretchReq: $e,
|
|
11283
|
-
_fetchReq:
|
|
11274
|
+
_fetchReq: et,
|
|
11284
11275
|
_sharedState: De,
|
|
11285
11276
|
res: nt(null),
|
|
11286
11277
|
json: nt("json"),
|
|
@@ -11534,52 +11525,52 @@ function setAttribution($e) {
|
|
|
11534
11525
|
}
|
|
11535
11526
|
}
|
|
11536
11527
|
function createApi($e) {
|
|
11537
|
-
const De = getBaseUrl("api2", $e.environment), Fe = (
|
|
11538
|
-
let
|
|
11539
|
-
|
|
11540
|
-
const
|
|
11541
|
-
...
|
|
11528
|
+
const De = getBaseUrl("api2", $e.environment), Fe = (ht) => async (Et, Ct) => {
|
|
11529
|
+
let jt = sessionStorage.getItem(CACHE_TIMESTAMP_KEY);
|
|
11530
|
+
jt || (jt = Date.now().toString(), sessionStorage.setItem(CACHE_TIMESTAMP_KEY, jt));
|
|
11531
|
+
const Ft = {
|
|
11532
|
+
...Ct,
|
|
11542
11533
|
headers: {
|
|
11543
|
-
...
|
|
11544
|
-
"Cache-Timestamp":
|
|
11534
|
+
...Ct.headers,
|
|
11535
|
+
"Cache-Timestamp": jt
|
|
11545
11536
|
}
|
|
11546
11537
|
};
|
|
11547
|
-
return
|
|
11548
|
-
}, He = (
|
|
11549
|
-
let
|
|
11550
|
-
if (
|
|
11551
|
-
if (
|
|
11538
|
+
return ht(Et, Ft);
|
|
11539
|
+
}, He = (ht = !0) => (Et) => async (Ct, jt) => {
|
|
11540
|
+
let Ft = null;
|
|
11541
|
+
if (Ft = await getTokenSilently(ht), !Ft) {
|
|
11542
|
+
if (ht)
|
|
11552
11543
|
throw new Error("No access token available");
|
|
11553
|
-
return Et(
|
|
11544
|
+
return Et(Ct, jt);
|
|
11554
11545
|
}
|
|
11555
11546
|
const Ut = {
|
|
11556
|
-
...
|
|
11547
|
+
...jt,
|
|
11557
11548
|
headers: {
|
|
11558
|
-
...
|
|
11559
|
-
...
|
|
11549
|
+
...jt.headers,
|
|
11550
|
+
...Ft ? { Authorization: `Bearer ${Ft}` } : {}
|
|
11560
11551
|
}
|
|
11561
11552
|
};
|
|
11562
|
-
return Et(
|
|
11563
|
-
}, Be = (
|
|
11564
|
-
if (
|
|
11565
|
-
return
|
|
11566
|
-
const
|
|
11567
|
-
...
|
|
11553
|
+
return Et(Ct, Ut);
|
|
11554
|
+
}, Be = (ht) => (Et, Ct) => {
|
|
11555
|
+
if (Ct.headers.Authorization)
|
|
11556
|
+
return ht(Et, Ct);
|
|
11557
|
+
const jt = localStorage.getItem("__anon_id"), Ft = btoa(`${$e.clientId}|${jt}:`), Ut = {
|
|
11558
|
+
...Ct,
|
|
11568
11559
|
headers: {
|
|
11569
|
-
...
|
|
11570
|
-
Authorization: `Basic ${
|
|
11560
|
+
...Ct.headers,
|
|
11561
|
+
Authorization: `Basic ${Ft}`
|
|
11571
11562
|
}
|
|
11572
11563
|
};
|
|
11573
|
-
return
|
|
11564
|
+
return ht(Et, Ut);
|
|
11574
11565
|
}, Ge = factory(De).headers({ "Content-Type": "application/json" }).middlewares([
|
|
11575
11566
|
Fe,
|
|
11576
11567
|
He(),
|
|
11577
11568
|
dedupe(),
|
|
11578
11569
|
retry({
|
|
11579
11570
|
delayTimer: 1e3,
|
|
11580
|
-
delayRamp: (
|
|
11571
|
+
delayRamp: (ht, Et) => ht * Et,
|
|
11581
11572
|
maxAttempts: 3,
|
|
11582
|
-
until: (
|
|
11573
|
+
until: (ht) => !!(ht && (ht.ok || ht.status >= 400 && ht.status < 500)),
|
|
11583
11574
|
retryOnNetworkError: !1
|
|
11584
11575
|
})
|
|
11585
11576
|
]), Ke = factory(De).headers({ "Content-Type": "application/json" }).middlewares([
|
|
@@ -11589,49 +11580,49 @@ function createApi($e) {
|
|
|
11589
11580
|
dedupe(),
|
|
11590
11581
|
retry({
|
|
11591
11582
|
delayTimer: 1e3,
|
|
11592
|
-
delayRamp: (
|
|
11583
|
+
delayRamp: (ht, Et) => ht * Et,
|
|
11593
11584
|
maxAttempts: 3,
|
|
11594
|
-
until: (
|
|
11585
|
+
until: (ht) => !!(ht && (ht.ok || ht.status >= 400 && ht.status < 500)),
|
|
11595
11586
|
retryOnNetworkError: !1
|
|
11596
11587
|
})
|
|
11597
11588
|
]);
|
|
11598
|
-
async function We(
|
|
11599
|
-
const { waitForEntitlementAfter: Et, includeSignedLinks:
|
|
11600
|
-
return
|
|
11601
|
-
}
|
|
11602
|
-
async function Xe(
|
|
11603
|
-
const
|
|
11604
|
-
return
|
|
11605
|
-
const { sku:
|
|
11606
|
-
let
|
|
11607
|
-
|
|
11608
|
-
const qt = compareUrlWithoutHash(
|
|
11609
|
-
return
|
|
11589
|
+
async function We(ht = {}) {
|
|
11590
|
+
const { waitForEntitlementAfter: Et, includeSignedLinks: Ct = !0 } = ht, jt = Et ? `?wait-for-entitlement-after=${Et.toISOString()}` : "", Ft = await isAuthenticated() ? await Ge.get(`/entitlements${jt}`).json() : [];
|
|
11591
|
+
return Ct && Ft.push(...getSignedLinks()), Ft;
|
|
11592
|
+
}
|
|
11593
|
+
async function Xe(ht, Et = []) {
|
|
11594
|
+
const Ct = await We();
|
|
11595
|
+
return Ct == null ? void 0 : Ct.find((jt) => {
|
|
11596
|
+
const { sku: Ft, purchaseOption: Ut } = decodeItemSrc(ht);
|
|
11597
|
+
let Ht = "sku" in jt && Ft === jt.sku;
|
|
11598
|
+
Ht && Ut && "purchaseOptionId" in jt && (Ht = Ut === jt.purchaseOptionId);
|
|
11599
|
+
const qt = compareUrlWithoutHash(ht, jt.url), Gt = Et.some((Kt) => compareUrlWithoutHash(Kt, jt.url));
|
|
11600
|
+
return Ht || qt || Gt;
|
|
11610
11601
|
});
|
|
11611
11602
|
}
|
|
11612
|
-
async function Je(
|
|
11603
|
+
async function Je(ht) {
|
|
11613
11604
|
const Et = await Ge.get("/entitlements").json();
|
|
11614
|
-
return Et == null ? void 0 : Et.find((
|
|
11605
|
+
return Et == null ? void 0 : Et.find((Ct) => Ct.id === ht);
|
|
11615
11606
|
}
|
|
11616
|
-
async function Ze(
|
|
11617
|
-
return Ge.get(`/entitlements/${encodeURIComponent(
|
|
11607
|
+
async function Ze(ht) {
|
|
11608
|
+
return Ge.get(`/entitlements/${encodeURIComponent(ht)}/access`).json();
|
|
11618
11609
|
}
|
|
11619
|
-
async function Ye(
|
|
11620
|
-
const
|
|
11621
|
-
return
|
|
11610
|
+
async function Ye(ht, Et, Ct) {
|
|
11611
|
+
const jt = new URL(getBaseUrl("api2", $e.environment));
|
|
11612
|
+
return jt.pathname = "/proxy", jt.searchParams.set("url", Et), Ct && jt.searchParams.set("selector", Ct), factory(jt.toString()).headers({ Authorization: `Bearer ${ht}` }).get().text();
|
|
11622
11613
|
}
|
|
11623
|
-
async function
|
|
11624
|
-
return await isAuthenticated() ? await Ge.get(`/fulfillments?sku=${encodeURIComponent(
|
|
11614
|
+
async function et(ht) {
|
|
11615
|
+
return await isAuthenticated() ? await Ge.get(`/fulfillments?sku=${encodeURIComponent(ht)}`).json() : [];
|
|
11625
11616
|
}
|
|
11626
|
-
async function
|
|
11617
|
+
async function Qe() {
|
|
11627
11618
|
return Ge.get("/contracts").json();
|
|
11628
11619
|
}
|
|
11629
|
-
async function tt(
|
|
11620
|
+
async function tt(ht) {
|
|
11630
11621
|
const Et = await Ge.get("/contracts").json();
|
|
11631
|
-
return Et == null ? void 0 : Et.find((
|
|
11622
|
+
return Et == null ? void 0 : Et.find((Ct) => Ct.id === ht);
|
|
11632
11623
|
}
|
|
11633
|
-
async function rt(
|
|
11634
|
-
return (await Ge.post({}, `/contracts/${encodeURIComponent(
|
|
11624
|
+
async function rt(ht) {
|
|
11625
|
+
return (await Ge.post({}, `/contracts/${encodeURIComponent(ht)}/cancel`).res()).ok;
|
|
11635
11626
|
}
|
|
11636
11627
|
async function nt() {
|
|
11637
11628
|
return console.warn("getSubscriptions is deprecated, use getContracts instead"), Ge.get("/subscriptions").json();
|
|
@@ -11639,27 +11630,27 @@ function createApi($e) {
|
|
|
11639
11630
|
async function at() {
|
|
11640
11631
|
return Ge.get("/bills").json();
|
|
11641
11632
|
}
|
|
11642
|
-
async function st(
|
|
11633
|
+
async function st(ht) {
|
|
11643
11634
|
const Et = await Ge.get("/bills").json();
|
|
11644
|
-
return Et == null ? void 0 : Et.find((
|
|
11635
|
+
return Et == null ? void 0 : Et.find((Ct) => Ct.id === ht);
|
|
11645
11636
|
}
|
|
11646
11637
|
async function ct() {
|
|
11647
11638
|
return Ge.get("/transactions").json();
|
|
11648
11639
|
}
|
|
11649
|
-
async function ot(
|
|
11640
|
+
async function ot(ht) {
|
|
11650
11641
|
const Et = await Ge.get("/transactions").json();
|
|
11651
|
-
return Et == null ? void 0 : Et.find((
|
|
11642
|
+
return Et == null ? void 0 : Et.find((Ct) => Ct.id === ht);
|
|
11652
11643
|
}
|
|
11653
|
-
async function lt(
|
|
11654
|
-
const
|
|
11655
|
-
return triggerEvent(Events.USER_ATTRIBUTE_CHANGED, {}), clearCache(),
|
|
11644
|
+
async function lt(ht, Et) {
|
|
11645
|
+
const Ct = await Ge.url(`/user-metadata/${encodeURIComponent(ht)}`).put(Et).json();
|
|
11646
|
+
return triggerEvent(Events.USER_ATTRIBUTE_CHANGED, {}), clearCache(), Ct;
|
|
11656
11647
|
}
|
|
11657
|
-
async function
|
|
11658
|
-
const Et = await Ge.url(`/user-metadata/${encodeURIComponent(
|
|
11648
|
+
async function ft(ht) {
|
|
11649
|
+
const Et = await Ge.url(`/user-metadata/${encodeURIComponent(ht)}`).delete().res();
|
|
11659
11650
|
return clearCache(), Et.ok;
|
|
11660
11651
|
}
|
|
11661
|
-
async function mt(
|
|
11662
|
-
return (await Ge.url(`/user-metadata/${encodeURIComponent(
|
|
11652
|
+
async function mt(ht) {
|
|
11653
|
+
return (await Ge.url(`/user-metadata/${encodeURIComponent(ht)}`).get().json())[ht];
|
|
11663
11654
|
}
|
|
11664
11655
|
async function gt() {
|
|
11665
11656
|
return await Ge.url("/user-metadata").get().json();
|
|
@@ -11667,165 +11658,165 @@ function createApi($e) {
|
|
|
11667
11658
|
async function wt() {
|
|
11668
11659
|
return await Ge.url("/tags").get().json();
|
|
11669
11660
|
}
|
|
11670
|
-
async function
|
|
11671
|
-
const Et = await Ge.url(`/tags/${encodeURIComponent(
|
|
11661
|
+
async function It(ht) {
|
|
11662
|
+
const Et = await Ge.url(`/tags/${encodeURIComponent(ht)}`).delete().res();
|
|
11672
11663
|
return clearCache(), Et.ok;
|
|
11673
11664
|
}
|
|
11674
|
-
async function bt(
|
|
11675
|
-
const Et = await Ge.url("/tags").post(encodeURIComponent(
|
|
11665
|
+
async function bt(ht) {
|
|
11666
|
+
const Et = await Ge.url("/tags").post(encodeURIComponent(ht)).res();
|
|
11676
11667
|
return triggerEvent(Events.USER_ATTRIBUTE_CHANGED, {}), clearCache(), Et.ok;
|
|
11677
11668
|
}
|
|
11678
|
-
async function ht
|
|
11679
|
-
return (await Ke.url("/tallies").get().json())[
|
|
11669
|
+
async function pt(ht) {
|
|
11670
|
+
return (await Ke.url("/tallies").get().json())[ht];
|
|
11680
11671
|
}
|
|
11681
11672
|
async function yt() {
|
|
11682
11673
|
return await Ke.url("/tallies").get().json();
|
|
11683
11674
|
}
|
|
11684
|
-
async function $t(
|
|
11685
|
-
const Et = await Ke.url(`/tallies/${
|
|
11675
|
+
async function $t(ht) {
|
|
11676
|
+
const Et = await Ke.url(`/tallies/${ht}`).delete().res();
|
|
11686
11677
|
return clearCache(), Et.ok;
|
|
11687
11678
|
}
|
|
11688
|
-
async function vt(
|
|
11689
|
-
return await Ke.url(`/tallies/${encodeURIComponent(
|
|
11679
|
+
async function vt(ht, Et) {
|
|
11680
|
+
return await Ke.url(`/tallies/${encodeURIComponent(ht)}/push`).post(Et).json();
|
|
11690
11681
|
}
|
|
11691
|
-
async function
|
|
11692
|
-
return await Ge.url(`/products/${encodeURIComponent(
|
|
11682
|
+
async function Rt(ht) {
|
|
11683
|
+
return await Ge.url(`/products/${encodeURIComponent(ht)}`).get().json();
|
|
11693
11684
|
}
|
|
11694
|
-
async function
|
|
11685
|
+
async function xt() {
|
|
11695
11686
|
return await getTokenSilently(!1) ? await Ge.url("/profile").get().json() : null;
|
|
11696
11687
|
}
|
|
11697
|
-
async function Nt(
|
|
11698
|
-
const Et = await Ge.url("/profile").patch(
|
|
11688
|
+
async function Nt(ht) {
|
|
11689
|
+
const Et = await Ge.url("/profile").patch(ht).res();
|
|
11699
11690
|
return clearCache(), Et.ok;
|
|
11700
11691
|
}
|
|
11701
11692
|
async function ut() {
|
|
11702
11693
|
return await Ge.url("/payment-issues").get().json();
|
|
11703
11694
|
}
|
|
11704
|
-
async function
|
|
11695
|
+
async function dt() {
|
|
11705
11696
|
return (await Ge.url("/profile/spotify-link").get().json()).isSpotifyLinked;
|
|
11706
11697
|
}
|
|
11707
11698
|
async function _t() {
|
|
11708
11699
|
return (await Ge.url("/profile/unlink-spotify").post().res()).ok;
|
|
11709
11700
|
}
|
|
11710
|
-
async function
|
|
11701
|
+
async function Ot(ht) {
|
|
11711
11702
|
const Et = await getTokenSilently(!1);
|
|
11712
11703
|
if (!Et)
|
|
11713
11704
|
throw new Error("No access token available");
|
|
11714
|
-
const
|
|
11715
|
-
|
|
11705
|
+
const Ct = new URL(`${getBaseUrl("spotify-oas", $e.environment)}/sesamy-callback`);
|
|
11706
|
+
Ct.searchParams.set("access_token", Et), Ct.searchParams.set("state", ht), window.location.href = Ct.toString();
|
|
11716
11707
|
}
|
|
11717
|
-
async function
|
|
11718
|
-
const Et = await Ge.url(`/products/${encodeURIComponent(
|
|
11708
|
+
async function At(ht) {
|
|
11709
|
+
const Et = await Ge.url(`/products/${encodeURIComponent(ht)}/auto-onboard`).post().json();
|
|
11719
11710
|
return Et.length && clearCache(), Et;
|
|
11720
11711
|
}
|
|
11721
|
-
async function
|
|
11722
|
-
const { shortlink:
|
|
11723
|
-
return
|
|
11712
|
+
async function kt(ht, Et = 3600) {
|
|
11713
|
+
const { shortlink: Ct } = await factory(SHORTLINK_URL).post({ url: ht, ttl: Et }).json();
|
|
11714
|
+
return Ct;
|
|
11724
11715
|
}
|
|
11725
|
-
async function
|
|
11716
|
+
async function St(ht) {
|
|
11726
11717
|
const Et = await getTokenSilently(!1, !0);
|
|
11727
|
-
let
|
|
11728
|
-
const
|
|
11729
|
-
switch (
|
|
11718
|
+
let Ct;
|
|
11719
|
+
const jt = ht.language || getLanguage(), Ft = getAttribution();
|
|
11720
|
+
switch (ht.target) {
|
|
11730
11721
|
case "account":
|
|
11731
|
-
|
|
11732
|
-
`${getBaseUrl("account", $e.environment)}/${encodeURIComponent(
|
|
11733
|
-
),
|
|
11722
|
+
Ct = new URL(
|
|
11723
|
+
`${getBaseUrl("account", $e.environment)}/${encodeURIComponent(ht.language || jt)}/subscriptions/${encodeURIComponent($e.clientId)}`
|
|
11724
|
+
), Ct.searchParams.set("sesamy-redirect-url", ht.redirectUrl || window.location.href);
|
|
11734
11725
|
break;
|
|
11735
11726
|
case "change-payment":
|
|
11736
|
-
|
|
11737
|
-
`${getBaseUrl("account", $e.environment)}/${encodeURIComponent(
|
|
11738
|
-
),
|
|
11727
|
+
Ct = new URL(
|
|
11728
|
+
`${getBaseUrl("account", $e.environment)}/${encodeURIComponent(ht.language || jt)}/subscriptions/${encodeURIComponent($e.clientId)}/${encodeURIComponent(ht.contractId)}/change-payment-method`
|
|
11729
|
+
), Ct.searchParams.set("sesamy-redirect-url", ht.redirectUrl || window.location.href);
|
|
11739
11730
|
break;
|
|
11740
11731
|
case "consume":
|
|
11741
|
-
|
|
11742
|
-
`${getBaseUrl("consume", $e.environment)}/${encodeURIComponent(
|
|
11743
|
-
),
|
|
11732
|
+
Ct = new URL(
|
|
11733
|
+
`${getBaseUrl("consume", $e.environment)}/${encodeURIComponent(ht.language || jt)}/@${encodeURIComponent($e.clientId)}/${encodeURIComponent(ht.sku)}`
|
|
11734
|
+
), ht.episodeId ? Ct.href += `/${ht.episodeId}` : Ct.href += "/listen", Ct.searchParams.set("sesamy-redirect-url", ht.redirectUrl || window.location.href);
|
|
11744
11735
|
break;
|
|
11745
11736
|
case "checkout":
|
|
11746
|
-
|
|
11737
|
+
Ct = generateCheckoutLink($e, { language: jt, ...ht }, Ft);
|
|
11747
11738
|
break;
|
|
11748
11739
|
default:
|
|
11749
11740
|
throw new Error("Invalid target");
|
|
11750
11741
|
}
|
|
11751
|
-
return Et && (
|
|
11742
|
+
return Et && (Ct.hash = `#access_token=${Et}`), ht.shorten ? kt(Ct.href, ht.ttl) : Ct.href;
|
|
11752
11743
|
}
|
|
11753
|
-
async function
|
|
11754
|
-
const Et = getAttribution(),
|
|
11755
|
-
return document.cookie.split(";").forEach((
|
|
11756
|
-
const
|
|
11757
|
-
|
|
11744
|
+
async function Tt(ht) {
|
|
11745
|
+
const Et = getAttribution(), Ct = ["_ga", "_gid", "_fbp", "_fbc"];
|
|
11746
|
+
return document.cookie.split(";").forEach((jt) => {
|
|
11747
|
+
const Ft = Et, [Ut, Ht] = jt.trim().split("=");
|
|
11748
|
+
Ct.includes(Ut) && !Ft[Ut] && (Ft[Ut] = Ht);
|
|
11758
11749
|
}), (await Ke.url("/checkouts").post({
|
|
11759
11750
|
language: getLanguage(),
|
|
11760
|
-
attribution: { ...Et, ...
|
|
11761
|
-
...
|
|
11751
|
+
attribution: { ...Et, ...ht.attribution },
|
|
11752
|
+
...ht,
|
|
11762
11753
|
vendorId: $e.clientId
|
|
11763
11754
|
})).json();
|
|
11764
11755
|
}
|
|
11765
|
-
async function
|
|
11766
|
-
return (await Ke.url(`/checkouts/${
|
|
11756
|
+
async function Lt(ht, Et) {
|
|
11757
|
+
return (await Ke.url(`/checkouts/${ht}`).patch(Et)).json();
|
|
11767
11758
|
}
|
|
11768
|
-
async function
|
|
11769
|
-
return (await Ke.url(`/checkouts/${
|
|
11759
|
+
async function Pt(ht) {
|
|
11760
|
+
return (await Ke.url(`/checkouts/${ht}`).get()).json();
|
|
11770
11761
|
}
|
|
11771
|
-
async function
|
|
11772
|
-
return (await Ke.url(`/paywalls/${
|
|
11762
|
+
async function Mt(ht) {
|
|
11763
|
+
return (await Ke.url(`/paywalls/${ht}`).get()).json();
|
|
11773
11764
|
}
|
|
11774
|
-
async function
|
|
11765
|
+
async function Bt() {
|
|
11775
11766
|
return (await Ke.url("/vendor").get()).json();
|
|
11776
11767
|
}
|
|
11777
|
-
async function
|
|
11768
|
+
async function zt() {
|
|
11778
11769
|
return (await Ge.url("/vendors").get()).json();
|
|
11779
11770
|
}
|
|
11780
|
-
async function
|
|
11781
|
-
const
|
|
11782
|
-
|
|
11771
|
+
async function Vt() {
|
|
11772
|
+
const ht = await getTokenSilently(!1), Et = new URL(`${getBaseUrl("account", $e.environment)}/subscriptions/${$e.clientId}`);
|
|
11773
|
+
ht && (Et.hash = `#access_token=${ht}`), window.location.href = Et.toString();
|
|
11783
11774
|
}
|
|
11784
11775
|
return {
|
|
11785
|
-
autoOnboardProduct:
|
|
11776
|
+
autoOnboardProduct: At,
|
|
11786
11777
|
cancelContract: rt,
|
|
11787
|
-
createCheckout:
|
|
11788
|
-
deleteTag:
|
|
11778
|
+
createCheckout: Tt,
|
|
11779
|
+
deleteTag: It,
|
|
11789
11780
|
deleteTally: $t,
|
|
11790
|
-
deleteUserMetadata:
|
|
11791
|
-
generateLink:
|
|
11781
|
+
deleteUserMetadata: ft,
|
|
11782
|
+
generateLink: St,
|
|
11792
11783
|
getBill: st,
|
|
11793
11784
|
getBills: at,
|
|
11794
|
-
getCheckout:
|
|
11785
|
+
getCheckout: Pt,
|
|
11795
11786
|
getProxyContent: Ye,
|
|
11796
11787
|
getContract: tt,
|
|
11797
|
-
getContracts:
|
|
11788
|
+
getContracts: Qe,
|
|
11798
11789
|
getEntitlement: Je,
|
|
11799
11790
|
getEntitlementAccess: Ze,
|
|
11800
11791
|
getEntitlements: We,
|
|
11801
|
-
getFulfillments:
|
|
11802
|
-
getPaywall:
|
|
11792
|
+
getFulfillments: et,
|
|
11793
|
+
getPaywall: Mt,
|
|
11803
11794
|
getPaymentIssues: ut,
|
|
11804
|
-
getProfile:
|
|
11805
|
-
getProduct:
|
|
11795
|
+
getProfile: xt,
|
|
11796
|
+
getProduct: Rt,
|
|
11806
11797
|
getSubscriptions: nt,
|
|
11807
|
-
getTally:
|
|
11798
|
+
getTally: pt,
|
|
11808
11799
|
getTallies: yt,
|
|
11809
11800
|
getTags: wt,
|
|
11810
11801
|
getTransaction: ot,
|
|
11811
11802
|
getTransactions: ct,
|
|
11812
11803
|
getUserMetadata: mt,
|
|
11813
11804
|
hasAccess: Xe,
|
|
11814
|
-
isSpotifyLinked:
|
|
11815
|
-
linkSpotify:
|
|
11805
|
+
isSpotifyLinked: dt,
|
|
11806
|
+
linkSpotify: Ot,
|
|
11816
11807
|
listUserMetadata: gt,
|
|
11817
|
-
openHostedAccountPage:
|
|
11808
|
+
openHostedAccountPage: Vt,
|
|
11818
11809
|
pushTally: vt,
|
|
11819
11810
|
setTag: bt,
|
|
11820
11811
|
setUserMetadata: lt,
|
|
11821
11812
|
unlinkSpotify: _t,
|
|
11822
|
-
updateCheckout:
|
|
11813
|
+
updateCheckout: Lt,
|
|
11823
11814
|
updateProfile: Nt,
|
|
11824
|
-
getVendorSettings:
|
|
11825
|
-
listVendors:
|
|
11815
|
+
getVendorSettings: Bt,
|
|
11816
|
+
listVendors: zt
|
|
11826
11817
|
};
|
|
11827
11818
|
}
|
|
11828
|
-
const name = "@sesamy/sesamy-js", version = "1.
|
|
11819
|
+
const name = "@sesamy/sesamy-js", version = "1.33.0";
|
|
11829
11820
|
function i$5($e, De, Fe, He, Be) {
|
|
11830
11821
|
for (De = De.split ? De.split(".") : De, He = 0; He < De.length; He++) $e = $e ? $e[De[He]] : Be;
|
|
11831
11822
|
return $e === Be ? Fe : $e;
|
|
@@ -12030,35 +12021,35 @@ function P($e, De, Fe) {
|
|
|
12030
12021
|
function Ze() {
|
|
12031
12022
|
return Ge;
|
|
12032
12023
|
}
|
|
12033
|
-
function Ye(
|
|
12034
|
-
if (typeof
|
|
12024
|
+
function Ye(Qe) {
|
|
12025
|
+
if (typeof Qe !== y) throw new Error("Listener" + E$1);
|
|
12035
12026
|
var tt = !0;
|
|
12036
|
-
return Je(), We.push(
|
|
12027
|
+
return Je(), We.push(Qe), function() {
|
|
12037
12028
|
if (tt) {
|
|
12038
12029
|
tt = !1, Je();
|
|
12039
|
-
var rt = We.indexOf(
|
|
12030
|
+
var rt = We.indexOf(Qe);
|
|
12040
12031
|
We.splice(rt, 1);
|
|
12041
12032
|
}
|
|
12042
12033
|
};
|
|
12043
12034
|
}
|
|
12044
|
-
function Qe
|
|
12045
|
-
if (!on(
|
|
12046
|
-
if (typeof
|
|
12035
|
+
function et(Qe) {
|
|
12036
|
+
if (!on(Qe)) throw new Error("Act != obj");
|
|
12037
|
+
if (typeof Qe.type === b$1) throw new Error("ActType " + b$1);
|
|
12047
12038
|
if (Xe) throw new Error("Dispatch in reducer");
|
|
12048
12039
|
try {
|
|
12049
|
-
Xe = !0, Ge = Be(Ge,
|
|
12040
|
+
Xe = !0, Ge = Be(Ge, Qe);
|
|
12050
12041
|
} finally {
|
|
12051
12042
|
Xe = !1;
|
|
12052
12043
|
}
|
|
12053
12044
|
for (var tt = Ke = We, rt = 0; rt < tt.length; rt++) (0, tt[rt])();
|
|
12054
|
-
return
|
|
12045
|
+
return Qe;
|
|
12055
12046
|
}
|
|
12056
|
-
return
|
|
12057
|
-
if (typeof
|
|
12058
|
-
Be =
|
|
12047
|
+
return et({ type: "@@redux/INIT" }), (He = { dispatch: et, subscribe: Ye, getState: Ze, replaceReducer: function(Qe) {
|
|
12048
|
+
if (typeof Qe !== y) throw new Error("next reducer" + E$1);
|
|
12049
|
+
Be = Qe, et({ type: "@@redux/INIT" });
|
|
12059
12050
|
} })[w] = function() {
|
|
12060
|
-
var
|
|
12061
|
-
return (
|
|
12051
|
+
var Qe, tt = Ye;
|
|
12052
|
+
return (Qe = { subscribe: function(rt) {
|
|
12062
12053
|
if (typeof rt != "object") throw new TypeError("Observer != obj");
|
|
12063
12054
|
function nt() {
|
|
12064
12055
|
rt.next && rt.next(Ze());
|
|
@@ -12066,7 +12057,7 @@ function P($e, De, Fe) {
|
|
|
12066
12057
|
return nt(), { unsubscribe: tt(nt) };
|
|
12067
12058
|
} })[w] = function() {
|
|
12068
12059
|
return this;
|
|
12069
|
-
},
|
|
12060
|
+
}, Qe;
|
|
12070
12061
|
}, He;
|
|
12071
12062
|
}
|
|
12072
12063
|
function S($e, De) {
|
|
@@ -12113,18 +12104,18 @@ function C$1($e) {
|
|
|
12113
12104
|
We.anonymousId !== Ke.anonymousId && De(A$1, Ke.anonymousId), Je || De(_, Ke.userId), Xe.traits && De(x$1, v({}, Je && We.traits ? We.traits : {}, Xe.traits));
|
|
12114
12105
|
var Ze = Object.keys(Be.params);
|
|
12115
12106
|
if (Ze.length) {
|
|
12116
|
-
var Ye = Ge.an_uid,
|
|
12107
|
+
var Ye = Ge.an_uid, et = Ge.an_event, Qe = Ze.reduce(function(tt, rt) {
|
|
12117
12108
|
if (rt.match(U) || rt.match(/^(d|g)clid/)) {
|
|
12118
12109
|
var nt = rt.replace(U, "");
|
|
12119
12110
|
tt.campaign[nt === "campaign" ? "name" : nt] = Ge[rt];
|
|
12120
12111
|
}
|
|
12121
12112
|
return rt.match(V) && (tt.props[rt.replace(V, "")] = Ge[rt]), rt.match(L$1) && (tt.traits[rt.replace(L$1, "")] = Ge[rt]), tt;
|
|
12122
12113
|
}, { campaign: {}, props: {}, traits: {} });
|
|
12123
|
-
Fe.dispatch(v({ type: q.params, raw: Ge },
|
|
12124
|
-
return $e.identify(Ye,
|
|
12125
|
-
}, 0),
|
|
12126
|
-
return $e.track(
|
|
12127
|
-
}, 0), Object.keys(
|
|
12114
|
+
Fe.dispatch(v({ type: q.params, raw: Ge }, Qe, Ye ? { userId: Ye } : {})), Ye && setTimeout(function() {
|
|
12115
|
+
return $e.identify(Ye, Qe.traits);
|
|
12116
|
+
}, 0), et && setTimeout(function() {
|
|
12117
|
+
return $e.track(et, Qe.props);
|
|
12118
|
+
}, 0), Object.keys(Qe.campaign).length && Fe.dispatch({ type: q.campaign, campaign: Qe.campaign });
|
|
12128
12119
|
}
|
|
12129
12120
|
}
|
|
12130
12121
|
return He(Be);
|
|
@@ -12162,14 +12153,14 @@ function B($e) {
|
|
|
12162
12153
|
return function(Ke) {
|
|
12163
12154
|
return function(We) {
|
|
12164
12155
|
var Xe = We.userId, Je = We.traits, Ze = We.options;
|
|
12165
|
-
if (We.type === q.reset && ([_, x$1, A$1].forEach(function(
|
|
12166
|
-
He(
|
|
12167
|
-
}), [k$1, T, "traits"].forEach(function(
|
|
12168
|
-
i$4(D(
|
|
12156
|
+
if (We.type === q.reset && ([_, x$1, A$1].forEach(function(Qe) {
|
|
12157
|
+
He(Qe);
|
|
12158
|
+
}), [k$1, T, "traits"].forEach(function(Qe) {
|
|
12159
|
+
i$4(D(Qe));
|
|
12169
12160
|
})), We.type === q.identify) {
|
|
12170
12161
|
Be(A$1) || Fe(A$1, y$1());
|
|
12171
|
-
var Ye = Be(_),
|
|
12172
|
-
Ye && Ye !== Xe && Ge.dispatch({ type: q.userIdChanged, old: { userId: Ye, traits:
|
|
12162
|
+
var Ye = Be(_), et = Be(x$1) || {};
|
|
12163
|
+
Ye && Ye !== Xe && Ge.dispatch({ type: q.userIdChanged, old: { userId: Ye, traits: et }, new: { userId: Xe, traits: Je }, options: Ze }), Xe && Fe(_, Xe), Je && Fe(x$1, v({}, et, Je));
|
|
12173
12164
|
}
|
|
12174
12165
|
return Ke(We);
|
|
12175
12166
|
};
|
|
@@ -12195,27 +12186,27 @@ function H($e) {
|
|
|
12195
12186
|
function F$1($e, De, Fe) {
|
|
12196
12187
|
var He = {}, Be = De(), Ge = $e.getState(), Ke = Ge.plugins, We = Ge.queue, Xe = Ge.user;
|
|
12197
12188
|
if (!Ge.context.offline && We && We.actions && We.actions.length) {
|
|
12198
|
-
var Je = We.actions.reduce(function(Ye,
|
|
12199
|
-
return Ke[
|
|
12189
|
+
var Je = We.actions.reduce(function(Ye, et, Qe) {
|
|
12190
|
+
return Ke[et.plugin].loaded ? (Ye.process.push(et), Ye.processIndex.push(Qe)) : (Ye.requeue.push(et), Ye.requeueIndex.push(Qe)), Ye;
|
|
12200
12191
|
}, { processIndex: [], process: [], requeue: [], requeueIndex: [] });
|
|
12201
12192
|
if (Je.processIndex && Je.processIndex.length) {
|
|
12202
12193
|
Je.processIndex.forEach(function(Ye) {
|
|
12203
|
-
var
|
|
12194
|
+
var et = We.actions[Ye], Qe = et.plugin, tt = et.payload.type, rt = Be[Qe][tt];
|
|
12204
12195
|
if (rt && W$1(rt)) {
|
|
12205
12196
|
var nt, at = function(ot, lt) {
|
|
12206
|
-
return ot === void 0 && (ot = {}), lt === void 0 && (lt = {}), [k$1, T].reduce(function(
|
|
12207
|
-
return ot.hasOwnProperty(mt) && lt[mt] && lt[mt] !== ot[mt] && (
|
|
12197
|
+
return ot === void 0 && (ot = {}), lt === void 0 && (lt = {}), [k$1, T].reduce(function(ft, mt) {
|
|
12198
|
+
return ot.hasOwnProperty(mt) && lt[mt] && lt[mt] !== ot[mt] && (ft[mt] = lt[mt]), ft;
|
|
12208
12199
|
}, ot);
|
|
12209
|
-
}(
|
|
12210
|
-
if (!st && (nt = rt({ payload: at, config: Ke[
|
|
12200
|
+
}(et.payload, Xe), st = He[at.meta.rid];
|
|
12201
|
+
if (!st && (nt = rt({ payload: at, config: Ke[Qe].config, instance: Fe, abort: H })) && on(nt) && nt.abort) return void (He[at.meta.rid] = !0);
|
|
12211
12202
|
if (!st) {
|
|
12212
|
-
var ct = tt + ":" +
|
|
12203
|
+
var ct = tt + ":" + Qe;
|
|
12213
12204
|
$e.dispatch(v({}, at, { type: ct, _: { called: ct, from: "queueDrain" } }));
|
|
12214
12205
|
}
|
|
12215
12206
|
}
|
|
12216
12207
|
});
|
|
12217
|
-
var Ze = We.actions.filter(function(Ye,
|
|
12218
|
-
return !~Je.processIndex.indexOf(
|
|
12208
|
+
var Ze = We.actions.filter(function(Ye, et) {
|
|
12209
|
+
return !~Je.processIndex.indexOf(et);
|
|
12219
12210
|
});
|
|
12220
12211
|
We.actions = Ze;
|
|
12221
12212
|
}
|
|
@@ -12224,30 +12215,30 @@ function F$1($e, De, Fe) {
|
|
|
12224
12215
|
var G$1 = function($e) {
|
|
12225
12216
|
var De = $e.data, Fe = $e.action, He = $e.instance, Be = $e.state, Ge = $e.allPlugins, Ke = $e.allMatches, We = $e.store, Xe = $e.EVENTS;
|
|
12226
12217
|
try {
|
|
12227
|
-
var Je = Be.plugins, Ze = Be.context, Ye = Fe.type,
|
|
12218
|
+
var Je = Be.plugins, Ze = Be.context, Ye = Fe.type, et = Ye.match(K), Qe = De.exact.map(function(nt) {
|
|
12228
12219
|
return nt.pluginName;
|
|
12229
12220
|
});
|
|
12230
|
-
|
|
12221
|
+
et && (Qe = Ke.during.map(function(nt) {
|
|
12231
12222
|
return nt.pluginName;
|
|
12232
12223
|
}));
|
|
12233
12224
|
var tt = /* @__PURE__ */ function(nt, at) {
|
|
12234
12225
|
return function(st, ct, ot) {
|
|
12235
|
-
var lt = ct.config,
|
|
12226
|
+
var lt = ct.config, ft = ct.name, mt = ft + "." + st.type;
|
|
12236
12227
|
ot && (mt = ot.event);
|
|
12237
|
-
var gt = st.type.match(K) ? /* @__PURE__ */ function(wt,
|
|
12228
|
+
var gt = st.type.match(K) ? /* @__PURE__ */ function(wt, It, bt, pt, yt) {
|
|
12238
12229
|
return function($t, vt) {
|
|
12239
|
-
var
|
|
12240
|
-
if (
|
|
12241
|
-
return v({}, yt, { abort: { reason: $t, plugins:
|
|
12230
|
+
var Rt = pt ? pt.name : wt, xt = vt && ae(vt) ? vt : bt;
|
|
12231
|
+
if (pt && (!(xt = vt && ae(vt) ? vt : [wt]).includes(wt) || xt.length !== 1)) throw new Error("Method " + It + " can only abort " + wt + " plugin. " + JSON.stringify(xt) + " input valid");
|
|
12232
|
+
return v({}, yt, { abort: { reason: $t, plugins: xt, caller: It, _: Rt } });
|
|
12242
12233
|
};
|
|
12243
|
-
}(
|
|
12234
|
+
}(ft, mt, at, ot, st) : /* @__PURE__ */ function(wt, It) {
|
|
12244
12235
|
return function() {
|
|
12245
|
-
throw new Error(wt.type + " action not cancellable. Remove abort in " +
|
|
12236
|
+
throw new Error(wt.type + " action not cancellable. Remove abort in " + It);
|
|
12246
12237
|
};
|
|
12247
12238
|
}(st, mt);
|
|
12248
12239
|
return { payload: ce(st), instance: nt, config: lt || {}, abort: gt };
|
|
12249
12240
|
};
|
|
12250
|
-
}(He,
|
|
12241
|
+
}(He, Qe), rt = De.exact.reduce(function(nt, at) {
|
|
12251
12242
|
var st = at.pluginName, ct = at.methodName, ot = !1;
|
|
12252
12243
|
return ct.match(/^initialize/) || ct.match(/^reset/) || (ot = !Je[st].loaded), Ze.offline && ct.match(/^(page|track|identify)/) && (ot = !0), nt["" + st] = ot, nt;
|
|
12253
12244
|
}, {});
|
|
@@ -12258,34 +12249,34 @@ var G$1 = function($e) {
|
|
|
12258
12249
|
function lt() {
|
|
12259
12250
|
return Promise.resolve(ot);
|
|
12260
12251
|
}
|
|
12261
|
-
var
|
|
12252
|
+
var ft = function() {
|
|
12262
12253
|
if (De.namespaced && De.namespaced[ct]) return Promise.resolve(De.namespaced[ct].reduce(function(mt, gt, wt) {
|
|
12263
12254
|
try {
|
|
12264
|
-
return Promise.resolve(mt).then(function(
|
|
12255
|
+
return Promise.resolve(mt).then(function(It) {
|
|
12265
12256
|
return gt.method && W$1(gt.method) ? (function($t, vt) {
|
|
12266
|
-
var
|
|
12267
|
-
if (
|
|
12268
|
-
var
|
|
12269
|
-
throw new Error([vt + " plugin is calling method " + $t, "Plugins cant call self", "Use " +
|
|
12257
|
+
var Rt = ue($t);
|
|
12258
|
+
if (Rt && Rt.name === vt) {
|
|
12259
|
+
var xt = ue(Rt.method);
|
|
12260
|
+
throw new Error([vt + " plugin is calling method " + $t, "Plugins cant call self", "Use " + Rt.method + " " + (xt ? "or " + xt.method : "") + " in " + vt + " plugin insteadof " + $t].join(`
|
|
12270
12261
|
`));
|
|
12271
12262
|
}
|
|
12272
|
-
}(gt.methodName, gt.pluginName), Promise.resolve(gt.method({ payload:
|
|
12273
|
-
return v({}, bt, { abort: { reason: $t, plugins: vt || [
|
|
12263
|
+
}(gt.methodName, gt.pluginName), Promise.resolve(gt.method({ payload: It, instance: He, abort: (bt = It, pt = ct, yt = gt.pluginName, function($t, vt) {
|
|
12264
|
+
return v({}, bt, { abort: { reason: $t, plugins: vt || [pt], caller: Ye, from: yt || pt } });
|
|
12274
12265
|
}), config: ee(gt.pluginName, Je, Ge), plugins: Je })).then(function($t) {
|
|
12275
12266
|
var vt = on($t) ? $t : {};
|
|
12276
|
-
return Promise.resolve(v({},
|
|
12277
|
-
})) :
|
|
12278
|
-
var bt,
|
|
12267
|
+
return Promise.resolve(v({}, It, vt));
|
|
12268
|
+
})) : It;
|
|
12269
|
+
var bt, pt, yt;
|
|
12279
12270
|
});
|
|
12280
|
-
} catch (
|
|
12281
|
-
return Promise.reject(
|
|
12271
|
+
} catch (It) {
|
|
12272
|
+
return Promise.reject(It);
|
|
12282
12273
|
}
|
|
12283
12274
|
}, Promise.resolve(Fe))).then(function(mt) {
|
|
12284
12275
|
ot[ct] = mt;
|
|
12285
12276
|
});
|
|
12286
12277
|
ot[ct] = Fe;
|
|
12287
12278
|
}();
|
|
12288
|
-
return
|
|
12279
|
+
return ft && ft.then ? ft.then(lt) : lt();
|
|
12289
12280
|
});
|
|
12290
12281
|
} catch (ot) {
|
|
12291
12282
|
return Promise.reject(ot);
|
|
@@ -12293,21 +12284,21 @@ var G$1 = function($e) {
|
|
|
12293
12284
|
}, Promise.resolve({}))).then(function(nt) {
|
|
12294
12285
|
return Promise.resolve(De.exact.reduce(function(at, st, ct) {
|
|
12295
12286
|
try {
|
|
12296
|
-
var ot = De.exact.length === ct + 1, lt = st.pluginName,
|
|
12287
|
+
var ot = De.exact.length === ct + 1, lt = st.pluginName, ft = Ge[lt];
|
|
12297
12288
|
return Promise.resolve(at).then(function(mt) {
|
|
12298
12289
|
var gt = nt[lt] ? nt[lt] : {};
|
|
12299
|
-
if (
|
|
12290
|
+
if (et && (gt = mt), re(gt, lt)) return Z({ data: gt, method: Ye, instance: He, pluginName: lt, store: We }), Promise.resolve(mt);
|
|
12300
12291
|
if (re(mt, lt)) return ot && Z({ data: mt, method: Ye, instance: He, store: We }), Promise.resolve(mt);
|
|
12301
12292
|
if (rt.hasOwnProperty(lt) && rt[lt] === !0) return We.dispatch({ type: "queue", plugin: lt, payload: gt, _: { called: "queue", from: "queueMechanism" } }), Promise.resolve(mt);
|
|
12302
12293
|
var wt = tt(nt[lt], Ge[lt]);
|
|
12303
|
-
return Promise.resolve(
|
|
12304
|
-
var bt = on(
|
|
12294
|
+
return Promise.resolve(ft[Ye]({ abort: wt.abort, payload: gt, instance: He, config: ee(lt, Je, Ge), plugins: Je })).then(function(It) {
|
|
12295
|
+
var bt = on(It) ? It : {}, pt = v({}, mt, bt), yt = nt[lt];
|
|
12305
12296
|
if (re(yt, lt)) Z({ data: yt, method: Ye, instance: He, pluginName: lt, store: We });
|
|
12306
12297
|
else {
|
|
12307
12298
|
var $t = Ye + ":" + lt;
|
|
12308
|
-
($t.match(/:/g) || []).length < 2 && !Ye.match(Q) && !Ye.match(Y) && He.dispatch(v({},
|
|
12299
|
+
($t.match(/:/g) || []).length < 2 && !Ye.match(Q) && !Ye.match(Y) && He.dispatch(v({}, et ? pt : gt, { type: $t, _: { called: $t, from: "submethod" } }));
|
|
12309
12300
|
}
|
|
12310
|
-
return Promise.resolve(
|
|
12301
|
+
return Promise.resolve(pt);
|
|
12311
12302
|
});
|
|
12312
12303
|
});
|
|
12313
12304
|
} catch (mt) {
|
|
@@ -12382,18 +12373,18 @@ function se($e, De, Fe) {
|
|
|
12382
12373
|
if (Je === q.enablePlugin && Be.dispatch({ type: q.initializeStart, plugins: Ze, disabled: [], fromEnable: !0, meta: Ke.meta }), Je === q.disablePlugin && setTimeout(function() {
|
|
12383
12374
|
return J$1(Ke.meta.rid, { payload: Ke });
|
|
12384
12375
|
}, 0), Je === q.initializeEnd) {
|
|
12385
|
-
var
|
|
12376
|
+
var et = De(), Qe = Object.keys(et), tt = Qe.filter(function(ot) {
|
|
12386
12377
|
return Ze.includes(ot);
|
|
12387
12378
|
}).map(function(ot) {
|
|
12388
|
-
return
|
|
12379
|
+
return et[ot];
|
|
12389
12380
|
}), rt = [], nt = [], at = Ke.disabled, st = tt.map(function(ot) {
|
|
12390
|
-
var lt = ot.loaded,
|
|
12381
|
+
var lt = ot.loaded, ft = ot.name, mt = ot.config;
|
|
12391
12382
|
return W(ot, function() {
|
|
12392
12383
|
return lt({ config: mt });
|
|
12393
12384
|
}, 1e4).then(function(gt) {
|
|
12394
|
-
return He[
|
|
12385
|
+
return He[ft] || (Be.dispatch({ type: q.pluginReadyType(ft), name: ft, events: Object.keys(ot).filter(function(wt) {
|
|
12395
12386
|
return !M.includes(wt);
|
|
12396
|
-
}) }), He[
|
|
12387
|
+
}) }), He[ft] = !0), rt = rt.concat(ft), ot;
|
|
12397
12388
|
}).catch(function(gt) {
|
|
12398
12389
|
if (gt instanceof Error) throw new Error(gt);
|
|
12399
12390
|
return nt = nt.concat(gt.name), gt;
|
|
@@ -12402,66 +12393,66 @@ function se($e, De, Fe) {
|
|
|
12402
12393
|
Promise.all(st).then(function(ot) {
|
|
12403
12394
|
var lt = { plugins: rt, failed: nt, disabled: at };
|
|
12404
12395
|
setTimeout(function() {
|
|
12405
|
-
|
|
12396
|
+
Qe.length === st.length + at.length && Be.dispatch(v({}, { type: q.ready }, lt));
|
|
12406
12397
|
}, 0);
|
|
12407
12398
|
});
|
|
12408
12399
|
}
|
|
12409
12400
|
var ct = function() {
|
|
12410
12401
|
if (Je !== q.bootstrap) return /^ready:([^:]*)$/.test(Je) && setTimeout(function() {
|
|
12411
12402
|
return F$1(Be, De, $e);
|
|
12412
|
-
}, 0), Promise.resolve(function(ot, lt,
|
|
12403
|
+
}, 0), Promise.resolve(function(ot, lt, ft, mt, gt) {
|
|
12413
12404
|
try {
|
|
12414
|
-
var wt = W$1(lt) ? lt() : lt,
|
|
12405
|
+
var wt = W$1(lt) ? lt() : lt, It = ot.type, bt = It.replace(K, "");
|
|
12415
12406
|
if (ot._ && ot._.called) return Promise.resolve(ot);
|
|
12416
|
-
var
|
|
12417
|
-
var
|
|
12418
|
-
return Q$1(
|
|
12407
|
+
var pt = ft.getState(), yt = (Rt = wt, (xt = pt.plugins) === void 0 && (xt = {}), (Nt = ot.options) === void 0 && (Nt = {}), Object.keys(Rt).filter(function(ut) {
|
|
12408
|
+
var dt = Nt.plugins || {};
|
|
12409
|
+
return Q$1(dt[ut]) ? dt[ut] : dt.all !== !1 && (!xt[ut] || xt[ut].enabled !== !1);
|
|
12419
12410
|
}).map(function(ut) {
|
|
12420
|
-
return
|
|
12411
|
+
return Rt[ut];
|
|
12421
12412
|
}));
|
|
12422
|
-
|
|
12423
|
-
var
|
|
12424
|
-
return ot.plugins.includes(ut) && !
|
|
12413
|
+
It === q.initializeStart && ot.fromEnable && (yt = Object.keys(pt.plugins).filter(function(ut) {
|
|
12414
|
+
var dt = pt.plugins[ut];
|
|
12415
|
+
return ot.plugins.includes(ut) && !dt.initialized;
|
|
12425
12416
|
}).map(function(ut) {
|
|
12426
12417
|
return wt[ut];
|
|
12427
12418
|
}));
|
|
12428
12419
|
var $t = yt.map(function(ut) {
|
|
12429
12420
|
return ut.name;
|
|
12430
|
-
}), vt = function(ut,
|
|
12431
|
-
var
|
|
12432
|
-
return ne(
|
|
12421
|
+
}), vt = function(ut, dt, _t) {
|
|
12422
|
+
var Ot = te(ut).map(function(At) {
|
|
12423
|
+
return ne(At, dt);
|
|
12433
12424
|
});
|
|
12434
|
-
return
|
|
12435
|
-
var
|
|
12436
|
-
return ne(
|
|
12437
|
-
}),
|
|
12438
|
-
return
|
|
12439
|
-
}, { before:
|
|
12440
|
-
}(
|
|
12441
|
-
return Promise.resolve(G$1({ action: ot, data: { exact: vt.before, namespaced: vt.beforeNS }, state:
|
|
12442
|
-
function
|
|
12443
|
-
var
|
|
12444
|
-
if (
|
|
12445
|
-
|
|
12425
|
+
return dt.reduce(function(At, kt) {
|
|
12426
|
+
var St = kt.name, Tt = te(ut, St).map(function(Bt) {
|
|
12427
|
+
return ne(Bt, dt);
|
|
12428
|
+
}), Lt = Tt[0], Pt = Tt[1], Mt = Tt[2];
|
|
12429
|
+
return Lt.length && (At.beforeNS[St] = Lt), Pt.length && (At.duringNS[St] = Pt), Mt.length && (At.afterNS[St] = Mt), At;
|
|
12430
|
+
}, { before: Ot[0], beforeNS: {}, during: Ot[1], duringNS: {}, after: Ot[2], afterNS: {} });
|
|
12431
|
+
}(It, yt);
|
|
12432
|
+
return Promise.resolve(G$1({ action: ot, data: { exact: vt.before, namespaced: vt.beforeNS }, state: pt, allPlugins: wt, allMatches: vt, instance: ft, store: mt, EVENTS: gt })).then(function(ut) {
|
|
12433
|
+
function dt() {
|
|
12434
|
+
var At = function() {
|
|
12435
|
+
if (It.match(K)) return Promise.resolve(G$1({ action: v({}, _t, { type: bt + "End" }), data: { exact: vt.after, namespaced: vt.afterNS }, state: pt, allPlugins: wt, allMatches: vt, instance: ft, store: mt, EVENTS: gt })).then(function(kt) {
|
|
12436
|
+
kt.meta && kt.meta.hasCallback && J$1(kt.meta.rid, { payload: kt });
|
|
12446
12437
|
});
|
|
12447
12438
|
}();
|
|
12448
|
-
return
|
|
12439
|
+
return At && At.then ? At.then(function() {
|
|
12449
12440
|
return ut;
|
|
12450
12441
|
}) : ut;
|
|
12451
12442
|
}
|
|
12452
12443
|
if (ie(ut, $t.length)) return ut;
|
|
12453
|
-
var _t,
|
|
12454
|
-
if (
|
|
12455
|
-
_t =
|
|
12444
|
+
var _t, Ot = function() {
|
|
12445
|
+
if (It !== bt) return Promise.resolve(G$1({ action: v({}, ut, { type: bt }), data: { exact: vt.during, namespaced: vt.duringNS }, state: pt, allPlugins: wt, allMatches: vt, instance: ft, store: mt, EVENTS: gt })).then(function(At) {
|
|
12446
|
+
_t = At;
|
|
12456
12447
|
});
|
|
12457
12448
|
_t = ut;
|
|
12458
12449
|
}();
|
|
12459
|
-
return
|
|
12450
|
+
return Ot && Ot.then ? Ot.then(dt) : dt();
|
|
12460
12451
|
});
|
|
12461
12452
|
} catch (ut) {
|
|
12462
12453
|
return Promise.reject(ut);
|
|
12463
12454
|
}
|
|
12464
|
-
var
|
|
12455
|
+
var Rt, xt, Nt;
|
|
12465
12456
|
}(Ke, De, $e, Be, Fe)).then(function(ot) {
|
|
12466
12457
|
return We = 1, Ge(ot);
|
|
12467
12458
|
});
|
|
@@ -12584,13 +12575,13 @@ function we($e) {
|
|
|
12584
12575
|
}
|
|
12585
12576
|
var Ee, Pe, Se, Ne, Oe = function($e) {
|
|
12586
12577
|
if ($e === void 0 && ($e = {}), !$$1) return $e;
|
|
12587
|
-
var De = document, Fe = De.title, He = De.referrer, Be = window, Ge = Be.location, Ke = Be.innerWidth, We = Be.innerHeight, Xe = Ge.hash, Je = Ge.search, Ze = function(
|
|
12588
|
-
var
|
|
12578
|
+
var De = document, Fe = De.title, He = De.referrer, Be = window, Ge = Be.location, Ke = Be.innerWidth, We = Be.innerHeight, Xe = Ge.hash, Je = Ge.search, Ze = function(et) {
|
|
12579
|
+
var Qe = function() {
|
|
12589
12580
|
if ($$1) {
|
|
12590
12581
|
for (var tt, rt = document.getElementsByTagName("link"), nt = 0; tt = rt[nt]; nt++) if (tt.getAttribute("rel") === "canonical") return tt.getAttribute("href");
|
|
12591
12582
|
}
|
|
12592
12583
|
}();
|
|
12593
|
-
return
|
|
12584
|
+
return Qe ? Qe.match(/\?/) ? Qe : Qe + et : window.location.href.replace(Ie, "");
|
|
12594
12585
|
}(Je), Ye = { title: Fe, url: Ze, path: we(Ze), hash: Xe, search: Je, width: Ke, height: We };
|
|
12595
12586
|
return He && He !== "" && (Ye.referrer = He), v({}, Ye, $e);
|
|
12596
12587
|
}, Ae = { last: {}, history: [] };
|
|
@@ -12673,28 +12664,28 @@ function Ve($e, De, Fe) {
|
|
|
12673
12664
|
}
|
|
12674
12665
|
function Le($e) {
|
|
12675
12666
|
$e === void 0 && ($e = {});
|
|
12676
|
-
var De = $e.reducers || {}, Fe = $e.initialUser || {}, He = ($e.plugins || []).reduce(function(ut,
|
|
12677
|
-
if (W$1(
|
|
12678
|
-
if (
|
|
12679
|
-
|
|
12680
|
-
var _t =
|
|
12681
|
-
return
|
|
12667
|
+
var De = $e.reducers || {}, Fe = $e.initialUser || {}, He = ($e.plugins || []).reduce(function(ut, dt) {
|
|
12668
|
+
if (W$1(dt)) return ut.middlewares = ut.middlewares.concat(dt), ut;
|
|
12669
|
+
if (dt.NAMESPACE && (dt.name = dt.NAMESPACE), !dt.name) throw new Error("https://lytics.dev/errors/1");
|
|
12670
|
+
dt.config || (dt.config = {});
|
|
12671
|
+
var _t = dt.EVENTS ? Object.keys(dt.EVENTS).map(function(kt) {
|
|
12672
|
+
return dt.EVENTS[kt];
|
|
12682
12673
|
}) : [];
|
|
12683
|
-
ut.pluginEnabled[
|
|
12684
|
-
var
|
|
12685
|
-
return
|
|
12686
|
-
for (var
|
|
12687
|
-
return
|
|
12688
|
-
}),
|
|
12689
|
-
}, {}), delete
|
|
12690
|
-
var
|
|
12691
|
-
if (ut.events = Array.from(
|
|
12692
|
-
return ut.plugins[
|
|
12674
|
+
ut.pluginEnabled[dt.name] = !(dt.enabled === !1 || dt.config.enabled === !1), delete dt.enabled, dt.methods && (ut.methods[dt.name] = Object.keys(dt.methods).reduce(function(kt, St) {
|
|
12675
|
+
var Tt;
|
|
12676
|
+
return kt[St] = (Tt = dt.methods[St], function() {
|
|
12677
|
+
for (var Lt = Array.prototype.slice.call(arguments), Pt = new Array(Tt.length), Mt = 0; Mt < Lt.length; Mt++) Pt[Mt] = Lt[Mt];
|
|
12678
|
+
return Pt[Pt.length] = lt, Tt.apply({ instance: lt }, Pt);
|
|
12679
|
+
}), kt;
|
|
12680
|
+
}, {}), delete dt.methods);
|
|
12681
|
+
var Ot = Object.keys(dt).concat(_t), At = new Set(ut.events.concat(Ot));
|
|
12682
|
+
if (ut.events = Array.from(At), ut.pluginsArray = ut.pluginsArray.concat(dt), ut.plugins[dt.name]) throw new Error(dt.name + "AlreadyLoaded");
|
|
12683
|
+
return ut.plugins[dt.name] = dt, ut.plugins[dt.name].loaded || (ut.plugins[dt.name].loaded = function() {
|
|
12693
12684
|
return !0;
|
|
12694
12685
|
}), ut;
|
|
12695
12686
|
}, { plugins: {}, pluginEnabled: {}, methods: {}, pluginsArray: [], middlewares: [], events: [] }), Be = $e.storage ? $e.storage : { getItem: a$4, setItem: f$1, removeItem: i$4 }, Ge = /* @__PURE__ */ function(ut) {
|
|
12696
|
-
return function(
|
|
12697
|
-
return _t.getState("user")[
|
|
12687
|
+
return function(dt, _t, Ot) {
|
|
12688
|
+
return _t.getState("user")[dt] || (Ot && on(Ot) && Ot[dt] ? Ot[dt] : $(ut)[dt] || a$4(D(dt)) || null);
|
|
12698
12689
|
};
|
|
12699
12690
|
}(Be), Ke = He.plugins, We = He.events.filter(function(ut) {
|
|
12700
12691
|
return !M.includes(ut);
|
|
@@ -12702,183 +12693,183 @@ function Le($e) {
|
|
|
12702
12693
|
return !M.includes(ut);
|
|
12703
12694
|
})), Je = Array.from(Xe).sort(), Ze = function() {
|
|
12704
12695
|
return Ke;
|
|
12705
|
-
}, Ye = new fe(),
|
|
12696
|
+
}, Ye = new fe(), et = Ye.addMiddleware, Qe = Ye.removeMiddleware, tt = Ye.dynamicMiddlewares, rt = function() {
|
|
12706
12697
|
throw new Error("Abort disabled inListener");
|
|
12707
12698
|
}, nt = s$1(), at = $(Be), st = v({}, at, Fe, nt.an_uid ? { userId: nt.an_uid } : {}, nt.an_aid ? { anonymousId: nt.an_aid } : {});
|
|
12708
12699
|
st.anonymousId || (st.anonymousId = y$1());
|
|
12709
|
-
var ct = v({ enable: function(ut,
|
|
12700
|
+
var ct = v({ enable: function(ut, dt) {
|
|
12710
12701
|
return new Promise(function(_t) {
|
|
12711
|
-
vt.dispatch({ type: q.enablePlugin, plugins: Ue(ut), _: { originalAction: q.enablePlugin } }, _t, [
|
|
12702
|
+
vt.dispatch({ type: q.enablePlugin, plugins: Ue(ut), _: { originalAction: q.enablePlugin } }, _t, [dt]);
|
|
12712
12703
|
});
|
|
12713
|
-
}, disable: function(ut,
|
|
12704
|
+
}, disable: function(ut, dt) {
|
|
12714
12705
|
return new Promise(function(_t) {
|
|
12715
|
-
vt.dispatch({ type: q.disablePlugin, plugins: Ue(ut), _: { originalAction: q.disablePlugin } }, _t, [
|
|
12706
|
+
vt.dispatch({ type: q.disablePlugin, plugins: Ue(ut), _: { originalAction: q.disablePlugin } }, _t, [dt]);
|
|
12716
12707
|
});
|
|
12717
|
-
} }, He.methods), ot = !1, lt = { identify: function(ut,
|
|
12708
|
+
} }, He.methods), ot = !1, lt = { identify: function(ut, dt, _t, Ot) {
|
|
12718
12709
|
try {
|
|
12719
|
-
var
|
|
12720
|
-
f$1(D(k$1),
|
|
12721
|
-
var
|
|
12722
|
-
return Promise.resolve(new Promise(function(
|
|
12723
|
-
vt.dispatch(v({ type: q.identifyStart, userId:
|
|
12710
|
+
var At = q$1(ut) ? ut : null, kt = on(ut) ? ut : dt, St = _t || {}, Tt = lt.user();
|
|
12711
|
+
f$1(D(k$1), At);
|
|
12712
|
+
var Lt = At || kt.userId || Ge(k$1, lt, kt);
|
|
12713
|
+
return Promise.resolve(new Promise(function(Pt) {
|
|
12714
|
+
vt.dispatch(v({ type: q.identifyStart, userId: Lt, traits: kt || {}, options: St, anonymousId: Tt.anonymousId }, Tt.id && Tt.id !== At && { previousId: Tt.id }), Pt, [dt, _t, Ot]);
|
|
12724
12715
|
}));
|
|
12725
|
-
} catch (
|
|
12726
|
-
return Promise.reject(
|
|
12716
|
+
} catch (Pt) {
|
|
12717
|
+
return Promise.reject(Pt);
|
|
12727
12718
|
}
|
|
12728
|
-
}, track: function(ut,
|
|
12719
|
+
}, track: function(ut, dt, _t, Ot) {
|
|
12729
12720
|
try {
|
|
12730
|
-
var
|
|
12731
|
-
if (!
|
|
12732
|
-
var
|
|
12733
|
-
return Promise.resolve(new Promise(function(
|
|
12734
|
-
vt.dispatch({ type: q.trackStart, event:
|
|
12721
|
+
var At = on(ut) ? ut.event : ut;
|
|
12722
|
+
if (!At || !q$1(At)) throw new Error("EventMissing");
|
|
12723
|
+
var kt = on(ut) ? ut : dt || {}, St = on(_t) ? _t : {};
|
|
12724
|
+
return Promise.resolve(new Promise(function(Tt) {
|
|
12725
|
+
vt.dispatch({ type: q.trackStart, event: At, properties: kt, options: St, userId: Ge(k$1, lt, dt), anonymousId: Ge(T, lt, dt) }, Tt, [dt, _t, Ot]);
|
|
12735
12726
|
}));
|
|
12736
|
-
} catch (
|
|
12737
|
-
return Promise.reject(
|
|
12727
|
+
} catch (Tt) {
|
|
12728
|
+
return Promise.reject(Tt);
|
|
12738
12729
|
}
|
|
12739
|
-
}, page: function(ut,
|
|
12730
|
+
}, page: function(ut, dt, _t) {
|
|
12740
12731
|
try {
|
|
12741
|
-
var
|
|
12742
|
-
return Promise.resolve(new Promise(function(
|
|
12743
|
-
vt.dispatch({ type: q.pageStart, properties: Oe(
|
|
12732
|
+
var Ot = on(ut) ? ut : {}, At = on(dt) ? dt : {};
|
|
12733
|
+
return Promise.resolve(new Promise(function(kt) {
|
|
12734
|
+
vt.dispatch({ type: q.pageStart, properties: Oe(Ot), options: At, userId: Ge(k$1, lt, Ot), anonymousId: Ge(T, lt, Ot) }, kt, [ut, dt, _t]);
|
|
12744
12735
|
}));
|
|
12745
|
-
} catch (
|
|
12746
|
-
return Promise.reject(
|
|
12736
|
+
} catch (kt) {
|
|
12737
|
+
return Promise.reject(kt);
|
|
12747
12738
|
}
|
|
12748
12739
|
}, user: function(ut) {
|
|
12749
12740
|
if (ut === k$1 || ut === "id") return Ge(k$1, lt);
|
|
12750
12741
|
if (ut === T || ut === "anonId") return Ge(T, lt);
|
|
12751
|
-
var
|
|
12752
|
-
return ut ? i$5(
|
|
12742
|
+
var dt = lt.getState("user");
|
|
12743
|
+
return ut ? i$5(dt, ut) : dt;
|
|
12753
12744
|
}, reset: function(ut) {
|
|
12754
|
-
return new Promise(function(
|
|
12755
|
-
vt.dispatch({ type: q.resetStart },
|
|
12745
|
+
return new Promise(function(dt) {
|
|
12746
|
+
vt.dispatch({ type: q.resetStart }, dt, ut);
|
|
12756
12747
|
});
|
|
12757
12748
|
}, ready: function(ut) {
|
|
12758
|
-
return ot && ut({ plugins: ct, instance: lt }), lt.on(q.ready, function(
|
|
12759
|
-
ut(
|
|
12749
|
+
return ot && ut({ plugins: ct, instance: lt }), lt.on(q.ready, function(dt) {
|
|
12750
|
+
ut(dt), ot = !0;
|
|
12760
12751
|
});
|
|
12761
|
-
}, on: function(ut,
|
|
12762
|
-
if (!ut || !W$1(
|
|
12752
|
+
}, on: function(ut, dt) {
|
|
12753
|
+
if (!ut || !W$1(dt)) return !1;
|
|
12763
12754
|
if (ut === q.bootstrap) throw new Error(".on disabled for " + ut);
|
|
12764
12755
|
var _t = /Start$|Start:/;
|
|
12765
12756
|
if (ut === "*") {
|
|
12766
|
-
var
|
|
12767
|
-
return function(
|
|
12768
|
-
return function(
|
|
12769
|
-
return
|
|
12757
|
+
var Ot = function(Tt) {
|
|
12758
|
+
return function(Lt) {
|
|
12759
|
+
return function(Pt) {
|
|
12760
|
+
return Pt.type.match(_t) && dt({ payload: Pt, instance: lt, plugins: Ke }), Lt(Pt);
|
|
12770
12761
|
};
|
|
12771
12762
|
};
|
|
12772
|
-
},
|
|
12773
|
-
return function(
|
|
12774
|
-
return function(
|
|
12775
|
-
return
|
|
12763
|
+
}, At = function(Tt) {
|
|
12764
|
+
return function(Lt) {
|
|
12765
|
+
return function(Pt) {
|
|
12766
|
+
return Pt.type.match(_t) || dt({ payload: Pt, instance: lt, plugins: Ke }), Lt(Pt);
|
|
12776
12767
|
};
|
|
12777
12768
|
};
|
|
12778
12769
|
};
|
|
12779
|
-
return
|
|
12780
|
-
|
|
12770
|
+
return et(Ot, Ce), et(At, Re), function() {
|
|
12771
|
+
Qe(Ot, Ce), Qe(At, Re);
|
|
12781
12772
|
};
|
|
12782
12773
|
}
|
|
12783
|
-
var
|
|
12784
|
-
return function(
|
|
12785
|
-
return function(
|
|
12786
|
-
return
|
|
12774
|
+
var kt = ut.match(_t) ? Ce : Re, St = function(Tt) {
|
|
12775
|
+
return function(Lt) {
|
|
12776
|
+
return function(Pt) {
|
|
12777
|
+
return Pt.type === ut && dt({ payload: Pt, instance: lt, plugins: Ke, abort: rt }), Lt(Pt);
|
|
12787
12778
|
};
|
|
12788
12779
|
};
|
|
12789
12780
|
};
|
|
12790
|
-
return
|
|
12791
|
-
return
|
|
12781
|
+
return et(St, kt), function() {
|
|
12782
|
+
return Qe(St, kt);
|
|
12792
12783
|
};
|
|
12793
|
-
}, once: function(ut,
|
|
12794
|
-
if (!ut || !W$1(
|
|
12784
|
+
}, once: function(ut, dt) {
|
|
12785
|
+
if (!ut || !W$1(dt)) return !1;
|
|
12795
12786
|
if (ut === q.bootstrap) throw new Error(".once disabled for " + ut);
|
|
12796
|
-
var _t = lt.on(ut, function(
|
|
12797
|
-
|
|
12787
|
+
var _t = lt.on(ut, function(Ot) {
|
|
12788
|
+
dt({ payload: Ot.payload, instance: lt, plugins: Ke, abort: rt }), _t();
|
|
12798
12789
|
});
|
|
12799
12790
|
return _t;
|
|
12800
12791
|
}, getState: function(ut) {
|
|
12801
|
-
var
|
|
12802
|
-
return ut ? i$5(
|
|
12792
|
+
var dt = vt.getState();
|
|
12793
|
+
return ut ? i$5(dt, ut) : Object.assign({}, dt);
|
|
12803
12794
|
}, dispatch: function(ut) {
|
|
12804
|
-
var
|
|
12805
|
-
if (z.includes(
|
|
12806
|
-
var _t = v({},
|
|
12795
|
+
var dt = q$1(ut) ? { type: ut } : ut;
|
|
12796
|
+
if (z.includes(dt.type)) throw new Error("reserved action " + dt.type);
|
|
12797
|
+
var _t = v({}, dt, { _: v({ originalAction: dt.type }, ut._ || {}) });
|
|
12807
12798
|
vt.dispatch(_t);
|
|
12808
|
-
}, enablePlugin: ct.enable, disablePlugin: ct.disable, plugins: ct, storage: { getItem: Be.getItem, setItem: function(ut,
|
|
12809
|
-
vt.dispatch({ type: q.setItemStart, key: ut, value:
|
|
12810
|
-
}, removeItem: function(ut,
|
|
12811
|
-
vt.dispatch({ type: q.removeItemStart, key: ut, options:
|
|
12812
|
-
} }, setAnonymousId: function(ut,
|
|
12813
|
-
lt.storage.setItem(A$1, ut,
|
|
12814
|
-
}, events: { core: z, plugins: We } },
|
|
12815
|
-
return function(
|
|
12799
|
+
}, enablePlugin: ct.enable, disablePlugin: ct.disable, plugins: ct, storage: { getItem: Be.getItem, setItem: function(ut, dt, _t) {
|
|
12800
|
+
vt.dispatch({ type: q.setItemStart, key: ut, value: dt, options: _t });
|
|
12801
|
+
}, removeItem: function(ut, dt) {
|
|
12802
|
+
vt.dispatch({ type: q.removeItemStart, key: ut, options: dt });
|
|
12803
|
+
} }, setAnonymousId: function(ut, dt) {
|
|
12804
|
+
lt.storage.setItem(A$1, ut, dt);
|
|
12805
|
+
}, events: { core: z, plugins: We } }, ft = He.middlewares.concat([function(ut) {
|
|
12806
|
+
return function(dt) {
|
|
12816
12807
|
return function(_t) {
|
|
12817
|
-
return _t.meta || (_t.meta = Ve()),
|
|
12808
|
+
return _t.meta || (_t.meta = Ve()), dt(_t);
|
|
12818
12809
|
};
|
|
12819
12810
|
};
|
|
12820
12811
|
}, tt(Ce), se(lt, Ze, { all: Je, plugins: We }), le(Be), C$1(lt), B(lt), tt(Re)]), mt = { context: je, user: R(Be), page: _e, track: ve, plugins: de(Ze), queue: be }, gt = N$1, wt = N$1;
|
|
12821
12812
|
if ($$1 && $e.debug) {
|
|
12822
|
-
var
|
|
12823
|
-
|
|
12813
|
+
var It = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
|
|
12814
|
+
It && (gt = It({ trace: !0, traceLimit: 25 })), wt = function() {
|
|
12824
12815
|
return arguments.length === 0 ? Me() : on(typeof arguments[0]) ? qe() : qe().apply(null, arguments);
|
|
12825
12816
|
};
|
|
12826
12817
|
}
|
|
12827
|
-
var bt,
|
|
12828
|
-
return Object.keys(ut).reduce(function(
|
|
12829
|
-
return ke.includes(_t) || (
|
|
12818
|
+
var bt, pt = function(ut) {
|
|
12819
|
+
return Object.keys(ut).reduce(function(dt, _t) {
|
|
12820
|
+
return ke.includes(_t) || (dt[_t] = ut[_t]), dt;
|
|
12830
12821
|
}, {});
|
|
12831
|
-
}($e), yt = He.pluginsArray.reduce(function(ut,
|
|
12832
|
-
var _t =
|
|
12833
|
-
return ut[_t] = { enabled:
|
|
12834
|
-
}, {}), $t = { context:
|
|
12835
|
-
for (var
|
|
12836
|
-
var
|
|
12837
|
-
typeof ut[
|
|
12838
|
-
}
|
|
12839
|
-
var
|
|
12822
|
+
}($e), yt = He.pluginsArray.reduce(function(ut, dt) {
|
|
12823
|
+
var _t = dt.name, Ot = dt.config, At = dt.loaded, kt = He.pluginEnabled[_t];
|
|
12824
|
+
return ut[_t] = { enabled: kt, initialized: !!kt && !dt.initialize, loaded: !!At({ config: Ot }), config: Ot }, ut;
|
|
12825
|
+
}, {}), $t = { context: pt, user: st, plugins: yt }, vt = P(function(ut) {
|
|
12826
|
+
for (var dt = Object.keys(ut), _t = {}, Ot = 0; Ot < dt.length; Ot++) {
|
|
12827
|
+
var At = dt[Ot];
|
|
12828
|
+
typeof ut[At] === y && (_t[At] = ut[At]);
|
|
12829
|
+
}
|
|
12830
|
+
var kt, St = Object.keys(_t);
|
|
12840
12831
|
try {
|
|
12841
|
-
(function(
|
|
12842
|
-
Object.keys(
|
|
12843
|
-
var
|
|
12844
|
-
if (typeof
|
|
12832
|
+
(function(Tt) {
|
|
12833
|
+
Object.keys(Tt).forEach(function(Lt) {
|
|
12834
|
+
var Pt = Tt[Lt];
|
|
12835
|
+
if (typeof Pt(void 0, { type: "@@redux/INIT" }) === b$1 || typeof Pt(void 0, { type: I$1 }) === b$1) throw new Error("reducer " + Lt + " " + b$1);
|
|
12845
12836
|
});
|
|
12846
12837
|
})(_t);
|
|
12847
|
-
} catch (
|
|
12848
|
-
|
|
12849
|
-
}
|
|
12850
|
-
return function(
|
|
12851
|
-
if (
|
|
12852
|
-
for (var
|
|
12853
|
-
var
|
|
12854
|
-
if (typeof
|
|
12855
|
-
var Et = S(
|
|
12838
|
+
} catch (Tt) {
|
|
12839
|
+
kt = Tt;
|
|
12840
|
+
}
|
|
12841
|
+
return function(Tt, Lt) {
|
|
12842
|
+
if (Tt === void 0 && (Tt = {}), kt) throw kt;
|
|
12843
|
+
for (var Pt = !1, Mt = {}, Bt = 0; Bt < St.length; Bt++) {
|
|
12844
|
+
var zt = St[Bt], Vt = Tt[zt], ht = (0, _t[zt])(Vt, Lt);
|
|
12845
|
+
if (typeof ht === b$1) {
|
|
12846
|
+
var Et = S(zt, Lt);
|
|
12856
12847
|
throw new Error(Et);
|
|
12857
12848
|
}
|
|
12858
|
-
|
|
12849
|
+
Mt[zt] = ht, Pt = Pt || ht !== Vt;
|
|
12859
12850
|
}
|
|
12860
|
-
return
|
|
12851
|
+
return Pt ? Mt : Tt;
|
|
12861
12852
|
};
|
|
12862
|
-
}(v({}, mt, De)), $t, wt(gt(O$1.apply(void 0,
|
|
12863
|
-
vt.dispatch = (bt = vt.dispatch, function(ut,
|
|
12864
|
-
var
|
|
12865
|
-
return bt.apply(null, [
|
|
12853
|
+
}(v({}, mt, De)), $t, wt(gt(O$1.apply(void 0, ft))));
|
|
12854
|
+
vt.dispatch = (bt = vt.dispatch, function(ut, dt, _t) {
|
|
12855
|
+
var Ot = v({}, ut, { meta: Ve(ut.meta, dt, Ue(_t)) });
|
|
12856
|
+
return bt.apply(null, [Ot]);
|
|
12866
12857
|
});
|
|
12867
|
-
var
|
|
12868
|
-
vt.dispatch({ type: q.bootstrap, plugins:
|
|
12869
|
-
var
|
|
12858
|
+
var Rt = Object.keys(Ke);
|
|
12859
|
+
vt.dispatch({ type: q.bootstrap, plugins: Rt, config: pt, params: nt, user: st, initialUser: Fe, persistedUser: at });
|
|
12860
|
+
var xt = Rt.filter(function(ut) {
|
|
12870
12861
|
return He.pluginEnabled[ut];
|
|
12871
|
-
}), Nt =
|
|
12862
|
+
}), Nt = Rt.filter(function(ut) {
|
|
12872
12863
|
return !He.pluginEnabled[ut];
|
|
12873
12864
|
});
|
|
12874
|
-
return vt.dispatch({ type: q.registerPlugins, plugins:
|
|
12875
|
-
var _t = ut.bootstrap,
|
|
12876
|
-
_t && W$1(_t) && _t({ instance: lt, config:
|
|
12865
|
+
return vt.dispatch({ type: q.registerPlugins, plugins: Rt, enabled: He.pluginEnabled }), He.pluginsArray.map(function(ut, dt) {
|
|
12866
|
+
var _t = ut.bootstrap, Ot = ut.config, At = ut.name;
|
|
12867
|
+
_t && W$1(_t) && _t({ instance: lt, config: Ot, payload: ut }), vt.dispatch({ type: q.registerPluginType(At), name: At, enabled: He.pluginEnabled[At], plugin: ut }), He.pluginsArray.length === dt + 1 && vt.dispatch({ type: q.initializeStart, plugins: xt, disabled: Nt });
|
|
12877
12868
|
}), ze(function(ut) {
|
|
12878
12869
|
vt.dispatch({ type: ut ? q.offline : q.online });
|
|
12879
|
-
}), function(ut,
|
|
12870
|
+
}), function(ut, dt, _t) {
|
|
12880
12871
|
setInterval(function() {
|
|
12881
|
-
return F$1(ut,
|
|
12872
|
+
return F$1(ut, dt, _t);
|
|
12882
12873
|
}, 3e3);
|
|
12883
12874
|
}(vt, Ze, lt), lt;
|
|
12884
12875
|
}
|
|
@@ -13054,32 +13045,32 @@ function routeChangeListener() {
|
|
|
13054
13045
|
}
|
|
13055
13046
|
function i$1($e) {
|
|
13056
13047
|
if ($e === void 0 && ($e = {}), !$$1) return g$1;
|
|
13057
|
-
var De = l$1(), Fe = c$1(), He = o$1(), Be = s(He, De), Ge = s(Fe, De), Ke = [], We = [], Xe = [], Je = He, Ze = Be, Ye = Ge,
|
|
13058
|
-
if (!
|
|
13059
|
-
var
|
|
13048
|
+
var De = l$1(), Fe = c$1(), He = o$1(), Be = s(He, De), Ge = s(Fe, De), Ke = [], We = [], Xe = [], Je = He, Ze = Be, Ye = Ge, et = Object.keys($e);
|
|
13049
|
+
if (!et.length) return g$1;
|
|
13050
|
+
var Qe = et.map(function(rt) {
|
|
13060
13051
|
return Number(rt);
|
|
13061
13052
|
}), tt = b$3(function() {
|
|
13062
|
-
var rt = l$1(), nt = function(
|
|
13053
|
+
var rt = l$1(), nt = function(pt, yt) {
|
|
13063
13054
|
return yt.map(function($t) {
|
|
13064
|
-
return $t === 100 ?
|
|
13055
|
+
return $t === 100 ? pt - 5 : pt * ($t / 100);
|
|
13065
13056
|
});
|
|
13066
|
-
}(rt,
|
|
13067
|
-
if (Ze = ct > Ze ? ct : Ze, Ye = ot < Ye ? ot : Ye, !(Ke.length >=
|
|
13068
|
-
var lt = Je === st,
|
|
13069
|
-
lt ?
|
|
13070
|
-
var mt = nt, gt =
|
|
13071
|
-
(
|
|
13072
|
-
var wt = gt.reduce(function(
|
|
13057
|
+
}(rt, Qe), at = c$1(), st = o$1(), ct = s(st, rt), ot = s(at, rt);
|
|
13058
|
+
if (Ze = ct > Ze ? ct : Ze, Ye = ot < Ye ? ot : Ye, !(Ke.length >= Qe.length)) {
|
|
13059
|
+
var lt = Je === st, ft = "up";
|
|
13060
|
+
lt ? ft = "initial" : Je <= st && (ft = "down");
|
|
13061
|
+
var mt = nt, gt = Qe;
|
|
13062
|
+
(ft === "up" || lt) && (mt = nt.slice().reverse(), gt = Qe.slice().reverse());
|
|
13063
|
+
var wt = gt.reduce(function(pt, yt, $t) {
|
|
13073
13064
|
var vt = mt[$t];
|
|
13074
|
-
return Xe.includes(yt) && st <= vt && (Xe = Xe.filter(function(
|
|
13075
|
-
return
|
|
13076
|
-
}),
|
|
13077
|
-
}, { foundFunc: [], singleFunction: null, callbacks: [], direction:
|
|
13078
|
-
if (Je = st,
|
|
13079
|
-
W$1($e[
|
|
13065
|
+
return Xe.includes(yt) && st <= vt && (Xe = Xe.filter(function(Rt) {
|
|
13066
|
+
return Rt !== yt;
|
|
13067
|
+
}), pt.singleFunction = yt), ft === "down" && !Ke.includes(yt) && st >= vt && yt > Ge ? (We.push(yt), pt.callbacks = pt.callbacks.concat(yt), pt) : ft === "up" && !Ke.includes(yt) && st <= vt && yt <= ct ? (pt.foundFunc = [yt], pt) : (lt && st >= vt && pt.foundFunc.length === 0 && (pt.foundFunc = [yt]), !We.includes(yt) && st >= vt && (We.push(yt), pt.singleFunction ? Xe.push(yt) : pt.singleFunction = yt), pt);
|
|
13068
|
+
}, { foundFunc: [], singleFunction: null, callbacks: [], direction: ft });
|
|
13069
|
+
if (Je = st, ft === "down" && wt.callbacks && wt.callbacks.forEach(function(pt) {
|
|
13070
|
+
W$1($e[pt]) && ($e[pt]({ trigger: pt, direction: ft, scrollMin: Ye, scrollMax: Ze, range: [Ye, Ze] }), Ke.push(pt));
|
|
13080
13071
|
}), wt.singleFunction) {
|
|
13081
|
-
var
|
|
13082
|
-
W$1($e[
|
|
13072
|
+
var It = wt.singleFunction, bt = wt.direction;
|
|
13073
|
+
W$1($e[It]) && $e[It]({ trigger: It, direction: bt, scrollMin: Ye, scrollMax: Ze, range: [Ye, Ze] }), Ke.push(It);
|
|
13083
13074
|
}
|
|
13084
13075
|
}
|
|
13085
13076
|
}, 500);
|
|
@@ -13115,10 +13106,10 @@ function u($e) {
|
|
|
13115
13106
|
var Je = [];
|
|
13116
13107
|
return function Ze(Ye) {
|
|
13117
13108
|
Ye && (Je = []);
|
|
13118
|
-
for (var
|
|
13119
|
-
var tt = Xe[
|
|
13120
|
-
Je[
|
|
13121
|
-
for (var rt = 0; rt < We.length; rt++) tt[
|
|
13109
|
+
for (var et = Ye ? "add" + i : "remove" + i, Qe = 0; Qe < Xe.length; Qe++) {
|
|
13110
|
+
var tt = Xe[Qe];
|
|
13111
|
+
Je[Qe] = Ye ? Ke && Ke.once ? a$1(Ge) : Ge : Je[Qe] || Ge;
|
|
13112
|
+
for (var rt = 0; rt < We.length; rt++) tt[et] ? tt["on" + We[rt]] = Ye ? Je[Qe] : null : tt[et](We[rt], Je[Qe], Ke);
|
|
13122
13113
|
}
|
|
13123
13114
|
return Ze.bind(null, !Ye);
|
|
13124
13115
|
}($e);
|
|
@@ -13201,23 +13192,23 @@ function r($e, De) {
|
|
|
13201
13192
|
};
|
|
13202
13193
|
}
|
|
13203
13194
|
function a($e) {
|
|
13204
|
-
var De, Fe, He = $e.onIdle, Be = $e.onWakeUp, Ge = $e.onHeartbeat, Ke = $e.timeout, We = Ke === void 0 ? 1e4 : Ke, Xe = $e.throttle, Je = Xe === void 0 ? 2e3 : Xe, Ze = !1, Ye = !1,
|
|
13195
|
+
var De, Fe, He = $e.onIdle, Be = $e.onWakeUp, Ge = $e.onHeartbeat, Ke = $e.timeout, We = Ke === void 0 ? 1e4 : Ke, Xe = $e.throttle, Je = Xe === void 0 ? 2e3 : Xe, Ze = !1, Ye = !1, et = /* @__PURE__ */ new Date(), Qe = function() {
|
|
13205
13196
|
return clearTimeout(De);
|
|
13206
13197
|
};
|
|
13207
13198
|
function tt(nt) {
|
|
13208
|
-
|
|
13209
|
-
Ze = !0, He && (Fe = /* @__PURE__ */ new Date(), He(c(
|
|
13199
|
+
Qe(), Ge && !Ze && Ge(c(et), nt), Be && Ze && (Ze = !1, Be(c(Fe), nt), et = /* @__PURE__ */ new Date()), De = setTimeout(function() {
|
|
13200
|
+
Ze = !0, He && (Fe = /* @__PURE__ */ new Date(), He(c(et), nt));
|
|
13210
13201
|
}, We);
|
|
13211
13202
|
}
|
|
13212
13203
|
var rt = r(tt, { throttle: Je });
|
|
13213
13204
|
return { disable: function() {
|
|
13214
|
-
Ye = !0, Ze = !1,
|
|
13205
|
+
Ye = !0, Ze = !1, Qe();
|
|
13215
13206
|
var nt = rt();
|
|
13216
13207
|
return function() {
|
|
13217
|
-
return Ye = !1,
|
|
13208
|
+
return Ye = !1, et = /* @__PURE__ */ new Date(), tt({ type: "load" }), nt();
|
|
13218
13209
|
};
|
|
13219
13210
|
}, getStatus: function() {
|
|
13220
|
-
return { isIdle: Ze, isDisabled: Ye, active: Ze ? 0 : c(
|
|
13211
|
+
return { isIdle: Ze, isDisabled: Ye, active: Ze ? 0 : c(et, Ye), idle: Ze ? c(Fe, Ye) : 0 };
|
|
13221
13212
|
} };
|
|
13222
13213
|
}
|
|
13223
13214
|
function c($e, De) {
|
|
@@ -13582,8 +13573,8 @@ function registerAPI($e) {
|
|
|
13582
13573
|
getBills: Je,
|
|
13583
13574
|
getCheckout: Ze,
|
|
13584
13575
|
getContract: Ye,
|
|
13585
|
-
getContracts:
|
|
13586
|
-
getEntitlement:
|
|
13576
|
+
getContracts: et,
|
|
13577
|
+
getEntitlement: Qe,
|
|
13587
13578
|
getEntitlementAccess: tt,
|
|
13588
13579
|
getEntitlements: rt,
|
|
13589
13580
|
getFulfillments: nt,
|
|
@@ -13592,27 +13583,27 @@ function registerAPI($e) {
|
|
|
13592
13583
|
getProfile: ct,
|
|
13593
13584
|
getProduct: ot,
|
|
13594
13585
|
getProxyContent: lt,
|
|
13595
|
-
getSubscriptions:
|
|
13586
|
+
getSubscriptions: ft,
|
|
13596
13587
|
getTags: mt,
|
|
13597
13588
|
getTally: gt,
|
|
13598
13589
|
getTallies: wt,
|
|
13599
|
-
getTransaction:
|
|
13590
|
+
getTransaction: It,
|
|
13600
13591
|
getTransactions: bt,
|
|
13601
|
-
getUserMetadata:
|
|
13592
|
+
getUserMetadata: pt,
|
|
13602
13593
|
getVendorSettings: yt,
|
|
13603
13594
|
listVendors: $t,
|
|
13604
13595
|
hasAccess: vt,
|
|
13605
|
-
isSpotifyLinked:
|
|
13606
|
-
linkSpotify:
|
|
13596
|
+
isSpotifyLinked: Rt,
|
|
13597
|
+
linkSpotify: xt,
|
|
13607
13598
|
listUserMetadata: Nt,
|
|
13608
13599
|
openHostedAccountPage: ut,
|
|
13609
|
-
pushTally:
|
|
13600
|
+
pushTally: dt,
|
|
13610
13601
|
setTag: _t,
|
|
13611
|
-
setUserMetadata:
|
|
13612
|
-
unlinkSpotify:
|
|
13613
|
-
updateCheckout:
|
|
13614
|
-
updateProfile:
|
|
13615
|
-
} = createApi($e),
|
|
13602
|
+
setUserMetadata: Ot,
|
|
13603
|
+
unlinkSpotify: At,
|
|
13604
|
+
updateCheckout: kt,
|
|
13605
|
+
updateProfile: St
|
|
13606
|
+
} = createApi($e), Tt = {
|
|
13616
13607
|
analytics: {
|
|
13617
13608
|
track
|
|
13618
13609
|
},
|
|
@@ -13639,7 +13630,7 @@ function registerAPI($e) {
|
|
|
13639
13630
|
checkouts: {
|
|
13640
13631
|
create: He,
|
|
13641
13632
|
get: Ze,
|
|
13642
|
-
update:
|
|
13633
|
+
update: kt
|
|
13643
13634
|
},
|
|
13644
13635
|
clearCache,
|
|
13645
13636
|
content: {
|
|
@@ -13651,11 +13642,11 @@ function registerAPI($e) {
|
|
|
13651
13642
|
contracts: {
|
|
13652
13643
|
cancel: Fe,
|
|
13653
13644
|
get: Ye,
|
|
13654
|
-
list:
|
|
13645
|
+
list: et
|
|
13655
13646
|
},
|
|
13656
13647
|
entitlements: {
|
|
13657
13648
|
access: tt,
|
|
13658
|
-
get:
|
|
13649
|
+
get: Qe,
|
|
13659
13650
|
hasAccess: vt,
|
|
13660
13651
|
list: rt,
|
|
13661
13652
|
signedLinks: getSignedLinks
|
|
@@ -13673,20 +13664,20 @@ function registerAPI($e) {
|
|
|
13673
13664
|
products: {
|
|
13674
13665
|
autoOnboard: De,
|
|
13675
13666
|
get: ot,
|
|
13676
|
-
linkSpotify:
|
|
13667
|
+
linkSpotify: xt
|
|
13677
13668
|
},
|
|
13678
13669
|
profile: {
|
|
13679
13670
|
get: ct,
|
|
13680
|
-
isSpotifyLinked:
|
|
13671
|
+
isSpotifyLinked: Rt,
|
|
13681
13672
|
openHostedAccountPage: ut,
|
|
13682
|
-
unlinkSpotify:
|
|
13683
|
-
update:
|
|
13673
|
+
unlinkSpotify: At,
|
|
13674
|
+
update: St
|
|
13684
13675
|
},
|
|
13685
13676
|
proxy: {
|
|
13686
13677
|
getContent: lt
|
|
13687
13678
|
},
|
|
13688
13679
|
subscriptions: {
|
|
13689
|
-
list:
|
|
13680
|
+
list: ft
|
|
13690
13681
|
},
|
|
13691
13682
|
tags: {
|
|
13692
13683
|
delete: Be,
|
|
@@ -13697,24 +13688,24 @@ function registerAPI($e) {
|
|
|
13697
13688
|
delete: Ge,
|
|
13698
13689
|
get: gt,
|
|
13699
13690
|
list: wt,
|
|
13700
|
-
push:
|
|
13691
|
+
push: dt
|
|
13701
13692
|
},
|
|
13702
13693
|
transactions: {
|
|
13703
|
-
get:
|
|
13694
|
+
get: It,
|
|
13704
13695
|
list: bt
|
|
13705
13696
|
},
|
|
13706
13697
|
userMetadata: {
|
|
13707
13698
|
delete: Ke,
|
|
13708
|
-
get:
|
|
13699
|
+
get: pt,
|
|
13709
13700
|
list: Nt,
|
|
13710
|
-
set:
|
|
13701
|
+
set: Ot
|
|
13711
13702
|
},
|
|
13712
13703
|
vendors: {
|
|
13713
13704
|
get: yt,
|
|
13714
13705
|
list: $t
|
|
13715
13706
|
}
|
|
13716
13707
|
};
|
|
13717
|
-
return $e.namespace && (window[$e.namespace] =
|
|
13708
|
+
return $e.namespace && (window[$e.namespace] = Tt), Tt;
|
|
13718
13709
|
}
|
|
13719
13710
|
function getVersion() {
|
|
13720
13711
|
return version;
|
|
@@ -13969,19 +13960,19 @@ if (isBrowser()) {
|
|
|
13969
13960
|
function ContentContainer_wc($e, De) {
|
|
13970
13961
|
push$6(De, !0);
|
|
13971
13962
|
let Fe = prop(De, "item-src", 7, ""), He = prop(De, "publisher-content-id", 7), Be = prop(De, "pass", 7, ""), Ge = prop(De, "access-level", 7, "entitlement"), Ke = prop(De, "lock-mode", 7, "embed"), We = prop(De, "locked-content-selector", 7);
|
|
13972
|
-
async function Xe(
|
|
13963
|
+
async function Xe(Qe) {
|
|
13973
13964
|
switch (Ge()) {
|
|
13974
13965
|
case "public":
|
|
13975
13966
|
return !0;
|
|
13976
13967
|
case "logged-in":
|
|
13977
|
-
return
|
|
13968
|
+
return Qe.auth.isAuthenticated();
|
|
13978
13969
|
case "entitlement":
|
|
13979
13970
|
default:
|
|
13980
|
-
return
|
|
13971
|
+
return Qe.entitlements.hasAccess(Fe(), Be().split(","));
|
|
13981
13972
|
}
|
|
13982
13973
|
}
|
|
13983
13974
|
function Je() {
|
|
13984
|
-
const
|
|
13975
|
+
const Qe = new CustomEvent("sesamyUnlocked", {
|
|
13985
13976
|
detail: {
|
|
13986
13977
|
publisherContentId: He(),
|
|
13987
13978
|
itemSrc: Fe()
|
|
@@ -13989,90 +13980,134 @@ function ContentContainer_wc($e, De) {
|
|
|
13989
13980
|
bubbles: !0,
|
|
13990
13981
|
composed: !0
|
|
13991
13982
|
});
|
|
13992
|
-
dispatchEvent(
|
|
13983
|
+
dispatchEvent(Qe);
|
|
13984
|
+
}
|
|
13985
|
+
async function Ze(Qe) {
|
|
13986
|
+
var ct;
|
|
13987
|
+
if (!Qe) return;
|
|
13988
|
+
const tt = De.$$host;
|
|
13989
|
+
if (!tt) return;
|
|
13990
|
+
const rt = document.createElement("div");
|
|
13991
|
+
rt.setAttribute("position", "relative");
|
|
13992
|
+
const nt = tt.getAttribute("class");
|
|
13993
|
+
nt && rt.setAttribute("class", nt), rt.innerHTML = Qe;
|
|
13994
|
+
const at = rt.querySelectorAll("script"), st = [];
|
|
13995
|
+
at.forEach((ot) => {
|
|
13996
|
+
var lt;
|
|
13997
|
+
if (ot.src) {
|
|
13998
|
+
const ft = document.createElement("script");
|
|
13999
|
+
ft.src = ot.src, document.head.appendChild(ft);
|
|
14000
|
+
} else
|
|
14001
|
+
st.push(ot.textContent || "");
|
|
14002
|
+
(lt = ot.parentNode) == null || lt.removeChild(ot);
|
|
14003
|
+
}), (ct = tt.parentElement) == null || ct.insertBefore(rt, tt), st.forEach((ot) => {
|
|
14004
|
+
const lt = document.createElement("script");
|
|
14005
|
+
lt.textContent = ot, document.head.appendChild(lt), document.head.removeChild(lt);
|
|
14006
|
+
});
|
|
13993
14007
|
}
|
|
13994
|
-
async function
|
|
13995
|
-
const
|
|
14008
|
+
async function Ye(Qe) {
|
|
14009
|
+
const tt = De.$$host.querySelector('div[slot="content"]');
|
|
13996
14010
|
switch (Ke()) {
|
|
13997
14011
|
case "encode":
|
|
13998
|
-
|
|
14012
|
+
const rt = (tt == null ? void 0 : tt.innerHTML) || "";
|
|
14013
|
+
try {
|
|
14014
|
+
return new TextDecoder().decode(Uint8Array.from(atob(rt), (nt) => nt.charCodeAt(0)));
|
|
14015
|
+
} catch (nt) {
|
|
14016
|
+
return console.error("Error decoding content:", nt), "";
|
|
14017
|
+
}
|
|
13999
14018
|
case "event":
|
|
14000
14019
|
return Je(), "";
|
|
14001
14020
|
case "proxy":
|
|
14002
14021
|
case "signedUrl":
|
|
14003
|
-
return
|
|
14022
|
+
return Qe.content.unlock(De.$$host.parentElement, We());
|
|
14004
14023
|
case "embed":
|
|
14024
|
+
return "";
|
|
14005
14025
|
default:
|
|
14006
|
-
return (
|
|
14026
|
+
return console.error("Invalid lock mode"), "";
|
|
14027
|
+
}
|
|
14028
|
+
}
|
|
14029
|
+
async function et(Qe) {
|
|
14030
|
+
try {
|
|
14031
|
+
const tt = await Ye(Qe);
|
|
14032
|
+
await Ze(tt);
|
|
14033
|
+
} catch (tt) {
|
|
14034
|
+
console.error("Error unlocking content:", tt);
|
|
14007
14035
|
}
|
|
14008
14036
|
}
|
|
14009
14037
|
return Base($e, {
|
|
14010
14038
|
applyStyles: !1,
|
|
14011
14039
|
children: invalid_default_snippet,
|
|
14012
14040
|
$$slots: {
|
|
14013
|
-
default: (
|
|
14014
|
-
const
|
|
14015
|
-
var
|
|
14016
|
-
await_block(
|
|
14017
|
-
var
|
|
14041
|
+
default: (Qe, tt) => {
|
|
14042
|
+
const rt = /* @__PURE__ */ derived(() => tt.api);
|
|
14043
|
+
var nt = comment(), at = first_child(nt);
|
|
14044
|
+
await_block(at, () => Xe(get$1(rt)), null, (st, ct) => {
|
|
14045
|
+
var ot = comment(), lt = first_child(ot);
|
|
14018
14046
|
{
|
|
14019
|
-
var
|
|
14020
|
-
var
|
|
14021
|
-
|
|
14022
|
-
var
|
|
14023
|
-
await_block(bt, () => Ze(get$1(et)), null, (ht, yt) => {
|
|
14047
|
+
var ft = (gt) => {
|
|
14048
|
+
var wt = comment(), It = first_child(wt);
|
|
14049
|
+
{
|
|
14050
|
+
var bt = (yt) => {
|
|
14024
14051
|
var $t = comment(), vt = first_child($t);
|
|
14025
|
-
|
|
14026
|
-
}
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14030
|
-
|
|
14052
|
+
slot(vt, De, "content", {}, null), append$1(yt, $t);
|
|
14053
|
+
}, pt = (yt) => {
|
|
14054
|
+
var $t = comment(), vt = first_child($t);
|
|
14055
|
+
await_block(vt, () => et(get$1(rt)), (Rt) => {
|
|
14056
|
+
}), append$1(yt, $t);
|
|
14057
|
+
};
|
|
14058
|
+
if_block(It, (yt) => {
|
|
14059
|
+
Ke() === "embed" ? yt(bt) : yt(pt, !1);
|
|
14060
|
+
});
|
|
14061
|
+
}
|
|
14062
|
+
append$1(gt, wt);
|
|
14063
|
+
}, mt = (gt) => {
|
|
14064
|
+
var wt = comment(), It = first_child(wt);
|
|
14065
|
+
slot(It, De, "preview", {}, null), append$1(gt, wt);
|
|
14031
14066
|
};
|
|
14032
|
-
if_block(
|
|
14033
|
-
get$1(
|
|
14067
|
+
if_block(lt, (gt) => {
|
|
14068
|
+
get$1(ct) ? gt(ft) : gt(mt, !1);
|
|
14034
14069
|
});
|
|
14035
14070
|
}
|
|
14036
|
-
append$1(
|
|
14037
|
-
}), append$1(
|
|
14071
|
+
append$1(st, ot);
|
|
14072
|
+
}), append$1(Qe, nt);
|
|
14038
14073
|
}
|
|
14039
14074
|
}
|
|
14040
14075
|
}), pop$1({
|
|
14041
14076
|
get "item-src"() {
|
|
14042
14077
|
return Fe();
|
|
14043
14078
|
},
|
|
14044
|
-
set "item-src"(
|
|
14045
|
-
Fe(
|
|
14079
|
+
set "item-src"(Qe = "") {
|
|
14080
|
+
Fe(Qe), flush_sync();
|
|
14046
14081
|
},
|
|
14047
14082
|
get "publisher-content-id"() {
|
|
14048
14083
|
return He();
|
|
14049
14084
|
},
|
|
14050
|
-
set "publisher-content-id"(
|
|
14051
|
-
He(
|
|
14085
|
+
set "publisher-content-id"(Qe) {
|
|
14086
|
+
He(Qe), flush_sync();
|
|
14052
14087
|
},
|
|
14053
14088
|
get pass() {
|
|
14054
14089
|
return Be();
|
|
14055
14090
|
},
|
|
14056
|
-
set pass(
|
|
14057
|
-
Be(
|
|
14091
|
+
set pass(Qe = "") {
|
|
14092
|
+
Be(Qe), flush_sync();
|
|
14058
14093
|
},
|
|
14059
14094
|
get "access-level"() {
|
|
14060
14095
|
return Ge();
|
|
14061
14096
|
},
|
|
14062
|
-
set "access-level"(
|
|
14063
|
-
Ge(
|
|
14097
|
+
set "access-level"(Qe = "entitlement") {
|
|
14098
|
+
Ge(Qe), flush_sync();
|
|
14064
14099
|
},
|
|
14065
14100
|
get "lock-mode"() {
|
|
14066
14101
|
return Ke();
|
|
14067
14102
|
},
|
|
14068
|
-
set "lock-mode"(
|
|
14069
|
-
Ke(
|
|
14103
|
+
set "lock-mode"(Qe = "embed") {
|
|
14104
|
+
Ke(Qe), flush_sync();
|
|
14070
14105
|
},
|
|
14071
14106
|
get "locked-content-selector"() {
|
|
14072
14107
|
return We();
|
|
14073
14108
|
},
|
|
14074
|
-
set "locked-content-selector"(
|
|
14075
|
-
We(
|
|
14109
|
+
set "locked-content-selector"(Qe) {
|
|
14110
|
+
We(Qe), flush_sync();
|
|
14076
14111
|
}
|
|
14077
14112
|
});
|
|
14078
14113
|
}
|