@anker-in/ui 0.3.10 → 0.3.11

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.d.mts CHANGED
@@ -259,6 +259,9 @@ interface DemoRoomContract {
259
259
  interface DemoRoomPodConfig {
260
260
  questionnaire_id?: number;
261
261
  }
262
+ interface DemoRoomEventConfig {
263
+ questionnaire_id?: number;
264
+ }
262
265
  interface DemoRoom {
263
266
  code: string;
264
267
  name: string;
@@ -274,6 +277,7 @@ interface DemoRoom {
274
277
  contact?: DemoRoomContract;
275
278
  business_types?: string[];
276
279
  pod_config?: DemoRoomPodConfig;
280
+ event_config?: DemoRoomEventConfig;
277
281
  capacity: number;
278
282
  status: DemoRoomStatus;
279
283
  timezone: string;
package/dist/index.d.ts CHANGED
@@ -259,6 +259,9 @@ interface DemoRoomContract {
259
259
  interface DemoRoomPodConfig {
260
260
  questionnaire_id?: number;
261
261
  }
262
+ interface DemoRoomEventConfig {
263
+ questionnaire_id?: number;
264
+ }
262
265
  interface DemoRoom {
263
266
  code: string;
264
267
  name: string;
@@ -274,6 +277,7 @@ interface DemoRoom {
274
277
  contact?: DemoRoomContract;
275
278
  business_types?: string[];
276
279
  pod_config?: DemoRoomPodConfig;
280
+ event_config?: DemoRoomEventConfig;
277
281
  capacity: number;
278
282
  status: DemoRoomStatus;
279
283
  timezone: string;
package/dist/index.js CHANGED
@@ -11241,7 +11241,7 @@ var QuestionnaireForm2 = ({
11241
11241
  placeholder: question.placeholder,
11242
11242
  className: cn(
11243
11243
  "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11244
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11244
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11245
11245
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11246
11246
  )
11247
11247
  }
@@ -11262,7 +11262,7 @@ var QuestionnaireForm2 = ({
11262
11262
  placeholder: question.placeholder,
11263
11263
  className: cn(
11264
11264
  "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11265
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11265
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11266
11266
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11267
11267
  )
11268
11268
  }
@@ -11278,7 +11278,7 @@ var QuestionnaireForm2 = ({
11278
11278
  onChange: (e) => handleCountryCodeChange(questionId, e.target.value),
11279
11279
  className: cn(
11280
11280
  "appearance-none pl-3 pr-8 py-3 rounded-lg border text-base",
11281
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11281
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11282
11282
  "bg-white cursor-pointer w-[80px]",
11283
11283
  "dark:bg-white dark:text-[#080A0F]",
11284
11284
  hasError ? "border-red-500" : "border-[#E4E5E6]"
@@ -11323,7 +11323,7 @@ var QuestionnaireForm2 = ({
11323
11323
  placeholder: question.placeholder,
11324
11324
  className: cn(
11325
11325
  "flex-1 px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11326
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11326
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11327
11327
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11328
11328
  )
11329
11329
  }
@@ -11340,7 +11340,7 @@ var QuestionnaireForm2 = ({
11340
11340
  rows: 4,
11341
11341
  className: cn(
11342
11342
  "w-full px-4 py-3 rounded-lg border text-base resize-none bg-white",
11343
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11343
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11344
11344
  "dark:bg-white dark:text-[#080A0F]",
11345
11345
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11346
11346
  )
@@ -11442,7 +11442,7 @@ var QuestionnaireForm2 = ({
11442
11442
  placeholder: question.placeholder || "Please specify...",
11443
11443
  className: cn(
11444
11444
  "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11445
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11445
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11446
11446
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11447
11447
  )
11448
11448
  }
@@ -11520,7 +11520,7 @@ var QuestionnaireForm2 = ({
11520
11520
  },
11521
11521
  className: cn(
11522
11522
  "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11523
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11523
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11524
11524
  "cursor-pointer",
11525
11525
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11526
11526
  ),
@@ -11634,8 +11634,8 @@ var QuestionnaireForm2 = ({
11634
11634
  className: cn(
11635
11635
  "w-fit mt-6 px-6 py-4 rounded-full",
11636
11636
  "bg-[#080A0F] text-white font-bold text-base",
11637
- "hover:bg-[#2FC257] hover:text-[#080A0F] transition-colors",
11638
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:ring-offset-2",
11637
+ "hover:bg-[#00CBEB] hover:text-[#080A0F] transition-colors",
11638
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:ring-offset-2",
11639
11639
  "disabled:opacity-50 disabled:cursor-not-allowed"
11640
11640
  ),
11641
11641
  children: loading ? pageData?.submitting || "Submitting..." : pageData?.submit || "Submit Booking"
@@ -11717,8 +11717,8 @@ var DateTimePicker2 = ({
11717
11717
  });
11718
11718
  const demoRoom = demoRoomProp ?? fetchedDemoRoom;
11719
11719
  const effectiveDemoRoomLoading = !demoRoom && !!(isManagedByParent ? demoRoomLoading : fetchedDemoRoomLoading);
11720
- const isPodPurpose = selectedPurposeType === "pod";
11721
- const effectiveQuestionnaireId = isPodPurpose && demoRoom?.pod_config?.questionnaire_id || demoRoom?.questionnaire_id;
11720
+ const purposeQuestionnaireId = selectedPurposeType === "pod" ? demoRoom?.pod_config?.questionnaire_id : selectedPurposeType === "event" ? demoRoom?.event_config?.questionnaire_id : void 0;
11721
+ const effectiveQuestionnaireId = purposeQuestionnaireId || demoRoom?.questionnaire_id;
11722
11722
  const { data: questionnaire, loading: questionnaireLoading } = useQuestionnaire(
11723
11723
  apiClient,
11724
11724
  demoRoomCode || "",
@@ -11926,13 +11926,13 @@ var DateTimePicker2 = ({
11926
11926
  {
11927
11927
  theme: {
11928
11928
  token: {
11929
- colorPrimary: "#3ADB67"
11929
+ colorPrimary: "#93E0EC"
11930
11930
  },
11931
11931
  components: {
11932
11932
  Calendar: {
11933
11933
  fullBg: "#fff",
11934
11934
  fullPanelBg: "#fff",
11935
- itemActiveBg: "#3ADB67"
11935
+ itemActiveBg: "#93E0EC"
11936
11936
  }
11937
11937
  }
11938
11938
  },
@@ -12015,16 +12015,16 @@ var DateTimePicker2 = ({
12015
12015
  }
12016
12016
  .calendar-custom-cell .ant-picker-cell-selected .ant-picker-cell-inner,
12017
12017
  .calendar-custom-cell .ant-picker-cell-selected:not(.ant-picker-cell-disabled) .ant-picker-cell-inner {
12018
- background-color: #3ADB67 !important;
12018
+ background-color: #93E0EC !important;
12019
12019
  color: #080A0F !important;
12020
- border-color: #3ADB67 !important;
12020
+ border-color: #93E0EC !important;
12021
12021
  }
12022
12022
  .calendar-custom-cell .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {
12023
- background-color: #3ADB67 !important;
12023
+ background-color: #93E0EC !important;
12024
12024
  color: #080A0F !important;
12025
12025
  }
12026
12026
  .calendar-custom-cell .ant-picker-cell-today .ant-picker-cell-inner {
12027
- border-color: #3ADB67 !important;
12027
+ border-color: #93E0EC !important;
12028
12028
  border-radius: 8px !important;
12029
12029
  }
12030
12030
  @media (min-width: 1024px) and (max-width: 1919px) {
@@ -12060,6 +12060,10 @@ var DateTimePicker2 = ({
12060
12060
  border: none !important;
12061
12061
  box-shadow: none !important;
12062
12062
  }
12063
+ .calendar-custom-cell .ant-picker-cell-in-view:not(.ant-picker-cell-disabled):not(.ant-picker-cell-selected):hover .ant-picker-cell-inner {
12064
+ background-color: #93E0EC !important;
12065
+ color: #080A0F !important;
12066
+ }
12063
12067
  .calendar-custom-cell .ant-picker-cell-disabled::before {
12064
12068
  display: none !important;
12065
12069
  }
@@ -12101,9 +12105,9 @@ var DateTimePicker2 = ({
12101
12105
  {
12102
12106
  className: `ant-picker-cell-inner ${isSelected ? "ant-picker-cell-inner-selected" : ""} ${isToday ? "ant-picker-cell-inner-today" : ""}`,
12103
12107
  style: {
12104
- backgroundColor: isSelected ? "#3ADB67" : void 0,
12108
+ backgroundColor: isSelected ? "#93E0EC" : void 0,
12105
12109
  color: isSelected ? "#080A0F" : isDisabled ? "#767880" : void 0,
12106
- borderColor: isSelected ? "#3ADB67" : isToday ? "#3ADB67" : void 0
12110
+ borderColor: isSelected ? "#93E0EC" : isToday ? "#93E0EC" : void 0
12107
12111
  },
12108
12112
  children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "ant-picker-calendar-date-value", children: date.date() })
12109
12113
  }
@@ -12338,7 +12342,7 @@ var DateTimePicker2 = ({
12338
12342
  className: `
12339
12343
  rounded-[8px] w-full text-[18px] l:gap-2 l:text-[16px] flex items-center justify-center gap-4 h-[76px]
12340
12344
  border text-center transition-colors
12341
- ${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"}
12345
+ ${isSelected ? "border-[#93E0EC] bg-[#93E0EC] cursor-pointer" : isAvailable ? "border-[#E4E5E6] hover:border-[#93E0EC] hover:bg-[#93E0EC] cursor-pointer" : "border-[#E4E5E6] bg-[#F5F5F5] text-[#767880] cursor-not-allowed"}
12342
12346
  `,
12343
12347
  children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col items-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: formatTimeslot(slot) }) })
12344
12348
  },
@@ -13044,6 +13048,17 @@ var BookingFormO2O = ({
13044
13048
  }),
13045
13049
  [pageData?.dateTimePicker, pageData?.questionnaireForm]
13046
13050
  );
13051
+ const purposeListRef = React15.useRef(null);
13052
+ const [purposeListOverflow, setPurposeListOverflow] = React15.useState(false);
13053
+ React15.useEffect(() => {
13054
+ const el = purposeListRef.current;
13055
+ if (!el) return;
13056
+ const check = () => setPurposeListOverflow(el.scrollHeight > el.clientHeight + 1);
13057
+ check();
13058
+ const observer = new ResizeObserver(check);
13059
+ observer.observe(el);
13060
+ return () => observer.disconnect();
13061
+ }, [purposeOptions]);
13047
13062
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13048
13063
  !token && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("w-full", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
13049
13064
  DemoRoomDetail2,
@@ -13070,171 +13085,164 @@ var BookingFormO2O = ({
13070
13085
  children: dateTimePickerPageData?.scheduleYourVisit
13071
13086
  }
13072
13087
  ),
13073
- !!purposeOptions.length && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pb-[40px] l:pb-[24px]", className), children: /* @__PURE__ */ jsxRuntime.jsxs(
13074
- "div",
13075
- {
13076
- className: cn(
13077
- "grid gap-[16px] l:grid-cols-1",
13078
- isPodSelected && "grid-cols-2"
13079
- ),
13080
- children: [
13081
- /* @__PURE__ */ jsxRuntime.jsxs(
13082
- "section",
13083
- {
13084
- className: cn(
13085
- "flex flex-col rounded-[16px] bg-white px-[32px] py-[24px] l:px-[16px] l:py-[20px]",
13086
- // 双栏时左卡高度由右侧 POD 卡撑开(与下拉版一致),选项列表内部滚动,
13087
- // 避免选项+说明过多把左卡撑得比右卡高;h-0 让本卡不参与 grid 行高计算
13088
- isPodSelected && "min-l:h-0 min-l:min-h-full min-l:overflow-hidden"
13089
- ),
13090
- children: [
13091
- /* @__PURE__ */ jsxRuntime.jsx(
13092
- "p",
13093
- {
13094
- id: "booking-purpose-label",
13095
- className: "block text-[16px] font-bold text-[#080A0F] l:text-[14px]",
13096
- children: getPurposeLabel(pageData)
13097
- }
13098
- ),
13099
- /* @__PURE__ */ jsxRuntime.jsx(
13100
- "div",
13101
- {
13102
- role: "radiogroup",
13103
- "aria-labelledby": "booking-purpose-label",
13104
- className: cn(
13105
- "mt-[14px] flex min-h-0 flex-col gap-[16px] overflow-y-auto pr-[4px]",
13106
- // 仅桌面双栏时列表受右卡高度约束内部滚动;独占一行(未选 POD / 移动端)不限高
13107
- isPodSelected && "min-l:flex-1"
13108
- ),
13109
- children: purposeOptions.map((item, index) => {
13110
- const isSelected = !!item.type && selectedPurpose?.type === item.type;
13111
- const selectItem = () => {
13112
- if (token) return;
13113
- setSelectedPurposeType(item.type || "");
13114
- setIsPurposeConfirmed(true);
13115
- };
13116
- return /* @__PURE__ */ jsxRuntime.jsxs(
13117
- "div",
13118
- {
13119
- role: "radio",
13120
- "aria-checked": isSelected,
13121
- tabIndex: token ? -1 : 0,
13122
- onClick: selectItem,
13123
- onKeyDown: (event2) => {
13124
- if (event2.key === "Enter" || event2.key === " ") {
13125
- event2.preventDefault();
13126
- selectItem();
13127
- }
13128
- },
13129
- className: cn(
13130
- "shrink-0 cursor-pointer overflow-hidden rounded-[8px] bg-[#F5F6F7] outline-none",
13131
- token && "pointer-events-none cursor-not-allowed"
13132
- ),
13133
- children: [
13134
- /* @__PURE__ */ jsxRuntime.jsxs(
13135
- "div",
13136
- {
13137
- className: cn(
13138
- "group flex h-[60px] w-full items-center gap-[12px] px-[16px] text-left text-[16px] font-bold text-[#000F16] transition-[box-shadow,color] l:text-[14px]",
13139
- isSelected ? "bg-[#93E0EC]" : "rounded-[8px] bg-white text-[#5A5E66] shadow-[inset_0_0_0_1px_#D9DCE1] hover:text-[#000F16] hover:shadow-[inset_0_0_0_1.6px_#00CBEB]"
13140
- ),
13141
- children: [
13142
- /* @__PURE__ */ jsxRuntime.jsx(
13143
- "span",
13144
- {
13145
- className: cn(
13146
- !isSelected && "text-[#D9DCE1] group-hover:text-[#00CBEB]"
13147
- ),
13148
- children: isSelected ? /* @__PURE__ */ jsxRuntime.jsx(PurposeCheckedIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(PurposeRadioIcon, {})
13149
- }
13150
- ),
13151
- item.label || item.type
13152
- ]
13153
- }
13154
- ),
13155
- !!item.purposeNote && /* @__PURE__ */ jsxRuntime.jsx("p", { className: " px-[16px] py-[8px] text-[14px] font-medium leading-[1.35] text-[#080A0F] l:text-[13px]", children: item.purposeNote })
13156
- ]
13157
- },
13158
- `${item.type || item.label || "purpose"}-${index}`
13159
- );
13160
- })
13161
- }
13162
- )
13163
- ]
13164
- }
13088
+ !!purposeOptions.length && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pb-[40px] l:pb-[24px]", className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-[16px] l:grid-cols-1", children: [
13089
+ /* @__PURE__ */ jsxRuntime.jsxs(
13090
+ "section",
13091
+ {
13092
+ className: cn(
13093
+ "flex flex-col rounded-[16px] bg-white px-[32px] pt-[24px] pb-0 l:pb-[16px] l:rounded-[12px] l:px-[16px] l:pt-[20px]",
13094
+ // 右侧 POD 卡存在时左卡高度由其撑开(与下拉版一致),选项列表内部滚动,
13095
+ // 避免选项+说明过多把左卡撑得比右卡高;h-0 让本卡不参与 grid 行高计算
13096
+ isPodSelected && !!selectedPodContent && "min-l:h-0 min-l:min-h-full min-l:overflow-hidden"
13165
13097
  ),
13166
- isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
13167
- !!selectedPodContent.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
13168
- !!selectedPodDescription && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-[6px] text-[13px] font-medium leading-[1.35] text-[#080A0F] l:text-[12px]", children: selectedPodDescription }),
13169
- !!selectedPodImage && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full rounded-[8px] flex mt-4 bg-[#F5F6F7] flex-col items-center justify-center", children: [
13170
- /* @__PURE__ */ jsxRuntime.jsx(
13171
- "img",
13172
- {
13173
- src: selectedPodImage,
13174
- alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
13175
- className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
13176
- }
13177
- ),
13178
- bookingDesign?.material && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 text-[16px] l:text-[14px] text-[#080A0F] font-bold mb-2", children: bookingDesign?.material })
13179
- ] }),
13180
- !!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxRuntime.jsxs(
13181
- "a",
13098
+ children: [
13099
+ /* @__PURE__ */ jsxRuntime.jsx(
13100
+ "p",
13182
13101
  {
13183
- href: selectedPodButtonLink || "#",
13184
- "aria-disabled": isPodButtonDisabled,
13185
- tabIndex: isPodButtonDisabled ? -1 : void 0,
13186
- onClick: (event2) => {
13187
- if (isPodButtonDisabled) {
13188
- event2.preventDefault();
13189
- return;
13190
- }
13191
- trackCallbacks?.onPodDesignClick?.({
13192
- buttonText: selectedPodButtonText || "",
13193
- url: selectedPodButtonLink || "",
13194
- isEditMode: isPodDesignEditMode
13195
- });
13196
- },
13197
- rel: "noopener noreferrer",
13102
+ id: "booking-purpose-label",
13103
+ className: "block text-[16px] font-bold text-[#080A0F] l:text-[14px]",
13104
+ children: getPurposeLabel(pageData)
13105
+ }
13106
+ ),
13107
+ /* @__PURE__ */ jsxRuntime.jsx(
13108
+ "div",
13109
+ {
13110
+ ref: purposeListRef,
13111
+ role: "radiogroup",
13112
+ "aria-labelledby": "booking-purpose-label",
13198
13113
  className: cn(
13199
- "mt-[16px] h-[42px] inline-flex items-center border-2 justify-center gap-[6px] rounded-full px-[24px] text-[14px] font-bold transition-colors",
13200
- isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50",
13201
- isPodDesignEditMode ? "text-[#080A0F] border-[#080A0F]" : "text-white bg-[#080A0F] border-[#080A0F]"
13114
+ "mt-[14px] mr-[4px] flex min-h-0 flex-col gap-[16px] overflow-y-auto",
13115
+ // 仅右侧 POD 卡存在时列表受其高度约束内部滚动;其余情况不限高
13116
+ isPodSelected && !!selectedPodContent && "min-l:flex-1",
13117
+ purposeListOverflow && "border-b border-[#DADCE0]"
13202
13118
  ),
13203
- children: [
13204
- /* @__PURE__ */ jsxRuntime.jsxs(
13205
- "svg",
13119
+ children: purposeOptions.map((item, index) => {
13120
+ const isSelected = !!item.type && selectedPurpose?.type === item.type;
13121
+ const selectItem = () => {
13122
+ if (token) return;
13123
+ setSelectedPurposeType(item.type || "");
13124
+ setIsPurposeConfirmed(true);
13125
+ };
13126
+ return /* @__PURE__ */ jsxRuntime.jsxs(
13127
+ "div",
13206
13128
  {
13207
- xmlns: "http://www.w3.org/2000/svg",
13208
- width: "20",
13209
- height: "20",
13210
- viewBox: "0 0 20 20",
13211
- fill: "none",
13129
+ role: "radio",
13130
+ "aria-checked": isSelected,
13131
+ tabIndex: token ? -1 : 0,
13132
+ onClick: selectItem,
13133
+ onKeyDown: (event2) => {
13134
+ if (event2.key === "Enter" || event2.key === " ") {
13135
+ event2.preventDefault();
13136
+ selectItem();
13137
+ }
13138
+ },
13139
+ className: cn(
13140
+ "shrink-0 cursor-pointer overflow-hidden rounded-[8px] bg-[#F5F6F7] outline-none l:rounded-[6px]",
13141
+ token && "pointer-events-none cursor-not-allowed"
13142
+ ),
13212
13143
  children: [
13213
- /* @__PURE__ */ jsxRuntime.jsx(
13214
- "path",
13144
+ /* @__PURE__ */ jsxRuntime.jsxs(
13145
+ "div",
13215
13146
  {
13216
- 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",
13217
- fill: "currentColor"
13147
+ className: cn(
13148
+ "group flex h-[60px] w-full items-center gap-[12px] rounded-[8px] px-[16px] text-left text-[16px] font-bold text-[#000F16] transition-[box-shadow,color] l:rounded-[6px] l:text-[14px]",
13149
+ isSelected ? "bg-[#93E0EC]" : "bg-white text-[#000F16] shadow-[inset_0_0_0_1px_#D9DCE1] hover:text-[#000F16] hover:shadow-[inset_0_0_0_1.6px_#00CBEB]"
13150
+ ),
13151
+ children: [
13152
+ /* @__PURE__ */ jsxRuntime.jsx(
13153
+ "span",
13154
+ {
13155
+ className: cn(
13156
+ !isSelected && "text-[#D9DCE1] group-hover:text-[#00CBEB]"
13157
+ ),
13158
+ children: isSelected ? /* @__PURE__ */ jsxRuntime.jsx(PurposeCheckedIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(PurposeRadioIcon, {})
13159
+ }
13160
+ ),
13161
+ item.label || item.type
13162
+ ]
13218
13163
  }
13219
13164
  ),
13220
- /* @__PURE__ */ jsxRuntime.jsx(
13221
- "path",
13222
- {
13223
- 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",
13224
- fill: "currentColor"
13225
- }
13226
- )
13165
+ !!item.purposeNote && /* @__PURE__ */ jsxRuntime.jsx("p", { className: " px-[16px] py-[8px] text-[14px] font-[700] leading-[1.35] text-[#4A4C56] l:text-[13px]", children: item.purposeNote })
13227
13166
  ]
13228
- }
13229
- ),
13230
- selectedPodButtonText
13231
- ]
13167
+ },
13168
+ `${item.type || item.label || "purpose"}-${index}`
13169
+ );
13170
+ })
13232
13171
  }
13233
13172
  )
13234
- ] })
13235
- ]
13236
- }
13237
- ) }),
13173
+ ]
13174
+ }
13175
+ ),
13176
+ isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "rounded-[16px] l:rounded-[12px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
13177
+ !!selectedPodContent.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
13178
+ !!selectedPodDescription && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-[6px] text-[13px] font-[700] leading-[1.35] text-[#4A4C56] l:text-[12px]", children: selectedPodDescription }),
13179
+ !!selectedPodImage && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full rounded-[8px] flex mt-4 bg-[#F5F6F7] flex-col items-center justify-center", children: [
13180
+ /* @__PURE__ */ jsxRuntime.jsx(
13181
+ "img",
13182
+ {
13183
+ src: selectedPodImage,
13184
+ alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
13185
+ className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
13186
+ }
13187
+ ),
13188
+ bookingDesign?.material && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 text-[16px] l:text-[14px] text-[#080A0F] font-bold mb-2", children: bookingDesign?.material })
13189
+ ] }),
13190
+ !!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxRuntime.jsxs(
13191
+ "a",
13192
+ {
13193
+ href: selectedPodButtonLink || "#",
13194
+ "aria-disabled": isPodButtonDisabled,
13195
+ tabIndex: isPodButtonDisabled ? -1 : void 0,
13196
+ onClick: (event2) => {
13197
+ if (isPodButtonDisabled) {
13198
+ event2.preventDefault();
13199
+ return;
13200
+ }
13201
+ trackCallbacks?.onPodDesignClick?.({
13202
+ buttonText: selectedPodButtonText || "",
13203
+ url: selectedPodButtonLink || "",
13204
+ isEditMode: isPodDesignEditMode
13205
+ });
13206
+ },
13207
+ rel: "noopener noreferrer",
13208
+ className: cn(
13209
+ "mt-[16px] h-[42px] inline-flex items-center border-2 justify-center gap-[6px] rounded-full px-[24px] text-[14px] font-bold transition-colors",
13210
+ isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50",
13211
+ isPodDesignEditMode ? "text-[#080A0F] border-[#080A0F]" : "text-white bg-[#080A0F] border-[#080A0F]"
13212
+ ),
13213
+ children: [
13214
+ /* @__PURE__ */ jsxRuntime.jsxs(
13215
+ "svg",
13216
+ {
13217
+ xmlns: "http://www.w3.org/2000/svg",
13218
+ width: "20",
13219
+ height: "20",
13220
+ viewBox: "0 0 20 20",
13221
+ fill: "none",
13222
+ children: [
13223
+ /* @__PURE__ */ jsxRuntime.jsx(
13224
+ "path",
13225
+ {
13226
+ 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",
13227
+ fill: "currentColor"
13228
+ }
13229
+ ),
13230
+ /* @__PURE__ */ jsxRuntime.jsx(
13231
+ "path",
13232
+ {
13233
+ 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",
13234
+ fill: "currentColor"
13235
+ }
13236
+ )
13237
+ ]
13238
+ }
13239
+ ),
13240
+ selectedPodButtonText
13241
+ ]
13242
+ }
13243
+ )
13244
+ ] })
13245
+ ] }) }),
13238
13246
  /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: /* @__PURE__ */ jsxRuntime.jsx(
13239
13247
  DateTimePicker_default2,
13240
13248
  {