@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.
- package/dist/{chunk-7TMY5XDJ.mjs → chunk-CID7QC75.mjs} +2 -2
- package/dist/{chunk-RBIYRMQB.mjs → chunk-HO7KOQ6F.mjs} +2 -2
- package/dist/{chunk-AM6MIXMX.mjs → chunk-KKPVTN4B.mjs} +2 -2
- package/dist/{chunk-P2YIB4MR.mjs → chunk-S7C3MFZF.mjs} +11 -1
- package/dist/{chunk-P2YIB4MR.mjs.map → chunk-S7C3MFZF.mjs.map} +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/hooks/index.mjs +4 -4
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.mjs +2 -2
- package/dist/utils/index.cjs +11 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.mjs +4 -2
- package/package.json +1 -1
- /package/dist/{chunk-7TMY5XDJ.mjs.map → chunk-CID7QC75.mjs.map} +0 -0
- /package/dist/{chunk-RBIYRMQB.mjs.map → chunk-HO7KOQ6F.mjs.map} +0 -0
- /package/dist/{chunk-AM6MIXMX.mjs.map → chunk-KKPVTN4B.mjs.map} +0 -0
package/dist/sharing/index.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
formatStallCapacityLabel,
|
|
24
24
|
normalizeShareRouteId,
|
|
25
25
|
shareSlugResourceId
|
|
26
|
-
} from "../chunk-
|
|
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-
|
|
73
|
+
} from "../chunk-S7C3MFZF.mjs";
|
|
74
74
|
import "../chunk-XY5XRXR3.mjs";
|
|
75
75
|
import "../chunk-LETM2YHF.mjs";
|
|
76
76
|
export {
|
package/dist/utils/index.cjs
CHANGED
|
@@ -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,
|