@sonordev/site-kit 1.5.4 → 2.0.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/AnalyticsProvider-J7UMCBCJ.mjs +4 -0
- package/dist/{AnalyticsProvider-BBLU4U2T.mjs.map → AnalyticsProvider-J7UMCBCJ.mjs.map} +1 -1
- package/dist/AnalyticsProvider-PPDJIGWY.js +25 -0
- package/dist/{AnalyticsProvider-EMDIAAWR.js.map → AnalyticsProvider-PPDJIGWY.js.map} +1 -1
- package/dist/EngageWidget-IDBEBGQR.js +13 -0
- package/dist/{EngageWidget-T2S5WUMJ.js.map → EngageWidget-IDBEBGQR.js.map} +1 -1
- package/dist/EngageWidget-SRRI4W7U.mjs +4 -0
- package/dist/{EngageWidget-RWBCI4RM.mjs.map → EngageWidget-SRRI4W7U.mjs.map} +1 -1
- package/dist/SignalBridge-D6W6OLVG.mjs +4 -0
- package/dist/{SignalBridge-WGHMEILW.mjs.map → SignalBridge-D6W6OLVG.mjs.map} +1 -1
- package/dist/SignalBridge-THATXU2R.js +33 -0
- package/dist/{SignalBridge-6UYUZ2CN.js.map → SignalBridge-THATXU2R.js.map} +1 -1
- package/dist/analytics/index.js +9 -9
- package/dist/analytics/index.mjs +2 -2
- package/dist/blog/index.js +75 -75
- package/dist/blog/index.js.map +1 -1
- package/dist/blog/index.mjs +75 -75
- package/dist/blog/index.mjs.map +1 -1
- package/dist/blog/server.js +2 -2
- package/dist/blog/server.js.map +1 -1
- package/dist/blog/server.mjs +2 -2
- package/dist/blog/server.mjs.map +1 -1
- package/dist/brand.css +87 -0
- package/dist/{chunk-ZU6YPEAF.mjs → chunk-2OJCYWSQ.mjs} +85 -73
- package/dist/chunk-2OJCYWSQ.mjs.map +1 -0
- package/dist/{chunk-PM2KQ6YK.mjs → chunk-3CXAWGUP.mjs} +3 -3
- package/dist/{chunk-PM2KQ6YK.mjs.map → chunk-3CXAWGUP.mjs.map} +1 -1
- package/dist/{chunk-36Y7OWES.mjs → chunk-3YQCPLGP.mjs} +4 -4
- package/dist/chunk-3YQCPLGP.mjs.map +1 -0
- package/dist/{chunk-DK2WNYQA.js → chunk-6ZGM7S5O.js} +108 -86
- package/dist/chunk-6ZGM7S5O.js.map +1 -0
- package/dist/{chunk-XFOL6JDF.mjs → chunk-7LAOWIWE.mjs} +4 -4
- package/dist/chunk-7LAOWIWE.mjs.map +1 -0
- package/dist/{chunk-YBTYDBWY.js → chunk-7M3FNAS5.js} +6 -8
- package/dist/chunk-7M3FNAS5.js.map +1 -0
- package/dist/{chunk-4QHHFCAA.mjs → chunk-AOIG5PVY.mjs} +6 -8
- package/dist/chunk-AOIG5PVY.mjs.map +1 -0
- package/dist/{chunk-VZMDH3R4.mjs → chunk-B22WSN4L.mjs} +4 -4
- package/dist/chunk-B22WSN4L.mjs.map +1 -0
- package/dist/{chunk-ELDJDBQL.js → chunk-BVUOATPG.js} +7 -7
- package/dist/chunk-BVUOATPG.js.map +1 -0
- package/dist/{chunk-N24BPFF6.mjs → chunk-CU6OGBKK.mjs} +6 -6
- package/dist/chunk-CU6OGBKK.mjs.map +1 -0
- package/dist/{chunk-NRNK7LXK.mjs → chunk-DWI5ZKPM.mjs} +4 -4
- package/dist/chunk-DWI5ZKPM.mjs.map +1 -0
- package/dist/{chunk-KRPFLF62.mjs → chunk-F5NXD7VQ.mjs} +10 -12
- package/dist/{chunk-KRPFLF62.mjs.map → chunk-F5NXD7VQ.mjs.map} +1 -1
- package/dist/{chunk-PTTDKFL7.js → chunk-FCXQECM7.js} +6 -6
- package/dist/chunk-FCXQECM7.js.map +1 -0
- package/dist/{chunk-DY4K6X3A.js → chunk-GCPPXUAI.js} +6 -6
- package/dist/chunk-GCPPXUAI.js.map +1 -0
- package/dist/{chunk-KJN2C6YE.js → chunk-I34XL5VJ.js} +5 -5
- package/dist/chunk-I34XL5VJ.js.map +1 -0
- package/dist/{chunk-G6VGUAK2.js → chunk-IFVMZFNT.js} +4 -4
- package/dist/chunk-IFVMZFNT.js.map +1 -0
- package/dist/{chunk-FMB2RZDH.mjs → chunk-J4U3IEXL.mjs} +6 -6
- package/dist/chunk-J4U3IEXL.mjs.map +1 -0
- package/dist/{chunk-EUNL6GAL.js → chunk-JP5WGL75.js} +4 -4
- package/dist/chunk-JP5WGL75.js.map +1 -0
- package/dist/{chunk-MG23BS36.js → chunk-L3UB4B74.js} +5 -5
- package/dist/chunk-L3UB4B74.js.map +1 -0
- package/dist/{chunk-VZMRZQ2D.mjs → chunk-MSRLAD7F.mjs} +107 -86
- package/dist/chunk-MSRLAD7F.mjs.map +1 -0
- package/dist/{chunk-M5FLRLHI.mjs → chunk-OM6R7CDP.mjs} +3 -3
- package/dist/chunk-OM6R7CDP.mjs.map +1 -0
- package/dist/{chunk-4X5TFGKD.mjs → chunk-P3POHQWW.mjs} +422 -426
- package/dist/chunk-P3POHQWW.mjs.map +1 -0
- package/dist/{chunk-GJD4CFHN.js → chunk-RLNG67S5.js} +7 -7
- package/dist/chunk-RLNG67S5.js.map +1 -0
- package/dist/{chunk-FTSXKDP3.js → chunk-RO6DHV6S.js} +10 -12
- package/dist/{chunk-FTSXKDP3.js.map → chunk-RO6DHV6S.js.map} +1 -1
- package/dist/{chunk-WW7UM7XY.js → chunk-TZAD7CZD.js} +424 -428
- package/dist/chunk-TZAD7CZD.js.map +1 -0
- package/dist/{chunk-OE5DEMCV.js → chunk-UD5447TC.js} +13 -15
- package/dist/chunk-UD5447TC.js.map +1 -0
- package/dist/{chunk-TC6TOW2T.js → chunk-UJ757WGI.js} +4 -4
- package/dist/{chunk-TC6TOW2T.js.map → chunk-UJ757WGI.js.map} +1 -1
- package/dist/{chunk-C3A5HXHX.mjs → chunk-V6V6OXS2.mjs} +5 -5
- package/dist/chunk-V6V6OXS2.mjs.map +1 -0
- package/dist/{chunk-X4J33XQD.js → chunk-W6K7MQCC.js} +6 -6
- package/dist/chunk-W6K7MQCC.js.map +1 -0
- package/dist/{chunk-FI2ME55T.mjs → chunk-W7RZ3OTA.mjs} +7 -7
- package/dist/chunk-W7RZ3OTA.mjs.map +1 -0
- package/dist/{chunk-IJ2LWZID.js → chunk-WETCVFIK.js} +85 -73
- package/dist/chunk-WETCVFIK.js.map +1 -0
- package/dist/{chunk-35MALWVX.mjs → chunk-WN2PUL6B.mjs} +13 -15
- package/dist/chunk-WN2PUL6B.mjs.map +1 -0
- package/dist/cli/index.js +19339 -3461
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +19331 -3452
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cms/index.d.mts +1 -1
- package/dist/cms/index.d.ts +1 -1
- package/dist/cms/index.js +3 -3
- package/dist/cms/index.js.map +1 -1
- package/dist/cms/index.mjs +2 -2
- package/dist/cms/index.mjs.map +1 -1
- package/dist/cms/server.js +4 -4
- package/dist/cms/server.mjs +1 -1
- package/dist/commerce/index.js +47 -47
- package/dist/commerce/index.mjs +3 -3
- package/dist/engage/index.d.mts +3 -2
- package/dist/engage/index.d.ts +3 -2
- package/dist/engage/index.js +6 -6
- package/dist/engage/index.js.map +1 -1
- package/dist/engage/index.mjs +3 -3
- package/dist/engage/index.mjs.map +1 -1
- package/dist/forms/index.js +379 -84
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/index.mjs +375 -65
- package/dist/forms/index.mjs.map +1 -1
- package/dist/forms/styles.css +312 -0
- package/dist/images/index.js +11 -11
- package/dist/images/index.mjs +2 -2
- package/dist/images/server.js +4 -4
- package/dist/images/server.mjs +1 -1
- package/dist/index.d.mts +4 -131
- package/dist/index.d.ts +4 -131
- package/dist/index.js +85 -1373
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1294
- package/dist/index.mjs.map +1 -1
- package/dist/layout/client.js +2 -2
- package/dist/layout/client.mjs +1 -1
- package/dist/layout/index.js +21 -11
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +17 -7
- package/dist/layout/index.mjs.map +1 -1
- package/dist/llms/index.d.mts +3 -3
- package/dist/llms/index.d.ts +3 -3
- package/dist/llms/index.js +12 -12
- package/dist/llms/index.js.map +1 -1
- package/dist/llms/index.mjs +2 -2
- package/dist/llms/index.mjs.map +1 -1
- package/dist/manifest/index.js +4 -4
- package/dist/manifest/index.js.map +1 -1
- package/dist/manifest/index.mjs +3 -3
- package/dist/manifest/index.mjs.map +1 -1
- package/dist/middleware/index.js +3 -3
- package/dist/middleware/index.mjs +2 -2
- package/dist/redirects/index.js +6 -6
- package/dist/redirects/index.mjs +2 -2
- package/dist/robots/index.js +3 -3
- package/dist/robots/index.js.map +1 -1
- package/dist/robots/index.mjs +2 -2
- package/dist/robots/index.mjs.map +1 -1
- package/dist/{routing-DZYzyDHw.d.ts → routing-DQ_Et-OP.d.mts} +4 -4
- package/dist/{routing-B5XS-6_W.d.mts → routing-IYiJNIIX.d.ts} +4 -4
- package/dist/seo/index.d.mts +3 -5
- package/dist/seo/index.d.ts +3 -5
- package/dist/seo/index.js +77 -76
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +41 -40
- package/dist/seo/index.mjs.map +1 -1
- package/dist/seo/register-sitemap-cli.js +3 -3
- package/dist/seo/register-sitemap-cli.js.map +1 -1
- package/dist/seo/register-sitemap-cli.mjs +3 -3
- package/dist/seo/register-sitemap-cli.mjs.map +1 -1
- package/dist/seo/server.d.mts +3 -3
- package/dist/seo/server.d.ts +3 -3
- package/dist/seo/server.js +7 -7
- package/dist/seo/server.js.map +1 -1
- package/dist/seo/server.mjs +5 -5
- package/dist/seo/server.mjs.map +1 -1
- package/dist/{server-api-XGKRGUMG.js → server-api-36R24YWN.js} +21 -21
- package/dist/{server-api-XGKRGUMG.js.map → server-api-36R24YWN.js.map} +1 -1
- package/dist/{server-api-COVFLFZ2.mjs → server-api-UIZU4JM3.mjs} +3 -3
- package/dist/{server-api-COVFLFZ2.mjs.map → server-api-UIZU4JM3.mjs.map} +1 -1
- package/dist/setup/index.d.mts +2 -5
- package/dist/setup/index.d.ts +2 -5
- package/dist/setup/index.js +0 -31
- package/dist/setup/index.mjs +1 -4
- package/dist/site-config/index.js +3 -3
- package/dist/site-config/index.mjs +1 -1
- package/dist/sitemap/index.js +10 -9
- package/dist/sitemap/index.js.map +1 -1
- package/dist/sitemap/index.mjs +8 -7
- package/dist/sitemap/index.mjs.map +1 -1
- package/dist/sync/index.js +13 -13
- package/dist/sync/index.mjs +1 -1
- package/dist/{types-KZP_VWZp.d.ts → types-CGkyylOa.d.mts} +2 -2
- package/dist/{types-KZP_VWZp.d.mts → types-CGkyylOa.d.ts} +2 -2
- package/package.json +6 -13
- package/dist/AnalyticsProvider-BBLU4U2T.mjs +0 -4
- package/dist/AnalyticsProvider-EMDIAAWR.js +0 -25
- package/dist/EngageWidget-RWBCI4RM.mjs +0 -4
- package/dist/EngageWidget-T2S5WUMJ.js +0 -13
- package/dist/SetupWizard-Cki06kB0.d.mts +0 -12
- package/dist/SetupWizard-Cki06kB0.d.ts +0 -12
- package/dist/SignalBridge-6UYUZ2CN.js +0 -33
- package/dist/SignalBridge-WGHMEILW.mjs +0 -4
- package/dist/chunk-35MALWVX.mjs.map +0 -1
- package/dist/chunk-36Y7OWES.mjs.map +0 -1
- package/dist/chunk-373TK6TZ.js +0 -321
- package/dist/chunk-373TK6TZ.js.map +0 -1
- package/dist/chunk-4MOJJSNA.js +0 -14867
- package/dist/chunk-4MOJJSNA.js.map +0 -1
- package/dist/chunk-4QHHFCAA.mjs.map +0 -1
- package/dist/chunk-4X5TFGKD.mjs.map +0 -1
- package/dist/chunk-5YDPPOUU.mjs +0 -810
- package/dist/chunk-5YDPPOUU.mjs.map +0 -1
- package/dist/chunk-7FKPJQVS.mjs +0 -289
- package/dist/chunk-7FKPJQVS.mjs.map +0 -1
- package/dist/chunk-C3A5HXHX.mjs.map +0 -1
- package/dist/chunk-DK2WNYQA.js.map +0 -1
- package/dist/chunk-DY4K6X3A.js.map +0 -1
- package/dist/chunk-ELDJDBQL.js.map +0 -1
- package/dist/chunk-EUNL6GAL.js.map +0 -1
- package/dist/chunk-FI2ME55T.mjs.map +0 -1
- package/dist/chunk-FMB2RZDH.mjs.map +0 -1
- package/dist/chunk-G6VGUAK2.js.map +0 -1
- package/dist/chunk-GJD4CFHN.js.map +0 -1
- package/dist/chunk-GVXZWXQ7.js +0 -814
- package/dist/chunk-GVXZWXQ7.js.map +0 -1
- package/dist/chunk-HF2FWDBJ.mjs +0 -968
- package/dist/chunk-HF2FWDBJ.mjs.map +0 -1
- package/dist/chunk-IFAW7JFO.js +0 -1429
- package/dist/chunk-IFAW7JFO.js.map +0 -1
- package/dist/chunk-IJ2LWZID.js.map +0 -1
- package/dist/chunk-IKIJEKU3.mjs +0 -1427
- package/dist/chunk-IKIJEKU3.mjs.map +0 -1
- package/dist/chunk-JFTGG6HK.mjs +0 -14848
- package/dist/chunk-JFTGG6HK.mjs.map +0 -1
- package/dist/chunk-JM3ZR6LB.js +0 -981
- package/dist/chunk-JM3ZR6LB.js.map +0 -1
- package/dist/chunk-KJN2C6YE.js.map +0 -1
- package/dist/chunk-M5FLRLHI.mjs.map +0 -1
- package/dist/chunk-MCGLYYAR.mjs +0 -341
- package/dist/chunk-MCGLYYAR.mjs.map +0 -1
- package/dist/chunk-MG23BS36.js.map +0 -1
- package/dist/chunk-N24BPFF6.mjs.map +0 -1
- package/dist/chunk-NRNK7LXK.mjs.map +0 -1
- package/dist/chunk-OE5DEMCV.js.map +0 -1
- package/dist/chunk-PTTDKFL7.js.map +0 -1
- package/dist/chunk-S7FRYNSU.mjs +0 -315
- package/dist/chunk-S7FRYNSU.mjs.map +0 -1
- package/dist/chunk-SLB5V4RT.js +0 -302
- package/dist/chunk-SLB5V4RT.js.map +0 -1
- package/dist/chunk-VZMDH3R4.mjs.map +0 -1
- package/dist/chunk-VZMRZQ2D.mjs.map +0 -1
- package/dist/chunk-WW7UM7XY.js.map +0 -1
- package/dist/chunk-X4J33XQD.js.map +0 -1
- package/dist/chunk-XFOL6JDF.mjs.map +0 -1
- package/dist/chunk-YBTYDBWY.js.map +0 -1
- package/dist/chunk-ZQO6FZZB.js +0 -343
- package/dist/chunk-ZQO6FZZB.js.map +0 -1
- package/dist/chunk-ZU6YPEAF.mjs.map +0 -1
- package/dist/generators-DOFWGRXS.js +0 -37
- package/dist/generators-DOFWGRXS.js.map +0 -1
- package/dist/generators-R62APO62.mjs +0 -4
- package/dist/generators-R62APO62.mjs.map +0 -1
- package/dist/migrator-3WQB3KQ2.mjs +0 -4
- package/dist/migrator-3WQB3KQ2.mjs.map +0 -1
- package/dist/migrator-HFVQYK5R.js +0 -37
- package/dist/migrator-HFVQYK5R.js.map +0 -1
- package/dist/scanner-AF7YUCFG.mjs +0 -4
- package/dist/scanner-AF7YUCFG.mjs.map +0 -1
- package/dist/scanner-DBD5K6F7.js +0 -53
- package/dist/scanner-DBD5K6F7.js.map +0 -1
- package/dist/setup/client.d.mts +0 -60
- package/dist/setup/client.d.ts +0 -60
- package/dist/setup/client.js +0 -31
- package/dist/setup/client.js.map +0 -1
- package/dist/setup/client.mjs +0 -6
- package/dist/setup/client.mjs.map +0 -1
- package/dist/setup/server.d.mts +0 -14
- package/dist/setup/server.d.ts +0 -14
- package/dist/setup/server.js +0 -13
- package/dist/setup/server.js.map +0 -1
- package/dist/setup/server.mjs +0 -4
- package/dist/setup/server.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkRO6DHV6S_js = require('./chunk-RO6DHV6S.js');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React5 = require('react');
|
|
7
7
|
|
|
@@ -289,7 +289,7 @@ async function fetchActiveProcessor() {
|
|
|
289
289
|
}
|
|
290
290
|
async function registerForEvent(eventId, scheduleId, customer) {
|
|
291
291
|
const { apiUrl, apiKey } = getApiConfig();
|
|
292
|
-
const analyticsSessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("
|
|
292
|
+
const analyticsSessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("_sk_sid") : null;
|
|
293
293
|
try {
|
|
294
294
|
const response = await fetch(`${apiUrl}/api/public/commerce/register`, {
|
|
295
295
|
method: "POST",
|
|
@@ -360,7 +360,7 @@ async function fetchProcessorConfig() {
|
|
|
360
360
|
async function createPaymentIntent(options) {
|
|
361
361
|
const apiUrl = getApiUrl();
|
|
362
362
|
const apiKey = getApiKey();
|
|
363
|
-
const sessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("
|
|
363
|
+
const sessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("_sk_sid") : null;
|
|
364
364
|
try {
|
|
365
365
|
const response = await fetch(`${apiUrl}/api/public/commerce/create-payment-intent`, {
|
|
366
366
|
method: "POST",
|
|
@@ -383,7 +383,7 @@ async function createPaymentIntent(options) {
|
|
|
383
383
|
async function createCheckoutSession(optionsOrOfferingId, legacyOptions) {
|
|
384
384
|
const { apiUrl, apiKey } = getApiConfig();
|
|
385
385
|
const options = typeof optionsOrOfferingId === "string" ? { offeringId: optionsOrOfferingId, ...legacyOptions } : optionsOrOfferingId;
|
|
386
|
-
const analyticsSessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("
|
|
386
|
+
const analyticsSessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("_sk_sid") : null;
|
|
387
387
|
try {
|
|
388
388
|
const response = await fetch(`${apiUrl}/api/public/commerce/checkout`, {
|
|
389
389
|
method: "POST",
|
|
@@ -503,7 +503,7 @@ function OfferingCard({
|
|
|
503
503
|
fontWeight: 600
|
|
504
504
|
}, children: offering.name }),
|
|
505
505
|
isEvent && nextSchedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "site-kit-offering-date", style: {
|
|
506
|
-
color: "
|
|
506
|
+
color: "var(--sk-text-secondary)",
|
|
507
507
|
fontSize: "0.875rem",
|
|
508
508
|
marginTop: "0.25rem"
|
|
509
509
|
}, children: [
|
|
@@ -511,19 +511,19 @@ function OfferingCard({
|
|
|
511
511
|
offering.location && ` \u2022 ${offering.location}`
|
|
512
512
|
] }),
|
|
513
513
|
showDescription && offering.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `site-kit-offering-description ${descriptionClassName}`, style: {
|
|
514
|
-
color: "
|
|
514
|
+
color: "var(--sk-text-secondary)",
|
|
515
515
|
margin: "0.5rem 0",
|
|
516
516
|
fontSize: "0.875rem"
|
|
517
517
|
}, children: offering.short_description }),
|
|
518
518
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "1rem", marginTop: "0.5rem" }, children: [
|
|
519
519
|
showPrice && offering.price_is_public && offering.price != null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: `site-kit-offering-price ${priceClassName}`, style: {
|
|
520
520
|
fontWeight: 600,
|
|
521
|
-
color: "
|
|
521
|
+
color: "var(--sk-text-primary)"
|
|
522
522
|
}, children: [
|
|
523
523
|
formatPrice(offering.price, offering.currency),
|
|
524
524
|
offering.compare_at_price && /* @__PURE__ */ jsxRuntime.jsx("span", { style: {
|
|
525
525
|
textDecoration: "line-through",
|
|
526
|
-
color: "
|
|
526
|
+
color: "var(--sk-text-secondary)",
|
|
527
527
|
marginLeft: "0.5rem",
|
|
528
528
|
fontWeight: 400
|
|
529
529
|
}, children: formatPrice(offering.compare_at_price, offering.currency) })
|
|
@@ -537,8 +537,8 @@ function OfferingCard({
|
|
|
537
537
|
padding: "0.5rem 1rem",
|
|
538
538
|
borderRadius: "6px",
|
|
539
539
|
border: "none",
|
|
540
|
-
background: "
|
|
541
|
-
color: "
|
|
540
|
+
background: "var(--sk-primary)",
|
|
541
|
+
color: "var(--sk-bg)",
|
|
542
542
|
cursor: "pointer",
|
|
543
543
|
fontWeight: 500
|
|
544
544
|
},
|
|
@@ -553,7 +553,7 @@ function OfferingCard({
|
|
|
553
553
|
borderRadius: "12px",
|
|
554
554
|
overflow: "hidden",
|
|
555
555
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)",
|
|
556
|
-
background: "
|
|
556
|
+
background: "var(--sk-bg)"
|
|
557
557
|
}, children: [
|
|
558
558
|
showImage && offering.featured_image_url && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { position: "relative" }, children: [
|
|
559
559
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -573,8 +573,8 @@ function OfferingCard({
|
|
|
573
573
|
position: "absolute",
|
|
574
574
|
top: "12px",
|
|
575
575
|
right: "12px",
|
|
576
|
-
background: "
|
|
577
|
-
color: "
|
|
576
|
+
background: "var(--sk-error)",
|
|
577
|
+
color: "var(--sk-bg)",
|
|
578
578
|
padding: "4px 8px",
|
|
579
579
|
borderRadius: "4px",
|
|
580
580
|
fontSize: "0.75rem",
|
|
@@ -583,7 +583,7 @@ function OfferingCard({
|
|
|
583
583
|
] }),
|
|
584
584
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { padding: "1rem" }, children: [
|
|
585
585
|
isEvent && nextSchedule && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "site-kit-offering-date", style: {
|
|
586
|
-
color: "
|
|
586
|
+
color: "var(--sk-primary)",
|
|
587
587
|
fontSize: "0.875rem",
|
|
588
588
|
fontWeight: 500,
|
|
589
589
|
marginBottom: "0.25rem"
|
|
@@ -592,14 +592,14 @@ function OfferingCard({
|
|
|
592
592
|
margin: 0,
|
|
593
593
|
fontSize: "1.125rem",
|
|
594
594
|
fontWeight: 600,
|
|
595
|
-
color: "
|
|
595
|
+
color: "var(--sk-text-primary)"
|
|
596
596
|
}, children: offering.name }),
|
|
597
|
-
isEvent && offering.location && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { color: "
|
|
597
|
+
isEvent && offering.location && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { color: "var(--sk-text-secondary)", fontSize: "0.875rem", marginTop: "0.25rem" }, children: [
|
|
598
598
|
"\u{1F4CD} ",
|
|
599
599
|
offering.location
|
|
600
600
|
] }),
|
|
601
601
|
showDescription && offering.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `site-kit-offering-description ${descriptionClassName}`, style: {
|
|
602
|
-
color: "
|
|
602
|
+
color: "var(--sk-text-secondary)",
|
|
603
603
|
margin: "0.75rem 0",
|
|
604
604
|
fontSize: "0.875rem",
|
|
605
605
|
lineHeight: 1.5
|
|
@@ -611,10 +611,10 @@ function OfferingCard({
|
|
|
611
611
|
marginTop: "1rem"
|
|
612
612
|
}, children: [
|
|
613
613
|
showPrice && offering.price_is_public && offering.price != null ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-offering-price ${priceClassName}`, children: [
|
|
614
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: "1.25rem", color: "
|
|
614
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: "1.25rem", color: "var(--sk-text-primary)" }, children: formatPrice(offering.price, offering.currency) }),
|
|
615
615
|
offering.compare_at_price && /* @__PURE__ */ jsxRuntime.jsx("span", { style: {
|
|
616
616
|
textDecoration: "line-through",
|
|
617
|
-
color: "
|
|
617
|
+
color: "var(--sk-text-secondary)",
|
|
618
618
|
marginLeft: "0.5rem",
|
|
619
619
|
fontSize: "0.875rem"
|
|
620
620
|
}, children: formatPrice(offering.compare_at_price, offering.currency) })
|
|
@@ -628,8 +628,8 @@ function OfferingCard({
|
|
|
628
628
|
padding: "0.625rem 1.25rem",
|
|
629
629
|
borderRadius: "6px",
|
|
630
630
|
border: "none",
|
|
631
|
-
background: "
|
|
632
|
-
color: "
|
|
631
|
+
background: "var(--sk-primary)",
|
|
632
|
+
color: "var(--sk-bg)",
|
|
633
633
|
cursor: "pointer",
|
|
634
634
|
fontWeight: 500,
|
|
635
635
|
fontSize: "0.875rem"
|
|
@@ -718,8 +718,8 @@ function OfferingList({
|
|
|
718
718
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
719
719
|
width: "40px",
|
|
720
720
|
height: "40px",
|
|
721
|
-
border: "3px solid
|
|
722
|
-
borderTopColor: "
|
|
721
|
+
border: "3px solid var(--sk-border)",
|
|
722
|
+
borderTopColor: "var(--sk-primary)",
|
|
723
723
|
borderRadius: "50%",
|
|
724
724
|
animation: "spin 1s linear infinite"
|
|
725
725
|
} }),
|
|
@@ -734,7 +734,7 @@ function OfferingList({
|
|
|
734
734
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `site-kit-offerings-error ${className}`, style: {
|
|
735
735
|
textAlign: "center",
|
|
736
736
|
padding: "2rem",
|
|
737
|
-
color: "
|
|
737
|
+
color: "var(--sk-error)"
|
|
738
738
|
}, children: error });
|
|
739
739
|
}
|
|
740
740
|
if (filteredOfferings.length === 0) {
|
|
@@ -744,7 +744,7 @@ function OfferingList({
|
|
|
744
744
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `site-kit-offerings-empty ${className}`, style: {
|
|
745
745
|
textAlign: "center",
|
|
746
746
|
padding: "2rem",
|
|
747
|
-
color: "
|
|
747
|
+
color: "var(--sk-text-secondary)"
|
|
748
748
|
}, children: emptyMessage });
|
|
749
749
|
}
|
|
750
750
|
const gridStyles = layout === "grid" ? {
|
|
@@ -776,9 +776,9 @@ function OfferingList({
|
|
|
776
776
|
padding: "0.5rem 1rem",
|
|
777
777
|
borderRadius: "9999px",
|
|
778
778
|
border: "1px solid",
|
|
779
|
-
borderColor: activeFilter === null ? "
|
|
780
|
-
background: activeFilter === null ? "
|
|
781
|
-
color: activeFilter === null ? "
|
|
779
|
+
borderColor: activeFilter === null ? "var(--sk-primary)" : "var(--sk-border)",
|
|
780
|
+
background: activeFilter === null ? "var(--sk-primary)" : "var(--sk-bg)",
|
|
781
|
+
color: activeFilter === null ? "var(--sk-bg)" : "var(--sk-text-primary)",
|
|
782
782
|
cursor: "pointer",
|
|
783
783
|
fontSize: "0.875rem"
|
|
784
784
|
},
|
|
@@ -793,9 +793,9 @@ function OfferingList({
|
|
|
793
793
|
padding: "0.5rem 1rem",
|
|
794
794
|
borderRadius: "9999px",
|
|
795
795
|
border: "1px solid",
|
|
796
|
-
borderColor: activeFilter === cat.id ? "
|
|
797
|
-
background: activeFilter === cat.id ? "
|
|
798
|
-
color: activeFilter === cat.id ? "
|
|
796
|
+
borderColor: activeFilter === cat.id ? "var(--sk-primary)" : "var(--sk-border)",
|
|
797
|
+
background: activeFilter === cat.id ? "var(--sk-primary)" : "var(--sk-bg)",
|
|
798
|
+
color: activeFilter === cat.id ? "var(--sk-bg)" : "var(--sk-text-primary)",
|
|
799
799
|
cursor: "pointer",
|
|
800
800
|
fontSize: "0.875rem"
|
|
801
801
|
},
|
|
@@ -884,7 +884,7 @@ function EventTile({
|
|
|
884
884
|
alignItems: "center",
|
|
885
885
|
gap: "0.75rem",
|
|
886
886
|
padding: "0.75rem",
|
|
887
|
-
background: "
|
|
887
|
+
background: "var(--sk-bg)",
|
|
888
888
|
borderRadius: "8px",
|
|
889
889
|
boxShadow: "0 1px 2px rgba(0,0,0,0.05)"
|
|
890
890
|
}, children: [
|
|
@@ -892,11 +892,11 @@ function EventTile({
|
|
|
892
892
|
minWidth: "48px",
|
|
893
893
|
textAlign: "center",
|
|
894
894
|
padding: "0.5rem",
|
|
895
|
-
background: "
|
|
895
|
+
background: "var(--sk-surface)",
|
|
896
896
|
borderRadius: "6px"
|
|
897
897
|
}, children: [
|
|
898
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "0.75rem", color: "
|
|
899
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "1.25rem", fontWeight: 700, color: "
|
|
898
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)", textTransform: "uppercase" }, children: new Date(schedule.starts_at).toLocaleDateString("en-US", { month: "short" }) }),
|
|
899
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "1.25rem", fontWeight: 700, color: "var(--sk-text-primary)" }, children: new Date(schedule.starts_at).getDate() })
|
|
900
900
|
] }),
|
|
901
901
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
902
902
|
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: `site-kit-event-title ${titleClassName}`, style: {
|
|
@@ -907,7 +907,7 @@ function EventTile({
|
|
|
907
907
|
overflow: "hidden",
|
|
908
908
|
textOverflow: "ellipsis"
|
|
909
909
|
}, children: event.name }),
|
|
910
|
-
showTime && schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.75rem", color: "
|
|
910
|
+
showTime && schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)" }, children: [
|
|
911
911
|
formatTime(schedule.starts_at),
|
|
912
912
|
showLocation && event.location && ` \u2022 ${event.location}`
|
|
913
913
|
] })
|
|
@@ -923,8 +923,8 @@ function EventTile({
|
|
|
923
923
|
fontSize: "0.75rem",
|
|
924
924
|
borderRadius: "4px",
|
|
925
925
|
border: "none",
|
|
926
|
-
background: soldOut ? "
|
|
927
|
-
color: soldOut ? "
|
|
926
|
+
background: soldOut ? "var(--sk-border)" : "var(--sk-primary)",
|
|
927
|
+
color: soldOut ? "var(--sk-text-secondary)" : "var(--sk-bg)",
|
|
928
928
|
cursor: soldOut ? "not-allowed" : "pointer",
|
|
929
929
|
fontWeight: 500,
|
|
930
930
|
whiteSpace: "nowrap"
|
|
@@ -935,7 +935,7 @@ function EventTile({
|
|
|
935
935
|
] });
|
|
936
936
|
}
|
|
937
937
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-event-tile ${className}`, style: {
|
|
938
|
-
background: "
|
|
938
|
+
background: "var(--sk-bg)",
|
|
939
939
|
borderRadius: "12px",
|
|
940
940
|
overflow: "hidden",
|
|
941
941
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
@@ -960,26 +960,26 @@ function EventTile({
|
|
|
960
960
|
marginBottom: "0.5rem"
|
|
961
961
|
}, children: [
|
|
962
962
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: {
|
|
963
|
-
background: "
|
|
964
|
-
color: "
|
|
963
|
+
background: "rgba(var(--sk-primary-rgb), 0.125)",
|
|
964
|
+
color: "var(--sk-primary)",
|
|
965
965
|
padding: "0.25rem 0.5rem",
|
|
966
966
|
borderRadius: "4px",
|
|
967
967
|
fontSize: "0.75rem",
|
|
968
968
|
fontWeight: 600
|
|
969
969
|
}, children: getRelativeTimeUntil(schedule.starts_at) }),
|
|
970
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.875rem", color: "
|
|
970
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: formatDate(schedule.starts_at) })
|
|
971
971
|
] }),
|
|
972
972
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `site-kit-event-title ${titleClassName}`, style: {
|
|
973
973
|
margin: "0 0 0.5rem",
|
|
974
974
|
fontSize: "1.125rem",
|
|
975
975
|
fontWeight: 600,
|
|
976
|
-
color: "
|
|
976
|
+
color: "var(--sk-text-primary)"
|
|
977
977
|
}, children: event.name }),
|
|
978
|
-
showLocation && event.location && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.875rem", color: "
|
|
978
|
+
showLocation && event.location && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)", marginBottom: "0.5rem" }, children: [
|
|
979
979
|
"\u{1F4CD} ",
|
|
980
980
|
event.location
|
|
981
981
|
] }),
|
|
982
|
-
showTime && schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.875rem", color: "
|
|
982
|
+
showTime && schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)", marginBottom: "0.75rem" }, children: [
|
|
983
983
|
"\u{1F550} ",
|
|
984
984
|
formatTime(schedule.starts_at),
|
|
985
985
|
schedule.ends_at && ` - ${formatTime(schedule.ends_at)}`
|
|
@@ -991,10 +991,10 @@ function EventTile({
|
|
|
991
991
|
marginTop: "0.75rem"
|
|
992
992
|
}, children: [
|
|
993
993
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
994
|
-
showPrice && event.price_is_public && event.price != null && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, color: "
|
|
994
|
+
showPrice && event.price_is_public && event.price != null && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, color: "var(--sk-text-primary)" }, children: event.price === 0 ? "Free" : `$${event.price}` }),
|
|
995
995
|
showCapacity && spotsRemaining !== null && spotsRemaining <= 10 && !soldOut && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: {
|
|
996
996
|
fontSize: "0.75rem",
|
|
997
|
-
color: "
|
|
997
|
+
color: "var(--sk-error)",
|
|
998
998
|
marginLeft: "0.5rem"
|
|
999
999
|
}, children: [
|
|
1000
1000
|
"Only ",
|
|
@@ -1012,8 +1012,8 @@ function EventTile({
|
|
|
1012
1012
|
padding: "0.5rem 1rem",
|
|
1013
1013
|
borderRadius: "6px",
|
|
1014
1014
|
border: "none",
|
|
1015
|
-
background: soldOut ? "
|
|
1016
|
-
color: soldOut ? "
|
|
1015
|
+
background: soldOut ? "var(--sk-border)" : "var(--sk-primary)",
|
|
1016
|
+
color: soldOut ? "var(--sk-text-secondary)" : "var(--sk-bg)",
|
|
1017
1017
|
cursor: soldOut ? "not-allowed" : "pointer",
|
|
1018
1018
|
fontWeight: 500,
|
|
1019
1019
|
fontSize: "0.875rem"
|
|
@@ -1063,7 +1063,7 @@ function UpcomingEvents({
|
|
|
1063
1063
|
load();
|
|
1064
1064
|
}, [propEvents, limit, category]);
|
|
1065
1065
|
if (loading) {
|
|
1066
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `site-kit-upcoming-events ${className}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "2rem", textAlign: "center", color: "
|
|
1066
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `site-kit-upcoming-events ${className}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "2rem", textAlign: "center", color: "var(--sk-text-secondary)" }, children: "Loading events..." }) });
|
|
1067
1067
|
}
|
|
1068
1068
|
if (events.length === 0) {
|
|
1069
1069
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-upcoming-events ${className}`, children: [
|
|
@@ -1072,7 +1072,7 @@ function UpcomingEvents({
|
|
|
1072
1072
|
fontSize: "1.5rem",
|
|
1073
1073
|
fontWeight: 600
|
|
1074
1074
|
}, children: title }),
|
|
1075
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "2rem", textAlign: "center", color: "
|
|
1075
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "2rem", textAlign: "center", color: "var(--sk-text-secondary)" }, children: emptyMessage })
|
|
1076
1076
|
] });
|
|
1077
1077
|
}
|
|
1078
1078
|
const layoutStyles = layout === "horizontal" ? {
|
|
@@ -1101,7 +1101,7 @@ function UpcomingEvents({
|
|
|
1101
1101
|
{
|
|
1102
1102
|
href: viewAllUrl,
|
|
1103
1103
|
style: {
|
|
1104
|
-
color: "
|
|
1104
|
+
color: "var(--sk-primary)",
|
|
1105
1105
|
textDecoration: "none",
|
|
1106
1106
|
fontSize: "0.875rem",
|
|
1107
1107
|
fontWeight: 500
|
|
@@ -1137,8 +1137,8 @@ function UpcomingEvents({
|
|
|
1137
1137
|
style: {
|
|
1138
1138
|
display: "inline-block",
|
|
1139
1139
|
padding: "0.75rem 1.5rem",
|
|
1140
|
-
background: "
|
|
1141
|
-
color: "
|
|
1140
|
+
background: "var(--sk-surface)",
|
|
1141
|
+
color: "var(--sk-text-primary)",
|
|
1142
1142
|
borderRadius: "8px",
|
|
1143
1143
|
textDecoration: "none",
|
|
1144
1144
|
fontWeight: 500
|
|
@@ -1192,15 +1192,15 @@ function ProductEmbed({
|
|
|
1192
1192
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-product-embed ${className}`, style: {
|
|
1193
1193
|
padding: "2rem",
|
|
1194
1194
|
textAlign: "center",
|
|
1195
|
-
background: "
|
|
1195
|
+
background: "var(--sk-bg-elevated)",
|
|
1196
1196
|
borderRadius: "12px"
|
|
1197
1197
|
}, children: [
|
|
1198
1198
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
1199
1199
|
width: "40px",
|
|
1200
1200
|
height: "40px",
|
|
1201
1201
|
margin: "0 auto",
|
|
1202
|
-
border: "3px solid
|
|
1203
|
-
borderTopColor: "
|
|
1202
|
+
border: "3px solid var(--sk-border)",
|
|
1203
|
+
borderTopColor: "var(--sk-primary)",
|
|
1204
1204
|
borderRadius: "50%",
|
|
1205
1205
|
animation: "spin 1s linear infinite"
|
|
1206
1206
|
} }),
|
|
@@ -1380,12 +1380,8 @@ var STYLE_BLOCK = `
|
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
1382
|
/*
|
|
1383
|
-
* Commerce CSS custom properties
|
|
1384
|
-
*
|
|
1385
|
-
* Example: color: var(--commerce-text, #111827) \u2014 uses #111827 if --commerce-text is not defined.
|
|
1386
|
-
*
|
|
1387
|
-
* Host sites should define these in their CSS:
|
|
1388
|
-
* :root { --commerce-accent: #d9b338; --commerce-surface: #0f0f17; ... }
|
|
1383
|
+
* Commerce uses --sk-* CSS custom properties inherited from the host site's :root.
|
|
1384
|
+
* Host sites define their design tokens via the site-kit theme system.
|
|
1389
1385
|
*/
|
|
1390
1386
|
|
|
1391
1387
|
.skc-detail *, .skc-detail *::before, .skc-detail *::after {
|
|
@@ -1421,8 +1417,8 @@ var STYLE_BLOCK = `
|
|
|
1421
1417
|
.skc-gallery-main {
|
|
1422
1418
|
position: relative;
|
|
1423
1419
|
overflow: hidden;
|
|
1424
|
-
border-radius: var(--
|
|
1425
|
-
background: var(--
|
|
1420
|
+
border-radius: var(--sk-radius, 12px);
|
|
1421
|
+
background: var(--sk-bg-elevated);
|
|
1426
1422
|
cursor: crosshair;
|
|
1427
1423
|
aspect-ratio: 1;
|
|
1428
1424
|
}
|
|
@@ -1446,19 +1442,19 @@ var STYLE_BLOCK = `
|
|
|
1446
1442
|
flex: 0 0 auto;
|
|
1447
1443
|
width: 64px;
|
|
1448
1444
|
height: 64px;
|
|
1449
|
-
border-radius: var(--
|
|
1445
|
+
border-radius: var(--sk-radius-sm, 8px);
|
|
1450
1446
|
overflow: hidden;
|
|
1451
1447
|
border: 2px solid transparent;
|
|
1452
1448
|
padding: 0;
|
|
1453
1449
|
cursor: pointer;
|
|
1454
|
-
background: var(--
|
|
1450
|
+
background: var(--sk-bg-elevated);
|
|
1455
1451
|
transition: border-color 0.15s ease;
|
|
1456
1452
|
}
|
|
1457
1453
|
.skc-gallery-thumb:hover {
|
|
1458
|
-
border-color: var(--
|
|
1454
|
+
border-color: var(--sk-text-secondary);
|
|
1459
1455
|
}
|
|
1460
1456
|
.skc-gallery-thumb.skc-active {
|
|
1461
|
-
border-color: var(--
|
|
1457
|
+
border-color: var(--sk-primary);
|
|
1462
1458
|
}
|
|
1463
1459
|
.skc-gallery-thumb img {
|
|
1464
1460
|
width: 100%;
|
|
@@ -1473,8 +1469,8 @@ var STYLE_BLOCK = `
|
|
|
1473
1469
|
left: 0;
|
|
1474
1470
|
right: 0;
|
|
1475
1471
|
z-index: 999;
|
|
1476
|
-
background:
|
|
1477
|
-
border-top: 1px solid var(--
|
|
1472
|
+
background: var(--sk-bg);
|
|
1473
|
+
border-top: 1px solid var(--sk-border);
|
|
1478
1474
|
padding: 0.75rem 1rem;
|
|
1479
1475
|
display: flex;
|
|
1480
1476
|
align-items: center;
|
|
@@ -1490,7 +1486,7 @@ var STYLE_BLOCK = `
|
|
|
1490
1486
|
/* Tabs */
|
|
1491
1487
|
.skc-tabs-list {
|
|
1492
1488
|
display: flex;
|
|
1493
|
-
border-bottom: 1px solid var(--
|
|
1489
|
+
border-bottom: 1px solid var(--sk-border);
|
|
1494
1490
|
gap: 0;
|
|
1495
1491
|
overflow-x: auto;
|
|
1496
1492
|
scrollbar-width: none;
|
|
@@ -1502,18 +1498,18 @@ var STYLE_BLOCK = `
|
|
|
1502
1498
|
background: none;
|
|
1503
1499
|
font-size: 0.875rem;
|
|
1504
1500
|
font-weight: 500;
|
|
1505
|
-
color: var(--
|
|
1501
|
+
color: var(--sk-text-secondary);
|
|
1506
1502
|
cursor: pointer;
|
|
1507
1503
|
border-bottom: 2px solid transparent;
|
|
1508
1504
|
white-space: nowrap;
|
|
1509
1505
|
transition: color 0.15s ease, border-color 0.15s ease;
|
|
1510
1506
|
}
|
|
1511
1507
|
.skc-tab-btn:hover {
|
|
1512
|
-
color: var(--
|
|
1508
|
+
color: var(--sk-text-primary);
|
|
1513
1509
|
}
|
|
1514
1510
|
.skc-tab-btn.skc-active {
|
|
1515
|
-
color: var(--
|
|
1516
|
-
border-bottom-color: var(--
|
|
1511
|
+
color: var(--sk-primary);
|
|
1512
|
+
border-bottom-color: var(--sk-primary);
|
|
1517
1513
|
}
|
|
1518
1514
|
|
|
1519
1515
|
/* Checkout overlay */
|
|
@@ -1535,8 +1531,8 @@ var STYLE_BLOCK = `
|
|
|
1535
1531
|
max-width: 480px;
|
|
1536
1532
|
max-height: 90vh;
|
|
1537
1533
|
overflow-y: auto;
|
|
1538
|
-
background:
|
|
1539
|
-
border-radius: calc(var(--
|
|
1534
|
+
background: var(--sk-bg);
|
|
1535
|
+
border-radius: calc(var(--sk-radius, 12px) + 4px);
|
|
1540
1536
|
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
|
|
1541
1537
|
animation: skc-scaleIn 0.25s ease-out;
|
|
1542
1538
|
}
|
|
@@ -1545,20 +1541,20 @@ var STYLE_BLOCK = `
|
|
|
1545
1541
|
.skc-input {
|
|
1546
1542
|
width: 100%;
|
|
1547
1543
|
padding: 0.625rem 0.75rem;
|
|
1548
|
-
border-radius: var(--
|
|
1549
|
-
border: 1px solid var(--
|
|
1544
|
+
border-radius: var(--sk-radius-sm, 8px);
|
|
1545
|
+
border: 1px solid var(--sk-border);
|
|
1550
1546
|
font-size: 0.9375rem;
|
|
1551
|
-
color: var(--
|
|
1552
|
-
background:
|
|
1547
|
+
color: var(--sk-text-primary);
|
|
1548
|
+
background: var(--sk-bg);
|
|
1553
1549
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
1554
1550
|
outline: none;
|
|
1555
1551
|
}
|
|
1556
1552
|
.skc-input:focus {
|
|
1557
|
-
border-color: var(--
|
|
1558
|
-
box-shadow: 0 0 0 3px rgba(
|
|
1553
|
+
border-color: var(--sk-primary);
|
|
1554
|
+
box-shadow: 0 0 0 3px rgba(var(--sk-primary-rgb), 0.1);
|
|
1559
1555
|
}
|
|
1560
1556
|
.skc-input::placeholder {
|
|
1561
|
-
color: var(--
|
|
1557
|
+
color: var(--sk-text-secondary);
|
|
1562
1558
|
}
|
|
1563
1559
|
|
|
1564
1560
|
/* Primary button */
|
|
@@ -1569,17 +1565,17 @@ var STYLE_BLOCK = `
|
|
|
1569
1565
|
gap: 0.5rem;
|
|
1570
1566
|
width: 100%;
|
|
1571
1567
|
padding: 0.875rem 1.5rem;
|
|
1572
|
-
border-radius: var(--
|
|
1568
|
+
border-radius: var(--sk-radius-sm, 8px);
|
|
1573
1569
|
border: none;
|
|
1574
|
-
background: var(--
|
|
1575
|
-
color: var(--
|
|
1570
|
+
background: var(--sk-primary);
|
|
1571
|
+
color: var(--sk-bg);
|
|
1576
1572
|
font-size: 1rem;
|
|
1577
1573
|
font-weight: 600;
|
|
1578
1574
|
cursor: pointer;
|
|
1579
1575
|
transition: background-color 0.15s ease, transform 0.1s ease;
|
|
1580
1576
|
}
|
|
1581
1577
|
.skc-btn-primary:hover:not(:disabled) {
|
|
1582
|
-
background: var(--
|
|
1578
|
+
background: var(--sk-primary-hover);
|
|
1583
1579
|
}
|
|
1584
1580
|
.skc-btn-primary:active:not(:disabled) {
|
|
1585
1581
|
transform: scale(0.98);
|
|
@@ -1597,17 +1593,17 @@ var STYLE_BLOCK = `
|
|
|
1597
1593
|
gap: 0.5rem;
|
|
1598
1594
|
width: 100%;
|
|
1599
1595
|
padding: 0.875rem 1.5rem;
|
|
1600
|
-
border-radius: var(--
|
|
1601
|
-
border: 2px solid var(--
|
|
1596
|
+
border-radius: var(--sk-radius-sm, 8px);
|
|
1597
|
+
border: 2px solid var(--sk-primary);
|
|
1602
1598
|
background: transparent;
|
|
1603
|
-
color: var(--
|
|
1599
|
+
color: var(--sk-primary);
|
|
1604
1600
|
font-size: 1rem;
|
|
1605
1601
|
font-weight: 600;
|
|
1606
1602
|
cursor: pointer;
|
|
1607
1603
|
transition: background-color 0.15s ease;
|
|
1608
1604
|
}
|
|
1609
1605
|
.skc-btn-secondary:hover:not(:disabled) {
|
|
1610
|
-
background: rgba(
|
|
1606
|
+
background: rgba(var(--sk-primary-rgb), 0.05);
|
|
1611
1607
|
}
|
|
1612
1608
|
.skc-btn-secondary:disabled {
|
|
1613
1609
|
opacity: 0.55;
|
|
@@ -1631,24 +1627,24 @@ var STYLE_BLOCK = `
|
|
|
1631
1627
|
width: 8px;
|
|
1632
1628
|
height: 8px;
|
|
1633
1629
|
border-radius: 50%;
|
|
1634
|
-
background: var(--
|
|
1630
|
+
background: var(--sk-border);
|
|
1635
1631
|
transition: background 0.2s ease, transform 0.2s ease;
|
|
1636
1632
|
}
|
|
1637
1633
|
.skc-step-dot.skc-active {
|
|
1638
|
-
background: var(--
|
|
1634
|
+
background: var(--sk-primary);
|
|
1639
1635
|
transform: scale(1.3);
|
|
1640
1636
|
}
|
|
1641
1637
|
.skc-step-dot.skc-done {
|
|
1642
|
-
background: var(--
|
|
1638
|
+
background: var(--sk-success);
|
|
1643
1639
|
}
|
|
1644
1640
|
.skc-step-connector {
|
|
1645
1641
|
width: 24px;
|
|
1646
1642
|
height: 2px;
|
|
1647
|
-
background: var(--
|
|
1643
|
+
background: var(--sk-border);
|
|
1648
1644
|
transition: background 0.2s ease;
|
|
1649
1645
|
}
|
|
1650
1646
|
.skc-step-connector.skc-done {
|
|
1651
|
-
background: var(--
|
|
1647
|
+
background: var(--sk-success);
|
|
1652
1648
|
}
|
|
1653
1649
|
`;
|
|
1654
1650
|
function loadSquareSDK(env) {
|
|
@@ -1902,11 +1898,11 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1902
1898
|
style: {
|
|
1903
1899
|
fontSize: "0.875rem",
|
|
1904
1900
|
fontWeight: 600,
|
|
1905
|
-
color: "var(--
|
|
1901
|
+
color: "var(--sk-text-primary)"
|
|
1906
1902
|
},
|
|
1907
1903
|
children: [
|
|
1908
1904
|
label,
|
|
1909
|
-
selected && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontWeight: 400, color: "var(--
|
|
1905
|
+
selected && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontWeight: 400, color: "var(--sk-text-secondary)", marginLeft: 6 }, children: [
|
|
1910
1906
|
"\u2014 ",
|
|
1911
1907
|
selected.options?.Size || selected.name
|
|
1912
1908
|
] })
|
|
@@ -1928,10 +1924,10 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1928
1924
|
style: {
|
|
1929
1925
|
position: "relative",
|
|
1930
1926
|
padding: variantOutOfStock ? "0.375rem 1rem 0.25rem" : "0.5rem 1rem",
|
|
1931
|
-
borderRadius: "var(--
|
|
1932
|
-
border: isSelected ? "2px solid var(--
|
|
1933
|
-
backgroundColor: isSelected ? "color-mix(in srgb, var(--
|
|
1934
|
-
color: variantOutOfStock ? "var(--
|
|
1927
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
1928
|
+
border: isSelected ? "2px solid var(--sk-primary)" : variantOutOfStock ? "1px solid var(--sk-border)" : "1px solid var(--sk-border)",
|
|
1929
|
+
backgroundColor: isSelected ? "color-mix(in srgb, var(--sk-primary) 8%, transparent)" : variantOutOfStock ? "var(--sk-bg-elevated)" : "var(--sk-bg-elevated)",
|
|
1930
|
+
color: variantOutOfStock ? "var(--sk-text-secondary)" : "var(--sk-text-primary)",
|
|
1935
1931
|
fontSize: "0.875rem",
|
|
1936
1932
|
fontWeight: 500,
|
|
1937
1933
|
cursor: variantOutOfStock ? "not-allowed" : "pointer",
|
|
@@ -1949,7 +1945,7 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1949
1945
|
variantOutOfStock && /* @__PURE__ */ jsxRuntime.jsx("span", { style: {
|
|
1950
1946
|
fontSize: "0.5625rem",
|
|
1951
1947
|
fontWeight: 600,
|
|
1952
|
-
color: "var(--
|
|
1948
|
+
color: "var(--sk-error)",
|
|
1953
1949
|
textTransform: "uppercase",
|
|
1954
1950
|
letterSpacing: "0.03em",
|
|
1955
1951
|
lineHeight: 1
|
|
@@ -1964,8 +1960,8 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1964
1960
|
width: 8,
|
|
1965
1961
|
height: 8,
|
|
1966
1962
|
borderRadius: "50%",
|
|
1967
|
-
backgroundColor: isLow ? "var(--
|
|
1968
|
-
border: "2px solid var(--
|
|
1963
|
+
backgroundColor: isLow ? "var(--sk-warning)" : "var(--sk-success)",
|
|
1964
|
+
border: "2px solid var(--sk-bg-elevated)"
|
|
1969
1965
|
},
|
|
1970
1966
|
title: isLow ? `Only ${variant.inventory_count} left` : "In stock"
|
|
1971
1967
|
}
|
|
@@ -1986,7 +1982,7 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
1986
1982
|
display: "block",
|
|
1987
1983
|
fontSize: "0.875rem",
|
|
1988
1984
|
fontWeight: 600,
|
|
1989
|
-
color: "var(--
|
|
1985
|
+
color: "var(--sk-text-primary)",
|
|
1990
1986
|
marginBottom: "0.5rem"
|
|
1991
1987
|
},
|
|
1992
1988
|
children: "Quantity"
|
|
@@ -1998,8 +1994,8 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
1998
1994
|
style: {
|
|
1999
1995
|
display: "inline-flex",
|
|
2000
1996
|
alignItems: "center",
|
|
2001
|
-
border: "1px solid var(--
|
|
2002
|
-
borderRadius: "var(--
|
|
1997
|
+
border: "1px solid var(--sk-border)",
|
|
1998
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2003
1999
|
overflow: "hidden"
|
|
2004
2000
|
},
|
|
2005
2001
|
children: [
|
|
@@ -2013,14 +2009,14 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
2013
2009
|
width: 40,
|
|
2014
2010
|
height: 40,
|
|
2015
2011
|
border: "none",
|
|
2016
|
-
background: "var(--
|
|
2012
|
+
background: "var(--sk-bg-elevated)",
|
|
2017
2013
|
fontSize: "1.125rem",
|
|
2018
2014
|
cursor: quantity <= 1 ? "not-allowed" : "pointer",
|
|
2019
2015
|
opacity: quantity <= 1 ? 0.4 : 1,
|
|
2020
2016
|
display: "flex",
|
|
2021
2017
|
alignItems: "center",
|
|
2022
2018
|
justifyContent: "center",
|
|
2023
|
-
color: "var(--
|
|
2019
|
+
color: "var(--sk-text-primary)"
|
|
2024
2020
|
},
|
|
2025
2021
|
children: "-"
|
|
2026
2022
|
}
|
|
@@ -2042,11 +2038,11 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
2042
2038
|
height: 40,
|
|
2043
2039
|
textAlign: "center",
|
|
2044
2040
|
border: "none",
|
|
2045
|
-
borderLeft: "1px solid var(--
|
|
2046
|
-
borderRight: "1px solid var(--
|
|
2041
|
+
borderLeft: "1px solid var(--sk-border)",
|
|
2042
|
+
borderRight: "1px solid var(--sk-border)",
|
|
2047
2043
|
fontSize: "0.9375rem",
|
|
2048
2044
|
fontWeight: 500,
|
|
2049
|
-
color: "var(--
|
|
2045
|
+
color: "var(--sk-text-primary)",
|
|
2050
2046
|
outline: "none",
|
|
2051
2047
|
MozAppearance: "textfield",
|
|
2052
2048
|
appearance: "textfield"
|
|
@@ -2063,14 +2059,14 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
2063
2059
|
width: 40,
|
|
2064
2060
|
height: 40,
|
|
2065
2061
|
border: "none",
|
|
2066
|
-
background: "var(--
|
|
2062
|
+
background: "var(--sk-bg-elevated)",
|
|
2067
2063
|
fontSize: "1.125rem",
|
|
2068
2064
|
cursor: quantity >= max ? "not-allowed" : "pointer",
|
|
2069
2065
|
opacity: quantity >= max ? 0.4 : 1,
|
|
2070
2066
|
display: "flex",
|
|
2071
2067
|
alignItems: "center",
|
|
2072
2068
|
justifyContent: "center",
|
|
2073
|
-
color: "var(--
|
|
2069
|
+
color: "var(--sk-text-primary)"
|
|
2074
2070
|
},
|
|
2075
2071
|
children: "+"
|
|
2076
2072
|
}
|
|
@@ -2106,18 +2102,18 @@ function TrustBadges({ badges = DEFAULT_TRUST_BADGES }) {
|
|
|
2106
2102
|
alignItems: "center",
|
|
2107
2103
|
textAlign: "center",
|
|
2108
2104
|
padding: "0.75rem 0.5rem",
|
|
2109
|
-
borderRadius: "var(--
|
|
2110
|
-
background: "var(--
|
|
2105
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2106
|
+
background: "var(--sk-bg-elevated)"
|
|
2111
2107
|
},
|
|
2112
2108
|
children: [
|
|
2113
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--
|
|
2109
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--sk-text-secondary)", marginBottom: 4 }, children: Icon && /* @__PURE__ */ jsxRuntime.jsx(Icon, {}) }),
|
|
2114
2110
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2115
2111
|
"span",
|
|
2116
2112
|
{
|
|
2117
2113
|
style: {
|
|
2118
2114
|
fontSize: "0.75rem",
|
|
2119
2115
|
fontWeight: 600,
|
|
2120
|
-
color: "var(--
|
|
2116
|
+
color: "var(--sk-text-primary)",
|
|
2121
2117
|
lineHeight: 1.3
|
|
2122
2118
|
},
|
|
2123
2119
|
children: badge.label
|
|
@@ -2128,7 +2124,7 @@ function TrustBadges({ badges = DEFAULT_TRUST_BADGES }) {
|
|
|
2128
2124
|
{
|
|
2129
2125
|
style: {
|
|
2130
2126
|
fontSize: "0.6875rem",
|
|
2131
|
-
color: "var(--
|
|
2127
|
+
color: "var(--sk-text-secondary)",
|
|
2132
2128
|
lineHeight: 1.3
|
|
2133
2129
|
},
|
|
2134
2130
|
children: badge.sublabel
|
|
@@ -2190,7 +2186,7 @@ function ProductTabs({
|
|
|
2190
2186
|
"li",
|
|
2191
2187
|
{
|
|
2192
2188
|
style: {
|
|
2193
|
-
color: "var(--
|
|
2189
|
+
color: "var(--sk-text-secondary)",
|
|
2194
2190
|
fontSize: "0.9375rem",
|
|
2195
2191
|
lineHeight: 1.6
|
|
2196
2192
|
},
|
|
@@ -2215,7 +2211,7 @@ function ProductTabs({
|
|
|
2215
2211
|
{
|
|
2216
2212
|
style: {
|
|
2217
2213
|
fontSize: "0.875rem",
|
|
2218
|
-
color: "var(--
|
|
2214
|
+
color: "var(--sk-text-secondary)",
|
|
2219
2215
|
fontWeight: 500
|
|
2220
2216
|
},
|
|
2221
2217
|
children: key
|
|
@@ -2227,7 +2223,7 @@ function ProductTabs({
|
|
|
2227
2223
|
style: {
|
|
2228
2224
|
margin: 0,
|
|
2229
2225
|
fontSize: "0.875rem",
|
|
2230
|
-
color: "var(--
|
|
2226
|
+
color: "var(--sk-text-primary)"
|
|
2231
2227
|
},
|
|
2232
2228
|
children: value
|
|
2233
2229
|
}
|
|
@@ -2241,7 +2237,7 @@ function ProductTabs({
|
|
|
2241
2237
|
id: "skc-tabpanel-description",
|
|
2242
2238
|
role: "tabpanel",
|
|
2243
2239
|
style: {
|
|
2244
|
-
color: "var(--
|
|
2240
|
+
color: "var(--sk-text-secondary)",
|
|
2245
2241
|
lineHeight: 1.7,
|
|
2246
2242
|
fontSize: "0.9375rem"
|
|
2247
2243
|
},
|
|
@@ -2260,14 +2256,14 @@ function EventInfoBlock({ product, schedule }) {
|
|
|
2260
2256
|
style: {
|
|
2261
2257
|
marginTop: "1.25rem",
|
|
2262
2258
|
padding: "1rem",
|
|
2263
|
-
borderRadius: "var(--
|
|
2264
|
-
background: "var(--
|
|
2259
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2260
|
+
background: "var(--sk-bg-elevated)",
|
|
2265
2261
|
display: "flex",
|
|
2266
2262
|
flexDirection: "column",
|
|
2267
2263
|
gap: "0.5rem"
|
|
2268
2264
|
},
|
|
2269
2265
|
children: [
|
|
2270
|
-
schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--
|
|
2266
|
+
schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
2271
2267
|
/* @__PURE__ */ jsxRuntime.jsx(IconCalendar, {}),
|
|
2272
2268
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
2273
2269
|
formatDate(schedule.starts_at),
|
|
@@ -2275,17 +2271,17 @@ function EventInfoBlock({ product, schedule }) {
|
|
|
2275
2271
|
formatTime(schedule.starts_at)
|
|
2276
2272
|
] })
|
|
2277
2273
|
] }),
|
|
2278
|
-
product.location && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--
|
|
2274
|
+
product.location && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
2279
2275
|
/* @__PURE__ */ jsxRuntime.jsx(IconMapPin, {}),
|
|
2280
2276
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: product.location })
|
|
2281
2277
|
] }),
|
|
2282
|
-
product.is_virtual && product.virtual_meeting_url && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--
|
|
2278
|
+
product.is_virtual && product.virtual_meeting_url && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--sk-primary)" }, children: [
|
|
2283
2279
|
/* @__PURE__ */ jsxRuntime.jsx(IconExternalLink, {}),
|
|
2284
2280
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Virtual Event" })
|
|
2285
2281
|
] }),
|
|
2286
|
-
schedule?.capacity != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--
|
|
2282
|
+
schedule?.capacity != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
2287
2283
|
/* @__PURE__ */ jsxRuntime.jsx(IconUsers, {}),
|
|
2288
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: soldOut ? /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--
|
|
2284
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: soldOut ? /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--sk-error)", fontWeight: 600 }, children: "Sold Out" }) : schedule.spots_remaining != null && schedule.spots_remaining <= 10 ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "skc-pulse", style: { color: "var(--sk-warning)", fontWeight: 600 }, children: [
|
|
2289
2285
|
"Only ",
|
|
2290
2286
|
schedule.spots_remaining,
|
|
2291
2287
|
" spot",
|
|
@@ -2319,9 +2315,9 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2319
2315
|
onNext();
|
|
2320
2316
|
};
|
|
2321
2317
|
return /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2322
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--
|
|
2318
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: "Contact Information" }),
|
|
2323
2319
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2324
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2320
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Full Name *" }),
|
|
2325
2321
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2326
2322
|
"input",
|
|
2327
2323
|
{
|
|
@@ -2336,7 +2332,7 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2336
2332
|
)
|
|
2337
2333
|
] }),
|
|
2338
2334
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2339
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2335
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Email Address *" }),
|
|
2340
2336
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2341
2337
|
"input",
|
|
2342
2338
|
{
|
|
@@ -2350,7 +2346,7 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2350
2346
|
)
|
|
2351
2347
|
] }),
|
|
2352
2348
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2353
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2349
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Phone Number" }),
|
|
2354
2350
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2355
2351
|
"input",
|
|
2356
2352
|
{
|
|
@@ -2370,10 +2366,10 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2370
2366
|
onClick: onBack,
|
|
2371
2367
|
style: {
|
|
2372
2368
|
padding: "0.75rem 1.25rem",
|
|
2373
|
-
borderRadius: "var(--
|
|
2374
|
-
border: "1px solid var(--
|
|
2375
|
-
background: "
|
|
2376
|
-
color: "var(--
|
|
2369
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2370
|
+
border: "1px solid var(--sk-border)",
|
|
2371
|
+
background: "var(--sk-bg)",
|
|
2372
|
+
color: "var(--sk-text-secondary)",
|
|
2377
2373
|
fontSize: "0.875rem",
|
|
2378
2374
|
fontWeight: 500,
|
|
2379
2375
|
cursor: "pointer"
|
|
@@ -2394,9 +2390,9 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2394
2390
|
onChange({ ...address, [field]: value });
|
|
2395
2391
|
};
|
|
2396
2392
|
return /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2397
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--
|
|
2393
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: "Shipping Address" }),
|
|
2398
2394
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2399
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2395
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Street Address *" }),
|
|
2400
2396
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2401
2397
|
"input",
|
|
2402
2398
|
{
|
|
@@ -2411,7 +2407,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2411
2407
|
)
|
|
2412
2408
|
] }),
|
|
2413
2409
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2414
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2410
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Apt / Suite" }),
|
|
2415
2411
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2416
2412
|
"input",
|
|
2417
2413
|
{
|
|
@@ -2425,7 +2421,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2425
2421
|
] }),
|
|
2426
2422
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.75rem" }, children: [
|
|
2427
2423
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2428
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2424
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "City *" }),
|
|
2429
2425
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2430
2426
|
"input",
|
|
2431
2427
|
{
|
|
@@ -2439,7 +2435,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2439
2435
|
)
|
|
2440
2436
|
] }),
|
|
2441
2437
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2442
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2438
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "State *" }),
|
|
2443
2439
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2444
2440
|
"input",
|
|
2445
2441
|
{
|
|
@@ -2455,7 +2451,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2455
2451
|
] }),
|
|
2456
2452
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.75rem" }, children: [
|
|
2457
2453
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2458
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2454
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "ZIP Code *" }),
|
|
2459
2455
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2460
2456
|
"input",
|
|
2461
2457
|
{
|
|
@@ -2469,7 +2465,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2469
2465
|
)
|
|
2470
2466
|
] }),
|
|
2471
2467
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2472
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2468
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Country" }),
|
|
2473
2469
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2474
2470
|
"input",
|
|
2475
2471
|
{
|
|
@@ -2490,10 +2486,10 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2490
2486
|
onClick: onBack,
|
|
2491
2487
|
style: {
|
|
2492
2488
|
padding: "0.75rem 1.25rem",
|
|
2493
|
-
borderRadius: "var(--
|
|
2494
|
-
border: "1px solid var(--
|
|
2495
|
-
background: "
|
|
2496
|
-
color: "var(--
|
|
2489
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2490
|
+
border: "1px solid var(--sk-border)",
|
|
2491
|
+
background: "var(--sk-bg)",
|
|
2492
|
+
color: "var(--sk-text-secondary)",
|
|
2497
2493
|
fontSize: "0.875rem",
|
|
2498
2494
|
fontWeight: 500,
|
|
2499
2495
|
cursor: "pointer"
|
|
@@ -2514,20 +2510,20 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2514
2510
|
style: {
|
|
2515
2511
|
width: 32,
|
|
2516
2512
|
height: 32,
|
|
2517
|
-
border: "3px solid var(--
|
|
2518
|
-
borderTopColor: "var(--
|
|
2513
|
+
border: "3px solid var(--sk-border)",
|
|
2514
|
+
borderTopColor: "var(--sk-primary)",
|
|
2519
2515
|
borderRadius: "50%",
|
|
2520
2516
|
animation: "skc-spin 1s linear infinite",
|
|
2521
2517
|
margin: "0 auto 1rem"
|
|
2522
2518
|
}
|
|
2523
2519
|
}
|
|
2524
2520
|
),
|
|
2525
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--
|
|
2521
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--sk-text-secondary)", fontSize: "0.875rem", margin: 0 }, children: "Calculating shipping rates..." })
|
|
2526
2522
|
] });
|
|
2527
2523
|
}
|
|
2528
2524
|
if (!rates.length) {
|
|
2529
2525
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "1.5rem 0" }, children: [
|
|
2530
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--
|
|
2526
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--sk-text-secondary)", fontSize: "0.875rem", margin: "0 0 1rem" }, children: "No shipping rates available for this address. Please check your address and try again." }),
|
|
2531
2527
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2532
2528
|
"button",
|
|
2533
2529
|
{
|
|
@@ -2535,10 +2531,10 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2535
2531
|
onClick: onBack,
|
|
2536
2532
|
style: {
|
|
2537
2533
|
padding: "0.75rem 1.5rem",
|
|
2538
|
-
borderRadius: "var(--
|
|
2539
|
-
border: "1px solid var(--
|
|
2540
|
-
background: "
|
|
2541
|
-
color: "var(--
|
|
2534
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2535
|
+
border: "1px solid var(--sk-border)",
|
|
2536
|
+
background: "var(--sk-bg)",
|
|
2537
|
+
color: "var(--sk-text-secondary)",
|
|
2542
2538
|
fontSize: "0.875rem",
|
|
2543
2539
|
fontWeight: 500,
|
|
2544
2540
|
cursor: "pointer"
|
|
@@ -2549,7 +2545,7 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2549
2545
|
] });
|
|
2550
2546
|
}
|
|
2551
2547
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2552
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--
|
|
2548
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: "Shipping Method" }),
|
|
2553
2549
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, role: "radiogroup", "aria-label": "Shipping options", children: rates.map((rate, idx) => {
|
|
2554
2550
|
const isSelected = selected?.objectId === rate.objectId || selected === null && idx === 0;
|
|
2555
2551
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -2563,23 +2559,23 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2563
2559
|
alignItems: "center",
|
|
2564
2560
|
justifyContent: "space-between",
|
|
2565
2561
|
padding: "0.875rem 1rem",
|
|
2566
|
-
borderRadius: "var(--
|
|
2567
|
-
border: isSelected ? "2px solid var(--
|
|
2568
|
-
background: isSelected ? "rgba(
|
|
2562
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2563
|
+
border: isSelected ? "2px solid var(--sk-primary)" : "1px solid var(--sk-border)",
|
|
2564
|
+
background: isSelected ? "rgba(var(--sk-primary-rgb), 0.03)" : "var(--sk-bg)",
|
|
2569
2565
|
cursor: "pointer",
|
|
2570
2566
|
textAlign: "left",
|
|
2571
2567
|
width: "100%"
|
|
2572
2568
|
},
|
|
2573
2569
|
children: [
|
|
2574
2570
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
2575
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.875rem", fontWeight: 600, color: "var(--
|
|
2571
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { fontSize: "0.875rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: [
|
|
2576
2572
|
rate.carrier,
|
|
2577
2573
|
" \u2014 ",
|
|
2578
2574
|
rate.service
|
|
2579
2575
|
] }),
|
|
2580
|
-
rate.estimatedDays != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "0.8125rem", color: "var(--
|
|
2576
|
+
rate.estimatedDays != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "0.8125rem", color: "var(--sk-text-secondary)", marginTop: 2 }, children: rate.estimatedDays === 1 ? "1 business day" : `${rate.estimatedDays} business days` })
|
|
2581
2577
|
] }),
|
|
2582
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--
|
|
2578
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: formatPrice(parseFloat(rate.amount), rate.currency || currency) })
|
|
2583
2579
|
]
|
|
2584
2580
|
},
|
|
2585
2581
|
rate.objectId || idx
|
|
@@ -2593,10 +2589,10 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2593
2589
|
onClick: onBack,
|
|
2594
2590
|
style: {
|
|
2595
2591
|
padding: "0.75rem 1.25rem",
|
|
2596
|
-
borderRadius: "var(--
|
|
2597
|
-
border: "1px solid var(--
|
|
2598
|
-
background: "
|
|
2599
|
-
color: "var(--
|
|
2592
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2593
|
+
border: "1px solid var(--sk-border)",
|
|
2594
|
+
background: "var(--sk-bg)",
|
|
2595
|
+
color: "var(--sk-text-secondary)",
|
|
2600
2596
|
fontSize: "0.875rem",
|
|
2601
2597
|
fontWeight: 500,
|
|
2602
2598
|
cursor: "pointer"
|
|
@@ -2819,21 +2815,21 @@ function PaymentStep({
|
|
|
2819
2815
|
}
|
|
2820
2816
|
};
|
|
2821
2817
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
2822
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--
|
|
2818
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: "Payment" }),
|
|
2823
2819
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2824
2820
|
"div",
|
|
2825
2821
|
{
|
|
2826
2822
|
style: {
|
|
2827
2823
|
padding: "1rem",
|
|
2828
|
-
borderRadius: "var(--
|
|
2829
|
-
background: "var(--
|
|
2824
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2825
|
+
background: "var(--sk-bg-elevated)",
|
|
2830
2826
|
display: "flex",
|
|
2831
2827
|
flexDirection: "column",
|
|
2832
2828
|
gap: "0.375rem",
|
|
2833
2829
|
fontSize: "0.875rem"
|
|
2834
2830
|
},
|
|
2835
2831
|
children: [
|
|
2836
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--
|
|
2832
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--sk-text-secondary)" }, children: [
|
|
2837
2833
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
2838
2834
|
product.name,
|
|
2839
2835
|
" ",
|
|
@@ -2843,7 +2839,7 @@ function PaymentStep({
|
|
|
2843
2839
|
] }),
|
|
2844
2840
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: formatPrice(subtotal, product.currency) })
|
|
2845
2841
|
] }),
|
|
2846
|
-
shippingRate && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--
|
|
2842
|
+
shippingRate && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--sk-text-secondary)" }, children: [
|
|
2847
2843
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
2848
2844
|
"Shipping (",
|
|
2849
2845
|
shippingRate.carrier,
|
|
@@ -2860,10 +2856,10 @@ function PaymentStep({
|
|
|
2860
2856
|
display: "flex",
|
|
2861
2857
|
justifyContent: "space-between",
|
|
2862
2858
|
fontWeight: 700,
|
|
2863
|
-
color: "var(--
|
|
2859
|
+
color: "var(--sk-text-primary)",
|
|
2864
2860
|
fontSize: "1rem",
|
|
2865
2861
|
paddingTop: "0.5rem",
|
|
2866
|
-
borderTop: "1px solid var(--
|
|
2862
|
+
borderTop: "1px solid var(--sk-border)",
|
|
2867
2863
|
marginTop: "0.25rem"
|
|
2868
2864
|
},
|
|
2869
2865
|
children: [
|
|
@@ -2883,7 +2879,7 @@ function PaymentStep({
|
|
|
2883
2879
|
display: "block",
|
|
2884
2880
|
fontSize: "0.8125rem",
|
|
2885
2881
|
fontWeight: 500,
|
|
2886
|
-
color: "var(--
|
|
2882
|
+
color: "var(--sk-text-secondary)",
|
|
2887
2883
|
marginBottom: 6
|
|
2888
2884
|
},
|
|
2889
2885
|
children: "Card Details"
|
|
@@ -2896,14 +2892,14 @@ function PaymentStep({
|
|
|
2896
2892
|
ref: cardContainerRef,
|
|
2897
2893
|
style: {
|
|
2898
2894
|
minHeight: processor === "stripe" ? 80 : 44,
|
|
2899
|
-
border: "1px solid var(--
|
|
2900
|
-
borderRadius: "var(--
|
|
2895
|
+
border: "1px solid var(--sk-border)",
|
|
2896
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2901
2897
|
padding: processor === "stripe" ? "0.75rem" : "0.5rem 0.75rem",
|
|
2902
|
-
background: "
|
|
2898
|
+
background: "var(--sk-bg)"
|
|
2903
2899
|
}
|
|
2904
2900
|
}
|
|
2905
2901
|
),
|
|
2906
|
-
!cardReady && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "0.75rem", color: "var(--
|
|
2902
|
+
!cardReady && !error && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)", marginTop: 4, marginBottom: 0 }, children: "Loading secure payment form..." })
|
|
2907
2903
|
] }),
|
|
2908
2904
|
error && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2909
2905
|
"div",
|
|
@@ -2913,10 +2909,10 @@ function PaymentStep({
|
|
|
2913
2909
|
alignItems: "flex-start",
|
|
2914
2910
|
gap: 8,
|
|
2915
2911
|
padding: "0.75rem",
|
|
2916
|
-
background: "
|
|
2917
|
-
border: "1px solid
|
|
2918
|
-
borderRadius: "var(--
|
|
2919
|
-
color: "var(--
|
|
2912
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
2913
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
2914
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2915
|
+
color: "var(--sk-error)",
|
|
2920
2916
|
fontSize: "0.875rem"
|
|
2921
2917
|
},
|
|
2922
2918
|
children: [
|
|
@@ -2934,10 +2930,10 @@ function PaymentStep({
|
|
|
2934
2930
|
disabled: submitting,
|
|
2935
2931
|
style: {
|
|
2936
2932
|
padding: "0.75rem 1.25rem",
|
|
2937
|
-
borderRadius: "var(--
|
|
2938
|
-
border: "1px solid var(--
|
|
2939
|
-
background: "
|
|
2940
|
-
color: "var(--
|
|
2933
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2934
|
+
border: "1px solid var(--sk-border)",
|
|
2935
|
+
background: "var(--sk-bg)",
|
|
2936
|
+
color: "var(--sk-text-secondary)",
|
|
2941
2937
|
fontSize: "0.875rem",
|
|
2942
2938
|
fontWeight: 500,
|
|
2943
2939
|
cursor: submitting ? "not-allowed" : "pointer",
|
|
@@ -2984,7 +2980,7 @@ function PaymentStep({
|
|
|
2984
2980
|
style: {
|
|
2985
2981
|
textAlign: "center",
|
|
2986
2982
|
fontSize: "0.6875rem",
|
|
2987
|
-
color: "var(--
|
|
2983
|
+
color: "var(--sk-text-secondary)",
|
|
2988
2984
|
margin: "0.25rem 0 0"
|
|
2989
2985
|
},
|
|
2990
2986
|
children: [
|
|
@@ -3025,7 +3021,7 @@ function SuccessStep({ result, product, onClose }) {
|
|
|
3025
3021
|
height: "32",
|
|
3026
3022
|
viewBox: "0 0 24 24",
|
|
3027
3023
|
fill: "none",
|
|
3028
|
-
stroke: "var(--
|
|
3024
|
+
stroke: "var(--sk-success)",
|
|
3029
3025
|
strokeWidth: "2.5",
|
|
3030
3026
|
strokeLinecap: "round",
|
|
3031
3027
|
strokeLinejoin: "round",
|
|
@@ -3047,21 +3043,21 @@ function SuccessStep({ result, product, onClose }) {
|
|
|
3047
3043
|
margin: "0 0 0.5rem",
|
|
3048
3044
|
fontSize: "1.375rem",
|
|
3049
3045
|
fontWeight: 700,
|
|
3050
|
-
color: "var(--
|
|
3046
|
+
color: "var(--sk-success)"
|
|
3051
3047
|
},
|
|
3052
3048
|
children: "Order Confirmed!"
|
|
3053
3049
|
}
|
|
3054
3050
|
),
|
|
3055
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { style: { color: "var(--
|
|
3051
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { style: { color: "var(--sk-text-secondary)", margin: "0 0 0.5rem", fontSize: "0.9375rem" }, children: [
|
|
3056
3052
|
"Thank you for your purchase of ",
|
|
3057
3053
|
product.name,
|
|
3058
3054
|
"."
|
|
3059
3055
|
] }),
|
|
3060
|
-
result.confirmation_number && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: { color: "var(--
|
|
3056
|
+
result.confirmation_number && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: { color: "var(--sk-text-secondary)", margin: "0 0 1rem", fontSize: "0.8125rem" }, children: [
|
|
3061
3057
|
"Confirmation: ",
|
|
3062
|
-
/* @__PURE__ */ jsxRuntime.jsx("strong", { style: { color: "var(--
|
|
3058
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { style: { color: "var(--sk-text-primary)" }, children: result.confirmation_number })
|
|
3063
3059
|
] }),
|
|
3064
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--
|
|
3060
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--sk-text-secondary)", margin: "0 0 1.5rem", fontSize: "0.875rem" }, children: "A confirmation email has been sent to your inbox." }),
|
|
3065
3061
|
/* @__PURE__ */ jsxRuntime.jsx("button", { className: "skc-btn-primary", onClick: onClose, style: { maxWidth: 240 }, children: "Done" })
|
|
3066
3062
|
]
|
|
3067
3063
|
}
|
|
@@ -3111,7 +3107,7 @@ function ProductDetail({
|
|
|
3111
3107
|
const [checkoutError, setCheckoutError] = React5.useState(null);
|
|
3112
3108
|
const [showStickyBar, setShowStickyBar] = React5.useState(false);
|
|
3113
3109
|
const buyButtonRef = React5.useRef(null);
|
|
3114
|
-
const analytics =
|
|
3110
|
+
const analytics = chunkRO6DHV6S_js.useAnalyticsOptional();
|
|
3115
3111
|
React5.useEffect(() => {
|
|
3116
3112
|
if (propProduct) {
|
|
3117
3113
|
setProduct(propProduct);
|
|
@@ -3243,8 +3239,8 @@ function ProductDetail({
|
|
|
3243
3239
|
style: {
|
|
3244
3240
|
width: 48,
|
|
3245
3241
|
height: 48,
|
|
3246
|
-
border: "3px solid var(--
|
|
3247
|
-
borderTopColor: "var(--
|
|
3242
|
+
border: "3px solid var(--sk-border)",
|
|
3243
|
+
borderTopColor: "var(--sk-primary)",
|
|
3248
3244
|
borderRadius: "50%",
|
|
3249
3245
|
animation: "skc-spin 1s linear infinite"
|
|
3250
3246
|
}
|
|
@@ -3254,8 +3250,8 @@ function ProductDetail({
|
|
|
3254
3250
|
}
|
|
3255
3251
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `skc-detail ${className}`, style: customStyle, children: [
|
|
3256
3252
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: STYLE_BLOCK }),
|
|
3257
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "4rem 2rem", color: "var(--
|
|
3258
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: 0, fontSize: "1.5rem", color: "var(--
|
|
3253
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "4rem 2rem", color: "var(--sk-text-secondary)" }, children: [
|
|
3254
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: 0, fontSize: "1.5rem", color: "var(--sk-text-primary)" }, children: "Product Not Found" }),
|
|
3259
3255
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: "0.5rem" }, children: "The product you are looking for does not exist or has been removed." })
|
|
3260
3256
|
] })
|
|
3261
3257
|
] });
|
|
@@ -3425,7 +3421,7 @@ function ProductDetail({
|
|
|
3425
3421
|
style: {
|
|
3426
3422
|
fontSize: "0.75rem",
|
|
3427
3423
|
fontWeight: 600,
|
|
3428
|
-
color: "var(--
|
|
3424
|
+
color: "var(--sk-primary)",
|
|
3429
3425
|
textTransform: "uppercase",
|
|
3430
3426
|
letterSpacing: "0.05em",
|
|
3431
3427
|
marginBottom: "0.375rem"
|
|
@@ -3440,7 +3436,7 @@ function ProductDetail({
|
|
|
3440
3436
|
margin: 0,
|
|
3441
3437
|
fontSize: "1.875rem",
|
|
3442
3438
|
fontWeight: 700,
|
|
3443
|
-
color: "var(--
|
|
3439
|
+
color: "var(--sk-text-primary)",
|
|
3444
3440
|
lineHeight: 1.2
|
|
3445
3441
|
},
|
|
3446
3442
|
children: product.name
|
|
@@ -3453,7 +3449,7 @@ function ProductDetail({
|
|
|
3453
3449
|
marginTop: "0.625rem",
|
|
3454
3450
|
marginBottom: 0,
|
|
3455
3451
|
fontSize: "1rem",
|
|
3456
|
-
color: "var(--
|
|
3452
|
+
color: "var(--sk-text-secondary)",
|
|
3457
3453
|
lineHeight: 1.6
|
|
3458
3454
|
},
|
|
3459
3455
|
children: product.short_description
|
|
@@ -3476,7 +3472,7 @@ function ProductDetail({
|
|
|
3476
3472
|
style: {
|
|
3477
3473
|
fontSize: "1.75rem",
|
|
3478
3474
|
fontWeight: 700,
|
|
3479
|
-
color: hasDiscount ? "var(--
|
|
3475
|
+
color: hasDiscount ? "var(--sk-error)" : "var(--sk-text-primary)"
|
|
3480
3476
|
},
|
|
3481
3477
|
children: formatPrice(currentPrice, product.currency)
|
|
3482
3478
|
}
|
|
@@ -3487,7 +3483,7 @@ function ProductDetail({
|
|
|
3487
3483
|
{
|
|
3488
3484
|
style: {
|
|
3489
3485
|
fontSize: "1.125rem",
|
|
3490
|
-
color: "var(--
|
|
3486
|
+
color: "var(--sk-text-secondary)",
|
|
3491
3487
|
textDecoration: "line-through"
|
|
3492
3488
|
},
|
|
3493
3489
|
children: formatPrice(compareAtPrice, product.currency)
|
|
@@ -3499,8 +3495,8 @@ function ProductDetail({
|
|
|
3499
3495
|
style: {
|
|
3500
3496
|
fontSize: "0.75rem",
|
|
3501
3497
|
fontWeight: 700,
|
|
3502
|
-
color: "var(--
|
|
3503
|
-
background: "var(--
|
|
3498
|
+
color: "var(--sk-bg)",
|
|
3499
|
+
background: "var(--sk-error)",
|
|
3504
3500
|
padding: "2px 8px",
|
|
3505
3501
|
borderRadius: 4
|
|
3506
3502
|
},
|
|
@@ -3512,7 +3508,7 @@ function ProductDetail({
|
|
|
3512
3508
|
}
|
|
3513
3509
|
)
|
|
3514
3510
|
] }),
|
|
3515
|
-
product.billing_period && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.875rem", color: "var(--
|
|
3511
|
+
product.billing_period && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
3516
3512
|
"/ ",
|
|
3517
3513
|
product.billing_period
|
|
3518
3514
|
] })
|
|
@@ -3525,7 +3521,7 @@ function ProductDetail({
|
|
|
3525
3521
|
style: {
|
|
3526
3522
|
fontSize: "0.8125rem",
|
|
3527
3523
|
fontWeight: 600,
|
|
3528
|
-
color: "var(--
|
|
3524
|
+
color: "var(--sk-error)",
|
|
3529
3525
|
display: "flex",
|
|
3530
3526
|
alignItems: "center",
|
|
3531
3527
|
gap: 4
|
|
@@ -3542,7 +3538,7 @@ function ProductDetail({
|
|
|
3542
3538
|
style: {
|
|
3543
3539
|
fontSize: "0.8125rem",
|
|
3544
3540
|
fontWeight: 600,
|
|
3545
|
-
color: "var(--
|
|
3541
|
+
color: "var(--sk-warning)",
|
|
3546
3542
|
display: "flex",
|
|
3547
3543
|
alignItems: "center",
|
|
3548
3544
|
gap: 4
|
|
@@ -3560,7 +3556,7 @@ function ProductDetail({
|
|
|
3560
3556
|
style: {
|
|
3561
3557
|
fontSize: "0.8125rem",
|
|
3562
3558
|
fontWeight: 500,
|
|
3563
|
-
color: "var(--
|
|
3559
|
+
color: "var(--sk-success)",
|
|
3564
3560
|
display: "flex",
|
|
3565
3561
|
alignItems: "center",
|
|
3566
3562
|
gap: 4
|
|
@@ -3588,7 +3584,7 @@ function ProductDetail({
|
|
|
3588
3584
|
style: {
|
|
3589
3585
|
marginTop: "0.5rem",
|
|
3590
3586
|
fontSize: "0.8125rem",
|
|
3591
|
-
color: "var(--
|
|
3587
|
+
color: "var(--sk-text-secondary)",
|
|
3592
3588
|
fontStyle: "italic"
|
|
3593
3589
|
},
|
|
3594
3590
|
children: product.metadata.sizing_notes
|
|
@@ -3600,14 +3596,14 @@ function ProductDetail({
|
|
|
3600
3596
|
style: {
|
|
3601
3597
|
marginTop: "0.75rem",
|
|
3602
3598
|
padding: "0.625rem 0.875rem",
|
|
3603
|
-
borderRadius: "var(--
|
|
3604
|
-
backgroundColor: "color-mix(in srgb, var(--
|
|
3605
|
-
border: "1px solid color-mix(in srgb, var(--
|
|
3599
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3600
|
+
backgroundColor: "color-mix(in srgb, var(--sk-warning) 10%, transparent)",
|
|
3601
|
+
border: "1px solid color-mix(in srgb, var(--sk-warning) 25%, transparent)",
|
|
3606
3602
|
display: "flex",
|
|
3607
3603
|
alignItems: "flex-start",
|
|
3608
3604
|
gap: "0.5rem",
|
|
3609
3605
|
fontSize: "0.8125rem",
|
|
3610
|
-
color: "var(--
|
|
3606
|
+
color: "var(--sk-warning)",
|
|
3611
3607
|
fontWeight: 500,
|
|
3612
3608
|
lineHeight: 1.4
|
|
3613
3609
|
},
|
|
@@ -3627,14 +3623,14 @@ function ProductDetail({
|
|
|
3627
3623
|
style: {
|
|
3628
3624
|
marginTop: "0.75rem",
|
|
3629
3625
|
padding: "0.625rem 0.875rem",
|
|
3630
|
-
borderRadius: "var(--
|
|
3631
|
-
backgroundColor: "color-mix(in srgb, var(--
|
|
3632
|
-
border: "1px solid color-mix(in srgb, var(--
|
|
3626
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3627
|
+
backgroundColor: "color-mix(in srgb, var(--sk-warning) 10%, transparent)",
|
|
3628
|
+
border: "1px solid color-mix(in srgb, var(--sk-warning) 25%, transparent)",
|
|
3633
3629
|
display: "flex",
|
|
3634
3630
|
alignItems: "flex-start",
|
|
3635
3631
|
gap: "0.5rem",
|
|
3636
3632
|
fontSize: "0.8125rem",
|
|
3637
|
-
color: "var(--
|
|
3633
|
+
color: "var(--sk-warning)",
|
|
3638
3634
|
fontWeight: 500,
|
|
3639
3635
|
lineHeight: 1.4
|
|
3640
3636
|
},
|
|
@@ -3695,10 +3691,10 @@ function ProductDetail({
|
|
|
3695
3691
|
style: {
|
|
3696
3692
|
marginTop: "0.75rem",
|
|
3697
3693
|
padding: "0.75rem",
|
|
3698
|
-
background: "
|
|
3699
|
-
border: "1px solid
|
|
3700
|
-
borderRadius: "var(--
|
|
3701
|
-
color: "var(--
|
|
3694
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
3695
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
3696
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3697
|
+
color: "var(--sk-error)",
|
|
3702
3698
|
fontSize: "0.875rem",
|
|
3703
3699
|
display: "flex",
|
|
3704
3700
|
alignItems: "flex-start",
|
|
@@ -3717,24 +3713,24 @@ function ProductDetail({
|
|
|
3717
3713
|
style: {
|
|
3718
3714
|
marginTop: "1rem",
|
|
3719
3715
|
padding: "0.75rem 1rem",
|
|
3720
|
-
borderRadius: "var(--
|
|
3721
|
-
backgroundColor: "color-mix(in srgb, var(--
|
|
3722
|
-
border: "1px solid color-mix(in srgb, var(--
|
|
3716
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3717
|
+
backgroundColor: "color-mix(in srgb, var(--sk-primary) 6%, transparent)",
|
|
3718
|
+
border: "1px solid color-mix(in srgb, var(--sk-primary) 18%, transparent)",
|
|
3723
3719
|
display: "flex",
|
|
3724
3720
|
alignItems: "flex-start",
|
|
3725
3721
|
gap: "0.625rem",
|
|
3726
3722
|
fontSize: "0.8125rem",
|
|
3727
|
-
color: "var(--
|
|
3723
|
+
color: "var(--sk-text-secondary)",
|
|
3728
3724
|
lineHeight: 1.5
|
|
3729
3725
|
},
|
|
3730
3726
|
children: [
|
|
3731
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "var(--
|
|
3727
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "var(--sk-primary)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0, marginTop: 2 }, children: [
|
|
3732
3728
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z" }),
|
|
3733
3729
|
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
|
|
3734
3730
|
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
|
|
3735
3731
|
] }),
|
|
3736
3732
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
3737
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 600, color: "var(--
|
|
3733
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 600, color: "var(--sk-text-primary)", marginBottom: 2 }, children: "Care Instructions" }),
|
|
3738
3734
|
product.metadata.care_instructions
|
|
3739
3735
|
] })
|
|
3740
3736
|
]
|
|
@@ -3755,8 +3751,8 @@ function ProductDetail({
|
|
|
3755
3751
|
] }),
|
|
3756
3752
|
showStickyBar && checkoutState === "browsing" && !isOutOfStock && !needsVariantSelection && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "skc-sticky-bar", children: [
|
|
3757
3753
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
3758
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 600, fontSize: "0.875rem", color: "var(--
|
|
3759
|
-
product.price_is_public && currentPrice != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 700, fontSize: "1rem", color: hasDiscount ? "var(--
|
|
3754
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 600, fontSize: "0.875rem", color: "var(--sk-text-primary)", lineHeight: 1.2 }, children: product.name }),
|
|
3755
|
+
product.price_is_public && currentPrice != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 700, fontSize: "1rem", color: hasDiscount ? "var(--sk-error)" : "var(--sk-text-primary)" }, children: formatPrice(currentPrice, product.currency) })
|
|
3760
3756
|
] }),
|
|
3761
3757
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3762
3758
|
"button",
|
|
@@ -3799,13 +3795,13 @@ function ProductDetail({
|
|
|
3799
3795
|
height: 32,
|
|
3800
3796
|
borderRadius: "50%",
|
|
3801
3797
|
border: "none",
|
|
3802
|
-
background: "var(--
|
|
3798
|
+
background: "var(--sk-bg-elevated)",
|
|
3803
3799
|
cursor: "pointer",
|
|
3804
3800
|
display: "flex",
|
|
3805
3801
|
alignItems: "center",
|
|
3806
3802
|
justifyContent: "center",
|
|
3807
3803
|
zIndex: 10,
|
|
3808
|
-
color: "var(--
|
|
3804
|
+
color: "var(--sk-text-secondary)"
|
|
3809
3805
|
},
|
|
3810
3806
|
children: /* @__PURE__ */ jsxRuntime.jsx(IconX, {})
|
|
3811
3807
|
}
|
|
@@ -3819,15 +3815,15 @@ function ProductDetail({
|
|
|
3819
3815
|
style: {
|
|
3820
3816
|
width: 48,
|
|
3821
3817
|
height: 48,
|
|
3822
|
-
border: "3px solid var(--
|
|
3823
|
-
borderTopColor: "var(--
|
|
3818
|
+
border: "3px solid var(--sk-border)",
|
|
3819
|
+
borderTopColor: "var(--sk-primary)",
|
|
3824
3820
|
borderRadius: "50%",
|
|
3825
3821
|
animation: "skc-spin 0.8s linear infinite",
|
|
3826
3822
|
margin: "0 auto 1.5rem"
|
|
3827
3823
|
}
|
|
3828
3824
|
}
|
|
3829
3825
|
),
|
|
3830
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--
|
|
3826
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--sk-text-secondary)", fontSize: "0.9375rem", margin: 0 }, children: "Processing your order..." })
|
|
3831
3827
|
] }),
|
|
3832
3828
|
checkoutState === "success" && checkoutResult && /* @__PURE__ */ jsxRuntime.jsx(SuccessStep, { result: checkoutResult, product, onClose: handleCloseCheckout }),
|
|
3833
3829
|
checkoutState === "customer-info" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3889,10 +3885,10 @@ function ProductDetail({
|
|
|
3889
3885
|
style: {
|
|
3890
3886
|
marginTop: "0.75rem",
|
|
3891
3887
|
padding: "0.75rem",
|
|
3892
|
-
background: "
|
|
3893
|
-
border: "1px solid
|
|
3894
|
-
borderRadius: "var(--
|
|
3895
|
-
color: "var(--
|
|
3888
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
3889
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
3890
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3891
|
+
color: "var(--sk-error)",
|
|
3896
3892
|
fontSize: "0.875rem",
|
|
3897
3893
|
display: "flex",
|
|
3898
3894
|
alignItems: "flex-start",
|
|
@@ -4033,7 +4029,7 @@ function ProductGrid({
|
|
|
4033
4029
|
width: "100%",
|
|
4034
4030
|
padding: "0.625rem 1rem",
|
|
4035
4031
|
borderRadius: "8px",
|
|
4036
|
-
border: "1px solid
|
|
4032
|
+
border: "1px solid var(--sk-border)",
|
|
4037
4033
|
fontSize: "0.9375rem"
|
|
4038
4034
|
}
|
|
4039
4035
|
}
|
|
@@ -4047,9 +4043,9 @@ function ProductGrid({
|
|
|
4047
4043
|
style: {
|
|
4048
4044
|
padding: "0.625rem 1rem",
|
|
4049
4045
|
borderRadius: "8px",
|
|
4050
|
-
border: "1px solid
|
|
4046
|
+
border: "1px solid var(--sk-border)",
|
|
4051
4047
|
fontSize: "0.9375rem",
|
|
4052
|
-
backgroundColor: "
|
|
4048
|
+
backgroundColor: "var(--sk-bg)",
|
|
4053
4049
|
minWidth: "150px"
|
|
4054
4050
|
},
|
|
4055
4051
|
children: [
|
|
@@ -4067,9 +4063,9 @@ function ProductGrid({
|
|
|
4067
4063
|
style: {
|
|
4068
4064
|
padding: "0.625rem 1rem",
|
|
4069
4065
|
borderRadius: "8px",
|
|
4070
|
-
border: "1px solid
|
|
4066
|
+
border: "1px solid var(--sk-border)",
|
|
4071
4067
|
fontSize: "0.9375rem",
|
|
4072
|
-
backgroundColor: "
|
|
4068
|
+
backgroundColor: "var(--sk-bg)"
|
|
4073
4069
|
},
|
|
4074
4070
|
children: [
|
|
4075
4071
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "newest", children: "Newest First" }),
|
|
@@ -4084,7 +4080,7 @@ function ProductGrid({
|
|
|
4084
4080
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "site-kit-product-grid__count", style: {
|
|
4085
4081
|
marginLeft: "auto",
|
|
4086
4082
|
fontSize: "0.875rem",
|
|
4087
|
-
color: "
|
|
4083
|
+
color: "var(--sk-text-secondary)"
|
|
4088
4084
|
}, children: [
|
|
4089
4085
|
searchQuery ? filteredProducts.length : total,
|
|
4090
4086
|
" product",
|
|
@@ -4098,7 +4094,7 @@ function ProductGrid({
|
|
|
4098
4094
|
}, children: [
|
|
4099
4095
|
Array.from({ length: skeletonCount }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "site-kit-product-grid__skeleton", style: {
|
|
4100
4096
|
aspectRatio: "1",
|
|
4101
|
-
backgroundColor: "
|
|
4097
|
+
backgroundColor: "var(--sk-surface)",
|
|
4102
4098
|
borderRadius: "12px",
|
|
4103
4099
|
animation: "pulse 2s infinite"
|
|
4104
4100
|
} }, i)),
|
|
@@ -4130,13 +4126,13 @@ function ProductGrid({
|
|
|
4130
4126
|
!loading && filteredProducts.length === 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "site-kit-product-grid__empty", style: {
|
|
4131
4127
|
textAlign: "center",
|
|
4132
4128
|
padding: "4rem 2rem",
|
|
4133
|
-
backgroundColor: "
|
|
4129
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
4134
4130
|
borderRadius: "12px"
|
|
4135
4131
|
}, children: [
|
|
4136
4132
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "3rem", marginBottom: "1rem" }, children: "\u{1F6CD}\uFE0F" }),
|
|
4137
4133
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: {
|
|
4138
4134
|
margin: 0,
|
|
4139
|
-
color: "
|
|
4135
|
+
color: "var(--sk-text-secondary)",
|
|
4140
4136
|
fontSize: "1rem"
|
|
4141
4137
|
}, children: searchQuery ? `No products match "${searchQuery}"` : emptyMessage }),
|
|
4142
4138
|
searchQuery && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4148,8 +4144,8 @@ function ProductGrid({
|
|
|
4148
4144
|
padding: "0.5rem 1rem",
|
|
4149
4145
|
borderRadius: "6px",
|
|
4150
4146
|
border: "none",
|
|
4151
|
-
backgroundColor: "
|
|
4152
|
-
color: "
|
|
4147
|
+
backgroundColor: "var(--sk-primary)",
|
|
4148
|
+
color: "var(--sk-bg)",
|
|
4153
4149
|
fontSize: "0.875rem",
|
|
4154
4150
|
cursor: "pointer"
|
|
4155
4151
|
},
|
|
@@ -4233,8 +4229,8 @@ function ProductPage({
|
|
|
4233
4229
|
}, children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
4234
4230
|
width: "48px",
|
|
4235
4231
|
height: "48px",
|
|
4236
|
-
border: "3px solid
|
|
4237
|
-
borderTopColor: "
|
|
4232
|
+
border: "3px solid var(--sk-border)",
|
|
4233
|
+
borderTopColor: "var(--sk-primary)",
|
|
4238
4234
|
borderRadius: "50%",
|
|
4239
4235
|
animation: "spin 1s linear infinite"
|
|
4240
4236
|
} }) }),
|
|
@@ -4247,8 +4243,8 @@ function ProductPage({
|
|
|
4247
4243
|
padding: "6rem 2rem"
|
|
4248
4244
|
}, children: [
|
|
4249
4245
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "4rem", marginBottom: "1rem" }, children: "\u{1F50D}" }),
|
|
4250
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { style: { margin: 0, fontSize: "2rem", color: "
|
|
4251
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: "0.75rem", color: "
|
|
4246
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { style: { margin: 0, fontSize: "2rem", color: "var(--sk-text-primary)" }, children: "Product Not Found" }),
|
|
4247
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { marginTop: "0.75rem", color: "var(--sk-text-secondary)" }, children: "The product you're looking for doesn't exist or has been removed." }),
|
|
4252
4248
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4253
4249
|
"a",
|
|
4254
4250
|
{
|
|
@@ -4258,8 +4254,8 @@ function ProductPage({
|
|
|
4258
4254
|
marginTop: "1.5rem",
|
|
4259
4255
|
padding: "0.75rem 1.5rem",
|
|
4260
4256
|
borderRadius: "8px",
|
|
4261
|
-
backgroundColor: "
|
|
4262
|
-
color: "
|
|
4257
|
+
backgroundColor: "var(--sk-primary)",
|
|
4258
|
+
color: "var(--sk-bg)",
|
|
4263
4259
|
textDecoration: "none",
|
|
4264
4260
|
fontWeight: 600
|
|
4265
4261
|
},
|
|
@@ -4280,22 +4276,22 @@ function ProductPage({
|
|
|
4280
4276
|
margin: 0,
|
|
4281
4277
|
padding: 0
|
|
4282
4278
|
}, children: [
|
|
4283
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: "/", style: { color: "
|
|
4284
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { style: { color: "
|
|
4285
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: shopBasePath, style: { color: "
|
|
4279
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: "/", style: { color: "var(--sk-text-secondary)", textDecoration: "none" }, children: "Home" }) }),
|
|
4280
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { style: { color: "var(--sk-text-secondary)" }, children: "/" }),
|
|
4281
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: shopBasePath, style: { color: "var(--sk-text-secondary)", textDecoration: "none" }, children: "Shop" }) }),
|
|
4286
4282
|
product.category && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4287
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { style: { color: "
|
|
4283
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { style: { color: "var(--sk-text-secondary)" }, children: "/" }),
|
|
4288
4284
|
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4289
4285
|
"a",
|
|
4290
4286
|
{
|
|
4291
4287
|
href: `${shopBasePath}?category=${product.category.id}`,
|
|
4292
|
-
style: { color: "
|
|
4288
|
+
style: { color: "var(--sk-text-secondary)", textDecoration: "none" },
|
|
4293
4289
|
children: product.category.name
|
|
4294
4290
|
}
|
|
4295
4291
|
) })
|
|
4296
4292
|
] }),
|
|
4297
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { style: { color: "
|
|
4298
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { style: { color: "
|
|
4293
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { style: { color: "var(--sk-text-secondary)" }, children: "/" }),
|
|
4294
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { style: { color: "var(--sk-text-primary)", fontWeight: 500 }, children: product.name })
|
|
4299
4295
|
] }) });
|
|
4300
4296
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-product-page ${className}`, style, children: [
|
|
4301
4297
|
renderHead?.(product),
|
|
@@ -4307,7 +4303,7 @@ function ProductPage({
|
|
|
4307
4303
|
display: "inline-flex",
|
|
4308
4304
|
alignItems: "center",
|
|
4309
4305
|
gap: "0.5rem",
|
|
4310
|
-
color: "
|
|
4306
|
+
color: "var(--sk-text-secondary)",
|
|
4311
4307
|
textDecoration: "none",
|
|
4312
4308
|
fontSize: "0.875rem"
|
|
4313
4309
|
},
|
|
@@ -4336,7 +4332,7 @@ function ProductPage({
|
|
|
4336
4332
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: {
|
|
4337
4333
|
fontSize: "1.5rem",
|
|
4338
4334
|
fontWeight: 600,
|
|
4339
|
-
color: "
|
|
4335
|
+
color: "var(--sk-text-primary)",
|
|
4340
4336
|
marginBottom: "1.5rem"
|
|
4341
4337
|
}, children: product.category ? `More ${product.category.name}` : "Related Products" }),
|
|
4342
4338
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4400,15 +4396,15 @@ function EventEmbed({
|
|
|
4400
4396
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-event-embed ${className}`, style: {
|
|
4401
4397
|
padding: "2rem",
|
|
4402
4398
|
textAlign: "center",
|
|
4403
|
-
background: "
|
|
4399
|
+
background: "var(--sk-bg-elevated)",
|
|
4404
4400
|
borderRadius: "12px"
|
|
4405
4401
|
}, children: [
|
|
4406
4402
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
4407
4403
|
width: "40px",
|
|
4408
4404
|
height: "40px",
|
|
4409
4405
|
margin: "0 auto",
|
|
4410
|
-
border: "3px solid
|
|
4411
|
-
borderTopColor: "
|
|
4406
|
+
border: "3px solid var(--sk-border)",
|
|
4407
|
+
borderTopColor: "var(--sk-primary)",
|
|
4412
4408
|
borderRadius: "50%",
|
|
4413
4409
|
animation: "spin 1s linear infinite"
|
|
4414
4410
|
} }),
|
|
@@ -4482,7 +4478,7 @@ function CheckoutForm({
|
|
|
4482
4478
|
const [discountResult, setDiscountResult] = React5.useState(null);
|
|
4483
4479
|
const [applyingDiscount, setApplyingDiscount] = React5.useState(false);
|
|
4484
4480
|
const isProduct = offering.type === "product";
|
|
4485
|
-
const analytics =
|
|
4481
|
+
const analytics = chunkRO6DHV6S_js.useAnalyticsOptional();
|
|
4486
4482
|
React5.useEffect(() => {
|
|
4487
4483
|
fetchProcessorConfig().then((config) => {
|
|
4488
4484
|
if (config?.processor) setProcessor(config.processor);
|
|
@@ -4607,31 +4603,31 @@ function CheckoutForm({
|
|
|
4607
4603
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-checkout-success ${className}`, style: {
|
|
4608
4604
|
padding: "2rem",
|
|
4609
4605
|
textAlign: "center",
|
|
4610
|
-
background: "
|
|
4606
|
+
background: "rgba(var(--sk-success-rgb, 16,185,129), 0.06)",
|
|
4611
4607
|
borderRadius: "12px",
|
|
4612
|
-
border: "1px solid
|
|
4608
|
+
border: "1px solid rgba(var(--sk-success-rgb, 16,185,129), 0.2)"
|
|
4613
4609
|
}, children: [
|
|
4614
4610
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "3rem", marginBottom: "1rem" }, children: "\u{1F389}" }),
|
|
4615
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: "0 0 0.5rem", color: "
|
|
4616
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "
|
|
4611
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: "0 0 0.5rem", color: "var(--sk-success)" }, children: actualMode === "register" ? "Registration Complete!" : "Order Confirmed!" }),
|
|
4612
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--sk-success)", margin: 0 }, children: actualMode === "register" ? `You're registered for ${offering.name}. Check your email for confirmation.` : `Thank you for your order! Check your email for details.` })
|
|
4617
4613
|
] });
|
|
4618
4614
|
}
|
|
4619
4615
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `site-kit-checkout ${className}`, children: /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, className: formClassName, children: [
|
|
4620
4616
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
4621
4617
|
padding: "1rem",
|
|
4622
|
-
background: "
|
|
4618
|
+
background: "var(--sk-bg-elevated)",
|
|
4623
4619
|
borderRadius: "8px",
|
|
4624
4620
|
marginBottom: "1.5rem"
|
|
4625
4621
|
}, children: [
|
|
4626
4622
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start" }, children: [
|
|
4627
4623
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
4628
4624
|
/* @__PURE__ */ jsxRuntime.jsx("h4", { style: { margin: "0 0 0.25rem", fontSize: "1rem" }, children: offering.name }),
|
|
4629
|
-
offering.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: 0, fontSize: "0.875rem", color: "
|
|
4625
|
+
offering.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: 0, fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: offering.short_description })
|
|
4630
4626
|
] }),
|
|
4631
4627
|
offering.price_is_public && offering.price != null && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 600, fontSize: "1.125rem" }, children: offering.price === 0 ? "Free" : formatPrice(offering.price, offering.currency) })
|
|
4632
4628
|
] }),
|
|
4633
4629
|
showQuantity && !isEvent && offering.price && offering.price > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginTop: "1rem", display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
4634
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { fontSize: "0.875rem", color: "
|
|
4630
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: "Quantity:" }),
|
|
4635
4631
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4636
4632
|
"select",
|
|
4637
4633
|
{
|
|
@@ -4641,8 +4637,8 @@ function CheckoutForm({
|
|
|
4641
4637
|
style: {
|
|
4642
4638
|
padding: "0.375rem 0.75rem",
|
|
4643
4639
|
borderRadius: "6px",
|
|
4644
|
-
border: "1px solid
|
|
4645
|
-
background: "
|
|
4640
|
+
border: "1px solid var(--sk-border)",
|
|
4641
|
+
background: "var(--sk-bg)"
|
|
4646
4642
|
},
|
|
4647
4643
|
children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((n) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: n, children: n }, n))
|
|
4648
4644
|
}
|
|
@@ -4655,13 +4651,13 @@ function CheckoutForm({
|
|
|
4655
4651
|
alignItems: "center",
|
|
4656
4652
|
justifyContent: "space-between",
|
|
4657
4653
|
padding: "0.625rem 0.875rem",
|
|
4658
|
-
background: "
|
|
4659
|
-
border: "1px solid
|
|
4654
|
+
background: "rgba(var(--sk-success-rgb, 16,185,129), 0.06)",
|
|
4655
|
+
border: "1px solid rgba(var(--sk-success-rgb, 16,185,129), 0.2)",
|
|
4660
4656
|
borderRadius: "6px"
|
|
4661
4657
|
}, children: [
|
|
4662
4658
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
4663
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.875rem", fontWeight: 500, color: "
|
|
4664
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.875rem", color: "
|
|
4659
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.875rem", fontWeight: 500, color: "var(--sk-success)" }, children: discountResult.name || discountCode }),
|
|
4660
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.875rem", color: "var(--sk-success)", marginLeft: "0.5rem" }, children: [
|
|
4665
4661
|
"\u2212",
|
|
4666
4662
|
formatPrice(discountAmount, offering.currency)
|
|
4667
4663
|
] })
|
|
@@ -4674,7 +4670,7 @@ function CheckoutForm({
|
|
|
4674
4670
|
style: {
|
|
4675
4671
|
background: "none",
|
|
4676
4672
|
border: "none",
|
|
4677
|
-
color: "
|
|
4673
|
+
color: "var(--sk-error)",
|
|
4678
4674
|
cursor: "pointer",
|
|
4679
4675
|
fontSize: "0.75rem",
|
|
4680
4676
|
fontWeight: 500
|
|
@@ -4695,7 +4691,7 @@ function CheckoutForm({
|
|
|
4695
4691
|
flex: 1,
|
|
4696
4692
|
padding: "0.5rem 0.75rem",
|
|
4697
4693
|
borderRadius: "6px",
|
|
4698
|
-
border: "1px solid
|
|
4694
|
+
border: "1px solid var(--sk-border)",
|
|
4699
4695
|
fontSize: "0.875rem"
|
|
4700
4696
|
}
|
|
4701
4697
|
}
|
|
@@ -4709,8 +4705,8 @@ function CheckoutForm({
|
|
|
4709
4705
|
style: {
|
|
4710
4706
|
padding: "0.5rem 1rem",
|
|
4711
4707
|
borderRadius: "6px",
|
|
4712
|
-
border: "1px solid
|
|
4713
|
-
background: "
|
|
4708
|
+
border: "1px solid var(--sk-border)",
|
|
4709
|
+
background: "var(--sk-bg)",
|
|
4714
4710
|
fontSize: "0.875rem",
|
|
4715
4711
|
fontWeight: 500,
|
|
4716
4712
|
cursor: applyingDiscount || !discountCode.trim() ? "not-allowed" : "pointer",
|
|
@@ -4722,16 +4718,16 @@ function CheckoutForm({
|
|
|
4722
4718
|
] }) }),
|
|
4723
4719
|
discountResult?.valid && !isFree && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
4724
4720
|
padding: "0.75rem 1rem",
|
|
4725
|
-
background: "
|
|
4721
|
+
background: "var(--sk-bg-elevated)",
|
|
4726
4722
|
borderRadius: "6px",
|
|
4727
4723
|
marginBottom: "1.5rem",
|
|
4728
4724
|
fontSize: "0.875rem"
|
|
4729
4725
|
}, children: [
|
|
4730
4726
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: "0.25rem" }, children: [
|
|
4731
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "
|
|
4727
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--sk-text-secondary)" }, children: "Subtotal" }),
|
|
4732
4728
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: formatPrice(subtotal, offering.currency) })
|
|
4733
4729
|
] }),
|
|
4734
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: "0.25rem", color: "
|
|
4730
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: "0.25rem", color: "var(--sk-success)" }, children: [
|
|
4735
4731
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Discount" }),
|
|
4736
4732
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
4737
4733
|
"\u2212",
|
|
@@ -4739,10 +4735,10 @@ function CheckoutForm({
|
|
|
4739
4735
|
] })
|
|
4740
4736
|
] }),
|
|
4741
4737
|
shippingCost > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: "0.25rem" }, children: [
|
|
4742
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "
|
|
4738
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--sk-text-secondary)" }, children: "Shipping" }),
|
|
4743
4739
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: formatPrice(shippingCost, offering.currency) })
|
|
4744
4740
|
] }),
|
|
4745
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", borderTop: "1px solid
|
|
4741
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", borderTop: "1px solid var(--sk-border)", paddingTop: "0.5rem", marginTop: "0.25rem", fontWeight: 600 }, children: [
|
|
4746
4742
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Total" }),
|
|
4747
4743
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: formatPrice(total, offering.currency) })
|
|
4748
4744
|
] })
|
|
@@ -4762,7 +4758,7 @@ function CheckoutForm({
|
|
|
4762
4758
|
width: "100%",
|
|
4763
4759
|
padding: "0.625rem 0.75rem",
|
|
4764
4760
|
borderRadius: "6px",
|
|
4765
|
-
border: "1px solid
|
|
4761
|
+
border: "1px solid var(--sk-border)",
|
|
4766
4762
|
fontSize: "1rem"
|
|
4767
4763
|
}
|
|
4768
4764
|
}
|
|
@@ -4782,7 +4778,7 @@ function CheckoutForm({
|
|
|
4782
4778
|
width: "100%",
|
|
4783
4779
|
padding: "0.625rem 0.75rem",
|
|
4784
4780
|
borderRadius: "6px",
|
|
4785
|
-
border: "1px solid
|
|
4781
|
+
border: "1px solid var(--sk-border)",
|
|
4786
4782
|
fontSize: "1rem"
|
|
4787
4783
|
}
|
|
4788
4784
|
}
|
|
@@ -4801,14 +4797,14 @@ function CheckoutForm({
|
|
|
4801
4797
|
width: "100%",
|
|
4802
4798
|
padding: "0.625rem 0.75rem",
|
|
4803
4799
|
borderRadius: "6px",
|
|
4804
|
-
border: "1px solid
|
|
4800
|
+
border: "1px solid var(--sk-border)",
|
|
4805
4801
|
fontSize: "1rem"
|
|
4806
4802
|
}
|
|
4807
4803
|
}
|
|
4808
4804
|
)
|
|
4809
4805
|
] })
|
|
4810
4806
|
] }),
|
|
4811
|
-
shippingEnabled && !isEvent && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginTop: "1.5rem", paddingTop: "1.5rem", borderTop: "1px solid
|
|
4807
|
+
shippingEnabled && !isEvent && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginTop: "1.5rem", paddingTop: "1.5rem", borderTop: "1px solid var(--sk-border)" }, children: [
|
|
4812
4808
|
/* @__PURE__ */ jsxRuntime.jsx("h4", { style: { margin: "0 0 1rem", fontSize: "1rem" }, children: "Shipping Address" }),
|
|
4813
4809
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
4814
4810
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -4822,7 +4818,7 @@ function CheckoutForm({
|
|
|
4822
4818
|
onChange: (e) => updateShippingAddress("street1", e.target.value),
|
|
4823
4819
|
className: inputClassName,
|
|
4824
4820
|
placeholder: "123 Main St",
|
|
4825
|
-
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4821
|
+
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4826
4822
|
}
|
|
4827
4823
|
)
|
|
4828
4824
|
] }),
|
|
@@ -4835,7 +4831,7 @@ function CheckoutForm({
|
|
|
4835
4831
|
value: shippingAddress.street2 || "",
|
|
4836
4832
|
onChange: (e) => updateShippingAddress("street2", e.target.value),
|
|
4837
4833
|
className: inputClassName,
|
|
4838
|
-
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4834
|
+
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4839
4835
|
}
|
|
4840
4836
|
)
|
|
4841
4837
|
] }),
|
|
@@ -4850,7 +4846,7 @@ function CheckoutForm({
|
|
|
4850
4846
|
value: shippingAddress.city,
|
|
4851
4847
|
onChange: (e) => updateShippingAddress("city", e.target.value),
|
|
4852
4848
|
className: inputClassName,
|
|
4853
|
-
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4849
|
+
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4854
4850
|
}
|
|
4855
4851
|
)
|
|
4856
4852
|
] }),
|
|
@@ -4864,7 +4860,7 @@ function CheckoutForm({
|
|
|
4864
4860
|
value: shippingAddress.state,
|
|
4865
4861
|
onChange: (e) => updateShippingAddress("state", e.target.value),
|
|
4866
4862
|
className: inputClassName,
|
|
4867
|
-
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4863
|
+
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4868
4864
|
}
|
|
4869
4865
|
)
|
|
4870
4866
|
] })
|
|
@@ -4879,7 +4875,7 @@ function CheckoutForm({
|
|
|
4879
4875
|
value: shippingAddress.zip,
|
|
4880
4876
|
onChange: (e) => updateShippingAddress("zip", e.target.value),
|
|
4881
4877
|
className: inputClassName,
|
|
4882
|
-
style: { width: "100%", maxWidth: "120px", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4878
|
+
style: { width: "100%", maxWidth: "120px", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4883
4879
|
}
|
|
4884
4880
|
)
|
|
4885
4881
|
] })
|
|
@@ -4894,9 +4890,9 @@ function CheckoutForm({
|
|
|
4894
4890
|
marginTop: "1rem",
|
|
4895
4891
|
padding: "0.625rem 1.25rem",
|
|
4896
4892
|
borderRadius: "6px",
|
|
4897
|
-
border: "1px solid
|
|
4898
|
-
background: "
|
|
4899
|
-
color: "
|
|
4893
|
+
border: "1px solid var(--sk-primary)",
|
|
4894
|
+
background: "var(--sk-bg)",
|
|
4895
|
+
color: "var(--sk-primary)",
|
|
4900
4896
|
fontSize: "0.875rem",
|
|
4901
4897
|
fontWeight: 500,
|
|
4902
4898
|
cursor: loadingRates ? "not-allowed" : "pointer"
|
|
@@ -4915,8 +4911,8 @@ function CheckoutForm({
|
|
|
4915
4911
|
gap: "0.75rem",
|
|
4916
4912
|
padding: "0.75rem",
|
|
4917
4913
|
borderRadius: "6px",
|
|
4918
|
-
border: `2px solid ${selectedRate === rate ? "
|
|
4919
|
-
background: selectedRate === rate ? "
|
|
4914
|
+
border: `2px solid ${selectedRate === rate ? "var(--sk-primary)" : "var(--sk-border)"}`,
|
|
4915
|
+
background: selectedRate === rate ? "rgba(var(--sk-primary-rgb), 0.06)" : "var(--sk-bg)",
|
|
4920
4916
|
cursor: "pointer"
|
|
4921
4917
|
},
|
|
4922
4918
|
children: [
|
|
@@ -4935,7 +4931,7 @@ function CheckoutForm({
|
|
|
4935
4931
|
rate.service
|
|
4936
4932
|
] }),
|
|
4937
4933
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600 }, children: formatPrice(parseFloat(rate.amount), rate.currency || "USD") }),
|
|
4938
|
-
rate.estimatedDays && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.75rem", color: "
|
|
4934
|
+
rate.estimatedDays && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)" }, children: [
|
|
4939
4935
|
"(",
|
|
4940
4936
|
rate.estimatedDays,
|
|
4941
4937
|
" days)"
|
|
@@ -4952,7 +4948,7 @@ function CheckoutForm({
|
|
|
4952
4948
|
style: {
|
|
4953
4949
|
marginTop: "0.75rem",
|
|
4954
4950
|
fontSize: "0.875rem",
|
|
4955
|
-
color: "
|
|
4951
|
+
color: "var(--sk-text-secondary)",
|
|
4956
4952
|
background: "none",
|
|
4957
4953
|
border: "none",
|
|
4958
4954
|
cursor: "pointer",
|
|
@@ -4966,10 +4962,10 @@ function CheckoutForm({
|
|
|
4966
4962
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
4967
4963
|
marginTop: "1rem",
|
|
4968
4964
|
padding: "0.75rem",
|
|
4969
|
-
background: "
|
|
4970
|
-
border: "1px solid
|
|
4965
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
4966
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
4971
4967
|
borderRadius: "6px",
|
|
4972
|
-
color: "
|
|
4968
|
+
color: "var(--sk-error)",
|
|
4973
4969
|
fontSize: "0.875rem"
|
|
4974
4970
|
}, children: error }),
|
|
4975
4971
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4986,7 +4982,7 @@ function CheckoutForm({
|
|
|
4986
4982
|
fontWeight: 600,
|
|
4987
4983
|
borderRadius: "8px",
|
|
4988
4984
|
border: "none",
|
|
4989
|
-
background: loading ? "
|
|
4985
|
+
background: loading ? "var(--sk-primary-hover)" : "var(--sk-primary)",
|
|
4990
4986
|
color: "white",
|
|
4991
4987
|
cursor: loading ? "not-allowed" : "pointer"
|
|
4992
4988
|
},
|
|
@@ -4996,7 +4992,7 @@ function CheckoutForm({
|
|
|
4996
4992
|
!isFree && /* @__PURE__ */ jsxRuntime.jsx("p", { style: {
|
|
4997
4993
|
textAlign: "center",
|
|
4998
4994
|
fontSize: "0.75rem",
|
|
4999
|
-
color: "
|
|
4995
|
+
color: "var(--sk-text-secondary)",
|
|
5000
4996
|
marginTop: "0.75rem"
|
|
5001
4997
|
}, children: "You'll be redirected to our secure payment page" }),
|
|
5002
4998
|
processor && !isFree && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
@@ -5011,7 +5007,7 @@ function CheckoutForm({
|
|
|
5011
5007
|
/* @__PURE__ */ jsxRuntime.jsx("rect", { width: "24", height: "24", rx: "4", fill: "#3E4348" }),
|
|
5012
5008
|
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "4", y: "4", width: "16", height: "16", rx: "2", fill: "white" })
|
|
5013
5009
|
] }),
|
|
5014
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.625rem", color: "
|
|
5010
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "0.625rem", color: "var(--sk-text-secondary)", letterSpacing: "0.02em" }, children: [
|
|
5015
5011
|
"Powered by ",
|
|
5016
5012
|
processor === "stripe" ? "Stripe" : "Square"
|
|
5017
5013
|
] })
|
|
@@ -5070,13 +5066,13 @@ function RegistrationForm({
|
|
|
5070
5066
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-registration-success ${className}`, style: {
|
|
5071
5067
|
padding: "2rem",
|
|
5072
5068
|
textAlign: "center",
|
|
5073
|
-
background: "
|
|
5069
|
+
background: "rgba(var(--sk-success-rgb, 16,185,129), 0.06)",
|
|
5074
5070
|
borderRadius: "12px",
|
|
5075
|
-
border: "1px solid
|
|
5071
|
+
border: "1px solid rgba(var(--sk-success-rgb, 16,185,129), 0.2)"
|
|
5076
5072
|
}, children: [
|
|
5077
5073
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "3rem", marginBottom: "1rem" }, children: "\u{1F389}" }),
|
|
5078
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: "0 0 0.5rem", color: "
|
|
5079
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "
|
|
5074
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: "0 0 0.5rem", color: "var(--sk-success)" }, children: "You're Registered!" }),
|
|
5075
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--sk-success)", margin: 0 }, children: successMessage || `You've been registered for ${event.name}. Check your email for confirmation.` })
|
|
5080
5076
|
] });
|
|
5081
5077
|
}
|
|
5082
5078
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-registration ${className}`, children: [
|
|
@@ -5097,7 +5093,7 @@ function RegistrationForm({
|
|
|
5097
5093
|
width: "100%",
|
|
5098
5094
|
padding: "0.625rem 0.75rem",
|
|
5099
5095
|
borderRadius: "6px",
|
|
5100
|
-
border: "1px solid
|
|
5096
|
+
border: "1px solid var(--sk-border)",
|
|
5101
5097
|
fontSize: "1rem"
|
|
5102
5098
|
}
|
|
5103
5099
|
}
|
|
@@ -5117,7 +5113,7 @@ function RegistrationForm({
|
|
|
5117
5113
|
width: "100%",
|
|
5118
5114
|
padding: "0.625rem 0.75rem",
|
|
5119
5115
|
borderRadius: "6px",
|
|
5120
|
-
border: "1px solid
|
|
5116
|
+
border: "1px solid var(--sk-border)",
|
|
5121
5117
|
fontSize: "1rem"
|
|
5122
5118
|
}
|
|
5123
5119
|
}
|
|
@@ -5136,7 +5132,7 @@ function RegistrationForm({
|
|
|
5136
5132
|
width: "100%",
|
|
5137
5133
|
padding: "0.625rem 0.75rem",
|
|
5138
5134
|
borderRadius: "6px",
|
|
5139
|
-
border: "1px solid
|
|
5135
|
+
border: "1px solid var(--sk-border)",
|
|
5140
5136
|
fontSize: "1rem"
|
|
5141
5137
|
}
|
|
5142
5138
|
}
|
|
@@ -5160,7 +5156,7 @@ function RegistrationForm({
|
|
|
5160
5156
|
width: "100%",
|
|
5161
5157
|
padding: "0.625rem 0.75rem",
|
|
5162
5158
|
borderRadius: "6px",
|
|
5163
|
-
border: "1px solid
|
|
5159
|
+
border: "1px solid var(--sk-border)",
|
|
5164
5160
|
fontSize: "1rem",
|
|
5165
5161
|
minHeight: "80px"
|
|
5166
5162
|
}
|
|
@@ -5176,9 +5172,9 @@ function RegistrationForm({
|
|
|
5176
5172
|
width: "100%",
|
|
5177
5173
|
padding: "0.625rem 0.75rem",
|
|
5178
5174
|
borderRadius: "6px",
|
|
5179
|
-
border: "1px solid
|
|
5175
|
+
border: "1px solid var(--sk-border)",
|
|
5180
5176
|
fontSize: "1rem",
|
|
5181
|
-
background: "
|
|
5177
|
+
background: "var(--sk-bg)"
|
|
5182
5178
|
},
|
|
5183
5179
|
children: [
|
|
5184
5180
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: "Select..." }),
|
|
@@ -5198,7 +5194,7 @@ function RegistrationForm({
|
|
|
5198
5194
|
width: "100%",
|
|
5199
5195
|
padding: "0.625rem 0.75rem",
|
|
5200
5196
|
borderRadius: "6px",
|
|
5201
|
-
border: "1px solid
|
|
5197
|
+
border: "1px solid var(--sk-border)",
|
|
5202
5198
|
fontSize: "1rem"
|
|
5203
5199
|
}
|
|
5204
5200
|
}
|
|
@@ -5208,10 +5204,10 @@ function RegistrationForm({
|
|
|
5208
5204
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
5209
5205
|
marginTop: "1rem",
|
|
5210
5206
|
padding: "0.75rem",
|
|
5211
|
-
background: "
|
|
5212
|
-
border: "1px solid
|
|
5207
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
5208
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
5213
5209
|
borderRadius: "6px",
|
|
5214
|
-
color: "
|
|
5210
|
+
color: "var(--sk-error)",
|
|
5215
5211
|
fontSize: "0.875rem"
|
|
5216
5212
|
}, children: error }),
|
|
5217
5213
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5228,7 +5224,7 @@ function RegistrationForm({
|
|
|
5228
5224
|
fontWeight: 600,
|
|
5229
5225
|
borderRadius: "8px",
|
|
5230
5226
|
border: "none",
|
|
5231
|
-
background: loading ? "
|
|
5227
|
+
background: loading ? "var(--sk-primary-hover)" : "var(--sk-primary)",
|
|
5232
5228
|
color: "white",
|
|
5233
5229
|
cursor: loading ? "not-allowed" : "pointer"
|
|
5234
5230
|
},
|
|
@@ -5290,7 +5286,7 @@ function CalendarEventCell({
|
|
|
5290
5286
|
borderRadius: "4px",
|
|
5291
5287
|
cursor: "pointer",
|
|
5292
5288
|
overflow: "hidden",
|
|
5293
|
-
background: imageUrl ? "transparent" : "
|
|
5289
|
+
background: imageUrl ? "transparent" : "rgba(var(--sk-primary-rgb), 0.125)"
|
|
5294
5290
|
},
|
|
5295
5291
|
children: imageUrl ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
5296
5292
|
"img",
|
|
@@ -5305,7 +5301,7 @@ function CalendarEventCell({
|
|
|
5305
5301
|
}
|
|
5306
5302
|
) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: {
|
|
5307
5303
|
fontSize: "0.65rem",
|
|
5308
|
-
color: "
|
|
5304
|
+
color: "var(--sk-primary)",
|
|
5309
5305
|
fontWeight: 500,
|
|
5310
5306
|
padding: "2px 4px",
|
|
5311
5307
|
display: "block",
|
|
@@ -5325,8 +5321,8 @@ function CalendarEventCell({
|
|
|
5325
5321
|
left: "50%",
|
|
5326
5322
|
transform: "translateX(-50%) translateY(-4px)",
|
|
5327
5323
|
padding: "8px 12px",
|
|
5328
|
-
background: "
|
|
5329
|
-
color: "
|
|
5324
|
+
background: "var(--sk-text-primary)",
|
|
5325
|
+
color: "var(--sk-bg)",
|
|
5330
5326
|
borderRadius: "8px",
|
|
5331
5327
|
fontSize: "0.75rem",
|
|
5332
5328
|
minWidth: "180px",
|
|
@@ -5367,8 +5363,8 @@ function CalendarEventCell({
|
|
|
5367
5363
|
textAlign: "left",
|
|
5368
5364
|
border: "none",
|
|
5369
5365
|
borderRadius: "3px",
|
|
5370
|
-
background: "
|
|
5371
|
-
color: "
|
|
5366
|
+
background: "rgba(var(--sk-primary-rgb), 0.125)",
|
|
5367
|
+
color: "var(--sk-primary)",
|
|
5372
5368
|
cursor: "pointer",
|
|
5373
5369
|
overflow: "hidden",
|
|
5374
5370
|
whiteSpace: "nowrap",
|
|
@@ -5491,7 +5487,7 @@ function CalendarView({
|
|
|
5491
5487
|
}
|
|
5492
5488
|
};
|
|
5493
5489
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-calendar ${className}`, style: {
|
|
5494
|
-
background: "
|
|
5490
|
+
background: "var(--sk-bg)",
|
|
5495
5491
|
borderRadius: "12px",
|
|
5496
5492
|
overflow: "hidden",
|
|
5497
5493
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
@@ -5505,7 +5501,7 @@ function CalendarView({
|
|
|
5505
5501
|
alignItems: "center",
|
|
5506
5502
|
justifyContent: "space-between",
|
|
5507
5503
|
padding: "1rem 1.25rem",
|
|
5508
|
-
borderBottom: "1px solid
|
|
5504
|
+
borderBottom: "1px solid var(--sk-border)"
|
|
5509
5505
|
},
|
|
5510
5506
|
children: [
|
|
5511
5507
|
showNavigation && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5515,7 +5511,7 @@ function CalendarView({
|
|
|
5515
5511
|
style: {
|
|
5516
5512
|
padding: "0.5rem",
|
|
5517
5513
|
border: "none",
|
|
5518
|
-
background: "
|
|
5514
|
+
background: "var(--sk-surface)",
|
|
5519
5515
|
borderRadius: "6px",
|
|
5520
5516
|
cursor: "pointer",
|
|
5521
5517
|
fontSize: "1.25rem",
|
|
@@ -5541,7 +5537,7 @@ function CalendarView({
|
|
|
5541
5537
|
fontSize: "0.75rem",
|
|
5542
5538
|
border: "none",
|
|
5543
5539
|
background: "transparent",
|
|
5544
|
-
color: "
|
|
5540
|
+
color: "var(--sk-primary)",
|
|
5545
5541
|
cursor: "pointer"
|
|
5546
5542
|
},
|
|
5547
5543
|
children: "Today"
|
|
@@ -5555,7 +5551,7 @@ function CalendarView({
|
|
|
5555
5551
|
style: {
|
|
5556
5552
|
padding: "0.5rem",
|
|
5557
5553
|
border: "none",
|
|
5558
|
-
background: "
|
|
5554
|
+
background: "var(--sk-surface)",
|
|
5559
5555
|
borderRadius: "6px",
|
|
5560
5556
|
cursor: "pointer",
|
|
5561
5557
|
fontSize: "1.25rem",
|
|
@@ -5571,7 +5567,7 @@ function CalendarView({
|
|
|
5571
5567
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
5572
5568
|
display: "grid",
|
|
5573
5569
|
gridTemplateColumns: "repeat(7, 1fr)",
|
|
5574
|
-
borderBottom: "1px solid
|
|
5570
|
+
borderBottom: "1px solid var(--sk-border)"
|
|
5575
5571
|
}, children: dayHeaders.map((day) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5576
5572
|
"div",
|
|
5577
5573
|
{
|
|
@@ -5580,7 +5576,7 @@ function CalendarView({
|
|
|
5580
5576
|
textAlign: "center",
|
|
5581
5577
|
fontSize: "0.75rem",
|
|
5582
5578
|
fontWeight: 600,
|
|
5583
|
-
color: "
|
|
5579
|
+
color: "var(--sk-text-secondary)",
|
|
5584
5580
|
textTransform: "uppercase"
|
|
5585
5581
|
},
|
|
5586
5582
|
children: day
|
|
@@ -5598,9 +5594,9 @@ function CalendarView({
|
|
|
5598
5594
|
style: {
|
|
5599
5595
|
minHeight: "100px",
|
|
5600
5596
|
padding: "0.5rem",
|
|
5601
|
-
borderRight: (index + 1) % 7 !== 0 ? "1px solid
|
|
5602
|
-
borderBottom: "1px solid
|
|
5603
|
-
background: day.isCurrentMonth ? "
|
|
5597
|
+
borderRight: (index + 1) % 7 !== 0 ? "1px solid var(--sk-border)" : "none",
|
|
5598
|
+
borderBottom: "1px solid var(--sk-border)",
|
|
5599
|
+
background: day.isCurrentMonth ? "var(--sk-bg)" : "var(--sk-bg-elevated)",
|
|
5604
5600
|
cursor: day.events.length > 0 || onDayClick ? "pointer" : "default"
|
|
5605
5601
|
},
|
|
5606
5602
|
children: [
|
|
@@ -5617,8 +5613,8 @@ function CalendarView({
|
|
|
5617
5613
|
borderRadius: "50%",
|
|
5618
5614
|
fontSize: "0.875rem",
|
|
5619
5615
|
fontWeight: day.isToday ? 600 : 400,
|
|
5620
|
-
color: day.isToday ? "
|
|
5621
|
-
background: day.isToday ? "
|
|
5616
|
+
color: day.isToday ? "var(--sk-bg)" : day.isCurrentMonth ? "var(--sk-text-primary)" : "var(--sk-text-secondary)",
|
|
5617
|
+
background: day.isToday ? "var(--sk-primary)" : "transparent"
|
|
5622
5618
|
}, children: day.date.getDate() }) }),
|
|
5623
5619
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: [
|
|
5624
5620
|
day.events.slice(0, 3).map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5634,7 +5630,7 @@ function CalendarView({
|
|
|
5634
5630
|
)),
|
|
5635
5631
|
day.events.length > 3 && /* @__PURE__ */ jsxRuntime.jsxs("span", { style: {
|
|
5636
5632
|
fontSize: "0.65rem",
|
|
5637
|
-
color: "
|
|
5633
|
+
color: "var(--sk-text-secondary)",
|
|
5638
5634
|
textAlign: "center"
|
|
5639
5635
|
}, children: [
|
|
5640
5636
|
"+",
|
|
@@ -5871,7 +5867,7 @@ function EventModal({
|
|
|
5871
5867
|
maxWidth: "500px",
|
|
5872
5868
|
maxHeight: "90vh",
|
|
5873
5869
|
overflow: "auto",
|
|
5874
|
-
background: "
|
|
5870
|
+
background: "var(--sk-bg)",
|
|
5875
5871
|
borderRadius: "16px",
|
|
5876
5872
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
5877
5873
|
},
|
|
@@ -5887,7 +5883,7 @@ function EventModal({
|
|
|
5887
5883
|
right: "1rem",
|
|
5888
5884
|
padding: "0.5rem",
|
|
5889
5885
|
border: "none",
|
|
5890
|
-
background: "
|
|
5886
|
+
background: "var(--sk-surface)",
|
|
5891
5887
|
borderRadius: "50%",
|
|
5892
5888
|
cursor: "pointer",
|
|
5893
5889
|
fontSize: "1.25rem",
|
|
@@ -5921,8 +5917,8 @@ function EventModal({
|
|
|
5921
5917
|
position: "absolute",
|
|
5922
5918
|
top: "1rem",
|
|
5923
5919
|
left: "1rem",
|
|
5924
|
-
background: "
|
|
5925
|
-
color: "
|
|
5920
|
+
background: "var(--sk-error)",
|
|
5921
|
+
color: "var(--sk-bg)",
|
|
5926
5922
|
padding: "0.25rem 0.75rem",
|
|
5927
5923
|
borderRadius: "4px",
|
|
5928
5924
|
fontSize: "0.875rem",
|
|
@@ -5931,8 +5927,8 @@ function EventModal({
|
|
|
5931
5927
|
] }),
|
|
5932
5928
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `site-kit-modal-content ${contentClassName}`, style: { padding: "1.5rem" }, children: success ? /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "2rem 0" }, children: [
|
|
5933
5929
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontSize: "4rem", marginBottom: "1rem" }, children: "\u{1F389}" }),
|
|
5934
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: "0 0 0.5rem", color: "
|
|
5935
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "
|
|
5930
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: "0 0 0.5rem", color: "var(--sk-success)" }, children: "You're Registered!" }),
|
|
5931
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { color: "var(--sk-success)", margin: "0 0 1.5rem" }, children: "Check your email for confirmation details." }),
|
|
5936
5932
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5937
5933
|
"button",
|
|
5938
5934
|
{
|
|
@@ -5943,8 +5939,8 @@ function EventModal({
|
|
|
5943
5939
|
fontWeight: 500,
|
|
5944
5940
|
border: "none",
|
|
5945
5941
|
borderRadius: "8px",
|
|
5946
|
-
background: "
|
|
5947
|
-
color: "
|
|
5942
|
+
background: "var(--sk-primary)",
|
|
5943
|
+
color: "var(--sk-bg)",
|
|
5948
5944
|
cursor: "pointer"
|
|
5949
5945
|
},
|
|
5950
5946
|
children: "Done"
|
|
@@ -5953,7 +5949,7 @@ function EventModal({
|
|
|
5953
5949
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5954
5950
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
5955
5951
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: "0 0 0.5rem", fontSize: "1.5rem", fontWeight: 600, paddingRight: "2rem" }, children: event.name }),
|
|
5956
|
-
schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", color: "
|
|
5952
|
+
schedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", color: "var(--sk-text-secondary)", fontSize: "0.9rem" }, children: [
|
|
5957
5953
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
5958
5954
|
"\u{1F4C5} ",
|
|
5959
5955
|
formatDate(schedule.starts_at)
|
|
@@ -5967,13 +5963,13 @@ function EventModal({
|
|
|
5967
5963
|
event.location
|
|
5968
5964
|
] })
|
|
5969
5965
|
] }),
|
|
5970
|
-
event.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.75rem 0 0", color: "
|
|
5966
|
+
event.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.75rem 0 0", color: "var(--sk-text-secondary)", fontSize: "0.9rem" }, children: event.short_description }),
|
|
5971
5967
|
spotsRemaining !== null && spotsRemaining <= 10 && spotsRemaining > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
5972
5968
|
marginTop: "0.75rem",
|
|
5973
5969
|
padding: "0.5rem 0.75rem",
|
|
5974
|
-
background: "
|
|
5970
|
+
background: "rgba(var(--sk-warning-rgb, 245,158,11), 0.1)",
|
|
5975
5971
|
borderRadius: "6px",
|
|
5976
|
-
color: "
|
|
5972
|
+
color: "var(--sk-warning)",
|
|
5977
5973
|
fontSize: "0.875rem"
|
|
5978
5974
|
}, children: [
|
|
5979
5975
|
"\u26A0\uFE0F Only ",
|
|
@@ -5986,22 +5982,22 @@ function EventModal({
|
|
|
5986
5982
|
soldOut ? /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
5987
5983
|
padding: "2rem",
|
|
5988
5984
|
textAlign: "center",
|
|
5989
|
-
background: "
|
|
5985
|
+
background: "var(--sk-surface)",
|
|
5990
5986
|
borderRadius: "8px"
|
|
5991
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: 0, color: "
|
|
5987
|
+
}, children: /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: 0, color: "var(--sk-text-secondary)" }, children: "This event is sold out. Check back for future dates!" }) }) : /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, children: [
|
|
5992
5988
|
!isFree && event.price_is_public && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
5993
5989
|
padding: "1rem",
|
|
5994
|
-
background: "
|
|
5990
|
+
background: "var(--sk-bg-elevated)",
|
|
5995
5991
|
borderRadius: "8px",
|
|
5996
5992
|
marginBottom: "1rem"
|
|
5997
5993
|
}, children: [
|
|
5998
5994
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
5999
5995
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
6000
5996
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontWeight: 600, fontSize: "1.25rem" }, children: formatPrice(event.price, event.currency) }),
|
|
6001
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "
|
|
5997
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--sk-text-secondary)", fontSize: "0.875rem" }, children: " per ticket" })
|
|
6002
5998
|
] }),
|
|
6003
5999
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
6004
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { fontSize: "0.875rem", color: "
|
|
6000
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: "Qty:" }),
|
|
6005
6001
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6006
6002
|
"select",
|
|
6007
6003
|
{
|
|
@@ -6010,8 +6006,8 @@ function EventModal({
|
|
|
6010
6006
|
style: {
|
|
6011
6007
|
padding: "0.5rem",
|
|
6012
6008
|
borderRadius: "6px",
|
|
6013
|
-
border: "1px solid
|
|
6014
|
-
background: "
|
|
6009
|
+
border: "1px solid var(--sk-border)",
|
|
6010
|
+
background: "var(--sk-bg)",
|
|
6015
6011
|
fontSize: "1rem"
|
|
6016
6012
|
},
|
|
6017
6013
|
children: [...Array(Math.min(10, spotsRemaining || 10))].map((_, i) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: i + 1, children: i + 1 }, i + 1))
|
|
@@ -6022,7 +6018,7 @@ function EventModal({
|
|
|
6022
6018
|
quantity > 1 && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
6023
6019
|
marginTop: "0.75rem",
|
|
6024
6020
|
paddingTop: "0.75rem",
|
|
6025
|
-
borderTop: "1px solid
|
|
6021
|
+
borderTop: "1px solid var(--sk-border)",
|
|
6026
6022
|
display: "flex",
|
|
6027
6023
|
justifyContent: "space-between"
|
|
6028
6024
|
}, children: [
|
|
@@ -6045,7 +6041,7 @@ function EventModal({
|
|
|
6045
6041
|
width: "100%",
|
|
6046
6042
|
padding: "0.625rem 0.75rem",
|
|
6047
6043
|
borderRadius: "6px",
|
|
6048
|
-
border: "1px solid
|
|
6044
|
+
border: "1px solid var(--sk-border)",
|
|
6049
6045
|
fontSize: "1rem"
|
|
6050
6046
|
}
|
|
6051
6047
|
}
|
|
@@ -6065,7 +6061,7 @@ function EventModal({
|
|
|
6065
6061
|
width: "100%",
|
|
6066
6062
|
padding: "0.625rem 0.75rem",
|
|
6067
6063
|
borderRadius: "6px",
|
|
6068
|
-
border: "1px solid
|
|
6064
|
+
border: "1px solid var(--sk-border)",
|
|
6069
6065
|
fontSize: "1rem"
|
|
6070
6066
|
}
|
|
6071
6067
|
}
|
|
@@ -6084,7 +6080,7 @@ function EventModal({
|
|
|
6084
6080
|
width: "100%",
|
|
6085
6081
|
padding: "0.625rem 0.75rem",
|
|
6086
6082
|
borderRadius: "6px",
|
|
6087
|
-
border: "1px solid
|
|
6083
|
+
border: "1px solid var(--sk-border)",
|
|
6088
6084
|
fontSize: "1rem"
|
|
6089
6085
|
}
|
|
6090
6086
|
}
|
|
@@ -6107,7 +6103,7 @@ function EventModal({
|
|
|
6107
6103
|
width: "100%",
|
|
6108
6104
|
padding: "0.625rem 0.75rem",
|
|
6109
6105
|
borderRadius: "6px",
|
|
6110
|
-
border: "1px solid
|
|
6106
|
+
border: "1px solid var(--sk-border)",
|
|
6111
6107
|
fontSize: "1rem",
|
|
6112
6108
|
minHeight: "80px",
|
|
6113
6109
|
resize: "vertical"
|
|
@@ -6123,9 +6119,9 @@ function EventModal({
|
|
|
6123
6119
|
width: "100%",
|
|
6124
6120
|
padding: "0.625rem 0.75rem",
|
|
6125
6121
|
borderRadius: "6px",
|
|
6126
|
-
border: "1px solid
|
|
6122
|
+
border: "1px solid var(--sk-border)",
|
|
6127
6123
|
fontSize: "1rem",
|
|
6128
|
-
background: "
|
|
6124
|
+
background: "var(--sk-bg)"
|
|
6129
6125
|
},
|
|
6130
6126
|
children: [
|
|
6131
6127
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "", children: "Select..." }),
|
|
@@ -6144,7 +6140,7 @@ function EventModal({
|
|
|
6144
6140
|
width: "100%",
|
|
6145
6141
|
padding: "0.625rem 0.75rem",
|
|
6146
6142
|
borderRadius: "6px",
|
|
6147
|
-
border: "1px solid
|
|
6143
|
+
border: "1px solid var(--sk-border)",
|
|
6148
6144
|
fontSize: "1rem"
|
|
6149
6145
|
}
|
|
6150
6146
|
}
|
|
@@ -6156,7 +6152,7 @@ function EventModal({
|
|
|
6156
6152
|
display: "block",
|
|
6157
6153
|
fontSize: "0.875rem",
|
|
6158
6154
|
fontWeight: 500,
|
|
6159
|
-
color: "
|
|
6155
|
+
color: "var(--sk-text-primary)",
|
|
6160
6156
|
marginBottom: "0.375rem"
|
|
6161
6157
|
}, children: "Card Details *" }),
|
|
6162
6158
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6166,22 +6162,22 @@ function EventModal({
|
|
|
6166
6162
|
ref: cardContainerRef,
|
|
6167
6163
|
style: {
|
|
6168
6164
|
minHeight: "42px",
|
|
6169
|
-
border: "1px solid
|
|
6165
|
+
border: "1px solid var(--sk-border)",
|
|
6170
6166
|
borderRadius: "6px",
|
|
6171
6167
|
padding: "0.5rem 0.75rem",
|
|
6172
|
-
background: "
|
|
6168
|
+
background: "var(--sk-bg)"
|
|
6173
6169
|
}
|
|
6174
6170
|
}
|
|
6175
6171
|
),
|
|
6176
|
-
!cardReady && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "0.75rem", color: "
|
|
6172
|
+
!cardReady && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)", marginTop: "0.25rem" }, children: "Loading card form..." })
|
|
6177
6173
|
] }),
|
|
6178
6174
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
6179
6175
|
marginTop: "1rem",
|
|
6180
6176
|
padding: "0.75rem",
|
|
6181
|
-
background: "
|
|
6182
|
-
border: "1px solid
|
|
6177
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
6178
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
6183
6179
|
borderRadius: "6px",
|
|
6184
|
-
color: "
|
|
6180
|
+
color: "var(--sk-error)",
|
|
6185
6181
|
fontSize: "0.875rem"
|
|
6186
6182
|
}, children: error }),
|
|
6187
6183
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6197,8 +6193,8 @@ function EventModal({
|
|
|
6197
6193
|
fontWeight: 600,
|
|
6198
6194
|
borderRadius: "8px",
|
|
6199
6195
|
border: "none",
|
|
6200
|
-
background: loading || !isFree && processor === "square" && !cardReady ? "
|
|
6201
|
-
color: "
|
|
6196
|
+
background: loading || !isFree && processor === "square" && !cardReady ? "var(--sk-primary-hover)" : "var(--sk-primary)",
|
|
6197
|
+
color: "var(--sk-bg)",
|
|
6202
6198
|
cursor: loading || !isFree && processor === "square" && !cardReady ? "not-allowed" : "pointer"
|
|
6203
6199
|
},
|
|
6204
6200
|
children: loading ? "Processing..." : isFree ? "Register Free" : `Pay ${formatPrice(total, event.currency)}`
|
|
@@ -6207,13 +6203,13 @@ function EventModal({
|
|
|
6207
6203
|
!isFree && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: {
|
|
6208
6204
|
textAlign: "center",
|
|
6209
6205
|
fontSize: "0.75rem",
|
|
6210
|
-
color: "
|
|
6206
|
+
color: "var(--sk-text-secondary)",
|
|
6211
6207
|
margin: "0.75rem 0 0"
|
|
6212
6208
|
}, children: [
|
|
6213
6209
|
"\u{1F512} Secure checkout via ",
|
|
6214
6210
|
processor === "square" ? "Square" : processor === "stripe" ? "Stripe" : "secure payment"
|
|
6215
6211
|
] }),
|
|
6216
|
-
!isFree && processor && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: { fontSize: "0.625rem", color: "
|
|
6212
|
+
!isFree && processor && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: { fontSize: "0.625rem", color: "var(--sk-text-secondary)", margin: "0.25rem 0 0", textAlign: "center" }, children: [
|
|
6217
6213
|
"Powered by ",
|
|
6218
6214
|
processor === "stripe" ? "Stripe" : "Square"
|
|
6219
6215
|
] })
|
|
@@ -6423,15 +6419,15 @@ function EventsWidget({
|
|
|
6423
6419
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-widget ${className}`, children: [
|
|
6424
6420
|
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-header ${headerClassName}`, style: { marginBottom: "1.5rem" }, children: [
|
|
6425
6421
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: 0, fontSize: "1.5rem", fontWeight: 600 }, children: title }),
|
|
6426
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6422
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)" }, children: subtitle })
|
|
6427
6423
|
] }),
|
|
6428
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "
|
|
6424
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "var(--sk-text-secondary)" }, children: [
|
|
6429
6425
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
6430
6426
|
width: "40px",
|
|
6431
6427
|
height: "40px",
|
|
6432
6428
|
margin: "0 auto 1rem",
|
|
6433
|
-
border: "3px solid
|
|
6434
|
-
borderTopColor: "
|
|
6429
|
+
border: "3px solid var(--sk-border)",
|
|
6430
|
+
borderTopColor: "var(--sk-primary)",
|
|
6435
6431
|
borderRadius: "50%",
|
|
6436
6432
|
animation: "site-kit-spin 1s linear infinite"
|
|
6437
6433
|
} }),
|
|
@@ -6448,22 +6444,22 @@ function EventsWidget({
|
|
|
6448
6444
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-widget ${className}`, children: [
|
|
6449
6445
|
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-header ${headerClassName}`, style: { marginBottom: "1.5rem" }, children: [
|
|
6450
6446
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: 0, fontSize: "1.5rem", fontWeight: 600 }, children: title }),
|
|
6451
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6447
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)" }, children: subtitle })
|
|
6452
6448
|
] }),
|
|
6453
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "
|
|
6449
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "var(--sk-error)" }, children: /* @__PURE__ */ jsxRuntime.jsx("p", { children: error }) })
|
|
6454
6450
|
] });
|
|
6455
6451
|
}
|
|
6456
6452
|
if (events.length === 0) {
|
|
6457
6453
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-widget ${className}`, children: [
|
|
6458
6454
|
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `site-kit-events-header ${headerClassName}`, style: { marginBottom: "1.5rem" }, children: [
|
|
6459
6455
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: 0, fontSize: "1.5rem", fontWeight: 600 }, children: title }),
|
|
6460
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6456
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)" }, children: subtitle })
|
|
6461
6457
|
] }),
|
|
6462
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "
|
|
6458
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "var(--sk-text-secondary)" }, children: [
|
|
6463
6459
|
showEmptyIcon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6464
6460
|
"svg",
|
|
6465
6461
|
{
|
|
6466
|
-
style: { width: "64px", height: "64px", margin: "0 auto 1rem", color: "
|
|
6462
|
+
style: { width: "64px", height: "64px", margin: "0 auto 1rem", color: "var(--sk-border)" },
|
|
6467
6463
|
fill: "none",
|
|
6468
6464
|
stroke: "currentColor",
|
|
6469
6465
|
viewBox: "0 0 24 24",
|
|
@@ -6491,7 +6487,7 @@ function EventsWidget({
|
|
|
6491
6487
|
children: [
|
|
6492
6488
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
6493
6489
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { style: { margin: 0, fontSize: "1.5rem", fontWeight: 600 }, children: title }),
|
|
6494
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6490
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)" }, children: subtitle })
|
|
6495
6491
|
] }),
|
|
6496
6492
|
showViewToggle && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6497
6493
|
"div",
|
|
@@ -6500,7 +6496,7 @@ function EventsWidget({
|
|
|
6500
6496
|
style: {
|
|
6501
6497
|
display: "flex",
|
|
6502
6498
|
gap: "0.25rem",
|
|
6503
|
-
background: "
|
|
6499
|
+
background: "var(--sk-surface)",
|
|
6504
6500
|
padding: "0.25rem",
|
|
6505
6501
|
borderRadius: "0.5rem"
|
|
6506
6502
|
},
|
|
@@ -6516,8 +6512,8 @@ function EventsWidget({
|
|
|
6516
6512
|
padding: "0.5rem 1rem",
|
|
6517
6513
|
border: "none",
|
|
6518
6514
|
borderRadius: "0.375rem",
|
|
6519
|
-
background: viewMode === "list" ? "
|
|
6520
|
-
color: viewMode === "list" ? "
|
|
6515
|
+
background: viewMode === "list" ? "var(--sk-bg)" : "transparent",
|
|
6516
|
+
color: viewMode === "list" ? "var(--sk-text-primary)" : "var(--sk-text-secondary)",
|
|
6521
6517
|
fontWeight: 500,
|
|
6522
6518
|
fontSize: "0.875rem",
|
|
6523
6519
|
cursor: "pointer",
|
|
@@ -6541,8 +6537,8 @@ function EventsWidget({
|
|
|
6541
6537
|
padding: "0.5rem 1rem",
|
|
6542
6538
|
border: "none",
|
|
6543
6539
|
borderRadius: "0.375rem",
|
|
6544
|
-
background: viewMode === "grid" ? "
|
|
6545
|
-
color: viewMode === "grid" ? "
|
|
6540
|
+
background: viewMode === "grid" ? "var(--sk-bg)" : "transparent",
|
|
6541
|
+
color: viewMode === "grid" ? "var(--sk-text-primary)" : "var(--sk-text-secondary)",
|
|
6546
6542
|
fontWeight: 500,
|
|
6547
6543
|
fontSize: "0.875rem",
|
|
6548
6544
|
cursor: "pointer",
|
|
@@ -6566,8 +6562,8 @@ function EventsWidget({
|
|
|
6566
6562
|
padding: "0.5rem 1rem",
|
|
6567
6563
|
border: "none",
|
|
6568
6564
|
borderRadius: "0.375rem",
|
|
6569
|
-
background: viewMode === "calendar" ? "
|
|
6570
|
-
color: viewMode === "calendar" ? "
|
|
6565
|
+
background: viewMode === "calendar" ? "var(--sk-bg)" : "transparent",
|
|
6566
|
+
color: viewMode === "calendar" ? "var(--sk-text-primary)" : "var(--sk-text-secondary)",
|
|
6571
6567
|
fontWeight: 500,
|
|
6572
6568
|
fontSize: "0.875rem",
|
|
6573
6569
|
cursor: "pointer",
|
|
@@ -6602,8 +6598,8 @@ function EventsWidget({
|
|
|
6602
6598
|
flexDirection: "row",
|
|
6603
6599
|
gap: 0,
|
|
6604
6600
|
padding: 0,
|
|
6605
|
-
background: "
|
|
6606
|
-
border: "1px solid
|
|
6601
|
+
background: "var(--sk-bg)",
|
|
6602
|
+
border: "1px solid var(--sk-border)",
|
|
6607
6603
|
borderRadius: "0.75rem",
|
|
6608
6604
|
cursor: nextSchedule ? "pointer" : "default",
|
|
6609
6605
|
transition: "all 150ms",
|
|
@@ -6611,12 +6607,12 @@ function EventsWidget({
|
|
|
6611
6607
|
},
|
|
6612
6608
|
onMouseEnter: (e) => {
|
|
6613
6609
|
if (nextSchedule) {
|
|
6614
|
-
e.currentTarget.style.borderColor = "
|
|
6610
|
+
e.currentTarget.style.borderColor = "var(--sk-primary)";
|
|
6615
6611
|
e.currentTarget.style.boxShadow = "0 4px 6px -1px rgba(0, 0, 0, 0.1)";
|
|
6616
6612
|
}
|
|
6617
6613
|
},
|
|
6618
6614
|
onMouseLeave: (e) => {
|
|
6619
|
-
e.currentTarget.style.borderColor = "
|
|
6615
|
+
e.currentTarget.style.borderColor = "var(--sk-border)";
|
|
6620
6616
|
e.currentTarget.style.boxShadow = "none";
|
|
6621
6617
|
},
|
|
6622
6618
|
children: [
|
|
@@ -6624,7 +6620,7 @@ function EventsWidget({
|
|
|
6624
6620
|
width: "160px",
|
|
6625
6621
|
minWidth: "160px",
|
|
6626
6622
|
flexShrink: 0,
|
|
6627
|
-
background: "
|
|
6623
|
+
background: "var(--sk-surface)"
|
|
6628
6624
|
}, children: [
|
|
6629
6625
|
imageUrl ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6630
6626
|
"img",
|
|
@@ -6657,7 +6653,7 @@ function EventsWidget({
|
|
|
6657
6653
|
display: imageUrl ? "none" : "flex",
|
|
6658
6654
|
alignItems: "center",
|
|
6659
6655
|
justifyContent: "center",
|
|
6660
|
-
color: "
|
|
6656
|
+
color: "var(--sk-text-secondary)"
|
|
6661
6657
|
},
|
|
6662
6658
|
"aria-hidden": true,
|
|
6663
6659
|
children: /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, {})
|
|
@@ -6667,20 +6663,20 @@ function EventsWidget({
|
|
|
6667
6663
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: "0.75rem", padding: "1.25rem" }, children: [
|
|
6668
6664
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", gap: "1rem" }, children: [
|
|
6669
6665
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1 }, children: [
|
|
6670
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "
|
|
6671
|
-
eventItem.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6666
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: eventItem.name }),
|
|
6667
|
+
eventItem.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)", fontSize: "0.875rem", lineHeight: 1.5 }, children: eventItem.short_description })
|
|
6672
6668
|
] }),
|
|
6673
6669
|
eventItem.price_is_public && /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
|
|
6674
6670
|
padding: "0.375rem 0.75rem",
|
|
6675
|
-
background: isFree ? "
|
|
6676
|
-
color: isFree ? "
|
|
6671
|
+
background: isFree ? "rgba(var(--sk-success-rgb, 16,185,129), 0.1)" : "rgba(var(--sk-primary-rgb), 0.125)",
|
|
6672
|
+
color: isFree ? "var(--sk-success)" : "var(--sk-primary)",
|
|
6677
6673
|
borderRadius: "9999px",
|
|
6678
6674
|
fontSize: "0.875rem",
|
|
6679
6675
|
fontWeight: 600,
|
|
6680
6676
|
whiteSpace: "nowrap"
|
|
6681
6677
|
}, children: isFree ? "Free" : formatPrice(eventItem.price ?? 0, eventItem.currency) })
|
|
6682
6678
|
] }),
|
|
6683
|
-
nextSchedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", fontSize: "0.875rem", color: "
|
|
6679
|
+
nextSchedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
6684
6680
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.375rem" }, children: [
|
|
6685
6681
|
/* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, {}),
|
|
6686
6682
|
formatDate(nextSchedule.starts_at)
|
|
@@ -6694,7 +6690,7 @@ function EventsWidget({
|
|
|
6694
6690
|
eventItem.location
|
|
6695
6691
|
] }),
|
|
6696
6692
|
nextSchedule.spots_remaining !== null && nextSchedule.spots_remaining !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { style: {
|
|
6697
|
-
color: nextSchedule.spots_remaining < 5 ? "
|
|
6693
|
+
color: nextSchedule.spots_remaining < 5 ? "var(--sk-error)" : "var(--sk-text-secondary)",
|
|
6698
6694
|
fontWeight: nextSchedule.spots_remaining < 5 ? 500 : 400
|
|
6699
6695
|
}, children: nextSchedule.spots_remaining === 0 ? "Sold Out" : `${nextSchedule.spots_remaining} spots left` })
|
|
6700
6696
|
] })
|
|
@@ -6711,8 +6707,8 @@ function EventsWidget({
|
|
|
6711
6707
|
style: {
|
|
6712
6708
|
display: "inline-block",
|
|
6713
6709
|
padding: "0.75rem 1.5rem",
|
|
6714
|
-
background: "
|
|
6715
|
-
color: "
|
|
6710
|
+
background: "var(--sk-surface)",
|
|
6711
|
+
color: "var(--sk-text-primary)",
|
|
6716
6712
|
borderRadius: "0.5rem",
|
|
6717
6713
|
textDecoration: "none",
|
|
6718
6714
|
fontWeight: 500,
|
|
@@ -6744,7 +6740,7 @@ function EventsWidget({
|
|
|
6744
6740
|
overflow: "hidden",
|
|
6745
6741
|
cursor: nextSchedule ? "pointer" : "default",
|
|
6746
6742
|
transition: "all 150ms",
|
|
6747
|
-
border: "1px solid
|
|
6743
|
+
border: "1px solid var(--sk-border)"
|
|
6748
6744
|
},
|
|
6749
6745
|
onMouseEnter: (e) => {
|
|
6750
6746
|
if (nextSchedule) {
|
|
@@ -6769,9 +6765,9 @@ function EventsWidget({
|
|
|
6769
6765
|
flexDirection: "column",
|
|
6770
6766
|
justifyContent: "flex-end",
|
|
6771
6767
|
padding: "1.25rem",
|
|
6772
|
-
color: "
|
|
6768
|
+
color: "var(--sk-bg)"
|
|
6773
6769
|
}, children: [
|
|
6774
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "
|
|
6770
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-bg)", textShadow: "0 1px 2px rgba(0,0,0,0.5)" }, children: eventItem.name }),
|
|
6775
6771
|
eventItem.short_description && /* @__PURE__ */ jsxRuntime.jsx("p", { style: { margin: "0.25rem 0 0", fontSize: "0.8125rem", opacity: 0.95, lineHeight: 1.4, overflow: "hidden", textOverflow: "ellipsis", maxHeight: "2.8em" }, children: eventItem.short_description }),
|
|
6776
6772
|
nextSchedule && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", marginTop: "0.75rem", fontSize: "0.8125rem", opacity: 0.95 }, children: [
|
|
6777
6773
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.25rem" }, children: [
|
|
@@ -6806,8 +6802,8 @@ function EventsWidget({
|
|
|
6806
6802
|
style: {
|
|
6807
6803
|
display: "inline-block",
|
|
6808
6804
|
padding: "0.75rem 1.5rem",
|
|
6809
|
-
background: "
|
|
6810
|
-
color: "
|
|
6805
|
+
background: "var(--sk-surface)",
|
|
6806
|
+
color: "var(--sk-text-primary)",
|
|
6811
6807
|
borderRadius: "0.5rem",
|
|
6812
6808
|
textDecoration: "none",
|
|
6813
6809
|
fontWeight: 500,
|
|
@@ -6899,5 +6895,5 @@ exports.registerForEvent = registerForEvent;
|
|
|
6899
6895
|
exports.useEventModal = useEventModal;
|
|
6900
6896
|
exports.validateAddress = validateAddress;
|
|
6901
6897
|
exports.validateDiscountCode = validateDiscountCode;
|
|
6902
|
-
//# sourceMappingURL=chunk-
|
|
6903
|
-
//# sourceMappingURL=chunk-
|
|
6898
|
+
//# sourceMappingURL=chunk-TZAD7CZD.js.map
|
|
6899
|
+
//# sourceMappingURL=chunk-TZAD7CZD.js.map
|