@aparte/n8n-chat 0.1.0 → 0.3.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/README.md +230 -16
- package/dist/cards.d.ts +3 -0
- package/dist/cdn/chunks/chunk-E55C7UF2.js +2 -0
- package/dist/cdn/chunks/chunk-E55C7UF2.js.map +7 -0
- package/dist/cdn/chunks/chunk-F2QIT4NR.js +206 -0
- package/dist/cdn/chunks/chunk-F2QIT4NR.js.map +7 -0
- package/dist/cdn/chunks/chunk-F2TNPBN3.js +2 -0
- package/dist/cdn/chunks/chunk-F2TNPBN3.js.map +7 -0
- package/dist/cdn/chunks/chunk-KY2H3HIJ.js +2 -0
- package/dist/cdn/chunks/chunk-KY2H3HIJ.js.map +7 -0
- package/dist/cdn/chunks/chunk-VLHCX6EH.js +356 -0
- package/dist/cdn/chunks/chunk-VLHCX6EH.js.map +7 -0
- package/dist/cdn/chunks/chunk-XC2SVYFR.js +2 -0
- package/dist/cdn/chunks/chunk-XC2SVYFR.js.map +7 -0
- package/dist/cdn/chunks/de-M5OVUL5F.js +2 -0
- package/dist/cdn/chunks/de-M5OVUL5F.js.map +7 -0
- package/dist/cdn/chunks/es-JUSLSPF7.js +2 -0
- package/dist/cdn/chunks/es-JUSLSPF7.js.map +7 -0
- package/dist/cdn/chunks/fr-Z2Y3375Z.js +2 -0
- package/dist/cdn/chunks/fr-Z2Y3375Z.js.map +7 -0
- package/dist/cdn/chunks/{highlight-HDJ3ROJ4.js → highlight-ADUWBKTT.js} +2 -2
- package/dist/cdn/chunks/{highlight-HDJ3ROJ4.js.map → highlight-ADUWBKTT.js.map} +1 -1
- package/dist/cdn/chunks/it-N53LIIX5.js +2 -0
- package/dist/cdn/chunks/it-N53LIIX5.js.map +7 -0
- package/dist/cdn/chunks/items-GTJKLFZT.js +467 -0
- package/dist/cdn/chunks/items-GTJKLFZT.js.map +7 -0
- package/dist/cdn/chunks/ja-LJHMBKJ4.js +2 -0
- package/dist/cdn/chunks/ja-LJHMBKJ4.js.map +7 -0
- package/dist/cdn/chunks/ko-XAQOC75B.js +2 -0
- package/dist/cdn/chunks/ko-XAQOC75B.js.map +7 -0
- package/dist/cdn/chunks/link-L4C4K5GE.js +493 -0
- package/dist/cdn/chunks/link-L4C4K5GE.js.map +7 -0
- package/dist/cdn/chunks/media-EOQEOMXK.js +797 -0
- package/dist/cdn/chunks/media-EOQEOMXK.js.map +7 -0
- package/dist/cdn/chunks/order-T5L422AO.js +839 -0
- package/dist/cdn/chunks/order-T5L422AO.js.map +7 -0
- package/dist/cdn/chunks/place-UD2C3U5F.js +689 -0
- package/dist/cdn/chunks/place-UD2C3U5F.js.map +7 -0
- package/dist/cdn/chunks/plan-JJ3Z64NU.js +542 -0
- package/dist/cdn/chunks/plan-JJ3Z64NU.js.map +7 -0
- package/dist/cdn/chunks/product-FNGKWEQP.js +676 -0
- package/dist/cdn/chunks/product-FNGKWEQP.js.map +7 -0
- package/dist/cdn/chunks/pt-BR-KMZM3WTU.js +2 -0
- package/dist/cdn/chunks/pt-BR-KMZM3WTU.js.map +7 -0
- package/dist/cdn/chunks/ru-3AG5HYY2.js +2 -0
- package/dist/cdn/chunks/ru-3AG5HYY2.js.map +7 -0
- package/dist/cdn/chunks/score-3CGZEPWP.js +882 -0
- package/dist/cdn/chunks/score-3CGZEPWP.js.map +7 -0
- package/dist/cdn/chunks/stats-FGZCRFFK.js +491 -0
- package/dist/cdn/chunks/stats-FGZCRFFK.js.map +7 -0
- package/dist/cdn/chunks/stock-E72GAUMB.js +707 -0
- package/dist/cdn/chunks/stock-E72GAUMB.js.map +7 -0
- package/dist/cdn/chunks/weather-5ZNWC2WM.js +615 -0
- package/dist/cdn/chunks/weather-5ZNWC2WM.js.map +7 -0
- package/dist/cdn/chunks/zh-CN-DL6ZWLGA.js +2 -0
- package/dist/cdn/chunks/zh-CN-DL6ZWLGA.js.map +7 -0
- package/dist/cdn/n8n-chat.js +57 -51
- package/dist/cdn/n8n-chat.js.map +4 -4
- package/dist/create-chat.d.ts +43 -8
- package/dist/index.d.ts +2 -0
- package/dist/index.js +87 -41
- package/dist/index.js.map +1 -1
- package/dist/strings.d.ts +1 -1
- package/dist/style.css +9 -1
- package/dist/theme.css +8 -0
- package/package.json +7 -6
- package/dist/cdn/chunks/chunk-MU6PIUJC.js +0 -206
- package/dist/cdn/chunks/chunk-MU6PIUJC.js.map +0 -7
- package/dist/cdn/chunks/de-WJNL5YNK.js +0 -2
- package/dist/cdn/chunks/de-WJNL5YNK.js.map +0 -7
- package/dist/cdn/chunks/es-DV5N3CXP.js +0 -2
- package/dist/cdn/chunks/es-DV5N3CXP.js.map +0 -7
- package/dist/cdn/chunks/fr-YU75PBOR.js +0 -2
- package/dist/cdn/chunks/fr-YU75PBOR.js.map +0 -7
- package/dist/cdn/chunks/it-DZTHWNO3.js +0 -2
- package/dist/cdn/chunks/it-DZTHWNO3.js.map +0 -7
- package/dist/cdn/chunks/ja-QO442LBN.js +0 -2
- package/dist/cdn/chunks/ja-QO442LBN.js.map +0 -7
- package/dist/cdn/chunks/ko-EGFZJCXQ.js +0 -2
- package/dist/cdn/chunks/ko-EGFZJCXQ.js.map +0 -7
- package/dist/cdn/chunks/pt-BR-526LHI67.js +0 -2
- package/dist/cdn/chunks/pt-BR-526LHI67.js.map +0 -7
- package/dist/cdn/chunks/ru-5WNEMKNP.js +0 -2
- package/dist/cdn/chunks/ru-5WNEMKNP.js.map +0 -7
- package/dist/cdn/chunks/zh-CN-ABSHNLG6.js +0 -2
- package/dist/cdn/chunks/zh-CN-ABSHNLG6.js.map +0 -7
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
import{a as I}from"./chunk-XC2SVYFR.js";import{a as Y}from"./chunk-KY2H3HIJ.js";import{a as i,b as k,c as D,e as b,f,h as $,i as v,o as V,q as P,v as S}from"./chunk-VLHCX6EH.js";import"./chunk-F2QIT4NR.js";import"./chunk-XAWE4EAK.js";var m=a=>`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg">${a}</svg>`,T=m('<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.4"/>'),te=m('<path d="M5.2 4h3l1.6 4-2 1.3a10.5 10.5 0 0 0 5 5l1.3-2 4 1.6v3a2 2 0 0 1-2.1 2A15.2 15.2 0 0 1 3.2 6.1 2 2 0 0 1 5.2 4z"/>'),re=m('<circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c2.4 2.4 3.5 5.3 3.5 8.5s-1.1 6.1-3.5 8.5c-2.4-2.4-3.5-5.3-3.5-8.5s1.1-6.1 3.5-8.5z"/>'),_e=m('<path d="M12 2.8 21.2 12 12 21.2 2.8 12z"/><path d="M9.2 14.6v-2.4a1.4 1.4 0 0 1 1.4-1.4h4.6M13.4 8.8l1.9 2-1.9 2"/>'),me=m('<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>'),ge={restaurant:m('<path d="M7 3v18M4.6 3v4.8A2.4 2.4 0 0 0 7 10.2a2.4 2.4 0 0 0 2.4-2.4V3M17 21V3c-2.3 1.4-3.5 4-3.5 7.2V13H17"/>'),cafe:m('<path d="M4.5 9h11v5.5a4.5 4.5 0 0 1-4.5 4.5H9a4.5 4.5 0 0 1-4.5-4.5z"/><path d="M15.5 10.5h1.3a2.6 2.6 0 0 1 0 5.2h-1.6M8 3.5c-.6.8-.6 1.7 0 2.5M11.5 3.5c-.6.8-.6 1.7 0 2.5"/>'),bar:m('<path d="M5 4h14l-7 8z"/><path d="M12 12v8M8.5 20h7M8.6 8h6.8"/>'),hotel:m('<path d="M3 18.5V6M3 14h18v4.5M21 14v-2.5a3 3 0 0 0-3-3h-7V14"/><circle cx="7" cy="10.5" r="1.8"/>'),shop:m('<path d="M5.5 8h13l-1 12.5h-11z"/><path d="M9 10V7a3 3 0 0 1 6 0v3"/>'),museum:m('<path d="M3.5 9.5 12 4l8.5 5.5zM5 20.5h14M6.5 11.5v6.5M10 11.5v6.5M14 11.5v6.5M17.5 11.5v6.5"/>'),park:m('<path d="M12 21v-5M12 3 6.5 11h3L6 16h12l-3.5-5h3z"/>'),gym:m('<path d="M6.5 7v10M17.5 7v10M3.5 9.5v5M20.5 9.5v5M6.5 12h11"/>'),pharmacy:m('<rect x="4" y="4" width="16" height="16" rx="4"/><path d="M12 8.5v7M8.5 12h7"/>'),place:T};function U(a){return ge[a]}var ve=`/* =========================================
|
|
2
|
+
The place card \u2014 @aparte/plugin-cards/place
|
|
3
|
+
=========================================
|
|
4
|
+
Three variants of one card, chosen by \`data-variant\` on its root:
|
|
5
|
+
card a tile: the photo with its category, the name, the rating, whether it is
|
|
6
|
+
open, the address, three buttons. Several scroll sideways as tiles.
|
|
7
|
+
compact one row: a thumbnail, the name and the distance, the rating, the status.
|
|
8
|
+
Several are stacked rows in one card.
|
|
9
|
+
detail one place in full: the tile's head, the buttons, the ways in (address,
|
|
10
|
+
phone, site), the week's hours with today marked, the tags.
|
|
11
|
+
Every colour comes from core's tokens, or from a \`--aparte-place-*\` token here: the
|
|
12
|
+
three status inks and one hue per kind of place, which tint the placeholder and the
|
|
13
|
+
marker. A theme repaints the card by setting them.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
.aparte-place-card {
|
|
17
|
+
/* What "open", "closes soon" and "closed" are written in: the derived inks, which are
|
|
18
|
+
readable as text on either ground. */
|
|
19
|
+
--aparte-place-open: var(--aparte-success-ink);
|
|
20
|
+
--aparte-place-soon: var(--aparte-warning-ink);
|
|
21
|
+
--aparte-place-closed: var(--aparte-error-ink);
|
|
22
|
+
--aparte-place-media-ratio: 16 / 9;
|
|
23
|
+
--aparte-place-detail-ratio: 2 / 1;
|
|
24
|
+
--aparte-place-thumb-size: 3.5rem;
|
|
25
|
+
--aparte-place-on-hue: #ffffff;
|
|
26
|
+
|
|
27
|
+
/* One hue per kind of place: the marker on the placeholder, the badge's glyph. */
|
|
28
|
+
--aparte-place-kind-restaurant: #e8710a;
|
|
29
|
+
--aparte-place-kind-cafe: #a0612b;
|
|
30
|
+
--aparte-place-kind-bar: #9c3fd1;
|
|
31
|
+
--aparte-place-kind-hotel: #2f6fdf;
|
|
32
|
+
--aparte-place-kind-shop: #d6336c;
|
|
33
|
+
--aparte-place-kind-museum: #5b5bd6;
|
|
34
|
+
--aparte-place-kind-park: #2f9e44;
|
|
35
|
+
--aparte-place-kind-gym: #e03131;
|
|
36
|
+
--aparte-place-kind-pharmacy: #0c9488;
|
|
37
|
+
--aparte-place-kind-place: var(--aparte-primary);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* A tile reads its kind's hue once; everything inside it says \`--aparte-place-hue\`. */
|
|
41
|
+
.aparte-place { --aparte-place-hue: var(--aparte-place-kind-place); }
|
|
42
|
+
.aparte-place[data-kind="restaurant"] { --aparte-place-hue: var(--aparte-place-kind-restaurant); }
|
|
43
|
+
.aparte-place[data-kind="cafe"] { --aparte-place-hue: var(--aparte-place-kind-cafe); }
|
|
44
|
+
.aparte-place[data-kind="bar"] { --aparte-place-hue: var(--aparte-place-kind-bar); }
|
|
45
|
+
.aparte-place[data-kind="hotel"] { --aparte-place-hue: var(--aparte-place-kind-hotel); }
|
|
46
|
+
.aparte-place[data-kind="shop"] { --aparte-place-hue: var(--aparte-place-kind-shop); }
|
|
47
|
+
.aparte-place[data-kind="museum"] { --aparte-place-hue: var(--aparte-place-kind-museum); }
|
|
48
|
+
.aparte-place[data-kind="park"] { --aparte-place-hue: var(--aparte-place-kind-park); }
|
|
49
|
+
.aparte-place[data-kind="gym"] { --aparte-place-hue: var(--aparte-place-kind-gym); }
|
|
50
|
+
.aparte-place[data-kind="pharmacy"] { --aparte-place-hue: var(--aparte-place-kind-pharmacy); }
|
|
51
|
+
|
|
52
|
+
/* A single tile is narrower than the card's default: it is a photo and five lines. */
|
|
53
|
+
.aparte-place-card[data-variant="card"] { --aparte-rich-card-max-inline-size: 22rem; }
|
|
54
|
+
|
|
55
|
+
/* \u2500\u2500 The place \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 */
|
|
56
|
+
|
|
57
|
+
.aparte-place {
|
|
58
|
+
position: relative;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
min-inline-size: 0;
|
|
62
|
+
color: var(--aparte-text);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.aparte-place__body {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex: 1;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: var(--aparte-space-2);
|
|
70
|
+
min-inline-size: 0;
|
|
71
|
+
padding: var(--aparte-space-6) var(--aparte-space-7) var(--aparte-space-7);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.aparte-place__name {
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
font-size: var(--aparte-font-size-lg);
|
|
77
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
78
|
+
letter-spacing: -0.01em;
|
|
79
|
+
line-height: 1.25;
|
|
80
|
+
text-overflow: ellipsis;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.aparte-place__link {
|
|
85
|
+
color: inherit;
|
|
86
|
+
text-decoration: none;
|
|
87
|
+
border-radius: var(--aparte-radius-xs);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.aparte-place__link:hover {
|
|
91
|
+
text-decoration: underline;
|
|
92
|
+
text-decoration-thickness: 1px;
|
|
93
|
+
text-underline-offset: 0.18em;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.aparte-place__link:focus-visible {
|
|
97
|
+
outline: var(--aparte-focus-outline-width) solid var(--aparte-border-focus);
|
|
98
|
+
outline-offset: var(--aparte-focus-outline-offset);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* A tile, a row and a lone card are one target: the name's link covers the whole of it,
|
|
102
|
+
and its buttons sit above that cover. The ring is then drawn around the target, inset,
|
|
103
|
+
because the card clips what passes its edge. */
|
|
104
|
+
.aparte-place--tile .aparte-place__name .aparte-place__link::after,
|
|
105
|
+
.aparte-place__row .aparte-place__name .aparte-place__link::after,
|
|
106
|
+
.aparte-place-card[data-variant="card"] > .aparte-place .aparte-place__name .aparte-place__link::after {
|
|
107
|
+
content: "";
|
|
108
|
+
position: absolute;
|
|
109
|
+
inset: 0;
|
|
110
|
+
border-radius: inherit;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.aparte-place--tile .aparte-place__name .aparte-place__link:focus-visible,
|
|
114
|
+
.aparte-place__row .aparte-place__name .aparte-place__link:focus-visible,
|
|
115
|
+
.aparte-place-card[data-variant="card"] > .aparte-place .aparte-place__name .aparte-place__link:focus-visible {
|
|
116
|
+
outline: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.aparte-place--tile .aparte-place__name .aparte-place__link:focus-visible::after,
|
|
120
|
+
.aparte-place__row .aparte-place__name .aparte-place__link:focus-visible::after,
|
|
121
|
+
.aparte-place-card[data-variant="card"] > .aparte-place .aparte-place__name .aparte-place__link:focus-visible::after {
|
|
122
|
+
outline: var(--aparte-focus-outline-width) solid var(--aparte-border-focus);
|
|
123
|
+
outline-offset: calc(var(--aparte-focus-outline-width) * -1);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.aparte-place--tile:hover .aparte-place__name .aparte-place__link,
|
|
127
|
+
.aparte-place__row:hover .aparte-place__name .aparte-place__link {
|
|
128
|
+
text-decoration: underline;
|
|
129
|
+
text-decoration-thickness: 1px;
|
|
130
|
+
text-underline-offset: 0.18em;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.aparte-place__dot {
|
|
134
|
+
flex: none;
|
|
135
|
+
color: var(--aparte-text-muted);
|
|
136
|
+
opacity: 0.7;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.aparte-place__score {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-wrap: wrap;
|
|
142
|
+
align-items: center;
|
|
143
|
+
column-gap: var(--aparte-space-2);
|
|
144
|
+
min-inline-size: 0;
|
|
145
|
+
color: var(--aparte-text-muted);
|
|
146
|
+
font-size: var(--aparte-font-size-sm);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.aparte-place__price {
|
|
150
|
+
white-space: nowrap;
|
|
151
|
+
letter-spacing: 0.04em;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.aparte-place__price-on {
|
|
155
|
+
color: var(--aparte-text);
|
|
156
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.aparte-place__price-off { opacity: 0.35; }
|
|
160
|
+
|
|
161
|
+
.aparte-place__category {
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
text-overflow: ellipsis;
|
|
164
|
+
white-space: nowrap;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* \u2500\u2500 Open, closes soon, closed \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 */
|
|
168
|
+
|
|
169
|
+
.aparte-place__status {
|
|
170
|
+
--aparte-place-status: var(--aparte-place-open);
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-wrap: wrap;
|
|
173
|
+
align-items: center;
|
|
174
|
+
column-gap: var(--aparte-space-2);
|
|
175
|
+
margin: 0;
|
|
176
|
+
color: var(--aparte-text-muted);
|
|
177
|
+
font-size: var(--aparte-font-size-sm);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.aparte-place__status[data-status="soon"] { --aparte-place-status: var(--aparte-place-soon); }
|
|
181
|
+
.aparte-place__status[data-status="closed"] { --aparte-place-status: var(--aparte-place-closed); }
|
|
182
|
+
|
|
183
|
+
.aparte-place__status-dot {
|
|
184
|
+
position: relative;
|
|
185
|
+
flex: none;
|
|
186
|
+
inline-size: 0.5rem;
|
|
187
|
+
block-size: 0.5rem;
|
|
188
|
+
margin-inline-end: var(--aparte-space-1);
|
|
189
|
+
border-radius: var(--aparte-radius-full);
|
|
190
|
+
background: var(--aparte-place-status);
|
|
191
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--aparte-place-status) 20%, transparent);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* An open place breathes: a ring leaves the dot every few seconds. Still under reduced motion. */
|
|
195
|
+
.aparte-place__status[data-status="open"] .aparte-place__status-dot::after {
|
|
196
|
+
content: "";
|
|
197
|
+
position: absolute;
|
|
198
|
+
inset: 0;
|
|
199
|
+
border-radius: inherit;
|
|
200
|
+
background: var(--aparte-place-status);
|
|
201
|
+
animation: aparte-place-pulse 2.6s ease-out infinite;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.aparte-place__state {
|
|
205
|
+
color: var(--aparte-place-status);
|
|
206
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@keyframes aparte-place-pulse {
|
|
210
|
+
0% { opacity: 0.55; transform: scale(1); }
|
|
211
|
+
70%, 100% { opacity: 0; transform: scale(2.6); }
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* \u2500\u2500 Address and the lines with a glyph \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 */
|
|
215
|
+
|
|
216
|
+
.aparte-place__address {
|
|
217
|
+
display: flex;
|
|
218
|
+
align-items: center;
|
|
219
|
+
gap: var(--aparte-space-2);
|
|
220
|
+
min-inline-size: 0;
|
|
221
|
+
margin: 0;
|
|
222
|
+
color: var(--aparte-text-muted);
|
|
223
|
+
font-size: var(--aparte-font-size-sm);
|
|
224
|
+
white-space: nowrap;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.aparte-place__address-text {
|
|
228
|
+
min-inline-size: 0;
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
text-overflow: ellipsis;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.aparte-place__distance {
|
|
234
|
+
flex: none;
|
|
235
|
+
color: var(--aparte-text);
|
|
236
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
237
|
+
white-space: nowrap;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.aparte-place__line-glyph {
|
|
241
|
+
--aparte-rich-card-glyph-size: 1rem;
|
|
242
|
+
color: var(--aparte-text-muted);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* \u2500\u2500 The photo, or its placeholder \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 */
|
|
246
|
+
|
|
247
|
+
.aparte-place__media {
|
|
248
|
+
position: relative;
|
|
249
|
+
flex: none;
|
|
250
|
+
overflow: hidden;
|
|
251
|
+
isolation: isolate;
|
|
252
|
+
background: var(--aparte-surface-2);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.aparte-place__media--wide { aspect-ratio: var(--aparte-place-media-ratio); }
|
|
256
|
+
|
|
257
|
+
.aparte-place__img {
|
|
258
|
+
position: absolute;
|
|
259
|
+
inset: 0;
|
|
260
|
+
z-index: 1;
|
|
261
|
+
display: block;
|
|
262
|
+
inline-size: 100%;
|
|
263
|
+
block-size: 100%;
|
|
264
|
+
object-fit: cover;
|
|
265
|
+
transition: transform var(--aparte-duration-slower, 0.3s) ease;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.aparte-place--tile:hover .aparte-place__img,
|
|
269
|
+
.aparte-place-card[data-variant="card"] > .aparte-place:hover .aparte-place__img {
|
|
270
|
+
transform: scale(1.04);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* No photo: a soft map in the kind's hue \u2014 two avenues, a grid of streets, a glow \u2014 and
|
|
274
|
+
the kind's marker standing on it. Decoration, drawn by the sheet: no map tile is fetched. */
|
|
275
|
+
.aparte-place__placeholder {
|
|
276
|
+
--aparte-place-street: color-mix(in oklab, var(--aparte-surface-1) 72%, transparent);
|
|
277
|
+
--aparte-place-avenue: color-mix(in oklab, var(--aparte-surface-1) 92%, transparent);
|
|
278
|
+
position: absolute;
|
|
279
|
+
inset: 0;
|
|
280
|
+
display: grid;
|
|
281
|
+
place-items: center;
|
|
282
|
+
background:
|
|
283
|
+
radial-gradient(circle at 50% 48%, color-mix(in oklab, var(--aparte-place-hue) 24%, transparent) 0 14%, transparent 48%),
|
|
284
|
+
linear-gradient(118deg, transparent 0 36%, var(--aparte-place-avenue) 36% 39.5%, transparent 39.5%),
|
|
285
|
+
linear-gradient(22deg, transparent 0 63%, var(--aparte-place-avenue) 63% 65.5%, transparent 65.5%),
|
|
286
|
+
repeating-linear-gradient(118deg, transparent 0 22px, var(--aparte-place-street) 22px 24px),
|
|
287
|
+
repeating-linear-gradient(28deg, transparent 0 31px, var(--aparte-place-street) 31px 33px),
|
|
288
|
+
color-mix(in oklab, var(--aparte-place-hue) 13%, var(--aparte-surface-2));
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* The marker's shadow on the ground. */
|
|
292
|
+
.aparte-place__placeholder::after {
|
|
293
|
+
content: "";
|
|
294
|
+
position: absolute;
|
|
295
|
+
inset-block-start: calc(50% + 1.45rem);
|
|
296
|
+
inset-inline-start: 50%;
|
|
297
|
+
inline-size: 1.4rem;
|
|
298
|
+
block-size: 0.4rem;
|
|
299
|
+
margin-inline-start: -0.7rem;
|
|
300
|
+
border-radius: 50%;
|
|
301
|
+
background: rgb(0 0 0 / 0.22);
|
|
302
|
+
filter: blur(2px);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* A drop pin: a square with three round corners, turned so the sharp one points down. */
|
|
306
|
+
.aparte-place__marker {
|
|
307
|
+
display: grid;
|
|
308
|
+
place-items: center;
|
|
309
|
+
inline-size: 2.75rem;
|
|
310
|
+
block-size: 2.75rem;
|
|
311
|
+
margin-block-end: 0.9rem;
|
|
312
|
+
border-radius: 50% 50% 50% 0;
|
|
313
|
+
background: var(--aparte-place-hue);
|
|
314
|
+
color: var(--aparte-place-on-hue);
|
|
315
|
+
box-shadow:
|
|
316
|
+
0 0 0 3px color-mix(in oklab, var(--aparte-surface-1) 85%, transparent),
|
|
317
|
+
0 8px 16px -6px color-mix(in oklab, var(--aparte-place-hue) 70%, black);
|
|
318
|
+
transform: rotate(-45deg);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.aparte-place__marker-glyph {
|
|
322
|
+
--aparte-rich-card-glyph-size: 1.3rem;
|
|
323
|
+
transform: rotate(45deg);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.aparte-place__media--thumb {
|
|
327
|
+
inline-size: var(--aparte-place-thumb-size);
|
|
328
|
+
block-size: var(--aparte-place-thumb-size);
|
|
329
|
+
border-radius: var(--aparte-radius-lg);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/* In a thumbnail the placeholder is only the kind's glyph on its tint. */
|
|
333
|
+
.aparte-place__media--thumb .aparte-place__placeholder {
|
|
334
|
+
background: color-mix(in oklab, var(--aparte-place-hue) 15%, var(--aparte-surface-1));
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.aparte-place__media--thumb .aparte-place__placeholder::after { content: none; }
|
|
338
|
+
|
|
339
|
+
.aparte-place__media--thumb .aparte-place__marker {
|
|
340
|
+
inline-size: auto;
|
|
341
|
+
block-size: auto;
|
|
342
|
+
margin: 0;
|
|
343
|
+
border-radius: 0;
|
|
344
|
+
background: none;
|
|
345
|
+
box-shadow: none;
|
|
346
|
+
color: var(--aparte-place-hue);
|
|
347
|
+
transform: none;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.aparte-place__media--thumb .aparte-place__marker-glyph {
|
|
351
|
+
--aparte-rich-card-glyph-size: 1.5rem;
|
|
352
|
+
transform: none;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* The category, over the photo: a frosted chip, which reads on any picture. */
|
|
356
|
+
.aparte-place__badge {
|
|
357
|
+
position: absolute;
|
|
358
|
+
inset-block-start: var(--aparte-space-5);
|
|
359
|
+
inset-inline-start: var(--aparte-space-5);
|
|
360
|
+
z-index: 2;
|
|
361
|
+
display: inline-flex;
|
|
362
|
+
align-items: center;
|
|
363
|
+
gap: var(--aparte-space-2);
|
|
364
|
+
max-inline-size: calc(100% - var(--aparte-space-5) * 2);
|
|
365
|
+
padding-block: var(--aparte-space-2);
|
|
366
|
+
padding-inline: var(--aparte-space-3) var(--aparte-space-4);
|
|
367
|
+
border-radius: var(--aparte-radius-full);
|
|
368
|
+
background: color-mix(in oklab, var(--aparte-surface-1) 86%, transparent);
|
|
369
|
+
backdrop-filter: blur(8px) saturate(1.4);
|
|
370
|
+
box-shadow: 0 1px 4px rgb(0 0 0 / 0.14);
|
|
371
|
+
color: var(--aparte-text);
|
|
372
|
+
font-size: var(--aparte-font-size-sm);
|
|
373
|
+
font-weight: var(--aparte-font-weight-medium);
|
|
374
|
+
line-height: 1.2;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.aparte-place__badge-glyph {
|
|
378
|
+
--aparte-rich-card-glyph-size: 0.95rem;
|
|
379
|
+
color: var(--aparte-place-hue);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/* \u2500\u2500 Buttons \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 */
|
|
383
|
+
|
|
384
|
+
.aparte-place__actions {
|
|
385
|
+
position: relative;
|
|
386
|
+
z-index: 3;
|
|
387
|
+
display: flex;
|
|
388
|
+
flex-wrap: wrap;
|
|
389
|
+
gap: var(--aparte-space-3);
|
|
390
|
+
margin-block-start: var(--aparte-space-5);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.aparte-place__action {
|
|
394
|
+
gap: var(--aparte-space-2);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* \u2500\u2500 Several, side by side \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 */
|
|
398
|
+
|
|
399
|
+
/* Tiles in a row carry their own frame, so the card around them steps back. */
|
|
400
|
+
.aparte-place-card:has(> .aparte-place__collection) {
|
|
401
|
+
--aparte-rich-card-max-inline-size: 40rem;
|
|
402
|
+
overflow: visible;
|
|
403
|
+
border-color: transparent;
|
|
404
|
+
background: transparent;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.aparte-place__collection {
|
|
408
|
+
display: grid;
|
|
409
|
+
gap: var(--aparte-space-4);
|
|
410
|
+
min-inline-size: 0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.aparte-place__collection .aparte-rich-card__carousel {
|
|
414
|
+
--aparte-rich-card-slide-size: min(15rem, 80%);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.aparte-place__heading {
|
|
418
|
+
display: flex;
|
|
419
|
+
align-items: center;
|
|
420
|
+
gap: var(--aparte-space-3);
|
|
421
|
+
min-inline-size: 0;
|
|
422
|
+
font-size: var(--aparte-font-size-md);
|
|
423
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.aparte-place__heading-text {
|
|
427
|
+
overflow: hidden;
|
|
428
|
+
text-overflow: ellipsis;
|
|
429
|
+
white-space: nowrap;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.aparte-place__collection > .aparte-place__heading { padding-inline: var(--aparte-space-2); }
|
|
433
|
+
|
|
434
|
+
.aparte-place--tile {
|
|
435
|
+
block-size: 100%;
|
|
436
|
+
overflow: hidden;
|
|
437
|
+
border: var(--aparte-border-width) solid var(--aparte-border);
|
|
438
|
+
border-radius: var(--aparte-radius-xl);
|
|
439
|
+
background: var(--aparte-surface-1);
|
|
440
|
+
transition:
|
|
441
|
+
border-color var(--aparte-duration-base, 0.15s) ease,
|
|
442
|
+
box-shadow var(--aparte-duration-base, 0.15s) ease;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.aparte-place--tile:hover {
|
|
446
|
+
border-color: color-mix(in oklab, var(--aparte-text) 20%, var(--aparte-border));
|
|
447
|
+
box-shadow: 0 10px 24px -16px rgb(0 0 0 / 0.5);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.aparte-place--tile .aparte-place__body {
|
|
451
|
+
padding: var(--aparte-space-5) var(--aparte-space-6) var(--aparte-space-6);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.aparte-place--tile .aparte-place__name { font-size: var(--aparte-font-size-base); }
|
|
455
|
+
|
|
456
|
+
/* The buttons sit on the tile's floor, so a row of tiles lines them up. */
|
|
457
|
+
.aparte-place--tile .aparte-place__actions { margin-block-start: auto; padding-block-start: var(--aparte-space-5); }
|
|
458
|
+
|
|
459
|
+
/* \u2500\u2500 Compact: rows \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 */
|
|
460
|
+
|
|
461
|
+
.aparte-place__row {
|
|
462
|
+
flex-direction: row;
|
|
463
|
+
align-items: center;
|
|
464
|
+
gap: var(--aparte-space-5);
|
|
465
|
+
padding: var(--aparte-space-5) var(--aparte-space-6);
|
|
466
|
+
transition: background-color var(--aparte-duration-fast, 0.12s) ease;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.aparte-place__text {
|
|
470
|
+
display: flex;
|
|
471
|
+
flex: 1;
|
|
472
|
+
flex-direction: column;
|
|
473
|
+
gap: var(--aparte-space-1);
|
|
474
|
+
min-inline-size: 0;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.aparte-place__row-head {
|
|
478
|
+
display: flex;
|
|
479
|
+
align-items: baseline;
|
|
480
|
+
gap: var(--aparte-space-3);
|
|
481
|
+
min-inline-size: 0;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.aparte-place__row .aparte-place__name {
|
|
485
|
+
flex: 1;
|
|
486
|
+
min-inline-size: 0;
|
|
487
|
+
font-size: var(--aparte-font-size-base);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.aparte-place__row .aparte-place__distance {
|
|
491
|
+
color: var(--aparte-text-muted);
|
|
492
|
+
font-size: var(--aparte-font-size-sm);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.aparte-place__row .aparte-place__score,
|
|
496
|
+
.aparte-place__row .aparte-place__status { font-size: var(--aparte-font-size-xs); }
|
|
497
|
+
|
|
498
|
+
.aparte-place__row .aparte-place__score { flex-wrap: nowrap; overflow: hidden; }
|
|
499
|
+
|
|
500
|
+
.aparte-place__list {
|
|
501
|
+
margin: 0;
|
|
502
|
+
padding: 0;
|
|
503
|
+
list-style: none;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.aparte-place__list > li + li { border-block-start: var(--aparte-border-width) solid var(--aparte-border); }
|
|
507
|
+
|
|
508
|
+
.aparte-place__list > .aparte-place__row:hover,
|
|
509
|
+
.aparte-place-card[data-variant="compact"] > .aparte-place__row:hover {
|
|
510
|
+
background: color-mix(in oklab, var(--aparte-text) 4%, transparent);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.aparte-place-card[data-variant="compact"] > .aparte-place__heading {
|
|
514
|
+
padding: var(--aparte-space-5) var(--aparte-space-6) var(--aparte-space-3);
|
|
515
|
+
border-block-end: var(--aparte-border-width) solid var(--aparte-border);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/* \u2500\u2500 Detail \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 */
|
|
519
|
+
|
|
520
|
+
.aparte-place--detail .aparte-place__media--wide { aspect-ratio: var(--aparte-place-detail-ratio); }
|
|
521
|
+
|
|
522
|
+
.aparte-place--detail .aparte-place__body {
|
|
523
|
+
gap: var(--aparte-space-7);
|
|
524
|
+
padding: var(--aparte-space-7) var(--aparte-space-8) var(--aparte-space-8);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.aparte-place__head {
|
|
528
|
+
display: flex;
|
|
529
|
+
flex-direction: column;
|
|
530
|
+
gap: var(--aparte-space-2);
|
|
531
|
+
min-inline-size: 0;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.aparte-place--detail .aparte-place__name {
|
|
535
|
+
font-size: var(--aparte-font-size-xl);
|
|
536
|
+
white-space: normal;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.aparte-place--detail .aparte-place__score,
|
|
540
|
+
.aparte-place--detail .aparte-place__status { font-size: var(--aparte-font-size-md); }
|
|
541
|
+
|
|
542
|
+
.aparte-place--detail .aparte-place__actions { margin: 0; }
|
|
543
|
+
|
|
544
|
+
.aparte-place__info {
|
|
545
|
+
display: grid;
|
|
546
|
+
gap: var(--aparte-space-5);
|
|
547
|
+
margin: 0;
|
|
548
|
+
padding: var(--aparte-space-6) 0 0;
|
|
549
|
+
border-block-start: var(--aparte-border-width) solid var(--aparte-border);
|
|
550
|
+
list-style: none;
|
|
551
|
+
font-size: var(--aparte-font-size-md);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.aparte-place__info > li {
|
|
555
|
+
display: flex;
|
|
556
|
+
align-items: flex-start;
|
|
557
|
+
gap: var(--aparte-space-4);
|
|
558
|
+
min-inline-size: 0;
|
|
559
|
+
overflow-wrap: anywhere;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.aparte-place__info .aparte-place__line-glyph { margin-block-start: 0.1em; }
|
|
563
|
+
.aparte-place__info .aparte-place__address-text { white-space: normal; }
|
|
564
|
+
.aparte-place__info .aparte-place__link { color: var(--aparte-primary-ink, var(--aparte-text)); }
|
|
565
|
+
|
|
566
|
+
.aparte-place__hours {
|
|
567
|
+
inline-size: 100%;
|
|
568
|
+
border-collapse: collapse;
|
|
569
|
+
font-size: var(--aparte-font-size-md);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.aparte-place__hours-title {
|
|
573
|
+
padding-block: var(--aparte-space-6) var(--aparte-space-3);
|
|
574
|
+
border-block-start: var(--aparte-border-width) solid var(--aparte-border);
|
|
575
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
576
|
+
text-align: start;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.aparte-place__hours-title .aparte-place__line-glyph {
|
|
580
|
+
margin-inline-end: var(--aparte-space-3);
|
|
581
|
+
vertical-align: -0.15em;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.aparte-place__hours th,
|
|
585
|
+
.aparte-place__hours td {
|
|
586
|
+
padding-block: var(--aparte-space-2);
|
|
587
|
+
vertical-align: top;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.aparte-place__hours th {
|
|
591
|
+
padding-inline: var(--aparte-space-3) var(--aparte-space-6);
|
|
592
|
+
color: var(--aparte-text-muted);
|
|
593
|
+
font-weight: var(--aparte-font-weight-normal);
|
|
594
|
+
text-align: start;
|
|
595
|
+
white-space: nowrap;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/* \`Intl\` writes "lundi" for the middle of a sentence; a row's label starts with a capital. */
|
|
599
|
+
.aparte-place__hours th::first-letter { text-transform: uppercase; }
|
|
600
|
+
|
|
601
|
+
.aparte-place__hours td {
|
|
602
|
+
padding-inline-end: var(--aparte-space-3);
|
|
603
|
+
text-align: end;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.aparte-place__hours tr[data-closed] td { color: var(--aparte-place-closed); }
|
|
607
|
+
|
|
608
|
+
/* Today: the first row, on a band of the accent, in full ink. */
|
|
609
|
+
.aparte-place__hours tr[aria-current] > * {
|
|
610
|
+
background: color-mix(in oklab, var(--aparte-primary) 10%, transparent);
|
|
611
|
+
color: var(--aparte-text);
|
|
612
|
+
font-weight: var(--aparte-font-weight-semibold);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.aparte-place__hours tr[aria-current] > :first-child {
|
|
616
|
+
border-start-start-radius: var(--aparte-radius-md);
|
|
617
|
+
border-end-start-radius: var(--aparte-radius-md);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.aparte-place__hours tr[aria-current] > :last-child {
|
|
621
|
+
border-start-end-radius: var(--aparte-radius-md);
|
|
622
|
+
border-end-end-radius: var(--aparte-radius-md);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.aparte-place__tags {
|
|
626
|
+
display: flex;
|
|
627
|
+
flex-wrap: wrap;
|
|
628
|
+
gap: var(--aparte-space-2);
|
|
629
|
+
margin: 0;
|
|
630
|
+
padding: 0;
|
|
631
|
+
list-style: none;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/* \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 */
|
|
635
|
+
|
|
636
|
+
.aparte-place-card[data-state="loading"] .aparte-place__sk-media {
|
|
637
|
+
block-size: auto;
|
|
638
|
+
border-radius: 0;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.aparte-place-card[data-state="loading"] .aparte-place__sk-thumb {
|
|
642
|
+
flex: none;
|
|
643
|
+
block-size: var(--aparte-place-thumb-size);
|
|
644
|
+
border-radius: var(--aparte-radius-lg);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.aparte-place-card[data-state="loading"] .aparte-place__sk-name { inline-size: 60%; block-size: 1.1rem; }
|
|
648
|
+
.aparte-place-card[data-state="loading"] .aparte-place__sk-line { inline-size: 80%; }
|
|
649
|
+
.aparte-place-card[data-state="loading"] .aparte-place__sk-line--short { inline-size: 50%; }
|
|
650
|
+
|
|
651
|
+
.aparte-place-card[data-state="loading"] .aparte-place__sk-actions {
|
|
652
|
+
display: flex;
|
|
653
|
+
gap: var(--aparte-space-3);
|
|
654
|
+
margin-block-start: var(--aparte-space-5);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.aparte-place-card[data-state="loading"] .aparte-place__sk-btn {
|
|
658
|
+
inline-size: 6rem;
|
|
659
|
+
block-size: 2rem;
|
|
660
|
+
border-radius: var(--aparte-radius-full);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.aparte-place-card[data-state="loading"] .aparte-place__sk-hours {
|
|
664
|
+
display: grid;
|
|
665
|
+
gap: var(--aparte-space-3);
|
|
666
|
+
margin-block-start: var(--aparte-space-5);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/* \u2500\u2500 Small screens, and stillness \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 */
|
|
670
|
+
|
|
671
|
+
@media (max-width: 380px) {
|
|
672
|
+
.aparte-place__body { padding: var(--aparte-space-5) var(--aparte-space-6) var(--aparte-space-6); }
|
|
673
|
+
.aparte-place--detail .aparte-place__body { padding: var(--aparte-space-6); }
|
|
674
|
+
.aparte-place__actions > .aparte-place__action:not(.aparte-btn--icon) { flex: 1 1 auto; justify-content: center; }
|
|
675
|
+
.aparte-place__collection .aparte-rich-card__carousel { --aparte-rich-card-slide-size: 84%; }
|
|
676
|
+
.aparte-place__hours th { padding-inline-end: var(--aparte-space-4); }
|
|
677
|
+
.aparte-place-card { --aparte-place-thumb-size: 3rem; }
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
@media (prefers-reduced-motion: reduce) {
|
|
681
|
+
.aparte-place--tile:hover .aparte-place__img,
|
|
682
|
+
.aparte-place-card[data-variant="card"] > .aparte-place:hover .aparte-place__img { transform: none; }
|
|
683
|
+
.aparte-place__status-dot::after { content: none; }
|
|
684
|
+
}
|
|
685
|
+
`,g={cardsPlaceTitle:{en:"Places",fr:"Lieux",de:"Orte",es:"Lugares",it:"Luoghi",ja:"\u5834\u6240",ko:"\uC7A5\uC18C",pt:"Lugares",ru:"\u041C\u0435\u0441\u0442\u0430",zh:"\u5730\u70B9"},cardsPlaceCount:{en:"{n} places",fr:"{n} lieux",de:"{n} Orte",es:"{n} lugares",it:"{n} luoghi",ja:"{n}\u4EF6\u306E\u5834\u6240",ko:"\uC7A5\uC18C {n}\uACF3",pt:"{n} lugares",ru:"\u041C\u0435\u0441\u0442: {n}",zh:"{n} \u4E2A\u5730\u70B9"},cardsPlaceOpen:{en:"Open",fr:"Ouvert",de:"Ge\xF6ffnet",es:"Abierto",it:"Aperto",ja:"\u55B6\u696D\u4E2D",ko:"\uC601\uC5C5 \uC911",pt:"Aberto",ru:"\u041E\u0442\u043A\u0440\u044B\u0442\u043E",zh:"\u8425\u4E1A\u4E2D"},cardsPlaceClosed:{en:"Closed",fr:"Ferm\xE9",de:"Geschlossen",es:"Cerrado",it:"Chiuso",ja:"\u55B6\u696D\u6642\u9593\u5916",ko:"\uC601\uC5C5 \uC885\uB8CC",pt:"Fechado",ru:"\u0417\u0430\u043A\u0440\u044B\u0442\u043E",zh:"\u5DF2\u6253\u70CA"},cardsPlaceClosesSoon:{en:"Closes soon",fr:"Ferme bient\xF4t",de:"Schlie\xDFt bald",es:"Cierra pronto",it:"Chiude a breve",ja:"\u307E\u3082\u306A\u304F\u55B6\u696D\u7D42\u4E86",ko:"\uACE7 \uC601\uC5C5 \uC885\uB8CC",pt:"Fecha em breve",ru:"\u0421\u043A\u043E\u0440\u043E \u0437\u0430\u043A\u0440\u043E\u0435\u0442\u0441\u044F",zh:"\u5373\u5C06\u6253\u70CA"},cardsPlaceClosesAt:{en:"Closes at {t}",fr:"Ferme \xE0 {t}",de:"Schlie\xDFt um {t}",es:"Cierra a las {t}",it:"Chiude alle {t}",ja:"{t}\u306B\u55B6\u696D\u7D42\u4E86",ko:"{t}\uC5D0 \uC601\uC5C5 \uC885\uB8CC",pt:"Fecha \xE0s {t}",ru:"\u0417\u0430\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 {t}",zh:"{t}\u6253\u70CA"},cardsPlaceClosesOn:{en:"Closes {day} at {t}",fr:"Ferme {day} \xE0 {t}",de:"Schlie\xDFt {day} um {t}",es:"Cierra el {day} a las {t}",it:"Chiude {day} alle {t}",ja:"{day}\u306E{t}\u306B\u55B6\u696D\u7D42\u4E86",ko:"{day} {t}\uC5D0 \uC601\uC5C5 \uC885\uB8CC",pt:"Fecha {day} \xE0s {t}",ru:"\u0417\u0430\u043A\u0440\u043E\u0435\u0442\u0441\u044F: {day}, {t}",zh:"{day}{t}\u6253\u70CA"},cardsPlaceOpensAt:{en:"Opens at {t}",fr:"Ouvre \xE0 {t}",de:"\xD6ffnet um {t}",es:"Abre a las {t}",it:"Apre alle {t}",ja:"{t}\u306B\u55B6\u696D\u958B\u59CB",ko:"{t}\uC5D0 \uC601\uC5C5 \uC2DC\uC791",pt:"Abre \xE0s {t}",ru:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 {t}",zh:"{t}\u5F00\u59CB\u8425\u4E1A"},cardsPlaceOpensTomorrow:{en:"Opens tomorrow at {t}",fr:"Ouvre demain \xE0 {t}",de:"\xD6ffnet morgen um {t}",es:"Abre ma\xF1ana a las {t}",it:"Apre domani alle {t}",ja:"\u660E\u65E5{t}\u306B\u55B6\u696D\u958B\u59CB",ko:"\uB0B4\uC77C {t}\uC5D0 \uC601\uC5C5 \uC2DC\uC791",pt:"Abre amanh\xE3 \xE0s {t}",ru:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0437\u0430\u0432\u0442\u0440\u0430 \u0432 {t}",zh:"\u660E\u5929{t}\u5F00\u59CB\u8425\u4E1A"},cardsPlaceOpensOn:{en:"Opens {day} at {t}",fr:"Ouvre {day} \xE0 {t}",de:"\xD6ffnet {day} um {t}",es:"Abre el {day} a las {t}",it:"Apre {day} alle {t}",ja:"{day}\u306E{t}\u306B\u55B6\u696D\u958B\u59CB",ko:"{day} {t}\uC5D0 \uC601\uC5C5 \uC2DC\uC791",pt:"Abre {day} \xE0s {t}",ru:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F: {day}, {t}",zh:"{day}{t}\u5F00\u59CB\u8425\u4E1A"},cardsPlaceAlwaysOpen:{en:"Open 24 hours",fr:"Ouvert 24 h/24",de:"Rund um die Uhr ge\xF6ffnet",es:"Abierto 24 horas",it:"Aperto 24 ore su 24",ja:"24\u6642\u9593\u55B6\u696D",ko:"24\uC2DC\uAC04 \uC601\uC5C5",pt:"Aberto 24 horas",ru:"\u041A\u0440\u0443\u0433\u043B\u043E\u0441\u0443\u0442\u043E\u0447\u043D\u043E",zh:"24\u5C0F\u65F6\u8425\u4E1A"},cardsPlaceDirections:{en:"Directions",fr:"Itin\xE9raire",de:"Route",es:"C\xF3mo llegar",it:"Indicazioni",ja:"\u30EB\u30FC\u30C8",ko:"\uAE38\uCC3E\uAE30",pt:"Rotas",ru:"\u041C\u0430\u0440\u0448\u0440\u0443\u0442",zh:"\u8DEF\u7EBF"},cardsPlaceCall:{en:"Call",fr:"Appeler",de:"Anrufen",es:"Llamar",it:"Chiama",ja:"\u96FB\u8A71",ko:"\uC804\uD654",pt:"Ligar",ru:"\u041F\u043E\u0437\u0432\u043E\u043D\u0438\u0442\u044C",zh:"\u81F4\u7535"},cardsPlaceWebsite:{en:"Website",fr:"Site web",de:"Website",es:"Sitio web",it:"Sito web",ja:"\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8",ko:"\uC6F9\uC0AC\uC774\uD2B8",pt:"Site",ru:"\u0421\u0430\u0439\u0442",zh:"\u7F51\u7AD9"},cardsPlaceHours:{en:"Hours",fr:"Horaires",de:"\xD6ffnungszeiten",es:"Horario",it:"Orari",ja:"\u55B6\u696D\u6642\u9593",ko:"\uC601\uC5C5\uC2DC\uAC04",pt:"Hor\xE1rio",ru:"\u0427\u0430\u0441\u044B \u0440\u0430\u0431\u043E\u0442\u044B",zh:"\u8425\u4E1A\u65F6\u95F4"},cardsPlacePrice:{en:"Price level {level} of {max}",fr:"Gamme de prix {level} sur {max}",de:"Preisniveau {level} von {max}",es:"Nivel de precio {level} de {max}",it:"Fascia di prezzo {level} su {max}",ja:"\u4FA1\u683C\u5E2F {max}\u6BB5\u968E\u4E2D{level}",ko:"\uAC00\uACA9\uB300 {max}\uB2E8\uACC4 \uC911 {level}",pt:"Faixa de pre\xE7o {level} de {max}",ru:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0446\u0435\u043D: {level} \u0438\u0437 {max}",zh:"\u4EF7\u683C\u7B49\u7EA7 {level}/{max}"},cardsPlacePhoto:{en:"Photo of {name}",fr:"Photo de {name}",de:"Foto von {name}",es:"Foto de {name}",it:"Foto di {name}",ja:"{name}\u306E\u5199\u771F",ko:"{name} \uC0AC\uC9C4",pt:"Foto de {name}",ru:"\u0424\u043E\u0442\u043E: {name}",zh:"{name}\u7684\u7167\u7247"}},be={restaurant:{en:"Restaurant",fr:"Restaurant",de:"Restaurant",es:"Restaurante",it:"Ristorante",ja:"\u30EC\u30B9\u30C8\u30E9\u30F3",ko:"\uC74C\uC2DD\uC810",pt:"Restaurante",ru:"\u0420\u0435\u0441\u0442\u043E\u0440\u0430\u043D",zh:"\u9910\u5385"},cafe:{en:"Caf\xE9",fr:"Caf\xE9",de:"Caf\xE9",es:"Cafeter\xEDa",it:"Caff\xE8",ja:"\u30AB\u30D5\u30A7",ko:"\uCE74\uD398",pt:"Caf\xE9",ru:"\u041A\u0430\u0444\u0435",zh:"\u5496\u5561\u9986"},bar:{en:"Bar",fr:"Bar",de:"Bar",es:"Bar",it:"Bar",ja:"\u30D0\u30FC",ko:"\uBC14",pt:"Bar",ru:"\u0411\u0430\u0440",zh:"\u9152\u5427"},hotel:{en:"Hotel",fr:"H\xF4tel",de:"Hotel",es:"Hotel",it:"Hotel",ja:"\u30DB\u30C6\u30EB",ko:"\uD638\uD154",pt:"Hotel",ru:"\u041E\u0442\u0435\u043B\u044C",zh:"\u9152\u5E97"},shop:{en:"Shop",fr:"Boutique",de:"Gesch\xE4ft",es:"Tienda",it:"Negozio",ja:"\u30B7\u30E7\u30C3\u30D7",ko:"\uC0C1\uC810",pt:"Loja",ru:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",zh:"\u5546\u5E97"},museum:{en:"Museum",fr:"Mus\xE9e",de:"Museum",es:"Museo",it:"Museo",ja:"\u535A\u7269\u9928",ko:"\uBC15\uBB3C\uAD00",pt:"Museu",ru:"\u041C\u0443\u0437\u0435\u0439",zh:"\u535A\u7269\u9986"},park:{en:"Park",fr:"Parc",de:"Park",es:"Parque",it:"Parco",ja:"\u516C\u5712",ko:"\uACF5\uC6D0",pt:"Parque",ru:"\u041F\u0430\u0440\u043A",zh:"\u516C\u56ED"},gym:{en:"Gym",fr:"Salle de sport",de:"Fitnessstudio",es:"Gimnasio",it:"Palestra",ja:"\u30B8\u30E0",ko:"\uD5EC\uC2A4\uC7A5",pt:"Academia",ru:"\u0421\u043F\u043E\u0440\u0442\u0437\u0430\u043B",zh:"\u5065\u8EAB\u623F"},pharmacy:{en:"Pharmacy",fr:"Pharmacie",de:"Apotheke",es:"Farmacia",it:"Farmacia",ja:"\u85AC\u5C40",ko:"\uC57D\uAD6D",pt:"Farm\xE1cia",ru:"\u0410\u043F\u0442\u0435\u043A\u0430",zh:"\u836F\u5E97"}},ye=10,ke=4,C=4,we=60,u=1440,M=7*u,xe=["sun","mon","tue","wed","thu","fri","sat"];function A(a){let e=b(a);if(e!==void 0)return Number.isInteger(e)&&e>=0&&e<=7?e%7:void 0;if(typeof a!="string")return;let t=xe.indexOf(a.trim().slice(0,3).toLowerCase());return t>=0?t:void 0}function w(a){if(a&&typeof a=="object"){let o=a,p=b(o.hour),l=b(o.minute)??0;return p!==void 0&&p>=0&&p<=24&&l>=0&&l<60?p*60+l:void 0}let e=f(a);if(!e)return;let t=/^(\d{1,2})(?:\s*[:h.]\s*)?(\d{2})?\s*(?:([ap])\.?\s*m\.?)?$/i.exec(e);if(!t)return;let r=Number(t[1]),n=t[2]?Number(t[2]):0,s=t[3]?.toLowerCase();if(!(n>59)){if(s){if(r<1||r>12)return;r=r%12+(s==="p"?12:0)}if(!(r>24||r===24&&n>0))return r*60+n}}function K(a,e){let t=Array.isArray(e)?e:typeof e=="string"?e.split(/\s*[,;]\s*/):[],r=[];for(let n of t){if(typeof n!="string")continue;let[s,o]=n.split(/\s*[-–—]\s*|\s+to\s+/i);if(o===void 0&&/24\s*(h|hours|heures|\/\s*24)/i.test(n)){r.push({day:a,start:0,end:u});continue}let p=w(o),l=ze(s,o,p)??w(s);l===void 0||p===void 0||(p<=l&&(p+=u),r.push({day:a,start:l,end:p}))}return r}function ze(a,e,t){let n=e!==void 0?/([ap])\.?\s*m\.?\s*$/i.exec(e):null;if(!a||!n||t===void 0||/[ap]\.?\s*m\.?\s*$/i.test(a))return;let s=w(`${a} ${n[1]}M`);return s!==void 0&&s<t?s:void 0}function Pe(a){if(a.end-a.start<=u)return[a];let e=[],t=a.day*u+a.start,r=Math.min(a.day*u+a.end,a.day*u+a.start+M);for(;t<r;){let n=(Math.floor(t/u)+1)*u,s=Math.min(r,n);e.push({day:Math.floor(t/u)%7,start:t%u,end:s-Math.floor(t/u)*u}),t=s}return e}function R(a){if(!a||typeof a!="object")return[];if(!Array.isArray(a)){let r=a;for(let s of["periods","weekday_text","weekdayDescriptions"])if(Array.isArray(r[s]))return R(r[s]);let n=[];for(let[s,o]of Object.entries(r)){if(!/^[a-z]+$/i.test(s))continue;let p=A(s);p!==void 0&&n.push(...K(p,o))}return N(n)}let e=a.filter(r=>!!r&&typeof r=="object"&&Array.isArray(r.open));if(e.length)return N(Ae(e));let t=[];for(let r of a){if(typeof r=="string"){let c=/^\s*([A-Za-z]+)\s*:\s*(.+)$/.exec(r),d=c?A(c[1]):void 0;c&&d!==void 0&&t.push(...K(d,c[2]));continue}if(!r||typeof r!="object")continue;let n=r;if(typeof n.start=="number"&&typeof n.end=="number"){let c=A(n.day);c!==void 0&&n.end>n.start&&t.push({day:c,start:n.start,end:n.end});continue}if(n.open&&typeof n.open=="object"){let c=n.open,d=A(c.day),_=w(c.time??c);if(d===void 0||_===void 0)continue;let y=n.close;if(!y||typeof y!="object"){t.push({day:d,start:_,end:d===0&&_===0?M:u});continue}let z=A(y.day),h=w(y.time??y);if(z===void 0||h===void 0)continue;let j=(z-d+7)%7*u+h;j<=_&&(j+=M),t.push({day:d,start:_,end:j});continue}let s=A(n.day??n.weekday),o=w(n.open??n.opens??n.from);if(s===void 0||o===void 0)continue;let p=n.close??n.closes??n.to,l=p==null||p===""?u:w(p);l!==void 0&&(l<=o&&(l+=u),t.push({day:s,start:o,end:l}))}return N(t)}function Ae(a){let e=a.filter(r=>!f(r.hour_type)||/regular/i.test(String(r.hour_type))),t=[];for(let r of e.length?e:a.slice(0,1))for(let n of r.open){let s=n??{},o=b(s.day),p=d=>w(f(d)?.padStart(4,"0")),l=p(s.start),c=p(s.end);o===void 0||!Number.isInteger(o)||o<0||o>6||l===void 0||c===void 0||(c<=l&&(c+=u),t.push({day:(o+1)%7,start:l,end:c}))}return t}function N(a){return a.flatMap(Pe).sort((e,t)=>e.day-t.day||e.start-t.start)}function Me(a){let e=[];for(let r of a)for(let n of[-M,0,M])e.push([r.day*u+r.start+n,r.day*u+r.end+n]);e.sort((r,n)=>r[0]-n[0]);let t=[];for(let r of e){let n=t[t.length-1];n&&r[0]<=n[1]?n[1]=Math.max(n[1],r[1]):t.push([r[0],r[1]])}return t}function ne(a,e){let t=R(a);if(!t.length)return null;let r=e.getDay()*u+e.getHours()*60+e.getMinutes(),n=l=>new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+Math.floor(l/u),0,l%u),s=Me(t),o=s.find(([l,c])=>l<=r&&r<c);if(o)return o[1]-o[0]>=M?{open:!0}:{open:!0,changesAt:n(o[1])};let p=s.find(([l])=>l>r);return p?{open:!1,changesAt:n(p[0])}:{open:!1}}function Je(a,e){return ne(a,e)?.open??!1}function se(a,e){if(a.utcOffset===void 0)return e;let t=new Date(e.getTime()+a.utcOffset*6e4);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())}var Ce=[["cafe",/\bcaf[eé]s?\b|coffee|tea ?room|bakery|boulangerie|p[aâ]tisserie|salon de th[eé]/],["bar",/\bbars?\b|\bpubs?\b|brewery|\bwine\b|cocktail|night ?club/],["restaurant",/restaurant|\bfood\b|meal|pizz|sushi|burger|bistro|brasserie|diner|eatery|trattoria|ramen|steak|cr[eê]perie/],["hotel",/h[oô]tel|lodging|hostel|motel|\binn\b|resort|guest ?house|bed and breakfast|\bb ?& ?b\b/],["museum",/museum|mus[eé]e|galler|monument|landmark|tourist attraction|\bart\b/],["park",/\bparks?\b|\bparcs?\b|garden|jardin|beach|plage|\bzoo\b|campground/],["gym",/\bgyms?\b|fitness|stadium|swimming|piscine/],["pharmacy",/pharmac|drugstore|chemist/],["shop",/shop|store|boutique|market|\bmall\b|grocery|supermarch|magasin|[eé]picerie/]];function Oe(a){for(let e of a){let t=f(e)?.toLowerCase().replace(/[_-]+/g," ");if(t){for(let[r,n]of Ce)if(n.test(t))return r}}return"place"}var Te={inexpensive:1,cheap:1,moderate:2,expensive:3,very_expensive:4,"very expensive":4};function je(a){let e=b(a);if(e!==void 0)return e>=1&&e<=C?{price:{level:Math.round(e)}}:{};let t=f(a);if(!t)return{};let r=/^(\p{Sc})\1{0,3}$/u.exec(t);if(r)return{price:{level:t.length/r[1].length,symbol:r[1]}};let n=Te[t.toLowerCase().replace(/^price_level_/,"")];return n?{price:{level:n}}:/^price_level_/i.test(t)?{}:t.length<=24?{priceText:t}:{}}function De(a){let e=[a.coordinates,a.geometry?.location,a.location,a.position,a.latlng,a];for(let t of e){if(!t||typeof t!="object")continue;let r=b(t.lat??t.latitude),n=b(t.lng??t.lon??t.long??t.longitude);if(r!==void 0&&n!==void 0&&Math.abs(r)<=90&&Math.abs(n)<=180)return{lat:r,lng:n}}}function F(a,e=!1){let t=f(a);if(!t)return;if(t.startsWith("//"))t=`https:${t}`;else if(!/^https?:\/\//i.test(t)){if(!e||!/^[\w-]+(\.[\w-]+)+(\/|$)/.test(t))return;t=`https://${t}`}let r=D(t);return r&&/^https?:/i.test(r)?r:void 0}function H(a){if(a&&typeof a=="object"){let e=a;return f(e.text??e.title??e.name??e.url)}return f(a)}function $e(a){if(a&&typeof a=="object"){let e=a;return f(e.url??e.src??e.href??e.uri)}return f(a)}function X(a){return Array.isArray(a)?a[0]:a}function oe(a){if(!a||typeof a!="object"||Array.isArray(a))return null;let e=a,t=H(e.name??e.displayName??e.title);if(!t)return null;let r=H(e.category??e.primaryTypeDisplayName??X(e.categories)),n=Array.isArray(e.types)?e.types:[],s=b(e.rating??e.stars);s!==void 0&&s>5&&s<=10&&(s/=2),s!==void 0&&(s<0||s>5)&&(s=void 0);let o=b(e.reviewCount??e.review_count??e.user_ratings_total??e.userRatingCount??e.ratingCount??e.rating_count??e.reviews),p=e.distance??e.distanceMeters??e.distance_meters??e.distance_m,l=b(p),c=[e.hours,e.currentOpeningHours,e.current_opening_hours,e.regularOpeningHours,e.opening_hours,e.openingHours].filter(h=>h&&typeof h=="object"),d=[];for(let h of c)if(d=R(h),d.length)break;let _=e.openNow??e.open_now??e.isOpen??e.is_open??e.is_open_now??c.map(h=>Array.isArray(h)?h[0]:h).map(h=>h?.openNow??h?.open_now??h?.is_open_now).find(h=>typeof h=="boolean"),y=(Array.isArray(e.tags)?e.tags:Array.isArray(e.features)?e.features:Array.isArray(e.amenities)?e.amenities:[]).map(H).filter(h=>!!h&&h.length<=32).slice(0,ke),z=b(e.utcOffset??e.utc_offset_minutes??e.utcOffsetMinutes??e.utc_offset);return{name:t,category:r,kind:Oe([r,e.primaryType,...n]),image:F($e(e.image??e.photo??e.imageUrl??e.image_url??e.photoUrl??e.thumbnail??e.picture??X(e.photos))),rating:s,reviewCount:o!==void 0&&o>=0?Math.round(o):void 0,...je(e.priceLevel??e.price_level??e.price),address:f(e.address??e.formatted_address??e.formattedAddress??e.shortFormattedAddress??e.vicinity??(typeof e.location=="string"?e.location:void 0))??(Array.isArray(e.location?.display_address)?f(e.location.display_address.map(f).filter(Boolean).join(", ")):void 0),distance:l!==void 0&&l>=0?l:void 0,distanceText:l===void 0&&typeof p=="string"?f(p):void 0,phone:f(e.phone??e.phoneNumber??e.phone_number??e.formatted_phone_number??e.nationalPhoneNumber??e.international_phone_number??e.internationalPhoneNumber??e.tel),website:F(e.website??e.websiteUri??e.websiteUrl??e.site,!0),url:F(e.url??e.googleMapsUri??e.mapsUrl??e.maps_url??e.link),coordinates:De(e),placeId:f(e.placeId??e.place_id??e.googlePlaceId),openNow:typeof _=="boolean"?_:void 0,hours:d,utcOffset:z!==void 0&&Math.abs(z)<=840?z:void 0,tags:y}}function Se(a){if(!a||typeof a!="object")return null;let e,t;if(Array.isArray(a))t=a;else{let n=a,s=n.places??n.results??n.candidates;Array.isArray(s)?(t=s,e=f(n.title)):t=[a]}let r=t.map(oe).filter(n=>n!==null).slice(0,ye);return r.length?{...e?{title:e}:{},places:r}:null}function Ie(a){let e=a.coordinates?`${a.coordinates.lat},${a.coordinates.lng}`:a.address?`${a.name}, ${a.address}`:null;if(!e)return null;let t=a.placeId?`&destination_place_id=${encodeURIComponent(a.placeId)}`:"";return`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(e)}${t}`}function ie(a){if(!a)return null;let e=a.replace(/\s*(?:\b(?:ext(?:ension)?\.?|x)\s*\d|#).*$/i,""),t=e.replace(/\D/g,""),r=/^[^\d]*\+/.test(e)?"+":"";return/\d{3,}/.test(t)?D(`tel:${r}${t}`):null}function x(a,e){let t=$(a);return/h1[12]/.test(new Intl.DateTimeFormat(t,{hour:"numeric"}).resolvedOptions().hourCycle??"")?new Intl.DateTimeFormat(t,{hour:"numeric",minute:e.getMinutes()?"2-digit":void 0}).format(e):new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit"}).format(e)}var L=(a,e)=>new Intl.DateTimeFormat($(a),{weekday:"long"}).format(e),Q=a=>new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime(),Ne=(a,e)=>Math.round((Q(e)-Q(a))/864e5);function Fe(a,e){let t=se(a,e),r=a.hours.length?ne(a.hours,t):null;if(!r)return a.openNow===void 0?null:{tone:a.openNow?"open":"closed",state:a.openNow?"cardsPlaceOpen":"cardsPlaceClosed"};let n=r.changesAt;if(r.open){if(!n)return{tone:"open",state:"cardsPlaceAlwaysOpen"};let o=(n.getTime()-t.getTime())/6e4;return o<we?{tone:"soon",state:"cardsPlaceClosesSoon",next:p=>x(p,n)}:{tone:"open",state:"cardsPlaceOpen",next:o<=u?p=>v(p,"cardsPlaceClosesAt",g.cardsPlaceClosesAt,{t:x(p,n)}):p=>v(p,"cardsPlaceClosesOn",g.cardsPlaceClosesOn,{day:L(p,n),t:x(p,n)})}}if(!n)return{tone:"closed",state:"cardsPlaceClosed"};let s=Ne(t,n);return{tone:"closed",state:"cardsPlaceClosed",next:s===0?o=>v(o,"cardsPlaceOpensAt",g.cardsPlaceOpensAt,{t:x(o,n)}):s===1?o=>v(o,"cardsPlaceOpensTomorrow",g.cardsPlaceOpensTomorrow,{t:x(o,n)}):o=>v(o,"cardsPlaceOpensOn",g.cardsPlaceOpensOn,{day:L(o,n),t:x(o,n)})}}function He(a,e){if(e<1e3)return S(a,e<100?Math.round(e):Math.round(e/10)*10,"meter");let t=e/1e3;return S(a,t,"kilometer",t<10?1:0)}var pe=()=>i("span",{class:"aparte-place__dot",attrs:{"aria-hidden":"true"},text:"\xB7"});function E(a,e,t="div"){let r=e.filter(s=>s!==null);if(!r.length)return null;let n=i(t,{class:a});return r.forEach((s,o)=>{o&&n.append(pe()),n.append(s)}),n}function B(a,e="aparte-place__name"){let t=i("div",{class:e});return a.url?t.append(i("a",{class:"aparte-place__link",attrs:{href:a.url,target:"_blank",rel:"noopener noreferrer"},text:a.name})):t.textContent=a.name,t}function G(a,e){if(e.category)return i("span",{class:"aparte-place__category",text:e.category});if(e.kind==="place")return null;let t=i("span",{class:"aparte-place__category"});return a.word(t,`cardsPlace_${e.kind}`,be[e.kind]),t}function le(a,e,t){if(e.priceText)return i("span",{class:"aparte-place__price",text:e.priceText});if(!e.price)return null;let{level:r}=e.price,n=e.price.symbol??t.currencySymbol,s=i("span",{class:"aparte-place__price",attrs:{role:"img"}},i("span",{class:"aparte-place__price-on",attrs:{"aria-hidden":"true"},text:n.repeat(r)}),r<C?i("span",{class:"aparte-place__price-off",attrs:{"aria-hidden":"true"},text:n.repeat(C-r)}):null);return a.bind(s,()=>v(a.config,"cardsPlacePrice",g.cardsPlacePrice,{level:P(a.config,r),max:P(a.config,C)}),"aria-label"),s}function ce(a,e,t){return E("aparte-place__score",[I(a,e.rating,{count:e.reviewCount}),le(a,e,t)])}function de(a,e){if(e.distance!==void 0){let t=i("span",{class:"aparte-place__distance"});return a.bind(t,()=>He(a.config,e.distance)),t}return e.distanceText?i("span",{class:"aparte-place__distance",text:e.distanceText}):null}function W(a,e,t){let r=Fe(e,t);if(!r)return null;let n=i("p",{class:"aparte-place__status",attrs:{"data-status":r.tone}}),s=i("span",{class:"aparte-place__state"});if(a.word(s,r.state,g[r.state]),n.append(i("span",{class:"aparte-place__status-dot",attrs:{"aria-hidden":"true"}}),s),r.next){let o=i("span",{class:"aparte-place__next"});a.bind(o,()=>r.next(a.config)),n.append(pe(),o)}return n}function ue(a,e){let t=de(a,e),r=e.address?i("span",{class:"aparte-place__address-text",text:e.address}):null,n=E("aparte-place__address",[t,r],"p");return n&&n.prepend(k(T,"aparte-rich-card__glyph aparte-place__line-glyph")),n}function q(a,e,t){let r=i("div",{class:`aparte-place__media aparte-place__media--${t}`}),n=k(U(e.kind),"aparte-rich-card__glyph aparte-place__marker-glyph");if(r.append(i("span",{class:"aparte-place__placeholder",attrs:{"aria-hidden":"true"}},i("span",{class:"aparte-place__marker"},n))),e.image){let s=i("img",{class:"aparte-place__img",attrs:{src:e.image,loading:"lazy",decoding:"async",referrerpolicy:"no-referrer"}});a.bind(s,()=>v(a.config,"cardsPlacePhoto",g.cardsPlacePhoto,{name:e.name}),"alt"),s.addEventListener("error",()=>{s.remove(),r.setAttribute("data-empty","")},{once:!0}),r.append(s)}else r.setAttribute("data-empty","");return r}var Z={directions:"cardsPlaceDirections",call:"cardsPlaceCall",website:"cardsPlaceWebsite"},Le={directions:_e,call:te,website:re};function fe(a,e,t,r){if(!t.builtIns)return null;let n=[["directions",Ie(e)],["call",ie(e.phone)],["website",e.website??e.url]],s=[];for(let[o,p]of n){if(!p)continue;let l=()=>v(a.config,Z[o],g[Z[o]]),c=o==="directions"&&!r,d=a.action({id:o,label:l(),url:p,primary:c},e,`aparte-place__action${r?" aparte-btn--icon aparte-btn--circle":""}`);if(d.textContent="",d.setAttribute("data-action",o),d.append(k(Le[o],"aparte-rich-card__glyph aparte-btn__icon")),r)a.bind(d,l,"aria-label"),a.bind(d,l,"title");else{let _=i("span");a.bind(_,l),d.append(_)}s.push(d)}return s.length?i("div",{class:"aparte-place__actions"},...s):null}function J(a,e,t,r,n){let s=q(a,e,"wide"),o=G(a,e);o&&s.append(i("span",{class:"aparte-place__badge"},k(U(e.kind),"aparte-rich-card__glyph aparte-place__badge-glyph"),o));let p=i("div",{class:"aparte-place__body"},B(e),ce(a,e,t),W(a,e,r),ue(a,e)),l=fe(a,e,t,n);return l&&p.append(l),i("article",{class:`aparte-place${n?" aparte-place--tile":""}`,attrs:{"data-kind":e.kind}},s,p)}function ee(a,e,t,r,n){let s=i("div",{class:"aparte-place__row-head"},B(e),de(a,e)),o=E("aparte-place__score",[I(a,e.rating,{count:e.reviewCount}),le(a,e,t),G(a,e)]),p=i("div",{class:"aparte-place__text"},s,o,W(a,e,r));return i(n,{class:"aparte-place aparte-place__row",attrs:{"data-kind":e.kind}},q(a,e,"thumb"),p)}function Ue(a,e){if(e.start===0&&e.end>=u)return v(a,"cardsPlaceAlwaysOpen",g.cardsPlaceAlwaysOpen);let t=r=>x(a,new Date(2e3,0,1,Math.floor(r/60)%24,r%60));return`${t(e.start)}\u2013${t(e.end)}`}function Re(a,e,t){if(!e.hours.length)return null;let r=se(e,t),n=i("caption",{class:"aparte-place__hours-title"}),s=i("span");a.word(s,"cardsPlaceHours",g.cardsPlaceHours),n.append(k(me,"aparte-rich-card__glyph aparte-place__line-glyph"),s);let o=i("tbody");for(let p=0;p<7;p++){let l=new Date(r.getFullYear(),r.getMonth(),r.getDate()+p,12),c=e.hours.filter(y=>y.day===l.getDay()),d=i("th",{attrs:{scope:"row"}});a.bind(d,()=>L(a.config,l));let _=i("td");a.bind(_,()=>c.length?c.map(y=>Ue(a.config,y)).join(", "):v(a.config,"cardsPlaceClosed",g.cardsPlaceClosed)),o.append(i("tr",{attrs:{"aria-current":p===0?"date":void 0,"data-closed":!c.length}},d,_))}return i("table",{class:"aparte-place__hours"},n,o)}function Ee(a,e){let t=[],r=ue(a,e);r&&t.push(i("li",{},...r.childNodes));let n=ie(e.phone);if(e.phone&&t.push(i("li",{},k(te,"aparte-rich-card__glyph aparte-place__line-glyph"),n?i("a",{class:"aparte-place__link",attrs:{href:n},text:e.phone}):e.phone)),e.website){let s=new URL(e.website).hostname.replace(/^www\./,"");t.push(i("li",{},k(re,"aparte-rich-card__glyph aparte-place__line-glyph"),i("a",{class:"aparte-place__link",attrs:{href:e.website,target:"_blank",rel:"noopener noreferrer"},text:s})))}return t.length?i("ul",{class:"aparte-place__info"},...t):null}function Be(a){return a.tags.length?i("ul",{class:"aparte-place__tags"},...a.tags.map(e=>i("li",{class:"aparte-tag aparte-tag--sm aparte-place__tag"},i("span",{class:"aparte-tag__label",text:e})))):null}function Ge(a,e,t,r){let n=q(a,e,"wide"),s=G(a,e);s&&n.append(i("span",{class:"aparte-place__badge"},k(U(e.kind),"aparte-rich-card__glyph aparte-place__badge-glyph"),s));let o=i("div",{class:"aparte-place__head"},B(e),ce(a,e,t),W(a,e,r)),p=i("div",{class:"aparte-place__body"},o);for(let l of[fe(a,e,t,!1),Ee(a,e),Re(a,e,r),Be(e)])l&&p.append(l);return[i("article",{class:"aparte-place aparte-place--detail",attrs:{"data-kind":e.kind}},n,p)]}function O(a,e){return e.title??v(a.config,"cardsPlaceCount",g.cardsPlaceCount,{n:P(a.config,e.places?.length??0)})}function ae(a,e){let t=i("span",{class:"aparte-place__heading-text"});return a.bind(t,()=>O(a,e)),i("div",{class:"aparte-place__heading"},k(T,"aparte-rich-card__glyph aparte-place__line-glyph"),t)}function We(a,e,t){let r=t.now(),[n]=a.places,s=a.places.length>1;if(e.variant==="compact"){if(!s)return[ee(e,n,t,r,"div")];let o=i("ul",{class:"aparte-place__list"},...a.places.map(p=>ee(e,p,t,r,"li")));return e.bind(o,()=>O(e,a),"aria-label"),[ae(e,a),o]}if(s){let o=a.places.map(p=>J(e,p,t,r,!0));return[i("div",{class:"aparte-place__collection"},ae(e,a),Y(e,o,{label:()=>O(e,a)}))]}return e.variant==="detail"?Ge(e,n,t,r):[J(e,n,t,r,!1)]}function qe(a,e){let t=(o,p="rect")=>i("span",{class:`aparte-skeleton aparte-skeleton--${p} ${o}`,attrs:{"aria-hidden":"true"}}),r=a?.places?.[0]?.name??a?.title,n=r?i("div",{class:"aparte-place__name",text:r}):t("aparte-place__sk-name","text");if(e.variant==="compact")return[i("div",{class:"aparte-place aparte-place__row"},t("aparte-place__media--thumb aparte-place__sk-thumb"),i("div",{class:"aparte-place__text"},n,t("aparte-place__sk-line","text")))];let s=i("div",{class:"aparte-place__body"},n,t("aparte-place__sk-line","text"),t("aparte-place__sk-line aparte-place__sk-line--short","text"),i("div",{class:"aparte-place__sk-actions"},t("aparte-place__sk-btn"),t("aparte-place__sk-btn")));return e.variant==="detail"&&s.append(i("div",{class:"aparte-place__sk-hours"},...Array.from({length:4},()=>t("aparte-place__sk-line","text")))),[i("article",{class:"aparte-place"},t("aparte-place__media--wide aparte-place__sk-media"),s)]}function Ve(a,e){let t=a?.places??[];return t.length===1?t[0].name:t.length>1||a?.title?O(e,a):v(e.config,"cardsPlaceTitle",g.cardsPlaceTitle)}function Ye(a,e){let t=a.places.map(r=>{let s=[r.rating!==void 0?`${P(e.config,r.rating,{maximumFractionDigits:1})}/5${r.reviewCount!==void 0?` (${P(e.config,r.reviewCount)})`:""}`:void 0,r.address].filter(Boolean).join(", ");return s?`${r.name} \u2014 ${s}`:r.name});return a.title?`${a.title}:
|
|
686
|
+
${t.join(`
|
|
687
|
+
`)}`:t.join(`
|
|
688
|
+
`)}function Ke(a){let e=f(a.name??a.place??a.placeName);if(e)return{places:[oe({name:e})]};let t=f(a.query??a.q??a.keyword??a.search??a.textQuery);return t?{title:t}:null}function he(a){return V({name:"place",variants:["card","compact","detail"],styles:ve,icon:T,normalize:Se,render:(e,t)=>We(e,t,a),skeleton:qe,label:Ve,fallback:Ye,partial:Ke})}var ea=he({builtIns:!0,currencySymbol:"$",now:()=>new Date});function aa(a={}){let{currencySymbol:e,now:t,builtIns:r,...n}=a;return he({builtIns:r!==!1,currencySymbol:f(e)??"$",now:t??(()=>new Date)}).setup(n)}export{Ie as directionsUrl,Je as isOpenAt,ie as phoneUrl,ea as placeCard,ne as placeStatus,R as readHours,Se as readPlaces,w as readTime,aa as setupPlaceCard};
|
|
689
|
+
//# sourceMappingURL=place-UD2C3U5F.js.map
|