@anker-in/ui 0.3.7 → 0.3.9

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
  * 取消预约(支持多语言邮件通知)
@@ -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
- const timeInZone = dayjs4__default.default(nextAvailableTimeslot.start_time).tz(
3001
- room.timezone || "America/Los_Angeles"
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
- }, [demoRooms, mergedPageData.defaultCountry, mergedPageData.noAvailableTime]);
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
- /* @__PURE__ */ jsxRuntime.jsxs(
3144
- "button",
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: "626px", overflow: "auto" },
3188
- 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]",
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
- () => initialResponses || {}
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 = initialResponses?.["phone_code"] || initialResponses?.["customer_phone_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 (!initialResponses) return {};
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 = initialResponses[qId];
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
- initialResponses?.["has_booked_before"] === "option2"
10966
+ normalizedInitialResponses?.["has_booked_before"] === "option2"
10892
10967
  );
10893
10968
  const hasBookedBeforeInitialized = React15.useRef(
10894
- !!initialResponses?.["has_booked_before"]
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
- const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
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-gray-900",
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-gray-900",
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-gray-900",
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-gray-900",
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-gray-900",
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-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 })
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-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 })
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-gray-900",
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-5 h-5 text-[#3ADB67] focus:ring-[#3ADB67] focus:ring-2 rounded",
11372
+ className: "w-4 h-4 text-[#fff] rounded",
11288
11373
  style: {
11289
- accentColor: "#3ADB67"
11374
+ accentColor: "#080A0F"
11290
11375
  }
11291
11376
  }
11292
11377
  ),
11293
- /* @__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 })
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-gray-900",
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-gray-900 dark:text-gray-900", children: [
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 items-center justify-center", children: [
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-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",
11381
11466
  style: {
11382
- accentColor: "#3ADB67"
11467
+ accentColor: "#080A0F"
11383
11468
  }
11384
11469
  }
11385
11470
  ),
@@ -11404,22 +11489,40 @@ var QuestionnaireForm2 = ({
11404
11489
  ]
11405
11490
  }
11406
11491
  ),
11407
- /* @__PURE__ */ jsxRuntime.jsx(
11408
- "button",
11409
- {
11410
- type: "submit",
11411
- disabled: loading,
11412
- onClick: handleSubmit,
11413
- className: cn(
11414
- "w-fit mt-6 px-6 py-4 rounded-full",
11415
- "bg-[#080A0F] text-white font-bold text-base",
11416
- "hover:bg-[#2FC257] transition-colors",
11417
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:ring-offset-2",
11418
- "disabled:opacity-50 disabled:cursor-not-allowed"
11419
- ),
11420
- children: loading ? pageData?.submitting || "Submitting..." : pageData?.submit || "Submit Booking"
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: "flex gap-4 l:flex-col", children: [
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 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",
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 16px 24px !important;
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-3 l:pb-[0px]", children: [
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-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 }),
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-gray-900", children: devices })
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-gray-900", children: address }),
12426
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: address }),
12318
12427
  /* @__PURE__ */ jsxRuntime.jsxs(
12319
12428
  "a",
12320
12429
  {
@@ -12452,20 +12561,63 @@ function buildMirWelcomeUrl({
12452
12561
  url.searchParams.set("redirect_url", encodeURIComponent(redirectSource));
12453
12562
  return url.toString();
12454
12563
  }
12455
- var ChevronIcon2 = () => /* @__PURE__ */ jsxRuntime.jsx(
12564
+ var PurposeCheckedIcon = () => /* @__PURE__ */ jsxRuntime.jsxs(
12456
12565
  "svg",
12457
12566
  {
12458
12567
  xmlns: "http://www.w3.org/2000/svg",
12459
- width: "24",
12460
- height: "24",
12461
- viewBox: "0 0 24 24",
12568
+ width: "20",
12569
+ height: "20",
12570
+ viewBox: "0 0 20 20",
12571
+ fill: "none",
12572
+ "aria-hidden": "true",
12573
+ className: "shrink-0",
12574
+ children: [
12575
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "0.8", y: "0.8", width: "18.4", height: "18.4", rx: "9.2", fill: "#000F16" }),
12576
+ /* @__PURE__ */ jsxRuntime.jsx(
12577
+ "rect",
12578
+ {
12579
+ x: "0.8",
12580
+ y: "0.8",
12581
+ width: "18.4",
12582
+ height: "18.4",
12583
+ rx: "9.2",
12584
+ stroke: "#000F16",
12585
+ strokeWidth: "1.6"
12586
+ }
12587
+ ),
12588
+ /* @__PURE__ */ jsxRuntime.jsx(
12589
+ "path",
12590
+ {
12591
+ d: "M6 9.58333L8.94737 12.5L14 7.5",
12592
+ strokeWidth: "1.6",
12593
+ strokeLinecap: "round",
12594
+ strokeLinejoin: "round",
12595
+ stroke: "white"
12596
+ }
12597
+ )
12598
+ ]
12599
+ }
12600
+ );
12601
+ var PurposeRadioIcon = () => /* @__PURE__ */ jsxRuntime.jsx(
12602
+ "svg",
12603
+ {
12604
+ xmlns: "http://www.w3.org/2000/svg",
12605
+ width: "20",
12606
+ height: "20",
12607
+ viewBox: "0 0 20 20",
12462
12608
  fill: "none",
12463
12609
  "aria-hidden": "true",
12610
+ className: "shrink-0",
12464
12611
  children: /* @__PURE__ */ jsxRuntime.jsx(
12465
- "path",
12612
+ "rect",
12466
12613
  {
12467
- d: "M16.7661 9.23364C17.078 9.5455 17.0779 10.0516 16.7661 10.3635L12.5991 14.5305C12.2874 14.842 11.782 14.8418 11.4702 14.5305L7.30322 10.3635C6.99135 10.0516 6.99135 9.54552 7.30322 9.23364C7.615 8.9221 8.1203 8.92219 8.43213 9.23364L12.0347 12.8362L15.6362 9.23364C15.9481 8.92183 16.4543 8.92181 16.7661 9.23364Z",
12468
- fill: "currentColor"
12614
+ x: "0.8",
12615
+ y: "0.8",
12616
+ width: "18.4",
12617
+ height: "18.4",
12618
+ rx: "9.2",
12619
+ stroke: "currentColor",
12620
+ strokeWidth: "1.6"
12469
12621
  }
12470
12622
  )
12471
12623
  }
@@ -12570,11 +12722,15 @@ var BookingFormO2O = ({
12570
12722
  const [isPurposeConfirmed, setIsPurposeConfirmed] = React15.useState(
12571
12723
  () => !!initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)
12572
12724
  );
12725
+ const podDesignId = React15.useMemo(() => getQueryParam("design_id"), []);
12573
12726
  React15.useEffect(() => {
12574
12727
  setSelectedPurposeType((currentType) => {
12575
12728
  if (purposeOptions.some((item) => item.type === currentType)) {
12576
12729
  return currentType;
12577
12730
  }
12731
+ if (podDesignId) {
12732
+ return "pod";
12733
+ }
12578
12734
  if (initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)) {
12579
12735
  return initialBusinessType;
12580
12736
  }
@@ -12587,14 +12743,13 @@ var BookingFormO2O = ({
12587
12743
  if (resolvedFromExplicitSource || purposeOptions.length > 0) {
12588
12744
  setIsPurposeConfirmed(true);
12589
12745
  }
12590
- }, [purposeOptions, initialBusinessType, booking?.business_type]);
12746
+ }, [purposeOptions, initialBusinessType, booking?.business_type, podDesignId]);
12591
12747
  const selectedPurpose = React15.useMemo(() => {
12592
12748
  return purposeOptions.find((item) => item.type === selectedPurposeType) || {};
12593
12749
  }, [purposeOptions, selectedPurposeType]);
12594
12750
  const isPodSelected = isPurposeConfirmed && selectedPurpose?.type === "pod";
12595
12751
  const selectedPodContent = isPodSelected ? selectedPurpose?.podContent : void 0;
12596
12752
  const selectedPodDescription = getPodContentDescription(selectedPodContent);
12597
- const podDesignId = React15.useMemo(() => getQueryParam("design_id"), []);
12598
12753
  const isPodDesignEditMode = !!podDesignId || !!booking?.design_project_id;
12599
12754
  const storeManagerIdFromUrl = React15.useMemo(
12600
12755
  () => getQueryParam("store_manager_id"),
@@ -12612,7 +12767,7 @@ var BookingFormO2O = ({
12612
12767
  const selectedPodImage = getSafePageDataUrl(
12613
12768
  isPodDesignEditMode && bookingDesign?.thumb_url || getPodContentImage(selectedPodContent)
12614
12769
  );
12615
- const selectedPodButtonIcon = getSafePageDataUrl(
12770
+ getSafePageDataUrl(
12616
12771
  isPodDesignEditMode ? selectedPodContent?.btnEditIcon : selectedPodContent?.btnIcon
12617
12772
  );
12618
12773
  const managerId = demoRoom?.contact?.manager_hash;
@@ -12682,7 +12837,7 @@ var BookingFormO2O = ({
12682
12837
  "div",
12683
12838
  {
12684
12839
  className: cn(
12685
- "text-[48px] l:text-[32px] pb-[24px] pt-[128px] l:pt-[64px] font-bold",
12840
+ "text-[48px] l:text-[32px] leading-[1.1] pb-[24px] pt-[128px] l:pt-[64px] font-bold",
12686
12841
  className
12687
12842
  ),
12688
12843
  children: dateTimePickerPageData?.scheduleYourVisit
@@ -12696,55 +12851,105 @@ var BookingFormO2O = ({
12696
12851
  isPodSelected && "grid-cols-2"
12697
12852
  ),
12698
12853
  children: [
12699
- /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[24px] l:px-[16px] l:py-[20px]", children: [
12700
- /* @__PURE__ */ jsxRuntime.jsx(
12701
- "label",
12702
- {
12703
- htmlFor: "booking-purpose-select",
12704
- className: "block text-[16px] font-bold text-[#080A0F] l:text-[14px]",
12705
- children: getPurposeLabel(pageData)
12706
- }
12707
- ),
12708
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative mt-[14px]", children: [
12854
+ /* @__PURE__ */ jsxRuntime.jsxs(
12855
+ "section",
12856
+ {
12857
+ className: cn(
12858
+ "flex flex-col rounded-[16px] bg-white px-[32px] py-[24px] l:px-[16px] l:py-[20px]",
12859
+ // 双栏时左卡高度由右侧 POD 卡撑开(与下拉版一致),选项列表内部滚动,
12860
+ // 避免选项+说明过多把左卡撑得比右卡高;h-0 让本卡不参与 grid 行高计算
12861
+ isPodSelected && "min-l:h-0 min-l:min-h-full min-l:overflow-hidden"
12862
+ ),
12863
+ children: [
12864
+ /* @__PURE__ */ jsxRuntime.jsx(
12865
+ "p",
12866
+ {
12867
+ id: "booking-purpose-label",
12868
+ className: "block text-[16px] font-bold text-[#080A0F] l:text-[14px]",
12869
+ children: getPurposeLabel(pageData)
12870
+ }
12871
+ ),
12872
+ /* @__PURE__ */ jsxRuntime.jsx(
12873
+ "div",
12874
+ {
12875
+ role: "radiogroup",
12876
+ "aria-labelledby": "booking-purpose-label",
12877
+ className: cn(
12878
+ "mt-[14px] flex min-h-0 flex-col gap-[16px] overflow-y-auto pr-[4px]",
12879
+ // 仅桌面双栏时列表受右卡高度约束内部滚动;独占一行(未选 POD / 移动端)不限高
12880
+ isPodSelected && "min-l:flex-1"
12881
+ ),
12882
+ children: purposeOptions.map((item, index) => {
12883
+ const isSelected = !!item.type && selectedPurpose?.type === item.type;
12884
+ const selectItem = () => {
12885
+ if (token) return;
12886
+ setSelectedPurposeType(item.type || "");
12887
+ setIsPurposeConfirmed(true);
12888
+ };
12889
+ return /* @__PURE__ */ jsxRuntime.jsxs(
12890
+ "div",
12891
+ {
12892
+ role: "radio",
12893
+ "aria-checked": isSelected,
12894
+ tabIndex: token ? -1 : 0,
12895
+ onClick: selectItem,
12896
+ onKeyDown: (event2) => {
12897
+ if (event2.key === "Enter" || event2.key === " ") {
12898
+ event2.preventDefault();
12899
+ selectItem();
12900
+ }
12901
+ },
12902
+ className: cn(
12903
+ "shrink-0 cursor-pointer overflow-hidden rounded-[8px] bg-[#F5F6F7] outline-none",
12904
+ token && "pointer-events-none cursor-not-allowed"
12905
+ ),
12906
+ children: [
12907
+ /* @__PURE__ */ jsxRuntime.jsxs(
12908
+ "div",
12909
+ {
12910
+ className: cn(
12911
+ "group flex h-[60px] w-full items-center gap-[12px] px-[16px] text-left text-[16px] font-bold text-[#000F16] transition-[box-shadow,color] l:text-[14px]",
12912
+ isSelected ? "bg-[#93E0EC]" : "rounded-[8px] bg-white text-[#5A5E66] shadow-[inset_0_0_0_1px_#D9DCE1] hover:text-[#000F16] hover:shadow-[inset_0_0_0_1.6px_#00CBEB]"
12913
+ ),
12914
+ children: [
12915
+ /* @__PURE__ */ jsxRuntime.jsx(
12916
+ "span",
12917
+ {
12918
+ className: cn(
12919
+ !isSelected && "text-[#D9DCE1] group-hover:text-[#00CBEB]"
12920
+ ),
12921
+ children: isSelected ? /* @__PURE__ */ jsxRuntime.jsx(PurposeCheckedIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(PurposeRadioIcon, {})
12922
+ }
12923
+ ),
12924
+ item.label || item.type
12925
+ ]
12926
+ }
12927
+ ),
12928
+ !!item.purposeNote && /* @__PURE__ */ jsxRuntime.jsx("p", { className: " px-[16px] py-[8px] text-[14px] font-medium leading-[1.35] text-[#080A0F] l:text-[13px]", children: item.purposeNote })
12929
+ ]
12930
+ },
12931
+ `${item.type || item.label || "purpose"}-${index}`
12932
+ );
12933
+ })
12934
+ }
12935
+ )
12936
+ ]
12937
+ }
12938
+ ),
12939
+ isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
12940
+ !!selectedPodContent.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
12941
+ !!selectedPodDescription && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-[6px] text-[13px] font-medium leading-[1.35] text-[#080A0F] l:text-[12px]", children: selectedPodDescription }),
12942
+ !!selectedPodImage && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full rounded-[8px] flex mt-4 bg-[#F5F6F7] flex-col items-center justify-center", children: [
12709
12943
  /* @__PURE__ */ jsxRuntime.jsx(
12710
- "select",
12944
+ "img",
12711
12945
  {
12712
- id: "booking-purpose-select",
12713
- value: selectedPurpose?.type || "",
12714
- onChange: (event2) => {
12715
- setSelectedPurposeType(event2.target.value);
12716
- setIsPurposeConfirmed(true);
12717
- },
12718
- disabled: !!token,
12719
- className: cn(
12720
- "h-[48px] w-full appearance-none rounded-[8px] border border-[#D9DCE1] bg-white px-[16px] pr-[48px] text-[16px] font-medium text-[#2A2C32] outline-none transition-colors focus:border-[#080A0F] focus:ring-2 focus:ring-[#3ADB67]/30 l:text-[14px]",
12721
- token && "pointer-events-none cursor-not-allowed opacity-50"
12722
- ),
12723
- children: purposeOptions.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
12724
- "option",
12725
- {
12726
- value: item.type || "",
12727
- children: item.label || item.type
12728
- },
12729
- `${item.type || item.label || "purpose"}-${index}`
12730
- ))
12946
+ src: selectedPodImage,
12947
+ alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
12948
+ className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
12731
12949
  }
12732
12950
  ),
12733
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute right-[14px] top-1/2 flex -translate-y-1/2 text-[#080A0F]", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronIcon2, {}) })
12951
+ bookingDesign?.material && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 text-[16px] l:text-[14px] text-[#080A0F] font-bold mb-2", children: bookingDesign?.material })
12734
12952
  ] }),
12735
- !!selectedPurpose?.purposeNote && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-[16px] max-w-[720px] text-[14px] font-medium leading-[1.35] text-[#080A0F] l:text-[13px]", children: selectedPurpose.purposeNote })
12736
- ] }),
12737
- isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
12738
- !!selectedPodContent.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
12739
- !!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.jsx(
12741
- "img",
12742
- {
12743
- src: selectedPodImage,
12744
- alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
12745
- className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
12746
- }
12747
- ),
12748
12953
  !!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxRuntime.jsxs(
12749
12954
  "a",
12750
12955
  {
@@ -12756,17 +12961,35 @@ var BookingFormO2O = ({
12756
12961
  },
12757
12962
  rel: "noopener noreferrer",
12758
12963
  className: cn(
12759
- "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]",
12760
- isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50"
12964
+ "mt-[16px] h-[42px] inline-flex items-center border-2 justify-center gap-[6px] rounded-full px-[24px] text-[14px] font-bold transition-colors",
12965
+ isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50",
12966
+ isPodDesignEditMode ? "text-[#080A0F] border-[#080A0F]" : "text-white bg-[#080A0F] border-[#080A0F]"
12761
12967
  ),
12762
12968
  children: [
12763
- selectedPodButtonIcon && /* @__PURE__ */ jsxRuntime.jsx(
12764
- "img",
12969
+ /* @__PURE__ */ jsxRuntime.jsxs(
12970
+ "svg",
12765
12971
  {
12766
- src: selectedPodButtonIcon,
12767
- alt: "",
12768
- className: "h-[16px] w-[16px]",
12769
- "aria-hidden": "true"
12972
+ xmlns: "http://www.w3.org/2000/svg",
12973
+ width: "20",
12974
+ height: "20",
12975
+ viewBox: "0 0 20 20",
12976
+ fill: "none",
12977
+ children: [
12978
+ /* @__PURE__ */ jsxRuntime.jsx(
12979
+ "path",
12980
+ {
12981
+ 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",
12982
+ fill: "currentColor"
12983
+ }
12984
+ ),
12985
+ /* @__PURE__ */ jsxRuntime.jsx(
12986
+ "path",
12987
+ {
12988
+ 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",
12989
+ fill: "currentColor"
12990
+ }
12991
+ )
12992
+ ]
12770
12993
  }
12771
12994
  ),
12772
12995
  selectedPodButtonText
@@ -12881,7 +13104,7 @@ var BookingSuccessO2O = ({
12881
13104
  text-align: center;
12882
13105
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
12883
13106
  }
12884
- h2 { font-size: 24px; color: #4A4C56; margin: 0; }
13107
+ h2 { font-size: 24px; color: #080A0F; margin: 0; }
12885
13108
  p { font-size: 14px; color: #6B7280; margin: 8px 0 0; }
12886
13109
  img { width: 200px; height: 200px; margin-top: 32px; }
12887
13110
  `;
@@ -13036,7 +13259,29 @@ var BookingSuccessO2O = ({
13036
13259
  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
13260
  /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-[48px] xxl:text-[32px] font-bold text-[#080A0F] mb-8 print:hidden", children: pageData.yourAppointment }),
13038
13261
  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.jsx("p", { className: "text-base text-[#080A0F]", children: pageData.appointmentCanceled }),
13262
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base flex items-center gap-1 text-[#080A0F]", children: [
13263
+ /* @__PURE__ */ jsxRuntime.jsxs(
13264
+ "svg",
13265
+ {
13266
+ xmlns: "http://www.w3.org/2000/svg",
13267
+ width: "24",
13268
+ height: "24",
13269
+ viewBox: "0 0 24 24",
13270
+ fill: "none",
13271
+ children: [
13272
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10.5", fill: "#4A4C56" }),
13273
+ /* @__PURE__ */ jsxRuntime.jsx(
13274
+ "path",
13275
+ {
13276
+ 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",
13277
+ fill: "white"
13278
+ }
13279
+ )
13280
+ ]
13281
+ }
13282
+ ),
13283
+ pageData.appointmentCanceled
13284
+ ] }),
13040
13285
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center l:gap-2 gap-4", children: [
13041
13286
  !!pageData.contactUs && /* @__PURE__ */ jsxRuntime.jsx(
13042
13287
  "a",
@@ -13052,7 +13297,7 @@ var BookingSuccessO2O = ({
13052
13297
  "button",
13053
13298
  {
13054
13299
  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",
13300
+ 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
13301
  children: pageData.scheduleAgain
13057
13302
  }
13058
13303
  )
@@ -13065,10 +13310,10 @@ var BookingSuccessO2O = ({
13065
13310
  children: [
13066
13311
  /* @__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
13312
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13068
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.location }),
13313
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.location }),
13069
13314
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
13070
- bookingData.demoroom_name && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.demoroom_name }),
13071
- bookingData.address && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-gray-600", children: bookingData.address }),
13315
+ bookingData.demoroom_name && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.demoroom_name }),
13316
+ bookingData.address && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.address }),
13072
13317
  bookingData.latitude && bookingData.longitude && /* @__PURE__ */ jsxRuntime.jsx(
13073
13318
  "a",
13074
13319
  {
@@ -13082,26 +13327,26 @@ var BookingSuccessO2O = ({
13082
13327
  ] })
13083
13328
  ] }),
13084
13329
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13085
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.dateAndTime }),
13086
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base text-[#4A4C56]", children: [
13330
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.dateAndTime }),
13331
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-base text-[#080A0F]", children: [
13087
13332
  bookingData.booking_date,
13088
13333
  bookingData.time_slot && `, ${bookingData.time_slot}`,
13089
13334
  !bookingData.time_slot && bookingData.booking_time && `, ${bookingData.booking_time}`
13090
13335
  ] })
13091
13336
  ] }),
13092
13337
  bookingData.equipment && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13093
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.event }),
13094
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: Array.isArray(bookingData.equipment) ? bookingData.equipment.join(", ") : bookingData.equipment })
13338
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.event }),
13339
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: Array.isArray(bookingData.equipment) ? bookingData.equipment.join(", ") : bookingData.equipment })
13095
13340
  ] }),
13096
13341
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13097
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.demoRoom }),
13098
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.demoroom_code })
13342
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.demoRoom }),
13343
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.demoroom_code })
13099
13344
  ] }),
13100
13345
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13101
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.visitorInfo }),
13346
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.visitorInfo }),
13102
13347
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
13103
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.customer_name }),
13104
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-gray-600", children: [
13348
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.customer_name }),
13349
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-[#080A0F]", children: [
13105
13350
  /* @__PURE__ */ jsxRuntime.jsx(
13106
13351
  "svg",
13107
13352
  {
@@ -13126,7 +13371,7 @@ var BookingSuccessO2O = ({
13126
13371
  bookingData.phone_number
13127
13372
  ] }) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: pageData.noPhoneProvided })
13128
13373
  ] }),
13129
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-gray-600", children: [
13374
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-base text-[#080A0F]", children: [
13130
13375
  /* @__PURE__ */ jsxRuntime.jsx(
13131
13376
  "svg",
13132
13377
  {
@@ -13150,8 +13395,8 @@ var BookingSuccessO2O = ({
13150
13395
  ] })
13151
13396
  ] }),
13152
13397
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13153
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.purposeOfVisit }),
13154
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#4A4C56]", children: pageData?.purposeNote?.[bookingData?.business_type || ""] }),
13398
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.purposeOfVisit }),
13399
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base text-[#080A0F]", children: pageData?.purposeNote?.[bookingData?.business_type || ""] }),
13155
13400
  !!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
13401
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
13157
13402
  /* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-base font-medium text-[#080A0F]", children: [
@@ -13160,7 +13405,7 @@ var BookingSuccessO2O = ({
13160
13405
  " ",
13161
13406
  podDesignName
13162
13407
  ] }),
13163
- bookingData?.print_status && pageData.podData?.status?.[bookingData.print_status] && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-[#4A4C56]", children: pageData.podData.status[bookingData.print_status] })
13408
+ 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
13409
  ] }),
13165
13410
  podDesignImage && /* @__PURE__ */ jsxRuntime.jsx(
13166
13411
  antd.Image,
@@ -13174,7 +13419,7 @@ var BookingSuccessO2O = ({
13174
13419
  ] })
13175
13420
  ] }),
13176
13421
  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-[#4A4C56] text-center", children: pageData.podData?.QRCodeTitle }),
13422
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] text-center", children: pageData.podData?.QRCodeTitle }),
13178
13423
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-gray-500 text-center mt-2", children: pageData.podData?.QRCodeSubTitle }),
13179
13424
  /* @__PURE__ */ jsxRuntime.jsx(
13180
13425
  "div",
@@ -13195,7 +13440,7 @@ var BookingSuccessO2O = ({
13195
13440
  "button",
13196
13441
  {
13197
13442
  onClick: () => onAddToWallet?.(bookingData),
13198
- 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",
13443
+ 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
13444
  children: pageData.podData?.btnToWallet
13200
13445
  }
13201
13446
  ),
@@ -13203,7 +13448,7 @@ var BookingSuccessO2O = ({
13203
13448
  "button",
13204
13449
  {
13205
13450
  onClick: handlePrintQRCode,
13206
- 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",
13451
+ 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
13452
  children: pageData.podData?.btnToPrint
13208
13453
  }
13209
13454
  )
@@ -13212,8 +13457,8 @@ var BookingSuccessO2O = ({
13212
13457
  ]
13213
13458
  }
13214
13459
  ),
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 md:flex-col md:items-center md:justify-center", children: [
13460
+ isPending && !isCancelled && !isStore && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-[64px] l:mt-[32px] pb-4 print:hidden", children: [
13461
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex md:w-full gap-4", children: [
13217
13462
  onEditBooking && token && /* @__PURE__ */ jsxRuntime.jsx(
13218
13463
  "button",
13219
13464
  {
@@ -13222,7 +13467,7 @@ var BookingSuccessO2O = ({
13222
13467
  bookingData.demoroom_code,
13223
13468
  bookingData.business_type
13224
13469
  ),
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] py-[10px] leading-[1] transition-colors",
13470
+ 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
13471
  children: pageData.editAppointment
13227
13472
  }
13228
13473
  ),
@@ -13231,56 +13476,56 @@ var BookingSuccessO2O = ({
13231
13476
  {
13232
13477
  onClick: () => setShowCancelDialog(true),
13233
13478
  disabled: cancelLoading,
13234
- 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",
13479
+ 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
13480
  children: pageData.cancelAppointment
13236
13481
  }
13237
13482
  )
13238
13483
  ] }) }),
13239
13484
  cancelError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: cancelError })
13240
13485
  ] }),
13241
- isStore && bookingData?.print_status === "completed" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-[64px] pb-4 print:hidden", children: [
13486
+ isStore && bookingData?.print_status === "completed" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-[64px] l:mt-[32px] pb-4 print:hidden", children: [
13242
13487
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsx(
13243
13488
  "button",
13244
13489
  {
13245
13490
  onClick: handleCheckin,
13246
13491
  disabled: checkinLoading,
13247
- 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",
13492
+ 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
13493
  children: pageData.changeStatusButton || "Change Pickup Status"
13249
13494
  }
13250
13495
  ) }),
13251
13496
  checkinError && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: checkinError })
13252
13497
  ] }),
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-8 shadow-xl relative", children: [
13498
+ 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
13499
  /* @__PURE__ */ jsxRuntime.jsx(
13255
13500
  "button",
13256
13501
  {
13257
13502
  onClick: () => setShowCancelDialog(false),
13258
13503
  disabled: cancelLoading,
13259
- 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",
13504
+ 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
13505
  "aria-label": "Close",
13261
- children: /* @__PURE__ */ jsxRuntime.jsx(
13506
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
13262
13507
  "svg",
13263
13508
  {
13509
+ xmlns: "http://www.w3.org/2000/svg",
13264
13510
  width: "24",
13265
13511
  height: "24",
13266
13512
  viewBox: "0 0 24 24",
13267
13513
  fill: "none",
13268
- xmlns: "http://www.w3.org/2000/svg",
13269
- children: /* @__PURE__ */ jsxRuntime.jsx(
13270
- "path",
13271
- {
13272
- d: "M18 6L6 18M6 6L18 18",
13273
- stroke: "currentColor",
13274
- strokeWidth: "2",
13275
- strokeLinecap: "round",
13276
- strokeLinejoin: "round"
13277
- }
13278
- )
13514
+ children: [
13515
+ /* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: "url(#clip0_609_103733)", children: /* @__PURE__ */ jsxRuntime.jsx(
13516
+ "path",
13517
+ {
13518
+ 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",
13519
+ fill: "#080A0F"
13520
+ }
13521
+ ) }),
13522
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_609_103733", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
13523
+ ]
13279
13524
  }
13280
13525
  )
13281
13526
  }
13282
13527
  ),
13283
- /* @__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(
13528
+ /* @__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
13529
  "svg",
13285
13530
  {
13286
13531
  xmlns: "http://www.w3.org/2000/svg",
@@ -13300,9 +13545,9 @@ var BookingSuccessO2O = ({
13300
13545
  ]
13301
13546
  }
13302
13547
  ) }) }),
13303
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center mb-8", children: [
13304
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-[18px] text-[#4A4C56] mb-2", children: pageData.cancelDialog?.title }),
13305
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-gray-600", children: pageData.cancelDialog?.description })
13548
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center max-w-[80%] mb-8 mx-auto", children: [
13549
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-[16px] leading-[1.4] text-[#333] mb-2", children: pageData.cancelDialog?.title }),
13550
+ pageData.cancelDialog?.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] leading-[1.4] text-[#333]", children: pageData.cancelDialog?.description })
13306
13551
  ] }),
13307
13552
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3 justify-center", children: [
13308
13553
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -13310,7 +13555,7 @@ var BookingSuccessO2O = ({
13310
13555
  {
13311
13556
  onClick: () => setShowCancelDialog(false),
13312
13557
  disabled: cancelLoading,
13313
- 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]",
13558
+ 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
13559
  children: pageData.cancelDialog?.backButton
13315
13560
  }
13316
13561
  ),
@@ -13319,7 +13564,7 @@ var BookingSuccessO2O = ({
13319
13564
  {
13320
13565
  onClick: handleCancelAppointment,
13321
13566
  disabled: cancelLoading,
13322
- 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",
13567
+ 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
13568
  children: cancelLoading ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13324
13569
  /* @__PURE__ */ jsxRuntime.jsxs(
13325
13570
  "svg",