@timardex/cluemart-shared 1.5.793 → 1.5.794

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.
@@ -23,7 +23,7 @@ import {
23
23
  formatStallCapacityLabel,
24
24
  normalizeShareRouteId,
25
25
  shareSlugResourceId
26
- } from "../chunk-7TMY5XDJ.mjs";
26
+ } from "../chunk-CID7QC75.mjs";
27
27
  import {
28
28
  DEFAULT_SHARE_OG_IMAGE,
29
29
  OG_DESCRIPTION_LINE_BREAK,
@@ -70,7 +70,7 @@ import {
70
70
  shareMessageFooterPlacementForType,
71
71
  splitShareDescriptionSections,
72
72
  stripOverlaySubtitleSpecialChars
73
- } from "../chunk-P2YIB4MR.mjs";
73
+ } from "../chunk-S7C3MFZF.mjs";
74
74
  import "../chunk-XY5XRXR3.mjs";
75
75
  import "../chunk-LETM2YHF.mjs";
76
76
  export {
@@ -64,6 +64,7 @@ __export(utils_exports, {
64
64
  filterVendorEventsBySelectedDate: () => filterVendorEventsBySelectedDate,
65
65
  findEventDateTimeByIsoDate: () => findEventDateTimeByIsoDate,
66
66
  formatDate: () => formatDate,
67
+ formatNZBankAccount: () => formatNZBankAccount,
67
68
  formatTimestamp: () => formatTimestamp,
68
69
  fromCalendarIsoDate: () => fromCalendarIsoDate,
69
70
  futureTimePeriods: () => futureTimePeriods,
@@ -434,6 +435,15 @@ var PostTypeLabels = {
434
435
  };
435
436
  var CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;
436
437
  var CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;
438
+ function formatNZBankAccount(input) {
439
+ const digitsOnly = input.replaceAll(/\D/g, "");
440
+ const parts = [];
441
+ if (digitsOnly.length > 0) parts.push(digitsOnly.slice(0, 2));
442
+ if (digitsOnly.length > 2) parts.push(digitsOnly.slice(2, 6));
443
+ if (digitsOnly.length > 6) parts.push(digitsOnly.slice(6, 13));
444
+ if (digitsOnly.length > 13) parts.push(digitsOnly.slice(13, 15));
445
+ return parts.join("-");
446
+ }
437
447
 
438
448
  // src/utils/date.ts
439
449
  var dateFormat = "DD-MM-YYYY";
@@ -1939,6 +1949,7 @@ function getVendorEventsEmptyMessage() {
1939
1949
  filterVendorEventsBySelectedDate,
1940
1950
  findEventDateTimeByIsoDate,
1941
1951
  formatDate,
1952
+ formatNZBankAccount,
1942
1953
  formatTimestamp,
1943
1954
  fromCalendarIsoDate,
1944
1955
  futureTimePeriods,