@wix/cli-app 1.1.9 → 1.1.11
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-HRPRVABQ.js → CreateVersionCommand-RHTO3DA7.js} +2 -2
- package/build/DevCommand-OFSQSCJW.js +4 -0
- package/build/DevCommand-OFSQSCJW.js.map +1 -0
- package/build/GenerateCommand-43LJGGHV.js +99 -0
- package/build/GenerateCommand-43LJGGHV.js.map +1 -0
- package/build/PreviewCommand-CEE6NMDS.js +4 -0
- package/build/{ServeCommand-2XBFLJAW.js → ServeCommand-R5SAKRKU.js} +2 -2
- package/build/{build-TCFCF3FL.js → build-IS5AWEWP.js} +2 -2
- package/build/{chunk-DGISEOUY.js → chunk-2BVF7R6U.js} +2 -2
- package/build/chunk-2MVU7B3I.js +27 -0
- package/build/chunk-2MVU7B3I.js.map +1 -0
- package/build/chunk-47TDKY2B.js +4 -0
- package/build/{chunk-JBYJ7JWH.js → chunk-5IXE5FNR.js} +2 -2
- package/build/chunk-7BWMEPZ3.js +4 -0
- package/build/chunk-7BWMEPZ3.js.map +1 -0
- package/build/{chunk-KN6FMDRW.js → chunk-7WZDL63V.js} +2 -2
- package/build/chunk-BPHZBR73.js +4 -0
- package/build/chunk-BPHZBR73.js.map +1 -0
- package/build/{chunk-X2ODJQS5.js → chunk-EQI25LY6.js} +9 -11
- package/build/{chunk-X2ODJQS5.js.map → chunk-EQI25LY6.js.map} +1 -1
- package/build/chunk-GNLLOWHY.js +75 -0
- package/build/chunk-GNLLOWHY.js.map +1 -0
- package/build/chunk-HNH75HDQ.js +4 -0
- package/build/chunk-HNH75HDQ.js.map +1 -0
- package/build/{chunk-AQMCJTIA.js → chunk-JCBTQBIR.js} +2 -2
- package/build/{chunk-UBUOOVV3.js → chunk-JWWXSIBF.js} +2 -2
- package/build/chunk-JWWXSIBF.js.map +1 -0
- package/build/{chunk-HUG7YXDC.js → chunk-LW6L3WY3.js} +3 -3
- package/build/chunk-LW6L3WY3.js.map +1 -0
- package/build/chunk-QWDVUZEW.js +4 -0
- package/build/chunk-QWDVUZEW.js.map +1 -0
- package/build/{chunk-MZF5I7OU.js → chunk-RJ43KJ3G.js} +2 -2
- package/build/{chunk-P5QI4AKT.js → chunk-UBWBH64V.js} +2 -2
- package/build/chunk-WV4KTPXI.js +4 -0
- package/build/chunk-WV4KTPXI.js.map +1 -0
- package/build/chunk-YHWDL3DF.js +4 -0
- package/build/chunk-YHWDL3DF.js.map +1 -0
- package/build/{chunk-S4GPIPJ3.js → chunk-ZHEN7NIQ.js} +2 -2
- package/build/index.js +1 -1
- package/build/{preview-M6ZJKLI4.js → preview-6XHIXIDA.js} +2 -2
- package/build/render-command-MG2TJRUD.js +4 -0
- package/build/{render-command-TZ27VUBD.js.map → render-command-MG2TJRUD.js.map} +1 -1
- package/package.json +4 -3
- package/templates/dashboard-menu-plugin/menu.json.ejs +4 -0
- package/templates/dashboard-modal/modal.json.ejs +4 -0
- package/templates/dashboard-modal/modal.tsx.ejs +39 -0
- package/templates/dashboard-page-plugin/plugin.json.ejs +4 -0
- package/templates/dashboard-page-plugin/plugin.tsx.ejs +44 -0
- package/build/DevCommand-VXSOOPGI.js +0 -4
- package/build/DevCommand-VXSOOPGI.js.map +0 -1
- package/build/GenerateCommand-LES5RWP7.js +0 -99
- package/build/GenerateCommand-LES5RWP7.js.map +0 -1
- package/build/PreviewCommand-7WGLANH2.js +0 -4
- package/build/chunk-4PMM4VH2.js +0 -4
- package/build/chunk-4PMM4VH2.js.map +0 -1
- package/build/chunk-AUZPEJRN.js +0 -4
- package/build/chunk-AUZPEJRN.js.map +0 -1
- package/build/chunk-HI6L2JY4.js +0 -4
- package/build/chunk-HI6L2JY4.js.map +0 -1
- package/build/chunk-HUG7YXDC.js.map +0 -1
- package/build/chunk-KQHAMVTM.js +0 -27
- package/build/chunk-KQHAMVTM.js.map +0 -1
- package/build/chunk-LULXOULI.js +0 -4
- package/build/chunk-LULXOULI.js.map +0 -1
- package/build/chunk-NR3APHWL.js +0 -4
- package/build/chunk-OU5SEGSI.js +0 -4
- package/build/chunk-OU5SEGSI.js.map +0 -1
- package/build/chunk-RDG3FN7Q.js +0 -4
- package/build/chunk-RDG3FN7Q.js.map +0 -1
- package/build/chunk-UBUOOVV3.js.map +0 -1
- package/build/chunk-YSG4RLTD.js +0 -75
- package/build/chunk-YSG4RLTD.js.map +0 -1
- package/build/render-command-TZ27VUBD.js +0 -4
- /package/build/{CreateVersionCommand-HRPRVABQ.js.map → CreateVersionCommand-RHTO3DA7.js.map} +0 -0
- /package/build/{PreviewCommand-7WGLANH2.js.map → PreviewCommand-CEE6NMDS.js.map} +0 -0
- /package/build/{ServeCommand-2XBFLJAW.js.map → ServeCommand-R5SAKRKU.js.map} +0 -0
- /package/build/{build-TCFCF3FL.js.map → build-IS5AWEWP.js.map} +0 -0
- /package/build/{chunk-DGISEOUY.js.map → chunk-2BVF7R6U.js.map} +0 -0
- /package/build/{chunk-NR3APHWL.js.map → chunk-47TDKY2B.js.map} +0 -0
- /package/build/{chunk-JBYJ7JWH.js.map → chunk-5IXE5FNR.js.map} +0 -0
- /package/build/{chunk-KN6FMDRW.js.map → chunk-7WZDL63V.js.map} +0 -0
- /package/build/{chunk-AQMCJTIA.js.map → chunk-JCBTQBIR.js.map} +0 -0
- /package/build/{chunk-MZF5I7OU.js.map → chunk-RJ43KJ3G.js.map} +0 -0
- /package/build/{chunk-P5QI4AKT.js.map → chunk-UBWBH64V.js.map} +0 -0
- /package/build/{chunk-S4GPIPJ3.js.map → chunk-ZHEN7NIQ.js.map} +0 -0
- /package/build/{preview-M6ZJKLI4.js.map → preview-6XHIXIDA.js.map} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{a as n}from"./chunk-LW6L3WY3.js";import{C as t}from"./chunk-5IXE5FNR.js";import{h as r}from"./chunk-HFDLXX7R.js";r();function s(){let e=t(n);return e.t.bind(e)}export{s as a};
|
|
4
|
+
//# sourceMappingURL=chunk-47TDKY2B.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 ar,c as Hd,d as Gd,i as jd,q as i1,r as o1}from"./chunk-YSG4RLTD.js";import{a as Ei,b as r1,c as Ie,d as n1,e as Se,h as D}from"./chunk-HFDLXX7R.js";var zd=Ie((i_,Wd)=>{"use strict";D();var s1=o1(),a1=i1(),l1="Expected a function";function f1(e,t,i){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(l1);return a1(i)&&(o="leading"in i?!!i.leading:o,s="trailing"in i?!!i.trailing:s),s1(e,t,{leading:o,maxWait:t,trailing:s})}Wd.exports=f1});var Yd=Ie((l_,c1)=>{c1.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]}},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Kd=Ie(Ut=>{"use strict";D();var Qd=Yd(),nt=process.env;Object.defineProperty(Ut,"_vendors",{value:Qd.map(function(e){return e.constant})});Ut.name=null;Ut.isPR=null;Qd.forEach(function(e){let i=(Array.isArray(e.env)?e.env:[e.env]).every(function(o){return Xd(o)});if(Ut[e.constant]=i,!!i)switch(Ut.name=e.name,typeof e.pr){case"string":Ut.isPR=!!nt[e.pr];break;case"object":"env"in e.pr?Ut.isPR=e.pr.env in nt&&nt[e.pr.env]!==e.pr.ne:"any"in e.pr?Ut.isPR=e.pr.any.some(function(o){return!!nt[o]}):Ut.isPR=Xd(e.pr);break;default:Ut.isPR=null}});Ut.isCI=!!(nt.CI!=="false"&&(nt.BUILD_ID||nt.BUILD_NUMBER||nt.CI||nt.CI_APP_ID||nt.CI_BUILD_ID||nt.CI_BUILD_NUMBER||nt.CI_NAME||nt.CONTINUOUS_INTEGRATION||nt.RUN_ID||Ut.name));function Xd(e){return typeof e=="string"?!!nt[e]:"env"in e?nt[e.env]&&nt[e.env].includes(e.includes):"any"in e?e.any.some(function(t){return!!nt[t]}):Object.keys(e).every(function(t){return nt[t]===e[t]})}});var qd=Ie((p_,$d)=>{"use strict";D();$d.exports=Kd().isCI});var Jd=Ie((D_,cs)=>{"use strict";D();cs.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&cs.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&cs.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var rf=Ie((E_,Ci)=>{"use strict";D();var He=global.process,wn=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};wn(He)?(Zd=Ei("assert"),yi=Jd(),eh=/^win/i.test(He.platform),Ro=Ei("events"),typeof Ro!="function"&&(Ro=Ro.EventEmitter),He.__signal_exit_emitter__?ct=He.__signal_exit_emitter__:(ct=He.__signal_exit_emitter__=new Ro,ct.count=0,ct.emitted={}),ct.infinite||(ct.setMaxListeners(1/0),ct.infinite=!0),Ci.exports=function(e,t){if(!wn(global.process))return function(){};Zd.equal(typeof e,"function","a callback must be provided for exit handler"),vi===!1&&ef();var i="exit";t&&t.alwaysLast&&(i="afterexit");var o=function(){ct.removeListener(i,e),ct.listeners("exit").length===0&&ct.listeners("afterexit").length===0&&ps()};return ct.on(i,e),o},ps=function(){!vi||!wn(global.process)||(vi=!1,yi.forEach(function(t){try{He.removeListener(t,ds[t])}catch{}}),He.emit=hs,He.reallyExit=tf,ct.count-=1)},Ci.exports.unload=ps,Ln=function(t,i,o){ct.emitted[t]||(ct.emitted[t]=!0,ct.emit(t,i,o))},ds={},yi.forEach(function(e){ds[e]=function(){if(wn(global.process)){var i=He.listeners(e);i.length===ct.count&&(ps(),Ln("exit",null,e),Ln("afterexit",null,e),eh&&e==="SIGHUP"&&(e="SIGINT"),He.kill(He.pid,e))}}}),Ci.exports.signals=function(){return yi},vi=!1,ef=function(){vi||!wn(global.process)||(vi=!0,ct.count+=1,yi=yi.filter(function(t){try{return He.on(t,ds[t]),!0}catch{return!1}}),He.emit=rh,He.reallyExit=th)},Ci.exports.load=ef,tf=He.reallyExit,th=function(t){wn(global.process)&&(He.exitCode=t||0,Ln("exit",He.exitCode,null),Ln("afterexit",He.exitCode,null),tf.call(He,He.exitCode))},hs=He.emit,rh=function(t,i){if(t==="exit"&&wn(global.process)){i!==void 0&&(He.exitCode=i);var o=hs.apply(this,arguments);return Ln("exit",He.exitCode,null),Ln("afterexit",He.exitCode,null),o}else return hs.apply(this,arguments)}):Ci.exports=function(){return function(){}};var Zd,yi,eh,Ro,ct,ps,Ln,ds,vi,ef,tf,th,hs,rh});var wm=Ie(Oe=>{"use strict";D();function af(e,t){var i=e.length;e.push(t);e:for(;0<i;){var o=i-1>>>1,s=e[o];if(0<ms(s,t))e[o]=t,e[i]=s,i=o;else break e}}function fr(e){return e.length===0?null:e[0]}function gs(e){if(e.length===0)return null;var t=e[0],i=e.pop();if(i!==t){e[0]=i;e:for(var o=0,s=e.length,l=s>>>1;o<l;){var c=2*(o+1)-1,d=e[c],h=c+1,m=e[h];if(0>ms(d,i))h<s&&0>ms(m,d)?(e[o]=m,e[h]=i,o=h):(e[o]=d,e[c]=i,o=c);else if(h<s&&0>ms(m,i))e[o]=m,e[h]=i,o=h;else break e}}return t}function ms(e,t){var i=e.sortIndex-t.sortIndex;return i!==0?i:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(vm=performance,Oe.unstable_now=function(){return vm.now()}):(of=Date,Cm=of.now(),Oe.unstable_now=function(){return of.now()-Cm});var vm,of,Cm,_r=[],ln=[],g1=1,Kt=null,Ct=3,Es=!1,On=!1,Po=!1,_m=typeof setTimeout=="function"?setTimeout:null,Tm=typeof clearTimeout=="function"?clearTimeout:null,Fm=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function lf(e){for(var t=fr(ln);t!==null;){if(t.callback===null)gs(ln);else if(t.startTime<=e)gs(ln),t.sortIndex=t.expirationTime,af(_r,t);else break;t=fr(ln)}}function ff(e){if(Po=!1,lf(e),!On)if(fr(_r)!==null)On=!0,pf(cf);else{var t=fr(ln);t!==null&&df(ff,t.startTime-e)}}function cf(e,t){On=!1,Po&&(Po=!1,Tm(Uo),Uo=-1),Es=!0;var i=Ct;try{for(lf(t),Kt=fr(_r);Kt!==null&&(!(Kt.expirationTime>t)||e&&!Nm());){var o=Kt.callback;if(typeof o=="function"){Kt.callback=null,Ct=Kt.priorityLevel;var s=o(Kt.expirationTime<=t);t=Oe.unstable_now(),typeof s=="function"?Kt.callback=s:Kt===fr(_r)&&gs(_r),lf(t)}else gs(_r);Kt=fr(_r)}if(Kt!==null)var l=!0;else{var c=fr(ln);c!==null&&df(ff,c.startTime-t),l=!1}return l}finally{Kt=null,Ct=i,Es=!1}}var xs=!1,Ds=null,Uo=-1,Am=5,Im=-1;function Nm(){return!(Oe.unstable_now()-Im<Am)}function uf(){if(Ds!==null){var e=Oe.unstable_now();Im=e;var t=!0;try{t=Ds(!0,e)}finally{t?Bo():(xs=!1,Ds=null)}}else xs=!1}var Bo;typeof Fm=="function"?Bo=function(){Fm(uf)}:typeof MessageChannel<"u"?(sf=new MessageChannel,Sm=sf.port2,sf.port1.onmessage=uf,Bo=function(){Sm.postMessage(null)}):Bo=function(){_m(uf,0)};var sf,Sm;function pf(e){Ds=e,xs||(xs=!0,Bo())}function df(e,t){Uo=_m(function(){e(Oe.unstable_now())},t)}Oe.unstable_IdlePriority=5;Oe.unstable_ImmediatePriority=1;Oe.unstable_LowPriority=4;Oe.unstable_NormalPriority=3;Oe.unstable_Profiling=null;Oe.unstable_UserBlockingPriority=2;Oe.unstable_cancelCallback=function(e){e.callback=null};Oe.unstable_continueExecution=function(){On||Es||(On=!0,pf(cf))};Oe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Am=0<e?Math.floor(1e3/e):5};Oe.unstable_getCurrentPriorityLevel=function(){return Ct};Oe.unstable_getFirstCallbackNode=function(){return fr(_r)};Oe.unstable_next=function(e){switch(Ct){case 1:case 2:case 3:var t=3;break;default:t=Ct}var i=Ct;Ct=t;try{return e()}finally{Ct=i}};Oe.unstable_pauseExecution=function(){};Oe.unstable_requestPaint=function(){};Oe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=Ct;Ct=e;try{return t()}finally{Ct=i}};Oe.unstable_scheduleCallback=function(e,t,i){var o=Oe.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?o+i:o):i=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=i+s,e={id:g1++,callback:t,priorityLevel:e,startTime:i,expirationTime:s,sortIndex:-1},i>o?(e.sortIndex=i,af(ln,e),fr(_r)===null&&e===fr(ln)&&(Po?(Tm(Uo),Uo=-1):Po=!0,df(ff,i-o))):(e.sortIndex=s,af(_r,e),On||Es||(On=!0,pf(cf))),e};Oe.unstable_shouldYield=Nm;Oe.unstable_wrapCallback=function(e){var t=Ct;return function(){var i=Ct;Ct=t;try{return e.apply(this,arguments)}finally{Ct=i}}}});var Om=Ie((U_,Lm)=>{"use strict";D();Lm.exports=wm()});var Rm=Ie((M_,bm)=>{"use strict";D();bm.exports=function(t){var i={},o=Ei("react"),s=Om(),l=Object.assign;function c(r){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+r,u=1;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+r+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),Q=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var W=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var $=Symbol.iterator;function X(r){return r===null||typeof r!="object"?null:(r=$&&r[$]||r["@@iterator"],typeof r=="function"?r:null)}function oe(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case g:return"Fragment";case m:return"Portal";case v:return"Profiler";case C:return"StrictMode";case B:return"Suspense";case U:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case R:return(r.displayName||"Context")+".Consumer";case N:return(r._context.displayName||"Context")+".Provider";case k:var n=r.render;return r=r.displayName,r||(r=n.displayName||n.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case z:return n=r.displayName||null,n!==null?n:oe(r.type)||"Memo";case Q:n=r._payload,r=r._init;try{return oe(r(n))}catch{}}return null}function ut(r){var n=r.type;switch(r.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=n.render,r=r.displayName||r.name||"",n.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(n);case 8:return n===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Xe(r){var n=r,u=r;if(r.alternate)for(;n.return;)n=n.return;else{r=n;do n=r,n.flags&4098&&(u=n.return),r=n.return;while(r)}return n.tag===3?u:null}function we(r){if(Xe(r)!==r)throw Error(c(188))}function Ue(r){var n=r.alternate;if(!n){if(n=Xe(r),n===null)throw Error(c(188));return n!==r?null:r}for(var u=r,a=n;;){var f=u.return;if(f===null)break;var p=f.alternate;if(p===null){if(a=f.return,a!==null){u=a;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===u)return we(f),r;if(p===a)return we(f),n;p=p.sibling}throw Error(c(188))}if(u.return!==a.return)u=f,a=p;else{for(var E=!1,F=f.child;F;){if(F===u){E=!0,u=f,a=p;break}if(F===a){E=!0,a=f,u=p;break}F=F.sibling}if(!E){for(F=p.child;F;){if(F===u){E=!0,u=p,a=f;break}if(F===a){E=!0,a=p,u=f;break}F=F.sibling}if(!E)throw Error(c(189))}}if(u.alternate!==a)throw Error(c(190))}if(u.tag!==3)throw Error(c(188));return u.stateNode.current===u?r:n}function Dt(r){return r=Ue(r),r!==null?_t(r):null}function _t(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var n=_t(r);if(n!==null)return n;r=r.sibling}return null}function Rt(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){if(r.tag!==4){var n=Rt(r);if(n!==null)return n}r=r.sibling}return null}var Ae=Array.isArray,Mt=t.getPublicInstance,gn=t.getRootHostContext,Je=t.getChildHostContext,Qe=t.prepareForCommit,Jt=t.resetAfterCommit,Or=t.createInstance,hr=t.appendInitialChild,ce=t.finalizeInitialChildren,Qr=t.prepareUpdate,Kr=t.shouldSetTextContent,eo=t.createTextInstance,to=t.scheduleTimeout,Ze=t.cancelTimeout,br=t.noTimeout,$r=t.isPrimaryRenderer,et=t.supportsMutation,Tt=t.supportsPersistence,gt=t.supportsHydration,Rr=t.getInstanceFromNode,cu=t.preparePortalMount,pu=t.getCurrentEventPriority,Xn=t.detachDeletedInstance,ro=t.supportsMicrotasks,du=t.scheduleMicrotask,qr=t.supportsTestSelectors,hu=t.findFiberRoot,Qn=t.getBoundingRect,Kn=t.getTextContent,Ht=t.isHiddenSubtree,$n=t.matchAccessibilityRole,no=t.setFocusIfFocusable,En=t.setupIntersectionObserver,Jr=t.appendChild,qn=t.appendChildToContainer,mr=t.commitTextUpdate,io=t.commitMount,Zt=t.commitUpdate,oo=t.insertBefore,Dr=t.insertInContainerBefore,uo=t.removeChild,ba=t.removeChildFromContainer,Jn=t.resetTextContent,Ra=t.hideInstance,Ba=t.hideTextInstance,Pa=t.unhideInstance,er=t.unhideTextInstance,Zn=t.clearContainer,mu=t.cloneInstance,At=t.createContainerChildSet,so=t.appendChildToContainerChildSet,ei=t.finalizeContainerChildren,xn=t.replaceContainerChildren,ti=t.cloneHiddenInstance,ri=t.cloneHiddenTextInstance,ao=t.canHydrateInstance,Ua=t.canHydrateTextInstance,ka=t.canHydrateSuspenseInstance,Du=t.isSuspenseInstancePending,lo=t.isSuspenseInstanceFallback,Ma=t.getSuspenseInstanceFallbackErrorDetails,Ha=t.registerSuspenseInstanceRetry,ni=t.getNextHydratableSibling,gu=t.getFirstHydratableChild,ii=t.getFirstHydratableChildWithinContainer,Eu=t.getFirstHydratableChildWithinSuspenseInstance,Ga=t.hydrateInstance,xu=t.hydrateTextInstance,oi=t.hydrateSuspenseInstance,ja=t.getNextHydratableInstanceAfterSuspenseInstance,yu=t.commitHydratedContainer,fo=t.commitHydratedSuspenseInstance,tr=t.clearSuspenseBoundary,vu=t.clearSuspenseBoundaryFromContainer,y=t.shouldDeleteUnhydratedTailInstances,x=t.didNotMatchHydratedContainerTextInstance,A=t.didNotMatchHydratedTextInstance,w;function I(r){if(w===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);w=n&&n[1]||""}return`
|
|
3
|
+
import{a as ar,c as Hd,d as Gd,i as jd,q as i1,r as o1}from"./chunk-GNLLOWHY.js";import{a as Ei,b as r1,c as Ie,d as n1,e as Se,h as D}from"./chunk-HFDLXX7R.js";var zd=Ie((i_,Wd)=>{"use strict";D();var s1=o1(),a1=i1(),l1="Expected a function";function f1(e,t,i){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(l1);return a1(i)&&(o="leading"in i?!!i.leading:o,s="trailing"in i?!!i.trailing:s),s1(e,t,{leading:o,maxWait:t,trailing:s})}Wd.exports=f1});var Yd=Ie((l_,c1)=>{c1.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]}},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Kd=Ie(Ut=>{"use strict";D();var Qd=Yd(),nt=process.env;Object.defineProperty(Ut,"_vendors",{value:Qd.map(function(e){return e.constant})});Ut.name=null;Ut.isPR=null;Qd.forEach(function(e){let i=(Array.isArray(e.env)?e.env:[e.env]).every(function(o){return Xd(o)});if(Ut[e.constant]=i,!!i)switch(Ut.name=e.name,typeof e.pr){case"string":Ut.isPR=!!nt[e.pr];break;case"object":"env"in e.pr?Ut.isPR=e.pr.env in nt&&nt[e.pr.env]!==e.pr.ne:"any"in e.pr?Ut.isPR=e.pr.any.some(function(o){return!!nt[o]}):Ut.isPR=Xd(e.pr);break;default:Ut.isPR=null}});Ut.isCI=!!(nt.CI!=="false"&&(nt.BUILD_ID||nt.BUILD_NUMBER||nt.CI||nt.CI_APP_ID||nt.CI_BUILD_ID||nt.CI_BUILD_NUMBER||nt.CI_NAME||nt.CONTINUOUS_INTEGRATION||nt.RUN_ID||Ut.name));function Xd(e){return typeof e=="string"?!!nt[e]:"env"in e?nt[e.env]&&nt[e.env].includes(e.includes):"any"in e?e.any.some(function(t){return!!nt[t]}):Object.keys(e).every(function(t){return nt[t]===e[t]})}});var qd=Ie((p_,$d)=>{"use strict";D();$d.exports=Kd().isCI});var Jd=Ie((D_,cs)=>{"use strict";D();cs.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&cs.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&cs.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var rf=Ie((E_,Ci)=>{"use strict";D();var He=global.process,wn=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};wn(He)?(Zd=Ei("assert"),yi=Jd(),eh=/^win/i.test(He.platform),Ro=Ei("events"),typeof Ro!="function"&&(Ro=Ro.EventEmitter),He.__signal_exit_emitter__?ct=He.__signal_exit_emitter__:(ct=He.__signal_exit_emitter__=new Ro,ct.count=0,ct.emitted={}),ct.infinite||(ct.setMaxListeners(1/0),ct.infinite=!0),Ci.exports=function(e,t){if(!wn(global.process))return function(){};Zd.equal(typeof e,"function","a callback must be provided for exit handler"),vi===!1&&ef();var i="exit";t&&t.alwaysLast&&(i="afterexit");var o=function(){ct.removeListener(i,e),ct.listeners("exit").length===0&&ct.listeners("afterexit").length===0&&ps()};return ct.on(i,e),o},ps=function(){!vi||!wn(global.process)||(vi=!1,yi.forEach(function(t){try{He.removeListener(t,ds[t])}catch{}}),He.emit=hs,He.reallyExit=tf,ct.count-=1)},Ci.exports.unload=ps,Ln=function(t,i,o){ct.emitted[t]||(ct.emitted[t]=!0,ct.emit(t,i,o))},ds={},yi.forEach(function(e){ds[e]=function(){if(wn(global.process)){var i=He.listeners(e);i.length===ct.count&&(ps(),Ln("exit",null,e),Ln("afterexit",null,e),eh&&e==="SIGHUP"&&(e="SIGINT"),He.kill(He.pid,e))}}}),Ci.exports.signals=function(){return yi},vi=!1,ef=function(){vi||!wn(global.process)||(vi=!0,ct.count+=1,yi=yi.filter(function(t){try{return He.on(t,ds[t]),!0}catch{return!1}}),He.emit=rh,He.reallyExit=th)},Ci.exports.load=ef,tf=He.reallyExit,th=function(t){wn(global.process)&&(He.exitCode=t||0,Ln("exit",He.exitCode,null),Ln("afterexit",He.exitCode,null),tf.call(He,He.exitCode))},hs=He.emit,rh=function(t,i){if(t==="exit"&&wn(global.process)){i!==void 0&&(He.exitCode=i);var o=hs.apply(this,arguments);return Ln("exit",He.exitCode,null),Ln("afterexit",He.exitCode,null),o}else return hs.apply(this,arguments)}):Ci.exports=function(){return function(){}};var Zd,yi,eh,Ro,ct,ps,Ln,ds,vi,ef,tf,th,hs,rh});var wm=Ie(Oe=>{"use strict";D();function af(e,t){var i=e.length;e.push(t);e:for(;0<i;){var o=i-1>>>1,s=e[o];if(0<ms(s,t))e[o]=t,e[i]=s,i=o;else break e}}function fr(e){return e.length===0?null:e[0]}function gs(e){if(e.length===0)return null;var t=e[0],i=e.pop();if(i!==t){e[0]=i;e:for(var o=0,s=e.length,l=s>>>1;o<l;){var c=2*(o+1)-1,d=e[c],h=c+1,m=e[h];if(0>ms(d,i))h<s&&0>ms(m,d)?(e[o]=m,e[h]=i,o=h):(e[o]=d,e[c]=i,o=c);else if(h<s&&0>ms(m,i))e[o]=m,e[h]=i,o=h;else break e}}return t}function ms(e,t){var i=e.sortIndex-t.sortIndex;return i!==0?i:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(vm=performance,Oe.unstable_now=function(){return vm.now()}):(of=Date,Cm=of.now(),Oe.unstable_now=function(){return of.now()-Cm});var vm,of,Cm,_r=[],ln=[],g1=1,Kt=null,Ct=3,Es=!1,On=!1,Po=!1,_m=typeof setTimeout=="function"?setTimeout:null,Tm=typeof clearTimeout=="function"?clearTimeout:null,Fm=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function lf(e){for(var t=fr(ln);t!==null;){if(t.callback===null)gs(ln);else if(t.startTime<=e)gs(ln),t.sortIndex=t.expirationTime,af(_r,t);else break;t=fr(ln)}}function ff(e){if(Po=!1,lf(e),!On)if(fr(_r)!==null)On=!0,pf(cf);else{var t=fr(ln);t!==null&&df(ff,t.startTime-e)}}function cf(e,t){On=!1,Po&&(Po=!1,Tm(Uo),Uo=-1),Es=!0;var i=Ct;try{for(lf(t),Kt=fr(_r);Kt!==null&&(!(Kt.expirationTime>t)||e&&!Nm());){var o=Kt.callback;if(typeof o=="function"){Kt.callback=null,Ct=Kt.priorityLevel;var s=o(Kt.expirationTime<=t);t=Oe.unstable_now(),typeof s=="function"?Kt.callback=s:Kt===fr(_r)&&gs(_r),lf(t)}else gs(_r);Kt=fr(_r)}if(Kt!==null)var l=!0;else{var c=fr(ln);c!==null&&df(ff,c.startTime-t),l=!1}return l}finally{Kt=null,Ct=i,Es=!1}}var xs=!1,Ds=null,Uo=-1,Am=5,Im=-1;function Nm(){return!(Oe.unstable_now()-Im<Am)}function uf(){if(Ds!==null){var e=Oe.unstable_now();Im=e;var t=!0;try{t=Ds(!0,e)}finally{t?Bo():(xs=!1,Ds=null)}}else xs=!1}var Bo;typeof Fm=="function"?Bo=function(){Fm(uf)}:typeof MessageChannel<"u"?(sf=new MessageChannel,Sm=sf.port2,sf.port1.onmessage=uf,Bo=function(){Sm.postMessage(null)}):Bo=function(){_m(uf,0)};var sf,Sm;function pf(e){Ds=e,xs||(xs=!0,Bo())}function df(e,t){Uo=_m(function(){e(Oe.unstable_now())},t)}Oe.unstable_IdlePriority=5;Oe.unstable_ImmediatePriority=1;Oe.unstable_LowPriority=4;Oe.unstable_NormalPriority=3;Oe.unstable_Profiling=null;Oe.unstable_UserBlockingPriority=2;Oe.unstable_cancelCallback=function(e){e.callback=null};Oe.unstable_continueExecution=function(){On||Es||(On=!0,pf(cf))};Oe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Am=0<e?Math.floor(1e3/e):5};Oe.unstable_getCurrentPriorityLevel=function(){return Ct};Oe.unstable_getFirstCallbackNode=function(){return fr(_r)};Oe.unstable_next=function(e){switch(Ct){case 1:case 2:case 3:var t=3;break;default:t=Ct}var i=Ct;Ct=t;try{return e()}finally{Ct=i}};Oe.unstable_pauseExecution=function(){};Oe.unstable_requestPaint=function(){};Oe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var i=Ct;Ct=e;try{return t()}finally{Ct=i}};Oe.unstable_scheduleCallback=function(e,t,i){var o=Oe.unstable_now();switch(typeof i=="object"&&i!==null?(i=i.delay,i=typeof i=="number"&&0<i?o+i:o):i=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=i+s,e={id:g1++,callback:t,priorityLevel:e,startTime:i,expirationTime:s,sortIndex:-1},i>o?(e.sortIndex=i,af(ln,e),fr(_r)===null&&e===fr(ln)&&(Po?(Tm(Uo),Uo=-1):Po=!0,df(ff,i-o))):(e.sortIndex=s,af(_r,e),On||Es||(On=!0,pf(cf))),e};Oe.unstable_shouldYield=Nm;Oe.unstable_wrapCallback=function(e){var t=Ct;return function(){var i=Ct;Ct=t;try{return e.apply(this,arguments)}finally{Ct=i}}}});var Om=Ie((U_,Lm)=>{"use strict";D();Lm.exports=wm()});var Rm=Ie((M_,bm)=>{"use strict";D();bm.exports=function(t){var i={},o=Ei("react"),s=Om(),l=Object.assign;function c(r){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+r,u=1;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+r+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),m=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),Q=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var W=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var $=Symbol.iterator;function X(r){return r===null||typeof r!="object"?null:(r=$&&r[$]||r["@@iterator"],typeof r=="function"?r:null)}function oe(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case g:return"Fragment";case m:return"Portal";case v:return"Profiler";case C:return"StrictMode";case B:return"Suspense";case U:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case R:return(r.displayName||"Context")+".Consumer";case N:return(r._context.displayName||"Context")+".Provider";case k:var n=r.render;return r=r.displayName,r||(r=n.displayName||n.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case z:return n=r.displayName||null,n!==null?n:oe(r.type)||"Memo";case Q:n=r._payload,r=r._init;try{return oe(r(n))}catch{}}return null}function ut(r){var n=r.type;switch(r.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=n.render,r=r.displayName||r.name||"",n.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(n);case 8:return n===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function Xe(r){var n=r,u=r;if(r.alternate)for(;n.return;)n=n.return;else{r=n;do n=r,n.flags&4098&&(u=n.return),r=n.return;while(r)}return n.tag===3?u:null}function we(r){if(Xe(r)!==r)throw Error(c(188))}function Ue(r){var n=r.alternate;if(!n){if(n=Xe(r),n===null)throw Error(c(188));return n!==r?null:r}for(var u=r,a=n;;){var f=u.return;if(f===null)break;var p=f.alternate;if(p===null){if(a=f.return,a!==null){u=a;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===u)return we(f),r;if(p===a)return we(f),n;p=p.sibling}throw Error(c(188))}if(u.return!==a.return)u=f,a=p;else{for(var E=!1,F=f.child;F;){if(F===u){E=!0,u=f,a=p;break}if(F===a){E=!0,a=f,u=p;break}F=F.sibling}if(!E){for(F=p.child;F;){if(F===u){E=!0,u=p,a=f;break}if(F===a){E=!0,a=p,u=f;break}F=F.sibling}if(!E)throw Error(c(189))}}if(u.alternate!==a)throw Error(c(190))}if(u.tag!==3)throw Error(c(188));return u.stateNode.current===u?r:n}function Dt(r){return r=Ue(r),r!==null?_t(r):null}function _t(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var n=_t(r);if(n!==null)return n;r=r.sibling}return null}function Rt(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){if(r.tag!==4){var n=Rt(r);if(n!==null)return n}r=r.sibling}return null}var Ae=Array.isArray,Mt=t.getPublicInstance,gn=t.getRootHostContext,Je=t.getChildHostContext,Qe=t.prepareForCommit,Jt=t.resetAfterCommit,Or=t.createInstance,hr=t.appendInitialChild,ce=t.finalizeInitialChildren,Qr=t.prepareUpdate,Kr=t.shouldSetTextContent,eo=t.createTextInstance,to=t.scheduleTimeout,Ze=t.cancelTimeout,br=t.noTimeout,$r=t.isPrimaryRenderer,et=t.supportsMutation,Tt=t.supportsPersistence,gt=t.supportsHydration,Rr=t.getInstanceFromNode,cu=t.preparePortalMount,pu=t.getCurrentEventPriority,Xn=t.detachDeletedInstance,ro=t.supportsMicrotasks,du=t.scheduleMicrotask,qr=t.supportsTestSelectors,hu=t.findFiberRoot,Qn=t.getBoundingRect,Kn=t.getTextContent,Ht=t.isHiddenSubtree,$n=t.matchAccessibilityRole,no=t.setFocusIfFocusable,En=t.setupIntersectionObserver,Jr=t.appendChild,qn=t.appendChildToContainer,mr=t.commitTextUpdate,io=t.commitMount,Zt=t.commitUpdate,oo=t.insertBefore,Dr=t.insertInContainerBefore,uo=t.removeChild,ba=t.removeChildFromContainer,Jn=t.resetTextContent,Ra=t.hideInstance,Ba=t.hideTextInstance,Pa=t.unhideInstance,er=t.unhideTextInstance,Zn=t.clearContainer,mu=t.cloneInstance,At=t.createContainerChildSet,so=t.appendChildToContainerChildSet,ei=t.finalizeContainerChildren,xn=t.replaceContainerChildren,ti=t.cloneHiddenInstance,ri=t.cloneHiddenTextInstance,ao=t.canHydrateInstance,Ua=t.canHydrateTextInstance,ka=t.canHydrateSuspenseInstance,Du=t.isSuspenseInstancePending,lo=t.isSuspenseInstanceFallback,Ma=t.getSuspenseInstanceFallbackErrorDetails,Ha=t.registerSuspenseInstanceRetry,ni=t.getNextHydratableSibling,gu=t.getFirstHydratableChild,ii=t.getFirstHydratableChildWithinContainer,Eu=t.getFirstHydratableChildWithinSuspenseInstance,Ga=t.hydrateInstance,xu=t.hydrateTextInstance,oi=t.hydrateSuspenseInstance,ja=t.getNextHydratableInstanceAfterSuspenseInstance,yu=t.commitHydratedContainer,fo=t.commitHydratedSuspenseInstance,tr=t.clearSuspenseBoundary,vu=t.clearSuspenseBoundaryFromContainer,y=t.shouldDeleteUnhydratedTailInstances,x=t.didNotMatchHydratedContainerTextInstance,A=t.didNotMatchHydratedTextInstance,w;function I(r){if(w===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);w=n&&n[1]||""}return`
|
|
4
4
|
`+w+r}var b=!1;function G(r,n){if(!r||b)return"";b=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(V){var a=V}Reflect.construct(r,[],n)}else{try{n.call()}catch(V){a=V}r.call(n.prototype)}else{try{throw Error()}catch(V){a=V}r()}}catch(V){if(V&&a&&typeof V.stack=="string"){for(var f=V.stack.split(`
|
|
5
5
|
`),p=a.stack.split(`
|
|
6
6
|
`),E=f.length-1,F=p.length-1;1<=E&&0<=F&&f[E]!==p[F];)F--;for(;1<=E&&0<=F;E--,F--)if(f[E]!==p[F]){if(E!==1||F!==1)do if(E--,F--,0>F||f[E]!==p[F]){var O=`
|
|
@@ -84,4 +84,4 @@ react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
|
84
84
|
* LICENSE file in the root directory of this source tree.
|
|
85
85
|
*)
|
|
86
86
|
*/
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-5IXE5FNR.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{d as w}from"./chunk-BPHZBR73.js";import{m as E,n as y}from"./chunk-YHWDL3DF.js";import{A as p,B as h,d as i,g as x,j as f,s as P}from"./chunk-5IXE5FNR.js";import{O as b,R as B,T as t,c as d,d as g,n as m}from"./chunk-GNLLOWHY.js";import{h as s}from"./chunk-HFDLXX7R.js";s();async function _(o){let e=b(o),l=B(o);if(!await m(e)||!await m(l))throw new d({code:g.BuiltProjectNeeded()})}s();import r from"react";var a=({url:o,label:e,withPointer:l=!0})=>r.createElement(i,null,r.createElement(i,{marginRight:1},l&&r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(P,{url:o},e)))),O=()=>{let{t:o}=h(),{isPlatformExists:e,hasSinglePlatform:l}=w(),u=E(),n=C=>y({envConfig:u,platformType:C});return r.createElement(r.Fragment,null,l(t.Dashboard())?r.createElement(i,{flexDirection:"row"},r.createElement(p,{i18nKey:"general.open_preview.title_single"}),r.createElement(a,{withPointer:!1,url:n(t.Dashboard({route:"/"})),label:o("general.platform.dashboard")})):r.createElement(i,{flexDirection:"column"},r.createElement(p,{i18nKey:"general.open_preview.title_multiple"}),r.createElement(i,{paddingLeft:2,flexDirection:"column"},e(t.Site())&&(u.site.viewUrl?r.createElement(a,{url:n(t.Site()),label:o("general.platform.site")}):r.createElement(i,{marginRight:1},r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(x,{skin:"secondary",underline:!0},o("general.platform.unpublished_site"))))),e(t.Editor())&&r.createElement(a,{url:n(t.Editor()),label:o("general.platform.editor")}),e(t.Dashboard())&&r.createElement(a,{url:n(t.Dashboard({route:"/"})),label:o("general.platform.dashboard")}))))};export{O as a,_ as b};
|
|
4
|
+
//# sourceMappingURL=chunk-7BWMEPZ3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/files/assert-build-output-exists.ts","../src/components/extensions/PlatformViewer.tsx"],"sourcesContent":["import { pathExists } from '@wix/cli-fs';\nimport {\n getAppBuildFolder,\n getAppManifestPath,\n} from '@wix/cli-app-definitions';\nimport { CliErrorCode, CliError } from '@wix/cli-error';\n\nexport async function assertBuildOutputExists(projectFolder: string) {\n const buildFolder = getAppBuildFolder(projectFolder);\n const manifestPath = getAppManifestPath(projectFolder);\n\n if (!(await pathExists(buildFolder)) || !(await pathExists(manifestPath))) {\n throw new CliError({\n code: CliErrorCode.BuiltProjectNeeded(),\n });\n }\n}\n","import React, { type FC } from 'react';\nimport { Trans, useTranslation } from '@wix/cli-i18n';\nimport { Box, Link, PointerSmallIcon, Text } from '@wix/cli-ui-kit';\nimport { PlatformType } from '@wix/cli-app-definitions';\nimport { useExtensions } from './useExtensions.js';\nimport { resolvePlatformUrl, useEnvConfig } from './utils.js';\n\ntype PlatformLinkProps = {\n url: string;\n label: string;\n withPointer?: boolean;\n};\n\nexport const PlatformLink: FC<PlatformLinkProps> = ({\n url,\n label,\n withPointer = true,\n}) => {\n return (\n <Box>\n <Box marginRight={1}>\n {withPointer && <PointerSmallIcon />}\n <Box marginLeft={1}>\n <Link url={url}>{label}</Link>\n </Box>\n </Box>\n </Box>\n );\n};\n\nexport const PlatformViewer: FC = () => {\n const { t } = useTranslation();\n const { isPlatformExists, hasSinglePlatform } = useExtensions();\n const envConfig = useEnvConfig();\n\n const getPlatformUrl = (platformType: PlatformType) =>\n resolvePlatformUrl({\n envConfig,\n platformType,\n });\n\n return (\n <>\n {hasSinglePlatform(PlatformType.Dashboard()) ? (\n <Box flexDirection=\"row\">\n <Trans i18nKey=\"general.open_preview.title_single\" />\n <PlatformLink\n withPointer={false}\n url={getPlatformUrl(PlatformType.Dashboard({ route: '/' }))}\n label={t('general.platform.dashboard')}\n />\n </Box>\n ) : (\n <Box flexDirection=\"column\">\n <Trans i18nKey=\"general.open_preview.title_multiple\" />\n <Box paddingLeft={2} flexDirection=\"column\">\n {isPlatformExists(PlatformType.Site()) &&\n (envConfig.site.viewUrl ? (\n <PlatformLink\n url={getPlatformUrl(PlatformType.Site())}\n label={t('general.platform.site')}\n />\n ) : (\n <Box marginRight={1}>\n <PointerSmallIcon />\n <Box marginLeft={1}>\n <Text skin=\"secondary\" underline>\n {t('general.platform.unpublished_site')}\n </Text>\n </Box>\n </Box>\n ))}\n {isPlatformExists(PlatformType.Editor()) && (\n <PlatformLink\n url={getPlatformUrl(PlatformType.Editor())}\n label={t('general.platform.editor')}\n />\n )}\n {isPlatformExists(PlatformType.Dashboard()) && (\n <PlatformLink\n url={getPlatformUrl(PlatformType.Dashboard({ route: '/' }))}\n label={t('general.platform.dashboard')}\n />\n )}\n </Box>\n </Box>\n )}\n </>\n );\n};\n"],"mappings":";;qRAAAA,IAOA,eAAsBC,EAAwBC,EAAuB,CACnE,IAAMC,EAAcC,EAAkBF,CAAa,EAC7CG,EAAeC,EAAmBJ,CAAa,EAErD,GAAI,CAAE,MAAMK,EAAWJ,CAAW,GAAM,CAAE,MAAMI,EAAWF,CAAY,EACrE,MAAM,IAAIG,EAAS,CACjB,KAAMC,EAAa,mBAAmB,CACxC,CAAC,CAEL,CChBAC,IAAA,OAAOC,MAAwB,QAaxB,IAAMC,EAAsC,CAAC,CAClD,IAAAC,EACA,MAAAC,EACA,YAAAC,EAAc,EAChB,IAEIC,EAAA,cAACC,EAAA,KACCD,EAAA,cAACC,EAAA,CAAI,YAAa,GACfF,GAAeC,EAAA,cAACE,EAAA,IAAiB,EAClCF,EAAA,cAACC,EAAA,CAAI,WAAY,GACfD,EAAA,cAACG,EAAA,CAAK,IAAKN,GAAMC,CAAM,CACzB,CACF,CACF,EAISM,EAAqB,IAAM,CACtC,GAAM,CAAE,EAAAC,CAAE,EAAIC,EAAe,EACvB,CAAE,iBAAAC,EAAkB,kBAAAC,CAAkB,EAAIC,EAAc,EACxDC,EAAYC,EAAa,EAEzBC,EAAkBC,GACtBC,EAAmB,CACjB,UAAAJ,EACA,aAAAG,CACF,CAAC,EAEH,OACEb,EAAA,cAAAA,EAAA,cACGQ,EAAkBO,EAAa,UAAU,CAAC,EACzCf,EAAA,cAACC,EAAA,CAAI,cAAc,OACjBD,EAAA,cAACgB,EAAA,CAAM,QAAQ,oCAAoC,EACnDhB,EAAA,cAACJ,EAAA,CACC,YAAa,GACb,IAAKgB,EAAeG,EAAa,UAAU,CAAE,MAAO,GAAI,CAAC,CAAC,EAC1D,MAAOV,EAAE,4BAA4B,EACvC,CACF,EAEAL,EAAA,cAACC,EAAA,CAAI,cAAc,UACjBD,EAAA,cAACgB,EAAA,CAAM,QAAQ,sCAAsC,EACrDhB,EAAA,cAACC,EAAA,CAAI,YAAa,EAAG,cAAc,UAChCM,EAAiBQ,EAAa,KAAK,CAAC,IAClCL,EAAU,KAAK,QACdV,EAAA,cAACJ,EAAA,CACC,IAAKgB,EAAeG,EAAa,KAAK,CAAC,EACvC,MAAOV,EAAE,uBAAuB,EAClC,EAEAL,EAAA,cAACC,EAAA,CAAI,YAAa,GAChBD,EAAA,cAACE,EAAA,IAAiB,EAClBF,EAAA,cAACC,EAAA,CAAI,WAAY,GACfD,EAAA,cAACiB,EAAA,CAAK,KAAK,YAAY,UAAS,IAC7BZ,EAAE,mCAAmC,CACxC,CACF,CACF,GAEHE,EAAiBQ,EAAa,OAAO,CAAC,GACrCf,EAAA,cAACJ,EAAA,CACC,IAAKgB,EAAeG,EAAa,OAAO,CAAC,EACzC,MAAOV,EAAE,yBAAyB,EACpC,EAEDE,EAAiBQ,EAAa,UAAU,CAAC,GACxCf,EAAA,cAACJ,EAAA,CACC,IAAKgB,EAAeG,EAAa,UAAU,CAAE,MAAO,GAAI,CAAC,CAAC,EAC1D,MAAOV,EAAE,4BAA4B,EACvC,CAEJ,CACF,CAEJ,CAEJ","names":["init_esm_shims","assertBuildOutputExists","projectFolder","buildFolder","getAppBuildFolder","manifestPath","getAppManifestPath","pathExists","CliError","CliErrorCode","init_esm_shims","React","PlatformLink","url","label","withPointer","React","Box_default","PointerSmallIcon","Link","PlatformViewer","t","useTranslation","isPlatformExists","hasSinglePlatform","useExtensions","envConfig","useEnvConfig","getPlatformUrl","platformType","resolvePlatformUrl","PlatformType","Trans","Text"]}
|
|
@@ -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-GNLLOWHY.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-7WZDL63V.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{b as le}from"./chunk-JCBTQBIR.js";import{b as j,c as V,e as ue,f as fe,g as he,h as ge}from"./chunk-YHWDL3DF.js";import{a as pe,b as se,c as D,d as x,e as A,f as u,r as ce}from"./chunk-2MVU7B3I.js";import{A as b,B as S,D as de,f as ie,g as ne,n as T,o as z,q as N,r as me,t as P,u as B,w as C,x as U}from"./chunk-5IXE5FNR.js";import{D as ve,W as _e,a as R,c as h,d as g,h as d,i as G,pa as w}from"./chunk-GNLLOWHY.js";import{e as y,h as s}from"./chunk-HFDLXX7R.js";s();import{useMemo as Ft}from"react";s();s();var Ae={actionConfig:"_actionSPIConfig"},Pe={icon:"_commonImage"},ye={requiredSettings:"google.protobuf.FieldMask",adminConfigurableSettings:"google.protobuf.FieldMask"};var Re={expectedInputs:"_expectedInputs"};var Ce={urlExpirationDate:"google.protobuf.Timestamp"},De={compData:"_componentData"},xe={widgetComponentData:"_widgetComponentData",widgetOutOfIframeData:"_widgetOutOfIframeComponentData",studioWidgetComponentData:"_studioWidgetComponentData",shippingLabelCarrier:"_shippingLabelCarrierSpiConfig",fictionalShippingProvider:"_shippingProviderConfig",automationsActionProvider:"_actionProviderSPIConfig",identityAuthenticator:"_authenticatorConfig",multilingualTranslationSchema:"_multilingualTranslationSchema"};var be={presetsEditorPresence:"_presetEditorPresence"},qe={expectedStartInputs:"_predefinedExpectedInput",expectedVerifyInputs:"_predefinedExpectedInput"};var ht={dateCreated:"google.protobuf.Timestamp",components:"_component"},gt={};var St={dateCreated:"google.protobuf.Timestamp",components:"_component"};var At={},Pt={apps:"_getAppInfoResponse"};var we={urlExpirationDate:"google.protobuf.Timestamp"};var Ie={referenceData:"_schema"},Oe={width:"DOUBLE",length:"DOUBLE",height:"google.protobuf.DoubleValue"},Te={dimension:"_packageDimension",image:"_image"};var Ne={configuration:"_predefinedExpectedInputConfiguration"},Ee={textInput:"_adminConfigurableTextInput"},Je={wixMediaThumbnail:"_commonImage"};var Fe={createdDate:"google.protobuf.Timestamp",updatedDate:"google.protobuf.Timestamp",fields:"Map#_v1SchemaField"};var ke={packageTypes:"_packageType"},Me={shippingPrice:"DOUBLE"},Le={widgetDisplay:"_widgetDisplay",editorPresence:"_editorPresence"};var Se={createdDate:"google.protobuf.Timestamp",updatedDate:"google.protobuf.Timestamp"},yt={app:"_v1App"},Rt={app:"_v1App"};var Ge={index:"google.protobuf.DoubleValue"},ze={widgetDisplay:"_widgetDisplay"},Be={price:"google.protobuf.FloatValue"},Ue={widgetData:"_widgetComponentData"};function W(t){var e={"api._api_base_domain_":[{srcPath:"/app-service-webapp",destPath:""}],"dev._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"editor._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"blocks._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"create.editorx":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"bo._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""},{srcPath:"/app-service-webapp",destPath:"/api"}],"wixbo.ai":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""},{srcPath:"/app-service-webapp",destPath:"/api"}],"manage._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}],"www._base_domain_":[{srcPath:"/_api/app-service",destPath:"/api"},{srcPath:"/_api/app-service-webapp",destPath:""}]};return x(Object.assign(t,{domainToMappings:e}))}function Ct(t){var e={"editor._base_domain_":[{srcPath:"/apps-service",destPath:""}],"blocks._base_domain_":[{srcPath:"/apps-service",destPath:""}],"create.editorx":[{srcPath:"/apps-service",destPath:""}],"bo._base_domain_":[{srcPath:"/apps-service",destPath:""},{srcPath:"/apps-service",destPath:""}],"wixbo.ai":[{srcPath:"/apps-service",destPath:""},{srcPath:"/apps-service",destPath:""}],"dev._base_domain_":[{srcPath:"/apps-service",destPath:""}],"www._base_domain_":[{srcPath:"/_api/apps-service",destPath:"/api"},{srcPath:"/apps-service",destPath:""}],"manage._base_domain_":[{srcPath:"/apps-service",destPath:""}]};return x(Object.assign(t,{domainToMappings:e}))}function je(t){var e=u(yt,{_v1App:Se}),r=e.toJSON,a=e.fromJSON,n=u(Rt,{_v1App:Se}).fromJSON;function o(p){var m=p.host,i=r(t),c={entityFqdn:"wix.devcenter.apps.v1.app",method:"POST",methodFqn:"wix.devcenter.apps.v1.AppsService.CreateApp",url:Ct({protoPath:"/v1/apps",data:i,host:m}),data:i,transformResponse:n};return c}return o.fromReq=a,o.__isAmbassador=!0,o}function Ve(t){var e=u(gt,{}),r=e.toJSON,a=e.fromJSON,n=u(St,{_actionProviderSPIConfig:Ae,_actionSPIConfig:Pe,_adminConfigurableTextInput:ye,_authenticatorConfig:Re,_commonImage:Ce,_component:De,_componentData:xe,_editorPresence:be,_expectedInputs:qe,_image:we,_multilingualTranslationSchema:Ie,_packageDimension:Oe,_packageType:Te,_predefinedExpectedInput:Ne,_predefinedExpectedInputConfiguration:Ee,_presetEditorPresence:Je,_schema:Fe,_shippingLabelCarrierSpiConfig:ke,_shippingProviderConfig:Me,_studioWidgetComponentData:Le,_v1SchemaField:Ge,_widgetComponentData:ze,_widgetDisplay:Be,_widgetOutOfIframeComponentData:Ue}).fromJSON;function o(p){var m=p.host,i=r(t),c={entityFqdn:"wix.devcenter.apps.v1.app",method:"GET",methodFqn:"com.wixpress.appservice.api.Apps.GetAppSnapshot",url:W({protoPath:"/v1/apps/{appId}",data:i,host:m}),params:A(i),transformResponse:n,fallback:[{method:"GET",url:W({protoPath:"/v1/apps/{appId}",data:i,host:m}),params:A(i)}]};return c}return o.fromReq=a,o.__isAmbassador=!0,o}function We(t){var e=u(At,{}),r=e.toJSON,a=e.fromJSON,n=u(Pt,{_actionProviderSPIConfig:Ae,_actionSPIConfig:Pe,_adminConfigurableTextInput:ye,_authenticatorConfig:Re,_commonImage:Ce,_component:De,_componentData:xe,_editorPresence:be,_expectedInputs:qe,_getAppInfoResponse:ht,_image:we,_multilingualTranslationSchema:Ie,_packageDimension:Oe,_packageType:Te,_predefinedExpectedInput:Ne,_predefinedExpectedInputConfiguration:Ee,_presetEditorPresence:Je,_schema:Fe,_shippingLabelCarrierSpiConfig:ke,_shippingProviderConfig:Me,_studioWidgetComponentData:Le,_v1SchemaField:Ge,_widgetComponentData:ze,_widgetDisplay:Be,_widgetOutOfIframeComponentData:Ue}).fromJSON;function o(p){var m=p.host,i=r(t),c={entityFqdn:"wix.devcenter.apps.v1.app",method:"GET",methodFqn:"com.wixpress.appservice.api.Apps.GetDeveloperApps",url:W({protoPath:"/v1/apps",data:i,host:m}),params:A(i),transformResponse:n,fallback:[{method:"GET",url:W({protoPath:"/v1/apps",data:i,host:m}),params:A(i)}]};return c}return o.fromReq=a,o.__isAmbassador=!0,o}s();var Dt={},xt={};var bt={},qt={},wt={},It={};function Z(t){var e={"api._api_base_domain_":[{srcPath:"/development-sites-manager",destPath:""}],"manage._base_domain_":[{srcPath:"/development-sites-manager",destPath:""},{srcPath:"/_api/development-sites-manager",destPath:""}],"bo._base_domain_":[{srcPath:"/development-sites-manager",destPath:""}],"www.wixapps.net":[{srcPath:"/development-sites-manager/v1/development-sites",destPath:""}],"dev._base_domain_":[{srcPath:"/development-sites-manager",destPath:""}],"www.wixapis.com":[{srcPath:"/development-sites-manager/v1/development-sites",destPath:""}]};return x(Object.assign(t,{domainToMappings:e}))}function He(t){var e=u(Dt,{}),r=e.toJSON,a=e.fromJSON,n=u(xt,{}).fromJSON;function o(p){var m=p.host,i=r(t),c={method:"POST",url:Z({protoPath:"/v1/development-sites",data:i,host:m}),data:i,transformResponse:n};return c}return o.fromReq=a,o}function Ke(t){var e=u(wt,{}),r=e.toJSON,a=e.fromJSON,n=u(It,{}).fromJSON;function o(p){var m=p.host,i=r(t),c={method:"GET",url:Z({protoPath:"/v1/development-sites",data:i,host:m}),params:A(i),transformResponse:n};return c}return o.fromReq=a,o}function Ye(t){var e=u(bt,{}),r=e.toJSON,a=e.fromJSON,n=u(qt,{}).fromJSON;function o(p){var m=p.host,i=r(t),c={method:"GET",url:Z({protoPath:"/v1/development-sites-limit",data:i,host:m}),params:A(i),transformResponse:n};return c}return o.fromReq=a,o}s();var Ot={},Tt={};function Nt(t){var e={"bo._base_domain_":[{srcPath:"/_api/app-assessment",destPath:""}],_api_base_domain_:[{srcPath:"/_api/app-assessment-service",destPath:""}],"dev._base_domain_":[{srcPath:"/_api/app-assessment",destPath:""}],"manage._base_domain_":[{srcPath:"/_api/app-assessment",destPath:""}]};return x(Object.assign(t,{domainToMappings:e}))}function $e(t){var e=u(Ot,{}),r=e.toJSON,a=e.fromJSON,n=u(Tt,{}).fromJSON;function o(p){var m=p.host,i=r(t),c={entityFqdn:"wix.devcenter.app_assessment.v1.validation",method:"GET",methodFqn:"com.wix.devcenter.AppValidationService.GetAppValidationReport",url:Nt({protoPath:"/v1/get-app-validation-report/{appId}/{version}",data:i,host:m}),params:A(i),transformResponse:n};return c}return o.fromReq=a,o.__isAmbassador=!0,o}s();var Qe=d.object({app:d.object({id:d.string()})}),Xe=d.object({latestVersion:d.string()}),Ze=d.object({developmentSite:d.object({id:d.string(),siteName:d.string()})}),et=d.object({developmentSites:d.array(d.object({}))}),tt=d.object({limit:d.number()}),Et=d.object({name:d.string(),appId:d.string()}),at=d.object({apps:d.array(Et)}),rt=d.object({appPropertiesValidity:d.array(d.object({failures:d.array(d.string())}))});var Jt="24bafe8a-7c80-4b63-8a71-08752062f246",H=class{constructor(e){this.httpClient=e;let{minRetryTimeout:r}=G();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;createApp=async e=>{try{let{data:r}=await D(()=>this.httpClient.request(je({app:e})),this.retryOptions);return Qe.parse(r).app}catch(r){throw new h({code:g.FailedToCreateDevCenterApp(),cause:r})}};getAppSnapshot=async e=>{let{data:r}=await D(()=>this.httpClient.request(Ve(e)),this.retryOptions);return Xe.parse(r)};createDevSite=async()=>{try{let{data:e}=await D(()=>this.httpClient.request(He({templateId:Jt})),this.retryOptions),{id:r,siteName:a}=Ze.parse(e).developmentSite;return{id:r,displayName:a.replaceAll("-"," "),viewUrl:""}}catch(e){throw new h({code:g.FailedToCreateDevelopmentSite(),cause:e})}};getDevSitesCount=async()=>{try{let{data:e}=await D(()=>this.httpClient.request(Ke({})),this.retryOptions);return et.parse(e).developmentSites.length}catch(e){throw new h({code:g.FailedToGetDevelopmentSites(),cause:e})}};getDeveloperApps=async()=>{try{let{data:e}=await D(()=>this.httpClient.request(We({})),this.retryOptions);return at.parse(e).apps}catch(e){throw new h({code:g.FailedToGetDeveloperApps(),cause:e})}};getDevSitesLimit=async()=>{try{let{data:e}=await D(()=>this.httpClient.request(Ye({})),this.retryOptions);return tt.parse(e).limit}catch(e){throw new h({code:g.FailedToGetDevelopmentSitesLimit(),cause:e})}};getAppValidationFailuresCount=async(e,r)=>{try{let{data:a}=await this.httpClient.request($e({appId:e,version:r||"latest"}));return rt.parse(a).appPropertiesValidity.filter(p=>p.failures.length>0).length}catch(a){throw new h({code:g.FailedToGetAppValidity(),cause:a})}}};function E(){let t=j({type:"backoffice"});return Ft(()=>new H(t),[t])}s();s();var oe=y(R(),1);import Q,{useCallback as ft}from"react";s();var $=y(R(),1);import M from"react";s();s();var ut=y(R(),1);import q,{useState as Bt}from"react";s();var pt=y(R(),1);import ot from"react";var st=({onSubmit:t,onError:e,sites:r})=>{let{t:a}=S(),{getDevSitesCount:n,getDevSitesLimit:o}=E(),{status:p}=C(()=>Promise.all([n(),o()]),[],{onError:e});return(0,pt.match)(p,{Error:()=>null,Loading:()=>ot.createElement(P,{text:a("general.loading")}),Success:({result:[m,i]})=>{let c=m>=i,f=r.length===0;return ot.createElement(z,{label:a("site_type_select.label"),options:[{availability:f?T.Disabled({reason:a("site_type_select.no_sites")}):T.Enabled(),title:a("site_type_select.pick_existing_site"),value:"select-existing-site"},{title:a("site_type_select.create_new_dev_site"),value:"create-dev-site",availability:c?T.Disabled({reason:a("site_type_select.create_new_dev_site.disabled",{limit:i})}):T.Enabled()}],onSubmit:({value:_})=>t(_)})}})};s();var mt=y(R(),1);import O from"react";s();import ee from"react";s();s();import{useMemo as kt}from"react";s();s();var it=d.record(d.object({appDefinitionId:d.string().optional(),permissions:d.object({revoked:d.boolean()}).optional()}));var K=class{constructor(e){this.httpClient=e}isAppInstalled=async({metaSiteId:e,appId:r})=>{try{let{data:a}=await this.httpClient.request({url:`/_api/msm/v1/meta-site/editor-client-spec-map/${e}`}),n=it.parse(a);return Object.values(n).some(p=>p.appDefinitionId===r&&!p.permissions?.revoked)}catch(a){throw new h({code:g.FailedToCheckIfAppInstalled(),cause:a})}}};function J(){let t=j({type:"general"});return kt(()=>new K(t),[t])}var I=y(R(),1);s();import F from"react";var nt=({siteId:t,appId:e})=>(ie(async(r,a)=>{a.return&&await ce(`https://manage.wix.com/installer/install?metaSiteId=${t}&appId=${e}&platform=cli&version=latest`)}),F.createElement(F.Fragment,null,F.createElement(b,{i18nKey:"install_app_on_site.warning"}),F.createElement(b,{i18nKey:"install_app_on_site.warning.instructions",components:[F.createElement(me,{value:"enter"})]})));var te=(0,I.variant)({Success:{},Canceled:{}});function Mt(t){return t&&typeof t=="object"&&"name"in t&&t.name==="AbortError"}var Y=({appId:t,site:e,onSubmit:r,onError:a})=>{let{isAppInstalled:n}=J(),{status:o}=C(async({signal:p})=>{let{appInstallationPollInterval:m}=G();try{return await se(()=>n({metaSiteId:e.id,appId:t}),{interval:m??2e3,timeout:{milliseconds:60*1e3*2,signal:p}}),te.Success()}catch(i){if(i instanceof pe)throw new h({code:g.SiteSelectorTimedout(),cause:i});if(Mt(i))return te.Canceled();throw i}},[],{onError:a,onSuccess:p=>{(0,I.isType)(p,te.Success)&&r()}});return(0,I.match)(o,{Error:()=>null,Loading:()=>ee.createElement(nt,{siteId:e.id,appId:t}),Success:()=>ee.createElement(N,{type:"success"},ee.createElement(b,{i18nKey:"install_app_on_site.finished_successfully"}))})};var dt=({status:t,appId:e,onSubmit:r,onError:a})=>{let{t:n}=S();return(0,mt.match)(t,{NotRequested:()=>null,Error:()=>null,Loading:()=>O.createElement(P,{text:n("create_dev_site.loading")}),Success:({result:o})=>O.createElement(O.Fragment,null,O.createElement(b,{i18nKey:"create_dev_site.success",components:[O.createElement(ne,{skin:"success",bold:!0})],values:{name:o.displayName}}),O.createElement(Y,{appId:e,site:o,onSubmit:()=>r(o),onError:a}))})};var ct={"general.loading":"Loading...","site_type_select.label":"Select Development Site","site_type_select.create_new_dev_site":"Create a new Development Site","site_type_select.create_new_dev_site.disabled":"You have reached the maximum number of {limit} Development Sites","site_type_select.pick_existing_site":"Pick an existing site","site_type_select.no_sites":"No sites found","create_dev_site.loading":"Creating your new Development Site...","create_dev_site.success":"Development Site <0>{name}</0> created successfully! \u{1F680}","site_list_select.label":"Select Site","install_app_on_site.warning":"Your new application needs to be installed on the selected Development Site","install_app_on_site.warning.instructions":"Press <0/> to install the application in your browser","install_app_on_site.finished_successfully":"App installed on Development Site."};s();import k,{useState as zt}from"react";var vt=y(R(),1);s();import Gt from"react";var lt=({onSubmit:t,sites:e})=>{let{t:r}=S();return Gt.createElement(z,{label:r("site_list_select.label"),options:e.map(a=>({key:a.id,title:a.displayName,description:a.viewUrl,value:a})),onSubmit:({value:a})=>t(a)})};var _t=({sites:t,appId:e,onSubmit:r,onError:a})=>{let{t:n}=S(),{isAppInstalled:o}=J(),[p,m]=zt(null),i=U((f,_)=>o({metaSiteId:_.id,appId:e}),{onError:a});async function c(f){await i.execute(f)?r(f):m(f)}return k.createElement(k.Fragment,null,k.createElement(lt,{onSubmit:c,sites:t}),(0,vt.isType)(i.status,"Loading")&&k.createElement(P,{text:n("general.loading")}),p&&k.createElement(Y,{appId:e,site:p,onSubmit:()=>r(p),onError:a}))};var ae=({appId:t,onSubmit:e,onError:r})=>{let{t:a}=S(),[n,o]=Bt(null),{createDevSite:p}=E(),m=V(),{status:i}=C(()=>m.querySites({query:{cursorPaging:{limit:100}}}),[],{onError:r}),c=U(()=>p(),{onError:r});function f(_){o(_),_==="create-dev-site"&&c.execute()}return q.createElement(de,{messages:ct},(0,ut.match)(i,{Error:()=>null,Loading:()=>q.createElement(P,{text:a("general.loading")}),Success:({result:_})=>q.createElement(q.Fragment,null,q.createElement(st,{onSubmit:f,onError:r,sites:_}),n==="create-dev-site"&&q.createElement(dt,{status:c.status,appId:t,onSubmit:e,onError:r}),n==="select-existing-site"&&q.createElement(_t,{sites:_,appId:t,onSubmit:e,onError:r}))}))};var re=({state:t,onSubmit:e})=>{let r=B(),{t:a}=S(),{model:n}=w();return M.createElement(M.Fragment,null,(0,$.match)(t,{NotConfigured:(0,$.constant)(M.createElement(N,{type:"insight"},a("general.no_site_id_configured"))),NotFound:({id:o})=>M.createElement(N,{type:"error"},a("general.site_id_not_found",{id:o}))}),M.createElement(ae,{appId:n.config.appId,onSubmit:e,onError:r}))};var io=({children:t,siteId:e})=>{let r=B(),{model:{projectFolder:a}}=w(),n=le(),o=V(),{status:p,merge:m}=C(async()=>ge({projectFolder:a,siteListClient:o,siteId:e,writeDebugLog:n}),[]),i=ft(async f=>{try{await ue(a,{siteId:f.id}),m({result:he.Resolved({site:f})})}catch{throw new h({code:g.FailedToSaveDevelopmentSite({path:ve})})}},[m,a]),c=ft(f=>i(f).catch(r),[r,i]);return(0,oe.match)(p,{Error:()=>null,Loading:()=>Q.createElement(P,null),Success:({result:f})=>(0,oe.match)(f,{NotConfigured:_=>Q.createElement(re,{state:_,onSubmit:c}),NotFound:_=>Q.createElement(re,{state:_,onSubmit:c}),Resolved:({site:_})=>Q.createElement(fe.Provider,{value:{site:_,setSite:i}},typeof t=="function"?t(_):t)})})};s();var L=y(R(),1);import{useCallback as X,useMemo as Ut}from"react";var _o=(0,L.typeCatalog)(_e);function uo(){let{model:t}=w(),e=Ut(()=>t.components.reduce((p,m)=>(p[m.type].push(m),p),{DashboardPage:[],DashboardSidebarCategory:[],EmbeddedScript:[],CustomElement:[],DashboardPagePlugin:[],DashboardMenuPlugin:[],DashboardModal:[]}),[t.components]),r=X(p=>p?e[p].length>0:t.components.length>0,[e,t.components]),a=X(p=>e[p],[e]),n=X(p=>t.components.some(m=>m.platforms.some((0,L.isType)(p.type))),[t.components]),o=X(p=>t.components.every(m=>m.platforms.some((0,L.isType)(p.type))||m.platforms.length===0),[t.components]);return{getExtensions:a,hasExtensions:r,isPlatformExists:n,hasSinglePlatform:o}}export{E as a,ae as b,io as c,uo as d};
|
|
4
|
+
//# sourceMappingURL=chunk-BPHZBR73.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../dev-center-client/src/useDevCenterClient.ts","../../dev-center-client/src/dev-center-client.ts","../../../node_modules/@wix/ambassador-devcenter-apps-v1-app/http.impl.ts","../../../node_modules/@wix/ambassador-devcenter-dsm-v1-development-site/http.impl.ts","../../../node_modules/@wix/ambassador-devcenter-app-assessment-v1-validation/http.impl.ts","../../dev-center-client/src/schemas.ts","../../dev-center-client/src/index.ts","../src/site-id/SiteIdProvider.tsx","../src/site-id/ResolveSiteId.tsx","../../cli-site-selector/src/index.ts","../../cli-site-selector/src/SiteSelector.tsx","../../cli-site-selector/src/SiteTypeSelect.tsx","../../cli-site-selector/src/CreateDevSite.tsx","../../cli-site-selector/src/WaitForAppToBeInstalled.tsx","../../metasite-manager-client/src/index.ts","../../metasite-manager-client/src/useMetasiteManagerClient.ts","../../metasite-manager-client/src/metasite-manager-client.ts","../../metasite-manager-client/src/schemas.ts","../../cli-site-selector/src/OpenBrowser.tsx","../../cli-site-selector/src/messages.json","../../cli-site-selector/src/SelectExistingSite.tsx","../../cli-site-selector/src/SiteListSelect.tsx","../src/components/extensions/useExtensions.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { useHttpClient } from '@wix/cli-http-client-react';\nimport { DevCenterClient } from './dev-center-client.js';\n\nexport function useDevCenterClient(): DevCenterClient {\n const httpClient = useHttpClient({ type: 'backoffice' });\n return useMemo(() => new DevCenterClient(httpClient), [httpClient]);\n}\n","import { getTestOverrides } from '@wix/cli-test-overrides';\nimport pRetry, { type Options } from 'p-retry';\nimport { type HttpClient } from '@wix/cli-http-client';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport type {\n V1App,\n GetAppRequest,\n} from '@wix/ambassador-devcenter-apps-v1-app/types';\nimport {\n getAppSnapshot,\n createApp,\n getDeveloperApps,\n} from '@wix/ambassador-devcenter-apps-v1-app/http';\nimport {\n getDevelopmentSites,\n createDevelopmentSite,\n getDevelopmentSitesLimit,\n} from '@wix/ambassador-devcenter-dsm-v1-development-site/http';\nimport { getAppValidationReport } from '@wix/ambassador-devcenter-app-assessment-v1-validation/http';\nimport {\n createAppSchema,\n appSnapshotSchema,\n createDevelopmentSiteSchema,\n getDevelopmentSitesLimitSchema,\n getDevelopmentSitesSchema,\n getDeveloperAppsSchema,\n getAppPropertiesValiditySchema,\n} from './schemas.js';\n\nconst EMPTY_SITE_TEMPLATE = '24bafe8a-7c80-4b63-8a71-08752062f246';\n\nexport class DevCenterClient {\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 createApp = async (app: V1App) => {\n try {\n const { data } = await pRetry(\n () => this.httpClient.request(createApp({ app })),\n this.retryOptions\n );\n\n return createAppSchema.parse(data).app;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToCreateDevCenterApp(),\n cause: e,\n });\n }\n };\n\n getAppSnapshot = async (req: GetAppRequest) => {\n const { data } = await pRetry(\n () => this.httpClient.request(getAppSnapshot(req)),\n this.retryOptions\n );\n\n return appSnapshotSchema.parse(data);\n };\n\n createDevSite = async () => {\n try {\n const { data } = await pRetry(\n () =>\n this.httpClient.request(\n createDevelopmentSite({\n templateId: EMPTY_SITE_TEMPLATE,\n })\n ),\n this.retryOptions\n );\n\n const { id, siteName } =\n createDevelopmentSiteSchema.parse(data).developmentSite;\n\n // 'createDevSite' is missing displayName and viewUrl but are always created with an empty viewUrl (site not published) and a display name based on site name\n const site = {\n id,\n displayName: siteName.replaceAll('-', ' '),\n viewUrl: '',\n };\n\n return site;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToCreateDevelopmentSite(),\n cause: e,\n });\n }\n };\n\n getDevSitesCount = async () => {\n try {\n const { data } = await pRetry(\n () => this.httpClient.request(getDevelopmentSites({})),\n this.retryOptions\n );\n\n return getDevelopmentSitesSchema.parse(data).developmentSites.length;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToGetDevelopmentSites(),\n cause: e,\n });\n }\n };\n\n getDeveloperApps = async () => {\n try {\n const { data } = await pRetry(\n () => this.httpClient.request(getDeveloperApps({})),\n this.retryOptions\n );\n\n return getDeveloperAppsSchema.parse(data).apps;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToGetDeveloperApps(),\n cause: e,\n });\n }\n };\n\n getDevSitesLimit = async () => {\n try {\n const { data } = await pRetry(\n () => this.httpClient.request(getDevelopmentSitesLimit({})),\n this.retryOptions\n );\n\n return getDevelopmentSitesLimitSchema.parse(data).limit;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToGetDevelopmentSitesLimit(),\n cause: e,\n });\n }\n };\n\n getAppValidationFailuresCount = async (appId: string, version?: string) => {\n try {\n const { data } = await this.httpClient.request(\n getAppValidationReport({ appId, version: version || 'latest' })\n );\n const result = getAppPropertiesValiditySchema.parse(data);\n const numOfFailingProperties = result.appPropertiesValidity.filter(\n (appProperty) => appProperty.failures.length > 0\n ).length;\n\n return numOfFailingProperties;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToGetAppValidity(),\n cause: e,\n });\n }\n };\n}\n",null,null,null,"import { z } from 'zod';\n\nexport const createAppSchema = z.object({\n app: z.object({\n id: z.string(),\n }),\n});\n\nexport const appSnapshotSchema = z.object({\n latestVersion: z.string(),\n});\n\nexport const createDevelopmentSiteSchema = z.object({\n developmentSite: z.object({\n id: z.string(),\n siteName: z.string(),\n }),\n});\n\nexport const getDevelopmentSitesSchema = z.object({\n developmentSites: z.array(z.object({})),\n});\n\nexport const getDevelopmentSitesLimitSchema = z.object({\n limit: z.number(),\n});\n\nexport const developerAppSchema = z.object({\n name: z.string(),\n appId: z.string(),\n});\n\nexport const getDeveloperAppsSchema = z.object({\n apps: z.array(developerAppSchema),\n});\n\nexport type DeveloperApp = z.TypeOf<typeof developerAppSchema>;\n\nexport const getAppPropertiesValiditySchema = z.object({\n appPropertiesValidity: z.array(\n z.object({\n failures: z.array(z.string()),\n })\n ),\n});\n","export { DevCenterClient } from './dev-center-client.js';\nexport type { DeveloperApp } from './schemas.js';\nexport { useDevCenterClient } from './useDevCenterClient.js';\n","import React, { type FC, type ReactNode, useCallback } from 'react';\nimport { match } from 'variant';\nimport { useDebugLog } from '@wix/cli-debug-log';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport { APP_CONFIG_PATH } from '@wix/cli-app-definitions';\nimport { useAsync, useExit, Spinner } from '@wix/cli-ui-kit';\nimport { type Site, useSiteListClient } from '@wix/site-list-client';\nimport { saveAppConfig } from '../files/app.config.js';\nimport { useProjectModel } from '../model.js';\nimport { ResolveSiteId } from './ResolveSiteId.js';\nimport { SiteIdContext } from './context.js';\nimport { SiteIdState } from './site-id-state.js';\nimport { resolveConfiguredSite } from './resolve-configured-site.js';\n\nexport const SiteIdProvider: FC<{\n siteId?: string;\n children: ReactNode | ((site: Site) => ReactNode);\n}> = ({ children, siteId }) => {\n const exit = useExit();\n const {\n model: { projectFolder },\n } = useProjectModel();\n const writeDebugLog = useDebugLog();\n const siteListClient = useSiteListClient();\n\n const { status, merge } = useAsync(\n async () =>\n resolveConfiguredSite({\n projectFolder,\n siteListClient,\n siteId,\n writeDebugLog,\n }),\n []\n );\n\n const setSite = useCallback(\n async (site: Site) => {\n try {\n await saveAppConfig(projectFolder, { siteId: site.id });\n merge({ result: SiteIdState.Resolved({ site }) });\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToSaveDevelopmentSite({\n path: APP_CONFIG_PATH,\n }),\n });\n }\n },\n [merge, projectFolder]\n );\n\n const handleResolveSiteId = useCallback(\n (site: Site) => setSite(site).catch(exit),\n [exit, setSite]\n );\n\n return match(status, {\n Error: () => null,\n Loading: () => <Spinner />,\n Success: ({ result: state }) => {\n return match(state, {\n NotConfigured: (variant) => (\n <ResolveSiteId state={variant} onSubmit={handleResolveSiteId} />\n ),\n NotFound: (variant) => (\n <ResolveSiteId state={variant} onSubmit={handleResolveSiteId} />\n ),\n Resolved: ({ site }) => (\n <SiteIdContext.Provider\n value={{\n site,\n setSite,\n }}\n >\n {typeof children === 'function' ? children(site) : children}\n </SiteIdContext.Provider>\n ),\n });\n },\n });\n};\n","import React, { type FC } from 'react';\nimport { match, constant } from 'variant';\nimport type { Site } from '@wix/site-list-client';\nimport { Alert, useExit } from '@wix/cli-ui-kit';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { SiteSelector } from '@wix/cli-site-selector';\nimport { useProjectModel } from '../model.js';\nimport type { SiteIdState } from './site-id-state.js';\n\ninterface Props {\n state: SiteIdState<'NotConfigured' | 'NotFound'>;\n onSubmit: (site: Site) => void;\n}\n\nexport const ResolveSiteId: FC<Props> = ({ state, onSubmit }) => {\n const exit = useExit();\n const { t } = useTranslation();\n const { model } = useProjectModel();\n\n return (\n <>\n {match(state, {\n NotConfigured: constant(\n <Alert type=\"insight\">{t('general.no_site_id_configured')}</Alert>\n ),\n NotFound: ({ id }) => (\n <Alert type=\"error\">{t('general.site_id_not_found', { id })}</Alert>\n ),\n })}\n <SiteSelector\n appId={model.config.appId}\n onSubmit={onSubmit}\n onError={exit}\n />\n </>\n );\n};\n","export { SiteSelector } from './SiteSelector.js';\n","import React, { type FC, useState } from 'react';\nimport { match } from 'variant';\nimport { I18nProvider, useTranslation } from '@wix/cli-i18n';\nimport type { Site } from '@wix/site-list-client';\nimport { Spinner, useAsync, useAsyncCallback } from '@wix/cli-ui-kit';\nimport { useDevCenterClient } from '@wix/dev-center-client';\nimport { useSiteListClient } from '@wix/site-list-client';\nimport { SiteTypeSelect, type SiteType } from './SiteTypeSelect.js';\nimport { CreateDevSite } from './CreateDevSite.js';\nimport messages from './messages.json';\nimport { SelectExistingSite } from './SelectExistingSite.js';\n\ninterface Props {\n appId: string;\n onSubmit: (site: Site) => void;\n onError: (error: unknown) => void;\n}\n\nexport const SiteSelector: FC<Props> = ({ appId, onSubmit, onError }) => {\n const { t } = useTranslation();\n const [siteType, setSiteType] = useState<SiteType | null>(null);\n const { createDevSite } = useDevCenterClient();\n const siteListClient = useSiteListClient();\n\n const { status } = useAsync(\n () =>\n siteListClient.querySites({\n query: {\n cursorPaging: {\n limit: 100,\n },\n },\n }),\n [],\n {\n onError,\n }\n );\n\n const createSite = useAsyncCallback(() => createDevSite(), {\n onError,\n });\n\n function handleSelectSiteType(siteType: SiteType) {\n setSiteType(siteType);\n if (siteType === 'create-dev-site') {\n createSite.execute();\n }\n }\n\n return (\n <I18nProvider messages={messages}>\n {match(status, {\n Error: () => null,\n Loading: () => <Spinner text={t('general.loading')} />,\n Success: ({ result: sites }) => (\n <>\n <SiteTypeSelect\n onSubmit={handleSelectSiteType}\n onError={onError}\n sites={sites}\n />\n {siteType === 'create-dev-site' && (\n <CreateDevSite\n status={createSite.status}\n appId={appId}\n onSubmit={onSubmit}\n onError={onError}\n />\n )}\n {siteType === 'select-existing-site' && (\n <SelectExistingSite\n sites={sites}\n appId={appId}\n onSubmit={onSubmit}\n onError={onError}\n />\n )}\n </>\n ),\n })}\n </I18nProvider>\n );\n};\n","import React, { type FC } from 'react';\nimport { match } from 'variant';\nimport { useTranslation } from '@wix/cli-i18n';\nimport {\n Spinner,\n SelectInput,\n useAsync,\n SelectOptionAvailability,\n} from '@wix/cli-ui-kit';\nimport { useDevCenterClient } from '@wix/dev-center-client';\nimport type { Site } from '@wix/site-list-client';\n\nexport type SiteType = 'create-dev-site' | 'select-existing-site';\ninterface Props {\n onSubmit: (siteType: SiteType) => void;\n onError: (error: unknown) => void;\n sites: Site[];\n}\n\nexport const SiteTypeSelect: FC<Props> = ({ onSubmit, onError, sites }) => {\n const { t } = useTranslation();\n const { getDevSitesCount, getDevSitesLimit } = useDevCenterClient();\n const { status } = useAsync(\n () => Promise.all([getDevSitesCount(), getDevSitesLimit()]),\n [],\n { onError }\n );\n\n return match(status, {\n Error: () => null,\n Loading: () => <Spinner text={t('general.loading')} />,\n Success: ({ result: [devSitesCount, devSitesLimit] }) => {\n const isDevSitesLimitReached = devSitesCount >= devSitesLimit;\n const userHasNoSites = sites.length === 0;\n\n return (\n <SelectInput<SiteType>\n label={t('site_type_select.label')}\n options={[\n {\n availability: userHasNoSites\n ? SelectOptionAvailability.Disabled({\n reason: t('site_type_select.no_sites'),\n })\n : SelectOptionAvailability.Enabled(),\n title: t('site_type_select.pick_existing_site'),\n value: 'select-existing-site',\n },\n {\n title: t('site_type_select.create_new_dev_site'),\n value: 'create-dev-site',\n availability: isDevSitesLimitReached\n ? SelectOptionAvailability.Disabled({\n reason: t('site_type_select.create_new_dev_site.disabled', {\n limit: devSitesLimit,\n }),\n })\n : SelectOptionAvailability.Enabled(),\n },\n ]}\n onSubmit={({ value }) => onSubmit(value)}\n />\n );\n },\n });\n};\n","import React, { type FC } from 'react';\nimport { match } from 'variant';\nimport { Trans, useTranslation } from '@wix/cli-i18n';\nimport type { AsyncCallbackStatus } from '@wix/cli-ui-kit';\nimport { Text, Spinner } from '@wix/cli-ui-kit';\nimport type { Site } from '@wix/site-list-client';\nimport { WaitForAppToBeInstalled } from './WaitForAppToBeInstalled.js';\n\ninterface Props {\n status: AsyncCallbackStatus<Site>;\n appId: string;\n onSubmit: (site: Site) => void;\n onError: (error: unknown) => void;\n}\n\nexport const CreateDevSite: FC<Props> = ({\n status,\n appId,\n onSubmit,\n onError,\n}) => {\n const { t } = useTranslation();\n\n return match(status, {\n NotRequested: () => null,\n Error: () => null,\n Loading: () => <Spinner text={t('create_dev_site.loading')} />,\n Success: ({ result }) => (\n <>\n <Trans\n i18nKey=\"create_dev_site.success\"\n components={[<Text skin=\"success\" bold />]}\n values={{ name: result.displayName }}\n />\n <WaitForAppToBeInstalled\n appId={appId}\n site={result}\n onSubmit={() => onSubmit(result)}\n onError={onError}\n />\n </>\n ),\n });\n};\n","import pWaitFor, { TimeoutError } from 'p-wait-for';\nimport React, { type FC } from 'react';\nimport { Trans } from '@wix/cli-i18n';\nimport { Alert, useAsync } from '@wix/cli-ui-kit';\nimport { useMetasiteManagerClient } from '@wix/metasite-manager-client';\nimport { isType, match, variant } from 'variant';\nimport { getTestOverrides } from '@wix/cli-test-overrides';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport type { Site } from '@wix/site-list-client';\nimport { OpenBrowser } from './OpenBrowser.js';\n\ninterface Props {\n site: Site;\n appId: string;\n onSubmit: () => void;\n onError: (error: unknown) => void;\n}\n\nexport const AppInstallData = variant({\n Success: {},\n Canceled: {},\n});\n\nfunction isAbortError(error: unknown) {\n return (\n error &&\n typeof error === 'object' &&\n 'name' in error &&\n error.name === 'AbortError'\n );\n}\n\nexport const WaitForAppToBeInstalled: FC<Props> = ({\n appId,\n site,\n onSubmit,\n onError,\n}) => {\n const { isAppInstalled } = useMetasiteManagerClient();\n\n const { status } = useAsync(\n async ({ signal }) => {\n const { appInstallationPollInterval } = getTestOverrides();\n\n try {\n await pWaitFor(() => isAppInstalled({ metaSiteId: site.id, appId }), {\n interval: appInstallationPollInterval ?? 2000,\n timeout: {\n milliseconds: 60 * 1000 * 2,\n signal,\n },\n });\n\n return AppInstallData.Success();\n } catch (error) {\n if (error instanceof TimeoutError) {\n throw new CliError({\n code: CliErrorCode.SiteSelectorTimedout(),\n cause: error,\n });\n }\n\n if (isAbortError(error)) {\n return AppInstallData.Canceled();\n }\n\n throw error;\n }\n },\n [],\n {\n onError,\n onSuccess: (result) => {\n if (isType(result, AppInstallData.Success)) {\n onSubmit();\n }\n },\n }\n );\n\n return match(status, {\n Error: () => null,\n Loading: () => <OpenBrowser siteId={site.id} appId={appId} />,\n Success: () => (\n <Alert type=\"success\">\n <Trans i18nKey=\"install_app_on_site.finished_successfully\" />\n </Alert>\n ),\n });\n};\n","export { useMetasiteManagerClient } from './useMetasiteManagerClient.js';\n","import { useMemo } from 'react';\nimport { useHttpClient } from '@wix/cli-http-client-react';\nimport { MetasiteManagerClient } from './metasite-manager-client.js';\n\nexport function useMetasiteManagerClient(): MetasiteManagerClient {\n const httpClient = useHttpClient({ type: 'general' });\n return useMemo(() => new MetasiteManagerClient(httpClient), [httpClient]);\n}\n","import { CliError, CliErrorCode } from '@wix/cli-error';\nimport type { HttpClient } from '@wix/cli-http-client';\nimport { clientSpecMapSchema } from './schemas.js';\n\nexport class MetasiteManagerClient {\n constructor(private readonly httpClient: HttpClient) {}\n\n public isAppInstalled = async ({\n metaSiteId,\n appId,\n }: {\n metaSiteId: string;\n appId: string;\n }) => {\n try {\n const { data } = await this.httpClient.request({\n url: `/_api/msm/v1/meta-site/editor-client-spec-map/${metaSiteId}`,\n });\n\n const clientSpecMap = clientSpecMapSchema.parse(data);\n\n const isInstalled = Object.values(clientSpecMap).some(\n (spec) => spec.appDefinitionId === appId && !spec.permissions?.revoked\n );\n\n return isInstalled;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToCheckIfAppInstalled(),\n cause: e,\n });\n }\n };\n}\n","import { z } from 'zod';\n\nexport const clientSpecMapSchema = z.record(\n z.object({\n appDefinitionId: z.string().optional(),\n permissions: z.object({ revoked: z.boolean() }).optional(),\n })\n);\n\nexport type ClientSpecMap = z.TypeOf<typeof clientSpecMapSchema>;\n","import React, { type FC } from 'react';\nimport { Key, useInput } from '@wix/cli-ui-kit';\nimport { Trans } from '@wix/cli-i18n';\nimport { openBrowser } from '@wix/user-browser';\n\ninterface Props {\n siteId: string;\n appId: string;\n}\n\nexport const OpenBrowser: FC<Props> = ({ siteId, appId }) => {\n useInput(async (input, key) => {\n if (key.return) {\n await openBrowser(\n `https://manage.wix.com/installer/install?metaSiteId=${siteId}&appId=${appId}&platform=cli&version=latest`\n );\n }\n });\n\n return (\n <>\n <Trans i18nKey=\"install_app_on_site.warning\" />\n <Trans\n i18nKey=\"install_app_on_site.warning.instructions\"\n components={[<Key value=\"enter\" />]}\n />\n </>\n );\n};\n","{\n \"general.loading\": \"Loading...\",\n \"site_type_select.label\": \"Select Development Site\",\n \"site_type_select.create_new_dev_site\": \"Create a new Development Site\",\n \"site_type_select.create_new_dev_site.disabled\": \"You have reached the maximum number of {limit} Development Sites\",\n \"site_type_select.pick_existing_site\": \"Pick an existing site\",\n \"site_type_select.no_sites\": \"No sites found\",\n \"create_dev_site.loading\": \"Creating your new Development Site...\",\n \"create_dev_site.success\": \"Development Site <0>{name}</0> created successfully! 🚀\",\n \"site_list_select.label\": \"Select Site\",\n \"install_app_on_site.warning\": \"Your new application needs to be installed on the selected Development Site\",\n \"install_app_on_site.warning.instructions\": \"Press <0/> to install the application in your browser\",\n \"install_app_on_site.finished_successfully\": \"App installed on Development Site.\"\n}\n","import React, { useState } from 'react';\nimport { Spinner, useAsyncCallback } from '@wix/cli-ui-kit';\nimport { useMetasiteManagerClient } from '@wix/metasite-manager-client';\nimport type { Site } from '@wix/site-list-client';\nimport { isType } from 'variant';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { WaitForAppToBeInstalled } from './WaitForAppToBeInstalled.js';\nimport { SiteListSelect } from './SiteListSelect.js';\n\ninterface Props {\n sites: Site[];\n appId: string;\n onSubmit: (site: Site) => void;\n onError: (error: unknown) => void;\n}\n\nexport const SelectExistingSite = ({\n sites,\n appId,\n onSubmit,\n onError,\n}: Props) => {\n const { t } = useTranslation();\n const { isAppInstalled } = useMetasiteManagerClient();\n const [siteToInstallAppOn, setSiteToInstallAppOn] = useState<Site | null>(\n null\n );\n const checkAppInstalled = useAsyncCallback(\n (_, site: Site) => isAppInstalled({ metaSiteId: site.id, appId }),\n {\n onError,\n }\n );\n\n async function handleSelectSite(site: Site) {\n const isInstalled = await checkAppInstalled.execute(site);\n if (isInstalled) {\n onSubmit(site);\n } else {\n setSiteToInstallAppOn(site);\n }\n }\n\n return (\n <>\n <SiteListSelect onSubmit={handleSelectSite} sites={sites} />\n {isType(checkAppInstalled.status, 'Loading') && (\n <Spinner text={t('general.loading')} />\n )}\n {siteToInstallAppOn && (\n <WaitForAppToBeInstalled\n appId={appId}\n site={siteToInstallAppOn}\n onSubmit={() => onSubmit(siteToInstallAppOn)}\n onError={onError}\n />\n )}\n </>\n );\n};\n","import React, { type FC } from 'react';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { SelectInput } from '@wix/cli-ui-kit';\nimport { type Site } from '@wix/site-list-client';\n\ninterface Props {\n onSubmit: (site: Site) => void;\n sites: Site[];\n}\n\nexport const SiteListSelect: FC<Props> = ({ onSubmit, sites }) => {\n const { t } = useTranslation();\n\n return (\n <SelectInput<Site>\n label={t('site_list_select.label')}\n options={sites.map((site) => ({\n key: site.id,\n title: site.displayName,\n description: site.viewUrl,\n value: site,\n }))}\n onSubmit={({ value }) => onSubmit(value)}\n />\n );\n};\n","import { useCallback, useMemo } from 'react';\nimport { isType, typeCatalog } from 'variant';\nimport type { PlatformType } from '@wix/cli-app-definitions';\nimport { useProjectModel } from '../../model.js';\nimport { DevCenterComponent } from '../../dev-center/components/dev-center-component.js';\n\nconst DevCenterComponentTypes = typeCatalog(DevCenterComponent);\ntype ExtensionType = keyof typeof DevCenterComponentTypes;\ntype ExtensionsMap = { [K in ExtensionType]: DevCenterComponent<K>[] };\nexport function useExtensions() {\n const { model } = useProjectModel();\n const extensionsByType = useMemo(\n () =>\n model.components.reduce<ExtensionsMap>(\n (acc, component) => {\n //eslint-disable-next-line @typescript-eslint/no-explicit-any\n acc[component.type].push(component as any);\n return acc;\n },\n {\n DashboardPage: [],\n DashboardSidebarCategory: [],\n EmbeddedScript: [],\n CustomElement: [],\n DashboardPagePlugin: [],\n DashboardMenuPlugin: [],\n DashboardModal: [],\n }\n ),\n [model.components]\n );\n\n const hasExtensions = useCallback(\n (extensionType?: ExtensionType) =>\n extensionType\n ? extensionsByType[extensionType].length > 0\n : model.components.length > 0,\n [extensionsByType, model.components]\n );\n\n const getExtensions = useCallback(\n <T extends ExtensionType>(extensionType: T) =>\n extensionsByType[extensionType],\n [extensionsByType]\n );\n\n const isPlatformExists = useCallback(\n (platformType: PlatformType) =>\n model.components.some((component) =>\n component.platforms.some(isType(platformType.type))\n ),\n [model.components]\n );\n\n const hasSinglePlatform = useCallback(\n (platformType: PlatformType) =>\n model.components.every(\n (component) =>\n component.platforms.some(isType(platformType.type)) ||\n component.platforms.length === 0\n ),\n [model.components]\n );\n\n return {\n getExtensions,\n hasExtensions,\n isPlatformExists,\n hasSinglePlatform,\n };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,CACC,MAAO,CACL,KAAAZ,EACA,QAAAF,CACF,GAEC,OAAOd,GAAa,WAAaA,EAASgB,CAAI,EAAIhB,CACrD,CAEJ,CAAC,CAEL,CAAC,CACH,EejFA6B,IACA,IAAAC,EAAoC,SADpC,OAAS,eAAAC,EAAa,WAAAC,OAAe,QAMrC,IAAMC,MAA0B,eAAYC,EAAkB,EAGvD,SAASC,IAAgB,CAC9B,GAAM,CAAE,MAAAC,CAAM,EAAIC,EAAgB,EAC5BC,EAAmBC,GACvB,IACEH,EAAM,WAAW,OACf,CAACI,EAAKC,KAEJD,EAAIC,EAAU,IAAI,EAAE,KAAKA,CAAgB,EAClCD,GAET,CACE,cAAe,CAAC,EAChB,yBAA0B,CAAC,EAC3B,eAAgB,CAAC,EACjB,cAAe,CAAC,EAChB,oBAAqB,CAAC,EACtB,oBAAqB,CAAC,EACtB,eAAgB,CAAC,CACnB,CACF,EACF,CAACJ,EAAM,UAAU,CACnB,EAEMM,EAAgBC,EACnBC,GACCA,EACIN,EAAiBM,CAAa,EAAE,OAAS,EACzCR,EAAM,WAAW,OAAS,EAChC,CAACE,EAAkBF,EAAM,UAAU,CACrC,EAEMS,EAAgBF,EACMC,GACxBN,EAAiBM,CAAa,EAChC,CAACN,CAAgB,CACnB,EAEMQ,EAAmBH,EACtBI,GACCX,EAAM,WAAW,KAAMK,GACrBA,EAAU,UAAU,QAAK,UAAOM,EAAa,IAAI,CAAC,CACpD,EACF,CAACX,EAAM,UAAU,CACnB,EAEMY,EAAoBL,EACvBI,GACCX,EAAM,WAAW,MACdK,GACCA,EAAU,UAAU,QAAK,UAAOM,EAAa,IAAI,CAAC,GAClDN,EAAU,UAAU,SAAW,CACnC,EACF,CAACL,EAAM,UAAU,CACnB,EAEA,MAAO,CACL,cAAAS,EACA,cAAAH,EACA,iBAAAI,EACA,kBAAAE,CACF,CACF","names":["init_esm_shims","useMemo","init_esm_shims","init_esm_shims","_actionProviderSPIConfig","_actionSPIConfig","_adminConfigurableTextInput","_authenticatorConfig","_commonImage","_component","_componentData","_editorPresence","_expectedInputs","_getAppInfoResponse","_getAppRequest","_getAppSnapshotResponse","_getDeveloperAppsRequest","_getDeveloperAppsResponse","_image","_multilingualTranslationSchema","_packageDimension","_packageType","_predefinedExpectedInput","_predefinedExpectedInputConfiguration","_presetEditorPresence","_schema","_shippingLabelCarrierSpiConfig","_shippingProviderConfig","_studioWidgetComponentData","_v1App","_v1CreateAppRequest","_v1CreateAppResponse","_v1SchemaField","_widgetComponentData","_widgetDisplay","_widgetOutOfIframeComponentData","resolveComWixpressAppserviceApiAppsUrl","opts","domainToMappings","resolveUrl","resolveWixDevcenterAppsV1AppsServiceUrl","createApp","payload","_a","serializer","_v1CreateAppRequest","_v1App","toReq","fromReq","fromRes","_v1CreateAppResponse","__createApp","host","serializedData","metadata","getAppSnapshot","payload","_a","serializer","_getAppRequest","toReq","fromReq","fromRes","_getAppSnapshotResponse","_actionProviderSPIConfig","_actionSPIConfig","_adminConfigurableTextInput","_authenticatorConfig","_commonImage","_component","_componentData","_editorPresence","_expectedInputs","_image","_multilingualTranslationSchema","_packageDimension","_packageType","_predefinedExpectedInput","_predefinedExpectedInputConfiguration","_presetEditorPresence","_schema","_shippingLabelCarrierSpiConfig","_shippingProviderConfig","_studioWidgetComponentData","_v1SchemaField","_widgetComponentData","_widgetDisplay","_widgetOutOfIframeComponentData","__getAppSnapshot","host","serializedData","metadata","resolveComWixpressAppserviceApiAppsUrl","toURLSearchParams","getDeveloperApps","payload","_a","serializer","_getDeveloperAppsRequest","toReq","fromReq","fromRes","_getDeveloperAppsResponse","_actionProviderSPIConfig","_actionSPIConfig","_adminConfigurableTextInput","_authenticatorConfig","_commonImage","_component","_componentData","_editorPresence","_expectedInputs","_getAppInfoResponse","_image","_multilingualTranslationSchema","_packageDimension","_packageType","_predefinedExpectedInput","_predefinedExpectedInputConfiguration","_presetEditorPresence","_schema","_shippingLabelCarrierSpiConfig","_shippingProviderConfig","_studioWidgetComponentData","_v1SchemaField","_widgetComponentData","_widgetDisplay","_widgetOutOfIframeComponentData","__getDeveloperApps","host","serializedData","metadata","resolveComWixpressAppserviceApiAppsUrl","toURLSearchParams","init_esm_shims","_createDevelopmentSiteRequest","_createDevelopmentSiteResponse","_getDevelopmentSitesLimitRequest","_getDevelopmentSitesLimitResponse","_getDevelopmentSitesRequest","_getDevelopmentSitesResponse","resolveComWixpressDevcenterDsmDevelopmentSitesManagerUrl","opts","domainToMappings","resolveUrl","createDevelopmentSite","payload","_a","serializer","_createDevelopmentSiteRequest","toReq","fromReq","fromRes","_createDevelopmentSiteResponse","__createDevelopmentSite","host","serializedData","metadata","resolveComWixpressDevcenterDsmDevelopmentSitesManagerUrl","getDevelopmentSites","_getDevelopmentSitesRequest","_getDevelopmentSitesResponse","__getDevelopmentSites","toURLSearchParams","getDevelopmentSitesLimit","_getDevelopmentSitesLimitRequest","_getDevelopmentSitesLimitResponse","__getDevelopmentSitesLimit","init_esm_shims","_getAppValidationReportRequest","_getAppValidationReportResponse","resolveComWixDevcenterAppValidationServiceUrl","opts","domainToMappings","resolveUrl","getAppValidationReport","payload","_a","serializer","_getAppValidationReportRequest","toReq","fromReq","fromRes","_getAppValidationReportResponse","__getAppValidationReport","host","serializedData","metadata","toURLSearchParams","init_esm_shims","createAppSchema","z","appSnapshotSchema","createDevelopmentSiteSchema","getDevelopmentSitesSchema","getDevelopmentSitesLimitSchema","developerAppSchema","getDeveloperAppsSchema","getAppPropertiesValiditySchema","EMPTY_SITE_TEMPLATE","DevCenterClient","httpClient","minRetryTimeout","getTestOverrides","app","data","pRetry","createApp","createAppSchema","e","CliError","CliErrorCode","req","getAppSnapshot","appSnapshotSchema","createDevelopmentSite","id","siteName","createDevelopmentSiteSchema","getDevelopmentSites","getDevelopmentSitesSchema","getDeveloperApps","getDeveloperAppsSchema","getDevelopmentSitesLimit","getDevelopmentSitesLimitSchema","appId","version","getAppValidationReport","getAppPropertiesValiditySchema","appProperty","useDevCenterClient","httpClient","useHttpClient","useMemo","DevCenterClient","init_esm_shims","init_esm_shims","import_variant","React","useCallback","init_esm_shims","import_variant","React","init_esm_shims","init_esm_shims","import_variant","React","useState","init_esm_shims","import_variant","React","SiteTypeSelect","onSubmit","onError","sites","t","useTranslation","getDevSitesCount","getDevSitesLimit","useDevCenterClient","status","useAsync","React","Spinner","devSitesCount","devSitesLimit","isDevSitesLimitReached","userHasNoSites","SelectInput","SelectOptionAvailability","value","init_esm_shims","import_variant","React","init_esm_shims","React","init_esm_shims","init_esm_shims","useMemo","init_esm_shims","init_esm_shims","clientSpecMapSchema","z","MetasiteManagerClient","httpClient","metaSiteId","appId","data","clientSpecMap","clientSpecMapSchema","spec","e","CliError","CliErrorCode","useMetasiteManagerClient","httpClient","useHttpClient","useMemo","MetasiteManagerClient","import_variant","init_esm_shims","React","OpenBrowser","siteId","appId","use_input_default","input","key","openBrowser","React","Trans","Key","AppInstallData","isAbortError","error","WaitForAppToBeInstalled","appId","site","onSubmit","onError","isAppInstalled","useMetasiteManagerClient","status","useAsync","signal","appInstallationPollInterval","getTestOverrides","pWaitFor","TimeoutError","CliError","CliErrorCode","result","React","OpenBrowser","Alert","Trans","CreateDevSite","status","appId","onSubmit","onError","t","useTranslation","React","Spinner","result","Trans","Text","WaitForAppToBeInstalled","messages_default","init_esm_shims","React","useState","import_variant","init_esm_shims","React","SiteListSelect","onSubmit","sites","t","useTranslation","React","SelectInput","site","value","SelectExistingSite","sites","appId","onSubmit","onError","t","useTranslation","isAppInstalled","useMetasiteManagerClient","siteToInstallAppOn","setSiteToInstallAppOn","useState","checkAppInstalled","useAsyncCallback","_","site","handleSelectSite","React","SiteListSelect","Spinner","WaitForAppToBeInstalled","SiteSelector","appId","onSubmit","onError","t","useTranslation","siteType","setSiteType","useState","createDevSite","useDevCenterClient","siteListClient","useSiteListClient","status","useAsync","createSite","useAsyncCallback","handleSelectSiteType","React","I18nProvider","messages_default","Spinner","sites","SiteTypeSelect","CreateDevSite","SelectExistingSite","ResolveSiteId","state","onSubmit","exit","useExit","t","useTranslation","model","useProjectModel","React","Alert","id","SiteSelector","SiteIdProvider","children","siteId","exit","useExit","projectFolder","useProjectModel","writeDebugLog","useDebugLog","siteListClient","useSiteListClient","status","merge","useAsync","resolveConfiguredSite","setSite","useCallback","site","saveAppConfig","SiteIdState","CliError","CliErrorCode","APP_CONFIG_PATH","handleResolveSiteId","React","Spinner","state","variant","ResolveSiteId","SiteIdContext","init_esm_shims","import_variant","useCallback","useMemo","DevCenterComponentTypes","DevCenterComponent","useExtensions","model","useProjectModel","extensionsByType","useMemo","acc","component","hasExtensions","useCallback","extensionType","getExtensions","isPlatformExists","platformType","hasSinglePlatform"]}
|
|
@@ -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-7WZDL63V.js";import{$ as un,O as Zs,W as eo,Y as to,_ as yi,a as Ws,aa as mi,ba as ro,c as Gr,ca as io,d as jr,da as ao,fa as ln,ha as Ai,ia as Ci,ja as fn,ka as no,la as so}from"./chunk-GNLLOWHY.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;
|
|
@@ -134,18 +134,16 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
|
|
|
134
134
|
render(createElement(SettingsPanel), document.getElementById('root'));
|
|
135
135
|
</script>
|
|
136
136
|
</body>
|
|
137
|
-
</html>`}S();var Tf=ra(Ws(),1);var Bf=(e,t)=>`/${e}${t==="dev"?"?component-hmr":""}`,og=(e,t)
|
|
137
|
+
</html>`}S();var Tf=ra(Ws(),1);var Bf=(e,t)=>`/${e}${t==="dev"?"?component-hmr":""}`,og=(e,t,i)=>`${e?e.local[0]:"/"}${t}${i==="dev"?"?custom-element-hmr":""}`,ug=/[?#].*$/s,bf=e=>e.replace(ug,""),wf=({initialModel:e,type:t,projectModelWatcher:i})=>{let{appId:r}=e.config,a=mi(e),n=Ci(e),s=fn(e),o;return{name:"wix:moduleBundle",resolveId(u){let l=bf(u);return a.has(l)||n.has(l)||s.has(l)?l:null},configureServer(u){o=u,t==="dev"&&i.onChange(l=>{a=mi(l);for(let f of a.keys()){let c=u.moduleGraph.getModuleById(f);c&&u.moduleGraph.invalidateModule(c)}n=Ci(l);for(let f of n.keys()){let c=u.moduleGraph.getModuleById(f);c&&u.moduleGraph.invalidateModule(c)}s=fn(l);for(let f of s.keys()){let c=u.moduleGraph.getModuleById(f);c&&u.moduleGraph.invalidateModule(c)}})},load(u){let l=bf(u),f=a.get(l)??n.get(l)??s.get(l);if(!f)return null;let c=f.id;if((0,Tf.isType)(f,"CustomElement")){if(n.has(l))return`
|
|
138
138
|
(async function () {
|
|
139
139
|
if (!window['React']) {
|
|
140
|
-
await
|
|
141
|
-
|
|
142
|
-
import('https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js')
|
|
143
|
-
]);
|
|
140
|
+
await import('https://unpkg.com/react@16.14.0/umd/react.production.min.js');
|
|
141
|
+
await import('https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js');
|
|
144
142
|
}
|
|
145
|
-
const { default: customElement } = await import('${og(
|
|
146
|
-
customElements.define('${
|
|
143
|
+
const { default: customElement } = await import('${og(t==="dev"?o.resolvedUrls:null,f.relativePath,t)}');
|
|
144
|
+
customElements.define('${f.tagName}', customElement);
|
|
147
145
|
})();
|
|
148
|
-
`;if(s.has(
|
|
146
|
+
`;if(s.has(l))return`export { default } from '${Bf(f.relativePanelPath,t)}';`}return`
|
|
149
147
|
(function () {
|
|
150
148
|
const mfKey = '__module_federation__containers';
|
|
151
149
|
window[mfKey] = window[mfKey] || {};
|
|
@@ -160,7 +158,7 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
|
|
|
160
158
|
},
|
|
161
159
|
};
|
|
162
160
|
|
|
163
|
-
window[mfKey]['${r}']['${
|
|
161
|
+
window[mfKey]['${r}']['${c}'] = () => import('${Bf(f.relativePath,t)}');
|
|
164
162
|
})();
|
|
165
163
|
`}}};S();var _f={global:"window"};function Nf(){return[{name:"fix-draft-js",apply:"serve",config:()=>({optimizeDeps:{esbuildOptions:{define:_f}}})},{name:"fix-draft-js",apply:"build",config:()=>({esbuild:{define:_f}})}]}S();S();var W0=ra(J0(),1);import{readFile as jm,writeFile as Ym,stat as zm}from"node:fs/promises";import Jm from"node:path";var Wm="wix-cli.pem",X0=30,Xm=[{name:"commonName",value:"localhost"},{name:"countryName",value:"US"},{shortName:"ST",value:"Virginia"},{name:"organizationName",value:"Dev"},{shortName:"OU",value:"Dev"}],$m=async()=>{let e=W0.default.generate(Xm,{days:X0});return e.private+e.cert},Zm=async e=>{let t=await zm(e).then(i=>i).catch(()=>null);return!t||Date.now()-t.ctime.valueOf()>X0*24*60*60*1e3},$0=async()=>{let e=Xs(),t=Jm.join(e,Wm);if(!await Zm(t)){let a=await jm(t,{encoding:"utf-8"});return{cert:a,key:a}}let r=await $m();return await $s(),await Ym(t,r,{encoding:"utf-8"}),{cert:r,key:r}};import{send as eA}from"vite";function Z0(){return{name:"wix:ssl",config:async e=>{try{let t=await $0();return{...e,server:{https:t},preview:{https:t}}}catch(t){throw new Gr({code:jr.FailedToGenerateSelfsignedCertificate(),cause:t})}},async configureServer(e){e.middlewares.use(async(t,i,r)=>t.url==="/"?eA(t,i,tA(),"html",{headers:e.config.server.headers}):r())}}}function tA(){return`<!DOCTYPE html>
|
|
166
164
|
<html>
|
|
@@ -173,4 +171,4 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
|
|
|
173
171
|
You can close this browser tab and return to the terminal to continue working.
|
|
174
172
|
</body>
|
|
175
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};
|
|
176
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-EQI25LY6.js.map
|