@asdp/ferryui 0.1.22-dev.9336 → 0.1.22-dev.9339

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
@@ -212,28 +212,8 @@ var DEFAULT_LABELS2 = {
212
212
  }
213
213
  };
214
214
 
215
- // src/constants/generated/tokens.ts
216
- var brandColors = {
217
- "10": "#000000",
218
- "20": "#03060e",
219
- "30": "#060b1c",
220
- "40": "#09112a",
221
- "50": "#0c1738",
222
- "60": "#122255",
223
- "70": "#182e71",
224
- "80": "#1e398d",
225
- "90": "#4b60a4",
226
- "100": "#7787bb",
227
- "110": "#a4afd1",
228
- "120": "#bac2dd",
229
- "130": "#d0d6e8",
230
- "140": "#e7e9f4",
231
- "150": "#fdfdff",
232
- "160": "#ffffff"
233
- };
234
-
235
215
  // src/constants/generated/tokensV2.ts
236
- var brandColors2 = {
216
+ var brandColors = {
237
217
  "10": "#001a1bff",
238
218
  "20": "#02383bff",
239
219
  "30": "#002426",
@@ -251,7 +231,7 @@ var brandColors2 = {
251
231
  "150": "#fdfdff",
252
232
  "160": "#ffffff"
253
233
  };
254
- var spacing2 = {
234
+ var spacing = {
255
235
  "360": 36};
256
236
  var fontWeight = {
257
237
  "Medium": 500};
@@ -259,36 +239,31 @@ var sharedColors = {
259
239
  "Shared_Cranberry_Primary": "#c50f1f",
260
240
  "Shared_Red_Primary": "#d13438",
261
241
  "Shared_Green_Primary": "#107c10"};
262
- var lightModeColors2 = {
242
+ var lightModeColors = {
263
243
  "Neutral_Foreground_Disabled_Rest": "#bdbdbd",
264
244
  "Brand_Stroke_1_Rest": "#00B3BD"};
265
245
  var tokensV2_default = {
266
- lightModeColors: lightModeColors2};
246
+ lightModeColors};
267
247
 
268
248
  // src/constants/brandColors.ts
269
- var isV2Path = typeof window !== "undefined" && window.location.pathname.startsWith("/v2");
270
- var brandColors3 = !isV2Path ? brandColors2 : brandColors;
271
249
  var customBrand = {
272
- 10: brandColors3["10"],
273
- 20: brandColors3["20"],
274
- 30: brandColors3["30"],
275
- 40: brandColors3["40"],
276
- 50: brandColors3["50"],
277
- 60: brandColors3["60"],
278
- 70: brandColors3["70"],
279
- 80: brandColors3["80"],
280
- 90: brandColors3["90"],
281
- 100: brandColors3["100"],
282
- 110: brandColors3["110"],
283
- 120: brandColors3["120"],
284
- 130: brandColors3["130"],
285
- 140: brandColors3["140"],
286
- 150: brandColors3["150"],
287
- 160: brandColors3["160"]
250
+ 10: brandColors["10"],
251
+ 20: brandColors["20"],
252
+ 30: brandColors["30"],
253
+ 40: brandColors["40"],
254
+ 50: brandColors["50"],
255
+ 60: brandColors["60"],
256
+ 70: brandColors["70"],
257
+ 80: brandColors["80"],
258
+ 90: brandColors["90"],
259
+ 100: brandColors["100"],
260
+ 110: brandColors["110"],
261
+ 120: brandColors["120"],
262
+ 130: brandColors["130"],
263
+ 140: brandColors["140"],
264
+ 150: brandColors["150"],
265
+ 160: brandColors["160"]
288
266
  };
289
-
290
- // src/constants/designTokens.ts
291
- typeof window !== "undefined" && window.location.pathname.startsWith("/v2");
292
267
  var designTokens = {
293
268
  // Breakpoints for responsive design
294
269
  breakpoints: {
@@ -483,7 +458,7 @@ var useStyles2 = makeStyles({
483
458
  carousel: {},
484
459
  carouselContainer: {
485
460
  display: "flex",
486
- gap: `${spacing2[360]}px`,
461
+ gap: `${spacing[360]}px`,
487
462
  alignItems: "center",
488
463
  justifyContent: "start",
489
464
  [`@media (max-width: ${extendedTokens.breakpointMd})`]: {
@@ -584,6 +559,7 @@ var useStyles2 = makeStyles({
584
559
  },
585
560
  singleIndicatorWrapper: {
586
561
  display: "flex",
562
+ width: "100%",
587
563
  justifyContent: "center",
588
564
  alignItems: "center",
589
565
  marginTop: tokens.spacingVerticalXXL,
@@ -750,7 +726,7 @@ var CarouselWithCustomNav = ({
750
726
  className: styles.singleIndicatorWrapper,
751
727
  style: {
752
728
  backgroundColor: darkNavBackground ? tokens.colorSubtleBackgroundInverted : tokens.colorSubtleBackground,
753
- justifyContent: align === "start" ? "flex-start" : align === "end" ? "flex-end" : "center"
729
+ justifyContent: "center"
754
730
  },
755
731
  children: /* @__PURE__ */ jsx("span", { className: styles.singleIndicatorDot })
756
732
  }
@@ -758,9 +734,10 @@ var CarouselWithCustomNav = ({
758
734
  CarouselNav,
759
735
  {
760
736
  style: {
737
+ width: "100%",
761
738
  backgroundColor: darkNavBackground ? tokens.colorSubtleBackgroundInverted : tokens.colorSubtleBackground,
762
739
  marginTop: tokens.spacingVerticalXXL,
763
- justifyContent: align === "start" ? "flex-start" : align === "end" ? "flex-end" : "center"
740
+ justifyContent: "center"
764
741
  },
765
742
  appearance: "brand",
766
743
  className: styles.carouselNavButton,
@@ -1701,7 +1678,7 @@ var CardTicket = ({
1701
1678
  {
1702
1679
  onClick: onSelectTicket,
1703
1680
  appearance: "primary",
1704
- style: { backgroundColor: brandColors2["60"] },
1681
+ style: { backgroundColor: brandColors["60"] },
1705
1682
  size: "medium",
1706
1683
  shape: "circular",
1707
1684
  icon: /* @__PURE__ */ jsx(Icon, { icon: "fluent:ticket-diagonal-24-filled" }),
@@ -2205,7 +2182,7 @@ var useStyles7 = makeStyles({
2205
2182
  gap: "12px",
2206
2183
  width: "100%",
2207
2184
  "&:hover": {
2208
- backgroundColor: tokens.colorNeutralBackground1Hover
2185
+ backgroundColor: brandColors["140"]
2209
2186
  },
2210
2187
  // Tablet: compact column, fixed width, description visible (1 line)
2211
2188
  [`@media (${BP_TABLET2})`]: {
@@ -2227,10 +2204,10 @@ var useStyles7 = makeStyles({
2227
2204
  }
2228
2205
  },
2229
2206
  menuItemActive: {
2230
- backgroundColor: tokens.colorNeutralBackground3,
2207
+ backgroundColor: brandColors["140"],
2231
2208
  color: tokens.colorNeutralForeground1,
2232
2209
  "&:hover": {
2233
- backgroundColor: tokens.colorNeutralBackground3Hover
2210
+ backgroundColor: brandColors["140"]
2234
2211
  }
2235
2212
  },
2236
2213
  // Icon wrapper — rounded bg on mobile
@@ -2370,13 +2347,42 @@ var CardServiceMenu = ({
2370
2347
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2371
2348
  /* @__PURE__ */ jsx(Card, { className: mergeClasses(styles.card, className), children: /* @__PURE__ */ jsxs("div", { className: styles.menuList, children: [
2372
2349
  isLoading ? Array.from({ length: skeletonCount }).map((_, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
2373
- /* @__PURE__ */ jsxs("div", { className: mergeClasses(styles.menuItem, styles.skeletonOverride), children: [
2374
- /* @__PURE__ */ jsx("div", { className: styles.logoWrapper, children: /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(SkeletonItem, { className: styles.logo, style: { borderRadius: "50%" } }) }) }),
2375
- /* @__PURE__ */ jsxs("div", { className: styles.textContent, children: [
2376
- /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(SkeletonItem, { style: { width: "60%", height: "16px" } }) }),
2377
- showDescriptions && /* @__PURE__ */ jsx(Skeleton, { className: styles.description, children: /* @__PURE__ */ jsx(SkeletonItem, { style: { width: "90%", height: "12px", marginTop: "4px" } }) })
2378
- ] })
2379
- ] }),
2350
+ /* @__PURE__ */ jsxs(
2351
+ "div",
2352
+ {
2353
+ className: mergeClasses(
2354
+ styles.menuItem,
2355
+ styles.skeletonOverride
2356
+ ),
2357
+ children: [
2358
+ /* @__PURE__ */ jsx("div", { className: styles.logoWrapper, children: /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(
2359
+ SkeletonItem,
2360
+ {
2361
+ className: styles.logo,
2362
+ style: { borderRadius: "50%" }
2363
+ }
2364
+ ) }) }),
2365
+ /* @__PURE__ */ jsxs("div", { className: styles.textContent, children: [
2366
+ /* @__PURE__ */ jsx(Skeleton, { children: /* @__PURE__ */ jsx(
2367
+ SkeletonItem,
2368
+ {
2369
+ style: { width: "60%", height: "16px" }
2370
+ }
2371
+ ) }),
2372
+ showDescriptions && /* @__PURE__ */ jsx(Skeleton, { className: styles.description, children: /* @__PURE__ */ jsx(
2373
+ SkeletonItem,
2374
+ {
2375
+ style: {
2376
+ width: "90%",
2377
+ height: "12px",
2378
+ marginTop: "4px"
2379
+ }
2380
+ }
2381
+ ) })
2382
+ ] })
2383
+ ]
2384
+ }
2385
+ ),
2380
2386
  index < skeletonCount - 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
2381
2387
  /* @__PURE__ */ jsx(Divider, { className: styles.dividerHorizontal }),
2382
2388
  /* @__PURE__ */ jsx(Divider, { vertical: true, className: styles.dividerVertical })
@@ -4381,13 +4387,16 @@ var useStyles9 = makeStyles({
4381
4387
  display: "flex",
4382
4388
  justifyContent: "center",
4383
4389
  position: "absolute",
4384
- left: "18px",
4390
+ // left: "1px",
4385
4391
  bottom: "-16px",
4386
- width: "90%"
4392
+ width: "100%"
4387
4393
  },
4388
4394
  buttonSwitch: {
4389
4395
  background: tokens.colorNeutralBackground1,
4390
- boxShadow: `0 1px 2px 0 ${tokens.colorNeutralShadowKey}, 0 0 2px 0 ${tokens.colorNeutralShadowAmbient}`
4396
+ boxShadow: `0 1px 2px 0 ${tokens.colorNeutralShadowKey}, 0 0 2px 0 ${tokens.colorNeutralShadowAmbient}`,
4397
+ position: "absolute",
4398
+ right: "1rem",
4399
+ bottom: "-20px"
4391
4400
  },
4392
4401
  switchIcon: {
4393
4402
  display: "inline-flex",
@@ -4418,11 +4427,15 @@ var useStyles9 = makeStyles({
4418
4427
  }
4419
4428
  },
4420
4429
  formContainerCol: {
4430
+ paddingTop: "1rem !important",
4431
+ paddingBottom: "1rem !important",
4421
4432
  [`@media (max-width: ${extendedTokens.breakpointXl})`]: {
4422
4433
  paddingLeft: "20px !important",
4423
4434
  paddingRight: "20px !important",
4424
4435
  marginBottom: "1rem",
4425
- marginTop: "8rem"
4436
+ marginTop: "8rem",
4437
+ paddingTop: "0px !mportant",
4438
+ paddingBottom: "0px !mportant"
4426
4439
  }
4427
4440
  },
4428
4441
  serviceCol: {
@@ -4600,7 +4613,7 @@ var CardTicketSearch = ({
4600
4613
  className: styles.formContainerCol,
4601
4614
  children: /* @__PURE__ */ jsx("form", { onSubmit: handleSubmit(handleFormSubmit), children: /* @__PURE__ */ jsxs(Row, { style: { width: "100%" }, className: styles.formInnerRow, children: [
4602
4615
  /* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, lg: 12, xl: 6, xxl: 6, xxxl: 6, children: /* @__PURE__ */ jsxs(Row, { style: { gap: "16px" }, className: styles.formFieldRow, children: [
4603
- /* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsxs(Row, { children: [
4616
+ /* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsxs(Row, { style: { height: "100%", gap: "16px" }, children: [
4604
4617
  /* @__PURE__ */ jsxs(
4605
4618
  Col,
4606
4619
  {
@@ -4611,6 +4624,9 @@ var CardTicketSearch = ({
4611
4624
  xl: 12,
4612
4625
  xxl: 12,
4613
4626
  xxxl: 12,
4627
+ style: {
4628
+ borderBottom: `1px solid ${tokens.colorNeutralStroke1}`
4629
+ },
4614
4630
  children: [
4615
4631
  /* @__PURE__ */ jsx(
4616
4632
  InputDynamic_default,
@@ -4637,37 +4653,33 @@ var CardTicketSearch = ({
4637
4653
  required: true
4638
4654
  }
4639
4655
  ),
4640
- /* @__PURE__ */ jsxs("div", { className: styles.deviderButton, children: [
4641
- /* @__PURE__ */ jsx(Divider, {}),
4642
- " ",
4643
- /* @__PURE__ */ jsx(
4644
- Button,
4645
- {
4646
- onClick: onSwitchClick,
4647
- className: styles.buttonSwitch,
4648
- shape: "circular",
4649
- appearance: "secondary",
4650
- size: "large",
4651
- disabled: switchDisabled,
4652
- "aria-label": labels.switchAriaLabel,
4653
- icon: /* @__PURE__ */ jsx(
4654
- "div",
4655
- {
4656
- className: `${styles.switchIcon} ${isRotating ? styles.switchIconRotate : ""}`,
4657
- children: /* @__PURE__ */ jsx(
4658
- "img",
4659
- {
4660
- src: "/assets/images/icons/switch.svg",
4661
- alt: labels.switchAriaLabel,
4662
- width: 26,
4663
- height: 26
4664
- }
4665
- )
4666
- }
4667
- )
4668
- }
4669
- )
4670
- ] })
4656
+ /* @__PURE__ */ jsx(
4657
+ Button,
4658
+ {
4659
+ onClick: onSwitchClick,
4660
+ className: styles.buttonSwitch,
4661
+ shape: "circular",
4662
+ appearance: "secondary",
4663
+ size: "large",
4664
+ disabled: switchDisabled,
4665
+ "aria-label": labels.switchAriaLabel,
4666
+ icon: /* @__PURE__ */ jsx(
4667
+ "div",
4668
+ {
4669
+ className: `${styles.switchIcon} ${isRotating ? styles.switchIconRotate : ""}`,
4670
+ children: /* @__PURE__ */ jsx(
4671
+ "img",
4672
+ {
4673
+ src: "/assets/images/icons/switch.svg",
4674
+ alt: labels.switchAriaLabel,
4675
+ width: 26,
4676
+ height: 26
4677
+ }
4678
+ )
4679
+ }
4680
+ )
4681
+ }
4682
+ )
4671
4683
  ]
4672
4684
  }
4673
4685
  ),
@@ -4842,6 +4854,40 @@ var CardTicketSearch = ({
4842
4854
  },
4843
4855
  className: styles.serviceCol,
4844
4856
  children: /* @__PURE__ */ jsxs(Row, { style: { height: "100%", gap: "16px" }, children: [
4857
+ /* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsx(Row, { style: { height: "100%", gap: "16px" }, children: /* @__PURE__ */ jsx(
4858
+ Col,
4859
+ {
4860
+ xs: 12,
4861
+ sm: 12,
4862
+ md: 12,
4863
+ lg: 12,
4864
+ xl: 12,
4865
+ xxl: 12,
4866
+ xxxl: 12,
4867
+ children: /* @__PURE__ */ jsx(
4868
+ InputDynamic_default,
4869
+ {
4870
+ name: "serviceClass",
4871
+ label: labels.serviceClassLabel,
4872
+ control,
4873
+ type: "text",
4874
+ contentBefore: /* @__PURE__ */ jsx(
4875
+ Icon,
4876
+ {
4877
+ icon: "fluent:ribbon-star-24-filled",
4878
+ color: tokens.colorBrandBackground
4879
+ }
4880
+ ),
4881
+ appearance: "filled-lighter",
4882
+ size: "large",
4883
+ placeholder: labels.placeholderTypeClass,
4884
+ onClick: onServiceClassClick,
4885
+ required: true,
4886
+ disabled: serviceClassDisabled
4887
+ }
4888
+ )
4889
+ }
4890
+ ) }) }) }),
4845
4891
  /* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsx("div", { className: styles.formField, children: /* @__PURE__ */ jsxs(Row, { style: { height: "100%", gap: "16px" }, children: [
4846
4892
  /* @__PURE__ */ jsx(
4847
4893
  Col,
@@ -4853,40 +4899,9 @@ var CardTicketSearch = ({
4853
4899
  xl: 12,
4854
4900
  xxl: 12,
4855
4901
  xxxl: 12,
4856
- children: /* @__PURE__ */ jsx(
4857
- InputDynamic_default,
4858
- {
4859
- name: "serviceClass",
4860
- label: labels.serviceClassLabel,
4861
- control,
4862
- type: "text",
4863
- contentBefore: /* @__PURE__ */ jsx(
4864
- Icon,
4865
- {
4866
- icon: "fluent:ribbon-star-24-filled",
4867
- color: tokens.colorBrandBackground
4868
- }
4869
- ),
4870
- appearance: "filled-lighter",
4871
- size: "large",
4872
- placeholder: labels.placeholderTypeClass,
4873
- onClick: onServiceClassClick,
4874
- required: true,
4875
- disabled: serviceClassDisabled
4876
- }
4877
- )
4878
- }
4879
- ),
4880
- /* @__PURE__ */ jsx(
4881
- Col,
4882
- {
4883
- xs: 12,
4884
- sm: 12,
4885
- md: 12,
4886
- lg: 12,
4887
- xl: 12,
4888
- xxl: 12,
4889
- xxxl: 12,
4902
+ style: {
4903
+ borderBottom: showPassengerField ? `1px solid ${tokens.colorNeutralStroke1}` : "none"
4904
+ },
4890
4905
  children: /* @__PURE__ */ jsx(
4891
4906
  InputDynamic_default,
4892
4907
  {
@@ -4912,7 +4927,7 @@ var CardTicketSearch = ({
4912
4927
  )
4913
4928
  }
4914
4929
  ),
4915
- showPassengerField && /* @__PURE__ */ jsx(
4930
+ showPassengerField && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
4916
4931
  Col,
4917
4932
  {
4918
4933
  xs: 12,
@@ -4944,7 +4959,7 @@ var CardTicketSearch = ({
4944
4959
  }
4945
4960
  )
4946
4961
  }
4947
- )
4962
+ ) })
4948
4963
  ] }) }) }),
4949
4964
  /* @__PURE__ */ jsx(Col, { xs: 12, sm: 12, lg: 12, xl: 12, xxl: 12, xxxl: 12, children: /* @__PURE__ */ jsx(
4950
4965
  Button,
@@ -5478,7 +5493,7 @@ var useStyles11 = makeStyles({
5478
5493
  circularButton: {
5479
5494
  borderRadius: tokens.borderRadius3XLarge,
5480
5495
  border: `1px solid ${tokens.colorBrandBackground}`,
5481
- backgroundColor: brandColors2["140"],
5496
+ backgroundColor: brandColors["140"],
5482
5497
  gap: "5px"
5483
5498
  },
5484
5499
  buttonContent: {
@@ -14160,7 +14175,7 @@ var FileUpload = React.forwardRef(
14160
14175
  icon: "fluent:document-pdf-32-regular",
14161
14176
  width: 32,
14162
14177
  height: 32,
14163
- style: { flexShrink: 0, color: brandColors2[80] }
14178
+ style: { flexShrink: 0, color: brandColors[80] }
14164
14179
  }
14165
14180
  )
14166
14181
  }
@@ -14179,7 +14194,7 @@ var FileUpload = React.forwardRef(
14179
14194
  {
14180
14195
  appearance: "transparent",
14181
14196
  size: "small",
14182
- style: { color: brandColors2[80] },
14197
+ style: { color: brandColors[80] },
14183
14198
  onClick: (e) => handlePreview(e, displayFile),
14184
14199
  children: mergedLabels.preview
14185
14200
  }
@@ -14236,7 +14251,7 @@ var FileUpload = React.forwardRef(
14236
14251
  {
14237
14252
  icon: "fluent:arrow-upload-32-filled",
14238
14253
  style: {
14239
- color: brandColors2[80],
14254
+ color: brandColors[80],
14240
14255
  maxWidth: "32px",
14241
14256
  width: "32px",
14242
14257
  maxHeight: "32px",
@@ -14285,7 +14300,7 @@ var FileUpload = React.forwardRef(
14285
14300
  icon: "fluent:document-pdf-32-regular",
14286
14301
  width: 32,
14287
14302
  height: 32,
14288
- style: { flexShrink: 0, color: brandColors2[80] }
14303
+ style: { flexShrink: 0, color: brandColors[80] }
14289
14304
  }
14290
14305
  )
14291
14306
  }
@@ -14341,7 +14356,7 @@ var FileUpload = React.forwardRef(
14341
14356
  {
14342
14357
  appearance: "transparent",
14343
14358
  size: "small",
14344
- style: { color: brandColors2[80] },
14359
+ style: { color: brandColors[80] },
14345
14360
  onClick: (e) => handlePreview(e, displayFile),
14346
14361
  children: mergedLabels.preview
14347
14362
  }
@@ -14395,7 +14410,7 @@ var FileUpload = React.forwardRef(
14395
14410
  appearance: "transparent",
14396
14411
  size: "small",
14397
14412
  icon: /* @__PURE__ */ jsx(ArrowDownloadRegular, {}),
14398
- style: { display: "flex", justifyContent: "end", color: brandColors2[80], width: "100%" },
14413
+ style: { display: "flex", justifyContent: "end", color: brandColors[80], width: "100%" },
14399
14414
  onClick: (e) => handleDownloadFile(e, displayFile),
14400
14415
  disabled: !(displayFile instanceof File),
14401
14416
  children: mergedLabels.downloadTemplateDocument
@@ -14518,6 +14533,107 @@ var CardProfileMenu = ({
14518
14533
  ) });
14519
14534
  };
14520
14535
 
14521
- export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard_default as BackgroundTicketCard, BackgroundTicketCardVertical_default as BackgroundTicketCardVertical, COUNTRIES, CardAddon, CardBanner, CardBookingTicket, CardFAQ, CardMealCatalog, CardOrdererInfo, CardPassengerList, CardPaymentGuide, CardPaymentInfo, CardPaymentMethodList, CardPriceDetails, CardProfileMenu, CardPromo, CardReview, CardReviewPassenger, CardServiceMenu, CardStatusOrder, CardTicket, CardTicketSearch, DEFAULT_LABELS8 as CardTicketSearchDefaultLabels, CardTicketSearchSummary, DEFAULT_LABELS9 as CardTicketSearchSummaryDefaultLabels, CardVehicleDetail, CardVehicleOwnerForm, CarouselWithCustomNav, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS17 as DateFilterDefaultLabels, FileUpload_default as FileUpload, GENDER, HTTP_STATUS, IDENTITY_TYPE, InputDynamic_default as InputDynamic, LOAD_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, MY_TICKET_TAB, ModalFilterTicket, DEFAULT_LABELS16 as ModalFilterTicketDefaultLabels, ModalIllustration, ModalListMenuService, ModalListPassenger, ModalPassengerForm, ModalPreviewImage, ModalPriceDetail, ModalSearchHarbor, ModalSearchTicket, ModalSelectDate, ModalService, ModalTotalPassengers, ModalTypeOfService, PASSENGER_TYPE, SortMenu, Stepper, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
14536
+ // src/components/NoContent/NoContent.constants.ts
14537
+ var DEFAULT_LABELS40 = {
14538
+ id: {
14539
+ defaultImageAlt: "Tidak ada konten",
14540
+ defaultTitle: "Data {konten} belum bisa dimuat",
14541
+ defaultMessage: "Silahkan coba muat ulang halaman ini atau cek kembali beberapa saat lagi.",
14542
+ defaultButtonText: "Muat Ulang"
14543
+ },
14544
+ en: {
14545
+ defaultImageAlt: "No content available",
14546
+ defaultTitle: "Data {content} could not be loaded",
14547
+ defaultMessage: "Please try reloading this page or check back in a few moments.",
14548
+ defaultButtonText: "Reload"
14549
+ }
14550
+ };
14551
+ var getFormattedDefaultTitle = (template, content) => {
14552
+ if (content) {
14553
+ return template.replace(/\{(konten|content)\}/g, content);
14554
+ }
14555
+ return template.replace(/\s*\{(konten|content)\}\s*/g, " ").trim();
14556
+ };
14557
+ var useStyles42 = makeStyles({
14558
+ root: {
14559
+ display: "flex",
14560
+ flexDirection: "column",
14561
+ alignItems: "center",
14562
+ justifyContent: "center",
14563
+ gap: tokens.spacingVerticalL,
14564
+ textAlign: "center",
14565
+ paddingTop: tokens.spacingVerticalXXL,
14566
+ paddingBottom: tokens.spacingVerticalXXL,
14567
+ paddingLeft: tokens.spacingHorizontalXL,
14568
+ paddingRight: tokens.spacingHorizontalXL,
14569
+ width: "100%"
14570
+ },
14571
+ image: {
14572
+ maxWidth: "100%",
14573
+ height: "auto"
14574
+ },
14575
+ textContainer: {
14576
+ display: "flex",
14577
+ flexDirection: "column",
14578
+ alignItems: "center",
14579
+ gap: tokens.spacingVerticalS,
14580
+ maxWidth: "400px"
14581
+ },
14582
+ title: {
14583
+ fontWeight: "600"
14584
+ },
14585
+ message: {
14586
+ color: tokens.colorNeutralForeground3,
14587
+ textAlign: "center"
14588
+ }
14589
+ });
14590
+ var NoContent = ({
14591
+ title,
14592
+ content,
14593
+ message,
14594
+ imageSrc = "/assets/images/illustrations/no-content.svg",
14595
+ imageAlt,
14596
+ imageWidth = 240,
14597
+ imageHeight = 180,
14598
+ actionButton,
14599
+ language = "id",
14600
+ labels,
14601
+ className
14602
+ }) => {
14603
+ const styles = useStyles42();
14604
+ const mergedLabels = { ...DEFAULT_LABELS40[language], ...labels };
14605
+ const displayTitle = title ?? getFormattedDefaultTitle(mergedLabels.defaultTitle, content);
14606
+ const displayMessage = message ?? mergedLabels.defaultMessage;
14607
+ const displayImageAlt = imageAlt ?? mergedLabels.defaultImageAlt;
14608
+ return /* @__PURE__ */ jsxs("div", { className: mergeClasses(styles.root, className), children: [
14609
+ /* @__PURE__ */ jsx(
14610
+ "img",
14611
+ {
14612
+ src: imageSrc,
14613
+ alt: displayImageAlt,
14614
+ width: imageWidth,
14615
+ height: imageHeight,
14616
+ className: styles.image
14617
+ }
14618
+ ),
14619
+ /* @__PURE__ */ jsxs("div", { className: styles.textContainer, children: [
14620
+ /* @__PURE__ */ jsx(Subtitle1, { className: styles.title, children: displayTitle }),
14621
+ typeof displayMessage === "string" ? /* @__PURE__ */ jsx(Body1, { className: styles.message, children: displayMessage }) : displayMessage
14622
+ ] }),
14623
+ actionButton && /* @__PURE__ */ jsx(
14624
+ Button,
14625
+ {
14626
+ type: "button",
14627
+ appearance: actionButton.appearance || "primary",
14628
+ onClick: actionButton.onClick,
14629
+ shape: "circular",
14630
+ style: { width: "100%" },
14631
+ children: actionButton.text
14632
+ }
14633
+ )
14634
+ ] });
14635
+ };
14636
+
14637
+ export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard_default as BackgroundTicketCard, BackgroundTicketCardVertical_default as BackgroundTicketCardVertical, COUNTRIES, CardAddon, CardBanner, CardBookingTicket, CardFAQ, CardMealCatalog, CardOrdererInfo, CardPassengerList, CardPaymentGuide, CardPaymentInfo, CardPaymentMethodList, CardPriceDetails, CardProfileMenu, CardPromo, CardReview, CardReviewPassenger, CardServiceMenu, CardStatusOrder, CardTicket, CardTicketSearch, DEFAULT_LABELS8 as CardTicketSearchDefaultLabels, CardTicketSearchSummary, DEFAULT_LABELS9 as CardTicketSearchSummaryDefaultLabels, CardVehicleDetail, CardVehicleOwnerForm, CarouselWithCustomNav, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS17 as DateFilterDefaultLabels, FileUpload_default as FileUpload, GENDER, HTTP_STATUS, IDENTITY_TYPE, InputDynamic_default as InputDynamic, LOAD_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, MY_TICKET_TAB, ModalFilterTicket, DEFAULT_LABELS16 as ModalFilterTicketDefaultLabels, ModalIllustration, ModalListMenuService, ModalListPassenger, ModalPassengerForm, ModalPreviewImage, ModalPriceDetail, ModalSearchHarbor, ModalSearchTicket, ModalSelectDate, ModalService, ModalTotalPassengers, ModalTypeOfService, NoContent, DEFAULT_LABELS40 as NoContentDefaultLabels, PASSENGER_TYPE, SortMenu, Stepper, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
14522
14638
  //# sourceMappingURL=index.mjs.map
14523
14639
  //# sourceMappingURL=index.mjs.map