@anker-in/ui 0.1.10 → 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.js +107 -94
- package/dist/demo-room.js.map +1 -1
- package/dist/demo-room.mjs +107 -94
- 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 +262 -212
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +262 -212
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/demo-room.mjs
CHANGED
|
@@ -49,7 +49,7 @@ var StudioCard = ({
|
|
|
49
49
|
{
|
|
50
50
|
...props,
|
|
51
51
|
className: cn(
|
|
52
|
-
"p-6 cursor-pointer transition-colors duration-200",
|
|
52
|
+
"p-6 cursor-pointer transition-colors duration-200 border-b border-[#E4E5E6] last:border-b-0",
|
|
53
53
|
className
|
|
54
54
|
),
|
|
55
55
|
style: {
|
|
@@ -66,8 +66,8 @@ var StudioCard = ({
|
|
|
66
66
|
},
|
|
67
67
|
children: [
|
|
68
68
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-4", children: [
|
|
69
|
-
/* @__PURE__ */ jsx("h3", { className: "text-
|
|
70
|
-
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: [
|
|
71
71
|
formatDistance(distance),
|
|
72
72
|
" ",
|
|
73
73
|
pageData.away
|
|
@@ -126,7 +126,7 @@ var StudioCard = ({
|
|
|
126
126
|
]
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("p", { className: "text-
|
|
129
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("p", { className: "text-[16px] l:text-[12px] text-[#2A2C32]", children: [
|
|
130
130
|
availableTime === pageData.noAvailableTime ? "" : pageData.available,
|
|
131
131
|
" ",
|
|
132
132
|
availableTime
|
|
@@ -162,7 +162,7 @@ var StudioCard = ({
|
|
|
162
162
|
]
|
|
163
163
|
}
|
|
164
164
|
),
|
|
165
|
-
/* @__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 }) })
|
|
166
166
|
] }),
|
|
167
167
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3 mb-6", children: [
|
|
168
168
|
/* @__PURE__ */ jsxs(
|
|
@@ -170,55 +170,44 @@ var StudioCard = ({
|
|
|
170
170
|
{
|
|
171
171
|
width: "20",
|
|
172
172
|
height: "20",
|
|
173
|
-
viewBox: "0 0
|
|
173
|
+
viewBox: "0 0 24 24",
|
|
174
174
|
fill: "none",
|
|
175
175
|
xmlns: "http://www.w3.org/2000/svg",
|
|
176
176
|
className: "flex-shrink-0 mt-0.5",
|
|
177
177
|
children: [
|
|
178
|
-
/* @__PURE__ */ jsx(
|
|
179
|
-
"rect",
|
|
180
|
-
{
|
|
181
|
-
x: "3",
|
|
182
|
-
y: "5",
|
|
183
|
-
width: "14",
|
|
184
|
-
height: "10",
|
|
185
|
-
rx: "1.5",
|
|
186
|
-
stroke: "currentColor",
|
|
187
|
-
strokeWidth: "1.5"
|
|
188
|
-
}
|
|
189
|
-
),
|
|
190
178
|
/* @__PURE__ */ jsx(
|
|
191
179
|
"path",
|
|
192
180
|
{
|
|
193
|
-
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",
|
|
194
182
|
stroke: "currentColor",
|
|
195
|
-
strokeWidth: "
|
|
196
|
-
strokeLinecap: "round"
|
|
183
|
+
strokeWidth: "2",
|
|
184
|
+
strokeLinecap: "round",
|
|
185
|
+
strokeLinejoin: "round"
|
|
197
186
|
}
|
|
198
187
|
),
|
|
199
188
|
/* @__PURE__ */ jsx(
|
|
200
189
|
"path",
|
|
201
190
|
{
|
|
202
|
-
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",
|
|
203
192
|
stroke: "currentColor",
|
|
204
|
-
strokeWidth: "
|
|
205
|
-
strokeLinecap: "round"
|
|
193
|
+
strokeWidth: "2",
|
|
194
|
+
strokeLinecap: "round",
|
|
195
|
+
strokeLinejoin: "round"
|
|
206
196
|
}
|
|
207
|
-
)
|
|
208
|
-
/* @__PURE__ */ jsx("circle", { cx: "10", cy: "10", r: "1.5", fill: "currentColor" })
|
|
197
|
+
)
|
|
209
198
|
]
|
|
210
199
|
}
|
|
211
200
|
),
|
|
212
|
-
/* @__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 }) })
|
|
213
202
|
] }),
|
|
214
203
|
/* @__PURE__ */ jsx(
|
|
215
204
|
"button",
|
|
216
205
|
{
|
|
217
206
|
onClick: handleScheduleClick,
|
|
218
207
|
className: cn(
|
|
219
|
-
"w-
|
|
220
|
-
"bg-white text-gray-900 border border-gray-900",
|
|
221
|
-
"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]",
|
|
222
211
|
"hover:bg-gray-900 hover:text-white",
|
|
223
212
|
"transition-all duration-200"
|
|
224
213
|
),
|
|
@@ -338,14 +327,12 @@ var StudioMap = ({
|
|
|
338
327
|
const lng = Number(location.lng);
|
|
339
328
|
const svgIcon = {
|
|
340
329
|
url: `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(`
|
|
341
|
-
<svg width="
|
|
342
|
-
<
|
|
343
|
-
<circle cx="24" cy="24" r="10" fill="#000000"/>
|
|
344
|
-
<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"/>
|
|
345
332
|
</svg>
|
|
346
333
|
`)}`,
|
|
347
|
-
scaledSize: { width:
|
|
348
|
-
anchor: { x:
|
|
334
|
+
scaledSize: { width: 34, height: 44 },
|
|
335
|
+
anchor: { x: 17, y: 44 }
|
|
349
336
|
};
|
|
350
337
|
const marker = new google.maps.Marker({
|
|
351
338
|
position: { lat, lng },
|
|
@@ -356,41 +343,53 @@ var StudioMap = ({
|
|
|
356
343
|
marker.addListener("click", () => {
|
|
357
344
|
setSelectedLocation(location);
|
|
358
345
|
const content = `
|
|
359
|
-
<div style="padding: 16px;
|
|
360
|
-
<h3 style="margin: 0 0
|
|
361
|
-
${location.availableTime ? `<div style="
|
|
362
|
-
<svg style="
|
|
363
|
-
<
|
|
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"/>
|
|
364
354
|
</svg>
|
|
365
|
-
<
|
|
355
|
+
<div>
|
|
356
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32;">${location.availableTime === pageData?.noAvailableTime ? "" : pageData.available} ${location.availableTime}</p>
|
|
357
|
+
</div>
|
|
366
358
|
</div>` : ""}
|
|
367
|
-
<div style="
|
|
368
|
-
<svg style="
|
|
369
|
-
<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"/>
|
|
370
363
|
</svg>
|
|
371
|
-
<
|
|
364
|
+
<div style="flex: 1;">
|
|
365
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32; word-wrap: break-word;">${location.address}</p>
|
|
366
|
+
</div>
|
|
372
367
|
</div>
|
|
373
|
-
${location.euifyMakeModel ? `<div style="
|
|
374
|
-
<svg style="
|
|
375
|
-
<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"/>
|
|
376
372
|
</svg>
|
|
377
|
-
<
|
|
373
|
+
<div>
|
|
374
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32;">${location.euifyMakeModel}</p>
|
|
375
|
+
</div>
|
|
378
376
|
</div>` : ""}
|
|
379
377
|
<button
|
|
380
378
|
id="schedule-btn-${location.id}"
|
|
381
379
|
style="
|
|
382
|
-
width:
|
|
383
|
-
padding:
|
|
384
|
-
background: #
|
|
385
|
-
color: #
|
|
386
|
-
border:
|
|
387
|
-
border-radius:
|
|
388
|
-
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;
|
|
389
387
|
cursor: pointer;
|
|
390
|
-
font-size:
|
|
388
|
+
font-size: 16px;
|
|
389
|
+
transition: all 0.2s;
|
|
391
390
|
"
|
|
392
|
-
onmouseover="this.style.background='#
|
|
393
|
-
onmouseout="this.style.background='#
|
|
391
|
+
onmouseover="this.style.background='#111827'; this.style.color='#fff';"
|
|
392
|
+
onmouseout="this.style.background='#fff'; this.style.color='#111827';"
|
|
394
393
|
>
|
|
395
394
|
${pageData.scheduleNow}
|
|
396
395
|
</button>
|
|
@@ -442,41 +441,53 @@ var StudioMap = ({
|
|
|
442
441
|
const marker = markersRef.current[markerIndex];
|
|
443
442
|
if (location && marker) {
|
|
444
443
|
const content = `
|
|
445
|
-
<div style="padding: 16px;
|
|
446
|
-
<h3 style="margin: 0 0
|
|
447
|
-
${location.availableTime ? `<div style="
|
|
448
|
-
<svg style="
|
|
449
|
-
<
|
|
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"/>
|
|
450
452
|
</svg>
|
|
451
|
-
<
|
|
453
|
+
<div>
|
|
454
|
+
<p style="margin: 0;font-size: 16px; color: #2A2C32;">${location.availableTime === pageData?.noAvailableTime ? "" : pageData.available} ${location.availableTime}</p>
|
|
455
|
+
</div>
|
|
452
456
|
</div>` : ""}
|
|
453
|
-
<div style="
|
|
454
|
-
<svg style="
|
|
455
|
-
<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"/>
|
|
456
461
|
</svg>
|
|
457
|
-
<
|
|
462
|
+
<div style="flex: 1;">
|
|
463
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32; word-wrap: break-word;">${location.address}</p>
|
|
464
|
+
</div>
|
|
458
465
|
</div>
|
|
459
|
-
${location.euifyMakeModel ? `<div style="
|
|
460
|
-
<svg style="
|
|
461
|
-
<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"/>
|
|
462
470
|
</svg>
|
|
463
|
-
<
|
|
471
|
+
<div>
|
|
472
|
+
<p style="margin: 0; font-size: 16px; color: #2A2C32;">${location.euifyMakeModel}</p>
|
|
473
|
+
</div>
|
|
464
474
|
</div>` : ""}
|
|
465
475
|
<button
|
|
466
476
|
id="schedule-btn-hover-${location.id}"
|
|
467
477
|
style="
|
|
468
|
-
width:
|
|
469
|
-
padding:
|
|
470
|
-
background: #
|
|
471
|
-
color: #
|
|
472
|
-
border:
|
|
473
|
-
border-radius:
|
|
474
|
-
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;
|
|
475
485
|
cursor: pointer;
|
|
476
|
-
font-size:
|
|
486
|
+
font-size: 16px;
|
|
487
|
+
transition: all 0.2s;
|
|
477
488
|
"
|
|
478
|
-
onmouseover="this.style.background='#
|
|
479
|
-
onmouseout="this.style.background='#
|
|
489
|
+
onmouseover="this.style.background='#111827'; this.style.color='#fff';"
|
|
490
|
+
onmouseout="this.style.background='#fff'; this.style.color='#111827';"
|
|
480
491
|
>
|
|
481
492
|
${pageData.scheduleNow}
|
|
482
493
|
</button>
|
|
@@ -770,9 +781,9 @@ var LocationFilter = ({
|
|
|
770
781
|
"div",
|
|
771
782
|
{
|
|
772
783
|
style: { background: "#F8F8F8" },
|
|
773
|
-
className: "rounded-[12px] rounded-b-none h-[
|
|
784
|
+
className: "rounded-[12px] rounded-b-none h-[108px] font-bold text-[14px] flex flex-col",
|
|
774
785
|
children: [
|
|
775
|
-
/* @__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(
|
|
776
787
|
"button",
|
|
777
788
|
{
|
|
778
789
|
onClick: onClose,
|
|
@@ -796,14 +807,14 @@ var LocationFilter = ({
|
|
|
796
807
|
)
|
|
797
808
|
}
|
|
798
809
|
) }),
|
|
799
|
-
/* @__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: [
|
|
800
811
|
/* @__PURE__ */ jsx(
|
|
801
812
|
"button",
|
|
802
813
|
{
|
|
803
814
|
onClick: () => handleTabClick("country"),
|
|
804
815
|
className: cn(
|
|
805
816
|
"pb-[4px] transition-colors",
|
|
806
|
-
currentLevel === "country" ? "text-[#
|
|
817
|
+
currentLevel === "country" ? "text-[#080A0F] border-b-2 border-[#3ADB67]" : "text-[#080A0F]"
|
|
807
818
|
),
|
|
808
819
|
children: pageData.country
|
|
809
820
|
}
|
|
@@ -815,7 +826,7 @@ var LocationFilter = ({
|
|
|
815
826
|
disabled: !selectedCountry,
|
|
816
827
|
className: cn(
|
|
817
828
|
"pb-[4px] transition-colors",
|
|
818
|
-
currentLevel === "state" ? "text-[#
|
|
829
|
+
currentLevel === "state" ? "text-[#080A0F] border-b-2 border-[#3ADB67]" : "text-[#080A0F]",
|
|
819
830
|
!selectedCountry && "opacity-50 cursor-not-allowed"
|
|
820
831
|
),
|
|
821
832
|
children: pageData.state
|
|
@@ -828,7 +839,7 @@ var LocationFilter = ({
|
|
|
828
839
|
disabled: !selectedState,
|
|
829
840
|
className: cn(
|
|
830
841
|
"pb-[4px] transition-colors",
|
|
831
|
-
currentLevel === "city" ? "text-[#
|
|
842
|
+
currentLevel === "city" ? "text-[#080A0F] border-b-2 border-[#3ADB67]" : "text-[#080A0F]",
|
|
832
843
|
!selectedState && "opacity-50 cursor-not-allowed"
|
|
833
844
|
),
|
|
834
845
|
children: pageData.city
|
|
@@ -838,12 +849,13 @@ var LocationFilter = ({
|
|
|
838
849
|
]
|
|
839
850
|
}
|
|
840
851
|
),
|
|
841
|
-
/* @__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) => {
|
|
842
853
|
const { title, items } = group;
|
|
843
854
|
return /* @__PURE__ */ jsx(IndexBar.Panel, { index: title, title, children: /* @__PURE__ */ jsx(List, { children: items.map((item) => /* @__PURE__ */ jsx(
|
|
844
855
|
List.Item,
|
|
845
856
|
{
|
|
846
857
|
onClick: () => handleItemClick(item),
|
|
858
|
+
className: "text-[16px] !pl-[24px]",
|
|
847
859
|
style: { cursor: "pointer" },
|
|
848
860
|
children: item.name
|
|
849
861
|
},
|
|
@@ -853,6 +865,7 @@ var LocationFilter = ({
|
|
|
853
865
|
List.Item,
|
|
854
866
|
{
|
|
855
867
|
onClick: () => handleItemClick(item),
|
|
868
|
+
className: "text-[16px] !pl-[24px]",
|
|
856
869
|
style: { cursor: "pointer" },
|
|
857
870
|
children: item.name
|
|
858
871
|
},
|
|
@@ -1053,7 +1066,7 @@ var RoomsList = ({
|
|
|
1053
1066
|
lat: Number(room.latitude) || 0,
|
|
1054
1067
|
lng: Number(room.longitude) || 0,
|
|
1055
1068
|
availableTime: nextAvailableTimeslot ? `${nextAvailableTimeslot.start_time}` : mergedPageData.noAvailableTime,
|
|
1056
|
-
euifyMakeModel: room?.
|
|
1069
|
+
euifyMakeModel: room?.equipment?.join(", ") || ""
|
|
1057
1070
|
};
|
|
1058
1071
|
});
|
|
1059
1072
|
}, [demoRooms, mergedPageData.defaultCountry, mergedPageData.noAvailableTime]);
|
|
@@ -1105,7 +1118,7 @@ var RoomsList = ({
|
|
|
1105
1118
|
/* @__PURE__ */ jsxs(
|
|
1106
1119
|
"button",
|
|
1107
1120
|
{
|
|
1108
|
-
className: "flex cursor-pointer items-center hover:text-[#
|
|
1121
|
+
className: "flex cursor-pointer items-center hover:text-[#3ADB67] transition-colors",
|
|
1109
1122
|
onClick: () => setShowLocationFilter(true),
|
|
1110
1123
|
children: [
|
|
1111
1124
|
/* @__PURE__ */ jsx("span", { className: "mr-1", children: getSelectedLocationName() }),
|
|
@@ -1162,7 +1175,7 @@ var RoomsList = ({
|
|
|
1162
1175
|
"div",
|
|
1163
1176
|
{
|
|
1164
1177
|
style: { maxHeight: "706px", overflow: "auto" },
|
|
1165
|
-
className: "rounded-[12px] bg-white border border-[#E4E5E6]",
|
|
1178
|
+
className: "rounded-[12px] bg-white border h-[706px] border-[#E4E5E6]",
|
|
1166
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) => {
|
|
1167
1180
|
return /* @__PURE__ */ jsx(
|
|
1168
1181
|
StudioCard,
|