@infuro/cms-core 1.0.68 → 1.0.69
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/{OrderTrackPage-W3J6WIG2.js → OrderTrackPage-VBZUVZOU.js} +1 -1
- package/dist/{OrderTrackPage-Z6FCJQYY.cjs → OrderTrackPage-VFIXWJOW.cjs} +4 -4
- package/dist/admin.cjs +1 -1
- package/dist/admin.js +1 -1
- package/dist/api.cjs +57 -57
- package/dist/api.js +24 -24
- package/dist/auth.cjs +62 -62
- package/dist/auth.js +6 -6
- package/dist/{chunk-XJNNOSJR.js → chunk-2BNVRFUQ.js} +1 -1
- package/dist/chunk-2JHGIWH7.cjs +2700 -0
- package/dist/{chunk-3DZRIZOD.cjs → chunk-3ASNJS2H.cjs} +3 -3
- package/dist/{chunk-7NMT3GBR.cjs → chunk-3LQS4ATQ.cjs} +4 -4
- package/dist/{chunk-GWDI752Q.js → chunk-3XCTGADT.js} +1 -1
- package/dist/{chunk-P6S4XFZO.cjs → chunk-47G65M5Q.cjs} +2 -2
- package/dist/{chunk-UMC7W5G3.cjs → chunk-4MNVIGVJ.cjs} +11 -11
- package/dist/{chunk-OY2YTBMP.cjs → chunk-4WZNRVEZ.cjs} +3 -3
- package/dist/{chunk-OVTOP42W.js → chunk-53AMBXMM.js} +1 -1
- package/dist/chunk-5BKT4CS5.js +28 -0
- package/dist/{chunk-IKTBZJHT.js → chunk-5DSY3GQI.js} +1 -1
- package/dist/{chunk-AYERBA7I.js → chunk-5NVGWJSY.js} +1 -1
- package/dist/{chunk-HF3L2GIT.cjs → chunk-5YMKJ3TH.cjs} +16 -16
- package/dist/{chunk-WFMVD567.cjs → chunk-6MM5OMRL.cjs} +11 -11
- package/dist/{chunk-SMHQV3WL.cjs → chunk-747MJJCZ.cjs} +147 -147
- package/dist/{chunk-SYBOCAWB.js → chunk-7QJI56OL.js} +1 -1
- package/dist/{chunk-DBPSJYLZ.js → chunk-BK5XW5XH.js} +1 -1
- package/dist/{chunk-SUUD7OUG.cjs → chunk-BQQMTQ4C.cjs} +27 -27
- package/dist/{chunk-6YOQ7G5O.js → chunk-CFUSYGSA.js} +1 -1
- package/dist/{chunk-OOTLNH63.cjs → chunk-CIZZX57T.cjs} +2 -2
- package/dist/{chunk-7L6KWI7S.cjs → chunk-CTTV375J.cjs} +13 -13
- package/dist/{chunk-ZY64VJMS.js → chunk-D4LR3S77.js} +2 -2
- package/dist/{chunk-MYUGQHU4.js → chunk-DBBYLSQP.js} +47 -47
- package/dist/{chunk-5NOZSG6J.js → chunk-DWNQTFJ5.js} +2 -2
- package/dist/{chunk-2IAXTKQN.cjs → chunk-DZNWS2MM.cjs} +2 -2
- package/dist/{chunk-M5GPOPGX.cjs → chunk-E62LKM6Z.cjs} +2 -2
- package/dist/{chunk-CRFV5WJK.js → chunk-ECNYZG6T.js} +1 -1
- package/dist/{chunk-TZEMLHSP.cjs → chunk-EYUBL7YH.cjs} +7 -7
- package/dist/{chunk-GN4LKG4V.cjs → chunk-HGR4IA7I.cjs} +18 -18
- package/dist/{chunk-TJ2MIQUT.cjs → chunk-JRW3GQD4.cjs} +4 -4
- package/dist/{chunk-3K5AIEIZ.js → chunk-JYRFSFXH.js} +1 -1
- package/dist/{chunk-WKDBMDUX.js → chunk-K6RXCLD5.js} +1 -1
- package/dist/{chunk-7JCCPQEF.js → chunk-LJ5C4RBF.js} +3 -3
- package/dist/{chunk-O4AFPDQ4.cjs → chunk-LXWF6T7F.cjs} +33 -33
- package/dist/{chunk-EIZKW2PF.js → chunk-LY7CDNC6.js} +1 -1
- package/dist/{chunk-PA6YDMFZ.cjs → chunk-M5QDJOUP.cjs} +12 -12
- package/dist/{chunk-MQBT33IV.js → chunk-MGT4DJ2D.js} +1 -1
- package/dist/{chunk-Z5G54EGD.js → chunk-MJDNS324.js} +5 -5
- package/dist/{chunk-H3IVLIPR.cjs → chunk-OXFC3DAM.cjs} +4 -4
- package/dist/{chunk-ZIT4IP6N.js → chunk-PQJIJ4ZX.js} +6 -6
- package/dist/{chunk-HY3AXLOI.cjs → chunk-PRXVSSIF.cjs} +13 -13
- package/dist/{chunk-TDV6EJHV.js → chunk-PRZOLCFW.js} +2 -2
- package/dist/{chunk-22XKONB5.cjs → chunk-QL44NCZC.cjs} +1089 -1089
- package/dist/{chunk-VM6OVUUM.cjs → chunk-QN6PZLAP.cjs} +40 -40
- package/dist/{chunk-OV5TRZET.cjs → chunk-QXAQ3V7R.cjs} +27 -27
- package/dist/{chunk-N4LBZXBG.js → chunk-RBKVMHBH.js} +9 -9
- package/dist/{chunk-UPLVMVRX.cjs → chunk-RQCXRCYM.cjs} +2 -2
- package/dist/{chunk-WUQAOTHA.js → chunk-SERRQ736.js} +1 -1
- package/dist/{chunk-HBUV73RB.cjs → chunk-SWSTGV4F.cjs} +81 -81
- package/dist/{chunk-SKJH7PX4.js → chunk-T47VP2ZT.js} +3 -3
- package/dist/{chunk-FLUF2GZH.js → chunk-WHMIWJL7.js} +1 -1
- package/dist/{chunk-JC6DLWTE.js → chunk-WQZ4AH2P.js} +1 -1
- package/dist/{chunk-D5FBNKQM.cjs → chunk-WXH3GMCF.cjs} +8 -8
- package/dist/chunk-XHPRD45G.cjs +32 -0
- package/dist/{chunk-THL5JDWJ.cjs → chunk-Y54WDY2O.cjs} +2 -2
- package/dist/{chunk-YRCKEGL2.js → chunk-YDMHG6BA.js} +1 -1
- package/dist/chunk-YHVA5NHI.js +2698 -0
- package/dist/{chunk-JXF23MPG.js → chunk-ZMIMKNSQ.js} +1 -1
- package/dist/cli.cjs +10 -10
- package/dist/cli.js +1 -1
- package/dist/email-queue-BJDH2ID7.cjs +29 -0
- package/dist/email-queue-MWP4R67H.js +8 -0
- package/dist/email-service-6JODEMUA.js +3 -0
- package/dist/email-service-VA4Q4ZRB.cjs +28 -0
- package/dist/emit-order-notification-trigger-X36V4DOH.cjs +16 -0
- package/dist/emit-order-notification-trigger-XKN2TWVF.js +3 -0
- package/dist/erp-config-enabled-32XTHBBT.cjs +11 -0
- package/dist/erp-config-enabled-CASE5YVI.js +2 -0
- package/dist/erp-order-invoice-5O42ZKC5.cjs +28 -0
- package/dist/erp-order-invoice-JEQKFXG4.js +7 -0
- package/dist/{event-order-defaults-DU7V3YND.cjs → event-order-defaults-TR45WAQQ.cjs} +10 -10
- package/dist/{event-order-defaults-H4RT7NMR.js → event-order-defaults-VXYO6NHT.js} +2 -2
- package/dist/generate-local-invoice-pdf-2NCA2WBL.cjs +12 -0
- package/dist/generate-local-invoice-pdf-XUH6GYEJ.js +3 -0
- package/dist/hooks.cjs +24 -24
- package/dist/hooks.js +2 -2
- package/dist/index.cjs +470 -470
- package/dist/index.js +39 -39
- package/dist/interpolate-KD37IRF2.js +2 -0
- package/dist/interpolate-WP6OSJHN.cjs +11 -0
- package/dist/{invoice-templates-RB462AQN.cjs → invoice-templates-2ESQ7K4N.cjs} +5 -5
- package/dist/invoice-templates-3AXTXERZ.js +2 -0
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.js +2 -2
- package/dist/{order-assignees-handlers-L3RVKUBS.js → order-assignees-handlers-F7WOZHOG.js} +1 -1
- package/dist/{order-assignees-handlers-KF7RMTV5.cjs → order-assignees-handlers-JEJ5IDID.cjs} +3 -3
- package/dist/{order-completion-otp-handlers-NROWBGXN.js → order-completion-otp-handlers-FIW7PZ6W.js} +12 -12
- package/dist/{order-completion-otp-handlers-DDQREULW.cjs → order-completion-otp-handlers-LNAZTMTS.cjs} +25 -25
- package/dist/{order-inventory-76V4XIGW.js → order-inventory-R3AU6N4V.js} +2 -2
- package/dist/{order-inventory-2MYRKEPC.cjs → order-inventory-UUFPWLBW.cjs} +10 -10
- package/dist/order-notification-dispatcher-FS54ANAV.js +13 -0
- package/dist/order-notification-dispatcher-GG5C4LKZ.cjs +38 -0
- package/dist/paid-order-erp-GRXR2OG6.js +3 -0
- package/dist/paid-order-erp-X5QHPI23.cjs +12 -0
- package/dist/pg-boss-service-CMW3KQJM.js +2 -0
- package/dist/pg-boss-service-GA6ZVD5G.cjs +15 -0
- package/dist/{razorpay-U23LGY72.cjs → razorpay-GP2DXVP2.cjs} +2 -2
- package/dist/{razorpay-KLO2KNCB.js → razorpay-I3G5LNYH.js} +1 -1
- package/dist/{rbac-debug-db-KWV7D5PQ.cjs → rbac-debug-db-2ZI3XKA4.cjs} +4 -4
- package/dist/{rbac-debug-db-DFZWZ6GV.js → rbac-debug-db-IRKT6G62.js} +2 -2
- package/dist/resolve-invoice-asset-url-64QQUVC3.js +2 -0
- package/dist/resolve-invoice-asset-url-J7WAMD26.cjs +11 -0
- package/dist/retire-soft-deleted-unique-DZALT537.cjs +15 -0
- package/dist/{retire-soft-deleted-unique-NXQIH4BC.js → retire-soft-deleted-unique-F25KZBZK.js} +2 -2
- package/dist/sms-defaults-DSO3M26Y.js +2 -0
- package/dist/{sms-defaults-KCOPKQBA.cjs → sms-defaults-GDFILHHR.cjs} +5 -5
- package/dist/{sms-notification-templates-handlers-SJLO7JGZ.js → sms-notification-templates-handlers-ZGDCVS5Z.js} +1 -1
- package/dist/{sms-notification-templates-handlers-YSB3L2PK.cjs → sms-notification-templates-handlers-ZKLKFRFZ.cjs} +3 -3
- package/dist/{stripe-VU6OEG2D.cjs → stripe-2APRZHKU.cjs} +2 -2
- package/dist/{stripe-4FD27QVJ.js → stripe-7CO2ETTN.js} +1 -1
- package/dist/theme.cjs +10 -10
- package/dist/theme.js +3 -3
- package/dist/vendor-invite-status-45ZCWKCX.js +2 -0
- package/dist/{vendor-invite-status-77O7ZQ3U.cjs → vendor-invite-status-AT2E4FUA.cjs} +5 -5
- package/package.json +2 -1
- package/dist/chunk-SHUYVCID.js +0 -4
- package/dist/chunk-USNT2KNT.cjs +0 -6
- package/dist/chunk-Z5OB5QGN.js +0 -465
- package/dist/chunk-ZX5U3VCB.cjs +0 -471
- package/dist/email-queue-3QBQ63F7.js +0 -8
- package/dist/email-queue-K4E4OFI7.cjs +0 -29
- package/dist/email-service-5O24BSFR.cjs +0 -28
- package/dist/email-service-ADDF52PJ.js +0 -3
- package/dist/emit-order-notification-trigger-ROASTYQP.cjs +0 -16
- package/dist/emit-order-notification-trigger-YUQTPELC.js +0 -3
- package/dist/erp-config-enabled-CUMQ6N2V.cjs +0 -11
- package/dist/erp-config-enabled-T37X7T34.js +0 -2
- package/dist/erp-order-invoice-AZ5MX2JB.cjs +0 -28
- package/dist/erp-order-invoice-XSYHAMBS.js +0 -7
- package/dist/generate-local-invoice-pdf-BQTCL5MW.cjs +0 -12
- package/dist/generate-local-invoice-pdf-OCFG47SE.js +0 -3
- package/dist/interpolate-WAKPN56R.cjs +0 -11
- package/dist/interpolate-WDUWDF3I.js +0 -2
- package/dist/invoice-templates-GZ33OENC.js +0 -2
- package/dist/order-notification-dispatcher-6HCJ6Q75.cjs +0 -38
- package/dist/order-notification-dispatcher-KM2SY7TX.js +0 -13
- package/dist/paid-order-erp-3USEG6WL.js +0 -3
- package/dist/paid-order-erp-FSQ3GSXE.cjs +0 -12
- package/dist/pg-boss-service-BDGOKM2T.cjs +0 -15
- package/dist/pg-boss-service-WCBJD4JB.js +0 -2
- package/dist/resolve-invoice-asset-url-JEZRENJW.cjs +0 -11
- package/dist/resolve-invoice-asset-url-QZ2FRDHI.js +0 -2
- package/dist/retire-soft-deleted-unique-5VXBA5XX.cjs +0 -15
- package/dist/sms-defaults-2NL24H57.js +0 -2
- package/dist/vendor-invite-status-PWJ3DE76.js +0 -2
package/dist/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkXHPRD45G_cjs = require('./chunk-XHPRD45G.cjs');
|
|
5
5
|
var fs = require('fs');
|
|
6
6
|
var path = require('path');
|
|
7
7
|
|
|
@@ -688,7 +688,7 @@ function findRoot(cwd) {
|
|
|
688
688
|
}
|
|
689
689
|
return null;
|
|
690
690
|
}
|
|
691
|
-
|
|
691
|
+
chunkXHPRD45G_cjs.__name(findRoot, "findRoot");
|
|
692
692
|
function writeFile(root, filePath, content, force2, dryRun2, log) {
|
|
693
693
|
const full = path__default.default.join(root, filePath);
|
|
694
694
|
if (fs__default.default.existsSync(full) && !force2) {
|
|
@@ -707,7 +707,7 @@ function writeFile(root, filePath, content, force2, dryRun2, log) {
|
|
|
707
707
|
log(` created: ${filePath}`);
|
|
708
708
|
return true;
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
chunkXHPRD45G_cjs.__name(writeFile, "writeFile");
|
|
711
711
|
function patchNextConfig(root, dryRun2, log) {
|
|
712
712
|
const candidates = [
|
|
713
713
|
"next.config.js",
|
|
@@ -744,7 +744,7 @@ function patchNextConfig(root, dryRun2, log) {
|
|
|
744
744
|
log(` patched: ${path__default.default.basename(configPath)}`);
|
|
745
745
|
return true;
|
|
746
746
|
}
|
|
747
|
-
|
|
747
|
+
chunkXHPRD45G_cjs.__name(patchNextConfig, "patchNextConfig");
|
|
748
748
|
function patchTailwind(root, dryRun2, log) {
|
|
749
749
|
const candidates = [
|
|
750
750
|
"tailwind.config.js",
|
|
@@ -781,7 +781,7 @@ function patchTailwind(root, dryRun2, log) {
|
|
|
781
781
|
log(` patched: ${path__default.default.basename(configPath)}`);
|
|
782
782
|
return true;
|
|
783
783
|
}
|
|
784
|
-
|
|
784
|
+
chunkXHPRD45G_cjs.__name(patchTailwind, "patchTailwind");
|
|
785
785
|
function patchLayout(root, dryRun2, log) {
|
|
786
786
|
const layoutPath = path__default.default.join(root, "src/app/layout.tsx");
|
|
787
787
|
if (!fs__default.default.existsSync(layoutPath)) {
|
|
@@ -818,7 +818,7 @@ function patchLayout(root, dryRun2, log) {
|
|
|
818
818
|
log(" patched: src/app/layout.tsx");
|
|
819
819
|
return true;
|
|
820
820
|
}
|
|
821
|
-
|
|
821
|
+
chunkXHPRD45G_cjs.__name(patchLayout, "patchLayout");
|
|
822
822
|
function patchPackageJson(root, dryRun2, log) {
|
|
823
823
|
const pkgPath = path__default.default.join(root, "package.json");
|
|
824
824
|
if (!fs__default.default.existsSync(pkgPath)) return false;
|
|
@@ -872,7 +872,7 @@ function patchPackageJson(root, dryRun2, log) {
|
|
|
872
872
|
log(" patched: package.json");
|
|
873
873
|
return true;
|
|
874
874
|
}
|
|
875
|
-
|
|
875
|
+
chunkXHPRD45G_cjs.__name(patchPackageJson, "patchPackageJson");
|
|
876
876
|
async function runNpmInstall(root, log) {
|
|
877
877
|
const { spawnSync } = await import('child_process');
|
|
878
878
|
log(" running: npm install (deps)...");
|
|
@@ -904,9 +904,9 @@ async function runNpmInstall(root, log) {
|
|
|
904
904
|
shell: true
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
chunkXHPRD45G_cjs.__name(runNpmInstall, "runNpmInstall");
|
|
908
908
|
async function runInit(opts) {
|
|
909
|
-
const log = /* @__PURE__ */
|
|
909
|
+
const log = /* @__PURE__ */ chunkXHPRD45G_cjs.__name((msg) => console.log(msg), "log");
|
|
910
910
|
const cwd = process.cwd();
|
|
911
911
|
const root = findRoot(cwd);
|
|
912
912
|
if (!root) {
|
|
@@ -943,7 +943,7 @@ async function runInit(opts) {
|
|
|
943
943
|
log(" 2. Run npm run migration:run then npm run seed (creates admin from ADMIN_EMAIL/ADMIN_PASSWORD)");
|
|
944
944
|
log(" 3. npm run dev");
|
|
945
945
|
}
|
|
946
|
-
|
|
946
|
+
chunkXHPRD45G_cjs.__name(runInit, "runInit");
|
|
947
947
|
var args = process.argv.slice(2);
|
|
948
948
|
var force = args.includes("--force");
|
|
949
949
|
var dryRun = args.includes("--dry-run");
|
package/dist/cli.js
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4MNVIGVJ_cjs = require('./chunk-4MNVIGVJ.cjs');
|
|
4
|
+
require('./chunk-BQQMTQ4C.cjs');
|
|
5
|
+
require('./chunk-RQCXRCYM.cjs');
|
|
6
|
+
require('./chunk-2JHGIWH7.cjs');
|
|
7
|
+
require('./chunk-E62LKM6Z.cjs');
|
|
8
|
+
require('./chunk-47G65M5Q.cjs');
|
|
9
|
+
require('./chunk-EYUBL7YH.cjs');
|
|
10
|
+
require('./chunk-XHPRD45G.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
Object.defineProperty(exports, "queueEmail", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunk4MNVIGVJ_cjs.queueEmail; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "queueOrderPlacedEmails", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunk4MNVIGVJ_cjs.queueOrderPlacedEmails; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "queueVendorOnboardEmails", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunk4MNVIGVJ_cjs.queueVendorOnboardEmails; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "registerEmailQueueProcessor", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunk4MNVIGVJ_cjs.registerEmailQueueProcessor; }
|
|
29
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { queueEmail, queueOrderPlacedEmails, queueVendorOnboardEmails, registerEmailQueueProcessor } from './chunk-LJ5C4RBF.js';
|
|
2
|
+
import './chunk-PQJIJ4ZX.js';
|
|
3
|
+
import './chunk-WQZ4AH2P.js';
|
|
4
|
+
import './chunk-YHVA5NHI.js';
|
|
5
|
+
import './chunk-K6RXCLD5.js';
|
|
6
|
+
import './chunk-5DSY3GQI.js';
|
|
7
|
+
import './chunk-YDMHG6BA.js';
|
|
8
|
+
import './chunk-5BKT4CS5.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQN6PZLAP_cjs = require('./chunk-QN6PZLAP.cjs');
|
|
4
|
+
require('./chunk-EYUBL7YH.cjs');
|
|
5
|
+
require('./chunk-XHPRD45G.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "EmailService", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkQN6PZLAP_cjs.EmailService; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "SES_REGIONS_WITHOUT_SMTP", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkQN6PZLAP_cjs.SES_REGIONS_WITHOUT_SMTP; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "emailTemplates", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkQN6PZLAP_cjs.emailTemplates; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "sesRegionSupportsSmtp", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkQN6PZLAP_cjs.sesRegionSupportsSmtp; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "sesSmtpHost", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkQN6PZLAP_cjs.sesSmtpHost; }
|
|
28
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHGR4IA7I_cjs = require('./chunk-HGR4IA7I.cjs');
|
|
4
|
+
require('./chunk-M5QDJOUP.cjs');
|
|
5
|
+
require('./chunk-XHPRD45G.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "emitOrderNotificationTrigger", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkHGR4IA7I_cjs.emitOrderNotificationTrigger; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "fireOrderNotificationTrigger", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkHGR4IA7I_cjs.fireOrderNotificationTrigger; }
|
|
16
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRQCXRCYM_cjs = require('./chunk-RQCXRCYM.cjs');
|
|
4
|
+
require('./chunk-XHPRD45G.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "isErpIntegrationEnabled", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkRQCXRCYM_cjs.isErpIntegrationEnabled; }
|
|
11
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkBQQMTQ4C_cjs = require('./chunk-BQQMTQ4C.cjs');
|
|
4
|
+
require('./chunk-RQCXRCYM.cjs');
|
|
5
|
+
require('./chunk-2JHGIWH7.cjs');
|
|
6
|
+
require('./chunk-E62LKM6Z.cjs');
|
|
7
|
+
require('./chunk-47G65M5Q.cjs');
|
|
8
|
+
require('./chunk-EYUBL7YH.cjs');
|
|
9
|
+
require('./chunk-XHPRD45G.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, "ORDER_INVOICE_EMAIL_ELIGIBLE_STATUSES", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkBQQMTQ4C_cjs.ORDER_INVOICE_EMAIL_ELIGIBLE_STATUSES; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "isOrderEligibleForInvoiceEmail", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkBQQMTQ4C_cjs.isOrderEligibleForInvoiceEmail; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "resolveOrderInvoicePdfBytes", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkBQQMTQ4C_cjs.resolveOrderInvoicePdfBytes; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "streamOrderInvoicePdf", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkBQQMTQ4C_cjs.streamOrderInvoicePdf; }
|
|
28
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ORDER_INVOICE_EMAIL_ELIGIBLE_STATUSES, isOrderEligibleForInvoiceEmail, resolveOrderInvoicePdfBytes, streamOrderInvoicePdf } from './chunk-PQJIJ4ZX.js';
|
|
2
|
+
import './chunk-WQZ4AH2P.js';
|
|
3
|
+
import './chunk-YHVA5NHI.js';
|
|
4
|
+
import './chunk-K6RXCLD5.js';
|
|
5
|
+
import './chunk-5DSY3GQI.js';
|
|
6
|
+
import './chunk-YDMHG6BA.js';
|
|
7
|
+
import './chunk-5BKT4CS5.js';
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkJRW3GQD4_cjs = require('./chunk-JRW3GQD4.cjs');
|
|
4
|
+
require('./chunk-XHPRD45G.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "EVENT_ORDER_MESSAGE_TEMPLATE_DEFAULTS", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkJRW3GQD4_cjs.EVENT_ORDER_MESSAGE_TEMPLATE_DEFAULTS; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "EVENT_ORDER_TEMPLATE_KEY", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkJRW3GQD4_cjs.EVENT_ORDER_TEMPLATE_KEY; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "EVENT_ORDER_TEMPLATE_VARIABLES", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkJRW3GQD4_cjs.EVENT_ORDER_TEMPLATE_VARIABLES; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "EVENT_ORDER_TEMPLATE_VARIABLE_HINTS", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkJRW3GQD4_cjs.EVENT_ORDER_TEMPLATE_VARIABLE_HINTS; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "EVENT_ORDER_WHATSAPP_PARAM_KEYS", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkJRW3GQD4_cjs.EVENT_ORDER_WHATSAPP_PARAM_KEYS; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "getEventOrderTemplateDefault", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkJRW3GQD4_cjs.getEventOrderTemplateDefault; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "pickWhatsAppTemplateParams", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkJRW3GQD4_cjs.pickWhatsAppTemplateParams; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "resolveEventOrderTemplate", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkJRW3GQD4_cjs.resolveEventOrderTemplate; }
|
|
39
39
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EVENT_ORDER_MESSAGE_TEMPLATE_DEFAULTS, EVENT_ORDER_TEMPLATE_KEY, EVENT_ORDER_TEMPLATE_VARIABLES, EVENT_ORDER_TEMPLATE_VARIABLE_HINTS, EVENT_ORDER_WHATSAPP_PARAM_KEYS, getEventOrderTemplateDefault, pickWhatsAppTemplateParams, resolveEventOrderTemplate } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { EVENT_ORDER_MESSAGE_TEMPLATE_DEFAULTS, EVENT_ORDER_TEMPLATE_KEY, EVENT_ORDER_TEMPLATE_VARIABLES, EVENT_ORDER_TEMPLATE_VARIABLE_HINTS, EVENT_ORDER_WHATSAPP_PARAM_KEYS, getEventOrderTemplateDefault, pickWhatsAppTemplateParams, resolveEventOrderTemplate } from './chunk-5NVGWJSY.js';
|
|
2
|
+
import './chunk-5BKT4CS5.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk2JHGIWH7_cjs = require('./chunk-2JHGIWH7.cjs');
|
|
4
|
+
require('./chunk-E62LKM6Z.cjs');
|
|
5
|
+
require('./chunk-XHPRD45G.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "generateLocalInvoicePdf", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunk2JHGIWH7_cjs.generateLocalInvoicePdf; }
|
|
12
|
+
});
|
package/dist/hooks.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkDZNWS2MM_cjs = require('./chunk-DZNWS2MM.cjs');
|
|
4
|
+
var chunkXHPRD45G_cjs = require('./chunk-XHPRD45G.cjs');
|
|
5
5
|
var React2 = require('react');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -13,14 +13,14 @@ function useIsMobile() {
|
|
|
13
13
|
const [isMobile, setIsMobile] = React2.useState(void 0);
|
|
14
14
|
React2.useEffect(() => {
|
|
15
15
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
16
|
-
const onChange = /* @__PURE__ */
|
|
16
|
+
const onChange = /* @__PURE__ */ chunkXHPRD45G_cjs.__name(() => setIsMobile(window.innerWidth < MOBILE_BREAKPOINT), "onChange");
|
|
17
17
|
mql.addEventListener("change", onChange);
|
|
18
18
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
19
19
|
return () => mql.removeEventListener("change", onChange);
|
|
20
20
|
}, []);
|
|
21
21
|
return !!isMobile;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
chunkXHPRD45G_cjs.__name(useIsMobile, "useIsMobile");
|
|
24
24
|
function useCatalogCategories(enabled = true) {
|
|
25
25
|
const [categories, setCategories] = React2.useState([]);
|
|
26
26
|
const [loading, setLoading] = React2.useState(enabled);
|
|
@@ -63,7 +63,7 @@ function useCatalogCategories(enabled = true) {
|
|
|
63
63
|
error
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
chunkXHPRD45G_cjs.__name(useCatalogCategories, "useCatalogCategories");
|
|
67
67
|
function vendorCategoryWorkspaceUrl(categoryId, collectionId) {
|
|
68
68
|
const params = new URLSearchParams({
|
|
69
69
|
categoryId: String(categoryId)
|
|
@@ -73,7 +73,7 @@ function vendorCategoryWorkspaceUrl(categoryId, collectionId) {
|
|
|
73
73
|
}
|
|
74
74
|
return `/admin/products?${params.toString()}`;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
chunkXHPRD45G_cjs.__name(vendorCategoryWorkspaceUrl, "vendorCategoryWorkspaceUrl");
|
|
77
77
|
function vendorCollectionCreateUrl(categoryId, from, options) {
|
|
78
78
|
const params = new URLSearchParams({
|
|
79
79
|
categoryId: String(categoryId)
|
|
@@ -82,7 +82,7 @@ function vendorCollectionCreateUrl(categoryId, from, options) {
|
|
|
82
82
|
const base = `/admin/collections/create?${params.toString()}`;
|
|
83
83
|
return from ? `${base}&from=${encodeURIComponent(from)}` : base;
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
chunkXHPRD45G_cjs.__name(vendorCollectionCreateUrl, "vendorCollectionCreateUrl");
|
|
86
86
|
function vendorProductCreateUrl(categoryId, options) {
|
|
87
87
|
const params = new URLSearchParams({
|
|
88
88
|
categoryId: String(categoryId)
|
|
@@ -96,7 +96,7 @@ function vendorProductCreateUrl(categoryId, options) {
|
|
|
96
96
|
const base = `/admin/products/create?${params.toString()}`;
|
|
97
97
|
return options?.from ? `${base}&from=${encodeURIComponent(options.from)}` : base;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
chunkXHPRD45G_cjs.__name(vendorProductCreateUrl, "vendorProductCreateUrl");
|
|
100
100
|
function vendorEventProductCreateUrl(eventId, options) {
|
|
101
101
|
const params = new URLSearchParams({
|
|
102
102
|
eventId: String(eventId)
|
|
@@ -107,7 +107,7 @@ function vendorEventProductCreateUrl(eventId, options) {
|
|
|
107
107
|
const base = `/admin/products/create?${params.toString()}`;
|
|
108
108
|
return options?.from ? `${base}&from=${encodeURIComponent(options.from)}` : base;
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
chunkXHPRD45G_cjs.__name(vendorEventProductCreateUrl, "vendorEventProductCreateUrl");
|
|
111
111
|
function useCatalogCollections(enabled = true) {
|
|
112
112
|
const [collections, setCollections] = React2.useState([]);
|
|
113
113
|
const [loading, setLoading] = React2.useState(enabled);
|
|
@@ -150,11 +150,11 @@ function useCatalogCollections(enabled = true) {
|
|
|
150
150
|
error
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
chunkXHPRD45G_cjs.__name(useCatalogCollections, "useCatalogCollections");
|
|
154
154
|
function vendorCollectionProductsUrl(collectionId) {
|
|
155
155
|
return `/admin/products?collectionId=${collectionId}`;
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
chunkXHPRD45G_cjs.__name(vendorCollectionProductsUrl, "vendorCollectionProductsUrl");
|
|
158
158
|
function useAnalytics(pathname) {
|
|
159
159
|
const isAdminRoute = pathname != null && pathname.startsWith("/admin");
|
|
160
160
|
React2.useEffect(() => {
|
|
@@ -175,7 +175,7 @@ function useAnalytics(pathname) {
|
|
|
175
175
|
shouldTrack: !isAdminRoute
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
chunkXHPRD45G_cjs.__name(useAnalytics, "useAnalytics");
|
|
179
179
|
var PluginContext = React2.createContext(null);
|
|
180
180
|
function PluginProvider({ getPlugin, children }) {
|
|
181
181
|
return React2__default.default.createElement(PluginContext.Provider, {
|
|
@@ -184,13 +184,13 @@ function PluginProvider({ getPlugin, children }) {
|
|
|
184
184
|
}
|
|
185
185
|
}, children);
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
chunkXHPRD45G_cjs.__name(PluginProvider, "PluginProvider");
|
|
188
188
|
function usePlugin(name) {
|
|
189
189
|
const ctx = React2.useContext(PluginContext);
|
|
190
190
|
if (!ctx) return void 0;
|
|
191
191
|
return ctx.getPlugin(name);
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
chunkXHPRD45G_cjs.__name(usePlugin, "usePlugin");
|
|
194
194
|
var CaptchaReactContext = /* @__PURE__ */ React2.createContext(null);
|
|
195
195
|
function loadScript(src) {
|
|
196
196
|
return new Promise((resolve, reject) => {
|
|
@@ -208,7 +208,7 @@ function loadScript(src) {
|
|
|
208
208
|
document.head.appendChild(s);
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
chunkXHPRD45G_cjs.__name(loadScript, "loadScript");
|
|
212
212
|
function CaptchaProvider({ children }) {
|
|
213
213
|
const [config, setConfig] = React2.useState(null);
|
|
214
214
|
const [selectedProvider, setSelectedProvider] = React2.useState(null);
|
|
@@ -252,17 +252,17 @@ function CaptchaProvider({ children }) {
|
|
|
252
252
|
const wid = window.turnstile.render(turnstileContainerRef.current, {
|
|
253
253
|
sitekey: siteKeyFor,
|
|
254
254
|
execution: "execute",
|
|
255
|
-
callback: /* @__PURE__ */
|
|
255
|
+
callback: /* @__PURE__ */ chunkXHPRD45G_cjs.__name((token) => {
|
|
256
256
|
const p = turnstileTokenRef.current;
|
|
257
257
|
turnstileTokenRef.current = null;
|
|
258
258
|
p?.resolve(token);
|
|
259
259
|
}, "callback"),
|
|
260
|
-
"error-callback": /* @__PURE__ */
|
|
260
|
+
"error-callback": /* @__PURE__ */ chunkXHPRD45G_cjs.__name(() => {
|
|
261
261
|
const p = turnstileTokenRef.current;
|
|
262
262
|
turnstileTokenRef.current = null;
|
|
263
263
|
p?.reject(new Error("Turnstile error"));
|
|
264
264
|
}, "error-callback"),
|
|
265
|
-
"expired-callback": /* @__PURE__ */
|
|
265
|
+
"expired-callback": /* @__PURE__ */ chunkXHPRD45G_cjs.__name(() => {
|
|
266
266
|
const p = turnstileTokenRef.current;
|
|
267
267
|
turnstileTokenRef.current = null;
|
|
268
268
|
p?.reject(new Error("Turnstile expired"));
|
|
@@ -344,7 +344,7 @@ function CaptchaProvider({ children }) {
|
|
|
344
344
|
id: "captcha-provider-select",
|
|
345
345
|
className: "border rounded px-2 py-1 bg-background",
|
|
346
346
|
value: selectedProvider ?? "",
|
|
347
|
-
onChange: /* @__PURE__ */
|
|
347
|
+
onChange: /* @__PURE__ */ chunkXHPRD45G_cjs.__name((e) => setSelectedProvider(e.target.value), "onChange")
|
|
348
348
|
}, config.availableProviders.map((p) => /* @__PURE__ */ React2__default.default.createElement("option", {
|
|
349
349
|
key: p.id,
|
|
350
350
|
value: p.id
|
|
@@ -354,7 +354,7 @@ function CaptchaProvider({ children }) {
|
|
|
354
354
|
"aria-hidden": true
|
|
355
355
|
}), children);
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
chunkXHPRD45G_cjs.__name(CaptchaProvider, "CaptchaProvider");
|
|
358
358
|
function useCaptchaPayload() {
|
|
359
359
|
const ctx = React2.useContext(CaptchaReactContext);
|
|
360
360
|
return React2.useCallback(async () => {
|
|
@@ -364,13 +364,13 @@ function useCaptchaPayload() {
|
|
|
364
364
|
ctx
|
|
365
365
|
]);
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
chunkXHPRD45G_cjs.__name(useCaptchaPayload, "useCaptchaPayload");
|
|
368
368
|
function useForceLightMode() {
|
|
369
369
|
React2.useEffect(() => {
|
|
370
370
|
if (typeof window === "undefined") return;
|
|
371
371
|
const root = document.documentElement;
|
|
372
372
|
const body = document.body;
|
|
373
|
-
const applyLight = /* @__PURE__ */
|
|
373
|
+
const applyLight = /* @__PURE__ */ chunkXHPRD45G_cjs.__name(() => {
|
|
374
374
|
if (root.classList.contains("dark")) root.classList.remove("dark");
|
|
375
375
|
if (body && body.classList.contains("dark")) body.classList.remove("dark");
|
|
376
376
|
if (root.style.colorScheme !== "light") root.style.colorScheme = "light";
|
|
@@ -401,11 +401,11 @@ function useForceLightMode() {
|
|
|
401
401
|
};
|
|
402
402
|
}, []);
|
|
403
403
|
}
|
|
404
|
-
|
|
404
|
+
chunkXHPRD45G_cjs.__name(useForceLightMode, "useForceLightMode");
|
|
405
405
|
|
|
406
406
|
Object.defineProperty(exports, "ForceLightMode", {
|
|
407
407
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkDZNWS2MM_cjs.ForceLightMode; }
|
|
409
409
|
});
|
|
410
410
|
exports.CaptchaProvider = CaptchaProvider;
|
|
411
411
|
exports.PluginProvider = PluginProvider;
|
package/dist/hooks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ForceLightMode } from './chunk-
|
|
2
|
-
import { __name } from './chunk-
|
|
1
|
+
export { ForceLightMode } from './chunk-LY7CDNC6.js';
|
|
2
|
+
import { __name } from './chunk-5BKT4CS5.js';
|
|
3
3
|
import React2, { createContext, useState, useEffect, useContext, useRef, useCallback, useMemo } from 'react';
|
|
4
4
|
|
|
5
5
|
var MOBILE_BREAKPOINT = 768;
|