@anker-in/ui 0.3.6 → 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/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
- return response.booking;
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
  * 取消预约(支持多语言邮件通知)
@@ -1838,7 +1858,7 @@ var Title2 = ({
1838
1858
  title = "",
1839
1859
  ...props
1840
1860
  }) => {
1841
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full"), ...props, children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[32px] min-l:text-[48px] font-bold mb-12 text-[#080A0F]", children: title }) });
1861
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full"), ...props, children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[32px] min-l:text-[48px] font-bold mb-6 text-[#080A0F]", children: title }) });
1842
1862
  };
1843
1863
  Title2.displayName = "Title";
1844
1864
  var StudioCard2 = ({
@@ -2438,9 +2458,6 @@ function groupByAlphabet2(items) {
2438
2458
  items: items2.sort((a, b) => a.name.localeCompare(b.name))
2439
2459
  }));
2440
2460
  }
2441
-
2442
- // src/components/DemoRoomO2O/components/RoomsList.module.css
2443
- var RoomsList_default2 = {};
2444
2461
  var LocationFilter2 = ({
2445
2462
  locations,
2446
2463
  onSelect,
@@ -2581,8 +2598,7 @@ var LocationFilter2 = ({
2581
2598
  {
2582
2599
  style: { height: "724px" },
2583
2600
  className: cn(
2584
- "w-full rounded-b-[12px] absolute z-40 bottom-[-2px] left-0 bg-white border border-[#E4E5E6]",
2585
- RoomsList_default2.antdMobileScope
2601
+ "w-full rounded-b-[12px] absolute z-40 bottom-[-2px] left-0 bg-white border border-[#E4E5E6]"
2586
2602
  ),
2587
2603
  children: [
2588
2604
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -2684,6 +2700,60 @@ var LocationFilter2 = ({
2684
2700
  LocationFilter2.displayName = "LocationFilter";
2685
2701
  dayjs4__default.default.extend(utc__default.default);
2686
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
+ }
2687
2757
  var isAllOption = (option) => {
2688
2758
  const normalizedType = option.type.trim().toLowerCase();
2689
2759
  return normalizedType === "" || normalizedType.startsWith("all ");
@@ -2884,6 +2954,7 @@ var RoomsList2 = ({
2884
2954
  googleMapsApiKey,
2885
2955
  className,
2886
2956
  apiClient,
2957
+ locale,
2887
2958
  teamCode,
2888
2959
  brandWebsite,
2889
2960
  onSchedule,
@@ -3001,13 +3072,11 @@ var RoomsList2 = ({
3001
3072
  let formattedTime = mergedPageData.noAvailableTime;
3002
3073
  if (nextAvailableTimeslot) {
3003
3074
  try {
3004
- const timeInZone = dayjs4__default.default(nextAvailableTimeslot.start_time).tz(
3005
- room.timezone || "America/Los_Angeles"
3075
+ formattedTime = formatAvailableTime(
3076
+ nextAvailableTimeslot.start_time,
3077
+ room.timezone || "America/Los_Angeles",
3078
+ locale
3006
3079
  );
3007
- const month = timeInZone.format("MMM");
3008
- const day = timeInZone.format("D");
3009
- const time = timeInZone.format("h:mm A");
3010
- formattedTime = `${month}.${day}, ${time}`;
3011
3080
  } catch (error2) {
3012
3081
  formattedTime = nextAvailableTimeslot.start_time;
3013
3082
  }
@@ -3029,7 +3098,12 @@ var RoomsList2 = ({
3029
3098
  storeType: room.store_type || room.storeType || ""
3030
3099
  };
3031
3100
  });
3032
- }, [demoRooms, mergedPageData.defaultCountry, mergedPageData.noAvailableTime]);
3101
+ }, [
3102
+ demoRooms,
3103
+ mergedPageData.defaultCountry,
3104
+ mergedPageData.noAvailableTime,
3105
+ locale
3106
+ ]);
3033
3107
  const filteredStudioLocations = React15.useMemo(() => {
3034
3108
  return studioLocations.filter((location) => {
3035
3109
  if (selectedPurposeType) {
@@ -3059,13 +3133,6 @@ var RoomsList2 = ({
3059
3133
  selectedPurposeType,
3060
3134
  selectedStoreType
3061
3135
  ]);
3062
- const getSelectedLocationName = () => {
3063
- if (!selectedLocation) return mergedPageData.locationFilter.allLocations;
3064
- if (selectedLocation.city) return selectedLocation.city;
3065
- if (selectedLocation.state) return selectedLocation.state;
3066
- if (selectedLocation.country) return selectedLocation.country;
3067
- return mergedPageData.locationFilter.allLocations;
3068
- };
3069
3136
  const handleLocationSelect = (selection) => {
3070
3137
  setSelectedLocation(selection);
3071
3138
  setShowLocationFilter(false);
@@ -3144,27 +3211,8 @@ var RoomsList2 = ({
3144
3211
  style: { height: "794px" },
3145
3212
  children: [
3146
3213
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-20 mb-5", children: [
3147
- /* @__PURE__ */ jsxRuntime.jsxs(
3148
- "button",
3149
- {
3150
- type: "button",
3151
- "aria-haspopup": "dialog",
3152
- "aria-expanded": showLocationFilter,
3153
- className: cn(
3154
- "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]",
3155
- showLocationFilter ? "rounded-t-[12px] rounded-b-none border-[#080A0F]" : "rounded-[12px] border-[#E4E5E6]"
3156
- ),
3157
- onClick: () => {
3158
- setOpenFilterDropdown(null);
3159
- setShowLocationFilter(!showLocationFilter);
3160
- },
3161
- children: [
3162
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate pr-2", children: getSelectedLocationName() }),
3163
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-none text-[#080A0F]", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronIcon, { open: showLocationFilter }) })
3164
- ]
3165
- }
3166
- ),
3167
- /* @__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: [
3168
3216
  renderFilterDropdown(
3169
3217
  "purpose",
3170
3218
  purposeOptions,
@@ -3188,8 +3236,8 @@ var RoomsList2 = ({
3188
3236
  /* @__PURE__ */ jsxRuntime.jsx(
3189
3237
  "div",
3190
3238
  {
3191
- style: { maxHeight: "626px", overflow: "auto" },
3192
- className: "rounded-[12px] bg-white border h-[626px] border-[#E4E5E6]",
3239
+ style: { maxHeight: "708px", overflow: "auto" },
3240
+ className: "rounded-[12px] bg-white border h-[708px] border-[#E4E5E6]",
3193
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) => {
3194
3242
  return /* @__PURE__ */ jsxRuntime.jsx(
3195
3243
  StudioCard2,
@@ -3272,6 +3320,7 @@ var DemoRoomO2O = ({
3272
3320
  className: layoutClassName,
3273
3321
  googleMapsApiKey,
3274
3322
  apiClient,
3323
+ locale: apiConfig.locale,
3275
3324
  teamCode,
3276
3325
  brandWebsite,
3277
3326
  onSchedule,
@@ -10857,9 +10906,27 @@ var BookingSuccess = ({
10857
10906
  ] }) })
10858
10907
  ] }) });
10859
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
+ };
10860
10926
  var QuestionnaireForm2 = ({
10861
10927
  questions,
10862
10928
  onSubmit,
10929
+ onCancel,
10863
10930
  pageData,
10864
10931
  selectedTimeslotId,
10865
10932
  loading = false,
@@ -10867,24 +10934,28 @@ var QuestionnaireForm2 = ({
10867
10934
  error,
10868
10935
  initialResponses
10869
10936
  }) => {
10937
+ const normalizedInitialResponses = React15.useMemo(
10938
+ () => normalizeInitialResponses(questions, initialResponses),
10939
+ [questions, initialResponses]
10940
+ );
10870
10941
  const [responses, setResponses] = React15.useState(
10871
- () => initialResponses || {}
10942
+ () => normalizedInitialResponses
10872
10943
  );
10873
10944
  const [errors, setErrors] = React15.useState({});
10874
10945
  const [agreements, setAgreements] = React15.useState({});
10875
10946
  const [agreementError, setAgreementError] = React15.useState("");
10876
10947
  const [phoneCountryCodes, setPhoneCountryCodes] = React15.useState(() => {
10877
- const code = initialResponses?.["phone_code"] || initialResponses?.["customer_phone_code"];
10948
+ const code = normalizedInitialResponses?.["phone_code"] || normalizedInitialResponses?.["customer_phone_code"];
10878
10949
  if (!code) return {};
10879
10950
  return { phone: code, customer_phone_number: code };
10880
10951
  });
10881
10952
  const [otherInputs, setOtherInputs] = React15.useState(() => {
10882
- if (!initialResponses) return {};
10953
+ if (!normalizedInitialResponses) return {};
10883
10954
  const seeded = {};
10884
10955
  questions.forEach((q) => {
10885
10956
  if (q.type !== "radio_with_other") return;
10886
10957
  const qId = q.key || q.id || "";
10887
- const val = initialResponses[qId];
10958
+ const val = normalizedInitialResponses[qId];
10888
10959
  if (val && !q.options?.some((opt) => (opt.value || opt.label) === val)) {
10889
10960
  seeded[qId] = val;
10890
10961
  }
@@ -10892,10 +10963,10 @@ var QuestionnaireForm2 = ({
10892
10963
  return seeded;
10893
10964
  });
10894
10965
  const prevHasBookedBeforeRef = React15.useRef(
10895
- initialResponses?.["has_booked_before"] === "option2"
10966
+ normalizedInitialResponses?.["has_booked_before"] === "option2"
10896
10967
  );
10897
10968
  const hasBookedBeforeInitialized = React15.useRef(
10898
- !!initialResponses?.["has_booked_before"]
10969
+ !!normalizedInitialResponses?.["has_booked_before"]
10899
10970
  );
10900
10971
  const hasBookedBeforeQuestion = questions.find(
10901
10972
  (q) => (q.key || q.id) === "has_booked_before"
@@ -10982,12 +11053,17 @@ var QuestionnaireForm2 = ({
10982
11053
  };
10983
11054
  const handleEmailBlur = (questionId, value) => {
10984
11055
  if (!value) return;
10985
- const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
10986
- if (!emailRegex.test(value)) {
11056
+ if (!EMAIL_REGEX.test(value)) {
10987
11057
  setErrors((prev) => ({
10988
11058
  ...prev,
10989
11059
  [questionId]: pageData?.emailValidError || "Please enter a valid email address"
10990
11060
  }));
11061
+ } else {
11062
+ setErrors((prev) => {
11063
+ const newErrors = { ...prev };
11064
+ delete newErrors[questionId];
11065
+ return newErrors;
11066
+ });
10991
11067
  }
10992
11068
  };
10993
11069
  const handleCountryCodeChange = (questionId, code) => {
@@ -11020,13 +11096,18 @@ var QuestionnaireForm2 = ({
11020
11096
  const validateForm = () => {
11021
11097
  const newErrors = {};
11022
11098
  visibleQuestions.forEach((question) => {
11099
+ const questionId = getQuestionId(question);
11100
+ const value = responses[questionId];
11023
11101
  if (question.required) {
11024
- const questionId = getQuestionId(question);
11025
- const value = responses[questionId];
11026
11102
  if (!value || Array.isArray(value) && value.length === 0) {
11027
11103
  newErrors[questionId] = pageData?.fieldRuquired || "This field is required";
11028
11104
  }
11029
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
+ }
11030
11111
  });
11031
11112
  const agrees = pageData?.agrees || [];
11032
11113
  if (agrees.length > 0) {
@@ -11091,7 +11172,7 @@ var QuestionnaireForm2 = ({
11091
11172
  onChange: (e) => handleChange(questionId, e.target.value),
11092
11173
  placeholder: question.placeholder,
11093
11174
  className: cn(
11094
- "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11175
+ "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11095
11176
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11096
11177
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11097
11178
  )
@@ -11107,7 +11188,7 @@ var QuestionnaireForm2 = ({
11107
11188
  onBlur: (e) => handleEmailBlur(questionId, e.target.value),
11108
11189
  placeholder: question.placeholder,
11109
11190
  className: cn(
11110
- "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11191
+ "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11111
11192
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11112
11193
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11113
11194
  )
@@ -11126,7 +11207,7 @@ var QuestionnaireForm2 = ({
11126
11207
  "appearance-none pl-3 pr-8 py-3 rounded-lg border text-base",
11127
11208
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11128
11209
  "bg-white cursor-pointer w-[80px]",
11129
- "dark:bg-white dark:text-gray-900",
11210
+ "dark:bg-white dark:text-[#080A0F]",
11130
11211
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11131
11212
  ),
11132
11213
  children: countryCodes.map((item) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: item.code, children: item.code }, item.code))
@@ -11161,7 +11242,7 @@ var QuestionnaireForm2 = ({
11161
11242
  onChange: (e) => handleChange(questionId, e.target.value),
11162
11243
  placeholder: question.placeholder,
11163
11244
  className: cn(
11164
- "flex-1 px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11245
+ "flex-1 px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11165
11246
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11166
11247
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11167
11248
  )
@@ -11179,7 +11260,7 @@ var QuestionnaireForm2 = ({
11179
11260
  className: cn(
11180
11261
  "w-full px-4 py-3 rounded-lg border text-base resize-none bg-white",
11181
11262
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11182
- "dark:bg-white dark:text-gray-900",
11263
+ "dark:bg-white dark:text-[#080A0F]",
11183
11264
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11184
11265
  )
11185
11266
  }
@@ -11207,7 +11288,7 @@ var QuestionnaireForm2 = ({
11207
11288
  }
11208
11289
  }
11209
11290
  ),
11210
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-gray-900 dark:text-gray-900 font-bold group-hover:text-[#3ADB67] transition-colors", children: option.label })
11291
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
11211
11292
  ]
11212
11293
  },
11213
11294
  option.value || option.label
@@ -11248,7 +11329,7 @@ var QuestionnaireForm2 = ({
11248
11329
  }
11249
11330
  }
11250
11331
  ),
11251
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-gray-900 dark:text-gray-900 font-bold group-hover:text-[#3ADB67] transition-colors", children: option.label })
11332
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
11252
11333
  ] }),
11253
11334
  isOtherOption && isOtherSelected && /* @__PURE__ */ jsxRuntime.jsx(
11254
11335
  "input",
@@ -11258,7 +11339,7 @@ var QuestionnaireForm2 = ({
11258
11339
  onChange: (e) => handleOtherInputChange(questionId, e.target.value),
11259
11340
  placeholder: question.placeholder || "Please specify...",
11260
11341
  className: cn(
11261
- "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11342
+ "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11262
11343
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11263
11344
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11264
11345
  )
@@ -11288,13 +11369,13 @@ var QuestionnaireForm2 = ({
11288
11369
  optionValue,
11289
11370
  e.target.checked
11290
11371
  ),
11291
- className: "w-5 h-5 text-[#3ADB67] focus:ring-[#3ADB67] focus:ring-2 rounded",
11372
+ className: "w-4 h-4 text-[#fff] rounded",
11292
11373
  style: {
11293
- accentColor: "#3ADB67"
11374
+ accentColor: "#080A0F"
11294
11375
  }
11295
11376
  }
11296
11377
  ),
11297
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-gray-900 dark:text-gray-900 font-bold group-hover:text-[#3ADB67] transition-colors", children: option.label })
11378
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
11298
11379
  ]
11299
11380
  },
11300
11381
  optionValue
@@ -11313,7 +11394,7 @@ var QuestionnaireForm2 = ({
11313
11394
  value: defaultValue,
11314
11395
  onChange: (e) => handleChange(questionId, e.target.value),
11315
11396
  className: cn(
11316
- "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11397
+ "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11317
11398
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11318
11399
  "cursor-pointer",
11319
11400
  hasError ? "border-red-500" : "border-[#E4E5E6]"
@@ -11334,7 +11415,7 @@ var QuestionnaireForm2 = ({
11334
11415
  }
11335
11416
  };
11336
11417
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pb-[80px] light", children: [
11337
- visibleQuestions && visibleQuestions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white rounded-[12px] border border-[#E4E5E6] p-8 dark:bg-white dark:border-[#E4E5E6] l:p-4", children: /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: handleSubmit, className: cn("space-y-6", className), children: visibleQuestions.map((question) => {
11418
+ visibleQuestions && visibleQuestions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white rounded-[12px] p-8 dark:bg-white l:p-4", children: /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: handleSubmit, className: cn("space-y-6", className), children: visibleQuestions.map((question) => {
11338
11419
  const questionId = getQuestionId(question);
11339
11420
  const hasError = !!errors[questionId];
11340
11421
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -11344,7 +11425,7 @@ var QuestionnaireForm2 = ({
11344
11425
  "data-has-error": hasError ? "true" : "false",
11345
11426
  children: [
11346
11427
  /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "block", children: [
11347
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-base font-bold text-gray-900 dark:text-gray-900", children: [
11428
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-base font-bold text-[#080A0F] dark:text-[#080A0F]", children: [
11348
11429
  question.label,
11349
11430
  question.required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-red-500 ml-1", children: "*" })
11350
11431
  ] }),
@@ -11366,7 +11447,7 @@ var QuestionnaireForm2 = ({
11366
11447
  questionId
11367
11448
  );
11368
11449
  }) }) }),
11369
- !!selectedTimeslotId && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center", children: [
11450
+ !!selectedTimeslotId && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col justify-center", children: [
11370
11451
  pageData?.agrees && pageData.agrees.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
11371
11452
  "div",
11372
11453
  {
@@ -11381,9 +11462,9 @@ var QuestionnaireForm2 = ({
11381
11462
  id: `agreement-${index}`,
11382
11463
  checked: agreements[index] || false,
11383
11464
  onChange: (e) => handleAgreementChange(index, e.target.checked),
11384
- className: "w-5 h-5 rounded text-[#3ADB67] focus:ring-[#3ADB67] cursor-pointer flex-shrink-0",
11465
+ className: "w-4 h-4 border border-[#080A0F] rounded text-[#fff] cursor-pointer flex-shrink-0",
11385
11466
  style: {
11386
- accentColor: "#3ADB67"
11467
+ accentColor: "#080A0F"
11387
11468
  }
11388
11469
  }
11389
11470
  ),
@@ -11408,22 +11489,40 @@ var QuestionnaireForm2 = ({
11408
11489
  ]
11409
11490
  }
11410
11491
  ),
11411
- /* @__PURE__ */ jsxRuntime.jsx(
11412
- "button",
11413
- {
11414
- type: "submit",
11415
- disabled: loading,
11416
- onClick: handleSubmit,
11417
- className: cn(
11418
- "w-fit mt-6 px-6 py-4 rounded-full",
11419
- "bg-[#080A0F] text-white font-bold text-base",
11420
- "hover:bg-[#2FC257] transition-colors",
11421
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:ring-offset-2",
11422
- "disabled:opacity-50 disabled:cursor-not-allowed"
11423
- ),
11424
- children: loading ? pageData?.submitting || "Submitting..." : pageData?.submit || "Submit Booking"
11425
- }
11426
- ),
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
+ ] }),
11427
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 }) })
11428
11527
  ] })
11429
11528
  ] });
@@ -11683,7 +11782,7 @@ var DateTimePicker2 = ({
11683
11782
  borderRadius: 16
11684
11783
  };
11685
11784
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
11686
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4 l:flex-col", children: [
11785
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-[16px] grid-cols-2 l:grid-cols-1", children: [
11687
11786
  /* @__PURE__ */ jsxRuntime.jsx(
11688
11787
  antd.ConfigProvider,
11689
11788
  {
@@ -11703,13 +11802,23 @@ var DateTimePicker2 = ({
11703
11802
  "div",
11704
11803
  {
11705
11804
  style: wrapperStyle,
11706
- className: "calendar-custom-cell w-[calc(824/1920*100vw)] min-l:max-w-[824px] l:w-full",
11805
+ className: "calendar-custom-cell min-l:max-w-[824px] l:w-full",
11707
11806
  children: [
11708
11807
  /* @__PURE__ */ jsxRuntime.jsx("style", { children: `
11709
11808
  .calendar-custom-cell {
11710
11809
  border-radius: 16px !important;
11711
11810
  overflow: hidden;
11712
- padding: 0 24px 16px 24px !important;
11811
+ padding: 0 24px 24px 24px !important;
11812
+ }
11813
+ @media (max-width: 1023px) {
11814
+ .calendar-custom-cell {
11815
+ border-radius: 16px !important;
11816
+ overflow: hidden;
11817
+ padding: 0 16px 16px 16px !important;
11818
+ }
11819
+ }
11820
+ .ant-picker-body{
11821
+ padding-bottom: 0px !important;
11713
11822
  }
11714
11823
  .calendar-custom-cell,
11715
11824
  .calendar-custom-cell *,
@@ -11721,7 +11830,7 @@ var DateTimePicker2 = ({
11721
11830
  font-family: 'MontForAnker' !important;
11722
11831
  }
11723
11832
  .calendar-custom-cell .ant-picker-cell {
11724
- padding: 6px !important;
11833
+ padding: 6px 0 !important;
11725
11834
  text-align: center !important;
11726
11835
  }
11727
11836
  .calendar-custom-cell .ant-picker-cell .ant-picker-cell-inner {
@@ -11868,7 +11977,7 @@ var DateTimePicker2 = ({
11868
11977
  label,
11869
11978
  value: index
11870
11979
  }));
11871
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between py-3 l:pb-[0px]", children: [
11980
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between py-4 l:pb-[0px]", children: [
11872
11981
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
11873
11982
  /* @__PURE__ */ jsxRuntime.jsx(
11874
11983
  antd.Select,
@@ -11880,7 +11989,7 @@ var DateTimePicker2 = ({
11880
11989
  onChange(now2);
11881
11990
  },
11882
11991
  variant: "borderless",
11883
- className: "text-[32px] l:text-[20px] font-bold",
11992
+ className: "text-[32px] l:text-[20px] !p-0 font-bold",
11884
11993
  popupMatchSelectWidth: false,
11885
11994
  suffixIcon: null,
11886
11995
  style: {
@@ -11979,9 +12088,9 @@ var DateTimePicker2 = ({
11979
12088
  )
11980
12089
  }
11981
12090
  ),
11982
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white p-[24px] rounded-[16px] flex-1", children: [
12091
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white p-[24px] l:p-[16px] rounded-[16px] flex-1", children: [
11983
12092
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
11984
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[24px] l:text-[16px]", children: pageData?.timeSlot }),
12093
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[24px] l:text-[14px]", children: pageData?.timeSlot }),
11985
12094
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex text-[18px] l:text-[14px] l:gap-1 gap-2", children: [
11986
12095
  /* @__PURE__ */ jsxRuntime.jsx(
11987
12096
  "button",
@@ -12064,7 +12173,7 @@ var DateTimePicker2 = ({
12064
12173
  }
12065
12174
  },
12066
12175
  className: `
12067
- rounded-[20px] w-full text-[18px] l:gap-2 l:text-[16px] flex items-center justify-center gap-4 h-[76px]
12176
+ rounded-[8px] w-full text-[18px] l:gap-2 l:text-[16px] flex items-center justify-center gap-4 h-[76px]
12068
12177
  border text-center transition-colors
12069
12178
  ${isSelected ? "border-[#3ADB67] bg-[#3ADB67] cursor-pointer" : isAvailable ? "border-[#E4E5E6] hover:border-[#3ADB67] hover:bg-[#3ADB67] cursor-pointer" : "border-[#E4E5E6] bg-[#F5F5F5] text-[#767880] cursor-not-allowed"}
12070
12179
  `,
@@ -12084,7 +12193,7 @@ var DateTimePicker2 = ({
12084
12193
  "div",
12085
12194
  {
12086
12195
  className: cn(
12087
- "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"
12088
12197
  ),
12089
12198
  children: pageData?.fillOutForm
12090
12199
  }
@@ -12098,6 +12207,9 @@ var DateTimePicker2 = ({
12098
12207
  selectedTimeslotId,
12099
12208
  error: bookingError || editError,
12100
12209
  initialResponses,
12210
+ onCancel: () => {
12211
+ onBookingSuccess?.(token || "");
12212
+ },
12101
12213
  onSubmit: async (responses) => {
12102
12214
  if (onQuestionnaireSubmit) {
12103
12215
  await onQuestionnaireSubmit(responses);
@@ -12231,7 +12343,7 @@ var DemoRoomDetail2 = ({
12231
12343
  ),
12232
12344
  children: [
12233
12345
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
12234
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-[48px] l:text-[32px] font-bold text-gray-900 leading-tight", children: title }),
12346
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-[48px] l:text-[32px] font-bold text-[#080A0F] leading-tight", children: title }),
12235
12347
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-[20px]", children: descriptions?.map((desc, index) => /* @__PURE__ */ jsxRuntime.jsx(
12236
12348
  "p",
12237
12349
  {
@@ -12274,7 +12386,7 @@ var DemoRoomDetail2 = ({
12274
12386
  ]
12275
12387
  }
12276
12388
  ),
12277
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-gray-900", children: devices })
12389
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base text-[#080A0F]", children: devices })
12278
12390
  ] }),
12279
12391
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
12280
12392
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -12311,7 +12423,7 @@ var DemoRoomDetail2 = ({
12311
12423
  }
12312
12424
  ),
12313
12425
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
12314
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-gray-900", children: address }),
12426
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: address }),
12315
12427
  /* @__PURE__ */ jsxRuntime.jsxs(
12316
12428
  "a",
12317
12429
  {
@@ -12567,11 +12679,15 @@ var BookingFormO2O = ({
12567
12679
  const [isPurposeConfirmed, setIsPurposeConfirmed] = React15.useState(
12568
12680
  () => !!initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)
12569
12681
  );
12682
+ const podDesignId = React15.useMemo(() => getQueryParam("design_id"), []);
12570
12683
  React15.useEffect(() => {
12571
12684
  setSelectedPurposeType((currentType) => {
12572
12685
  if (purposeOptions.some((item) => item.type === currentType)) {
12573
12686
  return currentType;
12574
12687
  }
12688
+ if (podDesignId) {
12689
+ return "pod";
12690
+ }
12575
12691
  if (initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)) {
12576
12692
  return initialBusinessType;
12577
12693
  }
@@ -12584,14 +12700,13 @@ var BookingFormO2O = ({
12584
12700
  if (resolvedFromExplicitSource || purposeOptions.length > 0) {
12585
12701
  setIsPurposeConfirmed(true);
12586
12702
  }
12587
- }, [purposeOptions, initialBusinessType, booking?.business_type]);
12703
+ }, [purposeOptions, initialBusinessType, booking?.business_type, podDesignId]);
12588
12704
  const selectedPurpose = React15.useMemo(() => {
12589
12705
  return purposeOptions.find((item) => item.type === selectedPurposeType) || {};
12590
12706
  }, [purposeOptions, selectedPurposeType]);
12591
12707
  const isPodSelected = isPurposeConfirmed && selectedPurpose?.type === "pod";
12592
12708
  const selectedPodContent = isPodSelected ? selectedPurpose?.podContent : void 0;
12593
12709
  const selectedPodDescription = getPodContentDescription(selectedPodContent);
12594
- const podDesignId = React15.useMemo(() => getQueryParam("design_id"), []);
12595
12710
  const isPodDesignEditMode = !!podDesignId || !!booking?.design_project_id;
12596
12711
  const storeManagerIdFromUrl = React15.useMemo(
12597
12712
  () => getQueryParam("store_manager_id"),
@@ -12609,7 +12724,7 @@ var BookingFormO2O = ({
12609
12724
  const selectedPodImage = getSafePageDataUrl(
12610
12725
  isPodDesignEditMode && bookingDesign?.thumb_url || getPodContentImage(selectedPodContent)
12611
12726
  );
12612
- const selectedPodButtonIcon = getSafePageDataUrl(
12727
+ getSafePageDataUrl(
12613
12728
  isPodDesignEditMode ? selectedPodContent?.btnEditIcon : selectedPodContent?.btnIcon
12614
12729
  );
12615
12730
  const managerId = demoRoom?.contact?.manager_hash;
@@ -12679,7 +12794,7 @@ var BookingFormO2O = ({
12679
12794
  "div",
12680
12795
  {
12681
12796
  className: cn(
12682
- "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",
12683
12798
  className
12684
12799
  ),
12685
12800
  children: dateTimePickerPageData?.scheduleYourVisit
@@ -12734,14 +12849,17 @@ var BookingFormO2O = ({
12734
12849
  isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
12735
12850
  !!selectedPodContent.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
12736
12851
  !!selectedPodDescription && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-[6px] text-[13px] font-medium leading-[1.35] text-[#080A0F] l:text-[12px]", children: selectedPodDescription }),
12737
- !!selectedPodImage && /* @__PURE__ */ jsxRuntime.jsx(
12738
- "img",
12739
- {
12740
- src: selectedPodImage,
12741
- alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
12742
- className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
12743
- }
12744
- ),
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
+ ] }),
12745
12863
  !!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxRuntime.jsxs(
12746
12864
  "a",
12747
12865
  {
@@ -12753,17 +12871,35 @@ var BookingFormO2O = ({
12753
12871
  },
12754
12872
  rel: "noopener noreferrer",
12755
12873
  className: cn(
12756
- "mt-[12px] inline-flex h-[42px] items-center justify-center gap-[6px] rounded-full bg-[#080A0F] px-[24px] text-[14px] font-bold text-white transition-colors hover:bg-[#2A2C32]",
12757
- 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]"
12758
12877
  ),
12759
12878
  children: [
12760
- selectedPodButtonIcon && /* @__PURE__ */ jsxRuntime.jsx(
12761
- "img",
12879
+ /* @__PURE__ */ jsxRuntime.jsxs(
12880
+ "svg",
12762
12881
  {
12763
- src: selectedPodButtonIcon,
12764
- alt: "",
12765
- className: "h-[16px] w-[16px]",
12766
- "aria-hidden": "true"
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
+ ]
12767
12903
  }
12768
12904
  ),
12769
12905
  selectedPodButtonText
@@ -12878,7 +13014,7 @@ var BookingSuccessO2O = ({
12878
13014
  text-align: center;
12879
13015
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
12880
13016
  }
12881
- h2 { font-size: 24px; color: #4A4C56; margin: 0; }
13017
+ h2 { font-size: 24px; color: #080A0F; margin: 0; }
12882
13018
  p { font-size: 14px; color: #6B7280; margin: 8px 0 0; }
12883
13019
  img { width: 200px; height: 200px; margin-top: 32px; }
12884
13020
  `;
@@ -13033,7 +13169,29 @@ var BookingSuccessO2O = ({
13033
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: [
13034
13170
  /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-[48px] xxl:text-[32px] font-bold text-[#080A0F] mb-8 print:hidden", children: pageData.yourAppointment }),
13035
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: [
13036
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: pageData.appointmentCanceled }),
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
+ ] }),
13037
13195
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center l:gap-2 gap-4", children: [
13038
13196
  !!pageData.contactUs && /* @__PURE__ */ jsxRuntime.jsx(
13039
13197
  "a",
@@ -13049,7 +13207,7 @@ var BookingSuccessO2O = ({
13049
13207
  "button",
13050
13208
  {
13051
13209
  onClick: () => onScheduleAgain(bookingData.demoroom_code),
13052
- 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",
13053
13211
  children: pageData.scheduleAgain
13054
13212
  }
13055
13213
  )
@@ -13062,10 +13220,10 @@ var BookingSuccessO2O = ({
13062
13220
  children: [
13063
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: [
13064
13222
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13065
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.location }),
13223
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.location }),
13066
13224
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
13067
- bookingData.demoroom_name && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.demoroom_name }),
13068
- bookingData.address && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-gray-600", children: bookingData.address }),
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 }),
13069
13227
  bookingData.latitude && bookingData.longitude && /* @__PURE__ */ jsxRuntime.jsx(
13070
13228
  "a",
13071
13229
  {
@@ -13079,26 +13237,26 @@ var BookingSuccessO2O = ({
13079
13237
  ] })
13080
13238
  ] }),
13081
13239
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13082
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.dateAndTime }),
13083
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base text-[#4A4C56]", children: [
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: [
13084
13242
  bookingData.booking_date,
13085
13243
  bookingData.time_slot && `, ${bookingData.time_slot}`,
13086
13244
  !bookingData.time_slot && bookingData.booking_time && `, ${bookingData.booking_time}`
13087
13245
  ] })
13088
13246
  ] }),
13089
13247
  bookingData.equipment && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13090
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.event }),
13091
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: Array.isArray(bookingData.equipment) ? bookingData.equipment.join(", ") : bookingData.equipment })
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 })
13092
13250
  ] }),
13093
13251
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13094
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.demoRoom }),
13095
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.demoroom_code })
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 })
13096
13254
  ] }),
13097
13255
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13098
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.visitorInfo }),
13256
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.visitorInfo }),
13099
13257
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
13100
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.customer_name }),
13101
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-gray-600", children: [
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: [
13102
13260
  /* @__PURE__ */ jsxRuntime.jsx(
13103
13261
  "svg",
13104
13262
  {
@@ -13123,7 +13281,7 @@ var BookingSuccessO2O = ({
13123
13281
  bookingData.phone_number
13124
13282
  ] }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: pageData.noPhoneProvided })
13125
13283
  ] }),
13126
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-gray-600", children: [
13284
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-[#080A0F]", children: [
13127
13285
  /* @__PURE__ */ jsxRuntime.jsx(
13128
13286
  "svg",
13129
13287
  {
@@ -13147,8 +13305,8 @@ var BookingSuccessO2O = ({
13147
13305
  ] })
13148
13306
  ] }),
13149
13307
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13150
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.purposeOfVisit }),
13151
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: pageData?.purposeNote?.[bookingData?.business_type || ""] }),
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 || ""] }),
13152
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: [
13153
13311
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
13154
13312
  /* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-base font-medium text-[#080A0F]", children: [
@@ -13157,7 +13315,7 @@ var BookingSuccessO2O = ({
13157
13315
  " ",
13158
13316
  podDesignName
13159
13317
  ] }),
13160
- bookingData?.status && pageData.podData?.status?.[bookingData.status] && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-[#4A4C56]", children: pageData.podData.status[bookingData.status] })
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] })
13161
13319
  ] }),
13162
13320
  podDesignImage && /* @__PURE__ */ jsxRuntime.jsx(
13163
13321
  antd.Image,
@@ -13171,7 +13329,7 @@ var BookingSuccessO2O = ({
13171
13329
  ] })
13172
13330
  ] }),
13173
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: [
13174
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] text-center", children: pageData.podData?.QRCodeTitle }),
13332
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] text-center", children: pageData.podData?.QRCodeTitle }),
13175
13333
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 text-center mt-2", children: pageData.podData?.QRCodeSubTitle }),
13176
13334
  /* @__PURE__ */ jsxRuntime.jsx(
13177
13335
  "div",
@@ -13192,7 +13350,7 @@ var BookingSuccessO2O = ({
13192
13350
  "button",
13193
13351
  {
13194
13352
  onClick: () => onAddToWallet?.(bookingData),
13195
- className: "text-[14px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] py-[10px] leading-[1] hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
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",
13196
13354
  children: pageData.podData?.btnToWallet
13197
13355
  }
13198
13356
  ),
@@ -13200,7 +13358,7 @@ var BookingSuccessO2O = ({
13200
13358
  "button",
13201
13359
  {
13202
13360
  onClick: handlePrintQRCode,
13203
- className: "text-[14px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] py-[10px] leading-[1] hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
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",
13204
13362
  children: pageData.podData?.btnToPrint
13205
13363
  }
13206
13364
  )
@@ -13209,8 +13367,8 @@ var BookingSuccessO2O = ({
13209
13367
  ]
13210
13368
  }
13211
13369
  ),
13212
- isPending && !isCancelled && !isStore && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-[64px] pb-4 print:hidden", children: [
13213
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex md:w-full gap-4 md:flex-col md:items-center md:justify-center", children: [
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: [
13214
13372
  onEditBooking && token && /* @__PURE__ */ jsxRuntime.jsx(
13215
13373
  "button",
13216
13374
  {
@@ -13219,7 +13377,7 @@ var BookingSuccessO2O = ({
13219
13377
  bookingData.demoroom_code,
13220
13378
  bookingData.business_type
13221
13379
  ),
13222
- 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] py-[10px] leading-[1] transition-colors",
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",
13223
13381
  children: pageData.editAppointment
13224
13382
  }
13225
13383
  ),
@@ -13228,56 +13386,56 @@ var BookingSuccessO2O = ({
13228
13386
  {
13229
13387
  onClick: () => setShowCancelDialog(true),
13230
13388
  disabled: cancelLoading,
13231
- className: "text-[14px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] l:px-[12px] py-[10px] leading-[1] hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
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",
13232
13390
  children: pageData.cancelAppointment
13233
13391
  }
13234
13392
  )
13235
13393
  ] }) }),
13236
13394
  cancelError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: cancelError })
13237
13395
  ] }),
13238
- 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: [
13239
13397
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsx(
13240
13398
  "button",
13241
13399
  {
13242
13400
  onClick: handleCheckin,
13243
13401
  disabled: checkinLoading,
13244
- className: "text-[14px] cursor-pointer w-fit rounded-full text-[#080A0F] border-2 border-[#080A0F] px-[20px] l:px-[12px] py-[10px] leading-[1] hover:bg-gray-50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
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",
13245
13403
  children: pageData.changeStatusButton || "Change Pickup Status"
13246
13404
  }
13247
13405
  ) }),
13248
13406
  checkinError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: checkinError })
13249
13407
  ] }),
13250
- 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-8 shadow-xl relative", children: [
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: [
13251
13409
  /* @__PURE__ */ jsxRuntime.jsx(
13252
13410
  "button",
13253
13411
  {
13254
13412
  onClick: () => setShowCancelDialog(false),
13255
13413
  disabled: cancelLoading,
13256
- className: "absolute top-6 right-[30px] w-8 h-8 flex items-center justify-center text-gray-400 hover:text-gray-600 transition-colors disabled:opacity-50",
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",
13257
13415
  "aria-label": "Close",
13258
- children: /* @__PURE__ */ jsxRuntime.jsx(
13416
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
13259
13417
  "svg",
13260
13418
  {
13419
+ xmlns: "http://www.w3.org/2000/svg",
13261
13420
  width: "24",
13262
13421
  height: "24",
13263
13422
  viewBox: "0 0 24 24",
13264
13423
  fill: "none",
13265
- xmlns: "http://www.w3.org/2000/svg",
13266
- children: /* @__PURE__ */ jsxRuntime.jsx(
13267
- "path",
13268
- {
13269
- d: "M18 6L6 18M6 6L18 18",
13270
- stroke: "currentColor",
13271
- strokeWidth: "2",
13272
- strokeLinecap: "round",
13273
- strokeLinejoin: "round"
13274
- }
13275
- )
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
+ ]
13276
13434
  }
13277
13435
  )
13278
13436
  }
13279
13437
  ),
13280
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
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(
13281
13439
  "svg",
13282
13440
  {
13283
13441
  xmlns: "http://www.w3.org/2000/svg",
@@ -13297,9 +13455,9 @@ var BookingSuccessO2O = ({
13297
13455
  ]
13298
13456
  }
13299
13457
  ) }) }),
13300
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center mb-8", children: [
13301
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-[18px] text-[#4A4C56] mb-2", children: pageData.cancelDialog?.title }),
13302
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-gray-600", children: pageData.cancelDialog?.description })
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 })
13303
13461
  ] }),
13304
13462
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3 justify-center", children: [
13305
13463
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -13307,7 +13465,7 @@ var BookingSuccessO2O = ({
13307
13465
  {
13308
13466
  onClick: () => setShowCancelDialog(false),
13309
13467
  disabled: cancelLoading,
13310
- className: "px-8 py-3 border-2 border-black rounded-full text-black hover:bg-gray-50 transition-colors disabled:opacity-50 min-w-[120px]",
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",
13311
13469
  children: pageData.cancelDialog?.backButton
13312
13470
  }
13313
13471
  ),
@@ -13316,7 +13474,7 @@ var BookingSuccessO2O = ({
13316
13474
  {
13317
13475
  onClick: handleCancelAppointment,
13318
13476
  disabled: cancelLoading,
13319
- className: "px-8 py-3 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",
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",
13320
13478
  children: cancelLoading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13321
13479
  /* @__PURE__ */ jsxRuntime.jsxs(
13322
13480
  "svg",