@wix/cli-app 1.1.106 → 1.1.108

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 (86) hide show
  1. package/build/{AddPermissionCommand-QEKDCRQW.js → AddPermissionCommand-W3TQTL3X.js} +2 -2
  2. package/build/{DevCommand-736A5TG3.js → DevCommand-3HZJQQIQ.js} +10 -10
  3. package/build/{DevCommand-736A5TG3.js.map → DevCommand-3HZJQQIQ.js.map} +1 -1
  4. package/build/{GenerateCommand-F6WNIVZH.js → GenerateCommand-UQ3JHQTJ.js} +47 -8
  5. package/build/GenerateCommand-UQ3JHQTJ.js.map +1 -0
  6. package/build/{LogsCommand-POFQ7L7U.js → LogsCommand-JHADSYUE.js} +3 -3
  7. package/build/PreviewCommand-WBQRDP7K.js +19 -0
  8. package/build/ReleaseCommand-3KDJB3KZ.js +23 -0
  9. package/build/{ServeCommand-LLCIQQ4X.js → ServeCommand-IPKP6PJ2.js} +3 -3
  10. package/build/{build-HZ5SXQHP.js → build-LZ3CJXNM.js} +6 -6
  11. package/build/{chunk-2X5STX6V.js → chunk-6OQZW27N.js} +8 -2
  12. package/build/{chunk-2X5STX6V.js.map → chunk-6OQZW27N.js.map} +1 -1
  13. package/build/{chunk-VDPMGGS6.js → chunk-7KESMWRI.js} +13 -7
  14. package/build/{chunk-VDPMGGS6.js.map → chunk-7KESMWRI.js.map} +1 -1
  15. package/build/{chunk-NWQVBGCX.js → chunk-BER5YRAG.js} +2 -2
  16. package/build/{chunk-XPAQVBEL.js → chunk-FO7ABKNR.js} +3 -3
  17. package/build/{chunk-BINOF7AQ.js → chunk-HAUIN5OS.js} +36 -60
  18. package/build/chunk-HAUIN5OS.js.map +1 -0
  19. package/build/{chunk-FWWBKP43.js → chunk-IGC7QYU5.js} +2 -2
  20. package/build/{chunk-BFLRYBN2.js → chunk-LOVLYP4H.js} +5 -5
  21. package/build/{chunk-VMKXYUIA.js → chunk-LWOWN5OI.js} +5 -5
  22. package/build/{chunk-7QAX4LBK.js → chunk-MAZMH6ES.js} +6 -6
  23. package/build/{chunk-G32WRBNI.js → chunk-OKHXUGGH.js} +2 -2
  24. package/build/{chunk-T5HHDBBR.js → chunk-PBROWK34.js} +8 -2
  25. package/build/{chunk-T5HHDBBR.js.map → chunk-PBROWK34.js.map} +1 -1
  26. package/build/{chunk-7JLHWVDX.js → chunk-PFAJ5ETM.js} +2 -2
  27. package/build/{chunk-XW5CZ6RF.js → chunk-RDXTHRJ4.js} +14 -2
  28. package/build/{chunk-XW5CZ6RF.js.map → chunk-RDXTHRJ4.js.map} +1 -1
  29. package/build/{chunk-4TQGXVYE.js → chunk-UEUJOHB4.js} +3 -3
  30. package/build/{chunk-4IYY6ZGZ.js → chunk-UN2TQTOP.js} +375 -200
  31. package/build/chunk-UN2TQTOP.js.map +1 -0
  32. package/build/{chunk-5Y7LGHZ6.js → chunk-UPQ6AZFY.js} +2 -2
  33. package/build/{chunk-E6VEU7TV.js → chunk-W5SE5OVE.js} +210 -334
  34. package/build/{chunk-E6VEU7TV.js.map → chunk-W5SE5OVE.js.map} +1 -1
  35. package/build/{chunk-PEMPZ5MM.js → chunk-Z4NG6X6T.js} +2 -2
  36. package/build/cloudflare-runtime/entry.js +256 -32
  37. package/build/cloudflare-runtime/getRegisteredExtensions.js +252 -28
  38. package/build/index.js +24 -24
  39. package/build/platform-sdk/chunk-J3SVE4GM.js +2 -0
  40. package/build/platform-sdk/chunk-J3SVE4GM.js.map +1 -0
  41. package/build/platform-sdk/chunk-J7RIIVO6.js +2 -0
  42. package/build/platform-sdk/chunk-J7RIIVO6.js.map +1 -0
  43. package/build/platform-sdk/chunk-RHDUKNAJ.js +2 -0
  44. package/build/platform-sdk/chunk-RHDUKNAJ.js.map +1 -0
  45. package/build/platform-sdk/dashboard.js +1 -1
  46. package/build/platform-sdk/dashboard.js.map +1 -1
  47. package/build/platform-sdk/editor.js +2 -2
  48. package/build/platform-sdk/editor.js.map +1 -1
  49. package/build/platform-sdk/sdk-context.js +1 -1
  50. package/build/platform-sdk/sdk-context.js.map +1 -1
  51. package/build/platform-sdk/site.js +1 -1
  52. package/build/{preview-R6YTZ7DV.js → preview-OVNN2RP4.js} +13 -13
  53. package/build/{release-IJJ3EB2C.js → release-OMLRH2VC.js} +15 -15
  54. package/build/{render-command-FJOPHPRO.js → render-command-DIMIKL4B.js} +6 -6
  55. package/package.json +6 -6
  56. package/build/GenerateCommand-F6WNIVZH.js.map +0 -1
  57. package/build/PreviewCommand-DGVLJIC5.js +0 -19
  58. package/build/ReleaseCommand-BK665XSD.js +0 -23
  59. package/build/chunk-4IYY6ZGZ.js.map +0 -1
  60. package/build/chunk-BINOF7AQ.js.map +0 -1
  61. package/build/platform-sdk/chunk-BBFFXVJD.js +0 -2
  62. package/build/platform-sdk/chunk-BBFFXVJD.js.map +0 -1
  63. package/build/platform-sdk/chunk-MAZR75DI.js +0 -2
  64. package/build/platform-sdk/chunk-MAZR75DI.js.map +0 -1
  65. package/build/platform-sdk/chunk-NHYZDMR5.js +0 -2
  66. package/build/platform-sdk/chunk-NHYZDMR5.js.map +0 -1
  67. /package/build/{AddPermissionCommand-QEKDCRQW.js.map → AddPermissionCommand-W3TQTL3X.js.map} +0 -0
  68. /package/build/{LogsCommand-POFQ7L7U.js.map → LogsCommand-JHADSYUE.js.map} +0 -0
  69. /package/build/{PreviewCommand-DGVLJIC5.js.map → PreviewCommand-WBQRDP7K.js.map} +0 -0
  70. /package/build/{ReleaseCommand-BK665XSD.js.map → ReleaseCommand-3KDJB3KZ.js.map} +0 -0
  71. /package/build/{ServeCommand-LLCIQQ4X.js.map → ServeCommand-IPKP6PJ2.js.map} +0 -0
  72. /package/build/{build-HZ5SXQHP.js.map → build-LZ3CJXNM.js.map} +0 -0
  73. /package/build/{chunk-NWQVBGCX.js.map → chunk-BER5YRAG.js.map} +0 -0
  74. /package/build/{chunk-XPAQVBEL.js.map → chunk-FO7ABKNR.js.map} +0 -0
  75. /package/build/{chunk-FWWBKP43.js.map → chunk-IGC7QYU5.js.map} +0 -0
  76. /package/build/{chunk-BFLRYBN2.js.map → chunk-LOVLYP4H.js.map} +0 -0
  77. /package/build/{chunk-VMKXYUIA.js.map → chunk-LWOWN5OI.js.map} +0 -0
  78. /package/build/{chunk-7QAX4LBK.js.map → chunk-MAZMH6ES.js.map} +0 -0
  79. /package/build/{chunk-G32WRBNI.js.map → chunk-OKHXUGGH.js.map} +0 -0
  80. /package/build/{chunk-7JLHWVDX.js.map → chunk-PFAJ5ETM.js.map} +0 -0
  81. /package/build/{chunk-4TQGXVYE.js.map → chunk-UEUJOHB4.js.map} +0 -0
  82. /package/build/{chunk-5Y7LGHZ6.js.map → chunk-UPQ6AZFY.js.map} +0 -0
  83. /package/build/{chunk-PEMPZ5MM.js.map → chunk-Z4NG6X6T.js.map} +0 -0
  84. /package/build/{preview-R6YTZ7DV.js.map → preview-OVNN2RP4.js.map} +0 -0
  85. /package/build/{release-IJJ3EB2C.js.map → release-OMLRH2VC.js.map} +0 -0
  86. /package/build/{render-command-FJOPHPRO.js.map → render-command-DIMIKL4B.js.map} +0 -0
@@ -3,9 +3,10 @@ const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  getBackendEventSlug,
5
5
  require_baseUniq
6
- } from "./chunk-XW5CZ6RF.js";
6
+ } from "./chunk-RDXTHRJ4.js";
7
7
  import {
8
8
  API_BASEURL_PLACEHOLDER,
9
+ AlgorithmType,
9
10
  BACKEND_OPTIMIZED_DIR,
10
11
  BLOCKS_WIDGETS_PANELS_PATTERN,
11
12
  BLOCKS_WIDGETS_PATTERN,
@@ -81,7 +82,7 @@ import {
81
82
  virtualSiteComponentScriptAssets,
82
83
  virtualSiteComponentSdkScriptAssets,
83
84
  z
84
- } from "./chunk-E6VEU7TV.js";
85
+ } from "./chunk-W5SE5OVE.js";
85
86
  import {
86
87
  __commonJS,
87
88
  __esm,
@@ -107,19 +108,19 @@ var require_globrex = __commonJS({
107
108
  function globrex(glob, { extended = false, globstar = false, strict = false, filepath = false, flags = "" } = {}) {
108
109
  let regex = "";
109
110
  let segment = "";
110
- let path9 = { regex: "", segments: [] };
111
+ let path10 = { regex: "", segments: [] };
111
112
  let inGroup = false;
112
113
  let inRange = false;
113
114
  const ext2 = [];
114
115
  function add2(str, { split: split2, last, only } = {}) {
115
116
  if (only !== "path") regex += str;
116
117
  if (filepath && only !== "regex") {
117
- path9.regex += str === "\\/" ? SEP : str;
118
+ path10.regex += str === "\\/" ? SEP : str;
118
119
  if (split2) {
119
120
  if (last) segment += str;
120
121
  if (segment !== "") {
121
122
  if (!flags.includes("g")) segment = `^${segment}$`;
122
- path9.segments.push(new RegExp(segment, flags));
123
+ path10.segments.push(new RegExp(segment, flags));
123
124
  }
124
125
  segment = "";
125
126
  } else {
@@ -304,14 +305,14 @@ var require_globrex = __commonJS({
304
305
  if (!flags.includes("g")) {
305
306
  regex = `^${regex}$`;
306
307
  segment = `^${segment}$`;
307
- if (filepath) path9.regex = `^${path9.regex}$`;
308
+ if (filepath) path10.regex = `^${path10.regex}$`;
308
309
  }
309
310
  const result = { regex: new RegExp(regex, flags) };
310
311
  if (filepath) {
311
- path9.segments.push(new RegExp(segment, flags));
312
- path9.regex = new RegExp(path9.regex, flags);
313
- path9.globstar = new RegExp(!flags.includes("g") ? `^${GLOBSTAR_SEGMENT}$` : GLOBSTAR_SEGMENT, flags);
314
- result.path = path9;
312
+ path10.segments.push(new RegExp(segment, flags));
313
+ path10.regex = new RegExp(path10.regex, flags);
314
+ path10.globstar = new RegExp(!flags.includes("g") ? `^${GLOBSTAR_SEGMENT}$` : GLOBSTAR_SEGMENT, flags);
315
+ result.path = path10;
315
316
  }
316
317
  return result;
317
318
  }
@@ -687,14 +688,14 @@ var require_polyfills = __commonJS({
687
688
  fs3.fstatSync = statFixSync(fs3.fstatSync);
688
689
  fs3.lstatSync = statFixSync(fs3.lstatSync);
689
690
  if (fs3.chmod && !fs3.lchmod) {
690
- fs3.lchmod = function(path9, mode, cb) {
691
+ fs3.lchmod = function(path10, mode, cb) {
691
692
  if (cb) process.nextTick(cb);
692
693
  };
693
694
  fs3.lchmodSync = function() {
694
695
  };
695
696
  }
696
697
  if (fs3.chown && !fs3.lchown) {
697
- fs3.lchown = function(path9, uid, gid, cb) {
698
+ fs3.lchown = function(path10, uid, gid, cb) {
698
699
  if (cb) process.nextTick(cb);
699
700
  };
700
701
  fs3.lchownSync = function() {
@@ -761,9 +762,9 @@ var require_polyfills = __commonJS({
761
762
  };
762
763
  }(fs3.readSync);
763
764
  function patchLchmod(fs4) {
764
- fs4.lchmod = function(path9, mode, callback) {
765
+ fs4.lchmod = function(path10, mode, callback) {
765
766
  fs4.open(
766
- path9,
767
+ path10,
767
768
  constants.O_WRONLY | constants.O_SYMLINK,
768
769
  mode,
769
770
  function(err, fd) {
@@ -779,8 +780,8 @@ var require_polyfills = __commonJS({
779
780
  }
780
781
  );
781
782
  };
782
- fs4.lchmodSync = function(path9, mode) {
783
- var fd = fs4.openSync(path9, constants.O_WRONLY | constants.O_SYMLINK, mode);
783
+ fs4.lchmodSync = function(path10, mode) {
784
+ var fd = fs4.openSync(path10, constants.O_WRONLY | constants.O_SYMLINK, mode);
784
785
  var threw = true;
785
786
  var ret;
786
787
  try {
@@ -801,8 +802,8 @@ var require_polyfills = __commonJS({
801
802
  }
802
803
  function patchLutimes(fs4) {
803
804
  if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
804
- fs4.lutimes = function(path9, at2, mt, cb) {
805
- fs4.open(path9, constants.O_SYMLINK, function(er, fd) {
805
+ fs4.lutimes = function(path10, at2, mt, cb) {
806
+ fs4.open(path10, constants.O_SYMLINK, function(er, fd) {
806
807
  if (er) {
807
808
  if (cb) cb(er);
808
809
  return;
@@ -814,8 +815,8 @@ var require_polyfills = __commonJS({
814
815
  });
815
816
  });
816
817
  };
817
- fs4.lutimesSync = function(path9, at2, mt) {
818
- var fd = fs4.openSync(path9, constants.O_SYMLINK);
818
+ fs4.lutimesSync = function(path10, at2, mt) {
819
+ var fd = fs4.openSync(path10, constants.O_SYMLINK);
819
820
  var ret;
820
821
  var threw = true;
821
822
  try {
@@ -935,11 +936,11 @@ var require_legacy_streams = __commonJS({
935
936
  ReadStream,
936
937
  WriteStream
937
938
  };
938
- function ReadStream(path9, options) {
939
- if (!(this instanceof ReadStream)) return new ReadStream(path9, options);
939
+ function ReadStream(path10, options) {
940
+ if (!(this instanceof ReadStream)) return new ReadStream(path10, options);
940
941
  Stream.call(this);
941
942
  var self2 = this;
942
- this.path = path9;
943
+ this.path = path10;
943
944
  this.fd = null;
944
945
  this.readable = true;
945
946
  this.paused = false;
@@ -984,10 +985,10 @@ var require_legacy_streams = __commonJS({
984
985
  self2._read();
985
986
  });
986
987
  }
987
- function WriteStream(path9, options) {
988
- if (!(this instanceof WriteStream)) return new WriteStream(path9, options);
988
+ function WriteStream(path10, options) {
989
+ if (!(this instanceof WriteStream)) return new WriteStream(path10, options);
989
990
  Stream.call(this);
990
- this.path = path9;
991
+ this.path = path10;
991
992
  this.fd = null;
992
993
  this.writable = true;
993
994
  this.flags = "w";
@@ -1133,14 +1134,14 @@ var require_graceful_fs = __commonJS({
1133
1134
  fs4.createWriteStream = createWriteStream;
1134
1135
  var fs$readFile = fs4.readFile;
1135
1136
  fs4.readFile = readFile5;
1136
- function readFile5(path9, options, cb) {
1137
+ function readFile5(path10, options, cb) {
1137
1138
  if (typeof options === "function")
1138
1139
  cb = options, options = null;
1139
- return go$readFile(path9, options, cb);
1140
- function go$readFile(path10, options2, cb2, startTime) {
1141
- return fs$readFile(path10, options2, function(err) {
1140
+ return go$readFile(path10, options, cb);
1141
+ function go$readFile(path11, options2, cb2, startTime) {
1142
+ return fs$readFile(path11, options2, function(err) {
1142
1143
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1143
- enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
1144
+ enqueue([go$readFile, [path11, options2, cb2], err, startTime || Date.now(), Date.now()]);
1144
1145
  else {
1145
1146
  if (typeof cb2 === "function")
1146
1147
  cb2.apply(this, arguments);
@@ -1150,14 +1151,14 @@ var require_graceful_fs = __commonJS({
1150
1151
  }
1151
1152
  var fs$writeFile = fs4.writeFile;
1152
1153
  fs4.writeFile = writeFile3;
1153
- function writeFile3(path9, data2, options, cb) {
1154
+ function writeFile3(path10, data2, options, cb) {
1154
1155
  if (typeof options === "function")
1155
1156
  cb = options, options = null;
1156
- return go$writeFile(path9, data2, options, cb);
1157
- function go$writeFile(path10, data3, options2, cb2, startTime) {
1158
- return fs$writeFile(path10, data3, options2, function(err) {
1157
+ return go$writeFile(path10, data2, options, cb);
1158
+ function go$writeFile(path11, data3, options2, cb2, startTime) {
1159
+ return fs$writeFile(path11, data3, options2, function(err) {
1159
1160
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1160
- enqueue([go$writeFile, [path10, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
1161
+ enqueue([go$writeFile, [path11, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
1161
1162
  else {
1162
1163
  if (typeof cb2 === "function")
1163
1164
  cb2.apply(this, arguments);
@@ -1168,14 +1169,14 @@ var require_graceful_fs = __commonJS({
1168
1169
  var fs$appendFile = fs4.appendFile;
1169
1170
  if (fs$appendFile)
1170
1171
  fs4.appendFile = appendFile;
1171
- function appendFile(path9, data2, options, cb) {
1172
+ function appendFile(path10, data2, options, cb) {
1172
1173
  if (typeof options === "function")
1173
1174
  cb = options, options = null;
1174
- return go$appendFile(path9, data2, options, cb);
1175
- function go$appendFile(path10, data3, options2, cb2, startTime) {
1176
- return fs$appendFile(path10, data3, options2, function(err) {
1175
+ return go$appendFile(path10, data2, options, cb);
1176
+ function go$appendFile(path11, data3, options2, cb2, startTime) {
1177
+ return fs$appendFile(path11, data3, options2, function(err) {
1177
1178
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1178
- enqueue([go$appendFile, [path10, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
1179
+ enqueue([go$appendFile, [path11, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
1179
1180
  else {
1180
1181
  if (typeof cb2 === "function")
1181
1182
  cb2.apply(this, arguments);
@@ -1206,31 +1207,31 @@ var require_graceful_fs = __commonJS({
1206
1207
  var fs$readdir = fs4.readdir;
1207
1208
  fs4.readdir = readdir;
1208
1209
  var noReaddirOptionVersions = /^v[0-5]\./;
1209
- function readdir(path9, options, cb) {
1210
+ function readdir(path10, options, cb) {
1210
1211
  if (typeof options === "function")
1211
1212
  cb = options, options = null;
1212
- var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path10, options2, cb2, startTime) {
1213
- return fs$readdir(path10, fs$readdirCallback(
1214
- path10,
1213
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path11, options2, cb2, startTime) {
1214
+ return fs$readdir(path11, fs$readdirCallback(
1215
+ path11,
1215
1216
  options2,
1216
1217
  cb2,
1217
1218
  startTime
1218
1219
  ));
1219
- } : function go$readdir2(path10, options2, cb2, startTime) {
1220
- return fs$readdir(path10, options2, fs$readdirCallback(
1221
- path10,
1220
+ } : function go$readdir2(path11, options2, cb2, startTime) {
1221
+ return fs$readdir(path11, options2, fs$readdirCallback(
1222
+ path11,
1222
1223
  options2,
1223
1224
  cb2,
1224
1225
  startTime
1225
1226
  ));
1226
1227
  };
1227
- return go$readdir(path9, options, cb);
1228
- function fs$readdirCallback(path10, options2, cb2, startTime) {
1228
+ return go$readdir(path10, options, cb);
1229
+ function fs$readdirCallback(path11, options2, cb2, startTime) {
1229
1230
  return function(err, files) {
1230
1231
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1231
1232
  enqueue([
1232
1233
  go$readdir,
1233
- [path10, options2, cb2],
1234
+ [path11, options2, cb2],
1234
1235
  err,
1235
1236
  startTime || Date.now(),
1236
1237
  Date.now()
@@ -1301,7 +1302,7 @@ var require_graceful_fs = __commonJS({
1301
1302
  enumerable: true,
1302
1303
  configurable: true
1303
1304
  });
1304
- function ReadStream(path9, options) {
1305
+ function ReadStream(path10, options) {
1305
1306
  if (this instanceof ReadStream)
1306
1307
  return fs$ReadStream.apply(this, arguments), this;
1307
1308
  else
@@ -1321,7 +1322,7 @@ var require_graceful_fs = __commonJS({
1321
1322
  }
1322
1323
  });
1323
1324
  }
1324
- function WriteStream(path9, options) {
1325
+ function WriteStream(path10, options) {
1325
1326
  if (this instanceof WriteStream)
1326
1327
  return fs$WriteStream.apply(this, arguments), this;
1327
1328
  else
@@ -1339,22 +1340,22 @@ var require_graceful_fs = __commonJS({
1339
1340
  }
1340
1341
  });
1341
1342
  }
1342
- function createReadStream(path9, options) {
1343
- return new fs4.ReadStream(path9, options);
1343
+ function createReadStream(path10, options) {
1344
+ return new fs4.ReadStream(path10, options);
1344
1345
  }
1345
- function createWriteStream(path9, options) {
1346
- return new fs4.WriteStream(path9, options);
1346
+ function createWriteStream(path10, options) {
1347
+ return new fs4.WriteStream(path10, options);
1347
1348
  }
1348
1349
  var fs$open = fs4.open;
1349
1350
  fs4.open = open;
1350
- function open(path9, flags, mode, cb) {
1351
+ function open(path10, flags, mode, cb) {
1351
1352
  if (typeof mode === "function")
1352
1353
  cb = mode, mode = null;
1353
- return go$open(path9, flags, mode, cb);
1354
- function go$open(path10, flags2, mode2, cb2, startTime) {
1355
- return fs$open(path10, flags2, mode2, function(err, fd) {
1354
+ return go$open(path10, flags, mode, cb);
1355
+ function go$open(path11, flags2, mode2, cb2, startTime) {
1356
+ return fs$open(path11, flags2, mode2, function(err, fd) {
1356
1357
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
1357
- enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1358
+ enqueue([go$open, [path11, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
1358
1359
  else {
1359
1360
  if (typeof cb2 === "function")
1360
1361
  cb2.apply(this, arguments);
@@ -1526,10 +1527,10 @@ var require_utils = __commonJS({
1526
1527
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module) {
1527
1528
  "use strict";
1528
1529
  init_esm_shims();
1529
- var path9 = __require("path");
1530
+ var path10 = __require("path");
1530
1531
  module.exports.checkPath = function checkPath(pth) {
1531
1532
  if (process.platform === "win32") {
1532
- const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path9.parse(pth).root, ""));
1533
+ const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path10.parse(pth).root, ""));
1533
1534
  if (pathHasInvalidWinCharacters) {
1534
1535
  const error = new Error(`Path contains invalid characters: ${pth}`);
1535
1536
  error.code = "EINVAL";
@@ -1596,8 +1597,8 @@ var require_path_exists = __commonJS({
1596
1597
  init_esm_shims();
1597
1598
  var u = require_universalify().fromPromise;
1598
1599
  var fs3 = require_fs();
1599
- function pathExists(path9) {
1600
- return fs3.access(path9).then(() => true).catch(() => false);
1600
+ function pathExists(path10) {
1601
+ return fs3.access(path10).then(() => true).catch(() => false);
1601
1602
  }
1602
1603
  module.exports = {
1603
1604
  pathExists: u(pathExists),
@@ -1612,8 +1613,8 @@ var require_utimes = __commonJS({
1612
1613
  "use strict";
1613
1614
  init_esm_shims();
1614
1615
  var fs3 = require_graceful_fs();
1615
- function utimesMillis(path9, atime, mtime, callback) {
1616
- fs3.open(path9, "r+", (err, fd) => {
1616
+ function utimesMillis(path10, atime, mtime, callback) {
1617
+ fs3.open(path10, "r+", (err, fd) => {
1617
1618
  if (err) return callback(err);
1618
1619
  fs3.futimes(fd, atime, mtime, (futimesErr) => {
1619
1620
  fs3.close(fd, (closeErr) => {
@@ -1622,8 +1623,8 @@ var require_utimes = __commonJS({
1622
1623
  });
1623
1624
  });
1624
1625
  }
1625
- function utimesMillisSync(path9, atime, mtime) {
1626
- const fd = fs3.openSync(path9, "r+");
1626
+ function utimesMillisSync(path10, atime, mtime) {
1627
+ const fd = fs3.openSync(path10, "r+");
1627
1628
  fs3.futimesSync(fd, atime, mtime);
1628
1629
  return fs3.closeSync(fd);
1629
1630
  }
@@ -1640,7 +1641,7 @@ var require_stat = __commonJS({
1640
1641
  "use strict";
1641
1642
  init_esm_shims();
1642
1643
  var fs3 = require_fs();
1643
- var path9 = __require("path");
1644
+ var path10 = __require("path");
1644
1645
  var util = __require("util");
1645
1646
  function getStats(src, dest, opts) {
1646
1647
  const statFunc = opts.dereference ? (file) => fs3.stat(file, { bigint: true }) : (file) => fs3.lstat(file, { bigint: true });
@@ -1670,8 +1671,8 @@ var require_stat = __commonJS({
1670
1671
  const { srcStat, destStat } = stats;
1671
1672
  if (destStat) {
1672
1673
  if (areIdentical(srcStat, destStat)) {
1673
- const srcBaseName = path9.basename(src);
1674
- const destBaseName = path9.basename(dest);
1674
+ const srcBaseName = path10.basename(src);
1675
+ const destBaseName = path10.basename(dest);
1675
1676
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1676
1677
  return cb(null, { srcStat, destStat, isChangingCase: true });
1677
1678
  }
@@ -1694,8 +1695,8 @@ var require_stat = __commonJS({
1694
1695
  const { srcStat, destStat } = getStatsSync(src, dest, opts);
1695
1696
  if (destStat) {
1696
1697
  if (areIdentical(srcStat, destStat)) {
1697
- const srcBaseName = path9.basename(src);
1698
- const destBaseName = path9.basename(dest);
1698
+ const srcBaseName = path10.basename(src);
1699
+ const destBaseName = path10.basename(dest);
1699
1700
  if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
1700
1701
  return { srcStat, destStat, isChangingCase: true };
1701
1702
  }
@@ -1714,9 +1715,9 @@ var require_stat = __commonJS({
1714
1715
  return { srcStat, destStat };
1715
1716
  }
1716
1717
  function checkParentPaths(src, srcStat, dest, funcName, cb) {
1717
- const srcParent = path9.resolve(path9.dirname(src));
1718
- const destParent = path9.resolve(path9.dirname(dest));
1719
- if (destParent === srcParent || destParent === path9.parse(destParent).root) return cb();
1718
+ const srcParent = path10.resolve(path10.dirname(src));
1719
+ const destParent = path10.resolve(path10.dirname(dest));
1720
+ if (destParent === srcParent || destParent === path10.parse(destParent).root) return cb();
1720
1721
  fs3.stat(destParent, { bigint: true }, (err, destStat) => {
1721
1722
  if (err) {
1722
1723
  if (err.code === "ENOENT") return cb();
@@ -1729,9 +1730,9 @@ var require_stat = __commonJS({
1729
1730
  });
1730
1731
  }
1731
1732
  function checkParentPathsSync(src, srcStat, dest, funcName) {
1732
- const srcParent = path9.resolve(path9.dirname(src));
1733
- const destParent = path9.resolve(path9.dirname(dest));
1734
- if (destParent === srcParent || destParent === path9.parse(destParent).root) return;
1733
+ const srcParent = path10.resolve(path10.dirname(src));
1734
+ const destParent = path10.resolve(path10.dirname(dest));
1735
+ if (destParent === srcParent || destParent === path10.parse(destParent).root) return;
1735
1736
  let destStat;
1736
1737
  try {
1737
1738
  destStat = fs3.statSync(destParent, { bigint: true });
@@ -1748,8 +1749,8 @@ var require_stat = __commonJS({
1748
1749
  return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
1749
1750
  }
1750
1751
  function isSrcSubdir(src, dest) {
1751
- const srcArr = path9.resolve(src).split(path9.sep).filter((i) => i);
1752
- const destArr = path9.resolve(dest).split(path9.sep).filter((i) => i);
1752
+ const srcArr = path10.resolve(src).split(path10.sep).filter((i) => i);
1753
+ const destArr = path10.resolve(dest).split(path10.sep).filter((i) => i);
1753
1754
  return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
1754
1755
  }
1755
1756
  function errMsg(src, dest, funcName) {
@@ -1772,7 +1773,7 @@ var require_copy = __commonJS({
1772
1773
  "use strict";
1773
1774
  init_esm_shims();
1774
1775
  var fs3 = require_graceful_fs();
1775
- var path9 = __require("path");
1776
+ var path10 = __require("path");
1776
1777
  var mkdirs = require_mkdirs().mkdirs;
1777
1778
  var pathExists = require_path_exists().pathExists;
1778
1779
  var utimesMillis = require_utimes().utimesMillis;
@@ -1807,7 +1808,7 @@ var require_copy = __commonJS({
1807
1808
  });
1808
1809
  }
1809
1810
  function checkParentDir(destStat, src, dest, opts, cb) {
1810
- const destParent = path9.dirname(dest);
1811
+ const destParent = path10.dirname(dest);
1811
1812
  pathExists(destParent, (err, dirExists) => {
1812
1813
  if (err) return cb(err);
1813
1814
  if (dirExists) return getStats(destStat, src, dest, opts, cb);
@@ -1915,8 +1916,8 @@ var require_copy = __commonJS({
1915
1916
  return copyDirItem(items, item, src, dest, opts, cb);
1916
1917
  }
1917
1918
  function copyDirItem(items, item, src, dest, opts, cb) {
1918
- const srcItem = path9.join(src, item);
1919
- const destItem = path9.join(dest, item);
1919
+ const srcItem = path10.join(src, item);
1920
+ const destItem = path10.join(dest, item);
1920
1921
  stat2.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
1921
1922
  if (err) return cb(err);
1922
1923
  const { destStat } = stats;
@@ -1930,7 +1931,7 @@ var require_copy = __commonJS({
1930
1931
  fs3.readlink(src, (err, resolvedSrc) => {
1931
1932
  if (err) return cb(err);
1932
1933
  if (opts.dereference) {
1933
- resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
1934
+ resolvedSrc = path10.resolve(process.cwd(), resolvedSrc);
1934
1935
  }
1935
1936
  if (!destStat) {
1936
1937
  return fs3.symlink(resolvedSrc, dest, cb);
@@ -1941,7 +1942,7 @@ var require_copy = __commonJS({
1941
1942
  return cb(err2);
1942
1943
  }
1943
1944
  if (opts.dereference) {
1944
- resolvedDest = path9.resolve(process.cwd(), resolvedDest);
1945
+ resolvedDest = path10.resolve(process.cwd(), resolvedDest);
1945
1946
  }
1946
1947
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
1947
1948
  return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
@@ -1970,7 +1971,7 @@ var require_copy_sync = __commonJS({
1970
1971
  "use strict";
1971
1972
  init_esm_shims();
1972
1973
  var fs3 = require_graceful_fs();
1973
- var path9 = __require("path");
1974
+ var path10 = __require("path");
1974
1975
  var mkdirsSync = require_mkdirs().mkdirsSync;
1975
1976
  var utimesMillisSync = require_utimes().utimesMillisSync;
1976
1977
  var stat2 = require_stat();
@@ -1994,7 +1995,7 @@ var require_copy_sync = __commonJS({
1994
1995
  }
1995
1996
  function handleFilterAndCopy(destStat, src, dest, opts) {
1996
1997
  if (opts.filter && !opts.filter(src, dest)) return;
1997
- const destParent = path9.dirname(dest);
1998
+ const destParent = path10.dirname(dest);
1998
1999
  if (!fs3.existsSync(destParent)) mkdirsSync(destParent);
1999
2000
  return getStats(destStat, src, dest, opts);
2000
2001
  }
@@ -2059,15 +2060,15 @@ var require_copy_sync = __commonJS({
2059
2060
  fs3.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
2060
2061
  }
2061
2062
  function copyDirItem(item, src, dest, opts) {
2062
- const srcItem = path9.join(src, item);
2063
- const destItem = path9.join(dest, item);
2063
+ const srcItem = path10.join(src, item);
2064
+ const destItem = path10.join(dest, item);
2064
2065
  const { destStat } = stat2.checkPathsSync(srcItem, destItem, "copy", opts);
2065
2066
  return startCopy(destStat, srcItem, destItem, opts);
2066
2067
  }
2067
2068
  function onLink(destStat, src, dest, opts) {
2068
2069
  let resolvedSrc = fs3.readlinkSync(src);
2069
2070
  if (opts.dereference) {
2070
- resolvedSrc = path9.resolve(process.cwd(), resolvedSrc);
2071
+ resolvedSrc = path10.resolve(process.cwd(), resolvedSrc);
2071
2072
  }
2072
2073
  if (!destStat) {
2073
2074
  return fs3.symlinkSync(resolvedSrc, dest);
@@ -2080,7 +2081,7 @@ var require_copy_sync = __commonJS({
2080
2081
  throw err;
2081
2082
  }
2082
2083
  if (opts.dereference) {
2083
- resolvedDest = path9.resolve(process.cwd(), resolvedDest);
2084
+ resolvedDest = path10.resolve(process.cwd(), resolvedDest);
2084
2085
  }
2085
2086
  if (stat2.isSrcSubdir(resolvedSrc, resolvedDest)) {
2086
2087
  throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
@@ -2118,7 +2119,7 @@ var require_rimraf = __commonJS({
2118
2119
  "use strict";
2119
2120
  init_esm_shims();
2120
2121
  var fs3 = require_graceful_fs();
2121
- var path9 = __require("path");
2122
+ var path10 = __require("path");
2122
2123
  var assert = __require("assert");
2123
2124
  var isWindows2 = process.platform === "win32";
2124
2125
  function defaults2(options) {
@@ -2263,7 +2264,7 @@ var require_rimraf = __commonJS({
2263
2264
  let errState;
2264
2265
  if (n3 === 0) return options.rmdir(p, cb);
2265
2266
  files.forEach((f) => {
2266
- rimraf(path9.join(p, f), options, (er2) => {
2267
+ rimraf(path10.join(p, f), options, (er2) => {
2267
2268
  if (errState) {
2268
2269
  return;
2269
2270
  }
@@ -2328,7 +2329,7 @@ var require_rimraf = __commonJS({
2328
2329
  function rmkidsSync(p, options) {
2329
2330
  assert(p);
2330
2331
  assert(options);
2331
- options.readdirSync(p).forEach((f) => rimrafSync(path9.join(p, f), options));
2332
+ options.readdirSync(p).forEach((f) => rimrafSync(path10.join(p, f), options));
2332
2333
  if (isWindows2) {
2333
2334
  const startTime = Date.now();
2334
2335
  do {
@@ -2356,13 +2357,13 @@ var require_remove = __commonJS({
2356
2357
  var fs3 = require_graceful_fs();
2357
2358
  var u = require_universalify().fromCallback;
2358
2359
  var rimraf = require_rimraf();
2359
- function remove2(path9, callback) {
2360
- if (fs3.rm) return fs3.rm(path9, { recursive: true, force: true }, callback);
2361
- rimraf(path9, callback);
2360
+ function remove2(path10, callback) {
2361
+ if (fs3.rm) return fs3.rm(path10, { recursive: true, force: true }, callback);
2362
+ rimraf(path10, callback);
2362
2363
  }
2363
- function removeSync(path9) {
2364
- if (fs3.rmSync) return fs3.rmSync(path9, { recursive: true, force: true });
2365
- rimraf.sync(path9);
2364
+ function removeSync(path10) {
2365
+ if (fs3.rmSync) return fs3.rmSync(path10, { recursive: true, force: true });
2366
+ rimraf.sync(path10);
2366
2367
  }
2367
2368
  module.exports = {
2368
2369
  remove: u(remove2),
@@ -2378,7 +2379,7 @@ var require_empty = __commonJS({
2378
2379
  init_esm_shims();
2379
2380
  var u = require_universalify().fromPromise;
2380
2381
  var fs3 = require_fs();
2381
- var path9 = __require("path");
2382
+ var path10 = __require("path");
2382
2383
  var mkdir = require_mkdirs();
2383
2384
  var remove2 = require_remove();
2384
2385
  var emptyDir = u(async function emptyDir2(dir) {
@@ -2388,7 +2389,7 @@ var require_empty = __commonJS({
2388
2389
  } catch {
2389
2390
  return mkdir.mkdirs(dir);
2390
2391
  }
2391
- return Promise.all(items.map((item) => remove2.remove(path9.join(dir, item))));
2392
+ return Promise.all(items.map((item) => remove2.remove(path10.join(dir, item))));
2392
2393
  });
2393
2394
  function emptyDirSync2(dir) {
2394
2395
  let items;
@@ -2398,7 +2399,7 @@ var require_empty = __commonJS({
2398
2399
  return mkdir.mkdirsSync(dir);
2399
2400
  }
2400
2401
  items.forEach((item) => {
2401
- item = path9.join(dir, item);
2402
+ item = path10.join(dir, item);
2402
2403
  remove2.removeSync(item);
2403
2404
  });
2404
2405
  }
@@ -2417,7 +2418,7 @@ var require_file = __commonJS({
2417
2418
  "use strict";
2418
2419
  init_esm_shims();
2419
2420
  var u = require_universalify().fromCallback;
2420
- var path9 = __require("path");
2421
+ var path10 = __require("path");
2421
2422
  var fs3 = require_graceful_fs();
2422
2423
  var mkdir = require_mkdirs();
2423
2424
  function createFile(file, callback) {
@@ -2429,7 +2430,7 @@ var require_file = __commonJS({
2429
2430
  }
2430
2431
  fs3.stat(file, (err, stats) => {
2431
2432
  if (!err && stats.isFile()) return callback();
2432
- const dir = path9.dirname(file);
2433
+ const dir = path10.dirname(file);
2433
2434
  fs3.stat(dir, (err2, stats2) => {
2434
2435
  if (err2) {
2435
2436
  if (err2.code === "ENOENT") {
@@ -2456,7 +2457,7 @@ var require_file = __commonJS({
2456
2457
  } catch {
2457
2458
  }
2458
2459
  if (stats && stats.isFile()) return;
2459
- const dir = path9.dirname(file);
2460
+ const dir = path10.dirname(file);
2460
2461
  try {
2461
2462
  if (!fs3.statSync(dir).isDirectory()) {
2462
2463
  fs3.readdirSync(dir);
@@ -2480,7 +2481,7 @@ var require_link = __commonJS({
2480
2481
  "use strict";
2481
2482
  init_esm_shims();
2482
2483
  var u = require_universalify().fromCallback;
2483
- var path9 = __require("path");
2484
+ var path10 = __require("path");
2484
2485
  var fs3 = require_graceful_fs();
2485
2486
  var mkdir = require_mkdirs();
2486
2487
  var pathExists = require_path_exists().pathExists;
@@ -2499,7 +2500,7 @@ var require_link = __commonJS({
2499
2500
  return callback(err);
2500
2501
  }
2501
2502
  if (dstStat && areIdentical(srcStat, dstStat)) return callback(null);
2502
- const dir = path9.dirname(dstpath);
2503
+ const dir = path10.dirname(dstpath);
2503
2504
  pathExists(dir, (err2, dirExists) => {
2504
2505
  if (err2) return callback(err2);
2505
2506
  if (dirExists) return makeLink(srcpath, dstpath);
@@ -2524,7 +2525,7 @@ var require_link = __commonJS({
2524
2525
  err.message = err.message.replace("lstat", "ensureLink");
2525
2526
  throw err;
2526
2527
  }
2527
- const dir = path9.dirname(dstpath);
2528
+ const dir = path10.dirname(dstpath);
2528
2529
  const dirExists = fs3.existsSync(dir);
2529
2530
  if (dirExists) return fs3.linkSync(srcpath, dstpath);
2530
2531
  mkdir.mkdirsSync(dir);
@@ -2542,11 +2543,11 @@ var require_symlink_paths = __commonJS({
2542
2543
  "../../node_modules/vite-plugin-externals/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module) {
2543
2544
  "use strict";
2544
2545
  init_esm_shims();
2545
- var path9 = __require("path");
2546
+ var path10 = __require("path");
2546
2547
  var fs3 = require_graceful_fs();
2547
2548
  var pathExists = require_path_exists().pathExists;
2548
2549
  function symlinkPaths(srcpath, dstpath, callback) {
2549
- if (path9.isAbsolute(srcpath)) {
2550
+ if (path10.isAbsolute(srcpath)) {
2550
2551
  return fs3.lstat(srcpath, (err) => {
2551
2552
  if (err) {
2552
2553
  err.message = err.message.replace("lstat", "ensureSymlink");
@@ -2558,8 +2559,8 @@ var require_symlink_paths = __commonJS({
2558
2559
  });
2559
2560
  });
2560
2561
  } else {
2561
- const dstdir = path9.dirname(dstpath);
2562
- const relativeToDst = path9.join(dstdir, srcpath);
2562
+ const dstdir = path10.dirname(dstpath);
2563
+ const relativeToDst = path10.join(dstdir, srcpath);
2563
2564
  return pathExists(relativeToDst, (err, exists) => {
2564
2565
  if (err) return callback(err);
2565
2566
  if (exists) {
@@ -2575,7 +2576,7 @@ var require_symlink_paths = __commonJS({
2575
2576
  }
2576
2577
  return callback(null, {
2577
2578
  toCwd: srcpath,
2578
- toDst: path9.relative(dstdir, srcpath)
2579
+ toDst: path10.relative(dstdir, srcpath)
2579
2580
  });
2580
2581
  });
2581
2582
  }
@@ -2584,7 +2585,7 @@ var require_symlink_paths = __commonJS({
2584
2585
  }
2585
2586
  function symlinkPathsSync(srcpath, dstpath) {
2586
2587
  let exists;
2587
- if (path9.isAbsolute(srcpath)) {
2588
+ if (path10.isAbsolute(srcpath)) {
2588
2589
  exists = fs3.existsSync(srcpath);
2589
2590
  if (!exists) throw new Error("absolute srcpath does not exist");
2590
2591
  return {
@@ -2592,8 +2593,8 @@ var require_symlink_paths = __commonJS({
2592
2593
  toDst: srcpath
2593
2594
  };
2594
2595
  } else {
2595
- const dstdir = path9.dirname(dstpath);
2596
- const relativeToDst = path9.join(dstdir, srcpath);
2596
+ const dstdir = path10.dirname(dstpath);
2597
+ const relativeToDst = path10.join(dstdir, srcpath);
2597
2598
  exists = fs3.existsSync(relativeToDst);
2598
2599
  if (exists) {
2599
2600
  return {
@@ -2605,7 +2606,7 @@ var require_symlink_paths = __commonJS({
2605
2606
  if (!exists) throw new Error("relative srcpath does not exist");
2606
2607
  return {
2607
2608
  toCwd: srcpath,
2608
- toDst: path9.relative(dstdir, srcpath)
2609
+ toDst: path10.relative(dstdir, srcpath)
2609
2610
  };
2610
2611
  }
2611
2612
  }
@@ -2656,7 +2657,7 @@ var require_symlink = __commonJS({
2656
2657
  "use strict";
2657
2658
  init_esm_shims();
2658
2659
  var u = require_universalify().fromCallback;
2659
- var path9 = __require("path");
2660
+ var path10 = __require("path");
2660
2661
  var fs3 = require_fs();
2661
2662
  var _mkdirs = require_mkdirs();
2662
2663
  var mkdirs = _mkdirs.mkdirs;
@@ -2690,7 +2691,7 @@ var require_symlink = __commonJS({
2690
2691
  srcpath = relative3.toDst;
2691
2692
  symlinkType(relative3.toCwd, type, (err2, type2) => {
2692
2693
  if (err2) return callback(err2);
2693
- const dir = path9.dirname(dstpath);
2694
+ const dir = path10.dirname(dstpath);
2694
2695
  pathExists(dir, (err3, dirExists) => {
2695
2696
  if (err3) return callback(err3);
2696
2697
  if (dirExists) return fs3.symlink(srcpath, dstpath, type2, callback);
@@ -2716,7 +2717,7 @@ var require_symlink = __commonJS({
2716
2717
  const relative3 = symlinkPathsSync(srcpath, dstpath);
2717
2718
  srcpath = relative3.toDst;
2718
2719
  type = symlinkTypeSync(relative3.toCwd, type);
2719
- const dir = path9.dirname(dstpath);
2720
+ const dir = path10.dirname(dstpath);
2720
2721
  const exists = fs3.existsSync(dir);
2721
2722
  if (exists) return fs3.symlinkSync(srcpath, dstpath, type);
2722
2723
  mkdirsSync(dir);
@@ -2873,7 +2874,7 @@ var require_output_file = __commonJS({
2873
2874
  init_esm_shims();
2874
2875
  var u = require_universalify().fromCallback;
2875
2876
  var fs3 = require_graceful_fs();
2876
- var path9 = __require("path");
2877
+ var path10 = __require("path");
2877
2878
  var mkdir = require_mkdirs();
2878
2879
  var pathExists = require_path_exists().pathExists;
2879
2880
  function outputFile(file, data2, encoding, callback) {
@@ -2881,7 +2882,7 @@ var require_output_file = __commonJS({
2881
2882
  callback = encoding;
2882
2883
  encoding = "utf8";
2883
2884
  }
2884
- const dir = path9.dirname(file);
2885
+ const dir = path10.dirname(file);
2885
2886
  pathExists(dir, (err, itDoes) => {
2886
2887
  if (err) return callback(err);
2887
2888
  if (itDoes) return fs3.writeFile(file, data2, encoding, callback);
@@ -2892,7 +2893,7 @@ var require_output_file = __commonJS({
2892
2893
  });
2893
2894
  }
2894
2895
  function outputFileSync(file, ...args) {
2895
- const dir = path9.dirname(file);
2896
+ const dir = path10.dirname(file);
2896
2897
  if (fs3.existsSync(dir)) {
2897
2898
  return fs3.writeFileSync(file, ...args);
2898
2899
  }
@@ -2961,7 +2962,7 @@ var require_move = __commonJS({
2961
2962
  "use strict";
2962
2963
  init_esm_shims();
2963
2964
  var fs3 = require_graceful_fs();
2964
- var path9 = __require("path");
2965
+ var path10 = __require("path");
2965
2966
  var copy = require_copy2().copy;
2966
2967
  var remove2 = require_remove().remove;
2967
2968
  var mkdirp = require_mkdirs().mkdirp;
@@ -2980,7 +2981,7 @@ var require_move = __commonJS({
2980
2981
  stat2.checkParentPaths(src, srcStat, dest, "move", (err2) => {
2981
2982
  if (err2) return cb(err2);
2982
2983
  if (isParentRoot(dest)) return doRename(src, dest, overwrite2, isChangingCase, cb);
2983
- mkdirp(path9.dirname(dest), (err3) => {
2984
+ mkdirp(path10.dirname(dest), (err3) => {
2984
2985
  if (err3) return cb(err3);
2985
2986
  return doRename(src, dest, overwrite2, isChangingCase, cb);
2986
2987
  });
@@ -2988,8 +2989,8 @@ var require_move = __commonJS({
2988
2989
  });
2989
2990
  }
2990
2991
  function isParentRoot(dest) {
2991
- const parent = path9.dirname(dest);
2992
- const parsedPath = path9.parse(parent);
2992
+ const parent = path10.dirname(dest);
2993
+ const parsedPath = path10.parse(parent);
2993
2994
  return parsedPath.root === parent;
2994
2995
  }
2995
2996
  function doRename(src, dest, overwrite2, isChangingCase, cb) {
@@ -3033,7 +3034,7 @@ var require_move_sync = __commonJS({
3033
3034
  "use strict";
3034
3035
  init_esm_shims();
3035
3036
  var fs3 = require_graceful_fs();
3036
- var path9 = __require("path");
3037
+ var path10 = __require("path");
3037
3038
  var copySync = require_copy2().copySync;
3038
3039
  var removeSync = require_remove().removeSync;
3039
3040
  var mkdirpSync = require_mkdirs().mkdirpSync;
@@ -3043,12 +3044,12 @@ var require_move_sync = __commonJS({
3043
3044
  const overwrite2 = opts.overwrite || opts.clobber || false;
3044
3045
  const { srcStat, isChangingCase = false } = stat2.checkPathsSync(src, dest, "move", opts);
3045
3046
  stat2.checkParentPathsSync(src, srcStat, dest, "move");
3046
- if (!isParentRoot(dest)) mkdirpSync(path9.dirname(dest));
3047
+ if (!isParentRoot(dest)) mkdirpSync(path10.dirname(dest));
3047
3048
  return doRename(src, dest, overwrite2, isChangingCase);
3048
3049
  }
3049
3050
  function isParentRoot(dest) {
3050
- const parent = path9.dirname(dest);
3051
- const parsedPath = path9.parse(parent);
3051
+ const parent = path10.dirname(dest);
3052
+ const parsedPath = path10.parse(parent);
3052
3053
  return parsedPath.root === parent;
3053
3054
  }
3054
3055
  function doRename(src, dest, overwrite2, isChangingCase) {
@@ -16154,12 +16155,12 @@ var require_pkcs1 = __commonJS({
16154
16155
  }
16155
16156
  return db.substring(index + 1);
16156
16157
  };
16157
- function rsa_mgf1(seed, maskLength, hash2) {
16158
- if (!hash2) {
16159
- hash2 = forge.md.sha1.create();
16158
+ function rsa_mgf1(seed, maskLength, hash3) {
16159
+ if (!hash3) {
16160
+ hash3 = forge.md.sha1.create();
16160
16161
  }
16161
16162
  var t = "";
16162
- var count = Math.ceil(maskLength / hash2.digestLength);
16163
+ var count = Math.ceil(maskLength / hash3.digestLength);
16163
16164
  for (var i = 0; i < count; ++i) {
16164
16165
  var c = String.fromCharCode(
16165
16166
  i >> 24 & 255,
@@ -16167,9 +16168,9 @@ var require_pkcs1 = __commonJS({
16167
16168
  i >> 8 & 255,
16168
16169
  i & 255
16169
16170
  );
16170
- hash2.start();
16171
- hash2.update(seed + c);
16172
- t += hash2.digest().getBytes();
16171
+ hash3.start();
16172
+ hash3.update(seed + c);
16173
+ t += hash3.digest().getBytes();
16173
16174
  }
16174
16175
  return t.substring(0, maskLength);
16175
16176
  }
@@ -18209,13 +18210,13 @@ var require_pbe = __commonJS({
18209
18210
  if (salt === null) {
18210
18211
  salt = "";
18211
18212
  }
18212
- var digests = [hash2(md, password + salt)];
18213
+ var digests = [hash3(md, password + salt)];
18213
18214
  for (var length3 = 16, i = 1; length3 < dkLen; ++i, length3 += 16) {
18214
- digests.push(hash2(md, digests[i - 1] + password + salt));
18215
+ digests.push(hash3(md, digests[i - 1] + password + salt));
18215
18216
  }
18216
18217
  return digests.join("").substr(0, dkLen);
18217
18218
  };
18218
- function hash2(md, bytes) {
18219
+ function hash3(md, bytes) {
18219
18220
  return md.start().update(bytes).digest().getBytes();
18220
18221
  }
18221
18222
  function prfOidToMessageDigest(prfOid) {
@@ -18681,9 +18682,9 @@ var require_pss = __commonJS({
18681
18682
  saltLength: arguments[2]
18682
18683
  };
18683
18684
  }
18684
- var hash2 = options.md;
18685
+ var hash3 = options.md;
18685
18686
  var mgf = options.mgf;
18686
- var hLen = hash2.digestLength;
18687
+ var hLen = hash3.digestLength;
18687
18688
  var salt_ = options.salt || null;
18688
18689
  if (typeof salt_ === "string") {
18689
18690
  salt_ = forge.util.createBuffer(salt_);
@@ -18719,9 +18720,9 @@ var require_pss = __commonJS({
18719
18720
  m_.fillWithByte(0, 8);
18720
18721
  m_.putBytes(mHash);
18721
18722
  m_.putBytes(salt);
18722
- hash2.start();
18723
- hash2.update(m_.getBytes());
18724
- var h = hash2.digest().getBytes();
18723
+ hash3.start();
18724
+ hash3.update(m_.getBytes());
18725
+ var h = hash3.digest().getBytes();
18725
18726
  var ps = new forge.util.ByteBuffer();
18726
18727
  ps.fillWithByte(0, emLen - sLen - hLen - 2);
18727
18728
  ps.putByte(1);
@@ -18775,9 +18776,9 @@ var require_pss = __commonJS({
18775
18776
  m_.fillWithByte(0, 8);
18776
18777
  m_.putBytes(mHash);
18777
18778
  m_.putBytes(salt);
18778
- hash2.start();
18779
- hash2.update(m_.getBytes());
18780
- var h_ = hash2.digest().getBytes();
18779
+ hash3.start();
18780
+ hash3.update(m_.getBytes());
18781
+ var h_ = hash3.digest().getBytes();
18781
18782
  return h === h_;
18782
18783
  };
18783
18784
  return pssobj;
@@ -19319,12 +19320,12 @@ var require_x509 = __commonJS({
19319
19320
  case oids.sha1WithRSASignature:
19320
19321
  break;
19321
19322
  case oids["RSASSA-PSS"]:
19322
- var hash2, mgf;
19323
- hash2 = oids[cert.signatureParameters.mgf.hash.algorithmOid];
19324
- if (hash2 === void 0 || forge.md[hash2] === void 0) {
19323
+ var hash3, mgf;
19324
+ hash3 = oids[cert.signatureParameters.mgf.hash.algorithmOid];
19325
+ if (hash3 === void 0 || forge.md[hash3] === void 0) {
19325
19326
  var error = new Error("Unsupported MGF hash function.");
19326
19327
  error.oid = cert.signatureParameters.mgf.hash.algorithmOid;
19327
- error.name = hash2;
19328
+ error.name = hash3;
19328
19329
  throw error;
19329
19330
  }
19330
19331
  mgf = oids[cert.signatureParameters.mgf.algorithmOid];
@@ -19334,16 +19335,16 @@ var require_x509 = __commonJS({
19334
19335
  error.name = mgf;
19335
19336
  throw error;
19336
19337
  }
19337
- mgf = forge.mgf[mgf].create(forge.md[hash2].create());
19338
- hash2 = oids[cert.signatureParameters.hash.algorithmOid];
19339
- if (hash2 === void 0 || forge.md[hash2] === void 0) {
19338
+ mgf = forge.mgf[mgf].create(forge.md[hash3].create());
19339
+ hash3 = oids[cert.signatureParameters.hash.algorithmOid];
19340
+ if (hash3 === void 0 || forge.md[hash3] === void 0) {
19340
19341
  var error = new Error("Unsupported RSASSA-PSS hash function.");
19341
19342
  error.oid = cert.signatureParameters.hash.algorithmOid;
19342
- error.name = hash2;
19343
+ error.name = hash3;
19343
19344
  throw error;
19344
19345
  }
19345
19346
  scheme = forge.pss.create(
19346
- forge.md[hash2].create(),
19347
+ forge.md[hash3].create(),
19347
19348
  mgf,
19348
19349
  cert.signatureParameters.saltLength
19349
19350
  );
@@ -20695,9 +20696,9 @@ var require_x509 = __commonJS({
20695
20696
  };
20696
20697
  caStore.listAllCertificates = function() {
20697
20698
  var certList = [];
20698
- for (var hash2 in caStore.certs) {
20699
- if (caStore.certs.hasOwnProperty(hash2)) {
20700
- var value = caStore.certs[hash2];
20699
+ for (var hash3 in caStore.certs) {
20700
+ if (caStore.certs.hasOwnProperty(hash3)) {
20701
+ var value = caStore.certs[hash3];
20701
20702
  if (!forge.util.isArray(value)) {
20702
20703
  certList.push(value);
20703
20704
  } else {
@@ -24852,13 +24853,13 @@ var require_ed25519 = __commonJS({
24852
24853
  var md = forge.md.sha512.create();
24853
24854
  var buffer = new ByteBuffer(msg);
24854
24855
  md.update(buffer.getBytes(msgLen), "binary");
24855
- var hash2 = md.digest().getBytes();
24856
+ var hash3 = md.digest().getBytes();
24856
24857
  if (typeof Buffer !== "undefined") {
24857
- return Buffer.from(hash2, "binary");
24858
+ return Buffer.from(hash3, "binary");
24858
24859
  }
24859
24860
  var out = new NativeBuffer(ed25519.constants.HASH_BYTE_LENGTH);
24860
24861
  for (var i = 0; i < 64; ++i) {
24861
- out[i] = hash2.charCodeAt(i);
24862
+ out[i] = hash3.charCodeAt(i);
24862
24863
  }
24863
24864
  return out;
24864
24865
  }
@@ -25668,8 +25669,8 @@ var require_kem = __commonJS({
25668
25669
  c.putInt32(i);
25669
25670
  md.start();
25670
25671
  md.update(x + c.getBytes());
25671
- var hash2 = md.digest();
25672
- key.putBytes(hash2.getBytes(digestLength));
25672
+ var hash3 = md.digest();
25673
+ key.putBytes(hash3.getBytes(digestLength));
25673
25674
  }
25674
25675
  key.truncate(key.length() - length3);
25675
25676
  return key.getBytes();
@@ -27750,12 +27751,12 @@ function getIncluder(includePaths = defaultInclude, excludePaths = defaultExclud
27750
27751
  includePaths.forEach(addCompiledGlob, includers);
27751
27752
  excludePaths.forEach(addCompiledGlob, excluders);
27752
27753
  debug(`compiled globs:`, { includers, excluders });
27753
- return (path9) => {
27754
- path9 = path9.replace(/\?.+$/, "");
27755
- if (!relativeImportRE.test(path9)) {
27756
- path9 = `./${path9}`;
27754
+ return (path10) => {
27755
+ path10 = path10.replace(/\?.+$/, "");
27756
+ if (!relativeImportRE.test(path10)) {
27757
+ path10 = `./${path10}`;
27757
27758
  }
27758
- const test = (glob) => glob.test(path9);
27759
+ const test = (glob) => glob.test(path10);
27759
27760
  return includers.some(test) && !excluders.some(test);
27760
27761
  };
27761
27762
  }
@@ -27779,8 +27780,8 @@ function compileGlob(glob) {
27779
27780
  globstar: true
27780
27781
  }).regex;
27781
27782
  }
27782
- function ensureRelative(dir, path9) {
27783
- return isAbsolute(path9) ? relative(dir, path9) : path9;
27783
+ function ensureRelative(dir, path10) {
27784
+ return isAbsolute(path10) ? relative(dir, path10) : path10;
27784
27785
  }
27785
27786
 
27786
27787
  // ../cli-miniflare/src/index.ts
@@ -38506,7 +38507,7 @@ var getDashboardComponentBuildTemplate = (appId, dashboardComponent) => {
38506
38507
 
38507
38508
  // src/vite/plugins/module-bundle/custom-elements.ts
38508
38509
  init_esm_shims();
38509
- var getCustomElementBaseTemplate = (path9, tagName, appId) => (
38510
+ var getCustomElementBaseTemplate = (path10, tagName, appId) => (
38510
38511
  // In UsersCustomElementClass we have class that will be registered in customElements registry
38511
38512
  // Then this class will be used to create instances for each of elements of our CustomElement
38512
38513
  // That's why we patching it's proto with accessTokenListener (in case user do not have it), so then platform could call it on each of instances
@@ -38517,7 +38518,7 @@ var getCustomElementBaseTemplate = (path9, tagName, appId) => (
38517
38518
  await import('https://unpkg.com/react@16.14.0/umd/react.production.min.js');
38518
38519
  await import('https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js');
38519
38520
  }
38520
- const { default: UsersCustomElementClass } = await import('${path9}');
38521
+ const { default: UsersCustomElementClass } = await import('${path10}');
38521
38522
 
38522
38523
  let accessTokenListenerFn = UsersCustomElementClass.prototype.accessTokenListener;
38523
38524
  if (!accessTokenListenerFn) {
@@ -38570,7 +38571,7 @@ var getCustomElementPanelBuildTemplate = (customElementPanelComponent) => {
38570
38571
 
38571
38572
  // src/vite/plugins/module-bundle/site-components.ts
38572
38573
  init_esm_shims();
38573
- var getSiteComponentBaseTemplate = (applicationId, path9) => {
38574
+ var getSiteComponentBaseTemplate = (applicationId, path10) => {
38574
38575
  return defaultOutdent`
38575
38576
  import { enableClient } from '@wix/cli-app/internal/platform-sdk/site';
38576
38577
 
@@ -38578,7 +38579,7 @@ var getSiteComponentBaseTemplate = (applicationId, path9) => {
38578
38579
 
38579
38580
  export { injectAccessTokenGetter };
38580
38581
 
38581
- export { default } from '${path9}';
38582
+ export { default } from '${path10}';
38582
38583
  `;
38583
38584
  };
38584
38585
  var getSiteComponentDevTemplate = (applicationId, component) => getSiteComponentBaseTemplate(
@@ -38592,9 +38593,9 @@ var getSiteComponentSdkDevTemplate = (component) => {
38592
38593
  var getSiteComponentSdkBuildTemplate = (component) => {
38593
38594
  return `export { default } from '/${component.relativeSdkPath}';`;
38594
38595
  };
38595
- var getSiteComponentPanelBaseTemplate = (path9) => defaultOutdent`
38596
+ var getSiteComponentPanelBaseTemplate = (path10) => defaultOutdent`
38596
38597
  import { enablePanelClient } from '@wix/cli-app/internal/platform-sdk/site';
38597
- import Component from '${path9}';
38598
+ import Component from '${path10}';
38598
38599
 
38599
38600
  export default (config) => {
38600
38601
  const clientConfig = (config.host && config.auth) ? {
@@ -39254,7 +39255,33 @@ var exportsCustodian = ({ initialModel }) => {
39254
39255
  return [
39255
39256
  ...virtualSiteComponentAssets.keys(),
39256
39257
  ...virtualSiteComponentPanelAssets.keys()
39257
- ].map((path9) => `import('${path9}');`).join("\n");
39258
+ ].map((path10) => `import('${path10}');`).join("\n");
39259
+ }
39260
+ return null;
39261
+ }
39262
+ };
39263
+ };
39264
+
39265
+ // src/vite/plugins/force-hash-refresh.ts
39266
+ init_esm_shims();
39267
+ import path7 from "node:path";
39268
+ var hash2 = Number(Date.now());
39269
+ var forceHashRefresh = () => {
39270
+ return {
39271
+ name: "wix:force-hash-refresh",
39272
+ transform(code, id) {
39273
+ const extensions = /* @__PURE__ */ new Set([".ts", ".tsx", ".js", ".jsx", ".mjs"]);
39274
+ const extension = path7.extname(id);
39275
+ if (extensions.has(extension)) {
39276
+ const variables = ["import.meta.env.BASE_API_URL"];
39277
+ if (variables.some((variable) => code.includes(variable))) {
39278
+ return {
39279
+ code: `${code}
39280
+
39281
+ /*! ENV_HASH:${hash2} */`,
39282
+ map: null
39283
+ };
39284
+ }
39258
39285
  }
39259
39286
  return null;
39260
39287
  }
@@ -39353,7 +39380,8 @@ function getViteConfig2(model, options) {
39353
39380
  src_default({
39354
39381
  ignoreConfigErrors: true,
39355
39382
  root: model.projectFolder
39356
- })
39383
+ }),
39384
+ forceHashRefresh()
39357
39385
  ],
39358
39386
  experimental: {
39359
39387
  /*
@@ -39441,7 +39469,8 @@ function getViteConfig3(model, options) {
39441
39469
  src_default({
39442
39470
  ignoreConfigErrors: true,
39443
39471
  root: model.projectFolder
39444
- })
39472
+ }),
39473
+ forceHashRefresh()
39445
39474
  ]
39446
39475
  };
39447
39476
  }
@@ -39478,6 +39507,7 @@ function getViteConfig4(model, options) {
39478
39507
  build: {
39479
39508
  ssr: true,
39480
39509
  sourcemap: true,
39510
+ ssrEmitAssets: true,
39481
39511
  outDir: getAppSsrBuildFolder(model.projectFolder),
39482
39512
  emptyOutDir: false,
39483
39513
  rollupOptions: {
@@ -39508,7 +39538,8 @@ function getViteConfig4(model, options) {
39508
39538
  src_default({
39509
39539
  ignoreConfigErrors: true,
39510
39540
  root: model.projectFolder
39511
- })
39541
+ }),
39542
+ forceHashRefresh()
39512
39543
  ]
39513
39544
  };
39514
39545
  });
@@ -39527,7 +39558,7 @@ init_esm_shims();
39527
39558
  init_esm_shims();
39528
39559
  var import_selfsigned = __toESM(require_selfsigned(), 1);
39529
39560
  import { readFile as readFile4, writeFile as writeFile2, stat } from "node:fs/promises";
39530
- import path7 from "node:path";
39561
+ import path8 from "node:path";
39531
39562
  var PEM_FILENAME = "wix-cli.pem";
39532
39563
  var PEM_MAX_DAYS = 30;
39533
39564
  var attrs = [
@@ -39570,7 +39601,7 @@ var shouldRecreatePem = async (wixCliPemPath) => {
39570
39601
  };
39571
39602
  var generateHostCert = async () => {
39572
39603
  const wixDataDir = getDataDirPath();
39573
- const wixCliPemPath = path7.join(wixDataDir, PEM_FILENAME);
39604
+ const wixCliPemPath = path8.join(wixDataDir, PEM_FILENAME);
39574
39605
  const recreatePem = await shouldRecreatePem(wixCliPemPath);
39575
39606
  if (!recreatePem) {
39576
39607
  const cachedCert = await readFile4(wixCliPemPath, {
@@ -40286,6 +40317,55 @@ async function createAppManifest({
40286
40317
  deploymentUri: "__SERVICE_PLUGIN_URL_PLACEHOLDER__"
40287
40318
  }
40288
40319
  }
40320
+ }),
40321
+ EcomRecommendationsProvider: (component2) => ({
40322
+ compName: component2.name,
40323
+ compId: component2.id,
40324
+ compType: ComponentType.ECOM_RECOMMENDATIONS_PROVIDER,
40325
+ compData: {
40326
+ ecomRecommendationsProvider: {
40327
+ deploymentUri: "__SERVICE_PLUGIN_URL_PLACEHOLDER__",
40328
+ catalogAppIds: component2.catalogAppIds,
40329
+ supportedAlgorithms: component2.supportedAlgorithms
40330
+ }
40331
+ }
40332
+ }),
40333
+ SeoKeywordsSuggestion: (component2) => ({
40334
+ compName: component2.name,
40335
+ compId: component2.id,
40336
+ compType: ComponentType.SEO_KEYWORDS_SUGGESTIONS,
40337
+ compData: {
40338
+ seoKeywordsSuggestions: {
40339
+ baseUri: "__SERVICE_PLUGIN_URL_PLACEHOLDER__",
40340
+ upgradeUrl: component2.upgradeUrl,
40341
+ quotaEnabled: component2.quotaEnabled,
40342
+ supportedCountryCodes: component2.supportedCountryCodes,
40343
+ landingPageUrl: component2.landingPageUrl
40344
+ }
40345
+ }
40346
+ }),
40347
+ ExternalDatabaseProvider: (component2) => ({
40348
+ compName: component2.name,
40349
+ compId: component2.id,
40350
+ compType: ComponentType.EXTERNAL_DATABASE_PROVIDER,
40351
+ compData: {
40352
+ externalDatabaseProvider: {
40353
+ namespace: component2.namespace,
40354
+ uriConfig: {
40355
+ baseUri: "__SERVICE_PLUGIN_URL_PLACEHOLDER__"
40356
+ }
40357
+ }
40358
+ }
40359
+ }),
40360
+ PremiumCustomCharges: (component2) => ({
40361
+ compName: component2.name,
40362
+ compId: component2.id,
40363
+ compType: ComponentType.PREMIUM_CUSTOM_CHARGES,
40364
+ compData: {
40365
+ premiumCustomCharges: {
40366
+ baseUri: { baseUri: "__SERVICE_PLUGIN_URL_PLACEHOLDER__" }
40367
+ }
40368
+ }
40289
40369
  })
40290
40370
  });
40291
40371
  const { servicePluginType } = await componentSourceBuilder(component);
@@ -40363,7 +40443,7 @@ async function createAppManifest({
40363
40443
  // src/app-manifest/component-source.ts
40364
40444
  init_esm_shims();
40365
40445
  var import_variant5 = __toESM(require_lib(), 1);
40366
- import path8, { dirname as dirname5, join as join7 } from "node:path";
40446
+ import path9, { dirname as dirname5, join as join7 } from "node:path";
40367
40447
  import { pathToFileURL as pathToFileURL2 } from "node:url";
40368
40448
 
40369
40449
  // src/app-manifest/build-output-data-extractor.ts
@@ -40555,7 +40635,7 @@ var embeddedScriptBuilder = async (model, component, source) => {
40555
40635
  return {
40556
40636
  template: source.buildSource ? extractModuleBundleContent(
40557
40637
  source.buildSource.browserBuildOutput,
40558
- path8.resolve(model.projectFolder, component.relativePath)
40638
+ path9.resolve(model.projectFolder, component.relativePath)
40559
40639
  ) : await getEmbeddedScriptDevTemplate(
40560
40640
  component,
40561
40641
  source.devSource.devServerUrl
@@ -40667,7 +40747,7 @@ var siteComponentBuildBuilder = (component, { browserBuildOutput }, { ssrBuildOu
40667
40747
  resources: {
40668
40748
  client: {
40669
40749
  componentUrl: extractModuleBundleName(browserBuildOutput, moduleId),
40670
- cssUrl: extractModuleBundleCss(browserBuildOutput, moduleId)
40750
+ cssUrl: extractModuleBundleCss(ssrBuildOutput, moduleId)
40671
40751
  },
40672
40752
  server: {
40673
40753
  url: extractModuleBundleName(ssrBuildOutput, moduleId)
@@ -41239,6 +41319,69 @@ var ecomGiftCardsProviderSchema = z.object({
41239
41319
  })
41240
41320
  })
41241
41321
  }).passthrough();
41322
+ var recommendationsAlgorithm = z.object({
41323
+ algorithmId: z.string().uuid(),
41324
+ name: z.string(),
41325
+ algorithmType: z.enum([AlgorithmType.GLOBAL, AlgorithmType.RELATED_ITEMS]),
41326
+ description: z.string(),
41327
+ additionalInfo: z.string().optional()
41328
+ });
41329
+ var ecomRecommendationsProviderSchema = z.object({
41330
+ compId: z.string().uuid(),
41331
+ compType: z.literal(ComponentType.ECOM_RECOMMENDATIONS_PROVIDER),
41332
+ compName: z.string().optional(),
41333
+ compData: z.object({
41334
+ ecomRecommendationsProvider: z.object({
41335
+ deploymentUri: z.string(),
41336
+ catalogAppIds: z.array(z.string()),
41337
+ supportedAlgorithms: z.array(recommendationsAlgorithm)
41338
+ })
41339
+ })
41340
+ }).passthrough();
41341
+ var seoKeywordsSuggestionSchema = z.object({
41342
+ compId: z.string().uuid(),
41343
+ compType: z.literal(ComponentType.SEO_KEYWORDS_SUGGESTIONS),
41344
+ compName: z.string().optional(),
41345
+ compData: z.object({
41346
+ seoKeywordsSuggestions: z.object({
41347
+ baseUri: z.string(),
41348
+ upgradeUrl: z.string().optional(),
41349
+ landingPageUrl: z.string(),
41350
+ quotaEnabled: z.boolean().optional(),
41351
+ supportedCountryCodes: z.array(z.string())
41352
+ })
41353
+ })
41354
+ }).passthrough();
41355
+ var spiBaseUriSchema = z.object({
41356
+ baseUri: z.string(),
41357
+ alternativeUris: z.array(
41358
+ z.object({
41359
+ absoluteUri: z.string(),
41360
+ methodName: z.string()
41361
+ })
41362
+ ).optional()
41363
+ });
41364
+ var premiumCustomChargesSchema = z.object({
41365
+ compId: z.string().uuid(),
41366
+ compType: z.literal(ComponentType.PREMIUM_CUSTOM_CHARGES),
41367
+ compName: z.string().optional(),
41368
+ compData: z.object({
41369
+ premiumCustomCharges: z.object({
41370
+ baseUri: spiBaseUriSchema
41371
+ })
41372
+ })
41373
+ }).passthrough();
41374
+ var externalDatabaseProviderSchema = z.object({
41375
+ compId: z.string().uuid(),
41376
+ compType: z.literal(ComponentType.EXTERNAL_DATABASE_PROVIDER),
41377
+ compName: z.string().optional(),
41378
+ compData: z.object({
41379
+ externalDatabaseProvider: z.object({
41380
+ namespace: z.string(),
41381
+ uriConfig: spiBaseUriSchema
41382
+ })
41383
+ })
41384
+ }).passthrough();
41242
41385
  var topologySchema = z.object({
41243
41386
  compType: z.literal(ComponentType.TOPOLOGY),
41244
41387
  compId: z.string(),
@@ -41322,6 +41465,10 @@ var componentSchema = z.discriminatedUnion("compType", [
41322
41465
  ecomValidationsSchema,
41323
41466
  ecomPaymentSettingsSchema,
41324
41467
  ecomGiftCardsProviderSchema,
41468
+ ecomRecommendationsProviderSchema,
41469
+ seoKeywordsSuggestionSchema,
41470
+ premiumCustomChargesSchema,
41471
+ externalDatabaseProviderSchema,
41325
41472
  topologySchema,
41326
41473
  monitoringSchema,
41327
41474
  siteComponentSchema
@@ -41656,12 +41803,6 @@ var updateBrowserComponentsWithBaseUrl = (appManifest, baseUrl) => {
41656
41803
  normalizedBaseUrl
41657
41804
  );
41658
41805
  }
41659
- if (compData.editorReactComponent.resources.client.cssUrl) {
41660
- compData.editorReactComponent.resources.client.cssUrl = normalizeUrl(
41661
- compData.editorReactComponent.resources.client.cssUrl,
41662
- normalizedBaseUrl
41663
- );
41664
- }
41665
41806
  }
41666
41807
  if (compType === ComponentType.PANEL && compData.panel.contentType === PanelContentType.code) {
41667
41808
  compData.panel.code.bundleUrl = normalizeUrl(
@@ -41754,6 +41895,34 @@ var updateBackendComponentsWithBaseUrl = (appManifest, backendServerUrl) => {
41754
41895
  deploymentUri: `${backendServerUrl}/service-plugins`
41755
41896
  };
41756
41897
  }
41898
+ if (compType === ComponentType.ECOM_RECOMMENDATIONS_PROVIDER && backendServerUrl) {
41899
+ compData.ecomRecommendationsProvider = {
41900
+ ...compData.ecomRecommendationsProvider,
41901
+ deploymentUri: `${backendServerUrl}/service-plugins`
41902
+ };
41903
+ }
41904
+ if (compType === ComponentType.SEO_KEYWORDS_SUGGESTIONS && backendServerUrl) {
41905
+ compData.seoKeywordsSuggestions = {
41906
+ ...compData.seoKeywordsSuggestions,
41907
+ baseUri: `${backendServerUrl}/service-plugins`
41908
+ };
41909
+ }
41910
+ if (compType === ComponentType.PREMIUM_CUSTOM_CHARGES && backendServerUrl) {
41911
+ compData.premiumCustomCharges = {
41912
+ ...compData.premiumCustomCharges,
41913
+ baseUri: {
41914
+ baseUri: `${backendServerUrl}/service-plugins`
41915
+ }
41916
+ };
41917
+ }
41918
+ if (compType === ComponentType.EXTERNAL_DATABASE_PROVIDER && backendServerUrl) {
41919
+ compData.externalDatabaseProvider = {
41920
+ ...compData.externalDatabaseProvider,
41921
+ uriConfig: {
41922
+ baseUri: `${backendServerUrl}/service-plugins`
41923
+ }
41924
+ };
41925
+ }
41757
41926
  }
41758
41927
  return clonedManifest;
41759
41928
  };
@@ -41879,6 +42048,12 @@ var updateSsrComponentsWithBaseUrl = (appManifest, ssrBaseUrl) => {
41879
42048
  for (const component of clonedManifest.components) {
41880
42049
  const { compData, compType } = component;
41881
42050
  if (compType === ComponentType.EDITOR_REACT_COMPONENT) {
42051
+ if (compData.editorReactComponent.resources.client.cssUrl) {
42052
+ compData.editorReactComponent.resources.client.cssUrl = normalizeUrl3(
42053
+ compData.editorReactComponent.resources.client.cssUrl,
42054
+ normalizedSsrBaseUrl
42055
+ );
42056
+ }
41882
42057
  if (compData.editorReactComponent.resources.server) {
41883
42058
  compData.editorReactComponent.resources.server.url = normalizeUrl3(
41884
42059
  compData.editorReactComponent.resources.server.url,
@@ -41945,4 +42120,4 @@ export {
41945
42120
  he/he.js:
41946
42121
  (*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
41947
42122
  */
41948
- //# sourceMappingURL=chunk-4IYY6ZGZ.js.map
42123
+ //# sourceMappingURL=chunk-UN2TQTOP.js.map