@anker-in/ui 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -9,6 +9,8 @@ import 'antd-mobile/es/components/list/list.css';
9
9
  import dayjs4 from 'dayjs';
10
10
  import utc from 'dayjs/plugin/utc';
11
11
  import timezone from 'dayjs/plugin/timezone';
12
+ import 'dayjs/locale/de';
13
+ import 'dayjs/locale/fr';
12
14
  import 'dayjs/locale/zh-cn';
13
15
  import { Image, QRCode, theme, ConfigProvider, Calendar, Select } from 'antd';
14
16
  import dayLocaleData from 'dayjs/plugin/localeData';
@@ -1719,7 +1721,25 @@ var DemoRoomApiClient = class {
1719
1721
  `/api/v1/store/bookings/${token}`,
1720
1722
  { headers }
1721
1723
  );
1722
- return response.booking;
1724
+ const { questionnaire, booking } = response;
1725
+ if (questionnaire?.length) {
1726
+ const normalized = questionnaire.reduce(
1727
+ (acc, item) => {
1728
+ if (!item.key) return acc;
1729
+ acc[item.key] = item.value;
1730
+ return acc;
1731
+ },
1732
+ {}
1733
+ );
1734
+ return {
1735
+ ...booking,
1736
+ questionnaire_response: {
1737
+ ...booking.questionnaire_response || {},
1738
+ ...normalized
1739
+ }
1740
+ };
1741
+ }
1742
+ return booking;
1723
1743
  }
1724
1744
  /**
1725
1745
  * 取消预约(支持多语言邮件通知)
@@ -2666,6 +2686,60 @@ var LocationFilter2 = ({
2666
2686
  LocationFilter2.displayName = "LocationFilter";
2667
2687
  dayjs4.extend(utc);
2668
2688
  dayjs4.extend(timezone);
2689
+ var EU_COUNTRIES = /* @__PURE__ */ new Set([
2690
+ "AT",
2691
+ "BE",
2692
+ "BG",
2693
+ "HR",
2694
+ "CY",
2695
+ "CZ",
2696
+ "DK",
2697
+ "EE",
2698
+ "FI",
2699
+ "GR",
2700
+ "HU",
2701
+ "IE",
2702
+ "IT",
2703
+ "LV",
2704
+ "LT",
2705
+ "LU",
2706
+ "MT",
2707
+ "NL",
2708
+ "PL",
2709
+ "PT",
2710
+ "RO",
2711
+ "SK",
2712
+ "SI",
2713
+ "ES",
2714
+ "SE"
2715
+ ]);
2716
+ function resolveTimeFormat(locale) {
2717
+ const normalized = locale?.toUpperCase() || "";
2718
+ const region = normalized.split("-")[1] || normalized.split("_")[1] || normalized;
2719
+ if (region === "US" || region === "CA") return "us";
2720
+ if (region === "AU" || region === "GB" || region === "UK") return "au";
2721
+ if (region === "DE") return "de";
2722
+ if (region === "FR") return "fr";
2723
+ if (EU_COUNTRIES.has(region)) return "eu";
2724
+ return "us";
2725
+ }
2726
+ function formatAvailableTime(startTime, timezone5, locale) {
2727
+ const format = resolveTimeFormat(locale);
2728
+ const timeInZone = dayjs4(startTime).tz(timezone5);
2729
+ switch (format) {
2730
+ case "au":
2731
+ return timeInZone.format("D MMM, h:mm A");
2732
+ case "de":
2733
+ return timeInZone.locale("de").format("D. MMMM, HH:mm");
2734
+ case "fr":
2735
+ return timeInZone.locale("fr").format("D MMMM, HH:mm");
2736
+ case "eu":
2737
+ return timeInZone.format("D MMMM, HH:mm");
2738
+ case "us":
2739
+ default:
2740
+ return timeInZone.format("MMM D, h:mm A");
2741
+ }
2742
+ }
2669
2743
  var isAllOption = (option) => {
2670
2744
  const normalizedType = option.type.trim().toLowerCase();
2671
2745
  return normalizedType === "" || normalizedType.startsWith("all ");
@@ -2866,6 +2940,7 @@ var RoomsList2 = ({
2866
2940
  googleMapsApiKey,
2867
2941
  className,
2868
2942
  apiClient,
2943
+ locale,
2869
2944
  teamCode,
2870
2945
  brandWebsite,
2871
2946
  onSchedule,
@@ -2983,13 +3058,11 @@ var RoomsList2 = ({
2983
3058
  let formattedTime = mergedPageData.noAvailableTime;
2984
3059
  if (nextAvailableTimeslot) {
2985
3060
  try {
2986
- const timeInZone = dayjs4(nextAvailableTimeslot.start_time).tz(
2987
- room.timezone || "America/Los_Angeles"
3061
+ formattedTime = formatAvailableTime(
3062
+ nextAvailableTimeslot.start_time,
3063
+ room.timezone || "America/Los_Angeles",
3064
+ locale
2988
3065
  );
2989
- const month = timeInZone.format("MMM");
2990
- const day = timeInZone.format("D");
2991
- const time = timeInZone.format("h:mm A");
2992
- formattedTime = `${month}.${day}, ${time}`;
2993
3066
  } catch (error2) {
2994
3067
  formattedTime = nextAvailableTimeslot.start_time;
2995
3068
  }
@@ -3011,7 +3084,12 @@ var RoomsList2 = ({
3011
3084
  storeType: room.store_type || room.storeType || ""
3012
3085
  };
3013
3086
  });
3014
- }, [demoRooms, mergedPageData.defaultCountry, mergedPageData.noAvailableTime]);
3087
+ }, [
3088
+ demoRooms,
3089
+ mergedPageData.defaultCountry,
3090
+ mergedPageData.noAvailableTime,
3091
+ locale
3092
+ ]);
3015
3093
  const filteredStudioLocations = useMemo(() => {
3016
3094
  return studioLocations.filter((location) => {
3017
3095
  if (selectedPurposeType) {
@@ -3041,13 +3119,6 @@ var RoomsList2 = ({
3041
3119
  selectedPurposeType,
3042
3120
  selectedStoreType
3043
3121
  ]);
3044
- const getSelectedLocationName = () => {
3045
- if (!selectedLocation) return mergedPageData.locationFilter.allLocations;
3046
- if (selectedLocation.city) return selectedLocation.city;
3047
- if (selectedLocation.state) return selectedLocation.state;
3048
- if (selectedLocation.country) return selectedLocation.country;
3049
- return mergedPageData.locationFilter.allLocations;
3050
- };
3051
3122
  const handleLocationSelect = (selection) => {
3052
3123
  setSelectedLocation(selection);
3053
3124
  setShowLocationFilter(false);
@@ -3126,27 +3197,8 @@ var RoomsList2 = ({
3126
3197
  style: { height: "794px" },
3127
3198
  children: [
3128
3199
  /* @__PURE__ */ jsxs("div", { className: "relative z-20 mb-5", children: [
3129
- /* @__PURE__ */ jsxs(
3130
- "button",
3131
- {
3132
- type: "button",
3133
- "aria-haspopup": "dialog",
3134
- "aria-expanded": showLocationFilter,
3135
- className: cn(
3136
- "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]",
3137
- showLocationFilter ? "rounded-t-[12px] rounded-b-none border-[#080A0F]" : "rounded-[12px] border-[#E4E5E6]"
3138
- ),
3139
- onClick: () => {
3140
- setOpenFilterDropdown(null);
3141
- setShowLocationFilter(!showLocationFilter);
3142
- },
3143
- children: [
3144
- /* @__PURE__ */ jsx("span", { className: "truncate pr-2", children: getSelectedLocationName() }),
3145
- /* @__PURE__ */ jsx("span", { className: "flex-none text-[#080A0F]", children: /* @__PURE__ */ jsx(ChevronIcon, { open: showLocationFilter }) })
3146
- ]
3147
- }
3148
- ),
3149
- /* @__PURE__ */ jsxs("div", { className: "mt-3 grid grid-cols-2 gap-2", children: [
3200
+ false,
3201
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
3150
3202
  renderFilterDropdown(
3151
3203
  "purpose",
3152
3204
  purposeOptions,
@@ -3170,8 +3222,8 @@ var RoomsList2 = ({
3170
3222
  /* @__PURE__ */ jsx(
3171
3223
  "div",
3172
3224
  {
3173
- style: { maxHeight: "626px", overflow: "auto" },
3174
- className: "rounded-[12px] bg-white border h-[626px] border-[#E4E5E6]",
3225
+ style: { maxHeight: "708px", overflow: "auto" },
3226
+ className: "rounded-[12px] bg-white border h-[708px] border-[#E4E5E6]",
3175
3227
  children: filteredStudioLocations.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-[200px] text-[#767880]", children: mergedPageData.locationFilter.noStudiosFound }) : filteredStudioLocations.map((item) => {
3176
3228
  return /* @__PURE__ */ jsx(
3177
3229
  StudioCard2,
@@ -3254,6 +3306,7 @@ var DemoRoomO2O = ({
3254
3306
  className: layoutClassName,
3255
3307
  googleMapsApiKey,
3256
3308
  apiClient,
3309
+ locale: apiConfig.locale,
3257
3310
  teamCode,
3258
3311
  brandWebsite,
3259
3312
  onSchedule,
@@ -10839,9 +10892,27 @@ var BookingSuccess = ({
10839
10892
  ] }) })
10840
10893
  ] }) });
10841
10894
  };
10895
+ var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
10896
+ var normalizeInitialResponses = (questions, initialResponses) => {
10897
+ if (!initialResponses) return {};
10898
+ const normalized = { ...initialResponses };
10899
+ questions.forEach((question) => {
10900
+ const questionId = question.key || question.id || "";
10901
+ if (!questionId) return;
10902
+ const value = normalized[questionId];
10903
+ if (value === void 0 || value === null) return;
10904
+ if (question.type === "checkbox") {
10905
+ normalized[questionId] = Array.isArray(value) ? value : [value];
10906
+ } else if (Array.isArray(value)) {
10907
+ normalized[questionId] = value[0];
10908
+ }
10909
+ });
10910
+ return normalized;
10911
+ };
10842
10912
  var QuestionnaireForm2 = ({
10843
10913
  questions,
10844
10914
  onSubmit,
10915
+ onCancel,
10845
10916
  pageData,
10846
10917
  selectedTimeslotId,
10847
10918
  loading = false,
@@ -10849,24 +10920,28 @@ var QuestionnaireForm2 = ({
10849
10920
  error,
10850
10921
  initialResponses
10851
10922
  }) => {
10923
+ const normalizedInitialResponses = useMemo(
10924
+ () => normalizeInitialResponses(questions, initialResponses),
10925
+ [questions, initialResponses]
10926
+ );
10852
10927
  const [responses, setResponses] = useState(
10853
- () => initialResponses || {}
10928
+ () => normalizedInitialResponses
10854
10929
  );
10855
10930
  const [errors, setErrors] = useState({});
10856
10931
  const [agreements, setAgreements] = useState({});
10857
10932
  const [agreementError, setAgreementError] = useState("");
10858
10933
  const [phoneCountryCodes, setPhoneCountryCodes] = useState(() => {
10859
- const code = initialResponses?.["phone_code"] || initialResponses?.["customer_phone_code"];
10934
+ const code = normalizedInitialResponses?.["phone_code"] || normalizedInitialResponses?.["customer_phone_code"];
10860
10935
  if (!code) return {};
10861
10936
  return { phone: code, customer_phone_number: code };
10862
10937
  });
10863
10938
  const [otherInputs, setOtherInputs] = useState(() => {
10864
- if (!initialResponses) return {};
10939
+ if (!normalizedInitialResponses) return {};
10865
10940
  const seeded = {};
10866
10941
  questions.forEach((q) => {
10867
10942
  if (q.type !== "radio_with_other") return;
10868
10943
  const qId = q.key || q.id || "";
10869
- const val = initialResponses[qId];
10944
+ const val = normalizedInitialResponses[qId];
10870
10945
  if (val && !q.options?.some((opt) => (opt.value || opt.label) === val)) {
10871
10946
  seeded[qId] = val;
10872
10947
  }
@@ -10874,10 +10949,10 @@ var QuestionnaireForm2 = ({
10874
10949
  return seeded;
10875
10950
  });
10876
10951
  const prevHasBookedBeforeRef = useRef(
10877
- initialResponses?.["has_booked_before"] === "option2"
10952
+ normalizedInitialResponses?.["has_booked_before"] === "option2"
10878
10953
  );
10879
10954
  const hasBookedBeforeInitialized = useRef(
10880
- !!initialResponses?.["has_booked_before"]
10955
+ !!normalizedInitialResponses?.["has_booked_before"]
10881
10956
  );
10882
10957
  const hasBookedBeforeQuestion = questions.find(
10883
10958
  (q) => (q.key || q.id) === "has_booked_before"
@@ -10964,12 +11039,17 @@ var QuestionnaireForm2 = ({
10964
11039
  };
10965
11040
  const handleEmailBlur = (questionId, value) => {
10966
11041
  if (!value) return;
10967
- const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
10968
- if (!emailRegex.test(value)) {
11042
+ if (!EMAIL_REGEX.test(value)) {
10969
11043
  setErrors((prev) => ({
10970
11044
  ...prev,
10971
11045
  [questionId]: pageData?.emailValidError || "Please enter a valid email address"
10972
11046
  }));
11047
+ } else {
11048
+ setErrors((prev) => {
11049
+ const newErrors = { ...prev };
11050
+ delete newErrors[questionId];
11051
+ return newErrors;
11052
+ });
10973
11053
  }
10974
11054
  };
10975
11055
  const handleCountryCodeChange = (questionId, code) => {
@@ -11002,13 +11082,18 @@ var QuestionnaireForm2 = ({
11002
11082
  const validateForm = () => {
11003
11083
  const newErrors = {};
11004
11084
  visibleQuestions.forEach((question) => {
11085
+ const questionId = getQuestionId(question);
11086
+ const value = responses[questionId];
11005
11087
  if (question.required) {
11006
- const questionId = getQuestionId(question);
11007
- const value = responses[questionId];
11008
11088
  if (!value || Array.isArray(value) && value.length === 0) {
11009
11089
  newErrors[questionId] = pageData?.fieldRuquired || "This field is required";
11010
11090
  }
11011
11091
  }
11092
+ if (question.type === "email" && value && typeof value === "string") {
11093
+ if (!EMAIL_REGEX.test(value)) {
11094
+ newErrors[questionId] = pageData?.emailValidError || "Please enter a valid email address";
11095
+ }
11096
+ }
11012
11097
  });
11013
11098
  const agrees = pageData?.agrees || [];
11014
11099
  if (agrees.length > 0) {
@@ -11073,7 +11158,7 @@ var QuestionnaireForm2 = ({
11073
11158
  onChange: (e) => handleChange(questionId, e.target.value),
11074
11159
  placeholder: question.placeholder,
11075
11160
  className: cn(
11076
- "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11161
+ "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11077
11162
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11078
11163
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11079
11164
  )
@@ -11089,7 +11174,7 @@ var QuestionnaireForm2 = ({
11089
11174
  onBlur: (e) => handleEmailBlur(questionId, e.target.value),
11090
11175
  placeholder: question.placeholder,
11091
11176
  className: cn(
11092
- "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11177
+ "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11093
11178
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11094
11179
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11095
11180
  )
@@ -11108,7 +11193,7 @@ var QuestionnaireForm2 = ({
11108
11193
  "appearance-none pl-3 pr-8 py-3 rounded-lg border text-base",
11109
11194
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11110
11195
  "bg-white cursor-pointer w-[80px]",
11111
- "dark:bg-white dark:text-gray-900",
11196
+ "dark:bg-white dark:text-[#080A0F]",
11112
11197
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11113
11198
  ),
11114
11199
  children: countryCodes.map((item) => /* @__PURE__ */ jsx("option", { value: item.code, children: item.code }, item.code))
@@ -11143,7 +11228,7 @@ var QuestionnaireForm2 = ({
11143
11228
  onChange: (e) => handleChange(questionId, e.target.value),
11144
11229
  placeholder: question.placeholder,
11145
11230
  className: cn(
11146
- "flex-1 px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11231
+ "flex-1 px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11147
11232
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11148
11233
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11149
11234
  )
@@ -11161,7 +11246,7 @@ var QuestionnaireForm2 = ({
11161
11246
  className: cn(
11162
11247
  "w-full px-4 py-3 rounded-lg border text-base resize-none bg-white",
11163
11248
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11164
- "dark:bg-white dark:text-gray-900",
11249
+ "dark:bg-white dark:text-[#080A0F]",
11165
11250
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11166
11251
  )
11167
11252
  }
@@ -11189,7 +11274,7 @@ var QuestionnaireForm2 = ({
11189
11274
  }
11190
11275
  }
11191
11276
  ),
11192
- /* @__PURE__ */ jsx("span", { className: "text-base text-gray-900 dark:text-gray-900 font-bold group-hover:text-[#3ADB67] transition-colors", children: option.label })
11277
+ /* @__PURE__ */ jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
11193
11278
  ]
11194
11279
  },
11195
11280
  option.value || option.label
@@ -11230,7 +11315,7 @@ var QuestionnaireForm2 = ({
11230
11315
  }
11231
11316
  }
11232
11317
  ),
11233
- /* @__PURE__ */ jsx("span", { className: "text-base text-gray-900 dark:text-gray-900 font-bold group-hover:text-[#3ADB67] transition-colors", children: option.label })
11318
+ /* @__PURE__ */ jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
11234
11319
  ] }),
11235
11320
  isOtherOption && isOtherSelected && /* @__PURE__ */ jsx(
11236
11321
  "input",
@@ -11240,7 +11325,7 @@ var QuestionnaireForm2 = ({
11240
11325
  onChange: (e) => handleOtherInputChange(questionId, e.target.value),
11241
11326
  placeholder: question.placeholder || "Please specify...",
11242
11327
  className: cn(
11243
- "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11328
+ "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11244
11329
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11245
11330
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11246
11331
  )
@@ -11270,13 +11355,13 @@ var QuestionnaireForm2 = ({
11270
11355
  optionValue,
11271
11356
  e.target.checked
11272
11357
  ),
11273
- className: "w-5 h-5 text-[#3ADB67] focus:ring-[#3ADB67] focus:ring-2 rounded",
11358
+ className: "w-4 h-4 text-[#fff] rounded",
11274
11359
  style: {
11275
- accentColor: "#3ADB67"
11360
+ accentColor: "#080A0F"
11276
11361
  }
11277
11362
  }
11278
11363
  ),
11279
- /* @__PURE__ */ jsx("span", { className: "text-base text-gray-900 dark:text-gray-900 font-bold group-hover:text-[#3ADB67] transition-colors", children: option.label })
11364
+ /* @__PURE__ */ jsx("span", { className: "text-base text-[#080A0F] dark:text-[#080A0F] font-bold transition-colors", children: option.label })
11280
11365
  ]
11281
11366
  },
11282
11367
  optionValue
@@ -11295,7 +11380,7 @@ var QuestionnaireForm2 = ({
11295
11380
  value: defaultValue,
11296
11381
  onChange: (e) => handleChange(questionId, e.target.value),
11297
11382
  className: cn(
11298
- "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-gray-900",
11383
+ "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11299
11384
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11300
11385
  "cursor-pointer",
11301
11386
  hasError ? "border-red-500" : "border-[#E4E5E6]"
@@ -11326,7 +11411,7 @@ var QuestionnaireForm2 = ({
11326
11411
  "data-has-error": hasError ? "true" : "false",
11327
11412
  children: [
11328
11413
  /* @__PURE__ */ jsxs("label", { className: "block", children: [
11329
- /* @__PURE__ */ jsxs("span", { className: "text-base font-bold text-gray-900 dark:text-gray-900", children: [
11414
+ /* @__PURE__ */ jsxs("span", { className: "text-base font-bold text-[#080A0F] dark:text-[#080A0F]", children: [
11330
11415
  question.label,
11331
11416
  question.required && /* @__PURE__ */ jsx("span", { className: "text-red-500 ml-1", children: "*" })
11332
11417
  ] }),
@@ -11348,7 +11433,7 @@ var QuestionnaireForm2 = ({
11348
11433
  questionId
11349
11434
  );
11350
11435
  }) }) }),
11351
- !!selectedTimeslotId && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center", children: [
11436
+ !!selectedTimeslotId && /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-center", children: [
11352
11437
  pageData?.agrees && pageData.agrees.length > 0 && /* @__PURE__ */ jsxs(
11353
11438
  "div",
11354
11439
  {
@@ -11363,9 +11448,9 @@ var QuestionnaireForm2 = ({
11363
11448
  id: `agreement-${index}`,
11364
11449
  checked: agreements[index] || false,
11365
11450
  onChange: (e) => handleAgreementChange(index, e.target.checked),
11366
- className: "w-5 h-5 rounded text-[#3ADB67] focus:ring-[#3ADB67] cursor-pointer flex-shrink-0",
11451
+ className: "w-4 h-4 border border-[#080A0F] rounded text-[#fff] cursor-pointer flex-shrink-0",
11367
11452
  style: {
11368
- accentColor: "#3ADB67"
11453
+ accentColor: "#080A0F"
11369
11454
  }
11370
11455
  }
11371
11456
  ),
@@ -11390,22 +11475,40 @@ var QuestionnaireForm2 = ({
11390
11475
  ]
11391
11476
  }
11392
11477
  ),
11393
- /* @__PURE__ */ jsx(
11394
- "button",
11395
- {
11396
- type: "submit",
11397
- disabled: loading,
11398
- onClick: handleSubmit,
11399
- className: cn(
11400
- "w-fit mt-6 px-6 py-4 rounded-full",
11401
- "bg-[#080A0F] text-white font-bold text-base",
11402
- "hover:bg-[#2FC257] transition-colors",
11403
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:ring-offset-2",
11404
- "disabled:opacity-50 disabled:cursor-not-allowed"
11405
- ),
11406
- children: loading ? pageData?.submitting || "Submitting..." : pageData?.submit || "Submit Booking"
11407
- }
11408
- ),
11478
+ /* @__PURE__ */ jsxs("div", { className: "flex gap-4", children: [
11479
+ /* @__PURE__ */ jsx(
11480
+ "button",
11481
+ {
11482
+ type: "submit",
11483
+ disabled: loading,
11484
+ onClick: handleSubmit,
11485
+ className: cn(
11486
+ "w-fit mt-6 px-6 py-4 rounded-full",
11487
+ "bg-[#080A0F] text-white font-bold text-base",
11488
+ "hover:bg-[#2FC257] hover:text-[#080A0F] transition-colors",
11489
+ "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:ring-offset-2",
11490
+ "disabled:opacity-50 disabled:cursor-not-allowed"
11491
+ ),
11492
+ children: loading ? pageData?.submitting || "Submitting..." : pageData?.submit || "Submit Booking"
11493
+ }
11494
+ ),
11495
+ pageData?.discardEdit && !!initialResponses && /* @__PURE__ */ jsx(
11496
+ "button",
11497
+ {
11498
+ type: "submit",
11499
+ onClick: () => {
11500
+ onCancel?.();
11501
+ },
11502
+ className: cn(
11503
+ "w-fit mt-6 px-6 py-4 rounded-full",
11504
+ "border-[#080A0F] border-2 text-[#080A0F] font-bold text-base",
11505
+ "transition-colors",
11506
+ "disabled:opacity-50 disabled:cursor-not-allowed"
11507
+ ),
11508
+ children: pageData?.discardEdit
11509
+ }
11510
+ )
11511
+ ] }),
11409
11512
  error && /* @__PURE__ */ jsx("div", { className: "text-center w-full p-4", children: /* @__PURE__ */ jsx("p", { className: "text-[#FF4D4D] font-bold", children: pageData?.errorMsg?.[String(error.code)] || pageData?.errorMsg?.[error.code || ""] || error.message }) })
11410
11513
  ] })
11411
11514
  ] });
@@ -11665,7 +11768,7 @@ var DateTimePicker2 = ({
11665
11768
  borderRadius: 16
11666
11769
  };
11667
11770
  return /* @__PURE__ */ jsxs("div", { children: [
11668
- /* @__PURE__ */ jsxs("div", { className: "flex gap-4 l:flex-col", children: [
11771
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-[16px] grid-cols-2 l:grid-cols-1", children: [
11669
11772
  /* @__PURE__ */ jsx(
11670
11773
  ConfigProvider,
11671
11774
  {
@@ -11685,13 +11788,13 @@ var DateTimePicker2 = ({
11685
11788
  "div",
11686
11789
  {
11687
11790
  style: wrapperStyle,
11688
- className: "calendar-custom-cell w-[calc(824/1920*100vw)] min-l:max-w-[824px] l:w-full",
11791
+ className: "calendar-custom-cell min-l:max-w-[824px] l:w-full",
11689
11792
  children: [
11690
11793
  /* @__PURE__ */ jsx("style", { children: `
11691
11794
  .calendar-custom-cell {
11692
11795
  border-radius: 16px !important;
11693
11796
  overflow: hidden;
11694
- padding: 0 24px 16px 24px !important;
11797
+ padding: 0 24px 24px 24px !important;
11695
11798
  }
11696
11799
  @media (max-width: 1023px) {
11697
11800
  .calendar-custom-cell {
@@ -11700,6 +11803,9 @@ var DateTimePicker2 = ({
11700
11803
  padding: 0 16px 16px 16px !important;
11701
11804
  }
11702
11805
  }
11806
+ .ant-picker-body{
11807
+ padding-bottom: 0px !important;
11808
+ }
11703
11809
  .calendar-custom-cell,
11704
11810
  .calendar-custom-cell *,
11705
11811
  .calendar-custom-cell .ant-picker-panel,
@@ -11710,7 +11816,7 @@ var DateTimePicker2 = ({
11710
11816
  font-family: 'MontForAnker' !important;
11711
11817
  }
11712
11818
  .calendar-custom-cell .ant-picker-cell {
11713
- padding: 6px !important;
11819
+ padding: 6px 0 !important;
11714
11820
  text-align: center !important;
11715
11821
  }
11716
11822
  .calendar-custom-cell .ant-picker-cell .ant-picker-cell-inner {
@@ -11857,7 +11963,7 @@ var DateTimePicker2 = ({
11857
11963
  label,
11858
11964
  value: index
11859
11965
  }));
11860
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between py-3 l:pb-[0px]", children: [
11966
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between py-4 l:pb-[0px]", children: [
11861
11967
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
11862
11968
  /* @__PURE__ */ jsx(
11863
11969
  Select,
@@ -11869,7 +11975,7 @@ var DateTimePicker2 = ({
11869
11975
  onChange(now2);
11870
11976
  },
11871
11977
  variant: "borderless",
11872
- className: "text-[32px] l:text-[20px] font-bold",
11978
+ className: "text-[32px] l:text-[20px] !p-0 font-bold",
11873
11979
  popupMatchSelectWidth: false,
11874
11980
  suffixIcon: null,
11875
11981
  style: {
@@ -12073,7 +12179,7 @@ var DateTimePicker2 = ({
12073
12179
  "div",
12074
12180
  {
12075
12181
  className: cn(
12076
- "text-[48px] l:text-[32px] pb-[24px] pt-[64px] l:pt-[32px] font-bold"
12182
+ "text-[48px] l:text-[32px] leading-[1.1] pb-[24px] pt-[64px] l:pt-[32px] font-bold"
12077
12183
  ),
12078
12184
  children: pageData?.fillOutForm
12079
12185
  }
@@ -12087,6 +12193,9 @@ var DateTimePicker2 = ({
12087
12193
  selectedTimeslotId,
12088
12194
  error: bookingError || editError,
12089
12195
  initialResponses,
12196
+ onCancel: () => {
12197
+ onBookingSuccess?.(token || "");
12198
+ },
12090
12199
  onSubmit: async (responses) => {
12091
12200
  if (onQuestionnaireSubmit) {
12092
12201
  await onQuestionnaireSubmit(responses);
@@ -12220,7 +12329,7 @@ var DemoRoomDetail2 = ({
12220
12329
  ),
12221
12330
  children: [
12222
12331
  /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
12223
- /* @__PURE__ */ jsx("h1", { className: "text-[48px] l:text-[32px] font-bold text-gray-900 leading-tight", children: title }),
12332
+ /* @__PURE__ */ jsx("h1", { className: "text-[48px] l:text-[32px] font-bold text-[#080A0F] leading-tight", children: title }),
12224
12333
  /* @__PURE__ */ jsx("div", { className: "mt-[20px]", children: descriptions?.map((desc, index) => /* @__PURE__ */ jsx(
12225
12334
  "p",
12226
12335
  {
@@ -12263,7 +12372,7 @@ var DemoRoomDetail2 = ({
12263
12372
  ]
12264
12373
  }
12265
12374
  ),
12266
- /* @__PURE__ */ jsx("span", { className: "text-base text-gray-900", children: devices })
12375
+ /* @__PURE__ */ jsx("span", { className: "text-base text-[#080A0F]", children: devices })
12267
12376
  ] }),
12268
12377
  /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
12269
12378
  /* @__PURE__ */ jsxs(
@@ -12300,7 +12409,7 @@ var DemoRoomDetail2 = ({
12300
12409
  }
12301
12410
  ),
12302
12411
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
12303
- /* @__PURE__ */ jsx("p", { className: "text-base text-gray-900", children: address }),
12412
+ /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: address }),
12304
12413
  /* @__PURE__ */ jsxs(
12305
12414
  "a",
12306
12415
  {
@@ -12556,11 +12665,15 @@ var BookingFormO2O = ({
12556
12665
  const [isPurposeConfirmed, setIsPurposeConfirmed] = useState(
12557
12666
  () => !!initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)
12558
12667
  );
12668
+ const podDesignId = useMemo(() => getQueryParam("design_id"), []);
12559
12669
  useEffect(() => {
12560
12670
  setSelectedPurposeType((currentType) => {
12561
12671
  if (purposeOptions.some((item) => item.type === currentType)) {
12562
12672
  return currentType;
12563
12673
  }
12674
+ if (podDesignId) {
12675
+ return "pod";
12676
+ }
12564
12677
  if (initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)) {
12565
12678
  return initialBusinessType;
12566
12679
  }
@@ -12573,14 +12686,13 @@ var BookingFormO2O = ({
12573
12686
  if (resolvedFromExplicitSource || purposeOptions.length > 0) {
12574
12687
  setIsPurposeConfirmed(true);
12575
12688
  }
12576
- }, [purposeOptions, initialBusinessType, booking?.business_type]);
12689
+ }, [purposeOptions, initialBusinessType, booking?.business_type, podDesignId]);
12577
12690
  const selectedPurpose = useMemo(() => {
12578
12691
  return purposeOptions.find((item) => item.type === selectedPurposeType) || {};
12579
12692
  }, [purposeOptions, selectedPurposeType]);
12580
12693
  const isPodSelected = isPurposeConfirmed && selectedPurpose?.type === "pod";
12581
12694
  const selectedPodContent = isPodSelected ? selectedPurpose?.podContent : void 0;
12582
12695
  const selectedPodDescription = getPodContentDescription(selectedPodContent);
12583
- const podDesignId = useMemo(() => getQueryParam("design_id"), []);
12584
12696
  const isPodDesignEditMode = !!podDesignId || !!booking?.design_project_id;
12585
12697
  const storeManagerIdFromUrl = useMemo(
12586
12698
  () => getQueryParam("store_manager_id"),
@@ -12598,7 +12710,7 @@ var BookingFormO2O = ({
12598
12710
  const selectedPodImage = getSafePageDataUrl(
12599
12711
  isPodDesignEditMode && bookingDesign?.thumb_url || getPodContentImage(selectedPodContent)
12600
12712
  );
12601
- const selectedPodButtonIcon = getSafePageDataUrl(
12713
+ getSafePageDataUrl(
12602
12714
  isPodDesignEditMode ? selectedPodContent?.btnEditIcon : selectedPodContent?.btnIcon
12603
12715
  );
12604
12716
  const managerId = demoRoom?.contact?.manager_hash;
@@ -12668,7 +12780,7 @@ var BookingFormO2O = ({
12668
12780
  "div",
12669
12781
  {
12670
12782
  className: cn(
12671
- "text-[48px] l:text-[32px] pb-[24px] pt-[128px] l:pt-[64px] font-bold",
12783
+ "text-[48px] l:text-[32px] leading-[1.1] pb-[24px] pt-[128px] l:pt-[64px] font-bold",
12672
12784
  className
12673
12785
  ),
12674
12786
  children: dateTimePickerPageData?.scheduleYourVisit
@@ -12723,14 +12835,17 @@ var BookingFormO2O = ({
12723
12835
  isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
12724
12836
  !!selectedPodContent.title && /* @__PURE__ */ jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
12725
12837
  !!selectedPodDescription && /* @__PURE__ */ jsx("p", { className: "mt-[6px] text-[13px] font-medium leading-[1.35] text-[#080A0F] l:text-[12px]", children: selectedPodDescription }),
12726
- !!selectedPodImage && /* @__PURE__ */ jsx(
12727
- "img",
12728
- {
12729
- src: selectedPodImage,
12730
- alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
12731
- className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
12732
- }
12733
- ),
12838
+ !!selectedPodImage && /* @__PURE__ */ jsxs("div", { className: "w-full rounded-[8px] flex mt-4 bg-[#F5F6F7] flex-col items-center justify-center", children: [
12839
+ /* @__PURE__ */ jsx(
12840
+ "img",
12841
+ {
12842
+ src: selectedPodImage,
12843
+ alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
12844
+ className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
12845
+ }
12846
+ ),
12847
+ bookingDesign?.material && /* @__PURE__ */ jsx("div", { className: "mt-4 text-[16px] l:text-[14px] text-[#080A0F] font-bold mb-2", children: bookingDesign?.material })
12848
+ ] }),
12734
12849
  !!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxs(
12735
12850
  "a",
12736
12851
  {
@@ -12742,17 +12857,35 @@ var BookingFormO2O = ({
12742
12857
  },
12743
12858
  rel: "noopener noreferrer",
12744
12859
  className: cn(
12745
- "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]",
12746
- isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50"
12860
+ "mt-[16px] h-[42px] inline-flex items-center border-2 justify-center gap-[6px] rounded-full px-[24px] text-[14px] font-bold transition-colors",
12861
+ isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50",
12862
+ isPodDesignEditMode ? "text-[#080A0F] border-[#080A0F]" : "text-white bg-[#080A0F] border-[#080A0F]"
12747
12863
  ),
12748
12864
  children: [
12749
- selectedPodButtonIcon && /* @__PURE__ */ jsx(
12750
- "img",
12865
+ /* @__PURE__ */ jsxs(
12866
+ "svg",
12751
12867
  {
12752
- src: selectedPodButtonIcon,
12753
- alt: "",
12754
- className: "h-[16px] w-[16px]",
12755
- "aria-hidden": "true"
12868
+ xmlns: "http://www.w3.org/2000/svg",
12869
+ width: "20",
12870
+ height: "20",
12871
+ viewBox: "0 0 20 20",
12872
+ fill: "none",
12873
+ children: [
12874
+ /* @__PURE__ */ jsx(
12875
+ "path",
12876
+ {
12877
+ 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",
12878
+ fill: "currentColor"
12879
+ }
12880
+ ),
12881
+ /* @__PURE__ */ jsx(
12882
+ "path",
12883
+ {
12884
+ 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",
12885
+ fill: "currentColor"
12886
+ }
12887
+ )
12888
+ ]
12756
12889
  }
12757
12890
  ),
12758
12891
  selectedPodButtonText
@@ -12867,7 +13000,7 @@ var BookingSuccessO2O = ({
12867
13000
  text-align: center;
12868
13001
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
12869
13002
  }
12870
- h2 { font-size: 24px; color: #4A4C56; margin: 0; }
13003
+ h2 { font-size: 24px; color: #080A0F; margin: 0; }
12871
13004
  p { font-size: 14px; color: #6B7280; margin: 8px 0 0; }
12872
13005
  img { width: 200px; height: 200px; margin-top: 32px; }
12873
13006
  `;
@@ -13022,7 +13155,29 @@ var BookingSuccessO2O = ({
13022
13155
  return /* @__PURE__ */ jsx("div", { className: `min-h-screen l:py-0 l:px-0 py-12 px-6 ${className || ""}`, children: /* @__PURE__ */ jsxs("div", { className: "mx-auto", children: [
13023
13156
  /* @__PURE__ */ jsx("h1", { className: "text-[48px] xxl:text-[32px] font-bold text-[#080A0F] mb-8 print:hidden", children: pageData.yourAppointment }),
13024
13157
  isCancelled && !isStore && /* @__PURE__ */ 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: [
13025
- /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: pageData.appointmentCanceled }),
13158
+ /* @__PURE__ */ jsxs("p", { className: "text-base flex items-center gap-1 text-[#080A0F]", children: [
13159
+ /* @__PURE__ */ jsxs(
13160
+ "svg",
13161
+ {
13162
+ xmlns: "http://www.w3.org/2000/svg",
13163
+ width: "24",
13164
+ height: "24",
13165
+ viewBox: "0 0 24 24",
13166
+ fill: "none",
13167
+ children: [
13168
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10.5", fill: "#4A4C56" }),
13169
+ /* @__PURE__ */ jsx(
13170
+ "path",
13171
+ {
13172
+ 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",
13173
+ fill: "white"
13174
+ }
13175
+ )
13176
+ ]
13177
+ }
13178
+ ),
13179
+ pageData.appointmentCanceled
13180
+ ] }),
13026
13181
  /* @__PURE__ */ jsxs("div", { className: "flex items-center l:gap-2 gap-4", children: [
13027
13182
  !!pageData.contactUs && /* @__PURE__ */ jsx(
13028
13183
  "a",
@@ -13038,7 +13193,7 @@ var BookingSuccessO2O = ({
13038
13193
  "button",
13039
13194
  {
13040
13195
  onClick: () => onScheduleAgain(bookingData.demoroom_code),
13041
- 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",
13196
+ 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",
13042
13197
  children: pageData.scheduleAgain
13043
13198
  }
13044
13199
  )
@@ -13051,10 +13206,10 @@ var BookingSuccessO2O = ({
13051
13206
  children: [
13052
13207
  /* @__PURE__ */ jsxs("div", { className: "space-y-8 bg-white px-[48px] l:px-[16px] l:py-[16px] py-[32px] rounded-[16px] print:hidden", children: [
13053
13208
  /* @__PURE__ */ jsxs("div", { children: [
13054
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.location }),
13209
+ /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.location }),
13055
13210
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
13056
- bookingData.demoroom_name && /* @__PURE__ */ jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.demoroom_name }),
13057
- bookingData.address && /* @__PURE__ */ jsx("p", { className: "text-base text-gray-600", children: bookingData.address }),
13211
+ bookingData.demoroom_name && /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.demoroom_name }),
13212
+ bookingData.address && /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.address }),
13058
13213
  bookingData.latitude && bookingData.longitude && /* @__PURE__ */ jsx(
13059
13214
  "a",
13060
13215
  {
@@ -13068,26 +13223,26 @@ var BookingSuccessO2O = ({
13068
13223
  ] })
13069
13224
  ] }),
13070
13225
  /* @__PURE__ */ jsxs("div", { children: [
13071
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.dateAndTime }),
13072
- /* @__PURE__ */ jsxs("p", { className: "text-base text-[#4A4C56]", children: [
13226
+ /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.dateAndTime }),
13227
+ /* @__PURE__ */ jsxs("p", { className: "text-base text-[#080A0F]", children: [
13073
13228
  bookingData.booking_date,
13074
13229
  bookingData.time_slot && `, ${bookingData.time_slot}`,
13075
13230
  !bookingData.time_slot && bookingData.booking_time && `, ${bookingData.booking_time}`
13076
13231
  ] })
13077
13232
  ] }),
13078
13233
  bookingData.equipment && /* @__PURE__ */ jsxs("div", { children: [
13079
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.event }),
13080
- /* @__PURE__ */ jsx("p", { className: "text-base text-[#4A4C56]", children: Array.isArray(bookingData.equipment) ? bookingData.equipment.join(", ") : bookingData.equipment })
13234
+ /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.event }),
13235
+ /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: Array.isArray(bookingData.equipment) ? bookingData.equipment.join(", ") : bookingData.equipment })
13081
13236
  ] }),
13082
13237
  /* @__PURE__ */ jsxs("div", { children: [
13083
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.demoRoom }),
13084
- /* @__PURE__ */ jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.demoroom_code })
13238
+ /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.demoRoom }),
13239
+ /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.demoroom_code })
13085
13240
  ] }),
13086
13241
  /* @__PURE__ */ jsxs("div", { children: [
13087
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.visitorInfo }),
13242
+ /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.visitorInfo }),
13088
13243
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
13089
- /* @__PURE__ */ jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.customer_name }),
13090
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-base text-gray-600", children: [
13244
+ /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: bookingData.customer_name }),
13245
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-base text-[#080A0F]", children: [
13091
13246
  /* @__PURE__ */ jsx(
13092
13247
  "svg",
13093
13248
  {
@@ -13112,7 +13267,7 @@ var BookingSuccessO2O = ({
13112
13267
  bookingData.phone_number
13113
13268
  ] }) : /* @__PURE__ */ jsx("span", { children: pageData.noPhoneProvided })
13114
13269
  ] }),
13115
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-base text-gray-600", children: [
13270
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-base text-[#080A0F]", children: [
13116
13271
  /* @__PURE__ */ jsx(
13117
13272
  "svg",
13118
13273
  {
@@ -13136,8 +13291,8 @@ var BookingSuccessO2O = ({
13136
13291
  ] })
13137
13292
  ] }),
13138
13293
  /* @__PURE__ */ jsxs("div", { children: [
13139
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.purposeOfVisit }),
13140
- /* @__PURE__ */ jsx("p", { className: "text-base text-[#4A4C56]", children: pageData?.purposeNote?.[bookingData?.business_type || ""] }),
13294
+ /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] mb-3", children: pageData.purposeOfVisit }),
13295
+ /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: pageData?.purposeNote?.[bookingData?.business_type || ""] }),
13141
13296
  !!bookingDesign && /* @__PURE__ */ 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: [
13142
13297
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
13143
13298
  /* @__PURE__ */ jsxs("h3", { className: "text-base font-medium text-[#080A0F]", children: [
@@ -13146,7 +13301,7 @@ var BookingSuccessO2O = ({
13146
13301
  " ",
13147
13302
  podDesignName
13148
13303
  ] }),
13149
- bookingData?.print_status && pageData.podData?.status?.[bookingData.print_status] && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-[#4A4C56]", children: pageData.podData.status[bookingData.print_status] })
13304
+ bookingData?.print_status && pageData.podData?.status?.[bookingData.print_status] && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-[#080A0F]", children: pageData.podData.status[bookingData.print_status] })
13150
13305
  ] }),
13151
13306
  podDesignImage && /* @__PURE__ */ jsx(
13152
13307
  Image,
@@ -13160,7 +13315,7 @@ var BookingSuccessO2O = ({
13160
13315
  ] })
13161
13316
  ] }),
13162
13317
  bookingData.business_type === "pod" && !isStore && !isCancelled && /* @__PURE__ */ 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: [
13163
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] text-center", children: pageData.podData?.QRCodeTitle }),
13318
+ /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#080A0F] text-center", children: pageData.podData?.QRCodeTitle }),
13164
13319
  /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500 text-center mt-2", children: pageData.podData?.QRCodeSubTitle }),
13165
13320
  /* @__PURE__ */ jsx(
13166
13321
  "div",
@@ -13181,7 +13336,7 @@ var BookingSuccessO2O = ({
13181
13336
  "button",
13182
13337
  {
13183
13338
  onClick: () => onAddToWallet?.(bookingData),
13184
- 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",
13339
+ 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",
13185
13340
  children: pageData.podData?.btnToWallet
13186
13341
  }
13187
13342
  ),
@@ -13189,7 +13344,7 @@ var BookingSuccessO2O = ({
13189
13344
  "button",
13190
13345
  {
13191
13346
  onClick: handlePrintQRCode,
13192
- 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",
13347
+ 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",
13193
13348
  children: pageData.podData?.btnToPrint
13194
13349
  }
13195
13350
  )
@@ -13198,8 +13353,8 @@ var BookingSuccessO2O = ({
13198
13353
  ]
13199
13354
  }
13200
13355
  ),
13201
- isPending && !isCancelled && !isStore && /* @__PURE__ */ jsxs("div", { className: "mt-[64px] pb-4 print:hidden", children: [
13202
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxs("div", { className: "flex md:w-full gap-4 md:flex-col md:items-center md:justify-center", children: [
13356
+ isPending && !isCancelled && !isStore && /* @__PURE__ */ jsxs("div", { className: "mt-[64px] l:mt-[32px] pb-4 print:hidden", children: [
13357
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxs("div", { className: "flex md:w-full gap-4", children: [
13203
13358
  onEditBooking && token && /* @__PURE__ */ jsx(
13204
13359
  "button",
13205
13360
  {
@@ -13208,7 +13363,7 @@ var BookingSuccessO2O = ({
13208
13363
  bookingData.demoroom_code,
13209
13364
  bookingData.business_type
13210
13365
  ),
13211
- 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",
13366
+ 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",
13212
13367
  children: pageData.editAppointment
13213
13368
  }
13214
13369
  ),
@@ -13217,56 +13372,56 @@ var BookingSuccessO2O = ({
13217
13372
  {
13218
13373
  onClick: () => setShowCancelDialog(true),
13219
13374
  disabled: cancelLoading,
13220
- 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",
13375
+ 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",
13221
13376
  children: pageData.cancelAppointment
13222
13377
  }
13223
13378
  )
13224
13379
  ] }) }),
13225
13380
  cancelError && /* @__PURE__ */ jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: cancelError })
13226
13381
  ] }),
13227
- isStore && bookingData?.print_status === "completed" && /* @__PURE__ */ jsxs("div", { className: "mt-[64px] pb-4 print:hidden", children: [
13382
+ isStore && bookingData?.print_status === "completed" && /* @__PURE__ */ jsxs("div", { className: "mt-[64px] l:mt-[32px] pb-4 print:hidden", children: [
13228
13383
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx(
13229
13384
  "button",
13230
13385
  {
13231
13386
  onClick: handleCheckin,
13232
13387
  disabled: checkinLoading,
13233
- 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",
13388
+ 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",
13234
13389
  children: pageData.changeStatusButton || "Change Pickup Status"
13235
13390
  }
13236
13391
  ) }),
13237
13392
  checkinError && /* @__PURE__ */ jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: checkinError })
13238
13393
  ] }),
13239
- showCancelDialog && /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 px-4 print:hidden", children: /* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[24px] max-w-[600px] p-8 shadow-xl relative", children: [
13394
+ showCancelDialog && /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 px-4 print:hidden", children: /* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[24px] l:rounded-[16px] max-w-[600px] md:w-[90vw] p-4 shadow-xl relative", children: [
13240
13395
  /* @__PURE__ */ jsx(
13241
13396
  "button",
13242
13397
  {
13243
13398
  onClick: () => setShowCancelDialog(false),
13244
13399
  disabled: cancelLoading,
13245
- 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",
13400
+ 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",
13246
13401
  "aria-label": "Close",
13247
- children: /* @__PURE__ */ jsx(
13402
+ children: /* @__PURE__ */ jsxs(
13248
13403
  "svg",
13249
13404
  {
13405
+ xmlns: "http://www.w3.org/2000/svg",
13250
13406
  width: "24",
13251
13407
  height: "24",
13252
13408
  viewBox: "0 0 24 24",
13253
13409
  fill: "none",
13254
- xmlns: "http://www.w3.org/2000/svg",
13255
- children: /* @__PURE__ */ jsx(
13256
- "path",
13257
- {
13258
- d: "M18 6L6 18M6 6L18 18",
13259
- stroke: "currentColor",
13260
- strokeWidth: "2",
13261
- strokeLinecap: "round",
13262
- strokeLinejoin: "round"
13263
- }
13264
- )
13410
+ children: [
13411
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#clip0_609_103733)", children: /* @__PURE__ */ jsx(
13412
+ "path",
13413
+ {
13414
+ 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",
13415
+ fill: "#080A0F"
13416
+ }
13417
+ ) }),
13418
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_609_103733", children: /* @__PURE__ */ jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
13419
+ ]
13265
13420
  }
13266
13421
  )
13267
13422
  }
13268
13423
  ),
13269
- /* @__PURE__ */ jsx("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ jsx("div", { className: "w-16 h-16 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxs(
13424
+ /* @__PURE__ */ jsx("div", { className: "flex justify-center mt-12 mb-6", children: /* @__PURE__ */ jsx("div", { className: "w-[24px] h-[24px] rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxs(
13270
13425
  "svg",
13271
13426
  {
13272
13427
  xmlns: "http://www.w3.org/2000/svg",
@@ -13286,9 +13441,9 @@ var BookingSuccessO2O = ({
13286
13441
  ]
13287
13442
  }
13288
13443
  ) }) }),
13289
- /* @__PURE__ */ jsxs("div", { className: "text-center mb-8", children: [
13290
- /* @__PURE__ */ jsx("h3", { className: "text-[18px] text-[#4A4C56] mb-2", children: pageData.cancelDialog?.title }),
13291
- /* @__PURE__ */ jsx("p", { className: "text-[14px] text-gray-600", children: pageData.cancelDialog?.description })
13444
+ /* @__PURE__ */ jsxs("div", { className: "text-center max-w-[80%] mb-8 mx-auto", children: [
13445
+ /* @__PURE__ */ jsx("h3", { className: "text-[16px] leading-[1.4] text-[#333] mb-2", children: pageData.cancelDialog?.title }),
13446
+ pageData.cancelDialog?.description && /* @__PURE__ */ jsx("p", { className: "text-[14px] leading-[1.4] text-[#333]", children: pageData.cancelDialog?.description })
13292
13447
  ] }),
13293
13448
  /* @__PURE__ */ jsxs("div", { className: "flex gap-3 justify-center", children: [
13294
13449
  /* @__PURE__ */ jsx(
@@ -13296,7 +13451,7 @@ var BookingSuccessO2O = ({
13296
13451
  {
13297
13452
  onClick: () => setShowCancelDialog(false),
13298
13453
  disabled: cancelLoading,
13299
- 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]",
13454
+ 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",
13300
13455
  children: pageData.cancelDialog?.backButton
13301
13456
  }
13302
13457
  ),
@@ -13305,7 +13460,7 @@ var BookingSuccessO2O = ({
13305
13460
  {
13306
13461
  onClick: handleCancelAppointment,
13307
13462
  disabled: cancelLoading,
13308
- 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",
13463
+ 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",
13309
13464
  children: cancelLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
13310
13465
  /* @__PURE__ */ jsxs(
13311
13466
  "svg",