@infuro/cms-core 1.0.67 → 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.
Files changed (150) hide show
  1. package/dist/{OrderTrackPage-W3J6WIG2.js → OrderTrackPage-VBZUVZOU.js} +1 -1
  2. package/dist/{OrderTrackPage-Z6FCJQYY.cjs → OrderTrackPage-VFIXWJOW.cjs} +4 -4
  3. package/dist/admin.cjs +121 -12
  4. package/dist/admin.js +121 -12
  5. package/dist/api.cjs +57 -54
  6. package/dist/api.js +24 -21
  7. package/dist/auth.cjs +62 -62
  8. package/dist/auth.js +6 -6
  9. package/dist/{chunk-XJNNOSJR.js → chunk-2BNVRFUQ.js} +1 -1
  10. package/dist/chunk-2JHGIWH7.cjs +2700 -0
  11. package/dist/{chunk-3DZRIZOD.cjs → chunk-3ASNJS2H.cjs} +3 -3
  12. package/dist/{chunk-7NMT3GBR.cjs → chunk-3LQS4ATQ.cjs} +4 -4
  13. package/dist/{chunk-GWDI752Q.js → chunk-3XCTGADT.js} +1 -1
  14. package/dist/chunk-47G65M5Q.cjs +18 -0
  15. package/dist/{chunk-XFDIIVZB.cjs → chunk-4MNVIGVJ.cjs} +11 -11
  16. package/dist/{chunk-OY2YTBMP.cjs → chunk-4WZNRVEZ.cjs} +3 -3
  17. package/dist/{chunk-OVTOP42W.js → chunk-53AMBXMM.js} +1 -1
  18. package/dist/chunk-5BKT4CS5.js +28 -0
  19. package/dist/chunk-5DSY3GQI.js +16 -0
  20. package/dist/{chunk-AYERBA7I.js → chunk-5NVGWJSY.js} +1 -1
  21. package/dist/{chunk-HF3L2GIT.cjs → chunk-5YMKJ3TH.cjs} +16 -16
  22. package/dist/{chunk-WFMVD567.cjs → chunk-6MM5OMRL.cjs} +11 -11
  23. package/dist/{chunk-5MZFQRDW.cjs → chunk-747MJJCZ.cjs} +147 -147
  24. package/dist/{chunk-SYBOCAWB.js → chunk-7QJI56OL.js} +1 -1
  25. package/dist/{chunk-DBPSJYLZ.js → chunk-BK5XW5XH.js} +1 -1
  26. package/dist/chunk-BQQMTQ4C.cjs +455 -0
  27. package/dist/{chunk-6YOQ7G5O.js → chunk-CFUSYGSA.js} +1 -1
  28. package/dist/{chunk-OOTLNH63.cjs → chunk-CIZZX57T.cjs} +2 -2
  29. package/dist/{chunk-7L6KWI7S.cjs → chunk-CTTV375J.cjs} +13 -13
  30. package/dist/{chunk-ZY64VJMS.js → chunk-D4LR3S77.js} +2 -2
  31. package/dist/{chunk-GLLCLRCQ.js → chunk-DBBYLSQP.js} +179 -49
  32. package/dist/{chunk-5NOZSG6J.js → chunk-DWNQTFJ5.js} +2 -2
  33. package/dist/{chunk-2IAXTKQN.cjs → chunk-DZNWS2MM.cjs} +2 -2
  34. package/dist/chunk-E62LKM6Z.cjs +49 -0
  35. package/dist/{chunk-CRFV5WJK.js → chunk-ECNYZG6T.js} +1 -1
  36. package/dist/{chunk-TZEMLHSP.cjs → chunk-EYUBL7YH.cjs} +7 -7
  37. package/dist/{chunk-WMMZZRDJ.cjs → chunk-HGR4IA7I.cjs} +18 -18
  38. package/dist/{chunk-TJ2MIQUT.cjs → chunk-JRW3GQD4.cjs} +4 -4
  39. package/dist/{chunk-3K5AIEIZ.js → chunk-JYRFSFXH.js} +1 -1
  40. package/dist/chunk-K6RXCLD5.js +45 -0
  41. package/dist/{chunk-TU23GJPJ.js → chunk-LJ5C4RBF.js} +3 -3
  42. package/dist/{chunk-O4AFPDQ4.cjs → chunk-LXWF6T7F.cjs} +33 -33
  43. package/dist/{chunk-EIZKW2PF.js → chunk-LY7CDNC6.js} +1 -1
  44. package/dist/{chunk-PA6YDMFZ.cjs → chunk-M5QDJOUP.cjs} +12 -12
  45. package/dist/{chunk-MQBT33IV.js → chunk-MGT4DJ2D.js} +1 -1
  46. package/dist/{chunk-2ISSXYBZ.js → chunk-MJDNS324.js} +5 -5
  47. package/dist/{chunk-H3IVLIPR.cjs → chunk-OXFC3DAM.cjs} +4 -4
  48. package/dist/chunk-PQJIJ4ZX.js +445 -0
  49. package/dist/{chunk-HY3AXLOI.cjs → chunk-PRXVSSIF.cjs} +13 -13
  50. package/dist/{chunk-TDV6EJHV.js → chunk-PRZOLCFW.js} +2 -2
  51. package/dist/{chunk-BVLN75LP.cjs → chunk-QL44NCZC.cjs} +1221 -1091
  52. package/dist/{chunk-VM6OVUUM.cjs → chunk-QN6PZLAP.cjs} +40 -40
  53. package/dist/{chunk-OV5TRZET.cjs → chunk-QXAQ3V7R.cjs} +27 -27
  54. package/dist/{chunk-NV5IRHI3.js → chunk-RBKVMHBH.js} +9 -9
  55. package/dist/{chunk-UPLVMVRX.cjs → chunk-RQCXRCYM.cjs} +2 -2
  56. package/dist/{chunk-WUQAOTHA.js → chunk-SERRQ736.js} +1 -1
  57. package/dist/{chunk-SS3K7OIM.cjs → chunk-SWSTGV4F.cjs} +81 -81
  58. package/dist/{chunk-RCE5SJBA.js → chunk-T47VP2ZT.js} +3 -3
  59. package/dist/{chunk-FLUF2GZH.js → chunk-WHMIWJL7.js} +1 -1
  60. package/dist/{chunk-JC6DLWTE.js → chunk-WQZ4AH2P.js} +1 -1
  61. package/dist/{chunk-D5FBNKQM.cjs → chunk-WXH3GMCF.cjs} +8 -8
  62. package/dist/chunk-XHPRD45G.cjs +32 -0
  63. package/dist/{chunk-THL5JDWJ.cjs → chunk-Y54WDY2O.cjs} +2 -2
  64. package/dist/{chunk-YRCKEGL2.js → chunk-YDMHG6BA.js} +1 -1
  65. package/dist/chunk-YHVA5NHI.js +2698 -0
  66. package/dist/{chunk-JXF23MPG.js → chunk-ZMIMKNSQ.js} +1 -1
  67. package/dist/cli.cjs +10 -10
  68. package/dist/cli.js +1 -1
  69. package/dist/email-queue-BJDH2ID7.cjs +29 -0
  70. package/dist/email-queue-MWP4R67H.js +8 -0
  71. package/dist/email-service-6JODEMUA.js +3 -0
  72. package/dist/email-service-VA4Q4ZRB.cjs +28 -0
  73. package/dist/emit-order-notification-trigger-X36V4DOH.cjs +16 -0
  74. package/dist/emit-order-notification-trigger-XKN2TWVF.js +3 -0
  75. package/dist/erp-config-enabled-32XTHBBT.cjs +11 -0
  76. package/dist/erp-config-enabled-CASE5YVI.js +2 -0
  77. package/dist/erp-order-invoice-5O42ZKC5.cjs +28 -0
  78. package/dist/erp-order-invoice-JEQKFXG4.js +7 -0
  79. package/dist/{event-order-defaults-DU7V3YND.cjs → event-order-defaults-TR45WAQQ.cjs} +10 -10
  80. package/dist/{event-order-defaults-H4RT7NMR.js → event-order-defaults-VXYO6NHT.js} +2 -2
  81. package/dist/generate-local-invoice-pdf-2NCA2WBL.cjs +12 -0
  82. package/dist/generate-local-invoice-pdf-XUH6GYEJ.js +3 -0
  83. package/dist/hooks.cjs +24 -24
  84. package/dist/hooks.js +2 -2
  85. package/dist/index.cjs +497 -494
  86. package/dist/index.d.cts +7 -1
  87. package/dist/index.d.ts +7 -1
  88. package/dist/index.js +39 -36
  89. package/dist/interpolate-KD37IRF2.js +2 -0
  90. package/dist/interpolate-WP6OSJHN.cjs +11 -0
  91. package/dist/invoice-templates-2ESQ7K4N.cjs +19 -0
  92. package/dist/invoice-templates-3AXTXERZ.js +2 -0
  93. package/dist/middleware.cjs +4 -4
  94. package/dist/middleware.js +2 -2
  95. package/dist/{order-assignees-handlers-L3RVKUBS.js → order-assignees-handlers-F7WOZHOG.js} +1 -1
  96. package/dist/{order-assignees-handlers-KF7RMTV5.cjs → order-assignees-handlers-JEJ5IDID.cjs} +3 -3
  97. package/dist/{order-completion-otp-handlers-HFGCPC4O.js → order-completion-otp-handlers-FIW7PZ6W.js} +12 -9
  98. package/dist/{order-completion-otp-handlers-DZAXK4GQ.cjs → order-completion-otp-handlers-LNAZTMTS.cjs} +25 -22
  99. package/dist/{order-inventory-76V4XIGW.js → order-inventory-R3AU6N4V.js} +2 -2
  100. package/dist/{order-inventory-2MYRKEPC.cjs → order-inventory-UUFPWLBW.cjs} +10 -10
  101. package/dist/order-notification-dispatcher-FS54ANAV.js +13 -0
  102. package/dist/order-notification-dispatcher-GG5C4LKZ.cjs +38 -0
  103. package/dist/paid-order-erp-GRXR2OG6.js +3 -0
  104. package/dist/paid-order-erp-X5QHPI23.cjs +12 -0
  105. package/dist/pg-boss-service-CMW3KQJM.js +2 -0
  106. package/dist/pg-boss-service-GA6ZVD5G.cjs +15 -0
  107. package/dist/{razorpay-U23LGY72.cjs → razorpay-GP2DXVP2.cjs} +2 -2
  108. package/dist/{razorpay-KLO2KNCB.js → razorpay-I3G5LNYH.js} +1 -1
  109. package/dist/{rbac-debug-db-KWV7D5PQ.cjs → rbac-debug-db-2ZI3XKA4.cjs} +4 -4
  110. package/dist/{rbac-debug-db-DFZWZ6GV.js → rbac-debug-db-IRKT6G62.js} +2 -2
  111. package/dist/resolve-invoice-asset-url-64QQUVC3.js +2 -0
  112. package/dist/resolve-invoice-asset-url-J7WAMD26.cjs +11 -0
  113. package/dist/retire-soft-deleted-unique-DZALT537.cjs +15 -0
  114. package/dist/{retire-soft-deleted-unique-NXQIH4BC.js → retire-soft-deleted-unique-F25KZBZK.js} +2 -2
  115. package/dist/sms-defaults-DSO3M26Y.js +2 -0
  116. package/dist/{sms-defaults-KCOPKQBA.cjs → sms-defaults-GDFILHHR.cjs} +5 -5
  117. package/dist/{sms-notification-templates-handlers-SJLO7JGZ.js → sms-notification-templates-handlers-ZGDCVS5Z.js} +1 -1
  118. package/dist/{sms-notification-templates-handlers-YSB3L2PK.cjs → sms-notification-templates-handlers-ZKLKFRFZ.cjs} +3 -3
  119. package/dist/{stripe-VU6OEG2D.cjs → stripe-2APRZHKU.cjs} +2 -2
  120. package/dist/{stripe-4FD27QVJ.js → stripe-7CO2ETTN.js} +1 -1
  121. package/dist/theme.cjs +10 -10
  122. package/dist/theme.js +3 -3
  123. package/dist/vendor-invite-status-45ZCWKCX.js +2 -0
  124. package/dist/{vendor-invite-status-77O7ZQ3U.cjs → vendor-invite-status-AT2E4FUA.cjs} +5 -5
  125. package/package.json +2 -1
  126. package/dist/chunk-GLD263KW.cjs +0 -862
  127. package/dist/chunk-OPJEV44S.js +0 -847
  128. package/dist/chunk-SHUYVCID.js +0 -4
  129. package/dist/chunk-USNT2KNT.cjs +0 -6
  130. package/dist/email-queue-4OY45JIU.cjs +0 -26
  131. package/dist/email-queue-HGXB2FIS.js +0 -5
  132. package/dist/email-service-5O24BSFR.cjs +0 -28
  133. package/dist/email-service-ADDF52PJ.js +0 -3
  134. package/dist/emit-order-notification-trigger-EJJZ6XTS.js +0 -3
  135. package/dist/emit-order-notification-trigger-ZD5YN3JM.cjs +0 -16
  136. package/dist/erp-config-enabled-CUMQ6N2V.cjs +0 -11
  137. package/dist/erp-config-enabled-T37X7T34.js +0 -2
  138. package/dist/erp-order-invoice-H6HCJ7YS.js +0 -4
  139. package/dist/erp-order-invoice-YUSPZ7CE.cjs +0 -25
  140. package/dist/interpolate-WAKPN56R.cjs +0 -11
  141. package/dist/interpolate-WDUWDF3I.js +0 -2
  142. package/dist/order-notification-dispatcher-ECPFI7CD.js +0 -10
  143. package/dist/order-notification-dispatcher-LL7ETKLU.cjs +0 -35
  144. package/dist/paid-order-erp-3USEG6WL.js +0 -3
  145. package/dist/paid-order-erp-FSQ3GSXE.cjs +0 -12
  146. package/dist/pg-boss-service-BDGOKM2T.cjs +0 -15
  147. package/dist/pg-boss-service-WCBJD4JB.js +0 -2
  148. package/dist/retire-soft-deleted-unique-5VXBA5XX.cjs +0 -15
  149. package/dist/sms-defaults-2NL24H57.js +0 -2
  150. package/dist/vendor-invite-status-PWJ3DE76.js +0 -2
@@ -1,4 +1,4 @@
1
- import { __name } from './chunk-SHUYVCID.js';
1
+ import { __name } from './chunk-5BKT4CS5.js';
2
2
 
3
3
  // src/lib/vendor-invite-status.ts
4
4
  function inviteStatusForActivation(activation) {
package/dist/cli.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict';
3
3
 
4
- var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
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
- chunkUSNT2KNT_cjs.__name(findRoot, "findRoot");
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
- chunkUSNT2KNT_cjs.__name(writeFile, "writeFile");
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
- chunkUSNT2KNT_cjs.__name(patchNextConfig, "patchNextConfig");
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
- chunkUSNT2KNT_cjs.__name(patchTailwind, "patchTailwind");
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
- chunkUSNT2KNT_cjs.__name(patchLayout, "patchLayout");
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
- chunkUSNT2KNT_cjs.__name(patchPackageJson, "patchPackageJson");
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
- chunkUSNT2KNT_cjs.__name(runNpmInstall, "runNpmInstall");
907
+ chunkXHPRD45G_cjs.__name(runNpmInstall, "runNpmInstall");
908
908
  async function runInit(opts) {
909
- const log = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((msg) => console.log(msg), "log");
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
- chunkUSNT2KNT_cjs.__name(runInit, "runInit");
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
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { __name } from './chunk-SHUYVCID.js';
2
+ import { __name } from './chunk-5BKT4CS5.js';
3
3
  import fs from 'fs';
4
4
  import path from 'path';
5
5
 
@@ -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,3 @@
1
+ export { EmailService, SES_REGIONS_WITHOUT_SMTP, emailTemplates, sesRegionSupportsSmtp, sesSmtpHost } from './chunk-CFUSYGSA.js';
2
+ import './chunk-YDMHG6BA.js';
3
+ 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,3 @@
1
+ export { emitOrderNotificationTrigger, fireOrderNotificationTrigger } from './chunk-T47VP2ZT.js';
2
+ import './chunk-WHMIWJL7.js';
3
+ import './chunk-5BKT4CS5.js';
@@ -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,2 @@
1
+ export { isErpIntegrationEnabled } from './chunk-WQZ4AH2P.js';
2
+ import './chunk-5BKT4CS5.js';
@@ -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 chunkTJ2MIQUT_cjs = require('./chunk-TJ2MIQUT.cjs');
4
- require('./chunk-USNT2KNT.cjs');
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 chunkTJ2MIQUT_cjs.EVENT_ORDER_MESSAGE_TEMPLATE_DEFAULTS; }
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 chunkTJ2MIQUT_cjs.EVENT_ORDER_TEMPLATE_KEY; }
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 chunkTJ2MIQUT_cjs.EVENT_ORDER_TEMPLATE_VARIABLES; }
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 chunkTJ2MIQUT_cjs.EVENT_ORDER_TEMPLATE_VARIABLE_HINTS; }
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 chunkTJ2MIQUT_cjs.EVENT_ORDER_WHATSAPP_PARAM_KEYS; }
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 chunkTJ2MIQUT_cjs.getEventOrderTemplateDefault; }
30
+ get: function () { return chunkJRW3GQD4_cjs.getEventOrderTemplateDefault; }
31
31
  });
32
32
  Object.defineProperty(exports, "pickWhatsAppTemplateParams", {
33
33
  enumerable: true,
34
- get: function () { return chunkTJ2MIQUT_cjs.pickWhatsAppTemplateParams; }
34
+ get: function () { return chunkJRW3GQD4_cjs.pickWhatsAppTemplateParams; }
35
35
  });
36
36
  Object.defineProperty(exports, "resolveEventOrderTemplate", {
37
37
  enumerable: true,
38
- get: function () { return chunkTJ2MIQUT_cjs.resolveEventOrderTemplate; }
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-AYERBA7I.js';
2
- import './chunk-SHUYVCID.js';
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
+ });
@@ -0,0 +1,3 @@
1
+ export { generateLocalInvoicePdf } from './chunk-YHVA5NHI.js';
2
+ import './chunk-K6RXCLD5.js';
3
+ import './chunk-5BKT4CS5.js';
package/dist/hooks.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk2IAXTKQN_cjs = require('./chunk-2IAXTKQN.cjs');
4
- var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
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__ */ chunkUSNT2KNT_cjs.__name(() => setIsMobile(window.innerWidth < MOBILE_BREAKPOINT), "onChange");
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
- chunkUSNT2KNT_cjs.__name(useIsMobile, "useIsMobile");
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
- chunkUSNT2KNT_cjs.__name(useCatalogCategories, "useCatalogCategories");
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
- chunkUSNT2KNT_cjs.__name(vendorCategoryWorkspaceUrl, "vendorCategoryWorkspaceUrl");
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
- chunkUSNT2KNT_cjs.__name(vendorCollectionCreateUrl, "vendorCollectionCreateUrl");
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
- chunkUSNT2KNT_cjs.__name(vendorProductCreateUrl, "vendorProductCreateUrl");
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
- chunkUSNT2KNT_cjs.__name(vendorEventProductCreateUrl, "vendorEventProductCreateUrl");
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
- chunkUSNT2KNT_cjs.__name(useCatalogCollections, "useCatalogCollections");
153
+ chunkXHPRD45G_cjs.__name(useCatalogCollections, "useCatalogCollections");
154
154
  function vendorCollectionProductsUrl(collectionId) {
155
155
  return `/admin/products?collectionId=${collectionId}`;
156
156
  }
157
- chunkUSNT2KNT_cjs.__name(vendorCollectionProductsUrl, "vendorCollectionProductsUrl");
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
- chunkUSNT2KNT_cjs.__name(useAnalytics, "useAnalytics");
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
- chunkUSNT2KNT_cjs.__name(PluginProvider, "PluginProvider");
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
- chunkUSNT2KNT_cjs.__name(usePlugin, "usePlugin");
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
- chunkUSNT2KNT_cjs.__name(loadScript, "loadScript");
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__ */ chunkUSNT2KNT_cjs.__name((token) => {
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__ */ chunkUSNT2KNT_cjs.__name(() => {
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__ */ chunkUSNT2KNT_cjs.__name(() => {
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__ */ chunkUSNT2KNT_cjs.__name((e) => setSelectedProvider(e.target.value), "onChange")
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
- chunkUSNT2KNT_cjs.__name(CaptchaProvider, "CaptchaProvider");
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
- chunkUSNT2KNT_cjs.__name(useCaptchaPayload, "useCaptchaPayload");
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__ */ chunkUSNT2KNT_cjs.__name(() => {
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
- chunkUSNT2KNT_cjs.__name(useForceLightMode, "useForceLightMode");
404
+ chunkXHPRD45G_cjs.__name(useForceLightMode, "useForceLightMode");
405
405
 
406
406
  Object.defineProperty(exports, "ForceLightMode", {
407
407
  enumerable: true,
408
- get: function () { return chunk2IAXTKQN_cjs.ForceLightMode; }
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-EIZKW2PF.js';
2
- import { __name } from './chunk-SHUYVCID.js';
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;