@revenuecat/purchases-js-vega 1.74.0 → 1.75.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/Purchases.vega.es.js +1123 -881
- package/dist/Purchases.vega.umd.js +62 -65
- package/package.json +1 -1
|
@@ -6163,7 +6163,7 @@ function getPackageType(packageIdentifier) {
|
|
|
6163
6163
|
return packageIdentifier.startsWith("$rc_") ? "unknown" : "custom";
|
|
6164
6164
|
}
|
|
6165
6165
|
}
|
|
6166
|
-
const VERSION = "1.
|
|
6166
|
+
const VERSION = "1.75.0", PAYRAILS_CHECKOUT_ENABLED = !1, RC_ENDPOINT = "https://api.revenuecat.com", RC_ANALYTICS_ENDPOINT = "https://e.revenue.cat";
|
|
6167
6167
|
var StatusCodes;
|
|
6168
6168
|
(function(StatusCodes2) {
|
|
6169
6169
|
StatusCodes2[StatusCodes2.CONTINUE = 100] = "CONTINUE", StatusCodes2[StatusCodes2.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", StatusCodes2[StatusCodes2.PROCESSING = 102] = "PROCESSING", StatusCodes2[StatusCodes2.EARLY_HINTS = 103] = "EARLY_HINTS", StatusCodes2[StatusCodes2.OK = 200] = "OK", StatusCodes2[StatusCodes2.CREATED = 201] = "CREATED", StatusCodes2[StatusCodes2.ACCEPTED = 202] = "ACCEPTED", StatusCodes2[StatusCodes2.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", StatusCodes2[StatusCodes2.NO_CONTENT = 204] = "NO_CONTENT", StatusCodes2[StatusCodes2.RESET_CONTENT = 205] = "RESET_CONTENT", StatusCodes2[StatusCodes2.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", StatusCodes2[StatusCodes2.MULTI_STATUS = 207] = "MULTI_STATUS", StatusCodes2[StatusCodes2.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", StatusCodes2[StatusCodes2.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", StatusCodes2[StatusCodes2.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", StatusCodes2[StatusCodes2.SEE_OTHER = 303] = "SEE_OTHER", StatusCodes2[StatusCodes2.NOT_MODIFIED = 304] = "NOT_MODIFIED", StatusCodes2[StatusCodes2.USE_PROXY = 305] = "USE_PROXY", StatusCodes2[StatusCodes2.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", StatusCodes2[StatusCodes2.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", StatusCodes2[StatusCodes2.BAD_REQUEST = 400] = "BAD_REQUEST", StatusCodes2[StatusCodes2.UNAUTHORIZED = 401] = "UNAUTHORIZED", StatusCodes2[StatusCodes2.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", StatusCodes2[StatusCodes2.FORBIDDEN = 403] = "FORBIDDEN", StatusCodes2[StatusCodes2.NOT_FOUND = 404] = "NOT_FOUND", StatusCodes2[StatusCodes2.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", StatusCodes2[StatusCodes2.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", StatusCodes2[StatusCodes2.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", StatusCodes2[StatusCodes2.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", StatusCodes2[StatusCodes2.CONFLICT = 409] = "CONFLICT", StatusCodes2[StatusCodes2.GONE = 410] = "GONE", StatusCodes2[StatusCodes2.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", StatusCodes2[StatusCodes2.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", StatusCodes2[StatusCodes2.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", StatusCodes2[StatusCodes2.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", StatusCodes2[StatusCodes2.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", StatusCodes2[StatusCodes2.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", StatusCodes2[StatusCodes2.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", StatusCodes2[StatusCodes2.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", StatusCodes2[StatusCodes2.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", StatusCodes2[StatusCodes2.METHOD_FAILURE = 420] = "METHOD_FAILURE", StatusCodes2[StatusCodes2.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", StatusCodes2[StatusCodes2.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", StatusCodes2[StatusCodes2.LOCKED = 423] = "LOCKED", StatusCodes2[StatusCodes2.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", StatusCodes2[StatusCodes2.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", StatusCodes2[StatusCodes2.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", StatusCodes2[StatusCodes2.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", StatusCodes2[StatusCodes2.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", StatusCodes2[StatusCodes2.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", StatusCodes2[StatusCodes2.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", StatusCodes2[StatusCodes2.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", StatusCodes2[StatusCodes2.BAD_GATEWAY = 502] = "BAD_GATEWAY", StatusCodes2[StatusCodes2.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", StatusCodes2[StatusCodes2.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", StatusCodes2[StatusCodes2.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", StatusCodes2[StatusCodes2.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", StatusCodes2[StatusCodes2.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
@@ -9967,6 +9967,146 @@ function Icon$3($$anchor, $$props) {
|
|
|
9967
9967
|
}
|
|
9968
9968
|
MappedIcon($$anchor, spread_props(() => get$1(args))), pop();
|
|
9969
9969
|
}
|
|
9970
|
+
function subscribeCompatMediaChange(mq, handler) {
|
|
9971
|
+
return typeof mq.addEventListener == "function" ? (mq.addEventListener("change", handler), () => {
|
|
9972
|
+
mq.removeEventListener("change", handler);
|
|
9973
|
+
}) : (mq.addListener(handler), () => {
|
|
9974
|
+
mq.removeListener(handler);
|
|
9975
|
+
});
|
|
9976
|
+
}
|
|
9977
|
+
function applyInlineVideoPlaybackFlags(el2, options) {
|
|
9978
|
+
el2.muted = options.preferMuted || options.mutedPlaybackOverride, el2.playsInline = !0;
|
|
9979
|
+
}
|
|
9980
|
+
function tryDecorativeAutoplayWithMuteFallback(el2, context) {
|
|
9981
|
+
const { cancelled, preferMuted, getMutedOverride, setMutedOverride } = context;
|
|
9982
|
+
if (cancelled() || !el2.paused || (applyInlineVideoPlaybackFlags(el2, {
|
|
9983
|
+
preferMuted,
|
|
9984
|
+
mutedPlaybackOverride: getMutedOverride()
|
|
9985
|
+
}), el2.readyState < HTMLMediaElement.HAVE_CURRENT_DATA))
|
|
9986
|
+
return;
|
|
9987
|
+
const playPromise = el2.play();
|
|
9988
|
+
playPromise !== void 0 && playPromise.catch(() => {
|
|
9989
|
+
cancelled() || !el2.isConnected || !preferMuted && !getMutedOverride() && (setMutedOverride(!0), applyInlineVideoPlaybackFlags(el2, {
|
|
9990
|
+
preferMuted,
|
|
9991
|
+
mutedPlaybackOverride: !0
|
|
9992
|
+
}), el2.play().catch(() => {
|
|
9993
|
+
}));
|
|
9994
|
+
});
|
|
9995
|
+
}
|
|
9996
|
+
function subscribeDecorativeVideoAutoplayAttempts(el2, tryPlay, isCancelled) {
|
|
9997
|
+
const guardedTryPlay = () => {
|
|
9998
|
+
isCancelled() || tryPlay();
|
|
9999
|
+
}, onReady = () => {
|
|
10000
|
+
guardedTryPlay();
|
|
10001
|
+
};
|
|
10002
|
+
el2.readyState < HTMLMediaElement.HAVE_CURRENT_DATA ? (el2.addEventListener("loadeddata", onReady), el2.addEventListener("canplay", onReady)) : queueMicrotask(guardedTryPlay), queueMicrotask(guardedTryPlay), requestAnimationFrame(() => {
|
|
10003
|
+
guardedTryPlay();
|
|
10004
|
+
});
|
|
10005
|
+
const onWindowLoad = () => {
|
|
10006
|
+
guardedTryPlay();
|
|
10007
|
+
};
|
|
10008
|
+
return typeof document < "u" && typeof window < "u" && (document.readyState === "complete" ? queueMicrotask(guardedTryPlay) : window.addEventListener("load", onWindowLoad)), () => {
|
|
10009
|
+
el2.removeEventListener("loadeddata", onReady), el2.removeEventListener("canplay", onReady), typeof window < "u" && window.removeEventListener("load", onWindowLoad);
|
|
10010
|
+
};
|
|
10011
|
+
}
|
|
10012
|
+
var root_1$E = /* @__PURE__ */ from_html('<div class="rc-bg-video svelte-1m8h3ku" aria-hidden="true"><img alt="" class="fill svelte-1m8h3ku"/></div>'), root_4$f = /* @__PURE__ */ from_html('<source media="(max-width: 600px)"/>'), root_3$j = /* @__PURE__ */ from_html('<div class="rc-bg-video svelte-1m8h3ku" aria-hidden="true"><video class="fill svelte-1m8h3ku" playsinline="" autoplay preload="auto"><!> <source/></video></div>', 2);
|
|
10013
|
+
const $$css$1b = {
|
|
10014
|
+
hash: "svelte-1m8h3ku",
|
|
10015
|
+
code: `.rc-bg-video.svelte-1m8h3ku {position:absolute;inset:0;overflow:hidden;z-index:1;pointer-events:none;}
|
|
10016
|
+
|
|
10017
|
+
/**
|
|
10018
|
+
* Fill the layer with absolute edges (percent heights are unreliable under nested
|
|
10019
|
+
* flex/absolute hosts). Beat Paywall's global \`.paywall video { max-width: 100% }\`
|
|
10020
|
+
* so \`object-fit: cover|contain\` applies to the full backdrop box (e.g. carousel).
|
|
10021
|
+
*/.rc-bg-video.svelte-1m8h3ku :is(video:where(.svelte-1m8h3ku), img:where(.svelte-1m8h3ku)).fill:where(.svelte-1m8h3ku) {position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;display:block;}.rc-bg-video.svelte-1m8h3ku video.fill:where(.svelte-1m8h3ku) {transform:translateZ(0);-webkit-transform:translateZ(0);}`
|
|
10022
|
+
};
|
|
10023
|
+
function BackgroundVideoSurface($$anchor, $$props) {
|
|
10024
|
+
push($$props, !0), append_styles$1($$anchor, $$css$1b);
|
|
10025
|
+
let urlLowRes = prop($$props, "urlLowRes", 3, null), poster = prop($$props, "poster", 3, null), videoElement = /* @__PURE__ */ state(null), hasError = /* @__PURE__ */ state(!1), reduceMotion = /* @__PURE__ */ state(!1), playbackMutedOverride = /* @__PURE__ */ state(!1);
|
|
10026
|
+
onMount(() => {
|
|
10027
|
+
if (typeof window > "u") return;
|
|
10028
|
+
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
10029
|
+
return set(reduceMotion, mq.matches, !0), subscribeCompatMediaChange(mq, () => {
|
|
10030
|
+
set(reduceMotion, mq.matches, !0);
|
|
10031
|
+
});
|
|
10032
|
+
}), user_effect(() => {
|
|
10033
|
+
$$props.url, urlLowRes(), untrack(() => {
|
|
10034
|
+
set(hasError, !1), set(playbackMutedOverride, !1);
|
|
10035
|
+
}), queueMicrotask(() => {
|
|
10036
|
+
var _a3;
|
|
10037
|
+
(_a3 = get$1(videoElement)) == null || _a3.load();
|
|
10038
|
+
});
|
|
10039
|
+
});
|
|
10040
|
+
const showPosterOnly = /* @__PURE__ */ user_derived(() => get$1(reduceMotion) || get$1(hasError)), mediaStyle = /* @__PURE__ */ user_derived(() => `object-fit:${$$props.objectFit};object-position:${$$props.objectPosition}`);
|
|
10041
|
+
user_effect(() => {
|
|
10042
|
+
if (get$1(showPosterOnly) || !get$1(videoElement)) {
|
|
10043
|
+
untrack(() => {
|
|
10044
|
+
set(playbackMutedOverride, !1);
|
|
10045
|
+
});
|
|
10046
|
+
return;
|
|
10047
|
+
}
|
|
10048
|
+
const el2 = get$1(videoElement);
|
|
10049
|
+
let cancelled = !1;
|
|
10050
|
+
const isCancelled = () => cancelled, removeMediaListeners = subscribeDecorativeVideoAutoplayAttempts(el2, () => {
|
|
10051
|
+
tryDecorativeAutoplayWithMuteFallback(el2, {
|
|
10052
|
+
cancelled: isCancelled,
|
|
10053
|
+
preferMuted: $$props.mute,
|
|
10054
|
+
getMutedOverride: () => get$1(playbackMutedOverride),
|
|
10055
|
+
setMutedOverride: (v) => untrack(() => {
|
|
10056
|
+
set(playbackMutedOverride, v, !0);
|
|
10057
|
+
})
|
|
10058
|
+
});
|
|
10059
|
+
}, isCancelled);
|
|
10060
|
+
return () => {
|
|
10061
|
+
cancelled = !0, removeMediaListeners();
|
|
10062
|
+
};
|
|
10063
|
+
});
|
|
10064
|
+
function onVideoError() {
|
|
10065
|
+
set(hasError, !0);
|
|
10066
|
+
}
|
|
10067
|
+
var fragment = comment(), node = first_child(fragment);
|
|
10068
|
+
{
|
|
10069
|
+
var consequent = ($$anchor2) => {
|
|
10070
|
+
var div = root_1$E(), img = child(div);
|
|
10071
|
+
template_effect(() => {
|
|
10072
|
+
set_attribute(img, "src", poster()), set_style(img, get$1(mediaStyle));
|
|
10073
|
+
}), append($$anchor2, div);
|
|
10074
|
+
}, alternate_1 = ($$anchor2) => {
|
|
10075
|
+
var fragment_1 = comment(), node_1 = first_child(fragment_1);
|
|
10076
|
+
{
|
|
10077
|
+
var consequent_1 = ($$anchor3) => {
|
|
10078
|
+
}, alternate = ($$anchor3) => {
|
|
10079
|
+
var div_1 = root_3$j(), video = child(div_1), node_2 = child(video);
|
|
10080
|
+
{
|
|
10081
|
+
var consequent_2 = ($$anchor4) => {
|
|
10082
|
+
var source2 = root_4$f();
|
|
10083
|
+
template_effect(() => set_attribute(source2, "src", urlLowRes())), append($$anchor4, source2);
|
|
10084
|
+
};
|
|
10085
|
+
if_block(node_2, ($$render) => {
|
|
10086
|
+
urlLowRes() && $$render(consequent_2);
|
|
10087
|
+
});
|
|
10088
|
+
}
|
|
10089
|
+
var source_1 = sibling(node_2, 2);
|
|
10090
|
+
bind_this(video, ($$value) => set(videoElement, $$value), () => get$1(videoElement)), template_effect(() => {
|
|
10091
|
+
set_style(video, get$1(mediaStyle)), video.loop = $$props.loop, video.muted = $$props.mute || get$1(playbackMutedOverride), set_attribute(video, "poster", poster() ?? void 0), set_attribute(source_1, "src", $$props.url);
|
|
10092
|
+
}), event("error", video, onVideoError), event("error", source_1, onVideoError), append($$anchor3, div_1);
|
|
10093
|
+
};
|
|
10094
|
+
if_block(
|
|
10095
|
+
node_1,
|
|
10096
|
+
($$render) => {
|
|
10097
|
+
get$1(showPosterOnly) ? $$render(consequent_1) : $$render(alternate, !1);
|
|
10098
|
+
},
|
|
10099
|
+
!0
|
|
10100
|
+
);
|
|
10101
|
+
}
|
|
10102
|
+
append($$anchor2, fragment_1);
|
|
10103
|
+
};
|
|
10104
|
+
if_block(node, ($$render) => {
|
|
10105
|
+
get$1(showPosterOnly) && poster() ? $$render(consequent) : $$render(alternate_1, !1);
|
|
10106
|
+
});
|
|
10107
|
+
}
|
|
10108
|
+
append($$anchor, fragment), pop();
|
|
10109
|
+
}
|
|
9970
10110
|
function toStore(get2, set2) {
|
|
9971
10111
|
var effect2 = active_effect, reaction = active_reaction, init_value = get2();
|
|
9972
10112
|
return {
|
|
@@ -10591,6 +10731,127 @@ function ButtonNode($$anchor, $$props) {
|
|
|
10591
10731
|
}
|
|
10592
10732
|
append($$anchor, fragment), pop(), $$cleanup();
|
|
10593
10733
|
}
|
|
10734
|
+
const hasComponentOfTypeInSubtree = (stack, componentType) => findComponentOfTypeInSubtree(stack, componentType) !== void 0, findComponentOfTypeInSubtree = (stack, componentType) => {
|
|
10735
|
+
var _a3;
|
|
10736
|
+
for (const component2 of stack.components) {
|
|
10737
|
+
const found = findComponentTypeInComponent(component2, componentType);
|
|
10738
|
+
if (found)
|
|
10739
|
+
return found;
|
|
10740
|
+
}
|
|
10741
|
+
return (_a3 = stack.badge) != null && _a3.stack ? findComponentOfTypeInSubtree(stack.badge.stack, componentType) : void 0;
|
|
10742
|
+
}, findComponentTypeInComponent = (component2, componentType) => {
|
|
10743
|
+
if (component2.type === componentType)
|
|
10744
|
+
return component2;
|
|
10745
|
+
if (component2.fallback) {
|
|
10746
|
+
const found = findComponentTypeInComponent(component2.fallback, componentType);
|
|
10747
|
+
if (found)
|
|
10748
|
+
return found;
|
|
10749
|
+
}
|
|
10750
|
+
switch (component2.type) {
|
|
10751
|
+
case "carousel":
|
|
10752
|
+
for (const page of component2.pages) {
|
|
10753
|
+
const found = findComponentOfTypeInSubtree(page, componentType);
|
|
10754
|
+
if (found)
|
|
10755
|
+
return found;
|
|
10756
|
+
}
|
|
10757
|
+
return;
|
|
10758
|
+
case "package":
|
|
10759
|
+
case "purchase_button":
|
|
10760
|
+
case "tab":
|
|
10761
|
+
case "tab_control_button":
|
|
10762
|
+
return findComponentOfTypeInSubtree(component2.stack, componentType);
|
|
10763
|
+
case "wallet_button":
|
|
10764
|
+
return component2.stack ? findComponentOfTypeInSubtree(component2.stack, componentType) : void 0;
|
|
10765
|
+
case "stack":
|
|
10766
|
+
return findComponentOfTypeInSubtree(component2, componentType);
|
|
10767
|
+
case "tabs": {
|
|
10768
|
+
const foundInControl = findComponentOfTypeInSubtree(component2.control.stack, componentType);
|
|
10769
|
+
if (foundInControl)
|
|
10770
|
+
return foundInControl;
|
|
10771
|
+
for (const tab of component2.tabs) {
|
|
10772
|
+
const found = findComponentOfTypeInSubtree(tab.stack, componentType);
|
|
10773
|
+
if (found)
|
|
10774
|
+
return found;
|
|
10775
|
+
}
|
|
10776
|
+
return;
|
|
10777
|
+
}
|
|
10778
|
+
default:
|
|
10779
|
+
return;
|
|
10780
|
+
}
|
|
10781
|
+
};
|
|
10782
|
+
var root_1$D = /* @__PURE__ */ from_html("<div><!></div> <!>", 1);
|
|
10783
|
+
const $$css$1a = {
|
|
10784
|
+
hash: "svelte-1rkuqpy",
|
|
10785
|
+
code: ".wallet-slot.svelte-1rkuqpy {display:contents;}.wallet-slot-hidden.svelte-1rkuqpy {display:none;}"
|
|
10786
|
+
};
|
|
10787
|
+
function ExpressPurchaseButton($$anchor, $$props) {
|
|
10788
|
+
push($$props, !0), append_styles$1($$anchor, $$css$1a);
|
|
10789
|
+
const partialStackProps = /* @__PURE__ */ rest_props($$props, [
|
|
10790
|
+
"$$slots",
|
|
10791
|
+
"$$events",
|
|
10792
|
+
"$$legacy",
|
|
10793
|
+
"wallet_unknown_stack",
|
|
10794
|
+
"wallet_available_stack",
|
|
10795
|
+
"wallet_unavailable_stack",
|
|
10796
|
+
"type"
|
|
10797
|
+
]), {
|
|
10798
|
+
walletButtonRender,
|
|
10799
|
+
prepareWalletPurchase,
|
|
10800
|
+
onWalletPurchaseClicked,
|
|
10801
|
+
...rest
|
|
10802
|
+
} = getPaywallContext(), availableStackHasWalletButton = untrack(() => hasComponentOfTypeInSubtree($$props.wallet_available_stack, "wallet_button")), walletButton = untrack(() => findComponentOfTypeInSubtree($$props.wallet_available_stack, "wallet_button")), hostReady = (walletButton == null ? void 0 : walletButton.type) === "wallet_button" && walletButton.mode === "custom" ? !!prepareWalletPurchase && !!onWalletPurchaseClicked : !!walletButtonRender;
|
|
10803
|
+
let walletButtonAvailable = /* @__PURE__ */ state(proxy(availableStackHasWalletButton ? void 0 : !1)), shouldShowWalletSkeleton = /* @__PURE__ */ state(proxy(hostReady && availableStackHasWalletButton));
|
|
10804
|
+
setPaywallContext({
|
|
10805
|
+
walletButtonRender,
|
|
10806
|
+
prepareWalletPurchase,
|
|
10807
|
+
onWalletPurchaseClicked,
|
|
10808
|
+
...rest,
|
|
10809
|
+
onWalletButtonReady: (isAvailable) => {
|
|
10810
|
+
set(walletButtonAvailable, hostReady ? isAvailable : !1, !0), set(shouldShowWalletSkeleton, !1);
|
|
10811
|
+
}
|
|
10812
|
+
});
|
|
10813
|
+
const shouldShowUnavailableStack = /* @__PURE__ */ user_derived(() => !get$1(walletButtonAvailable) || !$$props.wallet_available_stack), shouldShowAvailableStack = /* @__PURE__ */ user_derived(() => !!($$props.wallet_available_stack && get$1(walletButtonAvailable) && !get$1(shouldShowWalletSkeleton))), wrapperStackProps = /* @__PURE__ */ user_derived(() => ({
|
|
10814
|
+
components: [],
|
|
10815
|
+
type: "stack",
|
|
10816
|
+
visible: null,
|
|
10817
|
+
dimension: { type: "vertical", distribution: "start", alignment: "center" },
|
|
10818
|
+
background_color: null,
|
|
10819
|
+
spacing: 0,
|
|
10820
|
+
...partialStackProps
|
|
10821
|
+
}));
|
|
10822
|
+
Stack($$anchor, spread_props(() => get$1(wrapperStackProps), {
|
|
10823
|
+
children: ($$anchor2, $$slotProps) => {
|
|
10824
|
+
var fragment_1 = root_1$D(), div = first_child(fragment_1), node = child(div);
|
|
10825
|
+
Stack(node, spread_props(() => $$props.wallet_available_stack));
|
|
10826
|
+
var node_1 = sibling(div, 2);
|
|
10827
|
+
{
|
|
10828
|
+
var consequent = ($$anchor3) => {
|
|
10829
|
+
Stack($$anchor3, spread_props(() => $$props.wallet_unknown_stack));
|
|
10830
|
+
}, alternate = ($$anchor3) => {
|
|
10831
|
+
var fragment_3 = comment(), node_2 = first_child(fragment_3);
|
|
10832
|
+
{
|
|
10833
|
+
var consequent_1 = ($$anchor4) => {
|
|
10834
|
+
Stack($$anchor4, spread_props(() => $$props.wallet_unavailable_stack));
|
|
10835
|
+
};
|
|
10836
|
+
if_block(
|
|
10837
|
+
node_2,
|
|
10838
|
+
($$render) => {
|
|
10839
|
+
get$1(shouldShowUnavailableStack) && $$render(consequent_1);
|
|
10840
|
+
},
|
|
10841
|
+
!0
|
|
10842
|
+
);
|
|
10843
|
+
}
|
|
10844
|
+
append($$anchor3, fragment_3);
|
|
10845
|
+
};
|
|
10846
|
+
if_block(node_1, ($$render) => {
|
|
10847
|
+
get$1(shouldShowWalletSkeleton) ? $$render(consequent) : $$render(alternate, !1);
|
|
10848
|
+
});
|
|
10849
|
+
}
|
|
10850
|
+
template_effect(() => set_class(div, 1, clsx(get$1(shouldShowAvailableStack) ? "wallet-slot" : "wallet-slot-hidden"), "svelte-1rkuqpy")), append($$anchor2, fragment_1);
|
|
10851
|
+
},
|
|
10852
|
+
$$slots: { default: !0 }
|
|
10853
|
+
})), pop();
|
|
10854
|
+
}
|
|
10594
10855
|
const STICKY_OVERLAY_Z_INDEX = 1e3, DEFAULT_COLOR_MODE = "light", DEFAULT_TEXT_COLOR = "#000000", DEFAULT_SPACING$2 = {
|
|
10595
10856
|
top: 0,
|
|
10596
10857
|
bottom: 0,
|
|
@@ -10896,7 +11157,7 @@ function mapBorderRadius(shape) {
|
|
|
10896
11157
|
case "convex":
|
|
10897
11158
|
return "0";
|
|
10898
11159
|
case "rectangle":
|
|
10899
|
-
return
|
|
11160
|
+
return mapCornerRadius(shape.corners);
|
|
10900
11161
|
case "circle":
|
|
10901
11162
|
case "pill":
|
|
10902
11163
|
return "9999px";
|
|
@@ -11018,7 +11279,7 @@ async function registerFonts(uiConfig) {
|
|
|
11018
11279
|
const fontPromises = [];
|
|
11019
11280
|
for (const [fontId, fontConfig] of Object.entries(uiConfig.app.fonts)) {
|
|
11020
11281
|
const webConfig = fontConfig.web;
|
|
11021
|
-
if (!webConfig
|
|
11282
|
+
if (!(webConfig != null && webConfig.url) || !webConfig.family) {
|
|
11022
11283
|
console.warn(`[Font Registration] Skipping font ${fontId}: missing web config or required fields`);
|
|
11023
11284
|
continue;
|
|
11024
11285
|
}
|
|
@@ -11133,10 +11394,10 @@ const HTML_ESCAPE_MAP = {
|
|
|
11133
11394
|
function escapeHtml(text2) {
|
|
11134
11395
|
return text2.replace(/[&<>"']/g, (character) => HTML_ESCAPE_MAP[character]);
|
|
11135
11396
|
}
|
|
11136
|
-
const SAFE_URL_SCHEMES = ["http", "https", "mailto", "tel"];
|
|
11397
|
+
const SAFE_URL_SCHEMES = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel"]);
|
|
11137
11398
|
function sanitizeUrl(url) {
|
|
11138
11399
|
const schemeMatch = Array.from(url).filter((character) => character.charCodeAt(0) > 32).join("").toLowerCase().match(/^([a-z][a-z0-9+.-]*):/);
|
|
11139
|
-
return schemeMatch && !SAFE_URL_SCHEMES.
|
|
11400
|
+
return schemeMatch && !SAFE_URL_SCHEMES.has(schemeMatch[1]) ? null : url;
|
|
11140
11401
|
}
|
|
11141
11402
|
function getHtmlFromMarkdown(text2) {
|
|
11142
11403
|
if (!text2)
|
|
@@ -11184,10 +11445,10 @@ function compilePattern(pattern) {
|
|
|
11184
11445
|
function failingRuleFromValidity(validity, customRule = null) {
|
|
11185
11446
|
return validity.valid ? null : validity.valueMissing ? "required" : validity.rangeUnderflow ? "minimum" : validity.rangeOverflow ? "maximum" : validity.tooShort ? "minLength" : validity.tooLong ? "maxLength" : validity.customError && customRule ? customRule : validity.patternMismatch ? "pattern" : validity.typeMismatch || validity.badInput || validity.stepMismatch ? "format" : null;
|
|
11186
11447
|
}
|
|
11187
|
-
var root_2$i = /* @__PURE__ */ from_html('<span class="sizer svelte-
|
|
11188
|
-
const $$css$
|
|
11189
|
-
hash: "svelte-
|
|
11190
|
-
code: `.rc-input-error.svelte-
|
|
11448
|
+
var root_2$i = /* @__PURE__ */ from_html('<span class="sizer svelte-1x4qxcr" aria-hidden="true"> </span>'), root_4$e = /* @__PURE__ */ from_html('<span class="rc-input-error-message" role="alert"><!></span>'), root_3$i = /* @__PURE__ */ from_html('<div class="rc-input-error svelte-1x4qxcr"><!></div>'), root_1$C = /* @__PURE__ */ from_html('<div class="rc-input-text"><div><!> <input/></div> <!></div>');
|
|
11449
|
+
const $$css$19 = {
|
|
11450
|
+
hash: "svelte-1x4qxcr",
|
|
11451
|
+
code: `.rc-input-error.svelte-1x4qxcr {
|
|
11191
11452
|
/* A parent stack paints a full-size absolutely positioned \`::before\`
|
|
11192
11453
|
overlay, which sits above static descendants and swallows their pointer
|
|
11193
11454
|
events. Positioning the row paints it after that overlay so links in the
|
|
@@ -11198,13 +11459,13 @@ const $$css$1b = {
|
|
|
11198
11459
|
/* Never let the message dictate the width: a \`fit\` width container sizes
|
|
11199
11460
|
to the bordered box (the sizer), and the row stretches to match and
|
|
11200
11461
|
wraps. A cyclic percentage min-width counts as zero for intrinsic
|
|
11201
|
-
sizing, which is what keeps the row out of the measurement. */width:0;min-width:100%;}input.svelte-
|
|
11462
|
+
sizing, which is what keeps the row out of the measurement. */width:0;min-width:100%;}input.svelte-1x4qxcr {width:100%;height:100%;border:none;background:transparent;border-radius:inherit;}.content-sized.svelte-1x4qxcr {position:relative;}.sizer.svelte-1x4qxcr {display:block;visibility:hidden;white-space:pre;line-height:normal; /* Match the intrinsic height of a bare <input> */border-inline-end:2px solid transparent; /* Room for the caret */}.content-sized.svelte-1x4qxcr input:where(.svelte-1x4qxcr) {position:absolute;inset:0;width:auto;height:auto;}
|
|
11202
11463
|
|
|
11203
|
-
/* Spin buttons would overlap the text of a content-sized number input. */.content-sized.svelte-
|
|
11204
|
-
.content-sized.svelte-
|
|
11464
|
+
/* Spin buttons would overlap the text of a content-sized number input. */.content-sized.svelte-1x4qxcr input:where(.svelte-1x4qxcr)::-webkit-outer-spin-button,
|
|
11465
|
+
.content-sized.svelte-1x4qxcr input:where(.svelte-1x4qxcr)::-webkit-inner-spin-button {-webkit-appearance:none;margin:0;}.content-sized.svelte-1x4qxcr input[type="number"]:where(.svelte-1x4qxcr) {-moz-appearance:textfield;appearance:textfield;}input.svelte-1x4qxcr:focus-visible {outline:none;}input.svelte-1x4qxcr::placeholder {color:var(--placeholder-color);background:var(--placeholder-background);background-clip:var(--placeholder-background-clip);-webkit-background-clip:var(--placeholder-webkit-background-clip);text-align:var(--placeholder-text-align);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-font-size);font-family:var(--placeholder-font-family);}`
|
|
11205
11466
|
};
|
|
11206
11467
|
function InputText($$anchor, $$props) {
|
|
11207
|
-
push($$props, !0), append_styles$1($$anchor, $$css$
|
|
11468
|
+
push($$props, !0), append_styles$1($$anchor, $$css$19);
|
|
11208
11469
|
const $variables = () => store_get(variables, "$variables", $$stores), [$$stores, $$cleanup] = setup_stores(), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]);
|
|
11209
11470
|
let focused = /* @__PURE__ */ state(!1), error2 = /* @__PURE__ */ state(!1), valid = /* @__PURE__ */ state(!$$props.required), failedRule = /* @__PURE__ */ state(null), currentValue = /* @__PURE__ */ state("");
|
|
11210
11471
|
const buildConditionContext = useConditionContext({ state: !0 }), $$d = /* @__PURE__ */ user_derived(() => ({
|
|
@@ -11358,7 +11619,7 @@ function InputText($$anchor, $$props) {
|
|
|
11358
11619
|
var fragment = comment(), node = first_child(fragment);
|
|
11359
11620
|
{
|
|
11360
11621
|
var consequent_3 = ($$anchor2) => {
|
|
11361
|
-
var div = root_1$
|
|
11622
|
+
var div = root_1$C(), div_1 = child(div);
|
|
11362
11623
|
let classes;
|
|
11363
11624
|
var node_1 = child(div_1);
|
|
11364
11625
|
{
|
|
@@ -11392,18 +11653,18 @@ function InputText($$anchor, $$props) {
|
|
|
11392
11653
|
void 0,
|
|
11393
11654
|
void 0,
|
|
11394
11655
|
void 0,
|
|
11395
|
-
"svelte-
|
|
11656
|
+
"svelte-1x4qxcr",
|
|
11396
11657
|
!0
|
|
11397
11658
|
);
|
|
11398
11659
|
var node_2 = sibling(div_1, 2);
|
|
11399
11660
|
{
|
|
11400
11661
|
var consequent_2 = ($$anchor3) => {
|
|
11401
|
-
var div_2 = root_3$
|
|
11662
|
+
var div_2 = root_3$i();
|
|
11402
11663
|
div_2.__click = onErrorClick;
|
|
11403
11664
|
var node_3 = child(div_2);
|
|
11404
11665
|
{
|
|
11405
11666
|
var consequent_1 = ($$anchor4) => {
|
|
11406
|
-
var span_1 = root_4$
|
|
11667
|
+
var span_1 = root_4$e(), node_4 = child(span_1);
|
|
11407
11668
|
html(node_4, () => get$1(errorHtml)), template_effect(() => set_attribute(span_1, "id", get$1(errorId))), append($$anchor4, span_1);
|
|
11408
11669
|
};
|
|
11409
11670
|
if_block(node_3, ($$render) => {
|
|
@@ -11417,7 +11678,7 @@ function InputText($$anchor, $$props) {
|
|
|
11417
11678
|
});
|
|
11418
11679
|
}
|
|
11419
11680
|
template_effect(() => {
|
|
11420
|
-
set_style(div, get$1(containerStyle)), classes = set_class(div_1, 1, "rc-gradient-border svelte-
|
|
11681
|
+
set_style(div, get$1(containerStyle)), classes = set_class(div_1, 1, "rc-gradient-border svelte-1x4qxcr", null, classes, { "content-sized": get$1(isContentSized) }), set_style(div_1, get$1(wrapperStyle));
|
|
11421
11682
|
}), append($$anchor2, div);
|
|
11422
11683
|
};
|
|
11423
11684
|
if_block(node, ($$render) => {
|
|
@@ -11427,16 +11688,7 @@ function InputText($$anchor, $$props) {
|
|
|
11427
11688
|
append($$anchor, fragment), pop(), $$cleanup();
|
|
11428
11689
|
}
|
|
11429
11690
|
delegate(["click"]);
|
|
11430
|
-
const
|
|
11431
|
-
set2(performance.now());
|
|
11432
|
-
let frameId, stopped = !1;
|
|
11433
|
-
const tick2 = (now2) => {
|
|
11434
|
-
set2(now2), !stopped && (frameId = requestAnimationFrame(tick2));
|
|
11435
|
-
};
|
|
11436
|
-
return frameId = requestAnimationFrame(tick2), () => {
|
|
11437
|
-
stopped = !0, frameId !== void 0 && cancelAnimationFrame(frameId);
|
|
11438
|
-
};
|
|
11439
|
-
}), key$9 = Symbol("loader");
|
|
11691
|
+
const key$9 = Symbol("loader");
|
|
11440
11692
|
function setLoaderContext(store) {
|
|
11441
11693
|
setContext(key$9, store);
|
|
11442
11694
|
}
|
|
@@ -11447,41 +11699,6 @@ function getRequiredLoaderContext(componentName) {
|
|
|
11447
11699
|
const ctx = getLoaderContext();
|
|
11448
11700
|
return ctx || (console.warn(`${componentName} was rendered outside a Loader; progress will stay at 0.`), readable({ progress: 0 }));
|
|
11449
11701
|
}
|
|
11450
|
-
function LoaderNode($$anchor, $$props) {
|
|
11451
|
-
push($$props, !0);
|
|
11452
|
-
const props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), { onButtonAction } = getPaywallContext(), buildConditionContext = useConditionContext({ state: !0 }), actualProps = /* @__PURE__ */ user_derived(() => ({
|
|
11453
|
-
...props,
|
|
11454
|
-
...resolveOverrideProperties(buildConditionContext(), $$props.overrides)
|
|
11455
|
-
})), loaderStore = writable({ progress: 0 });
|
|
11456
|
-
setLoaderContext(loaderStore);
|
|
11457
|
-
const isVisible = /* @__PURE__ */ user_derived(() => get$1(actualProps).visible !== !1);
|
|
11458
|
-
user_effect(() => {
|
|
11459
|
-
if (get$1(isVisible))
|
|
11460
|
-
return untrack(() => {
|
|
11461
|
-
let fired = !1, unsubscribe, dispatchFrame;
|
|
11462
|
-
const startTs = performance.now(), onFrame = (now2) => {
|
|
11463
|
-
const elapsed = Math.max(0, now2 - startTs), next = Math.min(1, elapsed / Math.max(1, get$1(actualProps).loading_duration_ms));
|
|
11464
|
-
if (loaderStore.set({ progress: next }), next < 1 || fired) return;
|
|
11465
|
-
fired = !0, unsubscribe == null || unsubscribe(), unsubscribe = void 0;
|
|
11466
|
-
const actionId = get$1(actualProps).action.type === "workflow" ? get$1(actualProps).id : void 0;
|
|
11467
|
-
dispatchFrame = requestAnimationFrame(() => onButtonAction(get$1(actualProps).action, actionId));
|
|
11468
|
-
};
|
|
11469
|
-
return unsubscribe = sharedFrameNow.subscribe(onFrame), () => {
|
|
11470
|
-
unsubscribe == null || unsubscribe(), dispatchFrame !== void 0 && cancelAnimationFrame(dispatchFrame);
|
|
11471
|
-
};
|
|
11472
|
-
});
|
|
11473
|
-
});
|
|
11474
|
-
var fragment = comment(), node = first_child(fragment);
|
|
11475
|
-
{
|
|
11476
|
-
var consequent = ($$anchor2) => {
|
|
11477
|
-
Stack($$anchor2, spread_props(() => get$1(actualProps).stack, { testId: "loader" }));
|
|
11478
|
-
};
|
|
11479
|
-
if_block(node, ($$render) => {
|
|
11480
|
-
get$1(isVisible) && $$render(consequent);
|
|
11481
|
-
});
|
|
11482
|
-
}
|
|
11483
|
-
append($$anchor, fragment), pop();
|
|
11484
|
-
}
|
|
11485
11702
|
const resolveAnimationFill = (track, fill) => {
|
|
11486
11703
|
if (!fill)
|
|
11487
11704
|
return track;
|
|
@@ -11495,7 +11712,7 @@ const resolveAnimationFill = (track, fill) => {
|
|
|
11495
11712
|
var consequent = ($$anchor2) => {
|
|
11496
11713
|
var linearGradient = root_2$h();
|
|
11497
11714
|
each(linearGradient, 21, () => info().points, (point) => `${point.percent}-${point.color}`, ($$anchor3, point) => {
|
|
11498
|
-
var stop = root_3$
|
|
11715
|
+
var stop = root_3$h();
|
|
11499
11716
|
template_effect(() => {
|
|
11500
11717
|
set_attribute(stop, "offset", `${get$1(point).percent ?? ""}%`), set_attribute(stop, "stop-color", get$1(point).color);
|
|
11501
11718
|
}), append($$anchor3, stop);
|
|
@@ -11530,19 +11747,19 @@ const resolveAnimationFill = (track, fill) => {
|
|
|
11530
11747
|
}
|
|
11531
11748
|
append($$anchor, fragment);
|
|
11532
11749
|
};
|
|
11533
|
-
var root_3$
|
|
11534
|
-
const $$css$
|
|
11535
|
-
hash: "svelte-
|
|
11536
|
-
code: `.rc-loader-animation.svelte-
|
|
11750
|
+
var root_3$h = /* @__PURE__ */ from_svg("<stop></stop>"), root_2$h = /* @__PURE__ */ from_svg("<linearGradient></linearGradient>"), root_6$6 = /* @__PURE__ */ from_svg("<stop></stop>"), root_5$8 = /* @__PURE__ */ from_svg("<radialGradient></radialGradient>"), root_8$7 = /* @__PURE__ */ from_html('<div><svg width="100%" height="100%" aria-hidden="true" class="rc-loader-animation rc-loader-animation--circular svelte-12jhk2j"><defs><!><!></defs><circle fill="none"></circle><circle fill="none"></circle></svg></div>'), root_10$4 = /* @__PURE__ */ from_html('<div><div class="rc-loader-animation rc-loader-animation--linear rc-gradient-border svelte-12jhk2j"><div><div class="rc-loader-animation__fill rc-gradient-border svelte-12jhk2j"></div></div></div></div>');
|
|
11751
|
+
const $$css$18 = {
|
|
11752
|
+
hash: "svelte-12jhk2j",
|
|
11753
|
+
code: `.rc-loader-animation.svelte-12jhk2j {box-sizing:border-box;}.rc-loader-animation__fill.svelte-12jhk2j {box-sizing:border-box;transition:width 0.05s linear;}
|
|
11537
11754
|
|
|
11538
11755
|
/* Inline transition would beat this — keep it in the stylesheet so
|
|
11539
11756
|
reduced-motion can actually override it. */
|
|
11540
|
-
@media (prefers-reduced-motion: reduce) {.rc-loader-animation__fill.svelte-
|
|
11757
|
+
@media (prefers-reduced-motion: reduce) {.rc-loader-animation__fill.svelte-12jhk2j {transition:none;}
|
|
11541
11758
|
}`
|
|
11542
11759
|
};
|
|
11543
11760
|
function LoaderAnimation($$anchor, $$props) {
|
|
11544
11761
|
const svgId = props_id();
|
|
11545
|
-
push($$props, !0), append_styles$1($$anchor, $$css$
|
|
11762
|
+
push($$props, !0), append_styles$1($$anchor, $$css$18);
|
|
11546
11763
|
const $loader = () => store_get(loader, "$loader", $$stores), [$$stores, $$cleanup] = setup_stores(), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), trackGradientId = `${svgId}-track`, fillGradientId = `${svgId}-fill`;
|
|
11547
11764
|
function svgPaint(info, id2) {
|
|
11548
11765
|
return info.type === "alias" || info.type === "hex" ? mapColorInfo(info) : `url(#${id2})`;
|
|
@@ -11649,6 +11866,37 @@ function LoaderAnimation($$anchor, $$props) {
|
|
|
11649
11866
|
}
|
|
11650
11867
|
append($$anchor, fragment_2), pop(), $$cleanup();
|
|
11651
11868
|
}
|
|
11869
|
+
function LoaderGroupItem($$anchor, $$props) {
|
|
11870
|
+
push($$props, !0);
|
|
11871
|
+
const props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), buildConditionContext = useConditionContext({ state: !0 }), actualProps = /* @__PURE__ */ user_derived(() => ({
|
|
11872
|
+
...props,
|
|
11873
|
+
...resolveOverrideProperties(buildConditionContext(), $$props.overrides)
|
|
11874
|
+
})), isVisible = /* @__PURE__ */ user_derived(() => get$1(actualProps).visible !== !1), ambientLoader = getRequiredLoaderContext($$props.type), localLoader = derived([ambientLoader, toStore(() => get$1(actualProps))], ([$ambientLoader, $actualProps]) => {
|
|
11875
|
+
const span = $actualProps.ends_at - $actualProps.starts_at;
|
|
11876
|
+
if (span <= 0) return { progress: 0 };
|
|
11877
|
+
const pct = ($ambientLoader.progress * 100 - $actualProps.starts_at) / span;
|
|
11878
|
+
return { progress: Math.min(1, Math.max(0, pct)) };
|
|
11879
|
+
});
|
|
11880
|
+
setLoaderContext(localLoader);
|
|
11881
|
+
var fragment = comment(), node = first_child(fragment);
|
|
11882
|
+
{
|
|
11883
|
+
var consequent = ($$anchor2) => {
|
|
11884
|
+
Stack($$anchor2, spread_props(() => get$1(actualProps).stack, { testId: "loader-group-item" }));
|
|
11885
|
+
};
|
|
11886
|
+
if_block(node, ($$render) => {
|
|
11887
|
+
get$1(isVisible) && $$render(consequent);
|
|
11888
|
+
});
|
|
11889
|
+
}
|
|
11890
|
+
append($$anchor, fragment), pop();
|
|
11891
|
+
}
|
|
11892
|
+
const key$8 = Symbol("stack-dimension");
|
|
11893
|
+
function setStackDimensionContext(context) {
|
|
11894
|
+
const parentContext = getStackDimensionContext();
|
|
11895
|
+
return setContext(key$8, context), parentContext;
|
|
11896
|
+
}
|
|
11897
|
+
function getStackDimensionContext() {
|
|
11898
|
+
return getContext(key$8);
|
|
11899
|
+
}
|
|
11652
11900
|
const ALIGNMENT_MAP = Object.freeze({
|
|
11653
11901
|
leading: "flex-start",
|
|
11654
11902
|
top: "flex-start",
|
|
@@ -11751,169 +11999,6 @@ function mapBadge(badge, parentBorderWidth) {
|
|
|
11751
11999
|
transform: isCenter ? "translateX(-50%)" : "initial"
|
|
11752
12000
|
} : {};
|
|
11753
12001
|
}
|
|
11754
|
-
const key$8 = Symbol("stack-dimension");
|
|
11755
|
-
function setStackDimensionContext(context) {
|
|
11756
|
-
const parentContext = getStackDimensionContext();
|
|
11757
|
-
return setContext(key$8, context), parentContext;
|
|
11758
|
-
}
|
|
11759
|
-
function getStackDimensionContext() {
|
|
11760
|
-
return getContext(key$8);
|
|
11761
|
-
}
|
|
11762
|
-
function subscribeCompatMediaChange(mq, handler) {
|
|
11763
|
-
return typeof mq.addEventListener == "function" ? (mq.addEventListener("change", handler), () => mq.removeEventListener("change", handler)) : (mq.addListener(handler), () => mq.removeListener(handler));
|
|
11764
|
-
}
|
|
11765
|
-
function applyInlineVideoPlaybackFlags(el2, options) {
|
|
11766
|
-
el2.muted = options.preferMuted || options.mutedPlaybackOverride, el2.playsInline = !0;
|
|
11767
|
-
}
|
|
11768
|
-
function tryDecorativeAutoplayWithMuteFallback(el2, context) {
|
|
11769
|
-
const { cancelled, preferMuted, getMutedOverride, setMutedOverride } = context;
|
|
11770
|
-
if (cancelled() || !el2.paused || (applyInlineVideoPlaybackFlags(el2, {
|
|
11771
|
-
preferMuted,
|
|
11772
|
-
mutedPlaybackOverride: getMutedOverride()
|
|
11773
|
-
}), el2.readyState < HTMLMediaElement.HAVE_CURRENT_DATA))
|
|
11774
|
-
return;
|
|
11775
|
-
const playPromise = el2.play();
|
|
11776
|
-
playPromise !== void 0 && playPromise.catch(() => {
|
|
11777
|
-
cancelled() || !el2.isConnected || !preferMuted && !getMutedOverride() && (setMutedOverride(!0), applyInlineVideoPlaybackFlags(el2, {
|
|
11778
|
-
preferMuted,
|
|
11779
|
-
mutedPlaybackOverride: !0
|
|
11780
|
-
}), el2.play().catch(() => {
|
|
11781
|
-
}));
|
|
11782
|
-
});
|
|
11783
|
-
}
|
|
11784
|
-
function subscribeDecorativeVideoAutoplayAttempts(el2, tryPlay, isCancelled) {
|
|
11785
|
-
const guardedTryPlay = () => {
|
|
11786
|
-
isCancelled() || tryPlay();
|
|
11787
|
-
}, onReady = () => guardedTryPlay();
|
|
11788
|
-
el2.readyState < HTMLMediaElement.HAVE_CURRENT_DATA ? (el2.addEventListener("loadeddata", onReady), el2.addEventListener("canplay", onReady)) : queueMicrotask(guardedTryPlay), queueMicrotask(guardedTryPlay), requestAnimationFrame(() => {
|
|
11789
|
-
guardedTryPlay();
|
|
11790
|
-
});
|
|
11791
|
-
const onWindowLoad = () => guardedTryPlay();
|
|
11792
|
-
return typeof document < "u" && typeof window < "u" && (document.readyState === "complete" ? queueMicrotask(guardedTryPlay) : window.addEventListener("load", onWindowLoad)), () => {
|
|
11793
|
-
el2.removeEventListener("loadeddata", onReady), el2.removeEventListener("canplay", onReady), typeof window < "u" && window.removeEventListener("load", onWindowLoad);
|
|
11794
|
-
};
|
|
11795
|
-
}
|
|
11796
|
-
var root_1$D = /* @__PURE__ */ from_html('<div class="rc-bg-video svelte-ig9kos" aria-hidden="true"><img alt="" class="fill svelte-ig9kos"/></div>'), root_4$e = /* @__PURE__ */ from_html('<source media="(max-width: 600px)"/>'), root_3$h = /* @__PURE__ */ from_html('<div class="rc-bg-video svelte-ig9kos" aria-hidden="true"><video class="fill svelte-ig9kos" playsinline="" autoplay preload="auto"><!> <source/></video></div>', 2);
|
|
11797
|
-
const $$css$19 = {
|
|
11798
|
-
hash: "svelte-ig9kos",
|
|
11799
|
-
code: `.rc-bg-video.svelte-ig9kos {position:absolute;inset:0;overflow:hidden;z-index:1;pointer-events:none;}
|
|
11800
|
-
|
|
11801
|
-
/**
|
|
11802
|
-
* Fill the layer with absolute edges (percent heights are unreliable under nested
|
|
11803
|
-
* flex/absolute hosts). Beat Paywall's global \`.paywall video { max-width: 100% }\`
|
|
11804
|
-
* so \`object-fit: cover|contain\` applies to the full backdrop box (e.g. carousel).
|
|
11805
|
-
*/.rc-bg-video.svelte-ig9kos :is(video:where(.svelte-ig9kos), img:where(.svelte-ig9kos)).fill:where(.svelte-ig9kos) {position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;display:block;}.rc-bg-video.svelte-ig9kos video.fill:where(.svelte-ig9kos) {transform:translateZ(0);-webkit-transform:translateZ(0);}`
|
|
11806
|
-
};
|
|
11807
|
-
function BackgroundVideoSurface($$anchor, $$props) {
|
|
11808
|
-
push($$props, !0), append_styles$1($$anchor, $$css$19);
|
|
11809
|
-
let urlLowRes = prop($$props, "urlLowRes", 3, null), poster = prop($$props, "poster", 3, null), videoElement = /* @__PURE__ */ state(null), hasError = /* @__PURE__ */ state(!1), reduceMotion = /* @__PURE__ */ state(!1), playbackMutedOverride = /* @__PURE__ */ state(!1);
|
|
11810
|
-
onMount(() => {
|
|
11811
|
-
if (typeof window > "u") return;
|
|
11812
|
-
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
11813
|
-
return set(reduceMotion, mq.matches, !0), subscribeCompatMediaChange(mq, () => {
|
|
11814
|
-
set(reduceMotion, mq.matches, !0);
|
|
11815
|
-
});
|
|
11816
|
-
}), user_effect(() => {
|
|
11817
|
-
$$props.url, urlLowRes(), untrack(() => {
|
|
11818
|
-
set(hasError, !1), set(playbackMutedOverride, !1);
|
|
11819
|
-
}), queueMicrotask(() => {
|
|
11820
|
-
var _a3;
|
|
11821
|
-
(_a3 = get$1(videoElement)) == null || _a3.load();
|
|
11822
|
-
});
|
|
11823
|
-
});
|
|
11824
|
-
const showPosterOnly = /* @__PURE__ */ user_derived(() => get$1(reduceMotion) || get$1(hasError)), mediaStyle = /* @__PURE__ */ user_derived(() => `object-fit:${$$props.objectFit};object-position:${$$props.objectPosition}`);
|
|
11825
|
-
user_effect(() => {
|
|
11826
|
-
if (get$1(showPosterOnly) || !get$1(videoElement)) {
|
|
11827
|
-
untrack(() => {
|
|
11828
|
-
set(playbackMutedOverride, !1);
|
|
11829
|
-
});
|
|
11830
|
-
return;
|
|
11831
|
-
}
|
|
11832
|
-
const el2 = get$1(videoElement);
|
|
11833
|
-
let cancelled = !1;
|
|
11834
|
-
const isCancelled = () => cancelled, removeMediaListeners = subscribeDecorativeVideoAutoplayAttempts(el2, () => {
|
|
11835
|
-
tryDecorativeAutoplayWithMuteFallback(el2, {
|
|
11836
|
-
cancelled: isCancelled,
|
|
11837
|
-
preferMuted: $$props.mute,
|
|
11838
|
-
getMutedOverride: () => get$1(playbackMutedOverride),
|
|
11839
|
-
setMutedOverride: (v) => untrack(() => {
|
|
11840
|
-
set(playbackMutedOverride, v, !0);
|
|
11841
|
-
})
|
|
11842
|
-
});
|
|
11843
|
-
}, isCancelled);
|
|
11844
|
-
return () => {
|
|
11845
|
-
cancelled = !0, removeMediaListeners();
|
|
11846
|
-
};
|
|
11847
|
-
});
|
|
11848
|
-
function onVideoError() {
|
|
11849
|
-
set(hasError, !0);
|
|
11850
|
-
}
|
|
11851
|
-
var fragment = comment(), node = first_child(fragment);
|
|
11852
|
-
{
|
|
11853
|
-
var consequent = ($$anchor2) => {
|
|
11854
|
-
var div = root_1$D(), img = child(div);
|
|
11855
|
-
template_effect(() => {
|
|
11856
|
-
set_attribute(img, "src", poster()), set_style(img, get$1(mediaStyle));
|
|
11857
|
-
}), append($$anchor2, div);
|
|
11858
|
-
}, alternate_1 = ($$anchor2) => {
|
|
11859
|
-
var fragment_1 = comment(), node_1 = first_child(fragment_1);
|
|
11860
|
-
{
|
|
11861
|
-
var consequent_1 = ($$anchor3) => {
|
|
11862
|
-
}, alternate = ($$anchor3) => {
|
|
11863
|
-
var div_1 = root_3$h(), video = child(div_1), node_2 = child(video);
|
|
11864
|
-
{
|
|
11865
|
-
var consequent_2 = ($$anchor4) => {
|
|
11866
|
-
var source2 = root_4$e();
|
|
11867
|
-
template_effect(() => set_attribute(source2, "src", urlLowRes())), append($$anchor4, source2);
|
|
11868
|
-
};
|
|
11869
|
-
if_block(node_2, ($$render) => {
|
|
11870
|
-
urlLowRes() && $$render(consequent_2);
|
|
11871
|
-
});
|
|
11872
|
-
}
|
|
11873
|
-
var source_1 = sibling(node_2, 2);
|
|
11874
|
-
bind_this(video, ($$value) => set(videoElement, $$value), () => get$1(videoElement)), template_effect(() => {
|
|
11875
|
-
set_style(video, get$1(mediaStyle)), video.loop = $$props.loop, video.muted = $$props.mute || get$1(playbackMutedOverride), set_attribute(video, "poster", poster() ?? void 0), set_attribute(source_1, "src", $$props.url);
|
|
11876
|
-
}), event("error", video, onVideoError), event("error", source_1, onVideoError), append($$anchor3, div_1);
|
|
11877
|
-
};
|
|
11878
|
-
if_block(
|
|
11879
|
-
node_1,
|
|
11880
|
-
($$render) => {
|
|
11881
|
-
get$1(showPosterOnly) ? $$render(consequent_1) : $$render(alternate, !1);
|
|
11882
|
-
},
|
|
11883
|
-
!0
|
|
11884
|
-
);
|
|
11885
|
-
}
|
|
11886
|
-
append($$anchor2, fragment_1);
|
|
11887
|
-
};
|
|
11888
|
-
if_block(node, ($$render) => {
|
|
11889
|
-
get$1(showPosterOnly) && poster() ? $$render(consequent) : $$render(alternate_1, !1);
|
|
11890
|
-
});
|
|
11891
|
-
}
|
|
11892
|
-
append($$anchor, fragment), pop();
|
|
11893
|
-
}
|
|
11894
|
-
function LoaderGroupItem($$anchor, $$props) {
|
|
11895
|
-
push($$props, !0);
|
|
11896
|
-
const props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), buildConditionContext = useConditionContext({ state: !0 }), actualProps = /* @__PURE__ */ user_derived(() => ({
|
|
11897
|
-
...props,
|
|
11898
|
-
...resolveOverrideProperties(buildConditionContext(), $$props.overrides)
|
|
11899
|
-
})), isVisible = /* @__PURE__ */ user_derived(() => get$1(actualProps).visible !== !1), ambientLoader = getRequiredLoaderContext($$props.type), localLoader = derived([ambientLoader, toStore(() => get$1(actualProps))], ([$ambientLoader, $actualProps]) => {
|
|
11900
|
-
const span = $actualProps.ends_at - $actualProps.starts_at;
|
|
11901
|
-
if (span <= 0) return { progress: 0 };
|
|
11902
|
-
const pct = ($ambientLoader.progress * 100 - $actualProps.starts_at) / span;
|
|
11903
|
-
return { progress: Math.min(1, Math.max(0, pct)) };
|
|
11904
|
-
});
|
|
11905
|
-
setLoaderContext(localLoader);
|
|
11906
|
-
var fragment = comment(), node = first_child(fragment);
|
|
11907
|
-
{
|
|
11908
|
-
var consequent = ($$anchor2) => {
|
|
11909
|
-
Stack($$anchor2, spread_props(() => get$1(actualProps).stack, { testId: "loader-group-item" }));
|
|
11910
|
-
};
|
|
11911
|
-
if_block(node, ($$render) => {
|
|
11912
|
-
get$1(isVisible) && $$render(consequent);
|
|
11913
|
-
});
|
|
11914
|
-
}
|
|
11915
|
-
append($$anchor, fragment), pop();
|
|
11916
|
-
}
|
|
11917
12002
|
function rcVideoBackgroundHostClass(variant) {
|
|
11918
12003
|
return `rc-${variant}-video-bg`;
|
|
11919
12004
|
}
|
|
@@ -11923,15 +12008,15 @@ function videoBackgroundHostStyles(options) {
|
|
|
11923
12008
|
const styles = { isolation: "isolate" };
|
|
11924
12009
|
return options.positionRelative && (styles.position = "relative"), options.clipOverflow && (styles.overflow = "hidden"), styles;
|
|
11925
12010
|
}
|
|
11926
|
-
var root_4$d = /* @__PURE__ */ from_html('<div class="rc-zlayer-layer svelte-
|
|
11927
|
-
const $$css$
|
|
11928
|
-
hash: "svelte-
|
|
11929
|
-
code: `.rc-loader-group.svelte-
|
|
12011
|
+
var root_4$d = /* @__PURE__ */ from_html('<div class="rc-zlayer-layer svelte-1injn9f"><!></div>'), root_3$g = /* @__PURE__ */ from_html('<div style="position: relative; width: 100%; height: 100%; isolation: isolate;"></div>'), root_1$B = /* @__PURE__ */ from_html('<div data-testid="loader-group"><!> <!></div>');
|
|
12012
|
+
const $$css$17 = {
|
|
12013
|
+
hash: "svelte-1injn9f",
|
|
12014
|
+
code: `.rc-loader-group.svelte-1injn9f {position:relative;&::before {content:"";position:absolute;inset:0;background:var(--overlay);}}.rc-loader-group-video-bg.svelte-1injn9f::before {pointer-events:none;z-index:2;}.rc-loader-group-video-bg.svelte-1injn9f > .rc-bg-video {z-index:1;}.rc-loader-group-video-bg.svelte-1injn9f > :not(.rc-bg-video) {position:relative;z-index:3;}
|
|
11930
12015
|
|
|
11931
|
-
/* Full-size layers would otherwise block clicks on layers beneath them. */.rc-zlayer-layer.svelte-
|
|
12016
|
+
/* Full-size layers would otherwise block clicks on layers beneath them. */.rc-zlayer-layer.svelte-1injn9f {pointer-events:none;}.rc-zlayer-layer.svelte-1injn9f > * {pointer-events:auto;}`
|
|
11932
12017
|
};
|
|
11933
12018
|
function LoaderGroup($$anchor, $$props) {
|
|
11934
|
-
push($$props, !0), append_styles$1($$anchor, $$css$
|
|
12019
|
+
push($$props, !0), append_styles$1($$anchor, $$css$17);
|
|
11935
12020
|
const props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), buildConditionContext = useConditionContext({ state: !0 }), actualProps = /* @__PURE__ */ user_derived(() => ({
|
|
11936
12021
|
...props,
|
|
11937
12022
|
...resolveOverrideProperties(buildConditionContext(), $$props.overrides)
|
|
@@ -11979,7 +12064,7 @@ function LoaderGroup($$anchor, $$props) {
|
|
|
11979
12064
|
var fragment = comment(), node = first_child(fragment);
|
|
11980
12065
|
{
|
|
11981
12066
|
var consequent_2 = ($$anchor2) => {
|
|
11982
|
-
var div = root_1$
|
|
12067
|
+
var div = root_1$B(), node_1 = child(div);
|
|
11983
12068
|
{
|
|
11984
12069
|
var consequent = ($$anchor3) => {
|
|
11985
12070
|
BackgroundVideoSurface($$anchor3, {
|
|
@@ -12030,7 +12115,7 @@ function LoaderGroup($$anchor, $$props) {
|
|
|
12030
12115
|
}
|
|
12031
12116
|
template_effect(
|
|
12032
12117
|
($0) => {
|
|
12033
|
-
set_class(div, 1, $0, "svelte-
|
|
12118
|
+
set_class(div, 1, $0, "svelte-1injn9f"), set_style(div, get$1(containerStyle));
|
|
12034
12119
|
},
|
|
12035
12120
|
[
|
|
12036
12121
|
() => clsx([
|
|
@@ -12056,7 +12141,7 @@ function Text$1($$anchor, $$props) {
|
|
|
12056
12141
|
snippet(node_1, () => $$props.children ?? noop), append($$anchor2, fragment_1);
|
|
12057
12142
|
}), append($$anchor, fragment);
|
|
12058
12143
|
}
|
|
12059
|
-
var root_1$
|
|
12144
|
+
var root_1$A = /* @__PURE__ */ from_html('<span role="progressbar" aria-valuemin="0" aria-valuemax="100"><!></span>');
|
|
12060
12145
|
function LoaderPercentage($$anchor, $$props) {
|
|
12061
12146
|
push($$props, !0);
|
|
12062
12147
|
const $loader = () => store_get(loader, "$loader", $$stores), [$$stores, $$cleanup] = setup_stores(), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), buildConditionContext = useConditionContext({ state: !0 }), actualProps = /* @__PURE__ */ user_derived(() => ({
|
|
@@ -12066,7 +12151,7 @@ function LoaderPercentage($$anchor, $$props) {
|
|
|
12066
12151
|
var fragment = comment(), node = first_child(fragment);
|
|
12067
12152
|
{
|
|
12068
12153
|
var consequent = ($$anchor2) => {
|
|
12069
|
-
var span = root_1$
|
|
12154
|
+
var span = root_1$A(), node_1 = child(span);
|
|
12070
12155
|
Text$1(node_1, {
|
|
12071
12156
|
get style() {
|
|
12072
12157
|
return get$1(textStyles);
|
|
@@ -12104,7 +12189,7 @@ function LoaderProgressComponent($$anchor, $$props) {
|
|
|
12104
12189
|
}
|
|
12105
12190
|
append($$anchor, fragment), pop();
|
|
12106
12191
|
}
|
|
12107
|
-
var root_1$
|
|
12192
|
+
var root_1$z = /* @__PURE__ */ from_html('<div class="rc-loader-progress-components"><!></div>');
|
|
12108
12193
|
function LoaderProgressComponents($$anchor, $$props) {
|
|
12109
12194
|
push($$props, !0);
|
|
12110
12195
|
const $loader = () => store_get(loader, "$loader", $$stores), [$$stores, $$cleanup] = setup_stores(), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), buildConditionContext = useConditionContext({ state: !0 }), actualProps = /* @__PURE__ */ user_derived(() => ({
|
|
@@ -12133,7 +12218,7 @@ function LoaderProgressComponents($$anchor, $$props) {
|
|
|
12133
12218
|
var fragment = comment(), node = first_child(fragment);
|
|
12134
12219
|
{
|
|
12135
12220
|
var consequent_1 = ($$anchor2) => {
|
|
12136
|
-
var div = root_1$
|
|
12221
|
+
var div = root_1$z(), node_1 = child(div);
|
|
12137
12222
|
{
|
|
12138
12223
|
var consequent = ($$anchor3) => {
|
|
12139
12224
|
LoaderProgressComponent($$anchor3, spread_props(() => get$1(actualProps).components[get$1(activeIndex)]));
|
|
@@ -12150,35 +12235,80 @@ function LoaderProgressComponents($$anchor, $$props) {
|
|
|
12150
12235
|
}
|
|
12151
12236
|
append($$anchor, fragment), pop(), $$cleanup();
|
|
12152
12237
|
}
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
-
return
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
}
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12238
|
+
const sharedFrameNow = readable(performance.now(), (set2) => {
|
|
12239
|
+
set2(performance.now());
|
|
12240
|
+
let frameId, stopped = !1;
|
|
12241
|
+
const tick2 = (now2) => {
|
|
12242
|
+
set2(now2), !stopped && (frameId = requestAnimationFrame(tick2));
|
|
12243
|
+
};
|
|
12244
|
+
return frameId = requestAnimationFrame(tick2), () => {
|
|
12245
|
+
stopped = !0, frameId !== void 0 && cancelAnimationFrame(frameId);
|
|
12246
|
+
};
|
|
12247
|
+
});
|
|
12248
|
+
function LoaderNode($$anchor, $$props) {
|
|
12249
|
+
push($$props, !0);
|
|
12250
|
+
const props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), { onButtonAction } = getPaywallContext(), buildConditionContext = useConditionContext({ state: !0 }), actualProps = /* @__PURE__ */ user_derived(() => ({
|
|
12251
|
+
...props,
|
|
12252
|
+
...resolveOverrideProperties(buildConditionContext(), $$props.overrides)
|
|
12253
|
+
})), loaderStore = writable({ progress: 0 });
|
|
12254
|
+
setLoaderContext(loaderStore);
|
|
12255
|
+
const isVisible = /* @__PURE__ */ user_derived(() => get$1(actualProps).visible !== !1);
|
|
12256
|
+
user_effect(() => {
|
|
12257
|
+
if (get$1(isVisible))
|
|
12258
|
+
return untrack(() => {
|
|
12259
|
+
let fired = !1, unsubscribe, dispatchFrame;
|
|
12260
|
+
const startTs = performance.now(), onFrame = (now2) => {
|
|
12261
|
+
const elapsed = Math.max(0, now2 - startTs), next = Math.min(1, elapsed / Math.max(1, get$1(actualProps).loading_duration_ms));
|
|
12262
|
+
if (loaderStore.set({ progress: next }), next < 1 || fired) return;
|
|
12263
|
+
fired = !0, unsubscribe == null || unsubscribe(), unsubscribe = void 0;
|
|
12264
|
+
const actionId = get$1(actualProps).action.type === "workflow" ? get$1(actualProps).id : void 0;
|
|
12265
|
+
dispatchFrame = requestAnimationFrame(() => onButtonAction(get$1(actualProps).action, actionId));
|
|
12266
|
+
};
|
|
12267
|
+
return unsubscribe = sharedFrameNow.subscribe(onFrame), () => {
|
|
12268
|
+
unsubscribe == null || unsubscribe(), dispatchFrame !== void 0 && cancelAnimationFrame(dispatchFrame);
|
|
12269
|
+
};
|
|
12270
|
+
});
|
|
12271
|
+
});
|
|
12272
|
+
var fragment = comment(), node = first_child(fragment);
|
|
12273
|
+
{
|
|
12274
|
+
var consequent = ($$anchor2) => {
|
|
12275
|
+
Stack($$anchor2, spread_props(() => get$1(actualProps).stack, { testId: "loader" }));
|
|
12276
|
+
};
|
|
12277
|
+
if_block(node, ($$render) => {
|
|
12278
|
+
get$1(isVisible) && $$render(consequent);
|
|
12279
|
+
});
|
|
12280
|
+
}
|
|
12281
|
+
append($$anchor, fragment), pop();
|
|
12282
|
+
}
|
|
12283
|
+
function typedCustomVariables(customVariables, uiConfig) {
|
|
12284
|
+
const custom = {};
|
|
12285
|
+
for (const [name, spec] of Object.entries((uiConfig == null ? void 0 : uiConfig.custom_variables) ?? {}))
|
|
12286
|
+
custom[name] = spec.default_value;
|
|
12287
|
+
for (const [name, value] of Object.entries(customVariables ?? {}))
|
|
12288
|
+
custom[name] = value.value;
|
|
12289
|
+
return custom;
|
|
12290
|
+
}
|
|
12291
|
+
function buildBridgeInputs({ inputs, initialInputSelections, globalVariables }) {
|
|
12292
|
+
const result = {};
|
|
12293
|
+
for (const [key2, value] of Object.entries(globalVariables ?? {}))
|
|
12294
|
+
!key2.startsWith("input.") || value === void 0 || (result[key2.slice(6)] = value);
|
|
12295
|
+
for (const [fieldId, selectedIds] of Object.entries(initialInputSelections ?? {}))
|
|
12296
|
+
selectedIds.length !== 0 && (result[fieldId] = selectedIds.length === 1 ? selectedIds[0] ?? null : selectedIds);
|
|
12297
|
+
return { ...result, ...inputs };
|
|
12298
|
+
}
|
|
12299
|
+
function asBridgeInputArray(value) {
|
|
12300
|
+
return Array.isArray(value) ? [...value] : value == null || value === "" ? [] : [value];
|
|
12301
|
+
}
|
|
12302
|
+
function applyBridgeInputChange(current, fieldId, value) {
|
|
12303
|
+
const existing = current[fieldId];
|
|
12304
|
+
if (Array.isArray(existing)) {
|
|
12305
|
+
const next = existing.includes(value) ? existing.filter((id2) => id2 !== value) : [...existing, value];
|
|
12306
|
+
return { ...current, [fieldId]: next };
|
|
12307
|
+
}
|
|
12308
|
+
return { ...current, [fieldId]: value };
|
|
12309
|
+
}
|
|
12310
|
+
function orderPackagesForPaywall(packages, packageIdsInDisplayOrder) {
|
|
12311
|
+
if (packageIdsInDisplayOrder.length === 0)
|
|
12182
12312
|
return packages;
|
|
12183
12313
|
const byId = new Map(packages.map((pkg) => [pkg.identifier, pkg])), ordered = [], seen = /* @__PURE__ */ new Set();
|
|
12184
12314
|
for (const id2 of packageIdsInDisplayOrder)
|
|
@@ -12266,13 +12396,13 @@ function InputMultipleChoice($$anchor, $$props) {
|
|
|
12266
12396
|
}
|
|
12267
12397
|
}), pop();
|
|
12268
12398
|
}
|
|
12269
|
-
var root$X = /* @__PURE__ */ from_html('<div class="option-wrapper svelte-
|
|
12270
|
-
const $$css$
|
|
12271
|
-
hash: "svelte-
|
|
12272
|
-
code: ".option-wrapper.svelte-
|
|
12399
|
+
var root$X = /* @__PURE__ */ from_html('<div class="option-wrapper svelte-1goj67v"><!></div>');
|
|
12400
|
+
const $$css$16 = {
|
|
12401
|
+
hash: "svelte-1goj67v",
|
|
12402
|
+
code: ".option-wrapper.svelte-1goj67v {display:contents;}"
|
|
12273
12403
|
};
|
|
12274
12404
|
function InputOption($$anchor, $$props) {
|
|
12275
|
-
push($$props, !0), append_styles$1($$anchor, $$css$
|
|
12405
|
+
push($$props, !0), append_styles$1($$anchor, $$css$16);
|
|
12276
12406
|
const $isDisabled = () => store_get(isDisabled, "$isDisabled", $$stores), [$$stores, $$cleanup] = setup_stores(), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), { stack, option_id } = props, { onButtonAction, onInputChanged } = getPaywallContext(), inputChoiceContext = getInputChoiceContext(), isSelected = inputChoiceContext ? derived(inputChoiceContext.selectedOptionIds, (ids) => ids.has(option_id)) : readable(!1);
|
|
12277
12407
|
setSelectedStateContext(isSelected);
|
|
12278
12408
|
const isDisabled = inputChoiceContext ? derived([isSelected, inputChoiceContext.isAtMax], ([selected, atMax]) => !selected && atMax) : readable(!1), isHovered = writable(!1);
|
|
@@ -13830,13 +13960,13 @@ function requireBrowser() {
|
|
|
13830
13960
|
}
|
|
13831
13961
|
var browserExports = requireBrowser();
|
|
13832
13962
|
const QRCode = /* @__PURE__ */ getDefaultExportFromCjs(browserExports), getRedemptionQrUrl = (redemptionUrl, redemptionUrlRedirect) => redemptionUrlRedirect || redemptionUrl;
|
|
13833
|
-
var root_3$f = /* @__PURE__ */ from_html('<div class="qr-wrapper svelte-
|
|
13834
|
-
const $$css$
|
|
13835
|
-
hash: "svelte-
|
|
13836
|
-
code: ".qr-wrapper.svelte-
|
|
13963
|
+
var root_3$f = /* @__PURE__ */ from_html('<div class="qr-wrapper svelte-s5d6sj"><img alt="Redemption QR Code" class="qr-code svelte-s5d6sj"/></div>');
|
|
13964
|
+
const $$css$15 = {
|
|
13965
|
+
hash: "svelte-s5d6sj",
|
|
13966
|
+
code: ".qr-wrapper.svelte-s5d6sj {display:flex;justify-content:center;align-items:center;align-self:center;width:fit-content;margin:0 auto;background-color:#ffffff;border-radius:8px;padding:16px;}.qr-code.svelte-s5d6sj {display:block;width:128px;height:128px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;}"
|
|
13837
13967
|
};
|
|
13838
13968
|
function RedemptionButton($$anchor, $$props) {
|
|
13839
|
-
push($$props, !0), append_styles$1($$anchor, $$css$
|
|
13969
|
+
push($$props, !0), append_styles$1($$anchor, $$css$15);
|
|
13840
13970
|
const $variables = () => store_get(variables, "$variables", $$stores), [$$stores, $$cleanup] = setup_stores(), variables = getVariablesContext(), redemptionUrl = /* @__PURE__ */ user_derived(() => {
|
|
13841
13971
|
var _a3;
|
|
13842
13972
|
return (_a3 = $variables()) == null ? void 0 : _a3["success.redemption_url"];
|
|
@@ -13897,7 +14027,64 @@ function RedemptionButton($$anchor, $$props) {
|
|
|
13897
14027
|
}
|
|
13898
14028
|
append($$anchor, fragment), pop(), $$cleanup();
|
|
13899
14029
|
}
|
|
13900
|
-
var
|
|
14030
|
+
var root$W = /* @__PURE__ */ from_html('<div class="wallet-skeleton rc-gradient-border svelte-pn6wal"> <div class="wallet-skeleton-shimmer svelte-pn6wal"></div></div>');
|
|
14031
|
+
const $$css$14 = {
|
|
14032
|
+
hash: "svelte-pn6wal",
|
|
14033
|
+
code: `.wallet-skeleton.svelte-pn6wal {position:relative;border-radius:9999px;background-color:rgba(128, 128, 128, 0.16);backdrop-filter:blur(18px);min-height:48px;flex-grow:1;width:100%;}.wallet-skeleton-shimmer.svelte-pn6wal {position:absolute;inset:0;overflow:hidden;border-radius:inherit;}.wallet-skeleton-shimmer.svelte-pn6wal::before {content:"";position:absolute;inset:0;background:linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.01));opacity:0.9;mix-blend-mode:screen;}.wallet-skeleton-shimmer.svelte-pn6wal::after {content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(
|
|
14034
|
+
120deg,
|
|
14035
|
+
transparent 0%,
|
|
14036
|
+
rgba(255, 255, 255, 0.6) 20%,
|
|
14037
|
+
transparent 40%
|
|
14038
|
+
);opacity:0.8;
|
|
14039
|
+
animation: svelte-pn6wal-wallet-skeleton-shimmer 1.4s ease-in-out infinite;}
|
|
14040
|
+
|
|
14041
|
+
@keyframes svelte-pn6wal-wallet-skeleton-shimmer {
|
|
14042
|
+
100% {
|
|
14043
|
+
transform: translateX(100%);
|
|
14044
|
+
}
|
|
14045
|
+
}`
|
|
14046
|
+
};
|
|
14047
|
+
function SkeletonLoader($$anchor, $$props) {
|
|
14048
|
+
push($$props, !0), append_styles$1($$anchor, $$css$14);
|
|
14049
|
+
const fallbackSize = { width: { type: "fill" }, height: { type: "fit" } }, fallbackDimension = {
|
|
14050
|
+
type: "vertical",
|
|
14051
|
+
alignment: "center",
|
|
14052
|
+
distribution: "center"
|
|
14053
|
+
}, $$d = /* @__PURE__ */ user_derived(() => ({
|
|
14054
|
+
size: $$props.size ?? fallbackSize,
|
|
14055
|
+
dimension: $$props.dimension ?? fallbackDimension,
|
|
14056
|
+
spacing: $$props.spacing ?? 0,
|
|
14057
|
+
margin: $$props.margin ?? DEFAULT_SPACING$2,
|
|
14058
|
+
border: $$props.border ?? null,
|
|
14059
|
+
shape: $$props.shape ?? null,
|
|
14060
|
+
shadow: $$props.shadow ?? null,
|
|
14061
|
+
style: $$props.style
|
|
14062
|
+
})), size = /* @__PURE__ */ user_derived(() => get$1($$d).size), dimension = /* @__PURE__ */ user_derived(() => get$1($$d).dimension), spacing = /* @__PURE__ */ user_derived(() => get$1($$d).spacing), margin = /* @__PURE__ */ user_derived(() => get$1($$d).margin), border = /* @__PURE__ */ user_derived(() => get$1($$d).border), shape = /* @__PURE__ */ user_derived(() => get$1($$d).shape), shadow = /* @__PURE__ */ user_derived(() => get$1($$d).shadow), style = /* @__PURE__ */ user_derived(() => get$1($$d).style), minDistanceBetweenPurchaseButtons = 10, getColorMode = getColorModeContext(), colorMode = /* @__PURE__ */ user_derived(getColorMode), stackLayoutRules = /* @__PURE__ */ user_derived(() => ({
|
|
14063
|
+
...get$1(style),
|
|
14064
|
+
display: "flex",
|
|
14065
|
+
position: "relative",
|
|
14066
|
+
width: mapSize(get$1(size).width),
|
|
14067
|
+
height: mapSize(get$1(size).height),
|
|
14068
|
+
...mapFillBounds(get$1(size)),
|
|
14069
|
+
...mapDimension(get$1(dimension)),
|
|
14070
|
+
gap: px(get$1(spacing)),
|
|
14071
|
+
margin: mapSpacing(get$1(margin) ? {
|
|
14072
|
+
...get$1(margin),
|
|
14073
|
+
bottom: Math.max(get$1(margin).bottom ?? 0, minDistanceBetweenPurchaseButtons)
|
|
14074
|
+
} : {
|
|
14075
|
+
...DEFAULT_SPACING$2,
|
|
14076
|
+
bottom: minDistanceBetweenPurchaseButtons
|
|
14077
|
+
})
|
|
14078
|
+
})), loaderStyle = /* @__PURE__ */ user_derived(() => css({
|
|
14079
|
+
...get$1(stackLayoutRules),
|
|
14080
|
+
...mapBorder(get$1(colorMode), get$1(border)),
|
|
14081
|
+
"border-radius": mapBorderRadius(get$1(shape)),
|
|
14082
|
+
"box-shadow": mapShadow(get$1(colorMode), get$1(shadow))
|
|
14083
|
+
}));
|
|
14084
|
+
var div = root$W();
|
|
14085
|
+
set_attribute(div, "aria-hidden", !0), template_effect(() => set_style(div, get$1(loaderStyle))), append($$anchor, div), pop();
|
|
14086
|
+
}
|
|
14087
|
+
var root_1$y = /* @__PURE__ */ from_html('<span data-testid="text"><!></span>');
|
|
13901
14088
|
function TextNode($$anchor, $$props) {
|
|
13902
14089
|
push($$props, !0);
|
|
13903
14090
|
const $variables = () => store_get(variables, "$variables", $$stores), [$$stores, $$cleanup] = setup_stores(), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), { uiConfig, emitComponentInteraction, onNavigateToUrl } = getPaywallContext(), variables = getOptionalVariablesContext(), buildConditionContext = useConditionContext({ state: !0 }), actualProps = /* @__PURE__ */ user_derived(() => ({
|
|
@@ -13917,7 +14104,7 @@ function TextNode($$anchor, $$props) {
|
|
|
13917
14104
|
var fragment = comment(), node = first_child(fragment);
|
|
13918
14105
|
{
|
|
13919
14106
|
var consequent = ($$anchor2) => {
|
|
13920
|
-
var span = root_1$
|
|
14107
|
+
var span = root_1$y();
|
|
13921
14108
|
span.__click = onclick;
|
|
13922
14109
|
var node_1 = child(span);
|
|
13923
14110
|
Text$1(node_1, {
|
|
@@ -13939,6 +14126,140 @@ function TextNode($$anchor, $$props) {
|
|
|
13939
14126
|
append($$anchor, fragment), pop(), $$cleanup();
|
|
13940
14127
|
}
|
|
13941
14128
|
delegate(["click"]);
|
|
14129
|
+
var root_2$g = /* @__PURE__ */ from_html('<div style="flex-grow: 1; width:100%;"></div>'), root_1$x = /* @__PURE__ */ from_html("<div><!></div>"), root_4$c = /* @__PURE__ */ from_html('<div class="custom-wallet-button svelte-18h6wlr"><!></div>');
|
|
14130
|
+
const $$css$13 = {
|
|
14131
|
+
hash: "svelte-18h6wlr",
|
|
14132
|
+
code: `
|
|
14133
|
+
/* Default look for the not-ready states; hosts restyle via [data-wallet-state]. */.custom-wallet-button.svelte-18h6wlr:not([data-wallet-state="ready"]) {opacity:0.4;cursor:not-allowed;}.custom-wallet-button.svelte-18h6wlr:not([data-wallet-state="ready"]) > * {pointer-events:none;}`
|
|
14134
|
+
};
|
|
14135
|
+
function WalletButton($$anchor, $$props) {
|
|
14136
|
+
push($$props, !0), append_styles$1($$anchor, $$css$13);
|
|
14137
|
+
const $selectedPackageId = () => store_get(selectedPackageId, "$selectedPackageId", $$stores), [$$stores, $$cleanup] = setup_stores(), {
|
|
14138
|
+
walletButtonRender,
|
|
14139
|
+
onWalletButtonReady,
|
|
14140
|
+
prepareWalletPurchase,
|
|
14141
|
+
onWalletPurchaseClicked,
|
|
14142
|
+
selectedPackageId,
|
|
14143
|
+
emitComponentInteraction
|
|
14144
|
+
} = getPaywallContext(), getColorMode = getColorModeContext(), colorMode = /* @__PURE__ */ user_derived(getColorMode), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), mode2 = /* @__PURE__ */ user_derived(() => $$props.mode ?? "store"), onReady = /* @__PURE__ */ user_derived(() => $$props.onWalletButtonReady ?? onWalletButtonReady), walletButtonTheme = /* @__PURE__ */ user_derived(() => {
|
|
14145
|
+
const { style } = props;
|
|
14146
|
+
if (style != null)
|
|
14147
|
+
return get$1(colorMode) === "dark" && style.dark != null ? style.dark : style.light;
|
|
14148
|
+
}), fallbackSize = { width: { type: "fill" }, height: { type: "fit" } }, fallbackDimension = {
|
|
14149
|
+
type: "vertical",
|
|
14150
|
+
alignment: "center",
|
|
14151
|
+
distribution: "center"
|
|
14152
|
+
}, $$d = /* @__PURE__ */ user_derived(() => ({
|
|
14153
|
+
size: $$props.size ?? fallbackSize,
|
|
14154
|
+
dimension: $$props.dimension ?? fallbackDimension,
|
|
14155
|
+
spacing: $$props.spacing ?? 0,
|
|
14156
|
+
margin: $$props.margin ?? DEFAULT_SPACING$2,
|
|
14157
|
+
border: $$props.border ?? null,
|
|
14158
|
+
shape: $$props.shape ?? null,
|
|
14159
|
+
shadow: $$props.shadow ?? null
|
|
14160
|
+
})), size = /* @__PURE__ */ user_derived(() => get$1($$d).size), dimension = /* @__PURE__ */ user_derived(() => get$1($$d).dimension), spacing = /* @__PURE__ */ user_derived(() => get$1($$d).spacing), margin = /* @__PURE__ */ user_derived(() => get$1($$d).margin), stackLayoutRules = /* @__PURE__ */ user_derived(() => ({
|
|
14161
|
+
display: "flex",
|
|
14162
|
+
position: "relative",
|
|
14163
|
+
width: mapSize(get$1(size).width),
|
|
14164
|
+
height: mapSize(get$1(size).height),
|
|
14165
|
+
...mapFillBounds(get$1(size)),
|
|
14166
|
+
...mapDimension(get$1(dimension)),
|
|
14167
|
+
gap: px(get$1(spacing)),
|
|
14168
|
+
margin: mapSpacing(get$1(margin) ? { ...get$1(margin) } : { ...DEFAULT_SPACING$2 })
|
|
14169
|
+
})), stackStyle = /* @__PURE__ */ user_derived(() => css(get$1(stackLayoutRules)));
|
|
14170
|
+
let busy = /* @__PURE__ */ state(!1), prepared = /* @__PURE__ */ state(!1);
|
|
14171
|
+
const walletState = /* @__PURE__ */ user_derived(() => get$1(busy) ? "busy" : get$1(prepared) ? "ready" : "preparing");
|
|
14172
|
+
let prepareRequestId = 0, destroyed = !1;
|
|
14173
|
+
onDestroy(() => {
|
|
14174
|
+
destroyed = !0;
|
|
14175
|
+
});
|
|
14176
|
+
const runPrepare = (packageId) => {
|
|
14177
|
+
var _a3;
|
|
14178
|
+
const requestId = ++prepareRequestId;
|
|
14179
|
+
if (!prepareWalletPurchase) {
|
|
14180
|
+
(_a3 = get$1(onReady)) == null || _a3(!1);
|
|
14181
|
+
return;
|
|
14182
|
+
}
|
|
14183
|
+
Promise.resolve().then(() => prepareWalletPurchase(packageId)).catch(() => !1).then((available) => {
|
|
14184
|
+
var _a4;
|
|
14185
|
+
requestId !== prepareRequestId || destroyed || (set(prepared, available, !0), (_a4 = get$1(onReady)) == null || _a4(available));
|
|
14186
|
+
});
|
|
14187
|
+
}, refreshPrepare = () => {
|
|
14188
|
+
var _a3;
|
|
14189
|
+
if (destroyed || get$1(mode2) !== "custom")
|
|
14190
|
+
return;
|
|
14191
|
+
if (set(prepared, !1), !$$props.stack) {
|
|
14192
|
+
(_a3 = get$1(onReady)) == null || _a3(!1);
|
|
14193
|
+
return;
|
|
14194
|
+
}
|
|
14195
|
+
const packageId = $selectedPackageId();
|
|
14196
|
+
if (!packageId) {
|
|
14197
|
+
prepareRequestId++;
|
|
14198
|
+
return;
|
|
14199
|
+
}
|
|
14200
|
+
runPrepare(packageId);
|
|
14201
|
+
};
|
|
14202
|
+
user_effect(refreshPrepare);
|
|
14203
|
+
const onclick = () => {
|
|
14204
|
+
if (get$1(busy) || !get$1(prepared) || !onWalletPurchaseClicked)
|
|
14205
|
+
return;
|
|
14206
|
+
const packageId = $selectedPackageId();
|
|
14207
|
+
if (!packageId)
|
|
14208
|
+
return;
|
|
14209
|
+
set(busy, !0), set(prepared, !1);
|
|
14210
|
+
let purchase;
|
|
14211
|
+
try {
|
|
14212
|
+
purchase = onWalletPurchaseClicked(packageId);
|
|
14213
|
+
} catch {
|
|
14214
|
+
set(busy, !1), refreshPrepare();
|
|
14215
|
+
return;
|
|
14216
|
+
}
|
|
14217
|
+
purchase.catch(() => {
|
|
14218
|
+
}).finally(() => {
|
|
14219
|
+
set(busy, !1), refreshPrepare();
|
|
14220
|
+
}), emitComponentInteraction({
|
|
14221
|
+
componentType: "wallet_button",
|
|
14222
|
+
componentName: $$props.name,
|
|
14223
|
+
componentValue: "custom_purchase"
|
|
14224
|
+
});
|
|
14225
|
+
};
|
|
14226
|
+
var fragment = comment(), node = first_child(fragment);
|
|
14227
|
+
{
|
|
14228
|
+
var consequent = ($$anchor2) => {
|
|
14229
|
+
var div = root_1$x(), node_1 = child(div);
|
|
14230
|
+
key$j(node_1, () => get$1(walletButtonTheme), ($$anchor3) => {
|
|
14231
|
+
var div_1 = root_2$g();
|
|
14232
|
+
action(div_1, ($$node, $$action_arg) => walletButtonRender == null ? void 0 : walletButtonRender($$node, $$action_arg), () => ({
|
|
14233
|
+
selectedPackageId: $selectedPackageId(),
|
|
14234
|
+
onReady: $$props.onWalletButtonReady ?? onWalletButtonReady,
|
|
14235
|
+
walletButtonTheme: get$1(walletButtonTheme)
|
|
14236
|
+
})), append($$anchor3, div_1);
|
|
14237
|
+
}), template_effect(() => set_style(div, get$1(stackStyle))), append($$anchor2, div);
|
|
14238
|
+
}, alternate = ($$anchor2) => {
|
|
14239
|
+
var fragment_1 = comment(), node_2 = first_child(fragment_1);
|
|
14240
|
+
{
|
|
14241
|
+
var consequent_1 = ($$anchor3) => {
|
|
14242
|
+
var div_2 = root_4$c(), node_3 = child(div_2);
|
|
14243
|
+
Stack(node_3, spread_props(() => $$props.stack, { onclick, testId: "wallet-button-custom" })), template_effect(() => {
|
|
14244
|
+
set_style(div_2, get$1(stackStyle)), set_attribute(div_2, "data-wallet-state", get$1(walletState)), set_attribute(div_2, "aria-busy", get$1(busy)), set_attribute(div_2, "aria-disabled", get$1(busy) || !get$1(prepared));
|
|
14245
|
+
}), append($$anchor3, div_2);
|
|
14246
|
+
};
|
|
14247
|
+
if_block(
|
|
14248
|
+
node_2,
|
|
14249
|
+
($$render) => {
|
|
14250
|
+
get$1(mode2) === "custom" && $$props.stack && $$render(consequent_1);
|
|
14251
|
+
},
|
|
14252
|
+
!0
|
|
14253
|
+
);
|
|
14254
|
+
}
|
|
14255
|
+
append($$anchor2, fragment_1);
|
|
14256
|
+
};
|
|
14257
|
+
if_block(node, ($$render) => {
|
|
14258
|
+
get$1(mode2) === "store" && walletButtonRender && $selectedPackageId() ? $$render(consequent) : $$render(alternate, !1);
|
|
14259
|
+
});
|
|
14260
|
+
}
|
|
14261
|
+
append($$anchor, fragment), pop(), $$cleanup();
|
|
14262
|
+
}
|
|
13942
14263
|
const key$6 = Symbol("carousel-page-memory");
|
|
13943
14264
|
function setCarouselPageMemoryContext(memory) {
|
|
13944
14265
|
setContext(key$6, memory);
|
|
@@ -13976,26 +14297,26 @@ function getTranslation(element2) {
|
|
|
13976
14297
|
const style = window.getComputedStyle(element2);
|
|
13977
14298
|
return new WebKitCSSMatrix(style.transform).m41;
|
|
13978
14299
|
}
|
|
13979
|
-
var root$
|
|
13980
|
-
const $$css$
|
|
13981
|
-
hash: "svelte-
|
|
13982
|
-
code: "div.svelte-
|
|
14300
|
+
var root$V = /* @__PURE__ */ from_html('<div class="page svelte-he0zsh" role="group" aria-roledescription="slide"><!></div>');
|
|
14301
|
+
const $$css$12 = {
|
|
14302
|
+
hash: "svelte-he0zsh",
|
|
14303
|
+
code: "div.svelte-he0zsh {flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;}"
|
|
13983
14304
|
};
|
|
13984
14305
|
function CarouselPage($$anchor, $$props) {
|
|
13985
|
-
append_styles$1($$anchor, $$css$
|
|
14306
|
+
append_styles$1($$anchor, $$css$12);
|
|
13986
14307
|
const hidden = prop($$props, "hidden", 3, !1);
|
|
13987
|
-
var div = root$
|
|
14308
|
+
var div = root$V(), node = child(div);
|
|
13988
14309
|
Stack(node, spread_props(() => $$props.page)), template_effect(() => {
|
|
13989
14310
|
set_attribute(div, "aria-label", `Slide ${$$props.index + 1} of ${$$props.pages}`), set_attribute(div, "aria-current", $$props.selected), set_attribute(div, "aria-hidden", hidden());
|
|
13990
14311
|
}), append($$anchor, div);
|
|
13991
14312
|
}
|
|
13992
|
-
var root_1$
|
|
13993
|
-
const $$css$
|
|
13994
|
-
hash: "svelte-
|
|
13995
|
-
code: ".control.svelte-
|
|
14313
|
+
var root_1$w = /* @__PURE__ */ from_html("<div></div>"), root$U = /* @__PURE__ */ from_html('<div class="control rc-gradient-border svelte-1vansc6"></div>');
|
|
14314
|
+
const $$css$11 = {
|
|
14315
|
+
hash: "svelte-1vansc6",
|
|
14316
|
+
code: ".control.svelte-1vansc6 {align-self:center;display:flex;flex-direction:row;align-items:center;justify-content:center;}"
|
|
13996
14317
|
};
|
|
13997
14318
|
function PageControl($$anchor, $$props) {
|
|
13998
|
-
push($$props, !0), append_styles$1($$anchor, $$css$
|
|
14319
|
+
push($$props, !0), append_styles$1($$anchor, $$css$11);
|
|
13999
14320
|
const background_color = prop($$props, "background_color", 3, null), border = prop($$props, "border", 3, null), shape = prop($$props, "shape", 3, null), shadow = prop($$props, "shadow", 3, null), getColorMode = getColorModeContext(), colorMode = /* @__PURE__ */ user_derived(getColorMode);
|
|
14000
14321
|
function mapIndicatorBorder(indicator) {
|
|
14001
14322
|
return mapBorder(get$1(colorMode), indicator.stroke_width == null || indicator.stroke_color == null ? null : { width: indicator.stroke_width, color: indicator.stroke_color });
|
|
@@ -14019,19 +14340,19 @@ function PageControl($$anchor, $$props) {
|
|
|
14019
14340
|
"border-radius": mapBorderRadius(shape()),
|
|
14020
14341
|
"box-shadow": mapShadow(get$1(colorMode), shadow())
|
|
14021
14342
|
}));
|
|
14022
|
-
var div = root$
|
|
14343
|
+
var div = root$U();
|
|
14023
14344
|
each(div, 21, () => ({ length: $$props.length }), index, ($$anchor2, $$item, index2) => {
|
|
14024
|
-
var div_1 = root_1$
|
|
14345
|
+
var div_1 = root_1$w();
|
|
14025
14346
|
template_effect(() => set_style(div_1, index2 === $$props.selected ? get$1(activeStyle) : get$1(defaultStyle))), append($$anchor2, div_1);
|
|
14026
14347
|
}), template_effect(() => set_style(div, get$1(style))), append($$anchor, div), pop();
|
|
14027
14348
|
}
|
|
14028
|
-
var root_1$
|
|
14029
|
-
const $$css$
|
|
14030
|
-
hash: "svelte-
|
|
14031
|
-
code: '.carousel.svelte-
|
|
14349
|
+
var root_1$v = /* @__PURE__ */ from_html('<div class="carousel-bg-video-mount svelte-1311zak"><!></div>'), root$T = /* @__PURE__ */ from_html('<div><!> <div class="carousel-clip svelte-1311zak"><div class="slider svelte-1311zak" role="region" aria-label="Feature carousel" aria-roledescription="carousel" aria-live="polite"><!> <!> <!></div> <!></div></div>');
|
|
14350
|
+
const $$css$10 = {
|
|
14351
|
+
hash: "svelte-1311zak",
|
|
14352
|
+
code: '.carousel.svelte-1311zak {max-width:100%;display:flex;flex-direction:column;flex-shrink:0;align-self:stretch;}.carousel-clip.svelte-1311zak {display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden;border-radius:inherit;}.carousel-bg-video-mount.svelte-1311zak {position:absolute;inset:0;z-index:1;border-radius:inherit;overflow:hidden;pointer-events:none;}.carousel.rc-carousel-video-bg.svelte-1311zak::before {content:"";position:absolute;inset:0;background:var(--overlay);pointer-events:none;z-index:2;}.carousel.rc-carousel-video-bg.svelte-1311zak .carousel-clip:where(.svelte-1311zak) {position:relative;z-index:3;}.slider.svelte-1311zak {display:flex;flex-direction:row;flex-wrap:nowrap;transition-property:transform;transition-duration:500ms;transition-timing-function:ease-in-out;transition-delay:2500ms;transform:translateX(0);touch-action:pan-y;cursor:grab;&:active {cursor:grabbing;user-select:none;}}'
|
|
14032
14353
|
};
|
|
14033
14354
|
function Carousel($$anchor, $$props) {
|
|
14034
|
-
push($$props, !0), append_styles$1($$anchor, $$css$
|
|
14355
|
+
push($$props, !0), append_styles$1($$anchor, $$css$10);
|
|
14035
14356
|
const props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), { emitComponentInteraction } = getPaywallContext(), buildConditionContext = useConditionContext(), $$d = /* @__PURE__ */ user_derived(() => ({
|
|
14036
14357
|
...props,
|
|
14037
14358
|
...resolveOverrideProperties(buildConditionContext(), $$props.overrides)
|
|
@@ -14185,10 +14506,10 @@ function Carousel($$anchor, $$props) {
|
|
|
14185
14506
|
] : [-(get$1(pages).length - 1) * get$1(pageWidth), 0], translation = getTranslation(slider), newTranslation = clamp(translation + deltaX, min, max), page = getPageFromTranslation(newTranslation);
|
|
14186
14507
|
set(currentPage, (page + get$1(pages).length) % get$1(pages).length), setSliderTranslate(newTranslation), stopTransition();
|
|
14187
14508
|
}
|
|
14188
|
-
var div = root$
|
|
14509
|
+
var div = root$T(), node = child(div);
|
|
14189
14510
|
{
|
|
14190
14511
|
var consequent = ($$anchor2) => {
|
|
14191
|
-
var div_1 = root_1$
|
|
14512
|
+
var div_1 = root_1$v(), node_1 = child(div_1);
|
|
14192
14513
|
BackgroundVideoSurface(node_1, {
|
|
14193
14514
|
get url() {
|
|
14194
14515
|
return get$1(videoSurface).url;
|
|
@@ -14297,7 +14618,7 @@ function Carousel($$anchor, $$props) {
|
|
|
14297
14618
|
}
|
|
14298
14619
|
template_effect(
|
|
14299
14620
|
($0) => {
|
|
14300
|
-
set_class(div, 1, $0, "svelte-
|
|
14621
|
+
set_class(div, 1, $0, "svelte-1311zak"), set_style(div, get$1(carouselStyle)), set_style(div_2, get$1(clipStyle)), set_style(div_3, get$1(sliderStyle));
|
|
14301
14622
|
},
|
|
14302
14623
|
[
|
|
14303
14624
|
() => clsx([
|
|
@@ -14309,7 +14630,7 @@ function Carousel($$anchor, $$props) {
|
|
|
14309
14630
|
), event("transitionend", div_3, ontransitionend), event("pointercancel", div_3, onpointercancel), bind_element_size(div_3, "clientWidth", ($$value) => set(carouselWidth, $$value)), append($$anchor, div), pop();
|
|
14310
14631
|
}
|
|
14311
14632
|
delegate(["pointerdown", "pointerup", "pointermove"]);
|
|
14312
|
-
var root_1$
|
|
14633
|
+
var root_1$u = /* @__PURE__ */ from_html('<div class="rc-gradient-border"><div></div></div>');
|
|
14313
14634
|
function Icon$2($$anchor, $$props) {
|
|
14314
14635
|
push($$props, !0);
|
|
14315
14636
|
const props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), buildConditionContext = useConditionContext({ state: !0 }), $$d = /* @__PURE__ */ user_derived(() => ({
|
|
@@ -14348,7 +14669,7 @@ function Icon$2($$anchor, $$props) {
|
|
|
14348
14669
|
var fragment = comment(), node = first_child(fragment);
|
|
14349
14670
|
{
|
|
14350
14671
|
var consequent = ($$anchor2) => {
|
|
14351
|
-
var div = root_1$
|
|
14672
|
+
var div = root_1$u(), div_1 = child(div);
|
|
14352
14673
|
template_effect(() => {
|
|
14353
14674
|
set_style(div, get$1(container)), set_style(div_1, get$1(icon));
|
|
14354
14675
|
}), append($$anchor2, div);
|
|
@@ -14381,15 +14702,15 @@ function TabControlButton($$anchor, $$props) {
|
|
|
14381
14702
|
selectTab($$props.tab_id, $$props.tab_index, "tab");
|
|
14382
14703
|
} })), pop();
|
|
14383
14704
|
}
|
|
14384
|
-
var root$
|
|
14385
|
-
const $$css
|
|
14386
|
-
hash: "svelte-
|
|
14387
|
-
code: `.toggle.svelte-
|
|
14705
|
+
var root$S = /* @__PURE__ */ from_html('<div role="button" tabindex="0" aria-label="Toggle" class="toggle svelte-jgy1uc"><div class="thumb svelte-jgy1uc"></div></div>');
|
|
14706
|
+
const $$css$$ = {
|
|
14707
|
+
hash: "svelte-jgy1uc",
|
|
14708
|
+
code: `.toggle.svelte-jgy1uc {appearance:none;--height: 31px;position:relative;width:51px;height:var(--height);border-radius:calc(var(--height) / 2);cursor:pointer;user-select:none;transition:background-color 300ms ease;}.thumb.svelte-jgy1uc {--size: 27px;position:absolute;top:2px;width:var(--size);height:var(--size);border-radius:50%;box-shadow:0 1px 3px rgba(0, 0, 0, 0.2),
|
|
14388
14709
|
0 1px 2px rgba(0, 0, 0, 0.12);transition:left 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
|
|
14389
14710
|
background-color 300ms ease;}`
|
|
14390
14711
|
};
|
|
14391
14712
|
function TabControlToggle($$anchor, $$props) {
|
|
14392
|
-
push($$props, !0), append_styles$1($$anchor, $$css
|
|
14713
|
+
push($$props, !0), append_styles$1($$anchor, $$css$$);
|
|
14393
14714
|
const $isActive = () => store_get(isActive2, "$isActive", $$stores), [$$stores, $$cleanup] = setup_stores(), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), buildConditionContext = useConditionContext({ state: !0 }), $$d = /* @__PURE__ */ user_derived(() => ({
|
|
14394
14715
|
...props,
|
|
14395
14716
|
...resolveOverrideProperties(buildConditionContext(), $$props.overrides)
|
|
@@ -14405,7 +14726,7 @@ function TabControlToggle($$anchor, $$props) {
|
|
|
14405
14726
|
}, onkeydown = (event2) => {
|
|
14406
14727
|
(event2.code === "Enter" || event2.code === "Space") && onclick();
|
|
14407
14728
|
};
|
|
14408
|
-
var div = root$
|
|
14729
|
+
var div = root$S();
|
|
14409
14730
|
div.__click = onclick, div.__keydown = onkeydown;
|
|
14410
14731
|
var div_1 = child(div);
|
|
14411
14732
|
template_effect(() => {
|
|
@@ -14413,13 +14734,24 @@ function TabControlToggle($$anchor, $$props) {
|
|
|
14413
14734
|
}), append($$anchor, div), pop(), $$cleanup();
|
|
14414
14735
|
}
|
|
14415
14736
|
delegate(["click", "keydown"]);
|
|
14416
|
-
const key$4 = Symbol("
|
|
14737
|
+
const key$4 = Symbol("default-selection");
|
|
14738
|
+
function openDefaultSelection() {
|
|
14739
|
+
let open = !0;
|
|
14740
|
+
return tick().then(() => open = !1), () => open;
|
|
14741
|
+
}
|
|
14742
|
+
function setDefaultSelectionContext(isOpen) {
|
|
14743
|
+
setContext(key$4, isOpen);
|
|
14744
|
+
}
|
|
14745
|
+
function getDefaultSelectionContext() {
|
|
14746
|
+
return getContext(key$4) ?? (() => !0);
|
|
14747
|
+
}
|
|
14748
|
+
const key$3 = Symbol("relativeDiscountScope"), selectedPackageKey = Symbol("selectedPackageDiscountScope");
|
|
14417
14749
|
function setRelativeDiscountScopeContext(scope) {
|
|
14418
|
-
setContext(key$
|
|
14750
|
+
setContext(key$3, scope);
|
|
14419
14751
|
}
|
|
14420
14752
|
const noScopeStore = readable(void 0);
|
|
14421
14753
|
function getRelativeDiscountScopeContext() {
|
|
14422
|
-
return getContext(key$
|
|
14754
|
+
return getContext(key$3) ?? noScopeStore;
|
|
14423
14755
|
}
|
|
14424
14756
|
function setSelectedPackageScopeContext(store) {
|
|
14425
14757
|
setContext(selectedPackageKey, store);
|
|
@@ -14446,24 +14778,13 @@ function withScopedRelativeDiscount(variables, packageInfo, mostExpensivePricePe
|
|
|
14446
14778
|
"product.relative_discount": discount < 1 ? "" : `${discount.toFixed(0)}%`
|
|
14447
14779
|
};
|
|
14448
14780
|
}
|
|
14449
|
-
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
}
|
|
14454
|
-
function setDefaultSelectionContext(isOpen) {
|
|
14455
|
-
setContext(key$3, isOpen);
|
|
14456
|
-
}
|
|
14457
|
-
function getDefaultSelectionContext() {
|
|
14458
|
-
return getContext(key$3) ?? (() => !0);
|
|
14459
|
-
}
|
|
14460
|
-
var root_1$v = /* @__PURE__ */ from_html("<div><!> <!></div>");
|
|
14461
|
-
const $$css$11 = {
|
|
14462
|
-
hash: "svelte-1rugoy2",
|
|
14463
|
-
code: '.rc-tabs-video-bg.svelte-1rugoy2::before {content:"";position:absolute;inset:0;background:var(--overlay);pointer-events:none;z-index:2;}.rc-tabs-video-bg.svelte-1rugoy2 > .rc-bg-video {z-index:1;}.rc-tabs-video-bg.svelte-1rugoy2 > .rc-tabs-stack-front {position:relative;z-index:3;}'
|
|
14781
|
+
var root_1$t = /* @__PURE__ */ from_html("<div><!> <!></div>");
|
|
14782
|
+
const $$css$_ = {
|
|
14783
|
+
hash: "svelte-xjus6w",
|
|
14784
|
+
code: '.rc-tabs-video-bg.svelte-xjus6w::before {content:"";position:absolute;inset:0;background:var(--overlay);pointer-events:none;z-index:2;}.rc-tabs-video-bg.svelte-xjus6w > .rc-bg-video {z-index:1;}.rc-tabs-video-bg.svelte-xjus6w > .rc-tabs-stack-front {position:relative;z-index:3;}'
|
|
14464
14785
|
};
|
|
14465
14786
|
function Tabs($$anchor, $$props) {
|
|
14466
|
-
push($$props, !0), append_styles$1($$anchor, $$css$
|
|
14787
|
+
push($$props, !0), append_styles$1($$anchor, $$css$_);
|
|
14467
14788
|
const $selectedTabIndex = () => store_get(selectedTabIndex, "$selectedTabIndex", $$stores), $tab = () => store_get(tab, "$tab", $$stores), [$$stores, $$cleanup] = setup_stores(), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), { name, control, tabs, default_tab_id, state_updates } = props, buildConditionContext = useConditionContext(), stateStore = getPaywallStateContext(), $$d = /* @__PURE__ */ user_derived(() => ({
|
|
14468
14789
|
...props,
|
|
14469
14790
|
...resolveOverrideProperties(buildConditionContext(), $$props.overrides)
|
|
@@ -14505,423 +14826,103 @@ function Tabs($$anchor, $$props) {
|
|
|
14505
14826
|
interactionType === "tab" ? emitComponentInteraction({
|
|
14506
14827
|
componentType: "tab",
|
|
14507
14828
|
componentName: name,
|
|
14508
|
-
componentValue: ((_a3 = tabs[nextIndex]) == null ? void 0 : _a3.id) ?? tabId,
|
|
14509
|
-
originIndex: currentIndex,
|
|
14510
|
-
destinationIndex: nextIndex,
|
|
14511
|
-
originContextName: getTabName(currentIndex),
|
|
14512
|
-
destinationContextName: getTabName(nextIndex),
|
|
14513
|
-
defaultIndex: defaultTabIndex
|
|
14514
|
-
}) : interactionType === "switch" && emitComponentInteraction({
|
|
14515
|
-
componentType: "switch",
|
|
14516
|
-
componentName: name,
|
|
14517
|
-
componentValue: nextIndex === 1 ? "on" : "off"
|
|
14518
|
-
}), isDefaultSelectionOpen = openDefaultSelection(), selectedTabIndex.set(nextIndex);
|
|
14519
|
-
}
|
|
14520
|
-
};
|
|
14521
|
-
let lastPublishedTabId;
|
|
14522
|
-
user_effect(() => {
|
|
14523
|
-
var _a3;
|
|
14524
|
-
if (!get$1(isVisible) || !(state_updates != null && state_updates.length)) return;
|
|
14525
|
-
const tabId = (_a3 = tabs[$selectedTabIndex()]) == null ? void 0 : _a3.id;
|
|
14526
|
-
tabId == null || tabId === lastPublishedTabId || (lastPublishedTabId = tabId, stateStore == null || stateStore.applyUpdates(state_updates, tabId));
|
|
14527
|
-
}), setTabsContext({
|
|
14528
|
-
control: readable(control),
|
|
14529
|
-
selectedTabId: derived(tab, (tab2) => (tab2 == null ? void 0 : tab2.id) ?? ""),
|
|
14530
|
-
selectTab,
|
|
14531
|
-
isActive: derived(selectedTabIndex, (value) => value === 1)
|
|
14532
|
-
}), setCarouselPageMemoryContext(getCarouselPageMemoryContext() ?? /* @__PURE__ */ new Map());
|
|
14533
|
-
const parentScope = getRelativeDiscountScopeContext();
|
|
14534
|
-
setRelativeDiscountScopeContext(derived([tab, infoPerPackage, parentScope], ([selectedTab, info, parent]) => (selectedTab && mostExpensivePricePerMonth(selectedTab, info)) ?? parent));
|
|
14535
|
-
var fragment = comment(), node = first_child(fragment);
|
|
14536
|
-
{
|
|
14537
|
-
var consequent_2 = ($$anchor2) => {
|
|
14538
|
-
var div = root_1$v(), node_1 = child(div);
|
|
14539
|
-
{
|
|
14540
|
-
var consequent = ($$anchor3) => {
|
|
14541
|
-
BackgroundVideoSurface($$anchor3, {
|
|
14542
|
-
get url() {
|
|
14543
|
-
return get$1(videoSurface).url;
|
|
14544
|
-
},
|
|
14545
|
-
get urlLowRes() {
|
|
14546
|
-
return get$1(videoSurface).url_low_res;
|
|
14547
|
-
},
|
|
14548
|
-
get objectFit() {
|
|
14549
|
-
return get$1(videoSurface).fit;
|
|
14550
|
-
},
|
|
14551
|
-
get objectPosition() {
|
|
14552
|
-
return get$1(videoSurface).position;
|
|
14553
|
-
},
|
|
14554
|
-
get poster() {
|
|
14555
|
-
return get$1(videoSurface).posterWebp;
|
|
14556
|
-
},
|
|
14557
|
-
get mute() {
|
|
14558
|
-
return get$1(videoSurface).mute;
|
|
14559
|
-
},
|
|
14560
|
-
get loop() {
|
|
14561
|
-
return get$1(videoSurface).loop;
|
|
14562
|
-
}
|
|
14563
|
-
});
|
|
14564
|
-
};
|
|
14565
|
-
if_block(node_1, ($$render) => {
|
|
14566
|
-
get$1(videoSurface) && $$render(consequent);
|
|
14567
|
-
});
|
|
14568
|
-
}
|
|
14569
|
-
var node_2 = sibling(node_1, 2);
|
|
14570
|
-
{
|
|
14571
|
-
var consequent_1 = ($$anchor3) => {
|
|
14572
|
-
var fragment_2 = comment(), node_3 = first_child(fragment_2);
|
|
14573
|
-
key$j(node_3, () => $tab().id, ($$anchor4) => {
|
|
14574
|
-
{
|
|
14575
|
-
let $0 = /* @__PURE__ */ user_derived(() => get$1(hasVideoBg) ? "rc-tabs-stack-front" : void 0);
|
|
14576
|
-
Stack($$anchor4, spread_props(() => $tab().stack, {
|
|
14577
|
-
get class() {
|
|
14578
|
-
return get$1($0);
|
|
14579
|
-
}
|
|
14580
|
-
}));
|
|
14581
|
-
}
|
|
14582
|
-
}), append($$anchor3, fragment_2);
|
|
14583
|
-
};
|
|
14584
|
-
if_block(node_2, ($$render) => {
|
|
14585
|
-
$tab() !== void 0 && $$render(consequent_1);
|
|
14586
|
-
});
|
|
14587
|
-
}
|
|
14588
|
-
template_effect(
|
|
14589
|
-
($0) => {
|
|
14590
|
-
set_class(div, 1, $0, "svelte-1rugoy2"), set_style(div, get$1(styles));
|
|
14591
|
-
},
|
|
14592
|
-
[
|
|
14593
|
-
() => clsx([
|
|
14594
|
-
"rc-gradient-border",
|
|
14595
|
-
get$1(hasVideoBg) ? rcVideoBackgroundHostClass("tabs") : ""
|
|
14596
|
-
].filter(Boolean).join(" "))
|
|
14597
|
-
]
|
|
14598
|
-
), append($$anchor2, div);
|
|
14599
|
-
};
|
|
14600
|
-
if_block(node, ($$render) => {
|
|
14601
|
-
get$1(isVisible) && $$render(consequent_2);
|
|
14602
|
-
});
|
|
14603
|
-
}
|
|
14604
|
-
append($$anchor, fragment), pop(), $$cleanup();
|
|
14605
|
-
}
|
|
14606
|
-
var root_2$g = /* @__PURE__ */ from_html('<div style="flex-grow: 1; width:100%;"></div>'), root_1$u = /* @__PURE__ */ from_html("<div><!></div>"), root_4$c = /* @__PURE__ */ from_html('<div class="custom-wallet-button svelte-12c9ish"><!></div>');
|
|
14607
|
-
const $$css$10 = {
|
|
14608
|
-
hash: "svelte-12c9ish",
|
|
14609
|
-
code: `
|
|
14610
|
-
/* Default look for the not-ready states; hosts restyle via [data-wallet-state]. */.custom-wallet-button.svelte-12c9ish:not([data-wallet-state="ready"]) {opacity:0.4;cursor:not-allowed;}.custom-wallet-button.svelte-12c9ish:not([data-wallet-state="ready"]) > * {pointer-events:none;}`
|
|
14611
|
-
};
|
|
14612
|
-
function WalletButton($$anchor, $$props) {
|
|
14613
|
-
push($$props, !0), append_styles$1($$anchor, $$css$10);
|
|
14614
|
-
const $selectedPackageId = () => store_get(selectedPackageId, "$selectedPackageId", $$stores), [$$stores, $$cleanup] = setup_stores(), {
|
|
14615
|
-
walletButtonRender,
|
|
14616
|
-
onWalletButtonReady,
|
|
14617
|
-
prepareWalletPurchase,
|
|
14618
|
-
onWalletPurchaseClicked,
|
|
14619
|
-
selectedPackageId,
|
|
14620
|
-
emitComponentInteraction
|
|
14621
|
-
} = getPaywallContext(), getColorMode = getColorModeContext(), colorMode = /* @__PURE__ */ user_derived(getColorMode), props = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy"]), mode2 = /* @__PURE__ */ user_derived(() => $$props.mode ?? "store"), onReady = /* @__PURE__ */ user_derived(() => $$props.onWalletButtonReady ?? onWalletButtonReady), walletButtonTheme = /* @__PURE__ */ user_derived(() => {
|
|
14622
|
-
const { style } = props;
|
|
14623
|
-
if (style != null)
|
|
14624
|
-
return get$1(colorMode) === "dark" && style.dark != null ? style.dark : style.light;
|
|
14625
|
-
}), fallbackSize = { width: { type: "fill" }, height: { type: "fit" } }, fallbackDimension = {
|
|
14626
|
-
type: "vertical",
|
|
14627
|
-
alignment: "center",
|
|
14628
|
-
distribution: "center"
|
|
14629
|
-
}, $$d = /* @__PURE__ */ user_derived(() => ({
|
|
14630
|
-
size: $$props.size ?? fallbackSize,
|
|
14631
|
-
dimension: $$props.dimension ?? fallbackDimension,
|
|
14632
|
-
spacing: $$props.spacing ?? 0,
|
|
14633
|
-
margin: $$props.margin ?? DEFAULT_SPACING$2,
|
|
14634
|
-
border: $$props.border ?? null,
|
|
14635
|
-
shape: $$props.shape ?? null,
|
|
14636
|
-
shadow: $$props.shadow ?? null
|
|
14637
|
-
})), size = /* @__PURE__ */ user_derived(() => get$1($$d).size), dimension = /* @__PURE__ */ user_derived(() => get$1($$d).dimension), spacing = /* @__PURE__ */ user_derived(() => get$1($$d).spacing), margin = /* @__PURE__ */ user_derived(() => get$1($$d).margin), stackLayoutRules = /* @__PURE__ */ user_derived(() => ({
|
|
14638
|
-
display: "flex",
|
|
14639
|
-
position: "relative",
|
|
14640
|
-
width: mapSize(get$1(size).width),
|
|
14641
|
-
height: mapSize(get$1(size).height),
|
|
14642
|
-
...mapFillBounds(get$1(size)),
|
|
14643
|
-
...mapDimension(get$1(dimension)),
|
|
14644
|
-
gap: px(get$1(spacing)),
|
|
14645
|
-
margin: mapSpacing({
|
|
14646
|
-
...get$1(margin) ? { ...get$1(margin) } : { ...DEFAULT_SPACING$2 }
|
|
14647
|
-
})
|
|
14648
|
-
})), stackStyle = /* @__PURE__ */ user_derived(() => css(get$1(stackLayoutRules)));
|
|
14649
|
-
let busy = /* @__PURE__ */ state(!1), prepared = /* @__PURE__ */ state(!1);
|
|
14650
|
-
const walletState = /* @__PURE__ */ user_derived(() => get$1(busy) ? "busy" : get$1(prepared) ? "ready" : "preparing");
|
|
14651
|
-
let prepareRequestId = 0, destroyed = !1;
|
|
14652
|
-
onDestroy(() => {
|
|
14653
|
-
destroyed = !0;
|
|
14654
|
-
});
|
|
14655
|
-
const runPrepare = (packageId) => {
|
|
14656
|
-
var _a3;
|
|
14657
|
-
const requestId = ++prepareRequestId;
|
|
14658
|
-
if (!prepareWalletPurchase) {
|
|
14659
|
-
(_a3 = get$1(onReady)) == null || _a3(!1);
|
|
14660
|
-
return;
|
|
14661
|
-
}
|
|
14662
|
-
Promise.resolve().then(() => prepareWalletPurchase(packageId)).catch(() => !1).then((available) => {
|
|
14663
|
-
var _a4;
|
|
14664
|
-
requestId !== prepareRequestId || destroyed || (set(prepared, available, !0), (_a4 = get$1(onReady)) == null || _a4(available));
|
|
14665
|
-
});
|
|
14666
|
-
}, refreshPrepare = () => {
|
|
14667
|
-
var _a3;
|
|
14668
|
-
if (destroyed || get$1(mode2) !== "custom")
|
|
14669
|
-
return;
|
|
14670
|
-
if (set(prepared, !1), !$$props.stack) {
|
|
14671
|
-
(_a3 = get$1(onReady)) == null || _a3(!1);
|
|
14672
|
-
return;
|
|
14673
|
-
}
|
|
14674
|
-
const packageId = $selectedPackageId();
|
|
14675
|
-
if (!packageId) {
|
|
14676
|
-
prepareRequestId++;
|
|
14677
|
-
return;
|
|
14678
|
-
}
|
|
14679
|
-
runPrepare(packageId);
|
|
14680
|
-
};
|
|
14681
|
-
user_effect(refreshPrepare);
|
|
14682
|
-
const onclick = () => {
|
|
14683
|
-
if (get$1(busy) || !get$1(prepared) || !onWalletPurchaseClicked)
|
|
14684
|
-
return;
|
|
14685
|
-
const packageId = $selectedPackageId();
|
|
14686
|
-
if (!packageId)
|
|
14687
|
-
return;
|
|
14688
|
-
set(busy, !0), set(prepared, !1);
|
|
14689
|
-
let purchase;
|
|
14690
|
-
try {
|
|
14691
|
-
purchase = onWalletPurchaseClicked(packageId);
|
|
14692
|
-
} catch {
|
|
14693
|
-
set(busy, !1), refreshPrepare();
|
|
14694
|
-
return;
|
|
14695
|
-
}
|
|
14696
|
-
purchase.catch(() => {
|
|
14697
|
-
}).finally(() => {
|
|
14698
|
-
set(busy, !1), refreshPrepare();
|
|
14699
|
-
}), emitComponentInteraction({
|
|
14700
|
-
componentType: "wallet_button",
|
|
14701
|
-
componentName: $$props.name,
|
|
14702
|
-
componentValue: "custom_purchase"
|
|
14703
|
-
});
|
|
14704
|
-
};
|
|
14705
|
-
var fragment = comment(), node = first_child(fragment);
|
|
14706
|
-
{
|
|
14707
|
-
var consequent = ($$anchor2) => {
|
|
14708
|
-
var div = root_1$u(), node_1 = child(div);
|
|
14709
|
-
key$j(node_1, () => get$1(walletButtonTheme), ($$anchor3) => {
|
|
14710
|
-
var div_1 = root_2$g();
|
|
14711
|
-
action(div_1, ($$node, $$action_arg) => walletButtonRender == null ? void 0 : walletButtonRender($$node, $$action_arg), () => ({
|
|
14712
|
-
selectedPackageId: $selectedPackageId(),
|
|
14713
|
-
onReady: $$props.onWalletButtonReady ?? onWalletButtonReady,
|
|
14714
|
-
walletButtonTheme: get$1(walletButtonTheme)
|
|
14715
|
-
})), append($$anchor3, div_1);
|
|
14716
|
-
}), template_effect(() => set_style(div, get$1(stackStyle))), append($$anchor2, div);
|
|
14717
|
-
}, alternate = ($$anchor2) => {
|
|
14718
|
-
var fragment_1 = comment(), node_2 = first_child(fragment_1);
|
|
14719
|
-
{
|
|
14720
|
-
var consequent_1 = ($$anchor3) => {
|
|
14721
|
-
var div_2 = root_4$c(), node_3 = child(div_2);
|
|
14722
|
-
Stack(node_3, spread_props(() => $$props.stack, { onclick, testId: "wallet-button-custom" })), template_effect(() => {
|
|
14723
|
-
set_style(div_2, get$1(stackStyle)), set_attribute(div_2, "data-wallet-state", get$1(walletState)), set_attribute(div_2, "aria-busy", get$1(busy)), set_attribute(div_2, "aria-disabled", get$1(busy) || !get$1(prepared));
|
|
14724
|
-
}), append($$anchor3, div_2);
|
|
14725
|
-
};
|
|
14726
|
-
if_block(
|
|
14727
|
-
node_2,
|
|
14728
|
-
($$render) => {
|
|
14729
|
-
get$1(mode2) === "custom" && $$props.stack && $$render(consequent_1);
|
|
14730
|
-
},
|
|
14731
|
-
!0
|
|
14732
|
-
);
|
|
14733
|
-
}
|
|
14734
|
-
append($$anchor2, fragment_1);
|
|
14735
|
-
};
|
|
14736
|
-
if_block(node, ($$render) => {
|
|
14737
|
-
get$1(mode2) === "store" && walletButtonRender && $selectedPackageId() ? $$render(consequent) : $$render(alternate, !1);
|
|
14738
|
-
});
|
|
14739
|
-
}
|
|
14740
|
-
append($$anchor, fragment), pop(), $$cleanup();
|
|
14741
|
-
}
|
|
14742
|
-
var root$S = /* @__PURE__ */ from_html('<div class="wallet-skeleton rc-gradient-border svelte-athpor"> <div class="wallet-skeleton-shimmer svelte-athpor"></div></div>');
|
|
14743
|
-
const $$css$$ = {
|
|
14744
|
-
hash: "svelte-athpor",
|
|
14745
|
-
code: `.wallet-skeleton.svelte-athpor {position:relative;border-radius:9999px;background-color:rgba(128, 128, 128, 0.16);backdrop-filter:blur(18px);min-height:48px;flex-grow:1;width:100%;}.wallet-skeleton-shimmer.svelte-athpor {position:absolute;inset:0;overflow:hidden;border-radius:inherit;}.wallet-skeleton-shimmer.svelte-athpor::before {content:"";position:absolute;inset:0;background:linear-gradient(
|
|
14746
|
-
135deg,
|
|
14747
|
-
rgba(255, 255, 255, 0.2),
|
|
14748
|
-
rgba(255, 255, 255, 0.01)
|
|
14749
|
-
);opacity:0.9;mix-blend-mode:screen;}.wallet-skeleton-shimmer.svelte-athpor::after {content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(
|
|
14750
|
-
120deg,
|
|
14751
|
-
transparent 0%,
|
|
14752
|
-
rgba(255, 255, 255, 0.6) 20%,
|
|
14753
|
-
transparent 40%
|
|
14754
|
-
);opacity:0.8;
|
|
14755
|
-
animation: svelte-athpor-wallet-skeleton-shimmer 1.4s ease-in-out infinite;}
|
|
14756
|
-
|
|
14757
|
-
@keyframes svelte-athpor-wallet-skeleton-shimmer {
|
|
14758
|
-
100% {
|
|
14759
|
-
transform: translateX(100%);
|
|
14760
|
-
}
|
|
14761
|
-
}`
|
|
14762
|
-
};
|
|
14763
|
-
function SkeletonLoader($$anchor, $$props) {
|
|
14764
|
-
push($$props, !0), append_styles$1($$anchor, $$css$$);
|
|
14765
|
-
const fallbackSize = { width: { type: "fill" }, height: { type: "fit" } }, fallbackDimension = {
|
|
14766
|
-
type: "vertical",
|
|
14767
|
-
alignment: "center",
|
|
14768
|
-
distribution: "center"
|
|
14769
|
-
}, $$d = /* @__PURE__ */ user_derived(() => ({
|
|
14770
|
-
size: $$props.size ?? fallbackSize,
|
|
14771
|
-
dimension: $$props.dimension ?? fallbackDimension,
|
|
14772
|
-
spacing: $$props.spacing ?? 0,
|
|
14773
|
-
margin: $$props.margin ?? DEFAULT_SPACING$2,
|
|
14774
|
-
border: $$props.border ?? null,
|
|
14775
|
-
shape: $$props.shape ?? null,
|
|
14776
|
-
shadow: $$props.shadow ?? null,
|
|
14777
|
-
style: $$props.style
|
|
14778
|
-
})), size = /* @__PURE__ */ user_derived(() => get$1($$d).size), dimension = /* @__PURE__ */ user_derived(() => get$1($$d).dimension), spacing = /* @__PURE__ */ user_derived(() => get$1($$d).spacing), margin = /* @__PURE__ */ user_derived(() => get$1($$d).margin), border = /* @__PURE__ */ user_derived(() => get$1($$d).border), shape = /* @__PURE__ */ user_derived(() => get$1($$d).shape), shadow = /* @__PURE__ */ user_derived(() => get$1($$d).shadow), style = /* @__PURE__ */ user_derived(() => get$1($$d).style), minDistanceBetweenPurchaseButtons = 10, getColorMode = getColorModeContext(), colorMode = /* @__PURE__ */ user_derived(getColorMode), stackLayoutRules = /* @__PURE__ */ user_derived(() => ({
|
|
14779
|
-
...get$1(style),
|
|
14780
|
-
display: "flex",
|
|
14781
|
-
position: "relative",
|
|
14782
|
-
width: mapSize(get$1(size).width),
|
|
14783
|
-
height: mapSize(get$1(size).height),
|
|
14784
|
-
...mapFillBounds(get$1(size)),
|
|
14785
|
-
...mapDimension(get$1(dimension)),
|
|
14786
|
-
gap: px(get$1(spacing)),
|
|
14787
|
-
margin: mapSpacing({
|
|
14788
|
-
...get$1(margin) ? {
|
|
14789
|
-
...get$1(margin),
|
|
14790
|
-
bottom: Math.max(get$1(margin).bottom ?? 0, minDistanceBetweenPurchaseButtons)
|
|
14791
|
-
} : {
|
|
14792
|
-
...DEFAULT_SPACING$2,
|
|
14793
|
-
bottom: minDistanceBetweenPurchaseButtons
|
|
14794
|
-
}
|
|
14795
|
-
})
|
|
14796
|
-
})), loaderStyle = /* @__PURE__ */ user_derived(() => css({
|
|
14797
|
-
...get$1(stackLayoutRules),
|
|
14798
|
-
...mapBorder(get$1(colorMode), get$1(border)),
|
|
14799
|
-
"border-radius": mapBorderRadius(get$1(shape)),
|
|
14800
|
-
"box-shadow": mapShadow(get$1(colorMode), get$1(shadow))
|
|
14801
|
-
}));
|
|
14802
|
-
var div = root$S();
|
|
14803
|
-
set_attribute(div, "aria-hidden", !0), template_effect(() => set_style(div, get$1(loaderStyle))), append($$anchor, div), pop();
|
|
14804
|
-
}
|
|
14805
|
-
const hasComponentOfTypeInSubtree = (stack, componentType) => findComponentOfTypeInSubtree(stack, componentType) !== void 0, findComponentOfTypeInSubtree = (stack, componentType) => {
|
|
14806
|
-
var _a3;
|
|
14807
|
-
for (const component2 of stack.components) {
|
|
14808
|
-
const found = findComponentTypeInComponent(component2, componentType);
|
|
14809
|
-
if (found)
|
|
14810
|
-
return found;
|
|
14811
|
-
}
|
|
14812
|
-
return (_a3 = stack.badge) != null && _a3.stack ? findComponentOfTypeInSubtree(stack.badge.stack, componentType) : void 0;
|
|
14813
|
-
}, findComponentTypeInComponent = (component2, componentType) => {
|
|
14814
|
-
if (component2.type === componentType)
|
|
14815
|
-
return component2;
|
|
14816
|
-
if (component2.fallback) {
|
|
14817
|
-
const found = findComponentTypeInComponent(component2.fallback, componentType);
|
|
14818
|
-
if (found)
|
|
14819
|
-
return found;
|
|
14820
|
-
}
|
|
14821
|
-
switch (component2.type) {
|
|
14822
|
-
case "carousel":
|
|
14823
|
-
for (const page of component2.pages) {
|
|
14824
|
-
const found = findComponentOfTypeInSubtree(page, componentType);
|
|
14825
|
-
if (found)
|
|
14826
|
-
return found;
|
|
14827
|
-
}
|
|
14828
|
-
return;
|
|
14829
|
-
case "package":
|
|
14830
|
-
case "purchase_button":
|
|
14831
|
-
case "tab":
|
|
14832
|
-
case "tab_control_button":
|
|
14833
|
-
return findComponentOfTypeInSubtree(component2.stack, componentType);
|
|
14834
|
-
case "wallet_button":
|
|
14835
|
-
return component2.stack ? findComponentOfTypeInSubtree(component2.stack, componentType) : void 0;
|
|
14836
|
-
case "stack":
|
|
14837
|
-
return findComponentOfTypeInSubtree(component2, componentType);
|
|
14838
|
-
case "tabs": {
|
|
14839
|
-
const foundInControl = findComponentOfTypeInSubtree(component2.control.stack, componentType);
|
|
14840
|
-
if (foundInControl)
|
|
14841
|
-
return foundInControl;
|
|
14842
|
-
for (const tab of component2.tabs) {
|
|
14843
|
-
const found = findComponentOfTypeInSubtree(tab.stack, componentType);
|
|
14844
|
-
if (found)
|
|
14845
|
-
return found;
|
|
14846
|
-
}
|
|
14847
|
-
return;
|
|
14848
|
-
}
|
|
14849
|
-
default:
|
|
14850
|
-
return;
|
|
14851
|
-
}
|
|
14852
|
-
};
|
|
14853
|
-
var root_1$t = /* @__PURE__ */ from_html("<div><!></div> <!>", 1);
|
|
14854
|
-
const $$css$_ = {
|
|
14855
|
-
hash: "svelte-1tony9w",
|
|
14856
|
-
code: ".wallet-slot.svelte-1tony9w {display:contents;}.wallet-slot-hidden.svelte-1tony9w {display:none;}"
|
|
14857
|
-
};
|
|
14858
|
-
function ExpressPurchaseButton($$anchor, $$props) {
|
|
14859
|
-
push($$props, !0), append_styles$1($$anchor, $$css$_);
|
|
14860
|
-
const partialStackProps = /* @__PURE__ */ rest_props($$props, [
|
|
14861
|
-
"$$slots",
|
|
14862
|
-
"$$events",
|
|
14863
|
-
"$$legacy",
|
|
14864
|
-
"wallet_unknown_stack",
|
|
14865
|
-
"wallet_available_stack",
|
|
14866
|
-
"wallet_unavailable_stack",
|
|
14867
|
-
"type"
|
|
14868
|
-
]), {
|
|
14869
|
-
walletButtonRender,
|
|
14870
|
-
prepareWalletPurchase,
|
|
14871
|
-
onWalletPurchaseClicked,
|
|
14872
|
-
...rest
|
|
14873
|
-
} = getPaywallContext(), availableStackHasWalletButton = untrack(() => hasComponentOfTypeInSubtree($$props.wallet_available_stack, "wallet_button")), walletButton = untrack(() => findComponentOfTypeInSubtree($$props.wallet_available_stack, "wallet_button")), hostReady = (walletButton == null ? void 0 : walletButton.type) === "wallet_button" && walletButton.mode === "custom" ? !!prepareWalletPurchase && !!onWalletPurchaseClicked : !!walletButtonRender;
|
|
14874
|
-
let walletButtonAvailable = /* @__PURE__ */ state(proxy(availableStackHasWalletButton ? void 0 : !1)), shouldShowWalletSkeleton = /* @__PURE__ */ state(proxy(hostReady && availableStackHasWalletButton));
|
|
14875
|
-
setPaywallContext({
|
|
14876
|
-
walletButtonRender,
|
|
14877
|
-
prepareWalletPurchase,
|
|
14878
|
-
onWalletPurchaseClicked,
|
|
14879
|
-
...rest,
|
|
14880
|
-
onWalletButtonReady: (isAvailable) => {
|
|
14881
|
-
set(walletButtonAvailable, hostReady ? isAvailable : !1, !0), set(shouldShowWalletSkeleton, !1);
|
|
14829
|
+
componentValue: ((_a3 = tabs[nextIndex]) == null ? void 0 : _a3.id) ?? tabId,
|
|
14830
|
+
originIndex: currentIndex,
|
|
14831
|
+
destinationIndex: nextIndex,
|
|
14832
|
+
originContextName: getTabName(currentIndex),
|
|
14833
|
+
destinationContextName: getTabName(nextIndex),
|
|
14834
|
+
defaultIndex: defaultTabIndex
|
|
14835
|
+
}) : interactionType === "switch" && emitComponentInteraction({
|
|
14836
|
+
componentType: "switch",
|
|
14837
|
+
componentName: name,
|
|
14838
|
+
componentValue: nextIndex === 1 ? "on" : "off"
|
|
14839
|
+
}), isDefaultSelectionOpen = openDefaultSelection(), selectedTabIndex.set(nextIndex);
|
|
14882
14840
|
}
|
|
14883
|
-
}
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
|
|
14895
|
-
|
|
14896
|
-
|
|
14897
|
-
|
|
14841
|
+
};
|
|
14842
|
+
let lastPublishedTabId;
|
|
14843
|
+
user_effect(() => {
|
|
14844
|
+
var _a3;
|
|
14845
|
+
if (!get$1(isVisible) || !(state_updates != null && state_updates.length)) return;
|
|
14846
|
+
const tabId = (_a3 = tabs[$selectedTabIndex()]) == null ? void 0 : _a3.id;
|
|
14847
|
+
tabId == null || tabId === lastPublishedTabId || (lastPublishedTabId = tabId, stateStore == null || stateStore.applyUpdates(state_updates, tabId));
|
|
14848
|
+
}), setTabsContext({
|
|
14849
|
+
control: readable(control),
|
|
14850
|
+
selectedTabId: derived(tab, (tab2) => (tab2 == null ? void 0 : tab2.id) ?? ""),
|
|
14851
|
+
selectTab,
|
|
14852
|
+
isActive: derived(selectedTabIndex, (value) => value === 1)
|
|
14853
|
+
}), setCarouselPageMemoryContext(getCarouselPageMemoryContext() ?? /* @__PURE__ */ new Map());
|
|
14854
|
+
const parentScope = getRelativeDiscountScopeContext();
|
|
14855
|
+
setRelativeDiscountScopeContext(derived([tab, infoPerPackage, parentScope], ([selectedTab, info, parent]) => (selectedTab && mostExpensivePricePerMonth(selectedTab, info)) ?? parent));
|
|
14856
|
+
var fragment = comment(), node = first_child(fragment);
|
|
14857
|
+
{
|
|
14858
|
+
var consequent_2 = ($$anchor2) => {
|
|
14859
|
+
var div = root_1$t(), node_1 = child(div);
|
|
14898
14860
|
{
|
|
14899
14861
|
var consequent = ($$anchor3) => {
|
|
14900
|
-
|
|
14901
|
-
|
|
14902
|
-
|
|
14903
|
-
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
}
|
|
14907
|
-
|
|
14908
|
-
|
|
14909
|
-
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
)
|
|
14914
|
-
|
|
14915
|
-
|
|
14862
|
+
BackgroundVideoSurface($$anchor3, {
|
|
14863
|
+
get url() {
|
|
14864
|
+
return get$1(videoSurface).url;
|
|
14865
|
+
},
|
|
14866
|
+
get urlLowRes() {
|
|
14867
|
+
return get$1(videoSurface).url_low_res;
|
|
14868
|
+
},
|
|
14869
|
+
get objectFit() {
|
|
14870
|
+
return get$1(videoSurface).fit;
|
|
14871
|
+
},
|
|
14872
|
+
get objectPosition() {
|
|
14873
|
+
return get$1(videoSurface).position;
|
|
14874
|
+
},
|
|
14875
|
+
get poster() {
|
|
14876
|
+
return get$1(videoSurface).posterWebp;
|
|
14877
|
+
},
|
|
14878
|
+
get mute() {
|
|
14879
|
+
return get$1(videoSurface).mute;
|
|
14880
|
+
},
|
|
14881
|
+
get loop() {
|
|
14882
|
+
return get$1(videoSurface).loop;
|
|
14883
|
+
}
|
|
14884
|
+
});
|
|
14916
14885
|
};
|
|
14917
14886
|
if_block(node_1, ($$render) => {
|
|
14918
|
-
get$1(
|
|
14887
|
+
get$1(videoSurface) && $$render(consequent);
|
|
14919
14888
|
});
|
|
14920
14889
|
}
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
14924
|
-
|
|
14890
|
+
var node_2 = sibling(node_1, 2);
|
|
14891
|
+
{
|
|
14892
|
+
var consequent_1 = ($$anchor3) => {
|
|
14893
|
+
var fragment_2 = comment(), node_3 = first_child(fragment_2);
|
|
14894
|
+
key$j(node_3, () => $tab().id, ($$anchor4) => {
|
|
14895
|
+
{
|
|
14896
|
+
let $0 = /* @__PURE__ */ user_derived(() => get$1(hasVideoBg) ? "rc-tabs-stack-front" : void 0);
|
|
14897
|
+
Stack($$anchor4, spread_props(() => $tab().stack, {
|
|
14898
|
+
get class() {
|
|
14899
|
+
return get$1($0);
|
|
14900
|
+
}
|
|
14901
|
+
}));
|
|
14902
|
+
}
|
|
14903
|
+
}), append($$anchor3, fragment_2);
|
|
14904
|
+
};
|
|
14905
|
+
if_block(node_2, ($$render) => {
|
|
14906
|
+
$tab() !== void 0 && $$render(consequent_1);
|
|
14907
|
+
});
|
|
14908
|
+
}
|
|
14909
|
+
template_effect(
|
|
14910
|
+
($0) => {
|
|
14911
|
+
set_class(div, 1, $0, "svelte-xjus6w"), set_style(div, get$1(styles));
|
|
14912
|
+
},
|
|
14913
|
+
[
|
|
14914
|
+
() => clsx([
|
|
14915
|
+
"rc-gradient-border",
|
|
14916
|
+
get$1(hasVideoBg) ? rcVideoBackgroundHostClass("tabs") : ""
|
|
14917
|
+
].filter(Boolean).join(" "))
|
|
14918
|
+
]
|
|
14919
|
+
), append($$anchor2, div);
|
|
14920
|
+
};
|
|
14921
|
+
if_block(node, ($$render) => {
|
|
14922
|
+
get$1(isVisible) && $$render(consequent_2);
|
|
14923
|
+
});
|
|
14924
|
+
}
|
|
14925
|
+
append($$anchor, fragment), pop(), $$cleanup();
|
|
14925
14926
|
}
|
|
14926
14927
|
function Node$1($$anchor, $$props) {
|
|
14927
14928
|
push($$props, !0);
|
|
@@ -15041,19 +15042,19 @@ function setStackScrollContext(context) {
|
|
|
15041
15042
|
const parentContext = getContext(key$2);
|
|
15042
15043
|
return setContext(key$2, context), parentContext;
|
|
15043
15044
|
}
|
|
15044
|
-
var root_1$s = /* @__PURE__ */ from_html("<!> <!>", 1), root_6$5 = /* @__PURE__ */ from_html("<div><!></div>"), root_8$6 = /* @__PURE__ */ from_html('<div class="rc-zlayer-layer svelte-
|
|
15045
|
+
var root_1$s = /* @__PURE__ */ from_html("<!> <!>", 1), root_6$5 = /* @__PURE__ */ from_html("<div><!></div>"), root_8$6 = /* @__PURE__ */ from_html('<div class="rc-zlayer-layer svelte-254p5a"><!></div>'), root_7$5 = /* @__PURE__ */ from_html('<div style="position: relative; width: 100%; height: 100%; isolation: isolate;"></div> <!>', 1), root_10$3 = /* @__PURE__ */ from_html('<div class="rc-stack-scroll"><div><!></div></div>'), root_4$b = /* @__PURE__ */ from_html("<!> <!> <!>", 1);
|
|
15045
15046
|
const $$css$Z = {
|
|
15046
|
-
hash: "svelte-
|
|
15047
|
-
code: `.stack.svelte-
|
|
15047
|
+
hash: "svelte-254p5a",
|
|
15048
|
+
code: `.stack.svelte-254p5a {appearance:none;position:relative;&[role="button"] {cursor:pointer;}&::before {content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--overlay);}}.stack.rc-stack-video-bg.svelte-254p5a::before {z-index:2;pointer-events:none;}.stack.rc-stack-video-bg.svelte-254p5a > .rc-bg-video {z-index:1;}
|
|
15048
15049
|
|
|
15049
|
-
/* Keep flex children interactive and above tinted overlay (::before z-index). */.stack.rc-stack-video-bg.svelte-
|
|
15050
|
+
/* Keep flex children interactive and above tinted overlay (::before z-index). */.stack.rc-stack-video-bg.svelte-254p5a > :not(.rc-bg-video) {position:relative;z-index:3;}
|
|
15050
15051
|
|
|
15051
15052
|
/*
|
|
15052
15053
|
* Each overlay layer is a full-size (inset:0) box, so by default it swallows
|
|
15053
15054
|
* clicks anywhere over the stack — including where it has no content —
|
|
15054
15055
|
* blocking interactive elements on the layers beneath. Only its own content
|
|
15055
15056
|
* should be hit-testable.
|
|
15056
|
-
*/.rc-zlayer-layer.svelte-
|
|
15057
|
+
*/.rc-zlayer-layer.svelte-254p5a {pointer-events:none;}.rc-zlayer-layer.svelte-254p5a > * {pointer-events:auto;}`
|
|
15057
15058
|
};
|
|
15058
15059
|
function Stack($$anchor, $$props) {
|
|
15059
15060
|
push($$props, !0), append_styles$1($$anchor, $$css$Z);
|
|
@@ -15159,7 +15160,7 @@ function Stack($$anchor, $$props) {
|
|
|
15159
15160
|
],
|
|
15160
15161
|
void 0,
|
|
15161
15162
|
void 0,
|
|
15162
|
-
"svelte-
|
|
15163
|
+
"svelte-254p5a"
|
|
15163
15164
|
);
|
|
15164
15165
|
var fragment_4 = root_4$b(), node_4 = first_child(fragment_4);
|
|
15165
15166
|
{
|
|
@@ -15314,20 +15315,20 @@ function Countdown($$anchor, $$props) {
|
|
|
15314
15315
|
}
|
|
15315
15316
|
append($$anchor, fragment), pop(), $$cleanup();
|
|
15316
15317
|
}
|
|
15317
|
-
var root$R = /* @__PURE__ */ from_html('<div class="svelte-
|
|
15318
|
+
var root$R = /* @__PURE__ */ from_html('<div class="svelte-1l3hoju"><!></div>');
|
|
15318
15319
|
const $$css$Y = {
|
|
15319
|
-
hash: "svelte-
|
|
15320
|
-
code: "div.svelte-
|
|
15320
|
+
hash: "svelte-1l3hoju",
|
|
15321
|
+
code: "div.svelte-1l3hoju {width:100%;display:flex;flex-direction:row;justify-content:center;}"
|
|
15321
15322
|
};
|
|
15322
15323
|
function Footer($$anchor, $$props) {
|
|
15323
15324
|
push($$props, !0), append_styles$1($$anchor, $$css$Y), setStackDimensionContext(() => "horizontal");
|
|
15324
15325
|
var div = root$R(), node = child(div);
|
|
15325
15326
|
Stack(node, spread_props(() => $$props.stack)), append($$anchor, div), pop();
|
|
15326
15327
|
}
|
|
15327
|
-
var root$Q = /* @__PURE__ */ from_html('<div class="svelte-
|
|
15328
|
+
var root$Q = /* @__PURE__ */ from_html('<div class="svelte-3otzwm"><!></div>');
|
|
15328
15329
|
const $$css$X = {
|
|
15329
|
-
hash: "svelte-
|
|
15330
|
-
code: "div.svelte-
|
|
15330
|
+
hash: "svelte-3otzwm",
|
|
15331
|
+
code: "div.svelte-3otzwm {display:flex;flex-direction:row;justify-content:center;}"
|
|
15331
15332
|
};
|
|
15332
15333
|
function Header($$anchor, $$props) {
|
|
15333
15334
|
push($$props, !0), append_styles$1($$anchor, $$css$X), setStackDimensionContext(() => "horizontal");
|
|
@@ -15412,19 +15413,6 @@ function ClipPath($$anchor, $$props) {
|
|
|
15412
15413
|
}
|
|
15413
15414
|
append($$anchor, fragment), pop();
|
|
15414
15415
|
}
|
|
15415
|
-
function viewBoxDimension(...values) {
|
|
15416
|
-
for (const value of values)
|
|
15417
|
-
if (value != null && value > 0)
|
|
15418
|
-
return value;
|
|
15419
|
-
return 0;
|
|
15420
|
-
}
|
|
15421
|
-
function viewBoxSize(measured, fallbackWidth, fallbackHeight) {
|
|
15422
|
-
const measuredWidth = (measured == null ? void 0 : measured.width) ?? 0, measuredHeight = (measured == null ? void 0 : measured.height) ?? 0;
|
|
15423
|
-
if (measuredWidth > 0 && measuredHeight > 0)
|
|
15424
|
-
return [measuredWidth, measuredHeight];
|
|
15425
|
-
const width = viewBoxDimension(fallbackWidth), height = viewBoxDimension(fallbackHeight);
|
|
15426
|
-
return width > 0 && height > 0 ? [width, height] : [0, 0];
|
|
15427
|
-
}
|
|
15428
15416
|
var root_1$q = /* @__PURE__ */ from_svg('<linearGradient x1="0" y1="0" x2="100%" y2="100%"><stop offset="0%"></stop><stop offset="100%"></stop></linearGradient>'), root_3$d = /* @__PURE__ */ from_svg("<stop></stop>"), root_2$e = /* @__PURE__ */ from_svg("<linearGradient></linearGradient>"), root_5$7 = /* @__PURE__ */ from_svg("<stop></stop>"), root_4$9 = /* @__PURE__ */ from_svg("<radialGradient></radialGradient>"), root$O = /* @__PURE__ */ from_svg("<!><!><!>", 1);
|
|
15429
15417
|
function Overlay($$anchor, $$props) {
|
|
15430
15418
|
push($$props, !0);
|
|
@@ -15477,10 +15465,23 @@ function Overlay($$anchor, $$props) {
|
|
|
15477
15465
|
}
|
|
15478
15466
|
append($$anchor, fragment), pop();
|
|
15479
15467
|
}
|
|
15480
|
-
|
|
15468
|
+
function viewBoxDimension(...values) {
|
|
15469
|
+
for (const value of values)
|
|
15470
|
+
if (value != null && value > 0)
|
|
15471
|
+
return value;
|
|
15472
|
+
return 0;
|
|
15473
|
+
}
|
|
15474
|
+
function viewBoxSize(measured, fallbackWidth, fallbackHeight) {
|
|
15475
|
+
const measuredWidth = (measured == null ? void 0 : measured.width) ?? 0, measuredHeight = (measured == null ? void 0 : measured.height) ?? 0;
|
|
15476
|
+
if (measuredWidth > 0 && measuredHeight > 0)
|
|
15477
|
+
return [measuredWidth, measuredHeight];
|
|
15478
|
+
const width = viewBoxDimension(fallbackWidth), height = viewBoxDimension(fallbackHeight);
|
|
15479
|
+
return width > 0 && height > 0 ? [width, height] : [0, 0];
|
|
15480
|
+
}
|
|
15481
|
+
var root_3$c = /* @__PURE__ */ from_svg('<use fill="transparent"></use>'), root_4$8 = /* @__PURE__ */ from_svg('<rect x="0" y="0" height="100%" width="100%"></rect>'), root_5$6 = /* @__PURE__ */ from_svg('<use fill="none"></use>'), root_1$p = /* @__PURE__ */ from_html('<div><svg width="100%" height="100%"><defs><clipPath><!></clipPath><g><!></g><!><!></defs><!><g><foreignObject x="0" y="0" width="100%" height="100%"><img alt="" class="svelte-c08ph6"/></foreignObject><!><!></g></svg></div>');
|
|
15481
15482
|
const $$css$W = {
|
|
15482
|
-
hash: "svelte-
|
|
15483
|
-
code: "img.svelte-
|
|
15483
|
+
hash: "svelte-c08ph6",
|
|
15484
|
+
code: "img.svelte-c08ph6 {width:100%;height:100%;object-fit:contain;object-position:center;}"
|
|
15484
15485
|
};
|
|
15485
15486
|
function Image($$anchor, $$props) {
|
|
15486
15487
|
push($$props, !0), append_styles$1($$anchor, $$css$W);
|
|
@@ -15793,10 +15794,7 @@ function mergeCustomVariables(customVariables, uiConfig) {
|
|
|
15793
15794
|
String(customVariableValue)
|
|
15794
15795
|
]));
|
|
15795
15796
|
return uiConfig ? {
|
|
15796
|
-
...Object.fromEntries(Object.entries(uiConfig.custom_variables ?? {}).map(([customVariableKey, { default_value }]) => [
|
|
15797
|
-
customVariableKey,
|
|
15798
|
-
String(default_value)
|
|
15799
|
-
])),
|
|
15797
|
+
...Object.fromEntries(Object.entries(uiConfig.custom_variables ?? {}).map(([customVariableKey, { default_value }]) => [customVariableKey, String(default_value)])),
|
|
15800
15798
|
...normalizedUserProvidedCustomVariables
|
|
15801
15799
|
} : normalizedUserProvidedCustomVariables;
|
|
15802
15800
|
}
|
|
@@ -15964,12 +15962,12 @@ function mapPaywallContentStackStyle(height, pullContentUnderHeader, headerHeigh
|
|
|
15964
15962
|
...pullContentUnderHeader ? { "margin-top": `-${headerHeight}px` } : {}
|
|
15965
15963
|
};
|
|
15966
15964
|
}
|
|
15967
|
-
var root$N = /* @__PURE__ */ from_html('<div class="backdrop svelte-
|
|
15965
|
+
var root$N = /* @__PURE__ */ from_html('<div class="backdrop svelte-17dusjt" role="presentation" tabindex="-1" aria-hidden="true"><div role="dialog" aria-modal="true"><!> <!></div></div>');
|
|
15968
15966
|
const $$css$V = {
|
|
15969
|
-
hash: "svelte-
|
|
15970
|
-
code: `.backdrop.svelte-
|
|
15967
|
+
hash: "svelte-17dusjt",
|
|
15968
|
+
code: `.backdrop.svelte-17dusjt {position:fixed;inset:0 0 0 0;z-index:1000;width:100%;height:100%;background-color:#0000003f;display:flex;flex-direction:column;}.sheet.svelte-17dusjt {position:absolute;inset:auto 0 0 0;transition-property:transform;transition-duration:225ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:translateY(100%);}.sheet.svelte-17dusjt::before {content:"";position:absolute;inset:0;background:var(--overlay);pointer-events:none;}.sheet.visible.svelte-17dusjt {transform:translateY(0);}.sheet.rc-sheet-video-bg.svelte-17dusjt::before {z-index:2;}
|
|
15971
15969
|
|
|
15972
|
-
/* Match stack video stacking: tint above video (::before z-index). */.sheet.rc-sheet-video-bg.svelte-
|
|
15970
|
+
/* Match stack video stacking: tint above video (::before z-index). */.sheet.rc-sheet-video-bg.svelte-17dusjt > .rc-bg-video {z-index:1;}.sheet.rc-sheet-video-bg.svelte-17dusjt > .rc-sheet-stack-above-video {position:relative;z-index:3;}`
|
|
15973
15971
|
};
|
|
15974
15972
|
function Sheet($$anchor, $$props) {
|
|
15975
15973
|
push($$props, !0), append_styles$1($$anchor, $$css$V);
|
|
@@ -16075,15 +16073,15 @@ function Sheet($$anchor, $$props) {
|
|
|
16075
16073
|
}));
|
|
16076
16074
|
}
|
|
16077
16075
|
bind_this(div_1, ($$value) => sheet = $$value, () => sheet), template_effect(() => {
|
|
16078
|
-
set_style(div, get$1(backdropStyle)), set_class(div_1, 1, clsx(get$1(sheetClass)), "svelte-
|
|
16076
|
+
set_style(div, get$1(backdropStyle)), set_class(div_1, 1, clsx(get$1(sheetClass)), "svelte-17dusjt"), set_style(div_1, get$1(sheetStyle));
|
|
16079
16077
|
}), event("transitionend", div_1, ontransitionend), append($$anchor, div), pop();
|
|
16080
16078
|
}
|
|
16081
16079
|
delegate(["click", "keydown"]);
|
|
16082
16080
|
var root_3$b = /* @__PURE__ */ from_html("<div></div>"), root_1$o = /* @__PURE__ */ from_html("<div><!> <!></div>");
|
|
16083
16081
|
const $$css$U = {
|
|
16084
|
-
hash: "svelte-
|
|
16085
|
-
code: `.viewport-backdrop.svelte-
|
|
16086
|
-
transform 0.1s ease-in-out;}.viewport-backdrop.blurred.svelte-
|
|
16082
|
+
hash: "svelte-og9bdk",
|
|
16083
|
+
code: `.viewport-backdrop.svelte-og9bdk {position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;isolation:isolate;transition:filter 0.1s ease-in-out,
|
|
16084
|
+
transform 0.1s ease-in-out;}.viewport-backdrop.blurred.svelte-og9bdk {filter:blur(10px) brightness(0.8);transform:scale(1.045);}.viewport-backdrop-overlay.svelte-og9bdk {position:absolute;inset:0;pointer-events:none;z-index:1;}.viewport-backdrop-overlay.z-over-video-bg.svelte-og9bdk {z-index:2;}`
|
|
16087
16085
|
};
|
|
16088
16086
|
function ViewportBackdrop($$anchor, $$props) {
|
|
16089
16087
|
push($$props, !0), append_styles$1($$anchor, $$css$U);
|
|
@@ -16138,7 +16136,7 @@ function ViewportBackdrop($$anchor, $$props) {
|
|
|
16138
16136
|
var div_1 = root_3$b();
|
|
16139
16137
|
let classes_1;
|
|
16140
16138
|
template_effect(() => {
|
|
16141
|
-
classes_1 = set_class(div_1, 1, "viewport-backdrop-overlay svelte-
|
|
16139
|
+
classes_1 = set_class(div_1, 1, "viewport-backdrop-overlay svelte-og9bdk", null, classes_1, { "z-over-video-bg": $$props.model.kind === "video" }), set_style(div_1, get$1(overlayStyle));
|
|
16142
16140
|
}), append($$anchor3, div_1);
|
|
16143
16141
|
};
|
|
16144
16142
|
if_block(node_2, ($$render) => {
|
|
@@ -16146,7 +16144,7 @@ function ViewportBackdrop($$anchor, $$props) {
|
|
|
16146
16144
|
});
|
|
16147
16145
|
}
|
|
16148
16146
|
template_effect(() => {
|
|
16149
|
-
classes = set_class(div, 1, "viewport-backdrop svelte-
|
|
16147
|
+
classes = set_class(div, 1, "viewport-backdrop svelte-og9bdk", null, classes, { blurred: blur() }), set_style(div, get$1(backdropStyle) !== "" ? get$1(backdropStyle) : void 0);
|
|
16150
16148
|
}), append($$anchor2, div);
|
|
16151
16149
|
};
|
|
16152
16150
|
if_block(node, ($$render) => {
|
|
@@ -16155,10 +16153,11 @@ function ViewportBackdrop($$anchor, $$props) {
|
|
|
16155
16153
|
}
|
|
16156
16154
|
append($$anchor, fragment), pop();
|
|
16157
16155
|
}
|
|
16158
|
-
var root_2$d = /* @__PURE__ */ from_html('<div class="header-wrapper svelte-
|
|
16156
|
+
var root_2$d = /* @__PURE__ */ from_html('<div class="header-wrapper svelte-u1n0la"><!></div>'), root_4$7 = /* @__PURE__ */ from_html('<div class="footer-scroll-spacer svelte-u1n0la" aria-hidden="true"></div>'), root_5$5 = /* @__PURE__ */ from_html('<div class="footer-wrapper svelte-u1n0la"><!></div>'), root_1$n = /* @__PURE__ */ from_html('<!> <div><!> <div class="paywall-content svelte-u1n0la"><!></div> <!></div> <!>', 1);
|
|
16159
16157
|
const $$css$T = {
|
|
16160
|
-
hash: "svelte-
|
|
16161
|
-
code: `.paywall.svelte-
|
|
16158
|
+
hash: "svelte-u1n0la",
|
|
16159
|
+
code: `.paywall.svelte-u1n0la {position:relative;display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:100%;transition-property:filter, transform;transition-duration:0.1s;transition-timing-function:ease-in-out;transform-origin:center;&.blur {filter:blur(10px) brightness(0.8);transform:scale(1.045);}}.header-wrapper.svelte-u1n0la {position:sticky;top:0;width:100%;}.footer-wrapper.svelte-u1n0la {position:sticky;bottom:0;width:100%;flex-shrink:0;}.paywall.sticky-disabled.svelte-u1n0la > .header-wrapper:where(.svelte-u1n0la),
|
|
16160
|
+
.paywall.sticky-disabled.svelte-u1n0la > .footer-wrapper:where(.svelte-u1n0la) {position:relative;}.footer-scroll-spacer.svelte-u1n0la {width:100%;flex-shrink:0;}.paywall-content.svelte-u1n0la {z-index:2;width:100%;flex:1 1 auto;display:flex;flex-direction:column;min-height:0;
|
|
16162
16161
|
|
|
16163
16162
|
/* The root stack sets its own overflow: rootScrollStyle (stack-scroll.ts). */& > .paywall-content-scroll {flex:1 1 auto;min-height:0;}}
|
|
16164
16163
|
/* Scoped reset - same as original but only affects .paywall descendants */.paywall *,
|
|
@@ -16187,7 +16186,7 @@ const $$css$T = {
|
|
|
16187
16186
|
};
|
|
16188
16187
|
function Paywall($$anchor, $$props) {
|
|
16189
16188
|
push($$props, !0), append_styles$1($$anchor, $$css$T);
|
|
16190
|
-
const $selectedPackageId = () => store_get(selectedPackageId, "$selectedPackageId", $$stores), [$$stores, $$cleanup] = setup_stores(), variablesPerPackage = prop($$props, "variablesPerPackage", 19, () => ({})), globalVariables = prop($$props, "globalVariables", 19, () => ({})), infoPerPackage = prop($$props, "infoPerPackage", 19, () => ({})), hideBackButtons = prop($$props, "hideBackButtons", 3, !1), renderNative = prop($$props, "renderNative", 3, !1), initialInputSelections = prop($$props, "initialInputSelections", 19, () => ({})), customVariables = prop($$props, "customVariables", 19, () => ({})), offering = prop($$props, "offering", 3, null), packages = prop($$props, "packages", 19, () => []), isPreview = prop($$props, "isPreview", 3, !1), inputs = prop($$props, "inputs", 19, () => ({})), getColorMode = setColorModeContext(() => $$props.preferredColorMode), viewportBackdropModel = /* @__PURE__ */ user_derived(() => paywallRootBackgroundModel($$props.paywallData, getColorMode())), instanceId = Symbol();
|
|
16189
|
+
const $selectedPackageId = () => store_get(selectedPackageId, "$selectedPackageId", $$stores), [$$stores, $$cleanup] = setup_stores(), variablesPerPackage = prop($$props, "variablesPerPackage", 19, () => ({})), globalVariables = prop($$props, "globalVariables", 19, () => ({})), infoPerPackage = prop($$props, "infoPerPackage", 19, () => ({})), hideBackButtons = prop($$props, "hideBackButtons", 3, !1), renderNative = prop($$props, "renderNative", 3, !1), initialInputSelections = prop($$props, "initialInputSelections", 19, () => ({})), customVariables = prop($$props, "customVariables", 19, () => ({})), offering = prop($$props, "offering", 3, null), packages = prop($$props, "packages", 19, () => []), isPreview = prop($$props, "isPreview", 3, !1), inputs = prop($$props, "inputs", 19, () => ({})), disableStickyPositioning = prop($$props, "disableStickyPositioning", 3, !1), getColorMode = setColorModeContext(() => $$props.preferredColorMode), viewportBackdropModel = /* @__PURE__ */ user_derived(() => paywallRootBackgroundModel($$props.paywallData, getColorMode())), instanceId = Symbol();
|
|
16191
16190
|
user_effect(() => applyDocumentBackground(instanceId, get$1(viewportBackdropModel), {
|
|
16192
16191
|
paywallData: $$props.paywallData,
|
|
16193
16192
|
colorMode: getColorMode(),
|
|
@@ -16400,7 +16399,9 @@ function Paywall($$anchor, $$props) {
|
|
|
16400
16399
|
}
|
|
16401
16400
|
});
|
|
16402
16401
|
}
|
|
16403
|
-
var div = sibling(node_2, 2)
|
|
16402
|
+
var div = sibling(node_2, 2);
|
|
16403
|
+
let classes;
|
|
16404
|
+
var node_3 = child(div);
|
|
16404
16405
|
{
|
|
16405
16406
|
var consequent = ($$anchor3) => {
|
|
16406
16407
|
var div_1 = root_2$d(), node_4 = child(div_1);
|
|
@@ -16470,7 +16471,7 @@ function Paywall($$anchor, $$props) {
|
|
|
16470
16471
|
});
|
|
16471
16472
|
}
|
|
16472
16473
|
template_effect(() => {
|
|
16473
|
-
set_class(div, 1, clsx(get$1(paywallClass)), "svelte-
|
|
16474
|
+
classes = set_class(div, 1, clsx(get$1(paywallClass)), "svelte-u1n0la", classes, { "sticky-disabled": disableStickyPositioning() }), set_style(div, get$1(paywallStyle)), set_style(div_2, get$1(contentColumnStyle));
|
|
16474
16475
|
}), append($$anchor2, fragment_1);
|
|
16475
16476
|
}
|
|
16476
16477
|
), append($$anchor, fragment), pop(), $$cleanup();
|
|
@@ -16664,16 +16665,16 @@ function Timeline($$anchor, $$props) {
|
|
|
16664
16665
|
}
|
|
16665
16666
|
append($$anchor, fragment), pop();
|
|
16666
16667
|
}
|
|
16667
|
-
var root_2$c = /* @__PURE__ */ from_html("<div><p>No paywall data provided</p></div>"), root$L = /* @__PURE__ */ from_html('<div class="paywall-container svelte-
|
|
16668
|
+
var root_2$c = /* @__PURE__ */ from_html("<div><p>No paywall data provided</p></div>"), root$L = /* @__PURE__ */ from_html('<div class="paywall-container svelte-1hy4yjk" style="width: 100%; min-width: 0;"><!></div>');
|
|
16668
16669
|
const $$css$S = {
|
|
16669
|
-
hash: "svelte-
|
|
16670
|
+
hash: "svelte-1hy4yjk",
|
|
16670
16671
|
code: `
|
|
16671
16672
|
/* Size the container so the paywall's \`height: 100%\` resolves and the
|
|
16672
16673
|
content column scrolls internally. Without it the paywall grows to its
|
|
16673
16674
|
content height, and a flex-centered host (purchases-js on desktop)
|
|
16674
16675
|
pushes the top of it into unscrollable overflow. Percentages against an
|
|
16675
16676
|
auto-height host still collapse to auto, so content-sized embeds are
|
|
16676
|
-
unchanged. */.paywall-container.svelte-
|
|
16677
|
+
unchanged. */.paywall-container.svelte-1hy4yjk {display:flex;flex-direction:column;height:100%;min-height:0;}`
|
|
16677
16678
|
};
|
|
16678
16679
|
function Screen($$anchor, $$props) {
|
|
16679
16680
|
push($$props, !0), append_styles$1($$anchor, $$css$S);
|
|
@@ -17081,13 +17082,13 @@ function Workflow($$anchor, $$props) {
|
|
|
17081
17082
|
});
|
|
17082
17083
|
}), append($$anchor, fragment), pop();
|
|
17083
17084
|
}
|
|
17084
|
-
var root_2$b = /* @__PURE__ */ from_html('<img alt="" class="svelte-
|
|
17085
|
+
var root_2$b = /* @__PURE__ */ from_html('<img alt="" class="svelte-zeogfa"/>'), root_4$6 = /* @__PURE__ */ from_html('<video playsinline="" class="svelte-zeogfa"><track kind="captions"/></video>', 2), root_6$4 = /* @__PURE__ */ from_svg('<use fill="transparent"></use>'), root_7$4 = /* @__PURE__ */ from_svg('<rect x="0" y="0" height="100%" width="100%"></rect>'), root_8$5 = /* @__PURE__ */ from_svg('<use fill="none"></use>'), root_1$k = /* @__PURE__ */ from_html('<div class="video-outer svelte-zeogfa"><div class="video-media svelte-zeogfa"><div class="video-clip"><!></div> <svg class="video-deco svelte-zeogfa" width="100%" height="100%"><defs><clipPath><!></clipPath><g><!></g><!><!></defs><!><g><!><!></g></svg></div></div>');
|
|
17085
17086
|
const $$css$R = {
|
|
17086
|
-
hash: "svelte-
|
|
17087
|
-
code: `.video-outer.svelte-
|
|
17088
|
-
img.svelte-
|
|
17087
|
+
hash: "svelte-zeogfa",
|
|
17088
|
+
code: `.video-outer.svelte-zeogfa {position:relative;}.video-media.svelte-zeogfa {position:relative;width:100%;height:100%;min-height:0;}.video-deco.svelte-zeogfa {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}video.svelte-zeogfa,
|
|
17089
|
+
img.svelte-zeogfa {width:100%;height:100%;object-fit:contain;object-position:center;}
|
|
17089
17090
|
|
|
17090
|
-
/* Own compositing layer — mitigates WebKit freezing video frames under animated/transform ancestors */video.svelte-
|
|
17091
|
+
/* Own compositing layer — mitigates WebKit freezing video frames under animated/transform ancestors */video.svelte-zeogfa {transform:translateZ(0);-webkit-transform:translateZ(0);}`
|
|
17091
17092
|
};
|
|
17092
17093
|
function Video($$anchor, $$props) {
|
|
17093
17094
|
push($$props, !0), append_styles$1($$anchor, $$css$R);
|
|
@@ -17402,24 +17403,6 @@ function Video($$anchor, $$props) {
|
|
|
17402
17403
|
}
|
|
17403
17404
|
append($$anchor, fragment), pop();
|
|
17404
17405
|
}
|
|
17405
|
-
const SAFE_WEB_VIEW_PROTOCOL = "https:";
|
|
17406
|
-
function sanitizeWebViewUrl(url) {
|
|
17407
|
-
const normalized = Array.from(url).filter((character) => character.charCodeAt(0) > 32).join("");
|
|
17408
|
-
let parsed;
|
|
17409
|
-
try {
|
|
17410
|
-
parsed = new URL(normalized);
|
|
17411
|
-
} catch {
|
|
17412
|
-
return null;
|
|
17413
|
-
}
|
|
17414
|
-
return parsed.protocol.toLowerCase() !== SAFE_WEB_VIEW_PROTOCOL || parsed.username !== "" || parsed.password !== "" ? null : parsed.href;
|
|
17415
|
-
}
|
|
17416
|
-
function isSameOriginAsHost(url, hostOrigin) {
|
|
17417
|
-
try {
|
|
17418
|
-
return new URL(url).origin === hostOrigin;
|
|
17419
|
-
} catch {
|
|
17420
|
-
return !0;
|
|
17421
|
-
}
|
|
17422
|
-
}
|
|
17423
17406
|
var RESIZE_MESSAGE = "resize", FIT_MESSAGE = "fit", ENVELOPE_KINDS = [
|
|
17424
17407
|
"connect",
|
|
17425
17408
|
"init",
|
|
@@ -17447,7 +17430,7 @@ function readCreateHostBridge(url) {
|
|
|
17447
17430
|
throw new Error(`rc-host.iife.js at ${url} did not register window.RCHost.createHostBridge`);
|
|
17448
17431
|
return factory;
|
|
17449
17432
|
}
|
|
17450
|
-
function loadHostScript(url) {
|
|
17433
|
+
async function loadHostScript(url) {
|
|
17451
17434
|
var _a3;
|
|
17452
17435
|
return typeof document > "u" ? Promise.reject(new Error("web_view host bridge requires a document to load the CDN script")) : typeof ((_a3 = window.RCHost) == null ? void 0 : _a3.createHostBridge) == "function" ? Promise.resolve(readCreateHostBridge(url)) : new Promise((resolve, reject) => {
|
|
17453
17436
|
var _a4;
|
|
@@ -17481,7 +17464,7 @@ function loadHostScript(url) {
|
|
|
17481
17464
|
}, document.head.appendChild(script);
|
|
17482
17465
|
});
|
|
17483
17466
|
}
|
|
17484
|
-
function resolveHostFactory(protocolVersion) {
|
|
17467
|
+
async function resolveHostFactory(protocolVersion) {
|
|
17485
17468
|
const cached = moduleCache.get(protocolVersion);
|
|
17486
17469
|
if (cached)
|
|
17487
17470
|
return cached;
|
|
@@ -17493,11 +17476,29 @@ function resolveHostFactory(protocolVersion) {
|
|
|
17493
17476
|
async function loadCreateHostBridge(protocolVersion) {
|
|
17494
17477
|
return assertValidProtocolVersion(protocolVersion), resolveHostFactory(protocolVersion);
|
|
17495
17478
|
}
|
|
17496
|
-
|
|
17479
|
+
const SAFE_WEB_VIEW_PROTOCOL = "https:";
|
|
17480
|
+
function sanitizeWebViewUrl(url) {
|
|
17481
|
+
const normalized = Array.from(url).filter((character) => character.charCodeAt(0) > 32).join("");
|
|
17482
|
+
let parsed;
|
|
17483
|
+
try {
|
|
17484
|
+
parsed = new URL(normalized);
|
|
17485
|
+
} catch {
|
|
17486
|
+
return null;
|
|
17487
|
+
}
|
|
17488
|
+
return parsed.protocol.toLowerCase() !== SAFE_WEB_VIEW_PROTOCOL || parsed.username !== "" || parsed.password !== "" ? null : parsed.href;
|
|
17489
|
+
}
|
|
17490
|
+
function isSameOriginAsHost(url, hostOrigin) {
|
|
17491
|
+
try {
|
|
17492
|
+
return new URL(url).origin === hostOrigin;
|
|
17493
|
+
} catch {
|
|
17494
|
+
return !0;
|
|
17495
|
+
}
|
|
17496
|
+
}
|
|
17497
|
+
var root_1$j = /* @__PURE__ */ from_html('<div class="web-view svelte-4dutrn"><iframe sandbox="allow-scripts allow-same-origin" referrerpolicy="no-referrer" allow="" class="svelte-4dutrn"></iframe></div>');
|
|
17497
17498
|
const $$css$Q = {
|
|
17498
|
-
hash: "svelte-
|
|
17499
|
-
code: `.web-view.svelte-
|
|
17500
|
-
/* Match content's dual scheme so the UA keeps a transparent iframe canvas. */color-scheme:light dark;}iframe.svelte-
|
|
17499
|
+
hash: "svelte-4dutrn",
|
|
17500
|
+
code: `.web-view.svelte-4dutrn {position:relative;overflow:hidden;background:transparent;
|
|
17501
|
+
/* Match content's dual scheme so the UA keeps a transparent iframe canvas. */color-scheme:light dark;}iframe.svelte-4dutrn {display:block;width:100%;height:100%;border:0;background:transparent;color-scheme:light dark;}`
|
|
17501
17502
|
};
|
|
17502
17503
|
function WebView($$anchor, $$props) {
|
|
17503
17504
|
push($$props, !0), append_styles$1($$anchor, $$css$Q);
|
|
@@ -17607,55 +17608,55 @@ function workflowDataToNavData(data) {
|
|
|
17607
17608
|
}
|
|
17608
17609
|
var root$K = /* @__PURE__ */ from_html("<span><!></span>");
|
|
17609
17610
|
const $$css$P = {
|
|
17610
|
-
hash: "svelte-
|
|
17611
|
+
hash: "svelte-3emwe7",
|
|
17611
17612
|
code: `
|
|
17612
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-
|
|
17613
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-3emwe7 {font:var(--rc-text-heading2xl-mobile);}
|
|
17613
17614
|
|
|
17614
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-
|
|
17615
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-3emwe7 {font:var(--rc-text-headingXl-mobile);}
|
|
17615
17616
|
|
|
17616
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-
|
|
17617
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-3emwe7 {font:var(--rc-text-headingLg-mobile);}
|
|
17617
17618
|
|
|
17618
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-
|
|
17619
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-3emwe7 {font:var(--rc-text-headingMd-mobile);}
|
|
17619
17620
|
|
|
17620
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-
|
|
17621
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-3emwe7 {font:var(--rc-text-bodyBase-mobile);}
|
|
17621
17622
|
|
|
17622
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-
|
|
17623
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-3emwe7 {font:var(--rc-text-bodySmall-mobile);}
|
|
17623
17624
|
|
|
17624
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-
|
|
17625
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-3emwe7 {font:var(--rc-text-labelButton-mobile);}
|
|
17625
17626
|
|
|
17626
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-
|
|
17627
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-3emwe7 {font:var(--rc-text-labelDefault-mobile);}
|
|
17627
17628
|
|
|
17628
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-
|
|
17629
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-3emwe7 {font:var(--rc-text-captionDefault-mobile);}
|
|
17629
17630
|
|
|
17630
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-
|
|
17631
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-3emwe7 {font:var(--rc-text-captionLink-mobile);}
|
|
17631
17632
|
|
|
17632
17633
|
@container layout-query-container (width >= 768px) {
|
|
17633
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-
|
|
17634
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-3emwe7 {font:var(--rc-text-heading2xl-desktop);}
|
|
17634
17635
|
|
|
17635
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-
|
|
17636
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-3emwe7 {font:var(--rc-text-headingXl-desktop);}
|
|
17636
17637
|
|
|
17637
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-
|
|
17638
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-3emwe7 {font:var(--rc-text-headingLg-desktop);}
|
|
17638
17639
|
|
|
17639
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-
|
|
17640
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-3emwe7 {font:var(--rc-text-headingMd-desktop);}
|
|
17640
17641
|
|
|
17641
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-
|
|
17642
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-3emwe7 {font:var(--rc-text-bodyBase-desktop);}
|
|
17642
17643
|
|
|
17643
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-
|
|
17644
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-3emwe7 {font:var(--rc-text-bodySmall-desktop);}
|
|
17644
17645
|
|
|
17645
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-
|
|
17646
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-3emwe7 {font:var(--rc-text-labelButton-desktop);}
|
|
17646
17647
|
|
|
17647
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-
|
|
17648
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-3emwe7 {font:var(--rc-text-labelDefault-desktop);}
|
|
17648
17649
|
|
|
17649
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-
|
|
17650
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-3emwe7 {font:var(--rc-text-captionDefault-desktop);}
|
|
17650
17651
|
|
|
17651
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-
|
|
17652
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-3emwe7 {font:var(--rc-text-captionLink-desktop);}
|
|
17652
17653
|
}`
|
|
17653
17654
|
};
|
|
17654
17655
|
function Typography$1($$anchor, $$props) {
|
|
17655
17656
|
append_styles$1($$anchor, $$css$P);
|
|
17656
17657
|
const size = prop($$props, "size", 3, "body-base");
|
|
17657
17658
|
var span = root$K(), node = child(span);
|
|
17658
|
-
snippet(node, () => $$props.children ?? noop), template_effect(() => set_class(span, 1, `rcb-typography rcb-typography-${size() ?? ""}`, "svelte-
|
|
17659
|
+
snippet(node, () => $$props.children ?? noop), template_effect(() => set_class(span, 1, `rcb-typography rcb-typography-${size() ?? ""}`, "svelte-3emwe7")), append($$anchor, span);
|
|
17659
17660
|
}
|
|
17660
17661
|
const DEFAULT_SPACING$1 = {
|
|
17661
17662
|
outerPadding: {
|
|
@@ -18037,13 +18038,13 @@ let Theme$1 = class {
|
|
|
18037
18038
|
return toSpacingVars$1("spacing", this.spacing);
|
|
18038
18039
|
}
|
|
18039
18040
|
};
|
|
18040
|
-
var root$J = /* @__PURE__ */ from_html('<div class="rcb-processing svelte-
|
|
18041
|
+
var root$J = /* @__PURE__ */ from_html('<div class="rcb-processing svelte-1gurfgv"></div>');
|
|
18041
18042
|
const $$css$O = {
|
|
18042
|
-
hash: "svelte-
|
|
18043
|
-
code: `.rcb-processing.svelte-
|
|
18044
|
-
animation: svelte-
|
|
18043
|
+
hash: "svelte-1gurfgv",
|
|
18044
|
+
code: `.rcb-processing.svelte-1gurfgv {width:var(--width, 12px);aspect-ratio:1;border-radius:50%;
|
|
18045
|
+
animation: svelte-1gurfgv-l5 1.5s infinite linear;}
|
|
18045
18046
|
|
|
18046
|
-
@keyframes svelte-
|
|
18047
|
+
@keyframes svelte-1gurfgv-l5 {
|
|
18047
18048
|
0% {
|
|
18048
18049
|
box-shadow:
|
|
18049
18050
|
var(--shadow-offset) 0 #fff2,
|
|
@@ -18089,14 +18090,14 @@ function Processing_animation($$anchor, $$props) {
|
|
|
18089
18090
|
}
|
|
18090
18091
|
var root$I = /* @__PURE__ */ from_html("<button><!></button>");
|
|
18091
18092
|
const $$css$N = {
|
|
18092
|
-
hash: "svelte-
|
|
18093
|
-
code: `button.svelte-
|
|
18093
|
+
hash: "svelte-db2ysf",
|
|
18094
|
+
code: `button.svelte-db2ysf {border:none;border-radius:var(--rc-shape-input-button-border-radius);cursor:pointer;height:var(--rc-spacing-inputHeight-mobile);color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-tap-highlight-color:transparent;transition:background-color 0.15s ease-in-out;user-select:none;}
|
|
18094
18095
|
|
|
18095
|
-
@container layout-query-container (width >= 768px) {button.svelte-
|
|
18096
|
+
@container layout-query-container (width >= 768px) {button.svelte-db2ysf {height:var(--rc-spacing-inputHeight-desktop);}
|
|
18096
18097
|
}
|
|
18097
18098
|
|
|
18098
|
-
/* focus-visible is triggered only when focused with keyboard/reader */button.svelte-
|
|
18099
|
-
button.svelte-
|
|
18099
|
+
/* focus-visible is triggered only when focused with keyboard/reader */button.svelte-db2ysf:focus-visible {outline:2px solid var(--rc-color-focus);}button.intent-primary.svelte-db2ysf {background-color:var(--rc-color-primary);color:var(--rc-color-primary-text);}button.svelte-db2ysf:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-light);outline:none;}button.intent-primary.svelte-db2ysf:not(:disabled):hover {background-color:var(--rc-color-primary-hover);}button.intent-primary.svelte-db2ysf:not(:disabled):active,
|
|
18100
|
+
button.svelte-db2ysf:active {background-color:var(--rc-color-primary-pressed);outline:none;}button.intent-primary.svelte-db2ysf:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-light);}`
|
|
18100
18101
|
};
|
|
18101
18102
|
function Button($$anchor, $$props) {
|
|
18102
18103
|
push($$props, !0), append_styles$1($$anchor, $$css$N);
|
|
@@ -18131,7 +18132,7 @@ function Button($$anchor, $$props) {
|
|
|
18131
18132
|
});
|
|
18132
18133
|
}
|
|
18133
18134
|
template_effect(() => {
|
|
18134
|
-
set_class(button, 1, `intent-${intent()}`, "svelte-
|
|
18135
|
+
set_class(button, 1, `intent-${intent()}`, "svelte-db2ysf"), button.disabled = disabled(), set_attribute(button, "data-testid", $$props.testId), set_attribute(button, "type", $$props.type), set_style(button, get$1(combinedStyle));
|
|
18135
18136
|
}), append($$anchor, button), pop();
|
|
18136
18137
|
}
|
|
18137
18138
|
delegate(["click"]);
|
|
@@ -21096,11 +21097,37 @@ function Stripe_payment_entry_page($$anchor, $$props) {
|
|
|
21096
21097
|
}), classes_2 = set_class(div_6, 1, "rc-checkout-pay-container svelte-765f2a", null, classes_2, { "fully-hidden": get$1(view) !== "form" });
|
|
21097
21098
|
}), event("submit", form, handleSubmit), append($$anchor, div), pop(), $$cleanup();
|
|
21098
21099
|
}
|
|
21100
|
+
const toPayrailsDropinAppearance = (appearance) => {
|
|
21101
|
+
const colors = toFormColors(appearance), shape = toShape(appearance);
|
|
21102
|
+
return {
|
|
21103
|
+
rules: {
|
|
21104
|
+
".payrails-button": {
|
|
21105
|
+
backgroundColor: colors.primary,
|
|
21106
|
+
color: colors["primary-text"],
|
|
21107
|
+
borderRadius: shape["input-button-border-radius"]
|
|
21108
|
+
},
|
|
21109
|
+
".payrails-button:hover": { backgroundColor: colors["primary-hover"] },
|
|
21110
|
+
".payrails-label": { color: DEFAULT_FORM_COLORS["grey-text-dark"] },
|
|
21111
|
+
".payrails-branding-header .payrails-label, .payrails-branding-footer .payrails-text": { color: colors["grey-text-light"] }
|
|
21112
|
+
},
|
|
21113
|
+
cardForm: {
|
|
21114
|
+
rules: {
|
|
21115
|
+
".payrails-input": { borderRadius: shape["input-border-radius"] },
|
|
21116
|
+
".payrails-input:focus": { borderColor: colors.focus, outline: "none" },
|
|
21117
|
+
".payrails-input--dirty:not(:focus).payrails-input--invalid": {
|
|
21118
|
+
borderColor: colors.error
|
|
21119
|
+
},
|
|
21120
|
+
".payrails-error": { color: colors.error }
|
|
21121
|
+
}
|
|
21122
|
+
}
|
|
21123
|
+
};
|
|
21124
|
+
};
|
|
21099
21125
|
function loadPayrailsSdk() {
|
|
21100
21126
|
return Promise.reject(new Error("Payrails checkout is not enabled"));
|
|
21101
21127
|
}
|
|
21102
|
-
function createPayrailsDropinOptions(alwaysStoreInstrument) {
|
|
21128
|
+
function createPayrailsDropinOptions(alwaysStoreInstrument, appearance) {
|
|
21103
21129
|
return {
|
|
21130
|
+
appearance: toPayrailsDropinAppearance(appearance),
|
|
21104
21131
|
paymentMethodsConfiguration: {
|
|
21105
21132
|
cards: {
|
|
21106
21133
|
showSingleExpiryDateField: !0,
|
|
@@ -21122,7 +21149,7 @@ class PayrailsService {
|
|
|
21122
21149
|
__publicField(this, "dropin", null);
|
|
21123
21150
|
__publicField(this, "unsubscribe", []);
|
|
21124
21151
|
}
|
|
21125
|
-
async mountDropin(gatewayParams, handlers) {
|
|
21152
|
+
async mountDropin(gatewayParams, appearance, handlers) {
|
|
21126
21153
|
const generation = ++this.generation;
|
|
21127
21154
|
this.detach();
|
|
21128
21155
|
const { Payrails } = await loadPayrailsSdk();
|
|
@@ -21148,7 +21175,10 @@ class PayrailsService {
|
|
|
21148
21175
|
})
|
|
21149
21176
|
];
|
|
21150
21177
|
const dropin = client.dropin(
|
|
21151
|
-
createPayrailsDropinOptions(
|
|
21178
|
+
createPayrailsDropinOptions(
|
|
21179
|
+
gatewayParams.always_store_instrument,
|
|
21180
|
+
appearance
|
|
21181
|
+
)
|
|
21152
21182
|
);
|
|
21153
21183
|
dropin.mount(`#${PAYRAILS_DROPIN_CONTAINER_ID}`), this.dropin = dropin;
|
|
21154
21184
|
}
|
|
@@ -21178,27 +21208,28 @@ function Payrails_payment_entry_page($$anchor, $$props) {
|
|
|
21178
21208
|
productDetails: $$props.productDetails
|
|
21179
21209
|
})), canMountDropin = /* @__PURE__ */ user_derived(() => !get$1(checkoutConsentRequired) || get$1(checkoutConsentAccepted));
|
|
21180
21210
|
user_effect(() => {
|
|
21211
|
+
var _a3;
|
|
21181
21212
|
if (!get$1(canMountDropin)) {
|
|
21182
21213
|
set(initializing, !1);
|
|
21183
21214
|
return;
|
|
21184
21215
|
}
|
|
21185
21216
|
const gatewayParams = $$props.payrailsGatewayParams;
|
|
21186
21217
|
let cancelled = !1;
|
|
21187
|
-
return set(initializing, !0), set(paymentErrorMessage, void 0), service.mountDropin(gatewayParams, {
|
|
21218
|
+
return set(initializing, !0), set(paymentErrorMessage, void 0), service.mountDropin(gatewayParams, (_a3 = $$props.brandingInfo) == null ? void 0 : _a3.appearance, {
|
|
21188
21219
|
onSuccess: () => {
|
|
21189
|
-
var
|
|
21190
|
-
cancelled || (set(processing, !0), (
|
|
21220
|
+
var _a4;
|
|
21221
|
+
cancelled || (set(processing, !0), (_a4 = onProcessingStateChange()) == null || _a4(!0), $$props.onContinue());
|
|
21191
21222
|
},
|
|
21192
21223
|
onFailed: (event2) => {
|
|
21193
|
-
var
|
|
21224
|
+
var _a4, _b, _c;
|
|
21194
21225
|
if (cancelled) return;
|
|
21195
|
-
set(processing, !1), (
|
|
21226
|
+
set(processing, !1), (_a4 = onProcessingStateChange()) == null || _a4(!1);
|
|
21196
21227
|
const message = ((_b = event2.data) == null ? void 0 : _b.message) || get(translator).translate(LocalizationKeys.PaymentEntryPagePaymentMethodError);
|
|
21197
21228
|
set(paymentErrorMessage, message, !0), eventsTracker.trackSDKEvent(createCheckoutPaymentGatewayErrorEvent({ errorCode: ((_c = event2.data) == null ? void 0 : _c.code) ?? "", errorMessage: message }));
|
|
21198
21229
|
},
|
|
21199
21230
|
onPending: () => {
|
|
21200
|
-
var
|
|
21201
|
-
cancelled || (
|
|
21231
|
+
var _a4;
|
|
21232
|
+
cancelled || (_a4 = onProcessingStateChange()) == null || _a4(!0);
|
|
21202
21233
|
},
|
|
21203
21234
|
onSessionExpired: () => {
|
|
21204
21235
|
cancelled || $$props.onError(new PurchaseFlowError(PurchaseFlowErrorCode.ErrorSettingUpPurchase, "Payment session expired"));
|
|
@@ -26264,7 +26295,9 @@ function toSubscriptionEntitlementInfo(entitlementIdentifier, entitlementInfoRes
|
|
|
26264
26295
|
),
|
|
26265
26296
|
store: (subscriptionResponse == null ? void 0 : subscriptionResponse.store) ?? "unknown",
|
|
26266
26297
|
latestPurchaseDate: new Date(entitlementInfoResponse.purchase_date),
|
|
26267
|
-
originalPurchaseDate: new Date(
|
|
26298
|
+
originalPurchaseDate: new Date(
|
|
26299
|
+
(subscriptionResponse == null ? void 0 : subscriptionResponse.original_purchase_date) ?? entitlementInfoResponse.purchase_date
|
|
26300
|
+
),
|
|
26268
26301
|
expirationDate: toDateIfNotNull(entitlementInfoResponse.expires_date),
|
|
26269
26302
|
productIdentifier: entitlementInfoResponse.product_identifier,
|
|
26270
26303
|
productPlanIdentifier: entitlementInfoResponse.product_plan_identifier ?? null,
|
|
@@ -26711,16 +26744,182 @@ function toOfferings(offeringsData, productsData) {
|
|
|
26711
26744
|
};
|
|
26712
26745
|
}
|
|
26713
26746
|
const PaywallDefaultContainerZIndex = 1000001;
|
|
26747
|
+
function periodInDays(period) {
|
|
26748
|
+
const perDay = getPricePerPeriodFactors(period).perDay;
|
|
26749
|
+
return perDay > 0 ? 1 / perDay : 0;
|
|
26750
|
+
}
|
|
26751
|
+
function periodInMonths(period) {
|
|
26752
|
+
const perMonth = getPricePerPeriodFactors(period).perMonth;
|
|
26753
|
+
return perMonth > 0 ? 1 / perMonth : 0;
|
|
26754
|
+
}
|
|
26755
|
+
function isCalendarPeriod(period) {
|
|
26756
|
+
return period.unit === PeriodUnit.Month || period.unit === PeriodUnit.Year;
|
|
26757
|
+
}
|
|
26758
|
+
function periodsInWindow(window2, base) {
|
|
26759
|
+
const length = isCalendarPeriod(window2) && isCalendarPeriod(base) ? periodInMonths : periodInDays, baseLength = length(base);
|
|
26760
|
+
return baseLength > 0 ? stripFloatNoise(length(window2) / baseLength) : 0;
|
|
26761
|
+
}
|
|
26762
|
+
function getOfferSegments(option) {
|
|
26763
|
+
const { base, discount } = option;
|
|
26764
|
+
if (discount !== null) {
|
|
26765
|
+
if (base.period === null)
|
|
26766
|
+
return [];
|
|
26767
|
+
switch (discount.durationMode) {
|
|
26768
|
+
case "forever":
|
|
26769
|
+
return [
|
|
26770
|
+
{
|
|
26771
|
+
priceMicros: discount.price.amountMicros,
|
|
26772
|
+
period: base.period,
|
|
26773
|
+
cycles: null
|
|
26774
|
+
}
|
|
26775
|
+
];
|
|
26776
|
+
case "time_window": {
|
|
26777
|
+
const invoices = discount.period ? Math.ceil(
|
|
26778
|
+
periodsInWindow(discount.period, base.period) * discount.cycleCount
|
|
26779
|
+
) : 0;
|
|
26780
|
+
return invoices > 0 ? [
|
|
26781
|
+
{
|
|
26782
|
+
priceMicros: discount.price.amountMicros,
|
|
26783
|
+
period: base.period,
|
|
26784
|
+
cycles: invoices
|
|
26785
|
+
}
|
|
26786
|
+
] : [];
|
|
26787
|
+
}
|
|
26788
|
+
default:
|
|
26789
|
+
return [
|
|
26790
|
+
{
|
|
26791
|
+
priceMicros: discount.price.amountMicros,
|
|
26792
|
+
period: base.period,
|
|
26793
|
+
cycles: 1
|
|
26794
|
+
}
|
|
26795
|
+
];
|
|
26796
|
+
}
|
|
26797
|
+
}
|
|
26798
|
+
return [option.trial, option.introPrice].flatMap(
|
|
26799
|
+
(phase) => {
|
|
26800
|
+
var _a3;
|
|
26801
|
+
return phase != null && phase.period ? [
|
|
26802
|
+
{
|
|
26803
|
+
priceMicros: ((_a3 = phase.price) == null ? void 0 : _a3.amountMicros) ?? 0,
|
|
26804
|
+
period: phase.period,
|
|
26805
|
+
cycles: phase.cycleCount > 0 ? phase.cycleCount : 1
|
|
26806
|
+
}
|
|
26807
|
+
] : [];
|
|
26808
|
+
}
|
|
26809
|
+
);
|
|
26810
|
+
}
|
|
26811
|
+
function firstPeriodCostMicros(price, period, segments2) {
|
|
26812
|
+
const windowDays = periodInDays(period);
|
|
26813
|
+
if (windowDays <= 0)
|
|
26814
|
+
return price.amountMicros;
|
|
26815
|
+
let remaining = windowDays, cost = 0;
|
|
26816
|
+
for (const segment of segments2) {
|
|
26817
|
+
const cycles = segment.cycles ?? 1, segmentDays = periodInDays(segment.period) * cycles;
|
|
26818
|
+
if (remaining > 0 && segmentDays > 0) {
|
|
26819
|
+
const covered = Math.min(segmentDays, remaining);
|
|
26820
|
+
cost += segment.priceMicros * cycles * covered / segmentDays, remaining -= covered;
|
|
26821
|
+
}
|
|
26822
|
+
}
|
|
26823
|
+
return cost + price.amountMicros * remaining / windowDays;
|
|
26824
|
+
}
|
|
26825
|
+
function stripFloatNoise(value) {
|
|
26826
|
+
return Math.round(value * 1e9) / 1e9;
|
|
26827
|
+
}
|
|
26828
|
+
function createSavings(baselineMicros, costMicros, currency) {
|
|
26829
|
+
const microsPerUnit = 10 ** (6 - getCurrencyFractionDigits(currency)), savedMicros = baselineMicros - costMicros, amountMicros = Math.round(stripFloatNoise(savedMicros / microsPerUnit)) * microsPerUnit;
|
|
26830
|
+
return !(baselineMicros > 0) || !(amountMicros > 0) ? null : { amountMicros, relative: savedMicros / baselineMicros };
|
|
26831
|
+
}
|
|
26832
|
+
function offerTermSavings(price, period, segments2, mostExpensivePricePerMonthMicros) {
|
|
26833
|
+
const offerSegment = segments2.find(
|
|
26834
|
+
(segment) => segment.cycles === null || segment.priceMicros > 0
|
|
26835
|
+
);
|
|
26836
|
+
let months = periodInMonths(period), cost = price.amountMicros;
|
|
26837
|
+
if (offerSegment !== void 0) {
|
|
26838
|
+
if (offerSegment.cycles === null)
|
|
26839
|
+
return null;
|
|
26840
|
+
months = periodInMonths(offerSegment.period) * offerSegment.cycles, cost = offerSegment.priceMicros * offerSegment.cycles;
|
|
26841
|
+
}
|
|
26842
|
+
return createSavings(
|
|
26843
|
+
mostExpensivePricePerMonthMicros * months,
|
|
26844
|
+
cost,
|
|
26845
|
+
price.currency
|
|
26846
|
+
);
|
|
26847
|
+
}
|
|
26848
|
+
function setDiscountVariables(option, price, period, mostExpensivePricePerMonthMicros, translator, variables) {
|
|
26849
|
+
if (period === null)
|
|
26850
|
+
return;
|
|
26851
|
+
const segments2 = getOfferSegments(option), mostExpensiveBaseline = mostExpensivePricePerMonthMicros * periodInMonths(period), fullPeriodCost = firstPeriodCostMicros(price, period, segments2), setPair = (savings, relativeName, absoluteName) => {
|
|
26852
|
+
savings !== null && (variables[relativeName] = translator.translate(
|
|
26853
|
+
LocalizationKeys.PaywallVariablesSubRelativeDiscount,
|
|
26854
|
+
{ discount: Math.round(savings.relative * 100).toString() }
|
|
26855
|
+
), variables[absoluteName] = translator.formatPrice(
|
|
26856
|
+
savings.amountMicros,
|
|
26857
|
+
price.currency
|
|
26858
|
+
));
|
|
26859
|
+
}, standardSavings = createSavings(
|
|
26860
|
+
mostExpensiveBaseline,
|
|
26861
|
+
price.amountMicros,
|
|
26862
|
+
price.currency
|
|
26863
|
+
);
|
|
26864
|
+
standardSavings !== null && (variables["product.absolute_discount"] = translator.formatPrice(
|
|
26865
|
+
standardSavings.amountMicros,
|
|
26866
|
+
price.currency
|
|
26867
|
+
)), segments2.length > 0 && setPair(
|
|
26868
|
+
createSavings(price.amountMicros, fullPeriodCost, price.currency),
|
|
26869
|
+
"product.offer_relative_discount",
|
|
26870
|
+
"product.offer_absolute_discount"
|
|
26871
|
+
), setPair(
|
|
26872
|
+
offerTermSavings(price, period, segments2, mostExpensivePricePerMonthMicros),
|
|
26873
|
+
"product.relative_discount_with_offer",
|
|
26874
|
+
"product.absolute_discount_with_offer"
|
|
26875
|
+
), setPair(
|
|
26876
|
+
createSavings(mostExpensiveBaseline, fullPeriodCost, price.currency),
|
|
26877
|
+
"product.relative_discount_with_offer_full_period",
|
|
26878
|
+
"product.absolute_discount_with_offer_full_period"
|
|
26879
|
+
);
|
|
26880
|
+
}
|
|
26881
|
+
const MOST_EXPENSIVE_DISCOUNT_VARIABLES = [
|
|
26882
|
+
"product.absolute_discount",
|
|
26883
|
+
"product.relative_discount_with_offer",
|
|
26884
|
+
"product.absolute_discount_with_offer",
|
|
26885
|
+
"product.relative_discount_with_offer_full_period",
|
|
26886
|
+
"product.absolute_discount_with_offer_full_period"
|
|
26887
|
+
];
|
|
26888
|
+
function getDiscountVariablesByMostExpensivePricePerMonth(option, price, period, mostExpensivePricesPerMonthMicros, translator) {
|
|
26889
|
+
return Object.fromEntries(
|
|
26890
|
+
mostExpensivePricesPerMonthMicros.map((mostExpensive) => {
|
|
26891
|
+
const variables = {};
|
|
26892
|
+
setDiscountVariables(
|
|
26893
|
+
option,
|
|
26894
|
+
price,
|
|
26895
|
+
period,
|
|
26896
|
+
mostExpensive,
|
|
26897
|
+
translator,
|
|
26898
|
+
variables
|
|
26899
|
+
);
|
|
26900
|
+
const scoped = {};
|
|
26901
|
+
for (const name of MOST_EXPENSIVE_DISCOUNT_VARIABLES)
|
|
26902
|
+
scoped[name] = variables[name] ?? "";
|
|
26903
|
+
return [String(mostExpensive), scoped];
|
|
26904
|
+
})
|
|
26905
|
+
);
|
|
26906
|
+
}
|
|
26714
26907
|
function buildVariablesPerPackage(offering, options = {}) {
|
|
26908
|
+
return parseOfferingIntoVariables(
|
|
26909
|
+
offering,
|
|
26910
|
+
getVariablesTranslator(offering, options)
|
|
26911
|
+
);
|
|
26912
|
+
}
|
|
26913
|
+
function getVariablesTranslator(offering, options) {
|
|
26715
26914
|
var _a3;
|
|
26716
26915
|
if (options.translator)
|
|
26717
|
-
return
|
|
26718
|
-
const defaultLocale = ((_a3 = offering.paywallComponents) == null ? void 0 : _a3.default_locale) || englishLocale
|
|
26916
|
+
return options.translator;
|
|
26917
|
+
const defaultLocale = ((_a3 = offering.paywallComponents) == null ? void 0 : _a3.default_locale) || englishLocale;
|
|
26918
|
+
return new Translator(
|
|
26719
26919
|
options.customTranslations ?? {},
|
|
26720
26920
|
options.selectedLocale ?? defaultLocale,
|
|
26721
26921
|
options.fallbackLocale ?? defaultLocale
|
|
26722
26922
|
);
|
|
26723
|
-
return parseOfferingIntoVariables(offering, translator);
|
|
26724
26923
|
}
|
|
26725
26924
|
function getPackageMonthlyPrice(pkg) {
|
|
26726
26925
|
var _a3;
|
|
@@ -26812,7 +27011,14 @@ function parsePackageIntoVariables(pkg, highestPricePackage, translator) {
|
|
|
26812
27011
|
"product.secondary_offer_price": "",
|
|
26813
27012
|
"product.secondary_offer_period": "",
|
|
26814
27013
|
"product.secondary_offer_period_abbreviated": "",
|
|
26815
|
-
"product.relative_discount": ""
|
|
27014
|
+
"product.relative_discount": "",
|
|
27015
|
+
"product.absolute_discount": "",
|
|
27016
|
+
"product.offer_relative_discount": "",
|
|
27017
|
+
"product.offer_absolute_discount": "",
|
|
27018
|
+
"product.relative_discount_with_offer": "",
|
|
27019
|
+
"product.absolute_discount_with_offer": "",
|
|
27020
|
+
"product.relative_discount_with_offer_full_period": "",
|
|
27021
|
+
"product.absolute_discount_with_offer_full_period": ""
|
|
26816
27022
|
};
|
|
26817
27023
|
if (productIsSubscription(productType, purchaseOption)) {
|
|
26818
27024
|
baseObject["product.price_per_period_abbreviated"] = getPricePerPeriod(
|
|
@@ -26844,6 +27050,13 @@ function parsePackageIntoVariables(pkg, highestPricePackage, translator) {
|
|
|
26844
27050
|
{
|
|
26845
27051
|
discount: discount.toFixed(0)
|
|
26846
27052
|
}
|
|
27053
|
+
), setDiscountVariables(
|
|
27054
|
+
purchaseOption,
|
|
27055
|
+
productPrice,
|
|
27056
|
+
basePeriod,
|
|
27057
|
+
highestMonthlyPrice,
|
|
27058
|
+
translator,
|
|
27059
|
+
baseObject
|
|
26847
27060
|
);
|
|
26848
27061
|
}
|
|
26849
27062
|
setOfferVariables(purchaseOption, translator, baseObject);
|
|
@@ -27762,16 +27975,30 @@ function resolveWebCheckoutURL(pkg, offeringWebCheckoutURL) {
|
|
|
27762
27975
|
if (typeof offeringWebCheckoutURL == "string" && offeringWebCheckoutURL.length > 0)
|
|
27763
27976
|
return offeringWebCheckoutURL;
|
|
27764
27977
|
}
|
|
27765
|
-
function getPackageInfo(pkg, offeringWebCheckoutURL) {
|
|
27978
|
+
function getPackageInfo(pkg, offeringWebCheckoutURL, scopedDiscounts) {
|
|
27766
27979
|
const product = pkg.product, webCheckoutURL = resolveWebCheckoutURL(pkg, offeringWebCheckoutURL), checkoutFields = webCheckoutURL !== void 0 ? { webCheckoutURL } : {}, isSubscription = product.productType === ProductType.Subscription, subscriptionOption = product.defaultSubscriptionOption;
|
|
27767
|
-
if (isSubscription && subscriptionOption)
|
|
27980
|
+
if (isSubscription && subscriptionOption) {
|
|
27981
|
+
const pricePerMonthMicros = getPackageMonthlyPrice(pkg), scopedDiscountFields = scopedDiscounts ? {
|
|
27982
|
+
discountVariablesByMostExpensivePricePerMonth: getDiscountVariablesByMostExpensivePricePerMonth(
|
|
27983
|
+
subscriptionOption,
|
|
27984
|
+
product.price,
|
|
27985
|
+
product.period || subscriptionOption.base.period,
|
|
27986
|
+
// A tab that has this package can't have a cheaper most expensive package.
|
|
27987
|
+
scopedDiscounts.pricesPerMonthMicros.filter(
|
|
27988
|
+
(price) => price >= pricePerMonthMicros
|
|
27989
|
+
),
|
|
27990
|
+
scopedDiscounts.translator
|
|
27991
|
+
)
|
|
27992
|
+
} : {};
|
|
27768
27993
|
return {
|
|
27769
27994
|
hasTrial: subscriptionOption.trial !== null,
|
|
27770
27995
|
hasIntroOffer: subscriptionOption.introPrice !== null,
|
|
27771
27996
|
hasPromoOffer: subscriptionOption.discount !== null,
|
|
27772
|
-
pricePerMonthMicros
|
|
27997
|
+
pricePerMonthMicros,
|
|
27998
|
+
...scopedDiscountFields,
|
|
27773
27999
|
...checkoutFields
|
|
27774
28000
|
};
|
|
28001
|
+
}
|
|
27775
28002
|
const nonSubscriptionOption = product.defaultNonSubscriptionOption;
|
|
27776
28003
|
return !isSubscription && nonSubscriptionOption ? {
|
|
27777
28004
|
hasTrial: !1,
|
|
@@ -27785,11 +28012,20 @@ function getPackageInfo(pkg, offeringWebCheckoutURL) {
|
|
|
27785
28012
|
...checkoutFields
|
|
27786
28013
|
};
|
|
27787
28014
|
}
|
|
27788
|
-
function parseOfferingIntoPackageInfoPerPackage(offering) {
|
|
27789
|
-
const
|
|
28015
|
+
function parseOfferingIntoPackageInfoPerPackage(offering, translator) {
|
|
28016
|
+
const packages = Object.values(offering.packagesById), scopedDiscounts = translator && {
|
|
28017
|
+
translator,
|
|
28018
|
+
pricesPerMonthMicros: [
|
|
28019
|
+
...new Set(
|
|
28020
|
+
packages.filter(
|
|
28021
|
+
(pkg) => pkg.product.productType === ProductType.Subscription && pkg.product.defaultSubscriptionOption
|
|
28022
|
+
).map(getPackageMonthlyPrice)
|
|
28023
|
+
)
|
|
28024
|
+
]
|
|
28025
|
+
}, mappedEntries = Object.entries(offering.packagesById).map(
|
|
27790
28026
|
([packageId, pkg]) => [
|
|
27791
28027
|
packageId,
|
|
27792
|
-
getPackageInfo(pkg, offering.webCheckoutURL)
|
|
28028
|
+
getPackageInfo(pkg, offering.webCheckoutURL, scopedDiscounts)
|
|
27793
28029
|
]
|
|
27794
28030
|
);
|
|
27795
28031
|
return Object.fromEntries(mappedEntries);
|
|
@@ -28599,8 +28835,11 @@ let Purchases$1 = (_prepareForQuickPurchases_dec = [requiresLoadedResources], _p
|
|
|
28599
28835
|
* Used to support Paywalls in Workflows.
|
|
28600
28836
|
* @internal
|
|
28601
28837
|
*/
|
|
28602
|
-
static buildInfoPerPackage(offering) {
|
|
28603
|
-
return parseOfferingIntoPackageInfoPerPackage(
|
|
28838
|
+
static buildInfoPerPackage(offering, options) {
|
|
28839
|
+
return parseOfferingIntoPackageInfoPerPackage(
|
|
28840
|
+
offering,
|
|
28841
|
+
options && getVariablesTranslator(offering, options)
|
|
28842
|
+
);
|
|
28604
28843
|
}
|
|
28605
28844
|
/**
|
|
28606
28845
|
* Map an offering's available packages to SDK PaywallPackage[] for
|
|
@@ -28999,7 +29238,10 @@ let Purchases$1 = (_prepareForQuickPurchases_dec = [requiresLoadedResources], _p
|
|
|
28999
29238
|
}
|
|
29000
29239
|
}, variablesPerPackage = buildVariablesPerPackage(offering, {
|
|
29001
29240
|
translator
|
|
29002
|
-
}), infoPerPackage = parseOfferingIntoPackageInfoPerPackage(
|
|
29241
|
+
}), infoPerPackage = parseOfferingIntoPackageInfoPerPackage(
|
|
29242
|
+
offering,
|
|
29243
|
+
translator
|
|
29244
|
+
), paywallContextOffering = {
|
|
29003
29245
|
identifier: offering.identifier,
|
|
29004
29246
|
display_name: offering.serverDescription
|
|
29005
29247
|
}, paywallContextPackages = buildPaywallContextPackages(offering), listener = paywallParams.listener, notifyPurchaseStarted = (pkg) => {
|