@wix/cli-app 1.1.17 → 1.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/build/{CreateVersionCommand-F7A6HDJI.js → CreateVersionCommand-CHX2UWME.js} +2 -2
  2. package/build/{DevCommand-KHV22E2S.js → DevCommand-TKHJTH22.js} +2 -2
  3. package/build/{GenerateCommand-46EMTVWN.js → GenerateCommand-PIRMS3PT.js} +2 -2
  4. package/build/PreviewCommand-2DQ252RA.js +4 -0
  5. package/build/{ServeCommand-Z5NQEEE5.js → ServeCommand-XTHWLUDT.js} +2 -2
  6. package/build/{build-WOV3ZNZF.js → build-QLE4H4H2.js} +2 -2
  7. package/build/{chunk-RWN7XXN6.js → chunk-3L5LQKB7.js} +2 -2
  8. package/build/{chunk-PSXIV7FJ.js → chunk-5XZSJPLU.js} +2 -2
  9. package/build/{chunk-4NIGEF2O.js → chunk-6OPLPT2G.js} +33 -33
  10. package/build/chunk-6OPLPT2G.js.map +1 -0
  11. package/build/chunk-6R3ZFQVO.js +27 -0
  12. package/build/chunk-6R3ZFQVO.js.map +1 -0
  13. package/build/chunk-7JJKVPKL.js +6 -0
  14. package/build/chunk-7JJKVPKL.js.map +1 -0
  15. package/build/{chunk-G7NSXRI7.js → chunk-BGSKNKJF.js} +2 -2
  16. package/build/{chunk-RYS7G2PY.js → chunk-BKNV2B7T.js} +2 -2
  17. package/build/{chunk-GHVN7KTY.js → chunk-HLCGKBPK.js} +2 -2
  18. package/build/{chunk-GHVN7KTY.js.map → chunk-HLCGKBPK.js.map} +1 -1
  19. package/build/{chunk-ZIVYB6TM.js → chunk-O4DV7EH5.js} +2 -2
  20. package/build/{chunk-QW5H4VGJ.js → chunk-PE3RXVKE.js} +2 -2
  21. package/build/{chunk-JIUANWPO.js → chunk-PYBYLDJB.js} +2 -2
  22. package/build/{chunk-3EQ4ZYU2.js → chunk-QBIV5U5A.js} +2 -2
  23. package/build/{chunk-7TOOBLT6.js → chunk-RCDIKBVN.js} +2 -2
  24. package/build/{chunk-LT3WXWI5.js → chunk-RDIPEKL2.js} +2 -2
  25. package/build/{chunk-CUWQRNQL.js → chunk-SIP7BHV7.js} +2 -2
  26. package/build/{chunk-KK4X6NH5.js → chunk-TBT2V5T7.js} +2 -2
  27. package/build/{chunk-KK4X6NH5.js.map → chunk-TBT2V5T7.js.map} +1 -1
  28. package/build/{chunk-EH27FYQH.js → chunk-UQ7NP6NA.js} +2 -2
  29. package/build/chunk-XHPVJXDY.js +73 -0
  30. package/build/{chunk-YWJFUO7I.js.map → chunk-XHPVJXDY.js.map} +1 -1
  31. package/build/{chunk-7IB3ZF3I.js → chunk-XYNUUMC2.js} +2 -2
  32. package/build/{esm-CECOC7V2.js → esm-QEHFRL6L.js} +3 -3
  33. package/build/esm-QEHFRL6L.js.map +1 -0
  34. package/build/index.js +2 -2
  35. package/build/{preview-FV7ZP3YC.js → preview-LQ6YX5QD.js} +2 -2
  36. package/build/{render-command-JEBHYUZV.js → render-command-PDPDZKND.js} +2 -2
  37. package/package.json +5 -5
  38. package/build/PreviewCommand-XX7TWOJR.js +0 -4
  39. package/build/chunk-4NIGEF2O.js.map +0 -1
  40. package/build/chunk-62RRZRN6.js +0 -6
  41. package/build/chunk-62RRZRN6.js.map +0 -1
  42. package/build/chunk-LW6PZKOJ.js +0 -27
  43. package/build/chunk-LW6PZKOJ.js.map +0 -1
  44. package/build/chunk-YWJFUO7I.js +0 -73
  45. package/build/esm-CECOC7V2.js.map +0 -1
  46. /package/build/{CreateVersionCommand-F7A6HDJI.js.map → CreateVersionCommand-CHX2UWME.js.map} +0 -0
  47. /package/build/{DevCommand-KHV22E2S.js.map → DevCommand-TKHJTH22.js.map} +0 -0
  48. /package/build/{GenerateCommand-46EMTVWN.js.map → GenerateCommand-PIRMS3PT.js.map} +0 -0
  49. /package/build/{PreviewCommand-XX7TWOJR.js.map → PreviewCommand-2DQ252RA.js.map} +0 -0
  50. /package/build/{ServeCommand-Z5NQEEE5.js.map → ServeCommand-XTHWLUDT.js.map} +0 -0
  51. /package/build/{build-WOV3ZNZF.js.map → build-QLE4H4H2.js.map} +0 -0
  52. /package/build/{chunk-RWN7XXN6.js.map → chunk-3L5LQKB7.js.map} +0 -0
  53. /package/build/{chunk-PSXIV7FJ.js.map → chunk-5XZSJPLU.js.map} +0 -0
  54. /package/build/{chunk-G7NSXRI7.js.map → chunk-BGSKNKJF.js.map} +0 -0
  55. /package/build/{chunk-RYS7G2PY.js.map → chunk-BKNV2B7T.js.map} +0 -0
  56. /package/build/{chunk-ZIVYB6TM.js.map → chunk-O4DV7EH5.js.map} +0 -0
  57. /package/build/{chunk-QW5H4VGJ.js.map → chunk-PE3RXVKE.js.map} +0 -0
  58. /package/build/{chunk-JIUANWPO.js.map → chunk-PYBYLDJB.js.map} +0 -0
  59. /package/build/{chunk-3EQ4ZYU2.js.map → chunk-QBIV5U5A.js.map} +0 -0
  60. /package/build/{chunk-7TOOBLT6.js.map → chunk-RCDIKBVN.js.map} +0 -0
  61. /package/build/{chunk-LT3WXWI5.js.map → chunk-RDIPEKL2.js.map} +0 -0
  62. /package/build/{chunk-CUWQRNQL.js.map → chunk-SIP7BHV7.js.map} +0 -0
  63. /package/build/{chunk-EH27FYQH.js.map → chunk-UQ7NP6NA.js.map} +0 -0
  64. /package/build/{chunk-7IB3ZF3I.js.map → chunk-XYNUUMC2.js.map} +0 -0
  65. /package/build/{preview-FV7ZP3YC.js.map → preview-LQ6YX5QD.js.map} +0 -0
  66. /package/build/{render-command-JEBHYUZV.js.map → render-command-PDPDZKND.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{P as c,R as B,T as A,ea as N,ga as x,i as S,k as m,l as b,m as P,q as l,r as M,s as I,t as v}from"./chunk-YWJFUO7I.js";import{a as h,c as p,d as u}from"./chunk-62RRZRN6.js";import{e as C,h as d}from"./chunk-HFDLXX7R.js";d();var T=C(h(),1);import{randomUUID as R}from"node:crypto";var w=t=>{let r=new Map;[...t].sort((e,a)=>e.id.localeCompare(a.id)).forEach(e=>{let a=r.get(e.id)??[];a.push(e),r.set(e.id,a)});let i=new Map;if(r.forEach((e,a)=>{e.length>1&&i.set(a,e)}),i.size)throw new p({code:u.DuplicateComponentIdsError({issues:Array.from(i.entries()).map(([e,a])=>({id:e,components:a.map(f=>(0,T.match)(f,{DashboardPage:({title:s,relativePath:n})=>({name:s,type:"page",path:c(n,"json")}),DashboardPlugin:({title:s,relativePath:n})=>({name:s,type:"plugin",path:c(n,"json")}),DashboardMenuPlugin:({title:s,relativePath:n})=>({name:s,type:"menu-plugin",path:n}),DashboardModal:({title:s,relativePath:n})=>({name:s,type:"modal",path:c(n,"json")}),DashboardSidebarCategory:({label:s})=>({name:s,type:"sidebar-category",path:S}),EmbeddedScript:({relativePath:s})=>({name:s,type:"embedded-script",path:c(s,"json")}),CustomElement:({name:s,relativePath:n})=>({name:s,type:"custom-element",path:c(n,"json")})})).sort((f,s)=>f.name.localeCompare(s.name)),suggestedId:R()}))})})};d();var O=C(h(),1);var k=(t,r)=>{if(t.experiments)return{appId:r,componentId:t.id,spec:t.experiments.enabledBy,variantValue:"true"}};async function $({appId:t,components:r,sentryDSN:o,componentSourceBuilder:i}){return w(r),{appId:t,components:await Promise.all(r.map((0,O.match)({DashboardPage:async e=>{let a=e.sentryDSN??o;return{compId:e.id,compType:m.BACK_OFFICE_PAGE,compData:{backOfficePage:{hostingPlatform:l.BUSINESS_MANAGER,fullPage:e.sidebar?.whenActive?.hideSidebar,hideInSidebar:e.sidebar?.disabled,priority:e.sidebar?.priority,routePath:e.route.slice(1),title:e.title,pageCategoryId:e.sidebar?.categoryId,activeSidebarPageId:e.sidebar?.whenActive?.selectedPageId,requiredPermission:e.requiredPermission,previousRoutePaths:e.additionalRoutes,...a?{errorReporting:{url:a}}:void 0,...await i(e)}},compName:e.title,experiment:k(e,t)}},DashboardPlugin:async e=>({compId:e.id,compType:m.BACK_OFFICE_EXTENSION_WIDGET,compData:{backOfficeExtensionWidget:{hostingPlatform:l.BUSINESS_MANAGER,extends:e.extends,title:e.title,requiredPermission:e.requiredPermission,width:e.width,height:e.height,...await i(e),...e.sentryDSN?{errorReporting:{url:e.sentryDSN}}:void 0}},compName:e.title}),DashboardMenuPlugin:async e=>({compId:e.id,compType:m.BACK_OFFICE_EXTENSION_MENU_ITEM,compData:{backOfficeExtensionMenuItem:{hostingPlatform:l.BUSINESS_MANAGER,id:e.id,title:e.title,subtitle:e.subtitle,iconKey:e.iconKey,extends:e.extends,action:e.action,requiredPermission:e.requiredPermission,...e.sentryDSN?{errorReporting:{url:e.sentryDSN}}:void 0}},compName:e.title}),DashboardModal:async e=>({compId:e.id,compType:m.BACK_OFFICE_MODAL,compData:{backOfficeModal:{hostingPlatform:l.BUSINESS_MANAGER,title:e.title,requiredPermission:e.requiredPermission,width:e.width,height:e.height,...await i(e),...e.sentryDSN?{errorReporting:{url:e.sentryDSN}}:void 0}},compName:e.title}),DashboardSidebarCategory:async e=>({compId:e.id,compType:m.BACK_OFFICE_SIDEBAR_CATEGORY,compData:{backOfficeSidebarCategory:{hostingPlatform:l.BUSINESS_MANAGER,title:e.label,priority:e.priority}},compName:e.label}),EmbeddedScript:async e=>({compId:e.id,compType:m.EMBEDDED_SCRIPT,compName:e.name,compData:{embeddedScriptComponentData:{name:e.name,pages:P.NONE_PAGES,placement:e.placement,connectArticleUrl:"",embedCategory:e.scriptType,loadOnce:!0,allowedForFreeSite:!0,...await i(e)}}}),CustomElement:async e=>{let{scriptUrl:a,settingsUrl:f}=await i(e);return{compId:e.id,compType:m.CUSTOM_ELEMENT_WIDGET,compName:e.name,compData:{customElementWidget:{base:{name:e.name},widgetData:{tagName:e.tagName,scriptType:I.ES_MODULE,scriptUrl:a},size:{width:{defaultWidth:e.width.defaultWidth,allowStretch:e.width.allowStretch,stretchByDefault:e.width.stretchByDefault},height:{defaultHeight:e.height.defaultHeight,heightMode:v.FIXED}},installation:{base:{autoAdd:e.installation?.autoAddToSite,essential:e.installation?.essential,maxInstances:e.installation?.maxInstances},widget:{region:b.BODY}},behaviors:{...e.relativePanelPath?{settings:{settingsUrl:f}}:{}}}}}}})))}}d();var F=C(h(),1);d();function U(t){if(!("output"in t||Array.isArray(t)))throw new p({code:u.InvalidViteBuildOutput()});return Array.isArray(t)?t.flatMap(i=>i.output):t.output}function E(t,r){let i=U(t).find(e=>e.type==="chunk"&&e.facadeModuleId===r);if(!i)throw new p({code:u.ViteModuleBundleNotFound()});return i.fileName}function _(t,r){let i=U(t).find(e=>e.fileName===r);if(!i||!("source"in i))throw new p({code:u.ViteFileNotFoundInOutput({fileName:r})});return i.source.toString()}async function V(t,r){let o=new URL(t.relativePath,r).href;return await fetch(o).then(e=>e.text())}var D=(t,r,o)=>{if(!r.config.trusted)return{iframeUrl:B(t.id)};let i=A(t.id),e=o?E(o,i):`/@id/${i}?import`;return{scriptAsset:{exportedName:t.id,containerId:r.config.appId,url:e,scriptType:M.MODULE}}},j=async(t,r,o)=>({template:r?_(r,t.relativePath):await V(t,o)}),G=(t,r)=>{let o=x(t.id);return{scriptUrl:r?E(r,o):`/@id/${o}?import`,settingsUrl:N(t.id)}};function se({model:t,buildOutput:r,devServerUrl:o}){return async i=>(0,F.match)(i,{EmbeddedScript:a=>j(a,r,o),DashboardSidebarCategory:()=>{},CustomElement:a=>G(a,r),DashboardPage:a=>D(a,t,r),DashboardPlugin:a=>D(a,t,r),DashboardModal:a=>D(a,t,r),DashboardMenuPlugin:()=>{}})}export{w as a,$ as b,se as c};
4
- //# sourceMappingURL=chunk-G7NSXRI7.js.map
3
+ import{P as c,R as B,T as A,ea as N,ga as x,i as S,k as m,l as b,m as P,q as l,r as M,s as I,t as v}from"./chunk-XHPVJXDY.js";import{a as h,c as p,d as u}from"./chunk-7JJKVPKL.js";import{e as C,h as d}from"./chunk-HFDLXX7R.js";d();var T=C(h(),1);import{randomUUID as R}from"node:crypto";var w=t=>{let r=new Map;[...t].sort((e,a)=>e.id.localeCompare(a.id)).forEach(e=>{let a=r.get(e.id)??[];a.push(e),r.set(e.id,a)});let i=new Map;if(r.forEach((e,a)=>{e.length>1&&i.set(a,e)}),i.size)throw new p({code:u.DuplicateComponentIdsError({issues:Array.from(i.entries()).map(([e,a])=>({id:e,components:a.map(f=>(0,T.match)(f,{DashboardPage:({title:s,relativePath:n})=>({name:s,type:"page",path:c(n,"json")}),DashboardPlugin:({title:s,relativePath:n})=>({name:s,type:"plugin",path:c(n,"json")}),DashboardMenuPlugin:({title:s,relativePath:n})=>({name:s,type:"menu-plugin",path:n}),DashboardModal:({title:s,relativePath:n})=>({name:s,type:"modal",path:c(n,"json")}),DashboardSidebarCategory:({label:s})=>({name:s,type:"sidebar-category",path:S}),EmbeddedScript:({relativePath:s})=>({name:s,type:"embedded-script",path:c(s,"json")}),CustomElement:({name:s,relativePath:n})=>({name:s,type:"custom-element",path:c(n,"json")})})).sort((f,s)=>f.name.localeCompare(s.name)),suggestedId:R()}))})})};d();var O=C(h(),1);var k=(t,r)=>{if(t.experiments)return{appId:r,componentId:t.id,spec:t.experiments.enabledBy,variantValue:"true"}};async function $({appId:t,components:r,sentryDSN:o,componentSourceBuilder:i}){return w(r),{appId:t,components:await Promise.all(r.map((0,O.match)({DashboardPage:async e=>{let a=e.sentryDSN??o;return{compId:e.id,compType:m.BACK_OFFICE_PAGE,compData:{backOfficePage:{hostingPlatform:l.BUSINESS_MANAGER,fullPage:e.sidebar?.whenActive?.hideSidebar,hideInSidebar:e.sidebar?.disabled,priority:e.sidebar?.priority,routePath:e.route.slice(1),title:e.title,pageCategoryId:e.sidebar?.categoryId,activeSidebarPageId:e.sidebar?.whenActive?.selectedPageId,requiredPermission:e.requiredPermission,previousRoutePaths:e.additionalRoutes,...a?{errorReporting:{url:a}}:void 0,...await i(e)}},compName:e.title,experiment:k(e,t)}},DashboardPlugin:async e=>({compId:e.id,compType:m.BACK_OFFICE_EXTENSION_WIDGET,compData:{backOfficeExtensionWidget:{hostingPlatform:l.BUSINESS_MANAGER,extends:e.extends,title:e.title,requiredPermission:e.requiredPermission,width:e.width,height:e.height,...await i(e),...e.sentryDSN?{errorReporting:{url:e.sentryDSN}}:void 0}},compName:e.title}),DashboardMenuPlugin:async e=>({compId:e.id,compType:m.BACK_OFFICE_EXTENSION_MENU_ITEM,compData:{backOfficeExtensionMenuItem:{hostingPlatform:l.BUSINESS_MANAGER,id:e.id,title:e.title,subtitle:e.subtitle,iconKey:e.iconKey,extends:e.extends,action:e.action,requiredPermission:e.requiredPermission,...e.sentryDSN?{errorReporting:{url:e.sentryDSN}}:void 0}},compName:e.title}),DashboardModal:async e=>({compId:e.id,compType:m.BACK_OFFICE_MODAL,compData:{backOfficeModal:{hostingPlatform:l.BUSINESS_MANAGER,title:e.title,requiredPermission:e.requiredPermission,width:e.width,height:e.height,...await i(e),...e.sentryDSN?{errorReporting:{url:e.sentryDSN}}:void 0}},compName:e.title}),DashboardSidebarCategory:async e=>({compId:e.id,compType:m.BACK_OFFICE_SIDEBAR_CATEGORY,compData:{backOfficeSidebarCategory:{hostingPlatform:l.BUSINESS_MANAGER,title:e.label,priority:e.priority}},compName:e.label}),EmbeddedScript:async e=>({compId:e.id,compType:m.EMBEDDED_SCRIPT,compName:e.name,compData:{embeddedScriptComponentData:{name:e.name,pages:P.NONE_PAGES,placement:e.placement,connectArticleUrl:"",embedCategory:e.scriptType,loadOnce:!0,allowedForFreeSite:!0,...await i(e)}}}),CustomElement:async e=>{let{scriptUrl:a,settingsUrl:f}=await i(e);return{compId:e.id,compType:m.CUSTOM_ELEMENT_WIDGET,compName:e.name,compData:{customElementWidget:{base:{name:e.name},widgetData:{tagName:e.tagName,scriptType:I.ES_MODULE,scriptUrl:a},size:{width:{defaultWidth:e.width.defaultWidth,allowStretch:e.width.allowStretch,stretchByDefault:e.width.stretchByDefault},height:{defaultHeight:e.height.defaultHeight,heightMode:v.FIXED}},installation:{base:{autoAdd:e.installation?.autoAddToSite,essential:e.installation?.essential,maxInstances:e.installation?.maxInstances},widget:{region:b.BODY}},behaviors:{...e.relativePanelPath?{settings:{settingsUrl:f}}:{}}}}}}})))}}d();var F=C(h(),1);d();function U(t){if(!("output"in t||Array.isArray(t)))throw new p({code:u.InvalidViteBuildOutput()});return Array.isArray(t)?t.flatMap(i=>i.output):t.output}function E(t,r){let i=U(t).find(e=>e.type==="chunk"&&e.facadeModuleId===r);if(!i)throw new p({code:u.ViteModuleBundleNotFound()});return i.fileName}function _(t,r){let i=U(t).find(e=>e.fileName===r);if(!i||!("source"in i))throw new p({code:u.ViteFileNotFoundInOutput({fileName:r})});return i.source.toString()}async function V(t,r){let o=new URL(t.relativePath,r).href;return await fetch(o).then(e=>e.text())}var D=(t,r,o)=>{if(!r.config.trusted)return{iframeUrl:B(t.id)};let i=A(t.id),e=o?E(o,i):`/@id/${i}?import`;return{scriptAsset:{exportedName:t.id,containerId:r.config.appId,url:e,scriptType:M.MODULE}}},j=async(t,r,o)=>({template:r?_(r,t.relativePath):await V(t,o)}),G=(t,r)=>{let o=x(t.id);return{scriptUrl:r?E(r,o):`/@id/${o}?import`,settingsUrl:N(t.id)}};function se({model:t,buildOutput:r,devServerUrl:o}){return async i=>(0,F.match)(i,{EmbeddedScript:a=>j(a,r,o),DashboardSidebarCategory:()=>{},CustomElement:a=>G(a,r),DashboardPage:a=>D(a,t,r),DashboardPlugin:a=>D(a,t,r),DashboardModal:a=>D(a,t,r),DashboardMenuPlugin:()=>{}})}export{w as a,$ as b,se as c};
4
+ //# sourceMappingURL=chunk-BGSKNKJF.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{f as i,j as o}from"./chunk-LW6PZKOJ.js";import{h as t}from"./chunk-HFDLXX7R.js";t();import{useMemo as m}from"react";function c({type:e}){let{getAccessToken:p,getRequestHeaders:r}=o();return m(()=>i({type:e,getAppToken:p,createHeaders:r}),[e,p,r])}t();export{c as a};
4
- //# sourceMappingURL=chunk-RYS7G2PY.js.map
3
+ import{f as i,j as o}from"./chunk-6R3ZFQVO.js";import{h as t}from"./chunk-HFDLXX7R.js";t();import{useMemo as m}from"react";function c({type:e}){let{getAccessToken:p,getRequestHeaders:r}=o();return m(()=>i({type:e,getAppToken:p,createHeaders:r}),[e,p,r])}t();export{c as a};
4
+ //# sourceMappingURL=chunk-BKNV2B7T.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- var s="1.1.17";export{s as a};
4
- //# sourceMappingURL=chunk-GHVN7KTY.js.map
3
+ var s="1.1.18";export{s as a};
4
+ //# sourceMappingURL=chunk-HLCGKBPK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@wix/cli-app\",\n \"description\": \"CLI tool for Wix apps\",\n \"version\": \"1.1.17\",\n \"author\": \"Amit Dahan\",\n \"dependencies\": {\n \"vite\": \"5.2.10\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^12.0.1\",\n \"@types/lodash\": \"^4.17.1\",\n \"@types/mustache\": \"^4.2.5\",\n \"@wix/ambassador-cli-site-override-service-v1-site-override\": \"^1.0.4\",\n \"@wix/ambassador-ctp-app-cloud-deployer-service-v1-app-cloud-deployer\": \"^1.0.17\",\n \"@wix/ambassador-ctp-gradual-rollout-v1-app-config\": \"^1.0.64\",\n \"@wix/ambassador-devcenter-components-v1-component\": \"^1.0.376\",\n \"@wix/arm-client\": \"workspace:*\",\n \"@wix/bi-logger-wix-cli\": \"^1.37.0\",\n \"@wix/cli-app-definitions\": \"workspace:*\",\n \"@wix/cli-app-manifest\": \"workspace:*\",\n \"@wix/cli-auth\": \"workspace:*\",\n \"@wix/cli-command-contract\": \"workspace:*\",\n \"@wix/cli-core-definitions\": \"workspace:*\",\n \"@wix/cli-debug-log\": \"workspace:*\",\n \"@wix/cli-error\": \"workspace:*\",\n \"@wix/cli-error-reporting\": \"workspace:*\",\n \"@wix/cli-fs\": \"workspace:*\",\n \"@wix/cli-http-client\": \"workspace:*\",\n \"@wix/cli-http-client-react\": \"workspace:*\",\n \"@wix/cli-i18n\": \"workspace:*\",\n \"@wix/cli-logger\": \"workspace:*\",\n \"@wix/cli-site-selector\": \"workspace:*\",\n \"@wix/cli-ssl\": \"workspace:*\",\n \"@wix/cli-telemetry\": \"workspace:*\",\n \"@wix/cli-telemetry-react\": \"workspace:*\",\n \"@wix/cli-test-overrides\": \"workspace:*\",\n \"@wix/cli-ui-kit\": \"workspace:*\",\n \"@wix/dev-center-client\": \"workspace:*\",\n \"@wix/extensions-data-client\": \"workspace:*\",\n \"@wix/gena\": \"workspace:*\",\n \"@wix/site-list-client\": \"workspace:*\",\n \"@wix/site-override-client\": \"workspace:*\",\n \"@wix/tsup-configs\": \"workspace:*\",\n \"@wix/user-browser\": \"workspace:*\",\n \"chalk\": \"^5.3.0\",\n \"chokidar\": \"^3.6.0\",\n \"commander\": \"^12.0.0\",\n \"fast-equals\": \"^5.0.1\",\n \"form-data\": \"^4.0.0\",\n \"globby\": \"^13.2.2\",\n \"lodash\": \"^4.17.21\",\n \"mustache\": \"^4.2.0\",\n \"p-retry\": \"^5.1.2\",\n \"p-wait-for\": \"^5.0.2\",\n \"prompts\": \"^2.4.2\",\n \"semver\": \"^7.6.2\",\n \"tempy\": \"^3.1.0\",\n \"typed-emitter\": \"^2.1.0\",\n \"variant\": \"^3.0.0-dev.27\",\n \"vite-plugin-externals\": \"^0.6.2\",\n \"zod\": \"^3.23.8\",\n \"zod-to-json-schema\": \"^3.23.0\"\n },\n \"engines\": {\n \"node\": \">= 18.16\"\n },\n \"exports\": {\n \".\": \"./build/index.js\",\n \"./client\": {\n \"types\": \"./client.d.ts\"\n },\n \"./internal/component-hmr-wrapper\": \"./internal/component-hmr-wrapper.tsx\",\n \"./tsconfig.app.json\": \"./tsconfig.app.json\",\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"build\",\n \"schemas\",\n \"tsconfig.app.json\",\n \"client.d.ts\",\n \"internal\",\n \"templates\"\n ],\n \"peerDependencies\": {\n \"react\": \"^16.14 || ^17 || ^18\",\n \"react-dom\": \"^16.14 || ^17 || ^18\"\n },\n \"peerDependenciesMeta\": {\n \"react-dom\": {\n \"optional\": true\n }\n },\n \"perfer\": {\n \"bundleSize\": {\n \"files\": [\n {\n \"glob\": \"./build/index.js\",\n \"maxSize\": \"460kb\"\n }\n ]\n }\n },\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org/\",\n \"access\": \"public\",\n \"versionBumpStrategy\": \"manual\",\n \"logLevel\": \"verbose\"\n },\n \"scripts\": {\n \"build\": \"run -T tsup && yarn generate-schemas\",\n \"build:watch\": \"run -T tsup --watch\",\n \"generate-schemas\": \"node build-scripts/generate-schemas.js\",\n \"lint\": \"run -T lint-package\",\n \"test\": \"yarn workspace @wix/cli-app-spec run test\",\n \"test:watch\": \"yarn workspace @wix/cli-app-spec run test:watch\",\n \"typecheck\": \"run -T tsc --noEmit\"\n },\n \"sideEffects\": false,\n \"type\": \"module\",\n \"wix\": {\n \"artifact\": {\n \"groupId\": \"com.wixpress.npm\",\n \"artifactId\": \"wix-cli-app\"\n },\n \"validations\": {\n \"postBuild\": [\n \"typecheck\",\n \"lint\"\n ]\n }\n }\n}\n"],"mappings":";;AAGE,IAAAA,EAAW","names":["version"]}
1
+ {"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@wix/cli-app\",\n \"description\": \"CLI tool for Wix apps\",\n \"version\": \"1.1.18\",\n \"author\": \"Amit Dahan\",\n \"dependencies\": {\n \"vite\": \"5.2.10\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^12.0.1\",\n \"@types/lodash\": \"^4.17.4\",\n \"@types/mustache\": \"^4.2.5\",\n \"@wix/ambassador-cli-site-override-service-v1-site-override\": \"^1.0.5\",\n \"@wix/ambassador-ctp-app-cloud-deployer-service-v1-app-cloud-deployer\": \"^1.0.17\",\n \"@wix/ambassador-ctp-gradual-rollout-v1-app-config\": \"^1.0.64\",\n \"@wix/ambassador-devcenter-components-v1-component\": \"^1.0.389\",\n \"@wix/arm-client\": \"workspace:*\",\n \"@wix/bi-logger-wix-cli\": \"^1.37.0\",\n \"@wix/cli-app-definitions\": \"workspace:*\",\n \"@wix/cli-app-manifest\": \"workspace:*\",\n \"@wix/cli-auth\": \"workspace:*\",\n \"@wix/cli-command-contract\": \"workspace:*\",\n \"@wix/cli-core-definitions\": \"workspace:*\",\n \"@wix/cli-debug-log\": \"workspace:*\",\n \"@wix/cli-error\": \"workspace:*\",\n \"@wix/cli-error-reporting\": \"workspace:*\",\n \"@wix/cli-fs\": \"workspace:*\",\n \"@wix/cli-http-client\": \"workspace:*\",\n \"@wix/cli-http-client-react\": \"workspace:*\",\n \"@wix/cli-i18n\": \"workspace:*\",\n \"@wix/cli-logger\": \"workspace:*\",\n \"@wix/cli-site-selector\": \"workspace:*\",\n \"@wix/cli-ssl\": \"workspace:*\",\n \"@wix/cli-telemetry\": \"workspace:*\",\n \"@wix/cli-telemetry-react\": \"workspace:*\",\n \"@wix/cli-test-overrides\": \"workspace:*\",\n \"@wix/cli-ui-kit\": \"workspace:*\",\n \"@wix/dev-center-client\": \"workspace:*\",\n \"@wix/extensions-data-client\": \"workspace:*\",\n \"@wix/gena\": \"workspace:*\",\n \"@wix/site-list-client\": \"workspace:*\",\n \"@wix/site-override-client\": \"workspace:*\",\n \"@wix/tsup-configs\": \"workspace:*\",\n \"@wix/user-browser\": \"workspace:*\",\n \"chalk\": \"^5.3.0\",\n \"chokidar\": \"^3.6.0\",\n \"commander\": \"^12.0.0\",\n \"fast-equals\": \"^5.0.1\",\n \"form-data\": \"^4.0.0\",\n \"globby\": \"^13.2.2\",\n \"lodash\": \"^4.17.21\",\n \"mustache\": \"^4.2.0\",\n \"p-retry\": \"^5.1.2\",\n \"p-wait-for\": \"^5.0.2\",\n \"prompts\": \"^2.4.2\",\n \"semver\": \"^7.6.2\",\n \"tempy\": \"^3.1.0\",\n \"typed-emitter\": \"^2.1.0\",\n \"variant\": \"^3.0.0-dev.27\",\n \"vite-plugin-externals\": \"^0.6.2\",\n \"zod\": \"^3.23.8\",\n \"zod-to-json-schema\": \"^3.23.0\"\n },\n \"engines\": {\n \"node\": \">= 18.16\"\n },\n \"exports\": {\n \".\": \"./build/index.js\",\n \"./client\": {\n \"types\": \"./client.d.ts\"\n },\n \"./internal/component-hmr-wrapper\": \"./internal/component-hmr-wrapper.tsx\",\n \"./tsconfig.app.json\": \"./tsconfig.app.json\",\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"build\",\n \"schemas\",\n \"tsconfig.app.json\",\n \"client.d.ts\",\n \"internal\",\n \"templates\"\n ],\n \"peerDependencies\": {\n \"react\": \"^16.14 || ^17 || ^18\",\n \"react-dom\": \"^16.14 || ^17 || ^18\"\n },\n \"peerDependenciesMeta\": {\n \"react-dom\": {\n \"optional\": true\n }\n },\n \"perfer\": {\n \"bundleSize\": {\n \"files\": [\n {\n \"glob\": \"./build/index.js\",\n \"maxSize\": \"460kb\"\n }\n ]\n }\n },\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org/\",\n \"access\": \"public\",\n \"versionBumpStrategy\": \"manual\",\n \"logLevel\": \"verbose\"\n },\n \"scripts\": {\n \"build\": \"run -T tsup && yarn generate-schemas\",\n \"build:watch\": \"run -T tsup --watch\",\n \"generate-schemas\": \"node build-scripts/generate-schemas.js\",\n \"lint\": \"run -T lint-package\",\n \"test\": \"yarn workspace @wix/cli-app-spec run test\",\n \"test:watch\": \"yarn workspace @wix/cli-app-spec run test:watch\",\n \"typecheck\": \"run -T tsc --noEmit\"\n },\n \"sideEffects\": false,\n \"type\": \"module\",\n \"wix\": {\n \"artifact\": {\n \"groupId\": \"com.wixpress.npm\",\n \"artifactId\": \"wix-cli-app\"\n },\n \"validations\": {\n \"postBuild\": [\n \"typecheck\",\n \"lint\"\n ]\n }\n }\n}\n"],"mappings":";;AAGE,IAAAA,EAAW","names":["version"]}
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{k as o,l as d,m as u,n as p,o as c,p as I,s as b,t as h}from"./chunk-YWJFUO7I.js";import{h as e}from"./chunk-62RRZRN6.js";import{h as O}from"./chunk-HFDLXX7R.js";O();import C from"node:fs/promises";var l=e.object({errorReporting:e.object({url:e.string().optional(),artifact:e.object({fullArtifactId:e.string().max(255).min(1),version:e.string().max(255).min(1)}).optional()}).optional()}),m=e.object({iframeUrl:e.string().optional(),scriptAsset:e.object({exportedName:e.string(),containerId:e.string(),url:e.string(),scriptType:e.string().optional()}).optional()}),N=e.object({hostingPlatform:e.string(),fullPage:e.boolean().nullish(),hideInSidebar:e.boolean().nullish(),priority:e.number().nullish(),routePath:e.string().nullish(),title:e.string(),pageCategoryId:e.string().uuid().nullish(),activeSidebarPageId:e.string().nullish(),requiredPermission:e.string().nullish(),previousRoutePaths:e.array(e.string()).nullish()}).merge(l).merge(m).passthrough(),_=e.object({width:e.number().nullish(),height:e.number().nullish()}).merge(m).passthrough(),g=e.object({appId:e.string(),componentId:e.string().uuid(),spec:e.string().min(1),variantValue:e.string()}).passthrough().optional(),T=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_PAGE),compData:e.object({backOfficePage:N}),compName:e.string().optional(),experiment:g}).passthrough(),j=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_EXTENSION),compData:e.object({backOfficeExtension:e.object({hostingPlatform:e.string(),extends:e.string(),title:e.string().nullish(),extensionType:e.literal(I.BACK_OFFICE_EXTENSION_WIDGET),requiredPermission:e.string().nullish(),widget:_}).merge(l).passthrough()}),compName:e.string().optional(),experiment:g}).passthrough(),A=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_EXTENSION_WIDGET),compData:e.object({backOfficeExtensionWidget:e.object({hostingPlatform:e.string(),extends:e.string(),title:e.string().nullish(),description:e.string().optional(),requiredPermission:e.string().nullish(),width:e.number().nullish(),height:e.number().nullish()}).merge(m).merge(l).passthrough()}),compName:e.string().optional(),experiment:g}).passthrough(),D=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_EXTENSION_MENU_ITEM),compData:e.object({backOfficeExtensionMenuItem:e.object({id:e.string().uuid(),title:e.string().min(1),subtitle:e.string().max(200).optional(),iconKey:e.string().min(3).max(50).optional(),extends:e.string().uuid(),action:e.object({navigateToPage:e.object({pageId:e.string().uuid(),relativeUrl:e.string().optional()}),openModal:e.object({componentId:e.string().uuid(),componentParams:e.record(e.string().min(1),e.string().min(1)).optional()})}).partial().superRefine((n,i)=>{!n.navigateToPage&&!n.openModal&&i.addIssue({code:e.ZodIssueCode.custom,message:"action must have either navigateToPage or openModal"})}),sentryDSN:e.string().optional(),requiredPermission:e.string().optional()}).merge(m).merge(l).passthrough()}),compName:e.string().optional(),experiment:g}).passthrough(),v=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_MODAL),compData:e.object({backOfficeModal:e.object({hostingPlatform:e.string(),title:e.string().nullish(),requiredPermission:e.string().nullish(),width:e.number().nullish(),height:e.number().nullish()}).merge(m).merge(l).passthrough()}),compName:e.string().optional(),experiment:g}).passthrough(),y=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_SIDEBAR_CATEGORY),compData:e.object({backOfficeSidebarCategory:e.object({hostingPlatform:e.string(),title:e.string(),priority:e.number().nullish()})}),compName:e.string().optional()}).passthrough(),P=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_WIDGET),compName:e.string().optional()}).passthrough(),F=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_EXTENSION_CONTAINER),compName:e.string().optional()}).passthrough(),M=e.object({template:e.string(),name:e.string(),pages:e.enum([u.NONE_PAGES,u.ONCE,u.SPECIFIC_PAGES]),placement:e.enum([p.HEAD,p.BODY_START,p.BODY_END,p.NONE_PLACEMENT]),connectArticleUrl:e.string(),embedCategory:e.enum([c.UNKNOWN,c.FUNCTIONAL,c.ESSENTIAL,c.ANALYTICS,c.ADVERTISING]),loadOnce:e.boolean(),allowedForFreeSite:e.boolean()}),x=e.object({compId:e.string(),compType:e.literal(o.EMBEDDED_SCRIPT),compName:e.string().optional(),compData:e.object({embeddedScriptComponentData:M})}).passthrough(),k=e.object({base:e.object({id:e.string().optional(),name:e.string()}),installation:e.object({base:e.object({autoAdd:e.boolean().optional(),essential:e.boolean().optional(),maxInstances:e.number().optional()}).optional(),widget:e.object({default_preset:e.object({desktop_preset_id:e.string().optional(),tablet_preset_id:e.string().optional(),mobile_preset_id:e.string().optional()}).optional(),region:e.enum([d.BODY,d.FOOTER,d.HEADER])}).optional()}).optional(),widgetData:e.object({tagName:e.string(),scriptUrl:e.string(),scriptType:e.enum([b.NONE,b.COMMON_JS,b.ES_MODULE])}),behaviors:e.object({settings:e.object({settingsUrl:e.string()}).optional(),dashboard:e.object({dashboardPageComponentId:e.string()}).optional()}),size:e.object({width:e.object({allowStretch:e.boolean().optional(),defaultWidth:e.number().optional(),stretchByDefault:e.boolean().optional()}),height:e.object({defaultHeight:e.number(),heightMode:e.enum([h.AUTO,h.FIXED,h.UNKNOWN]).optional()})})}),W=e.object({compId:e.string(),compType:e.literal(o.CUSTOM_ELEMENT_WIDGET),compName:e.string().optional(),compData:e.object({customElementWidget:k})}).passthrough(),U=e.object({appId:e.string(),components:e.array(e.discriminatedUnion("compType",[T,j,A,D,v,y,P,F,x,W]))});async function X(n){try{let i=await C.readFile(n,"utf-8");return U.parse(JSON.parse(i))}catch(i){let a=i instanceof Error?i.toString():JSON.stringify(i);throw new Error(`Failed to read App Manifest at ${n}: ${a}`)}}var f=(n,i)=>new URL(n,i).href,E=(n,i)=>{let{scriptAsset:a,iframeUrl:r}=n;return a?{scriptAsset:{...a,url:f(a.url,i)}}:r?{iframeUrl:f(r,i)}:n},B=(n,i)=>({template:n.template.replaceAll("__STATICS_BASE_URL_PLACEHOLDER__",i)}),q=(n,i)=>{let a=JSON.parse(JSON.stringify(n)),r=i.endsWith("/")?i:`${i}/`;return a.components.forEach(S=>{let{compData:t,compType:s}=S;s===o.BACK_OFFICE_PAGE&&(t.backOfficePage={...t.backOfficePage,...E(t.backOfficePage,r)}),s===o.BACK_OFFICE_EXTENSION&&(t.backOfficeExtension.widget={...t.backOfficeExtension.widget,...E(t.backOfficeExtension.widget,r)}),s===o.BACK_OFFICE_EXTENSION_WIDGET&&(t.backOfficeExtensionWidget={...t.backOfficeExtensionWidget,...E(t.backOfficeExtensionWidget,r)}),s===o.BACK_OFFICE_MODAL&&(t.backOfficeModal={...t.backOfficeModal,...E(t.backOfficeModal,r)}),s===o.EMBEDDED_SCRIPT&&(t.embeddedScriptComponentData={...t.embeddedScriptComponentData,...B(t.embeddedScriptComponentData,r)}),s===o.CUSTOM_ELEMENT_WIDGET&&(t.customElementWidget={...t.customElementWidget,widgetData:{...t.customElementWidget.widgetData,scriptUrl:f(t.customElementWidget.widgetData.scriptUrl,r)},behaviors:{...t.customElementWidget.behaviors,...t.customElementWidget.behaviors.settings?{settings:{settingsUrl:f(t.customElementWidget.behaviors.settings.settingsUrl,r)}}:{}}})}),a};export{X as a,q as b};
4
- //# sourceMappingURL=chunk-ZIVYB6TM.js.map
3
+ import{k as o,l as d,m as u,n as p,o as c,p as I,s as b,t as h}from"./chunk-XHPVJXDY.js";import{h as e}from"./chunk-7JJKVPKL.js";import{h as O}from"./chunk-HFDLXX7R.js";O();import C from"node:fs/promises";var l=e.object({errorReporting:e.object({url:e.string().optional(),artifact:e.object({fullArtifactId:e.string().max(255).min(1),version:e.string().max(255).min(1)}).optional()}).optional()}),m=e.object({iframeUrl:e.string().optional(),scriptAsset:e.object({exportedName:e.string(),containerId:e.string(),url:e.string(),scriptType:e.string().optional()}).optional()}),N=e.object({hostingPlatform:e.string(),fullPage:e.boolean().nullish(),hideInSidebar:e.boolean().nullish(),priority:e.number().nullish(),routePath:e.string().nullish(),title:e.string(),pageCategoryId:e.string().uuid().nullish(),activeSidebarPageId:e.string().nullish(),requiredPermission:e.string().nullish(),previousRoutePaths:e.array(e.string()).nullish()}).merge(l).merge(m).passthrough(),_=e.object({width:e.number().nullish(),height:e.number().nullish()}).merge(m).passthrough(),g=e.object({appId:e.string(),componentId:e.string().uuid(),spec:e.string().min(1),variantValue:e.string()}).passthrough().optional(),T=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_PAGE),compData:e.object({backOfficePage:N}),compName:e.string().optional(),experiment:g}).passthrough(),j=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_EXTENSION),compData:e.object({backOfficeExtension:e.object({hostingPlatform:e.string(),extends:e.string(),title:e.string().nullish(),extensionType:e.literal(I.BACK_OFFICE_EXTENSION_WIDGET),requiredPermission:e.string().nullish(),widget:_}).merge(l).passthrough()}),compName:e.string().optional(),experiment:g}).passthrough(),A=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_EXTENSION_WIDGET),compData:e.object({backOfficeExtensionWidget:e.object({hostingPlatform:e.string(),extends:e.string(),title:e.string().nullish(),description:e.string().optional(),requiredPermission:e.string().nullish(),width:e.number().nullish(),height:e.number().nullish()}).merge(m).merge(l).passthrough()}),compName:e.string().optional(),experiment:g}).passthrough(),D=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_EXTENSION_MENU_ITEM),compData:e.object({backOfficeExtensionMenuItem:e.object({id:e.string().uuid(),title:e.string().min(1),subtitle:e.string().max(200).optional(),iconKey:e.string().min(3).max(50).optional(),extends:e.string().uuid(),action:e.object({navigateToPage:e.object({pageId:e.string().uuid(),relativeUrl:e.string().optional()}),openModal:e.object({componentId:e.string().uuid(),componentParams:e.record(e.string().min(1),e.string().min(1)).optional()})}).partial().superRefine((n,i)=>{!n.navigateToPage&&!n.openModal&&i.addIssue({code:e.ZodIssueCode.custom,message:"action must have either navigateToPage or openModal"})}),sentryDSN:e.string().optional(),requiredPermission:e.string().optional()}).merge(m).merge(l).passthrough()}),compName:e.string().optional(),experiment:g}).passthrough(),v=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_MODAL),compData:e.object({backOfficeModal:e.object({hostingPlatform:e.string(),title:e.string().nullish(),requiredPermission:e.string().nullish(),width:e.number().nullish(),height:e.number().nullish()}).merge(m).merge(l).passthrough()}),compName:e.string().optional(),experiment:g}).passthrough(),y=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_SIDEBAR_CATEGORY),compData:e.object({backOfficeSidebarCategory:e.object({hostingPlatform:e.string(),title:e.string(),priority:e.number().nullish()})}),compName:e.string().optional()}).passthrough(),P=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_WIDGET),compName:e.string().optional()}).passthrough(),F=e.object({compId:e.string(),compType:e.literal(o.BACK_OFFICE_EXTENSION_CONTAINER),compName:e.string().optional()}).passthrough(),M=e.object({template:e.string(),name:e.string(),pages:e.enum([u.NONE_PAGES,u.ONCE,u.SPECIFIC_PAGES]),placement:e.enum([p.HEAD,p.BODY_START,p.BODY_END,p.NONE_PLACEMENT]),connectArticleUrl:e.string(),embedCategory:e.enum([c.UNKNOWN,c.FUNCTIONAL,c.ESSENTIAL,c.ANALYTICS,c.ADVERTISING]),loadOnce:e.boolean(),allowedForFreeSite:e.boolean()}),x=e.object({compId:e.string(),compType:e.literal(o.EMBEDDED_SCRIPT),compName:e.string().optional(),compData:e.object({embeddedScriptComponentData:M})}).passthrough(),k=e.object({base:e.object({id:e.string().optional(),name:e.string()}),installation:e.object({base:e.object({autoAdd:e.boolean().optional(),essential:e.boolean().optional(),maxInstances:e.number().optional()}).optional(),widget:e.object({default_preset:e.object({desktop_preset_id:e.string().optional(),tablet_preset_id:e.string().optional(),mobile_preset_id:e.string().optional()}).optional(),region:e.enum([d.BODY,d.FOOTER,d.HEADER])}).optional()}).optional(),widgetData:e.object({tagName:e.string(),scriptUrl:e.string(),scriptType:e.enum([b.NONE,b.COMMON_JS,b.ES_MODULE])}),behaviors:e.object({settings:e.object({settingsUrl:e.string()}).optional(),dashboard:e.object({dashboardPageComponentId:e.string()}).optional()}),size:e.object({width:e.object({allowStretch:e.boolean().optional(),defaultWidth:e.number().optional(),stretchByDefault:e.boolean().optional()}),height:e.object({defaultHeight:e.number(),heightMode:e.enum([h.AUTO,h.FIXED,h.UNKNOWN]).optional()})})}),W=e.object({compId:e.string(),compType:e.literal(o.CUSTOM_ELEMENT_WIDGET),compName:e.string().optional(),compData:e.object({customElementWidget:k})}).passthrough(),U=e.object({appId:e.string(),components:e.array(e.discriminatedUnion("compType",[T,j,A,D,v,y,P,F,x,W]))});async function X(n){try{let i=await C.readFile(n,"utf-8");return U.parse(JSON.parse(i))}catch(i){let a=i instanceof Error?i.toString():JSON.stringify(i);throw new Error(`Failed to read App Manifest at ${n}: ${a}`)}}var f=(n,i)=>new URL(n,i).href,E=(n,i)=>{let{scriptAsset:a,iframeUrl:r}=n;return a?{scriptAsset:{...a,url:f(a.url,i)}}:r?{iframeUrl:f(r,i)}:n},B=(n,i)=>({template:n.template.replaceAll("__STATICS_BASE_URL_PLACEHOLDER__",i)}),q=(n,i)=>{let a=JSON.parse(JSON.stringify(n)),r=i.endsWith("/")?i:`${i}/`;return a.components.forEach(S=>{let{compData:t,compType:s}=S;s===o.BACK_OFFICE_PAGE&&(t.backOfficePage={...t.backOfficePage,...E(t.backOfficePage,r)}),s===o.BACK_OFFICE_EXTENSION&&(t.backOfficeExtension.widget={...t.backOfficeExtension.widget,...E(t.backOfficeExtension.widget,r)}),s===o.BACK_OFFICE_EXTENSION_WIDGET&&(t.backOfficeExtensionWidget={...t.backOfficeExtensionWidget,...E(t.backOfficeExtensionWidget,r)}),s===o.BACK_OFFICE_MODAL&&(t.backOfficeModal={...t.backOfficeModal,...E(t.backOfficeModal,r)}),s===o.EMBEDDED_SCRIPT&&(t.embeddedScriptComponentData={...t.embeddedScriptComponentData,...B(t.embeddedScriptComponentData,r)}),s===o.CUSTOM_ELEMENT_WIDGET&&(t.customElementWidget={...t.customElementWidget,widgetData:{...t.customElementWidget.widgetData,scriptUrl:f(t.customElementWidget.widgetData.scriptUrl,r)},behaviors:{...t.customElementWidget.behaviors,...t.customElementWidget.behaviors.settings?{settings:{settingsUrl:f(t.customElementWidget.behaviors.settings.settingsUrl,r)}}:{}}})}),a};export{X as a,q as b};
4
+ //# sourceMappingURL=chunk-O4DV7EH5.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{a as C}from"./chunk-RYS7G2PY.js";import{a as g,b as R,d as l,g as O,r as W}from"./chunk-LW6PZKOJ.js";import{A as V,e as U,g as j,q as z,s as H}from"./chunk-4NIGEF2O.js";import{G as D,J as $,d as E,e as M,f as J,pa as k}from"./chunk-YWJFUO7I.js";import{a as q,c as u,d as v,h as m,i as x}from"./chunk-62RRZRN6.js";import{e as T,h as a}from"./chunk-HFDLXX7R.js";a();a();var ae={},oe={};var ie={},pe={},ne={},me={};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 R(Object.assign(t,{domainToMappings:e}))}function Q(t){var e=l(ae,{}),r=e.toJSON,s=e.fromJSON,i=l(oe,{}).fromJSON;function o(d){var f=d.host,c=r(t),h={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.CreateAppRelease",url:I({protoPath:"/apps/create/{appId}",data:c,host:f}),data:c,transformResponse:i};return h}return o.fromReq=s,o.__isAmbassador=!0,o}function G(t){var e=l(ne,{}),r=e.toJSON,s=e.fromJSON,i=l(me,{}).fromJSON;function o(d){var f=d.host,c=r(t),h={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"PUT",methodFqn:"com.wix.ctp.AppsReleaseManagerService.UpdateAppRelease",url:I({protoPath:"/apps/tags/{tag}",data:c,host:f}),data:c,transformResponse:i};return h}return o.fromReq=s,o.__isAmbassador=!0,o}function B(t){var e=l(ie,{}),r=e.toJSON,s=e.fromJSON,i=l(pe,{}).fromJSON;function o(d){var f=d.host,c=r(t),h={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.PromoteAppReleaseToDevCenter",url:I({protoPath:"/apps/promote/{appId}/{tag}",data:c,host:f}),data:c,transformResponse:i};return h}return o.fromReq=s,o.__isAmbassador=!0,o}var P=T(q(),1);a();var K=m.object({newVersion:m.string()}),X=m.object({tag:m.string()});var{AppPermissionDenied:Y}=v,Z=(0,P.variant)({TagUpdated:{},TagNotFound:(0,P.fields)()}),S=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:s}=await g(()=>this.httpClient.request(Q({appId:e.appId,componentConfigs:e.components,projectId:r})),this.retryOptions);return X.parse(s).tag}catch(s){throw O(s)&&s.response?.status===403?new u({code:Y({appId:e.appId}),cause:s}):new u({code:v.FailedToCreateAppRelease(),cause:s})}};updateAppRelease=async(e,r)=>{try{return await g(()=>this.httpClient.request(G({appId:e.appId,componentConfigs:e.components,tag:r})),this.retryOptions),Z.TagUpdated()}catch(s){if(O(s)){if(s.response?.status===404)return Z.TagNotFound({cause:s});if(s.response?.status===403)throw new u({code:Y({appId:e.appId}),cause:s})}throw new u({code:v.FailedToUpdateAppRelease(),cause:s})}};promoteToDevCenter=async(e,r,s)=>{let{data:i}=await g(()=>this.httpClient.request(B({appId:e,tag:r,versionType:s})),this.retryOptions);return K.parse(i)}};a();import{useMemo as ce}from"react";function de(){let t=C({type:"backoffice"});return ce(()=>new S(t),[t])}a();a();import le,{useContext as ue,createContext as fe}from"react";var ee=fe(null),Be=({children:t,armTag:e})=>le.createElement(ee.Provider,{value:{armTag:e}},t),te=()=>{let t=ue(ee);if(t===null)throw new Error("useArmTag() cannot be used without an <ArmTagProvider>");return t};a();a();var he={},ge={sites:"_site"},ve={createdDate:"google.protobuf.Timestamp",updatedDate:"google.protobuf.Timestamp",trashedDate:"google.protobuf.Timestamp"};function Se(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 R(Object.assign(t,{domainToMappings:e}))}function N(t){var e=l(he,{}),r=e.toJSON,s=e.fromJSON,i=l(ge,{_site:ve}).fromJSON;function o(d){var f=d.host,c=r(t),h={entityFqdn:"wix.site_list.v2.site",method:"POST",methodFqn:"com.wixpress.sitelist.api.SiteListServiceV2.QuerySites",url:Se({protoPath:"/v2/sites/query",data:c,host:f}),data:c,transformResponse:i};return h}return o.fromReq=s,o.__isAmbassador=!0,o}a();var _e=m.object({id:m.string(),displayName:m.string(),viewUrl:m.union([m.string().url(),m.literal("")]).optional()}),F=m.object({sites:m.array(_e)});var _=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 g(()=>this.httpClient.request(N(e)),this.retryOptions);return F.parse(r).sites}catch(r){throw new u({code:v.FailedToQuerySites(),cause:r,info:{...e}})}};getSite=async e=>{try{let{data:r}=await g(()=>this.httpClient.request(N({query:{filter:{id:{$in:[e]}}}})),this.retryOptions),{sites:s}=F.parse(r);return s.at(0)??null}catch(r){throw new u({code:v.FailedToGetSite(),cause:r,info:{id:e}})}}};a();import{useMemo as ye}from"react";function we(){let t=C({type:"backoffice"});return ye(()=>new _(t),[t])}a();a();async function L(t,e){let r=D(t);if(!await J(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 xt(t,e){let s={...await L(t)??{},...e};await E(D(t),s)}a();import{createContext as Re}from"react";var re=Re(null);a();var y=T(q(),1),A=(0,y.variant)({NotConfigured:{},NotFound:(0,y.fields)(),Resolved:(0,y.fields)()});a();async function Nt({projectFolder:t,siteListClient:{getSite:e},siteId:r,writeDebugLog:s}){let i=r||(await L(t,s))?.siteId;if(!i)return A.NotConfigured();let o=await e(i);return o?A.Resolved({site:o}):A.NotFound({id:i})}a();import{useContext as xe}from"react";function se(){let t=xe(re);if(t===null)throw new Error("useSiteId() cannot be used without an <SiteIdProvider>");return t}a();import w from"react";var b=T(q(),1);function Qt(){let{model:t}=k(),{site:e}=se(),{armTag:r}=te();return{appId:t.config.appId,site:e,tag:r}}function Gt({envConfig:t,platformType:e,siteOverrideId:r}){let{site:s,tag:i}=t,o=(0,b.match)(e,{Dashboard:()=>new URL(`dashboard/${s.id}`,"https://manage.wix.com/"),Editor:()=>new URL(`https://wix.com/editor/${s.id}`),Site:()=>{let d=new URL(s.viewUrl);return r&&d.searchParams.append("site-override",r),d}});return o.searchParams.append("apps-override",i),o.toString()}function Bt({envConfig:t,extension:e}){let{appId:r,site:s,tag:i}=t,o=(0,b.matcher)(e).with({DashboardPage:()=>new URL(`dashboard/${s.id}/app/${r}${e.route}`,"https://manage.wix.com/")}).when(["DashboardMenuPlugin","DashboardPlugin","DashboardModal"],()=>new URL(`dashboard/${s.id}${e.route}`,"https://manage.wix.com/")).complete();return o.searchParams.append("apps-override",i),o.toString()}var Kt=async({url:t,title:e},r)=>{try{await W(t)}catch{r({type:"error",prefix:"app",msg:w.createElement(z,{type:"error"},w.createElement(V,{i18nKey:"general.open_page_error",components:[w.createElement(j,{bold:!0})],values:{title:e}}),w.createElement(U,null),w.createElement(H,{url:t}))})}};export{_ as a,we as b,L as c,xt as d,re as e,A as f,Nt as g,S as h,de as i,Be as j,se as k,Qt as l,Gt as m,Bt as n,Kt as o};
4
- //# sourceMappingURL=chunk-QW5H4VGJ.js.map
3
+ import{a as C}from"./chunk-BKNV2B7T.js";import{a as g,b as R,d as l,g as O,r as W}from"./chunk-6R3ZFQVO.js";import{A as V,e as U,g as j,q as z,s as H}from"./chunk-6OPLPT2G.js";import{G as D,J as $,d as E,e as M,f as J,pa as k}from"./chunk-XHPVJXDY.js";import{a as q,c as u,d as v,h as m,i as x}from"./chunk-7JJKVPKL.js";import{e as T,h as a}from"./chunk-HFDLXX7R.js";a();a();var ae={},oe={};var ie={},pe={},ne={},me={};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 R(Object.assign(t,{domainToMappings:e}))}function Q(t){var e=l(ae,{}),r=e.toJSON,s=e.fromJSON,i=l(oe,{}).fromJSON;function o(d){var f=d.host,c=r(t),h={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.CreateAppRelease",url:I({protoPath:"/apps/create/{appId}",data:c,host:f}),data:c,transformResponse:i};return h}return o.fromReq=s,o.__isAmbassador=!0,o}function G(t){var e=l(ne,{}),r=e.toJSON,s=e.fromJSON,i=l(me,{}).fromJSON;function o(d){var f=d.host,c=r(t),h={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"PUT",methodFqn:"com.wix.ctp.AppsReleaseManagerService.UpdateAppRelease",url:I({protoPath:"/apps/tags/{tag}",data:c,host:f}),data:c,transformResponse:i};return h}return o.fromReq=s,o.__isAmbassador=!0,o}function B(t){var e=l(ie,{}),r=e.toJSON,s=e.fromJSON,i=l(pe,{}).fromJSON;function o(d){var f=d.host,c=r(t),h={entityFqdn:"wix.ctp.gradual_rollout.v1.app_config",method:"POST",methodFqn:"com.wix.ctp.AppsReleaseManagerService.PromoteAppReleaseToDevCenter",url:I({protoPath:"/apps/promote/{appId}/{tag}",data:c,host:f}),data:c,transformResponse:i};return h}return o.fromReq=s,o.__isAmbassador=!0,o}var P=T(q(),1);a();var K=m.object({newVersion:m.string()}),X=m.object({tag:m.string()});var{AppPermissionDenied:Y}=v,Z=(0,P.variant)({TagUpdated:{},TagNotFound:(0,P.fields)()}),S=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:s}=await g(()=>this.httpClient.request(Q({appId:e.appId,componentConfigs:e.components,projectId:r})),this.retryOptions);return X.parse(s).tag}catch(s){throw O(s)&&s.response?.status===403?new u({code:Y({appId:e.appId}),cause:s}):new u({code:v.FailedToCreateAppRelease(),cause:s})}};updateAppRelease=async(e,r)=>{try{return await g(()=>this.httpClient.request(G({appId:e.appId,componentConfigs:e.components,tag:r})),this.retryOptions),Z.TagUpdated()}catch(s){if(O(s)){if(s.response?.status===404)return Z.TagNotFound({cause:s});if(s.response?.status===403)throw new u({code:Y({appId:e.appId}),cause:s})}throw new u({code:v.FailedToUpdateAppRelease(),cause:s})}};promoteToDevCenter=async(e,r,s)=>{let{data:i}=await g(()=>this.httpClient.request(B({appId:e,tag:r,versionType:s})),this.retryOptions);return K.parse(i)}};a();import{useMemo as ce}from"react";function de(){let t=C({type:"backoffice"});return ce(()=>new S(t),[t])}a();a();import le,{useContext as ue,createContext as fe}from"react";var ee=fe(null),Be=({children:t,armTag:e})=>le.createElement(ee.Provider,{value:{armTag:e}},t),te=()=>{let t=ue(ee);if(t===null)throw new Error("useArmTag() cannot be used without an <ArmTagProvider>");return t};a();a();var he={},ge={sites:"_site"},ve={createdDate:"google.protobuf.Timestamp",updatedDate:"google.protobuf.Timestamp",trashedDate:"google.protobuf.Timestamp"};function Se(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 R(Object.assign(t,{domainToMappings:e}))}function N(t){var e=l(he,{}),r=e.toJSON,s=e.fromJSON,i=l(ge,{_site:ve}).fromJSON;function o(d){var f=d.host,c=r(t),h={entityFqdn:"wix.site_list.v2.site",method:"POST",methodFqn:"com.wixpress.sitelist.api.SiteListServiceV2.QuerySites",url:Se({protoPath:"/v2/sites/query",data:c,host:f}),data:c,transformResponse:i};return h}return o.fromReq=s,o.__isAmbassador=!0,o}a();var _e=m.object({id:m.string(),displayName:m.string(),viewUrl:m.union([m.string().url(),m.literal("")]).optional()}),F=m.object({sites:m.array(_e)});var _=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 g(()=>this.httpClient.request(N(e)),this.retryOptions);return F.parse(r).sites}catch(r){throw new u({code:v.FailedToQuerySites(),cause:r,info:{...e}})}};getSite=async e=>{try{let{data:r}=await g(()=>this.httpClient.request(N({query:{filter:{id:{$in:[e]}}}})),this.retryOptions),{sites:s}=F.parse(r);return s.at(0)??null}catch(r){throw new u({code:v.FailedToGetSite(),cause:r,info:{id:e}})}}};a();import{useMemo as ye}from"react";function we(){let t=C({type:"backoffice"});return ye(()=>new _(t),[t])}a();a();async function L(t,e){let r=D(t);if(!await J(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 xt(t,e){let s={...await L(t)??{},...e};await E(D(t),s)}a();import{createContext as Re}from"react";var re=Re(null);a();var y=T(q(),1),A=(0,y.variant)({NotConfigured:{},NotFound:(0,y.fields)(),Resolved:(0,y.fields)()});a();async function Nt({projectFolder:t,siteListClient:{getSite:e},siteId:r,writeDebugLog:s}){let i=r||(await L(t,s))?.siteId;if(!i)return A.NotConfigured();let o=await e(i);return o?A.Resolved({site:o}):A.NotFound({id:i})}a();import{useContext as xe}from"react";function se(){let t=xe(re);if(t===null)throw new Error("useSiteId() cannot be used without an <SiteIdProvider>");return t}a();import w from"react";var b=T(q(),1);function Qt(){let{model:t}=k(),{site:e}=se(),{armTag:r}=te();return{appId:t.config.appId,site:e,tag:r}}function Gt({envConfig:t,platformType:e,siteOverrideId:r}){let{site:s,tag:i}=t,o=(0,b.match)(e,{Dashboard:()=>new URL(`dashboard/${s.id}`,"https://manage.wix.com/"),Editor:()=>new URL(`https://wix.com/editor/${s.id}`),Site:()=>{let d=new URL(s.viewUrl);return r&&d.searchParams.append("site-override",r),d}});return o.searchParams.append("apps-override",i),o.toString()}function Bt({envConfig:t,extension:e}){let{appId:r,site:s,tag:i}=t,o=(0,b.matcher)(e).with({DashboardPage:()=>new URL(`dashboard/${s.id}/app/${r}${e.route}`,"https://manage.wix.com/")}).when(["DashboardMenuPlugin","DashboardPlugin","DashboardModal"],()=>new URL(`dashboard/${s.id}${e.route}`,"https://manage.wix.com/")).complete();return o.searchParams.append("apps-override",i),o.toString()}var Kt=async({url:t,title:e},r)=>{try{await W(t)}catch{r({type:"error",prefix:"app",msg:w.createElement(z,{type:"error"},w.createElement(V,{i18nKey:"general.open_page_error",components:[w.createElement(j,{bold:!0})],values:{title:e}}),w.createElement(U,null),w.createElement(H,{url:t}))})}};export{_ as a,we as b,L as c,xt as d,re as e,A as f,Nt as g,S as h,de as i,Be as j,se as k,Qt as l,Gt as m,Bt as n,Kt as o};
4
+ //# sourceMappingURL=chunk-PE3RXVKE.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{e as m}from"./chunk-LW6PZKOJ.js";import{b as c}from"./chunk-62RRZRN6.js";import{e as i,h as r}from"./chunk-HFDLXX7R.js";r();var u=i(c(),1);import{dirname as b}from"node:path";import{appendFileSync as x,mkdirSync as L}from"node:fs";import D,{createContext as w,useContext as y,useCallback as C}from"react";r();var p=i(m(),1),f=i(c(),1);function s(e){if(p.HttpClient.isHttpError(e))return e;let o=e instanceof Error?f.default.cause(e):null;return o?s(o):null}r();function l(e){return{request:{baseURL:e.config?.baseURL,url:e.config?.url,method:e.config?.method,headers:e.config?.headers,data:e.config?.data},response:{code:e.code,message:e.message,status:e.response?.status,headers:e.response?.headers,data:e.response?.data}}}function H(e,o){try{let t=`----- CLI crash report at ${new Date().toISOString()}
3
+ import{e as m}from"./chunk-6R3ZFQVO.js";import{b as c}from"./chunk-7JJKVPKL.js";import{e as i,h as r}from"./chunk-HFDLXX7R.js";r();var u=i(c(),1);import{dirname as b}from"node:path";import{appendFileSync as x,mkdirSync as L}from"node:fs";import D,{createContext as w,useContext as y,useCallback as C}from"react";r();var p=i(m(),1),f=i(c(),1);function s(e){if(p.HttpClient.isHttpError(e))return e;let o=e instanceof Error?f.default.cause(e):null;return o?s(o):null}r();function l(e){return{request:{baseURL:e.config?.baseURL,url:e.config?.url,method:e.config?.method,headers:e.config?.headers,data:e.config?.data},response:{code:e.code,message:e.message,status:e.response?.status,headers:e.response?.headers,data:e.response?.data}}}function H(e,o){try{let t=`----- CLI crash report at ${new Date().toISOString()}
4
4
  `;if(o instanceof Error){t+=`Error Trace
5
5
  `,t+=`${u.default.fullStack(o)}
6
6
  `,t+=`Error Info
@@ -8,4 +8,4 @@ import{e as m}from"./chunk-LW6PZKOJ.js";import{b as c}from"./chunk-62RRZRN6.js";
8
8
  `;let n=s(o);n&&(t+=`Request Info
9
9
  `,t+=`${JSON.stringify(l(n),null,2)}
10
10
  `)}L(b(e),{recursive:!0}),x(e,t)}catch{}}var d=w(null),P=({filePath:e,children:o})=>{let t=C(n=>H(e,n),[e]);return D.createElement(d.Provider,{value:t},o)},N=()=>{let e=y(d);if(e===null)throw new Error("useDebugLog() cannot be used without an <DebugLogProvider>");return e};export{P as a,N as b};
11
- //# sourceMappingURL=chunk-JIUANWPO.js.map
11
+ //# sourceMappingURL=chunk-PYBYLDJB.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{a as r}from"./chunk-ZIVYB6TM.js";import{I as i,d as p}from"./chunk-YWJFUO7I.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-3EQ4ZYU2.js.map
3
+ import{a as r}from"./chunk-O4DV7EH5.js";import{I as i,d as p}from"./chunk-XHPVJXDY.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-QBIV5U5A.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{F as Zs,O as eo,Q as to,S as yi,T as un,U as mi,a as Xs,b as $s,ba as ro,ca as io,da as ao,fa as ln,ha as Ai,ia as Ci,ja as fn,ka as no,la as so}from"./chunk-YWJFUO7I.js";import{a as Ws,c as Gr,d as jr}from"./chunk-62RRZRN6.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((AA,ho)=>{"use strict";S();var hr=Le("constants"),hh=process.cwd,na=null,ph=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=hh.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=dh;function dh(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(){}),ph==="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((EA,vo)=>{"use strict";S();var go=Le("stream").Stream;vo.exports=gh;function gh(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((SA,mo)=>{"use strict";S();mo.exports=yh;var vh=Object.getPrototypeOf||function(e){return e.__proto__};function yh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:vh(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((BA,En)=>{"use strict";S();var Qe=Le("fs"),mh=po(),Ah=yo(),Ch=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 Eh(){}function xo(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=Eh;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(`
3
+ import{F as Zs,O as eo,Q as to,S as yi,T as un,U as mi,a as Xs,b as $s,ba as ro,ca as io,da as ao,fa as ln,ha as Ai,ia as Ci,ja as fn,ka as no,la as so}from"./chunk-XHPVJXDY.js";import{a as Ws,c as Gr,d as jr}from"./chunk-7JJKVPKL.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((AA,ho)=>{"use strict";S();var hr=Le("constants"),hh=process.cwd,na=null,ph=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=hh.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=dh;function dh(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(){}),ph==="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((EA,vo)=>{"use strict";S();var go=Le("stream").Stream;vo.exports=gh;function gh(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((SA,mo)=>{"use strict";S();mo.exports=yh;var vh=Object.getPrototypeOf||function(e){return e.__proto__};function yh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:vh(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((BA,En)=>{"use strict";S();var Qe=Le("fs"),mh=po(),Ah=yo(),Ch=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 Eh(){}function xo(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=Eh;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(Ch(Qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Qe.__patched&&(En.exports=An(Qe),Qe.__patched=!0);function An(e){mh(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=Ah(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(),xh=["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);xh.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((_A,Io)=>{"use strict";S();var Sh=Le("path");Io.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Sh.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}}});var _o=F((kA,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((RA,No)=>{"use strict";S();var Ih=Et().fromPromise,{makeDir:Bh,makeDirSync:Sn}=_o(),In=Ih(Bh);No.exports={mkdirs:In,mkdirsSync:Sn,mkdirp:In,mkdirpSync:Sn,ensureDir:In,ensureDirSync:Sn}});var dr=F((PA,Lo)=>{"use strict";S();var bh=Et().fromPromise,ko=Dr();function Th(e){return ko.access(e).then(()=>!0).catch(()=>!1)}Lo.exports={pathExists:bh(Th),pathExistsSync:ko.existsSync}});var Bn=F((UA,Ro)=>{"use strict";S();var Jr=dt();function wh(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 _h(e,t,i){let r=Jr.openSync(e,"r+");return Jr.futimesSync(r,t,i),Jr.closeSync(r)}Ro.exports={utimesMillis:wh,utimesMillisSync:_h}});var Pr=F((VA,Qo)=>{"use strict";S();var Wr=Dr(),Ke=Le("path"),Nh=Le("util");function kh(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 Lh(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 Rh(e,t,i,r,a){Nh.callbackify(kh)(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 Dh(e,t,i,r){let{srcStat:a,destStat:n}=Lh(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:Rh,checkPathsSync:Dh,checkParentPaths:Do,checkParentPathsSync:Po,isSrcSubdir:bn,areIdentical:Bi}});var Ho=F((MA,Ko)=>{"use strict";S();var St=dt(),bi=Le("path"),Ph=Mt().mkdirs,Qh=dr().pathExists,Uh=Bn().utimesMillis,Ti=Pr();function Oh(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);Qh(n,(s,o)=>{if(s)return a(s);if(o)return fa(e,t,i,r,a);Ph(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 Vh(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()?jh(o,e,t,i,r,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?Fh(o,e,t,i,r,a):o.isSymbolicLink()?Jh(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 Fh(e,t,i,r,a,n){return t?Mh(e,i,r,a,n):Fo(e,i,r,a,n)}function Mh(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?qh(e.mode,t,i,a):ca(i,e.mode,a))}function qh(e,t,i,r){return Kh(e)?Hh(i,e,a=>a?r(a):Oo(e,t,i,r)):Oo(e,t,i,r)}function Kh(e){return(e&128)===0}function Hh(e,t,i){return ca(e,t|128,i)}function Oo(e,t,i,r){Gh(t,i,a=>a?r(a):ca(i,e,r))}function ca(e,t,i){return St.chmod(e,t,i)}function Gh(e,t,i){St.stat(e,(r,a)=>r?i(r):Uh(t,a.atime,a.mtime,i))}function jh(e,t,i,r,a,n){return t?Mo(i,r,a,n):Yh(e.mode,i,r,a,n)}function Yh(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?zh(e,n,t,i,r,a):a()}function zh(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;Vh(f,s,o,a,c=>c?n(c):qo(e,i,r,a,n))})}function Jh(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}'.`)):Wh(s,i,a)));else return St.symlink(s,i,a)})}function Wh(e,t,i){St.unlink(t,r=>r?i(r):St.symlink(e,t,i))}Ko.exports=Oh});var Jo=F((KA,zo)=>{"use strict";S();var pt=dt(),wi=Le("path"),Xh=Mt().mkdirsSync,$h=Bn().utimesMillisSync,_i=Pr();function Zh(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;
@@ -173,4 +173,4 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
173
173
  You can close this browser tab and return to the terminal to continue working.
174
174
  </body>
175
175
  </html>`}S();var th="__WIX_ORIGIN_PLACEHOLDER__";function rh(){let e=null;return{name:"wix:auto-origin",apply:"serve",config:()=>({server:{origin:th}}),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(th,e)}}}S();import{dirname as iA,isAbsolute as aA,join as nA}from"node:path";import{URL as ih}from"node:url";function sA(e,t,i){let r=new ih(t,i).href;if(t.startsWith("/@vite"))return r;if(!aA(t)){let a=nA(iA(e),t);r=new ih(a,i).href}return r}function ah(){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=sA(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 Nx(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,nh.isType)(eo.EmbeddedScript)).map(u=>[u.id,oA(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:[kf(),...i?[eh()]:[],_f({initialModel:e,...t}),mf(),Cf(),vf({react:"React","react-dom":"ReactDOM"}),If({initialModel:e,...t}),rh(),ah()],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,Nx as b};
176
- //# sourceMappingURL=chunk-7TOOBLT6.js.map
176
+ //# sourceMappingURL=chunk-RCDIKBVN.js.map