@cakejp/design-system 0.4.1 → 0.5.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/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import { twMerge as Ba } from "tailwind-merge";
|
|
|
4
4
|
import { jsx as e, jsxs as i, Fragment as O } from "react/jsx-runtime";
|
|
5
5
|
import * as w from "react";
|
|
6
6
|
import ja from "react";
|
|
7
|
-
import { ChevronDownIcon as ne, MoreHorizontal as Ha, ChevronRight as La, ChevronLeftIcon as la, ChevronRightIcon as oe, XIcon as da, SearchIcon as _a, CheckIcon as ge, CircleIcon as _e, ChevronUpIcon as Ia, MoreHorizontalIcon as Aa, Check as Ie, Loader2Icon as Da, OctagonXIcon as Oa, TriangleAlertIcon as Ra, InfoIcon as
|
|
7
|
+
import { ChevronDownIcon as ne, MoreHorizontal as Ha, ChevronRight as La, ChevronLeftIcon as la, ChevronRightIcon as oe, XIcon as da, SearchIcon as _a, CheckIcon as ge, CircleIcon as _e, ChevronUpIcon as Ia, MoreHorizontalIcon as Aa, Check as Ie, Loader2Icon as Da, OctagonXIcon as Oa, TriangleAlertIcon as Ra, InfoIcon as Fa, CircleCheckIcon as $a, X as xe, Loader2 as Wa, StarHalf as Va } from "lucide-react";
|
|
8
8
|
import { Accordion as re, Slot as ye, AlertDialog as V, AspectRatio as qa, Avatar as Ae, Checkbox as me, Collapsible as De, Dialog as j, ContextMenu as H, Select as A, DropdownMenu as L, Label as Ga, HoverCard as ue, Menubar as _, NavigationMenu as U, Popover as pe, Progress as qe, RadioGroup as Be, ScrollArea as te, Separator as Ua, Slider as de, Switch as Ge, Tabs as Ne, Toggle as Xa, ToggleGroup as ca, Tooltip as ae } from "radix-ui";
|
|
9
9
|
import { cva as D } from "class-variance-authority";
|
|
10
|
-
import { Warning2 as Ka, CloseCircle as Ja, InfoCircle as we, TickCircle as Ya, MinusSquare as Qa, TickSquare as ma, ArrowLeft2 as le, ArrowRight2 as
|
|
10
|
+
import { Warning2 as Ka, CloseCircle as Ja, InfoCircle as we, TickCircle as Ya, MinusSquare as Qa, TickSquare as ma, ArrowLeft2 as le, ArrowRight2 as $, Setting4 as Za, ArrowDown2 as Y, Trash as je, Add as se, More as et, ArrowUp2 as at, Notification as Oe, Minus as He, SearchNormal1 as Te, Link2 as tt, Home2 as ua, ShoppingCart as pa, Cake as rt, Shop as ke, Chart2 as st, Box as ha, Setting2 as va, HamburgerMenu as it, User as fa, Calendar as Re, Ticket2 as Fe, Clock as nt, Bookmark as ba, Monitor as ot, Star1 as Le, Edit2 as lt, Gift as dt, People as ct, Sms as mt, Card as ut, Logout as pt, ShieldTick as ht, Tag2 as vt, ExportSquare as ft, Like1 as bt, Camera as gt, Location as xt, TrendUp as yt, TrendDown as Nt, ArrowLeft as Ue } from "iconsax-reactjs";
|
|
11
11
|
import { getDefaultClassNames as ga, DayPicker as wt } from "react-day-picker";
|
|
12
12
|
import { Command as Q } from "cmdk";
|
|
13
13
|
import { Drawer as X } from "vaul";
|
|
@@ -156,7 +156,7 @@ function zs({
|
|
|
156
156
|
description: o,
|
|
157
157
|
icon: l,
|
|
158
158
|
action: d,
|
|
159
|
-
...
|
|
159
|
+
...u
|
|
160
160
|
}) {
|
|
161
161
|
const c = Pt(t);
|
|
162
162
|
if (c && !r && (n || o)) {
|
|
@@ -168,7 +168,7 @@ function zs({
|
|
|
168
168
|
"data-variant": t,
|
|
169
169
|
role: "alert",
|
|
170
170
|
className: s(Xe({ variant: t }), a),
|
|
171
|
-
...
|
|
171
|
+
...u,
|
|
172
172
|
children: /* @__PURE__ */ i("div", { className: Ke({ variant: t }), children: [
|
|
173
173
|
p,
|
|
174
174
|
/* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
|
|
@@ -187,7 +187,7 @@ function zs({
|
|
|
187
187
|
"data-variant": t,
|
|
188
188
|
role: "alert",
|
|
189
189
|
className: s(Xe({ variant: t }), a),
|
|
190
|
-
...
|
|
190
|
+
...u,
|
|
191
191
|
children: c ? /* @__PURE__ */ e("div", { className: Ke({ variant: t }), children: r }) : r
|
|
192
192
|
}
|
|
193
193
|
) });
|
|
@@ -601,7 +601,7 @@ function Rt({ className: a, ...t }) {
|
|
|
601
601
|
}
|
|
602
602
|
);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Ft({
|
|
605
605
|
children: a,
|
|
606
606
|
className: t,
|
|
607
607
|
...r
|
|
@@ -618,7 +618,7 @@ function $t({
|
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Fs({
|
|
622
622
|
className: a,
|
|
623
623
|
...t
|
|
624
624
|
}) {
|
|
@@ -637,7 +637,7 @@ function $s({
|
|
|
637
637
|
}
|
|
638
638
|
);
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function $s({
|
|
641
641
|
className: a,
|
|
642
642
|
classNames: t,
|
|
643
643
|
showOutsideDays: r = !0,
|
|
@@ -645,7 +645,7 @@ function Fs({
|
|
|
645
645
|
buttonVariant: o = "ghost",
|
|
646
646
|
formatters: l,
|
|
647
647
|
components: d,
|
|
648
|
-
...
|
|
648
|
+
...u
|
|
649
649
|
}) {
|
|
650
650
|
const c = ga();
|
|
651
651
|
return /* @__PURE__ */ e(
|
|
@@ -660,7 +660,7 @@ function Fs({
|
|
|
660
660
|
),
|
|
661
661
|
captionLayout: n,
|
|
662
662
|
formatters: {
|
|
663
|
-
formatMonthDropdown: (
|
|
663
|
+
formatMonthDropdown: (m) => m.toLocaleString("default", { month: "short" }),
|
|
664
664
|
...l
|
|
665
665
|
},
|
|
666
666
|
classNames: {
|
|
@@ -722,7 +722,7 @@ function Fs({
|
|
|
722
722
|
),
|
|
723
723
|
day: s(
|
|
724
724
|
"group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",
|
|
725
|
-
|
|
725
|
+
u.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md" : "[&:first-child[data-selected=true]_button]:rounded-l-md",
|
|
726
726
|
c.day
|
|
727
727
|
),
|
|
728
728
|
range_start: s(
|
|
@@ -747,31 +747,31 @@ function Fs({
|
|
|
747
747
|
...t
|
|
748
748
|
},
|
|
749
749
|
components: {
|
|
750
|
-
Root: ({ className:
|
|
750
|
+
Root: ({ className: m, rootRef: v, ...h }) => /* @__PURE__ */ e(
|
|
751
751
|
"div",
|
|
752
752
|
{
|
|
753
753
|
"data-slot": "calendar",
|
|
754
754
|
ref: v,
|
|
755
|
-
className: s(
|
|
755
|
+
className: s(m),
|
|
756
756
|
...h
|
|
757
757
|
}
|
|
758
758
|
),
|
|
759
|
-
Chevron: ({ className:
|
|
759
|
+
Chevron: ({ className: m, orientation: v, ...h }) => v === "left" ? /* @__PURE__ */ e(la, { className: s("size-4", m), ...h }) : v === "right" ? /* @__PURE__ */ e(
|
|
760
760
|
oe,
|
|
761
761
|
{
|
|
762
|
-
className: s("size-4",
|
|
762
|
+
className: s("size-4", m),
|
|
763
763
|
...h
|
|
764
764
|
}
|
|
765
|
-
) : /* @__PURE__ */ e(ne, { className: s("size-4",
|
|
766
|
-
DayButton:
|
|
767
|
-
WeekNumber: ({ children:
|
|
765
|
+
) : /* @__PURE__ */ e(ne, { className: s("size-4", m), ...h }),
|
|
766
|
+
DayButton: $t,
|
|
767
|
+
WeekNumber: ({ children: m, ...v }) => /* @__PURE__ */ e("td", { ...v, children: /* @__PURE__ */ e("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: m }) }),
|
|
768
768
|
...d
|
|
769
769
|
},
|
|
770
|
-
...
|
|
770
|
+
...u
|
|
771
771
|
}
|
|
772
772
|
);
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function $t({
|
|
775
775
|
className: a,
|
|
776
776
|
day: t,
|
|
777
777
|
modifiers: r,
|
|
@@ -891,8 +891,8 @@ function Je({
|
|
|
891
891
|
"peer flex size-5 shrink-0 items-center justify-center rounded-[5px] border-2 border-[var(--Border-Medium-Emphasis)] bg-[var(--Surface-Primary)] transition-colors outline-none",
|
|
892
892
|
"data-[state=checked]:border-transparent data-[state=checked]:bg-transparent",
|
|
893
893
|
"data-[state=indeterminate]:border-transparent data-[state=indeterminate]:bg-transparent",
|
|
894
|
-
"hover:border-[var(--
|
|
895
|
-
"focus-visible:border-[var(--
|
|
894
|
+
"hover:border-[var(--Focus-High-Emphasis)] data-[state=checked]:hover:border-transparent data-[state=indeterminate]:hover:border-transparent",
|
|
895
|
+
"focus-visible:border-[var(--Focus-High-Emphasis)] focus-visible:ring-2 focus-visible:ring-[var(--Focus-High-Emphasis)]/20",
|
|
896
896
|
"disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:border-[var(--Border-Medium-Emphasis)]",
|
|
897
897
|
a
|
|
898
898
|
),
|
|
@@ -917,7 +917,7 @@ function Xs({
|
|
|
917
917
|
id: l,
|
|
918
918
|
...d
|
|
919
919
|
}) {
|
|
920
|
-
const
|
|
920
|
+
const u = w.useId(), c = l ?? u;
|
|
921
921
|
return a === void 0 ? /* @__PURE__ */ e(Je, { id: c, className: o, ...d }) : /* @__PURE__ */ i(
|
|
922
922
|
"label",
|
|
923
923
|
{
|
|
@@ -1580,7 +1580,7 @@ function Pi({
|
|
|
1580
1580
|
"data-slot": "select-trigger",
|
|
1581
1581
|
"data-size": t,
|
|
1582
1582
|
className: s(
|
|
1583
|
-
"flex w-full items-center justify-between gap-2 rounded-lg border border-[var(--Border-High-Emphasis)] bg-transparent px-3 py-2 typo-body-md whitespace-nowrap transition-[color,box-shadow,border-color] outline-none hover:border-[var(--
|
|
1583
|
+
"flex w-full items-center justify-between gap-2 rounded-lg border border-[var(--Border-High-Emphasis)] bg-transparent px-3 py-2 typo-body-md whitespace-nowrap transition-[color,box-shadow,border-color] outline-none hover:border-[var(--Focus-High-Emphasis)] hover:bg-[var(--Surface-Secondary)] focus-visible:border-[var(--Focus-High-Emphasis)] focus-visible:ring-[3px] focus-visible:ring-[var(--Focus-High-Emphasis)]/50 disabled:cursor-not-allowed disabled:border-[var(--Border-Medium-Emphasis)] disabled:bg-[var(--Surface-Secondary)] disabled:text-[var(--Text-Disable)] disabled:hover:border-[var(--Border-Medium-Emphasis)] disabled:hover:bg-[var(--Surface-Secondary)] aria-invalid:border-[var(--Border-Caution)] aria-invalid:ring-[var(--Border-Caution)]/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-10 data-[size=sm]:h-9 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
1584
1584
|
a
|
|
1585
1585
|
),
|
|
1586
1586
|
...n,
|
|
@@ -1865,7 +1865,7 @@ function Ri({
|
|
|
1865
1865
|
}
|
|
1866
1866
|
);
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function Fi({
|
|
1869
1869
|
className: a,
|
|
1870
1870
|
...t
|
|
1871
1871
|
}) {
|
|
@@ -1881,7 +1881,7 @@ function $i({
|
|
|
1881
1881
|
}
|
|
1882
1882
|
);
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function $i({
|
|
1885
1885
|
...a
|
|
1886
1886
|
}) {
|
|
1887
1887
|
return /* @__PURE__ */ e(L.Sub, { "data-slot": "dropdown-menu-sub", ...a });
|
|
@@ -2083,7 +2083,7 @@ function Zi({
|
|
|
2083
2083
|
}
|
|
2084
2084
|
);
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2086
|
+
function $e({
|
|
2087
2087
|
className: a,
|
|
2088
2088
|
required: t,
|
|
2089
2089
|
children: r,
|
|
@@ -2142,7 +2142,7 @@ function rn({
|
|
|
2142
2142
|
}) {
|
|
2143
2143
|
const { error: r, formItemId: n } = ze();
|
|
2144
2144
|
return /* @__PURE__ */ e(
|
|
2145
|
-
|
|
2145
|
+
$e,
|
|
2146
2146
|
{
|
|
2147
2147
|
"data-slot": "form-label",
|
|
2148
2148
|
"data-error": !!r,
|
|
@@ -2229,7 +2229,7 @@ function or({ className: a, type: t, ...r }) {
|
|
|
2229
2229
|
type: t,
|
|
2230
2230
|
"data-slot": "input",
|
|
2231
2231
|
className: s(
|
|
2232
|
-
"h-12 w-full min-w-0 rounded-lg border border-[var(--Border-High-Emphasis)] bg-transparent px-3 py-1 typo-body-lg md:typo-body-md transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:typo-label-sm file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-[var(--Border-Low-Emphasis)] disabled:bg-[var(--Surface-Secondary)] disabled:text-[var(--Text-Disable)] disabled:placeholder:text-[var(--Text-Disable)]",
|
|
2232
|
+
"h-12 w-full min-w-0 rounded-lg border border-[var(--Border-High-Emphasis)] bg-transparent px-3 py-1 typo-body-lg md:typo-body-md transition-[color,box-shadow,border-color] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:typo-label-sm file:text-foreground placeholder:text-muted-foreground hover:border-[var(--Focus-High-Emphasis)] disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-[var(--Border-Low-Emphasis)] disabled:bg-[var(--Surface-Secondary)] disabled:text-[var(--Text-Disable)] disabled:placeholder:text-[var(--Text-Disable)]",
|
|
2233
2233
|
"focus-visible:border-[var(--Focus-High-Emphasis)] focus-visible:ring-[3px] focus-visible:ring-[var(--Focus-High-Emphasis)]/50",
|
|
2234
2234
|
"aria-invalid:border-[var(--Border-Caution)] aria-invalid:ring-[var(--Border-Caution)]/20",
|
|
2235
2235
|
a
|
|
@@ -2737,7 +2737,7 @@ function Rn({
|
|
|
2737
2737
|
}) {
|
|
2738
2738
|
return /* @__PURE__ */ e(pe.Trigger, { "data-slot": "popover-trigger", ...a });
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2740
|
+
function Fn({
|
|
2741
2741
|
className: a,
|
|
2742
2742
|
align: t = "center",
|
|
2743
2743
|
sideOffset: r = 4,
|
|
@@ -2757,7 +2757,7 @@ function $n({
|
|
|
2757
2757
|
}
|
|
2758
2758
|
) });
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function $n({
|
|
2761
2761
|
className: a,
|
|
2762
2762
|
value: t,
|
|
2763
2763
|
...r
|
|
@@ -3117,7 +3117,7 @@ function ao({
|
|
|
3117
3117
|
)
|
|
3118
3118
|
}
|
|
3119
3119
|
),
|
|
3120
|
-
Array.from({ length: d.length }, (
|
|
3120
|
+
Array.from({ length: d.length }, (u, c) => /* @__PURE__ */ e(
|
|
3121
3121
|
de.Thumb,
|
|
3122
3122
|
{
|
|
3123
3123
|
"data-slot": "slider-thumb",
|
|
@@ -3392,7 +3392,7 @@ function fr({ className: a, ...t }) {
|
|
|
3392
3392
|
{
|
|
3393
3393
|
"data-slot": "textarea",
|
|
3394
3394
|
className: s(
|
|
3395
|
-
"flex field-sizing-content min-h-16 w-full rounded-lg border border-[var(--Border-High-Emphasis)] bg-transparent px-3 py-2 typo-body-lg md:typo-body-md transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-[var(--Focus-High-Emphasis)] focus-visible:ring-[3px] focus-visible:ring-[var(--Focus-High-Emphasis)]/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-[var(--Border-Low-Emphasis)] disabled:bg-[var(--Surface-Secondary)] disabled:text-[var(--Text-Disable)] disabled:placeholder:text-[var(--Text-Disable)] aria-invalid:border-[var(--Border-Caution)] aria-invalid:ring-[var(--Border-Caution)]/20",
|
|
3395
|
+
"flex field-sizing-content min-h-16 w-full rounded-lg border border-[var(--Border-High-Emphasis)] bg-transparent px-3 py-2 typo-body-lg md:typo-body-md transition-[color,box-shadow,border-color] outline-none placeholder:text-muted-foreground hover:border-[var(--Focus-High-Emphasis)] focus-visible:border-[var(--Focus-High-Emphasis)] focus-visible:ring-[3px] focus-visible:ring-[var(--Focus-High-Emphasis)]/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-[var(--Border-Low-Emphasis)] disabled:bg-[var(--Surface-Secondary)] disabled:text-[var(--Text-Disable)] disabled:placeholder:text-[var(--Text-Disable)] aria-invalid:border-[var(--Border-Caution)] aria-invalid:ring-[var(--Border-Caution)]/20",
|
|
3396
3396
|
a
|
|
3397
3397
|
),
|
|
3398
3398
|
...t
|
|
@@ -3407,8 +3407,8 @@ const fo = ({ ...a }) => {
|
|
|
3407
3407
|
theme: t,
|
|
3408
3408
|
className: "toaster group",
|
|
3409
3409
|
icons: {
|
|
3410
|
-
success: /* @__PURE__ */ e(
|
|
3411
|
-
info: /* @__PURE__ */ e(
|
|
3410
|
+
success: /* @__PURE__ */ e($a, { className: "size-4 text-[var(--Text-Success)]" }),
|
|
3411
|
+
info: /* @__PURE__ */ e(Fa, { className: "size-4 text-[var(--Primitive-Sea-600)]" }),
|
|
3412
3412
|
warning: /* @__PURE__ */ e(Ra, { className: "size-4 text-[var(--Text-Warning)]" }),
|
|
3413
3413
|
error: /* @__PURE__ */ e(Oa, { className: "size-4 text-[var(--Text-Caution)]" }),
|
|
3414
3414
|
loading: /* @__PURE__ */ e(Da, { className: "size-4 animate-spin text-[var(--Text-Medium-Emphasis)]" })
|
|
@@ -3641,14 +3641,14 @@ function ko({
|
|
|
3641
3641
|
onNext: o,
|
|
3642
3642
|
nextLabel: l = "次へ",
|
|
3643
3643
|
children: d,
|
|
3644
|
-
...
|
|
3644
|
+
...u
|
|
3645
3645
|
}) {
|
|
3646
3646
|
return /* @__PURE__ */ e(
|
|
3647
3647
|
"div",
|
|
3648
3648
|
{
|
|
3649
3649
|
"data-slot": "coach-mark",
|
|
3650
3650
|
className: s("relative inline-block", a),
|
|
3651
|
-
...
|
|
3651
|
+
...u,
|
|
3652
3652
|
children: /* @__PURE__ */ i(
|
|
3653
3653
|
"div",
|
|
3654
3654
|
{
|
|
@@ -3731,15 +3731,15 @@ function fe({
|
|
|
3731
3731
|
moreLabel: o = "もっと見る",
|
|
3732
3732
|
onMoreClick: l,
|
|
3733
3733
|
action: d,
|
|
3734
|
-
onPrev:
|
|
3734
|
+
onPrev: u,
|
|
3735
3735
|
onNext: c,
|
|
3736
|
-
prevDisabled:
|
|
3736
|
+
prevDisabled: m = !1,
|
|
3737
3737
|
nextDisabled: v = !1,
|
|
3738
3738
|
size: h = "lg",
|
|
3739
3739
|
as: b,
|
|
3740
3740
|
...p
|
|
3741
3741
|
}) {
|
|
3742
|
-
const f = b ?? wr[h], x = ["3xl", "2xl", "xl", "lg"].includes(h), k =
|
|
3742
|
+
const f = b ?? wr[h], x = ["3xl", "2xl", "xl", "lg"].includes(h), k = u || c, g = n || l, y = !!n, N = /* @__PURE__ */ i(O, { children: [
|
|
3743
3743
|
/* @__PURE__ */ e(
|
|
3744
3744
|
f,
|
|
3745
3745
|
{
|
|
@@ -3765,7 +3765,7 @@ function fe({
|
|
|
3765
3765
|
"div",
|
|
3766
3766
|
{
|
|
3767
3767
|
"data-slot": "section-header",
|
|
3768
|
-
className: s("flex flex-col gap-2
|
|
3768
|
+
className: s("flex flex-col gap-2", a),
|
|
3769
3769
|
...p,
|
|
3770
3770
|
children: /* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-2 min-w-0", children: [
|
|
3771
3771
|
y ? /* @__PURE__ */ e("a", { href: n, className: "flex min-w-0 flex-1 flex-col gap-1", children: N }) : /* @__PURE__ */ e("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: N }),
|
|
@@ -3796,8 +3796,8 @@ function fe({
|
|
|
3796
3796
|
variant: "ghost",
|
|
3797
3797
|
size: "icon-sm",
|
|
3798
3798
|
"aria-label": "前へ",
|
|
3799
|
-
onClick:
|
|
3800
|
-
disabled:
|
|
3799
|
+
onClick: u,
|
|
3800
|
+
disabled: m,
|
|
3801
3801
|
className: "rounded-full border border-[var(--Border-Medium-Emphasis)]",
|
|
3802
3802
|
children: /* @__PURE__ */ e(le, { size: 16 })
|
|
3803
3803
|
}
|
|
@@ -3811,7 +3811,7 @@ function fe({
|
|
|
3811
3811
|
onClick: c,
|
|
3812
3812
|
disabled: v,
|
|
3813
3813
|
className: "rounded-full border border-[var(--Border-Medium-Emphasis)]",
|
|
3814
|
-
children: /* @__PURE__ */ e(
|
|
3814
|
+
children: /* @__PURE__ */ e($, { size: 16 })
|
|
3815
3815
|
}
|
|
3816
3816
|
)
|
|
3817
3817
|
] })
|
|
@@ -3838,7 +3838,7 @@ function zo({
|
|
|
3838
3838
|
headerSize: o,
|
|
3839
3839
|
items: l,
|
|
3840
3840
|
aspectRatio: d = "16/9",
|
|
3841
|
-
bannerSize:
|
|
3841
|
+
bannerSize: u = "md",
|
|
3842
3842
|
className: c
|
|
3843
3843
|
}) {
|
|
3844
3844
|
return /* @__PURE__ */ i(
|
|
@@ -3854,11 +3854,12 @@ function zo({
|
|
|
3854
3854
|
subtitle: t,
|
|
3855
3855
|
moreHref: r,
|
|
3856
3856
|
moreLabel: n,
|
|
3857
|
-
size: o
|
|
3857
|
+
size: o,
|
|
3858
|
+
className: "px-4"
|
|
3858
3859
|
}
|
|
3859
3860
|
),
|
|
3860
3861
|
/* @__PURE__ */ i("div", { className: "flex gap-3 overflow-x-auto px-4 pb-2 scrollbar-hide mt-3", children: [
|
|
3861
|
-
l.map((
|
|
3862
|
+
l.map((m, v) => {
|
|
3862
3863
|
const h = /* @__PURE__ */ i(O, { children: [
|
|
3863
3864
|
/* @__PURE__ */ e(
|
|
3864
3865
|
"div",
|
|
@@ -3870,23 +3871,23 @@ function zo({
|
|
|
3870
3871
|
children: /* @__PURE__ */ e(
|
|
3871
3872
|
"img",
|
|
3872
3873
|
{
|
|
3873
|
-
src:
|
|
3874
|
-
alt:
|
|
3874
|
+
src: m.imageUrl,
|
|
3875
|
+
alt: m.alt,
|
|
3875
3876
|
className: "h-full w-full object-cover"
|
|
3876
3877
|
}
|
|
3877
3878
|
)
|
|
3878
3879
|
}
|
|
3879
3880
|
),
|
|
3880
|
-
|
|
3881
|
-
|
|
3881
|
+
m.label && /* @__PURE__ */ e("p", { className: "typo-label-sm text-[var(--Text-High-Emphasis)] mt-1.5", children: m.label }),
|
|
3882
|
+
m.sublabel && /* @__PURE__ */ e("p", { className: "typo-body-xs text-[var(--Text-Medium-Emphasis)]", children: m.sublabel })
|
|
3882
3883
|
] });
|
|
3883
|
-
return
|
|
3884
|
+
return m.href ? /* @__PURE__ */ e(
|
|
3884
3885
|
"a",
|
|
3885
3886
|
{
|
|
3886
|
-
href:
|
|
3887
|
+
href: m.href,
|
|
3887
3888
|
className: s(
|
|
3888
3889
|
"group shrink-0",
|
|
3889
|
-
Ye[
|
|
3890
|
+
Ye[u]
|
|
3890
3891
|
),
|
|
3891
3892
|
children: /* @__PURE__ */ e("div", { className: "transition-opacity duration-150 group-hover:opacity-80", children: h })
|
|
3892
3893
|
},
|
|
@@ -3896,7 +3897,7 @@ function zo({
|
|
|
3896
3897
|
{
|
|
3897
3898
|
className: s(
|
|
3898
3899
|
"shrink-0",
|
|
3899
|
-
Ye[
|
|
3900
|
+
Ye[u]
|
|
3900
3901
|
),
|
|
3901
3902
|
children: h
|
|
3902
3903
|
},
|
|
@@ -3956,12 +3957,12 @@ function Sr({
|
|
|
3956
3957
|
dot: o = !1,
|
|
3957
3958
|
hidden: l = !1,
|
|
3958
3959
|
color: d,
|
|
3959
|
-
size:
|
|
3960
|
+
size: u = "sm",
|
|
3960
3961
|
...c
|
|
3961
3962
|
}) {
|
|
3962
3963
|
if (l || r != null && r <= 0 && !o)
|
|
3963
3964
|
return /* @__PURE__ */ e("span", { className: "relative inline-flex", children: t });
|
|
3964
|
-
const
|
|
3965
|
+
const m = o || r == null, v = r != null ? r > n ? `${n}+` : String(r) : void 0, h = v != null && v.length > 1, b = u === "sm" ? "h-2 w-2" : "h-2.5 w-2.5", p = u === "sm" ? h ? "h-3.5 min-w-3.5 px-1" : "h-3.5 w-3.5" : h ? "h-4 min-w-4 px-1" : "h-4 w-4", f = m ? "-right-0.5 -top-0.5" : "-right-1.5 -top-1";
|
|
3965
3966
|
return /* @__PURE__ */ i("span", { className: "relative inline-flex", children: [
|
|
3966
3967
|
t,
|
|
3967
3968
|
/* @__PURE__ */ e(
|
|
@@ -3969,15 +3970,15 @@ function Sr({
|
|
|
3969
3970
|
{
|
|
3970
3971
|
"data-slot": "notification-badge",
|
|
3971
3972
|
className: s(
|
|
3972
|
-
zr({ color: d, size:
|
|
3973
|
+
zr({ color: d, size: u }),
|
|
3973
3974
|
f,
|
|
3974
|
-
|
|
3975
|
+
m ? b : p,
|
|
3975
3976
|
a
|
|
3976
3977
|
),
|
|
3977
3978
|
role: v ? "status" : void 0,
|
|
3978
3979
|
"aria-label": v ? `${v}件の通知` : "通知あり",
|
|
3979
3980
|
...c,
|
|
3980
|
-
children: !
|
|
3981
|
+
children: !m && v
|
|
3981
3982
|
}
|
|
3982
3983
|
)
|
|
3983
3984
|
] });
|
|
@@ -4158,9 +4159,9 @@ function Po({
|
|
|
4158
4159
|
thumbnailSize: o = "md",
|
|
4159
4160
|
thumbnailShape: l = "square",
|
|
4160
4161
|
layout: d = "scroll",
|
|
4161
|
-
gridRows:
|
|
4162
|
+
gridRows: u = 3,
|
|
4162
4163
|
gridCols: c = 4,
|
|
4163
|
-
pcGridCols:
|
|
4164
|
+
pcGridCols: m,
|
|
4164
4165
|
className: v
|
|
4165
4166
|
}) {
|
|
4166
4167
|
const h = l === "circle" ? "rounded-full" : "rounded-lg", b = (p, f, x) => /* @__PURE__ */ i(
|
|
@@ -4202,15 +4203,15 @@ function Po({
|
|
|
4202
4203
|
p.href
|
|
4203
4204
|
);
|
|
4204
4205
|
return /* @__PURE__ */ i("section", { "data-slot": "category-scroll", className: s("py-4 @[960px]:max-w-[960px] @[960px]:mx-auto", v), children: [
|
|
4205
|
-
/* @__PURE__ */ e(fe, { title: a, moreHref: t, size: r }),
|
|
4206
|
+
/* @__PURE__ */ e(fe, { title: a, moreHref: t, size: r, className: "px-4" }),
|
|
4206
4207
|
d === "grid" ? /* @__PURE__ */ i(O, { children: [
|
|
4207
|
-
/* @__PURE__ */ i("div", { className: s("mt-3 overflow-x-auto pl-4 pb-2 scrollbar-hide",
|
|
4208
|
+
/* @__PURE__ */ i("div", { className: s("mt-3 overflow-x-auto pl-4 pb-2 scrollbar-hide", m && "@[960px]:hidden"), children: [
|
|
4208
4209
|
/* @__PURE__ */ e(
|
|
4209
4210
|
"div",
|
|
4210
4211
|
{
|
|
4211
4212
|
className: "grid gap-2",
|
|
4212
4213
|
style: {
|
|
4213
|
-
gridTemplateRows: `repeat(${
|
|
4214
|
+
gridTemplateRows: `repeat(${u}, auto)`,
|
|
4214
4215
|
gridAutoFlow: "column",
|
|
4215
4216
|
gridAutoColumns: Mr[o]
|
|
4216
4217
|
},
|
|
@@ -4219,11 +4220,11 @@ function Po({
|
|
|
4219
4220
|
),
|
|
4220
4221
|
/* @__PURE__ */ e("div", { className: "shrink-0 w-4", "aria-hidden": "true" })
|
|
4221
4222
|
] }),
|
|
4222
|
-
|
|
4223
|
+
m && /* @__PURE__ */ e(
|
|
4223
4224
|
"div",
|
|
4224
4225
|
{
|
|
4225
4226
|
className: "hidden @[960px]:grid @[960px]:gap-x-2 @[960px]:gap-y-4 @[960px]:px-6 @[960px]:mt-3",
|
|
4226
|
-
style: { gridTemplateColumns: `repeat(${
|
|
4227
|
+
style: { gridTemplateColumns: `repeat(${m}, 1fr)` },
|
|
4227
4228
|
children: n.map((p) => b(p, !0))
|
|
4228
4229
|
}
|
|
4229
4230
|
)
|
|
@@ -4278,26 +4279,26 @@ function za({
|
|
|
4278
4279
|
href: o,
|
|
4279
4280
|
selected: l = !1,
|
|
4280
4281
|
soldOut: d = !1,
|
|
4281
|
-
removable:
|
|
4282
|
+
removable: u = !1,
|
|
4282
4283
|
onRemove: c,
|
|
4283
|
-
count:
|
|
4284
|
+
count: m,
|
|
4284
4285
|
children: v,
|
|
4285
4286
|
...h
|
|
4286
4287
|
}) {
|
|
4287
|
-
const b = l ? "accent" : t, p = d && !l, f = p ? "border border-[var(--Text-Disable)] bg-[var(--Surface-Secondary)] text-[var(--Text-Disable)]" : void 0, x =
|
|
4288
|
+
const b = l ? "accent" : t, p = d && !l, f = p ? "border border-[var(--Text-Disable)] bg-[var(--Surface-Secondary)] text-[var(--Text-Disable)]" : void 0, x = m !== void 0 && /* @__PURE__ */ e(
|
|
4288
4289
|
"span",
|
|
4289
4290
|
{
|
|
4290
4291
|
className: s(
|
|
4291
4292
|
"inline-flex items-center justify-center rounded-full px-1.5 min-w-[1.25rem] typo-label-xs transition-colors",
|
|
4292
4293
|
l ? "bg-[var(--Brand-Cake-Orange)] text-[var(--Text-on-Inverse)] group-hover:bg-[var(--Surface-Primary)] group-hover:text-[var(--Brand-Cake-Orange)]" : "bg-[var(--Surface-Tertiary)] text-[var(--Text-Medium-Emphasis)]"
|
|
4293
4294
|
),
|
|
4294
|
-
children:
|
|
4295
|
+
children: m
|
|
4295
4296
|
}
|
|
4296
4297
|
), k = /* @__PURE__ */ i(O, { children: [
|
|
4297
4298
|
v,
|
|
4298
4299
|
x,
|
|
4299
4300
|
p && /* @__PURE__ */ e("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "h-[67px] w-px origin-center rotate-45 bg-[var(--Text-Disable)]" }) }),
|
|
4300
|
-
|
|
4301
|
+
u && /* @__PURE__ */ e(
|
|
4301
4302
|
"button",
|
|
4302
4303
|
{
|
|
4303
4304
|
type: "button",
|
|
@@ -4372,7 +4373,7 @@ function Bo({
|
|
|
4372
4373
|
onRetry: o,
|
|
4373
4374
|
retryLabel: l = "再試行",
|
|
4374
4375
|
action: d,
|
|
4375
|
-
...
|
|
4376
|
+
...u
|
|
4376
4377
|
}) {
|
|
4377
4378
|
return /* @__PURE__ */ i(
|
|
4378
4379
|
"div",
|
|
@@ -4382,7 +4383,7 @@ function Bo({
|
|
|
4382
4383
|
"flex flex-col items-center justify-center px-4 py-20 text-center",
|
|
4383
4384
|
a
|
|
4384
4385
|
),
|
|
4385
|
-
...
|
|
4386
|
+
...u,
|
|
4386
4387
|
children: [
|
|
4387
4388
|
t && /* @__PURE__ */ e("div", { className: "shrink-0 text-[var(--Object-Caution)]", children: t }),
|
|
4388
4389
|
/* @__PURE__ */ e("p", { className: "mt-4 typo-heading-md text-[var(--Text-High-Emphasis)]", children: r }),
|
|
@@ -4403,9 +4404,9 @@ function jo({
|
|
|
4403
4404
|
onMoreFilters: o,
|
|
4404
4405
|
onBack: l,
|
|
4405
4406
|
activeFilterCount: d,
|
|
4406
|
-
variant:
|
|
4407
|
+
variant: u = "sp",
|
|
4407
4408
|
className: c,
|
|
4408
|
-
...
|
|
4409
|
+
...m
|
|
4409
4410
|
}) {
|
|
4410
4411
|
return /* @__PURE__ */ i(
|
|
4411
4412
|
"nav",
|
|
@@ -4413,7 +4414,7 @@ function jo({
|
|
|
4413
4414
|
"aria-label": "商品フィルター",
|
|
4414
4415
|
"data-slot": "filter-bar",
|
|
4415
4416
|
className: s("@container space-y-2", c),
|
|
4416
|
-
...
|
|
4417
|
+
...m,
|
|
4417
4418
|
children: [
|
|
4418
4419
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-1 overflow-x-auto scrollbar-hide", children: [
|
|
4419
4420
|
l && /* @__PURE__ */ e(
|
|
@@ -4640,9 +4641,9 @@ function Ho({
|
|
|
4640
4641
|
logoHref: o = "/",
|
|
4641
4642
|
socialLinks: l = [],
|
|
4642
4643
|
description: d,
|
|
4643
|
-
paymentMethods:
|
|
4644
|
+
paymentMethods: u = [],
|
|
4644
4645
|
trustBadge: c,
|
|
4645
|
-
bottomLinks:
|
|
4646
|
+
bottomLinks: m = [],
|
|
4646
4647
|
...v
|
|
4647
4648
|
}) {
|
|
4648
4649
|
return /* @__PURE__ */ i(
|
|
@@ -4697,14 +4698,14 @@ function Ho({
|
|
|
4697
4698
|
))
|
|
4698
4699
|
}
|
|
4699
4700
|
),
|
|
4700
|
-
|
|
4701
|
+
u.length > 0 && /* @__PURE__ */ i(
|
|
4701
4702
|
"div",
|
|
4702
4703
|
{
|
|
4703
4704
|
"data-slot": "footer-payment",
|
|
4704
4705
|
className: "border-t border-[var(--Border-Low-Emphasis)] px-5 py-6",
|
|
4705
4706
|
children: [
|
|
4706
4707
|
/* @__PURE__ */ e("p", { className: "typo-label-sm text-[var(--Text-Low-Emphasis)] text-center mb-3", children: "お支払い方法" }),
|
|
4707
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap items-center justify-center gap-1.5 @sm:gap-2", children:
|
|
4708
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap items-center justify-center gap-1.5 @sm:gap-2", children: u.map((h) => /* @__PURE__ */ e(
|
|
4708
4709
|
"div",
|
|
4709
4710
|
{
|
|
4710
4711
|
className: "flex items-center justify-center",
|
|
@@ -4736,12 +4737,12 @@ function Ho({
|
|
|
4736
4737
|
]
|
|
4737
4738
|
}
|
|
4738
4739
|
),
|
|
4739
|
-
|
|
4740
|
+
m.length > 0 && /* @__PURE__ */ e(
|
|
4740
4741
|
"div",
|
|
4741
4742
|
{
|
|
4742
4743
|
"data-slot": "footer-bottom-links",
|
|
4743
4744
|
className: "border-t border-[var(--Border-Low-Emphasis)] px-5 py-4",
|
|
4744
|
-
children: /* @__PURE__ */ e("div", { className: "flex flex-wrap items-center justify-center gap-x-3 gap-y-2 @sm:gap-x-4", children:
|
|
4745
|
+
children: /* @__PURE__ */ e("div", { className: "flex flex-wrap items-center justify-center gap-x-3 gap-y-2 @sm:gap-x-4", children: m.map((h) => /* @__PURE__ */ e(
|
|
4745
4746
|
"a",
|
|
4746
4747
|
{
|
|
4747
4748
|
href: h.href,
|
|
@@ -4774,20 +4775,23 @@ function Lo({
|
|
|
4774
4775
|
required: t,
|
|
4775
4776
|
optional: r,
|
|
4776
4777
|
description: n,
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4778
|
+
descriptionPosition: o = "above",
|
|
4779
|
+
error: l,
|
|
4780
|
+
htmlFor: d,
|
|
4781
|
+
children: u,
|
|
4782
|
+
className: c
|
|
4781
4783
|
}) {
|
|
4782
|
-
|
|
4784
|
+
const m = n ? /* @__PURE__ */ e("p", { className: "typo-body-xs text-[var(--Text-Low-Emphasis)]", children: n }) : null;
|
|
4785
|
+
return /* @__PURE__ */ i("div", { className: s("space-y-1.5", c), "data-slot": "form-field", children: [
|
|
4783
4786
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
4784
|
-
/* @__PURE__ */ e(
|
|
4787
|
+
/* @__PURE__ */ e($e, { htmlFor: d, className: "typo-label-md", children: a }),
|
|
4785
4788
|
t && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-1.5 py-0.5 rounded bg-[var(--Surface-Caution)] typo-label-xs text-[var(--Text-on-Inverse)]", children: "必須" }),
|
|
4786
4789
|
r && /* @__PURE__ */ e("span", { className: "inline-flex items-center px-1.5 py-0.5 rounded bg-[var(--Surface-Tertiary)] typo-label-xs text-[var(--Text-Low-Emphasis)]", children: "任意" })
|
|
4787
4790
|
] }),
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
o
|
|
4791
|
+
o === "above" && m,
|
|
4792
|
+
u,
|
|
4793
|
+
o === "below" && m,
|
|
4794
|
+
l && /* @__PURE__ */ e("p", { className: "typo-body-xs text-[var(--Text-Caution)]", children: l })
|
|
4791
4795
|
] });
|
|
4792
4796
|
}
|
|
4793
4797
|
function _o({
|
|
@@ -4798,9 +4802,9 @@ function _o({
|
|
|
4798
4802
|
autoPlay: o = 0,
|
|
4799
4803
|
peek: l = !1,
|
|
4800
4804
|
pcSlidesPerView: d = 1,
|
|
4801
|
-
centeredSlides:
|
|
4805
|
+
centeredSlides: u = !1,
|
|
4802
4806
|
className: c,
|
|
4803
|
-
...
|
|
4807
|
+
...m
|
|
4804
4808
|
}) {
|
|
4805
4809
|
const v = w.useRef(null), [h, b] = w.useState(0), p = a.length, f = t === "square" ? "aspect-square" : t === "video" ? "aspect-video" : t === "ogp" ? "aspect-[1.91/1]" : "aspect-[311/162.5]";
|
|
4806
4810
|
w.useEffect(() => {
|
|
@@ -4843,7 +4847,7 @@ function _o({
|
|
|
4843
4847
|
{
|
|
4844
4848
|
"data-slot": "image-carousel",
|
|
4845
4849
|
className: s("@container group/carousel relative", c),
|
|
4846
|
-
...
|
|
4850
|
+
...m,
|
|
4847
4851
|
children: [
|
|
4848
4852
|
/* @__PURE__ */ e(
|
|
4849
4853
|
"div",
|
|
@@ -4856,7 +4860,7 @@ function _o({
|
|
|
4856
4860
|
// flex item の w-full が自動で ~426px になる(768px の 55.5%)
|
|
4857
4861
|
// @[768px]: と @[960px]: は数値指定で CSS 出力順が保証されるため
|
|
4858
4862
|
// 960px+ では @[960px]:px-0 が必ず上書きする
|
|
4859
|
-
|
|
4863
|
+
u && "@[768px]:px-[22.25%] @[960px]:px-0 @[768px]:gap-4",
|
|
4860
4864
|
// PC 複数枚表示時のスライド間ギャップ(本番 spaceBetween:24 準拠)
|
|
4861
4865
|
// cascade: @[960px]:gap-6 > @[768px]:gap-4 at 960px+
|
|
4862
4866
|
d > 1 && "@[960px]:gap-6"
|
|
@@ -4870,7 +4874,7 @@ function _o({
|
|
|
4870
4874
|
className: s(
|
|
4871
4875
|
"shrink-0 snap-start",
|
|
4872
4876
|
// centeredSlides: タブレットで snap-center、PC で snap-start に戻す
|
|
4873
|
-
|
|
4877
|
+
u && "@[768px]:snap-center @[960px]:snap-start",
|
|
4874
4878
|
l ? d > 1 ? "w-[calc(100%-48px)] pr-3 @[960px]:w-[calc((100%-48px)/3)] @[960px]:pr-0" : "w-[calc(100%-48px)] pr-3 @[960px]:w-full @[960px]:pr-0" : d > 1 ? "w-full @[960px]:w-[calc((100%-48px)/3)]" : "w-full"
|
|
4875
4879
|
),
|
|
4876
4880
|
children: y.href ? /* @__PURE__ */ e("a", { href: y.href, className: "block", children: /* @__PURE__ */ e(
|
|
@@ -4913,7 +4917,7 @@ function _o({
|
|
|
4913
4917
|
onClick: g,
|
|
4914
4918
|
"aria-label": "次へ",
|
|
4915
4919
|
className: "absolute right-2 top-1/2 z-10 hidden size-10 -translate-y-1/2 items-center justify-center rounded-full border border-[var(--Border-Medium-Emphasis)] bg-[var(--Surface-Secondary)] shadow-md transition-opacity hover:bg-[var(--Surface-Tertiary)] @md:flex @[960px]:opacity-0 @[960px]:group-hover/carousel:opacity-100",
|
|
4916
|
-
children: /* @__PURE__ */ e(
|
|
4920
|
+
children: /* @__PURE__ */ e($, { size: 20, className: "text-[var(--Object-High-Emphasis)]" })
|
|
4917
4921
|
}
|
|
4918
4922
|
)
|
|
4919
4923
|
] }),
|
|
@@ -4942,13 +4946,13 @@ function Io({
|
|
|
4942
4946
|
showDots: o = !0,
|
|
4943
4947
|
layout: l = "default",
|
|
4944
4948
|
className: d,
|
|
4945
|
-
...
|
|
4949
|
+
...u
|
|
4946
4950
|
}) {
|
|
4947
|
-
const [c,
|
|
4951
|
+
const [c, m] = w.useState(0);
|
|
4948
4952
|
if (a.length === 0) return null;
|
|
4949
4953
|
const v = (p) => {
|
|
4950
4954
|
const f = (p % a.length + a.length) % a.length;
|
|
4951
|
-
f !== c &&
|
|
4955
|
+
f !== c && m(f);
|
|
4952
4956
|
}, h = {
|
|
4953
4957
|
square: "aspect-square",
|
|
4954
4958
|
"4:3": "aspect-[4/3]",
|
|
@@ -4960,7 +4964,7 @@ function Io({
|
|
|
4960
4964
|
{
|
|
4961
4965
|
"data-slot": "image-gallery",
|
|
4962
4966
|
className: s("flex flex-row-reverse gap-6", d),
|
|
4963
|
-
...
|
|
4967
|
+
...u,
|
|
4964
4968
|
children: [
|
|
4965
4969
|
/* @__PURE__ */ i("div", { className: s("relative min-w-0 grow overflow-hidden rounded-lg", h), children: [
|
|
4966
4970
|
/* @__PURE__ */ e(
|
|
@@ -5013,7 +5017,7 @@ function Io({
|
|
|
5013
5017
|
{
|
|
5014
5018
|
"data-slot": "image-gallery",
|
|
5015
5019
|
className: s("space-y-2", d),
|
|
5016
|
-
...
|
|
5020
|
+
...u,
|
|
5017
5021
|
children: [
|
|
5018
5022
|
/* @__PURE__ */ i("div", { className: s("relative w-full overflow-hidden", h), children: [
|
|
5019
5023
|
/* @__PURE__ */ e(
|
|
@@ -5050,7 +5054,7 @@ function Io({
|
|
|
5050
5054
|
className: "absolute right-2 top-1/2 flex size-10 -translate-y-1/2 items-center justify-center rounded-full bg-[var(--Surface-Primary)]/80 shadow-sm transition-colors hover:bg-[var(--Surface-Primary)]",
|
|
5051
5055
|
onClick: () => v(c + 1),
|
|
5052
5056
|
"aria-label": "次の画像",
|
|
5053
|
-
children: /* @__PURE__ */ e(
|
|
5057
|
+
children: /* @__PURE__ */ e($, { size: 20, className: "text-[var(--Text-High-Emphasis)]" })
|
|
5054
5058
|
}
|
|
5055
5059
|
)
|
|
5056
5060
|
] }),
|
|
@@ -5121,7 +5125,7 @@ function Ao({
|
|
|
5121
5125
|
},
|
|
5122
5126
|
"data-slot": "image-uploader",
|
|
5123
5127
|
children: [
|
|
5124
|
-
a.map((
|
|
5128
|
+
a.map((u, c) => /* @__PURE__ */ i(
|
|
5125
5129
|
"div",
|
|
5126
5130
|
{
|
|
5127
5131
|
className: "relative aspect-square rounded-xl bg-[var(--Surface-Tertiary)] border border-[var(--Border-Low-Emphasis)] overflow-hidden group",
|
|
@@ -5129,8 +5133,8 @@ function Ao({
|
|
|
5129
5133
|
/* @__PURE__ */ e(
|
|
5130
5134
|
"img",
|
|
5131
5135
|
{
|
|
5132
|
-
src:
|
|
5133
|
-
alt:
|
|
5136
|
+
src: u.src,
|
|
5137
|
+
alt: u.alt,
|
|
5134
5138
|
className: "absolute inset-0 size-full object-cover"
|
|
5135
5139
|
}
|
|
5136
5140
|
),
|
|
@@ -5138,7 +5142,7 @@ function Ao({
|
|
|
5138
5142
|
"button",
|
|
5139
5143
|
{
|
|
5140
5144
|
className: "size-8 rounded-full bg-[var(--Primitive-White-alpha-1000)]/80 flex items-center justify-center",
|
|
5141
|
-
"aria-label": `${
|
|
5145
|
+
"aria-label": `${u.alt}を削除`,
|
|
5142
5146
|
onClick: () => r?.(c),
|
|
5143
5147
|
children: /* @__PURE__ */ e(je, { size: 16, className: "text-[var(--Text-Caution)]" })
|
|
5144
5148
|
}
|
|
@@ -5203,9 +5207,9 @@ function Oo({
|
|
|
5203
5207
|
badgeCount: o,
|
|
5204
5208
|
toggleChecked: l = !1,
|
|
5205
5209
|
onToggleChange: d,
|
|
5206
|
-
leftIcon:
|
|
5210
|
+
leftIcon: u,
|
|
5207
5211
|
leftImageUrl: c,
|
|
5208
|
-
size:
|
|
5212
|
+
size: m = "sm",
|
|
5209
5213
|
selected: v = !1,
|
|
5210
5214
|
showBorder: h = !0,
|
|
5211
5215
|
showBadgeDot: b = !1,
|
|
@@ -5213,7 +5217,7 @@ function Oo({
|
|
|
5213
5217
|
className: f,
|
|
5214
5218
|
...x
|
|
5215
5219
|
}) {
|
|
5216
|
-
const g = t ? "md" : !!(
|
|
5220
|
+
const g = t ? "md" : !!(u || c) ? "lg" : m, y = g === "lg" ? "min-h-16 py-4" : g === "md" ? "min-h-14 py-2" : "min-h-11 py-2", N = g === "lg" ? "typo-body-lg text-[var(--Text-High-Emphasis)]" : "typo-body-md text-[var(--Text-High-Emphasis)]", S = /* @__PURE__ */ i(
|
|
5217
5221
|
"div",
|
|
5218
5222
|
{
|
|
5219
5223
|
className: s(
|
|
@@ -5225,12 +5229,12 @@ function Oo({
|
|
|
5225
5229
|
...x,
|
|
5226
5230
|
children: [
|
|
5227
5231
|
c && /* @__PURE__ */ e("div", { className: "relative shrink-0 size-8 overflow-hidden rounded-[var(--radius-sm,4px)]", children: /* @__PURE__ */ e("img", { src: c, alt: "", className: "size-full object-cover" }) }),
|
|
5228
|
-
|
|
5232
|
+
u && !c && /* @__PURE__ */ e("div", { className: "shrink-0 size-5 flex items-center justify-center text-[var(--Object-High-Emphasis)]", children: u }),
|
|
5229
5233
|
/* @__PURE__ */ i("div", { className: "flex flex-1 min-w-0 flex-col gap-0", children: [
|
|
5230
5234
|
/* @__PURE__ */ e("span", { className: s("truncate", N), children: a }),
|
|
5231
5235
|
t && /* @__PURE__ */ e("span", { className: "truncate typo-body-sm text-[var(--Text-Medium-Emphasis)]", children: t })
|
|
5232
5236
|
] }),
|
|
5233
|
-
r === "arrow-right" && /* @__PURE__ */ e(
|
|
5237
|
+
r === "arrow-right" && /* @__PURE__ */ e($, { size: 20, className: "shrink-0 text-[var(--Object-Low-Emphasis)]" }),
|
|
5234
5238
|
r === "arrow-down" && /* @__PURE__ */ e(Y, { size: 20, className: "shrink-0 text-[var(--Object-Low-Emphasis)]" }),
|
|
5235
5239
|
r === "text" && n && /* @__PURE__ */ e("span", { className: "shrink-0 typo-body-md text-[var(--Text-High-Emphasis)]", children: n }),
|
|
5236
5240
|
r === "badge" && o !== void 0 && /* @__PURE__ */ e("span", { className: "flex shrink-0 h-[13px] min-w-[13px] items-center justify-center rounded-full bg-[var(--Surface-Caution,#ec0000)] px-1 typo-label-xs text-white", children: o }),
|
|
@@ -5258,9 +5262,9 @@ function Ro({
|
|
|
5258
5262
|
banners: o,
|
|
5259
5263
|
onClose: l,
|
|
5260
5264
|
onLogin: d,
|
|
5261
|
-
loginHref:
|
|
5265
|
+
loginHref: u = "/security/login_link/",
|
|
5262
5266
|
className: c,
|
|
5263
|
-
...
|
|
5267
|
+
...m
|
|
5264
5268
|
}) {
|
|
5265
5269
|
const [v, h] = w.useState(
|
|
5266
5270
|
/* @__PURE__ */ new Set()
|
|
@@ -5278,7 +5282,7 @@ function Ro({
|
|
|
5278
5282
|
"flex h-full w-80 flex-col bg-[var(--Surface-Primary)]",
|
|
5279
5283
|
c
|
|
5280
5284
|
),
|
|
5281
|
-
...
|
|
5285
|
+
...m,
|
|
5282
5286
|
children: [
|
|
5283
5287
|
/* @__PURE__ */ i("div", { className: "flex items-center justify-between px-4 py-3", children: [
|
|
5284
5288
|
t ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i("p", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: [
|
|
@@ -5300,7 +5304,7 @@ function Ro({
|
|
|
5300
5304
|
/* @__PURE__ */ e("div", { className: "py-2", children: /* @__PURE__ */ e("ul", { children: /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
5301
5305
|
"a",
|
|
5302
5306
|
{
|
|
5303
|
-
href:
|
|
5307
|
+
href: u,
|
|
5304
5308
|
onClick: d ? (p) => {
|
|
5305
5309
|
p.preventDefault(), d();
|
|
5306
5310
|
} : void 0,
|
|
@@ -5386,12 +5390,12 @@ function ea({ item: a }) {
|
|
|
5386
5390
|
a.badge && /* @__PURE__ */ e("span", { className: "rounded-full bg-[var(--Brand-Cake-Orange)] px-2 py-0.5 typo-label-xs text-[var(--Text-on-Inverse)]", children: a.badge }),
|
|
5387
5391
|
a.subText && /* @__PURE__ */ e("span", { className: "typo-body-sm text-[var(--Text-Low-Emphasis)]", children: a.subText })
|
|
5388
5392
|
] }),
|
|
5389
|
-
a.hasChildren && /* @__PURE__ */ e(
|
|
5393
|
+
a.hasChildren && /* @__PURE__ */ e($, { size: 16, className: "shrink-0 text-[var(--Object-High-Emphasis)]" })
|
|
5390
5394
|
]
|
|
5391
5395
|
}
|
|
5392
5396
|
);
|
|
5393
5397
|
}
|
|
5394
|
-
function
|
|
5398
|
+
function Fo({
|
|
5395
5399
|
className: a,
|
|
5396
5400
|
items: t,
|
|
5397
5401
|
variant: r = "text",
|
|
@@ -5452,7 +5456,7 @@ function $o({
|
|
|
5452
5456
|
}
|
|
5453
5457
|
);
|
|
5454
5458
|
}
|
|
5455
|
-
function
|
|
5459
|
+
function $o({
|
|
5456
5460
|
notifications: a,
|
|
5457
5461
|
variant: t = "vertical",
|
|
5458
5462
|
emptyMessage: r = "新着のお知らせはありません",
|
|
@@ -5492,7 +5496,7 @@ function Fo({
|
|
|
5492
5496
|
l.isUnread && /* @__PURE__ */ e(_t, { variant: "destructive", className: "shrink-0 w-fit", children: "NEW" }),
|
|
5493
5497
|
/* @__PURE__ */ e("span", { className: "typo-body-md text-[var(--Text-High-Emphasis)] truncate", children: l.message })
|
|
5494
5498
|
] }),
|
|
5495
|
-
/* @__PURE__ */ e(
|
|
5499
|
+
/* @__PURE__ */ e($, { size: 16, className: "text-[var(--Text-Low-Emphasis)] shrink-0 ml-auto" })
|
|
5496
5500
|
]
|
|
5497
5501
|
},
|
|
5498
5502
|
l.id
|
|
@@ -5546,9 +5550,9 @@ function be({
|
|
|
5546
5550
|
showTaxLabel: o = !0,
|
|
5547
5551
|
currency: l = "¥",
|
|
5548
5552
|
size: d = "md",
|
|
5549
|
-
...
|
|
5553
|
+
...u
|
|
5550
5554
|
}) {
|
|
5551
|
-
const c = t.toLocaleString("ja-JP"),
|
|
5555
|
+
const c = t.toLocaleString("ja-JP"), m = r?.toLocaleString("ja-JP"), v = n?.toLocaleString("ja-JP"), h = n != null && n > t, b = r != null && r > t, p = d ?? "md", f = h ? `${l}${c} 税込、元の価格 ${l}${v}` : b ? `${l}${c}〜${l}${m} 税込` : `${l}${c} 税込`;
|
|
5552
5556
|
return /* @__PURE__ */ i(
|
|
5553
5557
|
"div",
|
|
5554
5558
|
{
|
|
@@ -5556,7 +5560,7 @@ function be({
|
|
|
5556
5560
|
className: s("flex flex-col", a),
|
|
5557
5561
|
role: "group",
|
|
5558
5562
|
"aria-label": f,
|
|
5559
|
-
...
|
|
5563
|
+
...u,
|
|
5560
5564
|
children: [
|
|
5561
5565
|
h && /* @__PURE__ */ i(
|
|
5562
5566
|
"span",
|
|
@@ -5586,7 +5590,7 @@ function be({
|
|
|
5586
5590
|
c,
|
|
5587
5591
|
"〜",
|
|
5588
5592
|
l,
|
|
5589
|
-
|
|
5593
|
+
m
|
|
5590
5594
|
] }) : /* @__PURE__ */ i(O, { children: [
|
|
5591
5595
|
l,
|
|
5592
5596
|
c
|
|
@@ -5624,7 +5628,7 @@ function Wo({
|
|
|
5624
5628
|
"aria-label": "ステップ",
|
|
5625
5629
|
...o,
|
|
5626
5630
|
children: t.map((l, d) => {
|
|
5627
|
-
const
|
|
5631
|
+
const u = d < r, c = d === r, m = u || c, v = d === t.length - 1;
|
|
5628
5632
|
return /* @__PURE__ */ i("div", { className: s("flex items-start", !v && "flex-1"), children: [
|
|
5629
5633
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-1.5", children: [
|
|
5630
5634
|
/* @__PURE__ */ e(
|
|
@@ -5632,10 +5636,10 @@ function Wo({
|
|
|
5632
5636
|
{
|
|
5633
5637
|
className: s(
|
|
5634
5638
|
"flex size-7 items-center justify-center rounded-full typo-label-sm transition-colors",
|
|
5635
|
-
|
|
5639
|
+
m ? "bg-[var(--Brand-Cake-Orange)] text-[var(--Text-on-Inverse)]" : "bg-[var(--Surface-Tertiary)] text-[var(--Text-Low-Emphasis)]"
|
|
5636
5640
|
),
|
|
5637
5641
|
"aria-current": c ? "step" : void 0,
|
|
5638
|
-
children: n &&
|
|
5642
|
+
children: n && u ? /* @__PURE__ */ e(Ie, { className: "size-4 shrink-0" }) : d + 1
|
|
5639
5643
|
}
|
|
5640
5644
|
),
|
|
5641
5645
|
/* @__PURE__ */ e(
|
|
@@ -5643,7 +5647,7 @@ function Wo({
|
|
|
5643
5647
|
{
|
|
5644
5648
|
className: s(
|
|
5645
5649
|
"transition-colors",
|
|
5646
|
-
|
|
5650
|
+
m ? "typo-label-xs text-[var(--Text-High-Emphasis)]" : "typo-body-xs text-[var(--Text-Low-Emphasis)]"
|
|
5647
5651
|
),
|
|
5648
5652
|
children: l
|
|
5649
5653
|
}
|
|
@@ -5654,7 +5658,7 @@ function Wo({
|
|
|
5654
5658
|
{
|
|
5655
5659
|
className: s(
|
|
5656
5660
|
"h-0.5 w-full rounded-full transition-colors",
|
|
5657
|
-
|
|
5661
|
+
u ? "bg-[var(--Brand-Cake-Orange)]" : "bg-[var(--Border-Medium-Emphasis)]"
|
|
5658
5662
|
)
|
|
5659
5663
|
}
|
|
5660
5664
|
) })
|
|
@@ -5671,13 +5675,13 @@ function Sa({
|
|
|
5671
5675
|
onChange: o,
|
|
5672
5676
|
disabled: l = !1,
|
|
5673
5677
|
error: d = !1,
|
|
5674
|
-
size:
|
|
5678
|
+
size: u = "md",
|
|
5675
5679
|
editable: c = !0,
|
|
5676
|
-
showTrash:
|
|
5680
|
+
showTrash: m = !1,
|
|
5677
5681
|
onDelete: v,
|
|
5678
5682
|
...h
|
|
5679
5683
|
}) {
|
|
5680
|
-
const [b, p] = w.useState(String(t)), f =
|
|
5684
|
+
const [b, p] = w.useState(String(t)), f = m && t <= r, x = t > r && !l, k = t < n && !l, g = f && !l;
|
|
5681
5685
|
w.useEffect(() => {
|
|
5682
5686
|
p(String(t));
|
|
5683
5687
|
}, [t]);
|
|
@@ -5702,7 +5706,7 @@ function Sa({
|
|
|
5702
5706
|
}, B = (C) => {
|
|
5703
5707
|
C.key === "Enter" && z();
|
|
5704
5708
|
};
|
|
5705
|
-
return
|
|
5709
|
+
return u === "sm" ? /* @__PURE__ */ i(
|
|
5706
5710
|
"div",
|
|
5707
5711
|
{
|
|
5708
5712
|
"data-slot": "quantity-selector",
|
|
@@ -5862,26 +5866,26 @@ const Ar = w.forwardRef(
|
|
|
5862
5866
|
searchHref: o,
|
|
5863
5867
|
...l
|
|
5864
5868
|
}, d) => {
|
|
5865
|
-
const
|
|
5869
|
+
const u = w.useRef(null), c = w.useCallback(
|
|
5866
5870
|
(h) => {
|
|
5867
|
-
|
|
5871
|
+
u.current = h, typeof d == "function" ? d(h) : d && (d.current = h);
|
|
5868
5872
|
},
|
|
5869
5873
|
[d]
|
|
5870
|
-
),
|
|
5871
|
-
const h =
|
|
5874
|
+
), m = () => {
|
|
5875
|
+
const h = u.current?.value ?? "";
|
|
5872
5876
|
h.trim() && (r?.(h), o && (window.location.href = o.replace(
|
|
5873
5877
|
"{query}",
|
|
5874
5878
|
encodeURIComponent(h)
|
|
5875
5879
|
)));
|
|
5876
5880
|
}, v = (h) => {
|
|
5877
|
-
h.key === "Enter" &&
|
|
5881
|
+
h.key === "Enter" && m(), l.onKeyDown?.(h);
|
|
5878
5882
|
};
|
|
5879
5883
|
return /* @__PURE__ */ i(
|
|
5880
5884
|
"div",
|
|
5881
5885
|
{
|
|
5882
5886
|
"data-slot": "search-bar",
|
|
5883
5887
|
className: s(
|
|
5884
|
-
"group flex items-center overflow-hidden rounded-lg border border-[var(--Border-Medium-Emphasis)] bg-[var(--Surface-Secondary)] transition-colors hover:border-[var(--Border-High-Emphasis)] focus-within:border-[var(--
|
|
5888
|
+
"group flex items-center overflow-hidden rounded-lg border border-[var(--Border-Medium-Emphasis)] bg-[var(--Surface-Secondary)] transition-colors hover:border-[var(--Border-High-Emphasis)] focus-within:border-[var(--Focus-High-Emphasis)] focus-within:ring-1 focus-within:ring-[var(--Focus-High-Emphasis)]",
|
|
5885
5889
|
n === "sm" ? "h-9" : "h-11",
|
|
5886
5890
|
a
|
|
5887
5891
|
),
|
|
@@ -5909,7 +5913,7 @@ const Ar = w.forwardRef(
|
|
|
5909
5913
|
"flex shrink-0 items-center justify-center border-l border-[var(--Border-Medium-Emphasis)] text-[var(--Text-Low-Emphasis)] transition-colors hover:bg-[var(--Surface-Tertiary)] hover:text-[var(--Text-High-Emphasis)]",
|
|
5910
5914
|
n === "sm" ? "size-9" : "h-11 w-11"
|
|
5911
5915
|
),
|
|
5912
|
-
onClick:
|
|
5916
|
+
onClick: m,
|
|
5913
5917
|
"aria-label": "検索",
|
|
5914
5918
|
children: /* @__PURE__ */ e(Te, { size: n === "sm" ? 14 : 16 })
|
|
5915
5919
|
}
|
|
@@ -6057,11 +6061,11 @@ function qo({
|
|
|
6057
6061
|
}
|
|
6058
6062
|
);
|
|
6059
6063
|
}
|
|
6060
|
-
function
|
|
6064
|
+
function Fr(a) {
|
|
6061
6065
|
const t = `/iframe.html?id=${encodeURIComponent(a)}&viewMode=story`;
|
|
6062
6066
|
window.location.href = t;
|
|
6063
6067
|
}
|
|
6064
|
-
function
|
|
6068
|
+
function $r({
|
|
6065
6069
|
activeMenu: a,
|
|
6066
6070
|
groups: t,
|
|
6067
6071
|
ariaLabel: r = "サイドメニュー",
|
|
@@ -6080,14 +6084,14 @@ function Fr({
|
|
|
6080
6084
|
...o,
|
|
6081
6085
|
children: /* @__PURE__ */ e("div", { className: "py-4", children: t.map((l, d) => /* @__PURE__ */ i("div", { className: "mb-1", children: [
|
|
6082
6086
|
l.groupLabel && /* @__PURE__ */ e("p", { className: "px-4 py-2 typo-label-xs text-[var(--Text-Low-Emphasis)] uppercase", children: l.groupLabel }),
|
|
6083
|
-
/* @__PURE__ */ e("ul", { children: l.items.map((
|
|
6084
|
-
const c =
|
|
6087
|
+
/* @__PURE__ */ e("ul", { children: l.items.map((u) => {
|
|
6088
|
+
const c = u.key === a;
|
|
6085
6089
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
|
|
6086
6090
|
"a",
|
|
6087
6091
|
{
|
|
6088
|
-
href:
|
|
6089
|
-
onClick: (
|
|
6090
|
-
|
|
6092
|
+
href: u.href,
|
|
6093
|
+
onClick: (m) => {
|
|
6094
|
+
u.storyId && (m.preventDefault(), Fr(u.storyId));
|
|
6091
6095
|
},
|
|
6092
6096
|
className: s(
|
|
6093
6097
|
"flex items-center gap-3 px-4 py-2.5 typo-body-md transition-colors hover:bg-[var(--Surface-Secondary)] cursor-pointer",
|
|
@@ -6099,14 +6103,14 @@ function Fr({
|
|
|
6099
6103
|
"span",
|
|
6100
6104
|
{
|
|
6101
6105
|
className: c ? "text-[var(--Text-Accent-Primary)]" : "text-[var(--Object-High-Emphasis)]",
|
|
6102
|
-
children:
|
|
6106
|
+
children: u.icon
|
|
6103
6107
|
}
|
|
6104
6108
|
),
|
|
6105
|
-
/* @__PURE__ */ e("span", { className: "flex-1", children:
|
|
6106
|
-
/* @__PURE__ */ e(
|
|
6109
|
+
/* @__PURE__ */ e("span", { className: "flex-1", children: u.label }),
|
|
6110
|
+
/* @__PURE__ */ e($, { size: 14, className: "text-[var(--Object-Low-Emphasis)]" })
|
|
6107
6111
|
]
|
|
6108
6112
|
}
|
|
6109
|
-
) },
|
|
6113
|
+
) }, u.key);
|
|
6110
6114
|
}) }),
|
|
6111
6115
|
d < t.length - 1 && /* @__PURE__ */ e(Ta, { className: "my-2 mx-4" })
|
|
6112
6116
|
] }, d)) })
|
|
@@ -6220,8 +6224,8 @@ function Uo({
|
|
|
6220
6224
|
onSelect: r,
|
|
6221
6225
|
className: n
|
|
6222
6226
|
}) {
|
|
6223
|
-
const [o, l] = w.useState(t), d = (
|
|
6224
|
-
l(
|
|
6227
|
+
const [o, l] = w.useState(t), d = (u) => {
|
|
6228
|
+
l(u), r?.(u);
|
|
6225
6229
|
};
|
|
6226
6230
|
return /* @__PURE__ */ e(
|
|
6227
6231
|
"div",
|
|
@@ -6229,18 +6233,18 @@ function Uo({
|
|
|
6229
6233
|
"data-slot": "status-count-tabs",
|
|
6230
6234
|
className: s("flex gap-2 overflow-x-auto scrollbar-hide", n),
|
|
6231
6235
|
role: "tablist",
|
|
6232
|
-
children: a.map((
|
|
6236
|
+
children: a.map((u, c) => /* @__PURE__ */ e(
|
|
6233
6237
|
za,
|
|
6234
6238
|
{
|
|
6235
6239
|
selected: o === c,
|
|
6236
|
-
count:
|
|
6240
|
+
count: u.count,
|
|
6237
6241
|
size: "sm",
|
|
6238
6242
|
onClick: () => d(c),
|
|
6239
6243
|
role: "tab",
|
|
6240
6244
|
"aria-selected": o === c,
|
|
6241
|
-
children:
|
|
6245
|
+
children: u.label
|
|
6242
6246
|
},
|
|
6243
|
-
|
|
6247
|
+
u.label
|
|
6244
6248
|
))
|
|
6245
6249
|
}
|
|
6246
6250
|
);
|
|
@@ -6371,15 +6375,15 @@ function Xo({
|
|
|
6371
6375
|
breadcrumbs: n,
|
|
6372
6376
|
shopName: o = "Sample Shop"
|
|
6373
6377
|
}) {
|
|
6374
|
-
const [l, d] = w.useState(null), [
|
|
6378
|
+
const [l, d] = w.useState(null), [u, c] = w.useState(!1);
|
|
6375
6379
|
return /* @__PURE__ */ i("div", { className: "@container flex min-h-screen bg-[var(--Surface-Secondary)]", "data-slot": "admin-layout", children: [
|
|
6376
|
-
/* @__PURE__ */ e(aa, { name: "AdminSideNav", className: "hidden @md:block border-0 rounded-none border-r-2", children: /* @__PURE__ */ e("nav", { className: "fixed left-0 top-0 z-40 flex h-full w-[72px] flex-col items-center bg-[var(--Surface-Primary)] border-r border-[var(--Border-Low-Emphasis)] pt-16", children: ta.map((
|
|
6377
|
-
const v =
|
|
6380
|
+
/* @__PURE__ */ e(aa, { name: "AdminSideNav", className: "hidden @md:block border-0 rounded-none border-r-2", children: /* @__PURE__ */ e("nav", { className: "fixed left-0 top-0 z-40 flex h-full w-[72px] flex-col items-center bg-[var(--Surface-Primary)] border-r border-[var(--Border-Low-Emphasis)] pt-16", children: ta.map((m) => {
|
|
6381
|
+
const v = m.icon, h = t === m.id, b = m.id in ce;
|
|
6378
6382
|
return /* @__PURE__ */ i(
|
|
6379
6383
|
"div",
|
|
6380
6384
|
{
|
|
6381
6385
|
className: "relative",
|
|
6382
|
-
onMouseEnter: () => d(b ?
|
|
6386
|
+
onMouseEnter: () => d(b ? m.id : null),
|
|
6383
6387
|
onMouseLeave: () => d(null),
|
|
6384
6388
|
children: [
|
|
6385
6389
|
/* @__PURE__ */ i(
|
|
@@ -6391,11 +6395,11 @@ function Xo({
|
|
|
6391
6395
|
),
|
|
6392
6396
|
children: [
|
|
6393
6397
|
/* @__PURE__ */ e(v, { size: 24, variant: h ? "Bold" : "Outline" }),
|
|
6394
|
-
/* @__PURE__ */ e("span", { className: "leading-none", children:
|
|
6398
|
+
/* @__PURE__ */ e("span", { className: "leading-none", children: m.label })
|
|
6395
6399
|
]
|
|
6396
6400
|
}
|
|
6397
6401
|
),
|
|
6398
|
-
b && l ===
|
|
6402
|
+
b && l === m.id && /* @__PURE__ */ e("div", { className: "absolute left-full top-0 z-50 ml-0 w-[240px] rounded-2xl bg-[var(--Surface-Primary)] shadow-[0px_4px_6px_-4px_rgba(24,39,75,0.12),0px_8px_8px_-4px_rgba(24,39,75,0.08)] border border-[var(--Border-Low-Emphasis)] py-2", children: ce[m.id].map((p) => /* @__PURE__ */ e(
|
|
6399
6403
|
"a",
|
|
6400
6404
|
{
|
|
6401
6405
|
href: p.href,
|
|
@@ -6406,18 +6410,18 @@ function Xo({
|
|
|
6406
6410
|
)) })
|
|
6407
6411
|
]
|
|
6408
6412
|
},
|
|
6409
|
-
|
|
6413
|
+
m.id
|
|
6410
6414
|
);
|
|
6411
6415
|
}) }) }),
|
|
6412
|
-
|
|
6416
|
+
u && /* @__PURE__ */ i("div", { className: "fixed inset-0 z-50 @md:hidden", children: [
|
|
6413
6417
|
/* @__PURE__ */ e("div", { className: "absolute inset-0 bg-[var(--Primitive-Black-alpha-1000)]/40", onClick: () => c(!1) }),
|
|
6414
6418
|
/* @__PURE__ */ i("nav", { className: "absolute left-0 top-0 h-full w-[280px] bg-[var(--Surface-Primary)] shadow-lg overflow-y-auto", children: [
|
|
6415
6419
|
/* @__PURE__ */ i("div", { className: "flex items-center justify-between border-b border-[var(--Border-Low-Emphasis)] px-4 py-3", children: [
|
|
6416
6420
|
/* @__PURE__ */ e("span", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: o }),
|
|
6417
6421
|
/* @__PURE__ */ e("button", { onClick: () => c(!1), className: "size-10 flex items-center justify-center", "aria-label": "閉じる", children: /* @__PURE__ */ e("span", { className: "typo-heading-lg text-[var(--Text-Medium-Emphasis)]", children: "×" }) })
|
|
6418
6422
|
] }),
|
|
6419
|
-
ta.map((
|
|
6420
|
-
const v =
|
|
6423
|
+
ta.map((m) => {
|
|
6424
|
+
const v = m.icon, h = t === m.id, b = m.id in ce;
|
|
6421
6425
|
return /* @__PURE__ */ i("div", { children: [
|
|
6422
6426
|
/* @__PURE__ */ i(
|
|
6423
6427
|
"button",
|
|
@@ -6428,13 +6432,13 @@ function Xo({
|
|
|
6428
6432
|
),
|
|
6429
6433
|
children: [
|
|
6430
6434
|
/* @__PURE__ */ e(v, { size: 20, variant: h ? "Bold" : "Outline" }),
|
|
6431
|
-
/* @__PURE__ */ e("span", { className: "typo-label-md", children:
|
|
6435
|
+
/* @__PURE__ */ e("span", { className: "typo-label-md", children: m.label }),
|
|
6432
6436
|
b && /* @__PURE__ */ e(Y, { size: 16, className: "ml-auto text-[var(--Text-Low-Emphasis)]" })
|
|
6433
6437
|
]
|
|
6434
6438
|
}
|
|
6435
6439
|
),
|
|
6436
|
-
b && /* @__PURE__ */ e("div", { className: "bg-[var(--Surface-Secondary)]", children: ce[
|
|
6437
|
-
] },
|
|
6440
|
+
b && /* @__PURE__ */ e("div", { className: "bg-[var(--Surface-Secondary)]", children: ce[m.id].map((p) => /* @__PURE__ */ e("a", { href: p.href, className: "block px-12 py-2.5 typo-body-md text-[var(--Text-Medium-Emphasis)] hover:text-[var(--Text-High-Emphasis)]", children: p.label }, p.label)) })
|
|
6441
|
+
] }, m.id);
|
|
6438
6442
|
})
|
|
6439
6443
|
] })
|
|
6440
6444
|
] }),
|
|
@@ -6465,9 +6469,9 @@ function Xo({
|
|
|
6465
6469
|
] }) }),
|
|
6466
6470
|
/* @__PURE__ */ i("main", { className: "mt-14 @md:mt-16 flex-1 p-4 @md:p-6", children: [
|
|
6467
6471
|
(n || r) && /* @__PURE__ */ i("div", { className: "mb-4 space-y-1", children: [
|
|
6468
|
-
n && n.length > 0 && /* @__PURE__ */ e("nav", { className: "flex items-center gap-1 typo-body-sm text-[var(--Text-Low-Emphasis)]", "aria-label": "パンくず", children: n.map((
|
|
6469
|
-
v > 0 && /* @__PURE__ */ e(
|
|
6470
|
-
|
|
6472
|
+
n && n.length > 0 && /* @__PURE__ */ e("nav", { className: "flex items-center gap-1 typo-body-sm text-[var(--Text-Low-Emphasis)]", "aria-label": "パンくず", children: n.map((m, v) => /* @__PURE__ */ i(w.Fragment, { children: [
|
|
6473
|
+
v > 0 && /* @__PURE__ */ e($, { size: 12 }),
|
|
6474
|
+
m.href ? /* @__PURE__ */ e("a", { href: m.href, className: "hover:text-[var(--Text-Accent-Primary)] transition-colors", children: m.label }) : /* @__PURE__ */ e("span", { className: "text-[var(--Text-High-Emphasis)]", children: m.label })
|
|
6471
6475
|
] }, v)) }),
|
|
6472
6476
|
r && /* @__PURE__ */ e("h1", { className: "typo-heading-2xl text-[var(--Text-High-Emphasis)]", children: r })
|
|
6473
6477
|
] }),
|
|
@@ -6484,11 +6488,11 @@ function Ko({
|
|
|
6484
6488
|
daysLeft: o,
|
|
6485
6489
|
memo: l,
|
|
6486
6490
|
editHref: d,
|
|
6487
|
-
onEdit:
|
|
6491
|
+
onEdit: u,
|
|
6488
6492
|
className: c,
|
|
6489
|
-
...
|
|
6493
|
+
...m
|
|
6490
6494
|
}) {
|
|
6491
|
-
const v = d ? /* @__PURE__ */ e(T, { variant: "tertiary", size: "xs", asChild: !0, children: /* @__PURE__ */ e("a", { href: d, children: "編集" }) }) :
|
|
6495
|
+
const v = d ? /* @__PURE__ */ e(T, { variant: "tertiary", size: "xs", asChild: !0, children: /* @__PURE__ */ e("a", { href: d, children: "編集" }) }) : u ? /* @__PURE__ */ e(T, { variant: "tertiary", size: "xs", onClick: u, children: "編集" }) : null;
|
|
6492
6496
|
return /* @__PURE__ */ i(
|
|
6493
6497
|
"div",
|
|
6494
6498
|
{
|
|
@@ -6497,7 +6501,7 @@ function Ko({
|
|
|
6497
6501
|
"min-w-[200px] rounded-xl border border-[var(--Border-Medium-Emphasis)] p-4 space-y-2",
|
|
6498
6502
|
c
|
|
6499
6503
|
),
|
|
6500
|
-
...
|
|
6504
|
+
...m,
|
|
6501
6505
|
children: [
|
|
6502
6506
|
/* @__PURE__ */ i("div", { className: "flex items-center justify-between gap-2", children: [
|
|
6503
6507
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
@@ -6570,7 +6574,7 @@ function Jo({
|
|
|
6570
6574
|
className: n,
|
|
6571
6575
|
...o
|
|
6572
6576
|
}) {
|
|
6573
|
-
const l = Math.floor(t / 3600), d = Math.floor(t % 3600 / 60),
|
|
6577
|
+
const l = Math.floor(t / 3600), d = Math.floor(t % 3600 / 60), u = t % 60, c = (h) => String(h).padStart(2, "0"), v = r ?? (a === "before" ? "開始まで" : a === "active" ? "終了まで" : "");
|
|
6574
6578
|
return a === "ended" ? /* @__PURE__ */ e(
|
|
6575
6579
|
"div",
|
|
6576
6580
|
{
|
|
@@ -6598,7 +6602,7 @@ function Jo({
|
|
|
6598
6602
|
/* @__PURE__ */ e("span", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: ":" }),
|
|
6599
6603
|
/* @__PURE__ */ e(Pe, { value: c(d) }),
|
|
6600
6604
|
/* @__PURE__ */ e("span", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: ":" }),
|
|
6601
|
-
/* @__PURE__ */ e(Pe, { value: c(
|
|
6605
|
+
/* @__PURE__ */ e(Pe, { value: c(u) })
|
|
6602
6606
|
] })
|
|
6603
6607
|
]
|
|
6604
6608
|
}
|
|
@@ -6615,16 +6619,16 @@ function Yo({
|
|
|
6615
6619
|
shopThumbnailUrl: o,
|
|
6616
6620
|
shopName: l,
|
|
6617
6621
|
status: d = "available",
|
|
6618
|
-
onAcquire:
|
|
6622
|
+
onAcquire: u,
|
|
6619
6623
|
acquireLabel: c = "クーポンを獲得する",
|
|
6620
|
-
layout:
|
|
6624
|
+
layout: m = "vertical",
|
|
6621
6625
|
limitLabel: v,
|
|
6622
6626
|
conditionText: h,
|
|
6623
6627
|
expiryText: b,
|
|
6624
6628
|
className: p,
|
|
6625
6629
|
...f
|
|
6626
6630
|
}) {
|
|
6627
|
-
return
|
|
6631
|
+
return m === "horizontal" ? /* @__PURE__ */ e(
|
|
6628
6632
|
Gr,
|
|
6629
6633
|
{
|
|
6630
6634
|
title: a,
|
|
@@ -6632,7 +6636,7 @@ function Yo({
|
|
|
6632
6636
|
conditionText: h,
|
|
6633
6637
|
expiryText: b,
|
|
6634
6638
|
status: d,
|
|
6635
|
-
onAcquire:
|
|
6639
|
+
onAcquire: u,
|
|
6636
6640
|
className: p,
|
|
6637
6641
|
...f
|
|
6638
6642
|
}
|
|
@@ -6672,7 +6676,7 @@ function Yo({
|
|
|
6672
6676
|
t && /* @__PURE__ */ e("p", { className: "mt-1 break-words typo-body-md text-[var(--Text-Medium-Emphasis)]", children: t })
|
|
6673
6677
|
] }),
|
|
6674
6678
|
/* @__PURE__ */ e("div", { className: "px-4 py-3", children: /* @__PURE__ */ e("div", { className: "border-t border-dashed border-[var(--Border-Medium-Emphasis)]" }) }),
|
|
6675
|
-
/* @__PURE__ */ e("div", { className: "px-4 pb-4", children: /* @__PURE__ */ e(Ca, { status: d, onAcquire:
|
|
6679
|
+
/* @__PURE__ */ e("div", { className: "px-4 pb-4", children: /* @__PURE__ */ e(Ca, { status: d, onAcquire: u, label: c, size: "lg" }) })
|
|
6676
6680
|
]
|
|
6677
6681
|
}
|
|
6678
6682
|
);
|
|
@@ -6685,7 +6689,7 @@ function Gr({
|
|
|
6685
6689
|
status: o = "available",
|
|
6686
6690
|
onAcquire: l,
|
|
6687
6691
|
className: d,
|
|
6688
|
-
...
|
|
6692
|
+
...u
|
|
6689
6693
|
}) {
|
|
6690
6694
|
return /* @__PURE__ */ i(
|
|
6691
6695
|
"div",
|
|
@@ -6693,7 +6697,7 @@ function Gr({
|
|
|
6693
6697
|
"data-slot": "coupon-card",
|
|
6694
6698
|
"data-layout": "horizontal",
|
|
6695
6699
|
className: s("flex items-stretch min-w-0 overflow-hidden", d),
|
|
6696
|
-
...
|
|
6700
|
+
...u,
|
|
6697
6701
|
children: [
|
|
6698
6702
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 flex-1 flex-col items-start justify-center gap-1 rounded-l-lg border-b border-l border-t border-[var(--Border-Medium-Emphasis)] bg-[var(--Surface-Primary)] px-3 py-2", children: [
|
|
6699
6703
|
t && /* @__PURE__ */ e("span", { className: "shrink-0 rounded-full bg-[var(--Surface-Accent-Primary-Light)] px-2 py-0.5 typo-body-sm text-[var(--Text-Accent-Primary)]", children: t }),
|
|
@@ -6726,7 +6730,7 @@ function Ca({
|
|
|
6726
6730
|
"bg-[var(--Brand-Cake-Orange)] text-[var(--Text-on-Inverse)] transition-colors hover:bg-[var(--Hover-Primary-Button)] active:scale-[0.98]"
|
|
6727
6731
|
),
|
|
6728
6732
|
children: [
|
|
6729
|
-
o && /* @__PURE__ */ e(
|
|
6733
|
+
o && /* @__PURE__ */ e(Fe, { size: 16 }),
|
|
6730
6734
|
r
|
|
6731
6735
|
]
|
|
6732
6736
|
}
|
|
@@ -6744,9 +6748,9 @@ function Qo({
|
|
|
6744
6748
|
onDaySelect: o,
|
|
6745
6749
|
selectedDate: l,
|
|
6746
6750
|
className: d,
|
|
6747
|
-
...
|
|
6751
|
+
...u
|
|
6748
6752
|
}) {
|
|
6749
|
-
const c = new Date(a, t - 1, 1),
|
|
6753
|
+
const c = new Date(a, t - 1, 1), m = new Date(a, t, 0), v = c.getDay(), h = m.getDate(), b = [];
|
|
6750
6754
|
let p = Array(v).fill(null);
|
|
6751
6755
|
for (let g = 1; g <= h; g++) {
|
|
6752
6756
|
const y = new Date(a, t - 1, g), N = r.find(
|
|
@@ -6772,7 +6776,7 @@ function Qo({
|
|
|
6772
6776
|
{
|
|
6773
6777
|
"data-slot": "delivery-calendar",
|
|
6774
6778
|
className: s("space-y-2", d),
|
|
6775
|
-
...
|
|
6779
|
+
...u,
|
|
6776
6780
|
children: [
|
|
6777
6781
|
/* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: [
|
|
6778
6782
|
/* @__PURE__ */ e(T, { variant: "ghost", size: "icon-sm", onClick: f, "aria-label": "前月", children: /* @__PURE__ */ e(le, { size: 16 }) }),
|
|
@@ -6780,7 +6784,7 @@ function Qo({
|
|
|
6780
6784
|
t,
|
|
6781
6785
|
"月"
|
|
6782
6786
|
] }),
|
|
6783
|
-
/* @__PURE__ */ e(T, { variant: "ghost", size: "icon-sm", onClick: x, "aria-label": "次月", children: /* @__PURE__ */ e(
|
|
6787
|
+
/* @__PURE__ */ e(T, { variant: "ghost", size: "icon-sm", onClick: x, "aria-label": "次月", children: /* @__PURE__ */ e($, { size: 16 }) })
|
|
6784
6788
|
] }),
|
|
6785
6789
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-7 text-center", children: Ur.map((g, y) => /* @__PURE__ */ e(
|
|
6786
6790
|
"span",
|
|
@@ -6913,7 +6917,7 @@ const Kr = [
|
|
|
6913
6917
|
groupLabel: "ポイント・キャンペーン",
|
|
6914
6918
|
items: [
|
|
6915
6919
|
{
|
|
6916
|
-
icon: /* @__PURE__ */ e(
|
|
6920
|
+
icon: /* @__PURE__ */ e(Fe, { size: 16 }),
|
|
6917
6921
|
label: "クーポン",
|
|
6918
6922
|
href: "/mypage/coupon_list/",
|
|
6919
6923
|
key: "coupons",
|
|
@@ -6983,7 +6987,7 @@ function Zo({
|
|
|
6983
6987
|
onEdit: o,
|
|
6984
6988
|
children: l,
|
|
6985
6989
|
className: d,
|
|
6986
|
-
...
|
|
6990
|
+
...u
|
|
6987
6991
|
}) {
|
|
6988
6992
|
return /* @__PURE__ */ i(
|
|
6989
6993
|
"div",
|
|
@@ -6995,7 +6999,7 @@ function Zo({
|
|
|
6995
6999
|
o && "cursor-pointer hover:bg-[var(--Surface-Secondary)] hover:border-[var(--Border-High-Emphasis)]",
|
|
6996
7000
|
d
|
|
6997
7001
|
),
|
|
6998
|
-
...
|
|
7002
|
+
...u,
|
|
6999
7003
|
children: [
|
|
7000
7004
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
7001
7005
|
/* @__PURE__ */ e("h3", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: a }),
|
|
@@ -7013,7 +7017,7 @@ function Zo({
|
|
|
7013
7017
|
className: "flex shrink-0 items-center gap-0.5 typo-body-md text-[var(--Text-Accent-Primary)] transition-colors hover:opacity-80",
|
|
7014
7018
|
children: [
|
|
7015
7019
|
n,
|
|
7016
|
-
/* @__PURE__ */ e(
|
|
7020
|
+
/* @__PURE__ */ e($, { size: 20, className: "text-[var(--Text-Accent-Primary)]" })
|
|
7017
7021
|
]
|
|
7018
7022
|
}
|
|
7019
7023
|
)
|
|
@@ -7029,9 +7033,9 @@ function el({
|
|
|
7029
7033
|
ctaLabel: o,
|
|
7030
7034
|
onCTAClick: l,
|
|
7031
7035
|
showSecurityBadge: d = !1,
|
|
7032
|
-
securityText:
|
|
7036
|
+
securityText: u = "SSL暗号化通信で安全にお手続きいただけます",
|
|
7033
7037
|
disableFixed: c = !1,
|
|
7034
|
-
ctaDisabled:
|
|
7038
|
+
ctaDisabled: m = !1,
|
|
7035
7039
|
...v
|
|
7036
7040
|
}) {
|
|
7037
7041
|
const h = /* @__PURE__ */ i("div", { className: "space-y-2 px-4 py-3", children: [
|
|
@@ -7057,13 +7061,13 @@ function el({
|
|
|
7057
7061
|
size: "xl",
|
|
7058
7062
|
className: "w-full",
|
|
7059
7063
|
onClick: l,
|
|
7060
|
-
disabled:
|
|
7064
|
+
disabled: m,
|
|
7061
7065
|
children: o
|
|
7062
7066
|
}
|
|
7063
7067
|
),
|
|
7064
7068
|
d && /* @__PURE__ */ i("p", { className: "flex items-center justify-center gap-1 typo-body-sm text-[var(--Text-Low-Emphasis)]", children: [
|
|
7065
7069
|
/* @__PURE__ */ e(ht, { size: 12 }),
|
|
7066
|
-
|
|
7070
|
+
u
|
|
7067
7071
|
] })
|
|
7068
7072
|
] });
|
|
7069
7073
|
return c ? /* @__PURE__ */ e(
|
|
@@ -7122,14 +7126,14 @@ function al({
|
|
|
7122
7126
|
status: o = "registered",
|
|
7123
7127
|
acceptedBrands: l,
|
|
7124
7128
|
className: d,
|
|
7125
|
-
...
|
|
7129
|
+
...u
|
|
7126
7130
|
}) {
|
|
7127
7131
|
return /* @__PURE__ */ i(
|
|
7128
7132
|
"div",
|
|
7129
7133
|
{
|
|
7130
7134
|
"data-slot": "payment-method",
|
|
7131
7135
|
className: s("space-y-3", d),
|
|
7132
|
-
...
|
|
7136
|
+
...u,
|
|
7133
7137
|
children: [
|
|
7134
7138
|
o === "registered" && t && /* @__PURE__ */ i("div", { className: "flex items-center gap-3", children: [
|
|
7135
7139
|
/* @__PURE__ */ e(Me, { brand: t }),
|
|
@@ -7195,14 +7199,14 @@ function ie({
|
|
|
7195
7199
|
showValue: l = !0,
|
|
7196
7200
|
...d
|
|
7197
7201
|
}) {
|
|
7198
|
-
const
|
|
7202
|
+
const u = Math.max(0, Math.min(5, t)), { iconSize: c, valueCls: m, countCls: v } = Qr[n];
|
|
7199
7203
|
return /* @__PURE__ */ i(
|
|
7200
7204
|
"div",
|
|
7201
7205
|
{
|
|
7202
7206
|
"data-slot": "rating-stars",
|
|
7203
7207
|
className: s("inline-flex items-center gap-0.5", a),
|
|
7204
7208
|
role: "img",
|
|
7205
|
-
"aria-label": `評価 ${
|
|
7209
|
+
"aria-label": `評価 ${u.toFixed(1)} / 5${r != null ? ` (${r}件)` : ""}`,
|
|
7206
7210
|
...d,
|
|
7207
7211
|
children: [
|
|
7208
7212
|
/* @__PURE__ */ e(
|
|
@@ -7217,9 +7221,9 @@ function ie({
|
|
|
7217
7221
|
{
|
|
7218
7222
|
className: s(
|
|
7219
7223
|
"text-[var(--Brand-Cake-Orange)]",
|
|
7220
|
-
|
|
7224
|
+
m
|
|
7221
7225
|
),
|
|
7222
|
-
children:
|
|
7226
|
+
children: u.toFixed(2)
|
|
7223
7227
|
}
|
|
7224
7228
|
),
|
|
7225
7229
|
o && r != null && /* @__PURE__ */ i("span", { className: s("text-[var(--Text-Low-Emphasis)]", v), children: [
|
|
@@ -7339,9 +7343,9 @@ function es({
|
|
|
7339
7343
|
price: o,
|
|
7340
7344
|
originalPrice: l,
|
|
7341
7345
|
rating: d,
|
|
7342
|
-
reviewCount:
|
|
7346
|
+
reviewCount: u,
|
|
7343
7347
|
shopName: c,
|
|
7344
|
-
shopHref:
|
|
7348
|
+
shopHref: m,
|
|
7345
7349
|
tags: v = [],
|
|
7346
7350
|
isFavorite: h = !1,
|
|
7347
7351
|
onFavoriteToggle: b,
|
|
@@ -7375,12 +7379,12 @@ function es({
|
|
|
7375
7379
|
] }),
|
|
7376
7380
|
/* @__PURE__ */ i("div", { className: "flex min-w-0 flex-1 flex-col justify-between py-1 pl-3 pr-1", children: [
|
|
7377
7381
|
/* @__PURE__ */ i("div", { className: "space-y-0.5", children: [
|
|
7378
|
-
c && /* @__PURE__ */ e(na, { name: c, href:
|
|
7382
|
+
c && /* @__PURE__ */ e(na, { name: c, href: m }),
|
|
7379
7383
|
/* @__PURE__ */ e("h3", { className: "line-clamp-2 typo-body-md text-[var(--Text-High-Emphasis)]", children: t })
|
|
7380
7384
|
] }),
|
|
7381
7385
|
/* @__PURE__ */ i("div", { className: "mt-1 space-y-0.5", children: [
|
|
7382
7386
|
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
7383
|
-
d != null && /* @__PURE__ */ e(ie, { rating: d, reviewCount:
|
|
7387
|
+
d != null && /* @__PURE__ */ e(ie, { rating: d, reviewCount: u, size: "sm" }),
|
|
7384
7388
|
k && /* @__PURE__ */ i("p", { className: "typo-body-xs text-[var(--Text-Medium-Emphasis)]", children: [
|
|
7385
7389
|
"最短 ",
|
|
7386
7390
|
k
|
|
@@ -7412,10 +7416,10 @@ function es({
|
|
|
7412
7416
|
b && /* @__PURE__ */ e("div", { className: "absolute bottom-1.5 right-1.5 z-[4]", children: /* @__PURE__ */ e(sa, { isFavorite: h, onToggle: b }) })
|
|
7413
7417
|
] }),
|
|
7414
7418
|
/* @__PURE__ */ i("div", { className: "flex flex-1 flex-col gap-0.5", children: [
|
|
7415
|
-
c && /* @__PURE__ */ e(na, { name: c, href:
|
|
7419
|
+
c && /* @__PURE__ */ e(na, { name: c, href: m }),
|
|
7416
7420
|
/* @__PURE__ */ e("h3", { className: "line-clamp-2 typo-body-md text-[var(--Text-High-Emphasis)]", children: t }),
|
|
7417
7421
|
(d != null || k) && /* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
7418
|
-
d != null && /* @__PURE__ */ e(ie, { rating: d, reviewCount:
|
|
7422
|
+
d != null && /* @__PURE__ */ e(ie, { rating: d, reviewCount: u, size: "sm" }),
|
|
7419
7423
|
k && /* @__PURE__ */ i("p", { className: "typo-body-xs text-[var(--Text-Medium-Emphasis)]", children: [
|
|
7420
7424
|
"最短 ",
|
|
7421
7425
|
k
|
|
@@ -7453,9 +7457,9 @@ function tl({
|
|
|
7453
7457
|
sectionImageAlt: o,
|
|
7454
7458
|
sectionImageHref: l,
|
|
7455
7459
|
moreHref: d,
|
|
7456
|
-
moreLabel:
|
|
7460
|
+
moreLabel: u,
|
|
7457
7461
|
onMoreClick: c,
|
|
7458
|
-
headerSize:
|
|
7462
|
+
headerSize: m,
|
|
7459
7463
|
products: v,
|
|
7460
7464
|
cardSize: h = "sm",
|
|
7461
7465
|
showRanking: b = !1,
|
|
@@ -7486,10 +7490,9 @@ function tl({
|
|
|
7486
7490
|
title: a,
|
|
7487
7491
|
subtitle: t,
|
|
7488
7492
|
moreHref: d,
|
|
7489
|
-
moreLabel:
|
|
7493
|
+
moreLabel: u,
|
|
7490
7494
|
onMoreClick: c,
|
|
7491
|
-
size:
|
|
7492
|
-
className: "px-0"
|
|
7495
|
+
size: m
|
|
7493
7496
|
}
|
|
7494
7497
|
),
|
|
7495
7498
|
r && /* @__PURE__ */ e("p", { className: "mt-1 line-clamp-3 typo-body-md text-[var(--Text-Medium-Emphasis)]", children: r })
|
|
@@ -7501,9 +7504,10 @@ function tl({
|
|
|
7501
7504
|
title: a,
|
|
7502
7505
|
subtitle: t,
|
|
7503
7506
|
moreHref: d,
|
|
7504
|
-
moreLabel:
|
|
7507
|
+
moreLabel: u,
|
|
7505
7508
|
onMoreClick: c,
|
|
7506
|
-
size:
|
|
7509
|
+
size: m,
|
|
7510
|
+
className: "px-4"
|
|
7507
7511
|
}
|
|
7508
7512
|
),
|
|
7509
7513
|
r && /* @__PURE__ */ e("p", { className: "mt-1 px-4 line-clamp-3 typo-body-md text-[var(--Text-Medium-Emphasis)]", children: r })
|
|
@@ -7543,9 +7547,9 @@ function rl({
|
|
|
7543
7547
|
countdownText: o,
|
|
7544
7548
|
resaleText: l,
|
|
7545
7549
|
className: d,
|
|
7546
|
-
...
|
|
7550
|
+
...u
|
|
7547
7551
|
}) {
|
|
7548
|
-
const c = a === "sold-out" || a === "timesale-ended" || a === "pre-sale",
|
|
7552
|
+
const c = a === "sold-out" || a === "timesale-ended" || a === "pre-sale", m = {
|
|
7549
7553
|
"add-to-cart": "カートに追加",
|
|
7550
7554
|
resale: "再販通知を受け取る",
|
|
7551
7555
|
timesale: "タイムセール カートに追加",
|
|
@@ -7562,7 +7566,7 @@ function rl({
|
|
|
7562
7566
|
{
|
|
7563
7567
|
"data-slot": "product-cta",
|
|
7564
7568
|
className: s("space-y-2", d),
|
|
7565
|
-
...
|
|
7569
|
+
...u,
|
|
7566
7570
|
children: [
|
|
7567
7571
|
/* @__PURE__ */ e(
|
|
7568
7572
|
T,
|
|
@@ -7571,7 +7575,7 @@ function rl({
|
|
|
7571
7575
|
className: "w-full",
|
|
7572
7576
|
disabled: c,
|
|
7573
7577
|
onClick: t,
|
|
7574
|
-
children:
|
|
7578
|
+
children: m[a]
|
|
7575
7579
|
}
|
|
7576
7580
|
),
|
|
7577
7581
|
r && /* @__PURE__ */ i(
|
|
@@ -7616,9 +7620,9 @@ function sl({
|
|
|
7616
7620
|
isSale: o = !1,
|
|
7617
7621
|
rating: l,
|
|
7618
7622
|
reviewCount: d,
|
|
7619
|
-
ctaLabel:
|
|
7623
|
+
ctaLabel: u = "カートに追加",
|
|
7620
7624
|
onCtaClick: c,
|
|
7621
|
-
ctaDisabled:
|
|
7625
|
+
ctaDisabled: m = !1,
|
|
7622
7626
|
onTabClick: v,
|
|
7623
7627
|
...h
|
|
7624
7628
|
}) {
|
|
@@ -7677,8 +7681,8 @@ function sl({
|
|
|
7677
7681
|
{
|
|
7678
7682
|
size: "lg",
|
|
7679
7683
|
onClick: c,
|
|
7680
|
-
disabled:
|
|
7681
|
-
children:
|
|
7684
|
+
disabled: m,
|
|
7685
|
+
children: u
|
|
7682
7686
|
}
|
|
7683
7687
|
)
|
|
7684
7688
|
] })
|
|
@@ -7694,9 +7698,9 @@ function il({
|
|
|
7694
7698
|
shopName: o,
|
|
7695
7699
|
shopHref: l,
|
|
7696
7700
|
brandLabel: d,
|
|
7697
|
-
brandHref:
|
|
7701
|
+
brandHref: u,
|
|
7698
7702
|
rating: c,
|
|
7699
|
-
reviewCount:
|
|
7703
|
+
reviewCount: m,
|
|
7700
7704
|
coupons: v,
|
|
7701
7705
|
sizeOptions: h,
|
|
7702
7706
|
selectedSize: b,
|
|
@@ -7755,10 +7759,10 @@ function il({
|
|
|
7755
7759
|
className: "shrink-0 text-[var(--Text-Medium-Emphasis)]"
|
|
7756
7760
|
}
|
|
7757
7761
|
),
|
|
7758
|
-
|
|
7762
|
+
u ? /* @__PURE__ */ e(
|
|
7759
7763
|
"a",
|
|
7760
7764
|
{
|
|
7761
|
-
href:
|
|
7765
|
+
href: u,
|
|
7762
7766
|
className: "typo-label-md text-[var(--Text-Medium-Emphasis)] underline",
|
|
7763
7767
|
children: d
|
|
7764
7768
|
}
|
|
@@ -7771,7 +7775,7 @@ function il({
|
|
|
7771
7775
|
ie,
|
|
7772
7776
|
{
|
|
7773
7777
|
rating: c,
|
|
7774
|
-
reviewCount:
|
|
7778
|
+
reviewCount: m,
|
|
7775
7779
|
size: "md",
|
|
7776
7780
|
showValue: !0,
|
|
7777
7781
|
showCount: !0
|
|
@@ -7780,7 +7784,7 @@ function il({
|
|
|
7780
7784
|
] }),
|
|
7781
7785
|
v && v.length > 0 && /* @__PURE__ */ i("div", { className: "flex flex-col pb-2", children: [
|
|
7782
7786
|
/* @__PURE__ */ i("div", { className: "z-[2] flex items-center gap-0.5 self-start rounded bg-[var(--Surface-Info)] px-2 py-1", children: [
|
|
7783
|
-
/* @__PURE__ */ e(
|
|
7787
|
+
/* @__PURE__ */ e(Fe, { size: 16, className: "text-[var(--Text-on-Inverse)]" }),
|
|
7784
7788
|
/* @__PURE__ */ e("span", { className: "typo-label-sm text-[var(--Text-on-Inverse)]", children: "対象クーポン" })
|
|
7785
7789
|
] }),
|
|
7786
7790
|
/* @__PURE__ */ e("div", { className: "-mt-2 z-[1] flex flex-col gap-0 rounded-lg bg-[var(--Surface-Info-Light)] px-4 py-3 pt-5", children: v.map((P, R) => /* @__PURE__ */ i(w.Fragment, { children: [
|
|
@@ -7947,7 +7951,7 @@ function il({
|
|
|
7947
7951
|
/* @__PURE__ */ e("span", { className: "typo-body-md text-left text-[var(--Text-Info)]", children: W.text })
|
|
7948
7952
|
] }),
|
|
7949
7953
|
/* @__PURE__ */ e(
|
|
7950
|
-
|
|
7954
|
+
$,
|
|
7951
7955
|
{
|
|
7952
7956
|
size: 24,
|
|
7953
7957
|
className: "shrink-0 text-[var(--Text-Info)]"
|
|
@@ -7968,9 +7972,9 @@ function nl({
|
|
|
7968
7972
|
shopHref: o,
|
|
7969
7973
|
brandName: l,
|
|
7970
7974
|
tags: d,
|
|
7971
|
-
hashTags:
|
|
7975
|
+
hashTags: u,
|
|
7972
7976
|
statusLabel: c,
|
|
7973
|
-
variant:
|
|
7977
|
+
variant: m = "default",
|
|
7974
7978
|
showCartButton: v = !1,
|
|
7975
7979
|
onAddToCart: h,
|
|
7976
7980
|
showDetailButton: b = !1,
|
|
@@ -7999,14 +8003,14 @@ function nl({
|
|
|
7999
8003
|
className: Ea,
|
|
8000
8004
|
...Pa
|
|
8001
8005
|
}) {
|
|
8002
|
-
const K =
|
|
8006
|
+
const K = m === "small" || m === "xsm", J = m === "review", F = m === "cart", Ve = F ? R : m === "xsm" ? "size-10" : K ? "size-14" : "size-[102px]";
|
|
8003
8007
|
return /* @__PURE__ */ i(
|
|
8004
8008
|
"div",
|
|
8005
8009
|
{
|
|
8006
8010
|
"data-slot": "list-item",
|
|
8007
8011
|
className: s(
|
|
8008
8012
|
"flex flex-col bg-[var(--Surface-Primary)]",
|
|
8009
|
-
|
|
8013
|
+
m === "lp" && "flex-col rounded-xl bg-[var(--Surface-Secondary)] p-4",
|
|
8010
8014
|
Ea
|
|
8011
8015
|
),
|
|
8012
8016
|
...Pa,
|
|
@@ -8014,10 +8018,10 @@ function nl({
|
|
|
8014
8018
|
/* @__PURE__ */ i("div", { className: s(
|
|
8015
8019
|
"flex gap-2 px-4 py-2 min-w-0 overflow-hidden",
|
|
8016
8020
|
K && "gap-2 px-3 py-2",
|
|
8017
|
-
|
|
8018
|
-
|
|
8021
|
+
F && "gap-3 p-4",
|
|
8022
|
+
m === "lp" && "gap-3 px-0 py-0"
|
|
8019
8023
|
), children: [
|
|
8020
|
-
I ? /* @__PURE__ */ e("div", { className: "shrink-0", children: I }) : t &&
|
|
8024
|
+
I ? /* @__PURE__ */ e("div", { className: "shrink-0", children: I }) : t && !F ? /* @__PURE__ */ i("a", { href: x ?? "#", className: "relative shrink-0", children: [
|
|
8021
8025
|
/* @__PURE__ */ e(
|
|
8022
8026
|
"img",
|
|
8023
8027
|
{
|
|
@@ -8026,13 +8030,13 @@ function nl({
|
|
|
8026
8030
|
className: s(
|
|
8027
8031
|
"rounded-lg object-cover",
|
|
8028
8032
|
Ve,
|
|
8029
|
-
|
|
8033
|
+
m === "lp" && "aspect-video w-full size-auto rounded-lg"
|
|
8030
8034
|
)
|
|
8031
8035
|
}
|
|
8032
8036
|
),
|
|
8033
8037
|
c && /* @__PURE__ */ e("span", { className: "absolute top-1.5 left-1.5 rounded bg-[var(--Surface-Primary)]/80 px-1.5 py-0.5 typo-label-xs text-[var(--Text-Medium-Emphasis)]", children: c })
|
|
8034
8038
|
] }) : null,
|
|
8035
|
-
!I && t &&
|
|
8039
|
+
!I && t && F && /* @__PURE__ */ i(
|
|
8036
8040
|
"div",
|
|
8037
8041
|
{
|
|
8038
8042
|
className: s(
|
|
@@ -8054,7 +8058,7 @@ function nl({
|
|
|
8054
8058
|
),
|
|
8055
8059
|
/* @__PURE__ */ i("div", { className: s(
|
|
8056
8060
|
"min-w-0 flex-1",
|
|
8057
|
-
J ? "flex flex-col justify-between self-stretch" :
|
|
8061
|
+
J ? "flex flex-col justify-between self-stretch" : F ? "flex flex-col gap-2" : "space-y-1"
|
|
8058
8062
|
), children: [
|
|
8059
8063
|
(n || l) && !K && !J && (o ? /* @__PURE__ */ i(
|
|
8060
8064
|
"a",
|
|
@@ -8070,7 +8074,7 @@ function nl({
|
|
|
8070
8074
|
n,
|
|
8071
8075
|
l && ` / ${l}`
|
|
8072
8076
|
] })),
|
|
8073
|
-
|
|
8077
|
+
F ? /* @__PURE__ */ e("h3", { className: "line-clamp-2 typo-body-md text-[var(--Text-High-Emphasis)] min-w-0 break-words", children: a }) : /* @__PURE__ */ e(
|
|
8074
8078
|
"a",
|
|
8075
8079
|
{
|
|
8076
8080
|
href: x ?? "#",
|
|
@@ -8081,13 +8085,13 @@ function nl({
|
|
|
8081
8085
|
children: a
|
|
8082
8086
|
}
|
|
8083
8087
|
),
|
|
8084
|
-
|
|
8088
|
+
u && u.length > 0 && !K && !J && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-x-1", children: u.map((G) => /* @__PURE__ */ i("span", { className: "typo-body-xs text-[var(--Text-Medium-Emphasis)]", children: [
|
|
8085
8089
|
"#",
|
|
8086
8090
|
G
|
|
8087
8091
|
] }, G)) }),
|
|
8088
|
-
d && d.length > 0 && !K && !J && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: d.map((G, Ee) => /* @__PURE__ */ e(ee, { variant: G.variant, size:
|
|
8089
|
-
|
|
8090
|
-
|
|
8092
|
+
d && d.length > 0 && !K && !J && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: d.map((G, Ee) => /* @__PURE__ */ e(ee, { variant: G.variant, size: F ? "sm" : void 0, children: G.label }, Ee)) }),
|
|
8093
|
+
F && W && /* @__PURE__ */ e("p", { className: "typo-body-sm text-[var(--Text-Low-Emphasis)]", children: W }),
|
|
8094
|
+
F && r !== void 0 && /* @__PURE__ */ i("div", { className: "flex items-center justify-between min-w-0 gap-2 overflow-hidden", children: [
|
|
8091
8095
|
q && /* @__PURE__ */ e("span", { className: "typo-body-sm text-[var(--Text-Low-Emphasis)] shrink-0", children: q }),
|
|
8092
8096
|
/* @__PURE__ */ e("div", { className: s("min-w-0 shrink-0", !q && "ml-auto"), children: /* @__PURE__ */ e(
|
|
8093
8097
|
be,
|
|
@@ -8099,7 +8103,7 @@ function nl({
|
|
|
8099
8103
|
}
|
|
8100
8104
|
) })
|
|
8101
8105
|
] }),
|
|
8102
|
-
|
|
8106
|
+
F && (z !== void 0 || E || P) && /* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: [
|
|
8103
8107
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-1", children: [
|
|
8104
8108
|
E && /* @__PURE__ */ e(
|
|
8105
8109
|
T,
|
|
@@ -8134,7 +8138,7 @@ function nl({
|
|
|
8134
8138
|
}
|
|
8135
8139
|
)
|
|
8136
8140
|
] }),
|
|
8137
|
-
r !== void 0 && !J &&
|
|
8141
|
+
r !== void 0 && !J && !F && /* @__PURE__ */ i("p", { className: s(
|
|
8138
8142
|
"text-[var(--Text-High-Emphasis)]",
|
|
8139
8143
|
K ? "typo-label-sm" : "typo-label-md"
|
|
8140
8144
|
), children: [
|
|
@@ -8148,7 +8152,7 @@ function nl({
|
|
|
8148
8152
|
y.toLocaleString()
|
|
8149
8153
|
] })
|
|
8150
8154
|
] }),
|
|
8151
|
-
|
|
8155
|
+
m === "order-history" && /* @__PURE__ */ i("div", { className: "space-y-0.5 typo-body-sm text-[var(--Text-Low-Emphasis)]", children: [
|
|
8152
8156
|
k && /* @__PURE__ */ i("p", { children: [
|
|
8153
8157
|
"お届け日:",
|
|
8154
8158
|
k
|
|
@@ -8209,25 +8213,25 @@ function ol({
|
|
|
8209
8213
|
helpText: o,
|
|
8210
8214
|
error: l,
|
|
8211
8215
|
children: d,
|
|
8212
|
-
className:
|
|
8216
|
+
className: u,
|
|
8213
8217
|
...c
|
|
8214
8218
|
}) {
|
|
8215
|
-
const
|
|
8219
|
+
const m = w.useId(), v = o ? `${m}-help` : void 0, h = l ? `${m}-error` : void 0, b = [v, h].filter(Boolean).join(" ") || void 0;
|
|
8216
8220
|
return /* @__PURE__ */ i(
|
|
8217
8221
|
"div",
|
|
8218
8222
|
{
|
|
8219
8223
|
"data-slot": "product-option",
|
|
8220
8224
|
role: "group",
|
|
8221
|
-
"aria-labelledby": `${
|
|
8225
|
+
"aria-labelledby": `${m}-label`,
|
|
8222
8226
|
className: s(
|
|
8223
8227
|
"space-y-2 rounded-lg border border-[var(--Border-Medium-Emphasis)] bg-[var(--Surface-Primary)] p-3",
|
|
8224
8228
|
l && "border-[var(--Border-Caution)]",
|
|
8225
|
-
|
|
8229
|
+
u
|
|
8226
8230
|
),
|
|
8227
8231
|
...c,
|
|
8228
8232
|
children: [
|
|
8229
8233
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
8230
|
-
/* @__PURE__ */ i(
|
|
8234
|
+
/* @__PURE__ */ i($e, { id: `${m}-label`, className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: [
|
|
8231
8235
|
t,
|
|
8232
8236
|
r && /* @__PURE__ */ e("span", { className: "ml-1 text-[var(--Text-Caution)]", "aria-hidden": "true", children: "*" })
|
|
8233
8237
|
] }),
|
|
@@ -8358,9 +8362,9 @@ function ul({
|
|
|
8358
8362
|
text: o,
|
|
8359
8363
|
imageUrl: l,
|
|
8360
8364
|
productName: d,
|
|
8361
|
-
productImageUrl:
|
|
8365
|
+
productImageUrl: u,
|
|
8362
8366
|
helpfulCount: c,
|
|
8363
|
-
isLiked:
|
|
8367
|
+
isLiked: m = !1,
|
|
8364
8368
|
onLikeClick: v,
|
|
8365
8369
|
onMoreClick: h,
|
|
8366
8370
|
maxLength: b = 80,
|
|
@@ -8380,10 +8384,10 @@ function ul({
|
|
|
8380
8384
|
...p,
|
|
8381
8385
|
children: [
|
|
8382
8386
|
x && d && /* @__PURE__ */ i("div", { className: "flex w-full items-center gap-1.5 rounded bg-[var(--Surface-Secondary)] p-2", children: [
|
|
8383
|
-
|
|
8387
|
+
u && /* @__PURE__ */ e(
|
|
8384
8388
|
"img",
|
|
8385
8389
|
{
|
|
8386
|
-
src:
|
|
8390
|
+
src: u,
|
|
8387
8391
|
alt: d,
|
|
8388
8392
|
className: "size-8 shrink-0 rounded object-cover"
|
|
8389
8393
|
}
|
|
@@ -8446,9 +8450,9 @@ function ul({
|
|
|
8446
8450
|
{
|
|
8447
8451
|
size: 16,
|
|
8448
8452
|
className: s(
|
|
8449
|
-
|
|
8453
|
+
m ? "fill-[var(--Brand-Cake-Orange)] text-[var(--Brand-Cake-Orange)]" : "text-[var(--Text-Medium-Emphasis)]"
|
|
8450
8454
|
),
|
|
8451
|
-
variant:
|
|
8455
|
+
variant: m ? "Bold" : "Outline"
|
|
8452
8456
|
}
|
|
8453
8457
|
),
|
|
8454
8458
|
/* @__PURE__ */ e(
|
|
@@ -8456,9 +8460,9 @@ function ul({
|
|
|
8456
8460
|
{
|
|
8457
8461
|
className: s(
|
|
8458
8462
|
"typo-label-md",
|
|
8459
|
-
|
|
8463
|
+
m ? "text-[var(--Text-Accent-Primary)]" : "text-[var(--Text-Medium-Emphasis)]"
|
|
8460
8464
|
),
|
|
8461
|
-
children:
|
|
8465
|
+
children: m ? c.toString() : `参考になった ${c}`
|
|
8462
8466
|
}
|
|
8463
8467
|
)
|
|
8464
8468
|
]
|
|
@@ -8476,9 +8480,9 @@ function pl({
|
|
|
8476
8480
|
isSubmitting: o = !1,
|
|
8477
8481
|
maxImages: l = 3,
|
|
8478
8482
|
maxLength: d = 500,
|
|
8479
|
-
productName:
|
|
8483
|
+
productName: u,
|
|
8480
8484
|
productImageUrl: c,
|
|
8481
|
-
className:
|
|
8485
|
+
className: m,
|
|
8482
8486
|
...v
|
|
8483
8487
|
}) {
|
|
8484
8488
|
const [h, b] = w.useState(a), [p, f] = w.useState(0), [x, k] = w.useState(t), [g, y] = w.useState([]), [N, S] = w.useState([]), z = w.useRef(null), B = p || h;
|
|
@@ -8504,21 +8508,21 @@ function pl({
|
|
|
8504
8508
|
"data-slot": "review-form",
|
|
8505
8509
|
className: s(
|
|
8506
8510
|
"flex flex-col gap-4 rounded-xl bg-[var(--Surface-Primary)] p-4",
|
|
8507
|
-
|
|
8511
|
+
m
|
|
8508
8512
|
),
|
|
8509
8513
|
onSubmit: q,
|
|
8510
8514
|
...v,
|
|
8511
8515
|
children: [
|
|
8512
|
-
|
|
8516
|
+
u && /* @__PURE__ */ i("div", { className: "flex items-center gap-2 rounded-lg bg-[var(--Surface-Secondary)] p-3", children: [
|
|
8513
8517
|
c && /* @__PURE__ */ e(
|
|
8514
8518
|
"img",
|
|
8515
8519
|
{
|
|
8516
8520
|
src: c,
|
|
8517
|
-
alt:
|
|
8521
|
+
alt: u,
|
|
8518
8522
|
className: "size-12 shrink-0 rounded-lg object-cover"
|
|
8519
8523
|
}
|
|
8520
8524
|
),
|
|
8521
|
-
/* @__PURE__ */ e("span", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children:
|
|
8525
|
+
/* @__PURE__ */ e("span", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: u })
|
|
8522
8526
|
] }),
|
|
8523
8527
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-2", children: [
|
|
8524
8528
|
/* @__PURE__ */ e("p", { className: "typo-label-md text-[var(--Text-High-Emphasis)]", children: "評価を選択してください" }),
|
|
@@ -8688,7 +8692,7 @@ function vl({
|
|
|
8688
8692
|
productName: o,
|
|
8689
8693
|
imageUrls: l,
|
|
8690
8694
|
className: d,
|
|
8691
|
-
...
|
|
8695
|
+
...u
|
|
8692
8696
|
}) {
|
|
8693
8697
|
return /* @__PURE__ */ i(
|
|
8694
8698
|
"div",
|
|
@@ -8698,7 +8702,7 @@ function vl({
|
|
|
8698
8702
|
"space-y-2 border-b border-[var(--Border-Low-Emphasis)] py-4 last:border-b-0",
|
|
8699
8703
|
d
|
|
8700
8704
|
),
|
|
8701
|
-
...
|
|
8705
|
+
...u,
|
|
8702
8706
|
children: [
|
|
8703
8707
|
/* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: [
|
|
8704
8708
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
@@ -8712,14 +8716,14 @@ function vl({
|
|
|
8712
8716
|
o
|
|
8713
8717
|
] }),
|
|
8714
8718
|
/* @__PURE__ */ e("p", { className: "typo-body-md text-[var(--Text-High-Emphasis)]", children: n }),
|
|
8715
|
-
l && l.length > 0 && /* @__PURE__ */ e("div", { className: "flex gap-2", children: l.map((c,
|
|
8719
|
+
l && l.length > 0 && /* @__PURE__ */ e("div", { className: "flex gap-2", children: l.map((c, m) => /* @__PURE__ */ e(
|
|
8716
8720
|
"img",
|
|
8717
8721
|
{
|
|
8718
8722
|
src: c,
|
|
8719
|
-
alt: `レビュー画像 ${
|
|
8723
|
+
alt: `レビュー画像 ${m + 1}`,
|
|
8720
8724
|
className: "size-16 rounded-md object-cover"
|
|
8721
8725
|
},
|
|
8722
|
-
|
|
8726
|
+
m
|
|
8723
8727
|
)) })
|
|
8724
8728
|
]
|
|
8725
8729
|
}
|
|
@@ -8766,9 +8770,9 @@ function fl({
|
|
|
8766
8770
|
rating: o,
|
|
8767
8771
|
reviewCount: l,
|
|
8768
8772
|
area: d,
|
|
8769
|
-
deliveryDate:
|
|
8773
|
+
deliveryDate: u,
|
|
8770
8774
|
isBookmarked: c = !1,
|
|
8771
|
-
onBookmarkToggle:
|
|
8775
|
+
onBookmarkToggle: m,
|
|
8772
8776
|
href: v,
|
|
8773
8777
|
variant: h = "default",
|
|
8774
8778
|
className: b,
|
|
@@ -8854,20 +8858,20 @@ function fl({
|
|
|
8854
8858
|
")"
|
|
8855
8859
|
] })
|
|
8856
8860
|
] }),
|
|
8857
|
-
|
|
8861
|
+
u && /* @__PURE__ */ i("p", { className: "typo-body-xs text-[var(--Text-Accent-Primary)]", children: [
|
|
8858
8862
|
"最短",
|
|
8859
|
-
|
|
8863
|
+
u,
|
|
8860
8864
|
"お届け"
|
|
8861
8865
|
] })
|
|
8862
8866
|
] })
|
|
8863
8867
|
] }),
|
|
8864
|
-
|
|
8868
|
+
m && /* @__PURE__ */ e(
|
|
8865
8869
|
T,
|
|
8866
8870
|
{
|
|
8867
8871
|
variant: "ghost",
|
|
8868
8872
|
size: "icon",
|
|
8869
8873
|
onClick: (f) => {
|
|
8870
|
-
f.preventDefault(), f.stopPropagation(),
|
|
8874
|
+
f.preventDefault(), f.stopPropagation(), m();
|
|
8871
8875
|
},
|
|
8872
8876
|
className: s(
|
|
8873
8877
|
"z-[1] shrink-0 rounded-full",
|
|
@@ -8942,9 +8946,9 @@ function oa({
|
|
|
8942
8946
|
onBack: o,
|
|
8943
8947
|
backLabel: l = "戻る",
|
|
8944
8948
|
actions: d,
|
|
8945
|
-
navItems:
|
|
8949
|
+
navItems: u,
|
|
8946
8950
|
rightSlot: c,
|
|
8947
|
-
centerSlot:
|
|
8951
|
+
centerSlot: m,
|
|
8948
8952
|
bottomSlot: v,
|
|
8949
8953
|
disableSticky: h = !1,
|
|
8950
8954
|
...b
|
|
@@ -8971,15 +8975,15 @@ function oa({
|
|
|
8971
8975
|
children: [
|
|
8972
8976
|
/* @__PURE__ */ i("div", { className: s(
|
|
8973
8977
|
"flex items-center justify-between px-4 py-3",
|
|
8974
|
-
|
|
8978
|
+
u && "@[768px]:hidden"
|
|
8975
8979
|
), children: [
|
|
8976
8980
|
x,
|
|
8977
8981
|
k
|
|
8978
8982
|
] }),
|
|
8979
|
-
|
|
8983
|
+
u && /* @__PURE__ */ i("div", { className: "hidden @[768px]:flex items-center justify-between h-14 px-6", children: [
|
|
8980
8984
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-6", children: [
|
|
8981
8985
|
x,
|
|
8982
|
-
/* @__PURE__ */ e("nav", { className: "flex items-center gap-0.5", children:
|
|
8986
|
+
/* @__PURE__ */ e("nav", { className: "flex items-center gap-0.5", children: u.map((g) => {
|
|
8983
8987
|
const y = g.href ? "a" : "button", N = g.href ? { href: g.href } : { type: "button", onClick: g.onClick };
|
|
8984
8988
|
return /* @__PURE__ */ e(
|
|
8985
8989
|
y,
|
|
@@ -9037,7 +9041,7 @@ function oa({
|
|
|
9037
9041
|
children: /* @__PURE__ */ e(Ue, { size: 20 })
|
|
9038
9042
|
}
|
|
9039
9043
|
),
|
|
9040
|
-
|
|
9044
|
+
m && /* @__PURE__ */ e("div", { className: "flex-1", children: m })
|
|
9041
9045
|
] })
|
|
9042
9046
|
}
|
|
9043
9047
|
) : /* @__PURE__ */ i(
|
|
@@ -9109,15 +9113,15 @@ function gl({
|
|
|
9109
9113
|
/* @__PURE__ */ e("h1", { className: "typo-heading-xl text-[var(--Text-High-Emphasis)] px-4 py-3", children: a })
|
|
9110
9114
|
] }),
|
|
9111
9115
|
/* @__PURE__ */ e("div", { className: "hidden @md:block", children: /* @__PURE__ */ e(oa, { logo: /* @__PURE__ */ e(qr, {}), variant: "logo", actions: ss }) }),
|
|
9112
|
-
/* @__PURE__ */ e("div", { className: "hidden @md:block bg-[var(--Surface-Primary)] border-b border-[var(--Border-Low-Emphasis)]", children: /* @__PURE__ */ e("div", { className: "max-w-[1280px] mx-auto px-6 py-3", children: /* @__PURE__ */ e(It, { children: /* @__PURE__ */ e(At, { children: d.map((
|
|
9113
|
-
const
|
|
9116
|
+
/* @__PURE__ */ e("div", { className: "hidden @md:block bg-[var(--Surface-Primary)] border-b border-[var(--Border-Low-Emphasis)]", children: /* @__PURE__ */ e("div", { className: "max-w-[1280px] mx-auto px-6 py-3", children: /* @__PURE__ */ e(It, { children: /* @__PURE__ */ e(At, { children: d.map((u, c) => {
|
|
9117
|
+
const m = c === d.length - 1;
|
|
9114
9118
|
return /* @__PURE__ */ i(ja.Fragment, { children: [
|
|
9115
|
-
c > 0 && /* @__PURE__ */ e(
|
|
9116
|
-
/* @__PURE__ */ e(Dt, { children:
|
|
9119
|
+
c > 0 && /* @__PURE__ */ e(Ft, {}),
|
|
9120
|
+
/* @__PURE__ */ e(Dt, { children: m ? /* @__PURE__ */ e(Rt, { children: u.label }) : /* @__PURE__ */ e(Ot, { href: u.href ?? "#", children: u.label }) })
|
|
9117
9121
|
] }, c);
|
|
9118
9122
|
}) }) }) }) }),
|
|
9119
9123
|
/* @__PURE__ */ i("div", { className: "@md:max-w-[1280px] @md:mx-auto @md:mt-10 @md:mb-10 @md:grid @md:[grid-template:'side_main'_1fr_/_256px_1fr] @md:gap-6 @md:items-start", children: [
|
|
9120
|
-
/* @__PURE__ */ e("div", { className: "hidden @md:block @md:[grid-area:side] rounded-2xl overflow-hidden shadow-sm", children: /* @__PURE__ */ e(
|
|
9124
|
+
/* @__PURE__ */ e("div", { className: "hidden @md:block @md:[grid-area:side] rounded-2xl overflow-hidden shadow-sm", children: /* @__PURE__ */ e($r, { groups: Kr, activeMenu: t, ariaLabel: "マイページメニュー" }) }),
|
|
9121
9125
|
/* @__PURE__ */ i("main", { className: "@md:[grid-area:main] bg-[var(--Surface-Primary)] @md:rounded-2xl @md:shadow-sm pb-20 @md:pb-8", children: [
|
|
9122
9126
|
/* @__PURE__ */ e("div", { className: "hidden @md:flex items-center gap-3 px-6 py-5 border-b border-[var(--Border-Low-Emphasis)]", children: /* @__PURE__ */ e("h1", { className: "typo-heading-lg text-[var(--Text-High-Emphasis)]", children: a }) }),
|
|
9123
9127
|
r
|
|
@@ -9155,17 +9159,17 @@ export {
|
|
|
9155
9159
|
zo as BannerCarousel,
|
|
9156
9160
|
Cr as BottomTabBar,
|
|
9157
9161
|
It as Breadcrumb,
|
|
9158
|
-
|
|
9162
|
+
Fs as BreadcrumbEllipsis,
|
|
9159
9163
|
Dt as BreadcrumbItem,
|
|
9160
9164
|
Ot as BreadcrumbLink,
|
|
9161
9165
|
At as BreadcrumbList,
|
|
9162
9166
|
Rt as BreadcrumbPage,
|
|
9163
|
-
|
|
9167
|
+
Ft as BreadcrumbSeparator,
|
|
9164
9168
|
Co as BulkActionBar,
|
|
9165
9169
|
T as Button,
|
|
9166
9170
|
Lo as CakeFormField,
|
|
9167
9171
|
qr as CakeLogo,
|
|
9168
|
-
|
|
9172
|
+
$s as Calendar,
|
|
9169
9173
|
Wt as Card,
|
|
9170
9174
|
Gs as CardAction,
|
|
9171
9175
|
Vt as CardContent,
|
|
@@ -9242,8 +9246,8 @@ export {
|
|
|
9242
9246
|
Ai as DropdownMenuRadioGroup,
|
|
9243
9247
|
Di as DropdownMenuRadioItem,
|
|
9244
9248
|
Ri as DropdownMenuSeparator,
|
|
9245
|
-
|
|
9246
|
-
|
|
9249
|
+
Fi as DropdownMenuShortcut,
|
|
9250
|
+
$i as DropdownMenuSub,
|
|
9247
9251
|
Vi as DropdownMenuSubContent,
|
|
9248
9252
|
Wi as DropdownMenuSubTrigger,
|
|
9249
9253
|
tr as DropdownMenuTrigger,
|
|
@@ -9267,7 +9271,7 @@ export {
|
|
|
9267
9271
|
Ao as ImageUploader,
|
|
9268
9272
|
or as Input,
|
|
9269
9273
|
Do as KebabMenu,
|
|
9270
|
-
|
|
9274
|
+
$e as Label,
|
|
9271
9275
|
Oo as ListItem,
|
|
9272
9276
|
Ro as MenuDrawer,
|
|
9273
9277
|
mn as Menubar,
|
|
@@ -9297,7 +9301,7 @@ export {
|
|
|
9297
9301
|
Pn as NavigationMenuTrigger,
|
|
9298
9302
|
cr as NavigationMenuViewport,
|
|
9299
9303
|
Sr as NotificationBadge,
|
|
9300
|
-
|
|
9304
|
+
$o as NotificationList,
|
|
9301
9305
|
ml as OptionImageUpload,
|
|
9302
9306
|
ll as OptionQuantity,
|
|
9303
9307
|
dl as OptionSelect,
|
|
@@ -9313,7 +9317,7 @@ export {
|
|
|
9313
9317
|
In as PaginationPrevious,
|
|
9314
9318
|
al as PaymentMethodDisplay,
|
|
9315
9319
|
On as Popover,
|
|
9316
|
-
|
|
9320
|
+
Fn as PopoverContent,
|
|
9317
9321
|
Rn as PopoverTrigger,
|
|
9318
9322
|
be as PriceDisplay,
|
|
9319
9323
|
rl as ProductCTA,
|
|
@@ -9323,7 +9327,7 @@ export {
|
|
|
9323
9327
|
il as ProductDetailSidebar,
|
|
9324
9328
|
nl as ProductListItem,
|
|
9325
9329
|
ol as ProductOption,
|
|
9326
|
-
|
|
9330
|
+
$n as Progress,
|
|
9327
9331
|
Wo as ProgressSteps,
|
|
9328
9332
|
Sa as QuantitySelector,
|
|
9329
9333
|
Wn as RadioGroup,
|
|
@@ -9359,7 +9363,7 @@ export {
|
|
|
9359
9363
|
Qn as SheetTitle,
|
|
9360
9364
|
Un as SheetTrigger,
|
|
9361
9365
|
fl as ShopCard,
|
|
9362
|
-
|
|
9366
|
+
$r as SideNav,
|
|
9363
9367
|
eo as Skeleton,
|
|
9364
9368
|
ao as Slider,
|
|
9365
9369
|
Go as SocialLoginButton,
|
|
@@ -9368,7 +9372,7 @@ export {
|
|
|
9368
9372
|
bl as StatCard,
|
|
9369
9373
|
Uo as StatusCountTabs,
|
|
9370
9374
|
So as StickyActionBar,
|
|
9371
|
-
|
|
9375
|
+
Fo as SubNav,
|
|
9372
9376
|
hr as Switch,
|
|
9373
9377
|
ro as Table,
|
|
9374
9378
|
io as TableBody,
|