@wix/create-app 0.0.123 → 0.0.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -6815,21 +6815,21 @@ var require_stack_utils = __commonJS({
6815
6815
  return res;
6816
6816
  }
6817
6817
  parseLine(line) {
6818
- const match22 = line && line.match(re);
6819
- if (!match22) {
6818
+ const match23 = line && line.match(re);
6819
+ if (!match23) {
6820
6820
  return null;
6821
6821
  }
6822
- const ctor = match22[1] === "new";
6823
- let fname = match22[2];
6824
- const evalOrigin = match22[3];
6825
- const evalFile = match22[4];
6826
- const evalLine = Number(match22[5]);
6827
- const evalCol = Number(match22[6]);
6828
- let file = match22[7];
6829
- const lnum = match22[8];
6830
- const col = match22[9];
6831
- const native = match22[10] === "native";
6832
- const closeParen = match22[11] === ")";
6822
+ const ctor = match23[1] === "new";
6823
+ let fname = match23[2];
6824
+ const evalOrigin = match23[3];
6825
+ const evalFile = match23[4];
6826
+ const evalLine = Number(match23[5]);
6827
+ const evalCol = Number(match23[6]);
6828
+ let file = match23[7];
6829
+ const lnum = match23[8];
6830
+ const col = match23[9];
6831
+ const native = match23[10] === "native";
6832
+ const closeParen = match23[11] === ")";
6833
6833
  let method;
6834
6834
  const res = {};
6835
6835
  if (lnum) {
@@ -7033,14 +7033,14 @@ var require_variant = __commonJS({
7033
7033
  return Object.assign(Object.assign({}, result), { [creator.output.type]: creator });
7034
7034
  }, {});
7035
7035
  }
7036
- function variant14(template) {
7036
+ function variant16(template) {
7037
7037
  if (Array.isArray(template)) {
7038
7038
  return variantList(template);
7039
7039
  } else {
7040
7040
  return variantModule(template);
7041
7041
  }
7042
7042
  }
7043
- return { descope, scoped: scope, variant: variant14, variantList, variantModule, variation };
7043
+ return { descope, scoped: scope, variant: variant16, variantList, variantModule, variation };
7044
7044
  }
7045
7045
  exports.variantImpl = variantImpl;
7046
7046
  }
@@ -7067,12 +7067,12 @@ var require_match = __commonJS({
7067
7067
  var variant_1 = require_variant();
7068
7068
  var precepts_1 = require_precepts();
7069
7069
  function matchImpl(key) {
7070
- const prematch = (_2) => (handler) => (instance2) => match22(instance2, handler);
7071
- function match22(...args) {
7070
+ const prematch = (_2) => (handler) => (instance2) => match23(instance2, handler);
7071
+ function match23(...args) {
7072
7072
  var _a3, _b;
7073
7073
  if (args.length === 1) {
7074
7074
  const [handler] = args;
7075
- return (instance2) => match22(instance2, handler);
7075
+ return (instance2) => match23(instance2, handler);
7076
7076
  } else if (args.length === 2) {
7077
7077
  const [instanceOrTypeOrCreator, handlerParam] = args;
7078
7078
  const instanceOrCreator = typeof instanceOrTypeOrCreator === "string" ? ofLiteral(instanceOrTypeOrCreator) : instanceOrTypeOrCreator;
@@ -7092,7 +7092,7 @@ var require_match = __commonJS({
7092
7092
  [key]: instance2
7093
7093
  };
7094
7094
  }
7095
- function lookup2(handler) {
7095
+ function lookup3(handler) {
7096
7096
  const handlerWithFuncs = Object.keys(handler).reduce((acc, cur) => {
7097
7097
  return Object.assign(Object.assign({}, acc), { [cur]: () => handler[cur] });
7098
7098
  }, {});
@@ -7104,7 +7104,7 @@ var require_match = __commonJS({
7104
7104
  function withFallback(handler, fallback) {
7105
7105
  return (_2) => Object.assign(Object.assign({}, handler), { default: fallback });
7106
7106
  }
7107
- return { match: match22, ofLiteral, onLiteral, otherwise, partial: partial2, prematch, lookup: lookup2, withFallback };
7107
+ return { match: match23, ofLiteral, onLiteral, otherwise, partial: partial2, prematch, lookup: lookup3, withFallback };
7108
7108
  }
7109
7109
  exports.matchImpl = matchImpl;
7110
7110
  }
@@ -7170,11 +7170,11 @@ var require_isOfVariant = __commonJS({
7170
7170
  function isOfVariantImpl(key) {
7171
7171
  function isOfVariant3(...args) {
7172
7172
  if (args.length === 1) {
7173
- const [variant14] = args;
7174
- return (instance2) => instance2 != void 0 && Object.values(variant14).some((vc) => vc.output.type === instance2[key]);
7173
+ const [variant16] = args;
7174
+ return (instance2) => instance2 != void 0 && Object.values(variant16).some((vc) => vc.output.type === instance2[key]);
7175
7175
  } else if (args.length === 2) {
7176
- const [instance2, variant14] = args;
7177
- return instance2 != void 0 && Object.values(variant14).some((vc) => vc.output.type === instance2[key]);
7176
+ const [instance2, variant16] = args;
7177
+ return instance2 != void 0 && Object.values(variant16).some((vc) => vc.output.type === instance2[key]);
7178
7178
  }
7179
7179
  return false;
7180
7180
  }
@@ -7202,7 +7202,7 @@ var require_remote = __commonJS({
7202
7202
  })(CompareResult = exports.CompareResult || (exports.CompareResult = {}));
7203
7203
  function remoteImpl(key) {
7204
7204
  const { isType: isType16 } = (0, isType_1.isTypeImpl)(key);
7205
- const { match: match22 } = (0, match_1.matchImpl)(key);
7205
+ const { match: match23 } = (0, match_1.matchImpl)(key);
7206
7206
  const { variantList } = (0, variant_1.variantImpl)(key);
7207
7207
  function isFunctions(vmod) {
7208
7208
  const keys = Object.keys(vmod);
@@ -7215,7 +7215,7 @@ var require_remote = __commonJS({
7215
7215
  key,
7216
7216
  is: isFunctions(vmod),
7217
7217
  new: vmod,
7218
- match: match22
7218
+ match: match23
7219
7219
  };
7220
7220
  }
7221
7221
  ;
@@ -7611,15 +7611,15 @@ var require_typeCatalog = __commonJS({
7611
7611
  init_esm_shims();
7612
7612
  Object.defineProperty(exports, "__esModule", { value: true });
7613
7613
  exports.typeMap = exports.typeCatalog = void 0;
7614
- function typeCatalog(variant14) {
7615
- return Object.values(variant14).reduce((result, vc) => {
7614
+ function typeCatalog(variant16) {
7615
+ return Object.values(variant16).reduce((result, vc) => {
7616
7616
  return Object.assign(Object.assign({}, result), { [vc.output.type]: vc.output.type });
7617
7617
  }, {});
7618
7618
  }
7619
7619
  exports.typeCatalog = typeCatalog;
7620
- function typeMap(variant14) {
7621
- return Object.keys(variant14).reduce((result, key) => {
7622
- return Object.assign(Object.assign({}, result), { [key]: variant14[key].output.type });
7620
+ function typeMap(variant16) {
7621
+ return Object.keys(variant16).reduce((result, key) => {
7622
+ return Object.assign(Object.assign({}, result), { [key]: variant16[key].output.type });
7623
7623
  }, {});
7624
7624
  }
7625
7625
  exports.typeMap = typeMap;
@@ -7668,13 +7668,13 @@ var require_variant_tools = __commonJS({
7668
7668
  init_esm_shims();
7669
7669
  Object.defineProperty(exports, "__esModule", { value: true });
7670
7670
  exports.nil = exports.payload = exports.fields = void 0;
7671
- function fields9(defaults2 = {}) {
7671
+ function fields10(defaults2 = {}) {
7672
7672
  return (...args) => {
7673
7673
  const [arg] = args;
7674
7674
  return Object.assign(Object.assign({}, defaults2), arg);
7675
7675
  };
7676
7676
  }
7677
- exports.fields = fields9;
7677
+ exports.fields = fields10;
7678
7678
  function payload5(_example) {
7679
7679
  return (payload6) => ({ payload: payload6 });
7680
7680
  }
@@ -10577,7 +10577,7 @@ var require_extsprintf = __commonJS({
10577
10577
  var args = Array.prototype.slice.call(arguments, 1);
10578
10578
  var fmt = ofmt;
10579
10579
  var flags, width, precision, conversion;
10580
- var left, pad, sign, arg, match22;
10580
+ var left, pad, sign, arg, match23;
10581
10581
  var ret = "";
10582
10582
  var argn = 1;
10583
10583
  var posn = 0;
@@ -10588,16 +10588,16 @@ var require_extsprintf = __commonJS({
10588
10588
  typeof fmt,
10589
10589
  "first argument must be a format string"
10590
10590
  );
10591
- while ((match22 = re.exec(fmt)) !== null) {
10592
- ret += match22[1];
10593
- fmt = fmt.substring(match22[0].length);
10594
- curconv = match22[0].substring(match22[1].length);
10595
- convposn = posn + match22[1].length + 1;
10596
- posn += match22[0].length;
10597
- flags = match22[2] || "";
10598
- width = match22[3] || 0;
10599
- precision = match22[4] || "";
10600
- conversion = match22[6];
10591
+ while ((match23 = re.exec(fmt)) !== null) {
10592
+ ret += match23[1];
10593
+ fmt = fmt.substring(match23[0].length);
10594
+ curconv = match23[0].substring(match23[1].length);
10595
+ convposn = posn + match23[1].length + 1;
10596
+ posn += match23[0].length;
10597
+ flags = match23[2] || "";
10598
+ width = match23[3] || 0;
10599
+ precision = match23[4] || "";
10600
+ conversion = match23[6];
10601
10601
  left = false;
10602
10602
  sign = false;
10603
10603
  pad = " ";
@@ -12845,14 +12845,14 @@ var require_ms = __commonJS({
12845
12845
  if (str.length > 100) {
12846
12846
  return;
12847
12847
  }
12848
- var match22 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
12848
+ var match23 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
12849
12849
  str
12850
12850
  );
12851
- if (!match22) {
12851
+ if (!match23) {
12852
12852
  return;
12853
12853
  }
12854
- var n2 = parseFloat(match22[1]);
12855
- var type = (match22[2] || "ms").toLowerCase();
12854
+ var n2 = parseFloat(match23[1]);
12855
+ var type = (match23[2] || "ms").toLowerCase();
12856
12856
  switch (type) {
12857
12857
  case "years":
12858
12858
  case "year":
@@ -12985,19 +12985,19 @@ var require_common = __commonJS({
12985
12985
  args.unshift("%O");
12986
12986
  }
12987
12987
  let index = 0;
12988
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match22, format2) => {
12989
- if (match22 === "%%") {
12988
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match23, format2) => {
12989
+ if (match23 === "%%") {
12990
12990
  return "%";
12991
12991
  }
12992
12992
  index++;
12993
12993
  const formatter = createDebug.formatters[format2];
12994
12994
  if (typeof formatter === "function") {
12995
12995
  const val = args[index];
12996
- match22 = formatter.call(self2, val);
12996
+ match23 = formatter.call(self2, val);
12997
12997
  args.splice(index, 1);
12998
12998
  index--;
12999
12999
  }
13000
- return match22;
13000
+ return match23;
13001
13001
  });
13002
13002
  createDebug.formatArgs.call(self2, args);
13003
13003
  const logFn = self2.log || createDebug.log;
@@ -13234,12 +13234,12 @@ var require_browser = __commonJS({
13234
13234
  args.splice(1, 0, c2, "color: inherit");
13235
13235
  let index = 0;
13236
13236
  let lastC = 0;
13237
- args[0].replace(/%[a-zA-Z%]/g, (match22) => {
13238
- if (match22 === "%%") {
13237
+ args[0].replace(/%[a-zA-Z%]/g, (match23) => {
13238
+ if (match23 === "%%") {
13239
13239
  return;
13240
13240
  }
13241
13241
  index++;
13242
- if (match22 === "%c") {
13242
+ if (match23 === "%c") {
13243
13243
  lastC = index;
13244
13244
  }
13245
13245
  });
@@ -14425,8 +14425,8 @@ var require_cookies = __commonJS({
14425
14425
  document.cookie = cookie.join("; ");
14426
14426
  },
14427
14427
  read: function read(name) {
14428
- var match22 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
14429
- return match22 ? decodeURIComponent(match22[3]) : null;
14428
+ var match23 = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
14429
+ return match23 ? decodeURIComponent(match23[3]) : null;
14430
14430
  },
14431
14431
  remove: function remove(name) {
14432
14432
  this.write(name, "", Date.now() - 864e5);
@@ -15739,10 +15739,10 @@ var require_main = __commonJS({
15739
15739
  const obj = {};
15740
15740
  let lines = src.toString();
15741
15741
  lines = lines.replace(/\r\n?/mg, "\n");
15742
- let match22;
15743
- while ((match22 = LINE.exec(lines)) != null) {
15744
- const key = match22[1];
15745
- let value2 = match22[2] || "";
15742
+ let match23;
15743
+ while ((match23 = LINE.exec(lines)) != null) {
15744
+ const key = match23[1];
15745
+ let value2 = match23[2] || "";
15746
15746
  value2 = value2.trim();
15747
15747
  const maybeQuote = value2[0];
15748
15748
  value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
@@ -17071,15 +17071,15 @@ var init_TraceState = __esm({
17071
17071
 
17072
17072
  // ../../node_modules/@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js
17073
17073
  function parseTraceParent(traceParent) {
17074
- var match22 = TRACE_PARENT_REGEX.exec(traceParent);
17075
- if (!match22)
17074
+ var match23 = TRACE_PARENT_REGEX.exec(traceParent);
17075
+ if (!match23)
17076
17076
  return null;
17077
- if (match22[1] === "00" && match22[5])
17077
+ if (match23[1] === "00" && match23[5])
17078
17078
  return null;
17079
17079
  return {
17080
- traceId: match22[2],
17081
- spanId: match22[3],
17082
- traceFlags: parseInt(match22[4], 16)
17080
+ traceId: match23[2],
17081
+ spanId: match23[3],
17082
+ traceFlags: parseInt(match23[4], 16)
17083
17083
  };
17084
17084
  }
17085
17085
  var TRACE_PARENT_HEADER, TRACE_STATE_HEADER, VERSION2, VERSION_PART, TRACE_ID_PART, PARENT_ID_PART, FLAGS_PART, TRACE_PARENT_REGEX, W3CTraceContextPropagator;
@@ -18181,8 +18181,8 @@ var require_semver = __commonJS({
18181
18181
  }
18182
18182
  if (identifier) {
18183
18183
  const r2 = new RegExp(`^${this.options.loose ? src[t3.PRERELEASELOOSE] : src[t3.PRERELEASE]}$`);
18184
- const match22 = `-${identifier}`.match(r2);
18185
- if (!match22 || match22[1] !== identifier) {
18184
+ const match23 = `-${identifier}`.match(r2);
18185
+ if (!match23 || match23[1] !== identifier) {
18186
18186
  throw new Error(`invalid identifier: ${identifier}`);
18187
18187
  }
18188
18188
  }
@@ -18665,28 +18665,28 @@ var require_coerce = __commonJS({
18665
18665
  return null;
18666
18666
  }
18667
18667
  options = options || {};
18668
- let match22 = null;
18668
+ let match23 = null;
18669
18669
  if (!options.rtl) {
18670
- match22 = version.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
18670
+ match23 = version.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
18671
18671
  } else {
18672
18672
  const coerceRtlRegex = options.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
18673
18673
  let next;
18674
- while ((next = coerceRtlRegex.exec(version)) && (!match22 || match22.index + match22[0].length !== version.length)) {
18675
- if (!match22 || next.index + next[0].length !== match22.index + match22[0].length) {
18676
- match22 = next;
18674
+ while ((next = coerceRtlRegex.exec(version)) && (!match23 || match23.index + match23[0].length !== version.length)) {
18675
+ if (!match23 || next.index + next[0].length !== match23.index + match23[0].length) {
18676
+ match23 = next;
18677
18677
  }
18678
18678
  coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
18679
18679
  }
18680
18680
  coerceRtlRegex.lastIndex = -1;
18681
18681
  }
18682
- if (match22 === null) {
18682
+ if (match23 === null) {
18683
18683
  return null;
18684
18684
  }
18685
- const major = match22[2];
18686
- const minor = match22[3] || "0";
18687
- const patch = match22[4] || "0";
18688
- const prerelease = options.includePrerelease && match22[5] ? `-${match22[5]}` : "";
18689
- const build = options.includePrerelease && match22[6] ? `+${match22[6]}` : "";
18685
+ const major = match23[2];
18686
+ const minor = match23[3] || "0";
18687
+ const patch = match23[4] || "0";
18688
+ const prerelease = options.includePrerelease && match23[5] ? `-${match23[5]}` : "";
18689
+ const build = options.includePrerelease && match23[6] ? `+${match23[6]}` : "";
18690
18690
  return parse2(`${major}.${minor}.${patch}${prerelease}${build}`, options);
18691
18691
  };
18692
18692
  module2.exports = coerce2;
@@ -24687,10 +24687,10 @@ var require_utils6 = __commonJS({
24687
24687
  if (!type || typeof type.getFields !== "function" || type[symbols_1.OTEL_PATCHED_SYMBOL]) {
24688
24688
  return;
24689
24689
  }
24690
- const fields9 = type.getFields();
24690
+ const fields10 = type.getFields();
24691
24691
  type[symbols_1.OTEL_PATCHED_SYMBOL] = true;
24692
- Object.keys(fields9).forEach((key) => {
24693
- const field = fields9[key];
24692
+ Object.keys(fields10).forEach((key) => {
24693
+ const field = fields10[key];
24694
24694
  if (!field) {
24695
24695
  return;
24696
24696
  }
@@ -26391,7 +26391,7 @@ var require_instrumentation5 = __commonJS({
26391
26391
  }
26392
26392
  _patchCallbackQuery(span, parentContext) {
26393
26393
  return (originalCallback) => {
26394
- return function(err, results, fields9) {
26394
+ return function(err, results, fields10) {
26395
26395
  if (err) {
26396
26396
  span.setStatus({
26397
26397
  code: api_1.SpanStatusCode.ERROR,
@@ -26704,7 +26704,7 @@ var require_instrumentation6 = __commonJS({
26704
26704
  }
26705
26705
  _patchCallbackQuery(endSpan) {
26706
26706
  return (originalCallback) => {
26707
- return function(err, results, fields9) {
26707
+ return function(err, results, fields10) {
26708
26708
  endSpan(err, results);
26709
26709
  return originalCallback(...arguments);
26710
26710
  };
@@ -32751,20 +32751,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
32751
32751
  let debugOption;
32752
32752
  let debugHost = "127.0.0.1";
32753
32753
  let debugPort = "9229";
32754
- let match22;
32755
- if ((match22 = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
32756
- debugOption = match22[1];
32757
- } else if ((match22 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
32758
- debugOption = match22[1];
32759
- if (/^\d+$/.test(match22[3])) {
32760
- debugPort = match22[3];
32754
+ let match23;
32755
+ if ((match23 = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
32756
+ debugOption = match23[1];
32757
+ } else if ((match23 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
32758
+ debugOption = match23[1];
32759
+ if (/^\d+$/.test(match23[3])) {
32760
+ debugPort = match23[3];
32761
32761
  } else {
32762
- debugHost = match22[3];
32762
+ debugHost = match23[3];
32763
32763
  }
32764
- } else if ((match22 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
32765
- debugOption = match22[1];
32766
- debugHost = match22[3];
32767
- debugPort = match22[4];
32764
+ } else if ((match23 = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
32765
+ debugOption = match23[1];
32766
+ debugHost = match23[3];
32767
+ debugPort = match23[4];
32768
32768
  }
32769
32769
  if (debugOption && debugPort !== "0") {
32770
32770
  return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
@@ -33129,7 +33129,7 @@ var require_batch_queue = __commonJS({
33129
33129
  var fieldCounts = {};
33130
33130
  var batchLen = batch.e.length;
33131
33131
  var events = batch.e.map(function(event) {
33132
- var fields9 = Object.keys(event.f).map(function(field) {
33132
+ var fields10 = Object.keys(event.f).map(function(field) {
33133
33133
  var value2 = event.f[field];
33134
33134
  var key = field + "|" + value2;
33135
33135
  fieldCounts[key] = fieldCounts[key] || 0;
@@ -33137,12 +33137,12 @@ var require_batch_queue = __commonJS({
33137
33137
  return [field, value2, key];
33138
33138
  });
33139
33139
  return _extends2({}, event, {
33140
- f: fields9
33140
+ f: fields10
33141
33141
  });
33142
33142
  });
33143
33143
  var globalFields = {};
33144
33144
  events = events.map(function(event) {
33145
- var fields9 = event.f.reduce(function(res, _ref) {
33145
+ var fields10 = event.f.reduce(function(res, _ref) {
33146
33146
  var _ref2 = _slicedToArray(_ref, 3), field = _ref2[0], value2 = _ref2[1], key = _ref2[2];
33147
33147
  if (fieldCounts[key] === batchLen) {
33148
33148
  globalFields[field] = value2;
@@ -33152,7 +33152,7 @@ var require_batch_queue = __commonJS({
33152
33152
  return res;
33153
33153
  }, {});
33154
33154
  return _extends2({}, event, {
33155
- f: fields9
33155
+ f: fields10
33156
33156
  });
33157
33157
  });
33158
33158
  return _extends2({}, batch, {
@@ -34217,11 +34217,11 @@ var require_shebang_command = __commonJS({
34217
34217
  init_esm_shims();
34218
34218
  var shebangRegex = require_shebang_regex();
34219
34219
  module2.exports = (string = "") => {
34220
- const match22 = string.match(shebangRegex);
34221
- if (!match22) {
34220
+ const match23 = string.match(shebangRegex);
34221
+ if (!match23) {
34222
34222
  return null;
34223
34223
  }
34224
- const [path8, argument] = match22[0].replace(/#! ?/, "").split(" ");
34224
+ const [path8, argument] = match23[0].replace(/#! ?/, "").split(" ");
34225
34225
  const binary = path8.split("/").pop();
34226
34226
  if (binary === "env") {
34227
34227
  return argument;
@@ -34568,10 +34568,10 @@ var require_is_extglob = __commonJS({
34568
34568
  if (typeof str !== "string" || str === "") {
34569
34569
  return false;
34570
34570
  }
34571
- var match22;
34572
- while (match22 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
34573
- if (match22[2]) return true;
34574
- str = str.slice(match22.index + match22[0].length);
34571
+ var match23;
34572
+ while (match23 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
34573
+ if (match23[2]) return true;
34574
+ str = str.slice(match23.index + match23[0].length);
34575
34575
  }
34576
34576
  return false;
34577
34577
  };
@@ -36050,8 +36050,8 @@ var require_utils17 = __commonJS({
36050
36050
  exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
36051
36051
  exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
36052
36052
  exports.removeBackslashes = (str) => {
36053
- return str.replace(REGEX_REMOVE_BACKSLASH, (match22) => {
36054
- return match22 === "\\" ? "" : match22;
36053
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match23) => {
36054
+ return match23 === "\\" ? "" : match23;
36055
36055
  });
36056
36056
  };
36057
36057
  exports.supportsLookbehinds = () => {
@@ -36674,10 +36674,10 @@ var require_parse4 = __commonJS({
36674
36674
  push({ type: "text", value: value2 });
36675
36675
  continue;
36676
36676
  }
36677
- const match22 = /^\\+/.exec(remaining());
36677
+ const match23 = /^\\+/.exec(remaining());
36678
36678
  let slashes = 0;
36679
- if (match22 && match22[0].length > 2) {
36680
- slashes = match22[0].length;
36679
+ if (match23 && match23[0].length > 2) {
36680
+ slashes = match23[0].length;
36681
36681
  state.index += slashes;
36682
36682
  if (slashes % 2 !== 0) {
36683
36683
  value2 += "\\";
@@ -36965,10 +36965,10 @@ var require_parse4 = __commonJS({
36965
36965
  if (value2 === "$" || value2 === "^") {
36966
36966
  value2 = `\\${value2}`;
36967
36967
  }
36968
- const match22 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
36969
- if (match22) {
36970
- value2 += match22[0];
36971
- state.index += match22[0].length;
36968
+ const match23 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
36969
+ if (match23) {
36970
+ value2 += match23[0];
36971
+ state.index += match23[0].length;
36972
36972
  }
36973
36973
  push({ type: "text", value: value2 });
36974
36974
  continue;
@@ -37179,11 +37179,11 @@ var require_parse4 = __commonJS({
37179
37179
  case "**/.*":
37180
37180
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
37181
37181
  default: {
37182
- const match22 = /^(.*?)\.(\w+)$/.exec(str);
37183
- if (!match22) return;
37184
- const source2 = create3(match22[1]);
37182
+ const match23 = /^(.*?)\.(\w+)$/.exec(str);
37183
+ if (!match23) return;
37184
+ const source2 = create3(match23[1]);
37185
37185
  if (!source2) return;
37186
- return source2 + DOT_LITERAL + match22[2];
37186
+ return source2 + DOT_LITERAL + match23[2];
37187
37187
  }
37188
37188
  }
37189
37189
  };
@@ -37236,8 +37236,8 @@ var require_picomatch = __commonJS({
37236
37236
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
37237
37237
  }
37238
37238
  const matcher3 = (input, returnObject = false) => {
37239
- const { isMatch, match: match22, output } = picomatch.test(input, regex2, options, { glob, posix: posix2 });
37240
- const result = { glob, state, regex: regex2, posix: posix2, input, output, match: match22, isMatch };
37239
+ const { isMatch, match: match23, output } = picomatch.test(input, regex2, options, { glob, posix: posix2 });
37240
+ const result = { glob, state, regex: regex2, posix: posix2, input, output, match: match23, isMatch };
37241
37241
  if (typeof opts.onResult === "function") {
37242
37242
  opts.onResult(result);
37243
37243
  }
@@ -37271,20 +37271,20 @@ var require_picomatch = __commonJS({
37271
37271
  }
37272
37272
  const opts = options || {};
37273
37273
  const format2 = opts.format || (posix2 ? utils.toPosixSlashes : null);
37274
- let match22 = input === glob;
37275
- let output = match22 && format2 ? format2(input) : input;
37276
- if (match22 === false) {
37274
+ let match23 = input === glob;
37275
+ let output = match23 && format2 ? format2(input) : input;
37276
+ if (match23 === false) {
37277
37277
  output = format2 ? format2(input) : input;
37278
- match22 = output === glob;
37278
+ match23 = output === glob;
37279
37279
  }
37280
- if (match22 === false || opts.capture === true) {
37280
+ if (match23 === false || opts.capture === true) {
37281
37281
  if (opts.matchBase === true || opts.basename === true) {
37282
- match22 = picomatch.matchBase(input, regex2, options, posix2);
37282
+ match23 = picomatch.matchBase(input, regex2, options, posix2);
37283
37283
  } else {
37284
- match22 = regex2.exec(output);
37284
+ match23 = regex2.exec(output);
37285
37285
  }
37286
37286
  }
37287
- return { isMatch: Boolean(match22), match: match22, output };
37287
+ return { isMatch: Boolean(match23), match: match23, output };
37288
37288
  };
37289
37289
  picomatch.matchBase = (input, glob, options, posix2 = utils.isWindows(options)) => {
37290
37290
  const regex2 = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -37382,8 +37382,8 @@ var require_micromatch = __commonJS({
37382
37382
  if (negated) negatives++;
37383
37383
  for (let item of list) {
37384
37384
  let matched = isMatch(item, true);
37385
- let match22 = negated ? !matched.isMatch : matched.isMatch;
37386
- if (!match22) continue;
37385
+ let match23 = negated ? !matched.isMatch : matched.isMatch;
37386
+ if (!match23) continue;
37387
37387
  if (negated) {
37388
37388
  omit2.add(matched.output);
37389
37389
  } else {
@@ -37479,9 +37479,9 @@ var require_micromatch = __commonJS({
37479
37479
  micromatch.capture = (glob, input, options) => {
37480
37480
  let posix2 = utils.isWindows(options);
37481
37481
  let regex2 = picomatch.makeRe(String(glob), { ...options, capture: true });
37482
- let match22 = regex2.exec(posix2 ? utils.toPosixSlashes(input) : input);
37483
- if (match22) {
37484
- return match22.slice(1).map((v) => v === void 0 ? "" : v);
37482
+ let match23 = regex2.exec(posix2 ? utils.toPosixSlashes(input) : input);
37483
+ if (match23) {
37484
+ return match23.slice(1).map((v) => v === void 0 ? "" : v);
37485
37485
  }
37486
37486
  };
37487
37487
  micromatch.makeRe = (...args) => picomatch.makeRe(...args);
@@ -39410,7 +39410,7 @@ var require_partial = __commonJS({
39410
39410
  if (!pattern.complete && levels > section.length) {
39411
39411
  return true;
39412
39412
  }
39413
- const match22 = parts.every((part, index) => {
39413
+ const match23 = parts.every((part, index) => {
39414
39414
  const segment = pattern.segments[index];
39415
39415
  if (segment.dynamic && segment.patternRe.test(part)) {
39416
39416
  return true;
@@ -39420,7 +39420,7 @@ var require_partial = __commonJS({
39420
39420
  }
39421
39421
  return false;
39422
39422
  });
39423
- if (match22) {
39423
+ if (match23) {
39424
39424
  return true;
39425
39425
  }
39426
39426
  }
@@ -40036,7 +40036,7 @@ var require_ignore = __commonJS({
40036
40036
  var RETURN_FALSE = () => false;
40037
40037
  var sanitizeRange = (range) => range.replace(
40038
40038
  REGEX_REGEXP_RANGE,
40039
- (match22, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match22 : EMPTY
40039
+ (match23, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match23 : EMPTY
40040
40040
  );
40041
40041
  var cleanRangeBackSlash = (slashes) => {
40042
40042
  const { length } = slashes;
@@ -40088,7 +40088,7 @@ var require_ignore = __commonJS({
40088
40088
  // > These special characters are often called "metacharacters".
40089
40089
  [
40090
40090
  /[\\$.|*+(){^]/g,
40091
- (match22) => `\\${match22}`
40091
+ (match23) => `\\${match23}`
40092
40092
  ],
40093
40093
  [
40094
40094
  // > a question mark (?) matches a single character
@@ -40170,7 +40170,7 @@ var require_ignore = __commonJS({
40170
40170
  // > can be used to match one of the characters in a range.
40171
40171
  // `\` is escaped by step 3
40172
40172
  /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
40173
- (match22, leadEscape, range, endEscape, close2) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close2}` : close2 === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
40173
+ (match23, leadEscape, range, endEscape, close2) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close2}` : close2 === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
40174
40174
  ],
40175
40175
  // ending
40176
40176
  [
@@ -40187,7 +40187,7 @@ var require_ignore = __commonJS({
40187
40187
  // 'js*' will not match 'a.js'
40188
40188
  // 'js/' will not match 'a.js'
40189
40189
  // 'js' will match 'a.js' and 'a.js/'
40190
- (match22) => /\/$/.test(match22) ? `${match22}$` : `${match22}(?=$|\\/$)`
40190
+ (match23) => /\/$/.test(match23) ? `${match23}$` : `${match23}(?=$|\\/$)`
40191
40191
  ]
40192
40192
  ];
40193
40193
  var REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\\\*$/;
@@ -40533,11 +40533,11 @@ var require_ini = __commonJS({
40533
40533
  lines.forEach(function(line, _2, __) {
40534
40534
  if (!line || line.match(/^\s*[;#]/))
40535
40535
  return;
40536
- var match22 = line.match(re);
40537
- if (!match22)
40536
+ var match23 = line.match(re);
40537
+ if (!match23)
40538
40538
  return;
40539
- if (match22[1] !== void 0) {
40540
- section = unsafe(match22[1]);
40539
+ if (match23[1] !== void 0) {
40540
+ section = unsafe(match23[1]);
40541
40541
  if (section === "__proto__") {
40542
40542
  p = {};
40543
40543
  return;
@@ -40545,10 +40545,10 @@ var require_ini = __commonJS({
40545
40545
  p = out[section] = out[section] || {};
40546
40546
  return;
40547
40547
  }
40548
- var key = unsafe(match22[2]);
40548
+ var key = unsafe(match23[2]);
40549
40549
  if (key === "__proto__")
40550
40550
  return;
40551
- var value2 = match22[3] ? unsafe(match22[4]) : true;
40551
+ var value2 = match23[3] ? unsafe(match23[4]) : true;
40552
40552
  switch (value2) {
40553
40553
  case "true":
40554
40554
  case "false":
@@ -41089,7 +41089,7 @@ var require_rc = __commonJS({
41089
41089
  "use strict";
41090
41090
  init_esm_shims();
41091
41091
  var cc = require_utils20();
41092
- var join14 = __require("path").join;
41092
+ var join15 = __require("path").join;
41093
41093
  var deepExtend2 = require_deep_extend();
41094
41094
  var etc = "/etc";
41095
41095
  var win = process.platform === "win32";
@@ -41114,15 +41114,15 @@ var require_rc = __commonJS({
41114
41114
  }
41115
41115
  if (!win)
41116
41116
  [
41117
- join14(etc, name, "config"),
41118
- join14(etc, name + "rc")
41117
+ join15(etc, name, "config"),
41118
+ join15(etc, name + "rc")
41119
41119
  ].forEach(addConfigFile);
41120
41120
  if (home)
41121
41121
  [
41122
- join14(home, ".config", name, "config"),
41123
- join14(home, ".config", name),
41124
- join14(home, "." + name, "config"),
41125
- join14(home, "." + name + "rc")
41122
+ join15(home, ".config", name, "config"),
41123
+ join15(home, ".config", name),
41124
+ join15(home, "." + name, "config"),
41125
+ join15(home, "." + name + "rc")
41126
41126
  ].forEach(addConfigFile);
41127
41127
  addConfigFile(cc.find("." + name + "rc"));
41128
41128
  if (env3.config) addConfigFile(env3.config);
@@ -43798,8 +43798,8 @@ function encode_char(c) {
43798
43798
  }
43799
43799
  };
43800
43800
  exports.hyphenToCamel = function(str) {
43801
- return str.replace(/-[a-z]/g, function(match22) {
43802
- return match22[1].toUpperCase();
43801
+ return str.replace(/-[a-z]/g, function(match23) {
43802
+ return match23[1].toUpperCase();
43803
43803
  });
43804
43804
  };
43805
43805
  exports.createNullProtoObjWherePossible = function() {
@@ -43937,8 +43937,8 @@ var require_ejs = __commonJS({
43937
43937
  var includePath;
43938
43938
  var filePath;
43939
43939
  var views = options.views;
43940
- var match22 = /^[A-Za-z]+:\\|^\//.exec(path9);
43941
- if (match22 && match22.length) {
43940
+ var match23 = /^[A-Za-z]+:\\|^\//.exec(path9);
43941
+ if (match23 && match23.length) {
43942
43942
  path9 = path9.replace(/^\/*/, "");
43943
43943
  if (Array.isArray(options.root)) {
43944
43944
  includePath = resolvePaths(path9, options.root);
@@ -45136,31 +45136,31 @@ var require_timestamp = __commonJS({
45136
45136
  return false;
45137
45137
  }
45138
45138
  function constructYamlTimestamp(data) {
45139
- var match22, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
45140
- match22 = YAML_DATE_REGEXP.exec(data);
45141
- if (match22 === null) match22 = YAML_TIMESTAMP_REGEXP.exec(data);
45142
- if (match22 === null) throw new Error("Date resolve error");
45143
- year = +match22[1];
45144
- month = +match22[2] - 1;
45145
- day = +match22[3];
45146
- if (!match22[4]) {
45139
+ var match23, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
45140
+ match23 = YAML_DATE_REGEXP.exec(data);
45141
+ if (match23 === null) match23 = YAML_TIMESTAMP_REGEXP.exec(data);
45142
+ if (match23 === null) throw new Error("Date resolve error");
45143
+ year = +match23[1];
45144
+ month = +match23[2] - 1;
45145
+ day = +match23[3];
45146
+ if (!match23[4]) {
45147
45147
  return new Date(Date.UTC(year, month, day));
45148
45148
  }
45149
- hour = +match22[4];
45150
- minute = +match22[5];
45151
- second = +match22[6];
45152
- if (match22[7]) {
45153
- fraction = match22[7].slice(0, 3);
45149
+ hour = +match23[4];
45150
+ minute = +match23[5];
45151
+ second = +match23[6];
45152
+ if (match23[7]) {
45153
+ fraction = match23[7].slice(0, 3);
45154
45154
  while (fraction.length < 3) {
45155
45155
  fraction += "0";
45156
45156
  }
45157
45157
  fraction = +fraction;
45158
45158
  }
45159
- if (match22[9]) {
45160
- tz_hour = +match22[10];
45161
- tz_minute = +(match22[11] || 0);
45159
+ if (match23[9]) {
45160
+ tz_hour = +match23[10];
45161
+ tz_minute = +(match23[11] || 0);
45162
45162
  delta = (tz_hour * 60 + tz_minute) * 6e4;
45163
- if (match22[9] === "-") delta = -delta;
45163
+ if (match23[9] === "-") delta = -delta;
45164
45164
  }
45165
45165
  date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
45166
45166
  if (delta) date.setTime(date.getTime() - delta);
@@ -45685,19 +45685,19 @@ var require_loader = __commonJS({
45685
45685
  }
45686
45686
  var directiveHandlers = {
45687
45687
  YAML: function handleYamlDirective(state, name, args) {
45688
- var match22, major, minor;
45688
+ var match23, major, minor;
45689
45689
  if (state.version !== null) {
45690
45690
  throwError(state, "duplication of %YAML directive");
45691
45691
  }
45692
45692
  if (args.length !== 1) {
45693
45693
  throwError(state, "YAML directive accepts exactly one argument");
45694
45694
  }
45695
- match22 = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
45696
- if (match22 === null) {
45695
+ match23 = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
45696
+ if (match23 === null) {
45697
45697
  throwError(state, "ill-formed argument of the YAML directive");
45698
45698
  }
45699
- major = parseInt(match22[1], 10);
45700
- minor = parseInt(match22[2], 10);
45699
+ major = parseInt(match23[1], 10);
45700
+ minor = parseInt(match23[2], 10);
45701
45701
  if (major !== 1) {
45702
45702
  throwError(state, "unacceptable YAML version of the document");
45703
45703
  }
@@ -46944,9 +46944,9 @@ var require_dumper = __commonJS({
46944
46944
  }();
46945
46945
  var prevMoreIndented = string[0] === "\n" || string[0] === " ";
46946
46946
  var moreIndented;
46947
- var match22;
46948
- while (match22 = lineRe.exec(string)) {
46949
- var prefix = match22[1], line = match22[2];
46947
+ var match23;
46948
+ while (match23 = lineRe.exec(string)) {
46949
+ var prefix = match23[1], line = match23[2];
46950
46950
  moreIndented = line[0] === " ";
46951
46951
  result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
46952
46952
  prevMoreIndented = moreIndented;
@@ -46956,11 +46956,11 @@ var require_dumper = __commonJS({
46956
46956
  function foldLine(line, width) {
46957
46957
  if (line === "" || line[0] === " ") return line;
46958
46958
  var breakRe = / [^ ]/g;
46959
- var match22;
46959
+ var match23;
46960
46960
  var start = 0, end, curr = 0, next = 0;
46961
46961
  var result = "";
46962
- while (match22 = breakRe.exec(line)) {
46963
- next = match22.index;
46962
+ while (match23 = breakRe.exec(line)) {
46963
+ next = match23.index;
46964
46964
  if (next - start > width) {
46965
46965
  end = curr > start ? curr : next;
46966
46966
  result += "\n" + line.slice(start, end);
@@ -47297,10 +47297,10 @@ var require_front_matter = __commonJS({
47297
47297
  };
47298
47298
  }
47299
47299
  }
47300
- function computeLocation(match22, body) {
47300
+ function computeLocation(match23, body) {
47301
47301
  var line = 1;
47302
47302
  var pos = body.indexOf("\n");
47303
- var offset = match22.index + match22[0].length;
47303
+ var offset = match23.index + match23[0].length;
47304
47304
  while (pos !== -1) {
47305
47305
  if (pos >= offset) {
47306
47306
  return line;
@@ -47311,8 +47311,8 @@ var require_front_matter = __commonJS({
47311
47311
  return line;
47312
47312
  }
47313
47313
  function parse2(string, allowUnsafe) {
47314
- var match22 = regex2.exec(string);
47315
- if (!match22) {
47314
+ var match23 = regex2.exec(string);
47315
+ if (!match23) {
47316
47316
  return {
47317
47317
  attributes: {},
47318
47318
  body: string,
@@ -47320,10 +47320,10 @@ var require_front_matter = __commonJS({
47320
47320
  };
47321
47321
  }
47322
47322
  var loader = allowUnsafe ? parser.load : parser.safeLoad;
47323
- var yaml = match22[match22.length - 1].replace(/^\s+|\s+$/g, "");
47323
+ var yaml = match23[match23.length - 1].replace(/^\s+|\s+$/g, "");
47324
47324
  var attributes = loader(yaml) || {};
47325
- var body = string.replace(match22[0], "");
47326
- var line = computeLocation(match22, string);
47325
+ var body = string.replace(match23[0], "");
47326
+ var line = computeLocation(match23, string);
47327
47327
  return {
47328
47328
  attributes,
47329
47329
  body,
@@ -47340,7 +47340,7 @@ var require_front_matter = __commonJS({
47340
47340
 
47341
47341
  // src/index.tsx
47342
47342
  init_esm_shims();
47343
- var import_react115 = __toESM(require_react(), 1);
47343
+ var import_react117 = __toESM(require_react(), 1);
47344
47344
  import { cwd as cwd2 } from "node:process";
47345
47345
 
47346
47346
  // ../cli-telemetry-react/src/index.ts
@@ -47520,12 +47520,12 @@ var getAllProperties = (object) => {
47520
47520
  };
47521
47521
  function autoBind(self2, { include, exclude } = {}) {
47522
47522
  const filter = (key) => {
47523
- const match22 = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
47523
+ const match23 = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
47524
47524
  if (include) {
47525
- return include.some(match22);
47525
+ return include.some(match23);
47526
47526
  }
47527
47527
  if (exclude) {
47528
- return !exclude.some(match22);
47528
+ return !exclude.some(match23);
47529
47529
  }
47530
47530
  return true;
47531
47531
  };
@@ -57998,6 +57998,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
57998
57998
  FailedCreatingAppProject: {},
57999
57999
  FailedCreatingAppDeployment: {},
58000
58000
  FailedFinalizingAppDeployment: {},
58001
+ FailedCreatingNewFunnelProject: {},
58001
58002
  FailedToFindAstroConfig: {}
58002
58003
  });
58003
58004
  var CliUserErrorCode = (0, import_variant11.variant)({
@@ -58110,7 +58111,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
58110
58111
  FailedToSyncVeloCLIServerDocumentUpdate: {},
58111
58112
  AppReleaseConfigViolations: (0, import_variant11.fields)(),
58112
58113
  ProjectIsAlreadyLinked: {},
58113
- ProjectIsNotLinkable: {}
58114
+ ProjectIsNotLinkable: {},
58115
+ MissingPresetCssForSiteComponent: (0, import_variant11.fields)()
58114
58116
  });
58115
58117
  var CliErrorCode = (0, import_variant11.variant)({
58116
58118
  ...CliSystemErrorCode,
@@ -61040,9 +61042,9 @@ init_esm_shims();
61040
61042
  var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
61041
61043
  function parseDateTimeSkeleton(skeleton) {
61042
61044
  var result = {};
61043
- skeleton.replace(DATE_TIME_REGEX, function(match22) {
61044
- var len = match22.length;
61045
- switch (match22[0]) {
61045
+ skeleton.replace(DATE_TIME_REGEX, function(match23) {
61046
+ var len = match23.length;
61047
+ switch (match23[0]) {
61046
61048
  // Era
61047
61049
  case "G":
61048
61050
  result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
@@ -63052,21 +63054,21 @@ if (REGEX_SUPPORTS_U_AND_Y) {
63052
63054
  matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
63053
63055
  var _a3;
63054
63056
  IDENTIFIER_PREFIX_RE_1.lastIndex = index;
63055
- var match22 = IDENTIFIER_PREFIX_RE_1.exec(s2);
63056
- return (_a3 = match22[1]) !== null && _a3 !== void 0 ? _a3 : "";
63057
+ var match23 = IDENTIFIER_PREFIX_RE_1.exec(s2);
63058
+ return (_a3 = match23[1]) !== null && _a3 !== void 0 ? _a3 : "";
63057
63059
  };
63058
63060
  } else {
63059
63061
  matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
63060
- var match22 = [];
63062
+ var match23 = [];
63061
63063
  while (true) {
63062
63064
  var c2 = codePointAt(s2, index);
63063
63065
  if (c2 === void 0 || _isWhiteSpace(c2) || _isPatternSyntax(c2)) {
63064
63066
  break;
63065
63067
  }
63066
- match22.push(c2);
63068
+ match23.push(c2);
63067
63069
  index += c2 >= 65536 ? 2 : 1;
63068
63070
  }
63069
- return fromCodePoint.apply(void 0, match22);
63071
+ return fromCodePoint.apply(void 0, match23);
63070
63072
  };
63071
63073
  }
63072
63074
  var IDENTIFIER_PREFIX_RE_1;
@@ -65489,7 +65491,7 @@ var Interpolator = class {
65489
65491
  this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
65490
65492
  }
65491
65493
  interpolate(str, data, lng, options) {
65492
- let match22;
65494
+ let match23;
65493
65495
  let value2;
65494
65496
  let replaces;
65495
65497
  const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
@@ -65523,17 +65525,17 @@ var Interpolator = class {
65523
65525
  }];
65524
65526
  todos.forEach((todo) => {
65525
65527
  replaces = 0;
65526
- while (match22 = todo.regex.exec(str)) {
65527
- const matchedVar = match22[1].trim();
65528
+ while (match23 = todo.regex.exec(str)) {
65529
+ const matchedVar = match23[1].trim();
65528
65530
  value2 = handleFormat(matchedVar);
65529
65531
  if (value2 === void 0) {
65530
65532
  if (typeof missingInterpolationHandler === "function") {
65531
- const temp = missingInterpolationHandler(str, match22, options);
65533
+ const temp = missingInterpolationHandler(str, match23, options);
65532
65534
  value2 = isString2(temp) ? temp : "";
65533
65535
  } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
65534
65536
  value2 = "";
65535
65537
  } else if (skipOnVariables) {
65536
- value2 = match22[0];
65538
+ value2 = match23[0];
65537
65539
  continue;
65538
65540
  } else {
65539
65541
  this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);
@@ -65543,10 +65545,10 @@ var Interpolator = class {
65543
65545
  value2 = makeString(value2);
65544
65546
  }
65545
65547
  const safeValue = todo.safeValue(value2);
65546
- str = str.replace(match22[0], safeValue);
65548
+ str = str.replace(match23[0], safeValue);
65547
65549
  if (skipOnVariables) {
65548
65550
  todo.regex.lastIndex += value2.length;
65549
- todo.regex.lastIndex -= match22[0].length;
65551
+ todo.regex.lastIndex -= match23[0].length;
65550
65552
  } else {
65551
65553
  todo.regex.lastIndex = 0;
65552
65554
  }
@@ -65560,7 +65562,7 @@ var Interpolator = class {
65560
65562
  }
65561
65563
  nest(str, fc) {
65562
65564
  let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
65563
- let match22;
65565
+ let match23;
65564
65566
  let value2;
65565
65567
  let clonedOptions;
65566
65568
  const handleHasOptions = (key, inheritedOptions) => {
@@ -65588,7 +65590,7 @@ var Interpolator = class {
65588
65590
  if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) delete clonedOptions.defaultValue;
65589
65591
  return key;
65590
65592
  };
65591
- while (match22 = this.nestingRegexp.exec(str)) {
65593
+ while (match23 = this.nestingRegexp.exec(str)) {
65592
65594
  let formatters = [];
65593
65595
  clonedOptions = {
65594
65596
  ...options
@@ -65597,26 +65599,26 @@ var Interpolator = class {
65597
65599
  clonedOptions.applyPostProcessor = false;
65598
65600
  delete clonedOptions.defaultValue;
65599
65601
  let doReduce = false;
65600
- if (match22[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match22[1])) {
65601
- const r2 = match22[1].split(this.formatSeparator).map((elem) => elem.trim());
65602
- match22[1] = r2.shift();
65602
+ if (match23[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match23[1])) {
65603
+ const r2 = match23[1].split(this.formatSeparator).map((elem) => elem.trim());
65604
+ match23[1] = r2.shift();
65603
65605
  formatters = r2;
65604
65606
  doReduce = true;
65605
65607
  }
65606
- value2 = fc(handleHasOptions.call(this, match22[1].trim(), clonedOptions), clonedOptions);
65607
- if (value2 && match22[0] === str && !isString2(value2)) return value2;
65608
+ value2 = fc(handleHasOptions.call(this, match23[1].trim(), clonedOptions), clonedOptions);
65609
+ if (value2 && match23[0] === str && !isString2(value2)) return value2;
65608
65610
  if (!isString2(value2)) value2 = makeString(value2);
65609
65611
  if (!value2) {
65610
- this.logger.warn(`missed to resolve ${match22[1]} for nesting ${str}`);
65612
+ this.logger.warn(`missed to resolve ${match23[1]} for nesting ${str}`);
65611
65613
  value2 = "";
65612
65614
  }
65613
65615
  if (doReduce) {
65614
65616
  value2 = formatters.reduce((v, f) => this.format(v, f, options.lng, {
65615
65617
  ...options,
65616
- interpolationkey: match22[1].trim()
65618
+ interpolationkey: match23[1].trim()
65617
65619
  }), value2.trim());
65618
65620
  }
65619
- str = str.replace(match22[0], value2);
65621
+ str = str.replace(match23[0], value2);
65620
65622
  this.regexp.lastIndex = 0;
65621
65623
  }
65622
65624
  return str;
@@ -66739,8 +66741,8 @@ async function defaultBrowserId() {
66739
66741
  throw new Error("macOS only");
66740
66742
  }
66741
66743
  const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
66742
- const match22 = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
66743
- return match22?.groups.id ?? "com.apple.Safari";
66744
+ const match23 = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
66745
+ return match23?.groups.id ?? "com.apple.Safari";
66744
66746
  }
66745
66747
 
66746
66748
  // ../../node_modules/bundle-name/index.js
@@ -66794,11 +66796,11 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
66794
66796
  "/v",
66795
66797
  "ProgId"
66796
66798
  ]);
66797
- const match22 = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
66798
- if (!match22) {
66799
+ const match23 = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
66800
+ if (!match23) {
66799
66801
  throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
66800
66802
  }
66801
- const { id } = match22.groups;
66803
+ const { id } = match23.groups;
66802
66804
  const browser = windowsBrowserProgIds[id];
66803
66805
  if (!browser) {
66804
66806
  throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
@@ -67205,9 +67207,9 @@ var reDetectIndentation = /(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/;
67205
67207
  var reOnlyWhitespaceWithAtLeastOneNewline = /^[ \t]*[\r\n][ \t\r\n]*$/;
67206
67208
  function _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options) {
67207
67209
  var indentationLevel = 0;
67208
- var match22 = strings[0].match(reDetectIndentation);
67209
- if (match22) {
67210
- indentationLevel = match22[1].length;
67210
+ var match23 = strings[0].match(reDetectIndentation);
67211
+ if (match23) {
67212
+ indentationLevel = match23[1].length;
67211
67213
  }
67212
67214
  var reSource = "(\\r\\n|\\r|\\n).{0," + indentationLevel + "}";
67213
67215
  var reMatchIndent = new RegExp(reSource, "g");
@@ -68694,6 +68696,9 @@ ${errorMessage2}`
68694
68696
  FailedFinalizingAppDeployment: () => {
68695
68697
  return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "An error occoured while completing app deployment." });
68696
68698
  },
68699
+ FailedCreatingNewFunnelProject: () => {
68700
+ return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "An error occurred while creating a new business." });
68701
+ },
68697
68702
  BuildOutputMissing: ({ reason }) => {
68698
68703
  return () => /* @__PURE__ */ import_react77.default.createElement(
68699
68704
  ErrorMessage,
@@ -68722,6 +68727,14 @@ ${errorMessage2}`
68722
68727
  },
68723
68728
  ProjectIsNotLinkable: () => {
68724
68729
  return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Only Astro projects can be linked to Wix. The current project is missing an Astro configuration file." });
68730
+ },
68731
+ MissingPresetCssForSiteComponent: ({ componentId, presetName }) => {
68732
+ return () => /* @__PURE__ */ import_react77.default.createElement(
68733
+ ErrorMessage,
68734
+ {
68735
+ message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}".`
68736
+ }
68737
+ );
68725
68738
  }
68726
68739
  });
68727
68740
  }
@@ -69371,8 +69384,8 @@ var LINUX_VERSIONS = {
69371
69384
  ubuntu: (content) => matchFirst(/distrib_release=(.*)/, content)
69372
69385
  };
69373
69386
  function matchFirst(regex2, text) {
69374
- const match22 = regex2.exec(text);
69375
- return match22 ? match22[1] : void 0;
69387
+ const match23 = regex2.exec(text);
69388
+ return match23 ? match23[1] : void 0;
69376
69389
  }
69377
69390
  async function getDarwinInfo() {
69378
69391
  const darwinInfo = {
@@ -71402,13 +71415,13 @@ var reportError = (scope, originalError, { data } = {}) => {
71402
71415
  captureContext: (localScope) => {
71403
71416
  const httpError = extractHttpError(error);
71404
71417
  if (httpError) {
71405
- localScope.setTag("requestId", httpError.requestId);
71406
- localScope.setContext("requestInfo", getHttpErrorInfo(httpError));
71418
+ localScope.setTag("request.id", httpError.requestId);
71419
+ localScope.setContext("Request Info", getHttpErrorInfo(httpError));
71407
71420
  }
71408
71421
  if (error instanceof Error) {
71409
- localScope.setContext("error details", {
71410
- info: import_verror5.default.info(error),
71411
- fullStack: import_verror5.default.fullStack(error)
71422
+ localScope.setContext("Error Details", {
71423
+ Info: import_verror5.default.info(error),
71424
+ "Full Stack": import_verror5.default.fullStack(error)
71412
71425
  });
71413
71426
  }
71414
71427
  localScope.setTag("ci", yesOrNo(import_ci_info.default.isCI));
@@ -72257,7 +72270,7 @@ function reportCommandStartEvent({
72257
72270
  var package_default = {
72258
72271
  name: "@wix/create-app",
72259
72272
  description: "Create Wix apps",
72260
- version: "0.0.123",
72273
+ version: "0.0.125",
72261
72274
  author: "Ihor Machuzhak",
72262
72275
  bin: "bin/index.cjs",
72263
72276
  devDependencies: {
@@ -72267,7 +72280,7 @@ var package_default = {
72267
72280
  "@types/react": "^18.3.3",
72268
72281
  "@types/semver": "^7.5.8",
72269
72282
  "@types/validate-npm-package-name": "^4.0.2",
72270
- "@wix/bi-logger-dev-tools-data": "^1.112.0",
72283
+ "@wix/bi-logger-dev-tools-data": "^1.114.0",
72271
72284
  "@wix/cli-auth": "workspace:*",
72272
72285
  "@wix/cli-error": "workspace:*",
72273
72286
  "@wix/cli-error-reporting": "workspace:*",
@@ -72386,8 +72399,8 @@ var createBiLogger2 = async (errorReporter2, userId) => {
72386
72399
 
72387
72400
  // src/components/CreateAppCommand.tsx
72388
72401
  init_esm_shims();
72389
- var import_react114 = __toESM(require_react(), 1);
72390
- var import_variant41 = __toESM(require_lib(), 1);
72402
+ var import_react116 = __toESM(require_react(), 1);
72403
+ var import_variant43 = __toESM(require_lib(), 1);
72391
72404
 
72392
72405
  // ../package-manager/src/index.ts
72393
72406
  init_esm_shims();
@@ -75665,8 +75678,8 @@ var AuthProvider = ({ userInfo: userInfo2, children }) => {
75665
75678
 
75666
75679
  // src/components/Questions/Questions.tsx
75667
75680
  init_esm_shims();
75668
- var import_react110 = __toESM(require_react(), 1);
75669
- var import_variant37 = __toESM(require_lib(), 1);
75681
+ var import_react111 = __toESM(require_react(), 1);
75682
+ var import_variant39 = __toESM(require_lib(), 1);
75670
75683
 
75671
75684
  // ../dev-center-client/src/index.ts
75672
75685
  init_esm_shims();
@@ -77859,6 +77872,7 @@ var ComponentType;
77859
77872
  ComponentType3["VIEWER_SERVICE"] = "VIEWER_SERVICE";
77860
77873
  ComponentType3["WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN"] = "WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN";
77861
77874
  ComponentType3["CONTACTS_SEGMENTS_V2_FILTER_PROVIDER"] = "CONTACTS_SEGMENTS_V2_FILTER_PROVIDER";
77875
+ ComponentType3["ANALYTICS_PRODUCT_CATALOG"] = "ANALYTICS_PRODUCT_CATALOG";
77862
77876
  })(ComponentType || (ComponentType = {}));
77863
77877
  var WidgetVertical;
77864
77878
  (function(WidgetVertical3) {
@@ -78251,6 +78265,8 @@ var Tag;
78251
78265
  Tag3["ECOM_DELIVERY_PROFILES"] = "ECOM_DELIVERY_PROFILES";
78252
78266
  Tag3["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
78253
78267
  Tag3["MY_BUSINESS"] = "MY_BUSINESS";
78268
+ Tag3["PIPELINE_LINKED_ENTITY"] = "PIPELINE_LINKED_ENTITY";
78269
+ Tag3["GET_PAID"] = "GET_PAID";
78254
78270
  })(Tag || (Tag = {}));
78255
78271
  var FilterSelectionType;
78256
78272
  (function(FilterSelectionType3) {
@@ -78511,6 +78527,43 @@ var FontType;
78511
78527
  FontType3["PX"] = "PX";
78512
78528
  FontType3["EM"] = "EM";
78513
78529
  })(FontType || (FontType = {}));
78530
+ var ImageStylesPosition;
78531
+ (function(ImageStylesPosition3) {
78532
+ ImageStylesPosition3["START"] = "START";
78533
+ ImageStylesPosition3["END"] = "END";
78534
+ ImageStylesPosition3["TOP"] = "TOP";
78535
+ })(ImageStylesPosition || (ImageStylesPosition = {}));
78536
+ var AspectRatio;
78537
+ (function(AspectRatio3) {
78538
+ AspectRatio3["SQUARE"] = "SQUARE";
78539
+ AspectRatio3["RECTANGLE"] = "RECTANGLE";
78540
+ })(AspectRatio || (AspectRatio = {}));
78541
+ var Resizing;
78542
+ (function(Resizing3) {
78543
+ Resizing3["FILL"] = "FILL";
78544
+ Resizing3["FIT"] = "FIT";
78545
+ })(Resizing || (Resizing = {}));
78546
+ var Placement;
78547
+ (function(Placement3) {
78548
+ Placement3["IMAGE"] = "IMAGE";
78549
+ Placement3["PRODUCT_INFO"] = "PRODUCT_INFO";
78550
+ })(Placement || (Placement = {}));
78551
+ var CardStylesType;
78552
+ (function(CardStylesType3) {
78553
+ CardStylesType3["CONTAINED"] = "CONTAINED";
78554
+ CardStylesType3["FRAMELESS"] = "FRAMELESS";
78555
+ })(CardStylesType || (CardStylesType = {}));
78556
+ var CardStylesAlignment;
78557
+ (function(CardStylesAlignment3) {
78558
+ CardStylesAlignment3["START"] = "START";
78559
+ CardStylesAlignment3["CENTER"] = "CENTER";
78560
+ CardStylesAlignment3["END"] = "END";
78561
+ })(CardStylesAlignment || (CardStylesAlignment = {}));
78562
+ var CardStylesLayout;
78563
+ (function(CardStylesLayout3) {
78564
+ CardStylesLayout3["STACKED"] = "STACKED";
78565
+ CardStylesLayout3["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
78566
+ })(CardStylesLayout || (CardStylesLayout = {}));
78514
78567
  var AppType;
78515
78568
  (function(AppType4) {
78516
78569
  AppType4["PRODUCT"] = "PRODUCT";
@@ -79281,6 +79334,124 @@ var CssDataType;
79281
79334
  CssDataType3["string"] = "string";
79282
79335
  CssDataType3["time"] = "time";
79283
79336
  })(CssDataType || (CssDataType = {}));
79337
+ var StyleType;
79338
+ (function(StyleType3) {
79339
+ StyleType3["UNKNOWN_StyleType"] = "UNKNOWN_StyleType";
79340
+ StyleType3["number"] = "number";
79341
+ StyleType3["string"] = "string";
79342
+ StyleType3["angle"] = "angle";
79343
+ StyleType3["length"] = "length";
79344
+ StyleType3["percentage"] = "percentage";
79345
+ StyleType3["lengthPercentage"] = "lengthPercentage";
79346
+ StyleType3["blendMode"] = "blendMode";
79347
+ StyleType3["customEnum"] = "customEnum";
79348
+ StyleType3["time"] = "time";
79349
+ StyleType3["background"] = "background";
79350
+ StyleType3["backgroundSize"] = "backgroundSize";
79351
+ StyleType3["backgroundColor"] = "backgroundColor";
79352
+ StyleType3["backgroundImage"] = "backgroundImage";
79353
+ StyleType3["backgroundClip"] = "backgroundClip";
79354
+ StyleType3["backgroundOrigin"] = "backgroundOrigin";
79355
+ StyleType3["backgroundPosition"] = "backgroundPosition";
79356
+ StyleType3["backgroundRepeat"] = "backgroundRepeat";
79357
+ StyleType3["backgroundAttachment"] = "backgroundAttachment";
79358
+ StyleType3["margin"] = "margin";
79359
+ StyleType3["marginTop"] = "marginTop";
79360
+ StyleType3["marginRight"] = "marginRight";
79361
+ StyleType3["marginBottom"] = "marginBottom";
79362
+ StyleType3["marginLeft"] = "marginLeft";
79363
+ StyleType3["marginInlineStart"] = "marginInlineStart";
79364
+ StyleType3["marginInlineEnd"] = "marginInlineEnd";
79365
+ StyleType3["padding"] = "padding";
79366
+ StyleType3["paddingTop"] = "paddingTop";
79367
+ StyleType3["paddingRight"] = "paddingRight";
79368
+ StyleType3["paddingBottom"] = "paddingBottom";
79369
+ StyleType3["paddingLeft"] = "paddingLeft";
79370
+ StyleType3["paddingInlineStart"] = "paddingInlineStart";
79371
+ StyleType3["paddingInlineEnd"] = "paddingInlineEnd";
79372
+ StyleType3["border"] = "border";
79373
+ StyleType3["borderWidth"] = "borderWidth";
79374
+ StyleType3["borderStyle"] = "borderStyle";
79375
+ StyleType3["borderColor"] = "borderColor";
79376
+ StyleType3["borderTop"] = "borderTop";
79377
+ StyleType3["borderTopColor"] = "borderTopColor";
79378
+ StyleType3["borderTopWidth"] = "borderTopWidth";
79379
+ StyleType3["borderTopStyle"] = "borderTopStyle";
79380
+ StyleType3["borderRight"] = "borderRight";
79381
+ StyleType3["borderRightColor"] = "borderRightColor";
79382
+ StyleType3["borderRightWidth"] = "borderRightWidth";
79383
+ StyleType3["borderRightStyle"] = "borderRightStyle";
79384
+ StyleType3["borderBottom"] = "borderBottom";
79385
+ StyleType3["borderBottomColor"] = "borderBottomColor";
79386
+ StyleType3["borderBottomWidth"] = "borderBottomWidth";
79387
+ StyleType3["borderBottomStyle"] = "borderBottomStyle";
79388
+ StyleType3["borderLeft"] = "borderLeft";
79389
+ StyleType3["borderLeftColor"] = "borderLeftColor";
79390
+ StyleType3["borderLeftWidth"] = "borderLeftWidth";
79391
+ StyleType3["borderLeftStyle"] = "borderLeftStyle";
79392
+ StyleType3["borderInlineStart"] = "borderInlineStart";
79393
+ StyleType3["borderInlineStartColor"] = "borderInlineStartColor";
79394
+ StyleType3["borderInlineStartWidth"] = "borderInlineStartWidth";
79395
+ StyleType3["borderInlineStartStyle"] = "borderInlineStartStyle";
79396
+ StyleType3["borderInlineEnd"] = "borderInlineEnd";
79397
+ StyleType3["borderInlineEndColor"] = "borderInlineEndColor";
79398
+ StyleType3["borderInlineEndWidth"] = "borderInlineEndWidth";
79399
+ StyleType3["borderInlineEndStyle"] = "borderInlineEndStyle";
79400
+ StyleType3["borderRadius"] = "borderRadius";
79401
+ StyleType3["borderTopLeftRadius"] = "borderTopLeftRadius";
79402
+ StyleType3["borderTopRightRadius"] = "borderTopRightRadius";
79403
+ StyleType3["borderBottomRightRadius"] = "borderBottomRightRadius";
79404
+ StyleType3["borderBottomLeftRadius"] = "borderBottomLeftRadius";
79405
+ StyleType3["borderStartStartRadius"] = "borderStartStartRadius";
79406
+ StyleType3["borderStartEndRadius"] = "borderStartEndRadius";
79407
+ StyleType3["borderEndStartRadius"] = "borderEndStartRadius";
79408
+ StyleType3["borderEndEndRadius"] = "borderEndEndRadius";
79409
+ StyleType3["font"] = "font";
79410
+ StyleType3["fontFamily"] = "fontFamily";
79411
+ StyleType3["fontSize"] = "fontSize";
79412
+ StyleType3["fontStretch"] = "fontStretch";
79413
+ StyleType3["fontStyle"] = "fontStyle";
79414
+ StyleType3["fontVariant"] = "fontVariant";
79415
+ StyleType3["fontWeight"] = "fontWeight";
79416
+ StyleType3["lineHeight"] = "lineHeight";
79417
+ StyleType3["color"] = "color";
79418
+ StyleType3["letterSpacing"] = "letterSpacing";
79419
+ StyleType3["writingMode"] = "writingMode";
79420
+ StyleType3["textAlign"] = "textAlign";
79421
+ StyleType3["textTransform"] = "textTransform";
79422
+ StyleType3["textShadow"] = "textShadow";
79423
+ StyleType3["textOverflow"] = "textOverflow";
79424
+ StyleType3["textIndent"] = "textIndent";
79425
+ StyleType3["textDecoration"] = "textDecoration";
79426
+ StyleType3["textDecorationColor"] = "textDecorationColor";
79427
+ StyleType3["textDecorationLine"] = "textDecorationLine";
79428
+ StyleType3["textDecorationStyle"] = "textDecorationStyle";
79429
+ StyleType3["textDecorationThickness"] = "textDecorationThickness";
79430
+ StyleType3["boxShadow"] = "boxShadow";
79431
+ StyleType3["opacity"] = "opacity";
79432
+ StyleType3["overflow"] = "overflow";
79433
+ StyleType3["display"] = "display";
79434
+ StyleType3["alignSelf"] = "alignSelf";
79435
+ StyleType3["justifyContent"] = "justifyContent";
79436
+ StyleType3["alignItems"] = "alignItems";
79437
+ StyleType3["flexDirection"] = "flexDirection";
79438
+ StyleType3["height"] = "height";
79439
+ StyleType3["width"] = "width";
79440
+ StyleType3["gap"] = "gap";
79441
+ StyleType3["columnGap"] = "columnGap";
79442
+ StyleType3["rowGap"] = "rowGap";
79443
+ StyleType3["filter"] = "filter";
79444
+ StyleType3["backdropFilter"] = "backdropFilter";
79445
+ StyleType3["objectFit"] = "objectFit";
79446
+ StyleType3["objectPosition"] = "objectPosition";
79447
+ StyleType3["mixBlendMode"] = "mixBlendMode";
79448
+ StyleType3["isolation"] = "isolation";
79449
+ StyleType3["stroke"] = "stroke";
79450
+ StyleType3["strokeWidth"] = "strokeWidth";
79451
+ StyleType3["strokeOpacity"] = "strokeOpacity";
79452
+ StyleType3["fill"] = "fill";
79453
+ StyleType3["fillOpacity"] = "fillOpacity";
79454
+ })(StyleType || (StyleType = {}));
79284
79455
  var FilterFunction;
79285
79456
  (function(FilterFunction3) {
79286
79457
  FilterFunction3["UNKNOWN_FilterFunctions"] = "UNKNOWN_FilterFunctions";
@@ -79327,6 +79498,20 @@ var BackgroundModeEnum;
79327
79498
  BackgroundModeEnum3["UNKNOWN_BackgroundModeEnum"] = "UNKNOWN_BackgroundModeEnum";
79328
79499
  BackgroundModeEnum3["shapeDividerSvg"] = "shapeDividerSvg";
79329
79500
  })(BackgroundModeEnum || (BackgroundModeEnum = {}));
79501
+ var CssDataTypeEnumCssDataType;
79502
+ (function(CssDataTypeEnumCssDataType3) {
79503
+ CssDataTypeEnumCssDataType3["UNKNOWN_CssDataType"] = "UNKNOWN_CssDataType";
79504
+ CssDataTypeEnumCssDataType3["number"] = "number";
79505
+ CssDataTypeEnumCssDataType3["string"] = "string";
79506
+ CssDataTypeEnumCssDataType3["angle"] = "angle";
79507
+ CssDataTypeEnumCssDataType3["color"] = "color";
79508
+ CssDataTypeEnumCssDataType3["length"] = "length";
79509
+ CssDataTypeEnumCssDataType3["percentage"] = "percentage";
79510
+ CssDataTypeEnumCssDataType3["lengthPercentage"] = "lengthPercentage";
79511
+ CssDataTypeEnumCssDataType3["blendMode"] = "blendMode";
79512
+ CssDataTypeEnumCssDataType3["customEnum"] = "customEnum";
79513
+ CssDataTypeEnumCssDataType3["time"] = "time";
79514
+ })(CssDataTypeEnumCssDataType || (CssDataTypeEnumCssDataType = {}));
79330
79515
  var DataType;
79331
79516
  (function(DataType3) {
79332
79517
  DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
@@ -79432,6 +79617,7 @@ var ActionType;
79432
79617
  ActionType3["panel"] = "panel";
79433
79618
  ActionType3["forward"] = "forward";
79434
79619
  ActionType3["style"] = "style";
79620
+ ActionType3["displayGroup"] = "displayGroup";
79435
79621
  })(ActionType || (ActionType = {}));
79436
79622
  var PanelType;
79437
79623
  (function(PanelType3) {
@@ -79448,6 +79634,7 @@ var ActionName;
79448
79634
  ActionName3["manageItems"] = "manageItems";
79449
79635
  ActionName3["dashboard"] = "dashboard";
79450
79636
  ActionName3["custom"] = "custom";
79637
+ ActionName3["manageMenu"] = "manageMenu";
79451
79638
  })(ActionName || (ActionName = {}));
79452
79639
  var SizingType;
79453
79640
  (function(SizingType3) {
@@ -79505,6 +79692,26 @@ var NativeStateType;
79505
79692
  NativeStateType3["disabled"] = "disabled";
79506
79693
  NativeStateType3["invalid"] = "invalid";
79507
79694
  })(NativeStateType || (NativeStateType = {}));
79695
+ var GroupType;
79696
+ (function(GroupType2) {
79697
+ GroupType2["UNKNOWN_GroupType"] = "UNKNOWN_GroupType";
79698
+ GroupType2["cssDataTypeItems"] = "cssDataTypeItems";
79699
+ GroupType2["dataItems"] = "dataItems";
79700
+ GroupType2["background"] = "background";
79701
+ GroupType2["margin"] = "margin";
79702
+ GroupType2["padding"] = "padding";
79703
+ GroupType2["border"] = "border";
79704
+ GroupType2["borderTop"] = "borderTop";
79705
+ GroupType2["borderRight"] = "borderRight";
79706
+ GroupType2["borderBottom"] = "borderBottom";
79707
+ GroupType2["borderLeft"] = "borderLeft";
79708
+ GroupType2["borderRadius"] = "borderRadius";
79709
+ GroupType2["borderInlineStart"] = "borderInlineStart";
79710
+ GroupType2["borderInlineEnd"] = "borderInlineEnd";
79711
+ GroupType2["font"] = "font";
79712
+ GroupType2["textDecoration"] = "textDecoration";
79713
+ GroupType2["gap"] = "gap";
79714
+ })(GroupType || (GroupType = {}));
79508
79715
  var ContentResizeDirection;
79509
79716
  (function(ContentResizeDirection3) {
79510
79717
  ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
@@ -79524,6 +79731,11 @@ var InteractionsTrigger;
79524
79731
  InteractionsTrigger3["pointerMove"] = "pointerMove";
79525
79732
  InteractionsTrigger3["animationEnd"] = "animationEnd";
79526
79733
  })(InteractionsTrigger || (InteractionsTrigger = {}));
79734
+ var EffectGroup;
79735
+ (function(EffectGroup3) {
79736
+ EffectGroup3["UNKNOWN_EFFECT_GROUP"] = "UNKNOWN_EFFECT_GROUP";
79737
+ EffectGroup3["background"] = "background";
79738
+ })(EffectGroup || (EffectGroup = {}));
79527
79739
  var RestrictionLevel;
79528
79740
  (function(RestrictionLevel3) {
79529
79741
  RestrictionLevel3["UNKNOWN_RESTRICTION_TYPE"] = "UNKNOWN_RESTRICTION_TYPE";
@@ -79923,6 +80135,7 @@ var ComponentType2;
79923
80135
  ComponentType3["VIEWER_SERVICE"] = "VIEWER_SERVICE";
79924
80136
  ComponentType3["WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN"] = "WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN";
79925
80137
  ComponentType3["CONTACTS_SEGMENTS_V2_FILTER_PROVIDER"] = "CONTACTS_SEGMENTS_V2_FILTER_PROVIDER";
80138
+ ComponentType3["ANALYTICS_PRODUCT_CATALOG"] = "ANALYTICS_PRODUCT_CATALOG";
79926
80139
  })(ComponentType2 || (ComponentType2 = {}));
79927
80140
  var WidgetVertical2;
79928
80141
  (function(WidgetVertical3) {
@@ -80315,6 +80528,8 @@ var Tag2;
80315
80528
  Tag3["ECOM_DELIVERY_PROFILES"] = "ECOM_DELIVERY_PROFILES";
80316
80529
  Tag3["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
80317
80530
  Tag3["MY_BUSINESS"] = "MY_BUSINESS";
80531
+ Tag3["PIPELINE_LINKED_ENTITY"] = "PIPELINE_LINKED_ENTITY";
80532
+ Tag3["GET_PAID"] = "GET_PAID";
80318
80533
  })(Tag2 || (Tag2 = {}));
80319
80534
  var FilterSelectionType2;
80320
80535
  (function(FilterSelectionType3) {
@@ -80575,6 +80790,43 @@ var FontType2;
80575
80790
  FontType3["PX"] = "PX";
80576
80791
  FontType3["EM"] = "EM";
80577
80792
  })(FontType2 || (FontType2 = {}));
80793
+ var ImageStylesPosition2;
80794
+ (function(ImageStylesPosition3) {
80795
+ ImageStylesPosition3["START"] = "START";
80796
+ ImageStylesPosition3["END"] = "END";
80797
+ ImageStylesPosition3["TOP"] = "TOP";
80798
+ })(ImageStylesPosition2 || (ImageStylesPosition2 = {}));
80799
+ var AspectRatio2;
80800
+ (function(AspectRatio3) {
80801
+ AspectRatio3["SQUARE"] = "SQUARE";
80802
+ AspectRatio3["RECTANGLE"] = "RECTANGLE";
80803
+ })(AspectRatio2 || (AspectRatio2 = {}));
80804
+ var Resizing2;
80805
+ (function(Resizing3) {
80806
+ Resizing3["FILL"] = "FILL";
80807
+ Resizing3["FIT"] = "FIT";
80808
+ })(Resizing2 || (Resizing2 = {}));
80809
+ var Placement2;
80810
+ (function(Placement3) {
80811
+ Placement3["IMAGE"] = "IMAGE";
80812
+ Placement3["PRODUCT_INFO"] = "PRODUCT_INFO";
80813
+ })(Placement2 || (Placement2 = {}));
80814
+ var CardStylesType2;
80815
+ (function(CardStylesType3) {
80816
+ CardStylesType3["CONTAINED"] = "CONTAINED";
80817
+ CardStylesType3["FRAMELESS"] = "FRAMELESS";
80818
+ })(CardStylesType2 || (CardStylesType2 = {}));
80819
+ var CardStylesAlignment2;
80820
+ (function(CardStylesAlignment3) {
80821
+ CardStylesAlignment3["START"] = "START";
80822
+ CardStylesAlignment3["CENTER"] = "CENTER";
80823
+ CardStylesAlignment3["END"] = "END";
80824
+ })(CardStylesAlignment2 || (CardStylesAlignment2 = {}));
80825
+ var CardStylesLayout2;
80826
+ (function(CardStylesLayout3) {
80827
+ CardStylesLayout3["STACKED"] = "STACKED";
80828
+ CardStylesLayout3["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
80829
+ })(CardStylesLayout2 || (CardStylesLayout2 = {}));
80578
80830
  var AppType2;
80579
80831
  (function(AppType4) {
80580
80832
  AppType4["PRODUCT"] = "PRODUCT";
@@ -81345,6 +81597,124 @@ var CssDataType2;
81345
81597
  CssDataType3["string"] = "string";
81346
81598
  CssDataType3["time"] = "time";
81347
81599
  })(CssDataType2 || (CssDataType2 = {}));
81600
+ var StyleType2;
81601
+ (function(StyleType3) {
81602
+ StyleType3["UNKNOWN_StyleType"] = "UNKNOWN_StyleType";
81603
+ StyleType3["number"] = "number";
81604
+ StyleType3["string"] = "string";
81605
+ StyleType3["angle"] = "angle";
81606
+ StyleType3["length"] = "length";
81607
+ StyleType3["percentage"] = "percentage";
81608
+ StyleType3["lengthPercentage"] = "lengthPercentage";
81609
+ StyleType3["blendMode"] = "blendMode";
81610
+ StyleType3["customEnum"] = "customEnum";
81611
+ StyleType3["time"] = "time";
81612
+ StyleType3["background"] = "background";
81613
+ StyleType3["backgroundSize"] = "backgroundSize";
81614
+ StyleType3["backgroundColor"] = "backgroundColor";
81615
+ StyleType3["backgroundImage"] = "backgroundImage";
81616
+ StyleType3["backgroundClip"] = "backgroundClip";
81617
+ StyleType3["backgroundOrigin"] = "backgroundOrigin";
81618
+ StyleType3["backgroundPosition"] = "backgroundPosition";
81619
+ StyleType3["backgroundRepeat"] = "backgroundRepeat";
81620
+ StyleType3["backgroundAttachment"] = "backgroundAttachment";
81621
+ StyleType3["margin"] = "margin";
81622
+ StyleType3["marginTop"] = "marginTop";
81623
+ StyleType3["marginRight"] = "marginRight";
81624
+ StyleType3["marginBottom"] = "marginBottom";
81625
+ StyleType3["marginLeft"] = "marginLeft";
81626
+ StyleType3["marginInlineStart"] = "marginInlineStart";
81627
+ StyleType3["marginInlineEnd"] = "marginInlineEnd";
81628
+ StyleType3["padding"] = "padding";
81629
+ StyleType3["paddingTop"] = "paddingTop";
81630
+ StyleType3["paddingRight"] = "paddingRight";
81631
+ StyleType3["paddingBottom"] = "paddingBottom";
81632
+ StyleType3["paddingLeft"] = "paddingLeft";
81633
+ StyleType3["paddingInlineStart"] = "paddingInlineStart";
81634
+ StyleType3["paddingInlineEnd"] = "paddingInlineEnd";
81635
+ StyleType3["border"] = "border";
81636
+ StyleType3["borderWidth"] = "borderWidth";
81637
+ StyleType3["borderStyle"] = "borderStyle";
81638
+ StyleType3["borderColor"] = "borderColor";
81639
+ StyleType3["borderTop"] = "borderTop";
81640
+ StyleType3["borderTopColor"] = "borderTopColor";
81641
+ StyleType3["borderTopWidth"] = "borderTopWidth";
81642
+ StyleType3["borderTopStyle"] = "borderTopStyle";
81643
+ StyleType3["borderRight"] = "borderRight";
81644
+ StyleType3["borderRightColor"] = "borderRightColor";
81645
+ StyleType3["borderRightWidth"] = "borderRightWidth";
81646
+ StyleType3["borderRightStyle"] = "borderRightStyle";
81647
+ StyleType3["borderBottom"] = "borderBottom";
81648
+ StyleType3["borderBottomColor"] = "borderBottomColor";
81649
+ StyleType3["borderBottomWidth"] = "borderBottomWidth";
81650
+ StyleType3["borderBottomStyle"] = "borderBottomStyle";
81651
+ StyleType3["borderLeft"] = "borderLeft";
81652
+ StyleType3["borderLeftColor"] = "borderLeftColor";
81653
+ StyleType3["borderLeftWidth"] = "borderLeftWidth";
81654
+ StyleType3["borderLeftStyle"] = "borderLeftStyle";
81655
+ StyleType3["borderInlineStart"] = "borderInlineStart";
81656
+ StyleType3["borderInlineStartColor"] = "borderInlineStartColor";
81657
+ StyleType3["borderInlineStartWidth"] = "borderInlineStartWidth";
81658
+ StyleType3["borderInlineStartStyle"] = "borderInlineStartStyle";
81659
+ StyleType3["borderInlineEnd"] = "borderInlineEnd";
81660
+ StyleType3["borderInlineEndColor"] = "borderInlineEndColor";
81661
+ StyleType3["borderInlineEndWidth"] = "borderInlineEndWidth";
81662
+ StyleType3["borderInlineEndStyle"] = "borderInlineEndStyle";
81663
+ StyleType3["borderRadius"] = "borderRadius";
81664
+ StyleType3["borderTopLeftRadius"] = "borderTopLeftRadius";
81665
+ StyleType3["borderTopRightRadius"] = "borderTopRightRadius";
81666
+ StyleType3["borderBottomRightRadius"] = "borderBottomRightRadius";
81667
+ StyleType3["borderBottomLeftRadius"] = "borderBottomLeftRadius";
81668
+ StyleType3["borderStartStartRadius"] = "borderStartStartRadius";
81669
+ StyleType3["borderStartEndRadius"] = "borderStartEndRadius";
81670
+ StyleType3["borderEndStartRadius"] = "borderEndStartRadius";
81671
+ StyleType3["borderEndEndRadius"] = "borderEndEndRadius";
81672
+ StyleType3["font"] = "font";
81673
+ StyleType3["fontFamily"] = "fontFamily";
81674
+ StyleType3["fontSize"] = "fontSize";
81675
+ StyleType3["fontStretch"] = "fontStretch";
81676
+ StyleType3["fontStyle"] = "fontStyle";
81677
+ StyleType3["fontVariant"] = "fontVariant";
81678
+ StyleType3["fontWeight"] = "fontWeight";
81679
+ StyleType3["lineHeight"] = "lineHeight";
81680
+ StyleType3["color"] = "color";
81681
+ StyleType3["letterSpacing"] = "letterSpacing";
81682
+ StyleType3["writingMode"] = "writingMode";
81683
+ StyleType3["textAlign"] = "textAlign";
81684
+ StyleType3["textTransform"] = "textTransform";
81685
+ StyleType3["textShadow"] = "textShadow";
81686
+ StyleType3["textOverflow"] = "textOverflow";
81687
+ StyleType3["textIndent"] = "textIndent";
81688
+ StyleType3["textDecoration"] = "textDecoration";
81689
+ StyleType3["textDecorationColor"] = "textDecorationColor";
81690
+ StyleType3["textDecorationLine"] = "textDecorationLine";
81691
+ StyleType3["textDecorationStyle"] = "textDecorationStyle";
81692
+ StyleType3["textDecorationThickness"] = "textDecorationThickness";
81693
+ StyleType3["boxShadow"] = "boxShadow";
81694
+ StyleType3["opacity"] = "opacity";
81695
+ StyleType3["overflow"] = "overflow";
81696
+ StyleType3["display"] = "display";
81697
+ StyleType3["alignSelf"] = "alignSelf";
81698
+ StyleType3["justifyContent"] = "justifyContent";
81699
+ StyleType3["alignItems"] = "alignItems";
81700
+ StyleType3["flexDirection"] = "flexDirection";
81701
+ StyleType3["height"] = "height";
81702
+ StyleType3["width"] = "width";
81703
+ StyleType3["gap"] = "gap";
81704
+ StyleType3["columnGap"] = "columnGap";
81705
+ StyleType3["rowGap"] = "rowGap";
81706
+ StyleType3["filter"] = "filter";
81707
+ StyleType3["backdropFilter"] = "backdropFilter";
81708
+ StyleType3["objectFit"] = "objectFit";
81709
+ StyleType3["objectPosition"] = "objectPosition";
81710
+ StyleType3["mixBlendMode"] = "mixBlendMode";
81711
+ StyleType3["isolation"] = "isolation";
81712
+ StyleType3["stroke"] = "stroke";
81713
+ StyleType3["strokeWidth"] = "strokeWidth";
81714
+ StyleType3["strokeOpacity"] = "strokeOpacity";
81715
+ StyleType3["fill"] = "fill";
81716
+ StyleType3["fillOpacity"] = "fillOpacity";
81717
+ })(StyleType2 || (StyleType2 = {}));
81348
81718
  var FilterFunction2;
81349
81719
  (function(FilterFunction3) {
81350
81720
  FilterFunction3["UNKNOWN_FilterFunctions"] = "UNKNOWN_FilterFunctions";
@@ -81391,6 +81761,20 @@ var BackgroundModeEnum2;
81391
81761
  BackgroundModeEnum3["UNKNOWN_BackgroundModeEnum"] = "UNKNOWN_BackgroundModeEnum";
81392
81762
  BackgroundModeEnum3["shapeDividerSvg"] = "shapeDividerSvg";
81393
81763
  })(BackgroundModeEnum2 || (BackgroundModeEnum2 = {}));
81764
+ var CssDataTypeEnumCssDataType2;
81765
+ (function(CssDataTypeEnumCssDataType3) {
81766
+ CssDataTypeEnumCssDataType3["UNKNOWN_CssDataType"] = "UNKNOWN_CssDataType";
81767
+ CssDataTypeEnumCssDataType3["number"] = "number";
81768
+ CssDataTypeEnumCssDataType3["string"] = "string";
81769
+ CssDataTypeEnumCssDataType3["angle"] = "angle";
81770
+ CssDataTypeEnumCssDataType3["color"] = "color";
81771
+ CssDataTypeEnumCssDataType3["length"] = "length";
81772
+ CssDataTypeEnumCssDataType3["percentage"] = "percentage";
81773
+ CssDataTypeEnumCssDataType3["lengthPercentage"] = "lengthPercentage";
81774
+ CssDataTypeEnumCssDataType3["blendMode"] = "blendMode";
81775
+ CssDataTypeEnumCssDataType3["customEnum"] = "customEnum";
81776
+ CssDataTypeEnumCssDataType3["time"] = "time";
81777
+ })(CssDataTypeEnumCssDataType2 || (CssDataTypeEnumCssDataType2 = {}));
81394
81778
  var DataType2;
81395
81779
  (function(DataType3) {
81396
81780
  DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
@@ -81512,6 +81896,7 @@ var ActionName2;
81512
81896
  ActionName3["manageItems"] = "manageItems";
81513
81897
  ActionName3["dashboard"] = "dashboard";
81514
81898
  ActionName3["custom"] = "custom";
81899
+ ActionName3["manageMenu"] = "manageMenu";
81515
81900
  })(ActionName2 || (ActionName2 = {}));
81516
81901
  var SizingType2;
81517
81902
  (function(SizingType3) {
@@ -81588,6 +81973,11 @@ var InteractionsTrigger2;
81588
81973
  InteractionsTrigger3["pointerMove"] = "pointerMove";
81589
81974
  InteractionsTrigger3["animationEnd"] = "animationEnd";
81590
81975
  })(InteractionsTrigger2 || (InteractionsTrigger2 = {}));
81976
+ var EffectGroup2;
81977
+ (function(EffectGroup3) {
81978
+ EffectGroup3["UNKNOWN_EFFECT_GROUP"] = "UNKNOWN_EFFECT_GROUP";
81979
+ EffectGroup3["background"] = "background";
81980
+ })(EffectGroup2 || (EffectGroup2 = {}));
81591
81981
  var RestrictionLevel2;
81592
81982
  (function(RestrictionLevel3) {
81593
81983
  RestrictionLevel3["UNKNOWN_RESTRICTION_TYPE"] = "UNKNOWN_RESTRICTION_TYPE";
@@ -81903,7 +82293,8 @@ var managedAppsSchema = z.object({
81903
82293
  z.object({
81904
82294
  appId: z.string(),
81905
82295
  installationDetails: z.object({
81906
- group: z.nativeEnum(AppGroup)
82296
+ group: z.nativeEnum(AppGroup),
82297
+ incompleteSetupReason: z.nativeEnum(IncompleteSetupReason)
81907
82298
  })
81908
82299
  })
81909
82300
  )
@@ -82349,7 +82740,7 @@ var DevCenterClient = class {
82349
82740
  };
82350
82741
  isAppInstalledInEditor = async (appId) => {
82351
82742
  const installationDetails = await this.getAppInstallationDetails(appId);
82352
- return installationDetails?.group === AppGroup.INSTALLED;
82743
+ return installationDetails?.group === AppGroup.INSTALLED && installationDetails.incompleteSetupReason !== IncompleteSetupReason.PENDING_EDITOR;
82353
82744
  };
82354
82745
  };
82355
82746
 
@@ -82525,8 +82916,8 @@ var CreateAppOrExtendExisting = ({
82525
82916
 
82526
82917
  // src/components/Questions/NewAppFlow.tsx
82527
82918
  init_esm_shims();
82528
- var import_react106 = __toESM(require_react(), 1);
82529
- var import_variant35 = __toESM(require_lib(), 1);
82919
+ var import_react107 = __toESM(require_react(), 1);
82920
+ var import_variant37 = __toESM(require_lib(), 1);
82530
82921
 
82531
82922
  // src/components/ChooseAppName.tsx
82532
82923
  init_esm_shims();
@@ -82570,7 +82961,7 @@ var ConfirmPackagePath = ({
82570
82961
  const { t: t3 } = useTranslation();
82571
82962
  const { cliFlowStepAnswered } = useCreateAppBi();
82572
82963
  const [cancelled, setCancelled] = (0, import_react99.useState)(false);
82573
- return /* @__PURE__ */ import_react99.default.createElement(import_react99.default.Fragment, null, /* @__PURE__ */ import_react99.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react99.default.createElement(
82964
+ return /* @__PURE__ */ import_react99.default.createElement(import_react99.default.Fragment, null, /* @__PURE__ */ import_react99.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react99.default.createElement(
82574
82965
  ConfirmInput,
82575
82966
  {
82576
82967
  label: t3("create_app.confirm_path_message", {
@@ -82589,7 +82980,7 @@ var ConfirmPackagePath = ({
82589
82980
  }
82590
82981
  }
82591
82982
  }
82592
- )), cancelled && /* @__PURE__ */ import_react99.default.createElement(Box_default, { marginTop: 1 }, /* @__PURE__ */ import_react99.default.createElement(Text2, null, t3("create_app.confirm_path_exit_message"))));
82983
+ )), cancelled && /* @__PURE__ */ import_react99.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react99.default.createElement(Text2, null, t3("create_app.confirm_path_exit_message"))));
82593
82984
  };
82594
82985
 
82595
82986
  // src/components/ChoosePackageName.tsx
@@ -82796,7 +83187,7 @@ var RegisteringApp = () => {
82796
83187
  init_esm_shims();
82797
83188
  var import_react105 = __toESM(require_react(), 1);
82798
83189
  var AppRegistered = ({ appName }) => {
82799
- return /* @__PURE__ */ import_react105.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react105.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react105.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react105.default.createElement(Trans2, { i18nKey: "create_app.success" })), " ", /* @__PURE__ */ import_react105.default.createElement(
83190
+ return /* @__PURE__ */ import_react105.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react105.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react105.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react105.default.createElement(Trans2, { i18nKey: "create_app.success" })), " ", /* @__PURE__ */ import_react105.default.createElement(
82800
83191
  Trans2,
82801
83192
  {
82802
83193
  i18nKey: "create_app.create_new.app_registered_successfully",
@@ -82806,6 +83197,104 @@ var AppRegistered = ({ appName }) => {
82806
83197
  )));
82807
83198
  };
82808
83199
 
83200
+ // src/components/mcp/ConfigMcp.tsx
83201
+ init_esm_shims();
83202
+ var import_react106 = __toESM(require_react(), 1);
83203
+ var import_variant35 = __toESM(require_lib(), 1);
83204
+ var IdeForMcp = (0, import_variant35.variant)({
83205
+ VsCode: {},
83206
+ Cursor: {}
83207
+ });
83208
+ var ConfigMcp = ({ onSelected }) => {
83209
+ const { t: t3 } = useTranslation();
83210
+ const { cliFlowStepAnswered } = useCreateAppBi();
83211
+ return /* @__PURE__ */ import_react106.default.createElement(
83212
+ SelectInput2,
83213
+ {
83214
+ label: t3("create_app.choose_ide_for_mcp.question"),
83215
+ info: /* @__PURE__ */ import_react106.default.createElement(
83216
+ Trans2,
83217
+ {
83218
+ i18nKey: "create_app.choose_ide_for_mcp.description",
83219
+ components: [
83220
+ /* @__PURE__ */ import_react106.default.createElement(Link, { url: "https://www.wix.com/studio/developers/mcp-server" })
83221
+ ]
83222
+ }
83223
+ ),
83224
+ options: [
83225
+ {
83226
+ title: t3("create_app.choose_ide_for_mcp.answer.cursor"),
83227
+ key: "cursor",
83228
+ value: IdeForMcp.Cursor()
83229
+ },
83230
+ {
83231
+ title: t3("create_app.choose_ide_for_mcp.answer.vscode"),
83232
+ key: "vscode",
83233
+ value: IdeForMcp.VsCode()
83234
+ },
83235
+ {
83236
+ title: t3("create_app.choose_ide_for_mcp.answer.no"),
83237
+ key: "no",
83238
+ value: void 0
83239
+ }
83240
+ ],
83241
+ onSubmit: ({ value: value2 }) => {
83242
+ cliFlowStepAnswered({
83243
+ question: t3("create_app.choose_ide_for_mcp.question"),
83244
+ questionKey: "create_app.choose_ide_for_mcp.question",
83245
+ answer: value2?.type ?? "No"
83246
+ });
83247
+ onSelected(value2);
83248
+ }
83249
+ }
83250
+ );
83251
+ };
83252
+
83253
+ // src/components/mcp/getMcpResult.ts
83254
+ init_esm_shims();
83255
+ var import_variant36 = __toESM(require_lib(), 1);
83256
+ import { join as join12 } from "node:path";
83257
+ var McpConfigResult = (0, import_variant36.variant)({
83258
+ Created: (0, import_variant36.fields)(),
83259
+ Canceled: {}
83260
+ });
83261
+ var getMcpData = ({
83262
+ ideForMcp,
83263
+ packageFolder
83264
+ }) => {
83265
+ const configFolderName = (0, import_variant36.match)(
83266
+ ideForMcp,
83267
+ (0, import_variant36.lookup)({
83268
+ Cursor: ".cursor",
83269
+ VsCode: ".vscode"
83270
+ })
83271
+ );
83272
+ const configFolderPath = join12(packageFolder, configFolderName);
83273
+ const mcpPath = join12(configFolderPath, "mcp.json");
83274
+ return McpConfigResult.Created({
83275
+ mcpPath,
83276
+ ideForMcp,
83277
+ docsUrl: (0, import_variant36.match)(
83278
+ ideForMcp,
83279
+ (0, import_variant36.lookup)({
83280
+ Cursor: "https://docs.cursor.com/context/model-context-protocol",
83281
+ VsCode: "https://code.visualstudio.com/docs/copilot/chat/mcp-servers"
83282
+ })
83283
+ )
83284
+ });
83285
+ };
83286
+ var getMcpResult = ({
83287
+ ideForMcp,
83288
+ targetParentFolder: targetParentFolder2,
83289
+ packageName
83290
+ }) => {
83291
+ const packageFolder = join12(targetParentFolder2, packageName);
83292
+ return ideForMcp ? getMcpData({
83293
+ ideForMcp,
83294
+ packageFolder
83295
+ }) : McpConfigResult.Canceled();
83296
+ };
83297
+
82809
83298
  // src/components/Questions/NewAppFlow.tsx
82810
83299
  var NewAppFlow = ({
82811
83300
  onSubmit,
@@ -82816,15 +83305,16 @@ var NewAppFlow = ({
82816
83305
  }) => {
82817
83306
  const devCenterClient = useDevCenterClient();
82818
83307
  const biLogger = useBiLogger();
82819
- const [templateData, setTemplateData] = (0, import_react106.useState)(
83308
+ const [templateData, setTemplateData] = (0, import_react107.useState)(
82820
83309
  templateFromOptions
82821
83310
  );
82822
- const [appName, setAppName] = (0, import_react106.useState)();
83311
+ const [appName, setAppName] = (0, import_react107.useState)();
83312
+ const [packageName, setPackageName] = (0, import_react107.useState)();
82823
83313
  const createAppCallback = useAsyncCallback3(
82824
- async (_2, { appName: appName2, packageName, template }) => {
82825
- const { id: appId } = await (0, import_variant35.match)(
83314
+ async (_2, { appName: appName2, packageName: packageName2, template, mcpConfigResult }) => {
83315
+ const { id: appId } = await (0, import_variant37.match)(
82826
83316
  template,
82827
- (0, import_variant35.partial)({
83317
+ (0, import_variant37.partial)({
82828
83318
  App: ({ payload: payload5 }) => devCenterClient.createAppFromTemplate(
82829
83319
  {
82830
83320
  name: appName2,
@@ -82841,7 +83331,8 @@ var NewAppFlow = ({
82841
83331
  onSubmit({
82842
83332
  template,
82843
83333
  appData: { appName: appName2, appId },
82844
- packageName
83334
+ packageName: packageName2,
83335
+ mcpConfigResult
82845
83336
  });
82846
83337
  return {
82847
83338
  appId,
@@ -82849,52 +83340,74 @@ var NewAppFlow = ({
82849
83340
  };
82850
83341
  }
82851
83342
  );
82852
- const autoCreateApp = (0, import_variant35.isType)(appNameFromOptions, "Provided") && !!templateFromOptions;
83343
+ const autoCreateApp = (0, import_variant37.isType)(appNameFromOptions, "Provided") && !!templateFromOptions;
82853
83344
  useAsync2(async () => {
82854
83345
  if (autoCreateApp) {
82855
83346
  return createAppCallback.execute({
82856
83347
  appName: appNameFromOptions.appName,
82857
83348
  packageName: appNameFromOptions.packageName,
82858
- template: templateFromOptions
83349
+ template: templateFromOptions,
83350
+ mcpConfigResult: McpConfigResult.Canceled()
82859
83351
  });
82860
83352
  }
82861
83353
  }, []);
82862
- return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, !templateFromOptions && /* @__PURE__ */ import_react106.default.createElement(ChooseTemplateFlow, { onTemplateChoose: setTemplateData }), templateData && !autoCreateApp && /* @__PURE__ */ import_react106.default.createElement(ChooseAppName, { onSubmit: setAppName }), appName && templateData && !autoCreateApp && /* @__PURE__ */ import_react106.default.createElement(
83354
+ return /* @__PURE__ */ import_react107.default.createElement(import_react107.default.Fragment, null, !templateFromOptions && /* @__PURE__ */ import_react107.default.createElement(ChooseTemplateFlow, { onTemplateChoose: setTemplateData }), templateData && !autoCreateApp && /* @__PURE__ */ import_react107.default.createElement(ChooseAppName, { onSubmit: setAppName }), appName && templateData && !autoCreateApp && /* @__PURE__ */ import_react107.default.createElement(
82863
83355
  ChoosePackageName,
82864
83356
  {
82865
83357
  appName,
82866
83358
  targetParentFolder: targetParentFolder2,
82867
83359
  repoType,
82868
- onSelected: (packageName) => {
83360
+ onSelected: (userPackageName) => {
83361
+ if ((0, import_variant37.isType)(repoType, RepoType.Monorepo)) {
83362
+ void createAppCallback.execute({
83363
+ appName,
83364
+ packageName: userPackageName,
83365
+ template: templateData,
83366
+ mcpConfigResult: McpConfigResult.Canceled()
83367
+ });
83368
+ } else {
83369
+ setPackageName(userPackageName);
83370
+ }
83371
+ }
83372
+ }
83373
+ ), appName && packageName && templateData && !autoCreateApp && /* @__PURE__ */ import_react107.default.createElement(import_react107.default.Fragment, null, /* @__PURE__ */ import_react107.default.createElement(
83374
+ ConfigMcp,
83375
+ {
83376
+ onSelected: (ideForMcp) => {
82869
83377
  void createAppCallback.execute({
82870
83378
  appName,
82871
83379
  packageName,
82872
- template: templateData
83380
+ template: templateData,
83381
+ mcpConfigResult: getMcpResult({
83382
+ ideForMcp,
83383
+ targetParentFolder: targetParentFolder2,
83384
+ packageName
83385
+ })
82873
83386
  });
82874
83387
  }
82875
83388
  }
82876
- ), (0, import_variant35.match)(createAppCallback.status, {
83389
+ )), (0, import_variant37.match)(createAppCallback.status, {
82877
83390
  Error: () => null,
82878
- Loading: () => /* @__PURE__ */ import_react106.default.createElement(RegisteringApp, null),
82879
- Success: ({ result }) => /* @__PURE__ */ import_react106.default.createElement(AppRegistered, { ...result }),
83391
+ Loading: () => /* @__PURE__ */ import_react107.default.createElement(RegisteringApp, null),
83392
+ Success: ({ result }) => /* @__PURE__ */ import_react107.default.createElement(AppRegistered, { ...result }),
82880
83393
  NotRequested: () => null
82881
83394
  }));
82882
83395
  };
82883
83396
 
82884
83397
  // src/components/Questions/ExistingAppFlow.tsx
82885
83398
  init_esm_shims();
82886
- var import_react108 = __toESM(require_react(), 1);
83399
+ var import_react109 = __toESM(require_react(), 1);
82887
83400
 
82888
83401
  // src/components/ExtendExistingApp.tsx
82889
83402
  init_esm_shims();
82890
- var import_react107 = __toESM(require_react(), 1);
83403
+ var import_react108 = __toESM(require_react(), 1);
82891
83404
  var ExtendExistingApp = ({
82892
83405
  developerApps,
82893
83406
  onSelected
82894
83407
  }) => {
82895
83408
  const { t: t3 } = useTranslation();
82896
83409
  const { cliFlowStepAnswered } = useCreateAppBi();
82897
- return /* @__PURE__ */ import_react107.default.createElement(
83410
+ return /* @__PURE__ */ import_react108.default.createElement(
82898
83411
  SelectInput2,
82899
83412
  {
82900
83413
  label: t3("create_app.extend_existing.select_app.label"),
@@ -82929,8 +83442,8 @@ var ExistingAppFlow = ({
82929
83442
  repoType
82930
83443
  }) => {
82931
83444
  const biLogger = useBiLogger();
82932
- const [appData, setAppData] = (0, import_react108.useState)();
82933
- return /* @__PURE__ */ import_react108.default.createElement(import_react108.default.Fragment, null, /* @__PURE__ */ import_react108.default.createElement(
83445
+ const [appData, setAppData] = (0, import_react109.useState)();
83446
+ return /* @__PURE__ */ import_react109.default.createElement(import_react109.default.Fragment, null, /* @__PURE__ */ import_react109.default.createElement(
82934
83447
  ExtendExistingApp,
82935
83448
  {
82936
83449
  developerApps,
@@ -82941,7 +83454,7 @@ var ExistingAppFlow = ({
82941
83454
  setAppData(appData2);
82942
83455
  }
82943
83456
  }
82944
- ), appData && /* @__PURE__ */ import_react108.default.createElement(
83457
+ ), appData && /* @__PURE__ */ import_react109.default.createElement(
82945
83458
  ChoosePackageName,
82946
83459
  {
82947
83460
  appName: appData.appName,
@@ -82951,7 +83464,8 @@ var ExistingAppFlow = ({
82951
83464
  onSubmit({
82952
83465
  appData,
82953
83466
  packageName,
82954
- template: TemplateSource.Default()
83467
+ template: TemplateSource.Default(),
83468
+ mcpConfigResult: McpConfigResult.Canceled()
82955
83469
  });
82956
83470
  }
82957
83471
  }
@@ -82960,45 +83474,45 @@ var ExistingAppFlow = ({
82960
83474
 
82961
83475
  // src/components/StartFromTemplateMessage.tsx
82962
83476
  init_esm_shims();
82963
- var import_react109 = __toESM(require_react(), 1);
82964
- var import_variant36 = __toESM(require_lib(), 1);
83477
+ var import_react110 = __toESM(require_react(), 1);
83478
+ var import_variant38 = __toESM(require_lib(), 1);
82965
83479
  var StartFromTemplateMessage = ({
82966
83480
  template
82967
83481
  }) => {
82968
- const messageComponent = (0, import_variant36.match)(template, {
82969
- App: ({ payload: payload5 }) => /* @__PURE__ */ import_react109.default.createElement(
83482
+ const messageComponent = (0, import_variant38.match)(template, {
83483
+ App: ({ payload: payload5 }) => /* @__PURE__ */ import_react110.default.createElement(
82970
83484
  Trans2,
82971
83485
  {
82972
83486
  i18nKey: "create_app.template_is_set_from_options.template_id",
82973
83487
  values: {
82974
83488
  templateName: payload5.title
82975
83489
  },
82976
- components: [/* @__PURE__ */ import_react109.default.createElement(Text2, { bold: true })]
83490
+ components: [/* @__PURE__ */ import_react110.default.createElement(Text2, { bold: true })]
82977
83491
  }
82978
83492
  ),
82979
- GitRepo: ({ url: url2 }) => /* @__PURE__ */ import_react109.default.createElement(
83493
+ GitRepo: ({ url: url2 }) => /* @__PURE__ */ import_react110.default.createElement(
82980
83494
  Trans2,
82981
83495
  {
82982
83496
  i18nKey: "create_app.template_is_set_from_options.git_repository",
82983
83497
  values: {
82984
83498
  templateRepoUrl: url2
82985
83499
  },
82986
- components: [/* @__PURE__ */ import_react109.default.createElement(Text2, { bold: true })]
83500
+ components: [/* @__PURE__ */ import_react110.default.createElement(Text2, { bold: true })]
82987
83501
  }
82988
83502
  ),
82989
- Local: ({ path: path8 }) => /* @__PURE__ */ import_react109.default.createElement(
83503
+ Local: ({ path: path8 }) => /* @__PURE__ */ import_react110.default.createElement(
82990
83504
  Trans2,
82991
83505
  {
82992
83506
  i18nKey: "create_app.template_is_set_from_options.local",
82993
83507
  values: {
82994
83508
  templatePath: path8
82995
83509
  },
82996
- components: [/* @__PURE__ */ import_react109.default.createElement(Text2, { bold: true })]
83510
+ components: [/* @__PURE__ */ import_react110.default.createElement(Text2, { bold: true })]
82997
83511
  }
82998
83512
  ),
82999
83513
  Default: () => null
83000
83514
  });
83001
- return /* @__PURE__ */ import_react109.default.createElement(Box_default, { marginBottom: 1 }, messageComponent);
83515
+ return /* @__PURE__ */ import_react110.default.createElement(Box_default, { marginBottom: 1 }, messageComponent);
83002
83516
  };
83003
83517
 
83004
83518
  // src/components/Questions/Questions.tsx
@@ -83012,7 +83526,7 @@ var Questions = ({
83012
83526
  const devCenterClient = useDevCenterClient();
83013
83527
  const { reportError: reportError2 } = useErrorReporter();
83014
83528
  const { getDeveloperApps } = useDevCenterClient();
83015
- const [appCreationFlow, setAppCreationFlow] = (0, import_react110.useState)();
83529
+ const [appCreationFlow, setAppCreationFlow] = (0, import_react111.useState)();
83016
83530
  const { status } = useAsync2(async () => {
83017
83531
  const { template, appName } = await parseCommandOptions(
83018
83532
  targetParentFolder2,
@@ -83043,14 +83557,14 @@ var Questions = ({
83043
83557
  };
83044
83558
  }
83045
83559
  }, []);
83046
- return (0, import_variant37.match)(status, {
83560
+ return (0, import_variant39.match)(status, {
83047
83561
  Error: () => null,
83048
- Loading: () => /* @__PURE__ */ import_react110.default.createElement(Spinner2, { text: t3("general.loading") }),
83562
+ Loading: () => /* @__PURE__ */ import_react111.default.createElement(Spinner2, { text: t3("general.loading") }),
83049
83563
  Success: ({
83050
83564
  result: { template, appName, developerApps, developerAppsStatus }
83051
83565
  }) => {
83052
83566
  if (template) {
83053
- return /* @__PURE__ */ import_react110.default.createElement(import_react110.default.Fragment, null, /* @__PURE__ */ import_react110.default.createElement(StartFromTemplateMessage, { template }), /* @__PURE__ */ import_react110.default.createElement(
83567
+ return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(StartFromTemplateMessage, { template }), /* @__PURE__ */ import_react111.default.createElement(
83054
83568
  NewAppFlow,
83055
83569
  {
83056
83570
  onSubmit,
@@ -83061,8 +83575,8 @@ var Questions = ({
83061
83575
  }
83062
83576
  ));
83063
83577
  }
83064
- if ((0, import_variant37.isType)(developerAppsStatus, "NoApps")) {
83065
- return /* @__PURE__ */ import_react110.default.createElement(
83578
+ if ((0, import_variant39.isType)(developerAppsStatus, "NoApps")) {
83579
+ return /* @__PURE__ */ import_react111.default.createElement(
83066
83580
  NewAppFlow,
83067
83581
  {
83068
83582
  onSubmit,
@@ -83071,20 +83585,20 @@ var Questions = ({
83071
83585
  }
83072
83586
  );
83073
83587
  }
83074
- return /* @__PURE__ */ import_react110.default.createElement(import_react110.default.Fragment, null, /* @__PURE__ */ import_react110.default.createElement(
83588
+ return /* @__PURE__ */ import_react111.default.createElement(import_react111.default.Fragment, null, /* @__PURE__ */ import_react111.default.createElement(
83075
83589
  CreateAppOrExtendExisting,
83076
83590
  {
83077
83591
  developerAppsStatus,
83078
83592
  onStartCreationFlow: setAppCreationFlow
83079
83593
  }
83080
- ), appCreationFlow === "new" && /* @__PURE__ */ import_react110.default.createElement(
83594
+ ), appCreationFlow === "new" && /* @__PURE__ */ import_react111.default.createElement(
83081
83595
  NewAppFlow,
83082
83596
  {
83083
83597
  onSubmit,
83084
83598
  targetParentFolder: targetParentFolder2,
83085
83599
  repoType
83086
83600
  }
83087
- ), appCreationFlow === "existing" && /* @__PURE__ */ import_react110.default.createElement(
83601
+ ), appCreationFlow === "existing" && /* @__PURE__ */ import_react111.default.createElement(
83088
83602
  ExistingAppFlow,
83089
83603
  {
83090
83604
  developerApps,
@@ -83099,16 +83613,16 @@ var Questions = ({
83099
83613
 
83100
83614
  // src/tasks.ts
83101
83615
  init_esm_shims();
83102
- var import_variant39 = __toESM(require_lib(), 1);
83616
+ var import_variant41 = __toESM(require_lib(), 1);
83103
83617
  import { mkdir as mkdir2 } from "node:fs/promises";
83104
- import { join as join13 } from "node:path";
83618
+ import { join as join14 } from "node:path";
83105
83619
 
83106
83620
  // src/services/generator/index.ts
83107
83621
  init_esm_shims();
83108
83622
 
83109
83623
  // src/services/generator/generator-service.ts
83110
83624
  init_esm_shims();
83111
- var import_variant38 = __toESM(require_lib(), 1);
83625
+ var import_variant40 = __toESM(require_lib(), 1);
83112
83626
  import { randomUUID as randomUUID3 } from "node:crypto";
83113
83627
 
83114
83628
  // ../gena/src/index.ts
@@ -83182,7 +83696,7 @@ init_esm_shims();
83182
83696
 
83183
83697
  // src/services/generator/template-fetcher.ts
83184
83698
  init_esm_shims();
83185
- import { join as join12 } from "node:path";
83699
+ import { join as join13 } from "node:path";
83186
83700
  import { rm as rm2 } from "node:fs/promises";
83187
83701
 
83188
83702
  // ../../node_modules/tempy/index.js
@@ -83338,7 +83852,7 @@ async function downloadAndExtractRepo(url2) {
83338
83852
  const repoDir = temporaryDirectory2({ prefix: "wix-create-app" });
83339
83853
  try {
83340
83854
  await gitClone(url2, repoDir);
83341
- await rm2(join12(repoDir, ".git"), { recursive: true, force: true });
83855
+ await rm2(join13(repoDir, ".git"), { recursive: true, force: true });
83342
83856
  return repoDir;
83343
83857
  } catch (e2) {
83344
83858
  throw new CliError({
@@ -83356,7 +83870,7 @@ async function fetchTemplate(url2, path8 = ".") {
83356
83870
  });
83357
83871
  }
83358
83872
  const repoDir = await downloadAndExtractRepo(url2);
83359
- const templateDirInRepo = join12(repoDir, path8);
83873
+ const templateDirInRepo = join13(repoDir, path8);
83360
83874
  if (!await pathExists(templateDirInRepo)) {
83361
83875
  throw new CliError({
83362
83876
  code: CliErrorCode.TemplatePathNotFound({ templatePath: path8 }),
@@ -83376,7 +83890,8 @@ async function generateApp({
83376
83890
  packageManager,
83377
83891
  repoType,
83378
83892
  template,
83379
- templateParams
83893
+ templateParams,
83894
+ ideForMcp
83380
83895
  }) {
83381
83896
  const model = {
83382
83897
  packageName,
@@ -83390,11 +83905,12 @@ async function generateApp({
83390
83905
  installCmd: packageManager.getInstallCmd(),
83391
83906
  runCmd: packageManager.getRunCmd()
83392
83907
  },
83393
- isMonorepo: (0, import_variant38.isType)(repoType, RepoType.Monorepo),
83908
+ isMonorepo: (0, import_variant40.isType)(repoType, RepoType.Monorepo),
83394
83909
  templateParams,
83395
- generatePageID: () => randomUUID3()
83910
+ generatePageID: () => randomUUID3(),
83911
+ ideForMcpType: ideForMcp?.type
83396
83912
  };
83397
- const templateFolder = await (0, import_variant38.match)(template, {
83913
+ const templateFolder = await (0, import_variant40.match)(template, {
83398
83914
  App: ({ payload: { cliCloneData } }) => fetchTemplate(cliCloneData.repositoryUrl, cliCloneData.pathInRepository),
83399
83915
  GitRepo: ({ url: url2, path: path8 }) => fetchTemplate(url2, path8),
83400
83916
  Local: ({ path: path8 }) => path8,
@@ -83417,9 +83933,10 @@ function getTasks({
83417
83933
  templateParams,
83418
83934
  targetParentFolder: targetParentFolder2,
83419
83935
  skipInstall,
83420
- skipGit
83936
+ skipGit,
83937
+ mcpConfigResult
83421
83938
  }, t3) {
83422
- const packageFolder = join13(targetParentFolder2, packageName);
83939
+ const packageFolder = join14(targetParentFolder2, packageName);
83423
83940
  const generateProject = async () => {
83424
83941
  try {
83425
83942
  await mkdir2(packageFolder, { recursive: true });
@@ -83436,7 +83953,12 @@ function getTasks({
83436
83953
  packageManager,
83437
83954
  repoType,
83438
83955
  template,
83439
- templateParams
83956
+ templateParams,
83957
+ ideForMcp: (0, import_variant41.match)(mcpConfigResult, {
83958
+ Created: ({ ideForMcp }) => ideForMcp,
83959
+ Canceled: () => {
83960
+ }
83961
+ })
83440
83962
  });
83441
83963
  await packageManager.setup(packageFolder);
83442
83964
  };
@@ -83496,7 +84018,7 @@ function getTasks({
83496
84018
  successText: t3("create_app.generate_project.git_commit.done")
83497
84019
  };
83498
84020
  const optionalInstallTask = skipInstall ? [] : [installDependenciesTask];
83499
- return (0, import_variant39.match)(repoType, {
84021
+ return (0, import_variant41.match)(repoType, {
83500
84022
  None: () => [
83501
84023
  generateProjectTask,
83502
84024
  ...skipGit ? [] : [initializeGitTask],
@@ -83510,10 +84032,10 @@ function getTasks({
83510
84032
 
83511
84033
  // src/components/FinishedSuccessfullyMessage.tsx
83512
84034
  init_esm_shims();
83513
- var import_react111 = __toESM(require_react(), 1);
84035
+ var import_react112 = __toESM(require_react(), 1);
83514
84036
  var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, packageManager }) => {
83515
84037
  const { t: t3 } = useTranslation();
83516
- return /* @__PURE__ */ import_react111.default.createElement(
84038
+ return /* @__PURE__ */ import_react112.default.createElement(
83517
84039
  Box_default,
83518
84040
  {
83519
84041
  borderColor: "blue",
@@ -83523,25 +84045,24 @@ var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, p
83523
84045
  paddingX: 3,
83524
84046
  gap: 1,
83525
84047
  marginLeft: -2,
83526
- marginTop: 1,
83527
84048
  marginBottom: 1
83528
84049
  },
83529
- /* @__PURE__ */ import_react111.default.createElement(Box_default, { marginTop: -2, marginLeft: -4 }, /* @__PURE__ */ import_react111.default.createElement(Text2, { skin: "question", bold: true }, t3("create_app.results"), " ")),
83530
- /* @__PURE__ */ import_react111.default.createElement(Text2, null, /* @__PURE__ */ import_react111.default.createElement(
84050
+ /* @__PURE__ */ import_react112.default.createElement(Box_default, { marginTop: -2, marginLeft: -4 }, /* @__PURE__ */ import_react112.default.createElement(Text2, { skin: "question", bold: true }, t3("create_app.results"), " ")),
84051
+ /* @__PURE__ */ import_react112.default.createElement(Text2, null, /* @__PURE__ */ import_react112.default.createElement(
83531
84052
  Trans2,
83532
84053
  {
83533
84054
  i18nKey: "create_app.generate_project.finished.ready_to_start",
83534
- components: [/* @__PURE__ */ import_react111.default.createElement(Text2, { bold: true })],
84055
+ components: [/* @__PURE__ */ import_react112.default.createElement(Text2, { bold: true })],
83535
84056
  values: { appName }
83536
84057
  }
83537
84058
  )),
83538
- /* @__PURE__ */ import_react111.default.createElement(Text2, { bold: true }, t3("create_app.generate_project.finished.next_steps")),
83539
- /* @__PURE__ */ import_react111.default.createElement(UnorderedList, { gap: 1 }, /* @__PURE__ */ import_react111.default.createElement(UnorderedList.Item, { marker: "\u{1F45F}" }, /* @__PURE__ */ import_react111.default.createElement(Text2, null, t3("create_app.generate_project.finished.run_local_development")), /* @__PURE__ */ import_react111.default.createElement(Text2, { skin: "info" }, `cd ${packageName}`), /* @__PURE__ */ import_react111.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} dev`)), /* @__PURE__ */ import_react111.default.createElement(UnorderedList.Item, { marker: "\u{1F3AF}" }, /* @__PURE__ */ import_react111.default.createElement(Text2, null, t3("create_app.generate_project.finished.generate_extensions")), /* @__PURE__ */ import_react111.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} generate`)), /* @__PURE__ */ import_react111.default.createElement(UnorderedList.Item, { marker: "\u{1F91D}" }, /* @__PURE__ */ import_react111.default.createElement(
84059
+ /* @__PURE__ */ import_react112.default.createElement(Text2, { bold: true }, t3("create_app.generate_project.finished.next_steps")),
84060
+ /* @__PURE__ */ import_react112.default.createElement(UnorderedList, { gap: 1 }, /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: "\u{1F45F}" }, /* @__PURE__ */ import_react112.default.createElement(Text2, null, t3("create_app.generate_project.finished.run_local_development")), /* @__PURE__ */ import_react112.default.createElement(Text2, { skin: "info" }, `cd ${packageName}`), /* @__PURE__ */ import_react112.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} dev`)), /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: "\u{1F3AF}" }, /* @__PURE__ */ import_react112.default.createElement(Text2, null, t3("create_app.generate_project.finished.generate_extensions")), /* @__PURE__ */ import_react112.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} generate`)), /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: "\u{1F91D}" }, /* @__PURE__ */ import_react112.default.createElement(
83540
84061
  Trans2,
83541
84062
  {
83542
84063
  i18nKey: "create_app.create_new.app_on_dev_center",
83543
84064
  components: [
83544
- /* @__PURE__ */ import_react111.default.createElement(
84065
+ /* @__PURE__ */ import_react112.default.createElement(
83545
84066
  Link,
83546
84067
  {
83547
84068
  skin: "info",
@@ -83550,12 +84071,12 @@ var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, p
83550
84071
  )
83551
84072
  ]
83552
84073
  }
83553
- )), /* @__PURE__ */ import_react111.default.createElement(UnorderedList.Item, { marker: /* @__PURE__ */ import_react111.default.createElement(Learn, null) }, /* @__PURE__ */ import_react111.default.createElement(
84074
+ )), /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: /* @__PURE__ */ import_react112.default.createElement(Learn, null) }, /* @__PURE__ */ import_react112.default.createElement(
83554
84075
  Trans2,
83555
84076
  {
83556
84077
  i18nKey: "create_app.generate_project.finished.visit_docs",
83557
84078
  components: [
83558
- /* @__PURE__ */ import_react111.default.createElement(
84079
+ /* @__PURE__ */ import_react112.default.createElement(
83559
84080
  Link,
83560
84081
  {
83561
84082
  skin: "info",
@@ -83564,12 +84085,12 @@ var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, p
83564
84085
  )
83565
84086
  ]
83566
84087
  }
83567
- )), /* @__PURE__ */ import_react111.default.createElement(UnorderedList.Item, { marker: "\u{1F4AC}" }, /* @__PURE__ */ import_react111.default.createElement(
84088
+ )), /* @__PURE__ */ import_react112.default.createElement(UnorderedList.Item, { marker: "\u{1F4AC}" }, /* @__PURE__ */ import_react112.default.createElement(
83568
84089
  Trans2,
83569
84090
  {
83570
84091
  i18nKey: "create_app.generate_project.finished.join_community",
83571
84092
  components: [
83572
- /* @__PURE__ */ import_react111.default.createElement(Link, { skin: "info", url: "https://discord.gg/wixstudio" })
84093
+ /* @__PURE__ */ import_react112.default.createElement(Link, { skin: "info", url: "https://discord.gg/wixstudio" })
83573
84094
  ]
83574
84095
  }
83575
84096
  )))
@@ -83578,23 +84099,23 @@ var FinishedSuccessfullyMessage = ({ packageName, appData: { appName, appId }, p
83578
84099
 
83579
84100
  // src/components/TaskList.tsx
83580
84101
  init_esm_shims();
83581
- var import_react112 = __toESM(require_react(), 1);
84102
+ var import_react113 = __toESM(require_react(), 1);
83582
84103
  var TaskList = ({ tasks, totalTaskCount }) => {
83583
- return /* @__PURE__ */ import_react112.default.createElement(import_react112.default.Fragment, null, tasks.map((task, index) => {
84104
+ return /* @__PURE__ */ import_react113.default.createElement(import_react113.default.Fragment, null, tasks.map((task, index) => {
83584
84105
  const stepper = `[${index + 1}/${totalTaskCount}]`;
83585
84106
  const fullText = `${stepper} ${task.text}`;
83586
84107
  if (task.status === "running") {
83587
- return /* @__PURE__ */ import_react112.default.createElement(Spinner2, { key: index, text: fullText });
84108
+ return /* @__PURE__ */ import_react113.default.createElement(Spinner2, { key: index, text: fullText });
83588
84109
  }
83589
- return /* @__PURE__ */ import_react112.default.createElement(Alert, { key: index, type: "success" }, fullText);
84110
+ return /* @__PURE__ */ import_react113.default.createElement(Alert, { key: index, type: "success" }, fullText);
83590
84111
  }));
83591
84112
  };
83592
84113
 
83593
84114
  // src/task-runner.ts
83594
84115
  init_esm_shims();
83595
- var import_react113 = __toESM(require_react(), 1);
83596
- var import_variant40 = __toESM(require_lib(), 1);
83597
- var TaskRunnerStatus = (0, import_variant40.variant)({
84116
+ var import_react114 = __toESM(require_react(), 1);
84117
+ var import_variant42 = __toESM(require_lib(), 1);
84118
+ var TaskRunnerStatus = (0, import_variant42.variant)({
83598
84119
  Idle: {},
83599
84120
  Running: (runningTasks, totalTaskCount) => {
83600
84121
  const taskStatuses = runningTasks.map((task, index) => {
@@ -83618,7 +84139,7 @@ var TaskRunnerStatus = (0, import_variant40.variant)({
83618
84139
  }
83619
84140
  });
83620
84141
  function useTaskRunner() {
83621
- const [status, setStatus] = (0, import_react113.useState)(
84142
+ const [status, setStatus] = (0, import_react114.useState)(
83622
84143
  TaskRunnerStatus.Idle()
83623
84144
  );
83624
84145
  const { execute } = useAsyncCallback3(async (_2, tasks) => {
@@ -83636,15 +84157,38 @@ function useTaskRunner() {
83636
84157
  };
83637
84158
  }
83638
84159
 
84160
+ // src/components/mcp/McpConfigCreated.tsx
84161
+ init_esm_shims();
84162
+ var import_react115 = __toESM(require_react(), 1);
84163
+ var McpConfigCreated = ({
84164
+ mcpPath,
84165
+ docsUrl
84166
+ }) => {
84167
+ return /* @__PURE__ */ import_react115.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react115.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react115.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react115.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react115.default.createElement(Trans2, { i18nKey: "create_app.mcp_config_created_badge" })), " ")), /* @__PURE__ */ import_react115.default.createElement(Box_default, { marginTop: 1, flexDirection: "column" }, /* @__PURE__ */ import_react115.default.createElement(Text2, null, /* @__PURE__ */ import_react115.default.createElement(
84168
+ Trans2,
84169
+ {
84170
+ i18nKey: "create_app.mcp_config_created_1",
84171
+ components: [/* @__PURE__ */ import_react115.default.createElement(Text2, { bold: true })],
84172
+ values: { mcpPath }
84173
+ }
84174
+ )), /* @__PURE__ */ import_react115.default.createElement(Text2, null, /* @__PURE__ */ import_react115.default.createElement(Trans2, { i18nKey: "create_app.mcp_config_created_2" })), /* @__PURE__ */ import_react115.default.createElement(Text2, null, /* @__PURE__ */ import_react115.default.createElement(
84175
+ Trans2,
84176
+ {
84177
+ i18nKey: "create_app.mcp_config_created_3",
84178
+ components: [/* @__PURE__ */ import_react115.default.createElement(Link, { skin: "info", url: docsUrl })]
84179
+ }
84180
+ ))));
84181
+ };
84182
+
83639
84183
  // src/components/CreateAppCommand.tsx
83640
84184
  var GenerationProgress = ({ tasks, totalTaskCount }) => {
83641
84185
  const { t: t3 } = useTranslation();
83642
- return /* @__PURE__ */ import_react114.default.createElement(import_react114.default.Fragment, null, /* @__PURE__ */ import_react114.default.createElement(Box_default, { marginBottom: 1, marginTop: 1 }, /* @__PURE__ */ import_react114.default.createElement(Text2, null, t3("create_app.generate_project.generating_project"))), /* @__PURE__ */ import_react114.default.createElement(TaskList, { tasks, totalTaskCount }));
84186
+ return /* @__PURE__ */ import_react116.default.createElement(import_react116.default.Fragment, null, /* @__PURE__ */ import_react116.default.createElement(Box_default, { marginBottom: 1, marginTop: 1 }, /* @__PURE__ */ import_react116.default.createElement(Text2, null, t3("create_app.generate_project.generating_project"))), /* @__PURE__ */ import_react116.default.createElement(Box_default, { marginBottom: 1, flexDirection: "column" }, /* @__PURE__ */ import_react116.default.createElement(TaskList, { tasks, totalTaskCount })));
83643
84187
  };
83644
84188
  var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentFolder2, commandOptions }) => {
83645
84189
  const { t: t3 } = useTranslation();
83646
84190
  const { execute: executeTaskRunner, status: taskRunnerStatus } = useTaskRunner();
83647
- const [generationData, setGenerationData] = (0, import_react114.useState)();
84191
+ const [generationData, setGenerationData] = (0, import_react116.useState)();
83648
84192
  const { status } = useAsync2(async () => {
83649
84193
  const repoType = await getRepoType(targetParentFolder2);
83650
84194
  const packageManager = await createPackageManager(repoType);
@@ -83656,11 +84200,11 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
83656
84200
  const tasks = getTasks(data, t3);
83657
84201
  await executeTaskRunner(tasks);
83658
84202
  }
83659
- return (0, import_variant41.match)(status, {
84203
+ return (0, import_variant43.match)(status, {
83660
84204
  Error: () => null,
83661
- Loading: () => /* @__PURE__ */ import_react114.default.createElement(Spinner2, { text: t3("general.loading") }),
84205
+ Loading: () => /* @__PURE__ */ import_react116.default.createElement(Spinner2, { text: t3("general.loading") }),
83662
84206
  Success: ({ result: { repoType, packageManager } }) => {
83663
- return /* @__PURE__ */ import_react114.default.createElement(
84207
+ return /* @__PURE__ */ import_react116.default.createElement(
83664
84208
  Box_default,
83665
84209
  {
83666
84210
  flexDirection: "column",
@@ -83671,8 +84215,8 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
83671
84215
  borderTop: false,
83672
84216
  paddingLeft: 1
83673
84217
  },
83674
- /* @__PURE__ */ import_react114.default.createElement(WelcomeMessage, null),
83675
- /* @__PURE__ */ import_react114.default.createElement(AuthProvider, { userInfo: userInfo2 }, /* @__PURE__ */ import_react114.default.createElement(
84218
+ /* @__PURE__ */ import_react116.default.createElement(WelcomeMessage, null),
84219
+ /* @__PURE__ */ import_react116.default.createElement(AuthProvider, { userInfo: userInfo2 }, /* @__PURE__ */ import_react116.default.createElement(
83676
84220
  Questions,
83677
84221
  {
83678
84222
  repoType,
@@ -83689,10 +84233,13 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
83689
84233
  })
83690
84234
  }
83691
84235
  )),
83692
- generationData && (0, import_variant41.match)(taskRunnerStatus, {
84236
+ generationData && (0, import_variant43.match)(taskRunnerStatus, {
83693
84237
  Idle: () => null,
83694
- Running: (status2) => /* @__PURE__ */ import_react114.default.createElement(GenerationProgress, { ...status2 }),
83695
- Done: (status2) => /* @__PURE__ */ import_react114.default.createElement(import_react114.default.Fragment, null, /* @__PURE__ */ import_react114.default.createElement(GenerationProgress, { ...status2 }), /* @__PURE__ */ import_react114.default.createElement(
84238
+ Running: (status2) => /* @__PURE__ */ import_react116.default.createElement(GenerationProgress, { ...status2 }),
84239
+ Done: (status2) => /* @__PURE__ */ import_react116.default.createElement(import_react116.default.Fragment, null, /* @__PURE__ */ import_react116.default.createElement(GenerationProgress, { ...status2 }), (0, import_variant43.match)(generationData.mcpConfigResult, {
84240
+ Created: ({ mcpPath, docsUrl }) => /* @__PURE__ */ import_react116.default.createElement(McpConfigCreated, { mcpPath, docsUrl }),
84241
+ Canceled: () => null
84242
+ }), /* @__PURE__ */ import_react116.default.createElement(
83696
84243
  FinishedSuccessfullyMessage,
83697
84244
  {
83698
84245
  packageName: generationData.packageName,
@@ -83728,6 +84275,15 @@ var messages_default3 = {
83728
84275
  "create_app.choose_app_creation_source.basic_app.description": "Generate a simple app with a dashboard page",
83729
84276
  "create_app.choose_app_creation_source.template.title": "Start from a template",
83730
84277
  "create_app.choose_app_creation_source.template.description": "Start with one of our pre-built templates",
84278
+ "create_app.choose_ide_for_mcp.question": "Would you like to configure Wix MCP for your IDE?",
84279
+ "create_app.choose_ide_for_mcp.description": "(<0>read more</0>)",
84280
+ "create_app.choose_ide_for_mcp.answer.vscode": "VS Code",
84281
+ "create_app.choose_ide_for_mcp.answer.cursor": "Cursor",
84282
+ "create_app.choose_ide_for_mcp.answer.no": "No (You always can do it later)",
84283
+ "create_app.mcp_config_created_badge": "MCP Config",
84284
+ "create_app.mcp_config_created_1": "MCP configuration created at <0>{mcpPath}</0>",
84285
+ "create_app.mcp_config_created_2": "Next steps: Activate MCP in your IDE and try Agent mode.",
84286
+ "create_app.mcp_config_created_3": "<0>Read here on how to activate MCP in your IDE</0>",
83731
84287
  "create_app.choose_template.title": "Choose the template you want to start with",
83732
84288
  "create_app.choose_template.see_templates": "\u{1F4A1} To see how the templates look, and for more information, check out the <0>CLI app templates</0>",
83733
84289
  "create_app.create_new.name_of_app.label": "Enter a name for your app",
@@ -83816,9 +84372,9 @@ var program2 = new Command().name(package_default.name).description("Create Wix
83816
84372
  "Additional template parameters to be provided to the app template should be formatted as a JSON string. These parameters can be accessed through the templateParams variable."
83817
84373
  ).argParser(validateTemplateParams).hideHelp()
83818
84374
  ).version(package_default.version, "-v, --version").action(async (options, command) => {
83819
- errorReporter.setContext("command info", {
83820
- args: command.args,
83821
- opts: command.opts()
84375
+ errorReporter.setContext("Command Info", {
84376
+ Arguments: command.args,
84377
+ Options: command.opts()
83822
84378
  });
83823
84379
  const { biLogger, reportCommandStartEvent: reportCommandStartEvent2 } = await createBiLogger2(
83824
84380
  errorReporter,
@@ -83832,7 +84388,7 @@ var program2 = new Command().name(package_default.name).description("Create Wix
83832
84388
  };
83833
84389
  try {
83834
84390
  await render2(
83835
- /* @__PURE__ */ import_react115.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react115.default.createElement(ErrorReporterProvider, { value: errorReporter }, /* @__PURE__ */ import_react115.default.createElement(I18nProvider, { messages: messages_default3 }, /* @__PURE__ */ import_react115.default.createElement(
84391
+ /* @__PURE__ */ import_react117.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react117.default.createElement(ErrorReporterProvider, { value: errorReporter }, /* @__PURE__ */ import_react117.default.createElement(I18nProvider, { messages: messages_default3 }, /* @__PURE__ */ import_react117.default.createElement(
83836
84392
  CreateAppCommand,
83837
84393
  {
83838
84394
  userInfo,