@wix/cli 1.1.170 → 1.1.172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/build/{ConnectWixVibeCommand-Q6HKX3QQ.js → ConnectWixVibeCommand-KIJGKKU7.js} +18 -18
  2. package/build/{DevCommand-CPE5YZ3A.js → DevCommand-4DU5K2YB.js} +684 -687
  3. package/build/{DevCommand-CPE5YZ3A.js.map → DevCommand-4DU5K2YB.js.map} +1 -1
  4. package/build/{DevCommand-TOP6EWUO.js → DevCommand-E2GDP53S.js} +20 -20
  5. package/build/{DevCommand-KGNTYNMF.js → DevCommand-FQQKVVSE.js} +16 -16
  6. package/build/{EnvPullCommand-2CEYL4OE.js → EnvPullCommand-7Q2CKNUA.js} +13 -13
  7. package/build/{EnvRemoveCommand-CISQNNQ6.js → EnvRemoveCommand-2AWVLYUN.js} +12 -12
  8. package/build/{EnvSetCommand-ZJOIW426.js → EnvSetCommand-KX3UD2NC.js} +12 -12
  9. package/build/{GenerateCommand-NXA6EG5K.js → GenerateCommand-B4O6OMPP.js} +15 -15
  10. package/build/{InstallCommand-6DGT7YHP.js → InstallCommand-WYZ35LO3.js} +18 -18
  11. package/build/{LoginCommand-ZNGSWUC4.js → LoginCommand-UA5AXMIW.js} +10 -10
  12. package/build/{LogoutCommand-5WY7Q7SP.js → LogoutCommand-AMLINDCX.js} +7 -7
  13. package/build/{PreviewCommand-JNQVCZ3K.js → PreviewCommand-EKLSEBTO.js} +20 -20
  14. package/build/{PreviewCommand-H5ZKPPSG.js → PreviewCommand-HNNE3IQA.js} +20 -20
  15. package/build/PreviewCommand-ZJL24YNT.js +42 -0
  16. package/build/{PromoteCommand-OOBVTIQG.js → PromoteCommand-LJOD2KTP.js} +23 -23
  17. package/build/PromoteCommand-LJOD2KTP.js.map +1 -0
  18. package/build/{PublishCommand-BETMAE65.js → PublishCommand-ALGZLJ75.js} +20 -20
  19. package/build/{ReleaseCommand-VAO5I7ND.js → ReleaseCommand-26N5QQKJ.js} +32 -35
  20. package/build/ReleaseCommand-26N5QQKJ.js.map +1 -0
  21. package/build/{TranslationPullCommand-I5R5CQX6.js → TranslationPullCommand-PPK4DQST.js} +13 -13
  22. package/build/{TranslationPushCommand-FF636U6C.js → TranslationPushCommand-VDTG2MUL.js} +14 -14
  23. package/build/{UninstallCommand-XOHE5WYZ.js → UninstallCommand-7FGLDGPF.js} +18 -18
  24. package/build/{WhoamiCommand-I6NEMI5H.js → WhoamiCommand-OOFLC3YV.js} +3 -3
  25. package/build/{chunk-BGDQAKCH.js → chunk-27M67A2C.js} +5 -5
  26. package/build/{chunk-DCYBYMTU.js → chunk-2S646S2H.js} +2 -2
  27. package/build/{chunk-NOAYWPSU.js → chunk-3CE3ADYU.js} +1 -2
  28. package/build/{chunk-NOAYWPSU.js.map → chunk-3CE3ADYU.js.map} +1 -1
  29. package/build/{chunk-CACHFOBS.js → chunk-4IRBPG7W.js} +4 -4
  30. package/build/chunk-4UN7DYL3.js +2296 -0
  31. package/build/chunk-4UN7DYL3.js.map +1 -0
  32. package/build/{chunk-7DVE34NP.js → chunk-53YJHPBI.js} +3 -3
  33. package/build/{chunk-HSLEP2DR.js → chunk-54GMQ4VM.js} +6 -6
  34. package/build/{chunk-GJR445ET.js → chunk-5HYWD5OJ.js} +8 -8
  35. package/build/{chunk-WKYOTFRN.js → chunk-67Z5ZAFQ.js} +3 -3
  36. package/build/{chunk-PEWZZDIF.js → chunk-6YUOMTJI.js} +4 -4
  37. package/build/{chunk-2ADUYQPH.js → chunk-72ARQVQH.js} +8 -8
  38. package/build/{chunk-VB2TITLQ.js → chunk-7T3EKIJJ.js} +2 -2
  39. package/build/{chunk-3GBGKPOW.js → chunk-A26UCQED.js} +6 -6
  40. package/build/{chunk-R3BR7GCO.js → chunk-ACLPOGN4.js} +7 -7
  41. package/build/{chunk-NUR34CWO.js → chunk-AHLWUC45.js} +7 -7
  42. package/build/{chunk-NDLMWKGS.js → chunk-AY424OCT.js} +2 -2
  43. package/build/{chunk-K7CPZ76V.js → chunk-CHCBIG4Y.js} +31 -12
  44. package/build/chunk-CHCBIG4Y.js.map +1 -0
  45. package/build/{chunk-NDPNW3G7.js → chunk-DKJTXP77.js} +581 -565
  46. package/build/chunk-DKJTXP77.js.map +1 -0
  47. package/build/{chunk-EC2JRUEW.js → chunk-DKM6CPJJ.js} +18 -39
  48. package/build/chunk-DKM6CPJJ.js.map +1 -0
  49. package/build/{chunk-XPLEOWFP.js → chunk-DLQYNBIJ.js} +8 -8
  50. package/build/{chunk-ZSN2UURP.js → chunk-DSOV6S2I.js} +2 -2
  51. package/build/{chunk-5CKH3OMW.js → chunk-F3ENVXDM.js} +2 -2
  52. package/build/{chunk-2ZIXT2TW.js → chunk-F7TY6WZQ.js} +3 -3
  53. package/build/{chunk-VTGHBBDO.js → chunk-FUKPGCQD.js} +9 -7
  54. package/build/{chunk-VTGHBBDO.js.map → chunk-FUKPGCQD.js.map} +1 -1
  55. package/build/{chunk-7VNDLUNH.js → chunk-G2747YFO.js} +3 -3
  56. package/build/{chunk-XHZ7L7ZR.js → chunk-GCJEBW76.js} +4 -4
  57. package/build/{chunk-JDIZDTXS.js → chunk-H7Q43T5H.js} +3 -3
  58. package/build/{chunk-WK2TZLIJ.js → chunk-HF7ZY6V3.js} +8 -8
  59. package/build/{chunk-MPJ57O4V.js → chunk-HLI27S45.js} +8 -8
  60. package/build/{chunk-GWIV2MUG.js → chunk-I6TYDSHA.js} +5 -5
  61. package/build/{chunk-GWIV2MUG.js.map → chunk-I6TYDSHA.js.map} +1 -1
  62. package/build/{chunk-OUSNXB4Y.js → chunk-IDZ7LVEQ.js} +8 -8
  63. package/build/{chunk-X7A3443W.js → chunk-JBJALC7X.js} +2 -2
  64. package/build/{chunk-DKBAJT66.js → chunk-JVGJ4FZ4.js} +4 -4
  65. package/build/{chunk-QF3VJ2H7.js → chunk-K76ZNW4M.js} +3 -3
  66. package/build/{chunk-PWGZLHQK.js → chunk-NSAYYOAD.js} +4 -4
  67. package/build/{chunk-KP4B6J6V.js → chunk-Q3SNV2ZI.js} +7 -7
  68. package/build/{chunk-4B4USTTE.js → chunk-QPXSKNWH.js} +2 -2
  69. package/build/{chunk-VFMUVMEB.js → chunk-SBLFYQMG.js} +7 -7
  70. package/build/{chunk-2XVCXR7D.js → chunk-SXOKVWVI.js} +3 -3
  71. package/build/{chunk-HNBL2TIV.js → chunk-TPK34QMT.js} +6 -6
  72. package/build/{chunk-YZ4UFXM6.js → chunk-UKSTKG3S.js} +6 -6
  73. package/build/{chunk-3MSD7RGO.js → chunk-VUBHOOKQ.js} +5 -5
  74. package/build/{chunk-J6S3EQQP.js → chunk-WOZ6KIZG.js} +2 -2
  75. package/build/{chunk-TIX2YHCH.js → chunk-WRGF3UGM.js} +2 -2
  76. package/build/{chunk-KA7B5CAK.js → chunk-WYSWF633.js} +2 -2
  77. package/build/{chunk-OTHELDGX.js → chunk-X3J6OEB3.js} +4 -4
  78. package/build/{chunk-44DCPIQ7.js → chunk-XQZEZCCB.js} +3 -3
  79. package/build/{chunk-FIOP5PUA.js → chunk-Y5Q3BCOG.js} +2 -2
  80. package/build/{chunk-NKFKI5QG.js → chunk-Y6NREY5O.js} +13 -13
  81. package/build/chunk-Y6NREY5O.js.map +1 -0
  82. package/build/{chunk-4VPH7IPB.js → chunk-YG7BHIDS.js} +4 -4
  83. package/build/{chunk-WDR4N2AO.js → chunk-YJL6IMFG.js} +2 -2
  84. package/build/{chunk-573GMKPX.js → chunk-ZD5ST4JO.js} +4 -4
  85. package/build/{dev-NUESCEVU.js → dev-4DN64RSH.js} +24 -24
  86. package/build/{env-pull-BZWGRQQO.js → env-pull-5WNRGLB2.js} +15 -15
  87. package/build/index.js +25 -25
  88. package/build/{install-5QY6FB3C.js → install-CTG46BLO.js} +16 -16
  89. package/build/{preview-TLNTYO7B.js → preview-DOADOFSK.js} +22 -22
  90. package/build/{publish-PZE3HY7O.js → publish-EJQXOMGD.js} +17 -17
  91. package/build/{render-command-TBSJTMV6.js → render-command-AGVMBNEJ.js} +13 -13
  92. package/build/{render-command-PV4UUGJI.js → render-command-TCA6HICJ.js} +13 -13
  93. package/build/{render-command-KQ4IDPLN.js → render-command-TRV5I43F.js} +12 -12
  94. package/build/{render-command-MU7YBPHN.js → render-command-WBYIU5U5.js} +12 -12
  95. package/build/{render-command-6YBX3NU3.js → render-command-ZJ5JYKUQ.js} +12 -12
  96. package/build/{run-command-APAJAUCI.js → run-command-EKJDEG5L.js} +9 -9
  97. package/build/{src-OI432PPT.js → src-3ZBBXCAH.js} +6 -6
  98. package/build/{src-LLXBSZX5.js → src-F5Z7UHIR.js} +4 -4
  99. package/build/{src-QWBGBSUZ.js → src-M77RHWYF.js} +4 -4
  100. package/build/{src-GY5U6BDS.js → src-PAJQGRNK.js} +7 -7
  101. package/build/{src-PTASZH6I.js → src-PISRGKGS.js} +14 -14
  102. package/build/{src-DJZLSCWD.js → src-SUVZIKY7.js} +2 -2
  103. package/build/{src-ZBR6LJQI.js → src-YTR6KXCL.js} +42 -45
  104. package/build/{src-ZBR6LJQI.js.map → src-YTR6KXCL.js.map} +1 -1
  105. package/build/{src-UJLFJRCE.js → src-ZYG64BGH.js} +17 -17
  106. package/build/{sync-types-GJTS6APS.js → sync-types-BH3DJJPH.js} +12 -12
  107. package/build/{translation-pull-UY4GMO2F.js → translation-pull-ZRMKFKZR.js} +15 -15
  108. package/build/{translation-push-YPS3CBGN.js → translation-push-CD5FFJJ5.js} +16 -16
  109. package/build/{uninstall-FKDQ3SEX.js → uninstall-CKS6ONC4.js} +16 -16
  110. package/package.json +2 -2
  111. package/build/PreviewCommand-2FAXJTIC.js +0 -42
  112. package/build/PromoteCommand-OOBVTIQG.js.map +0 -1
  113. package/build/ReleaseCommand-VAO5I7ND.js.map +0 -1
  114. package/build/chunk-2IJTJJEM.js +0 -29
  115. package/build/chunk-2IJTJJEM.js.map +0 -1
  116. package/build/chunk-EC2JRUEW.js.map +0 -1
  117. package/build/chunk-K7CPZ76V.js.map +0 -1
  118. package/build/chunk-NDPNW3G7.js.map +0 -1
  119. package/build/chunk-NKFKI5QG.js.map +0 -1
  120. package/build/chunk-Q2PALYEZ.js +0 -810
  121. package/build/chunk-Q2PALYEZ.js.map +0 -1
  122. /package/build/{ConnectWixVibeCommand-Q6HKX3QQ.js.map → ConnectWixVibeCommand-KIJGKKU7.js.map} +0 -0
  123. /package/build/{DevCommand-TOP6EWUO.js.map → DevCommand-E2GDP53S.js.map} +0 -0
  124. /package/build/{DevCommand-KGNTYNMF.js.map → DevCommand-FQQKVVSE.js.map} +0 -0
  125. /package/build/{EnvPullCommand-2CEYL4OE.js.map → EnvPullCommand-7Q2CKNUA.js.map} +0 -0
  126. /package/build/{EnvRemoveCommand-CISQNNQ6.js.map → EnvRemoveCommand-2AWVLYUN.js.map} +0 -0
  127. /package/build/{EnvSetCommand-ZJOIW426.js.map → EnvSetCommand-KX3UD2NC.js.map} +0 -0
  128. /package/build/{GenerateCommand-NXA6EG5K.js.map → GenerateCommand-B4O6OMPP.js.map} +0 -0
  129. /package/build/{InstallCommand-6DGT7YHP.js.map → InstallCommand-WYZ35LO3.js.map} +0 -0
  130. /package/build/{LoginCommand-ZNGSWUC4.js.map → LoginCommand-UA5AXMIW.js.map} +0 -0
  131. /package/build/{LogoutCommand-5WY7Q7SP.js.map → LogoutCommand-AMLINDCX.js.map} +0 -0
  132. /package/build/{PreviewCommand-JNQVCZ3K.js.map → PreviewCommand-EKLSEBTO.js.map} +0 -0
  133. /package/build/{PreviewCommand-H5ZKPPSG.js.map → PreviewCommand-HNNE3IQA.js.map} +0 -0
  134. /package/build/{PreviewCommand-2FAXJTIC.js.map → PreviewCommand-ZJL24YNT.js.map} +0 -0
  135. /package/build/{PublishCommand-BETMAE65.js.map → PublishCommand-ALGZLJ75.js.map} +0 -0
  136. /package/build/{TranslationPullCommand-I5R5CQX6.js.map → TranslationPullCommand-PPK4DQST.js.map} +0 -0
  137. /package/build/{TranslationPushCommand-FF636U6C.js.map → TranslationPushCommand-VDTG2MUL.js.map} +0 -0
  138. /package/build/{UninstallCommand-XOHE5WYZ.js.map → UninstallCommand-7FGLDGPF.js.map} +0 -0
  139. /package/build/{WhoamiCommand-I6NEMI5H.js.map → WhoamiCommand-OOFLC3YV.js.map} +0 -0
  140. /package/build/{chunk-BGDQAKCH.js.map → chunk-27M67A2C.js.map} +0 -0
  141. /package/build/{chunk-DCYBYMTU.js.map → chunk-2S646S2H.js.map} +0 -0
  142. /package/build/{chunk-CACHFOBS.js.map → chunk-4IRBPG7W.js.map} +0 -0
  143. /package/build/{chunk-7DVE34NP.js.map → chunk-53YJHPBI.js.map} +0 -0
  144. /package/build/{chunk-HSLEP2DR.js.map → chunk-54GMQ4VM.js.map} +0 -0
  145. /package/build/{chunk-GJR445ET.js.map → chunk-5HYWD5OJ.js.map} +0 -0
  146. /package/build/{chunk-WKYOTFRN.js.map → chunk-67Z5ZAFQ.js.map} +0 -0
  147. /package/build/{chunk-PEWZZDIF.js.map → chunk-6YUOMTJI.js.map} +0 -0
  148. /package/build/{chunk-2ADUYQPH.js.map → chunk-72ARQVQH.js.map} +0 -0
  149. /package/build/{chunk-VB2TITLQ.js.map → chunk-7T3EKIJJ.js.map} +0 -0
  150. /package/build/{chunk-3GBGKPOW.js.map → chunk-A26UCQED.js.map} +0 -0
  151. /package/build/{chunk-R3BR7GCO.js.map → chunk-ACLPOGN4.js.map} +0 -0
  152. /package/build/{chunk-NUR34CWO.js.map → chunk-AHLWUC45.js.map} +0 -0
  153. /package/build/{chunk-NDLMWKGS.js.map → chunk-AY424OCT.js.map} +0 -0
  154. /package/build/{chunk-XPLEOWFP.js.map → chunk-DLQYNBIJ.js.map} +0 -0
  155. /package/build/{chunk-ZSN2UURP.js.map → chunk-DSOV6S2I.js.map} +0 -0
  156. /package/build/{chunk-5CKH3OMW.js.map → chunk-F3ENVXDM.js.map} +0 -0
  157. /package/build/{chunk-2ZIXT2TW.js.map → chunk-F7TY6WZQ.js.map} +0 -0
  158. /package/build/{chunk-7VNDLUNH.js.map → chunk-G2747YFO.js.map} +0 -0
  159. /package/build/{chunk-XHZ7L7ZR.js.map → chunk-GCJEBW76.js.map} +0 -0
  160. /package/build/{chunk-JDIZDTXS.js.map → chunk-H7Q43T5H.js.map} +0 -0
  161. /package/build/{chunk-WK2TZLIJ.js.map → chunk-HF7ZY6V3.js.map} +0 -0
  162. /package/build/{chunk-MPJ57O4V.js.map → chunk-HLI27S45.js.map} +0 -0
  163. /package/build/{chunk-OUSNXB4Y.js.map → chunk-IDZ7LVEQ.js.map} +0 -0
  164. /package/build/{chunk-X7A3443W.js.map → chunk-JBJALC7X.js.map} +0 -0
  165. /package/build/{chunk-DKBAJT66.js.map → chunk-JVGJ4FZ4.js.map} +0 -0
  166. /package/build/{chunk-QF3VJ2H7.js.map → chunk-K76ZNW4M.js.map} +0 -0
  167. /package/build/{chunk-PWGZLHQK.js.map → chunk-NSAYYOAD.js.map} +0 -0
  168. /package/build/{chunk-KP4B6J6V.js.map → chunk-Q3SNV2ZI.js.map} +0 -0
  169. /package/build/{chunk-4B4USTTE.js.map → chunk-QPXSKNWH.js.map} +0 -0
  170. /package/build/{chunk-VFMUVMEB.js.map → chunk-SBLFYQMG.js.map} +0 -0
  171. /package/build/{chunk-2XVCXR7D.js.map → chunk-SXOKVWVI.js.map} +0 -0
  172. /package/build/{chunk-HNBL2TIV.js.map → chunk-TPK34QMT.js.map} +0 -0
  173. /package/build/{chunk-YZ4UFXM6.js.map → chunk-UKSTKG3S.js.map} +0 -0
  174. /package/build/{chunk-3MSD7RGO.js.map → chunk-VUBHOOKQ.js.map} +0 -0
  175. /package/build/{chunk-J6S3EQQP.js.map → chunk-WOZ6KIZG.js.map} +0 -0
  176. /package/build/{chunk-TIX2YHCH.js.map → chunk-WRGF3UGM.js.map} +0 -0
  177. /package/build/{chunk-KA7B5CAK.js.map → chunk-WYSWF633.js.map} +0 -0
  178. /package/build/{chunk-OTHELDGX.js.map → chunk-X3J6OEB3.js.map} +0 -0
  179. /package/build/{chunk-44DCPIQ7.js.map → chunk-XQZEZCCB.js.map} +0 -0
  180. /package/build/{chunk-FIOP5PUA.js.map → chunk-Y5Q3BCOG.js.map} +0 -0
  181. /package/build/{chunk-4VPH7IPB.js.map → chunk-YG7BHIDS.js.map} +0 -0
  182. /package/build/{chunk-WDR4N2AO.js.map → chunk-YJL6IMFG.js.map} +0 -0
  183. /package/build/{chunk-573GMKPX.js.map → chunk-ZD5ST4JO.js.map} +0 -0
  184. /package/build/{dev-NUESCEVU.js.map → dev-4DN64RSH.js.map} +0 -0
  185. /package/build/{env-pull-BZWGRQQO.js.map → env-pull-5WNRGLB2.js.map} +0 -0
  186. /package/build/{install-5QY6FB3C.js.map → install-CTG46BLO.js.map} +0 -0
  187. /package/build/{preview-TLNTYO7B.js.map → preview-DOADOFSK.js.map} +0 -0
  188. /package/build/{publish-PZE3HY7O.js.map → publish-EJQXOMGD.js.map} +0 -0
  189. /package/build/{render-command-TBSJTMV6.js.map → render-command-AGVMBNEJ.js.map} +0 -0
  190. /package/build/{render-command-PV4UUGJI.js.map → render-command-TCA6HICJ.js.map} +0 -0
  191. /package/build/{render-command-KQ4IDPLN.js.map → render-command-TRV5I43F.js.map} +0 -0
  192. /package/build/{render-command-MU7YBPHN.js.map → render-command-WBYIU5U5.js.map} +0 -0
  193. /package/build/{render-command-6YBX3NU3.js.map → render-command-ZJ5JYKUQ.js.map} +0 -0
  194. /package/build/{run-command-APAJAUCI.js.map → run-command-EKJDEG5L.js.map} +0 -0
  195. /package/build/{src-OI432PPT.js.map → src-3ZBBXCAH.js.map} +0 -0
  196. /package/build/{src-DJZLSCWD.js.map → src-F5Z7UHIR.js.map} +0 -0
  197. /package/build/{src-GY5U6BDS.js.map → src-M77RHWYF.js.map} +0 -0
  198. /package/build/{src-LLXBSZX5.js.map → src-PAJQGRNK.js.map} +0 -0
  199. /package/build/{src-PTASZH6I.js.map → src-PISRGKGS.js.map} +0 -0
  200. /package/build/{src-QWBGBSUZ.js.map → src-SUVZIKY7.js.map} +0 -0
  201. /package/build/{src-UJLFJRCE.js.map → src-ZYG64BGH.js.map} +0 -0
  202. /package/build/{sync-types-GJTS6APS.js.map → sync-types-BH3DJJPH.js.map} +0 -0
  203. /package/build/{translation-pull-UY4GMO2F.js.map → translation-pull-ZRMKFKZR.js.map} +0 -0
  204. /package/build/{translation-push-YPS3CBGN.js.map → translation-push-CD5FFJJ5.js.map} +0 -0
  205. /package/build/{uninstall-FKDQ3SEX.js.map → uninstall-CKS6ONC4.js.map} +0 -0
@@ -2,34 +2,34 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  useTunnel
5
- } from "./chunk-R3BR7GCO.js";
5
+ } from "./chunk-ACLPOGN4.js";
6
6
  import {
7
7
  useMetasiteManagerClient,
8
8
  useWixCliAppBi
9
- } from "./chunk-HNBL2TIV.js";
9
+ } from "./chunk-TPK34QMT.js";
10
10
  import {
11
11
  RedirectLink,
12
- useARMClient,
12
+ useDevCenterOverridesClient,
13
13
  useUpdateDeploymentTopology
14
- } from "./chunk-Q2PALYEZ.js";
14
+ } from "./chunk-4UN7DYL3.js";
15
15
  import {
16
16
  useDevCenterClient
17
- } from "./chunk-YZ4UFXM6.js";
17
+ } from "./chunk-UKSTKG3S.js";
18
18
  import {
19
19
  PlatformLink
20
- } from "./chunk-J6S3EQQP.js";
20
+ } from "./chunk-WOZ6KIZG.js";
21
21
  import {
22
22
  OnboardingState,
23
23
  useVeloClient
24
- } from "./chunk-WK2TZLIJ.js";
25
- import "./chunk-DCYBYMTU.js";
24
+ } from "./chunk-HF7ZY6V3.js";
25
+ import "./chunk-2S646S2H.js";
26
26
  import "./chunk-MVBGFP6D.js";
27
- import "./chunk-KA7B5CAK.js";
28
- import "./chunk-X7A3443W.js";
27
+ import "./chunk-WYSWF633.js";
28
+ import "./chunk-JBJALC7X.js";
29
29
  import {
30
30
  createPackageManager,
31
31
  getRepoType
32
- } from "./chunk-JDIZDTXS.js";
32
+ } from "./chunk-H7Q43T5H.js";
33
33
  import {
34
34
  execa
35
35
  } from "./chunk-2R5BII2J.js";
@@ -47,18 +47,18 @@ import {
47
47
  getDevLogPath,
48
48
  looseComponentSchema,
49
49
  parseLooseAppManifest,
50
- useProjectModel
51
- } from "./chunk-PEWZZDIF.js";
50
+ useProjectModel,
51
+ useSiteConfig
52
+ } from "./chunk-6YUOMTJI.js";
52
53
  import {
53
54
  useHttpClient
54
- } from "./chunk-4B4USTTE.js";
55
+ } from "./chunk-QPXSKNWH.js";
55
56
  import {
56
57
  usePanoramaMethodLogger
57
- } from "./chunk-K7CPZ76V.js";
58
+ } from "./chunk-CHCBIG4Y.js";
58
59
  import {
59
60
  BiProvider,
60
61
  ErrorViewer,
61
- SiteAuthProvider,
62
62
  TimeoutError,
63
63
  openBrowser,
64
64
  pRetry,
@@ -68,16 +68,16 @@ import {
68
68
  useBiLogger,
69
69
  useDebugLog,
70
70
  useErrorReporter
71
- } from "./chunk-EC2JRUEW.js";
71
+ } from "./chunk-DKM6CPJJ.js";
72
72
  import {
73
73
  wixCliAction,
74
74
  wixCliAppFlowStepsAnswers
75
- } from "./chunk-NDPNW3G7.js";
75
+ } from "./chunk-DKJTXP77.js";
76
76
  import {
77
77
  I18nProvider,
78
78
  Trans,
79
79
  useTranslation
80
- } from "./chunk-NDLMWKGS.js";
80
+ } from "./chunk-AY424OCT.js";
81
81
  import "./chunk-KJ37XZQA.js";
82
82
  import {
83
83
  Alert,
@@ -95,7 +95,7 @@ import {
95
95
  useAsyncCallback,
96
96
  useExit,
97
97
  use_input_default
98
- } from "./chunk-FIOP5PUA.js";
98
+ } from "./chunk-Y5Q3BCOG.js";
99
99
  import {
100
100
  require_react
101
101
  } from "./chunk-YAIN7HW3.js";
@@ -107,7 +107,7 @@ import "./chunk-C4SUTB4O.js";
107
107
  import {
108
108
  readUserConfig,
109
109
  updateUserConfig
110
- } from "./chunk-5CKH3OMW.js";
110
+ } from "./chunk-F3ENVXDM.js";
111
111
  import "./chunk-Q5T35E2T.js";
112
112
  import {
113
113
  getTestOverrides
@@ -117,7 +117,7 @@ import {
117
117
  pathExists,
118
118
  readJson,
119
119
  writeJson
120
- } from "./chunk-ZSN2UURP.js";
120
+ } from "./chunk-DSOV6S2I.js";
121
121
  import {
122
122
  external_exports
123
123
  } from "./chunk-F43XHKVL.js";
@@ -125,7 +125,7 @@ import {
125
125
  CliError,
126
126
  CliErrorCode,
127
127
  require_lib
128
- } from "./chunk-NOAYWPSU.js";
128
+ } from "./chunk-3CE3ADYU.js";
129
129
  import {
130
130
  __commonJS,
131
131
  __dirname,
@@ -3046,9 +3046,9 @@ ${trace}`);
3046
3046
  function isMemberExpressionLike(node) {
3047
3047
  return (0, _index.isMemberExpression)(node) || (0, _index.isMetaProperty)(node);
3048
3048
  }
3049
- function matchesPattern(member, match13, allowPartial) {
3049
+ function matchesPattern(member, match12, allowPartial) {
3050
3050
  if (!isMemberExpressionLike(member)) return false;
3051
- const parts = Array.isArray(match13) ? match13 : match13.split(".");
3051
+ const parts = Array.isArray(match12) ? match12 : match12.split(".");
3052
3052
  const nodes = [];
3053
3053
  let node;
3054
3054
  for (node = member; isMemberExpressionLike(node); node = (_object = node.object) != null ? _object : node.meta) {
@@ -3088,8 +3088,8 @@ ${trace}`);
3088
3088
  });
3089
3089
  exports2.default = buildMatchMemberExpression;
3090
3090
  var _matchesPattern = require_matchesPattern();
3091
- function buildMatchMemberExpression(match13, allowPartial) {
3092
- const parts = match13.split(".");
3091
+ function buildMatchMemberExpression(match12, allowPartial) {
3092
+ const parts = match12.split(".");
3093
3093
  return (member) => (0, _matchesPattern.default)(member, parts, allowPartial);
3094
3094
  }
3095
3095
  }
@@ -3519,8 +3519,8 @@ ${trace}`);
3519
3519
  default:
3520
3520
  if (ch >= 48 && ch <= 55) {
3521
3521
  const startPos = pos2 - 1;
3522
- const match13 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
3523
- let octalStr = match13[0];
3522
+ const match12 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
3523
+ let octalStr = match12[0];
3524
3524
  let octal = parseInt(octalStr, 8);
3525
3525
  if (octal > 255) {
3526
3526
  octalStr = octalStr.slice(0, -1);
@@ -4388,9 +4388,9 @@ ${errors.join("\n")}`);
4388
4388
  }
4389
4389
  }),
4390
4390
  validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2, node) {
4391
- const match13 = /\.(\w+)$/.exec(key2.toString());
4392
- if (!match13) return;
4393
- const [, parentKey] = match13;
4391
+ const match12 = /\.(\w+)$/.exec(key2.toString());
4392
+ if (!match12) return;
4393
+ const [, parentKey] = match12;
4394
4394
  const nonComp = {
4395
4395
  computed: false
4396
4396
  };
@@ -4719,9 +4719,9 @@ ${errors.join("\n")}`);
4719
4719
  }
4720
4720
  }),
4721
4721
  validate: process.env.BABEL_TYPES_8_BREAKING ? function(parent, key2) {
4722
- const match13 = /(\w+)\[(\d+)\]/.exec(key2.toString());
4723
- if (!match13) throw new Error("Internal Babel error: malformed key.");
4724
- const [, listKey, index] = match13;
4722
+ const match12 = /(\w+)\[(\d+)\]/.exec(key2.toString());
4723
+ if (!match12) throw new Error("Internal Babel error: malformed key.");
4724
+ const [, listKey, index] = match12;
4725
4725
  if (parent[listKey].length > +index + 1) {
4726
4726
  throw new TypeError(`RestElement must be last element of ${listKey}`);
4727
4727
  }
@@ -12438,7 +12438,7 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
12438
12438
  name += (0, _helperValidatorIdentifier.isIdentifierChar)(c2.codePointAt(0)) ? c2 : "-";
12439
12439
  }
12440
12440
  name = name.replace(/^[-0-9]+/, "");
12441
- name = name.replace(/[-\s]+(.)?/g, function(match13, c2) {
12441
+ name = name.replace(/[-\s]+(.)?/g, function(match12, c2) {
12442
12442
  return c2 ? c2.toUpperCase() : "";
12443
12443
  });
12444
12444
  if (!(0, _isValidIdentifier.default)(name)) {
@@ -19740,8 +19740,8 @@ ${str}
19740
19740
  default:
19741
19741
  if (ch >= 48 && ch <= 55) {
19742
19742
  const startPos = pos2 - 1;
19743
- const match13 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
19744
- let octalStr = match13[0];
19743
+ const match12 = /^[0-7]+/.exec(input.slice(startPos, pos2 + 2));
19744
+ let octalStr = match12[0];
19745
19745
  let octal = parseInt(octalStr, 8);
19746
19746
  if (octal > 255) {
19747
19747
  octalStr = octalStr.slice(0, -1);
@@ -28939,16 +28939,16 @@ ${str}
28939
28939
  value: true
28940
28940
  });
28941
28941
  exports2.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
28942
- exports2.matchToToken = function(match13) {
28943
- var token2 = { type: "invalid", value: match13[0], closed: void 0 };
28944
- if (match13[1]) token2.type = "string", token2.closed = !!(match13[3] || match13[4]);
28945
- else if (match13[5]) token2.type = "comment";
28946
- else if (match13[6]) token2.type = "comment", token2.closed = !!match13[7];
28947
- else if (match13[8]) token2.type = "regex";
28948
- else if (match13[9]) token2.type = "number";
28949
- else if (match13[10]) token2.type = "name";
28950
- else if (match13[11]) token2.type = "punctuator";
28951
- else if (match13[12]) token2.type = "whitespace";
28942
+ exports2.matchToToken = function(match12) {
28943
+ var token2 = { type: "invalid", value: match12[0], closed: void 0 };
28944
+ if (match12[1]) token2.type = "string", token2.closed = !!(match12[3] || match12[4]);
28945
+ else if (match12[5]) token2.type = "comment";
28946
+ else if (match12[6]) token2.type = "comment", token2.closed = !!match12[7];
28947
+ else if (match12[8]) token2.type = "regex";
28948
+ else if (match12[9]) token2.type = "number";
28949
+ else if (match12[10]) token2.type = "name";
28950
+ else if (match12[11]) token2.type = "punctuator";
28951
+ else if (match12[12]) token2.type = "whitespace";
28952
28952
  return token2;
28953
28953
  };
28954
28954
  }
@@ -29013,11 +29013,11 @@ ${str}
29013
29013
  return token2.type;
29014
29014
  };
29015
29015
  tokenize = function* (text) {
29016
- let match13;
29017
- while (match13 = jsTokens.default.exec(text)) {
29018
- const token2 = jsTokens.matchToToken(match13);
29016
+ let match12;
29017
+ while (match12 = jsTokens.default.exec(text)) {
29018
+ const token2 = jsTokens.matchToToken(match12);
29019
29019
  yield {
29020
- type: getTokenType(token2, match13.index, text),
29020
+ type: getTokenType(token2, match12.index, text),
29021
29021
  value: token2.value
29022
29022
  };
29023
29023
  }
@@ -31281,14 +31281,14 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31281
31281
  if (str.length > 100) {
31282
31282
  return;
31283
31283
  }
31284
- var match13 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
31284
+ var match12 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
31285
31285
  str
31286
31286
  );
31287
- if (!match13) {
31287
+ if (!match12) {
31288
31288
  return;
31289
31289
  }
31290
- var n = parseFloat(match13[1]);
31291
- var type = (match13[2] || "ms").toLowerCase();
31290
+ var n = parseFloat(match12[1]);
31291
+ var type = (match12[2] || "ms").toLowerCase();
31292
31292
  switch (type) {
31293
31293
  case "years":
31294
31294
  case "year":
@@ -31418,19 +31418,19 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31418
31418
  args.unshift("%O");
31419
31419
  }
31420
31420
  let index = 0;
31421
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match13, format) => {
31422
- if (match13 === "%%") {
31421
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match12, format) => {
31422
+ if (match12 === "%%") {
31423
31423
  return "%";
31424
31424
  }
31425
31425
  index++;
31426
31426
  const formatter = createDebug.formatters[format];
31427
31427
  if (typeof formatter === "function") {
31428
31428
  const val = args[index];
31429
- match13 = formatter.call(self2, val);
31429
+ match12 = formatter.call(self2, val);
31430
31430
  args.splice(index, 1);
31431
31431
  index--;
31432
31432
  }
31433
- return match13;
31433
+ return match12;
31434
31434
  });
31435
31435
  createDebug.formatArgs.call(self2, args);
31436
31436
  const logFn = self2.log || createDebug.log;
@@ -31664,12 +31664,12 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
31664
31664
  args.splice(1, 0, c2, "color: inherit");
31665
31665
  let index = 0;
31666
31666
  let lastC = 0;
31667
- args[0].replace(/%[a-zA-Z%]/g, (match13) => {
31668
- if (match13 === "%%") {
31667
+ args[0].replace(/%[a-zA-Z%]/g, (match12) => {
31668
+ if (match12 === "%%") {
31669
31669
  return;
31670
31670
  }
31671
31671
  index++;
31672
- if (match13 === "%c") {
31672
+ if (match12 === "%c") {
31673
31673
  lastC = index;
31674
31674
  }
31675
31675
  });
@@ -34291,13 +34291,13 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
34291
34291
  return /^[.?#]/.test(input);
34292
34292
  }
34293
34293
  function parseAbsoluteUrl(input) {
34294
- const match13 = urlRegex.exec(input);
34295
- return makeUrl(match13[1], match13[2] || "", match13[3], match13[4] || "", match13[5] || "/", match13[6] || "", match13[7] || "");
34294
+ const match12 = urlRegex.exec(input);
34295
+ return makeUrl(match12[1], match12[2] || "", match12[3], match12[4] || "", match12[5] || "/", match12[6] || "", match12[7] || "");
34296
34296
  }
34297
34297
  function parseFileUrl(input) {
34298
- const match13 = fileRegex.exec(input);
34299
- const path = match13[2];
34300
- return makeUrl("file:", "", match13[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match13[3] || "", match13[4] || "");
34298
+ const match12 = fileRegex.exec(input);
34299
+ const path = match12[2];
34300
+ return makeUrl("file:", "", match12[1] || "", "", isAbsolutePath(path) ? path : "/" + path, match12[3] || "", match12[4] || "");
34301
34301
  }
34302
34302
  function makeUrl(scheme, user, host, port, path, query, hash) {
34303
34303
  return {
@@ -43713,13 +43713,13 @@ ${" ".repeat(indentSize)}`);
43713
43713
  for (const prop of props) {
43714
43714
  if (!prop.isProperty()) continue;
43715
43715
  const key2 = prop.get("key");
43716
- let match13 = prop.isnt("computed") && key2.isIdentifier({
43716
+ let match12 = prop.isnt("computed") && key2.isIdentifier({
43717
43717
  name: targetName
43718
43718
  });
43719
- match13 = match13 || key2.isLiteral({
43719
+ match12 = match12 || key2.isLiteral({
43720
43720
  value: targetName
43721
43721
  });
43722
- if (match13) return prop.get("value").resolve(dangerous, resolved);
43722
+ if (match12) return prop.get("value").resolve(dangerous, resolved);
43723
43723
  }
43724
43724
  } else if (target.isArrayExpression() && !isNaN(+targetName)) {
43725
43725
  const elems = target.get("elements");
@@ -46135,23 +46135,23 @@ ${" ".repeat(indentSize)}`);
46135
46135
  return null;
46136
46136
  }
46137
46137
  options = options || {};
46138
- var match13 = null;
46138
+ var match12 = null;
46139
46139
  if (!options.rtl) {
46140
- match13 = version.match(safeRe[t.COERCE]);
46140
+ match12 = version.match(safeRe[t.COERCE]);
46141
46141
  } else {
46142
46142
  var next;
46143
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match13 || match13.index + match13[0].length !== version.length)) {
46144
- if (!match13 || next.index + next[0].length !== match13.index + match13[0].length) {
46145
- match13 = next;
46143
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match12 || match12.index + match12[0].length !== version.length)) {
46144
+ if (!match12 || next.index + next[0].length !== match12.index + match12[0].length) {
46145
+ match12 = next;
46146
46146
  }
46147
46147
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
46148
46148
  }
46149
46149
  safeRe[t.COERCERTL].lastIndex = -1;
46150
46150
  }
46151
- if (match13 === null) {
46151
+ if (match12 === null) {
46152
46152
  return null;
46153
46153
  }
46154
- return parse3(match13[2] + "." + (match13[3] || "0") + "." + (match13[4] || "0"), options);
46154
+ return parse3(match12[2] + "." + (match12[3] || "0") + "." + (match12[4] || "0"), options);
46155
46155
  }
46156
46156
  }
46157
46157
  });
@@ -51360,11 +51360,11 @@ ${" ".repeat(indentSize)}`);
51360
51360
  }
51361
51361
  for (var name in all) {
51362
51362
  var type = all[name];
51363
- var match13 = query.match(type.regexp);
51364
- if (match13) {
51363
+ var match12 = query.match(type.regexp);
51364
+ if (match12) {
51365
51365
  node.type = name;
51366
51366
  for (var i = 0; i < type.matches.length; i++) {
51367
- node[type.matches[i]] = match13[i + 1];
51367
+ node[type.matches[i]] = match12[i + 1];
51368
51368
  }
51369
51369
  return node;
51370
51370
  }
@@ -54390,23 +54390,23 @@ ${" ".repeat(indentSize)}`);
54390
54390
  return null;
54391
54391
  }
54392
54392
  options = options || {};
54393
- var match13 = null;
54393
+ var match12 = null;
54394
54394
  if (!options.rtl) {
54395
- match13 = version.match(safeRe[t.COERCE]);
54395
+ match12 = version.match(safeRe[t.COERCE]);
54396
54396
  } else {
54397
54397
  var next;
54398
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match13 || match13.index + match13[0].length !== version.length)) {
54399
- if (!match13 || next.index + next[0].length !== match13.index + match13[0].length) {
54400
- match13 = next;
54398
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match12 || match12.index + match12[0].length !== version.length)) {
54399
+ if (!match12 || next.index + next[0].length !== match12.index + match12[0].length) {
54400
+ match12 = next;
54401
54401
  }
54402
54402
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
54403
54403
  }
54404
54404
  safeRe[t.COERCERTL].lastIndex = -1;
54405
54405
  }
54406
- if (match13 === null) {
54406
+ if (match12 === null) {
54407
54407
  return null;
54408
54408
  }
54409
- return parse3(match13[2] + "." + (match13[3] || "0") + "." + (match13[4] || "0"), options);
54409
+ return parse3(match12[2] + "." + (match12[3] || "0") + "." + (match12[4] || "0"), options);
54410
54410
  }
54411
54411
  }
54412
54412
  });
@@ -58853,8 +58853,8 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
58853
58853
  const lastComment = extractComments(EXTERNAL_SOURCEMAP_REGEX, ast);
58854
58854
  if (typeof options.filename === "string" && lastComment) {
58855
58855
  try {
58856
- const match13 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
58857
- const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match13[1]), "utf8");
58856
+ const match12 = EXTERNAL_SOURCEMAP_REGEX.exec(lastComment);
58857
+ const inputMapContent = _fs().readFileSync(_path().resolve(_path().dirname(options.filename), match12[1]), "utf8");
58858
58858
  inputMap = _convertSourceMap().fromJSON(inputMapContent);
58859
58859
  } catch (err) {
58860
58860
  debug("discarding unknown file input sourcemap", err);
@@ -63986,23 +63986,23 @@ If you have already enabled that plugin (or '@babel/preset-typescript'), make su
63986
63986
  return null;
63987
63987
  }
63988
63988
  options = options || {};
63989
- var match13 = null;
63989
+ var match12 = null;
63990
63990
  if (!options.rtl) {
63991
- match13 = version.match(safeRe[t.COERCE]);
63991
+ match12 = version.match(safeRe[t.COERCE]);
63992
63992
  } else {
63993
63993
  var next;
63994
- while ((next = safeRe[t.COERCERTL].exec(version)) && (!match13 || match13.index + match13[0].length !== version.length)) {
63995
- if (!match13 || next.index + next[0].length !== match13.index + match13[0].length) {
63996
- match13 = next;
63994
+ while ((next = safeRe[t.COERCERTL].exec(version)) && (!match12 || match12.index + match12[0].length !== version.length)) {
63995
+ if (!match12 || next.index + next[0].length !== match12.index + match12[0].length) {
63996
+ match12 = next;
63997
63997
  }
63998
63998
  safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
63999
63999
  }
64000
64000
  safeRe[t.COERCERTL].lastIndex = -1;
64001
64001
  }
64002
- if (match13 === null) {
64002
+ if (match12 === null) {
64003
64003
  return null;
64004
64004
  }
64005
- return parse3(match13[2] + "." + (match13[3] || "0") + "." + (match13[4] || "0"), options);
64005
+ return parse3(match12[2] + "." + (match12[3] || "0") + "." + (match12[4] || "0"), options);
64006
64006
  }
64007
64007
  }
64008
64008
  });
@@ -66772,13 +66772,13 @@ module.exports = function(api) {
66772
66772
  var encodedSeparatorRegEx = /%2f|%5c/i;
66773
66773
  var emittedPackageWarnings = /* @__PURE__ */ new Set();
66774
66774
  var doubleSlashRegEx = /[/\\]{2}/;
66775
- function emitInvalidSegmentDeprecation(target, request, match13, packageJsonUrl, internal, base, isTarget) {
66775
+ function emitInvalidSegmentDeprecation(target, request, match12, packageJsonUrl, internal, base, isTarget) {
66776
66776
  if (_process().noDeprecation) {
66777
66777
  return;
66778
66778
  }
66779
66779
  const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl);
66780
66780
  const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;
66781
- _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match13 ? "" : `matched to "${match13}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
66781
+ _process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match12 ? "" : `matched to "${match12}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
66782
66782
  }
66783
66783
  function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
66784
66784
  if (_process().noDeprecation) {
@@ -66888,16 +66888,16 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
66888
66888
  function exportsNotFound(subpath, packageJsonUrl, base) {
66889
66889
  return new ERR_PACKAGE_PATH_NOT_EXPORTED((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, base && (0, _url().fileURLToPath)(base));
66890
66890
  }
66891
- function throwInvalidSubpath(request, match13, packageJsonUrl, internal, base) {
66892
- const reason = `request is not a valid match in pattern "${match13}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
66891
+ function throwInvalidSubpath(request, match12, packageJsonUrl, internal, base) {
66892
+ const reason = `request is not a valid match in pattern "${match12}" for the "${internal ? "imports" : "exports"}" resolution of ${(0, _url().fileURLToPath)(packageJsonUrl)}`;
66893
66893
  throw new ERR_INVALID_MODULE_SPECIFIER(request, reason, base && (0, _url().fileURLToPath)(base));
66894
66894
  }
66895
66895
  function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
66896
66896
  target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
66897
66897
  return new ERR_INVALID_PACKAGE_TARGET((0, _url().fileURLToPath)(new (_url()).URL(".", packageJsonUrl)), subpath, target, internal, base && (0, _url().fileURLToPath)(base));
66898
66898
  }
66899
- function resolvePackageTargetString(target, subpath, match13, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
66900
- if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match13, target, packageJsonUrl, internal, base);
66899
+ function resolvePackageTargetString(target, subpath, match12, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
66900
+ if (subpath !== "" && !pattern && target[target.length - 1] !== "/") throw invalidPackageTarget(match12, target, packageJsonUrl, internal, base);
66901
66901
  if (!target.startsWith("./")) {
66902
66902
  if (internal && !target.startsWith("../") && !target.startsWith("/")) {
66903
66903
  let isURL2 = false;
@@ -66911,33 +66911,33 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
66911
66911
  return packageResolve(exportTarget, packageJsonUrl, conditions);
66912
66912
  }
66913
66913
  }
66914
- throw invalidPackageTarget(match13, target, packageJsonUrl, internal, base);
66914
+ throw invalidPackageTarget(match12, target, packageJsonUrl, internal, base);
66915
66915
  }
66916
66916
  if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
66917
66917
  if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
66918
66918
  if (!isPathMap) {
66919
- const request = pattern ? match13.replace("*", () => subpath) : match13 + subpath;
66919
+ const request = pattern ? match12.replace("*", () => subpath) : match12 + subpath;
66920
66920
  const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
66921
- emitInvalidSegmentDeprecation(resolvedTarget, request, match13, packageJsonUrl, internal, base, true);
66921
+ emitInvalidSegmentDeprecation(resolvedTarget, request, match12, packageJsonUrl, internal, base, true);
66922
66922
  }
66923
66923
  } else {
66924
- throw invalidPackageTarget(match13, target, packageJsonUrl, internal, base);
66924
+ throw invalidPackageTarget(match12, target, packageJsonUrl, internal, base);
66925
66925
  }
66926
66926
  }
66927
66927
  const resolved = new (_url()).URL(target, packageJsonUrl);
66928
66928
  const resolvedPath = resolved.pathname;
66929
66929
  const packagePath = new (_url()).URL(".", packageJsonUrl).pathname;
66930
- if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match13, target, packageJsonUrl, internal, base);
66930
+ if (!resolvedPath.startsWith(packagePath)) throw invalidPackageTarget(match12, target, packageJsonUrl, internal, base);
66931
66931
  if (subpath === "") return resolved;
66932
66932
  if (invalidSegmentRegEx.exec(subpath) !== null) {
66933
- const request = pattern ? match13.replace("*", () => subpath) : match13 + subpath;
66933
+ const request = pattern ? match12.replace("*", () => subpath) : match12 + subpath;
66934
66934
  if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
66935
66935
  if (!isPathMap) {
66936
66936
  const resolvedTarget = pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target;
66937
- emitInvalidSegmentDeprecation(resolvedTarget, request, match13, packageJsonUrl, internal, base, false);
66937
+ emitInvalidSegmentDeprecation(resolvedTarget, request, match12, packageJsonUrl, internal, base, false);
66938
66938
  }
66939
66939
  } else {
66940
- throwInvalidSubpath(request, match13, packageJsonUrl, internal, base);
66940
+ throwInvalidSubpath(request, match12, packageJsonUrl, internal, base);
66941
66941
  }
66942
66942
  }
66943
66943
  if (pattern) {
@@ -67026,14 +67026,14 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
67026
67026
  }
67027
67027
  return isConditionalSugar;
67028
67028
  }
67029
- function emitTrailingSlashPatternDeprecation(match13, pjsonUrl, base) {
67029
+ function emitTrailingSlashPatternDeprecation(match12, pjsonUrl, base) {
67030
67030
  if (_process().noDeprecation) {
67031
67031
  return;
67032
67032
  }
67033
67033
  const pjsonPath = (0, _url().fileURLToPath)(pjsonUrl);
67034
- if (emittedPackageWarnings.has(pjsonPath + "|" + match13)) return;
67035
- emittedPackageWarnings.add(pjsonPath + "|" + match13);
67036
- _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match13}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155");
67034
+ if (emittedPackageWarnings.has(pjsonPath + "|" + match12)) return;
67035
+ emittedPackageWarnings.add(pjsonPath + "|" + match12);
67036
+ _process().emitWarning(`Use of deprecated trailing slash pattern mapping "${match12}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155");
67037
67037
  }
67038
67038
  function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
67039
67039
  let exports3 = packageConfig.exports;
@@ -70049,7 +70049,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
70049
70049
  var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
70050
70050
  exports2.makeRe = makeRe;
70051
70051
  exports2.minimatch.makeRe = exports2.makeRe;
70052
- var match13 = (list, pattern, options = {}) => {
70052
+ var match12 = (list, pattern, options = {}) => {
70053
70053
  const mm = new Minimatch(pattern, options);
70054
70054
  list = list.filter((f) => mm.match(f));
70055
70055
  if (mm.options.nonull && !list.length) {
@@ -70057,7 +70057,7 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
70057
70057
  }
70058
70058
  return list;
70059
70059
  };
70060
- exports2.match = match13;
70060
+ exports2.match = match12;
70061
70061
  exports2.minimatch.match = exports2.match;
70062
70062
  var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
70063
70063
  var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
@@ -76841,10 +76841,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
76841
76841
  });
76842
76842
  }
76843
76843
  let shouldIndentNextCharacter = options.indentStart !== false;
76844
- const replacer = (match13) => {
76845
- if (shouldIndentNextCharacter) return `${indentStr}${match13}`;
76844
+ const replacer = (match12) => {
76845
+ if (shouldIndentNextCharacter) return `${indentStr}${match12}`;
76846
76846
  shouldIndentNextCharacter = true;
76847
- return match13;
76847
+ return match12;
76848
76848
  };
76849
76849
  this.intro = this.intro.replace(pattern, replacer);
76850
76850
  let charIndex = 0;
@@ -77232,44 +77232,44 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77232
77232
  return this.original !== this.toString();
77233
77233
  }
77234
77234
  _replaceRegexp(searchValue, replacement) {
77235
- function getReplacement(match13, str) {
77235
+ function getReplacement(match12, str) {
77236
77236
  if (typeof replacement === "string") {
77237
77237
  return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
77238
77238
  if (i === "$") return "$";
77239
- if (i === "&") return match13[0];
77239
+ if (i === "&") return match12[0];
77240
77240
  const num = +i;
77241
- if (num < match13.length) return match13[+i];
77241
+ if (num < match12.length) return match12[+i];
77242
77242
  return `$${i}`;
77243
77243
  });
77244
77244
  } else {
77245
- return replacement(...match13, match13.index, str, match13.groups);
77245
+ return replacement(...match12, match12.index, str, match12.groups);
77246
77246
  }
77247
77247
  }
77248
77248
  function matchAll(re, str) {
77249
- let match13;
77249
+ let match12;
77250
77250
  const matches = [];
77251
- while (match13 = re.exec(str)) {
77252
- matches.push(match13);
77251
+ while (match12 = re.exec(str)) {
77252
+ matches.push(match12);
77253
77253
  }
77254
77254
  return matches;
77255
77255
  }
77256
77256
  if (searchValue.global) {
77257
77257
  const matches = matchAll(searchValue, this.original);
77258
- matches.forEach((match13) => {
77259
- if (match13.index != null)
77258
+ matches.forEach((match12) => {
77259
+ if (match12.index != null)
77260
77260
  this.overwrite(
77261
- match13.index,
77262
- match13.index + match13[0].length,
77263
- getReplacement(match13, this.original)
77261
+ match12.index,
77262
+ match12.index + match12[0].length,
77263
+ getReplacement(match12, this.original)
77264
77264
  );
77265
77265
  });
77266
77266
  } else {
77267
- const match13 = this.original.match(searchValue);
77268
- if (match13 && match13.index != null)
77267
+ const match12 = this.original.match(searchValue);
77268
+ if (match12 && match12.index != null)
77269
77269
  this.overwrite(
77270
- match13.index,
77271
- match13.index + match13[0].length,
77272
- getReplacement(match13, this.original)
77270
+ match12.index,
77271
+ match12.index + match12[0].length,
77272
+ getReplacement(match12, this.original)
77273
77273
  );
77274
77274
  }
77275
77275
  return this;
@@ -77473,8 +77473,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77473
77473
  trailingNewline = source2.content.lastChar() === "\n";
77474
77474
  });
77475
77475
  if (this.intro) {
77476
- this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match13, index) => {
77477
- return index > 0 ? indentStr + match13 : match13;
77476
+ this.intro = indentStr + this.intro.replace(/^[^\n]/gm, (match12, index) => {
77477
+ return index > 0 ? indentStr + match12 : match12;
77478
77478
  });
77479
77479
  }
77480
77480
  return this;
@@ -77755,8 +77755,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
77755
77755
  exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
77756
77756
  exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
77757
77757
  exports2.removeBackslashes = (str) => {
77758
- return str.replace(REGEX_REMOVE_BACKSLASH, (match13) => {
77759
- return match13 === "\\" ? "" : match13;
77758
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match12) => {
77759
+ return match12 === "\\" ? "" : match12;
77760
77760
  });
77761
77761
  };
77762
77762
  exports2.supportsLookbehinds = () => {
@@ -78373,10 +78373,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78373
78373
  push2({ type: "text", value: value2 });
78374
78374
  continue;
78375
78375
  }
78376
- const match13 = /^\\+/.exec(remaining());
78376
+ const match12 = /^\\+/.exec(remaining());
78377
78377
  let slashes = 0;
78378
- if (match13 && match13[0].length > 2) {
78379
- slashes = match13[0].length;
78378
+ if (match12 && match12[0].length > 2) {
78379
+ slashes = match12[0].length;
78380
78380
  state.index += slashes;
78381
78381
  if (slashes % 2 !== 0) {
78382
78382
  value2 += "\\";
@@ -78664,10 +78664,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78664
78664
  if (value2 === "$" || value2 === "^") {
78665
78665
  value2 = `\\${value2}`;
78666
78666
  }
78667
- const match13 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
78668
- if (match13) {
78669
- value2 += match13[0];
78670
- state.index += match13[0].length;
78667
+ const match12 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
78668
+ if (match12) {
78669
+ value2 += match12[0];
78670
+ state.index += match12[0].length;
78671
78671
  }
78672
78672
  push2({ type: "text", value: value2 });
78673
78673
  continue;
@@ -78878,11 +78878,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78878
78878
  case "**/.*":
78879
78879
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
78880
78880
  default: {
78881
- const match13 = /^(.*?)\.(\w+)$/.exec(str);
78882
- if (!match13) return;
78883
- const source3 = create(match13[1]);
78881
+ const match12 = /^(.*?)\.(\w+)$/.exec(str);
78882
+ if (!match12) return;
78883
+ const source3 = create(match12[1]);
78884
78884
  if (!source3) return;
78885
- return source3 + DOT_LITERAL + match13[2];
78885
+ return source3 + DOT_LITERAL + match12[2];
78886
78886
  }
78887
78887
  }
78888
78888
  };
@@ -78932,8 +78932,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78932
78932
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
78933
78933
  }
78934
78934
  const matcher = (input, returnObject = false) => {
78935
- const { isMatch, match: match13, output } = picomatch.test(input, regex, options, { glob, posix });
78936
- const result = { glob, state, regex, posix, input, output, match: match13, isMatch };
78935
+ const { isMatch, match: match12, output } = picomatch.test(input, regex, options, { glob, posix });
78936
+ const result = { glob, state, regex, posix, input, output, match: match12, isMatch };
78937
78937
  if (typeof opts.onResult === "function") {
78938
78938
  opts.onResult(result);
78939
78939
  }
@@ -78967,20 +78967,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
78967
78967
  }
78968
78968
  const opts = options || {};
78969
78969
  const format = opts.format || (posix ? utils.toPosixSlashes : null);
78970
- let match13 = input === glob;
78971
- let output = match13 && format ? format(input) : input;
78972
- if (match13 === false) {
78970
+ let match12 = input === glob;
78971
+ let output = match12 && format ? format(input) : input;
78972
+ if (match12 === false) {
78973
78973
  output = format ? format(input) : input;
78974
- match13 = output === glob;
78974
+ match12 = output === glob;
78975
78975
  }
78976
- if (match13 === false || opts.capture === true) {
78976
+ if (match12 === false || opts.capture === true) {
78977
78977
  if (opts.matchBase === true || opts.basename === true) {
78978
- match13 = picomatch.matchBase(input, regex, options, posix);
78978
+ match12 = picomatch.matchBase(input, regex, options, posix);
78979
78979
  } else {
78980
- match13 = regex.exec(output);
78980
+ match12 = regex.exec(output);
78981
78981
  }
78982
78982
  }
78983
- return { isMatch: Boolean(match13), match: match13, output };
78983
+ return { isMatch: Boolean(match12), match: match12, output };
78984
78984
  };
78985
78985
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
78986
78986
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -79481,8 +79481,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
79481
79481
  exports2.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
79482
79482
  exports2.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
79483
79483
  exports2.removeBackslashes = (str) => {
79484
- return str.replace(REGEX_REMOVE_BACKSLASH, (match13) => {
79485
- return match13 === "\\" ? "" : match13;
79484
+ return str.replace(REGEX_REMOVE_BACKSLASH, (match12) => {
79485
+ return match12 === "\\" ? "" : match12;
79486
79486
  });
79487
79487
  };
79488
79488
  exports2.supportsLookbehinds = () => {
@@ -80099,10 +80099,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80099
80099
  push2({ type: "text", value: value2 });
80100
80100
  continue;
80101
80101
  }
80102
- const match13 = /^\\+/.exec(remaining());
80102
+ const match12 = /^\\+/.exec(remaining());
80103
80103
  let slashes = 0;
80104
- if (match13 && match13[0].length > 2) {
80105
- slashes = match13[0].length;
80104
+ if (match12 && match12[0].length > 2) {
80105
+ slashes = match12[0].length;
80106
80106
  state.index += slashes;
80107
80107
  if (slashes % 2 !== 0) {
80108
80108
  value2 += "\\";
@@ -80390,10 +80390,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80390
80390
  if (value2 === "$" || value2 === "^") {
80391
80391
  value2 = `\\${value2}`;
80392
80392
  }
80393
- const match13 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
80394
- if (match13) {
80395
- value2 += match13[0];
80396
- state.index += match13[0].length;
80393
+ const match12 = REGEX_NON_SPECIAL_CHARS.exec(remaining());
80394
+ if (match12) {
80395
+ value2 += match12[0];
80396
+ state.index += match12[0].length;
80397
80397
  }
80398
80398
  push2({ type: "text", value: value2 });
80399
80399
  continue;
@@ -80604,11 +80604,11 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80604
80604
  case "**/.*":
80605
80605
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
80606
80606
  default: {
80607
- const match13 = /^(.*?)\.(\w+)$/.exec(str);
80608
- if (!match13) return;
80609
- const source3 = create(match13[1]);
80607
+ const match12 = /^(.*?)\.(\w+)$/.exec(str);
80608
+ if (!match12) return;
80609
+ const source3 = create(match12[1]);
80610
80610
  if (!source3) return;
80611
- return source3 + DOT_LITERAL + match13[2];
80611
+ return source3 + DOT_LITERAL + match12[2];
80612
80612
  }
80613
80613
  }
80614
80614
  };
@@ -80658,8 +80658,8 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80658
80658
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
80659
80659
  }
80660
80660
  const matcher = (input, returnObject = false) => {
80661
- const { isMatch, match: match13, output } = picomatch.test(input, regex, options, { glob, posix });
80662
- const result = { glob, state, regex, posix, input, output, match: match13, isMatch };
80661
+ const { isMatch, match: match12, output } = picomatch.test(input, regex, options, { glob, posix });
80662
+ const result = { glob, state, regex, posix, input, output, match: match12, isMatch };
80663
80663
  if (typeof opts.onResult === "function") {
80664
80664
  opts.onResult(result);
80665
80665
  }
@@ -80693,20 +80693,20 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80693
80693
  }
80694
80694
  const opts = options || {};
80695
80695
  const format = opts.format || (posix ? utils.toPosixSlashes : null);
80696
- let match13 = input === glob;
80697
- let output = match13 && format ? format(input) : input;
80698
- if (match13 === false) {
80696
+ let match12 = input === glob;
80697
+ let output = match12 && format ? format(input) : input;
80698
+ if (match12 === false) {
80699
80699
  output = format ? format(input) : input;
80700
- match13 = output === glob;
80700
+ match12 = output === glob;
80701
80701
  }
80702
- if (match13 === false || opts.capture === true) {
80702
+ if (match12 === false || opts.capture === true) {
80703
80703
  if (opts.matchBase === true || opts.basename === true) {
80704
- match13 = picomatch.matchBase(input, regex, options, posix);
80704
+ match12 = picomatch.matchBase(input, regex, options, posix);
80705
80705
  } else {
80706
- match13 = regex.exec(output);
80706
+ match12 = regex.exec(output);
80707
80707
  }
80708
80708
  }
80709
- return { isMatch: Boolean(match13), match: match13, output };
80709
+ return { isMatch: Boolean(match12), match: match12, output };
80710
80710
  };
80711
80711
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
80712
80712
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -80865,10 +80865,10 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
80865
80865
  if (typeof str !== "string" || str === "") {
80866
80866
  return false;
80867
80867
  }
80868
- var match13;
80869
- while (match13 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
80870
- if (match13[2]) return true;
80871
- str = str.slice(match13.index + match13[0].length);
80868
+ var match12;
80869
+ while (match12 = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
80870
+ if (match12[2]) return true;
80871
+ str = str.slice(match12.index + match12[0].length);
80872
80872
  }
80873
80873
  return false;
80874
80874
  };
@@ -84614,17 +84614,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
84614
84614
  for (; ; ) {
84615
84615
  skipWhiteSpace.lastIndex = start;
84616
84616
  start += skipWhiteSpace.exec(this.input)[0].length;
84617
- var match13 = literal2.exec(this.input.slice(start));
84618
- if (!match13) {
84617
+ var match12 = literal2.exec(this.input.slice(start));
84618
+ if (!match12) {
84619
84619
  return false;
84620
84620
  }
84621
- if ((match13[1] || match13[2]) === "use strict") {
84622
- skipWhiteSpace.lastIndex = start + match13[0].length;
84621
+ if ((match12[1] || match12[2]) === "use strict") {
84622
+ skipWhiteSpace.lastIndex = start + match12[0].length;
84623
84623
  var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
84624
84624
  var next = this.input.charAt(end);
84625
84625
  return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
84626
84626
  }
84627
- start += match13[0].length;
84627
+ start += match12[0].length;
84628
84628
  skipWhiteSpace.lastIndex = start;
84629
84629
  start += skipWhiteSpace.exec(this.input)[0].length;
84630
84630
  if (this.input[start] === ";") {
@@ -90070,17 +90070,17 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
90070
90070
  var streamChunksOfRawSource = (source2, onChunk, onSource, onName) => {
90071
90071
  let line2 = 1;
90072
90072
  const matches = splitIntoLines(source2);
90073
- let match13;
90074
- for (match13 of matches) {
90075
- onChunk(match13, line2, 0, -1, -1, -1, -1);
90073
+ let match12;
90074
+ for (match12 of matches) {
90075
+ onChunk(match12, line2, 0, -1, -1, -1, -1);
90076
90076
  line2++;
90077
90077
  }
90078
- return matches.length === 0 || match13.endsWith("\n") ? {
90078
+ return matches.length === 0 || match12.endsWith("\n") ? {
90079
90079
  generatedLine: matches.length + 1,
90080
90080
  generatedColumn: 0
90081
90081
  } : {
90082
90082
  generatedLine: matches.length,
90083
- generatedColumn: match13.length
90083
+ generatedColumn: match12.length
90084
90084
  };
90085
90085
  };
90086
90086
  module2.exports = (source2, onChunk, onSource, onName, finalSource) => {
@@ -90514,19 +90514,19 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
90514
90514
  let line2 = 1;
90515
90515
  let column2 = 0;
90516
90516
  if (matches !== null) {
90517
- for (const match13 of matches) {
90518
- const isEndOfLine = match13.endsWith("\n");
90519
- if (isEndOfLine && match13.length === 1) {
90520
- if (!finalSource) onChunk(match13, line2, column2, -1, -1, -1, -1);
90517
+ for (const match12 of matches) {
90518
+ const isEndOfLine = match12.endsWith("\n");
90519
+ if (isEndOfLine && match12.length === 1) {
90520
+ if (!finalSource) onChunk(match12, line2, column2, -1, -1, -1, -1);
90521
90521
  } else {
90522
- const chunk = finalSource ? void 0 : match13;
90522
+ const chunk = finalSource ? void 0 : match12;
90523
90523
  onChunk(chunk, line2, column2, 0, line2, column2, -1);
90524
90524
  }
90525
90525
  if (isEndOfLine) {
90526
90526
  line2++;
90527
90527
  column2 = 0;
90528
90528
  } else {
90529
- column2 += match13.length;
90529
+ column2 += match12.length;
90530
90530
  }
90531
90531
  }
90532
90532
  }
@@ -90549,18 +90549,18 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
90549
90549
  } else {
90550
90550
  let line2 = 1;
90551
90551
  const matches = splitIntoLines(this._value);
90552
- let match13;
90553
- for (match13 of matches) {
90554
- onChunk(finalSource ? void 0 : match13, line2, 0, 0, line2, 0, -1);
90552
+ let match12;
90553
+ for (match12 of matches) {
90554
+ onChunk(finalSource ? void 0 : match12, line2, 0, 0, line2, 0, -1);
90555
90555
  line2++;
90556
90556
  }
90557
- return matches.length === 0 || match13.endsWith("\n") ? {
90557
+ return matches.length === 0 || match12.endsWith("\n") ? {
90558
90558
  generatedLine: matches.length + 1,
90559
90559
  generatedColumn: 0,
90560
90560
  source: finalSource ? this._value : void 0
90561
90561
  } : {
90562
90562
  generatedLine: matches.length,
90563
- generatedColumn: match13.length,
90563
+ generatedColumn: match12.length,
90564
90564
  source: finalSource ? this._value : void 0
90565
90565
  };
90566
90566
  }
@@ -92833,13 +92833,13 @@ It seems like none of the "@sentry/cli" package's optional dependencies got inst
92833
92833
  return input.startsWith("/");
92834
92834
  }
92835
92835
  function parseAbsoluteUrl(input) {
92836
- const match13 = urlRegex.exec(input);
92836
+ const match12 = urlRegex.exec(input);
92837
92837
  return {
92838
- scheme: match13[1],
92839
- user: match13[2] || "",
92840
- host: match13[3],
92841
- port: match13[4] || "",
92842
- path: match13[5] || "/",
92838
+ scheme: match12[1],
92839
+ user: match12[2] || "",
92840
+ host: match12[3],
92841
+ port: match12[4] || "",
92842
+ path: match12[5] || "/",
92843
92843
  relativePath: false
92844
92844
  };
92845
92845
  }
@@ -94155,10 +94155,10 @@ Did you specify these with the most recent transformation maps first?`);
94155
94155
  const obj = {};
94156
94156
  let lines = src.toString();
94157
94157
  lines = lines.replace(/\r\n?/mg, "\n");
94158
- let match13;
94159
- while ((match13 = LINE.exec(lines)) != null) {
94160
- const key2 = match13[1];
94161
- let value2 = match13[2] || "";
94158
+ let match12;
94159
+ while ((match12 = LINE.exec(lines)) != null) {
94160
+ const key2 = match12[1];
94161
+ let value2 = match12[2] || "";
94162
94162
  value2 = value2.trim();
94163
94163
  const maybeQuote = value2[0];
94164
94164
  value2 = value2.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
@@ -95355,14 +95355,14 @@ Did you specify these with the most recent transformation maps first?`);
95355
95355
  return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path2 ? `${path2}/` : path2}${projectId}`;
95356
95356
  }
95357
95357
  function dsnFromString2(str) {
95358
- const match13 = DSN_REGEX.exec(str);
95359
- if (!match13) {
95358
+ const match12 = DSN_REGEX.exec(str);
95359
+ if (!match12) {
95360
95360
  consoleSandbox(() => {
95361
95361
  console.error(`Invalid Sentry Dsn: ${str}`);
95362
95362
  });
95363
95363
  return void 0;
95364
95364
  }
95365
- const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match13.slice(1);
95365
+ const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match12.slice(1);
95366
95366
  let path2 = "";
95367
95367
  let projectId = lastPath;
95368
95368
  const split = projectId.split("/");
@@ -99713,9 +99713,9 @@ Reason: ${reason}`
99713
99713
  version = version.slice(1);
99714
99714
  }
99715
99715
  var regex = /^[\^~]?(\d+)(\.\d+)?(\.\d+)?(-.+)?/;
99716
- var match13 = version.match(regex);
99717
- if (match13) {
99718
- return parseInt(match13[1], 10);
99716
+ var match12 = version.match(regex);
99717
+ if (match12) {
99718
+ return parseInt(match12[1], 10);
99719
99719
  }
99720
99720
  var coerced = parseInt(version, 10);
99721
99721
  if (!Number.isNaN(coerced)) {
@@ -100370,9 +100370,9 @@ Reason: ${reason}`
100370
100370
  return _prepareBundleForDebugIdUpload.apply(this, arguments);
100371
100371
  }
100372
100372
  function determineDebugIdFromBundleSource(code) {
100373
- var match13 = code.match(/sentry-dbid-([0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})/);
100374
- if (match13) {
100375
- return match13[1];
100373
+ var match12 = code.match(/sentry-dbid-([0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})/);
100374
+ if (match12) {
100375
+ return match12[1];
100376
100376
  } else {
100377
100377
  return void 0;
100378
100378
  }
@@ -101533,9 +101533,9 @@ Reason: ${reason}`
101533
101533
  var ms = new MagicString__default["default"](code, {
101534
101534
  filename: chunk.fileName
101535
101535
  });
101536
- var match13 = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
101537
- if (match13) {
101538
- ms.appendLeft(match13.length, codeToInject);
101536
+ var match12 = (_code$match = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match === void 0 ? void 0 : _code$match[0];
101537
+ if (match12) {
101538
+ ms.appendLeft(match12.length, codeToInject);
101539
101539
  } else {
101540
101540
  ms.prepend(codeToInject);
101541
101541
  }
@@ -101565,9 +101565,9 @@ Reason: ${reason}`
101565
101565
  var ms = new MagicString__default["default"](code, {
101566
101566
  filename: chunk.fileName
101567
101567
  });
101568
- var match13 = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
101569
- if (match13) {
101570
- ms.appendLeft(match13.length, injectionCode);
101568
+ var match12 = (_code$match2 = code.match(COMMENT_USE_STRICT_REGEX)) === null || _code$match2 === void 0 ? void 0 : _code$match2[0];
101569
+ if (match12) {
101570
+ ms.appendLeft(match12.length, injectionCode);
101571
101571
  } else {
101572
101572
  ms.prepend(injectionCode);
101573
101573
  }
@@ -106188,11 +106188,11 @@ ${error.errors.map(formatZodIssue).join("\n")}`,
106188
106188
  };
106189
106189
  }
106190
106190
  function dsnFromString(str) {
106191
- const match13 = SENTRY_DSN_REGEX.exec(str);
106192
- if (!match13) {
106191
+ const match12 = SENTRY_DSN_REGEX.exec(str);
106192
+ if (!match12) {
106193
106193
  throw new Error("Invalid DSN");
106194
106194
  }
106195
- const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match13.slice(1);
106195
+ const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match12.slice(1);
106196
106196
  let path = "";
106197
106197
  let projectId = lastPath;
106198
106198
  const split = projectId.split("/");
@@ -106309,6 +106309,7 @@ init_esm_shims();
106309
106309
  // ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
106310
106310
  init_esm_shims();
106311
106311
  var import_react28 = __toESM(require_react(), 1);
106312
+ var import_variant16 = __toESM(require_lib(), 1);
106312
106313
 
106313
106314
  // ../cli-astro-commands/src/components/DevCommand/utils/runAstroDev.ts
106314
106315
  init_esm_shims();
@@ -106343,9 +106344,9 @@ function runAstroDev({
106343
106344
  for (const line of lines) {
106344
106345
  result.stdout?.emit(EVENT_LINE, line);
106345
106346
  if (line.includes("http://")) {
106346
- const match13 = /(http:\/\/[^\s]+)/.exec(line);
106347
- if (match13?.[1]) {
106348
- const address = stripAnsi(match13[1]).trim();
106347
+ const match12 = /(http:\/\/[^\s]+)/.exec(line);
106348
+ if (match12?.[1]) {
106349
+ const address = stripAnsi(match12[1]).trim();
106349
106350
  result.stdout?.emit(EVENT_SERVER_ADDRESS, address);
106350
106351
  }
106351
106352
  }
@@ -106531,8 +106532,7 @@ function useFetchDevMetadata() {
106531
106532
 
106532
106533
  // ../cli-astro-commands/src/components/DevCommand/SiteDevFlow.tsx
106533
106534
  init_esm_shims();
106534
- var import_react21 = __toESM(require_react(), 1);
106535
- var import_variant14 = __toESM(require_lib(), 1);
106535
+ var import_react8 = __toESM(require_react(), 1);
106536
106536
 
106537
106537
  // ../cli-astro-commands/src/components/DevCommand/DevScreenBorder.tsx
106538
106538
  init_esm_shims();
@@ -106554,13 +106554,18 @@ var DevScreenBorder = ({ children }) => {
106554
106554
  );
106555
106555
  };
106556
106556
 
106557
- // ../cli-astro-commands/src/site/index.ts
106557
+ // ../cli-astro-commands/src/components/DevCommand/SiteDev.tsx
106558
106558
  init_esm_shims();
106559
+ var import_react7 = __toESM(require_react(), 1);
106560
+ var import_variant5 = __toESM(require_lib(), 1);
106559
106561
 
106560
- // ../cli-astro-commands/src/site/SiteProvider.tsx
106562
+ // ../cli-astro-commands/src/components/DevCommand/hooks/useDevCenterUpdater.ts
106563
+ init_esm_shims();
106564
+ var import_react5 = __toESM(require_react(), 1);
106565
+ var import_variant3 = __toESM(require_lib(), 1);
106566
+
106567
+ // ../cli-astro-commands/src/files/app.config.ts
106561
106568
  init_esm_shims();
106562
- var import_react15 = __toESM(require_react(), 1);
106563
- var import_variant9 = __toESM(require_lib(), 1);
106564
106569
 
106565
106570
  // ../cli-app-definitions/src/index.ts
106566
106571
  init_esm_shims();
@@ -107129,7 +107134,6 @@ var siteComponentPanelConfigSchema = external_exports.object({
107129
107134
  }).strict();
107130
107135
 
107131
107136
  // ../cli-astro-commands/src/files/app.config.ts
107132
- init_esm_shims();
107133
107137
  async function readAppConfig(projectFolder, writeDebugLog) {
107134
107138
  const configPath = getAppConfigPath(projectFolder);
107135
107139
  const isConfigExist = await pathExists(configPath);
@@ -107157,18 +107161,346 @@ async function saveAppConfig(projectFolder, config) {
107157
107161
  await writeJson(getAppConfigPath(projectFolder), newConfig);
107158
107162
  }
107159
107163
 
107164
+ // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchAppManifest.ts
107165
+ init_esm_shims();
107166
+ var import_react4 = __toESM(require_react(), 1);
107167
+
107168
+ // ../cli-astro-commands/src/components/DevCommand/utils/isTunnelRequired.ts
107169
+ init_esm_shims();
107170
+ function isTunnelRequired(appManifest) {
107171
+ for (const extension of appManifest.components) {
107172
+ const knownAppManifest = parseKnownExtensionManifest(extension);
107173
+ if (knownAppManifest != null && knownAppManifest.compType === ComponentType.WEBHOOK) {
107174
+ return !URL.canParse(knownAppManifest.compData.webhook.callbackUrl);
107175
+ }
107176
+ }
107177
+ return false;
107178
+ }
107179
+ function parseKnownExtensionManifest(extensionManifest) {
107180
+ const appManifestResult = looseComponentSchema.safeParse(extensionManifest);
107181
+ if (appManifestResult.error) {
107182
+ return null;
107183
+ }
107184
+ return appManifestResult.data;
107185
+ }
107186
+
107187
+ // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchAppManifest.ts
107188
+ function useFetchAppManifest() {
107189
+ const http = useHttpClient({ type: "standalone" });
107190
+ return (0, import_react4.useCallback)(
107191
+ async (serverLocalUrl, devMetadata, baseUrl, tunnelUrl) => {
107192
+ const url = new URL("/_wix/app-manifest.json", serverLocalUrl);
107193
+ const { data: text } = await http.get(url.toString(), {
107194
+ responseType: "text",
107195
+ transitional: {
107196
+ silentJSONParsing: true,
107197
+ forcedJSONParsing: false,
107198
+ clarifyTimeoutError: false
107199
+ },
107200
+ disableWixHeaders: true
107201
+ });
107202
+ if (devMetadata != null) {
107203
+ const placeholders = /* @__PURE__ */ new Map();
107204
+ placeholders.set(devMetadata.staticsUrlPlaceholder, baseUrl);
107205
+ placeholders.set(devMetadata.serverUrlPlaceholder, tunnelUrl);
107206
+ return {
107207
+ manifest: parseLooseAppManifest(text, placeholders),
107208
+ isTunnelRequired: text.includes(devMetadata.serverUrlPlaceholder)
107209
+ };
107210
+ }
107211
+ const manifestV1 = parseLooseAppManifest(text);
107212
+ return {
107213
+ manifest: manifestV1,
107214
+ isTunnelRequired: isTunnelRequired(manifestV1)
107215
+ };
107216
+ },
107217
+ [http]
107218
+ );
107219
+ }
107220
+
107221
+ // ../cli-astro-commands/src/components/DevCommand/hooks/checkManifestForChanges.ts
107222
+ init_esm_shims();
107223
+ var import_variant2 = __toESM(require_lib(), 1);
107224
+ import { isDeepStrictEqual } from "node:util";
107225
+ var ManifestUpdateResult = (0, import_variant2.variant)({
107226
+ Changed: (0, import_variant2.fields)(),
107227
+ Unchanged: {}
107228
+ });
107229
+ function checkManifestForChanges(previous, latest) {
107230
+ if (previous == null) {
107231
+ return ManifestUpdateResult.Changed({
107232
+ shouldDistributeClientUpdate: false
107233
+ });
107234
+ }
107235
+ if (isDeepStrictEqual(previous, latest)) {
107236
+ return ManifestUpdateResult.Unchanged();
107237
+ }
107238
+ const oldComponentsMap = new Map(
107239
+ previous.components.map((comp) => [comp.compId, comp])
107240
+ );
107241
+ const changedComponents = latest.components.filter((newComp) => {
107242
+ const oldComp = oldComponentsMap.get(newComp.compId);
107243
+ return !isDeepStrictEqual(newComp, oldComp);
107244
+ });
107245
+ const editorComponentsChanged = changedComponents.filter(
107246
+ (comp) => comp.compType === ComponentType.PANEL || comp.compType === ComponentType.EDITOR_REACT_COMPONENT
107247
+ );
107248
+ return ManifestUpdateResult.Changed({
107249
+ shouldDistributeClientUpdate: editorComponentsChanged.length > 0
107250
+ });
107251
+ }
107252
+
107253
+ // ../cli-astro-commands/src/components/DevCommand/hooks/useDevCenterUpdater.ts
107254
+ var { pollInterval } = getTestOverrides();
107255
+ var useDevCenterUpdater = ({
107256
+ siteId,
107257
+ serverLocalUrl,
107258
+ serverExposedUrl,
107259
+ devMetadata
107260
+ }) => {
107261
+ const [devArmTag, setDevArmTag] = (0, import_react5.useState)();
107262
+ const [manifest, setManifest] = (0, import_react5.useState)(null);
107263
+ const { reportError } = useErrorReporter();
107264
+ const writeToDebugLog = useDebugLog();
107265
+ const exit = useExit();
107266
+ const metasiteManagerClient = useMetasiteManagerClient({ siteId });
107267
+ const {
107268
+ model: { config, projectFolder, releaseAppId }
107269
+ } = useProjectModel();
107270
+ const { appId, projectType } = config;
107271
+ const logger = useAstroLogger({ isPrefixed: true });
107272
+ const devCenterOverrides = useDevCenterOverridesClient();
107273
+ const updateDeploymentTopology = useUpdateDeploymentTopology(siteId);
107274
+ const openTunnel = useTunnel();
107275
+ const tunnelUrl = (0, import_react5.useRef)();
107276
+ const [tunnelRequired, setTunnelRequired] = (0, import_react5.useState)(false);
107277
+ const fetchAppManifest = useFetchAppManifest();
107278
+ const updateDevCenter = (0, import_react5.useCallback)(
107279
+ async (latestManifest, isTunnelRequired2) => {
107280
+ const baseUrl = serverExposedUrl ?? serverLocalUrl;
107281
+ const manifestUpdateResult = checkManifestForChanges(
107282
+ manifest,
107283
+ latestManifest
107284
+ );
107285
+ if ((0, import_variant3.isType)(manifestUpdateResult, "Unchanged")) {
107286
+ return manifestUpdateResult;
107287
+ }
107288
+ if (!serverExposedUrl && !tunnelUrl.current && isTunnelRequired2) {
107289
+ const config2 = await readUserConfig();
107290
+ if (!config2.tunneling) {
107291
+ setTunnelRequired(true);
107292
+ return ManifestUpdateResult.Unchanged();
107293
+ }
107294
+ const serverLocalPort = parseInt(new URL(serverLocalUrl).port, 10);
107295
+ const tunnel = await openTunnel(serverLocalPort);
107296
+ tunnelUrl.current = tunnel.url;
107297
+ return ManifestUpdateResult.Unchanged();
107298
+ }
107299
+ const appConfig = await readAppConfig(projectFolder);
107300
+ let updatedDevArmTag = appConfig?.devArmTag;
107301
+ if (!updatedDevArmTag) {
107302
+ updatedDevArmTag = await devCenterOverrides.createLooseAppRelease(
107303
+ latestManifest,
107304
+ releaseAppId
107305
+ );
107306
+ } else {
107307
+ const updateState = await devCenterOverrides.updateLooseAppRelease(
107308
+ latestManifest,
107309
+ updatedDevArmTag
107310
+ );
107311
+ if (!(0, import_variant3.isType)(updateState, "TagUpdated")) {
107312
+ updatedDevArmTag = await devCenterOverrides.createLooseAppRelease(
107313
+ latestManifest,
107314
+ releaseAppId
107315
+ );
107316
+ }
107317
+ }
107318
+ if (updatedDevArmTag !== appConfig?.devArmTag) {
107319
+ await saveAppConfig(projectFolder, { devArmTag: updatedDevArmTag });
107320
+ }
107321
+ if ((0, import_variant3.isType)(manifestUpdateResult, "Changed") && manifestUpdateResult.shouldDistributeClientUpdate) {
107322
+ await metasiteManagerClient.distributeClientUpdate(appId);
107323
+ }
107324
+ setManifest(latestManifest);
107325
+ setDevArmTag(updatedDevArmTag);
107326
+ await updateDeploymentTopology({
107327
+ siteUrl: projectType === "Site" ? baseUrl : void 0,
107328
+ armTag: updatedDevArmTag,
107329
+ environment: "development"
107330
+ });
107331
+ return manifestUpdateResult;
107332
+ },
107333
+ [
107334
+ releaseAppId,
107335
+ manifest,
107336
+ metasiteManagerClient,
107337
+ serverLocalUrl,
107338
+ serverExposedUrl,
107339
+ devCenterOverrides,
107340
+ projectFolder,
107341
+ appId,
107342
+ updateDeploymentTopology,
107343
+ openTunnel,
107344
+ projectType
107345
+ ]
107346
+ );
107347
+ const [timer, setTimer] = (0, import_react5.useState)(Date.now());
107348
+ (0, import_react5.useEffect)(() => {
107349
+ let disposed = false;
107350
+ async function fetchAndUpdate() {
107351
+ const baseUrl = serverExposedUrl ?? serverLocalUrl;
107352
+ const { manifest: manifest2, isTunnelRequired: isTunnelRequired2 } = await fetchAppManifest(
107353
+ serverLocalUrl,
107354
+ devMetadata,
107355
+ baseUrl,
107356
+ tunnelUrl.current ?? baseUrl
107357
+ );
107358
+ try {
107359
+ const result = await updateDevCenter(manifest2, isTunnelRequired2);
107360
+ if ((0, import_variant3.isType)(result, "Changed")) {
107361
+ logger.log(
107362
+ "App Manifest updated. Refresh existing browser tabs to view the latest changes."
107363
+ );
107364
+ }
107365
+ } catch (error) {
107366
+ setManifest(manifest2);
107367
+ logger.log("Failed to update App Manifest");
107368
+ logger.log(`${error}`);
107369
+ writeToDebugLog(error);
107370
+ reportError(error);
107371
+ throw error;
107372
+ }
107373
+ }
107374
+ void fetchAndUpdate().catch((error) => {
107375
+ if (error instanceof Error && error.name === "TrustedAppIsNotMarkedAsInternal") {
107376
+ exit(error);
107377
+ }
107378
+ }).finally(() => {
107379
+ if (!disposed) {
107380
+ setTimeout(() => setTimer(Date.now()), pollInterval ?? 1e3);
107381
+ }
107382
+ });
107383
+ return () => {
107384
+ disposed = true;
107385
+ };
107386
+ }, [timer]);
107387
+ return { tunnelRequired, devArmTag };
107388
+ };
107389
+
107390
+ // ../cli-astro-commands/src/components/DevCommand/TunnelingConsent.tsx
107391
+ init_esm_shims();
107392
+ var import_react6 = __toESM(require_react(), 1);
107393
+ var import_variant4 = __toESM(require_lib(), 1);
107394
+ var TunnelingConsent = ({ required, children }) => {
107395
+ const exit = useExit();
107396
+ const [approved, setApproved] = (0, import_react6.useState)();
107397
+ const { status } = useAsync(async () => {
107398
+ const config = await readUserConfig();
107399
+ if (config.tunneling) {
107400
+ setApproved(true);
107401
+ }
107402
+ return config;
107403
+ }, []);
107404
+ if (!required || approved) {
107405
+ return children;
107406
+ }
107407
+ return /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, (0, import_variant4.match)(status, {
107408
+ Success: () => /* @__PURE__ */ import_react6.default.createElement(
107409
+ ConfirmInput,
107410
+ {
107411
+ label: "To proceed, we'll set up a secure tunnel from your machine for development purposes",
107412
+ initialValue: true,
107413
+ onSubmit: async (approved2) => {
107414
+ setApproved(approved2);
107415
+ await updateUserConfig({ tunneling: approved2 });
107416
+ if (!approved2) {
107417
+ exit();
107418
+ }
107419
+ }
107420
+ }
107421
+ ),
107422
+ Error: () => null,
107423
+ Loading: () => null
107424
+ }), approved === false && /* @__PURE__ */ import_react6.default.createElement(Text, { skin: "error" }, "Operation aborted. Tunneling is necessary to run your application."));
107425
+ };
107426
+
107427
+ // ../cli-astro-commands/src/components/DevCommand/SiteDev.tsx
107428
+ var SiteDev = ({
107429
+ serverLocalUrl,
107430
+ serverExposedUrl,
107431
+ devMetadata
107432
+ }) => {
107433
+ const { appId, siteId } = useSiteConfig();
107434
+ const { tunnelRequired, devArmTag } = useDevCenterUpdater({
107435
+ siteId,
107436
+ serverLocalUrl,
107437
+ serverExposedUrl,
107438
+ devMetadata
107439
+ });
107440
+ const veloClient = useVeloClient();
107441
+ const { status: gitHubOnboardingStatus } = useAsync(
107442
+ () => veloClient.getGitHubOnboardingStatus(appId),
107443
+ [appId]
107444
+ );
107445
+ return /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(Text, null, "Development environment ready"), /* @__PURE__ */ import_react7.default.createElement(Box_default, { rowGap: 1, marginY: 1, flexDirection: "column" }, /* @__PURE__ */ import_react7.default.createElement(TunnelingConsent, { required: tunnelRequired }, /* @__PURE__ */ import_react7.default.createElement(Text, null, "Open the preview on:"), /* @__PURE__ */ import_react7.default.createElement(Box_default, { paddingLeft: 2, flexDirection: "column" }, /* @__PURE__ */ import_react7.default.createElement(PlatformLink, { url: serverLocalUrl, label: "Site" }), devArmTag ? /* @__PURE__ */ import_react7.default.createElement(
107446
+ PlatformLink,
107447
+ {
107448
+ url: `https://manage.wix.com/dashboard/${siteId}?apps-override=${devArmTag}`,
107449
+ label: "Dashboard"
107450
+ }
107451
+ ) : /* @__PURE__ */ import_react7.default.createElement(Spinner, { text: "Preparing your dashboard..." }), (0, import_variant5.match)(gitHubOnboardingStatus, {
107452
+ Success: ({ result }) => result?.status === OnboardingState.GITHUB_ENABLED && /* @__PURE__ */ import_react7.default.createElement(
107453
+ PlatformLink,
107454
+ {
107455
+ url: `https://vibe.wix.com/projects/${siteId}`,
107456
+ label: "Editor"
107457
+ }
107458
+ ),
107459
+ Error: () => null,
107460
+ Loading: () => null
107461
+ })))));
107462
+ };
107463
+
107464
+ // ../cli-astro-commands/src/components/DevCommand/SiteDevFlow.tsx
107465
+ var SiteDevFlow = ({
107466
+ devMetadata,
107467
+ serverLocalUrl,
107468
+ serverExposedUrl
107469
+ }) => {
107470
+ return /* @__PURE__ */ import_react8.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react8.default.createElement(
107471
+ SiteDev,
107472
+ {
107473
+ devMetadata,
107474
+ serverLocalUrl,
107475
+ serverExposedUrl
107476
+ }
107477
+ ));
107478
+ };
107479
+
107480
+ // ../cli-astro-commands/src/components/DevCommand/AppDevFlow.tsx
107481
+ init_esm_shims();
107482
+ var import_react27 = __toESM(require_react(), 1);
107483
+
107484
+ // ../cli-astro-commands/src/site/index.ts
107485
+ init_esm_shims();
107486
+
107487
+ // ../cli-astro-commands/src/site/SiteProvider.tsx
107488
+ init_esm_shims();
107489
+ var import_react20 = __toESM(require_react(), 1);
107490
+ var import_variant13 = __toESM(require_lib(), 1);
107491
+
107160
107492
  // ../cli-astro-commands/src/site/ResolveSite.tsx
107161
107493
  init_esm_shims();
107162
- var import_react13 = __toESM(require_react(), 1);
107163
- var import_variant7 = __toESM(require_lib(), 1);
107494
+ var import_react18 = __toESM(require_react(), 1);
107495
+ var import_variant11 = __toESM(require_lib(), 1);
107164
107496
 
107165
107497
  // ../cli-site-selector/src/index.ts
107166
107498
  init_esm_shims();
107167
107499
 
107168
107500
  // ../cli-site-selector/src/SiteSelector.tsx
107169
107501
  init_esm_shims();
107170
- var import_react12 = __toESM(require_react(), 1);
107171
- var import_variant6 = __toESM(require_lib(), 1);
107502
+ var import_react17 = __toESM(require_react(), 1);
107503
+ var import_variant10 = __toESM(require_lib(), 1);
107172
107504
 
107173
107505
  // ../site-list-client/src/index.ts
107174
107506
  init_esm_shims();
@@ -107392,21 +107724,21 @@ var SiteListClient = class {
107392
107724
 
107393
107725
  // ../site-list-client/src/useSiteListClient.ts
107394
107726
  init_esm_shims();
107395
- var import_react4 = __toESM(require_react(), 1);
107727
+ var import_react9 = __toESM(require_react(), 1);
107396
107728
  function useSiteListClient() {
107397
107729
  const httpClient = useHttpClient({ type: "backoffice" });
107398
- const client = (0, import_react4.useMemo)(() => new SiteListClient(httpClient), [httpClient]);
107730
+ const client = (0, import_react9.useMemo)(() => new SiteListClient(httpClient), [httpClient]);
107399
107731
  return usePanoramaMethodLogger(client);
107400
107732
  }
107401
107733
 
107402
107734
  // ../cli-site-selector/src/SiteTypeSelect.tsx
107403
107735
  init_esm_shims();
107404
- var import_react6 = __toESM(require_react(), 1);
107405
- var import_variant2 = __toESM(require_lib(), 1);
107736
+ var import_react11 = __toESM(require_react(), 1);
107737
+ var import_variant6 = __toESM(require_lib(), 1);
107406
107738
 
107407
107739
  // ../cli-site-selector/src/bi.ts
107408
107740
  init_esm_shims();
107409
- var import_react5 = __toESM(require_react(), 1);
107741
+ var import_react10 = __toESM(require_react(), 1);
107410
107742
  function siteSelectorBiEvents(biLogger) {
107411
107743
  return {
107412
107744
  cliAction: ({
@@ -107441,7 +107773,7 @@ function siteSelectorBiEvents(biLogger) {
107441
107773
  }
107442
107774
  function useSiteSelectorBi() {
107443
107775
  const biLogger = useBiLogger();
107444
- return (0, import_react5.useMemo)(() => siteSelectorBiEvents(biLogger), [biLogger]);
107776
+ return (0, import_react10.useMemo)(() => siteSelectorBiEvents(biLogger), [biLogger]);
107445
107777
  }
107446
107778
 
107447
107779
  // ../cli-site-selector/src/SiteTypeSelect.tsx
@@ -107461,13 +107793,13 @@ var SiteTypeSelect = ({ onSubmit, onError, sites }) => {
107461
107793
  });
107462
107794
  onSubmit(option.value);
107463
107795
  };
107464
- return (0, import_variant2.match)(status, {
107796
+ return (0, import_variant6.match)(status, {
107465
107797
  Error: () => null,
107466
- Loading: () => /* @__PURE__ */ import_react6.default.createElement(Spinner, { text: t("general.loading") }),
107798
+ Loading: () => /* @__PURE__ */ import_react11.default.createElement(Spinner, { text: t("general.loading") }),
107467
107799
  Success: ({ result: [devSitesCount, devSitesLimit] }) => {
107468
107800
  const isDevSitesLimitReached = devSitesCount >= devSitesLimit;
107469
107801
  const userHasNoSites = sites.length === 0;
107470
- return /* @__PURE__ */ import_react6.default.createElement(
107802
+ return /* @__PURE__ */ import_react11.default.createElement(
107471
107803
  SelectInput,
107472
107804
  {
107473
107805
  label: t("site_type_select.label"),
@@ -107498,17 +107830,17 @@ var SiteTypeSelect = ({ onSubmit, onError, sites }) => {
107498
107830
 
107499
107831
  // ../cli-site-selector/src/CreateDevSite.tsx
107500
107832
  init_esm_shims();
107501
- var import_react9 = __toESM(require_react(), 1);
107502
- var import_variant4 = __toESM(require_lib(), 1);
107833
+ var import_react14 = __toESM(require_react(), 1);
107834
+ var import_variant8 = __toESM(require_lib(), 1);
107503
107835
 
107504
107836
  // ../cli-site-selector/src/WaitForAppToBeInstalled.tsx
107505
107837
  init_esm_shims();
107506
- var import_react8 = __toESM(require_react(), 1);
107507
- var import_variant3 = __toESM(require_lib(), 1);
107838
+ var import_react13 = __toESM(require_react(), 1);
107839
+ var import_variant7 = __toESM(require_lib(), 1);
107508
107840
 
107509
107841
  // ../cli-site-selector/src/OpenBrowser.tsx
107510
107842
  init_esm_shims();
107511
- var import_react7 = __toESM(require_react(), 1);
107843
+ var import_react12 = __toESM(require_react(), 1);
107512
107844
  var OpenBrowser = ({ siteId, appId }) => {
107513
107845
  const { t } = useTranslation();
107514
107846
  const bi = useSiteSelectorBi();
@@ -107524,17 +107856,17 @@ var OpenBrowser = ({ siteId, appId }) => {
107524
107856
  );
107525
107857
  }
107526
107858
  });
107527
- return /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, /* @__PURE__ */ import_react7.default.createElement(Trans, { i18nKey: "install_app_on_site.warning" }), /* @__PURE__ */ import_react7.default.createElement(
107859
+ return /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(Trans, { i18nKey: "install_app_on_site.warning" }), /* @__PURE__ */ import_react12.default.createElement(
107528
107860
  Trans,
107529
107861
  {
107530
107862
  i18nKey: "install_app_on_site.warning.instructions",
107531
- components: [/* @__PURE__ */ import_react7.default.createElement(Key, { value: "Enter" })]
107863
+ components: [/* @__PURE__ */ import_react12.default.createElement(Key, { value: "Enter" })]
107532
107864
  }
107533
107865
  ));
107534
107866
  };
107535
107867
 
107536
107868
  // ../cli-site-selector/src/WaitForAppToBeInstalled.tsx
107537
- var AppInstallData = (0, import_variant3.variant)({
107869
+ var AppInstallData = (0, import_variant7.variant)({
107538
107870
  Success: {},
107539
107871
  Canceled: {}
107540
107872
  });
@@ -107578,16 +107910,16 @@ var WaitForAppToBeInstalled = ({
107578
107910
  {
107579
107911
  onError,
107580
107912
  onSuccess: (result) => {
107581
- if ((0, import_variant3.isType)(result, AppInstallData.Success)) {
107913
+ if ((0, import_variant7.isType)(result, AppInstallData.Success)) {
107582
107914
  onSubmit();
107583
107915
  }
107584
107916
  }
107585
107917
  }
107586
107918
  );
107587
- return (0, import_variant3.match)(status, {
107919
+ return (0, import_variant7.match)(status, {
107588
107920
  Error: () => null,
107589
- Loading: () => /* @__PURE__ */ import_react8.default.createElement(OpenBrowser, { siteId: site.id, appId }),
107590
- Success: () => /* @__PURE__ */ import_react8.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react8.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react8.default.createElement(Trans, { i18nKey: "general.success" })), " ", /* @__PURE__ */ import_react8.default.createElement(Trans, { i18nKey: "install_app_on_site.finished_successfully" }))
107921
+ Loading: () => /* @__PURE__ */ import_react13.default.createElement(OpenBrowser, { siteId: site.id, appId }),
107922
+ Success: () => /* @__PURE__ */ import_react13.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react13.default.createElement(Badge, { skin: "success" }, /* @__PURE__ */ import_react13.default.createElement(Trans, { i18nKey: "general.success" })), " ", /* @__PURE__ */ import_react13.default.createElement(Trans, { i18nKey: "install_app_on_site.finished_successfully" }))
107591
107923
  });
107592
107924
  };
107593
107925
 
@@ -107599,18 +107931,18 @@ var CreateDevSite = ({
107599
107931
  onError
107600
107932
  }) => {
107601
107933
  const { t } = useTranslation();
107602
- return (0, import_variant4.match)(status, {
107934
+ return (0, import_variant8.match)(status, {
107603
107935
  NotRequested: () => null,
107604
107936
  Error: () => null,
107605
- Loading: () => /* @__PURE__ */ import_react9.default.createElement(Spinner, { text: t("create_dev_site.loading") }),
107606
- Success: ({ result }) => /* @__PURE__ */ import_react9.default.createElement(import_react9.default.Fragment, null, /* @__PURE__ */ import_react9.default.createElement(
107937
+ Loading: () => /* @__PURE__ */ import_react14.default.createElement(Spinner, { text: t("create_dev_site.loading") }),
107938
+ Success: ({ result }) => /* @__PURE__ */ import_react14.default.createElement(import_react14.default.Fragment, null, /* @__PURE__ */ import_react14.default.createElement(
107607
107939
  Trans,
107608
107940
  {
107609
107941
  i18nKey: "create_dev_site.success",
107610
- components: [/* @__PURE__ */ import_react9.default.createElement(Text, { skin: "success", bold: true })],
107942
+ components: [/* @__PURE__ */ import_react14.default.createElement(Text, { skin: "success", bold: true })],
107611
107943
  values: { name: result.displayName }
107612
107944
  }
107613
- ), /* @__PURE__ */ import_react9.default.createElement(
107945
+ ), /* @__PURE__ */ import_react14.default.createElement(
107614
107946
  WaitForAppToBeInstalled,
107615
107947
  {
107616
107948
  appId,
@@ -107624,16 +107956,16 @@ var CreateDevSite = ({
107624
107956
 
107625
107957
  // ../cli-site-selector/src/SelectExistingSite.tsx
107626
107958
  init_esm_shims();
107627
- var import_react11 = __toESM(require_react(), 1);
107628
- var import_variant5 = __toESM(require_lib(), 1);
107959
+ var import_react16 = __toESM(require_react(), 1);
107960
+ var import_variant9 = __toESM(require_lib(), 1);
107629
107961
 
107630
107962
  // ../cli-site-selector/src/SiteListSelect.tsx
107631
107963
  init_esm_shims();
107632
- var import_react10 = __toESM(require_react(), 1);
107964
+ var import_react15 = __toESM(require_react(), 1);
107633
107965
  var SiteListSelect = ({ onSubmit, sites }) => {
107634
107966
  const { t } = useTranslation();
107635
107967
  const bi = useSiteSelectorBi();
107636
- const handleSubmit = (0, import_react10.useCallback)(
107968
+ const handleSubmit = (0, import_react15.useCallback)(
107637
107969
  (option) => {
107638
107970
  bi.cliFlowStepAnswered({
107639
107971
  question: t("site_list_select.label"),
@@ -107643,7 +107975,7 @@ var SiteListSelect = ({ onSubmit, sites }) => {
107643
107975
  },
107644
107976
  [bi, onSubmit, t]
107645
107977
  );
107646
- return /* @__PURE__ */ import_react10.default.createElement(
107978
+ return /* @__PURE__ */ import_react15.default.createElement(
107647
107979
  SelectInput,
107648
107980
  {
107649
107981
  label: t("site_list_select.label"),
@@ -107670,14 +108002,14 @@ var CheckAppInstalledOnSite = ({ appId, site, onSubmit, onError }) => {
107670
108002
  }
107671
108003
  }
107672
108004
  });
107673
- return (0, import_variant5.match)(status, {
108005
+ return (0, import_variant9.match)(status, {
107674
108006
  Error: () => null,
107675
- Loading: () => /* @__PURE__ */ import_react11.default.createElement(Spinner, { text: t("general.loading") }),
108007
+ Loading: () => /* @__PURE__ */ import_react16.default.createElement(Spinner, { text: t("general.loading") }),
107676
108008
  Success: ({ result: isInstalled }) => {
107677
108009
  if (isInstalled) {
107678
108010
  return null;
107679
108011
  }
107680
- return /* @__PURE__ */ import_react11.default.createElement(
108012
+ return /* @__PURE__ */ import_react16.default.createElement(
107681
108013
  WaitForAppToBeInstalled,
107682
108014
  {
107683
108015
  appId,
@@ -107695,16 +108027,16 @@ var SelectExistingSite = ({
107695
108027
  onSubmit,
107696
108028
  onError
107697
108029
  }) => {
107698
- const [siteToInstallAppOn, setSiteToInstallAppOn] = (0, import_react11.useState)(
108030
+ const [siteToInstallAppOn, setSiteToInstallAppOn] = (0, import_react16.useState)(
107699
108031
  null
107700
108032
  );
107701
- return /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement(
108033
+ return /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, /* @__PURE__ */ import_react16.default.createElement(
107702
108034
  SiteListSelect,
107703
108035
  {
107704
108036
  onSubmit: (site) => setSiteToInstallAppOn(site),
107705
108037
  sites
107706
108038
  }
107707
- ), siteToInstallAppOn && /* @__PURE__ */ import_react11.default.createElement(
108039
+ ), siteToInstallAppOn && /* @__PURE__ */ import_react16.default.createElement(
107708
108040
  CheckAppInstalledOnSite,
107709
108041
  {
107710
108042
  appId,
@@ -107739,7 +108071,7 @@ var SiteSelector = ({
107739
108071
  onSubmit,
107740
108072
  onError
107741
108073
  }) => {
107742
- const [siteType, setSiteType] = (0, import_react12.useState)(null);
108074
+ const [siteType, setSiteType] = (0, import_react17.useState)(null);
107743
108075
  const { createDevSite } = useDevCenterClient();
107744
108076
  const siteListClient = useSiteListClient();
107745
108077
  const { status } = useAsync(
@@ -107764,17 +108096,17 @@ var SiteSelector = ({
107764
108096
  void createSite.execute();
107765
108097
  }
107766
108098
  }
107767
- return /* @__PURE__ */ import_react12.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react12.default.createElement(I18nProvider, { messages: messages_default }, (0, import_variant6.match)(status, {
108099
+ return /* @__PURE__ */ import_react17.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react17.default.createElement(I18nProvider, { messages: messages_default }, (0, import_variant10.match)(status, {
107768
108100
  Error: () => null,
107769
- Loading: () => /* @__PURE__ */ import_react12.default.createElement(Spinner, { text: /* @__PURE__ */ import_react12.default.createElement(Trans, { i18nKey: "general.loading" }) }),
107770
- Success: ({ result: sites }) => /* @__PURE__ */ import_react12.default.createElement(import_react12.default.Fragment, null, /* @__PURE__ */ import_react12.default.createElement(
108101
+ Loading: () => /* @__PURE__ */ import_react17.default.createElement(Spinner, { text: /* @__PURE__ */ import_react17.default.createElement(Trans, { i18nKey: "general.loading" }) }),
108102
+ Success: ({ result: sites }) => /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, /* @__PURE__ */ import_react17.default.createElement(
107771
108103
  SiteTypeSelect,
107772
108104
  {
107773
108105
  onSubmit: handleSelectSiteType,
107774
108106
  onError,
107775
108107
  sites
107776
108108
  }
107777
- ), siteType === "create-dev-site" && /* @__PURE__ */ import_react12.default.createElement(
108109
+ ), siteType === "create-dev-site" && /* @__PURE__ */ import_react17.default.createElement(
107778
108110
  CreateDevSite,
107779
108111
  {
107780
108112
  status: createSite.status,
@@ -107782,7 +108114,7 @@ var SiteSelector = ({
107782
108114
  onSubmit,
107783
108115
  onError
107784
108116
  }
107785
- ), siteType === "select-existing-site" && /* @__PURE__ */ import_react12.default.createElement(
108117
+ ), siteType === "select-existing-site" && /* @__PURE__ */ import_react17.default.createElement(
107786
108118
  SelectExistingSite,
107787
108119
  {
107788
108120
  sites,
@@ -107799,11 +108131,11 @@ var ResolveSite = ({ state, onSubmit }) => {
107799
108131
  const exit = useExit();
107800
108132
  const { model } = useProjectModel();
107801
108133
  const biLogger = useBiLogger();
107802
- return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, (0, import_variant7.match)(state, {
107803
- NotConfigured: (0, import_variant7.constant)(
107804
- /* @__PURE__ */ import_react13.default.createElement(Alert, { type: "insight" }, "You don't have a Development Site currently configured")
108134
+ return /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, (0, import_variant11.match)(state, {
108135
+ NotConfigured: (0, import_variant11.constant)(
108136
+ /* @__PURE__ */ import_react18.default.createElement(Alert, { type: "insight" }, "You don't have a Development Site currently configured")
107805
108137
  )
107806
- }), /* @__PURE__ */ import_react13.default.createElement(
108138
+ }), /* @__PURE__ */ import_react18.default.createElement(
107807
108139
  SiteSelector,
107808
108140
  {
107809
108141
  appId: model.config.appId,
@@ -107816,29 +108148,29 @@ var ResolveSite = ({ state, onSubmit }) => {
107816
108148
 
107817
108149
  // ../cli-astro-commands/src/site/context.ts
107818
108150
  init_esm_shims();
107819
- var import_react14 = __toESM(require_react(), 1);
107820
- var SiteContext = (0, import_react14.createContext)(null);
108151
+ var import_react19 = __toESM(require_react(), 1);
108152
+ var SiteContext = (0, import_react19.createContext)(null);
107821
108153
 
107822
108154
  // ../cli-astro-commands/src/site/site-state.ts
107823
108155
  init_esm_shims();
107824
- var import_variant8 = __toESM(require_lib(), 1);
107825
- var SiteState = (0, import_variant8.variant)({
108156
+ var import_variant12 = __toESM(require_lib(), 1);
108157
+ var SiteState = (0, import_variant12.variant)({
107826
108158
  NotConfigured: {},
107827
- Resolved: (0, import_variant8.fields)()
108159
+ Resolved: (0, import_variant12.fields)()
107828
108160
  });
107829
108161
 
107830
108162
  // ../cli-astro-commands/src/site/SiteProvider.tsx
107831
108163
  var SiteProvider = ({ children }) => {
107832
108164
  const exit = useExit();
107833
108165
  const {
107834
- model: { projectFolder, config }
108166
+ model: { projectFolder }
107835
108167
  } = useProjectModel();
107836
108168
  const writeDebugLog = useDebugLog();
107837
108169
  const { status, merge } = useAsync(async () => {
107838
- const siteId = config.projectType === "Site" ? config.siteId : (await readAppConfig(projectFolder, writeDebugLog))?.siteId;
108170
+ const siteId = (await readAppConfig(projectFolder, writeDebugLog))?.siteId;
107839
108171
  return siteId ? SiteState.Resolved({ siteId }) : SiteState.NotConfigured();
107840
108172
  }, []);
107841
- const setSite = (0, import_react15.useCallback)(
108173
+ const setSite = (0, import_react20.useCallback)(
107842
108174
  async (siteId) => {
107843
108175
  try {
107844
108176
  await saveAppConfig(projectFolder, { siteId });
@@ -107854,17 +108186,17 @@ var SiteProvider = ({ children }) => {
107854
108186
  },
107855
108187
  [merge, projectFolder]
107856
108188
  );
107857
- const handleResolveSite = (0, import_react15.useCallback)(
108189
+ const handleResolveSite = (0, import_react20.useCallback)(
107858
108190
  (siteId) => setSite(siteId).catch(exit),
107859
108191
  [exit, setSite]
107860
108192
  );
107861
- return (0, import_variant9.match)(status, {
108193
+ return (0, import_variant13.match)(status, {
107862
108194
  Error: () => null,
107863
- Loading: () => /* @__PURE__ */ import_react15.default.createElement(Spinner, { text: "Resolving development site..." }),
108195
+ Loading: () => /* @__PURE__ */ import_react20.default.createElement(Spinner, { text: "Resolving development site..." }),
107864
108196
  Success: ({ result: state }) => {
107865
- return (0, import_variant9.match)(state, {
107866
- NotConfigured: (variant6) => /* @__PURE__ */ import_react15.default.createElement(ResolveSite, { state: variant6, onSubmit: handleResolveSite }),
107867
- Resolved: ({ siteId }) => /* @__PURE__ */ import_react15.default.createElement(
108197
+ return (0, import_variant13.match)(state, {
108198
+ NotConfigured: (variant6) => /* @__PURE__ */ import_react20.default.createElement(ResolveSite, { state: variant6, onSubmit: handleResolveSite }),
108199
+ Resolved: ({ siteId }) => /* @__PURE__ */ import_react20.default.createElement(
107868
108200
  SiteContext.Provider,
107869
108201
  {
107870
108202
  value: {
@@ -107881,362 +108213,24 @@ var SiteProvider = ({ children }) => {
107881
108213
 
107882
108214
  // ../cli-astro-commands/src/site/useSite.ts
107883
108215
  init_esm_shims();
107884
- var import_react16 = __toESM(require_react(), 1);
108216
+ var import_react21 = __toESM(require_react(), 1);
107885
108217
  function useSite() {
107886
- const context = (0, import_react16.useContext)(SiteContext);
108218
+ const context = (0, import_react21.useContext)(SiteContext);
107887
108219
  if (context == null) {
107888
108220
  throw new Error("useSite() cannot be used without an <SiteProvider>");
107889
108221
  }
107890
108222
  return context;
107891
108223
  }
107892
108224
 
107893
- // ../cli-astro-commands/src/components/DevCommand/SiteDev.tsx
107894
- init_esm_shims();
107895
- var import_react20 = __toESM(require_react(), 1);
107896
- var import_variant13 = __toESM(require_lib(), 1);
107897
-
107898
- // ../cli-astro-commands/src/components/DevCommand/hooks/useDevCenterUpdater.ts
107899
- init_esm_shims();
107900
- var import_react18 = __toESM(require_react(), 1);
107901
- var import_variant11 = __toESM(require_lib(), 1);
107902
-
107903
- // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchAppManifest.ts
107904
- init_esm_shims();
107905
- var import_react17 = __toESM(require_react(), 1);
107906
-
107907
- // ../cli-astro-commands/src/components/DevCommand/utils/isTunnelRequired.ts
107908
- init_esm_shims();
107909
- function isTunnelRequired(appManifest) {
107910
- for (const extension of appManifest.components) {
107911
- const knownAppManifest = parseKnownExtensionManifest(extension);
107912
- if (knownAppManifest != null && knownAppManifest.compType === ComponentType.WEBHOOK) {
107913
- return !URL.canParse(knownAppManifest.compData.webhook.callbackUrl);
107914
- }
107915
- }
107916
- return false;
107917
- }
107918
- function parseKnownExtensionManifest(extensionManifest) {
107919
- const appManifestResult = looseComponentSchema.safeParse(extensionManifest);
107920
- if (appManifestResult.error) {
107921
- return null;
107922
- }
107923
- return appManifestResult.data;
107924
- }
107925
-
107926
- // ../cli-astro-commands/src/components/DevCommand/hooks/useFetchAppManifest.ts
107927
- function useFetchAppManifest() {
107928
- const http = useHttpClient({ type: "standalone" });
107929
- return (0, import_react17.useCallback)(
107930
- async (serverLocalUrl, devMetadata, baseUrl, tunnelUrl) => {
107931
- const url = new URL("/_wix/app-manifest.json", serverLocalUrl);
107932
- const { data: text } = await http.get(url.toString(), {
107933
- responseType: "text",
107934
- transitional: {
107935
- silentJSONParsing: true,
107936
- forcedJSONParsing: false,
107937
- clarifyTimeoutError: false
107938
- },
107939
- disableWixHeaders: true
107940
- });
107941
- if (devMetadata != null) {
107942
- const placeholders = /* @__PURE__ */ new Map();
107943
- placeholders.set(devMetadata.staticsUrlPlaceholder, baseUrl);
107944
- placeholders.set(devMetadata.serverUrlPlaceholder, tunnelUrl);
107945
- return {
107946
- manifest: parseLooseAppManifest(text, placeholders),
107947
- isTunnelRequired: text.includes(devMetadata.serverUrlPlaceholder)
107948
- };
107949
- }
107950
- const manifestV1 = parseLooseAppManifest(text);
107951
- return {
107952
- manifest: manifestV1,
107953
- isTunnelRequired: isTunnelRequired(manifestV1)
107954
- };
107955
- },
107956
- [http]
107957
- );
107958
- }
107959
-
107960
- // ../cli-astro-commands/src/components/DevCommand/hooks/checkManifestForChanges.ts
107961
- init_esm_shims();
107962
- var import_variant10 = __toESM(require_lib(), 1);
107963
- import { isDeepStrictEqual } from "node:util";
107964
- var ManifestUpdateResult = (0, import_variant10.variant)({
107965
- Changed: (0, import_variant10.fields)(),
107966
- Unchanged: {}
107967
- });
107968
- function checkManifestForChanges(previous, latest) {
107969
- if (previous == null) {
107970
- return ManifestUpdateResult.Changed({
107971
- shouldDistributeClientUpdate: false
107972
- });
107973
- }
107974
- if (isDeepStrictEqual(previous, latest)) {
107975
- return ManifestUpdateResult.Unchanged();
107976
- }
107977
- const oldComponentsMap = new Map(
107978
- previous.components.map((comp) => [comp.compId, comp])
107979
- );
107980
- const changedComponents = latest.components.filter((newComp) => {
107981
- const oldComp = oldComponentsMap.get(newComp.compId);
107982
- return !isDeepStrictEqual(newComp, oldComp);
107983
- });
107984
- const editorComponentsChanged = changedComponents.filter(
107985
- (comp) => comp.compType === ComponentType.PANEL || comp.compType === ComponentType.EDITOR_REACT_COMPONENT
107986
- );
107987
- return ManifestUpdateResult.Changed({
107988
- shouldDistributeClientUpdate: editorComponentsChanged.length > 0
107989
- });
107990
- }
107991
-
107992
- // ../cli-astro-commands/src/components/DevCommand/hooks/useDevCenterUpdater.ts
107993
- var { pollInterval } = getTestOverrides();
107994
- var useDevCenterUpdater = ({
107995
- serverLocalUrl,
107996
- serverExposedUrl,
107997
- devMetadata
107998
- }) => {
107999
- const [devArmTag, setDevArmTag] = (0, import_react18.useState)();
108000
- const [manifest, setManifest] = (0, import_react18.useState)(null);
108001
- const writeToDebugLog = useDebugLog();
108002
- const { siteId } = useSite();
108003
- const exit = useExit();
108004
- const metasiteManagerClient = useMetasiteManagerClient({ siteId });
108005
- const {
108006
- model: { config, projectFolder, releaseAppId }
108007
- } = useProjectModel();
108008
- const { appId, projectType } = config;
108009
- const logger = useAstroLogger({ isPrefixed: true });
108010
- const arm = useARMClient();
108011
- const updateDeploymentTopology = useUpdateDeploymentTopology(siteId);
108012
- const openTunnel = useTunnel();
108013
- const tunnelUrl = (0, import_react18.useRef)();
108014
- const [tunnelRequired, setTunnelRequired] = (0, import_react18.useState)(false);
108015
- const fetchAppManifest = useFetchAppManifest();
108016
- const updateDevCenter = (0, import_react18.useCallback)(
108017
- async (latestManifest, isTunnelRequired2) => {
108018
- const baseUrl = serverExposedUrl ?? serverLocalUrl;
108019
- const manifestUpdateResult = checkManifestForChanges(
108020
- manifest,
108021
- latestManifest
108022
- );
108023
- if ((0, import_variant11.isType)(manifestUpdateResult, "Unchanged")) {
108024
- return manifestUpdateResult;
108025
- }
108026
- if (!serverExposedUrl && !tunnelUrl.current && isTunnelRequired2) {
108027
- const config2 = await readUserConfig();
108028
- if (!config2.tunneling) {
108029
- setTunnelRequired(true);
108030
- return ManifestUpdateResult.Unchanged();
108031
- }
108032
- const serverLocalPort = parseInt(new URL(serverLocalUrl).port, 10);
108033
- const tunnel = await openTunnel(serverLocalPort);
108034
- tunnelUrl.current = tunnel.url;
108035
- return ManifestUpdateResult.Unchanged();
108036
- }
108037
- const appConfig = await readAppConfig(projectFolder);
108038
- let updatedDevArmTag = appConfig?.devArmTag;
108039
- if (!updatedDevArmTag) {
108040
- updatedDevArmTag = await arm.createLooseAppRelease(
108041
- latestManifest,
108042
- releaseAppId
108043
- );
108044
- } else {
108045
- const updateState = await arm.updateLooseAppRelease(
108046
- latestManifest,
108047
- updatedDevArmTag
108048
- );
108049
- if (!(0, import_variant11.isType)(updateState, "TagUpdated")) {
108050
- updatedDevArmTag = await arm.createLooseAppRelease(
108051
- latestManifest,
108052
- releaseAppId
108053
- );
108054
- }
108055
- }
108056
- if (updatedDevArmTag !== appConfig?.devArmTag) {
108057
- await saveAppConfig(projectFolder, { devArmTag: updatedDevArmTag });
108058
- }
108059
- if ((0, import_variant11.isType)(manifestUpdateResult, "Changed") && manifestUpdateResult.shouldDistributeClientUpdate) {
108060
- await metasiteManagerClient.distributeClientUpdate(appId);
108061
- }
108062
- setManifest(latestManifest);
108063
- setDevArmTag(updatedDevArmTag);
108064
- await updateDeploymentTopology({
108065
- siteUrl: projectType === "Site" ? baseUrl : void 0,
108066
- armTag: updatedDevArmTag,
108067
- environment: "development"
108068
- });
108069
- return manifestUpdateResult;
108070
- },
108071
- [
108072
- releaseAppId,
108073
- manifest,
108074
- metasiteManagerClient,
108075
- serverLocalUrl,
108076
- serverExposedUrl,
108077
- arm,
108078
- projectFolder,
108079
- appId,
108080
- updateDeploymentTopology,
108081
- openTunnel,
108082
- projectType
108083
- ]
108084
- );
108085
- const [timer, setTimer] = (0, import_react18.useState)(Date.now());
108086
- (0, import_react18.useEffect)(() => {
108087
- let disposed = false;
108088
- async function fetchAndUpdate() {
108089
- const baseUrl = serverExposedUrl ?? serverLocalUrl;
108090
- const { manifest: manifest2, isTunnelRequired: isTunnelRequired2 } = await fetchAppManifest(
108091
- serverLocalUrl,
108092
- devMetadata,
108093
- baseUrl,
108094
- tunnelUrl.current ?? baseUrl
108095
- );
108096
- try {
108097
- const result = await updateDevCenter(manifest2, isTunnelRequired2);
108098
- if ((0, import_variant11.isType)(result, "Changed")) {
108099
- logger.log(
108100
- "App Manifest updated. Refresh existing browser tabs to view the latest changes."
108101
- );
108102
- }
108103
- } catch (error) {
108104
- setManifest(manifest2);
108105
- logger.log("Failed to update App Manifest");
108106
- logger.log(`${error}`);
108107
- writeToDebugLog(error);
108108
- throw error;
108109
- }
108110
- }
108111
- void fetchAndUpdate().catch((error) => {
108112
- if (error instanceof Error && error.name === "TrustedAppIsNotMarkedAsInternal") {
108113
- exit(error);
108114
- }
108115
- }).finally(() => {
108116
- if (!disposed) {
108117
- setTimeout(() => setTimer(Date.now()), pollInterval ?? 1e3);
108118
- }
108119
- });
108120
- return () => {
108121
- disposed = true;
108122
- };
108123
- }, [timer]);
108124
- return { tunnelRequired, devArmTag };
108125
- };
108126
-
108127
- // ../cli-astro-commands/src/components/DevCommand/TunnelingConsent.tsx
108128
- init_esm_shims();
108129
- var import_react19 = __toESM(require_react(), 1);
108130
- var import_variant12 = __toESM(require_lib(), 1);
108131
- var TunnelingConsent = ({ required, children }) => {
108132
- const exit = useExit();
108133
- const [approved, setApproved] = (0, import_react19.useState)();
108134
- const { status } = useAsync(async () => {
108135
- const config = await readUserConfig();
108136
- if (config.tunneling) {
108137
- setApproved(true);
108138
- }
108139
- return config;
108140
- }, []);
108141
- if (!required || approved) {
108142
- return children;
108143
- }
108144
- return /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, (0, import_variant12.match)(status, {
108145
- Success: () => /* @__PURE__ */ import_react19.default.createElement(
108146
- ConfirmInput,
108147
- {
108148
- label: "To proceed, we'll set up a secure tunnel from your machine for development purposes",
108149
- initialValue: true,
108150
- onSubmit: async (approved2) => {
108151
- setApproved(approved2);
108152
- await updateUserConfig({ tunneling: approved2 });
108153
- if (!approved2) {
108154
- exit();
108155
- }
108156
- }
108157
- }
108158
- ),
108159
- Error: () => null,
108160
- Loading: () => null
108161
- }), approved === false && /* @__PURE__ */ import_react19.default.createElement(Text, { skin: "error" }, "Operation aborted. Tunneling is necessary to run your application."));
108162
- };
108163
-
108164
- // ../cli-astro-commands/src/components/DevCommand/SiteDev.tsx
108165
- var SiteDev = ({
108166
- serverLocalUrl,
108167
- serverExposedUrl,
108168
- devMetadata
108169
- }) => {
108170
- const { siteId } = useSite();
108171
- const {
108172
- model: {
108173
- config: { appId }
108174
- }
108175
- } = useProjectModel();
108176
- const { tunnelRequired, devArmTag } = useDevCenterUpdater({
108177
- serverLocalUrl,
108178
- serverExposedUrl,
108179
- devMetadata
108180
- });
108181
- const veloClient = useVeloClient();
108182
- const { status: gitHubOnboardingStatus } = useAsync(
108183
- () => veloClient.getGitHubOnboardingStatus(appId),
108184
- [appId]
108185
- );
108186
- return /* @__PURE__ */ import_react20.default.createElement(import_react20.default.Fragment, null, /* @__PURE__ */ import_react20.default.createElement(Text, null, "Development environment ready"), /* @__PURE__ */ import_react20.default.createElement(Box_default, { rowGap: 1, marginY: 1, flexDirection: "column" }, /* @__PURE__ */ import_react20.default.createElement(TunnelingConsent, { required: tunnelRequired }, /* @__PURE__ */ import_react20.default.createElement(Text, null, "Open the preview on:"), /* @__PURE__ */ import_react20.default.createElement(Box_default, { paddingLeft: 2, flexDirection: "column" }, /* @__PURE__ */ import_react20.default.createElement(PlatformLink, { url: serverLocalUrl, label: "Site" }), devArmTag ? /* @__PURE__ */ import_react20.default.createElement(
108187
- PlatformLink,
108188
- {
108189
- url: `https://manage.wix.com/dashboard/${siteId}?apps-override=${devArmTag}`,
108190
- label: "Dashboard"
108191
- }
108192
- ) : /* @__PURE__ */ import_react20.default.createElement(Spinner, { text: "Preparing your dashboard..." }), (0, import_variant13.match)(gitHubOnboardingStatus, {
108193
- Success: ({ result }) => result?.status === OnboardingState.GITHUB_ENABLED && /* @__PURE__ */ import_react20.default.createElement(
108194
- PlatformLink,
108195
- {
108196
- url: `https://vibe.wix.com/projects/${siteId}`,
108197
- label: "Editor"
108198
- }
108199
- ),
108200
- Error: () => null,
108201
- Loading: () => null
108202
- })))));
108203
- };
108204
-
108205
- // ../cli-astro-commands/src/components/DevCommand/SiteDevFlow.tsx
108206
- var SiteDevFlow = ({
108207
- devMetadataStatus,
108208
- serverExposedUrl
108209
- }) => {
108210
- const { siteId } = useSite();
108211
- return /* @__PURE__ */ import_react21.default.createElement(SiteAuthProvider, { siteId }, (0, import_variant14.match)(devMetadataStatus, {
108212
- NotRequested: () => /* @__PURE__ */ import_react21.default.createElement(Spinner, { text: "Starting dev environment..." }),
108213
- Error: () => null,
108214
- Loading: () => /* @__PURE__ */ import_react21.default.createElement(Spinner, { text: "Checking dev environment settings..." }),
108215
- Success: ({ result: { devMetadata, serverLocalUrl } }) => /* @__PURE__ */ import_react21.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react21.default.createElement(
108216
- SiteDev,
108217
- {
108218
- devMetadata,
108219
- serverLocalUrl,
108220
- serverExposedUrl
108221
- }
108222
- ))
108223
- }));
108224
- };
108225
-
108226
- // ../cli-astro-commands/src/components/DevCommand/AppDevFlow.tsx
108227
- init_esm_shims();
108228
- var import_react27 = __toESM(require_react(), 1);
108229
- var import_variant17 = __toESM(require_lib(), 1);
108230
-
108231
108225
  // ../cli-astro-commands/src/components/DevCommand/app-flow/AppDev.tsx
108232
108226
  init_esm_shims();
108233
108227
  var import_react26 = __toESM(require_react(), 1);
108234
- var import_variant16 = __toESM(require_lib(), 1);
108228
+ var import_variant15 = __toESM(require_lib(), 1);
108235
108229
 
108236
108230
  // ../cli-astro-commands/src/components/DevCommand/app-flow/screen-state.ts
108237
108231
  init_esm_shims();
108238
- var import_variant15 = __toESM(require_lib(), 1);
108239
- var ScreenState = (0, import_variant15.variant)({
108232
+ var import_variant14 = __toESM(require_lib(), 1);
108233
+ var ScreenState = (0, import_variant14.variant)({
108240
108234
  Home: {},
108241
108235
  SiteSelector: {}
108242
108236
  });
@@ -108264,7 +108258,7 @@ var CloseScreen = ({ onClose }) => {
108264
108258
  onClose();
108265
108259
  }
108266
108260
  });
108267
- return /* @__PURE__ */ import_react22.default.createElement(Text, { skin: "secondary" }, "Press", /* @__PURE__ */ import_react22.default.createElement(Key, { value: "esc", skin: "secondary" }), "to close");
108261
+ return /* @__PURE__ */ import_react22.default.createElement(Text, { skin: "secondary" }, "Press ", /* @__PURE__ */ import_react22.default.createElement(Key, { value: "esc", skin: "secondary" }), " to close");
108268
108262
  };
108269
108263
 
108270
108264
  // ../cli-astro-commands/src/components/DevCommand/app-flow/SiteSelectorScreen.tsx
@@ -108370,12 +108364,14 @@ var AppDev = ({
108370
108364
  devMetadata
108371
108365
  }) => {
108372
108366
  const [screen, setScreen] = (0, import_react26.useState)(ScreenState.Home());
108367
+ const { siteId } = useSite();
108373
108368
  const { tunnelRequired, devArmTag } = useDevCenterUpdater({
108369
+ siteId,
108374
108370
  serverLocalUrl,
108375
108371
  serverExposedUrl,
108376
108372
  devMetadata
108377
108373
  });
108378
- return /* @__PURE__ */ import_react26.default.createElement(TunnelingConsent, { required: tunnelRequired }, (0, import_variant16.match)(screen, {
108374
+ return /* @__PURE__ */ import_react26.default.createElement(TunnelingConsent, { required: tunnelRequired }, (0, import_variant15.match)(screen, {
108379
108375
  Home: () => /* @__PURE__ */ import_react26.default.createElement(HomeScreen, { onScreenChange: setScreen, devArmTag }),
108380
108376
  SiteSelector: () => /* @__PURE__ */ import_react26.default.createElement(SiteSelectorScreen, { onScreenChange: setScreen })
108381
108377
  }));
@@ -108383,24 +108379,18 @@ var AppDev = ({
108383
108379
 
108384
108380
  // ../cli-astro-commands/src/components/DevCommand/AppDevFlow.tsx
108385
108381
  var AppDevFlow = ({
108386
- devMetadataStatus,
108382
+ devMetadata,
108383
+ serverLocalUrl,
108387
108384
  serverExposedUrl
108388
108385
  }) => {
108389
- return (0, import_variant17.match)(devMetadataStatus, {
108390
- NotRequested: () => /* @__PURE__ */ import_react27.default.createElement(Spinner, { text: "Starting dev environment..." }),
108391
- Error: () => null,
108392
- Loading: () => /* @__PURE__ */ import_react27.default.createElement(Spinner, { text: "Checking dev environment settings..." }),
108393
- Success: ({ result: { devMetadata, serverLocalUrl } }) => {
108394
- return /* @__PURE__ */ import_react27.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react27.default.createElement(
108395
- AppDev,
108396
- {
108397
- serverLocalUrl,
108398
- serverExposedUrl,
108399
- devMetadata
108400
- }
108401
- ));
108386
+ return /* @__PURE__ */ import_react27.default.createElement(SiteProvider, null, /* @__PURE__ */ import_react27.default.createElement(DevScreenBorder, null, /* @__PURE__ */ import_react27.default.createElement(
108387
+ AppDev,
108388
+ {
108389
+ serverLocalUrl,
108390
+ serverExposedUrl,
108391
+ devMetadata
108402
108392
  }
108403
- });
108393
+ )));
108404
108394
  };
108405
108395
 
108406
108396
  // ../cli-astro-commands/src/components/DevCommand/DevCommand.tsx
@@ -108454,19 +108444,26 @@ var DevCommand = ({
108454
108444
  }
108455
108445
  };
108456
108446
  }, []);
108457
- return /* @__PURE__ */ import_react28.default.createElement(SiteProvider, null, config.projectType === "Site" ? /* @__PURE__ */ import_react28.default.createElement(
108458
- SiteDevFlow,
108459
- {
108460
- devMetadataStatus: fetchDevMetadataAction.status,
108461
- serverExposedUrl
108462
- }
108463
- ) : /* @__PURE__ */ import_react28.default.createElement(
108464
- AppDevFlow,
108465
- {
108466
- devMetadataStatus: fetchDevMetadataAction.status,
108467
- serverExposedUrl
108468
- }
108469
- ));
108447
+ return (0, import_variant16.match)(fetchDevMetadataAction.status, {
108448
+ NotRequested: () => /* @__PURE__ */ import_react28.default.createElement(Spinner, { text: "Starting dev environment..." }),
108449
+ Error: () => null,
108450
+ Loading: () => /* @__PURE__ */ import_react28.default.createElement(Spinner, { text: "Checking dev environment settings..." }),
108451
+ Success: ({ result: { devMetadata, serverLocalUrl } }) => config.projectType === "Site" ? /* @__PURE__ */ import_react28.default.createElement(
108452
+ SiteDevFlow,
108453
+ {
108454
+ devMetadata,
108455
+ serverLocalUrl,
108456
+ serverExposedUrl
108457
+ }
108458
+ ) : /* @__PURE__ */ import_react28.default.createElement(
108459
+ AppDevFlow,
108460
+ {
108461
+ devMetadata,
108462
+ serverLocalUrl,
108463
+ serverExposedUrl
108464
+ }
108465
+ )
108466
+ });
108470
108467
  };
108471
108468
  export {
108472
108469
  DevCommand
@@ -108525,4 +108522,4 @@ export {
108525
108522
  *)
108526
108523
  *)
108527
108524
  */
108528
- //# sourceMappingURL=DevCommand-CPE5YZ3A.js.map
108525
+ //# sourceMappingURL=DevCommand-4DU5K2YB.js.map