@anker-in/ui 0.3.10-beta.0 → 0.3.11-beta.0

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
@@ -11227,7 +11227,7 @@ var QuestionnaireForm2 = ({
11227
11227
  placeholder: question.placeholder,
11228
11228
  className: cn(
11229
11229
  "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11230
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11230
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11231
11231
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11232
11232
  )
11233
11233
  }
@@ -11248,7 +11248,7 @@ var QuestionnaireForm2 = ({
11248
11248
  placeholder: question.placeholder,
11249
11249
  className: cn(
11250
11250
  "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11251
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11251
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11252
11252
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11253
11253
  )
11254
11254
  }
@@ -11264,7 +11264,7 @@ var QuestionnaireForm2 = ({
11264
11264
  onChange: (e) => handleCountryCodeChange(questionId, e.target.value),
11265
11265
  className: cn(
11266
11266
  "appearance-none pl-3 pr-8 py-3 rounded-lg border text-base",
11267
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11267
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11268
11268
  "bg-white cursor-pointer w-[80px]",
11269
11269
  "dark:bg-white dark:text-[#080A0F]",
11270
11270
  hasError ? "border-red-500" : "border-[#E4E5E6]"
@@ -11309,7 +11309,7 @@ var QuestionnaireForm2 = ({
11309
11309
  placeholder: question.placeholder,
11310
11310
  className: cn(
11311
11311
  "flex-1 px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11312
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11312
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11313
11313
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11314
11314
  )
11315
11315
  }
@@ -11326,7 +11326,7 @@ var QuestionnaireForm2 = ({
11326
11326
  rows: 4,
11327
11327
  className: cn(
11328
11328
  "w-full px-4 py-3 rounded-lg border text-base resize-none bg-white",
11329
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11329
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11330
11330
  "dark:bg-white dark:text-[#080A0F]",
11331
11331
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11332
11332
  )
@@ -11428,7 +11428,7 @@ var QuestionnaireForm2 = ({
11428
11428
  placeholder: question.placeholder || "Please specify...",
11429
11429
  className: cn(
11430
11430
  "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11431
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11431
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11432
11432
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11433
11433
  )
11434
11434
  }
@@ -11506,7 +11506,7 @@ var QuestionnaireForm2 = ({
11506
11506
  },
11507
11507
  className: cn(
11508
11508
  "w-full px-4 py-3 rounded-lg border text-base bg-white dark:bg-white dark:text-[#080A0F]",
11509
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:border-transparent",
11509
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:border-transparent",
11510
11510
  "cursor-pointer",
11511
11511
  hasError ? "border-red-500" : "border-[#E4E5E6]"
11512
11512
  ),
@@ -11620,8 +11620,8 @@ var QuestionnaireForm2 = ({
11620
11620
  className: cn(
11621
11621
  "w-fit mt-6 px-6 py-4 rounded-full",
11622
11622
  "bg-[#080A0F] text-white font-bold text-base",
11623
- "hover:bg-[#2FC257] hover:text-[#080A0F] transition-colors",
11624
- "focus:outline-none focus:ring-2 focus:ring-[#3ADB67] focus:ring-offset-2",
11623
+ "hover:bg-[#00CBEB] hover:text-[#080A0F] transition-colors",
11624
+ "focus:outline-none focus:ring-2 focus:ring-[#00CBEB] focus:ring-offset-2",
11625
11625
  "disabled:opacity-50 disabled:cursor-not-allowed"
11626
11626
  ),
11627
11627
  children: loading ? pageData?.submitting || "Submitting..." : pageData?.submit || "Submit Booking"
@@ -11703,8 +11703,8 @@ var DateTimePicker2 = ({
11703
11703
  });
11704
11704
  const demoRoom = demoRoomProp ?? fetchedDemoRoom;
11705
11705
  const effectiveDemoRoomLoading = !demoRoom && !!(isManagedByParent ? demoRoomLoading : fetchedDemoRoomLoading);
11706
- const isPodPurpose = selectedPurposeType === "pod";
11707
- const effectiveQuestionnaireId = isPodPurpose && demoRoom?.pod_config?.questionnaire_id || demoRoom?.questionnaire_id;
11706
+ const purposeQuestionnaireId = selectedPurposeType === "pod" ? demoRoom?.pod_config?.questionnaire_id : selectedPurposeType === "event" ? demoRoom?.event_config?.questionnaire_id : void 0;
11707
+ const effectiveQuestionnaireId = purposeQuestionnaireId || demoRoom?.questionnaire_id;
11708
11708
  const { data: questionnaire, loading: questionnaireLoading } = useQuestionnaire(
11709
11709
  apiClient,
11710
11710
  demoRoomCode || "",
@@ -11912,13 +11912,13 @@ var DateTimePicker2 = ({
11912
11912
  {
11913
11913
  theme: {
11914
11914
  token: {
11915
- colorPrimary: "#3ADB67"
11915
+ colorPrimary: "#93E0EC"
11916
11916
  },
11917
11917
  components: {
11918
11918
  Calendar: {
11919
11919
  fullBg: "#fff",
11920
11920
  fullPanelBg: "#fff",
11921
- itemActiveBg: "#3ADB67"
11921
+ itemActiveBg: "#93E0EC"
11922
11922
  }
11923
11923
  }
11924
11924
  },
@@ -12001,16 +12001,16 @@ var DateTimePicker2 = ({
12001
12001
  }
12002
12002
  .calendar-custom-cell .ant-picker-cell-selected .ant-picker-cell-inner,
12003
12003
  .calendar-custom-cell .ant-picker-cell-selected:not(.ant-picker-cell-disabled) .ant-picker-cell-inner {
12004
- background-color: #3ADB67 !important;
12004
+ background-color: #93E0EC !important;
12005
12005
  color: #080A0F !important;
12006
- border-color: #3ADB67 !important;
12006
+ border-color: #93E0EC !important;
12007
12007
  }
12008
12008
  .calendar-custom-cell .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {
12009
- background-color: #3ADB67 !important;
12009
+ background-color: #93E0EC !important;
12010
12010
  color: #080A0F !important;
12011
12011
  }
12012
12012
  .calendar-custom-cell .ant-picker-cell-today .ant-picker-cell-inner {
12013
- border-color: #3ADB67 !important;
12013
+ border-color: #93E0EC !important;
12014
12014
  border-radius: 8px !important;
12015
12015
  }
12016
12016
  @media (min-width: 1024px) and (max-width: 1919px) {
@@ -12046,6 +12046,10 @@ var DateTimePicker2 = ({
12046
12046
  border: none !important;
12047
12047
  box-shadow: none !important;
12048
12048
  }
12049
+ .calendar-custom-cell .ant-picker-cell-in-view:not(.ant-picker-cell-disabled):not(.ant-picker-cell-selected):hover .ant-picker-cell-inner {
12050
+ background-color: #93E0EC !important;
12051
+ color: #080A0F !important;
12052
+ }
12049
12053
  .calendar-custom-cell .ant-picker-cell-disabled::before {
12050
12054
  display: none !important;
12051
12055
  }
@@ -12087,9 +12091,9 @@ var DateTimePicker2 = ({
12087
12091
  {
12088
12092
  className: `ant-picker-cell-inner ${isSelected ? "ant-picker-cell-inner-selected" : ""} ${isToday ? "ant-picker-cell-inner-today" : ""}`,
12089
12093
  style: {
12090
- backgroundColor: isSelected ? "#3ADB67" : void 0,
12094
+ backgroundColor: isSelected ? "#93E0EC" : void 0,
12091
12095
  color: isSelected ? "#080A0F" : isDisabled ? "#767880" : void 0,
12092
- borderColor: isSelected ? "#3ADB67" : isToday ? "#3ADB67" : void 0
12096
+ borderColor: isSelected ? "#93E0EC" : isToday ? "#93E0EC" : void 0
12093
12097
  },
12094
12098
  children: /* @__PURE__ */ jsx("div", { className: "ant-picker-calendar-date-value", children: date.date() })
12095
12099
  }
@@ -12324,7 +12328,7 @@ var DateTimePicker2 = ({
12324
12328
  className: `
12325
12329
  rounded-[8px] w-full text-[18px] l:gap-2 l:text-[16px] flex items-center justify-center gap-4 h-[76px]
12326
12330
  border text-center transition-colors
12327
- ${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"}
12331
+ ${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"}
12328
12332
  `,
12329
12333
  children: /* @__PURE__ */ jsx("div", { className: "flex flex-col items-center", children: /* @__PURE__ */ jsx("div", { children: formatTimeslot(slot) }) })
12330
12334
  },
@@ -13056,171 +13060,162 @@ var BookingFormO2O = ({
13056
13060
  children: dateTimePickerPageData?.scheduleYourVisit
13057
13061
  }
13058
13062
  ),
13059
- !!purposeOptions.length && /* @__PURE__ */ jsx("div", { className: cn("pb-[40px] l:pb-[24px]", className), children: /* @__PURE__ */ jsxs(
13060
- "div",
13061
- {
13062
- className: cn(
13063
- "grid gap-[16px] l:grid-cols-1",
13064
- isPodSelected && "grid-cols-2"
13065
- ),
13066
- children: [
13067
- /* @__PURE__ */ jsxs(
13068
- "section",
13069
- {
13070
- className: cn(
13071
- "flex flex-col rounded-[16px] bg-white px-[32px] py-[24px] l:px-[16px] l:py-[20px]",
13072
- // 双栏时左卡高度由右侧 POD 卡撑开(与下拉版一致),选项列表内部滚动,
13073
- // 避免选项+说明过多把左卡撑得比右卡高;h-0 让本卡不参与 grid 行高计算
13074
- isPodSelected && "min-l:h-0 min-l:min-h-full min-l:overflow-hidden"
13075
- ),
13076
- children: [
13077
- /* @__PURE__ */ jsx(
13078
- "p",
13079
- {
13080
- id: "booking-purpose-label",
13081
- className: "block text-[16px] font-bold text-[#080A0F] l:text-[14px]",
13082
- children: getPurposeLabel(pageData)
13083
- }
13084
- ),
13085
- /* @__PURE__ */ jsx(
13086
- "div",
13087
- {
13088
- role: "radiogroup",
13089
- "aria-labelledby": "booking-purpose-label",
13090
- className: cn(
13091
- "mt-[14px] flex min-h-0 flex-col gap-[16px] overflow-y-auto pr-[4px]",
13092
- // 仅桌面双栏时列表受右卡高度约束内部滚动;独占一行(未选 POD / 移动端)不限高
13093
- isPodSelected && "min-l:flex-1"
13094
- ),
13095
- children: purposeOptions.map((item, index) => {
13096
- const isSelected = !!item.type && selectedPurpose?.type === item.type;
13097
- const selectItem = () => {
13098
- if (token) return;
13099
- setSelectedPurposeType(item.type || "");
13100
- setIsPurposeConfirmed(true);
13101
- };
13102
- return /* @__PURE__ */ jsxs(
13103
- "div",
13104
- {
13105
- role: "radio",
13106
- "aria-checked": isSelected,
13107
- tabIndex: token ? -1 : 0,
13108
- onClick: selectItem,
13109
- onKeyDown: (event2) => {
13110
- if (event2.key === "Enter" || event2.key === " ") {
13111
- event2.preventDefault();
13112
- selectItem();
13113
- }
13114
- },
13115
- className: cn(
13116
- "shrink-0 cursor-pointer overflow-hidden rounded-[8px] bg-[#F5F6F7] outline-none",
13117
- token && "pointer-events-none cursor-not-allowed"
13118
- ),
13119
- children: [
13120
- /* @__PURE__ */ jsxs(
13121
- "div",
13122
- {
13123
- className: cn(
13124
- "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]",
13125
- 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]"
13126
- ),
13127
- children: [
13128
- /* @__PURE__ */ jsx(
13129
- "span",
13130
- {
13131
- className: cn(
13132
- !isSelected && "text-[#D9DCE1] group-hover:text-[#00CBEB]"
13133
- ),
13134
- children: isSelected ? /* @__PURE__ */ jsx(PurposeCheckedIcon, {}) : /* @__PURE__ */ jsx(PurposeRadioIcon, {})
13135
- }
13136
- ),
13137
- item.label || item.type
13138
- ]
13139
- }
13140
- ),
13141
- !!item.purposeNote && /* @__PURE__ */ jsx("p", { className: " px-[16px] py-[8px] text-[14px] font-medium leading-[1.35] text-[#080A0F] l:text-[13px]", children: item.purposeNote })
13142
- ]
13143
- },
13144
- `${item.type || item.label || "purpose"}-${index}`
13145
- );
13146
- })
13147
- }
13148
- )
13149
- ]
13150
- }
13063
+ !!purposeOptions.length && /* @__PURE__ */ jsx("div", { className: cn("pb-[40px] l:pb-[24px]", className), children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-[16px] l:grid-cols-1", children: [
13064
+ /* @__PURE__ */ jsxs(
13065
+ "section",
13066
+ {
13067
+ className: cn(
13068
+ "flex flex-col rounded-[16px] bg-white px-[32px] pt-[24px] pb-0 l:rounded-[12px] l:px-[16px] l:pt-[20px]",
13069
+ // 右侧 POD 卡存在时左卡高度由其撑开(与下拉版一致),选项列表内部滚动,
13070
+ // 避免选项+说明过多把左卡撑得比右卡高;h-0 让本卡不参与 grid 行高计算
13071
+ isPodSelected && !!selectedPodContent && "min-l:h-0 min-l:min-h-full min-l:overflow-hidden"
13151
13072
  ),
13152
- isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxs("section", { className: "rounded-[16px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
13153
- !!selectedPodContent.title && /* @__PURE__ */ jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
13154
- !!selectedPodDescription && /* @__PURE__ */ jsx("p", { className: "mt-[6px] text-[13px] font-medium leading-[1.35] text-[#080A0F] l:text-[12px]", children: selectedPodDescription }),
13155
- !!selectedPodImage && /* @__PURE__ */ jsxs("div", { className: "w-full rounded-[8px] flex mt-4 bg-[#F5F6F7] flex-col items-center justify-center", children: [
13156
- /* @__PURE__ */ jsx(
13157
- "img",
13158
- {
13159
- src: selectedPodImage,
13160
- alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
13161
- className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
13162
- }
13163
- ),
13164
- bookingDesign?.material && /* @__PURE__ */ jsx("div", { className: "mt-4 text-[16px] l:text-[14px] text-[#080A0F] font-bold mb-2", children: bookingDesign?.material })
13165
- ] }),
13166
- !!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxs(
13167
- "a",
13073
+ children: [
13074
+ /* @__PURE__ */ jsx(
13075
+ "p",
13168
13076
  {
13169
- href: selectedPodButtonLink || "#",
13170
- "aria-disabled": isPodButtonDisabled,
13171
- tabIndex: isPodButtonDisabled ? -1 : void 0,
13172
- onClick: (event2) => {
13173
- if (isPodButtonDisabled) {
13174
- event2.preventDefault();
13175
- return;
13176
- }
13177
- trackCallbacks?.onPodDesignClick?.({
13178
- buttonText: selectedPodButtonText || "",
13179
- url: selectedPodButtonLink || "",
13180
- isEditMode: isPodDesignEditMode
13181
- });
13182
- },
13183
- rel: "noopener noreferrer",
13077
+ id: "booking-purpose-label",
13078
+ className: "block text-[16px] font-bold text-[#080A0F] l:text-[14px]",
13079
+ children: getPurposeLabel(pageData)
13080
+ }
13081
+ ),
13082
+ /* @__PURE__ */ jsx(
13083
+ "div",
13084
+ {
13085
+ role: "radiogroup",
13086
+ "aria-labelledby": "booking-purpose-label",
13184
13087
  className: cn(
13185
- "mt-[16px] h-[42px] inline-flex items-center border-2 justify-center gap-[6px] rounded-full px-[24px] text-[14px] font-bold transition-colors",
13186
- isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50",
13187
- isPodDesignEditMode ? "text-[#080A0F] border-[#080A0F]" : "text-white bg-[#080A0F] border-[#080A0F]"
13088
+ "mt-[14px] flex min-h-0 flex-col gap-[16px] overflow-y-auto pr-[4px]",
13089
+ // 仅右侧 POD 卡存在时列表受其高度约束内部滚动;其余情况不限高
13090
+ isPodSelected && !!selectedPodContent && "min-l:flex-1"
13188
13091
  ),
13189
- children: [
13190
- /* @__PURE__ */ jsxs(
13191
- "svg",
13092
+ children: purposeOptions.map((item, index) => {
13093
+ const isSelected = !!item.type && selectedPurpose?.type === item.type;
13094
+ const selectItem = () => {
13095
+ if (token) return;
13096
+ setSelectedPurposeType(item.type || "");
13097
+ setIsPurposeConfirmed(true);
13098
+ };
13099
+ return /* @__PURE__ */ jsxs(
13100
+ "div",
13192
13101
  {
13193
- xmlns: "http://www.w3.org/2000/svg",
13194
- width: "20",
13195
- height: "20",
13196
- viewBox: "0 0 20 20",
13197
- fill: "none",
13102
+ role: "radio",
13103
+ "aria-checked": isSelected,
13104
+ tabIndex: token ? -1 : 0,
13105
+ onClick: selectItem,
13106
+ onKeyDown: (event2) => {
13107
+ if (event2.key === "Enter" || event2.key === " ") {
13108
+ event2.preventDefault();
13109
+ selectItem();
13110
+ }
13111
+ },
13112
+ className: cn(
13113
+ "shrink-0 cursor-pointer overflow-hidden rounded-[8px] bg-[#F5F6F7] outline-none l:rounded-[6px]",
13114
+ token && "pointer-events-none cursor-not-allowed"
13115
+ ),
13198
13116
  children: [
13199
- /* @__PURE__ */ jsx(
13200
- "path",
13117
+ /* @__PURE__ */ jsxs(
13118
+ "div",
13201
13119
  {
13202
- 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",
13203
- fill: "currentColor"
13120
+ className: cn(
13121
+ "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]",
13122
+ 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]"
13123
+ ),
13124
+ children: [
13125
+ /* @__PURE__ */ jsx(
13126
+ "span",
13127
+ {
13128
+ className: cn(
13129
+ !isSelected && "text-[#D9DCE1] group-hover:text-[#00CBEB]"
13130
+ ),
13131
+ children: isSelected ? /* @__PURE__ */ jsx(PurposeCheckedIcon, {}) : /* @__PURE__ */ jsx(PurposeRadioIcon, {})
13132
+ }
13133
+ ),
13134
+ item.label || item.type
13135
+ ]
13204
13136
  }
13205
13137
  ),
13206
- /* @__PURE__ */ jsx(
13207
- "path",
13208
- {
13209
- 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",
13210
- fill: "currentColor"
13211
- }
13212
- )
13138
+ !!item.purposeNote && /* @__PURE__ */ jsx("p", { className: " px-[16px] py-[8px] text-[14px] font-[700] leading-[1.35] text-[#4A4C56] l:text-[13px]", children: item.purposeNote })
13213
13139
  ]
13214
- }
13215
- ),
13216
- selectedPodButtonText
13217
- ]
13140
+ },
13141
+ `${item.type || item.label || "purpose"}-${index}`
13142
+ );
13143
+ })
13218
13144
  }
13219
13145
  )
13220
- ] })
13221
- ]
13222
- }
13223
- ) }),
13146
+ ]
13147
+ }
13148
+ ),
13149
+ isPodSelected && !!selectedPodContent && /* @__PURE__ */ jsxs("section", { className: "rounded-[16px] l:rounded-[12px] bg-white px-[28px] py-[20px] l:px-[16px] l:py-[20px]", children: [
13150
+ !!selectedPodContent.title && /* @__PURE__ */ jsx("h2", { className: "text-[16px] font-bold text-[#080A0F] l:text-[14px]", children: selectedPodContent.title }),
13151
+ !!selectedPodDescription && /* @__PURE__ */ jsx("p", { className: "mt-[6px] text-[13px] font-[700] leading-[1.35] text-[#4A4C56] l:text-[12px]", children: selectedPodDescription }),
13152
+ !!selectedPodImage && /* @__PURE__ */ jsxs("div", { className: "w-full rounded-[8px] flex mt-4 bg-[#F5F6F7] flex-col items-center justify-center", children: [
13153
+ /* @__PURE__ */ jsx(
13154
+ "img",
13155
+ {
13156
+ src: selectedPodImage,
13157
+ alt: selectedPodContent.imageAlt || selectedPodContent.title || "",
13158
+ className: "mt-[12px] h-[220px] rounded-[8px] object-cover max-h-[360px]"
13159
+ }
13160
+ ),
13161
+ bookingDesign?.material && /* @__PURE__ */ jsx("div", { className: "mt-4 text-[16px] l:text-[14px] text-[#080A0F] font-bold mb-2", children: bookingDesign?.material })
13162
+ ] }),
13163
+ !!selectedPodButtonText && (booking?.print_status === "unprinted" && booking?.design_project_id || !token) && /* @__PURE__ */ jsxs(
13164
+ "a",
13165
+ {
13166
+ href: selectedPodButtonLink || "#",
13167
+ "aria-disabled": isPodButtonDisabled,
13168
+ tabIndex: isPodButtonDisabled ? -1 : void 0,
13169
+ onClick: (event2) => {
13170
+ if (isPodButtonDisabled) {
13171
+ event2.preventDefault();
13172
+ return;
13173
+ }
13174
+ trackCallbacks?.onPodDesignClick?.({
13175
+ buttonText: selectedPodButtonText || "",
13176
+ url: selectedPodButtonLink || "",
13177
+ isEditMode: isPodDesignEditMode
13178
+ });
13179
+ },
13180
+ rel: "noopener noreferrer",
13181
+ className: cn(
13182
+ "mt-[16px] h-[42px] inline-flex items-center border-2 justify-center gap-[6px] rounded-full px-[24px] text-[14px] font-bold transition-colors",
13183
+ isPodButtonDisabled && "pointer-events-none cursor-not-allowed opacity-50",
13184
+ isPodDesignEditMode ? "text-[#080A0F] border-[#080A0F]" : "text-white bg-[#080A0F] border-[#080A0F]"
13185
+ ),
13186
+ children: [
13187
+ /* @__PURE__ */ jsxs(
13188
+ "svg",
13189
+ {
13190
+ xmlns: "http://www.w3.org/2000/svg",
13191
+ width: "20",
13192
+ height: "20",
13193
+ viewBox: "0 0 20 20",
13194
+ fill: "none",
13195
+ children: [
13196
+ /* @__PURE__ */ jsx(
13197
+ "path",
13198
+ {
13199
+ 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",
13200
+ fill: "currentColor"
13201
+ }
13202
+ ),
13203
+ /* @__PURE__ */ jsx(
13204
+ "path",
13205
+ {
13206
+ 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",
13207
+ fill: "currentColor"
13208
+ }
13209
+ )
13210
+ ]
13211
+ }
13212
+ ),
13213
+ selectedPodButtonText
13214
+ ]
13215
+ }
13216
+ )
13217
+ ] })
13218
+ ] }) }),
13224
13219
  /* @__PURE__ */ jsx("div", { className, children: /* @__PURE__ */ jsx(
13225
13220
  DateTimePicker_default2,
13226
13221
  {