@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,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useAnalyticsOptional } from './chunk-
|
|
2
|
+
import { useAnalyticsOptional } from './chunk-F5NXD7VQ.mjs';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import React5, { useState, useEffect, useMemo, useRef, useCallback } from 'react';
|
|
5
5
|
|
|
@@ -283,7 +283,7 @@ async function fetchActiveProcessor() {
|
|
|
283
283
|
}
|
|
284
284
|
async function registerForEvent(eventId, scheduleId, customer) {
|
|
285
285
|
const { apiUrl, apiKey } = getApiConfig();
|
|
286
|
-
const analyticsSessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("
|
|
286
|
+
const analyticsSessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("_sk_sid") : null;
|
|
287
287
|
try {
|
|
288
288
|
const response = await fetch(`${apiUrl}/api/public/commerce/register`, {
|
|
289
289
|
method: "POST",
|
|
@@ -354,7 +354,7 @@ async function fetchProcessorConfig() {
|
|
|
354
354
|
async function createPaymentIntent(options) {
|
|
355
355
|
const apiUrl = getApiUrl();
|
|
356
356
|
const apiKey = getApiKey();
|
|
357
|
-
const sessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("
|
|
357
|
+
const sessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("_sk_sid") : null;
|
|
358
358
|
try {
|
|
359
359
|
const response = await fetch(`${apiUrl}/api/public/commerce/create-payment-intent`, {
|
|
360
360
|
method: "POST",
|
|
@@ -377,7 +377,7 @@ async function createPaymentIntent(options) {
|
|
|
377
377
|
async function createCheckoutSession(optionsOrOfferingId, legacyOptions) {
|
|
378
378
|
const { apiUrl, apiKey } = getApiConfig();
|
|
379
379
|
const options = typeof optionsOrOfferingId === "string" ? { offeringId: optionsOrOfferingId, ...legacyOptions } : optionsOrOfferingId;
|
|
380
|
-
const analyticsSessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("
|
|
380
|
+
const analyticsSessionId = typeof sessionStorage !== "undefined" ? sessionStorage.getItem("_sk_sid") : null;
|
|
381
381
|
try {
|
|
382
382
|
const response = await fetch(`${apiUrl}/api/public/commerce/checkout`, {
|
|
383
383
|
method: "POST",
|
|
@@ -497,7 +497,7 @@ function OfferingCard({
|
|
|
497
497
|
fontWeight: 600
|
|
498
498
|
}, children: offering.name }),
|
|
499
499
|
isEvent && nextSchedule && /* @__PURE__ */ jsxs("div", { className: "site-kit-offering-date", style: {
|
|
500
|
-
color: "
|
|
500
|
+
color: "var(--sk-text-secondary)",
|
|
501
501
|
fontSize: "0.875rem",
|
|
502
502
|
marginTop: "0.25rem"
|
|
503
503
|
}, children: [
|
|
@@ -505,19 +505,19 @@ function OfferingCard({
|
|
|
505
505
|
offering.location && ` \u2022 ${offering.location}`
|
|
506
506
|
] }),
|
|
507
507
|
showDescription && offering.short_description && /* @__PURE__ */ jsx("p", { className: `site-kit-offering-description ${descriptionClassName}`, style: {
|
|
508
|
-
color: "
|
|
508
|
+
color: "var(--sk-text-secondary)",
|
|
509
509
|
margin: "0.5rem 0",
|
|
510
510
|
fontSize: "0.875rem"
|
|
511
511
|
}, children: offering.short_description }),
|
|
512
512
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "1rem", marginTop: "0.5rem" }, children: [
|
|
513
513
|
showPrice && offering.price_is_public && offering.price != null && /* @__PURE__ */ jsxs("span", { className: `site-kit-offering-price ${priceClassName}`, style: {
|
|
514
514
|
fontWeight: 600,
|
|
515
|
-
color: "
|
|
515
|
+
color: "var(--sk-text-primary)"
|
|
516
516
|
}, children: [
|
|
517
517
|
formatPrice(offering.price, offering.currency),
|
|
518
518
|
offering.compare_at_price && /* @__PURE__ */ jsx("span", { style: {
|
|
519
519
|
textDecoration: "line-through",
|
|
520
|
-
color: "
|
|
520
|
+
color: "var(--sk-text-secondary)",
|
|
521
521
|
marginLeft: "0.5rem",
|
|
522
522
|
fontWeight: 400
|
|
523
523
|
}, children: formatPrice(offering.compare_at_price, offering.currency) })
|
|
@@ -531,8 +531,8 @@ function OfferingCard({
|
|
|
531
531
|
padding: "0.5rem 1rem",
|
|
532
532
|
borderRadius: "6px",
|
|
533
533
|
border: "none",
|
|
534
|
-
background: "
|
|
535
|
-
color: "
|
|
534
|
+
background: "var(--sk-primary)",
|
|
535
|
+
color: "var(--sk-bg)",
|
|
536
536
|
cursor: "pointer",
|
|
537
537
|
fontWeight: 500
|
|
538
538
|
},
|
|
@@ -547,7 +547,7 @@ function OfferingCard({
|
|
|
547
547
|
borderRadius: "12px",
|
|
548
548
|
overflow: "hidden",
|
|
549
549
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)",
|
|
550
|
-
background: "
|
|
550
|
+
background: "var(--sk-bg)"
|
|
551
551
|
}, children: [
|
|
552
552
|
showImage && offering.featured_image_url && /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
|
|
553
553
|
/* @__PURE__ */ jsx(
|
|
@@ -567,8 +567,8 @@ function OfferingCard({
|
|
|
567
567
|
position: "absolute",
|
|
568
568
|
top: "12px",
|
|
569
569
|
right: "12px",
|
|
570
|
-
background: "
|
|
571
|
-
color: "
|
|
570
|
+
background: "var(--sk-error)",
|
|
571
|
+
color: "var(--sk-bg)",
|
|
572
572
|
padding: "4px 8px",
|
|
573
573
|
borderRadius: "4px",
|
|
574
574
|
fontSize: "0.75rem",
|
|
@@ -577,7 +577,7 @@ function OfferingCard({
|
|
|
577
577
|
] }),
|
|
578
578
|
/* @__PURE__ */ jsxs("div", { style: { padding: "1rem" }, children: [
|
|
579
579
|
isEvent && nextSchedule && /* @__PURE__ */ jsx("div", { className: "site-kit-offering-date", style: {
|
|
580
|
-
color: "
|
|
580
|
+
color: "var(--sk-primary)",
|
|
581
581
|
fontSize: "0.875rem",
|
|
582
582
|
fontWeight: 500,
|
|
583
583
|
marginBottom: "0.25rem"
|
|
@@ -586,14 +586,14 @@ function OfferingCard({
|
|
|
586
586
|
margin: 0,
|
|
587
587
|
fontSize: "1.125rem",
|
|
588
588
|
fontWeight: 600,
|
|
589
|
-
color: "
|
|
589
|
+
color: "var(--sk-text-primary)"
|
|
590
590
|
}, children: offering.name }),
|
|
591
|
-
isEvent && offering.location && /* @__PURE__ */ jsxs("div", { style: { color: "
|
|
591
|
+
isEvent && offering.location && /* @__PURE__ */ jsxs("div", { style: { color: "var(--sk-text-secondary)", fontSize: "0.875rem", marginTop: "0.25rem" }, children: [
|
|
592
592
|
"\u{1F4CD} ",
|
|
593
593
|
offering.location
|
|
594
594
|
] }),
|
|
595
595
|
showDescription && offering.short_description && /* @__PURE__ */ jsx("p", { className: `site-kit-offering-description ${descriptionClassName}`, style: {
|
|
596
|
-
color: "
|
|
596
|
+
color: "var(--sk-text-secondary)",
|
|
597
597
|
margin: "0.75rem 0",
|
|
598
598
|
fontSize: "0.875rem",
|
|
599
599
|
lineHeight: 1.5
|
|
@@ -605,10 +605,10 @@ function OfferingCard({
|
|
|
605
605
|
marginTop: "1rem"
|
|
606
606
|
}, children: [
|
|
607
607
|
showPrice && offering.price_is_public && offering.price != null ? /* @__PURE__ */ jsxs("div", { className: `site-kit-offering-price ${priceClassName}`, children: [
|
|
608
|
-
/* @__PURE__ */ jsx("span", { style: { fontWeight: 600, fontSize: "1.25rem", color: "
|
|
608
|
+
/* @__PURE__ */ jsx("span", { style: { fontWeight: 600, fontSize: "1.25rem", color: "var(--sk-text-primary)" }, children: formatPrice(offering.price, offering.currency) }),
|
|
609
609
|
offering.compare_at_price && /* @__PURE__ */ jsx("span", { style: {
|
|
610
610
|
textDecoration: "line-through",
|
|
611
|
-
color: "
|
|
611
|
+
color: "var(--sk-text-secondary)",
|
|
612
612
|
marginLeft: "0.5rem",
|
|
613
613
|
fontSize: "0.875rem"
|
|
614
614
|
}, children: formatPrice(offering.compare_at_price, offering.currency) })
|
|
@@ -622,8 +622,8 @@ function OfferingCard({
|
|
|
622
622
|
padding: "0.625rem 1.25rem",
|
|
623
623
|
borderRadius: "6px",
|
|
624
624
|
border: "none",
|
|
625
|
-
background: "
|
|
626
|
-
color: "
|
|
625
|
+
background: "var(--sk-primary)",
|
|
626
|
+
color: "var(--sk-bg)",
|
|
627
627
|
cursor: "pointer",
|
|
628
628
|
fontWeight: 500,
|
|
629
629
|
fontSize: "0.875rem"
|
|
@@ -712,8 +712,8 @@ function OfferingList({
|
|
|
712
712
|
/* @__PURE__ */ jsx("div", { style: {
|
|
713
713
|
width: "40px",
|
|
714
714
|
height: "40px",
|
|
715
|
-
border: "3px solid
|
|
716
|
-
borderTopColor: "
|
|
715
|
+
border: "3px solid var(--sk-border)",
|
|
716
|
+
borderTopColor: "var(--sk-primary)",
|
|
717
717
|
borderRadius: "50%",
|
|
718
718
|
animation: "spin 1s linear infinite"
|
|
719
719
|
} }),
|
|
@@ -728,7 +728,7 @@ function OfferingList({
|
|
|
728
728
|
return /* @__PURE__ */ jsx("div", { className: `site-kit-offerings-error ${className}`, style: {
|
|
729
729
|
textAlign: "center",
|
|
730
730
|
padding: "2rem",
|
|
731
|
-
color: "
|
|
731
|
+
color: "var(--sk-error)"
|
|
732
732
|
}, children: error });
|
|
733
733
|
}
|
|
734
734
|
if (filteredOfferings.length === 0) {
|
|
@@ -738,7 +738,7 @@ function OfferingList({
|
|
|
738
738
|
return /* @__PURE__ */ jsx("div", { className: `site-kit-offerings-empty ${className}`, style: {
|
|
739
739
|
textAlign: "center",
|
|
740
740
|
padding: "2rem",
|
|
741
|
-
color: "
|
|
741
|
+
color: "var(--sk-text-secondary)"
|
|
742
742
|
}, children: emptyMessage });
|
|
743
743
|
}
|
|
744
744
|
const gridStyles = layout === "grid" ? {
|
|
@@ -770,9 +770,9 @@ function OfferingList({
|
|
|
770
770
|
padding: "0.5rem 1rem",
|
|
771
771
|
borderRadius: "9999px",
|
|
772
772
|
border: "1px solid",
|
|
773
|
-
borderColor: activeFilter === null ? "
|
|
774
|
-
background: activeFilter === null ? "
|
|
775
|
-
color: activeFilter === null ? "
|
|
773
|
+
borderColor: activeFilter === null ? "var(--sk-primary)" : "var(--sk-border)",
|
|
774
|
+
background: activeFilter === null ? "var(--sk-primary)" : "var(--sk-bg)",
|
|
775
|
+
color: activeFilter === null ? "var(--sk-bg)" : "var(--sk-text-primary)",
|
|
776
776
|
cursor: "pointer",
|
|
777
777
|
fontSize: "0.875rem"
|
|
778
778
|
},
|
|
@@ -787,9 +787,9 @@ function OfferingList({
|
|
|
787
787
|
padding: "0.5rem 1rem",
|
|
788
788
|
borderRadius: "9999px",
|
|
789
789
|
border: "1px solid",
|
|
790
|
-
borderColor: activeFilter === cat.id ? "
|
|
791
|
-
background: activeFilter === cat.id ? "
|
|
792
|
-
color: activeFilter === cat.id ? "
|
|
790
|
+
borderColor: activeFilter === cat.id ? "var(--sk-primary)" : "var(--sk-border)",
|
|
791
|
+
background: activeFilter === cat.id ? "var(--sk-primary)" : "var(--sk-bg)",
|
|
792
|
+
color: activeFilter === cat.id ? "var(--sk-bg)" : "var(--sk-text-primary)",
|
|
793
793
|
cursor: "pointer",
|
|
794
794
|
fontSize: "0.875rem"
|
|
795
795
|
},
|
|
@@ -878,7 +878,7 @@ function EventTile({
|
|
|
878
878
|
alignItems: "center",
|
|
879
879
|
gap: "0.75rem",
|
|
880
880
|
padding: "0.75rem",
|
|
881
|
-
background: "
|
|
881
|
+
background: "var(--sk-bg)",
|
|
882
882
|
borderRadius: "8px",
|
|
883
883
|
boxShadow: "0 1px 2px rgba(0,0,0,0.05)"
|
|
884
884
|
}, children: [
|
|
@@ -886,11 +886,11 @@ function EventTile({
|
|
|
886
886
|
minWidth: "48px",
|
|
887
887
|
textAlign: "center",
|
|
888
888
|
padding: "0.5rem",
|
|
889
|
-
background: "
|
|
889
|
+
background: "var(--sk-surface)",
|
|
890
890
|
borderRadius: "6px"
|
|
891
891
|
}, children: [
|
|
892
|
-
/* @__PURE__ */ jsx("div", { style: { fontSize: "0.75rem", color: "
|
|
893
|
-
/* @__PURE__ */ jsx("div", { style: { fontSize: "1.25rem", fontWeight: 700, color: "
|
|
892
|
+
/* @__PURE__ */ jsx("div", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)", textTransform: "uppercase" }, children: new Date(schedule.starts_at).toLocaleDateString("en-US", { month: "short" }) }),
|
|
893
|
+
/* @__PURE__ */ jsx("div", { style: { fontSize: "1.25rem", fontWeight: 700, color: "var(--sk-text-primary)" }, children: new Date(schedule.starts_at).getDate() })
|
|
894
894
|
] }),
|
|
895
895
|
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
896
896
|
/* @__PURE__ */ jsx("h4", { className: `site-kit-event-title ${titleClassName}`, style: {
|
|
@@ -901,7 +901,7 @@ function EventTile({
|
|
|
901
901
|
overflow: "hidden",
|
|
902
902
|
textOverflow: "ellipsis"
|
|
903
903
|
}, children: event.name }),
|
|
904
|
-
showTime && schedule && /* @__PURE__ */ jsxs("div", { style: { fontSize: "0.75rem", color: "
|
|
904
|
+
showTime && schedule && /* @__PURE__ */ jsxs("div", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)" }, children: [
|
|
905
905
|
formatTime(schedule.starts_at),
|
|
906
906
|
showLocation && event.location && ` \u2022 ${event.location}`
|
|
907
907
|
] })
|
|
@@ -917,8 +917,8 @@ function EventTile({
|
|
|
917
917
|
fontSize: "0.75rem",
|
|
918
918
|
borderRadius: "4px",
|
|
919
919
|
border: "none",
|
|
920
|
-
background: soldOut ? "
|
|
921
|
-
color: soldOut ? "
|
|
920
|
+
background: soldOut ? "var(--sk-border)" : "var(--sk-primary)",
|
|
921
|
+
color: soldOut ? "var(--sk-text-secondary)" : "var(--sk-bg)",
|
|
922
922
|
cursor: soldOut ? "not-allowed" : "pointer",
|
|
923
923
|
fontWeight: 500,
|
|
924
924
|
whiteSpace: "nowrap"
|
|
@@ -929,7 +929,7 @@ function EventTile({
|
|
|
929
929
|
] });
|
|
930
930
|
}
|
|
931
931
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-event-tile ${className}`, style: {
|
|
932
|
-
background: "
|
|
932
|
+
background: "var(--sk-bg)",
|
|
933
933
|
borderRadius: "12px",
|
|
934
934
|
overflow: "hidden",
|
|
935
935
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
@@ -954,26 +954,26 @@ function EventTile({
|
|
|
954
954
|
marginBottom: "0.5rem"
|
|
955
955
|
}, children: [
|
|
956
956
|
/* @__PURE__ */ jsx("span", { style: {
|
|
957
|
-
background: "
|
|
958
|
-
color: "
|
|
957
|
+
background: "rgba(var(--sk-primary-rgb), 0.125)",
|
|
958
|
+
color: "var(--sk-primary)",
|
|
959
959
|
padding: "0.25rem 0.5rem",
|
|
960
960
|
borderRadius: "4px",
|
|
961
961
|
fontSize: "0.75rem",
|
|
962
962
|
fontWeight: 600
|
|
963
963
|
}, children: getRelativeTimeUntil(schedule.starts_at) }),
|
|
964
|
-
/* @__PURE__ */ jsx("span", { style: { fontSize: "0.875rem", color: "
|
|
964
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: formatDate(schedule.starts_at) })
|
|
965
965
|
] }),
|
|
966
966
|
/* @__PURE__ */ jsx("h3", { className: `site-kit-event-title ${titleClassName}`, style: {
|
|
967
967
|
margin: "0 0 0.5rem",
|
|
968
968
|
fontSize: "1.125rem",
|
|
969
969
|
fontWeight: 600,
|
|
970
|
-
color: "
|
|
970
|
+
color: "var(--sk-text-primary)"
|
|
971
971
|
}, children: event.name }),
|
|
972
|
-
showLocation && event.location && /* @__PURE__ */ jsxs("div", { style: { fontSize: "0.875rem", color: "
|
|
972
|
+
showLocation && event.location && /* @__PURE__ */ jsxs("div", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)", marginBottom: "0.5rem" }, children: [
|
|
973
973
|
"\u{1F4CD} ",
|
|
974
974
|
event.location
|
|
975
975
|
] }),
|
|
976
|
-
showTime && schedule && /* @__PURE__ */ jsxs("div", { style: { fontSize: "0.875rem", color: "
|
|
976
|
+
showTime && schedule && /* @__PURE__ */ jsxs("div", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)", marginBottom: "0.75rem" }, children: [
|
|
977
977
|
"\u{1F550} ",
|
|
978
978
|
formatTime(schedule.starts_at),
|
|
979
979
|
schedule.ends_at && ` - ${formatTime(schedule.ends_at)}`
|
|
@@ -985,10 +985,10 @@ function EventTile({
|
|
|
985
985
|
marginTop: "0.75rem"
|
|
986
986
|
}, children: [
|
|
987
987
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
988
|
-
showPrice && event.price_is_public && event.price != null && /* @__PURE__ */ jsx("span", { style: { fontWeight: 600, color: "
|
|
988
|
+
showPrice && event.price_is_public && event.price != null && /* @__PURE__ */ jsx("span", { style: { fontWeight: 600, color: "var(--sk-text-primary)" }, children: event.price === 0 ? "Free" : `$${event.price}` }),
|
|
989
989
|
showCapacity && spotsRemaining !== null && spotsRemaining <= 10 && !soldOut && /* @__PURE__ */ jsxs("span", { style: {
|
|
990
990
|
fontSize: "0.75rem",
|
|
991
|
-
color: "
|
|
991
|
+
color: "var(--sk-error)",
|
|
992
992
|
marginLeft: "0.5rem"
|
|
993
993
|
}, children: [
|
|
994
994
|
"Only ",
|
|
@@ -1006,8 +1006,8 @@ function EventTile({
|
|
|
1006
1006
|
padding: "0.5rem 1rem",
|
|
1007
1007
|
borderRadius: "6px",
|
|
1008
1008
|
border: "none",
|
|
1009
|
-
background: soldOut ? "
|
|
1010
|
-
color: soldOut ? "
|
|
1009
|
+
background: soldOut ? "var(--sk-border)" : "var(--sk-primary)",
|
|
1010
|
+
color: soldOut ? "var(--sk-text-secondary)" : "var(--sk-bg)",
|
|
1011
1011
|
cursor: soldOut ? "not-allowed" : "pointer",
|
|
1012
1012
|
fontWeight: 500,
|
|
1013
1013
|
fontSize: "0.875rem"
|
|
@@ -1057,7 +1057,7 @@ function UpcomingEvents({
|
|
|
1057
1057
|
load();
|
|
1058
1058
|
}, [propEvents, limit, category]);
|
|
1059
1059
|
if (loading) {
|
|
1060
|
-
return /* @__PURE__ */ jsx("div", { className: `site-kit-upcoming-events ${className}`, children: /* @__PURE__ */ jsx("div", { style: { padding: "2rem", textAlign: "center", color: "
|
|
1060
|
+
return /* @__PURE__ */ jsx("div", { className: `site-kit-upcoming-events ${className}`, children: /* @__PURE__ */ jsx("div", { style: { padding: "2rem", textAlign: "center", color: "var(--sk-text-secondary)" }, children: "Loading events..." }) });
|
|
1061
1061
|
}
|
|
1062
1062
|
if (events.length === 0) {
|
|
1063
1063
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-upcoming-events ${className}`, children: [
|
|
@@ -1066,7 +1066,7 @@ function UpcomingEvents({
|
|
|
1066
1066
|
fontSize: "1.5rem",
|
|
1067
1067
|
fontWeight: 600
|
|
1068
1068
|
}, children: title }),
|
|
1069
|
-
/* @__PURE__ */ jsx("div", { style: { padding: "2rem", textAlign: "center", color: "
|
|
1069
|
+
/* @__PURE__ */ jsx("div", { style: { padding: "2rem", textAlign: "center", color: "var(--sk-text-secondary)" }, children: emptyMessage })
|
|
1070
1070
|
] });
|
|
1071
1071
|
}
|
|
1072
1072
|
const layoutStyles = layout === "horizontal" ? {
|
|
@@ -1095,7 +1095,7 @@ function UpcomingEvents({
|
|
|
1095
1095
|
{
|
|
1096
1096
|
href: viewAllUrl,
|
|
1097
1097
|
style: {
|
|
1098
|
-
color: "
|
|
1098
|
+
color: "var(--sk-primary)",
|
|
1099
1099
|
textDecoration: "none",
|
|
1100
1100
|
fontSize: "0.875rem",
|
|
1101
1101
|
fontWeight: 500
|
|
@@ -1131,8 +1131,8 @@ function UpcomingEvents({
|
|
|
1131
1131
|
style: {
|
|
1132
1132
|
display: "inline-block",
|
|
1133
1133
|
padding: "0.75rem 1.5rem",
|
|
1134
|
-
background: "
|
|
1135
|
-
color: "
|
|
1134
|
+
background: "var(--sk-surface)",
|
|
1135
|
+
color: "var(--sk-text-primary)",
|
|
1136
1136
|
borderRadius: "8px",
|
|
1137
1137
|
textDecoration: "none",
|
|
1138
1138
|
fontWeight: 500
|
|
@@ -1186,15 +1186,15 @@ function ProductEmbed({
|
|
|
1186
1186
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-product-embed ${className}`, style: {
|
|
1187
1187
|
padding: "2rem",
|
|
1188
1188
|
textAlign: "center",
|
|
1189
|
-
background: "
|
|
1189
|
+
background: "var(--sk-bg-elevated)",
|
|
1190
1190
|
borderRadius: "12px"
|
|
1191
1191
|
}, children: [
|
|
1192
1192
|
/* @__PURE__ */ jsx("div", { style: {
|
|
1193
1193
|
width: "40px",
|
|
1194
1194
|
height: "40px",
|
|
1195
1195
|
margin: "0 auto",
|
|
1196
|
-
border: "3px solid
|
|
1197
|
-
borderTopColor: "
|
|
1196
|
+
border: "3px solid var(--sk-border)",
|
|
1197
|
+
borderTopColor: "var(--sk-primary)",
|
|
1198
1198
|
borderRadius: "50%",
|
|
1199
1199
|
animation: "spin 1s linear infinite"
|
|
1200
1200
|
} }),
|
|
@@ -1374,12 +1374,8 @@ var STYLE_BLOCK = `
|
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
1376
1376
|
/*
|
|
1377
|
-
* Commerce CSS custom properties
|
|
1378
|
-
*
|
|
1379
|
-
* Example: color: var(--commerce-text, #111827) \u2014 uses #111827 if --commerce-text is not defined.
|
|
1380
|
-
*
|
|
1381
|
-
* Host sites should define these in their CSS:
|
|
1382
|
-
* :root { --commerce-accent: #d9b338; --commerce-surface: #0f0f17; ... }
|
|
1377
|
+
* Commerce uses --sk-* CSS custom properties inherited from the host site's :root.
|
|
1378
|
+
* Host sites define their design tokens via the site-kit theme system.
|
|
1383
1379
|
*/
|
|
1384
1380
|
|
|
1385
1381
|
.skc-detail *, .skc-detail *::before, .skc-detail *::after {
|
|
@@ -1415,8 +1411,8 @@ var STYLE_BLOCK = `
|
|
|
1415
1411
|
.skc-gallery-main {
|
|
1416
1412
|
position: relative;
|
|
1417
1413
|
overflow: hidden;
|
|
1418
|
-
border-radius: var(--
|
|
1419
|
-
background: var(--
|
|
1414
|
+
border-radius: var(--sk-radius, 12px);
|
|
1415
|
+
background: var(--sk-bg-elevated);
|
|
1420
1416
|
cursor: crosshair;
|
|
1421
1417
|
aspect-ratio: 1;
|
|
1422
1418
|
}
|
|
@@ -1440,19 +1436,19 @@ var STYLE_BLOCK = `
|
|
|
1440
1436
|
flex: 0 0 auto;
|
|
1441
1437
|
width: 64px;
|
|
1442
1438
|
height: 64px;
|
|
1443
|
-
border-radius: var(--
|
|
1439
|
+
border-radius: var(--sk-radius-sm, 8px);
|
|
1444
1440
|
overflow: hidden;
|
|
1445
1441
|
border: 2px solid transparent;
|
|
1446
1442
|
padding: 0;
|
|
1447
1443
|
cursor: pointer;
|
|
1448
|
-
background: var(--
|
|
1444
|
+
background: var(--sk-bg-elevated);
|
|
1449
1445
|
transition: border-color 0.15s ease;
|
|
1450
1446
|
}
|
|
1451
1447
|
.skc-gallery-thumb:hover {
|
|
1452
|
-
border-color: var(--
|
|
1448
|
+
border-color: var(--sk-text-secondary);
|
|
1453
1449
|
}
|
|
1454
1450
|
.skc-gallery-thumb.skc-active {
|
|
1455
|
-
border-color: var(--
|
|
1451
|
+
border-color: var(--sk-primary);
|
|
1456
1452
|
}
|
|
1457
1453
|
.skc-gallery-thumb img {
|
|
1458
1454
|
width: 100%;
|
|
@@ -1467,8 +1463,8 @@ var STYLE_BLOCK = `
|
|
|
1467
1463
|
left: 0;
|
|
1468
1464
|
right: 0;
|
|
1469
1465
|
z-index: 999;
|
|
1470
|
-
background:
|
|
1471
|
-
border-top: 1px solid var(--
|
|
1466
|
+
background: var(--sk-bg);
|
|
1467
|
+
border-top: 1px solid var(--sk-border);
|
|
1472
1468
|
padding: 0.75rem 1rem;
|
|
1473
1469
|
display: flex;
|
|
1474
1470
|
align-items: center;
|
|
@@ -1484,7 +1480,7 @@ var STYLE_BLOCK = `
|
|
|
1484
1480
|
/* Tabs */
|
|
1485
1481
|
.skc-tabs-list {
|
|
1486
1482
|
display: flex;
|
|
1487
|
-
border-bottom: 1px solid var(--
|
|
1483
|
+
border-bottom: 1px solid var(--sk-border);
|
|
1488
1484
|
gap: 0;
|
|
1489
1485
|
overflow-x: auto;
|
|
1490
1486
|
scrollbar-width: none;
|
|
@@ -1496,18 +1492,18 @@ var STYLE_BLOCK = `
|
|
|
1496
1492
|
background: none;
|
|
1497
1493
|
font-size: 0.875rem;
|
|
1498
1494
|
font-weight: 500;
|
|
1499
|
-
color: var(--
|
|
1495
|
+
color: var(--sk-text-secondary);
|
|
1500
1496
|
cursor: pointer;
|
|
1501
1497
|
border-bottom: 2px solid transparent;
|
|
1502
1498
|
white-space: nowrap;
|
|
1503
1499
|
transition: color 0.15s ease, border-color 0.15s ease;
|
|
1504
1500
|
}
|
|
1505
1501
|
.skc-tab-btn:hover {
|
|
1506
|
-
color: var(--
|
|
1502
|
+
color: var(--sk-text-primary);
|
|
1507
1503
|
}
|
|
1508
1504
|
.skc-tab-btn.skc-active {
|
|
1509
|
-
color: var(--
|
|
1510
|
-
border-bottom-color: var(--
|
|
1505
|
+
color: var(--sk-primary);
|
|
1506
|
+
border-bottom-color: var(--sk-primary);
|
|
1511
1507
|
}
|
|
1512
1508
|
|
|
1513
1509
|
/* Checkout overlay */
|
|
@@ -1529,8 +1525,8 @@ var STYLE_BLOCK = `
|
|
|
1529
1525
|
max-width: 480px;
|
|
1530
1526
|
max-height: 90vh;
|
|
1531
1527
|
overflow-y: auto;
|
|
1532
|
-
background:
|
|
1533
|
-
border-radius: calc(var(--
|
|
1528
|
+
background: var(--sk-bg);
|
|
1529
|
+
border-radius: calc(var(--sk-radius, 12px) + 4px);
|
|
1534
1530
|
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
|
|
1535
1531
|
animation: skc-scaleIn 0.25s ease-out;
|
|
1536
1532
|
}
|
|
@@ -1539,20 +1535,20 @@ var STYLE_BLOCK = `
|
|
|
1539
1535
|
.skc-input {
|
|
1540
1536
|
width: 100%;
|
|
1541
1537
|
padding: 0.625rem 0.75rem;
|
|
1542
|
-
border-radius: var(--
|
|
1543
|
-
border: 1px solid var(--
|
|
1538
|
+
border-radius: var(--sk-radius-sm, 8px);
|
|
1539
|
+
border: 1px solid var(--sk-border);
|
|
1544
1540
|
font-size: 0.9375rem;
|
|
1545
|
-
color: var(--
|
|
1546
|
-
background:
|
|
1541
|
+
color: var(--sk-text-primary);
|
|
1542
|
+
background: var(--sk-bg);
|
|
1547
1543
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
1548
1544
|
outline: none;
|
|
1549
1545
|
}
|
|
1550
1546
|
.skc-input:focus {
|
|
1551
|
-
border-color: var(--
|
|
1552
|
-
box-shadow: 0 0 0 3px rgba(
|
|
1547
|
+
border-color: var(--sk-primary);
|
|
1548
|
+
box-shadow: 0 0 0 3px rgba(var(--sk-primary-rgb), 0.1);
|
|
1553
1549
|
}
|
|
1554
1550
|
.skc-input::placeholder {
|
|
1555
|
-
color: var(--
|
|
1551
|
+
color: var(--sk-text-secondary);
|
|
1556
1552
|
}
|
|
1557
1553
|
|
|
1558
1554
|
/* Primary button */
|
|
@@ -1563,17 +1559,17 @@ var STYLE_BLOCK = `
|
|
|
1563
1559
|
gap: 0.5rem;
|
|
1564
1560
|
width: 100%;
|
|
1565
1561
|
padding: 0.875rem 1.5rem;
|
|
1566
|
-
border-radius: var(--
|
|
1562
|
+
border-radius: var(--sk-radius-sm, 8px);
|
|
1567
1563
|
border: none;
|
|
1568
|
-
background: var(--
|
|
1569
|
-
color: var(--
|
|
1564
|
+
background: var(--sk-primary);
|
|
1565
|
+
color: var(--sk-bg);
|
|
1570
1566
|
font-size: 1rem;
|
|
1571
1567
|
font-weight: 600;
|
|
1572
1568
|
cursor: pointer;
|
|
1573
1569
|
transition: background-color 0.15s ease, transform 0.1s ease;
|
|
1574
1570
|
}
|
|
1575
1571
|
.skc-btn-primary:hover:not(:disabled) {
|
|
1576
|
-
background: var(--
|
|
1572
|
+
background: var(--sk-primary-hover);
|
|
1577
1573
|
}
|
|
1578
1574
|
.skc-btn-primary:active:not(:disabled) {
|
|
1579
1575
|
transform: scale(0.98);
|
|
@@ -1591,17 +1587,17 @@ var STYLE_BLOCK = `
|
|
|
1591
1587
|
gap: 0.5rem;
|
|
1592
1588
|
width: 100%;
|
|
1593
1589
|
padding: 0.875rem 1.5rem;
|
|
1594
|
-
border-radius: var(--
|
|
1595
|
-
border: 2px solid var(--
|
|
1590
|
+
border-radius: var(--sk-radius-sm, 8px);
|
|
1591
|
+
border: 2px solid var(--sk-primary);
|
|
1596
1592
|
background: transparent;
|
|
1597
|
-
color: var(--
|
|
1593
|
+
color: var(--sk-primary);
|
|
1598
1594
|
font-size: 1rem;
|
|
1599
1595
|
font-weight: 600;
|
|
1600
1596
|
cursor: pointer;
|
|
1601
1597
|
transition: background-color 0.15s ease;
|
|
1602
1598
|
}
|
|
1603
1599
|
.skc-btn-secondary:hover:not(:disabled) {
|
|
1604
|
-
background: rgba(
|
|
1600
|
+
background: rgba(var(--sk-primary-rgb), 0.05);
|
|
1605
1601
|
}
|
|
1606
1602
|
.skc-btn-secondary:disabled {
|
|
1607
1603
|
opacity: 0.55;
|
|
@@ -1625,24 +1621,24 @@ var STYLE_BLOCK = `
|
|
|
1625
1621
|
width: 8px;
|
|
1626
1622
|
height: 8px;
|
|
1627
1623
|
border-radius: 50%;
|
|
1628
|
-
background: var(--
|
|
1624
|
+
background: var(--sk-border);
|
|
1629
1625
|
transition: background 0.2s ease, transform 0.2s ease;
|
|
1630
1626
|
}
|
|
1631
1627
|
.skc-step-dot.skc-active {
|
|
1632
|
-
background: var(--
|
|
1628
|
+
background: var(--sk-primary);
|
|
1633
1629
|
transform: scale(1.3);
|
|
1634
1630
|
}
|
|
1635
1631
|
.skc-step-dot.skc-done {
|
|
1636
|
-
background: var(--
|
|
1632
|
+
background: var(--sk-success);
|
|
1637
1633
|
}
|
|
1638
1634
|
.skc-step-connector {
|
|
1639
1635
|
width: 24px;
|
|
1640
1636
|
height: 2px;
|
|
1641
|
-
background: var(--
|
|
1637
|
+
background: var(--sk-border);
|
|
1642
1638
|
transition: background 0.2s ease;
|
|
1643
1639
|
}
|
|
1644
1640
|
.skc-step-connector.skc-done {
|
|
1645
|
-
background: var(--
|
|
1641
|
+
background: var(--sk-success);
|
|
1646
1642
|
}
|
|
1647
1643
|
`;
|
|
1648
1644
|
function loadSquareSDK(env) {
|
|
@@ -1896,11 +1892,11 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1896
1892
|
style: {
|
|
1897
1893
|
fontSize: "0.875rem",
|
|
1898
1894
|
fontWeight: 600,
|
|
1899
|
-
color: "var(--
|
|
1895
|
+
color: "var(--sk-text-primary)"
|
|
1900
1896
|
},
|
|
1901
1897
|
children: [
|
|
1902
1898
|
label,
|
|
1903
|
-
selected && /* @__PURE__ */ jsxs("span", { style: { fontWeight: 400, color: "var(--
|
|
1899
|
+
selected && /* @__PURE__ */ jsxs("span", { style: { fontWeight: 400, color: "var(--sk-text-secondary)", marginLeft: 6 }, children: [
|
|
1904
1900
|
"\u2014 ",
|
|
1905
1901
|
selected.options?.Size || selected.name
|
|
1906
1902
|
] })
|
|
@@ -1922,10 +1918,10 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1922
1918
|
style: {
|
|
1923
1919
|
position: "relative",
|
|
1924
1920
|
padding: variantOutOfStock ? "0.375rem 1rem 0.25rem" : "0.5rem 1rem",
|
|
1925
|
-
borderRadius: "var(--
|
|
1926
|
-
border: isSelected ? "2px solid var(--
|
|
1927
|
-
backgroundColor: isSelected ? "color-mix(in srgb, var(--
|
|
1928
|
-
color: variantOutOfStock ? "var(--
|
|
1921
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
1922
|
+
border: isSelected ? "2px solid var(--sk-primary)" : variantOutOfStock ? "1px solid var(--sk-border)" : "1px solid var(--sk-border)",
|
|
1923
|
+
backgroundColor: isSelected ? "color-mix(in srgb, var(--sk-primary) 8%, transparent)" : variantOutOfStock ? "var(--sk-bg-elevated)" : "var(--sk-bg-elevated)",
|
|
1924
|
+
color: variantOutOfStock ? "var(--sk-text-secondary)" : "var(--sk-text-primary)",
|
|
1929
1925
|
fontSize: "0.875rem",
|
|
1930
1926
|
fontWeight: 500,
|
|
1931
1927
|
cursor: variantOutOfStock ? "not-allowed" : "pointer",
|
|
@@ -1943,7 +1939,7 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1943
1939
|
variantOutOfStock && /* @__PURE__ */ jsx("span", { style: {
|
|
1944
1940
|
fontSize: "0.5625rem",
|
|
1945
1941
|
fontWeight: 600,
|
|
1946
|
-
color: "var(--
|
|
1942
|
+
color: "var(--sk-error)",
|
|
1947
1943
|
textTransform: "uppercase",
|
|
1948
1944
|
letterSpacing: "0.03em",
|
|
1949
1945
|
lineHeight: 1
|
|
@@ -1958,8 +1954,8 @@ function VariantSelector({ variants, selected, isClothing, showInventory, onSele
|
|
|
1958
1954
|
width: 8,
|
|
1959
1955
|
height: 8,
|
|
1960
1956
|
borderRadius: "50%",
|
|
1961
|
-
backgroundColor: isLow ? "var(--
|
|
1962
|
-
border: "2px solid var(--
|
|
1957
|
+
backgroundColor: isLow ? "var(--sk-warning)" : "var(--sk-success)",
|
|
1958
|
+
border: "2px solid var(--sk-bg-elevated)"
|
|
1963
1959
|
},
|
|
1964
1960
|
title: isLow ? `Only ${variant.inventory_count} left` : "In stock"
|
|
1965
1961
|
}
|
|
@@ -1980,7 +1976,7 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
1980
1976
|
display: "block",
|
|
1981
1977
|
fontSize: "0.875rem",
|
|
1982
1978
|
fontWeight: 600,
|
|
1983
|
-
color: "var(--
|
|
1979
|
+
color: "var(--sk-text-primary)",
|
|
1984
1980
|
marginBottom: "0.5rem"
|
|
1985
1981
|
},
|
|
1986
1982
|
children: "Quantity"
|
|
@@ -1992,8 +1988,8 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
1992
1988
|
style: {
|
|
1993
1989
|
display: "inline-flex",
|
|
1994
1990
|
alignItems: "center",
|
|
1995
|
-
border: "1px solid var(--
|
|
1996
|
-
borderRadius: "var(--
|
|
1991
|
+
border: "1px solid var(--sk-border)",
|
|
1992
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
1997
1993
|
overflow: "hidden"
|
|
1998
1994
|
},
|
|
1999
1995
|
children: [
|
|
@@ -2007,14 +2003,14 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
2007
2003
|
width: 40,
|
|
2008
2004
|
height: 40,
|
|
2009
2005
|
border: "none",
|
|
2010
|
-
background: "var(--
|
|
2006
|
+
background: "var(--sk-bg-elevated)",
|
|
2011
2007
|
fontSize: "1.125rem",
|
|
2012
2008
|
cursor: quantity <= 1 ? "not-allowed" : "pointer",
|
|
2013
2009
|
opacity: quantity <= 1 ? 0.4 : 1,
|
|
2014
2010
|
display: "flex",
|
|
2015
2011
|
alignItems: "center",
|
|
2016
2012
|
justifyContent: "center",
|
|
2017
|
-
color: "var(--
|
|
2013
|
+
color: "var(--sk-text-primary)"
|
|
2018
2014
|
},
|
|
2019
2015
|
children: "-"
|
|
2020
2016
|
}
|
|
@@ -2036,11 +2032,11 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
2036
2032
|
height: 40,
|
|
2037
2033
|
textAlign: "center",
|
|
2038
2034
|
border: "none",
|
|
2039
|
-
borderLeft: "1px solid var(--
|
|
2040
|
-
borderRight: "1px solid var(--
|
|
2035
|
+
borderLeft: "1px solid var(--sk-border)",
|
|
2036
|
+
borderRight: "1px solid var(--sk-border)",
|
|
2041
2037
|
fontSize: "0.9375rem",
|
|
2042
2038
|
fontWeight: 500,
|
|
2043
|
-
color: "var(--
|
|
2039
|
+
color: "var(--sk-text-primary)",
|
|
2044
2040
|
outline: "none",
|
|
2045
2041
|
MozAppearance: "textfield",
|
|
2046
2042
|
appearance: "textfield"
|
|
@@ -2057,14 +2053,14 @@ function QuantitySelector({ quantity, max, onChange }) {
|
|
|
2057
2053
|
width: 40,
|
|
2058
2054
|
height: 40,
|
|
2059
2055
|
border: "none",
|
|
2060
|
-
background: "var(--
|
|
2056
|
+
background: "var(--sk-bg-elevated)",
|
|
2061
2057
|
fontSize: "1.125rem",
|
|
2062
2058
|
cursor: quantity >= max ? "not-allowed" : "pointer",
|
|
2063
2059
|
opacity: quantity >= max ? 0.4 : 1,
|
|
2064
2060
|
display: "flex",
|
|
2065
2061
|
alignItems: "center",
|
|
2066
2062
|
justifyContent: "center",
|
|
2067
|
-
color: "var(--
|
|
2063
|
+
color: "var(--sk-text-primary)"
|
|
2068
2064
|
},
|
|
2069
2065
|
children: "+"
|
|
2070
2066
|
}
|
|
@@ -2100,18 +2096,18 @@ function TrustBadges({ badges = DEFAULT_TRUST_BADGES }) {
|
|
|
2100
2096
|
alignItems: "center",
|
|
2101
2097
|
textAlign: "center",
|
|
2102
2098
|
padding: "0.75rem 0.5rem",
|
|
2103
|
-
borderRadius: "var(--
|
|
2104
|
-
background: "var(--
|
|
2099
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2100
|
+
background: "var(--sk-bg-elevated)"
|
|
2105
2101
|
},
|
|
2106
2102
|
children: [
|
|
2107
|
-
/* @__PURE__ */ jsx("span", { style: { color: "var(--
|
|
2103
|
+
/* @__PURE__ */ jsx("span", { style: { color: "var(--sk-text-secondary)", marginBottom: 4 }, children: Icon && /* @__PURE__ */ jsx(Icon, {}) }),
|
|
2108
2104
|
/* @__PURE__ */ jsx(
|
|
2109
2105
|
"span",
|
|
2110
2106
|
{
|
|
2111
2107
|
style: {
|
|
2112
2108
|
fontSize: "0.75rem",
|
|
2113
2109
|
fontWeight: 600,
|
|
2114
|
-
color: "var(--
|
|
2110
|
+
color: "var(--sk-text-primary)",
|
|
2115
2111
|
lineHeight: 1.3
|
|
2116
2112
|
},
|
|
2117
2113
|
children: badge.label
|
|
@@ -2122,7 +2118,7 @@ function TrustBadges({ badges = DEFAULT_TRUST_BADGES }) {
|
|
|
2122
2118
|
{
|
|
2123
2119
|
style: {
|
|
2124
2120
|
fontSize: "0.6875rem",
|
|
2125
|
-
color: "var(--
|
|
2121
|
+
color: "var(--sk-text-secondary)",
|
|
2126
2122
|
lineHeight: 1.3
|
|
2127
2123
|
},
|
|
2128
2124
|
children: badge.sublabel
|
|
@@ -2184,7 +2180,7 @@ function ProductTabs({
|
|
|
2184
2180
|
"li",
|
|
2185
2181
|
{
|
|
2186
2182
|
style: {
|
|
2187
|
-
color: "var(--
|
|
2183
|
+
color: "var(--sk-text-secondary)",
|
|
2188
2184
|
fontSize: "0.9375rem",
|
|
2189
2185
|
lineHeight: 1.6
|
|
2190
2186
|
},
|
|
@@ -2209,7 +2205,7 @@ function ProductTabs({
|
|
|
2209
2205
|
{
|
|
2210
2206
|
style: {
|
|
2211
2207
|
fontSize: "0.875rem",
|
|
2212
|
-
color: "var(--
|
|
2208
|
+
color: "var(--sk-text-secondary)",
|
|
2213
2209
|
fontWeight: 500
|
|
2214
2210
|
},
|
|
2215
2211
|
children: key
|
|
@@ -2221,7 +2217,7 @@ function ProductTabs({
|
|
|
2221
2217
|
style: {
|
|
2222
2218
|
margin: 0,
|
|
2223
2219
|
fontSize: "0.875rem",
|
|
2224
|
-
color: "var(--
|
|
2220
|
+
color: "var(--sk-text-primary)"
|
|
2225
2221
|
},
|
|
2226
2222
|
children: value
|
|
2227
2223
|
}
|
|
@@ -2235,7 +2231,7 @@ function ProductTabs({
|
|
|
2235
2231
|
id: "skc-tabpanel-description",
|
|
2236
2232
|
role: "tabpanel",
|
|
2237
2233
|
style: {
|
|
2238
|
-
color: "var(--
|
|
2234
|
+
color: "var(--sk-text-secondary)",
|
|
2239
2235
|
lineHeight: 1.7,
|
|
2240
2236
|
fontSize: "0.9375rem"
|
|
2241
2237
|
},
|
|
@@ -2254,14 +2250,14 @@ function EventInfoBlock({ product, schedule }) {
|
|
|
2254
2250
|
style: {
|
|
2255
2251
|
marginTop: "1.25rem",
|
|
2256
2252
|
padding: "1rem",
|
|
2257
|
-
borderRadius: "var(--
|
|
2258
|
-
background: "var(--
|
|
2253
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2254
|
+
background: "var(--sk-bg-elevated)",
|
|
2259
2255
|
display: "flex",
|
|
2260
2256
|
flexDirection: "column",
|
|
2261
2257
|
gap: "0.5rem"
|
|
2262
2258
|
},
|
|
2263
2259
|
children: [
|
|
2264
|
-
schedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--
|
|
2260
|
+
schedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
2265
2261
|
/* @__PURE__ */ jsx(IconCalendar, {}),
|
|
2266
2262
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
2267
2263
|
formatDate(schedule.starts_at),
|
|
@@ -2269,17 +2265,17 @@ function EventInfoBlock({ product, schedule }) {
|
|
|
2269
2265
|
formatTime(schedule.starts_at)
|
|
2270
2266
|
] })
|
|
2271
2267
|
] }),
|
|
2272
|
-
product.location && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--
|
|
2268
|
+
product.location && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
2273
2269
|
/* @__PURE__ */ jsx(IconMapPin, {}),
|
|
2274
2270
|
/* @__PURE__ */ jsx("span", { children: product.location })
|
|
2275
2271
|
] }),
|
|
2276
|
-
product.is_virtual && product.virtual_meeting_url && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--
|
|
2272
|
+
product.is_virtual && product.virtual_meeting_url && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--sk-primary)" }, children: [
|
|
2277
2273
|
/* @__PURE__ */ jsx(IconExternalLink, {}),
|
|
2278
2274
|
/* @__PURE__ */ jsx("span", { children: "Virtual Event" })
|
|
2279
2275
|
] }),
|
|
2280
|
-
schedule?.capacity != null && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--
|
|
2276
|
+
schedule?.capacity != null && /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6, fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
2281
2277
|
/* @__PURE__ */ jsx(IconUsers, {}),
|
|
2282
|
-
/* @__PURE__ */ jsx("span", { children: soldOut ? /* @__PURE__ */ jsx("span", { style: { color: "var(--
|
|
2278
|
+
/* @__PURE__ */ jsx("span", { children: soldOut ? /* @__PURE__ */ jsx("span", { style: { color: "var(--sk-error)", fontWeight: 600 }, children: "Sold Out" }) : schedule.spots_remaining != null && schedule.spots_remaining <= 10 ? /* @__PURE__ */ jsxs("span", { className: "skc-pulse", style: { color: "var(--sk-warning)", fontWeight: 600 }, children: [
|
|
2283
2279
|
"Only ",
|
|
2284
2280
|
schedule.spots_remaining,
|
|
2285
2281
|
" spot",
|
|
@@ -2313,9 +2309,9 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2313
2309
|
onNext();
|
|
2314
2310
|
};
|
|
2315
2311
|
return /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2316
|
-
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--
|
|
2312
|
+
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: "Contact Information" }),
|
|
2317
2313
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2318
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2314
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Full Name *" }),
|
|
2319
2315
|
/* @__PURE__ */ jsx(
|
|
2320
2316
|
"input",
|
|
2321
2317
|
{
|
|
@@ -2330,7 +2326,7 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2330
2326
|
)
|
|
2331
2327
|
] }),
|
|
2332
2328
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2333
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2329
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Email Address *" }),
|
|
2334
2330
|
/* @__PURE__ */ jsx(
|
|
2335
2331
|
"input",
|
|
2336
2332
|
{
|
|
@@ -2344,7 +2340,7 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2344
2340
|
)
|
|
2345
2341
|
] }),
|
|
2346
2342
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2347
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2343
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Phone Number" }),
|
|
2348
2344
|
/* @__PURE__ */ jsx(
|
|
2349
2345
|
"input",
|
|
2350
2346
|
{
|
|
@@ -2364,10 +2360,10 @@ function CustomerInfoStep({ customer, onChange, onNext, onBack }) {
|
|
|
2364
2360
|
onClick: onBack,
|
|
2365
2361
|
style: {
|
|
2366
2362
|
padding: "0.75rem 1.25rem",
|
|
2367
|
-
borderRadius: "var(--
|
|
2368
|
-
border: "1px solid var(--
|
|
2369
|
-
background: "
|
|
2370
|
-
color: "var(--
|
|
2363
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2364
|
+
border: "1px solid var(--sk-border)",
|
|
2365
|
+
background: "var(--sk-bg)",
|
|
2366
|
+
color: "var(--sk-text-secondary)",
|
|
2371
2367
|
fontSize: "0.875rem",
|
|
2372
2368
|
fontWeight: 500,
|
|
2373
2369
|
cursor: "pointer"
|
|
@@ -2388,9 +2384,9 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2388
2384
|
onChange({ ...address, [field]: value });
|
|
2389
2385
|
};
|
|
2390
2386
|
return /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2391
|
-
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--
|
|
2387
|
+
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: "Shipping Address" }),
|
|
2392
2388
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2393
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2389
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Street Address *" }),
|
|
2394
2390
|
/* @__PURE__ */ jsx(
|
|
2395
2391
|
"input",
|
|
2396
2392
|
{
|
|
@@ -2405,7 +2401,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2405
2401
|
)
|
|
2406
2402
|
] }),
|
|
2407
2403
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2408
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2404
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Apt / Suite" }),
|
|
2409
2405
|
/* @__PURE__ */ jsx(
|
|
2410
2406
|
"input",
|
|
2411
2407
|
{
|
|
@@ -2419,7 +2415,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2419
2415
|
] }),
|
|
2420
2416
|
/* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.75rem" }, children: [
|
|
2421
2417
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2422
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2418
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "City *" }),
|
|
2423
2419
|
/* @__PURE__ */ jsx(
|
|
2424
2420
|
"input",
|
|
2425
2421
|
{
|
|
@@ -2433,7 +2429,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2433
2429
|
)
|
|
2434
2430
|
] }),
|
|
2435
2431
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2436
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2432
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "State *" }),
|
|
2437
2433
|
/* @__PURE__ */ jsx(
|
|
2438
2434
|
"input",
|
|
2439
2435
|
{
|
|
@@ -2449,7 +2445,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2449
2445
|
] }),
|
|
2450
2446
|
/* @__PURE__ */ jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "0.75rem" }, children: [
|
|
2451
2447
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2452
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2448
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "ZIP Code *" }),
|
|
2453
2449
|
/* @__PURE__ */ jsx(
|
|
2454
2450
|
"input",
|
|
2455
2451
|
{
|
|
@@ -2463,7 +2459,7 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2463
2459
|
)
|
|
2464
2460
|
] }),
|
|
2465
2461
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2466
|
-
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--
|
|
2462
|
+
/* @__PURE__ */ jsx("label", { style: { display: "block", fontSize: "0.8125rem", fontWeight: 500, color: "var(--sk-text-secondary)", marginBottom: 4 }, children: "Country" }),
|
|
2467
2463
|
/* @__PURE__ */ jsx(
|
|
2468
2464
|
"input",
|
|
2469
2465
|
{
|
|
@@ -2484,10 +2480,10 @@ function ShippingAddressStep({ address, onChange, onNext, onBack, loading }) {
|
|
|
2484
2480
|
onClick: onBack,
|
|
2485
2481
|
style: {
|
|
2486
2482
|
padding: "0.75rem 1.25rem",
|
|
2487
|
-
borderRadius: "var(--
|
|
2488
|
-
border: "1px solid var(--
|
|
2489
|
-
background: "
|
|
2490
|
-
color: "var(--
|
|
2483
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2484
|
+
border: "1px solid var(--sk-border)",
|
|
2485
|
+
background: "var(--sk-bg)",
|
|
2486
|
+
color: "var(--sk-text-secondary)",
|
|
2491
2487
|
fontSize: "0.875rem",
|
|
2492
2488
|
fontWeight: 500,
|
|
2493
2489
|
cursor: "pointer"
|
|
@@ -2508,20 +2504,20 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2508
2504
|
style: {
|
|
2509
2505
|
width: 32,
|
|
2510
2506
|
height: 32,
|
|
2511
|
-
border: "3px solid var(--
|
|
2512
|
-
borderTopColor: "var(--
|
|
2507
|
+
border: "3px solid var(--sk-border)",
|
|
2508
|
+
borderTopColor: "var(--sk-primary)",
|
|
2513
2509
|
borderRadius: "50%",
|
|
2514
2510
|
animation: "skc-spin 1s linear infinite",
|
|
2515
2511
|
margin: "0 auto 1rem"
|
|
2516
2512
|
}
|
|
2517
2513
|
}
|
|
2518
2514
|
),
|
|
2519
|
-
/* @__PURE__ */ jsx("p", { style: { color: "var(--
|
|
2515
|
+
/* @__PURE__ */ jsx("p", { style: { color: "var(--sk-text-secondary)", fontSize: "0.875rem", margin: 0 }, children: "Calculating shipping rates..." })
|
|
2520
2516
|
] });
|
|
2521
2517
|
}
|
|
2522
2518
|
if (!rates.length) {
|
|
2523
2519
|
return /* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "1.5rem 0" }, children: [
|
|
2524
|
-
/* @__PURE__ */ jsx("p", { style: { color: "var(--
|
|
2520
|
+
/* @__PURE__ */ 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." }),
|
|
2525
2521
|
/* @__PURE__ */ jsx(
|
|
2526
2522
|
"button",
|
|
2527
2523
|
{
|
|
@@ -2529,10 +2525,10 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2529
2525
|
onClick: onBack,
|
|
2530
2526
|
style: {
|
|
2531
2527
|
padding: "0.75rem 1.5rem",
|
|
2532
|
-
borderRadius: "var(--
|
|
2533
|
-
border: "1px solid var(--
|
|
2534
|
-
background: "
|
|
2535
|
-
color: "var(--
|
|
2528
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2529
|
+
border: "1px solid var(--sk-border)",
|
|
2530
|
+
background: "var(--sk-bg)",
|
|
2531
|
+
color: "var(--sk-text-secondary)",
|
|
2536
2532
|
fontSize: "0.875rem",
|
|
2537
2533
|
fontWeight: 500,
|
|
2538
2534
|
cursor: "pointer"
|
|
@@ -2543,7 +2539,7 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2543
2539
|
] });
|
|
2544
2540
|
}
|
|
2545
2541
|
return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.875rem" }, children: [
|
|
2546
|
-
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--
|
|
2542
|
+
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: "Shipping Method" }),
|
|
2547
2543
|
/* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, role: "radiogroup", "aria-label": "Shipping options", children: rates.map((rate, idx) => {
|
|
2548
2544
|
const isSelected = selected?.objectId === rate.objectId || selected === null && idx === 0;
|
|
2549
2545
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2557,23 +2553,23 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2557
2553
|
alignItems: "center",
|
|
2558
2554
|
justifyContent: "space-between",
|
|
2559
2555
|
padding: "0.875rem 1rem",
|
|
2560
|
-
borderRadius: "var(--
|
|
2561
|
-
border: isSelected ? "2px solid var(--
|
|
2562
|
-
background: isSelected ? "rgba(
|
|
2556
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2557
|
+
border: isSelected ? "2px solid var(--sk-primary)" : "1px solid var(--sk-border)",
|
|
2558
|
+
background: isSelected ? "rgba(var(--sk-primary-rgb), 0.03)" : "var(--sk-bg)",
|
|
2563
2559
|
cursor: "pointer",
|
|
2564
2560
|
textAlign: "left",
|
|
2565
2561
|
width: "100%"
|
|
2566
2562
|
},
|
|
2567
2563
|
children: [
|
|
2568
2564
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
2569
|
-
/* @__PURE__ */ jsxs("div", { style: { fontSize: "0.875rem", fontWeight: 600, color: "var(--
|
|
2565
|
+
/* @__PURE__ */ jsxs("div", { style: { fontSize: "0.875rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: [
|
|
2570
2566
|
rate.carrier,
|
|
2571
2567
|
" \u2014 ",
|
|
2572
2568
|
rate.service
|
|
2573
2569
|
] }),
|
|
2574
|
-
rate.estimatedDays != null && /* @__PURE__ */ jsx("div", { style: { fontSize: "0.8125rem", color: "var(--
|
|
2570
|
+
rate.estimatedDays != null && /* @__PURE__ */ jsx("div", { style: { fontSize: "0.8125rem", color: "var(--sk-text-secondary)", marginTop: 2 }, children: rate.estimatedDays === 1 ? "1 business day" : `${rate.estimatedDays} business days` })
|
|
2575
2571
|
] }),
|
|
2576
|
-
/* @__PURE__ */ jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--
|
|
2572
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: "0.9375rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: formatPrice(parseFloat(rate.amount), rate.currency || currency) })
|
|
2577
2573
|
]
|
|
2578
2574
|
},
|
|
2579
2575
|
rate.objectId || idx
|
|
@@ -2587,10 +2583,10 @@ function ShippingRatesStep({ rates, selected, onSelect, onNext, onBack, loading,
|
|
|
2587
2583
|
onClick: onBack,
|
|
2588
2584
|
style: {
|
|
2589
2585
|
padding: "0.75rem 1.25rem",
|
|
2590
|
-
borderRadius: "var(--
|
|
2591
|
-
border: "1px solid var(--
|
|
2592
|
-
background: "
|
|
2593
|
-
color: "var(--
|
|
2586
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2587
|
+
border: "1px solid var(--sk-border)",
|
|
2588
|
+
background: "var(--sk-bg)",
|
|
2589
|
+
color: "var(--sk-text-secondary)",
|
|
2594
2590
|
fontSize: "0.875rem",
|
|
2595
2591
|
fontWeight: 500,
|
|
2596
2592
|
cursor: "pointer"
|
|
@@ -2813,21 +2809,21 @@ function PaymentStep({
|
|
|
2813
2809
|
}
|
|
2814
2810
|
};
|
|
2815
2811
|
return /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
2816
|
-
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--
|
|
2812
|
+
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: "Payment" }),
|
|
2817
2813
|
/* @__PURE__ */ jsxs(
|
|
2818
2814
|
"div",
|
|
2819
2815
|
{
|
|
2820
2816
|
style: {
|
|
2821
2817
|
padding: "1rem",
|
|
2822
|
-
borderRadius: "var(--
|
|
2823
|
-
background: "var(--
|
|
2818
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2819
|
+
background: "var(--sk-bg-elevated)",
|
|
2824
2820
|
display: "flex",
|
|
2825
2821
|
flexDirection: "column",
|
|
2826
2822
|
gap: "0.375rem",
|
|
2827
2823
|
fontSize: "0.875rem"
|
|
2828
2824
|
},
|
|
2829
2825
|
children: [
|
|
2830
|
-
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--
|
|
2826
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--sk-text-secondary)" }, children: [
|
|
2831
2827
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
2832
2828
|
product.name,
|
|
2833
2829
|
" ",
|
|
@@ -2837,7 +2833,7 @@ function PaymentStep({
|
|
|
2837
2833
|
] }),
|
|
2838
2834
|
/* @__PURE__ */ jsx("span", { children: formatPrice(subtotal, product.currency) })
|
|
2839
2835
|
] }),
|
|
2840
|
-
shippingRate && /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--
|
|
2836
|
+
shippingRate && /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", color: "var(--sk-text-secondary)" }, children: [
|
|
2841
2837
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
2842
2838
|
"Shipping (",
|
|
2843
2839
|
shippingRate.carrier,
|
|
@@ -2854,10 +2850,10 @@ function PaymentStep({
|
|
|
2854
2850
|
display: "flex",
|
|
2855
2851
|
justifyContent: "space-between",
|
|
2856
2852
|
fontWeight: 700,
|
|
2857
|
-
color: "var(--
|
|
2853
|
+
color: "var(--sk-text-primary)",
|
|
2858
2854
|
fontSize: "1rem",
|
|
2859
2855
|
paddingTop: "0.5rem",
|
|
2860
|
-
borderTop: "1px solid var(--
|
|
2856
|
+
borderTop: "1px solid var(--sk-border)",
|
|
2861
2857
|
marginTop: "0.25rem"
|
|
2862
2858
|
},
|
|
2863
2859
|
children: [
|
|
@@ -2877,7 +2873,7 @@ function PaymentStep({
|
|
|
2877
2873
|
display: "block",
|
|
2878
2874
|
fontSize: "0.8125rem",
|
|
2879
2875
|
fontWeight: 500,
|
|
2880
|
-
color: "var(--
|
|
2876
|
+
color: "var(--sk-text-secondary)",
|
|
2881
2877
|
marginBottom: 6
|
|
2882
2878
|
},
|
|
2883
2879
|
children: "Card Details"
|
|
@@ -2890,14 +2886,14 @@ function PaymentStep({
|
|
|
2890
2886
|
ref: cardContainerRef,
|
|
2891
2887
|
style: {
|
|
2892
2888
|
minHeight: processor === "stripe" ? 80 : 44,
|
|
2893
|
-
border: "1px solid var(--
|
|
2894
|
-
borderRadius: "var(--
|
|
2889
|
+
border: "1px solid var(--sk-border)",
|
|
2890
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2895
2891
|
padding: processor === "stripe" ? "0.75rem" : "0.5rem 0.75rem",
|
|
2896
|
-
background: "
|
|
2892
|
+
background: "var(--sk-bg)"
|
|
2897
2893
|
}
|
|
2898
2894
|
}
|
|
2899
2895
|
),
|
|
2900
|
-
!cardReady && !error && /* @__PURE__ */ jsx("p", { style: { fontSize: "0.75rem", color: "var(--
|
|
2896
|
+
!cardReady && !error && /* @__PURE__ */ jsx("p", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)", marginTop: 4, marginBottom: 0 }, children: "Loading secure payment form..." })
|
|
2901
2897
|
] }),
|
|
2902
2898
|
error && /* @__PURE__ */ jsxs(
|
|
2903
2899
|
"div",
|
|
@@ -2907,10 +2903,10 @@ function PaymentStep({
|
|
|
2907
2903
|
alignItems: "flex-start",
|
|
2908
2904
|
gap: 8,
|
|
2909
2905
|
padding: "0.75rem",
|
|
2910
|
-
background: "
|
|
2911
|
-
border: "1px solid
|
|
2912
|
-
borderRadius: "var(--
|
|
2913
|
-
color: "var(--
|
|
2906
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
2907
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
2908
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2909
|
+
color: "var(--sk-error)",
|
|
2914
2910
|
fontSize: "0.875rem"
|
|
2915
2911
|
},
|
|
2916
2912
|
children: [
|
|
@@ -2928,10 +2924,10 @@ function PaymentStep({
|
|
|
2928
2924
|
disabled: submitting,
|
|
2929
2925
|
style: {
|
|
2930
2926
|
padding: "0.75rem 1.25rem",
|
|
2931
|
-
borderRadius: "var(--
|
|
2932
|
-
border: "1px solid var(--
|
|
2933
|
-
background: "
|
|
2934
|
-
color: "var(--
|
|
2927
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
2928
|
+
border: "1px solid var(--sk-border)",
|
|
2929
|
+
background: "var(--sk-bg)",
|
|
2930
|
+
color: "var(--sk-text-secondary)",
|
|
2935
2931
|
fontSize: "0.875rem",
|
|
2936
2932
|
fontWeight: 500,
|
|
2937
2933
|
cursor: submitting ? "not-allowed" : "pointer",
|
|
@@ -2978,7 +2974,7 @@ function PaymentStep({
|
|
|
2978
2974
|
style: {
|
|
2979
2975
|
textAlign: "center",
|
|
2980
2976
|
fontSize: "0.6875rem",
|
|
2981
|
-
color: "var(--
|
|
2977
|
+
color: "var(--sk-text-secondary)",
|
|
2982
2978
|
margin: "0.25rem 0 0"
|
|
2983
2979
|
},
|
|
2984
2980
|
children: [
|
|
@@ -3019,7 +3015,7 @@ function SuccessStep({ result, product, onClose }) {
|
|
|
3019
3015
|
height: "32",
|
|
3020
3016
|
viewBox: "0 0 24 24",
|
|
3021
3017
|
fill: "none",
|
|
3022
|
-
stroke: "var(--
|
|
3018
|
+
stroke: "var(--sk-success)",
|
|
3023
3019
|
strokeWidth: "2.5",
|
|
3024
3020
|
strokeLinecap: "round",
|
|
3025
3021
|
strokeLinejoin: "round",
|
|
@@ -3041,21 +3037,21 @@ function SuccessStep({ result, product, onClose }) {
|
|
|
3041
3037
|
margin: "0 0 0.5rem",
|
|
3042
3038
|
fontSize: "1.375rem",
|
|
3043
3039
|
fontWeight: 700,
|
|
3044
|
-
color: "var(--
|
|
3040
|
+
color: "var(--sk-success)"
|
|
3045
3041
|
},
|
|
3046
3042
|
children: "Order Confirmed!"
|
|
3047
3043
|
}
|
|
3048
3044
|
),
|
|
3049
|
-
/* @__PURE__ */ jsxs("p", { style: { color: "var(--
|
|
3045
|
+
/* @__PURE__ */ jsxs("p", { style: { color: "var(--sk-text-secondary)", margin: "0 0 0.5rem", fontSize: "0.9375rem" }, children: [
|
|
3050
3046
|
"Thank you for your purchase of ",
|
|
3051
3047
|
product.name,
|
|
3052
3048
|
"."
|
|
3053
3049
|
] }),
|
|
3054
|
-
result.confirmation_number && /* @__PURE__ */ jsxs("p", { style: { color: "var(--
|
|
3050
|
+
result.confirmation_number && /* @__PURE__ */ jsxs("p", { style: { color: "var(--sk-text-secondary)", margin: "0 0 1rem", fontSize: "0.8125rem" }, children: [
|
|
3055
3051
|
"Confirmation: ",
|
|
3056
|
-
/* @__PURE__ */ jsx("strong", { style: { color: "var(--
|
|
3052
|
+
/* @__PURE__ */ jsx("strong", { style: { color: "var(--sk-text-primary)" }, children: result.confirmation_number })
|
|
3057
3053
|
] }),
|
|
3058
|
-
/* @__PURE__ */ jsx("p", { style: { color: "var(--
|
|
3054
|
+
/* @__PURE__ */ 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." }),
|
|
3059
3055
|
/* @__PURE__ */ jsx("button", { className: "skc-btn-primary", onClick: onClose, style: { maxWidth: 240 }, children: "Done" })
|
|
3060
3056
|
]
|
|
3061
3057
|
}
|
|
@@ -3237,8 +3233,8 @@ function ProductDetail({
|
|
|
3237
3233
|
style: {
|
|
3238
3234
|
width: 48,
|
|
3239
3235
|
height: 48,
|
|
3240
|
-
border: "3px solid var(--
|
|
3241
|
-
borderTopColor: "var(--
|
|
3236
|
+
border: "3px solid var(--sk-border)",
|
|
3237
|
+
borderTopColor: "var(--sk-primary)",
|
|
3242
3238
|
borderRadius: "50%",
|
|
3243
3239
|
animation: "skc-spin 1s linear infinite"
|
|
3244
3240
|
}
|
|
@@ -3248,8 +3244,8 @@ function ProductDetail({
|
|
|
3248
3244
|
}
|
|
3249
3245
|
return /* @__PURE__ */ jsxs("div", { className: `skc-detail ${className}`, style: customStyle, children: [
|
|
3250
3246
|
/* @__PURE__ */ jsx("style", { children: STYLE_BLOCK }),
|
|
3251
|
-
/* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "4rem 2rem", color: "var(--
|
|
3252
|
-
/* @__PURE__ */ jsx("h2", { style: { margin: 0, fontSize: "1.5rem", color: "var(--
|
|
3247
|
+
/* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "4rem 2rem", color: "var(--sk-text-secondary)" }, children: [
|
|
3248
|
+
/* @__PURE__ */ jsx("h2", { style: { margin: 0, fontSize: "1.5rem", color: "var(--sk-text-primary)" }, children: "Product Not Found" }),
|
|
3253
3249
|
/* @__PURE__ */ jsx("p", { style: { marginTop: "0.5rem" }, children: "The product you are looking for does not exist or has been removed." })
|
|
3254
3250
|
] })
|
|
3255
3251
|
] });
|
|
@@ -3419,7 +3415,7 @@ function ProductDetail({
|
|
|
3419
3415
|
style: {
|
|
3420
3416
|
fontSize: "0.75rem",
|
|
3421
3417
|
fontWeight: 600,
|
|
3422
|
-
color: "var(--
|
|
3418
|
+
color: "var(--sk-primary)",
|
|
3423
3419
|
textTransform: "uppercase",
|
|
3424
3420
|
letterSpacing: "0.05em",
|
|
3425
3421
|
marginBottom: "0.375rem"
|
|
@@ -3434,7 +3430,7 @@ function ProductDetail({
|
|
|
3434
3430
|
margin: 0,
|
|
3435
3431
|
fontSize: "1.875rem",
|
|
3436
3432
|
fontWeight: 700,
|
|
3437
|
-
color: "var(--
|
|
3433
|
+
color: "var(--sk-text-primary)",
|
|
3438
3434
|
lineHeight: 1.2
|
|
3439
3435
|
},
|
|
3440
3436
|
children: product.name
|
|
@@ -3447,7 +3443,7 @@ function ProductDetail({
|
|
|
3447
3443
|
marginTop: "0.625rem",
|
|
3448
3444
|
marginBottom: 0,
|
|
3449
3445
|
fontSize: "1rem",
|
|
3450
|
-
color: "var(--
|
|
3446
|
+
color: "var(--sk-text-secondary)",
|
|
3451
3447
|
lineHeight: 1.6
|
|
3452
3448
|
},
|
|
3453
3449
|
children: product.short_description
|
|
@@ -3470,7 +3466,7 @@ function ProductDetail({
|
|
|
3470
3466
|
style: {
|
|
3471
3467
|
fontSize: "1.75rem",
|
|
3472
3468
|
fontWeight: 700,
|
|
3473
|
-
color: hasDiscount ? "var(--
|
|
3469
|
+
color: hasDiscount ? "var(--sk-error)" : "var(--sk-text-primary)"
|
|
3474
3470
|
},
|
|
3475
3471
|
children: formatPrice(currentPrice, product.currency)
|
|
3476
3472
|
}
|
|
@@ -3481,7 +3477,7 @@ function ProductDetail({
|
|
|
3481
3477
|
{
|
|
3482
3478
|
style: {
|
|
3483
3479
|
fontSize: "1.125rem",
|
|
3484
|
-
color: "var(--
|
|
3480
|
+
color: "var(--sk-text-secondary)",
|
|
3485
3481
|
textDecoration: "line-through"
|
|
3486
3482
|
},
|
|
3487
3483
|
children: formatPrice(compareAtPrice, product.currency)
|
|
@@ -3493,8 +3489,8 @@ function ProductDetail({
|
|
|
3493
3489
|
style: {
|
|
3494
3490
|
fontSize: "0.75rem",
|
|
3495
3491
|
fontWeight: 700,
|
|
3496
|
-
color: "var(--
|
|
3497
|
-
background: "var(--
|
|
3492
|
+
color: "var(--sk-bg)",
|
|
3493
|
+
background: "var(--sk-error)",
|
|
3498
3494
|
padding: "2px 8px",
|
|
3499
3495
|
borderRadius: 4
|
|
3500
3496
|
},
|
|
@@ -3506,7 +3502,7 @@ function ProductDetail({
|
|
|
3506
3502
|
}
|
|
3507
3503
|
)
|
|
3508
3504
|
] }),
|
|
3509
|
-
product.billing_period && /* @__PURE__ */ jsxs("span", { style: { fontSize: "0.875rem", color: "var(--
|
|
3505
|
+
product.billing_period && /* @__PURE__ */ jsxs("span", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
3510
3506
|
"/ ",
|
|
3511
3507
|
product.billing_period
|
|
3512
3508
|
] })
|
|
@@ -3519,7 +3515,7 @@ function ProductDetail({
|
|
|
3519
3515
|
style: {
|
|
3520
3516
|
fontSize: "0.8125rem",
|
|
3521
3517
|
fontWeight: 600,
|
|
3522
|
-
color: "var(--
|
|
3518
|
+
color: "var(--sk-error)",
|
|
3523
3519
|
display: "flex",
|
|
3524
3520
|
alignItems: "center",
|
|
3525
3521
|
gap: 4
|
|
@@ -3536,7 +3532,7 @@ function ProductDetail({
|
|
|
3536
3532
|
style: {
|
|
3537
3533
|
fontSize: "0.8125rem",
|
|
3538
3534
|
fontWeight: 600,
|
|
3539
|
-
color: "var(--
|
|
3535
|
+
color: "var(--sk-warning)",
|
|
3540
3536
|
display: "flex",
|
|
3541
3537
|
alignItems: "center",
|
|
3542
3538
|
gap: 4
|
|
@@ -3554,7 +3550,7 @@ function ProductDetail({
|
|
|
3554
3550
|
style: {
|
|
3555
3551
|
fontSize: "0.8125rem",
|
|
3556
3552
|
fontWeight: 500,
|
|
3557
|
-
color: "var(--
|
|
3553
|
+
color: "var(--sk-success)",
|
|
3558
3554
|
display: "flex",
|
|
3559
3555
|
alignItems: "center",
|
|
3560
3556
|
gap: 4
|
|
@@ -3582,7 +3578,7 @@ function ProductDetail({
|
|
|
3582
3578
|
style: {
|
|
3583
3579
|
marginTop: "0.5rem",
|
|
3584
3580
|
fontSize: "0.8125rem",
|
|
3585
|
-
color: "var(--
|
|
3581
|
+
color: "var(--sk-text-secondary)",
|
|
3586
3582
|
fontStyle: "italic"
|
|
3587
3583
|
},
|
|
3588
3584
|
children: product.metadata.sizing_notes
|
|
@@ -3594,14 +3590,14 @@ function ProductDetail({
|
|
|
3594
3590
|
style: {
|
|
3595
3591
|
marginTop: "0.75rem",
|
|
3596
3592
|
padding: "0.625rem 0.875rem",
|
|
3597
|
-
borderRadius: "var(--
|
|
3598
|
-
backgroundColor: "color-mix(in srgb, var(--
|
|
3599
|
-
border: "1px solid color-mix(in srgb, var(--
|
|
3593
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3594
|
+
backgroundColor: "color-mix(in srgb, var(--sk-warning) 10%, transparent)",
|
|
3595
|
+
border: "1px solid color-mix(in srgb, var(--sk-warning) 25%, transparent)",
|
|
3600
3596
|
display: "flex",
|
|
3601
3597
|
alignItems: "flex-start",
|
|
3602
3598
|
gap: "0.5rem",
|
|
3603
3599
|
fontSize: "0.8125rem",
|
|
3604
|
-
color: "var(--
|
|
3600
|
+
color: "var(--sk-warning)",
|
|
3605
3601
|
fontWeight: 500,
|
|
3606
3602
|
lineHeight: 1.4
|
|
3607
3603
|
},
|
|
@@ -3621,14 +3617,14 @@ function ProductDetail({
|
|
|
3621
3617
|
style: {
|
|
3622
3618
|
marginTop: "0.75rem",
|
|
3623
3619
|
padding: "0.625rem 0.875rem",
|
|
3624
|
-
borderRadius: "var(--
|
|
3625
|
-
backgroundColor: "color-mix(in srgb, var(--
|
|
3626
|
-
border: "1px solid color-mix(in srgb, var(--
|
|
3620
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3621
|
+
backgroundColor: "color-mix(in srgb, var(--sk-warning) 10%, transparent)",
|
|
3622
|
+
border: "1px solid color-mix(in srgb, var(--sk-warning) 25%, transparent)",
|
|
3627
3623
|
display: "flex",
|
|
3628
3624
|
alignItems: "flex-start",
|
|
3629
3625
|
gap: "0.5rem",
|
|
3630
3626
|
fontSize: "0.8125rem",
|
|
3631
|
-
color: "var(--
|
|
3627
|
+
color: "var(--sk-warning)",
|
|
3632
3628
|
fontWeight: 500,
|
|
3633
3629
|
lineHeight: 1.4
|
|
3634
3630
|
},
|
|
@@ -3689,10 +3685,10 @@ function ProductDetail({
|
|
|
3689
3685
|
style: {
|
|
3690
3686
|
marginTop: "0.75rem",
|
|
3691
3687
|
padding: "0.75rem",
|
|
3692
|
-
background: "
|
|
3693
|
-
border: "1px solid
|
|
3694
|
-
borderRadius: "var(--
|
|
3695
|
-
color: "var(--
|
|
3688
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
3689
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
3690
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3691
|
+
color: "var(--sk-error)",
|
|
3696
3692
|
fontSize: "0.875rem",
|
|
3697
3693
|
display: "flex",
|
|
3698
3694
|
alignItems: "flex-start",
|
|
@@ -3711,24 +3707,24 @@ function ProductDetail({
|
|
|
3711
3707
|
style: {
|
|
3712
3708
|
marginTop: "1rem",
|
|
3713
3709
|
padding: "0.75rem 1rem",
|
|
3714
|
-
borderRadius: "var(--
|
|
3715
|
-
backgroundColor: "color-mix(in srgb, var(--
|
|
3716
|
-
border: "1px solid color-mix(in srgb, var(--
|
|
3710
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3711
|
+
backgroundColor: "color-mix(in srgb, var(--sk-primary) 6%, transparent)",
|
|
3712
|
+
border: "1px solid color-mix(in srgb, var(--sk-primary) 18%, transparent)",
|
|
3717
3713
|
display: "flex",
|
|
3718
3714
|
alignItems: "flex-start",
|
|
3719
3715
|
gap: "0.625rem",
|
|
3720
3716
|
fontSize: "0.8125rem",
|
|
3721
|
-
color: "var(--
|
|
3717
|
+
color: "var(--sk-text-secondary)",
|
|
3722
3718
|
lineHeight: 1.5
|
|
3723
3719
|
},
|
|
3724
3720
|
children: [
|
|
3725
|
-
/* @__PURE__ */ jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "var(--
|
|
3721
|
+
/* @__PURE__ */ 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: [
|
|
3726
3722
|
/* @__PURE__ */ 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" }),
|
|
3727
3723
|
/* @__PURE__ */ jsx("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
|
|
3728
3724
|
/* @__PURE__ */ jsx("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
|
|
3729
3725
|
] }),
|
|
3730
3726
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3731
|
-
/* @__PURE__ */ jsx("div", { style: { fontWeight: 600, color: "var(--
|
|
3727
|
+
/* @__PURE__ */ jsx("div", { style: { fontWeight: 600, color: "var(--sk-text-primary)", marginBottom: 2 }, children: "Care Instructions" }),
|
|
3732
3728
|
product.metadata.care_instructions
|
|
3733
3729
|
] })
|
|
3734
3730
|
]
|
|
@@ -3749,8 +3745,8 @@ function ProductDetail({
|
|
|
3749
3745
|
] }),
|
|
3750
3746
|
showStickyBar && checkoutState === "browsing" && !isOutOfStock && !needsVariantSelection && /* @__PURE__ */ jsxs("div", { className: "skc-sticky-bar", children: [
|
|
3751
3747
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
3752
|
-
/* @__PURE__ */ jsx("div", { style: { fontWeight: 600, fontSize: "0.875rem", color: "var(--
|
|
3753
|
-
product.price_is_public && currentPrice != null && /* @__PURE__ */ jsx("div", { style: { fontWeight: 700, fontSize: "1rem", color: hasDiscount ? "var(--
|
|
3748
|
+
/* @__PURE__ */ jsx("div", { style: { fontWeight: 600, fontSize: "0.875rem", color: "var(--sk-text-primary)", lineHeight: 1.2 }, children: product.name }),
|
|
3749
|
+
product.price_is_public && currentPrice != null && /* @__PURE__ */ jsx("div", { style: { fontWeight: 700, fontSize: "1rem", color: hasDiscount ? "var(--sk-error)" : "var(--sk-text-primary)" }, children: formatPrice(currentPrice, product.currency) })
|
|
3754
3750
|
] }),
|
|
3755
3751
|
/* @__PURE__ */ jsx(
|
|
3756
3752
|
"button",
|
|
@@ -3793,13 +3789,13 @@ function ProductDetail({
|
|
|
3793
3789
|
height: 32,
|
|
3794
3790
|
borderRadius: "50%",
|
|
3795
3791
|
border: "none",
|
|
3796
|
-
background: "var(--
|
|
3792
|
+
background: "var(--sk-bg-elevated)",
|
|
3797
3793
|
cursor: "pointer",
|
|
3798
3794
|
display: "flex",
|
|
3799
3795
|
alignItems: "center",
|
|
3800
3796
|
justifyContent: "center",
|
|
3801
3797
|
zIndex: 10,
|
|
3802
|
-
color: "var(--
|
|
3798
|
+
color: "var(--sk-text-secondary)"
|
|
3803
3799
|
},
|
|
3804
3800
|
children: /* @__PURE__ */ jsx(IconX, {})
|
|
3805
3801
|
}
|
|
@@ -3813,15 +3809,15 @@ function ProductDetail({
|
|
|
3813
3809
|
style: {
|
|
3814
3810
|
width: 48,
|
|
3815
3811
|
height: 48,
|
|
3816
|
-
border: "3px solid var(--
|
|
3817
|
-
borderTopColor: "var(--
|
|
3812
|
+
border: "3px solid var(--sk-border)",
|
|
3813
|
+
borderTopColor: "var(--sk-primary)",
|
|
3818
3814
|
borderRadius: "50%",
|
|
3819
3815
|
animation: "skc-spin 0.8s linear infinite",
|
|
3820
3816
|
margin: "0 auto 1.5rem"
|
|
3821
3817
|
}
|
|
3822
3818
|
}
|
|
3823
3819
|
),
|
|
3824
|
-
/* @__PURE__ */ jsx("p", { style: { color: "var(--
|
|
3820
|
+
/* @__PURE__ */ jsx("p", { style: { color: "var(--sk-text-secondary)", fontSize: "0.9375rem", margin: 0 }, children: "Processing your order..." })
|
|
3825
3821
|
] }),
|
|
3826
3822
|
checkoutState === "success" && checkoutResult && /* @__PURE__ */ jsx(SuccessStep, { result: checkoutResult, product, onClose: handleCloseCheckout }),
|
|
3827
3823
|
checkoutState === "customer-info" && /* @__PURE__ */ jsx(
|
|
@@ -3883,10 +3879,10 @@ function ProductDetail({
|
|
|
3883
3879
|
style: {
|
|
3884
3880
|
marginTop: "0.75rem",
|
|
3885
3881
|
padding: "0.75rem",
|
|
3886
|
-
background: "
|
|
3887
|
-
border: "1px solid
|
|
3888
|
-
borderRadius: "var(--
|
|
3889
|
-
color: "var(--
|
|
3882
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
3883
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
3884
|
+
borderRadius: "var(--sk-radius-sm, 8px)",
|
|
3885
|
+
color: "var(--sk-error)",
|
|
3890
3886
|
fontSize: "0.875rem",
|
|
3891
3887
|
display: "flex",
|
|
3892
3888
|
alignItems: "flex-start",
|
|
@@ -4027,7 +4023,7 @@ function ProductGrid({
|
|
|
4027
4023
|
width: "100%",
|
|
4028
4024
|
padding: "0.625rem 1rem",
|
|
4029
4025
|
borderRadius: "8px",
|
|
4030
|
-
border: "1px solid
|
|
4026
|
+
border: "1px solid var(--sk-border)",
|
|
4031
4027
|
fontSize: "0.9375rem"
|
|
4032
4028
|
}
|
|
4033
4029
|
}
|
|
@@ -4041,9 +4037,9 @@ function ProductGrid({
|
|
|
4041
4037
|
style: {
|
|
4042
4038
|
padding: "0.625rem 1rem",
|
|
4043
4039
|
borderRadius: "8px",
|
|
4044
|
-
border: "1px solid
|
|
4040
|
+
border: "1px solid var(--sk-border)",
|
|
4045
4041
|
fontSize: "0.9375rem",
|
|
4046
|
-
backgroundColor: "
|
|
4042
|
+
backgroundColor: "var(--sk-bg)",
|
|
4047
4043
|
minWidth: "150px"
|
|
4048
4044
|
},
|
|
4049
4045
|
children: [
|
|
@@ -4061,9 +4057,9 @@ function ProductGrid({
|
|
|
4061
4057
|
style: {
|
|
4062
4058
|
padding: "0.625rem 1rem",
|
|
4063
4059
|
borderRadius: "8px",
|
|
4064
|
-
border: "1px solid
|
|
4060
|
+
border: "1px solid var(--sk-border)",
|
|
4065
4061
|
fontSize: "0.9375rem",
|
|
4066
|
-
backgroundColor: "
|
|
4062
|
+
backgroundColor: "var(--sk-bg)"
|
|
4067
4063
|
},
|
|
4068
4064
|
children: [
|
|
4069
4065
|
/* @__PURE__ */ jsx("option", { value: "newest", children: "Newest First" }),
|
|
@@ -4078,7 +4074,7 @@ function ProductGrid({
|
|
|
4078
4074
|
/* @__PURE__ */ jsxs("div", { className: "site-kit-product-grid__count", style: {
|
|
4079
4075
|
marginLeft: "auto",
|
|
4080
4076
|
fontSize: "0.875rem",
|
|
4081
|
-
color: "
|
|
4077
|
+
color: "var(--sk-text-secondary)"
|
|
4082
4078
|
}, children: [
|
|
4083
4079
|
searchQuery ? filteredProducts.length : total,
|
|
4084
4080
|
" product",
|
|
@@ -4092,7 +4088,7 @@ function ProductGrid({
|
|
|
4092
4088
|
}, children: [
|
|
4093
4089
|
Array.from({ length: skeletonCount }).map((_, i) => /* @__PURE__ */ jsx("div", { className: "site-kit-product-grid__skeleton", style: {
|
|
4094
4090
|
aspectRatio: "1",
|
|
4095
|
-
backgroundColor: "
|
|
4091
|
+
backgroundColor: "var(--sk-surface)",
|
|
4096
4092
|
borderRadius: "12px",
|
|
4097
4093
|
animation: "pulse 2s infinite"
|
|
4098
4094
|
} }, i)),
|
|
@@ -4124,13 +4120,13 @@ function ProductGrid({
|
|
|
4124
4120
|
!loading && filteredProducts.length === 0 && /* @__PURE__ */ jsxs("div", { className: "site-kit-product-grid__empty", style: {
|
|
4125
4121
|
textAlign: "center",
|
|
4126
4122
|
padding: "4rem 2rem",
|
|
4127
|
-
backgroundColor: "
|
|
4123
|
+
backgroundColor: "var(--sk-bg-elevated)",
|
|
4128
4124
|
borderRadius: "12px"
|
|
4129
4125
|
}, children: [
|
|
4130
4126
|
/* @__PURE__ */ jsx("div", { style: { fontSize: "3rem", marginBottom: "1rem" }, children: "\u{1F6CD}\uFE0F" }),
|
|
4131
4127
|
/* @__PURE__ */ jsx("p", { style: {
|
|
4132
4128
|
margin: 0,
|
|
4133
|
-
color: "
|
|
4129
|
+
color: "var(--sk-text-secondary)",
|
|
4134
4130
|
fontSize: "1rem"
|
|
4135
4131
|
}, children: searchQuery ? `No products match "${searchQuery}"` : emptyMessage }),
|
|
4136
4132
|
searchQuery && /* @__PURE__ */ jsx(
|
|
@@ -4142,8 +4138,8 @@ function ProductGrid({
|
|
|
4142
4138
|
padding: "0.5rem 1rem",
|
|
4143
4139
|
borderRadius: "6px",
|
|
4144
4140
|
border: "none",
|
|
4145
|
-
backgroundColor: "
|
|
4146
|
-
color: "
|
|
4141
|
+
backgroundColor: "var(--sk-primary)",
|
|
4142
|
+
color: "var(--sk-bg)",
|
|
4147
4143
|
fontSize: "0.875rem",
|
|
4148
4144
|
cursor: "pointer"
|
|
4149
4145
|
},
|
|
@@ -4227,8 +4223,8 @@ function ProductPage({
|
|
|
4227
4223
|
}, children: /* @__PURE__ */ jsx("div", { style: {
|
|
4228
4224
|
width: "48px",
|
|
4229
4225
|
height: "48px",
|
|
4230
|
-
border: "3px solid
|
|
4231
|
-
borderTopColor: "
|
|
4226
|
+
border: "3px solid var(--sk-border)",
|
|
4227
|
+
borderTopColor: "var(--sk-primary)",
|
|
4232
4228
|
borderRadius: "50%",
|
|
4233
4229
|
animation: "spin 1s linear infinite"
|
|
4234
4230
|
} }) }),
|
|
@@ -4241,8 +4237,8 @@ function ProductPage({
|
|
|
4241
4237
|
padding: "6rem 2rem"
|
|
4242
4238
|
}, children: [
|
|
4243
4239
|
/* @__PURE__ */ jsx("div", { style: { fontSize: "4rem", marginBottom: "1rem" }, children: "\u{1F50D}" }),
|
|
4244
|
-
/* @__PURE__ */ jsx("h1", { style: { margin: 0, fontSize: "2rem", color: "
|
|
4245
|
-
/* @__PURE__ */ jsx("p", { style: { marginTop: "0.75rem", color: "
|
|
4240
|
+
/* @__PURE__ */ jsx("h1", { style: { margin: 0, fontSize: "2rem", color: "var(--sk-text-primary)" }, children: "Product Not Found" }),
|
|
4241
|
+
/* @__PURE__ */ 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." }),
|
|
4246
4242
|
/* @__PURE__ */ jsx(
|
|
4247
4243
|
"a",
|
|
4248
4244
|
{
|
|
@@ -4252,8 +4248,8 @@ function ProductPage({
|
|
|
4252
4248
|
marginTop: "1.5rem",
|
|
4253
4249
|
padding: "0.75rem 1.5rem",
|
|
4254
4250
|
borderRadius: "8px",
|
|
4255
|
-
backgroundColor: "
|
|
4256
|
-
color: "
|
|
4251
|
+
backgroundColor: "var(--sk-primary)",
|
|
4252
|
+
color: "var(--sk-bg)",
|
|
4257
4253
|
textDecoration: "none",
|
|
4258
4254
|
fontWeight: 600
|
|
4259
4255
|
},
|
|
@@ -4274,22 +4270,22 @@ function ProductPage({
|
|
|
4274
4270
|
margin: 0,
|
|
4275
4271
|
padding: 0
|
|
4276
4272
|
}, children: [
|
|
4277
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: "/", style: { color: "
|
|
4278
|
-
/* @__PURE__ */ jsx("li", { style: { color: "
|
|
4279
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: shopBasePath, style: { color: "
|
|
4273
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: "/", style: { color: "var(--sk-text-secondary)", textDecoration: "none" }, children: "Home" }) }),
|
|
4274
|
+
/* @__PURE__ */ jsx("li", { style: { color: "var(--sk-text-secondary)" }, children: "/" }),
|
|
4275
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: shopBasePath, style: { color: "var(--sk-text-secondary)", textDecoration: "none" }, children: "Shop" }) }),
|
|
4280
4276
|
product.category && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4281
|
-
/* @__PURE__ */ jsx("li", { style: { color: "
|
|
4277
|
+
/* @__PURE__ */ jsx("li", { style: { color: "var(--sk-text-secondary)" }, children: "/" }),
|
|
4282
4278
|
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
4283
4279
|
"a",
|
|
4284
4280
|
{
|
|
4285
4281
|
href: `${shopBasePath}?category=${product.category.id}`,
|
|
4286
|
-
style: { color: "
|
|
4282
|
+
style: { color: "var(--sk-text-secondary)", textDecoration: "none" },
|
|
4287
4283
|
children: product.category.name
|
|
4288
4284
|
}
|
|
4289
4285
|
) })
|
|
4290
4286
|
] }),
|
|
4291
|
-
/* @__PURE__ */ jsx("li", { style: { color: "
|
|
4292
|
-
/* @__PURE__ */ jsx("li", { style: { color: "
|
|
4287
|
+
/* @__PURE__ */ jsx("li", { style: { color: "var(--sk-text-secondary)" }, children: "/" }),
|
|
4288
|
+
/* @__PURE__ */ jsx("li", { style: { color: "var(--sk-text-primary)", fontWeight: 500 }, children: product.name })
|
|
4293
4289
|
] }) });
|
|
4294
4290
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-product-page ${className}`, style, children: [
|
|
4295
4291
|
renderHead?.(product),
|
|
@@ -4301,7 +4297,7 @@ function ProductPage({
|
|
|
4301
4297
|
display: "inline-flex",
|
|
4302
4298
|
alignItems: "center",
|
|
4303
4299
|
gap: "0.5rem",
|
|
4304
|
-
color: "
|
|
4300
|
+
color: "var(--sk-text-secondary)",
|
|
4305
4301
|
textDecoration: "none",
|
|
4306
4302
|
fontSize: "0.875rem"
|
|
4307
4303
|
},
|
|
@@ -4330,7 +4326,7 @@ function ProductPage({
|
|
|
4330
4326
|
/* @__PURE__ */ jsx("h2", { style: {
|
|
4331
4327
|
fontSize: "1.5rem",
|
|
4332
4328
|
fontWeight: 600,
|
|
4333
|
-
color: "
|
|
4329
|
+
color: "var(--sk-text-primary)",
|
|
4334
4330
|
marginBottom: "1.5rem"
|
|
4335
4331
|
}, children: product.category ? `More ${product.category.name}` : "Related Products" }),
|
|
4336
4332
|
/* @__PURE__ */ jsx(
|
|
@@ -4394,15 +4390,15 @@ function EventEmbed({
|
|
|
4394
4390
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-event-embed ${className}`, style: {
|
|
4395
4391
|
padding: "2rem",
|
|
4396
4392
|
textAlign: "center",
|
|
4397
|
-
background: "
|
|
4393
|
+
background: "var(--sk-bg-elevated)",
|
|
4398
4394
|
borderRadius: "12px"
|
|
4399
4395
|
}, children: [
|
|
4400
4396
|
/* @__PURE__ */ jsx("div", { style: {
|
|
4401
4397
|
width: "40px",
|
|
4402
4398
|
height: "40px",
|
|
4403
4399
|
margin: "0 auto",
|
|
4404
|
-
border: "3px solid
|
|
4405
|
-
borderTopColor: "
|
|
4400
|
+
border: "3px solid var(--sk-border)",
|
|
4401
|
+
borderTopColor: "var(--sk-primary)",
|
|
4406
4402
|
borderRadius: "50%",
|
|
4407
4403
|
animation: "spin 1s linear infinite"
|
|
4408
4404
|
} }),
|
|
@@ -4601,31 +4597,31 @@ function CheckoutForm({
|
|
|
4601
4597
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-checkout-success ${className}`, style: {
|
|
4602
4598
|
padding: "2rem",
|
|
4603
4599
|
textAlign: "center",
|
|
4604
|
-
background: "
|
|
4600
|
+
background: "rgba(var(--sk-success-rgb, 16,185,129), 0.06)",
|
|
4605
4601
|
borderRadius: "12px",
|
|
4606
|
-
border: "1px solid
|
|
4602
|
+
border: "1px solid rgba(var(--sk-success-rgb, 16,185,129), 0.2)"
|
|
4607
4603
|
}, children: [
|
|
4608
4604
|
/* @__PURE__ */ jsx("div", { style: { fontSize: "3rem", marginBottom: "1rem" }, children: "\u{1F389}" }),
|
|
4609
|
-
/* @__PURE__ */ jsx("h3", { style: { margin: "0 0 0.5rem", color: "
|
|
4610
|
-
/* @__PURE__ */ jsx("p", { style: { color: "
|
|
4605
|
+
/* @__PURE__ */ jsx("h3", { style: { margin: "0 0 0.5rem", color: "var(--sk-success)" }, children: actualMode === "register" ? "Registration Complete!" : "Order Confirmed!" }),
|
|
4606
|
+
/* @__PURE__ */ 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.` })
|
|
4611
4607
|
] });
|
|
4612
4608
|
}
|
|
4613
4609
|
return /* @__PURE__ */ jsx("div", { className: `site-kit-checkout ${className}`, children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, className: formClassName, children: [
|
|
4614
4610
|
/* @__PURE__ */ jsxs("div", { style: {
|
|
4615
4611
|
padding: "1rem",
|
|
4616
|
-
background: "
|
|
4612
|
+
background: "var(--sk-bg-elevated)",
|
|
4617
4613
|
borderRadius: "8px",
|
|
4618
4614
|
marginBottom: "1.5rem"
|
|
4619
4615
|
}, children: [
|
|
4620
4616
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start" }, children: [
|
|
4621
4617
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4622
4618
|
/* @__PURE__ */ jsx("h4", { style: { margin: "0 0 0.25rem", fontSize: "1rem" }, children: offering.name }),
|
|
4623
|
-
offering.short_description && /* @__PURE__ */ jsx("p", { style: { margin: 0, fontSize: "0.875rem", color: "
|
|
4619
|
+
offering.short_description && /* @__PURE__ */ jsx("p", { style: { margin: 0, fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: offering.short_description })
|
|
4624
4620
|
] }),
|
|
4625
4621
|
offering.price_is_public && offering.price != null && /* @__PURE__ */ jsx("div", { style: { fontWeight: 600, fontSize: "1.125rem" }, children: offering.price === 0 ? "Free" : formatPrice(offering.price, offering.currency) })
|
|
4626
4622
|
] }),
|
|
4627
4623
|
showQuantity && !isEvent && offering.price && offering.price > 0 && /* @__PURE__ */ jsxs("div", { style: { marginTop: "1rem", display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
4628
|
-
/* @__PURE__ */ jsx("label", { style: { fontSize: "0.875rem", color: "
|
|
4624
|
+
/* @__PURE__ */ jsx("label", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: "Quantity:" }),
|
|
4629
4625
|
/* @__PURE__ */ jsx(
|
|
4630
4626
|
"select",
|
|
4631
4627
|
{
|
|
@@ -4635,8 +4631,8 @@ function CheckoutForm({
|
|
|
4635
4631
|
style: {
|
|
4636
4632
|
padding: "0.375rem 0.75rem",
|
|
4637
4633
|
borderRadius: "6px",
|
|
4638
|
-
border: "1px solid
|
|
4639
|
-
background: "
|
|
4634
|
+
border: "1px solid var(--sk-border)",
|
|
4635
|
+
background: "var(--sk-bg)"
|
|
4640
4636
|
},
|
|
4641
4637
|
children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((n) => /* @__PURE__ */ jsx("option", { value: n, children: n }, n))
|
|
4642
4638
|
}
|
|
@@ -4649,13 +4645,13 @@ function CheckoutForm({
|
|
|
4649
4645
|
alignItems: "center",
|
|
4650
4646
|
justifyContent: "space-between",
|
|
4651
4647
|
padding: "0.625rem 0.875rem",
|
|
4652
|
-
background: "
|
|
4653
|
-
border: "1px solid
|
|
4648
|
+
background: "rgba(var(--sk-success-rgb, 16,185,129), 0.06)",
|
|
4649
|
+
border: "1px solid rgba(var(--sk-success-rgb, 16,185,129), 0.2)",
|
|
4654
4650
|
borderRadius: "6px"
|
|
4655
4651
|
}, children: [
|
|
4656
4652
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4657
|
-
/* @__PURE__ */ jsx("span", { style: { fontSize: "0.875rem", fontWeight: 500, color: "
|
|
4658
|
-
/* @__PURE__ */ jsxs("span", { style: { fontSize: "0.875rem", color: "
|
|
4653
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: "0.875rem", fontWeight: 500, color: "var(--sk-success)" }, children: discountResult.name || discountCode }),
|
|
4654
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: "0.875rem", color: "var(--sk-success)", marginLeft: "0.5rem" }, children: [
|
|
4659
4655
|
"\u2212",
|
|
4660
4656
|
formatPrice(discountAmount, offering.currency)
|
|
4661
4657
|
] })
|
|
@@ -4668,7 +4664,7 @@ function CheckoutForm({
|
|
|
4668
4664
|
style: {
|
|
4669
4665
|
background: "none",
|
|
4670
4666
|
border: "none",
|
|
4671
|
-
color: "
|
|
4667
|
+
color: "var(--sk-error)",
|
|
4672
4668
|
cursor: "pointer",
|
|
4673
4669
|
fontSize: "0.75rem",
|
|
4674
4670
|
fontWeight: 500
|
|
@@ -4689,7 +4685,7 @@ function CheckoutForm({
|
|
|
4689
4685
|
flex: 1,
|
|
4690
4686
|
padding: "0.5rem 0.75rem",
|
|
4691
4687
|
borderRadius: "6px",
|
|
4692
|
-
border: "1px solid
|
|
4688
|
+
border: "1px solid var(--sk-border)",
|
|
4693
4689
|
fontSize: "0.875rem"
|
|
4694
4690
|
}
|
|
4695
4691
|
}
|
|
@@ -4703,8 +4699,8 @@ function CheckoutForm({
|
|
|
4703
4699
|
style: {
|
|
4704
4700
|
padding: "0.5rem 1rem",
|
|
4705
4701
|
borderRadius: "6px",
|
|
4706
|
-
border: "1px solid
|
|
4707
|
-
background: "
|
|
4702
|
+
border: "1px solid var(--sk-border)",
|
|
4703
|
+
background: "var(--sk-bg)",
|
|
4708
4704
|
fontSize: "0.875rem",
|
|
4709
4705
|
fontWeight: 500,
|
|
4710
4706
|
cursor: applyingDiscount || !discountCode.trim() ? "not-allowed" : "pointer",
|
|
@@ -4716,16 +4712,16 @@ function CheckoutForm({
|
|
|
4716
4712
|
] }) }),
|
|
4717
4713
|
discountResult?.valid && !isFree && /* @__PURE__ */ jsxs("div", { style: {
|
|
4718
4714
|
padding: "0.75rem 1rem",
|
|
4719
|
-
background: "
|
|
4715
|
+
background: "var(--sk-bg-elevated)",
|
|
4720
4716
|
borderRadius: "6px",
|
|
4721
4717
|
marginBottom: "1.5rem",
|
|
4722
4718
|
fontSize: "0.875rem"
|
|
4723
4719
|
}, children: [
|
|
4724
4720
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: "0.25rem" }, children: [
|
|
4725
|
-
/* @__PURE__ */ jsx("span", { style: { color: "
|
|
4721
|
+
/* @__PURE__ */ jsx("span", { style: { color: "var(--sk-text-secondary)" }, children: "Subtotal" }),
|
|
4726
4722
|
/* @__PURE__ */ jsx("span", { children: formatPrice(subtotal, offering.currency) })
|
|
4727
4723
|
] }),
|
|
4728
|
-
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: "0.25rem", color: "
|
|
4724
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: "0.25rem", color: "var(--sk-success)" }, children: [
|
|
4729
4725
|
/* @__PURE__ */ jsx("span", { children: "Discount" }),
|
|
4730
4726
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
4731
4727
|
"\u2212",
|
|
@@ -4733,10 +4729,10 @@ function CheckoutForm({
|
|
|
4733
4729
|
] })
|
|
4734
4730
|
] }),
|
|
4735
4731
|
shippingCost > 0 && /* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: "0.25rem" }, children: [
|
|
4736
|
-
/* @__PURE__ */ jsx("span", { style: { color: "
|
|
4732
|
+
/* @__PURE__ */ jsx("span", { style: { color: "var(--sk-text-secondary)" }, children: "Shipping" }),
|
|
4737
4733
|
/* @__PURE__ */ jsx("span", { children: formatPrice(shippingCost, offering.currency) })
|
|
4738
4734
|
] }),
|
|
4739
|
-
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", borderTop: "1px solid
|
|
4735
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", borderTop: "1px solid var(--sk-border)", paddingTop: "0.5rem", marginTop: "0.25rem", fontWeight: 600 }, children: [
|
|
4740
4736
|
/* @__PURE__ */ jsx("span", { children: "Total" }),
|
|
4741
4737
|
/* @__PURE__ */ jsx("span", { children: formatPrice(total, offering.currency) })
|
|
4742
4738
|
] })
|
|
@@ -4756,7 +4752,7 @@ function CheckoutForm({
|
|
|
4756
4752
|
width: "100%",
|
|
4757
4753
|
padding: "0.625rem 0.75rem",
|
|
4758
4754
|
borderRadius: "6px",
|
|
4759
|
-
border: "1px solid
|
|
4755
|
+
border: "1px solid var(--sk-border)",
|
|
4760
4756
|
fontSize: "1rem"
|
|
4761
4757
|
}
|
|
4762
4758
|
}
|
|
@@ -4776,7 +4772,7 @@ function CheckoutForm({
|
|
|
4776
4772
|
width: "100%",
|
|
4777
4773
|
padding: "0.625rem 0.75rem",
|
|
4778
4774
|
borderRadius: "6px",
|
|
4779
|
-
border: "1px solid
|
|
4775
|
+
border: "1px solid var(--sk-border)",
|
|
4780
4776
|
fontSize: "1rem"
|
|
4781
4777
|
}
|
|
4782
4778
|
}
|
|
@@ -4795,14 +4791,14 @@ function CheckoutForm({
|
|
|
4795
4791
|
width: "100%",
|
|
4796
4792
|
padding: "0.625rem 0.75rem",
|
|
4797
4793
|
borderRadius: "6px",
|
|
4798
|
-
border: "1px solid
|
|
4794
|
+
border: "1px solid var(--sk-border)",
|
|
4799
4795
|
fontSize: "1rem"
|
|
4800
4796
|
}
|
|
4801
4797
|
}
|
|
4802
4798
|
)
|
|
4803
4799
|
] })
|
|
4804
4800
|
] }),
|
|
4805
|
-
shippingEnabled && !isEvent && /* @__PURE__ */ jsxs("div", { style: { marginTop: "1.5rem", paddingTop: "1.5rem", borderTop: "1px solid
|
|
4801
|
+
shippingEnabled && !isEvent && /* @__PURE__ */ jsxs("div", { style: { marginTop: "1.5rem", paddingTop: "1.5rem", borderTop: "1px solid var(--sk-border)" }, children: [
|
|
4806
4802
|
/* @__PURE__ */ jsx("h4", { style: { margin: "0 0 1rem", fontSize: "1rem" }, children: "Shipping Address" }),
|
|
4807
4803
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
4808
4804
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -4816,7 +4812,7 @@ function CheckoutForm({
|
|
|
4816
4812
|
onChange: (e) => updateShippingAddress("street1", e.target.value),
|
|
4817
4813
|
className: inputClassName,
|
|
4818
4814
|
placeholder: "123 Main St",
|
|
4819
|
-
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4815
|
+
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4820
4816
|
}
|
|
4821
4817
|
)
|
|
4822
4818
|
] }),
|
|
@@ -4829,7 +4825,7 @@ function CheckoutForm({
|
|
|
4829
4825
|
value: shippingAddress.street2 || "",
|
|
4830
4826
|
onChange: (e) => updateShippingAddress("street2", e.target.value),
|
|
4831
4827
|
className: inputClassName,
|
|
4832
|
-
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4828
|
+
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4833
4829
|
}
|
|
4834
4830
|
)
|
|
4835
4831
|
] }),
|
|
@@ -4844,7 +4840,7 @@ function CheckoutForm({
|
|
|
4844
4840
|
value: shippingAddress.city,
|
|
4845
4841
|
onChange: (e) => updateShippingAddress("city", e.target.value),
|
|
4846
4842
|
className: inputClassName,
|
|
4847
|
-
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4843
|
+
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4848
4844
|
}
|
|
4849
4845
|
)
|
|
4850
4846
|
] }),
|
|
@@ -4858,7 +4854,7 @@ function CheckoutForm({
|
|
|
4858
4854
|
value: shippingAddress.state,
|
|
4859
4855
|
onChange: (e) => updateShippingAddress("state", e.target.value),
|
|
4860
4856
|
className: inputClassName,
|
|
4861
|
-
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4857
|
+
style: { width: "100%", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4862
4858
|
}
|
|
4863
4859
|
)
|
|
4864
4860
|
] })
|
|
@@ -4873,7 +4869,7 @@ function CheckoutForm({
|
|
|
4873
4869
|
value: shippingAddress.zip,
|
|
4874
4870
|
onChange: (e) => updateShippingAddress("zip", e.target.value),
|
|
4875
4871
|
className: inputClassName,
|
|
4876
|
-
style: { width: "100%", maxWidth: "120px", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid
|
|
4872
|
+
style: { width: "100%", maxWidth: "120px", padding: "0.625rem 0.75rem", borderRadius: "6px", border: "1px solid var(--sk-border)", fontSize: "1rem" }
|
|
4877
4873
|
}
|
|
4878
4874
|
)
|
|
4879
4875
|
] })
|
|
@@ -4888,9 +4884,9 @@ function CheckoutForm({
|
|
|
4888
4884
|
marginTop: "1rem",
|
|
4889
4885
|
padding: "0.625rem 1.25rem",
|
|
4890
4886
|
borderRadius: "6px",
|
|
4891
|
-
border: "1px solid
|
|
4892
|
-
background: "
|
|
4893
|
-
color: "
|
|
4887
|
+
border: "1px solid var(--sk-primary)",
|
|
4888
|
+
background: "var(--sk-bg)",
|
|
4889
|
+
color: "var(--sk-primary)",
|
|
4894
4890
|
fontSize: "0.875rem",
|
|
4895
4891
|
fontWeight: 500,
|
|
4896
4892
|
cursor: loadingRates ? "not-allowed" : "pointer"
|
|
@@ -4909,8 +4905,8 @@ function CheckoutForm({
|
|
|
4909
4905
|
gap: "0.75rem",
|
|
4910
4906
|
padding: "0.75rem",
|
|
4911
4907
|
borderRadius: "6px",
|
|
4912
|
-
border: `2px solid ${selectedRate === rate ? "
|
|
4913
|
-
background: selectedRate === rate ? "
|
|
4908
|
+
border: `2px solid ${selectedRate === rate ? "var(--sk-primary)" : "var(--sk-border)"}`,
|
|
4909
|
+
background: selectedRate === rate ? "rgba(var(--sk-primary-rgb), 0.06)" : "var(--sk-bg)",
|
|
4914
4910
|
cursor: "pointer"
|
|
4915
4911
|
},
|
|
4916
4912
|
children: [
|
|
@@ -4929,7 +4925,7 @@ function CheckoutForm({
|
|
|
4929
4925
|
rate.service
|
|
4930
4926
|
] }),
|
|
4931
4927
|
/* @__PURE__ */ jsx("span", { style: { fontWeight: 600 }, children: formatPrice(parseFloat(rate.amount), rate.currency || "USD") }),
|
|
4932
|
-
rate.estimatedDays && /* @__PURE__ */ jsxs("span", { style: { fontSize: "0.75rem", color: "
|
|
4928
|
+
rate.estimatedDays && /* @__PURE__ */ jsxs("span", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)" }, children: [
|
|
4933
4929
|
"(",
|
|
4934
4930
|
rate.estimatedDays,
|
|
4935
4931
|
" days)"
|
|
@@ -4946,7 +4942,7 @@ function CheckoutForm({
|
|
|
4946
4942
|
style: {
|
|
4947
4943
|
marginTop: "0.75rem",
|
|
4948
4944
|
fontSize: "0.875rem",
|
|
4949
|
-
color: "
|
|
4945
|
+
color: "var(--sk-text-secondary)",
|
|
4950
4946
|
background: "none",
|
|
4951
4947
|
border: "none",
|
|
4952
4948
|
cursor: "pointer",
|
|
@@ -4960,10 +4956,10 @@ function CheckoutForm({
|
|
|
4960
4956
|
error && /* @__PURE__ */ jsx("div", { style: {
|
|
4961
4957
|
marginTop: "1rem",
|
|
4962
4958
|
padding: "0.75rem",
|
|
4963
|
-
background: "
|
|
4964
|
-
border: "1px solid
|
|
4959
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
4960
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
4965
4961
|
borderRadius: "6px",
|
|
4966
|
-
color: "
|
|
4962
|
+
color: "var(--sk-error)",
|
|
4967
4963
|
fontSize: "0.875rem"
|
|
4968
4964
|
}, children: error }),
|
|
4969
4965
|
/* @__PURE__ */ jsx(
|
|
@@ -4980,7 +4976,7 @@ function CheckoutForm({
|
|
|
4980
4976
|
fontWeight: 600,
|
|
4981
4977
|
borderRadius: "8px",
|
|
4982
4978
|
border: "none",
|
|
4983
|
-
background: loading ? "
|
|
4979
|
+
background: loading ? "var(--sk-primary-hover)" : "var(--sk-primary)",
|
|
4984
4980
|
color: "white",
|
|
4985
4981
|
cursor: loading ? "not-allowed" : "pointer"
|
|
4986
4982
|
},
|
|
@@ -4990,7 +4986,7 @@ function CheckoutForm({
|
|
|
4990
4986
|
!isFree && /* @__PURE__ */ jsx("p", { style: {
|
|
4991
4987
|
textAlign: "center",
|
|
4992
4988
|
fontSize: "0.75rem",
|
|
4993
|
-
color: "
|
|
4989
|
+
color: "var(--sk-text-secondary)",
|
|
4994
4990
|
marginTop: "0.75rem"
|
|
4995
4991
|
}, children: "You'll be redirected to our secure payment page" }),
|
|
4996
4992
|
processor && !isFree && /* @__PURE__ */ jsxs("div", { style: {
|
|
@@ -5005,7 +5001,7 @@ function CheckoutForm({
|
|
|
5005
5001
|
/* @__PURE__ */ jsx("rect", { width: "24", height: "24", rx: "4", fill: "#3E4348" }),
|
|
5006
5002
|
/* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "16", height: "16", rx: "2", fill: "white" })
|
|
5007
5003
|
] }),
|
|
5008
|
-
/* @__PURE__ */ jsxs("span", { style: { fontSize: "0.625rem", color: "
|
|
5004
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: "0.625rem", color: "var(--sk-text-secondary)", letterSpacing: "0.02em" }, children: [
|
|
5009
5005
|
"Powered by ",
|
|
5010
5006
|
processor === "stripe" ? "Stripe" : "Square"
|
|
5011
5007
|
] })
|
|
@@ -5064,13 +5060,13 @@ function RegistrationForm({
|
|
|
5064
5060
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-registration-success ${className}`, style: {
|
|
5065
5061
|
padding: "2rem",
|
|
5066
5062
|
textAlign: "center",
|
|
5067
|
-
background: "
|
|
5063
|
+
background: "rgba(var(--sk-success-rgb, 16,185,129), 0.06)",
|
|
5068
5064
|
borderRadius: "12px",
|
|
5069
|
-
border: "1px solid
|
|
5065
|
+
border: "1px solid rgba(var(--sk-success-rgb, 16,185,129), 0.2)"
|
|
5070
5066
|
}, children: [
|
|
5071
5067
|
/* @__PURE__ */ jsx("div", { style: { fontSize: "3rem", marginBottom: "1rem" }, children: "\u{1F389}" }),
|
|
5072
|
-
/* @__PURE__ */ jsx("h3", { style: { margin: "0 0 0.5rem", color: "
|
|
5073
|
-
/* @__PURE__ */ jsx("p", { style: { color: "
|
|
5068
|
+
/* @__PURE__ */ jsx("h3", { style: { margin: "0 0 0.5rem", color: "var(--sk-success)" }, children: "You're Registered!" }),
|
|
5069
|
+
/* @__PURE__ */ jsx("p", { style: { color: "var(--sk-success)", margin: 0 }, children: successMessage || `You've been registered for ${event.name}. Check your email for confirmation.` })
|
|
5074
5070
|
] });
|
|
5075
5071
|
}
|
|
5076
5072
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-registration ${className}`, children: [
|
|
@@ -5091,7 +5087,7 @@ function RegistrationForm({
|
|
|
5091
5087
|
width: "100%",
|
|
5092
5088
|
padding: "0.625rem 0.75rem",
|
|
5093
5089
|
borderRadius: "6px",
|
|
5094
|
-
border: "1px solid
|
|
5090
|
+
border: "1px solid var(--sk-border)",
|
|
5095
5091
|
fontSize: "1rem"
|
|
5096
5092
|
}
|
|
5097
5093
|
}
|
|
@@ -5111,7 +5107,7 @@ function RegistrationForm({
|
|
|
5111
5107
|
width: "100%",
|
|
5112
5108
|
padding: "0.625rem 0.75rem",
|
|
5113
5109
|
borderRadius: "6px",
|
|
5114
|
-
border: "1px solid
|
|
5110
|
+
border: "1px solid var(--sk-border)",
|
|
5115
5111
|
fontSize: "1rem"
|
|
5116
5112
|
}
|
|
5117
5113
|
}
|
|
@@ -5130,7 +5126,7 @@ function RegistrationForm({
|
|
|
5130
5126
|
width: "100%",
|
|
5131
5127
|
padding: "0.625rem 0.75rem",
|
|
5132
5128
|
borderRadius: "6px",
|
|
5133
|
-
border: "1px solid
|
|
5129
|
+
border: "1px solid var(--sk-border)",
|
|
5134
5130
|
fontSize: "1rem"
|
|
5135
5131
|
}
|
|
5136
5132
|
}
|
|
@@ -5154,7 +5150,7 @@ function RegistrationForm({
|
|
|
5154
5150
|
width: "100%",
|
|
5155
5151
|
padding: "0.625rem 0.75rem",
|
|
5156
5152
|
borderRadius: "6px",
|
|
5157
|
-
border: "1px solid
|
|
5153
|
+
border: "1px solid var(--sk-border)",
|
|
5158
5154
|
fontSize: "1rem",
|
|
5159
5155
|
minHeight: "80px"
|
|
5160
5156
|
}
|
|
@@ -5170,9 +5166,9 @@ function RegistrationForm({
|
|
|
5170
5166
|
width: "100%",
|
|
5171
5167
|
padding: "0.625rem 0.75rem",
|
|
5172
5168
|
borderRadius: "6px",
|
|
5173
|
-
border: "1px solid
|
|
5169
|
+
border: "1px solid var(--sk-border)",
|
|
5174
5170
|
fontSize: "1rem",
|
|
5175
|
-
background: "
|
|
5171
|
+
background: "var(--sk-bg)"
|
|
5176
5172
|
},
|
|
5177
5173
|
children: [
|
|
5178
5174
|
/* @__PURE__ */ jsx("option", { value: "", children: "Select..." }),
|
|
@@ -5192,7 +5188,7 @@ function RegistrationForm({
|
|
|
5192
5188
|
width: "100%",
|
|
5193
5189
|
padding: "0.625rem 0.75rem",
|
|
5194
5190
|
borderRadius: "6px",
|
|
5195
|
-
border: "1px solid
|
|
5191
|
+
border: "1px solid var(--sk-border)",
|
|
5196
5192
|
fontSize: "1rem"
|
|
5197
5193
|
}
|
|
5198
5194
|
}
|
|
@@ -5202,10 +5198,10 @@ function RegistrationForm({
|
|
|
5202
5198
|
error && /* @__PURE__ */ jsx("div", { style: {
|
|
5203
5199
|
marginTop: "1rem",
|
|
5204
5200
|
padding: "0.75rem",
|
|
5205
|
-
background: "
|
|
5206
|
-
border: "1px solid
|
|
5201
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
5202
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
5207
5203
|
borderRadius: "6px",
|
|
5208
|
-
color: "
|
|
5204
|
+
color: "var(--sk-error)",
|
|
5209
5205
|
fontSize: "0.875rem"
|
|
5210
5206
|
}, children: error }),
|
|
5211
5207
|
/* @__PURE__ */ jsx(
|
|
@@ -5222,7 +5218,7 @@ function RegistrationForm({
|
|
|
5222
5218
|
fontWeight: 600,
|
|
5223
5219
|
borderRadius: "8px",
|
|
5224
5220
|
border: "none",
|
|
5225
|
-
background: loading ? "
|
|
5221
|
+
background: loading ? "var(--sk-primary-hover)" : "var(--sk-primary)",
|
|
5226
5222
|
color: "white",
|
|
5227
5223
|
cursor: loading ? "not-allowed" : "pointer"
|
|
5228
5224
|
},
|
|
@@ -5284,7 +5280,7 @@ function CalendarEventCell({
|
|
|
5284
5280
|
borderRadius: "4px",
|
|
5285
5281
|
cursor: "pointer",
|
|
5286
5282
|
overflow: "hidden",
|
|
5287
|
-
background: imageUrl ? "transparent" : "
|
|
5283
|
+
background: imageUrl ? "transparent" : "rgba(var(--sk-primary-rgb), 0.125)"
|
|
5288
5284
|
},
|
|
5289
5285
|
children: imageUrl ? /* @__PURE__ */ jsx(
|
|
5290
5286
|
"img",
|
|
@@ -5299,7 +5295,7 @@ function CalendarEventCell({
|
|
|
5299
5295
|
}
|
|
5300
5296
|
) : /* @__PURE__ */ jsx("span", { style: {
|
|
5301
5297
|
fontSize: "0.65rem",
|
|
5302
|
-
color: "
|
|
5298
|
+
color: "var(--sk-primary)",
|
|
5303
5299
|
fontWeight: 500,
|
|
5304
5300
|
padding: "2px 4px",
|
|
5305
5301
|
display: "block",
|
|
@@ -5319,8 +5315,8 @@ function CalendarEventCell({
|
|
|
5319
5315
|
left: "50%",
|
|
5320
5316
|
transform: "translateX(-50%) translateY(-4px)",
|
|
5321
5317
|
padding: "8px 12px",
|
|
5322
|
-
background: "
|
|
5323
|
-
color: "
|
|
5318
|
+
background: "var(--sk-text-primary)",
|
|
5319
|
+
color: "var(--sk-bg)",
|
|
5324
5320
|
borderRadius: "8px",
|
|
5325
5321
|
fontSize: "0.75rem",
|
|
5326
5322
|
minWidth: "180px",
|
|
@@ -5361,8 +5357,8 @@ function CalendarEventCell({
|
|
|
5361
5357
|
textAlign: "left",
|
|
5362
5358
|
border: "none",
|
|
5363
5359
|
borderRadius: "3px",
|
|
5364
|
-
background: "
|
|
5365
|
-
color: "
|
|
5360
|
+
background: "rgba(var(--sk-primary-rgb), 0.125)",
|
|
5361
|
+
color: "var(--sk-primary)",
|
|
5366
5362
|
cursor: "pointer",
|
|
5367
5363
|
overflow: "hidden",
|
|
5368
5364
|
whiteSpace: "nowrap",
|
|
@@ -5485,7 +5481,7 @@ function CalendarView({
|
|
|
5485
5481
|
}
|
|
5486
5482
|
};
|
|
5487
5483
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-calendar ${className}`, style: {
|
|
5488
|
-
background: "
|
|
5484
|
+
background: "var(--sk-bg)",
|
|
5489
5485
|
borderRadius: "12px",
|
|
5490
5486
|
overflow: "hidden",
|
|
5491
5487
|
boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
@@ -5499,7 +5495,7 @@ function CalendarView({
|
|
|
5499
5495
|
alignItems: "center",
|
|
5500
5496
|
justifyContent: "space-between",
|
|
5501
5497
|
padding: "1rem 1.25rem",
|
|
5502
|
-
borderBottom: "1px solid
|
|
5498
|
+
borderBottom: "1px solid var(--sk-border)"
|
|
5503
5499
|
},
|
|
5504
5500
|
children: [
|
|
5505
5501
|
showNavigation && /* @__PURE__ */ jsx(
|
|
@@ -5509,7 +5505,7 @@ function CalendarView({
|
|
|
5509
5505
|
style: {
|
|
5510
5506
|
padding: "0.5rem",
|
|
5511
5507
|
border: "none",
|
|
5512
|
-
background: "
|
|
5508
|
+
background: "var(--sk-surface)",
|
|
5513
5509
|
borderRadius: "6px",
|
|
5514
5510
|
cursor: "pointer",
|
|
5515
5511
|
fontSize: "1.25rem",
|
|
@@ -5535,7 +5531,7 @@ function CalendarView({
|
|
|
5535
5531
|
fontSize: "0.75rem",
|
|
5536
5532
|
border: "none",
|
|
5537
5533
|
background: "transparent",
|
|
5538
|
-
color: "
|
|
5534
|
+
color: "var(--sk-primary)",
|
|
5539
5535
|
cursor: "pointer"
|
|
5540
5536
|
},
|
|
5541
5537
|
children: "Today"
|
|
@@ -5549,7 +5545,7 @@ function CalendarView({
|
|
|
5549
5545
|
style: {
|
|
5550
5546
|
padding: "0.5rem",
|
|
5551
5547
|
border: "none",
|
|
5552
|
-
background: "
|
|
5548
|
+
background: "var(--sk-surface)",
|
|
5553
5549
|
borderRadius: "6px",
|
|
5554
5550
|
cursor: "pointer",
|
|
5555
5551
|
fontSize: "1.25rem",
|
|
@@ -5565,7 +5561,7 @@ function CalendarView({
|
|
|
5565
5561
|
/* @__PURE__ */ jsx("div", { style: {
|
|
5566
5562
|
display: "grid",
|
|
5567
5563
|
gridTemplateColumns: "repeat(7, 1fr)",
|
|
5568
|
-
borderBottom: "1px solid
|
|
5564
|
+
borderBottom: "1px solid var(--sk-border)"
|
|
5569
5565
|
}, children: dayHeaders.map((day) => /* @__PURE__ */ jsx(
|
|
5570
5566
|
"div",
|
|
5571
5567
|
{
|
|
@@ -5574,7 +5570,7 @@ function CalendarView({
|
|
|
5574
5570
|
textAlign: "center",
|
|
5575
5571
|
fontSize: "0.75rem",
|
|
5576
5572
|
fontWeight: 600,
|
|
5577
|
-
color: "
|
|
5573
|
+
color: "var(--sk-text-secondary)",
|
|
5578
5574
|
textTransform: "uppercase"
|
|
5579
5575
|
},
|
|
5580
5576
|
children: day
|
|
@@ -5592,9 +5588,9 @@ function CalendarView({
|
|
|
5592
5588
|
style: {
|
|
5593
5589
|
minHeight: "100px",
|
|
5594
5590
|
padding: "0.5rem",
|
|
5595
|
-
borderRight: (index + 1) % 7 !== 0 ? "1px solid
|
|
5596
|
-
borderBottom: "1px solid
|
|
5597
|
-
background: day.isCurrentMonth ? "
|
|
5591
|
+
borderRight: (index + 1) % 7 !== 0 ? "1px solid var(--sk-border)" : "none",
|
|
5592
|
+
borderBottom: "1px solid var(--sk-border)",
|
|
5593
|
+
background: day.isCurrentMonth ? "var(--sk-bg)" : "var(--sk-bg-elevated)",
|
|
5598
5594
|
cursor: day.events.length > 0 || onDayClick ? "pointer" : "default"
|
|
5599
5595
|
},
|
|
5600
5596
|
children: [
|
|
@@ -5611,8 +5607,8 @@ function CalendarView({
|
|
|
5611
5607
|
borderRadius: "50%",
|
|
5612
5608
|
fontSize: "0.875rem",
|
|
5613
5609
|
fontWeight: day.isToday ? 600 : 400,
|
|
5614
|
-
color: day.isToday ? "
|
|
5615
|
-
background: day.isToday ? "
|
|
5610
|
+
color: day.isToday ? "var(--sk-bg)" : day.isCurrentMonth ? "var(--sk-text-primary)" : "var(--sk-text-secondary)",
|
|
5611
|
+
background: day.isToday ? "var(--sk-primary)" : "transparent"
|
|
5616
5612
|
}, children: day.date.getDate() }) }),
|
|
5617
5613
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: [
|
|
5618
5614
|
day.events.slice(0, 3).map((item) => /* @__PURE__ */ jsx(
|
|
@@ -5628,7 +5624,7 @@ function CalendarView({
|
|
|
5628
5624
|
)),
|
|
5629
5625
|
day.events.length > 3 && /* @__PURE__ */ jsxs("span", { style: {
|
|
5630
5626
|
fontSize: "0.65rem",
|
|
5631
|
-
color: "
|
|
5627
|
+
color: "var(--sk-text-secondary)",
|
|
5632
5628
|
textAlign: "center"
|
|
5633
5629
|
}, children: [
|
|
5634
5630
|
"+",
|
|
@@ -5865,7 +5861,7 @@ function EventModal({
|
|
|
5865
5861
|
maxWidth: "500px",
|
|
5866
5862
|
maxHeight: "90vh",
|
|
5867
5863
|
overflow: "auto",
|
|
5868
|
-
background: "
|
|
5864
|
+
background: "var(--sk-bg)",
|
|
5869
5865
|
borderRadius: "16px",
|
|
5870
5866
|
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
5871
5867
|
},
|
|
@@ -5881,7 +5877,7 @@ function EventModal({
|
|
|
5881
5877
|
right: "1rem",
|
|
5882
5878
|
padding: "0.5rem",
|
|
5883
5879
|
border: "none",
|
|
5884
|
-
background: "
|
|
5880
|
+
background: "var(--sk-surface)",
|
|
5885
5881
|
borderRadius: "50%",
|
|
5886
5882
|
cursor: "pointer",
|
|
5887
5883
|
fontSize: "1.25rem",
|
|
@@ -5915,8 +5911,8 @@ function EventModal({
|
|
|
5915
5911
|
position: "absolute",
|
|
5916
5912
|
top: "1rem",
|
|
5917
5913
|
left: "1rem",
|
|
5918
|
-
background: "
|
|
5919
|
-
color: "
|
|
5914
|
+
background: "var(--sk-error)",
|
|
5915
|
+
color: "var(--sk-bg)",
|
|
5920
5916
|
padding: "0.25rem 0.75rem",
|
|
5921
5917
|
borderRadius: "4px",
|
|
5922
5918
|
fontSize: "0.875rem",
|
|
@@ -5925,8 +5921,8 @@ function EventModal({
|
|
|
5925
5921
|
] }),
|
|
5926
5922
|
/* @__PURE__ */ jsx("div", { className: `site-kit-modal-content ${contentClassName}`, style: { padding: "1.5rem" }, children: success ? /* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "2rem 0" }, children: [
|
|
5927
5923
|
/* @__PURE__ */ jsx("div", { style: { fontSize: "4rem", marginBottom: "1rem" }, children: "\u{1F389}" }),
|
|
5928
|
-
/* @__PURE__ */ jsx("h2", { style: { margin: "0 0 0.5rem", color: "
|
|
5929
|
-
/* @__PURE__ */ jsx("p", { style: { color: "
|
|
5924
|
+
/* @__PURE__ */ jsx("h2", { style: { margin: "0 0 0.5rem", color: "var(--sk-success)" }, children: "You're Registered!" }),
|
|
5925
|
+
/* @__PURE__ */ jsx("p", { style: { color: "var(--sk-success)", margin: "0 0 1.5rem" }, children: "Check your email for confirmation details." }),
|
|
5930
5926
|
/* @__PURE__ */ jsx(
|
|
5931
5927
|
"button",
|
|
5932
5928
|
{
|
|
@@ -5937,8 +5933,8 @@ function EventModal({
|
|
|
5937
5933
|
fontWeight: 500,
|
|
5938
5934
|
border: "none",
|
|
5939
5935
|
borderRadius: "8px",
|
|
5940
|
-
background: "
|
|
5941
|
-
color: "
|
|
5936
|
+
background: "var(--sk-primary)",
|
|
5937
|
+
color: "var(--sk-bg)",
|
|
5942
5938
|
cursor: "pointer"
|
|
5943
5939
|
},
|
|
5944
5940
|
children: "Done"
|
|
@@ -5947,7 +5943,7 @@ function EventModal({
|
|
|
5947
5943
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5948
5944
|
/* @__PURE__ */ jsxs("div", { style: { marginBottom: "1.5rem" }, children: [
|
|
5949
5945
|
/* @__PURE__ */ jsx("h2", { style: { margin: "0 0 0.5rem", fontSize: "1.5rem", fontWeight: 600, paddingRight: "2rem" }, children: event.name }),
|
|
5950
|
-
schedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", color: "
|
|
5946
|
+
schedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", color: "var(--sk-text-secondary)", fontSize: "0.9rem" }, children: [
|
|
5951
5947
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
5952
5948
|
"\u{1F4C5} ",
|
|
5953
5949
|
formatDate(schedule.starts_at)
|
|
@@ -5961,13 +5957,13 @@ function EventModal({
|
|
|
5961
5957
|
event.location
|
|
5962
5958
|
] })
|
|
5963
5959
|
] }),
|
|
5964
|
-
event.short_description && /* @__PURE__ */ jsx("p", { style: { margin: "0.75rem 0 0", color: "
|
|
5960
|
+
event.short_description && /* @__PURE__ */ jsx("p", { style: { margin: "0.75rem 0 0", color: "var(--sk-text-secondary)", fontSize: "0.9rem" }, children: event.short_description }),
|
|
5965
5961
|
spotsRemaining !== null && spotsRemaining <= 10 && spotsRemaining > 0 && /* @__PURE__ */ jsxs("div", { style: {
|
|
5966
5962
|
marginTop: "0.75rem",
|
|
5967
5963
|
padding: "0.5rem 0.75rem",
|
|
5968
|
-
background: "
|
|
5964
|
+
background: "rgba(var(--sk-warning-rgb, 245,158,11), 0.1)",
|
|
5969
5965
|
borderRadius: "6px",
|
|
5970
|
-
color: "
|
|
5966
|
+
color: "var(--sk-warning)",
|
|
5971
5967
|
fontSize: "0.875rem"
|
|
5972
5968
|
}, children: [
|
|
5973
5969
|
"\u26A0\uFE0F Only ",
|
|
@@ -5980,22 +5976,22 @@ function EventModal({
|
|
|
5980
5976
|
soldOut ? /* @__PURE__ */ jsx("div", { style: {
|
|
5981
5977
|
padding: "2rem",
|
|
5982
5978
|
textAlign: "center",
|
|
5983
|
-
background: "
|
|
5979
|
+
background: "var(--sk-surface)",
|
|
5984
5980
|
borderRadius: "8px"
|
|
5985
|
-
}, children: /* @__PURE__ */ jsx("p", { style: { margin: 0, color: "
|
|
5981
|
+
}, children: /* @__PURE__ */ jsx("p", { style: { margin: 0, color: "var(--sk-text-secondary)" }, children: "This event is sold out. Check back for future dates!" }) }) : /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, children: [
|
|
5986
5982
|
!isFree && event.price_is_public && /* @__PURE__ */ jsxs("div", { style: {
|
|
5987
5983
|
padding: "1rem",
|
|
5988
|
-
background: "
|
|
5984
|
+
background: "var(--sk-bg-elevated)",
|
|
5989
5985
|
borderRadius: "8px",
|
|
5990
5986
|
marginBottom: "1rem"
|
|
5991
5987
|
}, children: [
|
|
5992
5988
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
5993
5989
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
5994
5990
|
/* @__PURE__ */ jsx("span", { style: { fontWeight: 600, fontSize: "1.25rem" }, children: formatPrice(event.price, event.currency) }),
|
|
5995
|
-
/* @__PURE__ */ jsx("span", { style: { color: "
|
|
5991
|
+
/* @__PURE__ */ jsx("span", { style: { color: "var(--sk-text-secondary)", fontSize: "0.875rem" }, children: " per ticket" })
|
|
5996
5992
|
] }),
|
|
5997
5993
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [
|
|
5998
|
-
/* @__PURE__ */ jsx("label", { style: { fontSize: "0.875rem", color: "
|
|
5994
|
+
/* @__PURE__ */ jsx("label", { style: { fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: "Qty:" }),
|
|
5999
5995
|
/* @__PURE__ */ jsx(
|
|
6000
5996
|
"select",
|
|
6001
5997
|
{
|
|
@@ -6004,8 +6000,8 @@ function EventModal({
|
|
|
6004
6000
|
style: {
|
|
6005
6001
|
padding: "0.5rem",
|
|
6006
6002
|
borderRadius: "6px",
|
|
6007
|
-
border: "1px solid
|
|
6008
|
-
background: "
|
|
6003
|
+
border: "1px solid var(--sk-border)",
|
|
6004
|
+
background: "var(--sk-bg)",
|
|
6009
6005
|
fontSize: "1rem"
|
|
6010
6006
|
},
|
|
6011
6007
|
children: [...Array(Math.min(10, spotsRemaining || 10))].map((_, i) => /* @__PURE__ */ jsx("option", { value: i + 1, children: i + 1 }, i + 1))
|
|
@@ -6016,7 +6012,7 @@ function EventModal({
|
|
|
6016
6012
|
quantity > 1 && /* @__PURE__ */ jsxs("div", { style: {
|
|
6017
6013
|
marginTop: "0.75rem",
|
|
6018
6014
|
paddingTop: "0.75rem",
|
|
6019
|
-
borderTop: "1px solid
|
|
6015
|
+
borderTop: "1px solid var(--sk-border)",
|
|
6020
6016
|
display: "flex",
|
|
6021
6017
|
justifyContent: "space-between"
|
|
6022
6018
|
}, children: [
|
|
@@ -6039,7 +6035,7 @@ function EventModal({
|
|
|
6039
6035
|
width: "100%",
|
|
6040
6036
|
padding: "0.625rem 0.75rem",
|
|
6041
6037
|
borderRadius: "6px",
|
|
6042
|
-
border: "1px solid
|
|
6038
|
+
border: "1px solid var(--sk-border)",
|
|
6043
6039
|
fontSize: "1rem"
|
|
6044
6040
|
}
|
|
6045
6041
|
}
|
|
@@ -6059,7 +6055,7 @@ function EventModal({
|
|
|
6059
6055
|
width: "100%",
|
|
6060
6056
|
padding: "0.625rem 0.75rem",
|
|
6061
6057
|
borderRadius: "6px",
|
|
6062
|
-
border: "1px solid
|
|
6058
|
+
border: "1px solid var(--sk-border)",
|
|
6063
6059
|
fontSize: "1rem"
|
|
6064
6060
|
}
|
|
6065
6061
|
}
|
|
@@ -6078,7 +6074,7 @@ function EventModal({
|
|
|
6078
6074
|
width: "100%",
|
|
6079
6075
|
padding: "0.625rem 0.75rem",
|
|
6080
6076
|
borderRadius: "6px",
|
|
6081
|
-
border: "1px solid
|
|
6077
|
+
border: "1px solid var(--sk-border)",
|
|
6082
6078
|
fontSize: "1rem"
|
|
6083
6079
|
}
|
|
6084
6080
|
}
|
|
@@ -6101,7 +6097,7 @@ function EventModal({
|
|
|
6101
6097
|
width: "100%",
|
|
6102
6098
|
padding: "0.625rem 0.75rem",
|
|
6103
6099
|
borderRadius: "6px",
|
|
6104
|
-
border: "1px solid
|
|
6100
|
+
border: "1px solid var(--sk-border)",
|
|
6105
6101
|
fontSize: "1rem",
|
|
6106
6102
|
minHeight: "80px",
|
|
6107
6103
|
resize: "vertical"
|
|
@@ -6117,9 +6113,9 @@ function EventModal({
|
|
|
6117
6113
|
width: "100%",
|
|
6118
6114
|
padding: "0.625rem 0.75rem",
|
|
6119
6115
|
borderRadius: "6px",
|
|
6120
|
-
border: "1px solid
|
|
6116
|
+
border: "1px solid var(--sk-border)",
|
|
6121
6117
|
fontSize: "1rem",
|
|
6122
|
-
background: "
|
|
6118
|
+
background: "var(--sk-bg)"
|
|
6123
6119
|
},
|
|
6124
6120
|
children: [
|
|
6125
6121
|
/* @__PURE__ */ jsx("option", { value: "", children: "Select..." }),
|
|
@@ -6138,7 +6134,7 @@ function EventModal({
|
|
|
6138
6134
|
width: "100%",
|
|
6139
6135
|
padding: "0.625rem 0.75rem",
|
|
6140
6136
|
borderRadius: "6px",
|
|
6141
|
-
border: "1px solid
|
|
6137
|
+
border: "1px solid var(--sk-border)",
|
|
6142
6138
|
fontSize: "1rem"
|
|
6143
6139
|
}
|
|
6144
6140
|
}
|
|
@@ -6150,7 +6146,7 @@ function EventModal({
|
|
|
6150
6146
|
display: "block",
|
|
6151
6147
|
fontSize: "0.875rem",
|
|
6152
6148
|
fontWeight: 500,
|
|
6153
|
-
color: "
|
|
6149
|
+
color: "var(--sk-text-primary)",
|
|
6154
6150
|
marginBottom: "0.375rem"
|
|
6155
6151
|
}, children: "Card Details *" }),
|
|
6156
6152
|
/* @__PURE__ */ jsx(
|
|
@@ -6160,22 +6156,22 @@ function EventModal({
|
|
|
6160
6156
|
ref: cardContainerRef,
|
|
6161
6157
|
style: {
|
|
6162
6158
|
minHeight: "42px",
|
|
6163
|
-
border: "1px solid
|
|
6159
|
+
border: "1px solid var(--sk-border)",
|
|
6164
6160
|
borderRadius: "6px",
|
|
6165
6161
|
padding: "0.5rem 0.75rem",
|
|
6166
|
-
background: "
|
|
6162
|
+
background: "var(--sk-bg)"
|
|
6167
6163
|
}
|
|
6168
6164
|
}
|
|
6169
6165
|
),
|
|
6170
|
-
!cardReady && /* @__PURE__ */ jsx("p", { style: { fontSize: "0.75rem", color: "
|
|
6166
|
+
!cardReady && /* @__PURE__ */ jsx("p", { style: { fontSize: "0.75rem", color: "var(--sk-text-secondary)", marginTop: "0.25rem" }, children: "Loading card form..." })
|
|
6171
6167
|
] }),
|
|
6172
6168
|
error && /* @__PURE__ */ jsx("div", { style: {
|
|
6173
6169
|
marginTop: "1rem",
|
|
6174
6170
|
padding: "0.75rem",
|
|
6175
|
-
background: "
|
|
6176
|
-
border: "1px solid
|
|
6171
|
+
background: "rgba(var(--sk-error-rgb, 239,68,68), 0.06)",
|
|
6172
|
+
border: "1px solid rgba(var(--sk-error-rgb, 239,68,68), 0.2)",
|
|
6177
6173
|
borderRadius: "6px",
|
|
6178
|
-
color: "
|
|
6174
|
+
color: "var(--sk-error)",
|
|
6179
6175
|
fontSize: "0.875rem"
|
|
6180
6176
|
}, children: error }),
|
|
6181
6177
|
/* @__PURE__ */ jsx(
|
|
@@ -6191,8 +6187,8 @@ function EventModal({
|
|
|
6191
6187
|
fontWeight: 600,
|
|
6192
6188
|
borderRadius: "8px",
|
|
6193
6189
|
border: "none",
|
|
6194
|
-
background: loading || !isFree && processor === "square" && !cardReady ? "
|
|
6195
|
-
color: "
|
|
6190
|
+
background: loading || !isFree && processor === "square" && !cardReady ? "var(--sk-primary-hover)" : "var(--sk-primary)",
|
|
6191
|
+
color: "var(--sk-bg)",
|
|
6196
6192
|
cursor: loading || !isFree && processor === "square" && !cardReady ? "not-allowed" : "pointer"
|
|
6197
6193
|
},
|
|
6198
6194
|
children: loading ? "Processing..." : isFree ? "Register Free" : `Pay ${formatPrice(total, event.currency)}`
|
|
@@ -6201,13 +6197,13 @@ function EventModal({
|
|
|
6201
6197
|
!isFree && /* @__PURE__ */ jsxs("p", { style: {
|
|
6202
6198
|
textAlign: "center",
|
|
6203
6199
|
fontSize: "0.75rem",
|
|
6204
|
-
color: "
|
|
6200
|
+
color: "var(--sk-text-secondary)",
|
|
6205
6201
|
margin: "0.75rem 0 0"
|
|
6206
6202
|
}, children: [
|
|
6207
6203
|
"\u{1F512} Secure checkout via ",
|
|
6208
6204
|
processor === "square" ? "Square" : processor === "stripe" ? "Stripe" : "secure payment"
|
|
6209
6205
|
] }),
|
|
6210
|
-
!isFree && processor && /* @__PURE__ */ jsxs("p", { style: { fontSize: "0.625rem", color: "
|
|
6206
|
+
!isFree && processor && /* @__PURE__ */ jsxs("p", { style: { fontSize: "0.625rem", color: "var(--sk-text-secondary)", margin: "0.25rem 0 0", textAlign: "center" }, children: [
|
|
6211
6207
|
"Powered by ",
|
|
6212
6208
|
processor === "stripe" ? "Stripe" : "Square"
|
|
6213
6209
|
] })
|
|
@@ -6417,15 +6413,15 @@ function EventsWidget({
|
|
|
6417
6413
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-events-widget ${className}`, children: [
|
|
6418
6414
|
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: `site-kit-events-header ${headerClassName}`, style: { marginBottom: "1.5rem" }, children: [
|
|
6419
6415
|
title && /* @__PURE__ */ jsx("h2", { style: { margin: 0, fontSize: "1.5rem", fontWeight: 600 }, children: title }),
|
|
6420
|
-
subtitle && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6416
|
+
subtitle && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)" }, children: subtitle })
|
|
6421
6417
|
] }),
|
|
6422
|
-
/* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "
|
|
6418
|
+
/* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "var(--sk-text-secondary)" }, children: [
|
|
6423
6419
|
/* @__PURE__ */ jsx("div", { style: {
|
|
6424
6420
|
width: "40px",
|
|
6425
6421
|
height: "40px",
|
|
6426
6422
|
margin: "0 auto 1rem",
|
|
6427
|
-
border: "3px solid
|
|
6428
|
-
borderTopColor: "
|
|
6423
|
+
border: "3px solid var(--sk-border)",
|
|
6424
|
+
borderTopColor: "var(--sk-primary)",
|
|
6429
6425
|
borderRadius: "50%",
|
|
6430
6426
|
animation: "site-kit-spin 1s linear infinite"
|
|
6431
6427
|
} }),
|
|
@@ -6442,22 +6438,22 @@ function EventsWidget({
|
|
|
6442
6438
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-events-widget ${className}`, children: [
|
|
6443
6439
|
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: `site-kit-events-header ${headerClassName}`, style: { marginBottom: "1.5rem" }, children: [
|
|
6444
6440
|
title && /* @__PURE__ */ jsx("h2", { style: { margin: 0, fontSize: "1.5rem", fontWeight: 600 }, children: title }),
|
|
6445
|
-
subtitle && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6441
|
+
subtitle && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)" }, children: subtitle })
|
|
6446
6442
|
] }),
|
|
6447
|
-
/* @__PURE__ */ jsx("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "
|
|
6443
|
+
/* @__PURE__ */ jsx("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "var(--sk-error)" }, children: /* @__PURE__ */ jsx("p", { children: error }) })
|
|
6448
6444
|
] });
|
|
6449
6445
|
}
|
|
6450
6446
|
if (events.length === 0) {
|
|
6451
6447
|
return /* @__PURE__ */ jsxs("div", { className: `site-kit-events-widget ${className}`, children: [
|
|
6452
6448
|
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: `site-kit-events-header ${headerClassName}`, style: { marginBottom: "1.5rem" }, children: [
|
|
6453
6449
|
title && /* @__PURE__ */ jsx("h2", { style: { margin: 0, fontSize: "1.5rem", fontWeight: 600 }, children: title }),
|
|
6454
|
-
subtitle && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6450
|
+
subtitle && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)" }, children: subtitle })
|
|
6455
6451
|
] }),
|
|
6456
|
-
/* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "
|
|
6452
|
+
/* @__PURE__ */ jsxs("div", { style: { textAlign: "center", padding: "3rem 1rem", color: "var(--sk-text-secondary)" }, children: [
|
|
6457
6453
|
showEmptyIcon && /* @__PURE__ */ jsx(
|
|
6458
6454
|
"svg",
|
|
6459
6455
|
{
|
|
6460
|
-
style: { width: "64px", height: "64px", margin: "0 auto 1rem", color: "
|
|
6456
|
+
style: { width: "64px", height: "64px", margin: "0 auto 1rem", color: "var(--sk-border)" },
|
|
6461
6457
|
fill: "none",
|
|
6462
6458
|
stroke: "currentColor",
|
|
6463
6459
|
viewBox: "0 0 24 24",
|
|
@@ -6485,7 +6481,7 @@ function EventsWidget({
|
|
|
6485
6481
|
children: [
|
|
6486
6482
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
6487
6483
|
title && /* @__PURE__ */ jsx("h2", { style: { margin: 0, fontSize: "1.5rem", fontWeight: 600 }, children: title }),
|
|
6488
|
-
subtitle && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6484
|
+
subtitle && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)" }, children: subtitle })
|
|
6489
6485
|
] }),
|
|
6490
6486
|
showViewToggle && /* @__PURE__ */ jsxs(
|
|
6491
6487
|
"div",
|
|
@@ -6494,7 +6490,7 @@ function EventsWidget({
|
|
|
6494
6490
|
style: {
|
|
6495
6491
|
display: "flex",
|
|
6496
6492
|
gap: "0.25rem",
|
|
6497
|
-
background: "
|
|
6493
|
+
background: "var(--sk-surface)",
|
|
6498
6494
|
padding: "0.25rem",
|
|
6499
6495
|
borderRadius: "0.5rem"
|
|
6500
6496
|
},
|
|
@@ -6510,8 +6506,8 @@ function EventsWidget({
|
|
|
6510
6506
|
padding: "0.5rem 1rem",
|
|
6511
6507
|
border: "none",
|
|
6512
6508
|
borderRadius: "0.375rem",
|
|
6513
|
-
background: viewMode === "list" ? "
|
|
6514
|
-
color: viewMode === "list" ? "
|
|
6509
|
+
background: viewMode === "list" ? "var(--sk-bg)" : "transparent",
|
|
6510
|
+
color: viewMode === "list" ? "var(--sk-text-primary)" : "var(--sk-text-secondary)",
|
|
6515
6511
|
fontWeight: 500,
|
|
6516
6512
|
fontSize: "0.875rem",
|
|
6517
6513
|
cursor: "pointer",
|
|
@@ -6535,8 +6531,8 @@ function EventsWidget({
|
|
|
6535
6531
|
padding: "0.5rem 1rem",
|
|
6536
6532
|
border: "none",
|
|
6537
6533
|
borderRadius: "0.375rem",
|
|
6538
|
-
background: viewMode === "grid" ? "
|
|
6539
|
-
color: viewMode === "grid" ? "
|
|
6534
|
+
background: viewMode === "grid" ? "var(--sk-bg)" : "transparent",
|
|
6535
|
+
color: viewMode === "grid" ? "var(--sk-text-primary)" : "var(--sk-text-secondary)",
|
|
6540
6536
|
fontWeight: 500,
|
|
6541
6537
|
fontSize: "0.875rem",
|
|
6542
6538
|
cursor: "pointer",
|
|
@@ -6560,8 +6556,8 @@ function EventsWidget({
|
|
|
6560
6556
|
padding: "0.5rem 1rem",
|
|
6561
6557
|
border: "none",
|
|
6562
6558
|
borderRadius: "0.375rem",
|
|
6563
|
-
background: viewMode === "calendar" ? "
|
|
6564
|
-
color: viewMode === "calendar" ? "
|
|
6559
|
+
background: viewMode === "calendar" ? "var(--sk-bg)" : "transparent",
|
|
6560
|
+
color: viewMode === "calendar" ? "var(--sk-text-primary)" : "var(--sk-text-secondary)",
|
|
6565
6561
|
fontWeight: 500,
|
|
6566
6562
|
fontSize: "0.875rem",
|
|
6567
6563
|
cursor: "pointer",
|
|
@@ -6596,8 +6592,8 @@ function EventsWidget({
|
|
|
6596
6592
|
flexDirection: "row",
|
|
6597
6593
|
gap: 0,
|
|
6598
6594
|
padding: 0,
|
|
6599
|
-
background: "
|
|
6600
|
-
border: "1px solid
|
|
6595
|
+
background: "var(--sk-bg)",
|
|
6596
|
+
border: "1px solid var(--sk-border)",
|
|
6601
6597
|
borderRadius: "0.75rem",
|
|
6602
6598
|
cursor: nextSchedule ? "pointer" : "default",
|
|
6603
6599
|
transition: "all 150ms",
|
|
@@ -6605,12 +6601,12 @@ function EventsWidget({
|
|
|
6605
6601
|
},
|
|
6606
6602
|
onMouseEnter: (e) => {
|
|
6607
6603
|
if (nextSchedule) {
|
|
6608
|
-
e.currentTarget.style.borderColor = "
|
|
6604
|
+
e.currentTarget.style.borderColor = "var(--sk-primary)";
|
|
6609
6605
|
e.currentTarget.style.boxShadow = "0 4px 6px -1px rgba(0, 0, 0, 0.1)";
|
|
6610
6606
|
}
|
|
6611
6607
|
},
|
|
6612
6608
|
onMouseLeave: (e) => {
|
|
6613
|
-
e.currentTarget.style.borderColor = "
|
|
6609
|
+
e.currentTarget.style.borderColor = "var(--sk-border)";
|
|
6614
6610
|
e.currentTarget.style.boxShadow = "none";
|
|
6615
6611
|
},
|
|
6616
6612
|
children: [
|
|
@@ -6618,7 +6614,7 @@ function EventsWidget({
|
|
|
6618
6614
|
width: "160px",
|
|
6619
6615
|
minWidth: "160px",
|
|
6620
6616
|
flexShrink: 0,
|
|
6621
|
-
background: "
|
|
6617
|
+
background: "var(--sk-surface)"
|
|
6622
6618
|
}, children: [
|
|
6623
6619
|
imageUrl ? /* @__PURE__ */ jsx(
|
|
6624
6620
|
"img",
|
|
@@ -6651,7 +6647,7 @@ function EventsWidget({
|
|
|
6651
6647
|
display: imageUrl ? "none" : "flex",
|
|
6652
6648
|
alignItems: "center",
|
|
6653
6649
|
justifyContent: "center",
|
|
6654
|
-
color: "
|
|
6650
|
+
color: "var(--sk-text-secondary)"
|
|
6655
6651
|
},
|
|
6656
6652
|
"aria-hidden": true,
|
|
6657
6653
|
children: /* @__PURE__ */ jsx(CalendarIcon, {})
|
|
@@ -6661,20 +6657,20 @@ function EventsWidget({
|
|
|
6661
6657
|
/* @__PURE__ */ jsxs("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: "0.75rem", padding: "1.25rem" }, children: [
|
|
6662
6658
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", gap: "1rem" }, children: [
|
|
6663
6659
|
/* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
|
|
6664
|
-
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "
|
|
6665
|
-
eventItem.short_description && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "
|
|
6660
|
+
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "var(--sk-text-primary)" }, children: eventItem.name }),
|
|
6661
|
+
eventItem.short_description && /* @__PURE__ */ jsx("p", { style: { margin: "0.5rem 0 0", color: "var(--sk-text-secondary)", fontSize: "0.875rem", lineHeight: 1.5 }, children: eventItem.short_description })
|
|
6666
6662
|
] }),
|
|
6667
6663
|
eventItem.price_is_public && /* @__PURE__ */ jsx("div", { style: {
|
|
6668
6664
|
padding: "0.375rem 0.75rem",
|
|
6669
|
-
background: isFree ? "
|
|
6670
|
-
color: isFree ? "
|
|
6665
|
+
background: isFree ? "rgba(var(--sk-success-rgb, 16,185,129), 0.1)" : "rgba(var(--sk-primary-rgb), 0.125)",
|
|
6666
|
+
color: isFree ? "var(--sk-success)" : "var(--sk-primary)",
|
|
6671
6667
|
borderRadius: "9999px",
|
|
6672
6668
|
fontSize: "0.875rem",
|
|
6673
6669
|
fontWeight: 600,
|
|
6674
6670
|
whiteSpace: "nowrap"
|
|
6675
6671
|
}, children: isFree ? "Free" : formatPrice(eventItem.price ?? 0, eventItem.currency) })
|
|
6676
6672
|
] }),
|
|
6677
|
-
nextSchedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", fontSize: "0.875rem", color: "
|
|
6673
|
+
nextSchedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "1rem", fontSize: "0.875rem", color: "var(--sk-text-secondary)" }, children: [
|
|
6678
6674
|
/* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.375rem" }, children: [
|
|
6679
6675
|
/* @__PURE__ */ jsx(CalendarIcon, {}),
|
|
6680
6676
|
formatDate(nextSchedule.starts_at)
|
|
@@ -6688,7 +6684,7 @@ function EventsWidget({
|
|
|
6688
6684
|
eventItem.location
|
|
6689
6685
|
] }),
|
|
6690
6686
|
nextSchedule.spots_remaining !== null && nextSchedule.spots_remaining !== void 0 && /* @__PURE__ */ jsx("span", { style: {
|
|
6691
|
-
color: nextSchedule.spots_remaining < 5 ? "
|
|
6687
|
+
color: nextSchedule.spots_remaining < 5 ? "var(--sk-error)" : "var(--sk-text-secondary)",
|
|
6692
6688
|
fontWeight: nextSchedule.spots_remaining < 5 ? 500 : 400
|
|
6693
6689
|
}, children: nextSchedule.spots_remaining === 0 ? "Sold Out" : `${nextSchedule.spots_remaining} spots left` })
|
|
6694
6690
|
] })
|
|
@@ -6705,8 +6701,8 @@ function EventsWidget({
|
|
|
6705
6701
|
style: {
|
|
6706
6702
|
display: "inline-block",
|
|
6707
6703
|
padding: "0.75rem 1.5rem",
|
|
6708
|
-
background: "
|
|
6709
|
-
color: "
|
|
6704
|
+
background: "var(--sk-surface)",
|
|
6705
|
+
color: "var(--sk-text-primary)",
|
|
6710
6706
|
borderRadius: "0.5rem",
|
|
6711
6707
|
textDecoration: "none",
|
|
6712
6708
|
fontWeight: 500,
|
|
@@ -6738,7 +6734,7 @@ function EventsWidget({
|
|
|
6738
6734
|
overflow: "hidden",
|
|
6739
6735
|
cursor: nextSchedule ? "pointer" : "default",
|
|
6740
6736
|
transition: "all 150ms",
|
|
6741
|
-
border: "1px solid
|
|
6737
|
+
border: "1px solid var(--sk-border)"
|
|
6742
6738
|
},
|
|
6743
6739
|
onMouseEnter: (e) => {
|
|
6744
6740
|
if (nextSchedule) {
|
|
@@ -6763,9 +6759,9 @@ function EventsWidget({
|
|
|
6763
6759
|
flexDirection: "column",
|
|
6764
6760
|
justifyContent: "flex-end",
|
|
6765
6761
|
padding: "1.25rem",
|
|
6766
|
-
color: "
|
|
6762
|
+
color: "var(--sk-bg)"
|
|
6767
6763
|
}, children: [
|
|
6768
|
-
/* @__PURE__ */ jsx("h3", { style: { margin: 0, fontSize: "1.125rem", fontWeight: 600, color: "
|
|
6764
|
+
/* @__PURE__ */ 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 }),
|
|
6769
6765
|
eventItem.short_description && /* @__PURE__ */ 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 }),
|
|
6770
6766
|
nextSchedule && /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.75rem", marginTop: "0.75rem", fontSize: "0.8125rem", opacity: 0.95 }, children: [
|
|
6771
6767
|
/* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "0.25rem" }, children: [
|
|
@@ -6800,8 +6796,8 @@ function EventsWidget({
|
|
|
6800
6796
|
style: {
|
|
6801
6797
|
display: "inline-block",
|
|
6802
6798
|
padding: "0.75rem 1.5rem",
|
|
6803
|
-
background: "
|
|
6804
|
-
color: "
|
|
6799
|
+
background: "var(--sk-surface)",
|
|
6800
|
+
color: "var(--sk-text-primary)",
|
|
6805
6801
|
borderRadius: "0.5rem",
|
|
6806
6802
|
textDecoration: "none",
|
|
6807
6803
|
fontWeight: 500,
|
|
@@ -6850,5 +6846,5 @@ function getApiKey2() {
|
|
|
6850
6846
|
}
|
|
6851
6847
|
|
|
6852
6848
|
export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, createPaymentIntent, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal, validateAddress, validateDiscountCode };
|
|
6853
|
-
//# sourceMappingURL=chunk-
|
|
6854
|
-
//# sourceMappingURL=chunk-
|
|
6849
|
+
//# sourceMappingURL=chunk-P3POHQWW.mjs.map
|
|
6850
|
+
//# sourceMappingURL=chunk-P3POHQWW.mjs.map
|