@wix/cli-app 1.1.12 → 1.1.13
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/{CreateVersionCommand-NUIIBF7A.js → CreateVersionCommand-CK24NJUV.js} +2 -2
- package/build/{DevCommand-BN25CWVP.js → DevCommand-6UWSEUWB.js} +2 -2
- package/build/{GenerateCommand-YJ27MSRT.js → GenerateCommand-T2R7KVGJ.js} +2 -2
- package/build/PreviewCommand-XYWJUYDK.js +4 -0
- package/build/{ServeCommand-HWXGL7AV.js → ServeCommand-BS6RRGUI.js} +2 -2
- package/build/{build-RP6W4QEA.js → build-7LN2ITR7.js} +2 -2
- package/build/{chunk-6WJSV7WT.js → chunk-2THRBU5N.js} +2 -2
- package/build/chunk-56ZYKDIN.js +27 -0
- package/build/chunk-56ZYKDIN.js.map +1 -0
- package/build/{chunk-FV67T4ZH.js → chunk-7VK2AU65.js} +2 -2
- package/build/{chunk-FV67T4ZH.js.map → chunk-7VK2AU65.js.map} +1 -1
- package/build/{chunk-B5HZNQJV.js → chunk-AYMXRXYU.js} +2 -2
- package/build/{chunk-K7GUDJFG.js → chunk-FUYBCVPM.js} +2 -2
- package/build/{chunk-F3BQNR6X.js → chunk-H4IGYD6F.js} +2 -2
- package/build/{chunk-GCBXRNFB.js → chunk-JOSBSGTD.js} +2 -2
- package/build/chunk-JOSBSGTD.js.map +1 -0
- package/build/{chunk-W74FRPRP.js → chunk-KG7TIH37.js} +2 -2
- package/build/{chunk-BO7BWQLZ.js → chunk-MZHZLYT6.js} +2 -2
- package/build/{chunk-UZC2NC3I.js → chunk-N5VOUZJJ.js} +2 -2
- package/build/chunk-NHQKXAPJ.js +4 -0
- package/build/chunk-NHQKXAPJ.js.map +1 -0
- package/build/{chunk-VWRROJHT.js → chunk-RDQOWZ7Y.js} +2 -2
- package/build/{chunk-Y4THEZGJ.js → chunk-SXBS7JOX.js} +2 -2
- package/build/{chunk-BGJWNKGZ.js → chunk-TIPUVSQ4.js} +3 -3
- package/build/{chunk-F2KYPCJP.js → chunk-UBWYJ6D4.js} +2 -2
- package/build/{chunk-OYUGDF7S.js → chunk-VT2YTLS2.js} +2 -2
- package/build/{chunk-D2SHWB76.js → chunk-XLSZSZ23.js} +2 -2
- package/build/{chunk-VOV46J2K.js → chunk-YGW3TKSR.js} +2 -2
- package/build/{chunk-UJW3X3T2.js → chunk-YOJEXWG2.js} +2 -2
- package/build/index.js +1 -1
- package/build/{preview-US5F3VRS.js → preview-BRNYCZMS.js} +2 -2
- package/build/{render-command-SXRUN6CW.js → render-command-7FYLXJG6.js} +2 -2
- package/package.json +2 -2
- package/build/PreviewCommand-UC6TGBTC.js +0 -4
- package/build/chunk-G5KG2B42.js +0 -4
- package/build/chunk-G5KG2B42.js.map +0 -1
- package/build/chunk-GCBXRNFB.js.map +0 -1
- package/build/chunk-RQK35Z3D.js +0 -27
- package/build/chunk-RQK35Z3D.js.map +0 -1
- /package/build/{CreateVersionCommand-NUIIBF7A.js.map → CreateVersionCommand-CK24NJUV.js.map} +0 -0
- /package/build/{DevCommand-BN25CWVP.js.map → DevCommand-6UWSEUWB.js.map} +0 -0
- /package/build/{GenerateCommand-YJ27MSRT.js.map → GenerateCommand-T2R7KVGJ.js.map} +0 -0
- /package/build/{PreviewCommand-UC6TGBTC.js.map → PreviewCommand-XYWJUYDK.js.map} +0 -0
- /package/build/{ServeCommand-HWXGL7AV.js.map → ServeCommand-BS6RRGUI.js.map} +0 -0
- /package/build/{build-RP6W4QEA.js.map → build-7LN2ITR7.js.map} +0 -0
- /package/build/{chunk-6WJSV7WT.js.map → chunk-2THRBU5N.js.map} +0 -0
- /package/build/{chunk-B5HZNQJV.js.map → chunk-AYMXRXYU.js.map} +0 -0
- /package/build/{chunk-K7GUDJFG.js.map → chunk-FUYBCVPM.js.map} +0 -0
- /package/build/{chunk-F3BQNR6X.js.map → chunk-H4IGYD6F.js.map} +0 -0
- /package/build/{chunk-W74FRPRP.js.map → chunk-KG7TIH37.js.map} +0 -0
- /package/build/{chunk-BO7BWQLZ.js.map → chunk-MZHZLYT6.js.map} +0 -0
- /package/build/{chunk-UZC2NC3I.js.map → chunk-N5VOUZJJ.js.map} +0 -0
- /package/build/{chunk-VWRROJHT.js.map → chunk-RDQOWZ7Y.js.map} +0 -0
- /package/build/{chunk-Y4THEZGJ.js.map → chunk-SXBS7JOX.js.map} +0 -0
- /package/build/{chunk-BGJWNKGZ.js.map → chunk-TIPUVSQ4.js.map} +0 -0
- /package/build/{chunk-F2KYPCJP.js.map → chunk-UBWYJ6D4.js.map} +0 -0
- /package/build/{chunk-OYUGDF7S.js.map → chunk-VT2YTLS2.js.map} +0 -0
- /package/build/{chunk-D2SHWB76.js.map → chunk-XLSZSZ23.js.map} +0 -0
- /package/build/{chunk-VOV46J2K.js.map → chunk-YGW3TKSR.js.map} +0 -0
- /package/build/{chunk-UJW3X3T2.js.map → chunk-YOJEXWG2.js.map} +0 -0
- /package/build/{preview-US5F3VRS.js.map → preview-BRNYCZMS.js.map} +0 -0
- /package/build/{render-command-SXRUN6CW.js.map → render-command-7FYLXJG6.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{h as v}from"./chunk-
|
|
3
|
+
import{h as v}from"./chunk-JOSBSGTD.js";import{a as $,c as E,e as he,h as m}from"./chunk-HFDLXX7R.js";var H=E(P=>{"use strict";m();var y=class extends Error{constructor(e,t,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},k=class extends y{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};P.CommanderError=y;P.InvalidArgumentError=k});var V=E(F=>{"use strict";m();var{InvalidArgumentError:ue}=H(),q=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:t.concat(e)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,i)=>{if(!this.argChoices.includes(t))throw new ue(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(t,i):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function le(h){let e=h.name()+(h.variadic===!0?"...":"");return h.required?"<"+e+">":"["+e+"]"}F.Argument=q;F.humanReadableArgName=le});var T=E(J=>{"use strict";m();var{humanReadableArgName:ce}=V(),I=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let t=e.commands.filter(n=>!n._hidden),i=e._getHelpCommand();return i&&!i._hidden&&t.push(i),this.sortSubcommands&&t.sort((n,s)=>n.name().localeCompare(s.name())),t}compareOptions(e,t){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(e).localeCompare(i(t))}visibleOptions(e){let t=e.options.filter(n=>!n.hidden),i=e._getHelpOption();if(i&&!i.hidden){let n=i.short&&e._findOption(i.short),s=i.long&&e._findOption(i.long);!n&&!s?t.push(i):i.long&&!s?t.push(e.createOption(i.long,i.description)):i.short&&!n&&t.push(e.createOption(i.short,i.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let i=e.parent;i;i=i.parent){let n=i.options.filter(s=>!s.hidden);t.push(...n)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(t=>t.description)?e.registeredArguments:[]}subcommandTerm(e){let t=e.registeredArguments.map(i=>ce(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((i,n)=>Math.max(i,t.subcommandTerm(n).length),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((i,n)=>Math.max(i,t.optionTerm(n).length),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((i,n)=>Math.max(i,t.optionTerm(n).length),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((i,n)=>Math.max(i,t.argumentTerm(n).length),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];return e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let i=`(${t.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,t){let i=t.padWidth(e,t),n=t.helpWidth||80,s=2,r=2;function a(p,w){if(w){let S=`${p.padEnd(i+r)}${w}`;return t.wrap(S,n-s,i+r)}return p}function o(p){return p.join(`
|
|
4
4
|
`).replace(/^/gm," ".repeat(s))}let u=[`Usage: ${t.commandUsage(e)}`,""],l=t.commandDescription(e);l.length>0&&(u=u.concat([t.wrap(l,n,0),""]));let c=t.visibleArguments(e).map(p=>a(t.argumentTerm(p),t.argumentDescription(p)));c.length>0&&(u=u.concat(["Arguments:",o(c),""]));let f=t.visibleOptions(e).map(p=>a(t.optionTerm(p),t.optionDescription(p)));if(f.length>0&&(u=u.concat(["Options:",o(f),""])),this.showGlobalOptions){let p=t.visibleGlobalOptions(e).map(w=>a(t.optionTerm(w),t.optionDescription(w)));p.length>0&&(u=u.concat(["Global Options:",o(p),""]))}let x=t.visibleCommands(e).map(p=>a(t.subcommandTerm(p),t.subcommandDescription(p)));return x.length>0&&(u=u.concat(["Commands:",o(x),""])),u.join(`
|
|
5
5
|
`)}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,i,n=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",r=new RegExp(`[\\n][${s}]+`);if(e.match(r))return e;let a=t-i;if(a<n)return e;let o=e.slice(0,i),u=e.slice(i).replace(`\r
|
|
6
6
|
`,`
|
|
@@ -22,4 +22,4 @@ Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
|
|
|
22
22
|
`),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");let i=this.parent?._findCommand(e);if(i){let n=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${n}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map(i=>Ce(i));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=b.basename(e,b.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp();return t.helpWidth===void 0&&(t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),t.formatHelp(this,t)}_getHelpContext(e){e=e||{};let t={error:!!e.error},i;return t.error?i=n=>this._outputConfiguration.writeErr(n):i=n=>this._outputConfiguration.writeOut(n),t.write=e.write||i,t.command=this,t}outputHelp(e){let t;typeof e=="function"&&(t=e,e=void 0);let i=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let n=this.helpInformation(i);if(t&&(n=t(n),typeof n!="string"&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(n),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",i))}helpOption(e,t){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",t=t??"display help for command",this._helpOption=this.createOption(e,t),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let t=d.exitCode||0;t===0&&e&&typeof e!="function"&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
23
23
|
Expecting one of '${i.join("', '")}'`);let n=`${e}Help`;return this.on(n,s=>{let r;typeof t=="function"?r=t({error:s.error,command:s.command}):r=t,r&&s.write(`${r}
|
|
24
24
|
`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(n=>t.is(n))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function X(h){return h.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",n="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?n=s[3]:i=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],i=s[3],n=s[4]),t&&n!=="0"?`${t}=${i}:${parseInt(n)+1}`:e})}Z.Command=G});var se=E(_=>{"use strict";m();var{Argument:te}=V(),{Command:R}=ee(),{CommanderError:we,InvalidArgumentError:ie}=H(),{Help:Ee}=T(),{Option:ne}=M();_.program=new R;_.createCommand=h=>new R(h);_.createOption=(h,e)=>new ne(h,e);_.createArgument=(h,e)=>new te(h,e);_.Command=R;_.Option=ne;_.Argument=te;_.Help=Ee;_.CommanderError=we;_.InvalidArgumentError=ie;_.InvalidOptionArgumentError=ie});var oe=E((g,re)=>{"use strict";m();var O=se();g=re.exports={};g.program=new O.Command;g.Argument=O.Argument;g.Command=O.Command;g.CommanderError=O.CommanderError;g.Help=O.Help;g.InvalidArgumentError=O.InvalidArgumentError;g.InvalidOptionArgumentError=O.InvalidArgumentError;g.Option=O.Option;g.createCommand=h=>new O.Command(h);g.createOption=(h,e)=>new O.Option(h,e);g.createArgument=(h,e)=>new O.Argument(h,e)});m();m();m();var ae=he(oe(),1),{program:je,createCommand:Ue,createArgument:Le,createOption:Ge,CommanderError:Re,InvalidArgumentError:B,InvalidOptionArgumentError:Be,Command:Je,Argument:Ke,Option:ze,Help:Ye}=ae.default;function xe(h){let e=v.union([v.string().uuid(),v.literal("current")]).transform(t=>t==="current"?void 0:t).safeParse(h);if(e.success)return e.data;throw new B('Value must be a valid GUID or "current"')}function $e(h){let e=v.string().url().safeParse(h);if(e.success)return e.data;throw new B("Value must be a valid URL")}export{Ue as a,B as b,ze as c,xe as d,$e as e};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-KG7TIH37.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{i as t}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{i as t}from"./chunk-JOSBSGTD.js";import{h as r}from"./chunk-HFDLXX7R.js";r();import{mkdir as e}from"node:fs/promises";import{resolve as i}from"node:path";import{homedir as o}from"node:os";function a(){return t().dataDir??i(o(),".wix")}async function D(){await e(a(),{recursive:!0})}export{a,D as b};
|
|
4
|
+
//# sourceMappingURL=chunk-MZHZLYT6.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{Q as m,a as d,ma as a}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{Q as m,a as d,ma as a}from"./chunk-JOSBSGTD.js";import{e as f,h as r}from"./chunk-HFDLXX7R.js";r();var n=f(d(),1);import{useCallback as p,useMemo as u}from"react";var g=(0,n.typeCatalog)(m);function D(){let{model:o}=a(),s=u(()=>o.components.reduce((e,t)=>(e[t.type].push(t),e),{DashboardPage:[],DashboardSidebarCategory:[],EmbeddedScript:[],CustomElement:[],DashboardPlugin:[],DashboardMenuPlugin:[],DashboardModal:[]}),[o.components]),i=p(e=>e?s[e].length>0:o.components.length>0,[s,o.components]),y=p(e=>s[e],[s]),l=p(e=>o.components.some(t=>t.platforms.some((0,n.isType)(e.type))),[o.components]),c=p(e=>o.components.every(t=>t.platforms.some((0,n.isType)(e.type))||t.platforms.length===0),[o.components]);return{getExtensions:y,hasExtensions:i,isPlatformExists:l,hasSinglePlatform:c}}export{D as a};
|
|
4
|
+
//# sourceMappingURL=chunk-N5VOUZJJ.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{a as h,b as C,d as u,f as L,g as q,j as H,r as W}from"./chunk-56ZYKDIN.js";import{A as V,e as U,g as z,q as j,s as k}from"./chunk-YOJEXWG2.js";import{J as O,M as $,a as b,c as f,d as v,h as m,i as x,l as J,m as M,ma as Q,n as E}from"./chunk-JOSBSGTD.js";import{e as T,h as s}from"./chunk-HFDLXX7R.js";s();s();var ie={},pe={};var ne={},me={},ce={},le={};function I(t){var e={"api._api_base_domain_":[{srcPath:"/apps-release-manager-service-web",destPath:""}],"bo._base_domain_":[{srcPath:"/apps-release-manager-service-web",destPath:""}],"www._base_domain_":[{srcPath:"/apps-release-manager-service-web/artifacts-release-manager/app-releases",destPath:"/artifacts-release-manager/app-releases"},{srcPath:"/_api/apps-release-manager-service-web/artifacts-release-manager/app-releases",destPath:"/artifacts-release-manager/app-releases"},{srcPath:"/apps-release-manager-service-web/apps/create",destPath:"/apps/create"},{srcPath:"/apps-release-manager-service-web/apps/promote",destPath:"/apps/promote"},{srcPath:"/apps-release-manager-service-web/apps/tags",destPath:"/apps/tags"}],"manage._base_domain_":[{srcPath:"/apps-release-manager-service-web/apps/promote",destPath:"/apps/promote"},{srcPath:"/apps-release-manager-service-web/apps/create",destPath:"/apps/create"},{srcPath:"/apps-release-manager-service-web/apps/tags",destPath:"/apps/tags"}]};return C(Object.assign(t,{domainToMappings:e}))}function G(t){var e=u(ie,{}),r=e.toJSON,a=e.fromJSON,i=u(pe,{}).fromJSON;function o(d){var c=d.host,l=r(t),g={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.CreateAppRelease",url:I({protoPath:"/apps/create/{appId}",data:l,host:c}),data:l,transformResponse:i};return g}return o.fromReq=a,o.__isAmbassador=!0,o}function B(t){var e=u(ce,{}),r=e.toJSON,a=e.fromJSON,i=u(le,{}).fromJSON;function o(d){var c=d.host,l=r(t),g={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"PUT",methodFqn:"com.wix.ctp.AppsReleaseManagerService.UpdateAppRelease",url:I({protoPath:"/apps/tags/{tag}",data:l,host:c}),data:l,transformResponse:i};return g}return o.fromReq=a,o.__isAmbassador=!0,o}function K(t){var e=u(ne,{}),r=e.toJSON,a=e.fromJSON,i=u(me,{}).fromJSON;function o(d){var c=d.host,l=r(t),g={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.PromoteAppReleaseToDevCenter",url:I({protoPath:"/apps/promote/{appId}/{tag}",data:l,host:c}),data:l,transformResponse:i};return g}return o.fromReq=a,o.__isAmbassador=!0,o}var P=T(b(),1);s();var X=m.object({newVersion:m.string()}),Y=m.object({tag:m.string()});var{AppPermissionDenied:Z}=v,ee=(0,P.variant)({TagUpdated:{},TagNotFound:(0,P.fields)()}),_=class{constructor(e){this.httpClient=e;let{minRetryTimeout:r}=x();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;createAppRelease=async(e,r)=>{try{let{data:a}=await h(()=>this.httpClient.request(G({appId:e.appId,componentConfigs:e.components,projectId:r})),this.retryOptions);return Y.parse(a).tag}catch(a){throw q(a)&&a.response?.status===403?new f({code:Z({appId:e.appId}),cause:a}):new f({code:v.FailedToCreateAppRelease(),cause:a})}};updateAppRelease=async(e,r)=>{try{return await h(()=>this.httpClient.request(B({appId:e.appId,componentConfigs:e.components,tag:r})),this.retryOptions),ee.TagUpdated()}catch(a){if(q(a)){if(a.response?.status===404)return ee.TagNotFound({cause:a});if(a.response?.status===403)throw new f({code:Z({appId:e.appId}),cause:a})}throw new f({code:v.FailedToUpdateAppRelease(),cause:a})}};promoteToDevCenter=async(e,r,a)=>{let{data:i}=await h(()=>this.httpClient.request(K({appId:e,tag:r,versionType:a})),this.retryOptions);return X.parse(i)}};s();import{useMemo as ue}from"react";s();s();import{useMemo as de}from"react";function S({type:t}){let{getAccessToken:e,getRequestHeaders:r}=H();return de(()=>L({type:t,getAppToken:e,createHeaders:r}),[t,e,r])}function fe(){let t=S({type:"backoffice"});return ue(()=>new _(t),[t])}s();s();import ge,{useContext as he,createContext as ve}from"react";var te=ve(null),it=({children:t,armTag:e})=>ge.createElement(te.Provider,{value:{armTag:e}},t),re=()=>{let t=he(te);if(t===null)throw new Error("useArmTag() cannot be used without an <ArmTagProvider>");return t};s();s();var _e={},Se={sites:"_site"},ye={createdDate:"google.protobuf.Timestamp",updatedDate:"google.protobuf.Timestamp",trashedDate:"google.protobuf.Timestamp"};function Re(t){var e={"www._base_domain_":[{srcPath:"/_api/sites-list",destPath:"/api"},{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}],"feedback._base_domain_":[{srcPath:"/_api/sites-list",destPath:"/api"}],"manage._base_domain_":[{srcPath:"/_api/sites-list",destPath:"/api"},{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"},{srcPath:"/_api/sites-list-data",destPath:"/api/sites-list-data"}],"www.wixapis.com":[{srcPath:"/site-list/v2/sites",destPath:"/v2/sites"}],"api._api_base_domain_":[{srcPath:"/sites-list",destPath:""}],"bo._base_domain_":[{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}],"wixbo.ai":[{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}],"dev._base_domain_":[{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}],"editor._base_domain_":[{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}],"blocks._base_domain_":[{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}],"create.editorx":[{srcPath:"/_api/sites-list/v2/sites",destPath:"/v2/sites"}]};return C(Object.assign(t,{domainToMappings:e}))}function N(t){var e=u(_e,{}),r=e.toJSON,a=e.fromJSON,i=u(Se,{_site:ye}).fromJSON;function o(d){var c=d.host,l=r(t),g={entityFqdn:"wix.site_list.v2.site",method:"POST",methodFqn:"com.wixpress.sitelist.api.SiteListServiceV2.QuerySites",url:Re({protoPath:"/v2/sites/query",data:l,host:c}),data:l,transformResponse:i};return g}return o.fromReq=a,o.__isAmbassador=!0,o}s();var we=m.object({id:m.string(),displayName:m.string(),viewUrl:m.union([m.string().url(),m.literal("")]).optional()}),F=m.object({sites:m.array(we)});var y=class{constructor(e){this.httpClient=e;let{minRetryTimeout:r}=x();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;querySites=async(e={})=>{try{let{data:r}=await h(()=>this.httpClient.request(N(e)),this.retryOptions);return F.parse(r).sites}catch(r){throw new f({code:v.FailedToQuerySites(),cause:r,info:{...e}})}};getSite=async e=>{try{let{data:r}=await h(()=>this.httpClient.request(N({query:{filter:{id:{$in:[e]}}}})),this.retryOptions),{sites:a}=F.parse(r);return a.at(0)??null}catch(r){throw new f({code:v.FailedToGetSite(),cause:r,info:{id:e}})}}};s();import{useMemo as Ce}from"react";function xe(){let t=S({type:"backoffice"});return Ce(()=>new y(t),[t])}s();s();async function D(t,e){let r=O(t);if(!await E(r))return null;try{let i=await M(r),o=await $.safeParseAsync(i);return o.success?o.data:null}catch(i){return e?.(i),null}}async function Dt(t,e){let a={...await D(t)??{},...e};await J(O(t),a)}s();import{createContext as Pe}from"react";var se=Pe(null);s();var R=T(b(),1),A=(0,R.variant)({NotConfigured:{},NotFound:(0,R.fields)(),Resolved:(0,R.fields)()});s();async function Vt({projectFolder:t,siteListClient:{getSite:e},siteId:r,writeDebugLog:a}){let i=r||(await D(t,a))?.siteId;if(!i)return A.NotConfigured();let o=await e(i);return o?A.Resolved({site:o}):A.NotFound({id:i})}s();import{useContext as Ae}from"react";function ae(){let t=Ae(se);if(t===null)throw new Error("useSiteId() cannot be used without an <SiteIdProvider>");return t}s();import w from"react";var oe=T(b(),1);function ar(){let{model:t}=Q(),{site:e}=ae(),{armTag:r}=re();return{appId:t.config.appId,site:e,tag:r}}function or({envConfig:t,platformType:e,siteOverrideId:r}){let{appId:a,site:i,tag:o}=t,d=(0,oe.match)(e,{Dashboard:({route:c})=>c!==void 0?new URL(`dashboard/${i.id}/app/${a}${c}`,"https://manage.wix.com/"):new URL(`dashboard/${i.id}`,"https://manage.wix.com/"),Editor:()=>new URL(`https://wix.com/editor/${i.id}`),Site:()=>{let c=new URL(i.viewUrl);return r&&c.searchParams.append("site-override",r),c}});return d.searchParams.append("apps-override",o),d.toString()}var ir=async({url:t,title:e},r)=>{try{await W(t)}catch{r({type:"error",prefix:"app",msg:w.createElement(j,{type:"error"},w.createElement(V,{i18nKey:"general.open_page_error",components:[w.createElement(z,{bold:!0})],values:{title:e}}),w.createElement(U,null),w.createElement(k,{url:t}))})}};export{y as a,S as b,xe as c,D as d,Dt as e,se as f,A as g,Vt as h,_ as i,fe as j,it as k,ae as l,ar as m,or as n,ir as o};
|
|
4
|
+
//# sourceMappingURL=chunk-NHQKXAPJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../arm-client/src/client.ts","../../../node_modules/@wix/ambassador-ctp-gradual-rollout-v1-app-config/http.impl.ts","../../arm-client/src/schemas.ts","../../arm-client/src/useARMClient.ts","../../cli-http-client-react/src/index.ts","../../cli-http-client-react/src/useHttpClient.ts","../../arm-client/src/index.ts","../src/context/armTag.tsx","../../site-list-client/src/site-list-client.ts","../../../node_modules/@wix/ambassador-site-list-v2-site/http.impl.ts","../../site-list-client/src/schemas.ts","../../site-list-client/src/useSiteListClient.ts","../../site-list-client/src/index.ts","../src/files/app.config.ts","../src/site-id/context.ts","../src/site-id/site-id-state.ts","../src/site-id/resolve-configured-site.ts","../src/site-id/useSiteId.ts","../src/components/extensions/utils.tsx"],"sourcesContent":["import type { HttpClient, HttpError } from '@wix/cli-http-client';\nimport type { AppManifest } from '@wix/cli-app-manifest';\nimport type { Options } from 'p-retry';\nimport type { VersionType } from '@wix/ambassador-ctp-gradual-rollout-v1-app-config/types';\nimport {\n createAppRelease,\n promoteAppReleaseToDevCenter,\n updateAppRelease,\n} from '@wix/ambassador-ctp-gradual-rollout-v1-app-config/http';\nimport pRetry from 'p-retry';\nimport { fields, variant } from 'variant';\nimport { isHttpError } from '@wix/cli-http-client';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport { getTestOverrides } from '@wix/cli-test-overrides';\nimport { createAppReleaseSchema, promoteAppReleaseSchema } from './schemas.js';\n\nconst { AppPermissionDenied } = CliErrorCode;\n\nexport const UpdateAppReleaseData = variant({\n TagUpdated: {},\n TagNotFound: fields<{ cause: HttpError }>(),\n});\n\nexport class ARMClient {\n private readonly retryOptions: Options;\n\n constructor(private readonly httpClient: HttpClient) {\n const { minRetryTimeout } = getTestOverrides();\n\n this.retryOptions = {\n retries: 3,\n minTimeout: minRetryTimeout,\n maxTimeout: 3 * 1000,\n };\n }\n\n createAppRelease = async (manifest: AppManifest, projectId: string) => {\n try {\n const { data } = await pRetry(\n () =>\n this.httpClient.request(\n createAppRelease({\n appId: manifest.appId,\n componentConfigs: manifest.components,\n projectId,\n })\n ),\n this.retryOptions\n );\n\n return createAppReleaseSchema.parse(data).tag;\n } catch (e) {\n if (isHttpError(e) && e.response?.status === 403) {\n throw new CliError({\n code: AppPermissionDenied({ appId: manifest.appId }),\n cause: e,\n });\n }\n throw new CliError({\n code: CliErrorCode.FailedToCreateAppRelease(),\n cause: e,\n });\n }\n };\n\n updateAppRelease = async (manifest: AppManifest, tag: string) => {\n try {\n await pRetry(\n () =>\n this.httpClient.request(\n updateAppRelease({\n appId: manifest.appId,\n componentConfigs: manifest.components,\n tag,\n })\n ),\n this.retryOptions\n );\n\n return UpdateAppReleaseData.TagUpdated();\n } catch (e) {\n if (isHttpError(e)) {\n if (e.response?.status === 404) {\n return UpdateAppReleaseData.TagNotFound({ cause: e });\n }\n if (e.response?.status === 403) {\n throw new CliError({\n code: AppPermissionDenied({ appId: manifest.appId }),\n cause: e,\n });\n }\n }\n throw new CliError({\n code: CliErrorCode.FailedToUpdateAppRelease(),\n cause: e,\n });\n }\n };\n\n promoteToDevCenter = async (\n appId: string,\n tag: string,\n versionType: VersionType\n ) => {\n const { data } = await pRetry(\n () =>\n this.httpClient.request(\n promoteAppReleaseToDevCenter({ appId, tag, versionType })\n ),\n this.retryOptions\n );\n\n return promoteAppReleaseSchema.parse(data);\n };\n}\n",null,"import { z } from 'zod';\n\nexport const promoteAppReleaseSchema = z.object({\n newVersion: z.string(),\n});\n\nexport const createAppReleaseSchema = z.object({\n tag: z.string(),\n});\n","import { useMemo } from 'react';\nimport { useHttpClient } from '@wix/cli-http-client-react';\nimport { ARMClient } from './client.js';\n\nexport function useARMClient(): ARMClient {\n const httpClient = useHttpClient({ type: 'backoffice' });\n return useMemo(() => new ARMClient(httpClient), [httpClient]);\n}\n","export { useHttpClient } from './useHttpClient.js';\n","import { useMemo } from 'react';\nimport { useAuth } from '@wix/cli-auth';\nimport type { CreateHttpClientOptions, HttpClient } from '@wix/cli-http-client';\nimport { createHttpClient } from '@wix/cli-http-client';\n\nexport function useHttpClient({\n type,\n}: Pick<CreateHttpClientOptions, 'type'>): HttpClient {\n const { getAccessToken: getAppToken, getRequestHeaders: createHeaders } =\n useAuth();\n\n return useMemo(\n () => createHttpClient({ type, getAppToken, createHeaders }),\n [type, getAppToken, createHeaders]\n );\n}\n","export { ARMClient } from './client.js';\nexport { useARMClient } from './useARMClient.js';\n","import React, {\n useContext,\n createContext,\n type FC,\n type ReactNode,\n} from 'react';\n\ntype ArmTag = {\n armTag: string;\n};\n\nexport const ArmTagContext = createContext<ArmTag | null>(null);\n\nexport const ArmTagProvider: FC<{ children: ReactNode; armTag: string }> = ({\n children,\n armTag,\n}) => {\n return (\n <ArmTagContext.Provider value={{ armTag }}>\n {children}\n </ArmTagContext.Provider>\n );\n};\n\nexport const useArmTag = () => {\n const context = useContext(ArmTagContext);\n\n if (context === null) {\n throw new Error('useArmTag() cannot be used without an <ArmTagProvider>');\n }\n\n return context;\n};\n","import pRetry from 'p-retry';\nimport type { Options } from 'p-retry';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport type { QuerySitesRequest } from '@wix/ambassador-site-list-v2-site/types';\nimport { querySites } from '@wix/ambassador-site-list-v2-site/http';\nimport type { HttpClient } from '@wix/cli-http-client';\nimport { getTestOverrides } from '@wix/cli-test-overrides';\nimport { querySitesSchema } from './schemas.js';\n\nexport class SiteListClient {\n private readonly retryOptions: Options;\n\n constructor(private readonly httpClient: HttpClient) {\n const { minRetryTimeout } = getTestOverrides();\n\n this.retryOptions = {\n retries: 3,\n minTimeout: minRetryTimeout,\n maxTimeout: 3 * 1000,\n };\n }\n\n querySites = async (opts: QuerySitesRequest = {}) => {\n try {\n const { data } = await pRetry(\n () => this.httpClient.request(querySites(opts)),\n this.retryOptions\n );\n\n return querySitesSchema.parse(data).sites;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToQuerySites(),\n cause: e,\n info: { ...opts },\n });\n }\n };\n\n getSite = async (id: string) => {\n try {\n const { data } = await pRetry(\n () =>\n this.httpClient.request(\n querySites({ query: { filter: { id: { $in: [id] } } } })\n ),\n this.retryOptions\n );\n\n const { sites } = querySitesSchema.parse(data);\n return sites.at(0) ?? null;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToGetSite(),\n cause: e,\n info: { id },\n });\n }\n };\n}\n",null,"import { z } from 'zod';\n\nexport const siteSchema = z.object({\n id: z.string(),\n displayName: z.string(),\n viewUrl: z.union([z.string().url(), z.literal('')]).optional(),\n});\n\nexport const querySitesSchema = z.object({\n sites: z.array(siteSchema),\n});\n\nexport type Site = z.TypeOf<typeof siteSchema>;\n","import { useMemo } from 'react';\nimport { useHttpClient } from '@wix/cli-http-client-react';\nimport { SiteListClient } from './site-list-client.js';\n\nexport function useSiteListClient(): SiteListClient {\n const httpClient = useHttpClient({ type: 'backoffice' });\n return useMemo(() => new SiteListClient(httpClient), [httpClient]);\n}\n","export { SiteListClient } from './site-list-client.js';\nexport type { Site } from './schemas.js';\nexport { useSiteListClient } from './useSiteListClient.js';\n","import type { WriteDebugLogFn } from '@wix/cli-debug-log';\nimport { pathExists, readJson, writeJson } from '@wix/cli-fs';\nimport {\n type AppConfig,\n getAppConfigPath,\n appConfigSchema,\n} from '@wix/cli-app-definitions';\n\nexport async function readAppConfig(\n projectFolder: string,\n writeDebugLog?: WriteDebugLogFn\n) {\n const configPath = getAppConfigPath(projectFolder);\n const isConfigExist = await pathExists(configPath);\n\n if (!isConfigExist) {\n return null;\n }\n\n try {\n const json = await readJson(configPath);\n const appConfig = await appConfigSchema.safeParseAsync(json);\n\n if (!appConfig.success) {\n return null;\n }\n\n return appConfig.data;\n } catch (e) {\n writeDebugLog?.(e);\n return null;\n }\n}\n\nexport async function saveAppConfig(projectFolder: string, config: AppConfig) {\n const currentConfig = (await readAppConfig(projectFolder)) ?? {};\n const newConfig = {\n ...currentConfig,\n ...config,\n };\n\n await writeJson(getAppConfigPath(projectFolder), newConfig);\n}\n","import { createContext } from 'react';\nimport type { Site } from '@wix/site-list-client';\n\nexport type SiteIdState = {\n site: Site;\n setSite: (site: Site) => Promise<void>;\n};\n\nexport const SiteIdContext = createContext<SiteIdState | null>(null);\n","import { variant, fields, type VariantOf, type TypeNames } from 'variant';\nimport { type Site } from '@wix/site-list-client';\n\nexport const SiteIdState = variant({\n NotConfigured: {},\n NotFound: fields<{ id: string }>(),\n Resolved: fields<{ site: Site }>(),\n});\n\nexport type SiteIdState<T extends TypeNames<typeof SiteIdState> = undefined> =\n VariantOf<typeof SiteIdState, T>;\n","import type { SiteListClient } from '@wix/site-list-client';\nimport type { WriteDebugLogFn } from '@wix/cli-debug-log';\nimport { readAppConfig } from '../files/app.config.js';\nimport { SiteIdState } from './site-id-state.js';\n\nexport async function resolveConfiguredSite({\n projectFolder,\n siteListClient: { getSite },\n siteId,\n writeDebugLog,\n}: {\n projectFolder: string;\n siteListClient: SiteListClient;\n siteId?: string;\n writeDebugLog?: WriteDebugLogFn;\n}) {\n const resolvedSiteId = !siteId\n ? (await readAppConfig(projectFolder, writeDebugLog))?.siteId\n : siteId;\n\n if (!resolvedSiteId) {\n return SiteIdState.NotConfigured();\n }\n\n const site = await getSite(resolvedSiteId);\n\n if (!site) {\n return SiteIdState.NotFound({ id: resolvedSiteId });\n }\n\n return SiteIdState.Resolved({ site });\n}\n","import { useContext } from 'react';\nimport { SiteIdContext, type SiteIdState } from './context.js';\n\nexport function useSiteId(): SiteIdState {\n const context = useContext(SiteIdContext);\n if (context === null) {\n throw new Error('useSiteId() cannot be used without an <SiteIdProvider>');\n }\n return context;\n}\n","import React from 'react';\nimport { Trans } from '@wix/cli-i18n';\nimport { match } from 'variant';\nimport { openBrowser } from '@wix/user-browser';\nimport type { Site } from '@wix/site-list-client';\nimport { Alert, Link, Text, Newline } from '@wix/cli-ui-kit';\nimport type { PlatformType } from '@wix/cli-app-definitions';\nimport type { WriteLogFn } from '../DevCommand/devEnvLogs/useDevEnvLogs.js';\nimport { useProjectModel } from '../../model.js';\nimport { useSiteId } from '../../site-id/useSiteId.js';\nimport { useArmTag } from '../../context/armTag.js';\n\nexport type EnvConfig = {\n site: Site;\n appId: string;\n tag: string;\n};\n\nexport function useEnvConfig(): EnvConfig {\n const { model } = useProjectModel();\n const { site } = useSiteId();\n const { armTag } = useArmTag();\n\n return {\n appId: model.config.appId,\n site,\n tag: armTag,\n };\n}\n\nexport function resolvePlatformUrl({\n envConfig,\n platformType,\n siteOverrideId,\n}: {\n envConfig: EnvConfig;\n platformType: PlatformType;\n siteOverrideId?: string;\n}) {\n const { appId, site, tag } = envConfig;\n const url = match(platformType, {\n Dashboard: ({ route }) =>\n route !== undefined\n ? new URL(\n `dashboard/${site.id}/app/${appId}${route}`,\n 'https://manage.wix.com/'\n )\n : new URL(`dashboard/${site.id}`, 'https://manage.wix.com/'),\n Editor: () => new URL(`https://wix.com/editor/${site.id}`),\n Site: () => {\n const siteUrl = new URL(site.viewUrl!);\n if (siteOverrideId) {\n siteUrl.searchParams.append('site-override', siteOverrideId);\n }\n return siteUrl;\n },\n });\n url.searchParams.append('apps-override', tag);\n return url.toString();\n}\n\nexport const openPage = async (\n { url, title }: { url: string; title: string },\n writeLog: WriteLogFn\n) => {\n try {\n await openBrowser(url);\n } catch (error) {\n writeLog({\n type: 'error',\n prefix: 'app',\n msg: (\n <Alert type=\"error\">\n <Trans\n i18nKey=\"general.open_page_error\"\n components={[<Text bold />]}\n values={{ title }}\n />\n <Newline />\n <Link url={url} />\n </Alert>\n ),\n });\n }\n};\n"],"mappings":";;oTAAAA,ICWAC,IAIA,IAAMC,GAA2B,CAAA,EAC3BC,GAA4B,CAAA,EAGlC,IAAMC,GAAuC,CAAA,EACvCC,GAAwC,CAAA,EACxCC,GAA2B,CAAA,EAC3BC,GAA4B,CAAA,EAElC,SAASC,EACPC,EAA8C,CAE9C,IAAMC,EAAmB,CACvB,wBAAyB,CACvB,CACE,QAAS,oCACT,SAAU,KAGd,mBAAoB,CAClB,CACE,QAAS,oCACT,SAAU,KAGd,oBAAqB,CACnB,CACE,QACE,2EACF,SAAU,2CAEZ,CACE,QACE,gFACF,SAAU,2CAEZ,CACE,QAAS,gDACT,SAAU,gBAEZ,CACE,QAAS,iDACT,SAAU,iBAEZ,CACE,QAAS,8CACT,SAAU,eAGd,uBAAwB,CACtB,CACE,QAAS,iDACT,SAAU,iBAEZ,CACE,QAAS,gDACT,SAAU,gBAEZ,CACE,QAAS,8CACT,SAAU,gBAKhB,OAAOC,EAAW,OAAO,OAAOF,EAAM,CAAE,iBAAgBC,CAAA,CAAE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AM,IAAM,CACV,IAAMY,EAAU,IAAI,IAAIZ,EAAK,OAAQ,EACrC,OAAIO,GACFK,EAAQ,aAAa,OAAO,gBAAiBL,CAAc,EAEtDK,CACT,CACF,CAAC,EACD,OAAAF,EAAI,aAAa,OAAO,gBAAiBD,CAAG,EACrCC,EAAI,SAAS,CACtB,CAEO,IAAMG,GAAW,MACtB,CAAE,IAAAH,EAAK,MAAAI,CAAM,EACbC,IACG,CACH,GAAI,CACF,MAAMC,EAAYN,CAAG,CACvB,MAAgB,CACdK,EAAS,CACP,KAAM,QACN,OAAQ,MACR,IACEE,EAAA,cAACC,EAAA,CAAM,KAAK,SACVD,EAAA,cAACE,EAAA,CACC,QAAQ,0BACR,WAAY,CAACF,EAAA,cAACG,EAAA,CAAK,KAAI,GAAC,CAAE,EAC1B,OAAQ,CAAE,MAAAN,CAAM,EAClB,EACAG,EAAA,cAACI,EAAA,IAAQ,EACTJ,EAAA,cAACK,EAAA,CAAK,IAAKZ,EAAK,CAClB,CAEJ,CAAC,CACH,CACF","names":["init_esm_shims","init_esm_shims","_createAppReleaseRequest","_createAppReleaseResponse","_promoteAppReleaseToDevCenterRequest","_promoteAppReleaseToDevCenterResponse","_updateAppReleaseRequest","_updateAppReleaseResponse","resolveComWixCtpAppsReleaseManagerServiceUrl","opts","domainToMappings","resolveUrl","createAppRelease","payload","_a","serializer","_createAppReleaseRequest","toReq","fromReq","fromRes","_createAppReleaseResponse","__createAppRelease","host","serializedData","metadata","updateAppRelease","__updateAppRelease","promoteAppReleaseToDevCenter","payload","_a","serializer","_promoteAppReleaseToDevCenterRequest","toReq","fromReq","fromRes","_promoteAppReleaseToDevCenterResponse","__promoteAppReleaseToDevCenter","host","serializedData","metadata","resolveComWixCtpAppsReleaseManagerServiceUrl","import_variant","init_esm_shims","promoteAppReleaseSchema","z","createAppReleaseSchema","AppPermissionDenied","CliErrorCode","UpdateAppReleaseData","ARMClient","httpClient","minRetryTimeout","getTestOverrides","manifest","projectId","data","pRetry","createAppRelease","createAppReleaseSchema","e","isHttpError","CliError","tag","updateAppRelease","appId","versionType","promoteAppReleaseToDevCenter","promoteAppReleaseSchema","init_esm_shims","useMemo","init_esm_shims","init_esm_shims","useMemo","useHttpClient","type","getAppToken","createHeaders","useAuth","useMemo","createHttpClient","useARMClient","httpClient","useHttpClient","useMemo","ARMClient","init_esm_shims","init_esm_shims","React","useContext","createContext","ArmTagContext","ArmTagProvider","children","armTag","useArmTag","context","init_esm_shims","init_esm_shims","_querySitesRequest","_querySitesResponse","_site","resolveComWixpressSitelistApiSiteListServiceV2Url","opts","domainToMappings","resolveUrl","querySites","payload","_a","serializer","toReq","fromReq","fromRes","__querySites","host","serializedData","metadata","init_esm_shims","siteSchema","z","querySitesSchema","SiteListClient","httpClient","minRetryTimeout","getTestOverrides","opts","data","pRetry","querySites","querySitesSchema","e","CliError","CliErrorCode","id","sites","init_esm_shims","useMemo","useSiteListClient","httpClient","useHttpClient","useMemo","SiteListClient","init_esm_shims","init_esm_shims","readAppConfig","projectFolder","writeDebugLog","configPath","getAppConfigPath","pathExists","json","readJson","appConfig","appConfigSchema","e","saveAppConfig","config","newConfig","writeJson","init_esm_shims","createContext","SiteIdContext","init_esm_shims","import_variant","SiteIdState","init_esm_shims","resolveConfiguredSite","projectFolder","getSite","siteId","writeDebugLog","resolvedSiteId","readAppConfig","SiteIdState","site","init_esm_shims","useContext","useSiteId","context","useContext","SiteIdContext","init_esm_shims","React","import_variant","useEnvConfig","model","useProjectModel","site","useSiteId","armTag","useArmTag","resolvePlatformUrl","envConfig","platformType","siteOverrideId","appId","tag","url","route","siteUrl","openPage","title","writeLog","openBrowser","React","Alert","Trans","Text","Newline","Link"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as r}from"./chunk-
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
import{a as r}from"./chunk-UBWYJ6D4.js";import{L as i,l as p}from"./chunk-JOSBSGTD.js";import{h as n}from"./chunk-HFDLXX7R.js";n();async function A({projectFolder:t,manifest:e}){let a=i(t);return p(a,e)}async function M(t){let e=i(t);return r(e)}export{A as a,M as b};
|
|
4
|
+
//# sourceMappingURL=chunk-RDQOWZ7Y.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as Xs,b as $s}from"./chunk-
|
|
3
|
+
import{a as Xs,b as $s}from"./chunk-MZHZLYT6.js";import{$ as io,I as Zs,Q as eo,S as to,U as yi,V as un,W as mi,_ as ro,a as Ws,aa as ao,c as Gr,ca as ln,d as jr,ea as Ai,fa as Ci,ga as fn,ha as no,ia as so}from"./chunk-JOSBSGTD.js";import{a as Le,c as F,e as ra,h as S}from"./chunk-HFDLXX7R.js";var Et=F(yn=>{"use strict";S();yn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((i,r)=>{e.call(this,...t,(a,n)=>a!=null?r(a):i(n))})},"name",{value:e.name})};yn.fromPromise=function(e){return Object.defineProperty(function(...t){let i=t[t.length-1];if(typeof i!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>i(null,r),i)},"name",{value:e.name})}});var po=F((mA,ho)=>{"use strict";S();var hr=Le("constants"),ch=process.cwd,na=null,hh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=ch.call(process)),na};try{process.cwd()}catch{}typeof process.chdir=="function"&&(mn=process.chdir,process.chdir=function(e){na=null,mn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,mn));var mn;ho.exports=ph;function ph(e){hr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||i(e),e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,c,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,c,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),hh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function c(p,m,v){var C=Date.now(),E=0;f(p,m,function B(w){if(w&&(w.code==="EACCES"||w.code==="EPERM"||w.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){e.stat(m,function(T,U){T&&T.code==="ENOENT"?f(p,m,B):v(w)})},E),E<100&&(E+=10);return}v&&v(w)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function c(p,m,v,C,E,B){var w;if(B&&typeof B=="function"){var T=0;w=function(U,P,Q){if(U&&U.code==="EAGAIN"&&T<10)return T++,f.call(e,p,m,v,C,E,w);B.apply(this,arguments)}}return f.call(e,p,m,v,C,E,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(c,p,m,v,C){for(var E=0;;)try{return f.call(e,c,p,m,v,C)}catch(B){if(B.code==="EAGAIN"&&E<10){E++;continue}throw B}}}(e.readSync);function t(f){f.lchmod=function(c,p,m){f.open(c,hr.O_WRONLY|hr.O_SYMLINK,p,function(v,C){if(v){m&&m(v);return}f.fchmod(C,p,function(E){f.close(C,function(B){m&&m(E||B)})})})},f.lchmodSync=function(c,p){var m=f.openSync(c,hr.O_WRONLY|hr.O_SYMLINK,p),v=!0,C;try{C=f.fchmodSync(m,p),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return C}}function i(f){hr.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,p,m,v){f.open(c,hr.O_SYMLINK,function(C,E){if(C){v&&v(C);return}f.futimes(E,p,m,function(B){f.close(E,function(w){v&&v(B||w)})})})},f.lutimesSync=function(c,p,m){var v=f.openSync(c,hr.O_SYMLINK),C,E=!0;try{C=f.futimesSync(v,p,m),E=!1}finally{if(E)try{f.closeSync(v)}catch{}else f.closeSync(v)}return C}):f.futimes&&(f.lutimes=function(c,p,m,v){v&&process.nextTick(v)},f.lutimesSync=function(){})}function r(f){return f&&function(c,p,m){return f.call(e,c,p,function(v){l(v)&&(v=null),m&&m.apply(this,arguments)})}}function a(f){return f&&function(c,p){try{return f.call(e,c,p)}catch(m){if(!l(m))throw m}}}function n(f){return f&&function(c,p,m,v){return f.call(e,c,p,m,function(C){l(C)&&(C=null),v&&v.apply(this,arguments)})}}function s(f){return f&&function(c,p,m){try{return f.call(e,c,p,m)}catch(v){if(!l(v))throw v}}}function o(f){return f&&function(c,p,m){typeof p=="function"&&(m=p,p=null);function v(C,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),m&&m.apply(this,arguments)}return p?f.call(e,c,p,v):f.call(e,c,v)}}function u(f){return f&&function(c,p){var m=p?f.call(e,c,p):f.call(e,c);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function l(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var yo=F((CA,vo)=>{"use strict";S();var go=Le("stream").Stream;vo.exports=dh;function dh(e){return{ReadStream:t,WriteStream:i};function t(r,a){if(!(this instanceof t))return new t(r,a);go.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var s=Object.keys(a),o=0,u=s.length;o<u;o++){var l=s[o];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}e.open(this.path,this.flags,this.mode,function(f,c){if(f){n.emit("error",f),n.readable=!1;return}n.fd=c,n.emit("open",c),n._read()})}function i(r,a){if(!(this instanceof i))return new i(r,a);go.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var n=Object.keys(a),s=0,o=n.length;s<o;s++){var u=n[s];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ao=F((xA,mo)=>{"use strict";S();mo.exports=vh;var gh=Object.getPrototypeOf||function(e){return e.__proto__};function vh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:gh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}),t}});var dt=F((IA,En)=>{"use strict";S();var Qe=Le("fs"),yh=po(),mh=yo(),Ah=Ao(),sa=Le("util"),Je,ua;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Je=Symbol.for("graceful-fs.queue"),ua=Symbol.for("graceful-fs.previous")):(Je="___graceful-fs.queue",ua="___graceful-fs.previous");function Ch(){}function xo(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=Ch;sa.debuglog?Rr=sa.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Rr=function(){var e=sa.format.apply(sa,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
4
4
|
GFS4: `),console.error(e)});Qe[Je]||(Co=global[Je]||[],xo(Qe,Co),Qe.close=function(e){function t(i,r){return e.call(Qe,i,function(a){a||Eo(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,ua,{value:e}),t}(Qe.close),Qe.closeSync=function(e){function t(i){e.apply(Qe,arguments),Eo()}return Object.defineProperty(t,ua,{value:e}),t}(Qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Rr(Qe[Je]),Le("assert").equal(Qe[Je].length,0)}));var Co;global[Je]||xo(global,Qe[Je]);En.exports=An(Ah(Qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Qe.__patched&&(En.exports=An(Qe),Qe.__patched=!0);function An(e){yh(e),e.gracefulify=An,e.createReadStream=P,e.createWriteStream=Q;var t=e.readFile;e.readFile=i;function i(H,z,Y){return typeof z=="function"&&(Y=z,z=null),re(H,z,Y);function re(ye,Ee,$,ie){return t(ye,Ee,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?zr([re,[ye,Ee,$],V,ie||Date.now(),Date.now()]):typeof $=="function"&&$.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=a;function a(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return r(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var n=e.appendFile;n&&(e.appendFile=s);function s(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return n(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=u);function u(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=0),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return o(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var l=e.readdir;e.readdir=c;var f=/^v[0-5]\./;function c(H,z,Y){typeof z=="function"&&(Y=z,z=null);var re=f.test(process.version)?function($,ie,V,_e){return l($,ye($,ie,V,_e))}:function($,ie,V,_e){return l($,ie,ye($,ie,V,_e))};return re(H,z,Y);function ye(Ee,$,ie,V){return function(_e,xe){_e&&(_e.code==="EMFILE"||_e.code==="ENFILE")?zr([re,[Ee,$,ie],_e,V||Date.now(),Date.now()]):(xe&&xe.sort&&xe.sort(),typeof ie=="function"&&ie.call(this,_e,xe))}}}if(process.version.substr(0,4)==="v0.8"){var p=mh(e);B=p.ReadStream,T=p.WriteStream}var m=e.ReadStream;m&&(B.prototype=Object.create(m.prototype),B.prototype.open=w);var v=e.WriteStream;v&&(T.prototype=Object.create(v.prototype),T.prototype.open=U),Object.defineProperty(e,"ReadStream",{get:function(){return B},set:function(H){B=H},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return T},set:function(H){T=H},enumerable:!0,configurable:!0});var C=B;Object.defineProperty(e,"FileReadStream",{get:function(){return C},set:function(H){C=H},enumerable:!0,configurable:!0});var E=T;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(H){E=H},enumerable:!0,configurable:!0});function B(H,z){return this instanceof B?(m.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function w(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.autoClose&&H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y),H.read())})}function T(H,z){return this instanceof T?(v.apply(this,arguments),this):T.apply(Object.create(T.prototype),arguments)}function U(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y))})}function P(H,z){return new e.ReadStream(H,z)}function Q(H,z){return new e.WriteStream(H,z)}var te=e.open;e.open=ne;function ne(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return te(Ee,$,ie,function(xe,Oe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return e}function zr(e){Rr("ENQUEUE",e[0].name,e[1]),Qe[Je].push(e),Cn()}var oa;function Eo(){for(var e=Date.now(),t=0;t<Qe[Je].length;++t)Qe[Je][t].length>2&&(Qe[Je][t][3]=e,Qe[Je][t][4]=e);Cn()}function Cn(){if(clearTimeout(oa),oa=void 0,Qe[Je].length!==0){var e=Qe[Je].shift(),t=e[0],i=e[1],r=e[2],a=e[3],n=e[4];if(a===void 0)Rr("RETRY",t.name,i),t.apply(null,i);else if(Date.now()-a>=6e4){Rr("TIMEOUT",t.name,i);var s=i.pop();typeof s=="function"&&s.call(null,r)}else{var o=Date.now()-n,u=Math.max(n-a,1),l=Math.min(u*1.2,100);o>=l?(Rr("RETRY",t.name,i),t.apply(null,i.concat([a]))):Qe[Je].push(e)}oa===void 0&&(oa=setTimeout(Cn,0))}}});var Dr=F(pr=>{"use strict";S();var So=Et().fromCallback,xt=dt(),Eh=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof xt[e]=="function");Object.assign(pr,xt);Eh.forEach(e=>{pr[e]=So(xt[e])});pr.exists=function(e,t){return typeof t=="function"?xt.exists(e,t):new Promise(i=>xt.exists(e,i))};pr.read=function(e,t,i,r,a,n){return typeof n=="function"?xt.read(e,t,i,r,a,n):new Promise((s,o)=>{xt.read(e,t,i,r,a,(u,l,f)=>{if(u)return o(u);s({bytesRead:l,buffer:f})})})};pr.write=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.write(e,t,...i):new Promise((r,a)=>{xt.write(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffer:o})})})};typeof xt.writev=="function"&&(pr.writev=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.writev(e,t,...i):new Promise((r,a)=>{xt.writev(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffers:o})})})});typeof xt.realpath.native=="function"?pr.realpath.native=So(xt.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Bo=F((wA,Io)=>{"use strict";S();var xh=Le("path");Io.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(xh.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}}});var _o=F((NA,xn)=>{"use strict";S();var bo=Dr(),{checkPath:To}=Bo(),wo=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};xn.exports.makeDir=async(e,t)=>(To(e),bo.mkdir(e,{mode:wo(t),recursive:!0}));xn.exports.makeDirSync=(e,t)=>(To(e),bo.mkdirSync(e,{mode:wo(t),recursive:!0}))});var Mt=F((LA,No)=>{"use strict";S();var Sh=Et().fromPromise,{makeDir:Ih,makeDirSync:Sn}=_o(),In=Sh(Ih);No.exports={mkdirs:In,mkdirsSync:Sn,mkdirp:In,mkdirpSync:Sn,ensureDir:In,ensureDirSync:Sn}});var dr=F((DA,Lo)=>{"use strict";S();var Bh=Et().fromPromise,ko=Dr();function bh(e){return ko.access(e).then(()=>!0).catch(()=>!1)}Lo.exports={pathExists:Bh(bh),pathExistsSync:ko.existsSync}});var Bn=F((QA,Ro)=>{"use strict";S();var Jr=dt();function Th(e,t,i,r){Jr.open(e,"r+",(a,n)=>{if(a)return r(a);Jr.futimes(n,t,i,s=>{Jr.close(n,o=>{r&&r(s||o)})})})}function wh(e,t,i){let r=Jr.openSync(e,"r+");return Jr.futimesSync(r,t,i),Jr.closeSync(r)}Ro.exports={utimesMillis:Th,utimesMillisSync:wh}});var Pr=F((OA,Qo)=>{"use strict";S();var Wr=Dr(),Ke=Le("path"),_h=Le("util");function Nh(e,t,i){let r=i.dereference?a=>Wr.stat(a,{bigint:!0}):a=>Wr.lstat(a,{bigint:!0});return Promise.all([r(e),r(t).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,n])=>({srcStat:a,destStat:n}))}function kh(e,t,i){let r,a=i.dereference?s=>Wr.statSync(s,{bigint:!0}):s=>Wr.lstatSync(s,{bigint:!0}),n=a(e);try{r=a(t)}catch(s){if(s.code==="ENOENT")return{srcStat:n,destStat:null};throw s}return{srcStat:n,destStat:r}}function Lh(e,t,i,r,a){_h.callbackify(Nh)(e,t,r,(n,s)=>{if(n)return a(n);let{srcStat:o,destStat:u}=s;if(u){if(Bi(o,u)){let l=Ke.basename(e),f=Ke.basename(t);return i==="move"&&l!==f&&l.toLowerCase()===f.toLowerCase()?a(null,{srcStat:o,destStat:u,isChangingCase:!0}):a(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return a(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&u.isDirectory())return a(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&bn(e,t)?a(new Error(la(e,t,i))):a(null,{srcStat:o,destStat:u})})}function Rh(e,t,i,r){let{srcStat:a,destStat:n}=kh(e,t,r);if(n){if(Bi(a,n)){let s=Ke.basename(e),o=Ke.basename(t);if(i==="move"&&s!==o&&s.toLowerCase()===o.toLowerCase())return{srcStat:a,destStat:n,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!n.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&n.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&bn(e,t))throw new Error(la(e,t,i));return{srcStat:a,destStat:n}}function Do(e,t,i,r,a){let n=Ke.resolve(Ke.dirname(e)),s=Ke.resolve(Ke.dirname(i));if(s===n||s===Ke.parse(s).root)return a();Wr.stat(s,{bigint:!0},(o,u)=>o?o.code==="ENOENT"?a():a(o):Bi(t,u)?a(new Error(la(e,i,r))):Do(e,t,s,r,a))}function Po(e,t,i,r){let a=Ke.resolve(Ke.dirname(e)),n=Ke.resolve(Ke.dirname(i));if(n===a||n===Ke.parse(n).root)return;let s;try{s=Wr.statSync(n,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(Bi(t,s))throw new Error(la(e,i,r));return Po(e,t,n,r)}function Bi(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function bn(e,t){let i=Ke.resolve(e).split(Ke.sep).filter(a=>a),r=Ke.resolve(t).split(Ke.sep).filter(a=>a);return i.reduce((a,n,s)=>a&&r[s]===n,!0)}function la(e,t,i){return`Cannot ${i} '${e}' to a subdirectory of itself, '${t}'.`}Qo.exports={checkPaths:Lh,checkPathsSync:Rh,checkParentPaths:Do,checkParentPathsSync:Po,isSrcSubdir:bn,areIdentical:Bi}});var Ho=F((FA,Ko)=>{"use strict";S();var St=dt(),bi=Le("path"),Dh=Mt().mkdirs,Ph=dr().pathExists,Qh=Bn().utimesMillis,Ti=Pr();function Uh(e,t,i,r){typeof i=="function"&&!r?(r=i,i={}):typeof i=="function"&&(i={filter:i}),r=r||function(){},i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
5
5
|
|
|
6
6
|
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Ti.checkPaths(e,t,"copy",i,(a,n)=>{if(a)return r(a);let{srcStat:s,destStat:o}=n;Ti.checkParentPaths(e,s,t,"copy",u=>u?r(u):i.filter?Vo(Uo,o,e,t,i,r):Uo(o,e,t,i,r))})}function Uo(e,t,i,r,a){let n=bi.dirname(i);Ph(n,(s,o)=>{if(s)return a(s);if(o)return fa(e,t,i,r,a);Dh(n,u=>u?a(u):fa(e,t,i,r,a))})}function Vo(e,t,i,r,a,n){Promise.resolve(a.filter(i,r)).then(s=>s?e(t,i,r,a,n):n(),s=>n(s))}function Oh(e,t,i,r,a){return r.filter?Vo(fa,e,t,i,r,a):fa(e,t,i,r,a)}function fa(e,t,i,r,a){(r.dereference?St.stat:St.lstat)(t,(s,o)=>s?a(s):o.isDirectory()?Gh(o,e,t,i,r,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?Vh(o,e,t,i,r,a):o.isSymbolicLink()?zh(e,t,i,r,a):o.isSocket()?a(new Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?a(new Error(`Cannot copy a FIFO pipe: ${t}`)):a(new Error(`Unknown file: ${t}`)))}function Vh(e,t,i,r,a,n){return t?Fh(e,i,r,a,n):Fo(e,i,r,a,n)}function Fh(e,t,i,r,a){if(r.overwrite)St.unlink(i,n=>n?a(n):Fo(e,t,i,r,a));else return r.errorOnExist?a(new Error(`'${i}' already exists`)):a()}function Fo(e,t,i,r,a){St.copyFile(t,i,n=>n?a(n):r.preserveTimestamps?Mh(e.mode,t,i,a):ca(i,e.mode,a))}function Mh(e,t,i,r){return qh(e)?Kh(i,e,a=>a?r(a):Oo(e,t,i,r)):Oo(e,t,i,r)}function qh(e){return(e&128)===0}function Kh(e,t,i){return ca(e,t|128,i)}function Oo(e,t,i,r){Hh(t,i,a=>a?r(a):ca(i,e,r))}function ca(e,t,i){return St.chmod(e,t,i)}function Hh(e,t,i){St.stat(e,(r,a)=>r?i(r):Qh(t,a.atime,a.mtime,i))}function Gh(e,t,i,r,a,n){return t?Mo(i,r,a,n):jh(e.mode,i,r,a,n)}function jh(e,t,i,r,a){St.mkdir(i,n=>{if(n)return a(n);Mo(t,i,r,s=>s?a(s):ca(i,e,a))})}function Mo(e,t,i,r){St.readdir(e,(a,n)=>a?r(a):qo(n,e,t,i,r))}function qo(e,t,i,r,a){let n=e.pop();return n?Yh(e,n,t,i,r,a):a()}function Yh(e,t,i,r,a,n){let s=bi.join(i,t),o=bi.join(r,t);Ti.checkPaths(s,o,"copy",a,(u,l)=>{if(u)return n(u);let{destStat:f}=l;Oh(f,s,o,a,c=>c?n(c):qo(e,i,r,a,n))})}function zh(e,t,i,r,a){St.readlink(t,(n,s)=>{if(n)return a(n);if(r.dereference&&(s=bi.resolve(process.cwd(),s)),e)St.readlink(i,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?St.symlink(s,i,a):a(o):(r.dereference&&(u=bi.resolve(process.cwd(),u)),Ti.isSrcSubdir(s,u)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&Ti.isSrcSubdir(u,s)?a(new Error(`Cannot overwrite '${u}' with '${s}'.`)):Jh(s,i,a)));else return St.symlink(s,i,a)})}function Jh(e,t,i){St.unlink(t,r=>r?i(r):St.symlink(e,t,i))}Ko.exports=Uh});var Jo=F((qA,zo)=>{"use strict";S();var pt=dt(),wi=Le("path"),Wh=Mt().mkdirsSync,Xh=Bn().utimesMillisSync,_i=Pr();function $h(e,t,i){typeof i=="function"&&(i={filter:i}),i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
@@ -171,4 +171,4 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
|
|
|
171
171
|
You can close this browser tab and return to the terminal to continue working.
|
|
172
172
|
</body>
|
|
173
173
|
</html>`}S();var eh="__WIX_ORIGIN_PLACEHOLDER__";function th(){let e=null;return{name:"wix:auto-origin",apply:"serve",config:()=>({server:{origin:eh}}),configureServer:t=>{t.middlewares.use((i,r,a)=>{e=e??wa(t),a()})},transform:(t,i)=>{if(i.match(/.*\.(m?jsx?|tsx?)$/))return t;if(!e)throw new Gr({code:jr.FailedToResolveViteOrigin()});return t.replaceAll(eh,e)}}}S();import{dirname as rA,isAbsolute as iA,join as aA}from"node:path";import{URL as rh}from"node:url";function nA(e,t,i){let r=new rh(t,i).href;if(t.startsWith("/@vite"))return r;if(!iA(t)){let a=aA(rA(e),t);r=new rh(a,i).href}return r}function ih(){let e;return{name:"wix:absolute-html-url",apply:"serve",configureServer(t){e=t},transformIndexHtml:{order:"post",handler(t,{originalUrl:i}){if(!i)throw new Error("Cannot find asset URL.");let r=e.resolvedUrls?.local?.[0],a=(n,s,o,u)=>{let l=nA(i,o,r);return`${s}${l}${u}`};return t.replace(/(<script [^><]*src=["'])((?!http)[^"']+)(["'][^><]*>[\r\n]*<\/script>)/g,a).replace(/(<link [^><]*href=["'])((?!http)[^"']+)(["'][^><]*>)/g,a).replace(/(\r\n|\n|\r)/gm,"")}}}}async function _x(e,t){let{https:i}=t,r=[...yi(e)].map(([u,l])=>[`html-asset-${l.id}`,u]),a=[...mi(e)].map(([u,l])=>[`script-asset-${l.id}`,u]),n=e.components.filter((0,ah.isType)(eo.EmbeddedScript)).map(u=>[u.id,sA(e.projectFolder,u.relativePath)]),s=[...Ai(e)].map(([u,l])=>[`html-asset-${l.id}`,u]),o=[...Ci(e)].map(([u,l])=>[`script-asset-${l.id}`,u]);return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[ro,io,ao,no,so]},server:{},build:{sourcemap:!0,outDir:Zs(e.projectFolder),rollupOptions:{input:Object.fromEntries([...r,...a,...n,...s,...o])}},plugins:[Nf(),...i?[Z0()]:[],wf({initialModel:e,...t}),yf(),Af(),gf({react:"React","react-dom":"ReactDOM"}),Sf({initialModel:e,...t}),th(),ih()],experimental:{renderBuiltUrl(u,{hostType:l,hostId:f}){return l==="html"&&!f.includes("wix/html")?"__STATICS_BASE_URL_PLACEHOLDER__"+u:l!=="js"?{relative:!0}:{runtime:`import.meta.url.replace(${`"${f}"`}, ${`"${u}"`})`}}}}}export{wa as a,_x as b};
|
|
174
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-SXBS7JOX.js.map
|