@anker-in/ui 0.3.6 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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
  * 取消预约(支持多语言邮件通知)
@@ -1824,7 +1844,7 @@ var Title2 = ({
1824
1844
  title = "",
1825
1845
  ...props
1826
1846
  }) => {
1827
- return /* @__PURE__ */ jsx("div", { className: cn("w-full"), ...props, children: /* @__PURE__ */ jsx("h2", { className: "text-[32px] min-l:text-[48px] font-bold mb-12 text-[#080A0F]", children: title }) });
1847
+ return /* @__PURE__ */ jsx("div", { className: cn("w-full"), ...props, children: /* @__PURE__ */ jsx("h2", { className: "text-[32px] min-l:text-[48px] font-bold mb-6 text-[#080A0F]", children: title }) });
1828
1848
  };
1829
1849
  Title2.displayName = "Title";
1830
1850
  var StudioCard2 = ({
@@ -2424,9 +2444,6 @@ function groupByAlphabet2(items) {
2424
2444
  items: items2.sort((a, b) => a.name.localeCompare(b.name))
2425
2445
  }));
2426
2446
  }
2427
-
2428
- // src/components/DemoRoomO2O/components/RoomsList.module.css
2429
- var RoomsList_default2 = {};
2430
2447
  var LocationFilter2 = ({
2431
2448
  locations,
2432
2449
  onSelect,
@@ -2567,8 +2584,7 @@ var LocationFilter2 = ({
2567
2584
  {
2568
2585
  style: { height: "724px" },
2569
2586
  className: cn(
2570
- "w-full rounded-b-[12px] absolute z-40 bottom-[-2px] left-0 bg-white border border-[#E4E5E6]",
2571
- RoomsList_default2.antdMobileScope
2587
+ "w-full rounded-b-[12px] absolute z-40 bottom-[-2px] left-0 bg-white border border-[#E4E5E6]"
2572
2588
  ),
2573
2589
  children: [
2574
2590
  /* @__PURE__ */ jsx(
@@ -2670,6 +2686,60 @@ var LocationFilter2 = ({
2670
2686
  LocationFilter2.displayName = "LocationFilter";
2671
2687
  dayjs4.extend(utc);
2672
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
+ }
2673
2743
  var isAllOption = (option) => {
2674
2744
  const normalizedType = option.type.trim().toLowerCase();
2675
2745
  return normalizedType === "" || normalizedType.startsWith("all ");
@@ -2870,6 +2940,7 @@ var RoomsList2 = ({
2870
2940
  googleMapsApiKey,
2871
2941
  className,
2872
2942
  apiClient,
2943
+ locale,
2873
2944
  teamCode,
2874
2945
  brandWebsite,
2875
2946
  onSchedule,
@@ -2987,13 +3058,11 @@ var RoomsList2 = ({
2987
3058
  let formattedTime = mergedPageData.noAvailableTime;
2988
3059
  if (nextAvailableTimeslot) {
2989
3060
  try {
2990
- const timeInZone = dayjs4(nextAvailableTimeslot.start_time).tz(
2991
- room.timezone || "America/Los_Angeles"
3061
+ formattedTime = formatAvailableTime(
3062
+ nextAvailableTimeslot.start_time,
3063
+ room.timezone || "America/Los_Angeles",
3064
+ locale
2992
3065
  );
2993
- const month = timeInZone.format("MMM");
2994
- const day = timeInZone.format("D");
2995
- const time = timeInZone.format("h:mm A");
2996
- formattedTime = `${month}.${day}, ${time}`;
2997
3066
  } catch (error2) {
2998
3067
  formattedTime = nextAvailableTimeslot.start_time;
2999
3068
  }
@@ -3015,7 +3084,12 @@ var RoomsList2 = ({
3015
3084
  storeType: room.store_type || room.storeType || ""
3016
3085
  };
3017
3086
  });
3018
- }, [demoRooms, mergedPageData.defaultCountry, mergedPageData.noAvailableTime]);
3087
+ }, [
3088
+ demoRooms,
3089
+ mergedPageData.defaultCountry,
3090
+ mergedPageData.noAvailableTime,
3091
+ locale
3092
+ ]);
3019
3093
  const filteredStudioLocations = useMemo(() => {
3020
3094
  return studioLocations.filter((location) => {
3021
3095
  if (selectedPurposeType) {
@@ -3045,13 +3119,6 @@ var RoomsList2 = ({
3045
3119
  selectedPurposeType,
3046
3120
  selectedStoreType
3047
3121
  ]);
3048
- const getSelectedLocationName = () => {
3049
- if (!selectedLocation) return mergedPageData.locationFilter.allLocations;
3050
- if (selectedLocation.city) return selectedLocation.city;
3051
- if (selectedLocation.state) return selectedLocation.state;
3052
- if (selectedLocation.country) return selectedLocation.country;
3053
- return mergedPageData.locationFilter.allLocations;
3054
- };
3055
3122
  const handleLocationSelect = (selection) => {
3056
3123
  setSelectedLocation(selection);
3057
3124
  setShowLocationFilter(false);
@@ -3130,27 +3197,8 @@ var RoomsList2 = ({
3130
3197
  style: { height: "794px" },
3131
3198
  children: [
3132
3199
  /* @__PURE__ */ jsxs("div", { className: "relative z-20 mb-5", children: [
3133
- /* @__PURE__ */ jsxs(
3134
- "button",
3135
- {
3136
- type: "button",
3137
- "aria-haspopup": "dialog",
3138
- "aria-expanded": showLocationFilter,
3139
- className: cn(
3140
- "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]",
3141
- showLocationFilter ? "rounded-t-[12px] rounded-b-none border-[#080A0F]" : "rounded-[12px] border-[#E4E5E6]"
3142
- ),
3143
- onClick: () => {
3144
- setOpenFilterDropdown(null);
3145
- setShowLocationFilter(!showLocationFilter);
3146
- },
3147
- children: [
3148
- /* @__PURE__ */ jsx("span", { className: "truncate pr-2", children: getSelectedLocationName() }),
3149
- /* @__PURE__ */ jsx("span", { className: "flex-none text-[#080A0F]", children: /* @__PURE__ */ jsx(ChevronIcon, { open: showLocationFilter }) })
3150
- ]
3151
- }
3152
- ),
3153
- /* @__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: [
3154
3202
  renderFilterDropdown(
3155
3203
  "purpose",
3156
3204
  purposeOptions,
@@ -3174,8 +3222,8 @@ var RoomsList2 = ({
3174
3222
  /* @__PURE__ */ jsx(
3175
3223
  "div",
3176
3224
  {
3177
- style: { maxHeight: "626px", overflow: "auto" },
3178
- 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]",
3179
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) => {
3180
3228
  return /* @__PURE__ */ jsx(
3181
3229
  StudioCard2,
@@ -3258,6 +3306,7 @@ var DemoRoomO2O = ({
3258
3306
  className: layoutClassName,
3259
3307
  googleMapsApiKey,
3260
3308
  apiClient,
3309
+ locale: apiConfig.locale,
3261
3310
  teamCode,
3262
3311
  brandWebsite,
3263
3312
  onSchedule,
@@ -10843,9 +10892,27 @@ var BookingSuccess = ({
10843
10892
  ] }) })
10844
10893
  ] }) });
10845
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
+ };
10846
10912
  var QuestionnaireForm2 = ({
10847
10913
  questions,
10848
10914
  onSubmit,
10915
+ onCancel,
10849
10916
  pageData,
10850
10917
  selectedTimeslotId,
10851
10918
  loading = false,
@@ -10853,24 +10920,28 @@ var QuestionnaireForm2 = ({
10853
10920
  error,
10854
10921
  initialResponses
10855
10922
  }) => {
10923
+ const normalizedInitialResponses = useMemo(
10924
+ () => normalizeInitialResponses(questions, initialResponses),
10925
+ [questions, initialResponses]
10926
+ );
10856
10927
  const [responses, setResponses] = useState(
10857
- () => initialResponses || {}
10928
+ () => normalizedInitialResponses
10858
10929
  );
10859
10930
  const [errors, setErrors] = useState({});
10860
10931
  const [agreements, setAgreements] = useState({});
10861
10932
  const [agreementError, setAgreementError] = useState("");
10862
10933
  const [phoneCountryCodes, setPhoneCountryCodes] = useState(() => {
10863
- const code = initialResponses?.["phone_code"] || initialResponses?.["customer_phone_code"];
10934
+ const code = normalizedInitialResponses?.["phone_code"] || normalizedInitialResponses?.["customer_phone_code"];
10864
10935
  if (!code) return {};
10865
10936
  return { phone: code, customer_phone_number: code };
10866
10937
  });
10867
10938
  const [otherInputs, setOtherInputs] = useState(() => {
10868
- if (!initialResponses) return {};
10939
+ if (!normalizedInitialResponses) return {};
10869
10940
  const seeded = {};
10870
10941
  questions.forEach((q) => {
10871
10942
  if (q.type !== "radio_with_other") return;
10872
10943
  const qId = q.key || q.id || "";
10873
- const val = initialResponses[qId];
10944
+ const val = normalizedInitialResponses[qId];
10874
10945
  if (val && !q.options?.some((opt) => (opt.value || opt.label) === val)) {
10875
10946
  seeded[qId] = val;
10876
10947
  }
@@ -10878,10 +10949,10 @@ var QuestionnaireForm2 = ({
10878
10949
  return seeded;
10879
10950
  });
10880
10951
  const prevHasBookedBeforeRef = useRef(
10881
- initialResponses?.["has_booked_before"] === "option2"
10952
+ normalizedInitialResponses?.["has_booked_before"] === "option2"
10882
10953
  );
10883
10954
  const hasBookedBeforeInitialized = useRef(
10884
- !!initialResponses?.["has_booked_before"]
10955
+ !!normalizedInitialResponses?.["has_booked_before"]
10885
10956
  );
10886
10957
  const hasBookedBeforeQuestion = questions.find(
10887
10958
  (q) => (q.key || q.id) === "has_booked_before"
@@ -10968,12 +11039,17 @@ var QuestionnaireForm2 = ({
10968
11039
  };
10969
11040
  const handleEmailBlur = (questionId, value) => {
10970
11041
  if (!value) return;
10971
- const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
10972
- if (!emailRegex.test(value)) {
11042
+ if (!EMAIL_REGEX.test(value)) {
10973
11043
  setErrors((prev) => ({
10974
11044
  ...prev,
10975
11045
  [questionId]: pageData?.emailValidError || "Please enter a valid email address"
10976
11046
  }));
11047
+ } else {
11048
+ setErrors((prev) => {
11049
+ const newErrors = { ...prev };
11050
+ delete newErrors[questionId];
11051
+ return newErrors;
11052
+ });
10977
11053
  }
10978
11054
  };
10979
11055
  const handleCountryCodeChange = (questionId, code) => {
@@ -11006,13 +11082,18 @@ var QuestionnaireForm2 = ({
11006
11082
  const validateForm = () => {
11007
11083
  const newErrors = {};
11008
11084
  visibleQuestions.forEach((question) => {
11085
+ const questionId = getQuestionId(question);
11086
+ const value = responses[questionId];
11009
11087
  if (question.required) {
11010
- const questionId = getQuestionId(question);
11011
- const value = responses[questionId];
11012
11088
  if (!value || Array.isArray(value) && value.length === 0) {
11013
11089
  newErrors[questionId] = pageData?.fieldRuquired || "This field is required";
11014
11090
  }
11015
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
+ }
11016
11097
  });
11017
11098
  const agrees = pageData?.agrees || [];
11018
11099
  if (agrees.length > 0) {
@@ -11077,7 +11158,7 @@ var QuestionnaireForm2 = ({
11077
11158
  onChange: (e) => handleChange(questionId, e.target.value),
11078
11159
  placeholder: question.placeholder,
11079
11160
  className: cn(
11080
- "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]",
11081
11162
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11082
11163
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11083
11164
  )
@@ -11093,7 +11174,7 @@ var QuestionnaireForm2 = ({
11093
11174
  onBlur: (e) => handleEmailBlur(questionId, e.target.value),
11094
11175
  placeholder: question.placeholder,
11095
11176
  className: cn(
11096
- "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]",
11097
11178
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11098
11179
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11099
11180
  )
@@ -11112,7 +11193,7 @@ var QuestionnaireForm2 = ({
11112
11193
  "appearance-none pl-3 pr-8 py-3 rounded-lg border text-base",
11113
11194
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11114
11195
  "bg-white cursor-pointer w-[80px]",
11115
- "dark:bg-white dark:text-gray-900",
11196
+ "dark:bg-white dark:text-[#080A0F]",
11116
11197
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11117
11198
  ),
11118
11199
  children: countryCodes.map((item) => /* @__PURE__ */ jsx("option", { value: item.code, children: item.code }, item.code))
@@ -11147,7 +11228,7 @@ var QuestionnaireForm2 = ({
11147
11228
  onChange: (e) => handleChange(questionId, e.target.value),
11148
11229
  placeholder: question.placeholder,
11149
11230
  className: cn(
11150
- "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]",
11151
11232
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11152
11233
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11153
11234
  )
@@ -11165,7 +11246,7 @@ var QuestionnaireForm2 = ({
11165
11246
  className: cn(
11166
11247
  "w-full px-4 py-3 rounded-lg border text-base resize-none bg-white",
11167
11248
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11168
- "dark:bg-white dark:text-gray-900",
11249
+ "dark:bg-white dark:text-[#080A0F]",
11169
11250
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11170
11251
  )
11171
11252
  }
@@ -11193,7 +11274,7 @@ var QuestionnaireForm2 = ({
11193
11274
  }
11194
11275
  }
11195
11276
  ),
11196
- /* @__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 })
11197
11278
  ]
11198
11279
  },
11199
11280
  option.value || option.label
@@ -11234,7 +11315,7 @@ var QuestionnaireForm2 = ({
11234
11315
  }
11235
11316
  }
11236
11317
  ),
11237
- /* @__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 })
11238
11319
  ] }),
11239
11320
  isOtherOption && isOtherSelected && /* @__PURE__ */ jsx(
11240
11321
  "input",
@@ -11244,7 +11325,7 @@ var QuestionnaireForm2 = ({
11244
11325
  onChange: (e) => handleOtherInputChange(questionId, e.target.value),
11245
11326
  placeholder: question.placeholder || "Please specify...",
11246
11327
  className: cn(
11247
- "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]",
11248
11329
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11249
11330
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11250
11331
  )
@@ -11274,13 +11355,13 @@ var QuestionnaireForm2 = ({
11274
11355
  optionValue,
11275
11356
  e.target.checked
11276
11357
  ),
11277
- className: "w-5 h-5 text-[#3ADB67] focus:ring-[#3ADB67] focus:ring-2 rounded",
11358
+ className: "w-4 h-4 text-[#fff] rounded",
11278
11359
  style: {
11279
- accentColor: "#3ADB67"
11360
+ accentColor: "#080A0F"
11280
11361
  }
11281
11362
  }
11282
11363
  ),
11283
- /* @__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 })
11284
11365
  ]
11285
11366
  },
11286
11367
  optionValue
@@ -11299,7 +11380,7 @@ var QuestionnaireForm2 = ({
11299
11380
  value: defaultValue,
11300
11381
  onChange: (e) => handleChange(questionId, e.target.value),
11301
11382
  className: cn(
11302
- "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]",
11303
11384
  "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11304
11385
  "cursor-pointer",
11305
11386
  hasError ? "border-red-500" : "border-[#E4E5E6]"
@@ -11320,7 +11401,7 @@ var QuestionnaireForm2 = ({
11320
11401
  }
11321
11402
  };
11322
11403
  return /* @__PURE__ */ jsxs("div", { className: "pb-[80px] light", children: [
11323
- visibleQuestions && visibleQuestions.length > 0 && /* @__PURE__ */ jsx("div", { className: "bg-white rounded-[12px] border border-[#E4E5E6] p-8 dark:bg-white dark:border-[#E4E5E6] l:p-4", children: /* @__PURE__ */ jsx("form", { onSubmit: handleSubmit, className: cn("space-y-6", className), children: visibleQuestions.map((question) => {
11404
+ visibleQuestions && visibleQuestions.length > 0 && /* @__PURE__ */ jsx("div", { className: "bg-white rounded-[12px] p-8 dark:bg-white l:p-4", children: /* @__PURE__ */ jsx("form", { onSubmit: handleSubmit, className: cn("space-y-6", className), children: visibleQuestions.map((question) => {
11324
11405
  const questionId = getQuestionId(question);
11325
11406
  const hasError = !!errors[questionId];
11326
11407
  return /* @__PURE__ */ jsxs(
@@ -11330,7 +11411,7 @@ var QuestionnaireForm2 = ({
11330
11411
  "data-has-error": hasError ? "true" : "false",
11331
11412
  children: [
11332
11413
  /* @__PURE__ */ jsxs("label", { className: "block", children: [
11333
- /* @__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: [
11334
11415
  question.label,
11335
11416
  question.required && /* @__PURE__ */ jsx("span", { className: "text-red-500 ml-1", children: "*" })
11336
11417
  ] }),
@@ -11352,7 +11433,7 @@ var QuestionnaireForm2 = ({
11352
11433
  questionId
11353
11434
  );
11354
11435
  }) }) }),
11355
- !!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: [
11356
11437
  pageData?.agrees && pageData.agrees.length > 0 && /* @__PURE__ */ jsxs(
11357
11438
  "div",
11358
11439
  {
@@ -11367,9 +11448,9 @@ var QuestionnaireForm2 = ({
11367
11448
  id: `agreement-${index}`,
11368
11449
  checked: agreements[index] || false,
11369
11450
  onChange: (e) => handleAgreementChange(index, e.target.checked),
11370
- 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",
11371
11452
  style: {
11372
- accentColor: "#3ADB67"
11453
+ accentColor: "#080A0F"
11373
11454
  }
11374
11455
  }
11375
11456
  ),
@@ -11394,22 +11475,40 @@ var QuestionnaireForm2 = ({
11394
11475
  ]
11395
11476
  }
11396
11477
  ),
11397
- /* @__PURE__ */ jsx(
11398
- "button",
11399
- {
11400
- type: "submit",
11401
- disabled: loading,
11402
- onClick: handleSubmit,
11403
- className: cn(
11404
- "w-fit mt-6 px-6 py-4 rounded-full",
11405
- "bg-[#080A0F] text-white font-bold text-base",
11406
- "hover:bg-[#2FC257] transition-colors",
11407
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:ring-offset-2",
11408
- "disabled:opacity-50 disabled:cursor-not-allowed"
11409
- ),
11410
- children: loading ? pageData?.submitting || "Submitting..." : pageData?.submit || "Submit Booking"
11411
- }
11412
- ),
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
+ ] }),
11413
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 }) })
11414
11513
  ] })
11415
11514
  ] });
@@ -11669,7 +11768,7 @@ var DateTimePicker2 = ({
11669
11768
  borderRadius: 16
11670
11769
  };
11671
11770
  return /* @__PURE__ */ jsxs("div", { children: [
11672
- /* @__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: [
11673
11772
  /* @__PURE__ */ jsx(
11674
11773
  ConfigProvider,
11675
11774
  {
@@ -11689,13 +11788,23 @@ var DateTimePicker2 = ({
11689
11788
  "div",
11690
11789
  {
11691
11790
  style: wrapperStyle,
11692
- 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",
11693
11792
  children: [
11694
11793
  /* @__PURE__ */ jsx("style", { children: `
11695
11794
  .calendar-custom-cell {
11696
11795
  border-radius: 16px !important;
11697
11796
  overflow: hidden;
11698
- padding: 0 24px 16px 24px !important;
11797
+ padding: 0 24px 24px 24px !important;
11798
+ }
11799
+ @media (max-width: 1023px) {
11800
+ .calendar-custom-cell {
11801
+ border-radius: 16px !important;
11802
+ overflow: hidden;
11803
+ padding: 0 16px 16px 16px !important;
11804
+ }
11805
+ }
11806
+ .ant-picker-body{
11807
+ padding-bottom: 0px !important;
11699
11808
  }
11700
11809
  .calendar-custom-cell,
11701
11810
  .calendar-custom-cell *,
@@ -11707,7 +11816,7 @@ var DateTimePicker2 = ({
11707
11816
  font-family: 'MontForAnker' !important;
11708
11817
  }
11709
11818
  .calendar-custom-cell .ant-picker-cell {
11710
- padding: 6px !important;
11819
+ padding: 6px 0 !important;
11711
11820
  text-align: center !important;
11712
11821
  }
11713
11822
  .calendar-custom-cell .ant-picker-cell .ant-picker-cell-inner {
@@ -11854,7 +11963,7 @@ var DateTimePicker2 = ({
11854
11963
  label,
11855
11964
  value: index
11856
11965
  }));
11857
- 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: [
11858
11967
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
11859
11968
  /* @__PURE__ */ jsx(
11860
11969
  Select,
@@ -11866,7 +11975,7 @@ var DateTimePicker2 = ({
11866
11975
  onChange(now2);
11867
11976
  },
11868
11977
  variant: "borderless",
11869
- className: "text-[32px] l:text-[20px] font-bold",
11978
+ className: "text-[32px] l:text-[20px] !p-0 font-bold",
11870
11979
  popupMatchSelectWidth: false,
11871
11980
  suffixIcon: null,
11872
11981
  style: {
@@ -11965,9 +12074,9 @@ var DateTimePicker2 = ({
11965
12074
  )
11966
12075
  }
11967
12076
  ),
11968
- /* @__PURE__ */ jsxs("div", { className: "bg-white p-[24px] rounded-[16px] flex-1", children: [
12077
+ /* @__PURE__ */ jsxs("div", { className: "bg-white p-[24px] l:p-[16px] rounded-[16px] flex-1", children: [
11969
12078
  /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
11970
- /* @__PURE__ */ jsx("div", { className: "text-[24px] l:text-[16px]", children: pageData?.timeSlot }),
12079
+ /* @__PURE__ */ jsx("div", { className: "text-[24px] l:text-[14px]", children: pageData?.timeSlot }),
11971
12080
  /* @__PURE__ */ jsxs("div", { className: "flex text-[18px] l:text-[14px] l:gap-1 gap-2", children: [
11972
12081
  /* @__PURE__ */ jsx(
11973
12082
  "button",
@@ -12050,7 +12159,7 @@ var DateTimePicker2 = ({
12050
12159
  }
12051
12160
  },
12052
12161
  className: `
12053
- rounded-[20px] w-full text-[18px] l:gap-2 l:text-[16px] flex items-center justify-center gap-4 h-[76px]
12162
+ rounded-[8px] w-full text-[18px] l:gap-2 l:text-[16px] flex items-center justify-center gap-4 h-[76px]
12054
12163
  border text-center transition-colors
12055
12164
  ${isSelected ? "border-[#3ADB67] bg-[#3ADB67] cursor-pointer" : isAvailable ? "border-[#E4E5E6] hover:border-[#3ADB67] hover:bg-[#3ADB67] cursor-pointer" : "border-[#E4E5E6] bg-[#F5F5F5] text-[#767880] cursor-not-allowed"}
12056
12165
  `,
@@ -12070,7 +12179,7 @@ var DateTimePicker2 = ({
12070
12179
  "div",
12071
12180
  {
12072
12181
  className: cn(
12073
- "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"
12074
12183
  ),
12075
12184
  children: pageData?.fillOutForm
12076
12185
  }
@@ -12084,6 +12193,9 @@ var DateTimePicker2 = ({
12084
12193
  selectedTimeslotId,
12085
12194
  error: bookingError || editError,
12086
12195
  initialResponses,
12196
+ onCancel: () => {
12197
+ onBookingSuccess?.(token || "");
12198
+ },
12087
12199
  onSubmit: async (responses) => {
12088
12200
  if (onQuestionnaireSubmit) {
12089
12201
  await onQuestionnaireSubmit(responses);
@@ -12217,7 +12329,7 @@ var DemoRoomDetail2 = ({
12217
12329
  ),
12218
12330
  children: [
12219
12331
  /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
12220
- /* @__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 }),
12221
12333
  /* @__PURE__ */ jsx("div", { className: "mt-[20px]", children: descriptions?.map((desc, index) => /* @__PURE__ */ jsx(
12222
12334
  "p",
12223
12335
  {
@@ -12260,7 +12372,7 @@ var DemoRoomDetail2 = ({
12260
12372
  ]
12261
12373
  }
12262
12374
  ),
12263
- /* @__PURE__ */ jsx("span", { className: "text-base text-gray-900", children: devices })
12375
+ /* @__PURE__ */ jsx("span", { className: "text-base text-[#080A0F]", children: devices })
12264
12376
  ] }),
12265
12377
  /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
12266
12378
  /* @__PURE__ */ jsxs(
@@ -12297,7 +12409,7 @@ var DemoRoomDetail2 = ({
12297
12409
  }
12298
12410
  ),
12299
12411
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
12300
- /* @__PURE__ */ jsx("p", { className: "text-base text-gray-900", children: address }),
12412
+ /* @__PURE__ */ jsx("p", { className: "text-base text-[#080A0F]", children: address }),
12301
12413
  /* @__PURE__ */ jsxs(
12302
12414
  "a",
12303
12415
  {
@@ -12553,11 +12665,15 @@ var BookingFormO2O = ({
12553
12665
  const [isPurposeConfirmed, setIsPurposeConfirmed] = useState(
12554
12666
  () => !!initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)
12555
12667
  );
12668
+ const podDesignId = useMemo(() => getQueryParam("design_id"), []);
12556
12669
  useEffect(() => {
12557
12670
  setSelectedPurposeType((currentType) => {
12558
12671
  if (purposeOptions.some((item) => item.type === currentType)) {
12559
12672
  return currentType;
12560
12673
  }
12674
+ if (podDesignId) {
12675
+ return "pod";
12676
+ }
12561
12677
  if (initialBusinessType && purposeOptions.some((item) => item.type === initialBusinessType)) {
12562
12678
  return initialBusinessType;
12563
12679
  }
@@ -12570,14 +12686,13 @@ var BookingFormO2O = ({
12570
12686
  if (resolvedFromExplicitSource || purposeOptions.length > 0) {
12571
12687
  setIsPurposeConfirmed(true);
12572
12688
  }
12573
- }, [purposeOptions, initialBusinessType, booking?.business_type]);
12689
+ }, [purposeOptions, initialBusinessType, booking?.business_type, podDesignId]);
12574
12690
  const selectedPurpose = useMemo(() => {
12575
12691
  return purposeOptions.find((item) => item.type === selectedPurposeType) || {};
12576
12692
  }, [purposeOptions, selectedPurposeType]);
12577
12693
  const isPodSelected = isPurposeConfirmed && selectedPurpose?.type === "pod";
12578
12694
  const selectedPodContent = isPodSelected ? selectedPurpose?.podContent : void 0;
12579
12695
  const selectedPodDescription = getPodContentDescription(selectedPodContent);
12580
- const podDesignId = useMemo(() => getQueryParam("design_id"), []);
12581
12696
  const isPodDesignEditMode = !!podDesignId || !!booking?.design_project_id;
12582
12697
  const storeManagerIdFromUrl = useMemo(
12583
12698
  () => getQueryParam("store_manager_id"),
@@ -12595,7 +12710,7 @@ var BookingFormO2O = ({
12595
12710
  const selectedPodImage = getSafePageDataUrl(
12596
12711
  isPodDesignEditMode && bookingDesign?.thumb_url || getPodContentImage(selectedPodContent)
12597
12712
  );
12598
- const selectedPodButtonIcon = getSafePageDataUrl(
12713
+ getSafePageDataUrl(
12599
12714
  isPodDesignEditMode ? selectedPodContent?.btnEditIcon : selectedPodContent?.btnIcon
12600
12715
  );
12601
12716
  const managerId = demoRoom?.contact?.manager_hash;
@@ -12665,7 +12780,7 @@ var BookingFormO2O = ({
12665
12780
  "div",
12666
12781
  {
12667
12782
  className: cn(
12668
- "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",
12669
12784
  className
12670
12785
  ),
12671
12786
  children: dateTimePickerPageData?.scheduleYourVisit
@@ -12720,14 +12835,17 @@ var BookingFormO2O = ({
12720
12835
  isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
12721
12836
  !!selectedPodContent.title && /* @__PURE__ */ jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
12722
12837
  !!selectedPodDescription && /* @__PURE__ */ jsx("p", { className: "mt-[6px] text-[13px] font-medium leading-[1.35] text-[#080A0F] l:text-[12px]", children: selectedPodDescription }),
12723
- !!selectedPodImage && /* @__PURE__ */ jsx(
12724
- "img",
12725
- {
12726
- src: selectedPodImage,
12727
- alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
12728
- className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
12729
- }
12730
- ),
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
+ ] }),
12731
12849
  !!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxs(
12732
12850
  "a",
12733
12851
  {
@@ -12739,17 +12857,35 @@ var BookingFormO2O = ({
12739
12857
  },
12740
12858
  rel: "noopener noreferrer",
12741
12859
  className: cn(
12742
- "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]",
12743
- 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]"
12744
12863
  ),
12745
12864
  children: [
12746
- selectedPodButtonIcon && /* @__PURE__ */ jsx(
12747
- "img",
12865
+ /* @__PURE__ */ jsxs(
12866
+ "svg",
12748
12867
  {
12749
- src: selectedPodButtonIcon,
12750
- alt: "",
12751
- className: "h-[16px] w-[16px]",
12752
- "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
+ ]
12753
12889
  }
12754
12890
  ),
12755
12891
  selectedPodButtonText
@@ -12864,7 +13000,7 @@ var BookingSuccessO2O = ({
12864
13000
  text-align: center;
12865
13001
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
12866
13002
  }
12867
- h2 { font-size: 24px; color: #4A4C56; margin: 0; }
13003
+ h2 { font-size: 24px; color: #080A0F; margin: 0; }
12868
13004
  p { font-size: 14px; color: #6B7280; margin: 8px 0 0; }
12869
13005
  img { width: 200px; height: 200px; margin-top: 32px; }
12870
13006
  `;
@@ -13019,7 +13155,29 @@ var BookingSuccessO2O = ({
13019
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: [
13020
13156
  /* @__PURE__ */ jsx("h1", { className: "text-[48px] xxl:text-[32px] font-bold text-[#080A0F] mb-8 print:hidden", children: pageData.yourAppointment }),
13021
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: [
13022
- /* @__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
+ ] }),
13023
13181
  /* @__PURE__ */ jsxs("div", { className: "flex items-center l:gap-2 gap-4", children: [
13024
13182
  !!pageData.contactUs && /* @__PURE__ */ jsx(
13025
13183
  "a",
@@ -13035,7 +13193,7 @@ var BookingSuccessO2O = ({
13035
13193
  "button",
13036
13194
  {
13037
13195
  onClick: () => onScheduleAgain(bookingData.demoroom_code),
13038
- 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",
13039
13197
  children: pageData.scheduleAgain
13040
13198
  }
13041
13199
  )
@@ -13048,10 +13206,10 @@ var BookingSuccessO2O = ({
13048
13206
  children: [
13049
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: [
13050
13208
  /* @__PURE__ */ jsxs("div", { children: [
13051
- /* @__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 }),
13052
13210
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
13053
- bookingData.demoroom_name && /* @__PURE__ */ jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.demoroom_name }),
13054
- 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 }),
13055
13213
  bookingData.latitude && bookingData.longitude && /* @__PURE__ */ jsx(
13056
13214
  "a",
13057
13215
  {
@@ -13065,26 +13223,26 @@ var BookingSuccessO2O = ({
13065
13223
  ] })
13066
13224
  ] }),
13067
13225
  /* @__PURE__ */ jsxs("div", { children: [
13068
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.dateAndTime }),
13069
- /* @__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: [
13070
13228
  bookingData.booking_date,
13071
13229
  bookingData.time_slot && `, ${bookingData.time_slot}`,
13072
13230
  !bookingData.time_slot && bookingData.booking_time && `, ${bookingData.booking_time}`
13073
13231
  ] })
13074
13232
  ] }),
13075
13233
  bookingData.equipment && /* @__PURE__ */ jsxs("div", { children: [
13076
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.event }),
13077
- /* @__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 })
13078
13236
  ] }),
13079
13237
  /* @__PURE__ */ jsxs("div", { children: [
13080
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.demoRoom }),
13081
- /* @__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 })
13082
13240
  ] }),
13083
13241
  /* @__PURE__ */ jsxs("div", { children: [
13084
- /* @__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 }),
13085
13243
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
13086
- /* @__PURE__ */ jsx("p", { className: "text-base text-[#4A4C56]", children: bookingData.customer_name }),
13087
- /* @__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: [
13088
13246
  /* @__PURE__ */ jsx(
13089
13247
  "svg",
13090
13248
  {
@@ -13109,7 +13267,7 @@ var BookingSuccessO2O = ({
13109
13267
  bookingData.phone_number
13110
13268
  ] }) : /* @__PURE__ */ jsx("span", { children: pageData.noPhoneProvided })
13111
13269
  ] }),
13112
- /* @__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: [
13113
13271
  /* @__PURE__ */ jsx(
13114
13272
  "svg",
13115
13273
  {
@@ -13133,8 +13291,8 @@ var BookingSuccessO2O = ({
13133
13291
  ] })
13134
13292
  ] }),
13135
13293
  /* @__PURE__ */ jsxs("div", { children: [
13136
- /* @__PURE__ */ jsx("h2", { className: "text-[24px] l:text-[20px] text-[#4A4C56] mb-3", children: pageData.purposeOfVisit }),
13137
- /* @__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 || ""] }),
13138
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: [
13139
13297
  /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
13140
13298
  /* @__PURE__ */ jsxs("h3", { className: "text-base font-medium text-[#080A0F]", children: [
@@ -13143,7 +13301,7 @@ var BookingSuccessO2O = ({
13143
13301
  " ",
13144
13302
  podDesignName
13145
13303
  ] }),
13146
- bookingData?.status && pageData.podData?.status?.[bookingData.status] && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-[#4A4C56]", children: pageData.podData.status[bookingData.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] })
13147
13305
  ] }),
13148
13306
  podDesignImage && /* @__PURE__ */ jsx(
13149
13307
  Image,
@@ -13157,7 +13315,7 @@ var BookingSuccessO2O = ({
13157
13315
  ] })
13158
13316
  ] }),
13159
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: [
13160
- /* @__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 }),
13161
13319
  /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500 text-center mt-2", children: pageData.podData?.QRCodeSubTitle }),
13162
13320
  /* @__PURE__ */ jsx(
13163
13321
  "div",
@@ -13178,7 +13336,7 @@ var BookingSuccessO2O = ({
13178
13336
  "button",
13179
13337
  {
13180
13338
  onClick: () => onAddToWallet?.(bookingData),
13181
- 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",
13182
13340
  children: pageData.podData?.btnToWallet
13183
13341
  }
13184
13342
  ),
@@ -13186,7 +13344,7 @@ var BookingSuccessO2O = ({
13186
13344
  "button",
13187
13345
  {
13188
13346
  onClick: handlePrintQRCode,
13189
- 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",
13190
13348
  children: pageData.podData?.btnToPrint
13191
13349
  }
13192
13350
  )
@@ -13195,8 +13353,8 @@ var BookingSuccessO2O = ({
13195
13353
  ]
13196
13354
  }
13197
13355
  ),
13198
- isPending && !isCancelled && !isStore && /* @__PURE__ */ jsxs("div", { className: "mt-[64px] pb-4 print:hidden", children: [
13199
- /* @__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: [
13200
13358
  onEditBooking && token && /* @__PURE__ */ jsx(
13201
13359
  "button",
13202
13360
  {
@@ -13205,7 +13363,7 @@ var BookingSuccessO2O = ({
13205
13363
  bookingData.demoroom_code,
13206
13364
  bookingData.business_type
13207
13365
  ),
13208
- 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",
13209
13367
  children: pageData.editAppointment
13210
13368
  }
13211
13369
  ),
@@ -13214,56 +13372,56 @@ var BookingSuccessO2O = ({
13214
13372
  {
13215
13373
  onClick: () => setShowCancelDialog(true),
13216
13374
  disabled: cancelLoading,
13217
- 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",
13218
13376
  children: pageData.cancelAppointment
13219
13377
  }
13220
13378
  )
13221
13379
  ] }) }),
13222
13380
  cancelError && /* @__PURE__ */ jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: cancelError })
13223
13381
  ] }),
13224
- 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: [
13225
13383
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx(
13226
13384
  "button",
13227
13385
  {
13228
13386
  onClick: handleCheckin,
13229
13387
  disabled: checkinLoading,
13230
- 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",
13231
13389
  children: pageData.changeStatusButton || "Change Pickup Status"
13232
13390
  }
13233
13391
  ) }),
13234
13392
  checkinError && /* @__PURE__ */ jsx("p", { className: "text-sm mt-2", style: { color: "#FF4D4D" }, children: checkinError })
13235
13393
  ] }),
13236
- 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: [
13237
13395
  /* @__PURE__ */ jsx(
13238
13396
  "button",
13239
13397
  {
13240
13398
  onClick: () => setShowCancelDialog(false),
13241
13399
  disabled: cancelLoading,
13242
- 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",
13243
13401
  "aria-label": "Close",
13244
- children: /* @__PURE__ */ jsx(
13402
+ children: /* @__PURE__ */ jsxs(
13245
13403
  "svg",
13246
13404
  {
13405
+ xmlns: "http://www.w3.org/2000/svg",
13247
13406
  width: "24",
13248
13407
  height: "24",
13249
13408
  viewBox: "0 0 24 24",
13250
13409
  fill: "none",
13251
- xmlns: "http://www.w3.org/2000/svg",
13252
- children: /* @__PURE__ */ jsx(
13253
- "path",
13254
- {
13255
- d: "M18 6L6 18M6 6L18 18",
13256
- stroke: "currentColor",
13257
- strokeWidth: "2",
13258
- strokeLinecap: "round",
13259
- strokeLinejoin: "round"
13260
- }
13261
- )
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
+ ]
13262
13420
  }
13263
13421
  )
13264
13422
  }
13265
13423
  ),
13266
- /* @__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(
13267
13425
  "svg",
13268
13426
  {
13269
13427
  xmlns: "http://www.w3.org/2000/svg",
@@ -13283,9 +13441,9 @@ var BookingSuccessO2O = ({
13283
13441
  ]
13284
13442
  }
13285
13443
  ) }) }),
13286
- /* @__PURE__ */ jsxs("div", { className: "text-center mb-8", children: [
13287
- /* @__PURE__ */ jsx("h3", { className: "text-[18px] text-[#4A4C56] mb-2", children: pageData.cancelDialog?.title }),
13288
- /* @__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 })
13289
13447
  ] }),
13290
13448
  /* @__PURE__ */ jsxs("div", { className: "flex gap-3 justify-center", children: [
13291
13449
  /* @__PURE__ */ jsx(
@@ -13293,7 +13451,7 @@ var BookingSuccessO2O = ({
13293
13451
  {
13294
13452
  onClick: () => setShowCancelDialog(false),
13295
13453
  disabled: cancelLoading,
13296
- 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",
13297
13455
  children: pageData.cancelDialog?.backButton
13298
13456
  }
13299
13457
  ),
@@ -13302,7 +13460,7 @@ var BookingSuccessO2O = ({
13302
13460
  {
13303
13461
  onClick: handleCancelAppointment,
13304
13462
  disabled: cancelLoading,
13305
- 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",
13306
13464
  children: cancelLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
13307
13465
  /* @__PURE__ */ jsxs(
13308
13466
  "svg",