@anker-in/ui 0.3.7 → 0.3.8
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 +19 -1
- package/dist/demo-room.js.map +1 -1
- package/dist/demo-room.mjs +19 -1
- package/dist/demo-room.mjs.map +1 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +313 -158
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +313 -158
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,6 +11,8 @@ require('antd-mobile/es/components/list/list.css');
|
|
|
11
11
|
var dayjs4 = require('dayjs');
|
|
12
12
|
var utc = require('dayjs/plugin/utc');
|
|
13
13
|
var timezone = require('dayjs/plugin/timezone');
|
|
14
|
+
require('dayjs/locale/de');
|
|
15
|
+
require('dayjs/locale/fr');
|
|
14
16
|
require('dayjs/locale/zh-cn');
|
|
15
17
|
var antd = require('antd');
|
|
16
18
|
var dayLocaleData = require('dayjs/plugin/localeData');
|
|
@@ -1733,7 +1735,25 @@ var DemoRoomApiClient = class {
|
|
|
1733
1735
|
`/api/v1/store/bookings/${token}`,
|
|
1734
1736
|
{ headers }
|
|
1735
1737
|
);
|
|
1736
|
-
|
|
1738
|
+
const { questionnaire, booking } = response;
|
|
1739
|
+
if (questionnaire?.length) {
|
|
1740
|
+
const normalized = questionnaire.reduce(
|
|
1741
|
+
(acc, item) => {
|
|
1742
|
+
if (!item.key) return acc;
|
|
1743
|
+
acc[item.key] = item.value;
|
|
1744
|
+
return acc;
|
|
1745
|
+
},
|
|
1746
|
+
{}
|
|
1747
|
+
);
|
|
1748
|
+
return {
|
|
1749
|
+
...booking,
|
|
1750
|
+
questionnaire_response: {
|
|
1751
|
+
...booking.questionnaire_response || {},
|
|
1752
|
+
...normalized
|
|
1753
|
+
}
|
|
1754
|
+
};
|
|
1755
|
+
}
|
|
1756
|
+
return booking;
|
|
1737
1757
|
}
|
|
1738
1758
|
/**
|
|
1739
1759
|
* 取消预约(支持多语言邮件通知)
|
|
@@ -2680,6 +2700,60 @@ var LocationFilter2 = ({
|
|
|
2680
2700
|
LocationFilter2.displayName = "LocationFilter";
|
|
2681
2701
|
dayjs4__default.default.extend(utc__default.default);
|
|
2682
2702
|
dayjs4__default.default.extend(timezone__default.default);
|
|
2703
|
+
var EU_COUNTRIES = /* @__PURE__ */ new Set([
|
|
2704
|
+
"AT",
|
|
2705
|
+
"BE",
|
|
2706
|
+
"BG",
|
|
2707
|
+
"HR",
|
|
2708
|
+
"CY",
|
|
2709
|
+
"CZ",
|
|
2710
|
+
"DK",
|
|
2711
|
+
"EE",
|
|
2712
|
+
"FI",
|
|
2713
|
+
"GR",
|
|
2714
|
+
"HU",
|
|
2715
|
+
"IE",
|
|
2716
|
+
"IT",
|
|
2717
|
+
"LV",
|
|
2718
|
+
"LT",
|
|
2719
|
+
"LU",
|
|
2720
|
+
"MT",
|
|
2721
|
+
"NL",
|
|
2722
|
+
"PL",
|
|
2723
|
+
"PT",
|
|
2724
|
+
"RO",
|
|
2725
|
+
"SK",
|
|
2726
|
+
"SI",
|
|
2727
|
+
"ES",
|
|
2728
|
+
"SE"
|
|
2729
|
+
]);
|
|
2730
|
+
function resolveTimeFormat(locale) {
|
|
2731
|
+
const normalized = locale?.toUpperCase() || "";
|
|
2732
|
+
const region = normalized.split("-")[1] || normalized.split("_")[1] || normalized;
|
|
2733
|
+
if (region === "US" || region === "CA") return "us";
|
|
2734
|
+
if (region === "AU" || region === "GB" || region === "UK") return "au";
|
|
2735
|
+
if (region === "DE") return "de";
|
|
2736
|
+
if (region === "FR") return "fr";
|
|
2737
|
+
if (EU_COUNTRIES.has(region)) return "eu";
|
|
2738
|
+
return "us";
|
|
2739
|
+
}
|
|
2740
|
+
function formatAvailableTime(startTime, timezone5, locale) {
|
|
2741
|
+
const format = resolveTimeFormat(locale);
|
|
2742
|
+
const timeInZone = dayjs4__default.default(startTime).tz(timezone5);
|
|
2743
|
+
switch (format) {
|
|
2744
|
+
case "au":
|
|
2745
|
+
return timeInZone.format("D MMM, h:mm A");
|
|
2746
|
+
case "de":
|
|
2747
|
+
return timeInZone.locale("de").format("D. MMMM, HH:mm");
|
|
2748
|
+
case "fr":
|
|
2749
|
+
return timeInZone.locale("fr").format("D MMMM, HH:mm");
|
|
2750
|
+
case "eu":
|
|
2751
|
+
return timeInZone.format("D MMMM, HH:mm");
|
|
2752
|
+
case "us":
|
|
2753
|
+
default:
|
|
2754
|
+
return timeInZone.format("MMM D, h:mm A");
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2683
2757
|
var isAllOption = (option) => {
|
|
2684
2758
|
const normalizedType = option.type.trim().toLowerCase();
|
|
2685
2759
|
return normalizedType === "" || normalizedType.startsWith("all ");
|
|
@@ -2880,6 +2954,7 @@ var RoomsList2 = ({
|
|
|
2880
2954
|
googleMapsApiKey,
|
|
2881
2955
|
className,
|
|
2882
2956
|
apiClient,
|
|
2957
|
+
locale,
|
|
2883
2958
|
teamCode,
|
|
2884
2959
|
brandWebsite,
|
|
2885
2960
|
onSchedule,
|
|
@@ -2997,13 +3072,11 @@ var RoomsList2 = ({
|
|
|
2997
3072
|
let formattedTime = mergedPageData.noAvailableTime;
|
|
2998
3073
|
if (nextAvailableTimeslot) {
|
|
2999
3074
|
try {
|
|
3000
|
-
|
|
3001
|
-
|
|
3075
|
+
formattedTime = formatAvailableTime(
|
|
3076
|
+
nextAvailableTimeslot.start_time,
|
|
3077
|
+
room.timezone || "America/Los_Angeles",
|
|
3078
|
+
locale
|
|
3002
3079
|
);
|
|
3003
|
-
const month = timeInZone.format("MMM");
|
|
3004
|
-
const day = timeInZone.format("D");
|
|
3005
|
-
const time = timeInZone.format("h:mm A");
|
|
3006
|
-
formattedTime = `${month}.${day}, ${time}`;
|
|
3007
3080
|
} catch (error2) {
|
|
3008
3081
|
formattedTime = nextAvailableTimeslot.start_time;
|
|
3009
3082
|
}
|
|
@@ -3025,7 +3098,12 @@ var RoomsList2 = ({
|
|
|
3025
3098
|
storeType: room.store_type || room.storeType || ""
|
|
3026
3099
|
};
|
|
3027
3100
|
});
|
|
3028
|
-
}, [
|
|
3101
|
+
}, [
|
|
3102
|
+
demoRooms,
|
|
3103
|
+
mergedPageData.defaultCountry,
|
|
3104
|
+
mergedPageData.noAvailableTime,
|
|
3105
|
+
locale
|
|
3106
|
+
]);
|
|
3029
3107
|
const filteredStudioLocations = React15.useMemo(() => {
|
|
3030
3108
|
return studioLocations.filter((location) => {
|
|
3031
3109
|
if (selectedPurposeType) {
|
|
@@ -3055,13 +3133,6 @@ var RoomsList2 = ({
|
|
|
3055
3133
|
selectedPurposeType,
|
|
3056
3134
|
selectedStoreType
|
|
3057
3135
|
]);
|
|
3058
|
-
const getSelectedLocationName = () => {
|
|
3059
|
-
if (!selectedLocation) return mergedPageData.locationFilter.allLocations;
|
|
3060
|
-
if (selectedLocation.city) return selectedLocation.city;
|
|
3061
|
-
if (selectedLocation.state) return selectedLocation.state;
|
|
3062
|
-
if (selectedLocation.country) return selectedLocation.country;
|
|
3063
|
-
return mergedPageData.locationFilter.allLocations;
|
|
3064
|
-
};
|
|
3065
3136
|
const handleLocationSelect = (selection) => {
|
|
3066
3137
|
setSelectedLocation(selection);
|
|
3067
3138
|
setShowLocationFilter(false);
|
|
@@ -3140,27 +3211,8 @@ var RoomsList2 = ({
|
|
|
3140
3211
|
style: { height: "794px" },
|
|
3141
3212
|
children: [
|
|
3142
3213
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-20 mb-5", children: [
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
{
|
|
3146
|
-
type: "button",
|
|
3147
|
-
"aria-haspopup": "dialog",
|
|
3148
|
-
"aria-expanded": showLocationFilter,
|
|
3149
|
-
className: cn(
|
|
3150
|
-
"flex h-[68px] w-full items-center justify-between border bg-white px-[20px] text-left text-[16px] font-bold text-[#4A4C54] transition-colors hover:text-[#080A0F] l:h-[56px] l:px-[16px] l:text-[14px]",
|
|
3151
|
-
showLocationFilter ? "rounded-t-[12px] rounded-b-none border-[#080A0F]" : "rounded-[12px] border-[#E4E5E6]"
|
|
3152
|
-
),
|
|
3153
|
-
onClick: () => {
|
|
3154
|
-
setOpenFilterDropdown(null);
|
|
3155
|
-
setShowLocationFilter(!showLocationFilter);
|
|
3156
|
-
},
|
|
3157
|
-
children: [
|
|
3158
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate pr-2", children: getSelectedLocationName() }),
|
|
3159
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-none text-[#080A0F]", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronIcon, { open: showLocationFilter }) })
|
|
3160
|
-
]
|
|
3161
|
-
}
|
|
3162
|
-
),
|
|
3163
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 grid grid-cols-2 gap-2", children: [
|
|
3214
|
+
false,
|
|
3215
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
3164
3216
|
renderFilterDropdown(
|
|
3165
3217
|
"purpose",
|
|
3166
3218
|
purposeOptions,
|
|
@@ -3184,8 +3236,8 @@ var RoomsList2 = ({
|
|
|
3184
3236
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3185
3237
|
"div",
|
|
3186
3238
|
{
|
|
3187
|
-
style: { maxHeight: "
|
|
3188
|
-
className: "rounded-[12px] bg-white border h-[
|
|
3239
|
+
style: { maxHeight: "708px", overflow: "auto" },
|
|
3240
|
+
className: "rounded-[12px] bg-white border h-[708px] border-[#E4E5E6]",
|
|
3189
3241
|
children: filteredStudioLocations.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center h-[200px] text-[#767880]", children: mergedPageData.locationFilter.noStudiosFound }) : filteredStudioLocations.map((item) => {
|
|
3190
3242
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3191
3243
|
StudioCard2,
|
|
@@ -3268,6 +3320,7 @@ var DemoRoomO2O = ({
|
|
|
3268
3320
|
className: layoutClassName,
|
|
3269
3321
|
googleMapsApiKey,
|
|
3270
3322
|
apiClient,
|
|
3323
|
+
locale: apiConfig.locale,
|
|
3271
3324
|
teamCode,
|
|
3272
3325
|
brandWebsite,
|
|
3273
3326
|
onSchedule,
|
|
@@ -10853,9 +10906,27 @@ var BookingSuccess = ({
|
|
|
10853
10906
|
] }) })
|
|
10854
10907
|
] }) });
|
|
10855
10908
|
};
|
|
10909
|
+
var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
10910
|
+
var normalizeInitialResponses = (questions, initialResponses) => {
|
|
10911
|
+
if (!initialResponses) return {};
|
|
10912
|
+
const normalized = { ...initialResponses };
|
|
10913
|
+
questions.forEach((question) => {
|
|
10914
|
+
const questionId = question.key || question.id || "";
|
|
10915
|
+
if (!questionId) return;
|
|
10916
|
+
const value = normalized[questionId];
|
|
10917
|
+
if (value === void 0 || value === null) return;
|
|
10918
|
+
if (question.type === "checkbox") {
|
|
10919
|
+
normalized[questionId] = Array.isArray(value) ? value : [value];
|
|
10920
|
+
} else if (Array.isArray(value)) {
|
|
10921
|
+
normalized[questionId] = value[0];
|
|
10922
|
+
}
|
|
10923
|
+
});
|
|
10924
|
+
return normalized;
|
|
10925
|
+
};
|
|
10856
10926
|
var QuestionnaireForm2 = ({
|
|
10857
10927
|
questions,
|
|
10858
10928
|
onSubmit,
|
|
10929
|
+
onCancel,
|
|
10859
10930
|
pageData,
|
|
10860
10931
|
selectedTimeslotId,
|
|
10861
10932
|
loading = false,
|
|
@@ -10863,24 +10934,28 @@ var QuestionnaireForm2 = ({
|
|
|
10863
10934
|
error,
|
|
10864
10935
|
initialResponses
|
|
10865
10936
|
}) => {
|
|
10937
|
+
const normalizedInitialResponses = React15.useMemo(
|
|
10938
|
+
() => normalizeInitialResponses(questions, initialResponses),
|
|
10939
|
+
[questions, initialResponses]
|
|
10940
|
+
);
|
|
10866
10941
|
const [responses, setResponses] = React15.useState(
|
|
10867
|
-
() =>
|
|
10942
|
+
() => normalizedInitialResponses
|
|
10868
10943
|
);
|
|
10869
10944
|
const [errors, setErrors] = React15.useState({});
|
|
10870
10945
|
const [agreements, setAgreements] = React15.useState({});
|
|
10871
10946
|
const [agreementError, setAgreementError] = React15.useState("");
|
|
10872
10947
|
const [phoneCountryCodes, setPhoneCountryCodes] = React15.useState(() => {
|
|
10873
|
-
const code =
|
|
10948
|
+
const code = normalizedInitialResponses?.["phone_code"] || normalizedInitialResponses?.["customer_phone_code"];
|
|
10874
10949
|
if (!code) return {};
|
|
10875
10950
|
return { phone: code, customer_phone_number: code };
|
|
10876
10951
|
});
|
|
10877
10952
|
const [otherInputs, setOtherInputs] = React15.useState(() => {
|
|
10878
|
-
if (!
|
|
10953
|
+
if (!normalizedInitialResponses) return {};
|
|
10879
10954
|
const seeded = {};
|
|
10880
10955
|
questions.forEach((q) => {
|
|
10881
10956
|
if (q.type !== "radio_with_other") return;
|
|
10882
10957
|
const qId = q.key || q.id || "";
|
|
10883
|
-
const val =
|
|
10958
|
+
const val = normalizedInitialResponses[qId];
|
|
10884
10959
|
if (val && !q.options?.some((opt) => (opt.value || opt.label) === val)) {
|
|
10885
10960
|
seeded[qId] = val;
|
|
10886
10961
|
}
|
|
@@ -10888,10 +10963,10 @@ var QuestionnaireForm2 = ({
|
|
|
10888
10963
|
return seeded;
|
|
10889
10964
|
});
|
|
10890
10965
|
const prevHasBookedBeforeRef = React15.useRef(
|
|
10891
|
-
|
|
10966
|
+
normalizedInitialResponses?.["has_booked_before"] === "option2"
|
|
10892
10967
|
);
|
|
10893
10968
|
const hasBookedBeforeInitialized = React15.useRef(
|
|
10894
|
-
!!
|
|
10969
|
+
!!normalizedInitialResponses?.["has_booked_before"]
|
|
10895
10970
|
);
|
|
10896
10971
|
const hasBookedBeforeQuestion = questions.find(
|
|
10897
10972
|
(q) => (q.key || q.id) === "has_booked_before"
|
|
@@ -10978,12 +11053,17 @@ var QuestionnaireForm2 = ({
|
|
|
10978
11053
|
};
|
|
10979
11054
|
const handleEmailBlur = (questionId, value) => {
|
|
10980
11055
|
if (!value) return;
|
|
10981
|
-
|
|
10982
|
-
if (!emailRegex.test(value)) {
|
|
11056
|
+
if (!EMAIL_REGEX.test(value)) {
|
|
10983
11057
|
setErrors((prev) => ({
|
|
10984
11058
|
...prev,
|
|
10985
11059
|
[questionId]: pageData?.emailValidError || "Please enter a valid email address"
|
|
10986
11060
|
}));
|
|
11061
|
+
} else {
|
|
11062
|
+
setErrors((prev) => {
|
|
11063
|
+
const newErrors = { ...prev };
|
|
11064
|
+
delete newErrors[questionId];
|
|
11065
|
+
return newErrors;
|
|
11066
|
+
});
|
|
10987
11067
|
}
|
|
10988
11068
|
};
|
|
10989
11069
|
const handleCountryCodeChange = (questionId, code) => {
|
|
@@ -11016,13 +11096,18 @@ var QuestionnaireForm2 = ({
|
|
|
11016
11096
|
const validateForm = () => {
|
|
11017
11097
|
const newErrors = {};
|
|
11018
11098
|
visibleQuestions.forEach((question) => {
|
|
11099
|
+
const questionId = getQuestionId(question);
|
|
11100
|
+
const value = responses[questionId];
|
|
11019
11101
|
if (question.required) {
|
|
11020
|
-
const questionId = getQuestionId(question);
|
|
11021
|
-
const value = responses[questionId];
|
|
11022
11102
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
11023
11103
|
newErrors[questionId] = pageData?.fieldRuquired || "This field is required";
|
|
11024
11104
|
}
|
|
11025
11105
|
}
|
|
11106
|
+
if (question.type === "email" && value && typeof value === "string") {
|
|
11107
|
+
if (!EMAIL_REGEX.test(value)) {
|
|
11108
|
+
newErrors[questionId] = pageData?.emailValidError || "Please enter a valid email address";
|
|
11109
|
+
}
|
|
11110
|
+
}
|
|
11026
11111
|
});
|
|
11027
11112
|
const agrees = pageData?.agrees || [];
|
|
11028
11113
|
if (agrees.length > 0) {
|
|
@@ -11087,7 +11172,7 @@ var QuestionnaireForm2 = ({
|
|
|
11087
11172
|
onChange: (e) => handleChange(questionId, e.target.value),
|
|
11088
11173
|
placeholder: question.placeholder,
|
|
11089
11174
|
className: cn(
|
|
11090
|
-
"w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-
|
|
11175
|
+
"w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
|
|
11091
11176
|
"focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
|
|
11092
11177
|
hasError ? "border-red-500" : "border-[#E4E5E6]"
|
|
11093
11178
|
)
|
|
@@ -11103,7 +11188,7 @@ var QuestionnaireForm2 = ({
|
|
|
11103
11188
|
onBlur: (e) => handleEmailBlur(questionId, e.target.value),
|
|
11104
11189
|
placeholder: question.placeholder,
|
|
11105
11190
|
className: cn(
|
|
11106
|
-
"w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-
|
|
11191
|
+
"w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
|
|
11107
11192
|
"focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
|
|
11108
11193
|
hasError ? "border-red-500" : "border-[#E4E5E6]"
|
|
11109
11194
|
)
|
|
@@ -11122,7 +11207,7 @@ var QuestionnaireForm2 = ({
|
|
|
11122
11207
|
"appearance-none pl-3 pr-8 py-3 rounded-lg border text-base",
|
|
11123
11208
|
"focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
|
|
11124
11209
|
"bg-white cursor-pointer w-[80px]",
|
|
11125
|
-
"dark:bg-white dark:text-
|
|
11210
|
+
"dark:bg-white dark:text-[#080A0F]",
|
|
11126
11211
|
hasError ? "border-red-500" : "border-[#E4E5E6]"
|
|
11127
11212
|
),
|
|
11128
11213
|
children: countryCodes.map((item) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: item.code, children: item.code }, item.code))
|
|
@@ -11157,7 +11242,7 @@ var QuestionnaireForm2 = ({
|
|
|
11157
11242
|
onChange: (e) => handleChange(questionId, e.target.value),
|
|
11158
11243
|
placeholder: question.placeholder,
|
|
11159
11244
|
className: cn(
|
|
11160
|
-
"flex-1 px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-
|
|
11245
|
+
"flex-1 px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
|
|
11161
11246
|
"focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
|
|
11162
11247
|
hasError ? "border-red-500" : "border-[#E4E5E6]"
|
|
11163
11248
|
)
|
|
@@ -11175,7 +11260,7 @@ var QuestionnaireForm2 = ({
|
|
|
11175
11260
|
className: cn(
|
|
11176
11261
|
"w-full px-4 py-3 rounded-lg border text-base resize-none bg-white",
|
|
11177
11262
|
"focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
|
|
11178
|
-
"dark:bg-white dark:text-
|
|
11263
|
+
"dark:bg-white dark:text-[#080A0F]",
|
|
11179
11264
|
hasError ? "border-red-500" : "border-[#E4E5E6]"
|
|
11180
11265
|
)
|
|
11181
11266
|
}
|
|
@@ -11203,7 +11288,7 @@ var QuestionnaireForm2 = ({
|
|
|
11203
11288
|
}
|
|
11204
11289
|
}
|
|
11205
11290
|
),
|
|
11206
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-
|
|
11291
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
|
|
11207
11292
|
]
|
|
11208
11293
|
},
|
|
11209
11294
|
option.value || option.label
|
|
@@ -11244,7 +11329,7 @@ var QuestionnaireForm2 = ({
|
|
|
11244
11329
|
}
|
|
11245
11330
|
}
|
|
11246
11331
|
),
|
|
11247
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-
|
|
11332
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
|
|
11248
11333
|
] }),
|
|
11249
11334
|
isOtherOption && isOtherSelected && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11250
11335
|
"input",
|
|
@@ -11254,7 +11339,7 @@ var QuestionnaireForm2 = ({
|
|
|
11254
11339
|
onChange: (e) => handleOtherInputChange(questionId, e.target.value),
|
|
11255
11340
|
placeholder: question.placeholder || "Please specify...",
|
|
11256
11341
|
className: cn(
|
|
11257
|
-
"w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-
|
|
11342
|
+
"w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
|
|
11258
11343
|
"focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
|
|
11259
11344
|
hasError ? "border-red-500" : "border-[#E4E5E6]"
|
|
11260
11345
|
)
|
|
@@ -11284,13 +11369,13 @@ var QuestionnaireForm2 = ({
|
|
|
11284
11369
|
optionValue,
|
|
11285
11370
|
e.target.checked
|
|
11286
11371
|
),
|
|
11287
|
-
className: "w-
|
|
11372
|
+
className: "w-4 h-4 text-[#fff] rounded",
|
|
11288
11373
|
style: {
|
|
11289
|
-
accentColor: "#
|
|
11374
|
+
accentColor: "#080A0F"
|
|
11290
11375
|
}
|
|
11291
11376
|
}
|
|
11292
11377
|
),
|
|
11293
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-
|
|
11378
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
|
|
11294
11379
|
]
|
|
11295
11380
|
},
|
|
11296
11381
|
optionValue
|
|
@@ -11309,7 +11394,7 @@ var QuestionnaireForm2 = ({
|
|
|
11309
11394
|
value: defaultValue,
|
|
11310
11395
|
onChange: (e) => handleChange(questionId, e.target.value),
|
|
11311
11396
|
className: cn(
|
|
11312
|
-
"w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-
|
|
11397
|
+
"w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
|
|
11313
11398
|
"focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
|
|
11314
11399
|
"cursor-pointer",
|
|
11315
11400
|
hasError ? "border-red-500" : "border-[#E4E5E6]"
|
|
@@ -11340,7 +11425,7 @@ var QuestionnaireForm2 = ({
|
|
|
11340
11425
|
"data-has-error": hasError ? "true" : "false",
|
|
11341
11426
|
children: [
|
|
11342
11427
|
/* @__PURE__ */ jsxRuntime.jsxs("label", { className: "block", children: [
|
|
11343
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-base font-bold text-
|
|
11428
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-base font-bold text-[#080A0F] dark:text-[#080A0F]", children: [
|
|
11344
11429
|
question.label,
|
|
11345
11430
|
question.required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-red-500 ml-1", children: "*" })
|
|
11346
11431
|
] }),
|
|
@@ -11362,7 +11447,7 @@ var QuestionnaireForm2 = ({
|
|
|
11362
11447
|
questionId
|
|
11363
11448
|
);
|
|
11364
11449
|
}) }) }),
|
|
11365
|
-
!!selectedTimeslotId && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col
|
|
11450
|
+
!!selectedTimeslotId && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col justify-center", children: [
|
|
11366
11451
|
pageData?.agrees && pageData.agrees.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11367
11452
|
"div",
|
|
11368
11453
|
{
|
|
@@ -11377,9 +11462,9 @@ var QuestionnaireForm2 = ({
|
|
|
11377
11462
|
id: `agreement-${index}`,
|
|
11378
11463
|
checked: agreements[index] || false,
|
|
11379
11464
|
onChange: (e) => handleAgreementChange(index, e.target.checked),
|
|
11380
|
-
className: "w-
|
|
11465
|
+
className: "w-4 h-4 border border-[#080A0F] rounded text-[#fff] cursor-pointer flex-shrink-0",
|
|
11381
11466
|
style: {
|
|
11382
|
-
accentColor: "#
|
|
11467
|
+
accentColor: "#080A0F"
|
|
11383
11468
|
}
|
|
11384
11469
|
}
|
|
11385
11470
|
),
|
|
@@ -11404,22 +11489,40 @@ var QuestionnaireForm2 = ({
|
|
|
11404
11489
|
]
|
|
11405
11490
|
}
|
|
11406
11491
|
),
|
|
11407
|
-
/* @__PURE__ */ jsxRuntime.
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11492
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4", children: [
|
|
11493
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11494
|
+
"button",
|
|
11495
|
+
{
|
|
11496
|
+
type: "submit",
|
|
11497
|
+
disabled: loading,
|
|
11498
|
+
onClick: handleSubmit,
|
|
11499
|
+
className: cn(
|
|
11500
|
+
"w-fit mt-6 px-6 py-4 rounded-full",
|
|
11501
|
+
"bg-[#080A0F] text-white font-bold text-base",
|
|
11502
|
+
"hover:bg-[#2FC257] hover:text-[#080A0F] transition-colors",
|
|
11503
|
+
"focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:ring-offset-2",
|
|
11504
|
+
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
11505
|
+
),
|
|
11506
|
+
children: loading ? pageData?.submitting || "Submitting..." : pageData?.submit || "Submit Booking"
|
|
11507
|
+
}
|
|
11508
|
+
),
|
|
11509
|
+
pageData?.discardEdit && !!initialResponses && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11510
|
+
"button",
|
|
11511
|
+
{
|
|
11512
|
+
type: "submit",
|
|
11513
|
+
onClick: () => {
|
|
11514
|
+
onCancel?.();
|
|
11515
|
+
},
|
|
11516
|
+
className: cn(
|
|
11517
|
+
"w-fit mt-6 px-6 py-4 rounded-full",
|
|
11518
|
+
"border-[#080A0F] border-2 text-[#080A0F] font-bold text-base",
|
|
11519
|
+
"transition-colors",
|
|
11520
|
+
"disabled:opacity-50 disabled:cursor-not-allowed"
|
|
11521
|
+
),
|
|
11522
|
+
children: pageData?.discardEdit
|
|
11523
|
+
}
|
|
11524
|
+
)
|
|
11525
|
+
] }),
|
|
11423
11526
|
error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-center w-full p-4", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[#FF4D4D] font-bold", children: pageData?.errorMsg?.[String(error.code)] || pageData?.errorMsg?.[error.code || ""] || error.message }) })
|
|
11424
11527
|
] })
|
|
11425
11528
|
] });
|
|
@@ -11679,7 +11782,7 @@ var DateTimePicker2 = ({
|
|
|
11679
11782
|
borderRadius: 16
|
|
11680
11783
|
};
|
|
11681
11784
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
11682
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "
|
|
11785
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-[16px] grid-cols-2 l:grid-cols-1", children: [
|
|
11683
11786
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11684
11787
|
antd.ConfigProvider,
|
|
11685
11788
|
{
|
|
@@ -11699,13 +11802,13 @@ var DateTimePicker2 = ({
|
|
|
11699
11802
|
"div",
|
|
11700
11803
|
{
|
|
11701
11804
|
style: wrapperStyle,
|
|
11702
|
-
className: "calendar-custom-cell
|
|
11805
|
+
className: "calendar-custom-cell min-l:max-w-[824px] l:w-full",
|
|
11703
11806
|
children: [
|
|
11704
11807
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: `
|
|
11705
11808
|
.calendar-custom-cell {
|
|
11706
11809
|
border-radius: 16px !important;
|
|
11707
11810
|
overflow: hidden;
|
|
11708
|
-
padding: 0 24px
|
|
11811
|
+
padding: 0 24px 24px 24px !important;
|
|
11709
11812
|
}
|
|
11710
11813
|
@media (max-width: 1023px) {
|
|
11711
11814
|
.calendar-custom-cell {
|
|
@@ -11714,6 +11817,9 @@ var DateTimePicker2 = ({
|
|
|
11714
11817
|
padding: 0 16px 16px 16px !important;
|
|
11715
11818
|
}
|
|
11716
11819
|
}
|
|
11820
|
+
.ant-picker-body{
|
|
11821
|
+
padding-bottom: 0px !important;
|
|
11822
|
+
}
|
|
11717
11823
|
.calendar-custom-cell,
|
|
11718
11824
|
.calendar-custom-cell *,
|
|
11719
11825
|
.calendar-custom-cell .ant-picker-panel,
|
|
@@ -11724,7 +11830,7 @@ var DateTimePicker2 = ({
|
|
|
11724
11830
|
font-family: 'MontForAnker' !important;
|
|
11725
11831
|
}
|
|
11726
11832
|
.calendar-custom-cell .ant-picker-cell {
|
|
11727
|
-
padding: 6px !important;
|
|
11833
|
+
padding: 6px 0 !important;
|
|
11728
11834
|
text-align: center !important;
|
|
11729
11835
|
}
|
|
11730
11836
|
.calendar-custom-cell .ant-picker-cell .ant-picker-cell-inner {
|
|
@@ -11871,7 +11977,7 @@ var DateTimePicker2 = ({
|
|
|
11871
11977
|
label,
|
|
11872
11978
|
value: index
|
|
11873
11979
|
}));
|
|
11874
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between py-
|
|
11980
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between py-4 l:pb-[0px]", children: [
|
|
11875
11981
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
11876
11982
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11877
11983
|
antd.Select,
|
|
@@ -11883,7 +11989,7 @@ var DateTimePicker2 = ({
|
|
|
11883
11989
|
onChange(now2);
|
|
11884
11990
|
},
|
|
11885
11991
|
variant: "borderless",
|
|
11886
|
-
className: "text-[32px] l:text-[20px] font-bold",
|
|
11992
|
+
className: "text-[32px] l:text-[20px] !p-0 font-bold",
|
|
11887
11993
|
popupMatchSelectWidth: false,
|
|
11888
11994
|
suffixIcon: null,
|
|
11889
11995
|
style: {
|
|
@@ -12087,7 +12193,7 @@ var DateTimePicker2 = ({
|
|
|
12087
12193
|
"div",
|
|
12088
12194
|
{
|
|
12089
12195
|
className: cn(
|
|
12090
|
-
"text-[48px] l:text-[32px] pb-[24px] pt-[64px] l:pt-[32px] font-bold"
|
|
12196
|
+
"text-[48px] l:text-[32px] leading-[1.1] pb-[24px] pt-[64px] l:pt-[32px] font-bold"
|
|
12091
12197
|
),
|
|
12092
12198
|
children: pageData?.fillOutForm
|
|
12093
12199
|
}
|
|
@@ -12101,6 +12207,9 @@ var DateTimePicker2 = ({
|
|
|
12101
12207
|
selectedTimeslotId,
|
|
12102
12208
|
error: bookingError || editError,
|
|
12103
12209
|
initialResponses,
|
|
12210
|
+
onCancel: () => {
|
|
12211
|
+
onBookingSuccess?.(token || "");
|
|
12212
|
+
},
|
|
12104
12213
|
onSubmit: async (responses) => {
|
|
12105
12214
|
if (onQuestionnaireSubmit) {
|
|
12106
12215
|
await onQuestionnaireSubmit(responses);
|
|
@@ -12234,7 +12343,7 @@ var DemoRoomDetail2 = ({
|
|
|
12234
12343
|
),
|
|
12235
12344
|
children: [
|
|
12236
12345
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
|
|
12237
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-[48px] l:text-[32px] font-bold text-
|
|
12346
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-[48px] l:text-[32px] font-bold text-[#080A0F] leading-tight", children: title }),
|
|
12238
12347
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-[20px]", children: descriptions?.map((desc, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12239
12348
|
"p",
|
|
12240
12349
|
{
|
|
@@ -12277,7 +12386,7 @@ var DemoRoomDetail2 = ({
|
|
|
12277
12386
|
]
|
|
12278
12387
|
}
|
|
12279
12388
|
),
|
|
12280
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-
|
|
12389
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-[#080A0F]", children: devices })
|
|
12281
12390
|
] }),
|
|
12282
12391
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
12283
12392
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -12314,7 +12423,7 @@ var DemoRoomDetail2 = ({
|
|
|
12314
12423
|
}
|
|
12315
12424
|
),
|
|
12316
12425
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
12317
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-
|
|
12426
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: address }),
|
|
12318
12427
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12319
12428
|
"a",
|
|
12320
12429
|
{
|
|
@@ -12570,11 +12679,15 @@ var BookingFormO2O = ({
|
|
|
12570
12679
|
const [isPurposeConfirmed, setIsPurposeConfirmed] = React15.useState(
|
|
12571
12680
|
() => !!initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)
|
|
12572
12681
|
);
|
|
12682
|
+
const podDesignId = React15.useMemo(() => getQueryParam("design_id"), []);
|
|
12573
12683
|
React15.useEffect(() => {
|
|
12574
12684
|
setSelectedPurposeType((currentType) => {
|
|
12575
12685
|
if (purposeOptions.some((item) => item.type === currentType)) {
|
|
12576
12686
|
return currentType;
|
|
12577
12687
|
}
|
|
12688
|
+
if (podDesignId) {
|
|
12689
|
+
return "pod";
|
|
12690
|
+
}
|
|
12578
12691
|
if (initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)) {
|
|
12579
12692
|
return initialBusinessType;
|
|
12580
12693
|
}
|
|
@@ -12587,14 +12700,13 @@ var BookingFormO2O = ({
|
|
|
12587
12700
|
if (resolvedFromExplicitSource || purposeOptions.length > 0) {
|
|
12588
12701
|
setIsPurposeConfirmed(true);
|
|
12589
12702
|
}
|
|
12590
|
-
}, [purposeOptions, initialBusinessType, booking?.business_type]);
|
|
12703
|
+
}, [purposeOptions, initialBusinessType, booking?.business_type, podDesignId]);
|
|
12591
12704
|
const selectedPurpose = React15.useMemo(() => {
|
|
12592
12705
|
return purposeOptions.find((item) => item.type === selectedPurposeType) || {};
|
|
12593
12706
|
}, [purposeOptions, selectedPurposeType]);
|
|
12594
12707
|
const isPodSelected = isPurposeConfirmed && selectedPurpose?.type === "pod";
|
|
12595
12708
|
const selectedPodContent = isPodSelected ? selectedPurpose?.podContent : void 0;
|
|
12596
12709
|
const selectedPodDescription = getPodContentDescription(selectedPodContent);
|
|
12597
|
-
const podDesignId = React15.useMemo(() => getQueryParam("design_id"), []);
|
|
12598
12710
|
const isPodDesignEditMode = !!podDesignId || !!booking?.design_project_id;
|
|
12599
12711
|
const storeManagerIdFromUrl = React15.useMemo(
|
|
12600
12712
|
() => getQueryParam("store_manager_id"),
|
|
@@ -12612,7 +12724,7 @@ var BookingFormO2O = ({
|
|
|
12612
12724
|
const selectedPodImage = getSafePageDataUrl(
|
|
12613
12725
|
isPodDesignEditMode && bookingDesign?.thumb_url || getPodContentImage(selectedPodContent)
|
|
12614
12726
|
);
|
|
12615
|
-
|
|
12727
|
+
getSafePageDataUrl(
|
|
12616
12728
|
isPodDesignEditMode ? selectedPodContent?.btnEditIcon : selectedPodContent?.btnIcon
|
|
12617
12729
|
);
|
|
12618
12730
|
const managerId = demoRoom?.contact?.manager_hash;
|
|
@@ -12682,7 +12794,7 @@ var BookingFormO2O = ({
|
|
|
12682
12794
|
"div",
|
|
12683
12795
|
{
|
|
12684
12796
|
className: cn(
|
|
12685
|
-
"text-[48px] l:text-[32px] pb-[24px] pt-[128px] l:pt-[64px] font-bold",
|
|
12797
|
+
"text-[48px] l:text-[32px] leading-[1.1] pb-[24px] pt-[128px] l:pt-[64px] font-bold",
|
|
12686
12798
|
className
|
|
12687
12799
|
),
|
|
12688
12800
|
children: dateTimePickerPageData?.scheduleYourVisit
|
|
@@ -12737,14 +12849,17 @@ var BookingFormO2O = ({
|
|
|
12737
12849
|
isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
|
|
12738
12850
|
!!selectedPodContent.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
|
|
12739
12851
|
!!selectedPodDescription && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-[6px] text-[13px] font-medium leading-[1.35] text-[#080A0F] l:text-[12px]", children: selectedPodDescription }),
|
|
12740
|
-
!!selectedPodImage && /* @__PURE__ */ jsxRuntime.
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12852
|
+
!!selectedPodImage && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full rounded-[8px] flex mt-4 bg-[#F5F6F7] flex-col items-center justify-center", children: [
|
|
12853
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12854
|
+
"img",
|
|
12855
|
+
{
|
|
12856
|
+
src: selectedPodImage,
|
|
12857
|
+
alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
|
|
12858
|
+
className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
|
|
12859
|
+
}
|
|
12860
|
+
),
|
|
12861
|
+
bookingDesign?.material && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 text-[16px] l:text-[14px] text-[#080A0F] font-bold mb-2", children: bookingDesign?.material })
|
|
12862
|
+
] }),
|
|
12748
12863
|
!!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12749
12864
|
"a",
|
|
12750
12865
|
{
|
|
@@ -12756,17 +12871,35 @@ var BookingFormO2O = ({
|
|
|
12756
12871
|
},
|
|
12757
12872
|
rel: "noopener noreferrer",
|
|
12758
12873
|
className: cn(
|
|
12759
|
-
"mt-[
|
|
12760
|
-
isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50"
|
|
12874
|
+
"mt-[16px] h-[42px] inline-flex items-center border-2 justify-center gap-[6px] rounded-full px-[24px] text-[14px] font-bold transition-colors",
|
|
12875
|
+
isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50",
|
|
12876
|
+
isPodDesignEditMode ? "text-[#080A0F] border-[#080A0F]" : "text-white bg-[#080A0F] border-[#080A0F]"
|
|
12761
12877
|
),
|
|
12762
12878
|
children: [
|
|
12763
|
-
|
|
12764
|
-
"
|
|
12879
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12880
|
+
"svg",
|
|
12765
12881
|
{
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12882
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12883
|
+
width: "20",
|
|
12884
|
+
height: "20",
|
|
12885
|
+
viewBox: "0 0 20 20",
|
|
12886
|
+
fill: "none",
|
|
12887
|
+
children: [
|
|
12888
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12889
|
+
"path",
|
|
12890
|
+
{
|
|
12891
|
+
d: "M17.0833 16.666C17.5436 16.666 17.9167 17.0391 17.9167 17.4993C17.9167 17.9596 17.5436 18.3327 17.0833 18.3327L2.91668 18.3327C2.45644 18.3327 2.08334 17.9596 2.08334 17.4993C2.08334 17.0391 2.45644 16.666 2.91668 16.666H17.0833Z",
|
|
12892
|
+
fill: "currentColor"
|
|
12893
|
+
}
|
|
12894
|
+
),
|
|
12895
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12896
|
+
"path",
|
|
12897
|
+
{
|
|
12898
|
+
d: "M13.2064 1.66602C13.4274 1.66604 13.6393 1.75387 13.7956 1.91016L16.8392 4.9554C17.1645 5.28081 17.1645 5.80838 16.8392 6.13379L8.22185 14.7552C8.06556 14.9116 7.85292 14.9993 7.63185 14.9993L4.58334 14.9993C4.12311 14.9993 3.75001 14.6263 3.75001 14.166V11.133C3.75001 10.9122 3.83741 10.7 3.99334 10.5438L12.6164 1.91016L12.6774 1.85482C12.8257 1.7331 13.0128 1.66605 13.2064 1.66602ZM5.41668 11.4772V13.3327H7.28679L15.0716 5.54378L13.2064 3.67773L5.41668 11.4772Z",
|
|
12899
|
+
fill: "currentColor"
|
|
12900
|
+
}
|
|
12901
|
+
)
|
|
12902
|
+
]
|
|
12770
12903
|
}
|
|
12771
12904
|
),
|
|
12772
12905
|
selectedPodButtonText
|
|
@@ -12881,7 +13014,7 @@ var BookingSuccessO2O = ({
|
|
|
12881
13014
|
text-align: center;
|
|
12882
13015
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
12883
13016
|
}
|
|
12884
|
-
h2 { font-size: 24px; color: #
|
|
13017
|
+
h2 { font-size: 24px; color: #080A0F; margin: 0; }
|
|
12885
13018
|
p { font-size: 14px; color: #6B7280; margin: 8px 0 0; }
|
|
12886
13019
|
img { width: 200px; height: 200px; margin-top: 32px; }
|
|
12887
13020
|
`;
|
|
@@ -13036,7 +13169,29 @@ var BookingSuccessO2O = ({
|
|
|
13036
13169
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `min-h-screen l:py-0 l:px-0 py-12 px-6 ${className || ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto", children: [
|
|
13037
13170
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-[48px] xxl:text-[32px] font-bold text-[#080A0F] mb-8 print:hidden", children: pageData.yourAppointment }),
|
|
13038
13171
|
isCancelled && !isStore && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white rounded-[16px] l:items-start l:p-3 p-6 mb-4 l:gap-2 flex l:flex-col items-center justify-between print:hidden", children: [
|
|
13039
|
-
/* @__PURE__ */ jsxRuntime.
|
|
13172
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base flex items-center gap-1 text-[#080A0F]", children: [
|
|
13173
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13174
|
+
"svg",
|
|
13175
|
+
{
|
|
13176
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13177
|
+
width: "24",
|
|
13178
|
+
height: "24",
|
|
13179
|
+
viewBox: "0 0 24 24",
|
|
13180
|
+
fill: "none",
|
|
13181
|
+
children: [
|
|
13182
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10.5", fill: "#4A4C56" }),
|
|
13183
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13184
|
+
"path",
|
|
13185
|
+
{
|
|
13186
|
+
d: "M11.998 15.2842C12.7436 15.2842 13.3486 15.8892 13.3486 16.6348C13.3484 17.3802 12.7435 17.9844 11.998 17.9844C11.2528 17.9842 10.6486 17.38 10.6484 16.6348C10.6484 15.8893 11.2526 15.2844 11.998 15.2842ZM11.998 6.00781C12.6194 6.00781 13.123 6.51149 13.123 7.13281V13.1328C13.123 13.7541 12.6194 14.2578 11.998 14.2578C11.3767 14.2578 10.873 13.7541 10.873 13.1328V7.13281C10.873 6.51149 11.3767 6.00781 11.998 6.00781Z",
|
|
13187
|
+
fill: "white"
|
|
13188
|
+
}
|
|
13189
|
+
)
|
|
13190
|
+
]
|
|
13191
|
+
}
|
|
13192
|
+
),
|
|
13193
|
+
pageData.appointmentCanceled
|
|
13194
|
+
] }),
|
|
13040
13195
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center l:gap-2 gap-4", children: [
|
|
13041
13196
|
!!pageData.contactUs && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13042
13197
|
"a",
|
|
@@ -13052,7 +13207,7 @@ var BookingSuccessO2O = ({
|
|
|
13052
13207
|
"button",
|
|
13053
13208
|
{
|
|
13054
13209
|
onClick: () => onScheduleAgain(bookingData.demoroom_code),
|
|
13055
|
-
className: "text-[14px] cursor-pointer w-fit bg-black text-white rounded-full hover:bg-gray-800 border-2 border-[#080A0F] px-[20px] l:px-[12px] py-[10px] leading-[1] transition-colors",
|
|
13210
|
+
className: "text-[16px] l:text-[14px] cursor-pointer w-fit bg-black text-white rounded-full hover:bg-gray-800 border-2 border-[#080A0F] px-[20px] l:px-[12px] py-[14px] l:py-[10px] leading-[1] transition-colors",
|
|
13056
13211
|
children: pageData.scheduleAgain
|
|
13057
13212
|
}
|
|
13058
13213
|
)
|
|
@@ -13065,10 +13220,10 @@ var BookingSuccessO2O = ({
|
|
|
13065
13220
|
children: [
|
|
13066
13221
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-8 bg-white px-[48px] l:px-[16px] l:py-[16px] py-[32px] rounded-[16px] print:hidden", children: [
|
|
13067
13222
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
13068
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#
|
|
13223
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.location }),
|
|
13069
13224
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
13070
|
-
bookingData.demoroom_name && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#
|
|
13071
|
-
bookingData.address && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-
|
|
13225
|
+
bookingData.demoroom_name && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.demoroom_name }),
|
|
13226
|
+
bookingData.address && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.address }),
|
|
13072
13227
|
bookingData.latitude && bookingData.longitude && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13073
13228
|
"a",
|
|
13074
13229
|
{
|
|
@@ -13082,26 +13237,26 @@ var BookingSuccessO2O = ({
|
|
|
13082
13237
|
] })
|
|
13083
13238
|
] }),
|
|
13084
13239
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
13085
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#
|
|
13086
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base text-[#
|
|
13240
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.dateAndTime }),
|
|
13241
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base text-[#080A0F]", children: [
|
|
13087
13242
|
bookingData.booking_date,
|
|
13088
13243
|
bookingData.time_slot && `, ${bookingData.time_slot}`,
|
|
13089
13244
|
!bookingData.time_slot && bookingData.booking_time && `, ${bookingData.booking_time}`
|
|
13090
13245
|
] })
|
|
13091
13246
|
] }),
|
|
13092
13247
|
bookingData.equipment && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
13093
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#
|
|
13094
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#
|
|
13248
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.event }),
|
|
13249
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: Array.isArray(bookingData.equipment) ? bookingData.equipment.join(", ") : bookingData.equipment })
|
|
13095
13250
|
] }),
|
|
13096
13251
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
13097
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#
|
|
13098
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#
|
|
13252
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.demoRoom }),
|
|
13253
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.demoroom_code })
|
|
13099
13254
|
] }),
|
|
13100
13255
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
13101
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#
|
|
13256
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.visitorInfo }),
|
|
13102
13257
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
13103
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#
|
|
13104
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-
|
|
13258
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.customer_name }),
|
|
13259
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-[#080A0F]", children: [
|
|
13105
13260
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13106
13261
|
"svg",
|
|
13107
13262
|
{
|
|
@@ -13126,7 +13281,7 @@ var BookingSuccessO2O = ({
|
|
|
13126
13281
|
bookingData.phone_number
|
|
13127
13282
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: pageData.noPhoneProvided })
|
|
13128
13283
|
] }),
|
|
13129
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-
|
|
13284
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-[#080A0F]", children: [
|
|
13130
13285
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13131
13286
|
"svg",
|
|
13132
13287
|
{
|
|
@@ -13150,8 +13305,8 @@ var BookingSuccessO2O = ({
|
|
|
13150
13305
|
] })
|
|
13151
13306
|
] }),
|
|
13152
13307
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
13153
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#
|
|
13154
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#
|
|
13308
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.purposeOfVisit }),
|
|
13309
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: pageData?.purposeNote?.[bookingData?.business_type || ""] }),
|
|
13155
13310
|
!!bookingDesign && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 bg-[#F5F5F5] rounded-[12px] px-6 py-5 flex items-center justify-between gap-4 l:flex-col l:items-start l:gap-3", children: [
|
|
13156
13311
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
13157
13312
|
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-base font-medium text-[#080A0F]", children: [
|
|
@@ -13160,7 +13315,7 @@ var BookingSuccessO2O = ({
|
|
|
13160
13315
|
" ",
|
|
13161
13316
|
podDesignName
|
|
13162
13317
|
] }),
|
|
13163
|
-
bookingData?.print_status && pageData.podData?.status?.[bookingData.print_status] && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-[#
|
|
13318
|
+
bookingData?.print_status && pageData.podData?.status?.[bookingData.print_status] && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-[#080A0F]", children: pageData.podData.status[bookingData.print_status] })
|
|
13164
13319
|
] }),
|
|
13165
13320
|
podDesignImage && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13166
13321
|
antd.Image,
|
|
@@ -13174,7 +13329,7 @@ var BookingSuccessO2O = ({
|
|
|
13174
13329
|
] })
|
|
13175
13330
|
] }),
|
|
13176
13331
|
bookingData.business_type === "pod" && !isStore && !isCancelled && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white rounded-[16px] px-[48px] l:px-[16px] l:py-[16px] py-[32px] flex flex-col items-center justify-center text-center print:w-full", children: [
|
|
13177
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#
|
|
13332
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] text-center", children: pageData.podData?.QRCodeTitle }),
|
|
13178
13333
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 text-center mt-2", children: pageData.podData?.QRCodeSubTitle }),
|
|
13179
13334
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13180
13335
|
"div",
|
|
@@ -13195,7 +13350,7 @@ var BookingSuccessO2O = ({
|
|
|
13195
13350
|
"button",
|
|
13196
13351
|
{
|
|
13197
13352
|
onClick: () => onAddToWallet?.(bookingData),
|
|
13198
|
-
className: "text-[14px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px]
|
|
13353
|
+
className: "text-[16px] l:text-[14px] py-[14px] l:py-[10px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] leading-[1] hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
13199
13354
|
children: pageData.podData?.btnToWallet
|
|
13200
13355
|
}
|
|
13201
13356
|
),
|
|
@@ -13203,7 +13358,7 @@ var BookingSuccessO2O = ({
|
|
|
13203
13358
|
"button",
|
|
13204
13359
|
{
|
|
13205
13360
|
onClick: handlePrintQRCode,
|
|
13206
|
-
className: "text-[14px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px]
|
|
13361
|
+
className: "text-[16px] l:text-[14px] py-[14px] l:py-[10px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] leading-[1] hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
13207
13362
|
children: pageData.podData?.btnToPrint
|
|
13208
13363
|
}
|
|
13209
13364
|
)
|
|
@@ -13212,8 +13367,8 @@ var BookingSuccessO2O = ({
|
|
|
13212
13367
|
]
|
|
13213
13368
|
}
|
|
13214
13369
|
),
|
|
13215
|
-
isPending && !isCancelled && !isStore && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-[64px] pb-4 print:hidden", children: [
|
|
13216
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex md:w-full gap-4
|
|
13370
|
+
isPending && !isCancelled && !isStore && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-[64px] l:mt-[32px] pb-4 print:hidden", children: [
|
|
13371
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex md:w-full gap-4", children: [
|
|
13217
13372
|
onEditBooking && token && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13218
13373
|
"button",
|
|
13219
13374
|
{
|
|
@@ -13222,7 +13377,7 @@ var BookingSuccessO2O = ({
|
|
|
13222
13377
|
bookingData.demoroom_code,
|
|
13223
13378
|
bookingData.business_type
|
|
13224
13379
|
),
|
|
13225
|
-
className: "text-[14px] cursor-pointer w-fit bg-black text-white rounded-full hover:bg-gray-800 border-2 border-[#080A0F] l:px-[12px] px-[20px]
|
|
13380
|
+
className: "text-[16px] l:text-[14px] py-[14px] l:py-[10px] cursor-pointer w-fit bg-black text-white rounded-full hover:bg-gray-800 border-2 border-[#080A0F] l:px-[12px] px-[20px] leading-[1] transition-colors",
|
|
13226
13381
|
children: pageData.editAppointment
|
|
13227
13382
|
}
|
|
13228
13383
|
),
|
|
@@ -13231,56 +13386,56 @@ var BookingSuccessO2O = ({
|
|
|
13231
13386
|
{
|
|
13232
13387
|
onClick: () => setShowCancelDialog(true),
|
|
13233
13388
|
disabled: cancelLoading,
|
|
13234
|
-
className: "text-[14px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] l:px-[12px]
|
|
13389
|
+
className: "text-[16px] l:text-[14px] py-[14px] l:py-[10px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] l:px-[12px] leading-[1] hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
13235
13390
|
children: pageData.cancelAppointment
|
|
13236
13391
|
}
|
|
13237
13392
|
)
|
|
13238
13393
|
] }) }),
|
|
13239
13394
|
cancelError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: cancelError })
|
|
13240
13395
|
] }),
|
|
13241
|
-
isStore && bookingData?.print_status === "completed" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-[64px] pb-4 print:hidden", children: [
|
|
13396
|
+
isStore && bookingData?.print_status === "completed" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-[64px] l:mt-[32px] pb-4 print:hidden", children: [
|
|
13242
13397
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13243
13398
|
"button",
|
|
13244
13399
|
{
|
|
13245
13400
|
onClick: handleCheckin,
|
|
13246
13401
|
disabled: checkinLoading,
|
|
13247
|
-
className: "text-[14px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] l:px-[12px]
|
|
13402
|
+
className: "text-[16px] l:text-[14px] py-[14px] l:py-[10px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] l:px-[12px] leading-[1] hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
13248
13403
|
children: pageData.changeStatusButton || "Change Pickup Status"
|
|
13249
13404
|
}
|
|
13250
13405
|
) }),
|
|
13251
13406
|
checkinError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: checkinError })
|
|
13252
13407
|
] }),
|
|
13253
|
-
showCancelDialog && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 px-4 print:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white rounded-[24px] max-w-[600px] p-
|
|
13408
|
+
showCancelDialog && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 px-4 print:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white rounded-[24px] l:rounded-[16px] max-w-[600px] md:w-[90vw] p-4 shadow-xl relative", children: [
|
|
13254
13409
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13255
13410
|
"button",
|
|
13256
13411
|
{
|
|
13257
13412
|
onClick: () => setShowCancelDialog(false),
|
|
13258
13413
|
disabled: cancelLoading,
|
|
13259
|
-
className: "absolute top-
|
|
13414
|
+
className: "absolute top-4 right-[16px] w-8 h-8 flex items-center justify-center text-gray-400 hover:text-[#080A0F] transition-colors disabled:opacity-50",
|
|
13260
13415
|
"aria-label": "Close",
|
|
13261
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
13416
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13262
13417
|
"svg",
|
|
13263
13418
|
{
|
|
13419
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13264
13420
|
width: "24",
|
|
13265
13421
|
height: "24",
|
|
13266
13422
|
viewBox: "0 0 24 24",
|
|
13267
13423
|
fill: "none",
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
|
|
13274
|
-
|
|
13275
|
-
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
)
|
|
13424
|
+
children: [
|
|
13425
|
+
/* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: "url(#clip0_609_103733)", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13426
|
+
"path",
|
|
13427
|
+
{
|
|
13428
|
+
d: "M5.63545 5.63604C6.02592 5.24546 6.65913 5.24551 7.04966 5.63604L11.9994 10.5858L16.9492 5.63604C17.3397 5.24551 17.9729 5.24546 18.3634 5.63604C18.7538 6.02659 18.7538 6.65972 18.3634 7.05025L13.4136 12L18.3634 16.9497C18.7538 17.3403 18.7538 17.9734 18.3634 18.364C17.9729 18.7545 17.3397 18.7545 16.9492 18.364L11.9994 13.4142L7.04966 18.364C6.65913 18.7545 6.02592 18.7545 5.63545 18.364C5.24501 17.9734 5.24502 17.3403 5.63545 16.9497L10.5852 12L5.63545 7.05025C5.24502 6.65972 5.24501 6.02659 5.63545 5.63604Z",
|
|
13429
|
+
fill: "#080A0F"
|
|
13430
|
+
}
|
|
13431
|
+
) }),
|
|
13432
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_609_103733", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
13433
|
+
]
|
|
13279
13434
|
}
|
|
13280
13435
|
)
|
|
13281
13436
|
}
|
|
13282
13437
|
),
|
|
13283
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-
|
|
13438
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center mt-12 mb-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-[24px] h-[24px] rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13284
13439
|
"svg",
|
|
13285
13440
|
{
|
|
13286
13441
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13300,9 +13455,9 @@ var BookingSuccessO2O = ({
|
|
|
13300
13455
|
]
|
|
13301
13456
|
}
|
|
13302
13457
|
) }) }),
|
|
13303
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center mb-8", children: [
|
|
13304
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-[
|
|
13305
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-
|
|
13458
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center max-w-[80%] mb-8 mx-auto", children: [
|
|
13459
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-[16px] leading-[1.4] text-[#333] mb-2", children: pageData.cancelDialog?.title }),
|
|
13460
|
+
pageData.cancelDialog?.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] leading-[1.4] text-[#333]", children: pageData.cancelDialog?.description })
|
|
13306
13461
|
] }),
|
|
13307
13462
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3 justify-center", children: [
|
|
13308
13463
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13310,7 +13465,7 @@ var BookingSuccessO2O = ({
|
|
|
13310
13465
|
{
|
|
13311
13466
|
onClick: () => setShowCancelDialog(false),
|
|
13312
13467
|
disabled: cancelLoading,
|
|
13313
|
-
className: "
|
|
13468
|
+
className: "text-[16px] l:text-[14px] py-[14px] l:py-[10px] px-4 leading-[1.1] border-2 border-black rounded-full text-black hover:bg-gray-50 transition-colors disabled:opacity-50",
|
|
13314
13469
|
children: pageData.cancelDialog?.backButton
|
|
13315
13470
|
}
|
|
13316
13471
|
),
|
|
@@ -13319,7 +13474,7 @@ var BookingSuccessO2O = ({
|
|
|
13319
13474
|
{
|
|
13320
13475
|
onClick: handleCancelAppointment,
|
|
13321
13476
|
disabled: cancelLoading,
|
|
13322
|
-
className: "px-
|
|
13477
|
+
className: "text-[16px] l:text-[14px] px-4 py-[14px] l:py-[10px] leading-[1.1] bg-black text-white rounded-full hover:bg-gray-800 transition-colors disabled:opacity-50 flex items-center gap-2 min-w-[180px] justify-center",
|
|
13323
13478
|
children: cancelLoading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
13324
13479
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13325
13480
|
"svg",
|