@anker-in/ui 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/demo-room.d.mts +3 -57
- package/dist/demo-room.d.ts +3 -57
- package/dist/demo-room.js +123 -303
- package/dist/demo-room.js.map +1 -1
- package/dist/demo-room.mjs +124 -302
- package/dist/demo-room.mjs.map +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +559 -359
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +559 -359
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/demo-room.mjs
CHANGED
|
@@ -48,7 +48,10 @@ var StudioCard = ({
|
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
50
|
...props,
|
|
51
|
-
className: cn(
|
|
51
|
+
className: cn(
|
|
52
|
+
"p-6 cursor-pointer transition-colors duration-200 border-b border-[#E4E5E6] last:border-b-0",
|
|
53
|
+
className
|
|
54
|
+
),
|
|
52
55
|
style: {
|
|
53
56
|
backgroundColor: isHovered ? "#f3f4f6" : "transparent",
|
|
54
57
|
...style
|
|
@@ -63,14 +66,14 @@ var StudioCard = ({
|
|
|
63
66
|
},
|
|
64
67
|
children: [
|
|
65
68
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-4", children: [
|
|
66
|
-
/* @__PURE__ */ jsx("h3", { className: "text-
|
|
67
|
-
distance !== void 0 && /* @__PURE__ */ jsxs("span", { className: "text-
|
|
69
|
+
/* @__PURE__ */ jsx("h3", { className: "text-[24px] l:text-[20px] font-bold text-[#080A0F]", children: name }),
|
|
70
|
+
distance !== void 0 && /* @__PURE__ */ jsxs("span", { className: "text-[16px] l:text-[14px] font-medium text-[#2E8B57] bg-[#E8F5E9] px-3 py-1 rounded-full whitespace-nowrap ml-2", children: [
|
|
68
71
|
formatDistance(distance),
|
|
69
72
|
" ",
|
|
70
73
|
pageData.away
|
|
71
74
|
] })
|
|
72
75
|
] }),
|
|
73
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 mb-3", children: [
|
|
76
|
+
availableTime && /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 mb-3", children: [
|
|
74
77
|
/* @__PURE__ */ jsxs(
|
|
75
78
|
"svg",
|
|
76
79
|
{
|
|
@@ -123,8 +126,8 @@ var StudioCard = ({
|
|
|
123
126
|
]
|
|
124
127
|
}
|
|
125
128
|
),
|
|
126
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("p", { className: "text-
|
|
127
|
-
pageData.available,
|
|
129
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("p", { className: "text-[16px] l:text-[12px] text-[#2A2C32]", children: [
|
|
130
|
+
availableTime === pageData.noAvailableTime ? "" : pageData.available,
|
|
128
131
|
" ",
|
|
129
132
|
availableTime
|
|
130
133
|
] }) })
|
|
@@ -159,7 +162,7 @@ var StudioCard = ({
|
|
|
159
162
|
]
|
|
160
163
|
}
|
|
161
164
|
),
|
|
162
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsx("p", { className: "text-
|
|
165
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsx("p", { className: "text-[16px] l:text-[14px] text-[#2A2C32] break-words", children: address }) })
|
|
163
166
|
] }),
|
|
164
167
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 mb-6", children: [
|
|
165
168
|
/* @__PURE__ */ jsxs(
|
|
@@ -167,55 +170,44 @@ var StudioCard = ({
|
|
|
167
170
|
{
|
|
168
171
|
width: "20",
|
|
169
172
|
height: "20",
|
|
170
|
-
viewBox: "0 0
|
|
173
|
+
viewBox: "0 0 24 24",
|
|
171
174
|
fill: "none",
|
|
172
175
|
xmlns: "http://www.w3.org/2000/svg",
|
|
173
176
|
className: "flex-shrink-0 mt-0.5",
|
|
174
177
|
children: [
|
|
175
|
-
/* @__PURE__ */ jsx(
|
|
176
|
-
"rect",
|
|
177
|
-
{
|
|
178
|
-
x: "3",
|
|
179
|
-
y: "5",
|
|
180
|
-
width: "14",
|
|
181
|
-
height: "10",
|
|
182
|
-
rx: "1.5",
|
|
183
|
-
stroke: "currentColor",
|
|
184
|
-
strokeWidth: "1.5"
|
|
185
|
-
}
|
|
186
|
-
),
|
|
187
178
|
/* @__PURE__ */ jsx(
|
|
188
179
|
"path",
|
|
189
180
|
{
|
|
190
|
-
d: "
|
|
181
|
+
d: "M14.4643 7.4929H9.65565M3.16391 18.7132H20.8171C22.0122 18.7132 22.981 17.7563 22.981 16.576L23 13.8348L22.981 6.42431C22.981 5.24396 22.0122 4.28711 20.8171 4.28711H3.16391C1.96882 4.28711 1 5.24396 1 6.42431V16.576C1 17.7563 1.96882 18.7132 3.16391 18.7132Z",
|
|
191
182
|
stroke: "currentColor",
|
|
192
|
-
strokeWidth: "
|
|
193
|
-
strokeLinecap: "round"
|
|
183
|
+
strokeWidth: "2",
|
|
184
|
+
strokeLinecap: "round",
|
|
185
|
+
strokeLinejoin: "round"
|
|
194
186
|
}
|
|
195
187
|
),
|
|
196
188
|
/* @__PURE__ */ jsx(
|
|
197
189
|
"path",
|
|
198
190
|
{
|
|
199
|
-
d: "
|
|
191
|
+
d: "M5.32812 18.2325V14.4238C5.32812 13.8715 5.77584 13.4238 6.32813 13.4238H17.7925C18.3447 13.4238 18.7925 13.8715 18.7925 14.4238V18.2325",
|
|
200
192
|
stroke: "currentColor",
|
|
201
|
-
strokeWidth: "
|
|
202
|
-
strokeLinecap: "round"
|
|
193
|
+
strokeWidth: "2",
|
|
194
|
+
strokeLinecap: "round",
|
|
195
|
+
strokeLinejoin: "round"
|
|
203
196
|
}
|
|
204
|
-
)
|
|
205
|
-
/* @__PURE__ */ jsx("circle", { cx: "10", cy: "10", r: "1.5", fill: "currentColor" })
|
|
197
|
+
)
|
|
206
198
|
]
|
|
207
199
|
}
|
|
208
200
|
),
|
|
209
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("p", { className: "text-
|
|
201
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("p", { className: "text-[16px] l:text-[14px] text-[#2A2C32]", children: euifyMakeModel }) })
|
|
210
202
|
] }),
|
|
211
203
|
/* @__PURE__ */ jsx(
|
|
212
204
|
"button",
|
|
213
205
|
{
|
|
214
206
|
onClick: handleScheduleClick,
|
|
215
207
|
className: cn(
|
|
216
|
-
"w-
|
|
217
|
-
"bg-white text-gray-900 border border-gray-900",
|
|
218
|
-
"font-
|
|
208
|
+
"w-fit px-[28px] l:px-[20px] l:py-[8px] py-3 rounded-full",
|
|
209
|
+
"bg-white text-gray-900 border-2 border-gray-900",
|
|
210
|
+
"font-bold text-[16px] l:text-[14px]",
|
|
219
211
|
"hover:bg-gray-900 hover:text-white",
|
|
220
212
|
"transition-all duration-200"
|
|
221
213
|
),
|
|
@@ -335,14 +327,12 @@ var StudioMap = ({
|
|
|
335
327
|
const lng = Number(location.lng);
|
|
336
328
|
const svgIcon = {
|
|
337
329
|
url: `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(`
|
|
338
|
-
<svg width="
|
|
339
|
-
<
|
|
340
|
-
<circle cx="24" cy="24" r="10" fill="#000000"/>
|
|
341
|
-
<circle cx="24" cy="24" r="5" fill="#3ADB67"/>
|
|
330
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="34" height="44" viewBox="0 0 17 22" fill="none">
|
|
331
|
+
<path d="M8.5 0C13.1944 0 17 3.80557 17 8.5C17 12.1044 14.94 15.4573 13.0264 17.8174C12.0543 19.0162 11.0847 20.0016 10.3584 20.6875C9.99466 21.031 9.69081 21.3018 9.47559 21.4873C9.36796 21.5801 9.28226 21.6518 9.22266 21.7012C9.19285 21.7259 9.16878 21.7444 9.15234 21.7578C9.14444 21.7642 9.13843 21.7697 9.13379 21.7734C9.13156 21.7752 9.12935 21.7772 9.12793 21.7783L9.12598 21.7803H9.125C9.12232 21.7774 9.08429 21.7304 8.5 21L9.125 21.7812C8.75978 22.0734 8.24022 22.0734 7.875 21.7812L8.5 21C7.91571 21.7304 7.87768 21.7774 7.875 21.7803H7.87402L7.87207 21.7783C7.87065 21.7772 7.86844 21.7752 7.86621 21.7734C7.86157 21.7697 7.85556 21.7642 7.84766 21.7578C7.83122 21.7444 7.80715 21.7259 7.77734 21.7012C7.71774 21.6518 7.63204 21.5801 7.52441 21.4873C7.30919 21.3018 7.00534 21.031 6.6416 20.6875C5.91533 20.0016 4.94566 19.0162 3.97363 17.8174C2.06001 15.4573 0 12.1044 0 8.5C0 3.80557 3.80557 0 8.5 0ZM8.5 2C4.91013 2 2 4.91013 2 8.5C2 11.3955 3.69006 14.2928 5.52637 16.5576C6.4292 17.6711 7.33473 18.5922 8.01465 19.2344C8.19381 19.4036 8.3573 19.5526 8.5 19.6807C8.6427 19.5526 8.80619 19.4036 8.98535 19.2344C9.66527 18.5922 10.5708 17.6711 11.4736 16.5576C13.3099 14.2928 15 11.3955 15 8.5C15 4.91013 12.0899 2 8.5 2ZM8.5 4.59961C10.6539 4.59961 12.4004 6.34609 12.4004 8.5C12.4004 10.6539 10.6539 12.4004 8.5 12.4004C6.34609 12.4004 4.59961 10.6539 4.59961 8.5C4.59961 6.34609 6.34609 4.59961 8.5 4.59961ZM8.5 6.40039C7.34021 6.40039 6.40039 7.34021 6.40039 8.5C6.40039 9.65979 7.34021 10.5996 8.5 10.5996C9.65979 10.5996 10.5996 9.65979 10.5996 8.5C10.5996 7.34021 9.65979 6.40039 8.5 6.40039Z" fill="#3D3D3F"/>
|
|
342
332
|
</svg>
|
|
343
333
|
`)}`,
|
|
344
|
-
scaledSize: { width:
|
|
345
|
-
anchor: { x:
|
|
334
|
+
scaledSize: { width: 34, height: 44 },
|
|
335
|
+
anchor: { x: 17, y: 44 }
|
|
346
336
|
};
|
|
347
337
|
const marker = new google.maps.Marker({
|
|
348
338
|
position: { lat, lng },
|
|
@@ -353,41 +343,53 @@ var StudioMap = ({
|
|
|
353
343
|
marker.addListener("click", () => {
|
|
354
344
|
setSelectedLocation(location);
|
|
355
345
|
const content = `
|
|
356
|
-
<div style="padding: 16px;
|
|
357
|
-
<h3 style="margin: 0 0
|
|
358
|
-
${location.availableTime ? `<div style="
|
|
359
|
-
<svg style="
|
|
360
|
-
<
|
|
346
|
+
<div style="padding: 0 16px 16px 16px; font-weight: 700; font-family: 'MontForAnker'; max-width: 420px;">
|
|
347
|
+
<h3 style="margin: 0 0 16px 0; font-size: 24px; color: #080A0F;">${location.name}</h3>
|
|
348
|
+
${location.availableTime ? `<div style="display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;">
|
|
349
|
+
<svg style="flex-shrink: 0; margin-top: 2px;" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
350
|
+
<rect x="3" y="4" width="14" height="13" rx="2" stroke="currentColor" stroke-width="1.5"/>
|
|
351
|
+
<path d="M3 8H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
352
|
+
<path d="M6 2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
353
|
+
<path d="M14 2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
361
354
|
</svg>
|
|
362
|
-
<
|
|
355
|
+
<div>
|
|
356
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32;">${location.availableTime === pageData?.noAvailableTime ? "" : pageData.available} ${location.availableTime}</p>
|
|
357
|
+
</div>
|
|
363
358
|
</div>` : ""}
|
|
364
|
-
<div style="
|
|
365
|
-
<svg style="
|
|
366
|
-
<path
|
|
359
|
+
<div style="display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;">
|
|
360
|
+
<svg style="flex-shrink: 0; margin-top: 2px;" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
361
|
+
<path d="M10 10C11.1046 10 12 9.10457 12 8C12 6.89543 11.1046 6 10 6C8.89543 6 8 6.89543 8 8C8 9.10457 8.89543 10 10 10Z" stroke="currentColor" stroke-width="1.5"/>
|
|
362
|
+
<path d="M10 18C10 18 16 13 16 8C16 4.68629 13.3137 2 10 2C6.68629 2 4 4.68629 4 8C4 13 10 18 10 18Z" stroke="currentColor" stroke-width="1.5"/>
|
|
367
363
|
</svg>
|
|
368
|
-
<
|
|
364
|
+
<div style="flex: 1;">
|
|
365
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32; word-wrap: break-word;">${location.address}</p>
|
|
366
|
+
</div>
|
|
369
367
|
</div>
|
|
370
|
-
${location.euifyMakeModel ? `<div style="
|
|
371
|
-
<svg style="
|
|
372
|
-
<path d="
|
|
368
|
+
${location.euifyMakeModel ? `<div style="display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px;">
|
|
369
|
+
<svg style="flex-shrink: 0; margin-top: 2px;" width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
370
|
+
<path d="M14.4643 7.4929H9.65565M3.16391 18.7132H20.8171C22.0122 18.7132 22.981 17.7563 22.981 16.576L23 13.8348L22.981 6.42431C22.981 5.24396 22.0122 4.28711 20.8171 4.28711H3.16391C1.96882 4.28711 1 5.24396 1 6.42431V16.576C1 17.7563 1.96882 18.7132 3.16391 18.7132Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
371
|
+
<path d="M5.32812 18.2325V14.4238C5.32812 13.8715 5.77584 13.4238 6.32813 13.4238H17.7925C18.3447 13.4238 18.7925 13.8715 18.7925 14.4238V18.2325" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
373
372
|
</svg>
|
|
374
|
-
<
|
|
373
|
+
<div>
|
|
374
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32;">${location.euifyMakeModel}</p>
|
|
375
|
+
</div>
|
|
375
376
|
</div>` : ""}
|
|
376
377
|
<button
|
|
377
378
|
id="schedule-btn-${location.id}"
|
|
378
379
|
style="
|
|
379
|
-
width:
|
|
380
|
-
padding:
|
|
381
|
-
background: #
|
|
382
|
-
color: #
|
|
383
|
-
border:
|
|
384
|
-
border-radius:
|
|
385
|
-
font-weight:
|
|
380
|
+
width: fit-content;
|
|
381
|
+
padding: 12px 28px;
|
|
382
|
+
background: #fff;
|
|
383
|
+
color: #111827;
|
|
384
|
+
border: 2px solid #111827;
|
|
385
|
+
border-radius: 9999px;
|
|
386
|
+
font-weight: 700;
|
|
386
387
|
cursor: pointer;
|
|
387
|
-
font-size:
|
|
388
|
+
font-size: 16px;
|
|
389
|
+
transition: all 0.2s;
|
|
388
390
|
"
|
|
389
|
-
onmouseover="this.style.background='#
|
|
390
|
-
onmouseout="this.style.background='#
|
|
391
|
+
onmouseover="this.style.background='#111827'; this.style.color='#fff';"
|
|
392
|
+
onmouseout="this.style.background='#fff'; this.style.color='#111827';"
|
|
391
393
|
>
|
|
392
394
|
${pageData.scheduleNow}
|
|
393
395
|
</button>
|
|
@@ -439,41 +441,53 @@ var StudioMap = ({
|
|
|
439
441
|
const marker = markersRef.current[markerIndex];
|
|
440
442
|
if (location && marker) {
|
|
441
443
|
const content = `
|
|
442
|
-
<div style="padding: 16px;
|
|
443
|
-
<h3 style="margin: 0 0
|
|
444
|
-
${location.availableTime ? `<div style="
|
|
445
|
-
<svg style="
|
|
446
|
-
<
|
|
444
|
+
<div style="padding: 0 16px 16px 16px; font-weight: 700; font-family: 'MontForAnker'; max-width: 420px;">
|
|
445
|
+
<h3 style="margin: 0 0 16px 0; font-size: 24px; color: #080A0F;">${location.name}</h3>
|
|
446
|
+
${location.availableTime ? `<div style="display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;">
|
|
447
|
+
<svg style="flex-shrink: 0; margin-top: 2px;" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
448
|
+
<rect x="3" y="4" width="14" height="13" rx="2" stroke="currentColor" stroke-width="1.5"/>
|
|
449
|
+
<path d="M3 8H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
450
|
+
<path d="M6 2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
451
|
+
<path d="M14 2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
447
452
|
</svg>
|
|
448
|
-
<
|
|
453
|
+
<div>
|
|
454
|
+
<p style="margin: 0;font-size: 16px; color: #2A2C32;">${location.availableTime === pageData?.noAvailableTime ? "" : pageData.available} ${location.availableTime}</p>
|
|
455
|
+
</div>
|
|
449
456
|
</div>` : ""}
|
|
450
|
-
<div style="
|
|
451
|
-
<svg style="
|
|
452
|
-
<path
|
|
457
|
+
<div style="display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;">
|
|
458
|
+
<svg style="flex-shrink: 0; margin-top: 2px;" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
459
|
+
<path d="M10 10C11.1046 10 12 9.10457 12 8C12 6.89543 11.1046 6 10 6C8.89543 6 8 6.89543 8 8C8 9.10457 8.89543 10 10 10Z" stroke="currentColor" stroke-width="1.5"/>
|
|
460
|
+
<path d="M10 18C10 18 16 13 16 8C16 4.68629 13.3137 2 10 2C6.68629 2 4 4.68629 4 8C4 13 10 18 10 18Z" stroke="currentColor" stroke-width="1.5"/>
|
|
453
461
|
</svg>
|
|
454
|
-
<
|
|
462
|
+
<div style="flex: 1;">
|
|
463
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32; word-wrap: break-word;">${location.address}</p>
|
|
464
|
+
</div>
|
|
455
465
|
</div>
|
|
456
|
-
${location.euifyMakeModel ? `<div style="
|
|
457
|
-
<svg style="
|
|
458
|
-
<path d="
|
|
466
|
+
${location.euifyMakeModel ? `<div style="display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px;">
|
|
467
|
+
<svg style="flex-shrink: 0; margin-top: 2px;" width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
468
|
+
<path d="M14.4643 7.4929H9.65565M3.16391 18.7132H20.8171C22.0122 18.7132 22.981 17.7563 22.981 16.576L23 13.8348L22.981 6.42431C22.981 5.24396 22.0122 4.28711 20.8171 4.28711H3.16391C1.96882 4.28711 1 5.24396 1 6.42431V16.576C1 17.7563 1.96882 18.7132 3.16391 18.7132Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
469
|
+
<path d="M5.32812 18.2325V14.4238C5.32812 13.8715 5.77584 13.4238 6.32813 13.4238H17.7925C18.3447 13.4238 18.7925 13.8715 18.7925 14.4238V18.2325" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
459
470
|
</svg>
|
|
460
|
-
<
|
|
471
|
+
<div>
|
|
472
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32;">${location.euifyMakeModel}</p>
|
|
473
|
+
</div>
|
|
461
474
|
</div>` : ""}
|
|
462
475
|
<button
|
|
463
476
|
id="schedule-btn-hover-${location.id}"
|
|
464
477
|
style="
|
|
465
|
-
width:
|
|
466
|
-
padding:
|
|
467
|
-
background: #
|
|
468
|
-
color: #
|
|
469
|
-
border:
|
|
470
|
-
border-radius:
|
|
471
|
-
font-weight:
|
|
478
|
+
width: fit-content;
|
|
479
|
+
padding: 12px 28px;
|
|
480
|
+
background: #fff;
|
|
481
|
+
color: #111827;
|
|
482
|
+
border: 2px solid #111827;
|
|
483
|
+
border-radius: 9999px;
|
|
484
|
+
font-weight: 700;
|
|
472
485
|
cursor: pointer;
|
|
473
|
-
font-size:
|
|
486
|
+
font-size: 16px;
|
|
487
|
+
transition: all 0.2s;
|
|
474
488
|
"
|
|
475
|
-
onmouseover="this.style.background='#
|
|
476
|
-
onmouseout="this.style.background='#
|
|
489
|
+
onmouseover="this.style.background='#111827'; this.style.color='#fff';"
|
|
490
|
+
onmouseout="this.style.background='#fff'; this.style.color='#111827';"
|
|
477
491
|
>
|
|
478
492
|
${pageData.scheduleNow}
|
|
479
493
|
</button>
|
|
@@ -767,9 +781,9 @@ var LocationFilter = ({
|
|
|
767
781
|
"div",
|
|
768
782
|
{
|
|
769
783
|
style: { background: "#F8F8F8" },
|
|
770
|
-
className: "rounded-[12px] rounded-b-none h-[
|
|
784
|
+
className: "rounded-[12px] rounded-b-none h-[108px] font-bold text-[14px] flex flex-col",
|
|
771
785
|
children: [
|
|
772
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end px-[
|
|
786
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end px-[24px] pt-[12px] pb-[8px]", children: /* @__PURE__ */ jsx(
|
|
773
787
|
"button",
|
|
774
788
|
{
|
|
775
789
|
onClick: onClose,
|
|
@@ -793,14 +807,14 @@ var LocationFilter = ({
|
|
|
793
807
|
)
|
|
794
808
|
}
|
|
795
809
|
) }),
|
|
796
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center px-[20px] gap-[16px]
|
|
810
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center text-[16px] px-[20px] gap-[16px] py-[16px]", children: [
|
|
797
811
|
/* @__PURE__ */ jsx(
|
|
798
812
|
"button",
|
|
799
813
|
{
|
|
800
814
|
onClick: () => handleTabClick("country"),
|
|
801
815
|
className: cn(
|
|
802
816
|
"pb-[4px] transition-colors",
|
|
803
|
-
currentLevel === "country" ? "text-[#
|
|
817
|
+
currentLevel === "country" ? "text-[#080A0F] border-b-2 border-[#3ADB67]" : "text-[#080A0F]"
|
|
804
818
|
),
|
|
805
819
|
children: pageData.country
|
|
806
820
|
}
|
|
@@ -812,7 +826,7 @@ var LocationFilter = ({
|
|
|
812
826
|
disabled: !selectedCountry,
|
|
813
827
|
className: cn(
|
|
814
828
|
"pb-[4px] transition-colors",
|
|
815
|
-
currentLevel === "state" ? "text-[#
|
|
829
|
+
currentLevel === "state" ? "text-[#080A0F] border-b-2 border-[#3ADB67]" : "text-[#080A0F]",
|
|
816
830
|
!selectedCountry && "opacity-50 cursor-not-allowed"
|
|
817
831
|
),
|
|
818
832
|
children: pageData.state
|
|
@@ -825,7 +839,7 @@ var LocationFilter = ({
|
|
|
825
839
|
disabled: !selectedState,
|
|
826
840
|
className: cn(
|
|
827
841
|
"pb-[4px] transition-colors",
|
|
828
|
-
currentLevel === "city" ? "text-[#
|
|
842
|
+
currentLevel === "city" ? "text-[#080A0F] border-b-2 border-[#3ADB67]" : "text-[#080A0F]",
|
|
829
843
|
!selectedState && "opacity-50 cursor-not-allowed"
|
|
830
844
|
),
|
|
831
845
|
children: pageData.city
|
|
@@ -835,12 +849,13 @@ var LocationFilter = ({
|
|
|
835
849
|
]
|
|
836
850
|
}
|
|
837
851
|
),
|
|
838
|
-
/* @__PURE__ */ jsx(AntdMobileIsolated, { style: { height: "calc(100% -
|
|
852
|
+
/* @__PURE__ */ jsx(AntdMobileIsolated, { style: { height: "calc(100% - 108px)" }, children: showIndexBar ? /* @__PURE__ */ jsx(IndexBar, { style: { height: "100%" }, children: groupedItems.map((group) => {
|
|
839
853
|
const { title, items } = group;
|
|
840
854
|
return /* @__PURE__ */ jsx(IndexBar.Panel, { index: title, title, children: /* @__PURE__ */ jsx(List, { children: items.map((item) => /* @__PURE__ */ jsx(
|
|
841
855
|
List.Item,
|
|
842
856
|
{
|
|
843
857
|
onClick: () => handleItemClick(item),
|
|
858
|
+
className: "text-[16px] !pl-[24px]",
|
|
844
859
|
style: { cursor: "pointer" },
|
|
845
860
|
children: item.name
|
|
846
861
|
},
|
|
@@ -850,6 +865,7 @@ var LocationFilter = ({
|
|
|
850
865
|
List.Item,
|
|
851
866
|
{
|
|
852
867
|
onClick: () => handleItemClick(item),
|
|
868
|
+
className: "text-[16px] !pl-[24px]",
|
|
853
869
|
style: { cursor: "pointer" },
|
|
854
870
|
children: item.name
|
|
855
871
|
},
|
|
@@ -1047,13 +1063,13 @@ var RoomsList = ({
|
|
|
1047
1063
|
state,
|
|
1048
1064
|
zipCode: "",
|
|
1049
1065
|
country,
|
|
1050
|
-
lat: Number(room.latitude) ||
|
|
1051
|
-
lng: Number(room.longitude) ||
|
|
1066
|
+
lat: Number(room.latitude) || 0,
|
|
1067
|
+
lng: Number(room.longitude) || 0,
|
|
1052
1068
|
availableTime: nextAvailableTimeslot ? `${nextAvailableTimeslot.start_time}` : mergedPageData.noAvailableTime,
|
|
1053
|
-
euifyMakeModel: room?.
|
|
1069
|
+
euifyMakeModel: room?.equipment?.join(", ") || ""
|
|
1054
1070
|
};
|
|
1055
1071
|
});
|
|
1056
|
-
}, [demoRooms]);
|
|
1072
|
+
}, [demoRooms, mergedPageData.defaultCountry, mergedPageData.noAvailableTime]);
|
|
1057
1073
|
const filteredStudioLocations = useMemo(() => {
|
|
1058
1074
|
if (!selectedLocation) return studioLocations;
|
|
1059
1075
|
return studioLocations.filter((location) => {
|
|
@@ -1102,7 +1118,7 @@ var RoomsList = ({
|
|
|
1102
1118
|
/* @__PURE__ */ jsxs(
|
|
1103
1119
|
"button",
|
|
1104
1120
|
{
|
|
1105
|
-
className: "flex cursor-pointer items-center hover:text-[#
|
|
1121
|
+
className: "flex cursor-pointer items-center hover:text-[#3ADB67] transition-colors",
|
|
1106
1122
|
onClick: () => setShowLocationFilter(true),
|
|
1107
1123
|
children: [
|
|
1108
1124
|
/* @__PURE__ */ jsx("span", { className: "mr-1", children: getSelectedLocationName() }),
|
|
@@ -1159,7 +1175,7 @@ var RoomsList = ({
|
|
|
1159
1175
|
"div",
|
|
1160
1176
|
{
|
|
1161
1177
|
style: { maxHeight: "706px", overflow: "auto" },
|
|
1162
|
-
className: "rounded-[12px] bg-white border border-[#E4E5E6]",
|
|
1178
|
+
className: "rounded-[12px] bg-white border h-[706px] border-[#E4E5E6]",
|
|
1163
1179
|
children: filteredStudioLocations.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-[200px] text-[#767880]", children: mergedPageData.locationFilter.noStudiosFound }) : filteredStudioLocations.map((item) => {
|
|
1164
1180
|
return /* @__PURE__ */ jsx(
|
|
1165
1181
|
StudioCard,
|
|
@@ -1175,7 +1191,10 @@ var RoomsList = ({
|
|
|
1175
1191
|
onSchedule,
|
|
1176
1192
|
onMouseEnter: () => setHoveredRoomId(item.id),
|
|
1177
1193
|
onMouseLeave: () => setHoveredRoomId(null),
|
|
1178
|
-
pageData:
|
|
1194
|
+
pageData: {
|
|
1195
|
+
...mergedPageData.studioCard,
|
|
1196
|
+
noAvailableTime: mergedPageData?.noAvailableTime
|
|
1197
|
+
}
|
|
1179
1198
|
},
|
|
1180
1199
|
item.id
|
|
1181
1200
|
);
|
|
@@ -1208,7 +1227,10 @@ var RoomsList = ({
|
|
|
1208
1227
|
hoveredLocationId: hoveredRoomId,
|
|
1209
1228
|
onSchedule,
|
|
1210
1229
|
mapHeight: "794px",
|
|
1211
|
-
pageData:
|
|
1230
|
+
pageData: {
|
|
1231
|
+
...mergedPageData.map,
|
|
1232
|
+
noAvailableTime: pageData?.noAvailableTime
|
|
1233
|
+
}
|
|
1212
1234
|
}
|
|
1213
1235
|
) })
|
|
1214
1236
|
] })
|
|
@@ -1411,207 +1433,7 @@ var DemoRoom = ({
|
|
|
1411
1433
|
) });
|
|
1412
1434
|
};
|
|
1413
1435
|
DemoRoom.displayName = "DemoRoom";
|
|
1414
|
-
var EventCard = ({
|
|
1415
|
-
title,
|
|
1416
|
-
description,
|
|
1417
|
-
backgroundImage,
|
|
1418
|
-
aspectRatio,
|
|
1419
|
-
variant = "medium",
|
|
1420
|
-
buttons = [],
|
|
1421
|
-
subtitle,
|
|
1422
|
-
className,
|
|
1423
|
-
...props
|
|
1424
|
-
}) => {
|
|
1425
|
-
const isLarge = variant === "large";
|
|
1426
|
-
const isMedium = variant === "medium";
|
|
1427
|
-
const isProduct = variant === "product";
|
|
1428
|
-
return /* @__PURE__ */ jsx(
|
|
1429
|
-
"div",
|
|
1430
|
-
{
|
|
1431
|
-
className: cn("rounded-3xl overflow-hidden relative", className),
|
|
1432
|
-
style: {
|
|
1433
|
-
backgroundImage: backgroundImage ? `url(${backgroundImage})` : void 0,
|
|
1434
|
-
backgroundSize: "cover",
|
|
1435
|
-
backgroundPosition: "center",
|
|
1436
|
-
aspectRatio
|
|
1437
|
-
},
|
|
1438
|
-
...props,
|
|
1439
|
-
children: /* @__PURE__ */ jsxs(
|
|
1440
|
-
"div",
|
|
1441
|
-
{
|
|
1442
|
-
className: cn(
|
|
1443
|
-
"relative h-full flex flex-col",
|
|
1444
|
-
isLarge && "justify-center pl-8",
|
|
1445
|
-
!isLarge && "justify-end pl-8 pb-8"
|
|
1446
|
-
),
|
|
1447
|
-
children: [
|
|
1448
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
1449
|
-
/* @__PURE__ */ jsx(
|
|
1450
|
-
"h3",
|
|
1451
|
-
{
|
|
1452
|
-
className: cn(
|
|
1453
|
-
"font-semibold mb-3",
|
|
1454
|
-
isLarge && "text-3xl text-gray-900",
|
|
1455
|
-
isMedium && "text-2xl text-white",
|
|
1456
|
-
isProduct && "text-2xl text-gray-900"
|
|
1457
|
-
),
|
|
1458
|
-
children: title
|
|
1459
|
-
}
|
|
1460
|
-
),
|
|
1461
|
-
subtitle && isProduct && /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-600 mb-4", children: subtitle }),
|
|
1462
|
-
description && /* @__PURE__ */ jsx(
|
|
1463
|
-
"p",
|
|
1464
|
-
{
|
|
1465
|
-
className: cn(
|
|
1466
|
-
"text-sm leading-relaxed",
|
|
1467
|
-
isMedium && "text-white/90",
|
|
1468
|
-
(isLarge || isProduct) && "text-gray-600"
|
|
1469
|
-
),
|
|
1470
|
-
children: description
|
|
1471
|
-
}
|
|
1472
|
-
)
|
|
1473
|
-
] }),
|
|
1474
|
-
buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex gap-3 mt-6", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
|
|
1475
|
-
"button",
|
|
1476
|
-
{
|
|
1477
|
-
onClick: button.onClick,
|
|
1478
|
-
className: cn(
|
|
1479
|
-
"px-6 py-3 rounded-full font-medium text-sm transition-all duration-200",
|
|
1480
|
-
button.variant === "primary" && "bg-gray-900 text-white hover:bg-gray-800",
|
|
1481
|
-
button.variant === "secondary" && "bg-white text-gray-900 border border-gray-300 hover:bg-gray-50"
|
|
1482
|
-
),
|
|
1483
|
-
children: button.label
|
|
1484
|
-
},
|
|
1485
|
-
index
|
|
1486
|
-
)) })
|
|
1487
|
-
]
|
|
1488
|
-
}
|
|
1489
|
-
)
|
|
1490
|
-
}
|
|
1491
|
-
);
|
|
1492
|
-
};
|
|
1493
|
-
EventCard.displayName = "EventCard";
|
|
1494
|
-
var defaultEvents = [
|
|
1495
|
-
{
|
|
1496
|
-
variant: "large",
|
|
1497
|
-
title: "IFA 2025 Event Name Event Name",
|
|
1498
|
-
description: "Corem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
1499
|
-
backgroundImage: "https://cdn.shopify.com/s/files/1/0569/5147/2268/files/Component_3_1.png?v=1765274638",
|
|
1500
|
-
buttons: [
|
|
1501
|
-
{
|
|
1502
|
-
label: "Schedule Now",
|
|
1503
|
-
variant: "primary"
|
|
1504
|
-
}
|
|
1505
|
-
],
|
|
1506
|
-
aspectRatio: "1664 / 640"
|
|
1507
|
-
},
|
|
1508
|
-
{
|
|
1509
|
-
variant: "medium",
|
|
1510
|
-
title: "Local Event Name Local Event Name Local Event Name",
|
|
1511
|
-
description: "Norem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.",
|
|
1512
|
-
backgroundImage: "https://cdn.shopify.com/s/files/1/0569/5147/2268/files/Component_3_1.png?v=1765274638",
|
|
1513
|
-
buttons: [
|
|
1514
|
-
{
|
|
1515
|
-
label: "Schedule Now",
|
|
1516
|
-
variant: "primary"
|
|
1517
|
-
}
|
|
1518
|
-
],
|
|
1519
|
-
aspectRatio: "824 / 640"
|
|
1520
|
-
},
|
|
1521
|
-
{
|
|
1522
|
-
variant: "product",
|
|
1523
|
-
title: "Anker Prime",
|
|
1524
|
-
subtitle: "Anker Prime 240W GaN Desktop Charger (4 Ports) Feb. 5th - 16th",
|
|
1525
|
-
backgroundImage: "https://cdn.shopify.com/s/files/1/0569/5147/2268/files/Component_3_1.png?v=1765274638",
|
|
1526
|
-
buttons: [
|
|
1527
|
-
{
|
|
1528
|
-
label: "Learn More",
|
|
1529
|
-
variant: "secondary"
|
|
1530
|
-
},
|
|
1531
|
-
{
|
|
1532
|
-
label: "Shop Now",
|
|
1533
|
-
variant: "primary"
|
|
1534
|
-
}
|
|
1535
|
-
],
|
|
1536
|
-
aspectRatio: "824 / 640"
|
|
1537
|
-
},
|
|
1538
|
-
{
|
|
1539
|
-
variant: "medium",
|
|
1540
|
-
title: "Local Event Name Local Event Name Local Event Name",
|
|
1541
|
-
description: "Norem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.",
|
|
1542
|
-
backgroundImage: "https://cdn.shopify.com/s/files/1/0569/5147/2268/files/Component_3_1.png?v=1765274638",
|
|
1543
|
-
buttons: [
|
|
1544
|
-
{
|
|
1545
|
-
label: "Schedule Now",
|
|
1546
|
-
variant: "primary"
|
|
1547
|
-
}
|
|
1548
|
-
],
|
|
1549
|
-
aspectRatio: "824 / 640"
|
|
1550
|
-
},
|
|
1551
|
-
{
|
|
1552
|
-
variant: "product",
|
|
1553
|
-
title: "Anker Prime",
|
|
1554
|
-
subtitle: "Anker Prime 240W GaN Desktop Charger (4 Ports) Feb. 5th - 16th",
|
|
1555
|
-
backgroundImage: "https://cdn.shopify.com/s/files/1/0569/5147/2268/files/Component_3_1.png?v=1765274638",
|
|
1556
|
-
buttons: [
|
|
1557
|
-
{
|
|
1558
|
-
label: "Learn More",
|
|
1559
|
-
variant: "secondary"
|
|
1560
|
-
},
|
|
1561
|
-
{
|
|
1562
|
-
label: "Shop Now",
|
|
1563
|
-
variant: "primary"
|
|
1564
|
-
}
|
|
1565
|
-
],
|
|
1566
|
-
aspectRatio: "824 / 640"
|
|
1567
|
-
}
|
|
1568
|
-
];
|
|
1569
|
-
var UpcomingEvents = ({
|
|
1570
|
-
title = "Upcoming Events",
|
|
1571
|
-
events = defaultEvents,
|
|
1572
|
-
showViewMore = true,
|
|
1573
|
-
onViewMore,
|
|
1574
|
-
className,
|
|
1575
|
-
...props
|
|
1576
|
-
}) => {
|
|
1577
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("w-full", className), ...props, children: [
|
|
1578
|
-
/* @__PURE__ */ jsx(Title, { title }),
|
|
1579
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-6 mb-[64px]", children: events.map((event, index) => /* @__PURE__ */ jsx("div", { className: cn(index === 0 ? "col-span-2" : ""), children: /* @__PURE__ */ jsx(EventCard, { ...event }) }, index)) }),
|
|
1580
|
-
showViewMore && /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxs(
|
|
1581
|
-
"button",
|
|
1582
|
-
{
|
|
1583
|
-
onClick: onViewMore,
|
|
1584
|
-
className: "inline-flex items-center gap-2 text-gray-700 hover:text-gray-900 transition-colors duration-200",
|
|
1585
|
-
children: [
|
|
1586
|
-
/* @__PURE__ */ jsx("span", { className: "text-base font-bold", children: "View More" }),
|
|
1587
|
-
/* @__PURE__ */ jsx(
|
|
1588
|
-
"svg",
|
|
1589
|
-
{
|
|
1590
|
-
width: "16",
|
|
1591
|
-
height: "16",
|
|
1592
|
-
viewBox: "0 0 16 16",
|
|
1593
|
-
fill: "none",
|
|
1594
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1595
|
-
className: "transition-transform duration-200 group-hover:translate-y-0.5",
|
|
1596
|
-
children: /* @__PURE__ */ jsx(
|
|
1597
|
-
"path",
|
|
1598
|
-
{
|
|
1599
|
-
d: "M8 3L8 13M8 13L12 9M8 13L4 9",
|
|
1600
|
-
stroke: "currentColor",
|
|
1601
|
-
strokeWidth: "2",
|
|
1602
|
-
strokeLinecap: "round",
|
|
1603
|
-
strokeLinejoin: "round"
|
|
1604
|
-
}
|
|
1605
|
-
)
|
|
1606
|
-
}
|
|
1607
|
-
)
|
|
1608
|
-
]
|
|
1609
|
-
}
|
|
1610
|
-
) })
|
|
1611
|
-
] });
|
|
1612
|
-
};
|
|
1613
|
-
UpcomingEvents.displayName = "UpcomingEvents";
|
|
1614
1436
|
|
|
1615
|
-
export { DemoRoom,
|
|
1437
|
+
export { DemoRoom, StudioCard, StudioMap };
|
|
1616
1438
|
//# sourceMappingURL=demo-room.mjs.map
|
|
1617
1439
|
//# sourceMappingURL=demo-room.mjs.map
|