@aparte/n8n-chat 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +333 -2
- package/dist/cards.d.ts +3 -0
- package/dist/cdn/chunks/chunk-7JR7KL6J.js +2 -0
- package/dist/cdn/chunks/chunk-7JR7KL6J.js.map +7 -0
- package/dist/cdn/chunks/chunk-CZ5742JA.js +2 -0
- package/dist/cdn/chunks/chunk-CZ5742JA.js.map +7 -0
- package/dist/cdn/chunks/chunk-IPWLCOPM.js +2 -0
- package/dist/cdn/chunks/chunk-IPWLCOPM.js.map +7 -0
- package/dist/cdn/chunks/chunk-IWAJFJNA.js +353 -0
- package/dist/cdn/chunks/chunk-IWAJFJNA.js.map +7 -0
- package/dist/cdn/chunks/chunk-OJFRNS5M.js +2 -0
- package/dist/cdn/chunks/chunk-OJFRNS5M.js.map +7 -0
- package/dist/cdn/chunks/chunk-VTTH7HGO.js +206 -0
- package/dist/cdn/chunks/chunk-VTTH7HGO.js.map +7 -0
- package/dist/cdn/chunks/chunk-XAWE4EAK.js +2 -0
- package/dist/cdn/chunks/chunk-XAWE4EAK.js.map +7 -0
- package/dist/cdn/chunks/de-JS3CQEVR.js +2 -0
- package/dist/cdn/chunks/de-JS3CQEVR.js.map +7 -0
- package/dist/cdn/chunks/es-OHKGLFEF.js +2 -0
- package/dist/cdn/chunks/es-OHKGLFEF.js.map +7 -0
- package/dist/cdn/chunks/fr-6S44XMU5.js +2 -0
- package/dist/cdn/chunks/fr-6S44XMU5.js.map +7 -0
- package/dist/cdn/chunks/highlight-FGIKUPIF.js +153 -0
- package/dist/cdn/chunks/highlight-FGIKUPIF.js.map +7 -0
- package/dist/cdn/chunks/it-K4WYXXDJ.js +2 -0
- package/dist/cdn/chunks/it-K4WYXXDJ.js.map +7 -0
- package/dist/cdn/chunks/items-S4LF2DJA.js +467 -0
- package/dist/cdn/chunks/items-S4LF2DJA.js.map +7 -0
- package/dist/cdn/chunks/ja-BN7TZW62.js +2 -0
- package/dist/cdn/chunks/ja-BN7TZW62.js.map +7 -0
- package/dist/cdn/chunks/ko-ARHO7UI3.js +2 -0
- package/dist/cdn/chunks/ko-ARHO7UI3.js.map +7 -0
- package/dist/cdn/chunks/link-C46K5O7X.js +493 -0
- package/dist/cdn/chunks/link-C46K5O7X.js.map +7 -0
- package/dist/cdn/chunks/media-QI5BPERX.js +797 -0
- package/dist/cdn/chunks/media-QI5BPERX.js.map +7 -0
- package/dist/cdn/chunks/order-YISYH73K.js +839 -0
- package/dist/cdn/chunks/order-YISYH73K.js.map +7 -0
- package/dist/cdn/chunks/place-UFCH3NQE.js +689 -0
- package/dist/cdn/chunks/place-UFCH3NQE.js.map +7 -0
- package/dist/cdn/chunks/plan-KQWF73QI.js +542 -0
- package/dist/cdn/chunks/plan-KQWF73QI.js.map +7 -0
- package/dist/cdn/chunks/product-7UBLOMZ7.js +660 -0
- package/dist/cdn/chunks/product-7UBLOMZ7.js.map +7 -0
- package/dist/cdn/chunks/pt-BR-R7ZRM3GG.js +2 -0
- package/dist/cdn/chunks/pt-BR-R7ZRM3GG.js.map +7 -0
- package/dist/cdn/chunks/ru-FJNIMGMU.js +2 -0
- package/dist/cdn/chunks/ru-FJNIMGMU.js.map +7 -0
- package/dist/cdn/chunks/score-O2KEAYDS.js +882 -0
- package/dist/cdn/chunks/score-O2KEAYDS.js.map +7 -0
- package/dist/cdn/chunks/stats-GSXFRGYZ.js +491 -0
- package/dist/cdn/chunks/stats-GSXFRGYZ.js.map +7 -0
- package/dist/cdn/chunks/stock-53NVFLC3.js +707 -0
- package/dist/cdn/chunks/stock-53NVFLC3.js.map +7 -0
- package/dist/cdn/chunks/weather-VI2RCU4X.js +615 -0
- package/dist/cdn/chunks/weather-VI2RCU4X.js.map +7 -0
- package/dist/cdn/chunks/zh-CN-DUCWBXJP.js +2 -0
- package/dist/cdn/chunks/zh-CN-DUCWBXJP.js.map +7 -0
- package/dist/cdn/n8n-chat.js +103 -0
- package/dist/cdn/n8n-chat.js.map +7 -0
- package/dist/create-chat.d.ts +198 -0
- package/dist/highlight-DDyMJYBk.js +29 -0
- package/dist/highlight-DDyMJYBk.js.map +1 -0
- package/dist/highlight.d.ts +2 -0
- package/dist/icons.d.ts +7 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +618 -0
- package/dist/index.js.map +1 -0
- package/dist/strings.d.ts +40 -0
- package/dist/style.css +378 -0
- package/dist/theme.css +376 -0
- package/package.json +82 -5
|
@@ -0,0 +1,839 @@
|
|
|
1
|
+
import{a as o,b as w,d as N,e as Y,f as p,h as R,i as he,n as ve,o as Z,p as E,q as ke,r as X,s as be}from"./chunk-IWAJFJNA.js";import"./chunk-VTTH7HGO.js";import"./chunk-XAWE4EAK.js";var z=e=>`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">${e}</svg>`,we=z('<path d="M5.5 8h13l-1 11.2a1.8 1.8 0 0 1-1.8 1.6H8.3a1.8 1.8 0 0 1-1.8-1.6z"/><path d="M9 10.5V6.8a3 3 0 0 1 6 0v3.7"/>'),Ie=z('<rect x="3.5" y="5" width="17" height="15.5" rx="2.2"/><path d="M3.5 9.8h17M8 3v4M16 3v4"/><path d="M7.5 13.6h2M11 13.6h2M14.5 13.6h2M7.5 16.8h2M11 16.8h2"/>'),Me=z('<path d="M3.8 7.6 12 3.5l8.2 4.1v8.8L12 20.5l-8.2-4.1z"/><path d="M3.8 7.6 12 11.7l8.2-4.1M12 11.7v8.8"/>'),Fe=z('<path d="M2.8 6.5h10.4v9.3H2.8z"/><path d="M13.2 9.5h4.1l3 3.2v3.1h-7.1"/><circle cx="7" cy="17.3" r="1.7"/><circle cx="17" cy="17.3" r="1.7"/>'),Le=z('<rect x="2.8" y="5.5" width="18.4" height="13" rx="2"/><path d="M2.8 9.6h18.4M6.5 15h3.5"/>'),Ge=z('<path d="M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.3"/>'),$e=z('<circle cx="9" cy="8.5" r="3"/><path d="M3.5 19c.6-3.2 2.8-5 5.5-5s4.9 1.8 5.5 5"/><circle cx="16.8" cy="9.3" r="2.4"/><path d="M15.8 14.2c2.4-.3 4.3 1.3 4.8 4.3"/>'),He=z('<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20c.8-3.7 3.6-5.8 7-5.8s6.2 2.1 7 5.8"/>'),Ve=z('<path d="M4 10.5 12 4l8 6.5V20H4z"/><path d="M9.5 20v-5.5h5V20"/>'),qe=z('<circle cx="12" cy="12" r="8.5"/><path d="M12 11v5"/><circle cx="12" cy="8" r=".6" fill="currentColor"/>'),Oe=z('<path d="M9.5 6l6 6-6 6"/>'),Ue=z('<path d="M4.5 12h15M14 6.5l5.5 5.5-5.5 5.5"/>'),We={success:"M22 32.5l7 7 13.5-14.5",info:"M32 22v10.5l7 4.5",danger:"M24.5 24.5l15 15M39.5 24.5l-15 15",neutral:"M25.5 27.5h9.5a6.5 6.5 0 0 1 0 13h-8M30 22.5l-5 5 5 5"};function Ke(e){return`<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><circle class="aparte-order__seal-halo" cx="32" cy="32" r="31"/><circle class="aparte-order__seal-disc" cx="32" cy="32" r="22"/><path class="aparte-order__seal-mark" pathLength="1" d="${We[e]}"/></svg>`}var Ye=`/* =========================================
|
|
2
|
+
The order card \u2014 @aparte/plugin-cards/order
|
|
3
|
+
=========================================
|
|
4
|
+
Three variants of one card, chosen by \`data-variant\` on its root:
|
|
5
|
+
receipt the whole record, in bands: the header (kind, name, date, status),
|
|
6
|
+
the booking's dates, the lines, the totals under a rule, then the
|
|
7
|
+
facts \u2014 payment, delivery, address \u2014 and the order's page.
|
|
8
|
+
compact one row: the kind, the name over "3 items \xB7 \u20AC129.90", the pill, a
|
|
9
|
+
chevron when it opens a page. Several in a list stay one line each.
|
|
10
|
+
confirmation the moment it is placed: a seal drawn on, a headline, the number,
|
|
11
|
+
the facts that matter as tiles, what to do next.
|
|
12
|
+
Every colour is a theme token or derived from one, so light and dark follow the chat.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
.aparte-order-card {
|
|
16
|
+
--aparte-order-kind-size: 2.25rem;
|
|
17
|
+
--aparte-order-thumb-size: 2.75rem;
|
|
18
|
+
--aparte-order-kind-bg: color-mix(in oklab, var(--aparte-primary) 14%, var(--aparte-surface-1));
|
|
19
|
+
--aparte-order-kind-ink: var(--aparte-primary-ink);
|
|
20
|
+
--aparte-order-rule: var(--aparte-border);
|
|
21
|
+
--aparte-order-soft-rule: color-mix(in oklab, var(--aparte-border) 60%, transparent);
|
|
22
|
+
--aparte-order-tile-bg: color-mix(in oklab, var(--aparte-surface-2) 55%, var(--aparte-surface-1));
|
|
23
|
+
/* A product photo is shot on white: the thumbnail's plate is near-white in both
|
|
24
|
+
schemes, and the photo is multiplied into it (the product card's rule). */
|
|
25
|
+
--aparte-order-thumb-bg: color-mix(in oklab, var(--aparte-text) 5%, #fff);
|
|
26
|
+
--aparte-order-placeholder: var(--aparte-surface-2);
|
|
27
|
+
--aparte-order-placeholder-ink: color-mix(in oklab, var(--aparte-text) 32%, transparent);
|
|
28
|
+
--aparte-order-saving: var(--aparte-success-ink);
|
|
29
|
+
--aparte-order-seal-size: 4.5rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* \u2500\u2500 Widths: each variant asks for its own; the bubble's limit caps them all \u2500\u2500 */
|
|
33
|
+
|
|
34
|
+
.aparte-order-card[data-variant="receipt"] { --aparte-rich-card-max-inline-size: 26rem; }
|
|
35
|
+
.aparte-order-card[data-variant="compact"] { --aparte-rich-card-max-inline-size: 26rem; }
|
|
36
|
+
.aparte-order-card[data-variant="confirmation"] { --aparte-rich-card-max-inline-size: 24rem; }
|
|
37
|
+
|
|
38
|
+
/* On the drawn card only: a one-line state shrinks to its words, and a size container
|
|
39
|
+
cannot. */
|
|
40
|
+
.aparte-order-card[data-state="ready"] {
|
|
41
|
+
container: aparte-order / inline-size;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* \u2500\u2500 The header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
45
|
+
|
|
46
|
+
.aparte-order__head {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: var(--aparte-space-4);
|
|
50
|
+
padding: var(--aparte-space-5) var(--aparte-rich-card-padding);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* The kind's glyph on a tile of the accent: the bag of an order, the calendar of a booking. */
|
|
54
|
+
.aparte-order__kind {
|
|
55
|
+
--aparte-rich-card-glyph-size: var(--aparte-order-kind-size);
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
padding: calc(var(--aparte-order-kind-size) * 0.22);
|
|
58
|
+
border-radius: var(--aparte-radius-lg);
|
|
59
|
+
background: var(--aparte-order-kind-bg);
|
|
60
|
+
color: var(--aparte-order-kind-ink);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.aparte-order__heading {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex: 1;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
gap: var(--aparte-space-1);
|
|
68
|
+
min-inline-size: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.aparte-order__title {
|
|
72
|
+
color: var(--aparte-text);
|
|
73
|
+
font-size: var(--aparte-font-size-base);
|
|
74
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
75
|
+
line-height: 1.3;
|
|
76
|
+
overflow-wrap: anywhere;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.aparte-order__date {
|
|
80
|
+
color: var(--aparte-text-muted);
|
|
81
|
+
font-size: var(--aparte-font-size-sm);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* The pill: the badge recipe, with a dot in its tone before the word. */
|
|
85
|
+
.aparte-order__status {
|
|
86
|
+
flex: none;
|
|
87
|
+
gap: var(--aparte-space-2);
|
|
88
|
+
margin-inline-start: auto;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.aparte-order__status-dot {
|
|
92
|
+
inline-size: 0.375rem;
|
|
93
|
+
block-size: 0.375rem;
|
|
94
|
+
border-radius: var(--aparte-radius-full);
|
|
95
|
+
background: var(--aparte-badge-intent, currentColor);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* \u2500\u2500 Bands \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
99
|
+
|
|
100
|
+
.aparte-order__section {
|
|
101
|
+
margin: 0;
|
|
102
|
+
padding: var(--aparte-space-5) var(--aparte-rich-card-padding);
|
|
103
|
+
border-block-start: var(--aparte-border-width) solid var(--aparte-order-rule);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* \u2500\u2500 The lines \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
107
|
+
|
|
108
|
+
.aparte-order__items { padding-block: var(--aparte-space-2); }
|
|
109
|
+
|
|
110
|
+
/* One grid for the list, each line a subgrid of it: the quantities line up in one column
|
|
111
|
+
and the totals in another, whatever the names' lengths. A browser without subgrid keeps
|
|
112
|
+
the first declaration and lays each line out alone \u2014 the totals still end-aligned. */
|
|
113
|
+
.aparte-order__lines {
|
|
114
|
+
display: grid;
|
|
115
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
116
|
+
column-gap: var(--aparte-space-4);
|
|
117
|
+
margin: 0;
|
|
118
|
+
padding: 0;
|
|
119
|
+
list-style: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.aparte-order__lines[data-thumbs] {
|
|
123
|
+
grid-template-columns: var(--aparte-order-thumb-size) minmax(0, 1fr) auto auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.aparte-order__line {
|
|
127
|
+
display: grid;
|
|
128
|
+
grid-column: 1 / -1;
|
|
129
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
130
|
+
grid-template-columns: subgrid;
|
|
131
|
+
align-items: center;
|
|
132
|
+
column-gap: var(--aparte-space-4);
|
|
133
|
+
padding-block: var(--aparte-space-3);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[data-thumbs] > .aparte-order__line {
|
|
137
|
+
grid-template-columns: var(--aparte-order-thumb-size) minmax(0, 1fr) auto auto;
|
|
138
|
+
grid-template-columns: subgrid;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.aparte-order__line + .aparte-order__line {
|
|
142
|
+
border-block-start: var(--aparte-border-width) solid var(--aparte-order-soft-rule);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.aparte-order__qty { grid-column: -3 / -2; }
|
|
146
|
+
.aparte-order__line-total { grid-column: -2 / -1; }
|
|
147
|
+
|
|
148
|
+
.aparte-order__thumb {
|
|
149
|
+
position: relative;
|
|
150
|
+
display: grid;
|
|
151
|
+
place-items: center;
|
|
152
|
+
inline-size: var(--aparte-order-thumb-size);
|
|
153
|
+
aspect-ratio: 1;
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
border: var(--aparte-border-width) solid var(--aparte-order-soft-rule);
|
|
156
|
+
border-radius: var(--aparte-radius-md);
|
|
157
|
+
background: var(--aparte-order-thumb-bg);
|
|
158
|
+
isolation: isolate;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.aparte-order__thumb[data-empty] { background: var(--aparte-order-placeholder); }
|
|
162
|
+
|
|
163
|
+
.aparte-order__thumb-glyph {
|
|
164
|
+
grid-area: 1 / 1;
|
|
165
|
+
--aparte-rich-card-glyph-size: 45%;
|
|
166
|
+
color: var(--aparte-order-placeholder-ink);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.aparte-order__thumb:not([data-empty]) .aparte-order__thumb-glyph { visibility: hidden; }
|
|
170
|
+
|
|
171
|
+
.aparte-order__image {
|
|
172
|
+
grid-area: 1 / 1;
|
|
173
|
+
box-sizing: border-box;
|
|
174
|
+
inline-size: 100%;
|
|
175
|
+
block-size: 100%;
|
|
176
|
+
padding: 6%;
|
|
177
|
+
object-fit: contain;
|
|
178
|
+
mix-blend-mode: multiply;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.aparte-order__image[hidden] { display: none; }
|
|
182
|
+
|
|
183
|
+
.aparte-order__line-main {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
gap: var(--aparte-space-1);
|
|
187
|
+
min-inline-size: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.aparte-order__line-title {
|
|
191
|
+
display: -webkit-box;
|
|
192
|
+
overflow: hidden;
|
|
193
|
+
-webkit-box-orient: vertical;
|
|
194
|
+
-webkit-line-clamp: 2;
|
|
195
|
+
line-clamp: 2;
|
|
196
|
+
color: var(--aparte-text);
|
|
197
|
+
font-size: var(--aparte-font-size-md);
|
|
198
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
199
|
+
line-height: 1.3;
|
|
200
|
+
overflow-wrap: anywhere;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.aparte-order__line-meta {
|
|
204
|
+
display: flex;
|
|
205
|
+
flex-wrap: wrap;
|
|
206
|
+
gap: 0 var(--aparte-space-2);
|
|
207
|
+
color: var(--aparte-text-muted);
|
|
208
|
+
font-size: var(--aparte-font-size-xs);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.aparte-order__line-meta > * + *::before,
|
|
212
|
+
.aparte-order__row-part + .aparte-order__row-part::before {
|
|
213
|
+
content: "\xB7";
|
|
214
|
+
margin-inline-end: var(--aparte-space-2);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.aparte-order__qty {
|
|
218
|
+
color: var(--aparte-text-muted);
|
|
219
|
+
font-size: var(--aparte-font-size-sm);
|
|
220
|
+
white-space: nowrap;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.aparte-order__line-total {
|
|
224
|
+
color: var(--aparte-text);
|
|
225
|
+
font-size: var(--aparte-font-size-md);
|
|
226
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
227
|
+
text-align: end;
|
|
228
|
+
white-space: nowrap;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* "and 4 more": a summary that reads as a link, the chevron turning as it opens. */
|
|
232
|
+
.aparte-order__more > .aparte-order__lines {
|
|
233
|
+
border-block-start: var(--aparte-border-width) solid var(--aparte-order-soft-rule);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.aparte-order__more-toggle {
|
|
237
|
+
display: inline-flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: var(--aparte-space-2);
|
|
240
|
+
margin-block: var(--aparte-space-1) var(--aparte-space-2);
|
|
241
|
+
padding: var(--aparte-space-1) var(--aparte-space-2);
|
|
242
|
+
margin-inline-start: calc(var(--aparte-space-2) * -1);
|
|
243
|
+
border-radius: var(--aparte-radius-sm);
|
|
244
|
+
color: var(--aparte-primary-ink);
|
|
245
|
+
font-size: var(--aparte-font-size-sm);
|
|
246
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
247
|
+
list-style: none;
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
transition: background-color var(--aparte-duration-fast) ease;
|
|
250
|
+
--aparte-rich-card-glyph-size: 0.875rem;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.aparte-order__more-toggle::-webkit-details-marker { display: none; }
|
|
254
|
+
.aparte-order__more-toggle:hover { background: var(--aparte-surface-2); }
|
|
255
|
+
|
|
256
|
+
.aparte-order__more-toggle:focus-visible {
|
|
257
|
+
outline: var(--aparte-focus-outline-width) solid var(--aparte-border-focus);
|
|
258
|
+
outline-offset: var(--aparte-focus-outline-offset);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.aparte-order__more-chevron { transition: rotate var(--aparte-duration-base) ease; }
|
|
262
|
+
.aparte-order__more-chevron:dir(rtl) { transform: scaleX(-1); }
|
|
263
|
+
.aparte-order__more[open] .aparte-order__more-chevron { rotate: 90deg; }
|
|
264
|
+
/* Mirrored first, then turned: a quarter turn the other way also ends pointing down. */
|
|
265
|
+
.aparte-order__more[open] .aparte-order__more-chevron:dir(rtl) { rotate: -90deg; }
|
|
266
|
+
|
|
267
|
+
.aparte-order__dropped {
|
|
268
|
+
padding-block: var(--aparte-space-2) var(--aparte-space-3);
|
|
269
|
+
color: var(--aparte-text-muted);
|
|
270
|
+
font-size: var(--aparte-font-size-xs);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* \u2500\u2500 The totals \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
274
|
+
|
|
275
|
+
.aparte-order__totals {
|
|
276
|
+
display: flex;
|
|
277
|
+
flex-direction: column;
|
|
278
|
+
gap: var(--aparte-space-2);
|
|
279
|
+
background: var(--aparte-order-tile-bg);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.aparte-order__sum {
|
|
283
|
+
display: flex;
|
|
284
|
+
align-items: baseline;
|
|
285
|
+
justify-content: space-between;
|
|
286
|
+
gap: var(--aparte-space-4);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.aparte-order__sum-label {
|
|
290
|
+
color: var(--aparte-text-muted);
|
|
291
|
+
font-size: var(--aparte-font-size-md);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.aparte-order__sum-value {
|
|
295
|
+
margin: 0;
|
|
296
|
+
color: var(--aparte-text);
|
|
297
|
+
font-size: var(--aparte-font-size-md);
|
|
298
|
+
text-align: end;
|
|
299
|
+
white-space: nowrap;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.aparte-order__sum--discount .aparte-order__sum-value,
|
|
303
|
+
.aparte-order__sum--free .aparte-order__sum-value {
|
|
304
|
+
color: var(--aparte-order-saving);
|
|
305
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.aparte-order__sum--total {
|
|
309
|
+
align-items: center;
|
|
310
|
+
margin-block-start: var(--aparte-space-2);
|
|
311
|
+
padding-block-start: var(--aparte-space-4);
|
|
312
|
+
border-block-start: var(--aparte-border-width) solid var(--aparte-order-rule);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.aparte-order__sum--total .aparte-order__sum-label {
|
|
316
|
+
color: var(--aparte-text);
|
|
317
|
+
font-size: var(--aparte-font-size-base);
|
|
318
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.aparte-order__sum--total .aparte-order__sum-value {
|
|
322
|
+
font-size: var(--aparte-font-size-xl);
|
|
323
|
+
font-weight: var(--aparte-font-weight-bold);
|
|
324
|
+
letter-spacing: -0.01em;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* A total alone needs no rule above it. */
|
|
328
|
+
.aparte-order__sum--total:first-child {
|
|
329
|
+
margin-block-start: 0;
|
|
330
|
+
padding-block-start: 0;
|
|
331
|
+
border-block-start: 0;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* \u2500\u2500 The facts: payment, delivery, address, the tool's own \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
335
|
+
|
|
336
|
+
.aparte-order__infos {
|
|
337
|
+
display: flex;
|
|
338
|
+
flex-direction: column;
|
|
339
|
+
gap: var(--aparte-space-4);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.aparte-order__info {
|
|
343
|
+
display: grid;
|
|
344
|
+
grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
|
|
345
|
+
align-items: start;
|
|
346
|
+
gap: var(--aparte-space-1) var(--aparte-space-4);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.aparte-order__info-label {
|
|
350
|
+
display: flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
gap: var(--aparte-space-2);
|
|
353
|
+
min-inline-size: 0;
|
|
354
|
+
color: var(--aparte-text-muted);
|
|
355
|
+
font-size: var(--aparte-font-size-sm);
|
|
356
|
+
line-height: 1.45;
|
|
357
|
+
--aparte-rich-card-glyph-size: 1rem;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.aparte-order__info-glyph { opacity: 0.85; }
|
|
361
|
+
|
|
362
|
+
.aparte-order__info-value {
|
|
363
|
+
display: flex;
|
|
364
|
+
flex-wrap: wrap;
|
|
365
|
+
align-items: center;
|
|
366
|
+
justify-content: space-between;
|
|
367
|
+
gap: var(--aparte-space-2) var(--aparte-space-3);
|
|
368
|
+
min-inline-size: 0;
|
|
369
|
+
margin: 0;
|
|
370
|
+
color: var(--aparte-text);
|
|
371
|
+
font-size: var(--aparte-font-size-md);
|
|
372
|
+
line-height: 1.45;
|
|
373
|
+
overflow-wrap: anywhere;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.aparte-order__multiline { white-space: pre-line; }
|
|
377
|
+
|
|
378
|
+
.aparte-order__delivery-text {
|
|
379
|
+
display: flex;
|
|
380
|
+
flex-direction: column;
|
|
381
|
+
min-inline-size: 0;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.aparte-order__estimate { font-weight: var(--aparte-font-weight-medium); }
|
|
385
|
+
|
|
386
|
+
.aparte-order__carrier {
|
|
387
|
+
color: var(--aparte-text-muted);
|
|
388
|
+
font-size: var(--aparte-font-size-sm);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.aparte-order__track { flex: none; }
|
|
392
|
+
|
|
393
|
+
/* On a narrow card a fact's label goes over its value rather than squeeze it. */
|
|
394
|
+
@container aparte-order (max-width: 22rem) {
|
|
395
|
+
.aparte-order__info { grid-template-columns: minmax(0, 1fr); }
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.aparte-order__foot {
|
|
399
|
+
display: flex;
|
|
400
|
+
justify-content: flex-end;
|
|
401
|
+
padding: var(--aparte-space-4) var(--aparte-rich-card-padding);
|
|
402
|
+
border-block-start: var(--aparte-border-width) solid var(--aparte-order-rule);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* \u2500\u2500 The booking: its dates as calendar leaves, then where and for whom \u2500 */
|
|
406
|
+
|
|
407
|
+
.aparte-order__leaf {
|
|
408
|
+
display: inline-flex;
|
|
409
|
+
flex: none;
|
|
410
|
+
flex-direction: column;
|
|
411
|
+
align-items: center;
|
|
412
|
+
inline-size: 3.5rem;
|
|
413
|
+
overflow: hidden;
|
|
414
|
+
border: var(--aparte-border-width) solid var(--aparte-order-rule);
|
|
415
|
+
border-radius: var(--aparte-radius-lg);
|
|
416
|
+
background: var(--aparte-surface-1);
|
|
417
|
+
box-shadow: 0 1px 2px color-mix(in oklab, var(--aparte-text) 8%, transparent);
|
|
418
|
+
line-height: 1.1;
|
|
419
|
+
text-align: center;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.aparte-order__leaf-month {
|
|
423
|
+
align-self: stretch;
|
|
424
|
+
padding-block: var(--aparte-space-1);
|
|
425
|
+
background: var(--aparte-order-kind-bg);
|
|
426
|
+
color: var(--aparte-order-kind-ink);
|
|
427
|
+
font-size: var(--aparte-font-size-2xs);
|
|
428
|
+
font-weight: var(--aparte-font-weight-bold);
|
|
429
|
+
letter-spacing: 0.06em;
|
|
430
|
+
text-transform: uppercase;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.aparte-order__leaf-day {
|
|
434
|
+
padding-block-start: var(--aparte-space-2);
|
|
435
|
+
color: var(--aparte-text);
|
|
436
|
+
font-size: var(--aparte-font-size-xl);
|
|
437
|
+
font-weight: var(--aparte-font-weight-bold);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.aparte-order__leaf-weekday {
|
|
441
|
+
padding-block: var(--aparte-space-1) var(--aparte-space-2);
|
|
442
|
+
color: var(--aparte-text-muted);
|
|
443
|
+
font-size: var(--aparte-font-size-2xs);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.aparte-order__day {
|
|
447
|
+
display: flex;
|
|
448
|
+
align-items: center;
|
|
449
|
+
gap: var(--aparte-space-5);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.aparte-order__day-text {
|
|
453
|
+
display: flex;
|
|
454
|
+
flex-direction: column;
|
|
455
|
+
gap: var(--aparte-space-1);
|
|
456
|
+
min-inline-size: 0;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.aparte-order__day-name {
|
|
460
|
+
color: var(--aparte-text);
|
|
461
|
+
font-size: var(--aparte-font-size-base);
|
|
462
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.aparte-order__day-hours {
|
|
466
|
+
color: var(--aparte-text-muted);
|
|
467
|
+
font-size: var(--aparte-font-size-md);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.aparte-order__stay {
|
|
471
|
+
display: grid;
|
|
472
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
473
|
+
align-items: center;
|
|
474
|
+
gap: var(--aparte-space-3);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.aparte-order__stay-side {
|
|
478
|
+
display: flex;
|
|
479
|
+
flex-direction: column;
|
|
480
|
+
align-items: center;
|
|
481
|
+
gap: var(--aparte-space-2);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.aparte-order__stay-time {
|
|
485
|
+
color: var(--aparte-text-muted);
|
|
486
|
+
font-size: var(--aparte-font-size-sm);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.aparte-order__stay-span {
|
|
490
|
+
display: flex;
|
|
491
|
+
flex-direction: column;
|
|
492
|
+
align-items: center;
|
|
493
|
+
gap: var(--aparte-space-2);
|
|
494
|
+
color: var(--aparte-text-muted);
|
|
495
|
+
--aparte-rich-card-glyph-size: 1.25rem;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.aparte-order__stay-arrow:dir(rtl) { transform: scaleX(-1); }
|
|
499
|
+
|
|
500
|
+
.aparte-order__nights {
|
|
501
|
+
padding: var(--aparte-space-1) var(--aparte-space-3);
|
|
502
|
+
border-radius: var(--aparte-radius-full);
|
|
503
|
+
background: var(--aparte-surface-2);
|
|
504
|
+
color: var(--aparte-text);
|
|
505
|
+
font-size: var(--aparte-font-size-xs);
|
|
506
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
507
|
+
white-space: nowrap;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.aparte-order__places {
|
|
511
|
+
display: flex;
|
|
512
|
+
flex-direction: column;
|
|
513
|
+
gap: var(--aparte-space-2);
|
|
514
|
+
margin: 0;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.aparte-order__day + .aparte-order__places,
|
|
518
|
+
.aparte-order__stay + .aparte-order__places {
|
|
519
|
+
margin-block-start: var(--aparte-space-5);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.aparte-order__place {
|
|
523
|
+
display: flex;
|
|
524
|
+
align-items: flex-start;
|
|
525
|
+
gap: var(--aparte-space-3);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.aparte-order__place-label {
|
|
529
|
+
display: inline-flex;
|
|
530
|
+
flex: none;
|
|
531
|
+
color: var(--aparte-text-muted);
|
|
532
|
+
--aparte-rich-card-glyph-size: 1.125rem;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.aparte-order__place-value {
|
|
536
|
+
min-inline-size: 0;
|
|
537
|
+
margin: 0;
|
|
538
|
+
color: var(--aparte-text);
|
|
539
|
+
font-size: var(--aparte-font-size-md);
|
|
540
|
+
line-height: 1.4;
|
|
541
|
+
overflow-wrap: anywhere;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/* \u2500\u2500 compact: one row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
545
|
+
|
|
546
|
+
.aparte-order__row {
|
|
547
|
+
position: relative;
|
|
548
|
+
display: grid;
|
|
549
|
+
grid-template-columns: auto minmax(0, 1fr) auto auto;
|
|
550
|
+
align-items: center;
|
|
551
|
+
column-gap: var(--aparte-space-4);
|
|
552
|
+
padding: var(--aparte-space-4) var(--aparte-space-5);
|
|
553
|
+
transition: background-color var(--aparte-duration-fast) ease;
|
|
554
|
+
--aparte-order-kind-size: 2rem;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.aparte-order__row-main {
|
|
558
|
+
display: flex;
|
|
559
|
+
flex-direction: column;
|
|
560
|
+
gap: var(--aparte-space-1);
|
|
561
|
+
min-inline-size: 0;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.aparte-order__row .aparte-order__title {
|
|
565
|
+
overflow: hidden;
|
|
566
|
+
font-size: var(--aparte-font-size-md);
|
|
567
|
+
text-overflow: ellipsis;
|
|
568
|
+
white-space: nowrap;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.aparte-order__row-meta {
|
|
572
|
+
display: flex;
|
|
573
|
+
flex-wrap: wrap;
|
|
574
|
+
color: var(--aparte-text-muted);
|
|
575
|
+
font-size: var(--aparte-font-size-sm);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.aparte-order__row-part { white-space: nowrap; }
|
|
579
|
+
.aparte-order__row-part + .aparte-order__row-part { margin-inline-start: var(--aparte-space-2); }
|
|
580
|
+
|
|
581
|
+
.aparte-order__row .aparte-order__status { margin-inline-start: 0; }
|
|
582
|
+
|
|
583
|
+
.aparte-order__link {
|
|
584
|
+
color: inherit;
|
|
585
|
+
text-decoration: none;
|
|
586
|
+
outline: none;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* The title's link covers the row: one link, read once. */
|
|
590
|
+
.aparte-order__link::after {
|
|
591
|
+
content: "";
|
|
592
|
+
position: absolute;
|
|
593
|
+
inset: 0;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.aparte-order__row[data-linked]:hover { background: var(--aparte-surface-2); }
|
|
597
|
+
|
|
598
|
+
.aparte-order__row[data-linked]:hover .aparte-order__link {
|
|
599
|
+
text-decoration: underline;
|
|
600
|
+
text-decoration-thickness: 1px;
|
|
601
|
+
text-underline-offset: 0.18em;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/* The row reaches the card's clipped edges: its ring is drawn inside. */
|
|
605
|
+
.aparte-order__row:has(.aparte-order__link:focus-visible) {
|
|
606
|
+
outline: var(--aparte-focus-outline-width) solid var(--aparte-border-focus);
|
|
607
|
+
outline-offset: calc(var(--aparte-focus-outline-width) * -1);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.aparte-order__chevron {
|
|
611
|
+
color: var(--aparte-text-muted);
|
|
612
|
+
transition: translate var(--aparte-duration-base) ease;
|
|
613
|
+
--aparte-rich-card-glyph-size: 1rem;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.aparte-order__chevron:dir(rtl) { transform: scaleX(-1); }
|
|
617
|
+
.aparte-order__row[data-linked]:hover .aparte-order__chevron { translate: 2px 0; }
|
|
618
|
+
.aparte-order__row[data-linked]:hover .aparte-order__chevron:dir(rtl) { translate: -2px 0; }
|
|
619
|
+
|
|
620
|
+
/* \u2500\u2500 confirmation: the seal, the headline, the tiles \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
621
|
+
|
|
622
|
+
.aparte-order__confirm {
|
|
623
|
+
--aparte-order-tone: var(--aparte-success);
|
|
624
|
+
display: flex;
|
|
625
|
+
flex-direction: column;
|
|
626
|
+
align-items: center;
|
|
627
|
+
gap: var(--aparte-space-2);
|
|
628
|
+
padding: var(--aparte-space-8) var(--aparte-rich-card-padding) var(--aparte-space-6);
|
|
629
|
+
background: radial-gradient(
|
|
630
|
+
120% 70% at 50% 0%,
|
|
631
|
+
color-mix(in oklab, var(--aparte-order-tone) 13%, transparent) 0%,
|
|
632
|
+
transparent 70%
|
|
633
|
+
);
|
|
634
|
+
text-align: center;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.aparte-order__confirm[data-tone="info"] { --aparte-order-tone: var(--aparte-info); }
|
|
638
|
+
.aparte-order__confirm[data-tone="danger"] { --aparte-order-tone: var(--aparte-error); }
|
|
639
|
+
.aparte-order__confirm[data-tone="neutral"] { --aparte-order-tone: var(--aparte-neutral); }
|
|
640
|
+
|
|
641
|
+
.aparte-order__seal {
|
|
642
|
+
display: inline-flex;
|
|
643
|
+
inline-size: var(--aparte-order-seal-size);
|
|
644
|
+
block-size: var(--aparte-order-seal-size);
|
|
645
|
+
margin-block-end: var(--aparte-space-3);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.aparte-order__seal > svg {
|
|
649
|
+
inline-size: 100%;
|
|
650
|
+
block-size: 100%;
|
|
651
|
+
overflow: visible;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/* Each part rests in its final state; the animations only say where it came from, so
|
|
655
|
+
with motion turned off (the kit stops every animation) the seal is simply there. */
|
|
656
|
+
.aparte-order__seal-halo {
|
|
657
|
+
fill: color-mix(in oklab, var(--aparte-order-tone) 16%, transparent);
|
|
658
|
+
transform-box: fill-box;
|
|
659
|
+
transform-origin: center;
|
|
660
|
+
animation: aparte-order-halo 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.aparte-order__seal-disc {
|
|
664
|
+
fill: var(--aparte-order-tone);
|
|
665
|
+
transform-box: fill-box;
|
|
666
|
+
transform-origin: center;
|
|
667
|
+
animation: aparte-order-pop 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.3) backwards;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/* The mark in the card's own surface: light on the disc in a light theme, dark in a dark one. */
|
|
671
|
+
.aparte-order__seal-mark {
|
|
672
|
+
fill: none;
|
|
673
|
+
stroke: var(--aparte-surface-1);
|
|
674
|
+
stroke-width: 4.5;
|
|
675
|
+
stroke-linecap: round;
|
|
676
|
+
stroke-linejoin: round;
|
|
677
|
+
stroke-dasharray: 1;
|
|
678
|
+
stroke-dashoffset: 0;
|
|
679
|
+
animation: aparte-order-draw 0.4s 0.25s ease-out backwards;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
@keyframes aparte-order-pop {
|
|
683
|
+
from { opacity: 0; transform: scale(0.4); }
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
@keyframes aparte-order-halo {
|
|
687
|
+
from { opacity: 0; transform: scale(0.55); }
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
@keyframes aparte-order-draw {
|
|
691
|
+
from { stroke-dashoffset: 1; }
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.aparte-order__headline {
|
|
695
|
+
color: var(--aparte-text);
|
|
696
|
+
font-size: var(--aparte-font-size-xl);
|
|
697
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
698
|
+
letter-spacing: -0.01em;
|
|
699
|
+
line-height: 1.25;
|
|
700
|
+
text-wrap: balance;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.aparte-order__ref {
|
|
704
|
+
color: var(--aparte-text-muted);
|
|
705
|
+
font-size: var(--aparte-font-size-md);
|
|
706
|
+
overflow-wrap: anywhere;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.aparte-order__confirm > .aparte-order__status { margin: var(--aparte-space-1) 0 0; }
|
|
710
|
+
|
|
711
|
+
.aparte-order__keyfacts {
|
|
712
|
+
display: grid;
|
|
713
|
+
grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
|
|
714
|
+
gap: var(--aparte-space-3);
|
|
715
|
+
align-self: stretch;
|
|
716
|
+
margin: var(--aparte-space-5) 0 0;
|
|
717
|
+
text-align: start;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.aparte-order__keyfact {
|
|
721
|
+
display: flex;
|
|
722
|
+
flex-direction: column;
|
|
723
|
+
gap: var(--aparte-space-1);
|
|
724
|
+
min-inline-size: 0;
|
|
725
|
+
padding: var(--aparte-space-4);
|
|
726
|
+
border: var(--aparte-border-width) solid var(--aparte-order-soft-rule);
|
|
727
|
+
border-radius: var(--aparte-radius-lg);
|
|
728
|
+
background: var(--aparte-order-tile-bg);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.aparte-order__keyfact-label {
|
|
732
|
+
color: var(--aparte-text-muted);
|
|
733
|
+
font-size: var(--aparte-font-size-xs);
|
|
734
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.aparte-order__keyfact-value {
|
|
738
|
+
display: flex;
|
|
739
|
+
flex-direction: column;
|
|
740
|
+
gap: var(--aparte-space-1);
|
|
741
|
+
margin: 0;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.aparte-order__keyfact-text {
|
|
745
|
+
color: var(--aparte-text);
|
|
746
|
+
font-size: var(--aparte-font-size-md);
|
|
747
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
748
|
+
line-height: 1.3;
|
|
749
|
+
overflow-wrap: anywhere;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.aparte-order__keyfact--total .aparte-order__keyfact-text {
|
|
753
|
+
font-size: var(--aparte-font-size-lg);
|
|
754
|
+
font-weight: var(--aparte-font-weight-bold);
|
|
755
|
+
letter-spacing: -0.01em;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.aparte-order__keyfact-note {
|
|
759
|
+
color: var(--aparte-text-muted);
|
|
760
|
+
font-size: var(--aparte-font-size-xs);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.aparte-order__confirm-actions {
|
|
764
|
+
display: flex;
|
|
765
|
+
flex-wrap: wrap;
|
|
766
|
+
gap: var(--aparte-space-3);
|
|
767
|
+
align-self: stretch;
|
|
768
|
+
margin-block-start: var(--aparte-space-5);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.aparte-order__confirm-actions > .aparte-rich-card__action {
|
|
772
|
+
flex: 1 1 8rem;
|
|
773
|
+
justify-content: center;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
/* \u2500\u2500 Loading \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
777
|
+
|
|
778
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-title { inline-size: 8rem; block-size: 1rem; }
|
|
779
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-date { inline-size: 6rem; }
|
|
780
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-meta { inline-size: 9rem; }
|
|
781
|
+
|
|
782
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-pill {
|
|
783
|
+
flex: none;
|
|
784
|
+
inline-size: 4.5rem;
|
|
785
|
+
block-size: 1.25rem;
|
|
786
|
+
border-radius: var(--aparte-radius-full);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-thumb {
|
|
790
|
+
inline-size: var(--aparte-order-thumb-size);
|
|
791
|
+
block-size: var(--aparte-order-thumb-size);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-line--short { inline-size: 55%; }
|
|
795
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-price { inline-size: 3.5rem; margin: 0; }
|
|
796
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-label { inline-size: 5rem; }
|
|
797
|
+
|
|
798
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-seal {
|
|
799
|
+
inline-size: var(--aparte-order-seal-size);
|
|
800
|
+
block-size: var(--aparte-order-seal-size);
|
|
801
|
+
margin-block-end: var(--aparte-space-3);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-headline { inline-size: 11rem; block-size: 1.375rem; }
|
|
805
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-ref { inline-size: 6rem; margin: 0; }
|
|
806
|
+
.aparte-order-card[data-state="loading"] .aparte-skeleton.aparte-order__sk-fact { block-size: 4rem; border-radius: var(--aparte-radius-lg); }
|
|
807
|
+
|
|
808
|
+
.aparte-order__line > .aparte-order__sk-price { grid-column: -2 / -1; justify-self: end; }
|
|
809
|
+
.aparte-order__line--skeleton + .aparte-order__line--skeleton { border-block-start: 0; }
|
|
810
|
+
|
|
811
|
+
/* \u2500\u2500 Small screens, motion \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
812
|
+
|
|
813
|
+
@media (max-width: 380px) {
|
|
814
|
+
.aparte-order-card {
|
|
815
|
+
--aparte-order-thumb-size: 2.5rem;
|
|
816
|
+
--aparte-order-kind-size: 2rem;
|
|
817
|
+
--aparte-rich-card-padding: var(--aparte-space-5);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.aparte-order__row { column-gap: var(--aparte-space-3); padding-inline: var(--aparte-space-4); }
|
|
821
|
+
.aparte-order__keyfacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
|
|
822
|
+
.aparte-order__leaf { inline-size: 3.125rem; }
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/* The kit stops every animation and transition under reduced motion; the chevron's nudge
|
|
826
|
+
on hover is an end state, not a transition, so it is taken out here. */
|
|
827
|
+
@media (prefers-reduced-motion: reduce) {
|
|
828
|
+
.aparte-order__row[data-linked]:hover .aparte-order__chevron,
|
|
829
|
+
.aparte-order__row[data-linked]:hover .aparte-order__chevron:dir(rtl) { translate: none; }
|
|
830
|
+
|
|
831
|
+
.aparte-order__seal-halo,
|
|
832
|
+
.aparte-order__seal-disc,
|
|
833
|
+
.aparte-order__seal-mark { animation: none; }
|
|
834
|
+
}
|
|
835
|
+
`,F={cardsOrderOrder:{en:"Order",fr:"Commande",de:"Bestellung",es:"Pedido",it:"Ordine",ja:"\u6CE8\u6587",ko:"\uC8FC\uBB38",pt:"Pedido",ru:"\u0417\u0430\u043A\u0430\u0437",zh:"\u8BA2\u5355"},cardsOrderBooking:{en:"Booking",fr:"R\xE9servation",de:"Buchung",es:"Reserva",it:"Prenotazione",ja:"\u4E88\u7D04",ko:"\uC608\uC57D",pt:"Reserva",ru:"\u0411\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",zh:"\u9884\u8BA2"},cardsOrderNumbered:{en:"Order {reference}",fr:"Commande {reference}",de:"Bestellung {reference}",es:"Pedido {reference}",it:"Ordine {reference}",ja:"\u6CE8\u6587 {reference}",ko:"\uC8FC\uBB38 {reference}",pt:"Pedido {reference}",ru:"\u0417\u0430\u043A\u0430\u0437 {reference}",zh:"\u8BA2\u5355 {reference}"},cardsOrderBookingNumbered:{en:"Booking {reference}",fr:"R\xE9servation {reference}",de:"Buchung {reference}",es:"Reserva {reference}",it:"Prenotazione {reference}",ja:"\u4E88\u7D04 {reference}",ko:"\uC608\uC57D {reference}",pt:"Reserva {reference}",ru:"\u0411\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 {reference}",zh:"\u9884\u8BA2 {reference}"},cardsOrderStatus_pending:{en:"Pending",fr:"En attente",de:"Ausstehend",es:"Pendiente",it:"In attesa",ja:"\u4FDD\u7559\u4E2D",ko:"\uB300\uAE30 \uC911",pt:"Pendente",ru:"\u041E\u0436\u0438\u0434\u0430\u0435\u0442",zh:"\u5F85\u5904\u7406"},cardsOrderStatus_confirmed:{en:"Confirmed",fr:"Confirm\xE9e",de:"Best\xE4tigt",es:"Confirmado",it:"Confermato",ja:"\u78BA\u5B9A\u6E08\u307F",ko:"\uD655\uC778\uB428",pt:"Confirmado",ru:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043D",zh:"\u5DF2\u786E\u8BA4"},cardsOrderStatus_processing:{en:"Processing",fr:"En pr\xE9paration",de:"In Bearbeitung",es:"En preparaci\xF3n",it:"In preparazione",ja:"\u6E96\u5099\u4E2D",ko:"\uCC98\uB9AC \uC911",pt:"Em prepara\xE7\xE3o",ru:"\u0412 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0435",zh:"\u5904\u7406\u4E2D"},cardsOrderStatus_shipped:{en:"Shipped",fr:"Exp\xE9di\xE9e",de:"Versandt",es:"Enviado",it:"Spedito",ja:"\u767A\u9001\u6E08\u307F",ko:"\uBC30\uC1A1 \uC911",pt:"Enviado",ru:"\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D",zh:"\u5DF2\u53D1\u8D27"},cardsOrderStatus_delivered:{en:"Delivered",fr:"Livr\xE9e",de:"Zugestellt",es:"Entregado",it:"Consegnato",ja:"\u914D\u9054\u6E08\u307F",ko:"\uBC30\uC1A1 \uC644\uB8CC",pt:"Entregue",ru:"\u0414\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D",zh:"\u5DF2\u9001\u8FBE"},cardsOrderStatus_cancelled:{en:"Cancelled",fr:"Annul\xE9e",de:"Storniert",es:"Cancelado",it:"Annullato",ja:"\u30AD\u30E3\u30F3\u30BB\u30EB\u6E08\u307F",ko:"\uCDE8\uC18C\uB428",pt:"Cancelado",ru:"\u041E\u0442\u043C\u0435\u043D\u0451\u043D",zh:"\u5DF2\u53D6\u6D88"},cardsOrderStatus_refunded:{en:"Refunded",fr:"Rembours\xE9e",de:"Erstattet",es:"Reembolsado",it:"Rimborsato",ja:"\u8FD4\u91D1\u6E08\u307F",ko:"\uD658\uBD88\uB428",pt:"Reembolsado",ru:"\u0414\u0435\u043D\u044C\u0433\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B",zh:"\u5DF2\u9000\u6B3E"},cardsOrderStatus_failed:{en:"Failed",fr:"\xC9chou\xE9e",de:"Fehlgeschlagen",es:"Fallido",it:"Non riuscito",ja:"\u5931\u6557",ko:"\uC2E4\uD328",pt:"Falhou",ru:"\u041D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D",zh:"\u5931\u8D25"},cardsOrderBookingStatus_pending:{en:"Pending",fr:"En attente",de:"Ausstehend",es:"Pendiente",it:"In attesa",ja:"\u4FDD\u7559\u4E2D",ko:"\uB300\uAE30 \uC911",pt:"Pendente",ru:"\u041E\u0436\u0438\u0434\u0430\u0435\u0442",zh:"\u5F85\u786E\u8BA4"},cardsOrderBookingStatus_confirmed:{en:"Confirmed",fr:"Confirm\xE9e",de:"Best\xE4tigt",es:"Confirmada",it:"Confermata",ja:"\u78BA\u5B9A\u6E08\u307F",ko:"\uD655\uC815\uB428",pt:"Confirmada",ru:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u043E",zh:"\u5DF2\u786E\u8BA4"},cardsOrderBookingStatus_cancelled:{en:"Cancelled",fr:"Annul\xE9e",de:"Storniert",es:"Cancelada",it:"Annullata",ja:"\u30AD\u30E3\u30F3\u30BB\u30EB\u6E08\u307F",ko:"\uCDE8\uC18C\uB428",pt:"Cancelada",ru:"\u041E\u0442\u043C\u0435\u043D\u0435\u043D\u043E",zh:"\u5DF2\u53D6\u6D88"},cardsOrderBookingStatus_refunded:{en:"Refunded",fr:"Rembours\xE9e",de:"Erstattet",es:"Reembolsada",it:"Rimborsata",ja:"\u8FD4\u91D1\u6E08\u307F",ko:"\uD658\uBD88\uB428",pt:"Reembolsada",ru:"\u0414\u0435\u043D\u044C\u0433\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B",zh:"\u5DF2\u9000\u6B3E"},cardsOrderBookingStatus_failed:{en:"Failed",fr:"\xC9chou\xE9e",de:"Fehlgeschlagen",es:"Fallida",it:"Non riuscita",ja:"\u5931\u6557",ko:"\uC2E4\uD328",pt:"Falhou",ru:"\u041D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u043E",zh:"\u5931\u8D25"},cardsOrderHeadline_pending:{en:"Order placed",fr:"Commande pass\xE9e",de:"Bestellung aufgegeben",es:"Pedido realizado",it:"Ordine effettuato",ja:"\u3054\u6CE8\u6587\u3092\u53D7\u3051\u4ED8\u3051\u307E\u3057\u305F",ko:"\uC8FC\uBB38\uC774 \uC811\uC218\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Pedido realizado",ru:"\u0417\u0430\u043A\u0430\u0437 \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D",zh:"\u8BA2\u5355\u5DF2\u63D0\u4EA4"},cardsOrderHeadline_confirmed:{en:"Order confirmed",fr:"Commande confirm\xE9e",de:"Bestellung best\xE4tigt",es:"Pedido confirmado",it:"Ordine confermato",ja:"\u3054\u6CE8\u6587\u304C\u78BA\u5B9A\u3057\u307E\u3057\u305F",ko:"\uC8FC\uBB38\uC774 \uD655\uC778\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Pedido confirmado",ru:"\u0417\u0430\u043A\u0430\u0437 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043D",zh:"\u8BA2\u5355\u5DF2\u786E\u8BA4"},cardsOrderHeadline_processing:{en:"Order being prepared",fr:"Commande en pr\xE9paration",de:"Bestellung wird bearbeitet",es:"Pedido en preparaci\xF3n",it:"Ordine in preparazione",ja:"\u3054\u6CE8\u6587\u3092\u6E96\u5099\u4E2D\u3067\u3059",ko:"\uC8FC\uBB38\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4",pt:"Pedido em prepara\xE7\xE3o",ru:"\u0417\u0430\u043A\u0430\u0437 \u0441\u043E\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044F",zh:"\u8BA2\u5355\u5904\u7406\u4E2D"},cardsOrderHeadline_shipped:{en:"Order shipped",fr:"Commande exp\xE9di\xE9e",de:"Bestellung versandt",es:"Pedido enviado",it:"Ordine spedito",ja:"\u3054\u6CE8\u6587\u3092\u767A\u9001\u3057\u307E\u3057\u305F",ko:"\uC8FC\uBB38\uC774 \uBC1C\uC1A1\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Pedido enviado",ru:"\u0417\u0430\u043A\u0430\u0437 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D",zh:"\u8BA2\u5355\u5DF2\u53D1\u8D27"},cardsOrderHeadline_delivered:{en:"Order delivered",fr:"Commande livr\xE9e",de:"Bestellung zugestellt",es:"Pedido entregado",it:"Ordine consegnato",ja:"\u3054\u6CE8\u6587\u304C\u914D\u9054\u3055\u308C\u307E\u3057\u305F",ko:"\uC8FC\uBB38\uC774 \uBC30\uC1A1 \uC644\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Pedido entregue",ru:"\u0417\u0430\u043A\u0430\u0437 \u0434\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D",zh:"\u8BA2\u5355\u5DF2\u9001\u8FBE"},cardsOrderHeadline_cancelled:{en:"Order cancelled",fr:"Commande annul\xE9e",de:"Bestellung storniert",es:"Pedido cancelado",it:"Ordine annullato",ja:"\u3054\u6CE8\u6587\u306F\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F",ko:"\uC8FC\uBB38\uC774 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Pedido cancelado",ru:"\u0417\u0430\u043A\u0430\u0437 \u043E\u0442\u043C\u0435\u043D\u0451\u043D",zh:"\u8BA2\u5355\u5DF2\u53D6\u6D88"},cardsOrderHeadline_refunded:{en:"Order refunded",fr:"Commande rembours\xE9e",de:"Bestellung erstattet",es:"Pedido reembolsado",it:"Ordine rimborsato",ja:"\u3054\u6CE8\u6587\u306F\u8FD4\u91D1\u3055\u308C\u307E\u3057\u305F",ko:"\uC8FC\uBB38\uC774 \uD658\uBD88\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Pedido reembolsado",ru:"\u0414\u0435\u043D\u044C\u0433\u0438 \u0437\u0430 \u0437\u0430\u043A\u0430\u0437 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B",zh:"\u8BA2\u5355\u5DF2\u9000\u6B3E"},cardsOrderHeadline_failed:{en:"Order failed",fr:"\xC9chec de la commande",de:"Bestellung fehlgeschlagen",es:"Error en el pedido",it:"Ordine non riuscito",ja:"\u3054\u6CE8\u6587\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",ko:"\uC8FC\uBB38\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",pt:"Falha no pedido",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0444\u043E\u0440\u043C\u0438\u0442\u044C \u0437\u0430\u043A\u0430\u0437",zh:"\u8BA2\u5355\u5931\u8D25"},cardsOrderBookingHeadline_pending:{en:"Booking requested",fr:"R\xE9servation demand\xE9e",de:"Buchung angefragt",es:"Reserva solicitada",it:"Prenotazione richiesta",ja:"\u4E88\u7D04\u3092\u30EA\u30AF\u30A8\u30B9\u30C8\u3057\u307E\u3057\u305F",ko:"\uC608\uC57D\uC774 \uC694\uCCAD\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Reserva solicitada",ru:"\u0417\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u0431\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D",zh:"\u9884\u8BA2\u5DF2\u63D0\u4EA4"},cardsOrderBookingHeadline_confirmed:{en:"Booking confirmed",fr:"R\xE9servation confirm\xE9e",de:"Buchung best\xE4tigt",es:"Reserva confirmada",it:"Prenotazione confermata",ja:"\u4E88\u7D04\u304C\u78BA\u5B9A\u3057\u307E\u3057\u305F",ko:"\uC608\uC57D\uC774 \uD655\uC815\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Reserva confirmada",ru:"\u0411\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u043E",zh:"\u9884\u8BA2\u5DF2\u786E\u8BA4"},cardsOrderBookingHeadline_cancelled:{en:"Booking cancelled",fr:"R\xE9servation annul\xE9e",de:"Buchung storniert",es:"Reserva cancelada",it:"Prenotazione annullata",ja:"\u4E88\u7D04\u306F\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F",ko:"\uC608\uC57D\uC774 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Reserva cancelada",ru:"\u0411\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u043E",zh:"\u9884\u8BA2\u5DF2\u53D6\u6D88"},cardsOrderBookingHeadline_refunded:{en:"Booking refunded",fr:"R\xE9servation rembours\xE9e",de:"Buchung erstattet",es:"Reserva reembolsada",it:"Prenotazione rimborsata",ja:"\u4E88\u7D04\u306F\u8FD4\u91D1\u3055\u308C\u307E\u3057\u305F",ko:"\uC608\uC57D\uC774 \uD658\uBD88\uB418\uC5C8\uC2B5\uB2C8\uB2E4",pt:"Reserva reembolsada",ru:"\u0414\u0435\u043D\u044C\u0433\u0438 \u0437\u0430 \u0431\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B",zh:"\u9884\u8BA2\u5DF2\u9000\u6B3E"},cardsOrderBookingHeadline_failed:{en:"Booking failed",fr:"\xC9chec de la r\xE9servation",de:"Buchung fehlgeschlagen",es:"Error en la reserva",it:"Prenotazione non riuscita",ja:"\u4E88\u7D04\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",ko:"\uC608\uC57D\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",pt:"Falha na reserva",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0431\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",zh:"\u9884\u8BA2\u5931\u8D25"},cardsOrderPlaced:{en:"Placed {date}",fr:"Pass\xE9e le {date}",de:"Bestellt am {date}",es:"Realizado el {date}",it:"Effettuato il {date}",ja:"\u6CE8\u6587\u65E5 {date}",ko:"\uC8FC\uBB38\uC77C {date}",pt:"Feito em {date}",ru:"\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D {date}",zh:"\u4E0B\u5355\u4E8E {date}"},cardsOrderBooked:{en:"Booked {date}",fr:"R\xE9serv\xE9e le {date}",de:"Gebucht am {date}",es:"Reservada el {date}",it:"Prenotata il {date}",ja:"\u4E88\u7D04\u65E5 {date}",ko:"\uC608\uC57D\uC77C {date}",pt:"Reservada em {date}",ru:"\u0417\u0430\u0431\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043E {date}",zh:"\u9884\u8BA2\u4E8E {date}"},cardsOrderItem:{en:"{n} item",fr:"{n} article",de:"{n} Artikel",es:"{n} art\xEDculo",it:"{n} articolo",ja:"{n}\u70B9",ko:"\uC0C1\uD488 {n}\uAC1C",pt:"{n} item",ru:"{n} \u0442\u043E\u0432\u0430\u0440",zh:"{n} \u4EF6\u5546\u54C1"},cardsOrderItems:{en:"{n} items",fr:"{n} articles",de:"{n} Artikel",es:"{n} art\xEDculos",it:"{n} articoli",ja:"{n}\u70B9",ko:"\uC0C1\uD488 {n}\uAC1C",pt:"{n} itens",ru:"\u0422\u043E\u0432\u0430\u0440\u043E\u0432: {n}",zh:"{n} \u4EF6\u5546\u54C1"},cardsOrderLines:{en:"Items",fr:"Articles",de:"Artikel",es:"Art\xEDculos",it:"Articoli",ja:"\u5546\u54C1",ko:"\uC0C1\uD488",pt:"Itens",ru:"\u0422\u043E\u0432\u0430\u0440\u044B",zh:"\u5546\u54C1"},cardsOrderMore:{en:"and {n} more",fr:"et {n} de plus",de:"und {n} weitere",es:"y {n} m\xE1s",it:"e altri {n}",ja:"\u307B\u304B{n}\u4EF6",ko:"\uC678 {n}\uAC1C",pt:"e mais {n}",ru:"\u0438 \u0435\u0449\u0451 {n}",zh:"\u8FD8\u6709 {n} \u4EF6"},cardsOrderEach:{en:"{price} each",fr:"{price} l\u2019unit\xE9",de:"je {price}",es:"{price} c/u",it:"{price} cad.",ja:"\u5358\u4FA1 {price}",ko:"\uAC1C\uB2F9 {price}",pt:"{price} cada",ru:"{price} \u0437\u0430 \u0448\u0442.",zh:"\u5355\u4EF7 {price}"},cardsOrderSubtotal:{en:"Subtotal",fr:"Sous-total",de:"Zwischensumme",es:"Subtotal",it:"Subtotale",ja:"\u5C0F\u8A08",ko:"\uC18C\uACC4",pt:"Subtotal",ru:"\u041F\u043E\u0434\u044B\u0442\u043E\u0433",zh:"\u5C0F\u8BA1"},cardsOrderDiscount:{en:"Discount",fr:"Remise",de:"Rabatt",es:"Descuento",it:"Sconto",ja:"\u5272\u5F15",ko:"\uD560\uC778",pt:"Desconto",ru:"\u0421\u043A\u0438\u0434\u043A\u0430",zh:"\u6298\u6263"},cardsOrderShipping:{en:"Shipping",fr:"Livraison",de:"Versand",es:"Env\xEDo",it:"Spedizione",ja:"\u9001\u6599",ko:"\uBC30\uC1A1\uBE44",pt:"Frete",ru:"\u0414\u043E\u0441\u0442\u0430\u0432\u043A\u0430",zh:"\u8FD0\u8D39"},cardsOrderFree:{en:"Free",fr:"Gratuite",de:"Kostenlos",es:"Gratis",it:"Gratuita",ja:"\u7121\u6599",ko:"\uBB34\uB8CC",pt:"Gr\xE1tis",ru:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",zh:"\u514D\u8D39"},cardsOrderTax:{en:"Tax",fr:"Taxes",de:"Steuern",es:"Impuestos",it:"Imposte",ja:"\u7A0E",ko:"\uC138\uAE08",pt:"Impostos",ru:"\u041D\u0430\u043B\u043E\u0433",zh:"\u7A0E\u8D39"},cardsOrderTotal:{en:"Total",fr:"Total",de:"Gesamt",es:"Total",it:"Totale",ja:"\u5408\u8A08",ko:"\uD569\uACC4",pt:"Total",ru:"\u0418\u0442\u043E\u0433\u043E",zh:"\u5408\u8BA1"},cardsOrderFallbackTotal:{en:"total {amount}",fr:"total {amount}",de:"gesamt {amount}",es:"total {amount}",it:"totale {amount}",ja:"\u5408\u8A08 {amount}",ko:"\uD569\uACC4 {amount}",pt:"total {amount}",ru:"\u0438\u0442\u043E\u0433\u043E {amount}",zh:"\u5408\u8BA1 {amount}"},cardsOrderPayment:{en:"Payment",fr:"Paiement",de:"Zahlung",es:"Pago",it:"Pagamento",ja:"\u304A\u652F\u6255\u3044",ko:"\uACB0\uC81C",pt:"Pagamento",ru:"\u041E\u043F\u043B\u0430\u0442\u0430",zh:"\u4ED8\u6B3E\u65B9\u5F0F"},cardsOrderDelivery:{en:"Estimated delivery",fr:"Livraison pr\xE9vue",de:"Voraussichtliche Lieferung",es:"Entrega estimada",it:"Consegna prevista",ja:"\u304A\u5C4A\u3051\u4E88\u5B9A",ko:"\uB3C4\uCC29 \uC608\uC815",pt:"Entrega prevista",ru:"\u041E\u0436\u0438\u0434\u0430\u0435\u043C\u0430\u044F \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0430",zh:"\u9884\u8BA1\u9001\u8FBE"},cardsOrderTrack:{en:"Track",fr:"Suivre",de:"Verfolgen",es:"Seguir",it:"Traccia",ja:"\u8FFD\u8DE1",ko:"\uBC30\uC1A1 \uC870\uD68C",pt:"Rastrear",ru:"\u041E\u0442\u0441\u043B\u0435\u0434\u0438\u0442\u044C",zh:"\u67E5\u770B\u7269\u6D41"},cardsOrderAddress:{en:"Delivery address",fr:"Adresse de livraison",de:"Lieferadresse",es:"Direcci\xF3n de entrega",it:"Indirizzo di consegna",ja:"\u304A\u5C4A\u3051\u5148",ko:"\uBC30\uC1A1\uC9C0",pt:"Endere\xE7o de entrega",ru:"\u0410\u0434\u0440\u0435\u0441 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438",zh:"\u6536\u8D27\u5730\u5740"},cardsOrderCustomer:{en:"Customer",fr:"Client",de:"Kunde",es:"Cliente",it:"Cliente",ja:"\u304A\u5BA2\u69D8",ko:"\uACE0\uAC1D",pt:"Cliente",ru:"\u041F\u043E\u043A\u0443\u043F\u0430\u0442\u0435\u043B\u044C",zh:"\u5BA2\u6237"},cardsOrderView:{en:"View order",fr:"Voir la commande",de:"Bestellung ansehen",es:"Ver pedido",it:"Vedi ordine",ja:"\u6CE8\u6587\u3092\u898B\u308B",ko:"\uC8FC\uBB38 \uBCF4\uAE30",pt:"Ver pedido",ru:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0437\u0430\u043A\u0430\u0437",zh:"\u67E5\u770B\u8BA2\u5355"},cardsOrderViewBooking:{en:"View booking",fr:"Voir la r\xE9servation",de:"Buchung ansehen",es:"Ver reserva",it:"Vedi prenotazione",ja:"\u4E88\u7D04\u3092\u898B\u308B",ko:"\uC608\uC57D \uBCF4\uAE30",pt:"Ver reserva",ru:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0431\u0440\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",zh:"\u67E5\u770B\u9884\u8BA2"},cardsOrderWhen:{en:"When",fr:"Quand",de:"Wann",es:"Cu\xE1ndo",it:"Quando",ja:"\u65E5\u6642",ko:"\uC77C\uC2DC",pt:"Quando",ru:"\u041A\u043E\u0433\u0434\u0430",zh:"\u65F6\u95F4"},cardsOrderWhere:{en:"Where",fr:"O\xF9",de:"Wo",es:"D\xF3nde",it:"Dove",ja:"\u5834\u6240",ko:"\uC7A5\uC18C",pt:"Onde",ru:"\u0413\u0434\u0435",zh:"\u5730\u70B9"},cardsOrderGuestsLabel:{en:"Guests",fr:"Personnes",de:"G\xE4ste",es:"Personas",it:"Ospiti",ja:"\u4EBA\u6570",ko:"\uC778\uC6D0",pt:"Pessoas",ru:"\u0413\u043E\u0441\u0442\u0438",zh:"\u4EBA\u6570"},cardsOrderStart:{en:"Start",fr:"D\xE9but",de:"Beginn",es:"Inicio",it:"Inizio",ja:"\u958B\u59CB",ko:"\uC2DC\uC791",pt:"In\xEDcio",ru:"\u041D\u0430\u0447\u0430\u043B\u043E",zh:"\u5F00\u59CB"},cardsOrderEnd:{en:"End",fr:"Fin",de:"Ende",es:"Fin",it:"Fine",ja:"\u7D42\u4E86",ko:"\uC885\uB8CC",pt:"Fim",ru:"\u041A\u043E\u043D\u0435\u0446",zh:"\u7ED3\u675F"},cardsOrderNight:{en:"{n} night",fr:"{n} nuit",de:"{n} Nacht",es:"{n} noche",it:"{n} notte",ja:"{n}\u6CCA",ko:"{n}\uBC15",pt:"{n} noite",ru:"{n} \u043D\u043E\u0447\u044C",zh:"{n} \u665A"},cardsOrderNights:{en:"{n} nights",fr:"{n} nuits",de:"{n} N\xE4chte",es:"{n} noches",it:"{n} notti",ja:"{n}\u6CCA",ko:"{n}\uBC15",pt:"{n} noites",ru:"\u041D\u043E\u0447\u0435\u0439: {n}",zh:"{n} \u665A"},cardsOrderGuest:{en:"{n} guest",fr:"{n} personne",de:"{n} Gast",es:"{n} persona",it:"{n} ospite",ja:"{n}\u540D",ko:"{n}\uBA85",pt:"{n} pessoa",ru:"{n} \u0433\u043E\u0441\u0442\u044C",zh:"{n} \u4F4D"},cardsOrderGuests:{en:"{n} guests",fr:"{n} personnes",de:"{n} G\xE4ste",es:"{n} personas",it:"{n} ospiti",ja:"{n}\u540D",ko:"{n}\uBA85",pt:"{n} pessoas",ru:"\u0413\u043E\u0441\u0442\u0435\u0439: {n}",zh:"{n} \u4F4D"}},Ze={pending:"warning",confirmed:"success",processing:"info",shipped:"info",delivered:"success",cancelled:"neutral",refunded:"neutral",failed:"danger"},Xe={pending:"info",confirmed:"success",processing:"info",shipped:"success",delivered:"success",cancelled:"danger",refunded:"neutral",failed:"danger"},Qe={processing:"pending",shipped:"confirmed",delivered:"confirmed"},Je=50,Q=6,er=12,rr=2,f=e=>!!e&&typeof e=="object"&&!Array.isArray(e),_=e=>e!=null&&e!==!1;function i(e,r){if(f(e)){for(let a of r)if(e[a]!==void 0&&e[a]!==null&&e[a]!=="")return e[a]}}var T=e=>typeof e=="string"?e.toLowerCase().replace(/[^a-z]/g,""):"",xe=e=>/^(?:cus|pm|card|src|pi|ch|cs|in)_[A-Za-z0-9]{6,}$/.test(e);function je(e,r){if(typeof e=="number")return Number.isFinite(e)?{amount:e/r}:{};if(typeof e=="string"){let{amount:a,currency:t}=be(e);return{...a!==void 0?{amount:a/r}:{},...t?{currency:t}:{}}}if(f(e)){let a=je(i(e,["amount","value","unit_amount","cents","shop_money","shopMoney","price"]),r),t=X(i(e,["currency","currency_code","currencyCode"]))??a.currency;return{...a.amount!==void 0?{amount:a.amount}:{},...t?{currency:t}:{}}}return{}}function ar(e){if(!e)return 100;try{return 10**(new Intl.NumberFormat("en",{style:"currency",currency:e}).resolvedOptions().maximumFractionDigits??2)}catch{return 100}}var tr=/^(\d{4})-(\d{2})-(\d{2})$/,nr=/^\d{4}-\d{2}-\d{2}[T ]\d{1,2}:\d{2}/;function Te(e){if(typeof e=="string"){let r=e.trim(),a=tr.exec(r);if(a){let n=new Date(Number(a[1]),Number(a[2])-1,Number(a[3]));return n.getMonth()===Number(a[2])-1&&n.getDate()===Number(a[3])?{date:n,allDay:!0}:void 0}if(!nr.test(r))return;let t=Z(r.replace(" ","T"));return t?{date:t,allDay:!1}:void 0}if(typeof e=="number"||e instanceof Date){let r=Z(e);return r?{date:r,allDay:r.getHours()===0&&r.getMinutes()===0&&r.getSeconds()===0}:void 0}}var or=/^(\d{4}-\d{2}-\d{2})T00:00(?::00(?:\.0+)?)?(?:Z|[+-]00:?00)$/i;function S(e){let r=typeof e=="string"?or.exec(e.trim()):null;return Te(r?r[1]:e)}var ir=/^(\d{1,2}):(\d{2})(?::\d{2})?\s*(?:([ap])\.?\s?m\.?)?$/i;function sr(e){let r=S(e.date),a=typeof e.time=="string"?ir.exec(e.time.trim()):null;if(!r||!a||!r.allDay)return r;let t=Number(a[1]),n=Number(a[2]),d=a[3]?.toLowerCase();if(d&&(t=t%12+(d==="p"?12:0)),t>23||n>59)return r;let s=new Date(r.date);return s.setHours(t,n,0,0),{date:s,allDay:!1}}var dr={pending:"pending",onhold:"pending",awaitingpayment:"pending",unpaid:"pending",open:"pending",requested:"pending",tentative:"pending",placed:"pending",orderpaymentdue:"pending",confirmed:"confirmed",paid:"confirmed",booked:"confirmed",reserved:"confirmed",accepted:"confirmed",complete:"confirmed",completed:"confirmed",succeeded:"confirmed",approved:"confirmed",processing:"processing",preparing:"processing",inprogress:"processing",packed:"processing",orderprocessing:"processing",shipped:"shipped",fulfilled:"shipped",intransit:"shipped",dispatched:"shipped",outfordelivery:"shipped",orderintransit:"shipped",delivered:"delivered",orderdelivered:"delivered",cancelled:"cancelled",canceled:"cancelled",voided:"cancelled",void:"cancelled",expired:"cancelled",ordercancelled:"cancelled",refunded:"refunded",orderreturned:"refunded",failed:"failed",declined:"failed",paymentfailed:"failed",rejected:"failed",orderproblem:"failed"};function lr(e){let r=i(e,["status","state","order_status","orderStatus","booking_status","bookingStatus"]);if(typeof r=="string"&&r.trim()){let d=T(r.replace(/^https?:\/\/schema\.org\//,"")),s=dr[d];return s?{status:s}:{text:r.trim()}}if(i(e,["cancelled_at","canceled_at","cancelledAt","canceledAt"]))return{status:"cancelled"};let a=T(i(e,["financial_status","financialStatus","displayFinancialStatus"])),t=T(i(e,["fulfillment_status","fulfillmentStatus","displayFulfillmentStatus"])),n=T(i(e,["payment_status","paymentStatus"]));if(a==="refunded")return{status:"refunded"};if(a==="voided")return{status:"cancelled"};if(t==="delivered")return{status:"delivered"};if(t==="fulfilled")return{status:"shipped"};if(a==="paid"||n==="paid")return{status:"confirmed"};if(a==="pending"||n==="unpaid")return{status:"pending"}}function ee(e){if(Array.isArray(e))return e;if(f(e)){if(Array.isArray(e.data))return e.data;if(Array.isArray(e.nodes))return e.nodes;if(Array.isArray(e.edges))return e.edges.map(r=>f(r)?r.node:void 0)}}function Ce(e){if(Array.isArray(e))return e.length?Ce(e[0]):void 0;if(f(e)){let a=N(i(e,["src","url","href","thumbnail"])),t=p(i(e,["alt","altText","alt_text"]));return a?{src:a,...t?{alt:t}:{}}:void 0}let r=N(e);return r?{src:r}:void 0}function cr(e){let r=i(e,["subtitle","variant_title","variantTitle","variant","variation","options"]);if(Array.isArray(r)){let a=r.map(t=>f(t)?p(i(t,["value","name","title"])):p(t)).filter(_);return a.length?a.join(" \xB7 "):void 0}return f(r)?p(i(r,["title","name"])):p(r)}function pr(e,r){if(typeof e=="string")return e.trim()?{title:e.trim(),quantity:1}:null;if(!f(e))return null;let a=p(i(e,["title","name","description","product_name","productName","label"]));if(!a)return null;let t=Y(i(e,["quantity","qty","count"])),n=t!==void 0&&t>=0?t:1,d=r(i(e,["unit_price","unitPrice","price","amount","unit_amount"])),l=r(i(e,["subtotal","amount_subtotal","line_subtotal"]))??r(i(e,["total","total_price","totalPrice","amount_total","line_total","lineTotal"]))??(d!==void 0?d*n:void 0),c=cr(e),h=Ce(i(e,["image","image_url","imageUrl","thumbnail","images","photo","picture"]));return{title:a,...c?{subtitle:c}:{},...h?{image:h}:{},quantity:n,...d!==void 0?{price:d}:{},...l!==void 0?{total:l}:{}}}function Se(e){if(Array.isArray(e)){let a=e.map(Se).filter(_);return a.length?a.join(", "):void 0}if(f(e)){let a=f(e.card)?e.card:e,t=p(i(a,["brand","network","type"])),n=p(i(a,["last4","last_4","lastFour","last_digits"]));return n?`${t?t.charAt(0).toUpperCase()+t.slice(1):""} \u2022\u2022\u2022\u2022 ${n}`.trim():p(i(e,["label","title","description","name"]))??t}let r=p(e);return r&&!xe(r)?r:void 0}function re(e){let r=p(i(e,["name","full_name","fullName"]));if(r)return r;let a=[i(e,["first_name","firstName","given_name"]),i(e,["last_name","lastName","family_name"])].map(p).filter(_);return a.length?a.join(" "):void 0}var ur=["address1","address_1","line1","street","street1","city","postal_code","postcode","zip"],mr=new Set(["us","usa","unitedstates","ca","canada","au","australia","gb","uk","unitedkingdom"]);function fr(e){if(typeof e=="string")return e.trim()?e.trim().replace(/\s*\n\s*/g,`
|
|
836
|
+
`):void 0;if(!f(e))return;let r=f(e.address)?e.address:e,a=v=>p(i(r,v)),t=a(["city","locality","town"]),n=a(["zip","postal_code","postalCode","postcode"]),d=a(["province_code","state","province","region"]),s=a(["country","country_code","countryCode"]),c=mr.has(T(s))?[[t,d].filter(_).join(", "),n].filter(v=>v).join(" "):[n,t].filter(_).join(" "),h=[re(e)??re(r),a(["company"]),a(["address1","address_1","line1","street","street1"]),a(["address2","address_2","line2","street2"]),c||void 0,s].filter(_);return h.length?h.join(`
|
|
837
|
+
`):void 0}function _r(e){if(typeof e=="string")return e.trim()&&!xe(e.trim())?e.trim():void 0;if(!f(e))return;let r=[re(e),p(i(e,["email"])),p(i(e,["phone"]))].filter(_);return r.length?r.join(`
|
|
838
|
+
`):void 0}function gr(e){let r=[];if(Array.isArray(e))for(let a of e){let t=p(i(a,["label","name","key","title"])),n=p(i(a,["value","text"]));t&&n&&r.push({label:t,value:n})}else if(f(e))for(let[a,t]of Object.entries(e)){let n=p(t);a.trim()&&n&&r.push({label:a.trim(),value:n})}return r.slice(0,er)}function hr(e){if(Array.isArray(e)&&(e={from:e[0],to:e[1]}),f(e)&&!(e instanceof Date)){let t=S(i(e,["from","start","earliest","min"])),n=S(i(e,["to","end","latest","max"]));return t?n&&n.date>t.date?{from:t,to:n}:{from:t}:n?{from:n}:void 0}let r=S(e);if(r)return{from:r};let a=p(e);return a?{text:a}:void 0}function vr(e){let r=ee(e.fulfillments),a=[e.delivery,e.shipment,e.fulfillment,r?.[0],e.tracking].find(f),t=c=>Array.isArray(c)?c[0]:c,n=hr(i(a,["estimate","estimatedDelivery","estimated_delivery","eta","expected","expectedDate","expected_date","date"])??i(e,["estimatedDelivery","estimated_delivery","deliveryEstimate","delivery_estimate","deliveryDate","delivery_date","eta"])??(typeof e.delivery=="string"?e.delivery:void 0)),d=p(i(a,["carrier","company","tracking_company","trackingCompany","service"])??i(e,["carrier","tracking_company","trackingCompany","shippingCarrier","shipping_carrier"])),s=p(t(i(a,["trackingNumber","tracking_number","tracking_numbers","number"])??i(e,["trackingNumber","tracking_number"]))),l=N(t(i(a,["trackingUrl","tracking_url","tracking_urls","trackingLink","tracking_link","url"])??i(e,["trackingUrl","tracking_url","trackingLink","tracking_link"])));if(!(!n&&!d&&!s&&!l))return{...n?{estimate:n}:{},...d?{carrier:d}:{},...s?{trackingNumber:s}:{},...l?{trackingUrl:l}:{}}}var kr=["start","startTime","start_time","startDate","start_date","checkIn","check_in","checkin","from","datetime","dateTime","time"],br=["end","endTime","end_time","endDate","end_date","checkOut","check_out","checkout","to","until"];function yr(e){let r=[e.booking,e.reservation].find(f)??e,a=S(i(r,kr)),t=a?void 0:sr(r),n=a??t,d=t!==void 0&&r===e,s=S(i(r,br)),l=s&&(!n||s.date>=n.date)?s:void 0,c=i(r,["location","venue","place","address","where"]),h=f(c)?[p(i(c,["name","title"])),p(i(c,["address","formatted_address"]))].filter(_).join(", ")||void 0:p(c),v=i(r,["guests","partySize","party_size","people","persons","covers","attendees"]),k=Array.isArray(v)?v.length:Y(v),b=k!==void 0&&k>0?Math.floor(k):void 0;return!n&&!h&&b===void 0?{booking:void 0,tookDate:d}:{booking:{...n?{start:n}:{},...l?{end:l}:{},...h?{location:h}:{},...b!==void 0?{guests:b}:{}},tookDate:d}}function zr(e){let r=T(i(e,["kind","type","object"]));return["booking","reservation","appointment","lodgingreservation","foodestablishmentreservation","eventreservation"].includes(r)?"booking":["order","purchase","checkoutsession"].includes(r)?"order":f(e.booking)||f(e.reservation)||i(e,["checkIn","check_in","startTime","start_time","startDate","start_date"])!==void 0?"booking":"order"}function wr(e){if(!f(e))return null;let r=e,a=zr(r),t=r.minorUnits===!0||r.minor_units===!0,n=X(i(r,["currency","currency_code","currencyCode","presentment_currency"])),d=t?ar(n):1,s=u=>{let y=je(u,d);return n??=y.currency,y.amount},l=(u,y)=>{if(f(u))for(let P of y){let ge=u[P]===void 0||u[P]===null?void 0:s(u[P]);if(ge!==void 0)return ge}},c=(["items","line_items","lineItems","products","lines"].map(u=>ee(r[u])).find(_)??[]).map(u=>pr(u,s)).filter(_),h=c.slice(0,Je),v=f(r.total_details)?r.total_details:void 0,k=ee(r.shipping_lines),b=l(r,["subtotal","sub_total","subtotal_price","subtotalPrice","amount_subtotal","items_total","itemsTotal"]),ie=l(r,["discount","total_discount","total_discounts","totalDiscounts","discount_total","discountTotal"])??l(v,["amount_discount"]),D=l(r,["shipping","shipping_total","shippingTotal","shipping_cost","shippingCost","shipping_price","shippingPrice","total_shipping","delivery_fee","deliveryFee"])??l(v,["amount_shipping"])??l(r.shipping_cost,["amount_total"]);if(D===void 0&&k?.length){let u=k.map(y=>l(y,["price","amount"])).filter(_);u.length&&(D=u.reduce((y,P)=>y+P,0))}let H=l(r,["tax","taxes","total_tax","totalTax","tax_total","taxTotal","vat"])??l(v,["amount_tax"]),B=l(r,["total","total_price","totalPrice","amount_total","amountTotal","grand_total","grandTotal","amount"]),V=c.filter(u=>u.quantity!==0);b===void 0&&V.length&&V.every(u=>u.total!==void 0)&&(b=V.reduce((u,y)=>u+y.total,0));let q=ie!==void 0?Math.abs(ie):void 0;B===void 0&&b!==void 0&&(B=b-(q??0)+(D??0)+(H??0));let U=p(i(r,["reference","order_number","orderNumber","number","confirmation_number","confirmationNumber","confirmation_code","confirmationCode","booking_reference","bookingReference","booking_id","bookingId","order_id","orderId","id"]))?.replace(/^#\s*/,"")||void 0,W=p(i(r,["title","heading"])),se=p(r.headline),de=lr(r),{booking:K,tookDate:Re}=a==="booking"?yr(r):{booking:void 0,tookDate:!1},le=["date","created_at","createdAt","placed_at","placedAt","order_date","orderDate","date_created","dateCreated","processed_at","created"],ce=Te(i(r,Re?le.slice(1):le))?.date,pe=vr(r),ue=Se(i(r,["payment","paymentMethod","payment_method","payment_method_title","paymentMethodTitle","payment_method_details","card","payment_gateway_names"])),me=_r(i(r,["customer_details","customerDetails","customer","customer_name","customerName","buyer","contact"])),fe=a==="order"?fr(i(r,["shippingAddress","shipping_address","shipping_details","shippingDetails","deliveryAddress","delivery_address","address"])??(f(r.shipping)&&ur.some(u=>u in r.shipping)?r.shipping:void 0)):void 0,_e=N(i(r,["url","orderUrl","order_url","order_status_url","orderStatusUrl","statusUrl","status_url","receipt_url","receiptUrl","manageUrl","manage_url","link","href"]));if(!h.length&&!U&&B===void 0&&!K&&!W)return null;let Ee=c.every(u=>Number.isInteger(u.quantity));return{kind:a,...W?{title:W}:{},...se?{headline:se}:{},...U?{reference:U}:{},...de?{status:de}:{},...ce?{date:ce}:{},items:h,lineCount:c.length,itemCount:Ee?c.reduce((u,y)=>u+y.quantity,0):c.length,...n?{currency:n}:{},...b!==void 0?{subtotal:b}:{},...q!==void 0?{discount:q}:{},...D!==void 0?{shipping:D}:{},...H!==void 0?{tax:H}:{},...B!==void 0?{total:B}:{},...ue?{payment:ue}:{},...me?{customer:me}:{},...fe?{shippingAddress:fe}:{},...pe?{delivery:pe}:{},facts:gr(i(r,["facts","details","extra","extras","note_attributes"])),...K?{booking:K}:{},..._e?{url:_e}:{}}}var g=(e,r,a)=>he(e,r,F[r],a),O=(e,r,a)=>ke(e,a,r.currency);function j(e,r,a,t){let n=new Intl.PluralRules(R(e)).select(t);return g(e,n==="one"?r:a,{n:E(e,t)})}var ae=e=>/^\d+$/.test(e)?`#${e}`:e;function A(e,r,a){if(r?.title)return r.title;let t=r?.kind==="booking";if(r?.reference){let n=a?ae(r.reference):r.reference;return g(e,t?"cardsOrderBookingNumbered":"cardsOrderNumbered",{reference:n})}return g(e,t?"cardsOrderBooking":"cardsOrderOrder")}function Ae(e,r){let a=r.status;if(!a)return"";if("text"in a)return a.text;let t=`cardsOrderBookingStatus_${a.status}`,n=r.kind==="booking"&&t in F?t:`cardsOrderStatus_${a.status}`;return g(e,n)}function Or(e,r){if(r.headline)return r.headline;let a=r.status&&"status"in r.status?r.status.status:"confirmed";if(r.kind!=="booking")return g(e,`cardsOrderHeadline_${a}`);let t=Qe[a]??a;return g(e,`cardsOrderBookingHeadline_${t}`)}var x=(e,r)=>new Intl.DateTimeFormat(R(e),r),xr=(e,r)=>x(e,{dateStyle:"medium"}).format(r);function De(e,r=new Date){return{weekday:"short",day:"numeric",month:"short",...e.getFullYear()!==r.getFullYear()?{year:"numeric"}:{}}}var L={hour:"numeric",minute:"2-digit"};function te(e,r,a){return typeof e.formatRange=="function"?e.formatRange(r,a):`${e.format(r)} \u2013 ${e.format(a)}`}function ne(e,r,a){let t=!r.allDay||a!==void 0&&!a.allDay,n=x(e,{...De(r.date),...t?L:{}});return a&&a.date.getTime()!==r.date.getTime()?te(n,r.date,a.date):n.format(r.date)}var ye=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();function G(e,r){return Math.max(0,Math.round((ye(r)-ye(e))/864e5))}var J=(e,r)=>{let a=o("span",{class:"aparte-sr-only"});return e.word(a,r,F[r]),a},m=(e,r,a,t)=>{let n=o(r,{class:a});return e.bind(n,t),n};function $(e){return w(e?.kind==="booking"?Ie:we,"aparte-rich-card__glyph aparte-order__kind")}function oe(e,r){if(!r.status)return null;let a="status"in r.status?r.status.status:void 0,t=o("span",{class:`aparte-badge aparte-badge--${a?Ze[a]:"neutral"} aparte-badge--sm aparte-order__status`,attrs:{"data-status":a??"other"}},o("span",{class:"aparte-order__status-dot",attrs:{"aria-hidden":"true"}}));return t.append(m(e,"span","aparte-order__status-text",()=>Ae(e.config,r))),t}function Be(e,r,a=!1){if(!r.url)return null;let t=r.kind==="booking"?"cardsOrderViewBooking":"cardsOrderView",n=e.action({label:g(e.config,t),url:r.url,id:"view",primary:a},r,"aparte-order__view");return n&&e.word(n,t,F[t]),n}function Pe(e,r){let a=r.delivery?.trackingUrl;if(!a)return null;let t=e.action({label:g(e.config,"cardsOrderTrack"),url:a,id:"track"},r,"aparte-order__track");return t&&e.word(t,"cardsOrderTrack",F.cardsOrderTrack),t}function jr(e,r){let a=o("div",{class:"aparte-order__heading"},m(e,"div","aparte-order__title",()=>A(e.config,r,!0)));if(r.date){let t=r.date,n=o("time",{class:"aparte-order__date",attrs:{datetime:t.toISOString()}});e.bind(n,()=>g(e.config,r.kind==="booking"?"cardsOrderBooked":"cardsOrderPlaced",{date:xr(e.config,t)})),a.append(n)}return o("div",{class:"aparte-order__head"},$(r),a,oe(e,r))}function Tr(e){let r=o("div",{class:"aparte-order__thumb"},w(Me,"aparte-rich-card__glyph aparte-order__thumb-glyph"));if(!e.image)return r.setAttribute("data-empty",""),r;let a=o("img",{class:"aparte-order__image",attrs:{src:e.image.src,alt:e.image.alt??e.title,loading:"lazy",decoding:"async",referrerpolicy:"no-referrer"}});return a.addEventListener("error",()=>{a.hidden=!0,r.setAttribute("data-empty","")},{once:!0}),r.append(a),r}function Cr(e,r,a,t){let n=o("div",{class:"aparte-order__line-meta"},a.subtitle?o("span",{class:"aparte-order__line-variant",text:a.subtitle}):null,a.quantity!==1&&a.price!==void 0?m(e,"span","aparte-order__line-each",()=>g(e.config,"cardsOrderEach",{price:O(e.config,r,a.price)})):null);return o("li",{class:"aparte-order__line"},t?Tr(a):null,o("div",{class:"aparte-order__line-main"},o("div",{class:"aparte-order__line-title",text:a.title}),n.childNodes.length?n:null),a.quantity!==1?m(e,"span","aparte-order__qty",()=>`\xD7\u2009${E(e.config,a.quantity)}`):null,a.total!==void 0?m(e,"span","aparte-order__line-total",()=>O(e.config,r,a.total)):null)}function Sr(e,r){if(!r.items.length)return null;let a=r.items.some(s=>s.image),t=s=>{let l=o("ul",{class:"aparte-order__lines",attrs:{role:"list","data-thumbs":a}},...s.map(c=>Cr(e,r,c,a)));return e.bind(l,()=>g(e.config,"cardsOrderLines"),"aria-label"),l},n=o("div",{class:"aparte-order__section aparte-order__items"},t(r.items.slice(0,Q))),d=r.lineCount-Q;if(d>0){let s=o("summary",{class:"aparte-order__more-toggle"},w(Oe,"aparte-rich-card__glyph aparte-order__more-chevron"),m(e,"span","aparte-order__more-text",()=>g(e.config,"cardsOrderMore",{n:E(e.config,d)}))),l=o("details",{class:"aparte-order__more"},s,t(r.items.slice(Q))),c=r.lineCount-r.items.length;c>0&&l.append(m(e,"div","aparte-order__dropped",()=>g(e.config,"cardsOrderMore",{n:E(e.config,c)}))),n.append(l)}return n}function I(e,r,a,t){return o("div",{class:`aparte-order__sum aparte-order__sum--${t}`},m(e,"dt","aparte-order__sum-label",()=>g(e.config,r)),m(e,"dd","aparte-order__sum-value",a))}function Ar(e,r){let{config:a}=e,t=r.discount!==void 0||r.shipping!==void 0||r.tax!==void 0,n=[r.subtotal!==void 0&&t?I(e,"cardsOrderSubtotal",()=>O(a,r,r.subtotal),"subtotal"):null,r.discount?I(e,"cardsOrderDiscount",()=>`\u2212${O(a,r,r.discount)}`,"discount"):null,r.shipping!==void 0?I(e,"cardsOrderShipping",()=>r.shipping===0?g(a,"cardsOrderFree"):O(a,r,r.shipping),r.shipping===0?"free":"shipping"):null,r.tax!==void 0?I(e,"cardsOrderTax",()=>O(a,r,r.tax),"tax"):null,r.total!==void 0?I(e,"cardsOrderTotal",()=>O(a,r,r.total),"total"):null].filter(_);return n.length?o("dl",{class:"aparte-order__section aparte-order__totals"},...n):null}function M(e,r,a,...t){let n=o("dt",{class:"aparte-order__info-label"},w(r,"aparte-rich-card__glyph aparte-order__info-glyph"));return n.append(m(e,"span","aparte-order__info-label-text",a)),o("div",{class:"aparte-order__info"},n,o("dd",{class:"aparte-order__info-value"},...t))}function Ne(e,r){if("text"in r)return r.text;let a=x(e,De(r.from.date));return r.to?te(a,r.from.date,r.to.date):a.format(r.from.date)}function Dr(e,r){let a=r.delivery;if(!a)return null;let t=a.estimate,n=[a.carrier,a.trackingNumber].filter(_).join(" \xB7 "),d=o("div",{class:"aparte-order__delivery-text"},t?m(e,"div","aparte-order__estimate",()=>Ne(e.config,t)):null,n?o("div",{class:"aparte-order__carrier",text:n}):null);return M(e,Fe,()=>g(e.config,"cardsOrderDelivery"),d,Pe(e,r))}function Br(e,r){let a=(n,d="")=>o("span",{class:`aparte-order__info-text${d?` ${d}`:""}`,text:n}),t=[r.payment?M(e,Le,()=>g(e.config,"cardsOrderPayment"),a(r.payment)):null,Dr(e,r),r.shippingAddress?M(e,Ve,()=>g(e.config,"cardsOrderAddress"),a(r.shippingAddress,"aparte-order__multiline")):null,r.customer?M(e,He,()=>g(e.config,"cardsOrderCustomer"),a(r.customer,"aparte-order__multiline")):null,...r.facts.map(n=>M(e,qe,()=>n.label,a(n.value)))].filter(_);return t.length?o("dl",{class:"aparte-order__section aparte-order__infos"},...t):null}function ze(e,r){return o("time",{class:"aparte-order__leaf",attrs:{datetime:r.date.toISOString()}},m(e,"span","aparte-order__leaf-month",()=>x(e.config,{month:"short"}).format(r.date)),m(e,"span","aparte-order__leaf-day",()=>x(e.config,{day:"numeric"}).format(r.date)),m(e,"span","aparte-order__leaf-weekday",()=>x(e.config,{weekday:"short"}).format(r.date)))}function Pr(e,r){let a=r.booking;if(!a)return null;let{config:t}=e,n=o("div",{class:"aparte-order__section aparte-order__booking"}),{start:d,end:s}=a;if(d)if(s!==void 0&&G(d.date,s.date)>0){let h=G(d.date,s.date),v=(k,b)=>o("div",{class:"aparte-order__stay-side"},J(e,b),ze(e,k),k.allDay?null:m(e,"span","aparte-order__stay-time",()=>x(t,L).format(k.date)));n.append(o("div",{class:"aparte-order__stay"},v(d,"cardsOrderStart"),o("div",{class:"aparte-order__stay-span"},w(Ue,"aparte-rich-card__glyph aparte-order__stay-arrow"),m(e,"span","aparte-order__nights",()=>j(t,"cardsOrderNight","cardsOrderNights",h))),v(s,"cardsOrderEnd")))}else{let h=d.allDay?null:m(e,"span","aparte-order__day-hours",()=>s&&!s.allDay&&s.date>d.date?te(x(t,L),d.date,s.date):x(t,L).format(d.date));n.append(o("div",{class:"aparte-order__day"},ze(e,d),o("div",{class:"aparte-order__day-text"},m(e,"span","aparte-order__day-name",()=>{let v=x(t,{weekday:"long",day:"numeric",month:"long",...d.date.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{}}).format(d.date);return v.charAt(0).toLocaleUpperCase(R(t))+v.slice(1)}),h)))}let l=[a.location?o("div",{class:"aparte-order__place"},o("dt",{class:"aparte-order__place-label"},w(Ge,"aparte-rich-card__glyph aparte-order__info-glyph"),J(e,"cardsOrderWhere")),o("dd",{class:"aparte-order__place-value",text:a.location})):null,a.guests!==void 0?o("div",{class:"aparte-order__place"},o("dt",{class:"aparte-order__place-label"},w($e,"aparte-rich-card__glyph aparte-order__info-glyph"),J(e,"cardsOrderGuestsLabel")),m(e,"dd","aparte-order__place-value",()=>j(t,"cardsOrderGuest","cardsOrderGuests",a.guests))):null].filter(_);return l.length&&n.append(o("dl",{class:"aparte-order__places"},...l)),n.childNodes.length?n:null}function Nr(e,r){let a=Be(e,r);return[jr(e,r),Pr(e,r),Sr(e,r),Ar(e,r),Br(e,r),a?o("div",{class:"aparte-order__foot"},a):null].filter(_)}function Rr(e,r){let{config:a}=e,t=d=>m(e,"span","aparte-order__row-part",d),n=r.booking;return[n?.start?t(()=>ne(a,n.start,n.end)):null,n?.guests!==void 0?t(()=>j(a,"cardsOrderGuest","cardsOrderGuests",n.guests)):null,r.itemCount>0?t(()=>j(a,"cardsOrderItem","cardsOrderItems",r.itemCount)):null,r.total!==void 0?t(()=>O(a,r,r.total)):null].filter(_)}function Er(e,r){let a=o("div",{class:"aparte-order__title"});if(r.url){let n=o("a",{class:"aparte-order__link",attrs:{href:r.url,target:"_blank",rel:"noopener noreferrer"}});e.bind(n,()=>A(e.config,r,!0)),a.append(n)}else e.bind(a,()=>A(e.config,r,!0));let t=Rr(e,r);return[o("div",{class:"aparte-order__row",attrs:{"data-linked":r.url!==void 0}},$(r),o("div",{class:"aparte-order__row-main"},a,t.length?o("div",{class:"aparte-order__row-meta"},...t):null),oe(e,r),r.url?w(Oe,"aparte-rich-card__glyph aparte-order__chevron"):null)]}function C(e,r,a,t,n){let d=typeof r=="function"?r:()=>g(e.config,r);return o("div",{class:`aparte-order__keyfact aparte-order__keyfact--${t}`},m(e,"dt","aparte-order__keyfact-label",d),o("dd",{class:"aparte-order__keyfact-value"},m(e,"span","aparte-order__keyfact-text",a),n?m(e,"span","aparte-order__keyfact-note",n):null))}function Ir(e,r){let{config:a}=e,t=r.status&&"status"in r.status?r.status.status:void 0,n=t?Xe[t]:"success",d=[r.title&&r.reference?r.title:null,r.reference?ae(r.reference):r.title??null].filter(_),s=r.booking,l=r.delivery?.estimate,c=[r.total!==void 0?C(e,"cardsOrderTotal",()=>O(a,r,r.total),"total",r.itemCount>0?()=>j(a,"cardsOrderItem","cardsOrderItems",r.itemCount):void 0):null,l?C(e,"cardsOrderDelivery",()=>Ne(a,l),"delivery",r.delivery?.carrier?()=>r.delivery.carrier:void 0):null,s?.start?C(e,"cardsOrderWhen",()=>ne(a,s.start,s.end),"when",s.end&&G(s.start.date,s.end.date)>0?()=>j(a,"cardsOrderNight","cardsOrderNights",G(s.start.date,s.end.date)):void 0):null,s?.location?C(e,"cardsOrderWhere",()=>s.location,"where"):null,s?.guests!==void 0?C(e,"cardsOrderGuestsLabel",()=>j(a,"cardsOrderGuest","cardsOrderGuests",s.guests),"guests"):null,...r.facts.slice(0,rr).map(k=>C(e,()=>k.label,()=>k.value,"own"))].filter(_),h=[Be(e,r,!0),Pe(e,r)].filter(_),v=r.status&&"text"in r.status?oe(e,r):null;return[o("div",{class:"aparte-order__confirm",attrs:{"data-tone":n}},w(Ke(n),"aparte-order__seal"),m(e,"div","aparte-order__headline",()=>Or(a,r)),d.length?o("div",{class:"aparte-order__ref",text:d.join(" \xB7 ")}):null,v,c.length?o("dl",{class:"aparte-order__keyfacts"},...c):null,h.length?o("div",{class:"aparte-order__confirm-actions"},...h):null)]}function Mr(e,r){return r.variant==="compact"?Er(r,e):r.variant==="confirmation"?Ir(r,e):Nr(r,e)}function Fr(e,r){let a=(d,s="text")=>o("span",{class:`aparte-skeleton aparte-skeleton--${s} ${d}`,attrs:{"aria-hidden":"true"}}),t=e?.reference||e?.title?m(r,"div","aparte-order__title",()=>A(r.config,e,!0)):a("aparte-order__sk-title");if(r.variant==="compact")return[o("div",{class:"aparte-order__row"},$(e),o("div",{class:"aparte-order__row-main"},t,a("aparte-order__sk-meta")),a("aparte-order__sk-pill","rect"))];if(r.variant==="confirmation")return[o("div",{class:"aparte-order__confirm aparte-order__confirm--skeleton"},a("aparte-order__sk-seal","circle"),a("aparte-order__sk-headline"),e?.reference?o("div",{class:"aparte-order__ref",text:ae(e.reference)}):a("aparte-order__sk-ref"),o("div",{class:"aparte-order__keyfacts"},a("aparte-order__sk-fact","rect"),a("aparte-order__sk-fact","rect")))];let n=()=>o("div",{class:"aparte-order__line aparte-order__line--skeleton"},a("aparte-order__sk-thumb","rect"),o("div",{class:"aparte-order__line-main"},a("aparte-order__sk-line"),a("aparte-order__sk-line aparte-order__sk-line--short")),a("aparte-order__sk-price"));return[o("div",{class:"aparte-order__head"},$(e),o("div",{class:"aparte-order__heading"},t,a("aparte-order__sk-date")),a("aparte-order__sk-pill","rect")),o("div",{class:"aparte-order__section aparte-order__items"},o("div",{class:"aparte-order__lines",attrs:{"data-thumbs":""}},n(),n(),n())),o("div",{class:"aparte-order__section aparte-order__totals"},o("div",{class:"aparte-order__sum"},a("aparte-order__sk-label"),a("aparte-order__sk-price")),o("div",{class:"aparte-order__sum aparte-order__sum--total"},a("aparte-order__sk-label"),a("aparte-order__sk-price")))]}function Lr(e,r){let{config:a}=r,t=e.booking,n=e.status?"status"in e.status?Ae(a,e).toLocaleLowerCase(R(a)):e.status.text:void 0,d=[t?.start?ne(a,t.start,t.end):void 0,t?.location,t?.guests!==void 0?j(a,"cardsOrderGuest","cardsOrderGuests",t.guests):void 0,e.itemCount>0?j(a,"cardsOrderItem","cardsOrderItems",e.itemCount):void 0,e.total!==void 0?g(a,"cardsOrderFallbackTotal",{amount:O(a,e,e.total)}):void 0,n].filter(_),s=A(a,e,!1);return d.length?`${s} \u2014 ${d.join(", ")}`:s}var Gr=ve({name:"order",variants:["receipt","compact","confirmation"],styles:Ye,icon:we,normalize:wr,render:Mr,skeleton:Fr,label:(e,r)=>A(r.config,e,!1),fallback:Lr,partial:e=>{let r=p(e.reference??e.orderNumber??e.order_number??e.orderId??e.order_id??e.bookingId??e.booking_id??e.confirmation??e.number??e.id)?.replace(/^#\s*/,""),a=["bookingId","booking_id","reservationId","reservation_id"].some(t=>e[t]!==void 0)||T(e.kind)==="booking";return!r&&!a?null:{kind:a?"booking":"order",...r?{reference:r}:{}}}});function Hr(e={}){return Gr.setup(e)}export{G as nightsOf,Gr as orderCard,wr as readOrder,Te as readWhen,Hr as setupOrderCard};
|
|
839
|
+
//# sourceMappingURL=order-YISYH73K.js.map
|