@mountaya/studio-react 0.1.0 → 0.2.0

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 (1057) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +3 -3
  3. package/THIRD-PARTY-NOTICES.txt +2 -2
  4. package/dist/chunk--VSQcEs_.cjs +26 -0
  5. package/dist/chunk--VSQcEs_.cjs.map +1 -0
  6. package/dist/chunk-0qoALFfx.cjs +454 -0
  7. package/dist/chunk-0qoALFfx.cjs.map +1 -0
  8. package/dist/chunk-0sHgX8We.cjs +97 -0
  9. package/dist/chunk-0sHgX8We.cjs.map +1 -0
  10. package/dist/chunk-4D4as_tP.js +16 -0
  11. package/dist/chunk-4D4as_tP.js.map +1 -0
  12. package/dist/chunk-6LM6wuIg.cjs +13 -0
  13. package/dist/chunk-6LM6wuIg.cjs.map +1 -0
  14. package/dist/chunk-6VpwF-77.js +7 -0
  15. package/dist/chunk-6VpwF-77.js.map +1 -0
  16. package/dist/chunk-6v2fJIDh.cjs +28 -0
  17. package/dist/chunk-6v2fJIDh.cjs.map +1 -0
  18. package/dist/chunk-Af0f-OjN.js +71 -0
  19. package/dist/chunk-Af0f-OjN.js.map +1 -0
  20. package/dist/chunk-B-QQkaWk.js +91 -0
  21. package/dist/chunk-B-QQkaWk.js.map +1 -0
  22. package/dist/chunk-B1lX5w6I.cjs +181 -0
  23. package/dist/chunk-B1lX5w6I.cjs.map +1 -0
  24. package/dist/chunk-B2gsz9OJ.js +19 -0
  25. package/dist/chunk-B2gsz9OJ.js.map +1 -0
  26. package/dist/chunk-B38srE2R.d.cts +3976 -0
  27. package/dist/chunk-B3HdxIq7.js +69 -0
  28. package/dist/chunk-B3HdxIq7.js.map +1 -0
  29. package/dist/chunk-B3UCX3Wd.js +30 -0
  30. package/dist/chunk-B3UCX3Wd.js.map +1 -0
  31. package/dist/chunk-B3mMYMtz.cjs +88 -0
  32. package/dist/chunk-B3mMYMtz.cjs.map +1 -0
  33. package/dist/chunk-B7D0neNQ.cjs +47 -0
  34. package/dist/chunk-B7D0neNQ.cjs.map +1 -0
  35. package/dist/chunk-B7UzNwmm.cjs +115 -0
  36. package/dist/chunk-B7UzNwmm.cjs.map +1 -0
  37. package/dist/chunk-B7d3NIaH.js +55 -0
  38. package/dist/chunk-B7d3NIaH.js.map +1 -0
  39. package/dist/chunk-B8ONCPFQ.cjs +70 -0
  40. package/dist/chunk-B8ONCPFQ.cjs.map +1 -0
  41. package/dist/chunk-B8QgG-RT.js +2232 -0
  42. package/dist/chunk-B8QgG-RT.js.map +1 -0
  43. package/dist/chunk-B8ZpXH0_.cjs +64 -0
  44. package/dist/chunk-B8ZpXH0_.cjs.map +1 -0
  45. package/dist/chunk-B8mS5bGc.cjs +112 -0
  46. package/dist/chunk-B8mS5bGc.cjs.map +1 -0
  47. package/dist/chunk-B9EkHHSU.js +40 -0
  48. package/dist/chunk-B9EkHHSU.js.map +1 -0
  49. package/dist/chunk-BA0PWNyn.js +234 -0
  50. package/dist/chunk-BA0PWNyn.js.map +1 -0
  51. package/dist/chunk-BAWE1gqe.js +60 -0
  52. package/dist/chunk-BAWE1gqe.js.map +1 -0
  53. package/dist/chunk-BAe9m2Yp.d.cts +963 -0
  54. package/dist/chunk-BDJCk6ml.js +19 -0
  55. package/dist/chunk-BDJCk6ml.js.map +1 -0
  56. package/dist/chunk-BFI2CR6j.cjs +381 -0
  57. package/dist/chunk-BFI2CR6j.cjs.map +1 -0
  58. package/dist/chunk-BIIJXiiS.js +40 -0
  59. package/dist/chunk-BIIJXiiS.js.map +1 -0
  60. package/dist/chunk-BJAn10wR.js +54 -0
  61. package/dist/chunk-BJAn10wR.js.map +1 -0
  62. package/dist/chunk-BLxPxx5p.js +1641 -0
  63. package/dist/chunk-BLxPxx5p.js.map +1 -0
  64. package/dist/chunk-BNSJoNwO.cjs +377 -0
  65. package/dist/chunk-BNSJoNwO.cjs.map +1 -0
  66. package/dist/chunk-BNTshA5u.js +304 -0
  67. package/dist/chunk-BNTshA5u.js.map +1 -0
  68. package/dist/chunk-BO_yHMn2.js +7 -0
  69. package/dist/chunk-BO_yHMn2.js.map +1 -0
  70. package/dist/chunk-BOpIVklq.cjs +23 -0
  71. package/dist/chunk-BOpIVklq.cjs.map +1 -0
  72. package/dist/chunk-BP8bHGiE.cjs +12 -0
  73. package/dist/chunk-BP8bHGiE.cjs.map +1 -0
  74. package/dist/chunk-BPsgx3c7.js +56 -0
  75. package/dist/chunk-BPsgx3c7.js.map +1 -0
  76. package/dist/chunk-BQkKY_kf.js +44 -0
  77. package/dist/chunk-BQkKY_kf.js.map +1 -0
  78. package/dist/chunk-BQoAEKyJ.js +193 -0
  79. package/dist/chunk-BQoAEKyJ.js.map +1 -0
  80. package/dist/chunk-BRuLc45I.cjs +21 -0
  81. package/dist/chunk-BRuLc45I.cjs.map +1 -0
  82. package/dist/chunk-BSnrqsA8.cjs +56 -0
  83. package/dist/chunk-BSnrqsA8.cjs.map +1 -0
  84. package/dist/chunk-BTDBomKm.cjs +80 -0
  85. package/dist/chunk-BTDBomKm.cjs.map +1 -0
  86. package/dist/chunk-BVogYy0R.js +375 -0
  87. package/dist/chunk-BVogYy0R.js.map +1 -0
  88. package/dist/chunk-BWITLmlf.js +6 -0
  89. package/dist/chunk-BWITLmlf.js.map +1 -0
  90. package/dist/chunk-BXUrvYqd.d.cts +112 -0
  91. package/dist/chunk-BXUrvYqd.d.ts +112 -0
  92. package/dist/chunk-BYzQfFFV.js +54 -0
  93. package/dist/chunk-BYzQfFFV.js.map +1 -0
  94. package/dist/chunk-BZCKMlN8.js +35 -0
  95. package/dist/chunk-BZCKMlN8.js.map +1 -0
  96. package/dist/chunk-BalPERFX.js +13 -0
  97. package/dist/chunk-BalPERFX.js.map +1 -0
  98. package/dist/chunk-Bb5SAw6T.cjs +72 -0
  99. package/dist/chunk-Bb5SAw6T.cjs.map +1 -0
  100. package/dist/chunk-BbQyoetL.cjs +269 -0
  101. package/dist/chunk-BbQyoetL.cjs.map +1 -0
  102. package/dist/chunk-BdepwGey.js +600 -0
  103. package/dist/chunk-BdepwGey.js.map +1 -0
  104. package/dist/chunk-BeB57TnZ.js +29 -0
  105. package/dist/chunk-BeB57TnZ.js.map +1 -0
  106. package/dist/chunk-BecxET4U.cjs +26 -0
  107. package/dist/chunk-BecxET4U.cjs.map +1 -0
  108. package/dist/chunk-Bfuu_B7M.js +16 -0
  109. package/dist/chunk-Bfuu_B7M.js.map +1 -0
  110. package/dist/chunk-Bh4xSiDO.js +93 -0
  111. package/dist/chunk-Bh4xSiDO.js.map +1 -0
  112. package/dist/chunk-BhLItb06.js +10 -0
  113. package/dist/chunk-BhLItb06.js.map +1 -0
  114. package/dist/chunk-BhelUZ4P.js +30 -0
  115. package/dist/chunk-BhelUZ4P.js.map +1 -0
  116. package/dist/chunk-BiMRpOwB.cjs +342 -0
  117. package/dist/chunk-BiMRpOwB.cjs.map +1 -0
  118. package/dist/chunk-Bj3ium6N.cjs +22 -0
  119. package/dist/chunk-Bj3ium6N.cjs.map +1 -0
  120. package/dist/chunk-BjQzK3c3.cjs +59 -0
  121. package/dist/chunk-BjQzK3c3.cjs.map +1 -0
  122. package/dist/chunk-BkvNTXo7.cjs +15 -0
  123. package/dist/chunk-BkvNTXo7.cjs.map +1 -0
  124. package/dist/chunk-BmJDHIlZ.cjs +50 -0
  125. package/dist/chunk-BmJDHIlZ.cjs.map +1 -0
  126. package/dist/chunk-BmztanwN.cjs +13 -0
  127. package/dist/chunk-BmztanwN.cjs.map +1 -0
  128. package/dist/chunk-Bnci-ej8.cjs +262 -0
  129. package/dist/chunk-Bnci-ej8.cjs.map +1 -0
  130. package/dist/chunk-BoOw05B0.js +24 -0
  131. package/dist/chunk-BoOw05B0.js.map +1 -0
  132. package/dist/chunk-BqPxk-8w.cjs +95 -0
  133. package/dist/chunk-BqPxk-8w.cjs.map +1 -0
  134. package/dist/chunk-Br_1h4WD.cjs +15 -0
  135. package/dist/chunk-Br_1h4WD.cjs.map +1 -0
  136. package/dist/chunk-BtmcBZXU.js +13 -0
  137. package/dist/chunk-BtmcBZXU.js.map +1 -0
  138. package/dist/chunk-BvaNI_86.js +11 -0
  139. package/dist/chunk-BvaNI_86.js.map +1 -0
  140. package/dist/chunk-BvoYNlF5.js +145 -0
  141. package/dist/chunk-BvoYNlF5.js.map +1 -0
  142. package/dist/chunk-BwnCGe7J.js +268 -0
  143. package/dist/chunk-BwnCGe7J.js.map +1 -0
  144. package/dist/chunk-BxpaOkyq.cjs +310 -0
  145. package/dist/chunk-BxpaOkyq.cjs.map +1 -0
  146. package/dist/chunk-BybRyFen.cjs +65 -0
  147. package/dist/chunk-BybRyFen.cjs.map +1 -0
  148. package/dist/chunk-C-9wXKm5.cjs +83 -0
  149. package/dist/chunk-C-9wXKm5.cjs.map +1 -0
  150. package/dist/chunk-C-hV-Usi.js +7 -0
  151. package/dist/chunk-C-hV-Usi.js.map +1 -0
  152. package/dist/chunk-C06UWdDq.js +100 -0
  153. package/dist/chunk-C06UWdDq.js.map +1 -0
  154. package/dist/chunk-C1NzDn7y.cjs +35 -0
  155. package/dist/chunk-C1NzDn7y.cjs.map +1 -0
  156. package/dist/chunk-C2zEVNM1.js +20 -0
  157. package/dist/chunk-C2zEVNM1.js.map +1 -0
  158. package/dist/chunk-C3ftwoOp.js +6 -0
  159. package/dist/chunk-C3ftwoOp.js.map +1 -0
  160. package/dist/chunk-C5ZETobm.js +17 -0
  161. package/dist/chunk-C5ZETobm.js.map +1 -0
  162. package/dist/chunk-C5oCIViv.js +98 -0
  163. package/dist/chunk-C5oCIViv.js.map +1 -0
  164. package/dist/chunk-C60kC4oZ.cjs +114 -0
  165. package/dist/chunk-C60kC4oZ.cjs.map +1 -0
  166. package/dist/chunk-C6Mr3Z8L.js +59 -0
  167. package/dist/chunk-C6Mr3Z8L.js.map +1 -0
  168. package/dist/chunk-C6cBmVch.js +119 -0
  169. package/dist/chunk-C6cBmVch.js.map +1 -0
  170. package/dist/chunk-C6vKd7KP.cjs +519 -0
  171. package/dist/chunk-C6vKd7KP.cjs.map +1 -0
  172. package/dist/chunk-C7NizUxN.js +21 -0
  173. package/dist/chunk-C7NizUxN.js.map +1 -0
  174. package/dist/chunk-C93yeTAD.js +91 -0
  175. package/dist/chunk-C93yeTAD.js.map +1 -0
  176. package/dist/chunk-CByZU6Hx.cjs +90 -0
  177. package/dist/chunk-CByZU6Hx.cjs.map +1 -0
  178. package/dist/chunk-CCNIPIJB.cjs +25 -0
  179. package/dist/chunk-CCNIPIJB.cjs.map +1 -0
  180. package/dist/chunk-CEDKBew2.js +15 -0
  181. package/dist/chunk-CEDKBew2.js.map +1 -0
  182. package/dist/chunk-CI2PEZIK.js +147 -0
  183. package/dist/chunk-CI2PEZIK.js.map +1 -0
  184. package/dist/chunk-CIjPAYuo.cjs +268 -0
  185. package/dist/chunk-CIjPAYuo.cjs.map +1 -0
  186. package/dist/chunk-CJyqD6Ib.js +518 -0
  187. package/dist/chunk-CJyqD6Ib.js.map +1 -0
  188. package/dist/chunk-CNFF8fiL.js +38 -0
  189. package/dist/chunk-CNFF8fiL.js.map +1 -0
  190. package/dist/chunk-CNFoFzhK.cjs +50 -0
  191. package/dist/chunk-CNFoFzhK.cjs.map +1 -0
  192. package/dist/chunk-CQAuAPOE.cjs +63 -0
  193. package/dist/chunk-CQAuAPOE.cjs.map +1 -0
  194. package/dist/chunk-CR46E73M.js +50 -0
  195. package/dist/chunk-CR46E73M.js.map +1 -0
  196. package/dist/chunk-CSq4CbT1.js +86 -0
  197. package/dist/chunk-CSq4CbT1.js.map +1 -0
  198. package/dist/chunk-CT6i9_8G.cjs +31 -0
  199. package/dist/chunk-CT6i9_8G.cjs.map +1 -0
  200. package/dist/chunk-CUKEOil1.cjs +108 -0
  201. package/dist/chunk-CUKEOil1.cjs.map +1 -0
  202. package/dist/chunk-CWxPV2vI.js +111 -0
  203. package/dist/chunk-CWxPV2vI.js.map +1 -0
  204. package/dist/chunk-CXap-mFu.js +50 -0
  205. package/dist/chunk-CXap-mFu.js.map +1 -0
  206. package/dist/chunk-CYx1vTOG.d.ts +69 -0
  207. package/dist/chunk-CZOXtOQp.js +261 -0
  208. package/dist/chunk-CZOXtOQp.js.map +1 -0
  209. package/dist/chunk-CZSBVyE9.js +68 -0
  210. package/dist/chunk-CZSBVyE9.js.map +1 -0
  211. package/dist/chunk-C_NZdnA3.cjs +57 -0
  212. package/dist/chunk-C_NZdnA3.cjs.map +1 -0
  213. package/dist/chunk-C_k4SxhD.js +245 -0
  214. package/dist/chunk-C_k4SxhD.js.map +1 -0
  215. package/dist/chunk-CaTeIppS.cjs +115 -0
  216. package/dist/chunk-CaTeIppS.cjs.map +1 -0
  217. package/dist/chunk-CaUCI-WV.cjs +69 -0
  218. package/dist/chunk-CaUCI-WV.cjs.map +1 -0
  219. package/dist/chunk-CblkEI9o.js +19 -0
  220. package/dist/chunk-CblkEI9o.js.map +1 -0
  221. package/dist/chunk-CcXeCiEQ.js +70 -0
  222. package/dist/chunk-CcXeCiEQ.js.map +1 -0
  223. package/dist/chunk-Ce4D2B8W.cjs +49 -0
  224. package/dist/chunk-Ce4D2B8W.cjs.map +1 -0
  225. package/dist/chunk-CetxbYL1.js +66 -0
  226. package/dist/chunk-CetxbYL1.js.map +1 -0
  227. package/dist/chunk-ClfU9elo.js +68 -0
  228. package/dist/chunk-ClfU9elo.js.map +1 -0
  229. package/dist/chunk-CmNHE_Un.cjs +4 -0
  230. package/dist/chunk-Cmb_XLfd.js +82 -0
  231. package/dist/chunk-Cmb_XLfd.js.map +1 -0
  232. package/dist/chunk-Cp26IdF1.js +72 -0
  233. package/dist/chunk-Cp26IdF1.js.map +1 -0
  234. package/dist/chunk-CsBkSCbR.cjs +92 -0
  235. package/dist/chunk-CsBkSCbR.cjs.map +1 -0
  236. package/dist/chunk-CsnIpELM.js +31 -0
  237. package/dist/chunk-CsnIpELM.js.map +1 -0
  238. package/dist/chunk-CsnJv55G.cjs +36 -0
  239. package/dist/chunk-CsnJv55G.cjs.map +1 -0
  240. package/dist/chunk-CsxHDVHF.cjs +68 -0
  241. package/dist/chunk-CsxHDVHF.cjs.map +1 -0
  242. package/dist/chunk-Cv1FyWmK.js +670 -0
  243. package/dist/chunk-Cv1FyWmK.js.map +1 -0
  244. package/dist/chunk-CwXRQ-3X.cjs +2238 -0
  245. package/dist/chunk-CwXRQ-3X.cjs.map +1 -0
  246. package/dist/chunk-CxC9GaSV.js +6 -0
  247. package/dist/chunk-CxC9GaSV.js.map +1 -0
  248. package/dist/chunk-CyDQK1JF.js +22 -0
  249. package/dist/chunk-CyDQK1JF.js.map +1 -0
  250. package/dist/chunk-CyFo-C-X.js +341 -0
  251. package/dist/chunk-CyFo-C-X.js.map +1 -0
  252. package/dist/chunk-CzGWcm8C.cjs +109 -0
  253. package/dist/chunk-CzGWcm8C.cjs.map +1 -0
  254. package/dist/chunk-D0Cmheqq.cjs +25 -0
  255. package/dist/chunk-D0Cmheqq.cjs.map +1 -0
  256. package/dist/chunk-D0VevtWq.cjs +13 -0
  257. package/dist/chunk-D0VevtWq.cjs.map +1 -0
  258. package/dist/chunk-D1HIZ09h.d.cts +22 -0
  259. package/dist/chunk-D1HIZ09h.d.ts +22 -0
  260. package/dist/chunk-D1PwxEEq.cjs +281 -0
  261. package/dist/chunk-D1PwxEEq.cjs.map +1 -0
  262. package/dist/chunk-D2BipKyx.d.cts +69 -0
  263. package/dist/chunk-D4g36nrI.d.ts +963 -0
  264. package/dist/chunk-D5vZKs5k.js +85 -0
  265. package/dist/chunk-D5vZKs5k.js.map +1 -0
  266. package/dist/chunk-D7XBi__G.js +17 -0
  267. package/dist/chunk-D7XBi__G.js.map +1 -0
  268. package/dist/chunk-D8TsKfym.cjs +35 -0
  269. package/dist/chunk-D8TsKfym.cjs.map +1 -0
  270. package/dist/chunk-D8r50zRF.cjs +4 -0
  271. package/dist/chunk-DAAlHzRS.js +2 -0
  272. package/dist/chunk-DBY6OSNP.js +13 -0
  273. package/dist/chunk-DBY6OSNP.js.map +1 -0
  274. package/dist/chunk-DBfZJAh3.js +146 -0
  275. package/dist/chunk-DBfZJAh3.js.map +1 -0
  276. package/dist/chunk-DBpF1Eur.cjs +69 -0
  277. package/dist/chunk-DBpF1Eur.cjs.map +1 -0
  278. package/dist/chunk-DCvhBL80.js +9 -0
  279. package/dist/chunk-DCvhBL80.js.map +1 -0
  280. package/dist/chunk-DDNoqMiU.cjs +12 -0
  281. package/dist/chunk-DDNoqMiU.cjs.map +1 -0
  282. package/dist/chunk-DEpLX45Z.cjs +25 -0
  283. package/dist/chunk-DEpLX45Z.cjs.map +1 -0
  284. package/dist/chunk-DFw3I0U0.cjs +19 -0
  285. package/dist/chunk-DFw3I0U0.cjs.map +1 -0
  286. package/dist/chunk-DJOkmY4u.cjs +36 -0
  287. package/dist/chunk-DJOkmY4u.cjs.map +1 -0
  288. package/dist/chunk-DJQsem2x.js +1128 -0
  289. package/dist/chunk-DJQsem2x.js.map +1 -0
  290. package/dist/chunk-DKNcYR4L.cjs +71 -0
  291. package/dist/chunk-DKNcYR4L.cjs.map +1 -0
  292. package/dist/chunk-DL4Q5WpP.cjs +19 -0
  293. package/dist/chunk-DL4Q5WpP.cjs.map +1 -0
  294. package/dist/chunk-DLt13wEh.js +279 -0
  295. package/dist/chunk-DLt13wEh.js.map +1 -0
  296. package/dist/chunk-DPvFDS5n.cjs +31 -0
  297. package/dist/chunk-DPvFDS5n.cjs.map +1 -0
  298. package/dist/chunk-DQ4l6EDZ.js +1728 -0
  299. package/dist/chunk-DQ4l6EDZ.js.map +1 -0
  300. package/dist/chunk-DQ_X9yhT.cjs +21 -0
  301. package/dist/chunk-DQ_X9yhT.cjs.map +1 -0
  302. package/dist/chunk-DQbbL87b.cjs +57 -0
  303. package/dist/chunk-DQbbL87b.cjs.map +1 -0
  304. package/dist/chunk-DRphChLx.js +15 -0
  305. package/dist/chunk-DRphChLx.js.map +1 -0
  306. package/dist/chunk-DSsTHBp4.js +62 -0
  307. package/dist/chunk-DSsTHBp4.js.map +1 -0
  308. package/dist/chunk-DVI59otQ.js +20 -0
  309. package/dist/chunk-DVI59otQ.js.map +1 -0
  310. package/dist/chunk-DVN4tYVL.cjs +235 -0
  311. package/dist/chunk-DVN4tYVL.cjs.map +1 -0
  312. package/dist/chunk-DWxCDSxn.cjs +36 -0
  313. package/dist/chunk-DWxCDSxn.cjs.map +1 -0
  314. package/dist/chunk-DXMaeZs_.cjs +135 -0
  315. package/dist/chunk-DXMaeZs_.cjs.map +1 -0
  316. package/dist/chunk-D_dPThBm.js +44 -0
  317. package/dist/chunk-D_dPThBm.js.map +1 -0
  318. package/dist/chunk-DbW3lF5Y.cjs +55 -0
  319. package/dist/chunk-DbW3lF5Y.cjs.map +1 -0
  320. package/dist/chunk-Dc0Robe4.cjs +254 -0
  321. package/dist/chunk-Dc0Robe4.cjs.map +1 -0
  322. package/dist/chunk-DcLLI7B1.cjs +16 -0
  323. package/dist/chunk-DcLLI7B1.cjs.map +1 -0
  324. package/dist/chunk-Dd9K8OSs.js +73 -0
  325. package/dist/chunk-Dd9K8OSs.js.map +1 -0
  326. package/dist/chunk-DeFJnC-Q.js +52 -0
  327. package/dist/chunk-DeFJnC-Q.js.map +1 -0
  328. package/dist/chunk-DeggaLXL.cjs +109 -0
  329. package/dist/chunk-DeggaLXL.cjs.map +1 -0
  330. package/dist/chunk-DetGuqR8.cjs +12 -0
  331. package/dist/chunk-DetGuqR8.cjs.map +1 -0
  332. package/dist/chunk-Df761BAX.cjs +4 -0
  333. package/dist/chunk-DfQZch7H.cjs +60 -0
  334. package/dist/chunk-DfQZch7H.cjs.map +1 -0
  335. package/dist/chunk-DhwoAmi8.cjs +77 -0
  336. package/dist/chunk-DhwoAmi8.cjs.map +1 -0
  337. package/dist/chunk-DkH1DKxi.cjs +66 -0
  338. package/dist/chunk-DkH1DKxi.cjs.map +1 -0
  339. package/dist/chunk-DkjkI8F5.cjs +150 -0
  340. package/dist/chunk-DkjkI8F5.cjs.map +1 -0
  341. package/dist/chunk-DlaVYkP2.cjs +23 -0
  342. package/dist/chunk-DlaVYkP2.cjs.map +1 -0
  343. package/dist/chunk-DlcsA1GQ.js +6 -0
  344. package/dist/chunk-DlcsA1GQ.js.map +1 -0
  345. package/dist/chunk-DmBkJhi_.js +8 -0
  346. package/dist/chunk-DmBkJhi_.js.map +1 -0
  347. package/dist/chunk-DnXjnOQ1.cjs +42 -0
  348. package/dist/chunk-DnXjnOQ1.cjs.map +1 -0
  349. package/dist/chunk-DrG9yz7c.js +509 -0
  350. package/dist/chunk-DrG9yz7c.js.map +1 -0
  351. package/dist/chunk-DsTU_5Be.js +96 -0
  352. package/dist/chunk-DsTU_5Be.js.map +1 -0
  353. package/dist/chunk-DsXj9iLu.cjs +1827 -0
  354. package/dist/chunk-DsXj9iLu.cjs.map +1 -0
  355. package/dist/chunk-DteUy52S.js +45 -0
  356. package/dist/chunk-DteUy52S.js.map +1 -0
  357. package/dist/chunk-DtvsE56k.cjs +12 -0
  358. package/dist/chunk-DtvsE56k.cjs.map +1 -0
  359. package/dist/chunk-DuD5YqoE.cjs +99 -0
  360. package/dist/chunk-DuD5YqoE.cjs.map +1 -0
  361. package/dist/chunk-DvrtQ0Y0.js +51 -0
  362. package/dist/chunk-DvrtQ0Y0.js.map +1 -0
  363. package/dist/chunk-DwUFwDV2.js +144 -0
  364. package/dist/chunk-DwUFwDV2.js.map +1 -0
  365. package/dist/chunk-Dy59Tdfm.cjs +67 -0
  366. package/dist/chunk-Dy59Tdfm.cjs.map +1 -0
  367. package/dist/chunk-DyJupG9U.cjs +74 -0
  368. package/dist/chunk-DyJupG9U.cjs.map +1 -0
  369. package/dist/chunk-DzCbinPo.js +9 -0
  370. package/dist/chunk-DzCbinPo.js.map +1 -0
  371. package/dist/chunk-GgcOmaXu.cjs +137 -0
  372. package/dist/chunk-GgcOmaXu.cjs.map +1 -0
  373. package/dist/chunk-GnVcZTQv.cjs +50 -0
  374. package/dist/chunk-GnVcZTQv.cjs.map +1 -0
  375. package/dist/chunk-JDLVWYk5.cjs +22 -0
  376. package/dist/chunk-JDLVWYk5.cjs.map +1 -0
  377. package/dist/chunk-NA04sFmY.js +2 -0
  378. package/dist/chunk-NqIZvB2L.js +44 -0
  379. package/dist/chunk-NqIZvB2L.js.map +1 -0
  380. package/dist/chunk-OGNas_Mn.cjs +654 -0
  381. package/dist/chunk-OGNas_Mn.cjs.map +1 -0
  382. package/dist/chunk-PeexRooj.cjs +12 -0
  383. package/dist/chunk-PeexRooj.cjs.map +1 -0
  384. package/dist/chunk-QUjeQKsz.js +26 -0
  385. package/dist/chunk-QUjeQKsz.js.map +1 -0
  386. package/dist/chunk-S0jc_E9W.cjs +62 -0
  387. package/dist/chunk-S0jc_E9W.cjs.map +1 -0
  388. package/dist/chunk-TLRG-UaM.js +453 -0
  389. package/dist/chunk-TLRG-UaM.js.map +1 -0
  390. package/dist/chunk-TYmd7TzW.cjs +68 -0
  391. package/dist/chunk-TYmd7TzW.cjs.map +1 -0
  392. package/dist/chunk-TlHnQSY_.js +250 -0
  393. package/dist/chunk-TlHnQSY_.js.map +1 -0
  394. package/dist/chunk-Vba_029j.js +36 -0
  395. package/dist/chunk-Vba_029j.js.map +1 -0
  396. package/dist/chunk-Vp0uJb7O.cjs +92 -0
  397. package/dist/chunk-Vp0uJb7O.cjs.map +1 -0
  398. package/dist/chunk-WPGdcwtf.cjs +15 -0
  399. package/dist/chunk-WPGdcwtf.cjs.map +1 -0
  400. package/dist/chunk-WUipjqNN.cjs +158 -0
  401. package/dist/chunk-WUipjqNN.cjs.map +1 -0
  402. package/dist/chunk-Y-zyJ0-m.js +6 -0
  403. package/dist/chunk-Y-zyJ0-m.js.map +1 -0
  404. package/dist/chunk-ZIIlDASG.js +94 -0
  405. package/dist/chunk-ZIIlDASG.js.map +1 -0
  406. package/dist/chunk-ZLDg2I1Z.js +6 -0
  407. package/dist/chunk-ZLDg2I1Z.js.map +1 -0
  408. package/dist/chunk-_jSTl9gW.cjs +1129 -0
  409. package/dist/chunk-_jSTl9gW.cjs.map +1 -0
  410. package/dist/chunk-b5CqEoo1.cjs +599 -0
  411. package/dist/chunk-b5CqEoo1.cjs.map +1 -0
  412. package/dist/chunk-bA-2OGXv.d.ts +3977 -0
  413. package/dist/chunk-bvwC3n0z.cjs +12 -0
  414. package/dist/chunk-bvwC3n0z.cjs.map +1 -0
  415. package/dist/chunk-cMQzXXQq.js +67 -0
  416. package/dist/chunk-cMQzXXQq.js.map +1 -0
  417. package/dist/chunk-cTRnGhbF.cjs +177 -0
  418. package/dist/chunk-cTRnGhbF.cjs.map +1 -0
  419. package/dist/chunk-dHKPMJ4D.js +85 -0
  420. package/dist/chunk-dHKPMJ4D.js.map +1 -0
  421. package/dist/chunk-d_BOXcT5.js +9 -0
  422. package/dist/chunk-d_BOXcT5.js.map +1 -0
  423. package/dist/chunk-ea1IbBcA.js +66 -0
  424. package/dist/chunk-ea1IbBcA.js.map +1 -0
  425. package/dist/chunk-f-dHVrF3.js +293 -0
  426. package/dist/chunk-f-dHVrF3.js.map +1 -0
  427. package/dist/chunk-h7Z5mAV_.cjs +41 -0
  428. package/dist/chunk-h7Z5mAV_.cjs.map +1 -0
  429. package/dist/chunk-jSgMzVr1.js +35 -0
  430. package/dist/chunk-jSgMzVr1.js.map +1 -0
  431. package/dist/chunk-kYE5SZgs.cjs +252 -0
  432. package/dist/chunk-kYE5SZgs.cjs.map +1 -0
  433. package/dist/chunk-lEnNKG6x.cjs +285 -0
  434. package/dist/chunk-lEnNKG6x.cjs.map +1 -0
  435. package/dist/chunk-lcml1N1G.js +11 -0
  436. package/dist/chunk-lcml1N1G.js.map +1 -0
  437. package/dist/chunk-nBK0qBXt.js +68 -0
  438. package/dist/chunk-nBK0qBXt.js.map +1 -0
  439. package/dist/chunk-njoANlUr.cjs +41 -0
  440. package/dist/chunk-njoANlUr.cjs.map +1 -0
  441. package/dist/chunk-nwutfrnH.cjs +430 -0
  442. package/dist/chunk-nwutfrnH.cjs.map +1 -0
  443. package/dist/chunk-o1EKuTLo.js +56 -0
  444. package/dist/chunk-o1EKuTLo.js.map +1 -0
  445. package/dist/chunk-oMFOZSQM.cjs +52 -0
  446. package/dist/chunk-oMFOZSQM.cjs.map +1 -0
  447. package/dist/chunk-pb64dLGD.cjs +682 -0
  448. package/dist/chunk-pb64dLGD.cjs.map +1 -0
  449. package/dist/chunk-s7kBzSlt.js +2 -0
  450. package/dist/chunk-uhXxE8xV.cjs +32 -0
  451. package/dist/chunk-uhXxE8xV.cjs.map +1 -0
  452. package/dist/chunk-vGzpsUSM.cjs +110 -0
  453. package/dist/chunk-vGzpsUSM.cjs.map +1 -0
  454. package/dist/chunk-vN_Di8Af.cjs +1890 -0
  455. package/dist/chunk-vN_Di8Af.cjs.map +1 -0
  456. package/dist/chunk-veLShVmw.js +41 -0
  457. package/dist/chunk-veLShVmw.js.map +1 -0
  458. package/dist/chunk-wTf5jOFv.js +253 -0
  459. package/dist/chunk-wTf5jOFv.js.map +1 -0
  460. package/dist/chunk-yO-Ek9RH.cjs +17 -0
  461. package/dist/chunk-yO-Ek9RH.cjs.map +1 -0
  462. package/dist/chunk-ye5UUSFw.js +280 -0
  463. package/dist/chunk-ye5UUSFw.js.map +1 -0
  464. package/dist/copilot/index.cjs +8 -41
  465. package/dist/copilot/index.d.cts +3 -7
  466. package/dist/copilot/index.d.ts +3 -7
  467. package/dist/copilot/index.js +3 -29
  468. package/dist/embed/index.cjs +1599 -1762
  469. package/dist/embed/index.cjs.map +1 -1
  470. package/dist/embed/index.d.cts +86 -95
  471. package/dist/embed/index.d.ts +86 -95
  472. package/dist/embed/index.js +1594 -1760
  473. package/dist/embed/index.js.map +1 -1
  474. package/dist/headless/index.cjs +125 -407
  475. package/dist/headless/index.d.cts +4 -23
  476. package/dist/headless/index.d.ts +4 -23
  477. package/dist/headless/index.js +28 -30
  478. package/dist/import/index.cjs +386 -416
  479. package/dist/import/index.cjs.map +1 -1
  480. package/dist/import/index.d.cts +28 -37
  481. package/dist/import/index.d.ts +28 -37
  482. package/dist/import/index.js +379 -407
  483. package/dist/import/index.js.map +1 -1
  484. package/dist/index.cjs +8939 -10545
  485. package/dist/index.cjs.map +1 -1
  486. package/dist/index.d.cts +1786 -1888
  487. package/dist/index.d.ts +1786 -1888
  488. package/dist/index.js +8737 -9876
  489. package/dist/index.js.map +1 -1
  490. package/dist/map/index.cjs +34 -120
  491. package/dist/map/index.d.cts +2 -988
  492. package/dist/map/index.d.ts +2 -988
  493. package/dist/map/index.js +1 -24
  494. package/dist/styles.css +7 -0
  495. package/dist/testing/index.cjs +367 -326
  496. package/dist/testing/index.cjs.map +1 -1
  497. package/dist/testing/index.d.cts +84 -101
  498. package/dist/testing/index.d.ts +84 -101
  499. package/dist/testing/index.js +362 -324
  500. package/dist/testing/index.js.map +1 -1
  501. package/dist/video/index.cjs +6 -51
  502. package/dist/video/index.d.cts +44 -49
  503. package/dist/video/index.d.ts +44 -49
  504. package/dist/video/index.js +1 -43
  505. package/package.json +22 -23
  506. package/src/agent/components/ChatTranscript.tsx +1 -1
  507. package/src/agent/hooks/useAgentChatTransport.ts +1 -1
  508. package/src/controls/components/PoiOverlayMenu.tsx +1 -1
  509. package/src/controls/components/StudioControls.tsx +1 -1
  510. package/src/directions/components/DirectionsModal.tsx +1 -1
  511. package/src/directions/components/directionsPdf.tsx +1 -9
  512. package/src/embed/components/EmbedColumnsSection.tsx +1 -1
  513. package/src/embed/components/EmbedElementSwitcher.tsx +6 -8
  514. package/src/embed/components/EmbedTablePreview.tsx +2 -2
  515. package/src/embed/hooks/useEmbedPreviewCamera.ts +1 -1
  516. package/src/embed/index.ts +2 -8
  517. package/src/headless/hooks/usePlatformViewer.ts +2 -2
  518. package/src/headless/hooks/useSegmentList.ts +1 -1
  519. package/src/headless/hooks/useSegmentRow.ts +4 -0
  520. package/src/headless/hooks/useStreetViewCorridor.ts +1 -1
  521. package/src/headless/hooks/useStudioDispatch.ts +2 -3
  522. package/src/headless/hooks/useWaypointRow.ts +2 -0
  523. package/src/headless/providers/mountayaStudio.tsx +3 -2
  524. package/src/headless/providers/studio.tsx +5 -4
  525. package/src/headless/providers/studioStrings.tsx +1 -1
  526. package/src/host/components/MountayaStudioHost.tsx +2 -2
  527. package/src/host/hooks/useStudioToolBus.ts +1 -1
  528. package/src/host/hooks/useStudioToolContext.ts +1 -1
  529. package/src/index.ts +13 -52
  530. package/src/itinerary/components/ItineraryForm.tsx +1 -1
  531. package/src/itinerary/components/ItineraryHeaderIdentity.tsx +1 -1
  532. package/src/itinerary/components/PlaceMark.tsx +1 -1
  533. package/src/itinerary/components/SegmentGroupModal.tsx +1 -0
  534. package/src/itinerary/components/StudioItineraryProfile.tsx +5 -5
  535. package/src/itinerary/components/WaypointDetailsView.tsx +2 -2
  536. package/src/itinerary/components/WaypointMarkers.tsx +2 -2
  537. package/src/itinerary/components/WaypointPreviewCard.tsx +1 -1
  538. package/src/itinerary/components/WaypointSwitcher.tsx +1 -1
  539. package/src/itinerary/hooks/useItineraryPace.ts +1 -0
  540. package/src/itinerary/hooks/useProfileVisibility.ts +1 -1
  541. package/src/itinerary/providers/ItineraryViewProvider.tsx +1 -1
  542. package/src/itinerary/rules/amenityGlyphs.ts +1 -1
  543. package/src/lists/components/WaypointList.tsx +2 -1
  544. package/src/map/components/ContextMenuPopup.tsx +6 -6
  545. package/src/map/components/MapAnchoredPopup.tsx +2 -1
  546. package/src/map/hooks/useStudioConstraints.ts +1 -1
  547. package/src/map/hooks/useStudioEditEngine.ts +2 -1
  548. package/src/map/hooks/useStudioEnrichment.ts +1 -1
  549. package/src/map/hooks/useStudioItinerarySelection.ts +1 -1
  550. package/src/map/hooks/useStudioMapBindings.ts +2 -2
  551. package/src/map/hooks/useStudioMapSync.ts +2 -2
  552. package/src/map/hooks/useStudioOverlay.ts +1 -1
  553. package/src/map/hooks/useStudioPeerDrafts.ts +1 -1
  554. package/src/map/hooks/useStudioPoiLayers.ts +1 -1
  555. package/src/map/hooks/useStudioSuggestionPicking.ts +1 -1
  556. package/src/map/hooks/useStudioTimestamp.ts +1 -1
  557. package/src/map/hooks/useStudioUrlState.ts +1 -1
  558. package/src/map/hooks/useStudioWaypointEditing.ts +1 -1
  559. package/src/map/hooks/useStudioZoneEditing.ts +1 -1
  560. package/src/map/hooks/useStudioZoneSelection.ts +1 -1
  561. package/src/map/hooks/useTileLayers.ts +1 -1
  562. package/src/map/rules/poiGlyphs.ts +1 -1
  563. package/src/panels/components/StudioLayersPanel.tsx +1 -1
  564. package/src/primitives/components/ActivityIcon.tsx +1 -1
  565. package/src/primitives/components/DateTimePickerField.tsx +11 -2
  566. package/src/rows/components/WaypointRow.tsx +1 -0
  567. package/src/rows/components/WaypointRowLayout.tsx +1 -0
  568. package/src/rules/menuActions.ts +1 -1
  569. package/src/rules/studioConfig.ts +1 -1
  570. package/src/search/components/SearchTab.tsx +2 -2
  571. package/src/share/components/ShareSheet.tsx +1 -1
  572. package/src/studio/components/MountayaStudio.tsx +4 -4
  573. package/src/studio/components/MountayaStudioViewer.tsx +2 -2
  574. package/src/studio/hooks/useViewerActivation.ts +2 -2
  575. package/src/studio/hooks/useViewerMapBindings.ts +1 -1
  576. package/src/styles.css +6 -5
  577. package/src/testing/mountayaClient.tsx +1 -1
  578. package/src/video/components/PreviewSurface.tsx +2 -2
  579. package/src/video/components/VideoExportWizard.tsx +6 -8
  580. package/src/video/hooks/useVideoPreviewSeed.ts +2 -2
  581. package/src/zone/components/ZoneForm.tsx +1 -1
  582. package/dist/AgentMarkdown-RNLATZYN.cjs +0 -213
  583. package/dist/AgentMarkdown-RNLATZYN.cjs.map +0 -1
  584. package/dist/AgentMarkdown-TMN6E2XC.js +0 -206
  585. package/dist/AgentMarkdown-TMN6E2XC.js.map +0 -1
  586. package/dist/ContextMenuPopup-EOYN42YZ.js +0 -468
  587. package/dist/ContextMenuPopup-EOYN42YZ.js.map +0 -1
  588. package/dist/ContextMenuPopup-VQLAYYYZ.cjs +0 -470
  589. package/dist/ContextMenuPopup-VQLAYYYZ.cjs.map +0 -1
  590. package/dist/CopilotPanel-CCLEYZUN.js +0 -29
  591. package/dist/CopilotPanel-CCLEYZUN.js.map +0 -1
  592. package/dist/CopilotPanel-LYPMTDKX.cjs +0 -38
  593. package/dist/CopilotPanel-LYPMTDKX.cjs.map +0 -1
  594. package/dist/DateTimePickerField-FZRKJ2SU.js +0 -53
  595. package/dist/DateTimePickerField-FZRKJ2SU.js.map +0 -1
  596. package/dist/DateTimePickerField-NB456C6F.cjs +0 -55
  597. package/dist/DateTimePickerField-NB456C6F.cjs.map +0 -1
  598. package/dist/DirectionsModal-4Y346QFU.cjs +0 -291
  599. package/dist/DirectionsModal-4Y346QFU.cjs.map +0 -1
  600. package/dist/DirectionsModal-DRPO2654.js +0 -289
  601. package/dist/DirectionsModal-DRPO2654.js.map +0 -1
  602. package/dist/DuplicateItineraryModal-2QGWI7E7.js +0 -321
  603. package/dist/DuplicateItineraryModal-2QGWI7E7.js.map +0 -1
  604. package/dist/DuplicateItineraryModal-WFGMU6JL.cjs +0 -323
  605. package/dist/DuplicateItineraryModal-WFGMU6JL.cjs.map +0 -1
  606. package/dist/EditCollectionModal-4QYP53SX.js +0 -90
  607. package/dist/EditCollectionModal-4QYP53SX.js.map +0 -1
  608. package/dist/EditCollectionModal-T2TMAO53.cjs +0 -92
  609. package/dist/EditCollectionModal-T2TMAO53.cjs.map +0 -1
  610. package/dist/EmbedSnippetCode-NMFCQ7TF.cjs +0 -62
  611. package/dist/EmbedSnippetCode-NMFCQ7TF.cjs.map +0 -1
  612. package/dist/EmbedSnippetCode-TGBSWDMD.js +0 -60
  613. package/dist/EmbedSnippetCode-TGBSWDMD.js.map +0 -1
  614. package/dist/EmbedTablePreview-3RRHM63Q.js +0 -72
  615. package/dist/EmbedTablePreview-3RRHM63Q.js.map +0 -1
  616. package/dist/EmbedTablePreview-Z3W62MRV.cjs +0 -74
  617. package/dist/EmbedTablePreview-Z3W62MRV.cjs.map +0 -1
  618. package/dist/ExportModal-5NUZZPXN.cjs +0 -267
  619. package/dist/ExportModal-5NUZZPXN.cjs.map +0 -1
  620. package/dist/ExportModal-H7OYP6CK.js +0 -265
  621. package/dist/ExportModal-H7OYP6CK.js.map +0 -1
  622. package/dist/FileDropzone-GKPMAZF5.cjs +0 -41
  623. package/dist/FileDropzone-GKPMAZF5.cjs.map +0 -1
  624. package/dist/FileDropzone-GRXY4FXR.js +0 -39
  625. package/dist/FileDropzone-GRXY4FXR.js.map +0 -1
  626. package/dist/LocationPermissionModal-AFHI5J4S.cjs +0 -92
  627. package/dist/LocationPermissionModal-AFHI5J4S.cjs.map +0 -1
  628. package/dist/LocationPermissionModal-MURJ5DDB.js +0 -90
  629. package/dist/LocationPermissionModal-MURJ5DDB.js.map +0 -1
  630. package/dist/ManageCollectionsModal-E3IUHUTO.cjs +0 -402
  631. package/dist/ManageCollectionsModal-E3IUHUTO.cjs.map +0 -1
  632. package/dist/ManageCollectionsModal-FIHSZXSR.js +0 -400
  633. package/dist/ManageCollectionsModal-FIHSZXSR.js.map +0 -1
  634. package/dist/NewCollectionModal-7TBWVA3G.js +0 -75
  635. package/dist/NewCollectionModal-7TBWVA3G.js.map +0 -1
  636. package/dist/NewCollectionModal-QFQYCKCG.cjs +0 -77
  637. package/dist/NewCollectionModal-QFQYCKCG.cjs.map +0 -1
  638. package/dist/RoadAccessModal-DNUJV5PC.js +0 -57
  639. package/dist/RoadAccessModal-DNUJV5PC.js.map +0 -1
  640. package/dist/RoadAccessModal-WLLL2ASZ.cjs +0 -59
  641. package/dist/RoadAccessModal-WLLL2ASZ.cjs.map +0 -1
  642. package/dist/SegmentColorPicker-7Y4JEPFC.cjs +0 -81
  643. package/dist/SegmentColorPicker-7Y4JEPFC.cjs.map +0 -1
  644. package/dist/SegmentColorPicker-UNLPITUA.js +0 -79
  645. package/dist/SegmentColorPicker-UNLPITUA.js.map +0 -1
  646. package/dist/SegmentGroupModal-F54FZUR2.cjs +0 -32
  647. package/dist/SegmentGroupModal-F54FZUR2.cjs.map +0 -1
  648. package/dist/SegmentGroupModal-KBU7OPNJ.js +0 -23
  649. package/dist/SegmentGroupModal-KBU7OPNJ.js.map +0 -1
  650. package/dist/ShareCollectionModal-TWYE6JJ4.cjs +0 -82
  651. package/dist/ShareCollectionModal-TWYE6JJ4.cjs.map +0 -1
  652. package/dist/ShareCollectionModal-VXSRHX4S.js +0 -80
  653. package/dist/ShareCollectionModal-VXSRHX4S.js.map +0 -1
  654. package/dist/ShareModal-HLYNE7OL.js +0 -115
  655. package/dist/ShareModal-HLYNE7OL.js.map +0 -1
  656. package/dist/ShareModal-WISND27S.cjs +0 -117
  657. package/dist/ShareModal-WISND27S.cjs.map +0 -1
  658. package/dist/VideoExportWizard-BSDWA3B5.js +0 -44
  659. package/dist/VideoExportWizard-BSDWA3B5.js.map +0 -1
  660. package/dist/VideoExportWizard-UOHR4MNS.cjs +0 -53
  661. package/dist/VideoExportWizard-UOHR4MNS.cjs.map +0 -1
  662. package/dist/WaypointDetailsModal-LK5LBK6S.js +0 -270
  663. package/dist/WaypointDetailsModal-LK5LBK6S.js.map +0 -1
  664. package/dist/WaypointDetailsModal-MEMOLLUY.cjs +0 -272
  665. package/dist/WaypointDetailsModal-MEMOLLUY.cjs.map +0 -1
  666. package/dist/WaypointWorkbench-DCCLBURG.cjs +0 -1204
  667. package/dist/WaypointWorkbench-DCCLBURG.cjs.map +0 -1
  668. package/dist/WaypointWorkbench-NRCLGU23.js +0 -1202
  669. package/dist/WaypointWorkbench-NRCLGU23.js.map +0 -1
  670. package/dist/chunk-22BNE3YV.js +0 -13
  671. package/dist/chunk-22BNE3YV.js.map +0 -1
  672. package/dist/chunk-24RNBTO2.cjs +0 -154
  673. package/dist/chunk-24RNBTO2.cjs.map +0 -1
  674. package/dist/chunk-2DDL2LIJ.cjs +0 -65
  675. package/dist/chunk-2DDL2LIJ.cjs.map +0 -1
  676. package/dist/chunk-2GAMKPS2.cjs +0 -16
  677. package/dist/chunk-2GAMKPS2.cjs.map +0 -1
  678. package/dist/chunk-2K4HCCZJ.cjs +0 -51
  679. package/dist/chunk-2K4HCCZJ.cjs.map +0 -1
  680. package/dist/chunk-2MHWH3TS.cjs +0 -119
  681. package/dist/chunk-2MHWH3TS.cjs.map +0 -1
  682. package/dist/chunk-2MQBPZNR.cjs +0 -12
  683. package/dist/chunk-2MQBPZNR.cjs.map +0 -1
  684. package/dist/chunk-2QSPCXLM.js +0 -84
  685. package/dist/chunk-2QSPCXLM.js.map +0 -1
  686. package/dist/chunk-32WRG44G.js +0 -66
  687. package/dist/chunk-32WRG44G.js.map +0 -1
  688. package/dist/chunk-32XMYLEB.js +0 -9
  689. package/dist/chunk-32XMYLEB.js.map +0 -1
  690. package/dist/chunk-3BEHHSVE.cjs +0 -790
  691. package/dist/chunk-3BEHHSVE.cjs.map +0 -1
  692. package/dist/chunk-3HF2XZKQ.js +0 -8
  693. package/dist/chunk-3HF2XZKQ.js.map +0 -1
  694. package/dist/chunk-3K2NX5FH.js +0 -51
  695. package/dist/chunk-3K2NX5FH.js.map +0 -1
  696. package/dist/chunk-3Q23QKNI.cjs +0 -26
  697. package/dist/chunk-3Q23QKNI.cjs.map +0 -1
  698. package/dist/chunk-3TQV2M4C.cjs +0 -16
  699. package/dist/chunk-3TQV2M4C.cjs.map +0 -1
  700. package/dist/chunk-3XDKDTE6.js +0 -16
  701. package/dist/chunk-3XDKDTE6.js.map +0 -1
  702. package/dist/chunk-46EARJWC.js +0 -288
  703. package/dist/chunk-46EARJWC.js.map +0 -1
  704. package/dist/chunk-4DQOJIUV.js +0 -96
  705. package/dist/chunk-4DQOJIUV.js.map +0 -1
  706. package/dist/chunk-4T52NAVT.js +0 -10
  707. package/dist/chunk-4T52NAVT.js.map +0 -1
  708. package/dist/chunk-4TPRVQGY.js +0 -12
  709. package/dist/chunk-4TPRVQGY.js.map +0 -1
  710. package/dist/chunk-4TX5E63A.cjs +0 -12
  711. package/dist/chunk-4TX5E63A.cjs.map +0 -1
  712. package/dist/chunk-4VKJF24B.js +0 -22
  713. package/dist/chunk-4VKJF24B.js.map +0 -1
  714. package/dist/chunk-4Z734K3L.js +0 -15
  715. package/dist/chunk-4Z734K3L.js.map +0 -1
  716. package/dist/chunk-4ZRSEOZM.js +0 -629
  717. package/dist/chunk-4ZRSEOZM.js.map +0 -1
  718. package/dist/chunk-52T3VZR5.js +0 -55
  719. package/dist/chunk-52T3VZR5.js.map +0 -1
  720. package/dist/chunk-56DP2X7U.js +0 -15
  721. package/dist/chunk-56DP2X7U.js.map +0 -1
  722. package/dist/chunk-5AHT62LO.js +0 -24
  723. package/dist/chunk-5AHT62LO.js.map +0 -1
  724. package/dist/chunk-5BR4CTVV.cjs +0 -17
  725. package/dist/chunk-5BR4CTVV.cjs.map +0 -1
  726. package/dist/chunk-5CTZOFDV.cjs +0 -17
  727. package/dist/chunk-5CTZOFDV.cjs.map +0 -1
  728. package/dist/chunk-5F55MFIX.cjs +0 -45
  729. package/dist/chunk-5F55MFIX.cjs.map +0 -1
  730. package/dist/chunk-5FMQJ4A4.cjs +0 -362
  731. package/dist/chunk-5FMQJ4A4.cjs.map +0 -1
  732. package/dist/chunk-5PMEAMHS.js +0 -82
  733. package/dist/chunk-5PMEAMHS.js.map +0 -1
  734. package/dist/chunk-676DNRSN.js +0 -85
  735. package/dist/chunk-676DNRSN.js.map +0 -1
  736. package/dist/chunk-6H2F7JKL.js +0 -179
  737. package/dist/chunk-6H2F7JKL.js.map +0 -1
  738. package/dist/chunk-6HMRMON7.js +0 -10
  739. package/dist/chunk-6HMRMON7.js.map +0 -1
  740. package/dist/chunk-6NKPZ3LT.cjs +0 -14
  741. package/dist/chunk-6NKPZ3LT.cjs.map +0 -1
  742. package/dist/chunk-6TG2HZDG.js +0 -75
  743. package/dist/chunk-6TG2HZDG.js.map +0 -1
  744. package/dist/chunk-6WU7XEQA.cjs +0 -103
  745. package/dist/chunk-6WU7XEQA.cjs.map +0 -1
  746. package/dist/chunk-6YD325QI.cjs +0 -90
  747. package/dist/chunk-6YD325QI.cjs.map +0 -1
  748. package/dist/chunk-7B6TUEL5.js +0 -20
  749. package/dist/chunk-7B6TUEL5.js.map +0 -1
  750. package/dist/chunk-7KS5F27H.js +0 -33
  751. package/dist/chunk-7KS5F27H.js.map +0 -1
  752. package/dist/chunk-A2N6553V.cjs +0 -295
  753. package/dist/chunk-A2N6553V.cjs.map +0 -1
  754. package/dist/chunk-A66FJAVG.js +0 -44
  755. package/dist/chunk-A66FJAVG.js.map +0 -1
  756. package/dist/chunk-AF43JU4W.js +0 -27
  757. package/dist/chunk-AF43JU4W.js.map +0 -1
  758. package/dist/chunk-AHGHAWYR.js +0 -99
  759. package/dist/chunk-AHGHAWYR.js.map +0 -1
  760. package/dist/chunk-AKN5KIZT.js +0 -1969
  761. package/dist/chunk-AKN5KIZT.js.map +0 -1
  762. package/dist/chunk-ANTDR5MJ.cjs +0 -12
  763. package/dist/chunk-ANTDR5MJ.cjs.map +0 -1
  764. package/dist/chunk-AQ5JIIAE.js +0 -26
  765. package/dist/chunk-AQ5JIIAE.js.map +0 -1
  766. package/dist/chunk-ARHO5MLJ.js +0 -10
  767. package/dist/chunk-ARHO5MLJ.js.map +0 -1
  768. package/dist/chunk-BAYGKSWY.cjs +0 -26
  769. package/dist/chunk-BAYGKSWY.cjs.map +0 -1
  770. package/dist/chunk-BEJ5I724.js +0 -8
  771. package/dist/chunk-BEJ5I724.js.map +0 -1
  772. package/dist/chunk-BFNXXLVV.cjs +0 -34
  773. package/dist/chunk-BFNXXLVV.cjs.map +0 -1
  774. package/dist/chunk-BFQJDFGB.js +0 -57
  775. package/dist/chunk-BFQJDFGB.js.map +0 -1
  776. package/dist/chunk-CHEQJ6N7.cjs +0 -2214
  777. package/dist/chunk-CHEQJ6N7.cjs.map +0 -1
  778. package/dist/chunk-CJOJWZM7.js +0 -92
  779. package/dist/chunk-CJOJWZM7.js.map +0 -1
  780. package/dist/chunk-CJRSFC45.cjs +0 -578
  781. package/dist/chunk-CJRSFC45.cjs.map +0 -1
  782. package/dist/chunk-CWQ4WHPI.cjs +0 -46
  783. package/dist/chunk-CWQ4WHPI.cjs.map +0 -1
  784. package/dist/chunk-D3INXUFT.js +0 -360
  785. package/dist/chunk-D3INXUFT.js.map +0 -1
  786. package/dist/chunk-D6CDAYZ6.cjs +0 -18
  787. package/dist/chunk-D6CDAYZ6.cjs.map +0 -1
  788. package/dist/chunk-DDPXRXRD.cjs +0 -23
  789. package/dist/chunk-DDPXRXRD.cjs.map +0 -1
  790. package/dist/chunk-DUUPWSOZ.cjs +0 -14
  791. package/dist/chunk-DUUPWSOZ.cjs.map +0 -1
  792. package/dist/chunk-DVWYOHOB.cjs +0 -43
  793. package/dist/chunk-DVWYOHOB.cjs.map +0 -1
  794. package/dist/chunk-DZPHWBMC.cjs +0 -11
  795. package/dist/chunk-DZPHWBMC.cjs.map +0 -1
  796. package/dist/chunk-E26FROI3.js +0 -68
  797. package/dist/chunk-E26FROI3.js.map +0 -1
  798. package/dist/chunk-E7ZTDAQW.cjs +0 -37
  799. package/dist/chunk-E7ZTDAQW.cjs.map +0 -1
  800. package/dist/chunk-ECI4EKIV.cjs +0 -94
  801. package/dist/chunk-ECI4EKIV.cjs.map +0 -1
  802. package/dist/chunk-EN5RWYHP.cjs +0 -28
  803. package/dist/chunk-EN5RWYHP.cjs.map +0 -1
  804. package/dist/chunk-ET3UASEF.cjs +0 -91
  805. package/dist/chunk-ET3UASEF.cjs.map +0 -1
  806. package/dist/chunk-EW5SY246.cjs +0 -97
  807. package/dist/chunk-EW5SY246.cjs.map +0 -1
  808. package/dist/chunk-EWWHVV7R.cjs +0 -18
  809. package/dist/chunk-EWWHVV7R.cjs.map +0 -1
  810. package/dist/chunk-F2LZZC6X.js +0 -90
  811. package/dist/chunk-F2LZZC6X.js.map +0 -1
  812. package/dist/chunk-F6VFOI4U.cjs +0 -12
  813. package/dist/chunk-F6VFOI4U.cjs.map +0 -1
  814. package/dist/chunk-FGX3TEU4.cjs +0 -12
  815. package/dist/chunk-FGX3TEU4.cjs.map +0 -1
  816. package/dist/chunk-FK4F24KE.js +0 -10
  817. package/dist/chunk-FK4F24KE.js.map +0 -1
  818. package/dist/chunk-FLIGKB6K.js +0 -313
  819. package/dist/chunk-FLIGKB6K.js.map +0 -1
  820. package/dist/chunk-G2NDWNFB.cjs +0 -185
  821. package/dist/chunk-G2NDWNFB.cjs.map +0 -1
  822. package/dist/chunk-G2XORRLH.js +0 -15
  823. package/dist/chunk-G2XORRLH.js.map +0 -1
  824. package/dist/chunk-GIZN7NX5.cjs +0 -25
  825. package/dist/chunk-GIZN7NX5.cjs.map +0 -1
  826. package/dist/chunk-GM2BQ24D.js +0 -47
  827. package/dist/chunk-GM2BQ24D.js.map +0 -1
  828. package/dist/chunk-GMQJZ5N7.cjs +0 -50
  829. package/dist/chunk-GMQJZ5N7.cjs.map +0 -1
  830. package/dist/chunk-GT7RJOAA.cjs +0 -315
  831. package/dist/chunk-GT7RJOAA.cjs.map +0 -1
  832. package/dist/chunk-GWGUMPOL.js +0 -9
  833. package/dist/chunk-GWGUMPOL.js.map +0 -1
  834. package/dist/chunk-GWVKSSE3.cjs +0 -154
  835. package/dist/chunk-GWVKSSE3.cjs.map +0 -1
  836. package/dist/chunk-GY7UMPHT.cjs +0 -99
  837. package/dist/chunk-GY7UMPHT.cjs.map +0 -1
  838. package/dist/chunk-HMVBS5DU.js +0 -150
  839. package/dist/chunk-HMVBS5DU.js.map +0 -1
  840. package/dist/chunk-HXHA2C7C.js +0 -169
  841. package/dist/chunk-HXHA2C7C.js.map +0 -1
  842. package/dist/chunk-IHMOFX2A.js +0 -208
  843. package/dist/chunk-IHMOFX2A.js.map +0 -1
  844. package/dist/chunk-II6C3LU2.cjs +0 -49
  845. package/dist/chunk-II6C3LU2.cjs.map +0 -1
  846. package/dist/chunk-IOOAFCSR.cjs +0 -58
  847. package/dist/chunk-IOOAFCSR.cjs.map +0 -1
  848. package/dist/chunk-IQZSIOMM.js +0 -10
  849. package/dist/chunk-IQZSIOMM.js.map +0 -1
  850. package/dist/chunk-J2H3WIUM.cjs +0 -12
  851. package/dist/chunk-J2H3WIUM.cjs.map +0 -1
  852. package/dist/chunk-J62OBSUE.cjs +0 -54
  853. package/dist/chunk-J62OBSUE.cjs.map +0 -1
  854. package/dist/chunk-JFJVSJUX.cjs +0 -16
  855. package/dist/chunk-JFJVSJUX.cjs.map +0 -1
  856. package/dist/chunk-JI2M77Y7.cjs +0 -68
  857. package/dist/chunk-JI2M77Y7.cjs.map +0 -1
  858. package/dist/chunk-JLSOLL3C.js +0 -31
  859. package/dist/chunk-JLSOLL3C.js.map +0 -1
  860. package/dist/chunk-JRME3LCP.cjs +0 -41
  861. package/dist/chunk-JRME3LCP.cjs.map +0 -1
  862. package/dist/chunk-JUD3CWTI.cjs +0 -2005
  863. package/dist/chunk-JUD3CWTI.cjs.map +0 -1
  864. package/dist/chunk-JVFHF3LE.cjs +0 -11
  865. package/dist/chunk-JVFHF3LE.cjs.map +0 -1
  866. package/dist/chunk-JVS2WNKQ.js +0 -26
  867. package/dist/chunk-JVS2WNKQ.js.map +0 -1
  868. package/dist/chunk-JXAFIYLV.js +0 -94
  869. package/dist/chunk-JXAFIYLV.js.map +0 -1
  870. package/dist/chunk-K2E744ST.cjs +0 -18
  871. package/dist/chunk-K2E744ST.cjs.map +0 -1
  872. package/dist/chunk-K2ZEMBJ7.js +0 -56
  873. package/dist/chunk-K2ZEMBJ7.js.map +0 -1
  874. package/dist/chunk-KCXNMLKB.js +0 -22
  875. package/dist/chunk-KCXNMLKB.js.map +0 -1
  876. package/dist/chunk-KMMDPXY4.js +0 -35
  877. package/dist/chunk-KMMDPXY4.js.map +0 -1
  878. package/dist/chunk-KMSGFBAJ.cjs +0 -78
  879. package/dist/chunk-KMSGFBAJ.cjs.map +0 -1
  880. package/dist/chunk-KPD7K4XQ.cjs +0 -11
  881. package/dist/chunk-KPD7K4XQ.cjs.map +0 -1
  882. package/dist/chunk-KUD3B3BA.js +0 -12
  883. package/dist/chunk-KUD3B3BA.js.map +0 -1
  884. package/dist/chunk-L62LSMJ5.js +0 -9
  885. package/dist/chunk-L62LSMJ5.js.map +0 -1
  886. package/dist/chunk-LB57H6LF.cjs +0 -261
  887. package/dist/chunk-LB57H6LF.cjs.map +0 -1
  888. package/dist/chunk-LCPKNSC4.cjs +0 -48
  889. package/dist/chunk-LCPKNSC4.cjs.map +0 -1
  890. package/dist/chunk-LE3W2CSF.cjs +0 -84
  891. package/dist/chunk-LE3W2CSF.cjs.map +0 -1
  892. package/dist/chunk-LG736CNC.js +0 -13
  893. package/dist/chunk-LG736CNC.js.map +0 -1
  894. package/dist/chunk-LGNTAZ3L.cjs +0 -33
  895. package/dist/chunk-LGNTAZ3L.cjs.map +0 -1
  896. package/dist/chunk-LHXINV6N.cjs +0 -47
  897. package/dist/chunk-LHXINV6N.cjs.map +0 -1
  898. package/dist/chunk-LLZUTIQB.cjs +0 -24
  899. package/dist/chunk-LLZUTIQB.cjs.map +0 -1
  900. package/dist/chunk-LPGXRU7R.cjs +0 -12
  901. package/dist/chunk-LPGXRU7R.cjs.map +0 -1
  902. package/dist/chunk-MA2BBWF5.cjs +0 -96
  903. package/dist/chunk-MA2BBWF5.cjs.map +0 -1
  904. package/dist/chunk-MLGORMWF.js +0 -23
  905. package/dist/chunk-MLGORMWF.js.map +0 -1
  906. package/dist/chunk-MO7XCKLA.js +0 -62
  907. package/dist/chunk-MO7XCKLA.js.map +0 -1
  908. package/dist/chunk-N37UE6RQ.cjs +0 -1797
  909. package/dist/chunk-N37UE6RQ.cjs.map +0 -1
  910. package/dist/chunk-N6NWKUOR.cjs +0 -60
  911. package/dist/chunk-N6NWKUOR.cjs.map +0 -1
  912. package/dist/chunk-NI5CAMFC.js +0 -568
  913. package/dist/chunk-NI5CAMFC.js.map +0 -1
  914. package/dist/chunk-NNLCZGZK.js +0 -21
  915. package/dist/chunk-NNLCZGZK.js.map +0 -1
  916. package/dist/chunk-NWHFUVYX.js +0 -97
  917. package/dist/chunk-NWHFUVYX.js.map +0 -1
  918. package/dist/chunk-OMDB6ZB2.cjs +0 -176
  919. package/dist/chunk-OMDB6ZB2.cjs.map +0 -1
  920. package/dist/chunk-P5W4TRJO.cjs +0 -33
  921. package/dist/chunk-P5W4TRJO.cjs.map +0 -1
  922. package/dist/chunk-PADS6TDO.js +0 -89
  923. package/dist/chunk-PADS6TDO.js.map +0 -1
  924. package/dist/chunk-PFLNOHBT.js +0 -92
  925. package/dist/chunk-PFLNOHBT.js.map +0 -1
  926. package/dist/chunk-PTLYNDZS.cjs +0 -13
  927. package/dist/chunk-PTLYNDZS.cjs.map +0 -1
  928. package/dist/chunk-QC3X4DAW.cjs +0 -71
  929. package/dist/chunk-QC3X4DAW.cjs.map +0 -1
  930. package/dist/chunk-QPTICYGD.cjs +0 -272
  931. package/dist/chunk-QPTICYGD.cjs.map +0 -1
  932. package/dist/chunk-QZ7W2E4U.cjs +0 -319
  933. package/dist/chunk-QZ7W2E4U.cjs.map +0 -1
  934. package/dist/chunk-RJJPUPOY.cjs +0 -97
  935. package/dist/chunk-RJJPUPOY.cjs.map +0 -1
  936. package/dist/chunk-RRSMCCFS.js +0 -43
  937. package/dist/chunk-RRSMCCFS.js.map +0 -1
  938. package/dist/chunk-S6VCR6F5.js +0 -91
  939. package/dist/chunk-S6VCR6F5.js.map +0 -1
  940. package/dist/chunk-S7Y2GMYJ.cjs +0 -89
  941. package/dist/chunk-S7Y2GMYJ.cjs.map +0 -1
  942. package/dist/chunk-SIMEDLX3.cjs +0 -645
  943. package/dist/chunk-SIMEDLX3.cjs.map +0 -1
  944. package/dist/chunk-SQYF7HKF.cjs +0 -59
  945. package/dist/chunk-SQYF7HKF.cjs.map +0 -1
  946. package/dist/chunk-ST7BNVC2.cjs +0 -13
  947. package/dist/chunk-ST7BNVC2.cjs.map +0 -1
  948. package/dist/chunk-SZVRMMLS.js +0 -16
  949. package/dist/chunk-SZVRMMLS.js.map +0 -1
  950. package/dist/chunk-T27LICRD.js +0 -2212
  951. package/dist/chunk-T27LICRD.js.map +0 -1
  952. package/dist/chunk-TAU5HGJ3.cjs +0 -11
  953. package/dist/chunk-TAU5HGJ3.cjs.map +0 -1
  954. package/dist/chunk-TOM7TV5E.js +0 -25
  955. package/dist/chunk-TOM7TV5E.js.map +0 -1
  956. package/dist/chunk-TSRUDRT3.js +0 -59
  957. package/dist/chunk-TSRUDRT3.js.map +0 -1
  958. package/dist/chunk-U4FX33MW.js +0 -257
  959. package/dist/chunk-U4FX33MW.js.map +0 -1
  960. package/dist/chunk-UBOPWQWC.cjs +0 -28
  961. package/dist/chunk-UBOPWQWC.cjs.map +0 -1
  962. package/dist/chunk-UFE26GNF.js +0 -42
  963. package/dist/chunk-UFE26GNF.js.map +0 -1
  964. package/dist/chunk-UMQQVTEO.js +0 -257
  965. package/dist/chunk-UMQQVTEO.js.map +0 -1
  966. package/dist/chunk-UWY3SFAS.js +0 -10
  967. package/dist/chunk-UWY3SFAS.js.map +0 -1
  968. package/dist/chunk-V6EIIZPJ.js +0 -57
  969. package/dist/chunk-V6EIIZPJ.js.map +0 -1
  970. package/dist/chunk-V6G6W5CF.cjs +0 -61
  971. package/dist/chunk-V6G6W5CF.cjs.map +0 -1
  972. package/dist/chunk-VC4ZBWOK.js +0 -152
  973. package/dist/chunk-VC4ZBWOK.js.map +0 -1
  974. package/dist/chunk-VJRF6ILX.js +0 -35
  975. package/dist/chunk-VJRF6ILX.js.map +0 -1
  976. package/dist/chunk-VNSLCFO4.js +0 -787
  977. package/dist/chunk-VNSLCFO4.js.map +0 -1
  978. package/dist/chunk-W7GAP7ST.js +0 -21
  979. package/dist/chunk-W7GAP7ST.js.map +0 -1
  980. package/dist/chunk-WFUASJHS.js +0 -64
  981. package/dist/chunk-WFUASJHS.js.map +0 -1
  982. package/dist/chunk-WIKSIT3M.js +0 -46
  983. package/dist/chunk-WIKSIT3M.js.map +0 -1
  984. package/dist/chunk-WKLZLFLY.cjs +0 -32
  985. package/dist/chunk-WKLZLFLY.cjs.map +0 -1
  986. package/dist/chunk-WNB5HYON.cjs +0 -10
  987. package/dist/chunk-WNB5HYON.cjs.map +0 -1
  988. package/dist/chunk-WO5P2XBP.js +0 -86
  989. package/dist/chunk-WO5P2XBP.js.map +0 -1
  990. package/dist/chunk-WPYC4NGZ.cjs +0 -46
  991. package/dist/chunk-WPYC4NGZ.cjs.map +0 -1
  992. package/dist/chunk-WQRYZY67.cjs +0 -89
  993. package/dist/chunk-WQRYZY67.cjs.map +0 -1
  994. package/dist/chunk-WVCYVMJU.js +0 -11
  995. package/dist/chunk-WVCYVMJU.js.map +0 -1
  996. package/dist/chunk-WX25G2S3.js +0 -116
  997. package/dist/chunk-WX25G2S3.js.map +0 -1
  998. package/dist/chunk-X4FE7RRQ.js +0 -23
  999. package/dist/chunk-X4FE7RRQ.js.map +0 -1
  1000. package/dist/chunk-X6EIJNOQ.cjs +0 -67
  1001. package/dist/chunk-X6EIJNOQ.cjs.map +0 -1
  1002. package/dist/chunk-XUBATJH6.js +0 -1769
  1003. package/dist/chunk-XUBATJH6.js.map +0 -1
  1004. package/dist/chunk-XUMREYMG.js +0 -293
  1005. package/dist/chunk-XUMREYMG.js.map +0 -1
  1006. package/dist/chunk-XYAJ2FS2.js +0 -31
  1007. package/dist/chunk-XYAJ2FS2.js.map +0 -1
  1008. package/dist/chunk-YKES5P4H.cjs +0 -58
  1009. package/dist/chunk-YKES5P4H.cjs.map +0 -1
  1010. package/dist/chunk-YYAQ75AV.cjs +0 -216
  1011. package/dist/chunk-YYAQ75AV.cjs.map +0 -1
  1012. package/dist/chunk-YZ3NJKVV.js +0 -42
  1013. package/dist/chunk-YZ3NJKVV.js.map +0 -1
  1014. package/dist/chunk-Z5ECTUMN.cjs +0 -104
  1015. package/dist/chunk-Z5ECTUMN.cjs.map +0 -1
  1016. package/dist/chunk-ZAKVHYDL.cjs +0 -28
  1017. package/dist/chunk-ZAKVHYDL.cjs.map +0 -1
  1018. package/dist/chunk-ZF34JXGU.js +0 -39
  1019. package/dist/chunk-ZF34JXGU.js.map +0 -1
  1020. package/dist/chunk-ZHGWDP2M.cjs +0 -101
  1021. package/dist/chunk-ZHGWDP2M.cjs.map +0 -1
  1022. package/dist/chunk-ZLHTQQLT.js +0 -13
  1023. package/dist/chunk-ZLHTQQLT.js.map +0 -1
  1024. package/dist/chunk-ZPAMY3IZ.cjs +0 -25
  1025. package/dist/chunk-ZPAMY3IZ.cjs.map +0 -1
  1026. package/dist/chunk-ZR63UB4V.js +0 -42
  1027. package/dist/chunk-ZR63UB4V.js.map +0 -1
  1028. package/dist/chunk-ZRCEB3KL.js +0 -11
  1029. package/dist/chunk-ZRCEB3KL.js.map +0 -1
  1030. package/dist/chunk-ZRGQNRQI.cjs +0 -36
  1031. package/dist/chunk-ZRGQNRQI.cjs.map +0 -1
  1032. package/dist/chunk-ZVY4IL7O.cjs +0 -22
  1033. package/dist/chunk-ZVY4IL7O.cjs.map +0 -1
  1034. package/dist/chunk-ZWIVKODQ.js +0 -49
  1035. package/dist/chunk-ZWIVKODQ.js.map +0 -1
  1036. package/dist/chunk-ZYF2HNMZ.js +0 -10
  1037. package/dist/chunk-ZYF2HNMZ.js.map +0 -1
  1038. package/dist/copilot/index.cjs.map +0 -1
  1039. package/dist/copilot/index.js.map +0 -1
  1040. package/dist/directionsPdf-GITP3SCP.cjs +0 -274
  1041. package/dist/directionsPdf-GITP3SCP.cjs.map +0 -1
  1042. package/dist/directionsPdf-TDKVUBCU.js +0 -272
  1043. package/dist/directionsPdf-TDKVUBCU.js.map +0 -1
  1044. package/dist/headless/index.cjs.map +0 -1
  1045. package/dist/headless/index.js.map +0 -1
  1046. package/dist/hostRegistry-BTG-KkRY.d.cts +0 -115
  1047. package/dist/hostRegistry-BTG-KkRY.d.ts +0 -115
  1048. package/dist/index-CELBpE13.d.cts +0 -4198
  1049. package/dist/index-nqc3A-ty.d.ts +0 -4198
  1050. package/dist/map/index.cjs.map +0 -1
  1051. package/dist/map/index.js.map +0 -1
  1052. package/dist/routingGuidePictures-CxgXiuNd.d.cts +0 -22
  1053. package/dist/routingGuidePictures-CxgXiuNd.d.ts +0 -22
  1054. package/dist/studioStrings-lNvOeC1g.d.cts +0 -72
  1055. package/dist/studioStrings-lNvOeC1g.d.ts +0 -72
  1056. package/dist/video/index.cjs.map +0 -1
  1057. package/dist/video/index.js.map +0 -1
@@ -1,2212 +0,0 @@
1
- "use client";
2
- import { RadioOptionCard } from './chunk-ZWIVKODQ.js';
3
- import { ChatTranscript, ChatComposer } from './chunk-VNSLCFO4.js';
4
- import { useAgentChatTransport, useAgentErrorCopy, CopilotNoAccessNotice, CopilotSetupNotice } from './chunk-UMQQVTEO.js';
5
- import { WizardLayout } from './chunk-K2ZEMBJ7.js';
6
- import { SectionHead } from './chunk-3XDKDTE6.js';
7
- import { SectionNav } from './chunk-JXAFIYLV.js';
8
- import { UnitPickerGrid, LanguageSelect } from './chunk-6H2F7JKL.js';
9
- import { UnpublishedPanel } from './chunk-WFUASJHS.js';
10
- import { PublicationNotice } from './chunk-AHGHAWYR.js';
11
- import { useItinerarySubjectById } from './chunk-YZ3NJKVV.js';
12
- import { useStudioItinerary } from './chunk-4T52NAVT.js';
13
- import { DialogSubject } from './chunk-JLSOLL3C.js';
14
- import { FullscreenModal, FullscreenHeader } from './chunk-V6EIIZPJ.js';
15
- import { useStoreSlice, useCopilotAvailability, useCopilotSetupAction } from './chunk-VJRF6ILX.js';
16
- import { useStudioEntitlement } from './chunk-SZVRMMLS.js';
17
- import { ErrorAlert } from './chunk-6HMRMON7.js';
18
- import { Glyph, iconSizes } from './chunk-4VKJF24B.js';
19
- import { useStudioPreferences } from './chunk-TOM7TV5E.js';
20
- import { useUiStoreShallow } from './chunk-IQZSIOMM.js';
21
- import { useShallowSelector } from './chunk-BFQJDFGB.js';
22
- import { useUiStore, useUiStoreApi } from './chunk-UFE26GNF.js';
23
- import { useStudioDispatch } from './chunk-676DNRSN.js';
24
- import { useStudioScopedStrings, StudioStringsScope } from './chunk-MO7XCKLA.js';
25
- import { useStudioHostRegistry } from './chunk-W7GAP7ST.js';
26
- import { missingSeam } from './chunk-ZRCEB3KL.js';
27
- import { useStudioFormatters, useStudioLanguageMark, useStudioToolContext, useStudioActivities, useStudioActivityIconUrl, useStudioDemUrl } from './chunk-46EARJWC.js';
28
- import { Group, UnstyledButton, Text, Popover, ActionIcon, Stack, Radio, Input, SegmentedControl, Box, Switch, ThemeIcon, Anchor, Button, Menu, Alert, NumberInput, Center, Tabs, Overlay, Paper, Loader, Tooltip, Slider, Progress } from '@mantine/core';
29
- import { useId as useId$1, useWindowEvent } from '@mantine/hooks';
30
- import { createContext, memo, useCallback, useMemo, useId, useState, useEffect, useRef, useLayoutEffect, use } from 'react';
31
- import { cameraModeSchema, cameraShotBaseSchema, cameraPlanSchema, languageSchema, profileDesignSchema, unitLengthSchema, unitPaceSchema, unitSlopeSchema, defaultVideoExportProfile, cameraBearingModeSchema, DEFAULT_SHOT_ZOOM, DEFAULT_SHOT_PITCH_DEG, DEFAULT_HOLD_MS, activityForId, videoRouteSpans, selectDirecting, selectVideoExportPlan, selectVideoExportRoute, selectVideoExportStatus, VIDEO_STEP_ORDER, createVideoDirectorStore, previewRefreshDisposition, PREVIEW_PLAN_REFRESH_DEBOUNCE_MS, resolveBaseTerrain, resolveDemUrl } from '@mountaya/studio';
32
- import { FORMAT_OPTIONS, FPS_OPTIONS, QUALITY_OPTIONS, RESOLUTION_OPTIONS, ASPECT_OPTIONS, lengthUnitOptions, paceUnitOptions, slopeUnitOptions, publicationStateOf, failureAlertFor } from '@mountaya/studio/strings';
33
- import { useLatestRef, useMountayaLayersManifest } from '@mountaya/elements-react';
34
- import { videoPresets, bitrateForOutput, planDurationMs, estimatedVideoSizeMb, suggestVideoLengthMs, routeLengthMeters, itineraryToRouteGeometry, aspectRatio, representativeStillFraction, resolveProfileSamples } from '@mountaya/elements/camera';
35
- import { segmentsForSelection } from '@mountaya/elements/data';
36
- import { buildInfoBands, buildElevationPoints } from '@mountaya/elements/profile';
37
- import { DirectorChatEngine } from '@mountaya/studio/agent';
38
- import { createVideoDirectorBus } from '@mountaya/studio/handlers';
39
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
40
- import { MILLISECONDS_PER_SECOND, convertDuration, convertProportion, DEGREES_PER_TURN } from '@mountaya/elements/units';
41
- import { VideoRunEngine, MAX_TILE_CACHE_SIZE, buildProfileCurve, ensureOverlayFonts, WATERMARK_INSET_PX, WATERMARK_REFERENCE_SHORT_SIDE, WATERMARK_WIDTH_PX, WATERMARK_URL, profileOverlayDesigns } from '@mountaya/elements/video';
42
- import { ViewerMapView } from '@mountaya/elements-react/editor';
43
- import { boundsOf as boundsOf$1 } from '@mountaya/elements/geo';
44
- import { clampMapLanguage } from '@mountaya/elements/style';
45
- import { createTransformRequest } from '@mountaya/elements';
46
- import { languageEndonym } from '@mountaya/elements/i18n';
47
-
48
- // src/video/hooks/useVideoItinerarySubject.ts
49
- var useVideoItinerarySubject = (itineraryId) => useItinerarySubjectById(itineraryId ?? void 0);
50
-
51
- // src/video/hooks/useVideoOrganizationId.ts
52
- var useVideoOrganizationId = () => {
53
- const itineraryId = useUiStore((state) => state.videoExport?.itineraryId ?? null);
54
- const { data } = useStudioItinerary(itineraryId ?? void 0);
55
- return data?.organization_id;
56
- };
57
- var useVideoProfileSeed = () => {
58
- const { dispatch } = useStudioDispatch();
59
- const preferencesRef = useLatestRef(useStudioPreferences());
60
- useEffect(() => {
61
- const preferences = preferencesRef.current;
62
- const length = unitLengthSchema.catch("metric").parse(preferences?.length);
63
- const pace = unitPaceSchema.catch("per-time").parse(preferences?.pace);
64
- const slope = unitSlopeSchema.catch("degrees").parse(preferences?.slope);
65
- const language = languageSchema.catch("en").parse(preferences?.language);
66
- void dispatch("studio.video.profile.units.set", { length, pace, slope });
67
- void dispatch("studio.video.profile.language.set", { language });
68
- }, [dispatch, preferencesRef]);
69
- };
70
- var useVideoPublication = (itineraryId) => {
71
- const { data, isError } = useStudioItinerary(itineraryId ?? void 0);
72
- return publicationStateOf(data, isError);
73
- };
74
- var useVideoRouteReady = () => {
75
- const { itineraryId, segmentId } = useUiStoreShallow((state) => ({
76
- itineraryId: state.videoExport?.itineraryId ?? null,
77
- segmentId: state.videoExport?.segmentId ?? null
78
- }));
79
- const { data, isError } = useStudioItinerary(itineraryId ?? void 0, "published");
80
- return useMemo(() => {
81
- if (!data) {
82
- return isError ? "error" : "loading";
83
- }
84
- return itineraryToRouteGeometry(data, segmentId) ? "ready" : "empty";
85
- }, [data, isError, segmentId]);
86
- };
87
- var useVideoRouteSync = () => {
88
- const { dispatch } = useStudioDispatch();
89
- const { itineraryId, segmentId } = useUiStoreShallow((state) => ({
90
- itineraryId: state.videoExport?.itineraryId ?? null,
91
- segmentId: state.videoExport?.segmentId ?? null
92
- }));
93
- const { data } = useStudioItinerary(itineraryId ?? void 0, "published");
94
- const categories = useStudioActivities();
95
- const activityIconUrl = useStudioActivityIconUrl();
96
- const activity = data ? activityForId(categories, data.activity_id ?? "") : null;
97
- const activityGlyphUrl = (activity ? activityIconUrl(activity.slug) : null) ?? null;
98
- useEffect(() => {
99
- if (!itineraryId || !data) {
100
- return;
101
- }
102
- const route = itineraryToRouteGeometry(data, segmentId);
103
- if (!route) {
104
- void dispatch("studio.video.route.set", {
105
- activityGlyphUrl: null,
106
- profileSource: null,
107
- route: null
108
- });
109
- return;
110
- }
111
- const segments = segmentsForSelection(data, segmentId);
112
- const profileSource = {
113
- elevationPoints: buildElevationPoints(segments),
114
- segmentSpans: videoRouteSpans(data, segmentId),
115
- slopeBands: buildInfoBands(segments, (segment) => segment.slope_info),
116
- surfaceBands: buildInfoBands(segments, (segment) => segment.surface_info),
117
- waytypeBands: buildInfoBands(segments, (segment) => segment.way_type_info)
118
- };
119
- void dispatch("studio.video.route.set", { activityGlyphUrl, profileSource, route });
120
- }, [activityGlyphUrl, dispatch, data, itineraryId, segmentId]);
121
- };
122
- var SECTIONS = ["confirm", "copilot", "director", "prompt"];
123
- var DirectorChatContext = createContext(null);
124
- var useDirectorChat = () => {
125
- const value = use(DirectorChatContext);
126
- if (!value) {
127
- throw missingSeam("useDirectorChat", { component: "DirectorChatProvider" });
128
- }
129
- return value;
130
- };
131
- var useDirectorChatSurface = () => use(DirectorChatContext);
132
- var useDirectorStore = (selector) => {
133
- const { store } = useDirectorChat();
134
- return useStoreSlice(store, selector);
135
- };
136
- var hold = () => {
137
- };
138
- var directorPair = (config) => {
139
- const store = createVideoDirectorStore();
140
- return { engine: new DirectorChatEngine({ ...config, store }), store };
141
- };
142
- var DirectorChatSession = ({
143
- ctx,
144
- invalidateAiConfig,
145
- publish,
146
- recoveryAddendum
147
- }) => {
148
- const strings = useStudioScopedStrings(SECTIONS);
149
- const [bus] = useState(createVideoDirectorBus);
150
- const organizationId = useVideoOrganizationId() ?? null;
151
- const transport = useAgentChatTransport();
152
- const errorCopy = useAgentErrorCopy();
153
- const config = {
154
- bus,
155
- context: ctx,
156
- errorCopy,
157
- invalidateAiConfig,
158
- organizationId,
159
- recoveryAddendum,
160
- strings,
161
- transport
162
- };
163
- const [{ engine, store }, setHeld] = useState(() => directorPair(config));
164
- const latestConfig = useRef(config);
165
- useEffect(() => {
166
- latestConfig.current = config;
167
- engine.configure(config);
168
- });
169
- const setups = useRef(0);
170
- const ended = useRef(null);
171
- useEffect(() => {
172
- if (ended.current === engine) {
173
- setHeld(directorPair(latestConfig.current));
174
- return;
175
- }
176
- setups.current += 1;
177
- const setup = setups.current;
178
- const release = engine.subscribe(hold);
179
- return () => {
180
- release();
181
- queueMicrotask(() => {
182
- if (setups.current === setup) {
183
- ended.current = engine;
184
- engine.dispose();
185
- }
186
- });
187
- };
188
- }, [engine]);
189
- const stop = useCallback(() => engine.stop(), [engine]);
190
- const submit = useCallback((message) => engine.submit(message), [engine]);
191
- const directing = useStoreSlice(store, selectDirecting);
192
- const value = useMemo(
193
- () => ({ directing, stop, store, submit }),
194
- [directing, stop, store, submit]
195
- );
196
- useLayoutEffect(() => {
197
- publish(value);
198
- }, [publish, value]);
199
- useLayoutEffect(() => () => publish(null), [publish]);
200
- return null;
201
- };
202
- var DirectorChatProvider = ({
203
- children,
204
- ctx,
205
- enabled = true,
206
- invalidateAiConfig,
207
- recoveryAddendum
208
- }) => {
209
- const [surface, setSurface] = useState(null);
210
- const stated = useMemo(() => enabled ? surface : null, [enabled, surface]);
211
- return /* @__PURE__ */ jsxs(DirectorChatContext, { value: stated, children: [
212
- enabled ? /* @__PURE__ */ jsx(
213
- DirectorChatSession,
214
- {
215
- ctx,
216
- invalidateAiConfig,
217
- publish: setSurface,
218
- recoveryAddendum
219
- }
220
- ) : null,
221
- children
222
- ] });
223
- };
224
-
225
- // src/video/rules/changeTo.ts
226
- var changeTo = (options, apply) => (reported) => {
227
- const value = options.find((option) => String(option) === reported);
228
- if (value !== void 0) {
229
- apply(value);
230
- }
231
- };
232
- var SECTIONS2 = ["video"];
233
- var videoModeChrome = {
234
- chase: { glyph: "camera-mode-chase", orgOnly: false },
235
- cinematic: { glyph: "camera-mode-cinematic", orgOnly: false },
236
- director: { glyph: "camera-mode-director", orgOnly: true },
237
- drone: { glyph: "camera-mode-drone", orgOnly: false },
238
- helicopter: { glyph: "camera-mode-helicopter", orgOnly: false },
239
- overview: { glyph: "camera-mode-overview", orgOnly: false },
240
- smart: { glyph: "camera-mode-smart", orgOnly: false }
241
- };
242
- var VIDEO_MODES = cameraModeSchema.options.map((mode) => ({ ...videoModeChrome[mode], mode }));
243
- var ModeCards = ({ disabled, mode }) => {
244
- const words = useStudioScopedStrings(SECTIONS2);
245
- const { dispatch } = useStudioDispatch();
246
- const withOrgModes = useStudioEntitlement("video-organization-modes");
247
- const onChange = useMemo(
248
- () => changeTo(cameraModeSchema.options, (next) => {
249
- void dispatch("studio.video.mode.set", { mode: next });
250
- }),
251
- [dispatch]
252
- );
253
- const presets = VIDEO_MODES.filter((entry) => !entry.orgOnly);
254
- const director = withOrgModes ? VIDEO_MODES.find((entry) => entry.orgOnly) : void 0;
255
- return /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
256
- /* @__PURE__ */ jsx(Text, { variant: "section-label", children: words.video.mode.groupLabel }),
257
- /* @__PURE__ */ jsxs(Radio.Group, { "aria-label": words.video.mode.groupLabel, onChange, value: mode, children: [
258
- /* @__PURE__ */ jsxs(Stack, { gap: "xs", children: [
259
- presets.map((entry) => /* @__PURE__ */ jsx(
260
- RadioOptionCard,
261
- {
262
- checked: entry.mode === mode,
263
- description: words.video.mode[entry.mode].description,
264
- disabled,
265
- glyph: entry.glyph,
266
- title: words.video.mode[entry.mode].title,
267
- value: entry.mode
268
- },
269
- entry.mode
270
- )),
271
- director ? /* @__PURE__ */ jsx(
272
- RadioOptionCard,
273
- {
274
- checked: director.mode === mode,
275
- description: words.video.mode[director.mode].description,
276
- disabled,
277
- glyph: director.glyph,
278
- title: words.video.mode[director.mode].title,
279
- value: director.mode
280
- }
281
- ) : null
282
- ] }),
283
- director ? /* @__PURE__ */ jsx(Text, { c: "dimmed", mt: "xs", size: "xs", children: words.video.mode.directorHint }) : null
284
- ] })
285
- ] });
286
- };
287
- var PlanNumberField = ({ floor, onSend, value, ...field }) => {
288
- const [typed, setTyped] = useState();
289
- const shown = typed !== void 0 && typed.over === value ? typed.text : value;
290
- return /* @__PURE__ */ jsx(
291
- NumberInput,
292
- {
293
- ...field,
294
- onBlur: () => setTyped(void 0),
295
- onChange: (next) => {
296
- setTyped({ over: value, text: next });
297
- if (typeof next === "number" && Number.isFinite(next) && (floor ?? next) <= next) {
298
- onSend(next);
299
- }
300
- },
301
- value: shown
302
- }
303
- );
304
- };
305
- var SECTIONS3 = ["video"];
306
- var zoomDigits = { maximumFractionDigits: 1 };
307
- var shotFields = cameraShotBaseSchema.shape;
308
- var boundsOf = (field, toField = (value) => value) => {
309
- const bound = (value) => value !== null && Number.isFinite(value) ? toField(value) : void 0;
310
- return { max: bound(field.maxValue), min: bound(field.minValue) };
311
- };
312
- var positionBounds = boundsOf(
313
- shotFields.at,
314
- (ratio) => convertProportion(ratio, "ratio", "percent")
315
- );
316
- var zoomBounds = boundsOf(shotFields.zoom);
317
- var pitchBounds = boundsOf(shotFields.pitchDeg);
318
- var holdBounds = boundsOf(
319
- shotFields.holdMs,
320
- (milliseconds) => convertDuration(milliseconds, "millisecond", "second")
321
- );
322
- var speedBounds = boundsOf(shotFields.speedScale);
323
- var rowButtonStyle = {
324
- flex: 1,
325
- minWidth: 0,
326
- overflow: "hidden",
327
- textOverflow: "ellipsis",
328
- whiteSpace: "nowrap"
329
- };
330
- var ShotEditor = ({ onChange, shot }) => {
331
- const words = useStudioScopedStrings(SECTIONS3);
332
- return /* @__PURE__ */ jsxs(Stack, { gap: "xs", w: 240, children: [
333
- /* @__PURE__ */ jsx(
334
- PlanNumberField,
335
- {
336
- clampBehavior: "strict",
337
- label: words.video.shots.at,
338
- max: positionBounds.max,
339
- min: positionBounds.min,
340
- onSend: (value) => onChange({ at: convertProportion(value, "percent", "ratio") }),
341
- size: "xs",
342
- step: 1,
343
- suffix: "%",
344
- value: Math.round(convertProportion(shot.at, "ratio", "percent"))
345
- }
346
- ),
347
- /* @__PURE__ */ jsx(
348
- PlanNumberField,
349
- {
350
- clampBehavior: "strict",
351
- label: words.video.shots.zoom,
352
- max: zoomBounds.max,
353
- min: zoomBounds.min,
354
- onSend: (value) => onChange({ zoom: value }),
355
- size: "xs",
356
- step: 0.5,
357
- value: shot.zoom
358
- }
359
- ),
360
- /* @__PURE__ */ jsx(
361
- PlanNumberField,
362
- {
363
- clampBehavior: "strict",
364
- label: words.video.shots.pitch,
365
- max: pitchBounds.max,
366
- min: pitchBounds.min,
367
- onSend: (value) => onChange({ pitchDeg: value }),
368
- size: "xs",
369
- step: 1,
370
- suffix: "\xB0",
371
- value: Math.round(shot.pitchDeg)
372
- }
373
- ),
374
- /* @__PURE__ */ jsxs(Stack, { gap: 0, children: [
375
- /* @__PURE__ */ jsx(Text, { component: "label", fz: "xs", children: words.video.shots.bearingLabel }),
376
- /* @__PURE__ */ jsx(
377
- SegmentedControl,
378
- {
379
- data: cameraBearingModeSchema.options.map((mode) => ({
380
- label: words.video.shots.bearing[mode],
381
- value: mode
382
- })),
383
- onChange: (value) => onChange({ bearingMode: cameraBearingModeSchema.parse(value) }),
384
- value: shot.bearingMode
385
- }
386
- )
387
- ] }),
388
- shot.bearingMode === "value" ? /* @__PURE__ */ jsx(
389
- PlanNumberField,
390
- {
391
- clampBehavior: "strict",
392
- label: words.video.shots.bearingDeg,
393
- max: DEGREES_PER_TURN,
394
- min: 0,
395
- onSend: (value) => onChange({ bearingDeg: value }),
396
- size: "xs",
397
- step: 5,
398
- suffix: "\xB0",
399
- value: Math.round(shot.bearingDeg ?? 0)
400
- }
401
- ) : null,
402
- /* @__PURE__ */ jsx(
403
- PlanNumberField,
404
- {
405
- clampBehavior: "strict",
406
- decimalScale: 1,
407
- label: words.video.shots.hold,
408
- max: holdBounds.max,
409
- min: holdBounds.min,
410
- onSend: (value) => onChange({ holdMs: value * MILLISECONDS_PER_SECOND }),
411
- size: "xs",
412
- step: 0.5,
413
- suffix: " s",
414
- value: shot.holdMs / MILLISECONDS_PER_SECOND
415
- }
416
- ),
417
- /* @__PURE__ */ jsx(
418
- PlanNumberField,
419
- {
420
- clampBehavior: "none",
421
- decimalScale: 1,
422
- floor: speedBounds.min,
423
- isAllowed: ({ floatValue }) => floatValue === void 0 || speedBounds.max === void 0 || floatValue <= speedBounds.max,
424
- label: words.video.shots.speed,
425
- max: speedBounds.max,
426
- min: speedBounds.min,
427
- onSend: (value) => onChange({ speedScale: value }),
428
- size: "xs",
429
- step: 0.1,
430
- suffix: "\xD7",
431
- value: shot.speedScale
432
- }
433
- )
434
- ] });
435
- };
436
- var ShotRowBase = ({ directing, index, shot, totalMs }) => {
437
- const words = useStudioScopedStrings(SECTIONS3);
438
- const { formatClock, formatNumber } = useStudioFormatters();
439
- const { dispatch } = useStudioDispatch();
440
- const onSeek = useCallback(() => {
441
- void dispatch("studio.video.preview.seek", { fraction: shot.at });
442
- }, [dispatch, shot.at]);
443
- const onRemove = useCallback(() => {
444
- void dispatch("studio.video.shot.remove", { id: shot.id });
445
- }, [dispatch, shot.id]);
446
- const setField = useCallback(
447
- (changes) => {
448
- void dispatch("studio.video.shot.set", { id: shot.id, ...changes });
449
- },
450
- [dispatch, shot.id]
451
- );
452
- const summary = [
453
- // Through the seam rather than `toFixed`, for the decimal mark: a zoom of 13.5 reads `z13,5`
454
- // in French, beside a hold whose seconds the copy bundle already writes that way. The
455
- // trailing `.0` is dropped by asking for it back rather than by stripping a string: a
456
- // regex over `13,0` would miss the comma and leave it.
457
- `z${formatNumber(shot.zoom, zoomDigits)}`,
458
- `${Math.round(shot.pitchDeg)}\xB0`,
459
- words.video.shots.bearing[shot.bearingMode],
460
- shot.holdMs > 0 ? words.video.shots.holdSummary(shot.holdMs / MILLISECONDS_PER_SECOND) : null
461
- ].filter((part) => part !== null).join(" \xB7 ");
462
- return /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", children: [
463
- /* @__PURE__ */ jsxs(
464
- UnstyledButton,
465
- {
466
- "aria-label": words.video.shots.jumpTo(index + 1),
467
- disabled: directing,
468
- fz: "xs",
469
- onClick: onSeek,
470
- style: rowButtonStyle,
471
- children: [
472
- /* @__PURE__ */ jsx(Text, { component: "span", fw: 600, fz: "xs", children: `${index + 1} \xB7 ${formatClock(shot.at * totalMs)}` }),
473
- /* @__PURE__ */ jsx(Text, { c: "dimmed", component: "span", fz: "xs", ml: "xs", children: summary })
474
- ]
475
- }
476
- ),
477
- /* @__PURE__ */ jsxs(Popover, { position: "bottom-end", shadow: "md", trapFocus: true, withinPortal: true, children: [
478
- /* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(
479
- ActionIcon,
480
- {
481
- "aria-label": words.video.shots.editShot(index + 1),
482
- disabled: directing,
483
- variant: "default",
484
- children: /* @__PURE__ */ jsx(Glyph, { name: "action-configure", size: iconSizes.sm })
485
- }
486
- ) }),
487
- /* @__PURE__ */ jsx(Popover.Dropdown, { children: /* @__PURE__ */ jsx(ShotEditor, { onChange: setField, shot }) })
488
- ] }),
489
- /* @__PURE__ */ jsx(
490
- ActionIcon,
491
- {
492
- "aria-label": words.video.shots.remove(index + 1),
493
- disabled: directing,
494
- onClick: onRemove,
495
- variant: "default",
496
- children: /* @__PURE__ */ jsx(Glyph, { name: "action-delete", size: iconSizes.sm })
497
- }
498
- )
499
- ] });
500
- };
501
- var ShotRow = memo(ShotRowBase);
502
- var ShotList = ({ directing, plan }) => {
503
- const words = useStudioScopedStrings(SECTIONS3);
504
- const { dispatch } = useStudioDispatch();
505
- const uiStore = useUiStoreApi();
506
- const totalMs = planDurationMs(plan);
507
- const playheadFraction = useCallback(() => {
508
- const status = uiStore.getState().videoExport?.status;
509
- return status && status.kind !== "idle" ? status.fraction : 0;
510
- }, [uiStore]);
511
- const onAddShot = useCallback(() => {
512
- void dispatch("studio.video.shot.add", {
513
- at: playheadFraction(),
514
- pitchDeg: DEFAULT_SHOT_PITCH_DEG,
515
- zoom: DEFAULT_SHOT_ZOOM
516
- });
517
- }, [dispatch, playheadFraction]);
518
- const onAddHold = useCallback(() => {
519
- void dispatch("studio.video.shot.addHold", {
520
- at: playheadFraction(),
521
- holdMs: DEFAULT_HOLD_MS,
522
- pitchDeg: DEFAULT_SHOT_PITCH_DEG,
523
- zoom: DEFAULT_SHOT_ZOOM
524
- });
525
- }, [dispatch, playheadFraction]);
526
- const onAddOrbit = useCallback(() => {
527
- void dispatch("studio.video.orbit", {
528
- at: playheadFraction(),
529
- pitchDeg: DEFAULT_SHOT_PITCH_DEG,
530
- zoom: DEFAULT_SHOT_ZOOM
531
- });
532
- }, [dispatch, playheadFraction]);
533
- return /* @__PURE__ */ jsxs(Stack, { gap: "xs", mt: "md", children: [
534
- /* @__PURE__ */ jsx(Text, { variant: "section-label", children: words.video.shots.title }),
535
- plan.shots.length === 0 ? /* @__PURE__ */ jsx(Text, { c: "dimmed", size: "xs", children: words.video.shots.empty }) : /* @__PURE__ */ jsx(Stack, { gap: "xxs", children: plan.shots.map((shot, index) => /* @__PURE__ */ jsx(
536
- ShotRow,
537
- {
538
- directing,
539
- index,
540
- shot,
541
- totalMs
542
- },
543
- shot.id
544
- )) }),
545
- /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
546
- /* @__PURE__ */ jsx(
547
- Button,
548
- {
549
- disabled: directing,
550
- leftSection: /* @__PURE__ */ jsx(Glyph, { name: "action-add", size: iconSizes.sm }),
551
- onClick: onAddShot,
552
- variant: "default",
553
- children: words.video.shots.add
554
- }
555
- ),
556
- /* @__PURE__ */ jsxs(Menu, { position: "bottom-end", withinPortal: true, children: [
557
- /* @__PURE__ */ jsx(Menu.Target, { children: /* @__PURE__ */ jsx(
558
- ActionIcon,
559
- {
560
- "aria-label": words.video.shots.more,
561
- disabled: directing,
562
- size: "lg",
563
- variant: "default",
564
- children: /* @__PURE__ */ jsx(Glyph, { name: "more", size: iconSizes.sm })
565
- }
566
- ) }),
567
- /* @__PURE__ */ jsxs(Menu.Dropdown, { children: [
568
- /* @__PURE__ */ jsx(
569
- Menu.Item,
570
- {
571
- fz: "xs",
572
- leftSection: /* @__PURE__ */ jsx(Glyph, { name: "shot-hold", size: iconSizes.sm }),
573
- onClick: onAddHold,
574
- children: words.video.shots.addHold
575
- }
576
- ),
577
- /* @__PURE__ */ jsx(
578
- Menu.Item,
579
- {
580
- fz: "xs",
581
- leftSection: /* @__PURE__ */ jsx(Glyph, { name: "shot-orbit", size: iconSizes.sm }),
582
- onClick: onAddOrbit,
583
- children: words.video.shots.addOrbit
584
- }
585
- )
586
- ] })
587
- ] })
588
- ] })
589
- ] });
590
- };
591
- var DIRECTOR_SLOT_REGION_ID = "video-director-slot";
592
- var CameraStepDirectorSlot = ({ children }) => /* @__PURE__ */ jsx("div", { id: DIRECTOR_SLOT_REGION_ID, children });
593
- var CameraStep = ({ directing, director, plan, scrim }) => /* @__PURE__ */ jsxs(Fragment, { children: [
594
- /* @__PURE__ */ jsxs(Box, { pos: "relative", children: [
595
- /* @__PURE__ */ jsx(ModeCards, { disabled: directing, mode: plan.mode }),
596
- plan.mode === "director" ? /* @__PURE__ */ jsx(ShotList, { directing, plan }) : null,
597
- scrim
598
- ] }),
599
- /* @__PURE__ */ jsx(CameraStepDirectorSlot, { children: director })
600
- ] });
601
- var DirectingScrim = () => {
602
- const { directing } = useDirectorChat();
603
- if (!directing) {
604
- return null;
605
- }
606
- return /* @__PURE__ */ jsx(Overlay, { backgroundOpacity: 0.35, blur: 1 });
607
- };
608
- var SECTIONS4 = ["director", "prompt"];
609
- var DirectorComposer = () => {
610
- const words = useStudioScopedStrings(SECTIONS4);
611
- const { directing, stop, submit } = useDirectorChat();
612
- return /* @__PURE__ */ jsx(
613
- ChatComposer,
614
- {
615
- onSend: submit,
616
- onStop: stop,
617
- placeholder: words.director.placeholder,
618
- running: directing,
619
- stopLabel: words.director.stop
620
- }
621
- );
622
- };
623
- var TRANSCRIPT_MAX_HEIGHT = 240;
624
- var DirectorChat = () => {
625
- const words = useStudioScopedStrings(SECTIONS4);
626
- const { directing } = useDirectorChat();
627
- const transcript = useDirectorStore(useShallowSelector((store) => store.transcript));
628
- return /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
629
- /* @__PURE__ */ jsx(
630
- ChatTranscript,
631
- {
632
- emptyHint: words.director.emptyHint,
633
- entries: transcript,
634
- maxHeight: TRANSCRIPT_MAX_HEIGHT,
635
- running: directing
636
- }
637
- ),
638
- /* @__PURE__ */ jsx(DirectorComposer, {})
639
- ] });
640
- };
641
- var SECTIONS5 = ["video"];
642
- var GLYPH_BOX_SIZE = 34;
643
- var FRAME_MAX_DIM = 22;
644
- var innerFrameBaseStyle = {
645
- border: "1.5px solid currentColor",
646
- borderRadius: "var(--mantine-radius-xxs)"
647
- };
648
- var frameDimensions = (aspect) => {
649
- const [w, h] = aspect.split(":").map(Number);
650
- if (!w || !h) {
651
- return { height: FRAME_MAX_DIM, width: FRAME_MAX_DIM };
652
- }
653
- const scale = FRAME_MAX_DIM / Math.max(w, h);
654
- return { height: h * scale, width: w * scale };
655
- };
656
- var AspectGlyph = ({ aspect, checked }) => {
657
- const frameStyle = {
658
- ...innerFrameBaseStyle,
659
- ...frameDimensions(aspect)
660
- };
661
- return /* @__PURE__ */ jsx(ThemeIcon, { size: GLYPH_BOX_SIZE, variant: checked ? "filled" : "light", children: /* @__PURE__ */ jsx("div", { style: frameStyle }) });
662
- };
663
- var lengthBounds = ((field) => {
664
- const seconds = (value) => value !== null && Number.isFinite(value) ? convertDuration(value, "millisecond", "second") : void 0;
665
- return { max: seconds(field.maxValue), min: seconds(field.minValue) };
666
- })(cameraPlanSchema.shape.targetDurationMs.unwrap());
667
- var LENGTH_STEP_SECONDS = 5;
668
- var FORMAT_VALUES = FORMAT_OPTIONS.map((option) => option.value);
669
- var FPS_VALUES = FPS_OPTIONS.map((option) => option.value);
670
- var QUALITY_VALUES = QUALITY_OPTIONS.map((option) => option.value);
671
- var PRESET_DESCRIPTORS = [
672
- {
673
- glyph: "frame-vertical",
674
- orgOnly: false,
675
- preset: "vertical",
676
- template: videoPresets.vertical
677
- },
678
- {
679
- glyph: "frame-widescreen",
680
- orgOnly: false,
681
- preset: "widescreen",
682
- template: videoPresets.widescreen
683
- },
684
- {
685
- glyph: "frame-square",
686
- orgOnly: false,
687
- preset: "square",
688
- template: videoPresets.square
689
- },
690
- {
691
- glyph: "frame-custom",
692
- orgOnly: true,
693
- preset: "custom",
694
- template: null
695
- }
696
- ];
697
- var PRESET_VALUES = PRESET_DESCRIPTORS.map((entry) => entry.preset);
698
- var suggestedSeconds = (route) => {
699
- if (!route) {
700
- return null;
701
- }
702
- return Math.round(suggestVideoLengthMs(routeLengthMeters(route.line)) / MILLISECONDS_PER_SECOND);
703
- };
704
- var PlanLengthField = ({ plan, route }) => {
705
- const words = useStudioScopedStrings(SECTIONS5);
706
- const { dispatch } = useStudioDispatch();
707
- const lengthSeconds = Math.round(plan.targetDurationMs / MILLISECONDS_PER_SECOND);
708
- const suggestion = suggestedSeconds(route);
709
- const onLengthChange = useCallback(
710
- (seconds) => {
711
- void dispatch("studio.video.duration.set", {
712
- targetDurationMs: seconds * MILLISECONDS_PER_SECOND
713
- });
714
- },
715
- [dispatch]
716
- );
717
- const onUseSuggested = useCallback(() => {
718
- if (suggestion !== null) {
719
- onLengthChange(suggestion);
720
- }
721
- }, [onLengthChange, suggestion]);
722
- return /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
723
- /* @__PURE__ */ jsx(
724
- PlanNumberField,
725
- {
726
- clampBehavior: "none",
727
- floor: lengthBounds.min,
728
- isAllowed: ({ floatValue }) => floatValue === void 0 || lengthBounds.max === void 0 || floatValue <= lengthBounds.max,
729
- label: words.video.format.length.label,
730
- max: lengthBounds.max,
731
- min: lengthBounds.min,
732
- onSend: onLengthChange,
733
- startValue: suggestion ?? void 0,
734
- step: LENGTH_STEP_SECONDS,
735
- suffix: ` ${words.video.format.length.unit}`,
736
- value: lengthSeconds
737
- }
738
- ),
739
- suggestion !== null && suggestion !== lengthSeconds ? /* @__PURE__ */ jsx(Anchor, { component: "button", onClick: onUseSuggested, size: "xs", type: "button", children: words.video.format.length.suggested(suggestion) }) : null
740
- ] });
741
- };
742
- var FormatStep = ({ plan, route }) => {
743
- const words = useStudioScopedStrings(SECTIONS5);
744
- const { dispatch } = useStudioDispatch();
745
- const withOrgModes = useStudioEntitlement("video-organization-modes");
746
- const output = plan.output;
747
- const custom = output.preset === "custom";
748
- const presets = useMemo(
749
- () => withOrgModes ? PRESET_DESCRIPTORS : PRESET_DESCRIPTORS.filter((entry) => !entry.orgOnly),
750
- [withOrgModes]
751
- );
752
- const derivedBitrate = bitrateForOutput(output.resolution, output.fps, output.quality);
753
- const applyCustom = useCallback(
754
- (change) => {
755
- const next = { ...output, ...change, preset: "custom" };
756
- void dispatch("studio.video.output.set", {
757
- ...next,
758
- bitrateMbps: bitrateForOutput(next.resolution, next.fps, next.quality)
759
- });
760
- },
761
- [dispatch, output]
762
- );
763
- const onPresetChange = useMemo(
764
- () => changeTo(PRESET_VALUES, (preset) => {
765
- if (preset === "custom") {
766
- applyCustom({});
767
- return;
768
- }
769
- void dispatch("studio.video.preset.set", { preset });
770
- }),
771
- [applyCustom, dispatch]
772
- );
773
- return /* @__PURE__ */ jsxs(Stack, { gap: "lg", children: [
774
- /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
775
- /* @__PURE__ */ jsx(Text, { variant: "section-label", children: words.video.format.preset.groupLabel }),
776
- /* @__PURE__ */ jsx(
777
- Radio.Group,
778
- {
779
- "aria-label": words.video.format.preset.groupLabel,
780
- onChange: onPresetChange,
781
- value: output.preset,
782
- children: /* @__PURE__ */ jsx(Stack, { children: presets.map((entry) => /* @__PURE__ */ jsx(
783
- RadioOptionCard,
784
- {
785
- checked: entry.preset === output.preset,
786
- description: words.video.format.preset[entry.preset].description,
787
- glyph: entry.glyph,
788
- media: entry.template ? /* @__PURE__ */ jsx(
789
- AspectGlyph,
790
- {
791
- aspect: entry.template.aspect,
792
- checked: entry.preset === output.preset
793
- }
794
- ) : void 0,
795
- specs: entry.template ? words.video.format.preset.specs(
796
- entry.template.resolution,
797
- entry.template.aspect,
798
- entry.template.fps,
799
- entry.template.bitrateMbps
800
- ) : void 0,
801
- title: words.video.format.preset[entry.preset].title,
802
- value: entry.preset
803
- },
804
- entry.preset
805
- )) })
806
- }
807
- )
808
- ] }),
809
- custom ? /* @__PURE__ */ jsxs(Stack, { gap: "md", children: [
810
- /* @__PURE__ */ jsx(Input.Wrapper, { label: words.video.format.matrix.formatLabel, children: /* @__PURE__ */ jsx(
811
- SegmentedControl,
812
- {
813
- data: FORMAT_OPTIONS.map((option) => ({
814
- label: words.video.format.matrix[option.labelKey],
815
- value: option.value
816
- })),
817
- onChange: changeTo(FORMAT_VALUES, (format) => applyCustom({ format })),
818
- value: output.format
819
- }
820
- ) }),
821
- /* @__PURE__ */ jsx(Input.Wrapper, { label: words.video.format.matrix.resolutionLabel, children: /* @__PURE__ */ jsx(
822
- SegmentedControl,
823
- {
824
- data: [...RESOLUTION_OPTIONS],
825
- onChange: changeTo(RESOLUTION_OPTIONS, (resolution) => applyCustom({ resolution })),
826
- value: output.resolution
827
- }
828
- ) }),
829
- /* @__PURE__ */ jsx(Input.Wrapper, { label: words.video.format.matrix.fpsLabel, children: /* @__PURE__ */ jsx(
830
- SegmentedControl,
831
- {
832
- data: FPS_OPTIONS.map((option) => ({
833
- label: words.video.format.matrix[option.labelKey],
834
- value: String(option.value)
835
- })),
836
- onChange: changeTo(FPS_VALUES, (fps) => applyCustom({ fps })),
837
- value: String(output.fps)
838
- }
839
- ) }),
840
- /* @__PURE__ */ jsx(Input.Wrapper, { label: words.video.format.matrix.qualityLabel, children: /* @__PURE__ */ jsx(
841
- SegmentedControl,
842
- {
843
- data: QUALITY_OPTIONS.map((option) => ({
844
- label: words.video.format.matrix[option.labelKey],
845
- value: option.value
846
- })),
847
- onChange: changeTo(QUALITY_VALUES, (quality) => applyCustom({ quality })),
848
- value: output.quality
849
- }
850
- ) }),
851
- /* @__PURE__ */ jsx(Input.Wrapper, { label: words.video.format.matrix.aspectLabel, children: /* @__PURE__ */ jsx(
852
- SegmentedControl,
853
- {
854
- data: [...ASPECT_OPTIONS],
855
- onChange: changeTo(ASPECT_OPTIONS, (aspect) => applyCustom({ aspect })),
856
- value: output.aspect
857
- }
858
- ) }),
859
- /* @__PURE__ */ jsxs(Group, { justify: "space-between", children: [
860
- /* @__PURE__ */ jsx(Text, { c: "dimmed", children: words.video.format.matrix.bitrateLabel }),
861
- /* @__PURE__ */ jsx(Text, { children: words.video.format.matrix.bitrateValue(derivedBitrate) })
862
- ] })
863
- ] }) : null,
864
- /* @__PURE__ */ jsx(PlanLengthField, { plan, route })
865
- ] });
866
- };
867
- var SECTIONS6 = ["video"];
868
- var SCRUB_STEPS = 1e3;
869
- var scrubStyle = { flex: 1 };
870
- var readoutStyle = {
871
- fontVariantNumeric: "tabular-nums",
872
- whiteSpace: "nowrap"
873
- };
874
- var progressOf = (status) => status?.kind === "previewing" || status?.kind === "parked" ? status.fraction : 0;
875
- var PreviewControls = ({ disabled, plan }) => {
876
- const words = useStudioScopedStrings(SECTIONS6);
877
- const { formatClock } = useStudioFormatters();
878
- const { dispatch } = useStudioDispatch();
879
- const uiStore = useUiStoreApi();
880
- const status = useUiStore(selectVideoExportStatus);
881
- const playing = status?.kind === "previewing";
882
- const fraction = progressOf(status);
883
- const [loop, setLoop] = useState(false);
884
- const [dragValue, setDragValue] = useState(null);
885
- const onPlayPause = useCallback(() => {
886
- void dispatch(playing ? "studio.video.preview.pause" : "studio.video.preview.play", {});
887
- }, [dispatch, playing]);
888
- const onStop = useCallback(() => {
889
- void dispatch("studio.video.preview.stop", {});
890
- }, [dispatch]);
891
- const onScrub = useCallback((value) => {
892
- setDragValue(value);
893
- }, []);
894
- const onScrubCommit = useCallback(
895
- (value) => {
896
- void dispatch("studio.video.preview.seek", { fraction: value / SCRUB_STEPS });
897
- setDragValue(null);
898
- },
899
- [dispatch]
900
- );
901
- const onToggleLoop = useCallback(() => {
902
- setLoop((current) => !current);
903
- }, []);
904
- const shotMarks = useMemo(
905
- () => plan.mode === "director" ? plan.shots.map((shot) => ({ value: Math.round(shot.at * SCRUB_STEPS) })) : void 0,
906
- [plan]
907
- );
908
- const totalMs = useMemo(() => planDurationMs(plan), [plan]);
909
- useEffect(() => {
910
- if (!loop || disabled) {
911
- return;
912
- }
913
- return uiStore.subscribe((state, previous) => {
914
- const before = previous.videoExport?.status;
915
- const after = state.videoExport?.status;
916
- const flown = before?.kind === "previewing" && before.fraction >= 1;
917
- if (flown && after?.kind === "idle") {
918
- void dispatch("studio.video.preview.start", {});
919
- }
920
- });
921
- }, [dispatch, disabled, loop, uiStore]);
922
- return /* @__PURE__ */ jsxs(Group, { gap: "sm", children: [
923
- /* @__PURE__ */ jsx(
924
- ActionIcon,
925
- {
926
- "aria-keyshortcuts": "Space",
927
- "aria-label": playing ? words.video.preview.pause : words.video.preview.play,
928
- disabled,
929
- onClick: onPlayPause,
930
- children: playing ? /* @__PURE__ */ jsx(Glyph, { name: "media-pause", size: iconSizes.sm }) : /* @__PURE__ */ jsx(Glyph, { name: "media-play", size: iconSizes.sm })
931
- }
932
- ),
933
- /* @__PURE__ */ jsx(ActionIcon, { "aria-label": words.video.preview.stop, disabled, onClick: onStop, children: /* @__PURE__ */ jsx(Glyph, { name: "media-stop", size: iconSizes.sm }) }),
934
- /* @__PURE__ */ jsx(
935
- Slider,
936
- {
937
- "aria-label": words.video.preview.scrub,
938
- disabled,
939
- label: null,
940
- marks: shotMarks,
941
- max: SCRUB_STEPS,
942
- min: 0,
943
- onChange: onScrub,
944
- onChangeEnd: onScrubCommit,
945
- style: scrubStyle,
946
- value: dragValue ?? Math.round(fraction * SCRUB_STEPS)
947
- }
948
- ),
949
- /* @__PURE__ */ jsx(Text, { c: "dimmed", className: "mtya-studio-visible-from-xs", size: "xs", style: readoutStyle, children: `${formatClock(fraction * totalMs)} / ${formatClock(totalMs)}` }),
950
- /* @__PURE__ */ jsx(
951
- ActionIcon,
952
- {
953
- "aria-label": words.video.preview.loop,
954
- "aria-pressed": loop,
955
- disabled,
956
- onClick: onToggleLoop,
957
- variant: loop ? "filled" : "default",
958
- children: /* @__PURE__ */ jsx(Glyph, { name: "media-loop", size: iconSizes.sm })
959
- }
960
- )
961
- ] });
962
- };
963
- var parkPreview = async (dispatch, fraction) => {
964
- const seek = await dispatch("studio.video.preview.seek", { fraction });
965
- if (seek.ok && seek.data.parked) {
966
- await dispatch("studio.video.preview.pause", {});
967
- }
968
- };
969
- var usePreviewPlanRefresh = (client, plan) => {
970
- const { dispatch } = useStudioDispatch();
971
- const uiStore = useUiStoreApi();
972
- const lastPlanRef = useRef(null);
973
- useEffect(() => {
974
- if (!client) {
975
- lastPlanRef.current = plan;
976
- return;
977
- }
978
- if (lastPlanRef.current === null || lastPlanRef.current === plan) {
979
- lastPlanRef.current = plan;
980
- return;
981
- }
982
- lastPlanRef.current = plan;
983
- const timer = setTimeout(() => {
984
- const status = uiStore.getState().videoExport?.status ?? null;
985
- const disposition = previewRefreshDisposition(status, plan);
986
- if (disposition.kind === "restart") {
987
- void dispatch("studio.video.preview.start", {});
988
- } else if (disposition.kind === "park") {
989
- void parkPreview(dispatch, disposition.fraction);
990
- }
991
- }, PREVIEW_PLAN_REFRESH_DEBOUNCE_MS);
992
- return () => clearTimeout(timer);
993
- }, [client, dispatch, plan, uiStore]);
994
- };
995
- var itineraryIcons = (segments, waypoints) => {
996
- const icons = [];
997
- for (const waypoint of waypoints) {
998
- if (waypoint.icon && waypoint.color) {
999
- icons.push({ color: waypoint.color, icon: waypoint.icon });
1000
- }
1001
- }
1002
- for (const segment of segments) {
1003
- if (segment.color) {
1004
- icons.push({ color: segment.color, icon: "flag-start" });
1005
- icons.push({ color: segment.color, icon: "flag-end" });
1006
- }
1007
- }
1008
- return icons;
1009
- };
1010
- var useVideoPreviewSeed = (client) => {
1011
- const { manifest: layers } = useMountayaLayersManifest();
1012
- const demUrl = useStudioDemUrl();
1013
- const language = useStudioPreferences()?.language;
1014
- const route = useUiStore(selectVideoExportRoute);
1015
- const itineraryId = useUiStore((state) => state.videoExport?.itineraryId ?? null);
1016
- const { terrain, terrainVariant } = useUiStoreShallow((state) => ({
1017
- terrain: state.terrain,
1018
- terrainVariant: state.terrainVariant
1019
- }));
1020
- const { data: detail } = useStudioItinerary(itineraryId ?? void 0, "published");
1021
- const baseTerrain = useMemo(
1022
- () => layers ? resolveBaseTerrain(
1023
- layers.terrains ?? [],
1024
- terrain,
1025
- terrainVariant,
1026
- resolveDemUrl(layers, demUrl)
1027
- ) : null,
1028
- [demUrl, layers, terrain, terrainVariant]
1029
- );
1030
- const styleUrl = baseTerrain?.styleUrl;
1031
- const terrainDemUrl = baseTerrain?.demUrl;
1032
- useEffect(() => {
1033
- if (!client || styleUrl === void 0) {
1034
- return;
1035
- }
1036
- client.setBaseTerrain(terrainDemUrl ? { demUrl: terrainDemUrl, styleUrl } : { styleUrl });
1037
- }, [client, styleUrl, terrainDemUrl]);
1038
- useEffect(() => {
1039
- if (!client || !layers) {
1040
- return;
1041
- }
1042
- const sources = [
1043
- ...layers.itineraries?.sources ?? [],
1044
- ...layers.zones?.sources ?? []
1045
- ];
1046
- if (sources.length > 0) {
1047
- client.addTileSources(sources);
1048
- }
1049
- }, [client, layers]);
1050
- const seeded = layers !== void 0 && layers !== null;
1051
- useEffect(() => {
1052
- if (!client || !seeded) {
1053
- return;
1054
- }
1055
- client.setMapLanguage(clampMapLanguage(language));
1056
- }, [client, language, seeded]);
1057
- useEffect(() => {
1058
- if (!client || !seeded || !detail || !itineraryId) {
1059
- return;
1060
- }
1061
- const icons = itineraryIcons(detail.segments ?? [], detail.waypoints ?? []);
1062
- if (icons.length > 0) {
1063
- client.prewarmItineraryIcons(icons);
1064
- }
1065
- }, [client, detail, itineraryId, seeded, styleUrl, terrainDemUrl]);
1066
- useEffect(() => {
1067
- if (!client || !seeded || !detail || !itineraryId) {
1068
- return;
1069
- }
1070
- client.setItineraryEmphasis({ id: itineraryId, mode: "itinerary" });
1071
- }, [client, detail, itineraryId, seeded]);
1072
- useEffect(() => {
1073
- if (!client || !seeded || !route) {
1074
- return;
1075
- }
1076
- const bounds = boundsOf$1([{ coordinates: route.line, type: "LineString" }]);
1077
- if (bounds) {
1078
- client.fitBounds(bounds);
1079
- }
1080
- }, [client, route, seeded]);
1081
- };
1082
- var withPublishedSurface = (url) => `${url}${url.includes("?") ? "&" : "?"}surface=published`;
1083
- var publishedTileTransform = (client) => {
1084
- const transport = client.transport;
1085
- let claim;
1086
- try {
1087
- claim = createTransformRequest({
1088
- ...transport.mapCredential,
1089
- language: transport.requestLanguage ?? "*",
1090
- origins: [transport.tilesBaseUrl],
1091
- sessionToken: () => transport.mapCredential.sessionToken
1092
- });
1093
- } catch {
1094
- return void 0;
1095
- }
1096
- return (url) => {
1097
- const request = claim(url);
1098
- return request.credentials === void 0 ? void 0 : { ...request, url: withPublishedSurface(request.url) };
1099
- };
1100
- };
1101
- var useVideoTileTransform = (mapClient, transformRequest) => {
1102
- const stated = transformRequest !== void 0;
1103
- const derived = useMemo(
1104
- () => stated ? void 0 : publishedTileTransform(mapClient),
1105
- [mapClient, stated]
1106
- );
1107
- return transformRequest ?? derived;
1108
- };
1109
- var previewWatermarkAnchorStyle = {
1110
- left: `calc(100cqmin * ${WATERMARK_INSET_PX} / ${WATERMARK_REFERENCE_SHORT_SIDE})`,
1111
- pointerEvents: "none",
1112
- position: "absolute",
1113
- top: `calc(100cqmin * ${WATERMARK_INSET_PX} / ${WATERMARK_REFERENCE_SHORT_SIDE})`,
1114
- zIndex: 2
1115
- };
1116
- var previewWatermarkImageStyle = {
1117
- display: "block",
1118
- height: "auto",
1119
- width: `calc(100cqmin * ${WATERMARK_WIDTH_PX} / ${WATERMARK_REFERENCE_SHORT_SIDE})`
1120
- };
1121
- var PreviewWatermark = () => {
1122
- const whiteLabel = useStudioEntitlement("white-label");
1123
- if (whiteLabel) {
1124
- return null;
1125
- }
1126
- return (
1127
- // mantine:exempt (see previewWatermarkAnchorStyle): a top-left anchor inset in
1128
- // container-query units so the mark tracks the frame's short side, above the map canvas.
1129
- /* @__PURE__ */ jsx(Box, { "aria-hidden": true, style: previewWatermarkAnchorStyle, children: /* @__PURE__ */ jsx("img", { alt: "", "aria-hidden": true, src: WATERMARK_URL, style: previewWatermarkImageStyle }) })
1130
- );
1131
- };
1132
- var overlayStyle = {
1133
- height: "100%",
1134
- inset: 0,
1135
- pointerEvents: "none",
1136
- position: "absolute",
1137
- width: "100%"
1138
- };
1139
- var fractionOf = (state) => {
1140
- const status = selectVideoExportStatus(state);
1141
- return status && status.kind !== "idle" ? status.fraction : 0;
1142
- };
1143
- var ProfileOverlayCanvas = () => {
1144
- const canvasRef = useRef(null);
1145
- const store = useUiStoreApi();
1146
- const plan = useUiStore(selectVideoExportPlan);
1147
- const route = useUiStore(selectVideoExportRoute);
1148
- const profileSource = useUiStore((state) => state.videoExport?.profileSource ?? null);
1149
- const design = useUiStore((state) => state.videoExport?.profile?.design ?? "graph");
1150
- const length = useUiStore((state) => state.videoExport?.profile?.length ?? "metric");
1151
- const pace = useUiStore((state) => state.videoExport?.profile?.pace ?? "per-time");
1152
- const slope = useUiStore((state) => state.videoExport?.profile?.slope ?? "degrees");
1153
- const language = useUiStore((state) => state.videoExport?.profile?.language ?? "en");
1154
- const samples = useMemo(() => {
1155
- if (!plan || !route || !profileSource) {
1156
- return [];
1157
- }
1158
- return resolveProfileSamples(plan, route, profileSource);
1159
- }, [plan, route, profileSource]);
1160
- const curve = useMemo(() => buildProfileCurve(samples), [samples]);
1161
- useEffect(() => {
1162
- const canvas = canvasRef.current;
1163
- if (!canvas) {
1164
- return;
1165
- }
1166
- const context = canvas.getContext("2d");
1167
- if (!context) {
1168
- return;
1169
- }
1170
- const draw = () => {
1171
- const ratio = window.devicePixelRatio || 1;
1172
- const cssWidth = canvas.clientWidth;
1173
- const cssHeight = canvas.clientHeight;
1174
- const pixelWidth = Math.max(1, Math.round(cssWidth * ratio));
1175
- const pixelHeight = Math.max(1, Math.round(cssHeight * ratio));
1176
- if (canvas.width !== pixelWidth || canvas.height !== pixelHeight) {
1177
- canvas.width = pixelWidth;
1178
- canvas.height = pixelHeight;
1179
- }
1180
- context.clearRect(0, 0, canvas.width, canvas.height);
1181
- if (samples.length === 0) {
1182
- return;
1183
- }
1184
- const fraction = fractionOf(store.getState());
1185
- const lastIndex = samples.length - 1;
1186
- const index = Math.min(lastIndex, Math.max(0, Math.round(fraction * lastIndex)));
1187
- const sample = samples[index];
1188
- if (!sample) {
1189
- return;
1190
- }
1191
- profileOverlayDesigns[design](
1192
- context,
1193
- sample,
1194
- curve,
1195
- { height: canvas.height, width: canvas.width },
1196
- {
1197
- language,
1198
- length,
1199
- pace,
1200
- slope,
1201
- // The overlay burns no temperature, so the scale is pinned rather than carried
1202
- // on the wizard's profile: a setting with nothing to set.
1203
- temperature: "celsius"
1204
- }
1205
- );
1206
- };
1207
- draw();
1208
- let disposed = false;
1209
- void ensureOverlayFonts().then(() => {
1210
- if (!disposed) {
1211
- draw();
1212
- }
1213
- });
1214
- const observer = new ResizeObserver(() => draw());
1215
- observer.observe(canvas);
1216
- const unsubscribe = store.subscribe((state, previous) => {
1217
- if (fractionOf(state) !== fractionOf(previous)) {
1218
- draw();
1219
- }
1220
- });
1221
- return () => {
1222
- disposed = true;
1223
- observer.disconnect();
1224
- unsubscribe();
1225
- };
1226
- }, [store, samples, curve, design, length, pace, slope, language]);
1227
- return /* @__PURE__ */ jsx("canvas", { ref: canvasRef, style: overlayStyle });
1228
- };
1229
- var previewFrameStyle = {
1230
- borderRadius: "var(--mantine-radius-md)",
1231
- containerType: "size",
1232
- height: "100%",
1233
- overflow: "hidden",
1234
- position: "relative",
1235
- width: "100%"
1236
- };
1237
- var buildVideoRun = (map) => new VideoRunEngine(map.raw, map.events, () => map.loadOrganization());
1238
- var PreviewMap = ({
1239
- client,
1240
- mapClient,
1241
- onClient,
1242
- plan,
1243
- transformRequest
1244
- }) => {
1245
- const { dispatch } = useStudioDispatch();
1246
- const { registerVideoMap, unregisterVideoMap } = useStudioHostRegistry();
1247
- useVideoPreviewSeed(client);
1248
- const tileTransform = useVideoTileTransform(mapClient, transformRequest);
1249
- const planRef = useLatestRef(plan);
1250
- const onClientReady = useCallback(
1251
- (next) => {
1252
- registerVideoMap(next);
1253
- onClient(next);
1254
- },
1255
- [registerVideoMap, onClient]
1256
- );
1257
- const onClientDestroy = useCallback(() => {
1258
- unregisterVideoMap();
1259
- onClient(null);
1260
- }, [unregisterVideoMap, onClient]);
1261
- useEffect(() => {
1262
- if (!client) {
1263
- return;
1264
- }
1265
- void parkPreview(dispatch, representativeStillFraction(planRef.current));
1266
- return () => {
1267
- void dispatch("studio.video.preview.stop", {});
1268
- };
1269
- }, [dispatch, client, planRef]);
1270
- return /* @__PURE__ */ jsx(
1271
- ViewerMapView,
1272
- {
1273
- client: mapClient,
1274
- interactive: false,
1275
- maxTileCacheSize: MAX_TILE_CACHE_SIZE,
1276
- onClientDestroy,
1277
- onClientReady,
1278
- preserveDrawingBuffer: true,
1279
- transformRequest: tileTransform,
1280
- video: buildVideoRun,
1281
- withUrlHash: false
1282
- }
1283
- );
1284
- };
1285
- var PreviewSurface = ({
1286
- client,
1287
- mapClient,
1288
- onClient,
1289
- plan,
1290
- transformRequest
1291
- }) => {
1292
- usePreviewPlanRefresh(client, plan);
1293
- const profileEnabled = useUiStore((state) => state.videoExport?.profile?.enabled ?? false);
1294
- return (
1295
- // mantine:exempt (see previewFrameStyle): the box the MapLibre canvas mounts
1296
- // into, sized 100% to fill the stage's aspect-true frame with a clipped, rounded
1297
- // edge and to anchor the absolutely-positioned profile overlay.
1298
- //
1299
- // ph-no-capture keeps the whole frame out of session replay, and it is the map
1300
- // canvas inside it that matters: the recorder drives that exact surface with a
1301
- // frozen clock, per-frame repaint-and-idle gating, gl.readPixels, and a retry
1302
- // loop whose failure test is "did this frame come back black". Sampling the same
1303
- // canvas concurrently adds GPU-to-CPU sync stalls to a pipeline that reads a
1304
- // stall as a bad frame, so an export is worth more here than a replay of one.
1305
- /* @__PURE__ */ jsxs("div", { className: "ph-no-capture", style: previewFrameStyle, children: [
1306
- /* @__PURE__ */ jsx(
1307
- PreviewMap,
1308
- {
1309
- client,
1310
- mapClient,
1311
- onClient,
1312
- plan,
1313
- transformRequest
1314
- }
1315
- ),
1316
- profileEnabled ? /* @__PURE__ */ jsx(ProfileOverlayCanvas, {}) : null,
1317
- /* @__PURE__ */ jsx(PreviewWatermark, {})
1318
- ] })
1319
- );
1320
- };
1321
- var SECTIONS7 = ["publish", "video"];
1322
- var stageBackdropStyle = {
1323
- display: "flex",
1324
- flexDirection: "column"
1325
- };
1326
- var frameBackdropStyle = {
1327
- alignItems: "center",
1328
- display: "flex",
1329
- flex: 1,
1330
- justifyContent: "center",
1331
- minHeight: 0,
1332
- overflow: "hidden"
1333
- };
1334
- var frameBaseStyle = {
1335
- height: "100%",
1336
- maxWidth: "100%",
1337
- width: "auto"
1338
- };
1339
- var containedFrameSize = (outerWidth, outerHeight, ratio) => {
1340
- const measurable = [outerWidth, outerHeight, ratio].every(
1341
- (value) => Number.isFinite(value) && value > 0
1342
- );
1343
- if (!measurable) {
1344
- return null;
1345
- }
1346
- if (outerWidth / outerHeight > ratio) {
1347
- return { height: outerHeight, width: outerHeight * ratio };
1348
- }
1349
- const width = outerWidth;
1350
- return { height: width / ratio, width };
1351
- };
1352
- var routeStateCoverStyle = {
1353
- alignItems: "center",
1354
- display: "flex",
1355
- inset: 0,
1356
- justifyContent: "center",
1357
- pointerEvents: "none",
1358
- position: "absolute"
1359
- };
1360
- var UnpublishedStage = ({
1361
- itineraryId,
1362
- organizationId
1363
- }) => (
1364
- // mantine:exempt (see stageBackdropStyle): the same column box the preview stage
1365
- // occupies, so the rail beside it keeps its width and the panel centers in the room
1366
- // the preview would have taken.
1367
- /* @__PURE__ */ jsx(Box, { className: "mtya-preview-stage", miw: 0, pos: "relative", style: stageBackdropStyle, children: /* @__PURE__ */ jsx(UnpublishedPanel, { itineraryId, organizationId }) })
1368
- );
1369
- var PreviewStage = ({
1370
- client,
1371
- directing,
1372
- indicator,
1373
- mapClient,
1374
- notice,
1375
- onClient,
1376
- plan,
1377
- recording,
1378
- routeState = "ready",
1379
- transformRequest
1380
- }) => {
1381
- const words = useStudioScopedStrings(SECTIONS7);
1382
- const ratio = aspectRatio(plan.output.aspect);
1383
- const backdropRef = useRef(null);
1384
- const [frameSize, setFrameSize] = useState(null);
1385
- useLayoutEffect(() => {
1386
- const backdrop = backdropRef.current;
1387
- if (!backdrop) {
1388
- return;
1389
- }
1390
- const measure = () => {
1391
- const rect = backdrop.getBoundingClientRect();
1392
- setFrameSize(containedFrameSize(rect.width, rect.height, ratio));
1393
- };
1394
- measure();
1395
- if (typeof ResizeObserver === "undefined") {
1396
- return;
1397
- }
1398
- const observer = new ResizeObserver(measure);
1399
- observer.observe(backdrop);
1400
- return () => observer.disconnect();
1401
- }, [ratio]);
1402
- const frameStyle = useMemo(
1403
- () => frameSize ? { height: frameSize.height, width: frameSize.width } : { ...frameBaseStyle, aspectRatio: ratio },
1404
- [frameSize, ratio]
1405
- );
1406
- return (
1407
- // mantine:exempt (see stageBackdropStyle): the stage is a flex column, and Box takes
1408
- // no prop for a direction. Its `pos` makes it the ancestor the directing indicator
1409
- // Overlay fills: the whole stage, the aspect frame's backdrop and the transport bar,
1410
- // so a single Stop dims the entire preview region.
1411
- /* @__PURE__ */ jsxs(
1412
- Box,
1413
- {
1414
- bg: "dark.8",
1415
- className: "mtya-preview-stage",
1416
- miw: 0,
1417
- pos: "relative",
1418
- style: stageBackdropStyle,
1419
- children: [
1420
- notice === void 0 ? null : /* @__PURE__ */ jsx(Box, { p: "xs", pb: 0, children: notice }),
1421
- /* @__PURE__ */ jsxs(Box, { ref: backdropRef, style: frameBackdropStyle, children: [
1422
- /* @__PURE__ */ jsx(Box, { "data-testid": "preview-frame", style: frameStyle, children: /* @__PURE__ */ jsx(
1423
- PreviewSurface,
1424
- {
1425
- client,
1426
- mapClient,
1427
- onClient,
1428
- plan,
1429
- transformRequest
1430
- }
1431
- ) }),
1432
- routeState === "ready" ? null : /* @__PURE__ */ jsx(Stack, { align: "center", gap: "xs", style: routeStateCoverStyle, children: routeState === "loading" ? /* @__PURE__ */ jsxs(Fragment, { children: [
1433
- /* @__PURE__ */ jsx(Loader, { size: "sm" }),
1434
- /* @__PURE__ */ jsx(Text, { c: "dimmed", size: "sm", children: words.video.preview.loading })
1435
- ] }) : (
1436
- // An empty itinerary and a refused fetch both end the wait, and each
1437
- // says which one it was: the cover must never be a spinner that cannot
1438
- // resolve.
1439
- /* @__PURE__ */ jsx(Text, { c: "dimmed", size: "sm", children: routeState === "error" ? words.video.preview.error : words.video.preview.empty })
1440
- ) })
1441
- ] }),
1442
- /* @__PURE__ */ jsx(Box, { bg: "var(--mantine-color-body)", px: "md", py: "xs", children: /* @__PURE__ */ jsx(PreviewControls, { disabled: directing || recording || routeState !== "ready", plan }) }),
1443
- indicator
1444
- ]
1445
- }
1446
- )
1447
- );
1448
- };
1449
- var SECTIONS8 = ["preferences", "video"];
1450
- var DESIGN_OPTIONS = [
1451
- {
1452
- glyph: "profile-graph",
1453
- value: "graph"
1454
- },
1455
- {
1456
- glyph: "profile-strip",
1457
- value: "strip"
1458
- },
1459
- {
1460
- glyph: "profile-minimal",
1461
- value: "minimal"
1462
- }
1463
- ];
1464
- var LANGUAGE_OPTIONS = languageSchema.options.map((value) => ({ label: languageEndonym[value], value }));
1465
- var ProfileStep = () => {
1466
- const languageMark = useStudioLanguageMark();
1467
- const words = useStudioScopedStrings(SECTIONS8);
1468
- const headingId = useId();
1469
- const units = useStudioScopedStrings(SECTIONS8).preferences.units;
1470
- const { dispatch } = useStudioDispatch();
1471
- const enabled = useUiStore((state) => state.videoExport?.profile?.enabled ?? false);
1472
- const design = useUiStore((state) => state.videoExport?.profile?.design ?? "graph");
1473
- const length = useUiStore((state) => state.videoExport?.profile?.length ?? "metric");
1474
- const pace = useUiStore((state) => state.videoExport?.profile?.pace ?? "per-time");
1475
- const slope = useUiStore((state) => state.videoExport?.profile?.slope ?? "degrees");
1476
- const language = useUiStore((state) => state.videoExport?.profile?.language ?? "en");
1477
- const onToggle = useCallback(
1478
- (next) => {
1479
- void dispatch("studio.video.profile.toggle", { enabled: next });
1480
- },
1481
- [dispatch]
1482
- );
1483
- const onDesignChange = useCallback(
1484
- (value) => {
1485
- void dispatch("studio.video.profile.design.set", {
1486
- design: profileDesignSchema.parse(value)
1487
- });
1488
- },
1489
- [dispatch]
1490
- );
1491
- const onLengthChange = useCallback(
1492
- (value) => {
1493
- void dispatch("studio.video.profile.units.set", {
1494
- length: unitLengthSchema.parse(value),
1495
- pace,
1496
- slope
1497
- });
1498
- },
1499
- [dispatch, pace, slope]
1500
- );
1501
- const onPaceChange = useCallback(
1502
- (value) => {
1503
- void dispatch("studio.video.profile.units.set", {
1504
- length,
1505
- pace: unitPaceSchema.parse(value),
1506
- slope
1507
- });
1508
- },
1509
- [dispatch, length, slope]
1510
- );
1511
- const onSlopeChange = useCallback(
1512
- (value) => {
1513
- void dispatch("studio.video.profile.units.set", {
1514
- length,
1515
- pace,
1516
- slope: unitSlopeSchema.parse(value)
1517
- });
1518
- },
1519
- [dispatch, length, pace]
1520
- );
1521
- const onLanguageChange = useCallback(
1522
- (value) => {
1523
- void dispatch("studio.video.profile.language.set", { language: value });
1524
- },
1525
- [dispatch]
1526
- );
1527
- return /* @__PURE__ */ jsxs(Stack, { gap: "lg", children: [
1528
- /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
1529
- /* @__PURE__ */ jsx(
1530
- Switch,
1531
- {
1532
- checked: enabled,
1533
- label: words.video.profile.enable,
1534
- onChange: (event) => onToggle(event.currentTarget.checked)
1535
- }
1536
- ),
1537
- /* @__PURE__ */ jsx(Text, { c: "dimmed", size: "xs", children: words.video.profile.hint })
1538
- ] }),
1539
- enabled ? /* @__PURE__ */ jsxs(Fragment, { children: [
1540
- /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
1541
- /* @__PURE__ */ jsx(Text, { variant: "section-label", children: words.video.profile.designLabel }),
1542
- /* @__PURE__ */ jsx(
1543
- Radio.Group,
1544
- {
1545
- "aria-label": words.video.profile.designLabel,
1546
- onChange: onDesignChange,
1547
- value: design,
1548
- children: /* @__PURE__ */ jsx(Stack, { gap: "xs", children: DESIGN_OPTIONS.map((option) => /* @__PURE__ */ jsx(
1549
- RadioOptionCard,
1550
- {
1551
- checked: option.value === design,
1552
- description: words.video.profile.design[option.value].description,
1553
- glyph: option.glyph,
1554
- title: words.video.profile.design[option.value].title,
1555
- value: option.value
1556
- },
1557
- option.value
1558
- )) })
1559
- }
1560
- )
1561
- ] }),
1562
- /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
1563
- /* @__PURE__ */ jsx(Text, { id: `${headingId}-length`, variant: "section-label", children: words.video.profile.lengthLabel }),
1564
- /* @__PURE__ */ jsx(
1565
- UnitPickerGrid,
1566
- {
1567
- "aria-labelledby": `${headingId}-length`,
1568
- kindSlug: "video-length",
1569
- onChange: onLengthChange,
1570
- options: lengthUnitOptions(units),
1571
- value: length
1572
- }
1573
- )
1574
- ] }),
1575
- /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
1576
- /* @__PURE__ */ jsx(Text, { id: `${headingId}-pace`, variant: "section-label", children: words.video.profile.paceLabel }),
1577
- /* @__PURE__ */ jsx(
1578
- UnitPickerGrid,
1579
- {
1580
- "aria-labelledby": `${headingId}-pace`,
1581
- kindSlug: "video-pace",
1582
- onChange: onPaceChange,
1583
- options: paceUnitOptions(units, length),
1584
- value: pace
1585
- }
1586
- )
1587
- ] }),
1588
- /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
1589
- /* @__PURE__ */ jsx(Text, { id: `${headingId}-slope`, variant: "section-label", children: words.video.profile.slopeLabel }),
1590
- /* @__PURE__ */ jsx(
1591
- UnitPickerGrid,
1592
- {
1593
- "aria-labelledby": `${headingId}-slope`,
1594
- kindSlug: "video-slope",
1595
- onChange: onSlopeChange,
1596
- options: slopeUnitOptions(units),
1597
- value: slope
1598
- }
1599
- )
1600
- ] }),
1601
- /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
1602
- /* @__PURE__ */ jsx(Text, { variant: "section-label", children: words.video.profile.languageLabel }),
1603
- /* @__PURE__ */ jsx(
1604
- LanguageSelect,
1605
- {
1606
- "aria-label": words.video.profile.languageLabel,
1607
- onChange: onLanguageChange,
1608
- options: LANGUAGE_OPTIONS,
1609
- renderMark: languageMark,
1610
- value: language
1611
- }
1612
- )
1613
- ] })
1614
- ] }) : null
1615
- ] });
1616
- };
1617
- var SECTIONS9 = ["video"];
1618
- var RecordProgressBar = () => {
1619
- const words = useStudioScopedStrings(SECTIONS9);
1620
- const recording = useUiStore((state) => {
1621
- const status = selectVideoExportStatus(state);
1622
- return status?.kind === "recording" ? status : null;
1623
- });
1624
- if (!recording) {
1625
- return null;
1626
- }
1627
- return /* @__PURE__ */ jsxs(Group, { align: "center", flex: 1, gap: "sm", role: "status", wrap: "nowrap", children: [
1628
- /* @__PURE__ */ jsx(Text, { c: "dimmed", size: "xs", children: words.video.record.phase[recording.phase] }),
1629
- /* @__PURE__ */ jsx(Progress, { flex: 1, value: convertProportion(recording.fraction, "ratio", "percent") })
1630
- ] });
1631
- };
1632
- var RecordProgress = ({ outcome }) => {
1633
- const words = useStudioScopedStrings(SECTIONS9);
1634
- const { dispatch } = useStudioDispatch();
1635
- const onDownload = useCallback(() => {
1636
- void dispatch("studio.video.download", {});
1637
- }, [dispatch]);
1638
- if (outcome.kind === "error") {
1639
- return /* @__PURE__ */ jsx(ErrorAlert, { title: words.video.record.errorTitle, children: outcome.message });
1640
- }
1641
- if (outcome.kind === "done") {
1642
- return /* @__PURE__ */ jsx(
1643
- Alert,
1644
- {
1645
- color: "teal",
1646
- icon: /* @__PURE__ */ jsx(Glyph, { name: "success", size: iconSizes.md }),
1647
- title: words.video.record.doneTitle,
1648
- children: /* @__PURE__ */ jsxs(Stack, { align: "flex-start", gap: "xs", children: [
1649
- /* @__PURE__ */ jsx(Text, { size: "sm", children: words.video.record.done }),
1650
- /* @__PURE__ */ jsx(Button, { leftSection: /* @__PURE__ */ jsx(Glyph, { name: "download", size: iconSizes.sm }), onClick: onDownload, children: words.video.record.download })
1651
- ] })
1652
- }
1653
- );
1654
- }
1655
- return null;
1656
- };
1657
- var SECTIONS10 = ["preferences", "video"];
1658
- var SummaryRow = ({ label, value }) => /* @__PURE__ */ jsxs(Group, { justify: "space-between", children: [
1659
- /* @__PURE__ */ jsx(Text, { c: "dimmed", children: label }),
1660
- /* @__PURE__ */ jsx(Text, { children: value })
1661
- ] });
1662
- var ReviewSection = ({ children, editLabel, onEdit, title }) => {
1663
- const words = useStudioScopedStrings(SECTIONS10);
1664
- return /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
1665
- /* @__PURE__ */ jsxs(Group, { justify: "space-between", children: [
1666
- /* @__PURE__ */ jsx(Text, { variant: "section-label", children: title }),
1667
- /* @__PURE__ */ jsx(Anchor, { "aria-label": editLabel, component: "button", onClick: onEdit, size: "xs", type: "button", children: words.video.review.edit })
1668
- ] }),
1669
- children
1670
- ] });
1671
- };
1672
- var ReviewStep = ({ outcome, plan }) => {
1673
- const words = useStudioScopedStrings(SECTIONS10);
1674
- const { dispatch } = useStudioDispatch();
1675
- const profile = useUiStore((state) => state.videoExport?.profile ?? defaultVideoExportProfile);
1676
- const output = plan.output;
1677
- const editStep = (step) => () => {
1678
- void dispatch("studio.video.step.set", { step });
1679
- };
1680
- const bitrate = output.bitrateMbps ?? bitrateForOutput(output.resolution, output.fps, output.quality);
1681
- const formatEntry = FORMAT_OPTIONS.find((option) => option.value === output.format);
1682
- const containerLabel = formatEntry ? words.video.format.matrix[formatEntry.labelKey] : output.format;
1683
- const qualityEntry = QUALITY_OPTIONS.find((option) => option.value === output.quality);
1684
- return /* @__PURE__ */ jsxs(Stack, { gap: "xl", children: [
1685
- /* @__PURE__ */ jsxs(
1686
- ReviewSection,
1687
- {
1688
- editLabel: words.video.review.editSection(words.video.review.sections.format),
1689
- onEdit: editStep("format"),
1690
- title: words.video.review.sections.format,
1691
- children: [
1692
- /* @__PURE__ */ jsx(
1693
- SummaryRow,
1694
- {
1695
- label: words.video.review.preset,
1696
- value: words.video.format.preset[output.preset].title
1697
- }
1698
- ),
1699
- /* @__PURE__ */ jsx(
1700
- SummaryRow,
1701
- {
1702
- label: words.video.review.length,
1703
- value: words.video.format.lengthSeconds(
1704
- // The real file length: the chosen duration plus every hold the mode
1705
- // (or the director) dwells on: what the preview and the export last.
1706
- Math.round(planDurationMs(plan) / MILLISECONDS_PER_SECOND)
1707
- )
1708
- }
1709
- ),
1710
- /* @__PURE__ */ jsx(SummaryRow, { label: words.video.format.matrix.aspectLabel, value: output.aspect }),
1711
- /* @__PURE__ */ jsx(SummaryRow, { label: words.video.format.matrix.resolutionLabel, value: output.resolution }),
1712
- /* @__PURE__ */ jsx(
1713
- SummaryRow,
1714
- {
1715
- label: words.video.format.matrix.fpsLabel,
1716
- value: words.video.review.fpsValue(output.fps)
1717
- }
1718
- ),
1719
- /* @__PURE__ */ jsx(SummaryRow, { label: words.video.format.matrix.formatLabel, value: containerLabel }),
1720
- output.preset === "custom" && qualityEntry ? /* @__PURE__ */ jsx(
1721
- SummaryRow,
1722
- {
1723
- label: words.video.format.matrix.qualityLabel,
1724
- value: words.video.format.matrix[qualityEntry.labelKey]
1725
- }
1726
- ) : null,
1727
- /* @__PURE__ */ jsx(
1728
- SummaryRow,
1729
- {
1730
- label: words.video.format.matrix.bitrateLabel,
1731
- value: words.video.format.matrix.bitrateValue(bitrate)
1732
- }
1733
- ),
1734
- /* @__PURE__ */ jsx(
1735
- SummaryRow,
1736
- {
1737
- label: words.video.review.estimatedSize,
1738
- value: words.video.review.estimatedSizeValue(
1739
- Math.round(estimatedVideoSizeMb(bitrate, planDurationMs(plan)))
1740
- )
1741
- }
1742
- )
1743
- ]
1744
- }
1745
- ),
1746
- /* @__PURE__ */ jsxs(
1747
- ReviewSection,
1748
- {
1749
- editLabel: words.video.review.editSection(words.video.review.sections.camera),
1750
- onEdit: editStep("camera"),
1751
- title: words.video.review.sections.camera,
1752
- children: [
1753
- /* @__PURE__ */ jsx(SummaryRow, { label: words.video.review.mode, value: words.video.mode[plan.mode].title }),
1754
- plan.mode === "director" ? /* @__PURE__ */ jsx(
1755
- SummaryRow,
1756
- {
1757
- label: words.video.review.shotsLabel,
1758
- value: words.video.review.shots(plan.shots.length)
1759
- }
1760
- ) : null
1761
- ]
1762
- }
1763
- ),
1764
- /* @__PURE__ */ jsxs(
1765
- ReviewSection,
1766
- {
1767
- editLabel: words.video.review.editSection(words.video.review.sections.overlay),
1768
- onEdit: editStep("profile"),
1769
- title: words.video.review.sections.overlay,
1770
- children: [
1771
- /* @__PURE__ */ jsx(
1772
- SummaryRow,
1773
- {
1774
- label: words.video.review.overlay,
1775
- value: profile.enabled ? words.video.review.on : words.video.review.off
1776
- }
1777
- ),
1778
- profile.enabled ? /* @__PURE__ */ jsxs(Fragment, { children: [
1779
- /* @__PURE__ */ jsx(
1780
- SummaryRow,
1781
- {
1782
- label: words.video.profile.designLabel,
1783
- value: words.video.profile.design[profile.design].title
1784
- }
1785
- ),
1786
- /* @__PURE__ */ jsx(
1787
- SummaryRow,
1788
- {
1789
- label: words.video.profile.lengthLabel,
1790
- value: words.preferences.units[profile.length].name
1791
- }
1792
- ),
1793
- /* @__PURE__ */ jsx(
1794
- SummaryRow,
1795
- {
1796
- label: words.video.profile.slopeLabel,
1797
- value: words.preferences.units[profile.slope].name
1798
- }
1799
- ),
1800
- /* @__PURE__ */ jsx(
1801
- SummaryRow,
1802
- {
1803
- label: words.video.profile.languageLabel,
1804
- value: languageEndonym[profile.language]
1805
- }
1806
- )
1807
- ] }) : null
1808
- ]
1809
- }
1810
- ),
1811
- /* @__PURE__ */ jsx(RecordProgress, { outcome })
1812
- ] });
1813
- };
1814
- var SECTIONS11 = ["director"];
1815
- var WizardDirectingIndicator = () => {
1816
- const words = useStudioScopedStrings(SECTIONS11);
1817
- const { directing, stop } = useDirectorChat();
1818
- const activeTool = useDirectorStore((store) => store.activeTool);
1819
- if (!directing) {
1820
- return null;
1821
- }
1822
- return (
1823
- // The Overlay fills its nearest positioned ancestor (the preview stage is a
1824
- // relative box wrapping the aspect frame + the transport), dimming the whole
1825
- // preview. The color is left at the black default: the scrim wants neutral
1826
- // dimming, not a theme hue, and the style guard forbids a hex shortcut.
1827
- /* @__PURE__ */ jsx(Overlay, { backgroundOpacity: 0.35, blur: 1, center: true, children: /* @__PURE__ */ jsx(Paper, { p: "md", shadow: "md", withBorder: true, children: /* @__PURE__ */ jsxs(Stack, { children: [
1828
- /* @__PURE__ */ jsx(Text, { fw: 500, children: words.director.directing }),
1829
- /* @__PURE__ */ jsx(Text, { c: "dimmed", children: activeTool ?? words.director.activity }),
1830
- /* @__PURE__ */ jsx(Group, { justify: "flex-end", children: /* @__PURE__ */ jsx(
1831
- Button,
1832
- {
1833
- color: "red",
1834
- leftSection: /* @__PURE__ */ jsx(Glyph, { name: "action-stop", size: iconSizes.sm }),
1835
- onClick: stop,
1836
- variant: "light",
1837
- children: words.director.stop
1838
- }
1839
- ) })
1840
- ] }) }) })
1841
- );
1842
- };
1843
- var SECTIONS12 = ["publish", "video"];
1844
- var WizardFooter = ({
1845
- activeIndex,
1846
- directing,
1847
- onBack,
1848
- onNext,
1849
- onRecord,
1850
- recordDisabled,
1851
- recording,
1852
- stepCount
1853
- }) => {
1854
- const words = useStudioScopedStrings(SECTIONS12);
1855
- const onReview = activeIndex === stepCount - 1;
1856
- return /* @__PURE__ */ jsx(Box, { className: "mtya-fullscreen-footer", px: "md", py: "sm", children: /* @__PURE__ */ jsxs(Group, { justify: "space-between", wrap: "nowrap", children: [
1857
- /* @__PURE__ */ jsx(
1858
- Button,
1859
- {
1860
- disabled: activeIndex === 0 || directing || recording,
1861
- onClick: onBack,
1862
- variant: "default",
1863
- children: words.video.footer.back
1864
- }
1865
- ),
1866
- onReview ? /* @__PURE__ */ jsx(RecordProgressBar, {}) : null,
1867
- onReview ? recordDisabled ? /* @__PURE__ */ jsx(Tooltip, { label: words.publish.blockedByUnpublished, position: "top", withinPortal: true, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(Button, { disabled: true, leftSection: /* @__PURE__ */ jsx(Glyph, { name: "video", size: iconSizes.sm }), children: words.video.record.start }) }) }) : /* @__PURE__ */ jsx(
1868
- Button,
1869
- {
1870
- disabled: directing,
1871
- leftSection: /* @__PURE__ */ jsx(Glyph, { name: "video", size: iconSizes.sm }),
1872
- loading: recording,
1873
- onClick: onRecord,
1874
- children: words.video.record.start
1875
- }
1876
- ) : /* @__PURE__ */ jsx(Button, { disabled: directing, onClick: onNext, children: words.video.footer.next })
1877
- ] }) });
1878
- };
1879
- var SECTIONS13 = [
1880
- "actions",
1881
- "confirm",
1882
- "copilot",
1883
- "director",
1884
- "failure",
1885
- "itineraryActions",
1886
- "preferences",
1887
- "prompt",
1888
- "publish",
1889
- "video"
1890
- ];
1891
- var stepGlyphs = {
1892
- camera: "action-capture-view",
1893
- format: "frame-widescreen",
1894
- profile: "profile-graph",
1895
- review: "check"
1896
- };
1897
- var VIDEO_WIZARD_CLASS = "mtya-video-wizard";
1898
- var SEEK_STEP_FRACTION = 0.05;
1899
- var INTERACTIVE_SELECTOR = "input, textarea, select, button, a, [contenteditable], [role='slider'], [role='menuitem']";
1900
- var recordingStepStyle = { opacity: 0.5 };
1901
- var MemoFormatStep = memo(FormatStep);
1902
- var MemoCameraStep = memo(CameraStep);
1903
- var MemoProfileStep = memo(ProfileStep);
1904
- var MemoReviewStep = memo(ReviewStep);
1905
- var idleOutcome = { kind: "idle" };
1906
- var doneOutcome = { kind: "done" };
1907
- var useRecordOutcome = () => {
1908
- const words = useStudioScopedStrings(SECTIONS13);
1909
- const { dispatch } = useStudioDispatch();
1910
- const [outcome, setOutcome] = useState(idleOutcome);
1911
- const plan = useUiStore(selectVideoExportPlan);
1912
- const profile = useUiStore((state) => state.videoExport?.profile ?? null);
1913
- const seenPlan = useRef(plan);
1914
- const seenProfile = useRef(profile);
1915
- useEffect(() => {
1916
- if (seenPlan.current === plan && seenProfile.current === profile) {
1917
- return;
1918
- }
1919
- seenPlan.current = plan;
1920
- seenProfile.current = profile;
1921
- setOutcome(idleOutcome);
1922
- }, [plan, profile]);
1923
- const onRecord = useCallback(() => {
1924
- setOutcome(idleOutcome);
1925
- void dispatch("studio.video.record", {}).then((result) => {
1926
- if (result.ok) {
1927
- setOutcome(doneOutcome);
1928
- return;
1929
- }
1930
- const refusal = result.code === "canceled" ? null : failureAlertFor(result, words.video.record.error, words.failure);
1931
- setOutcome(refusal === null ? idleOutcome : { kind: "error", message: refusal.message });
1932
- });
1933
- }, [dispatch, words]);
1934
- return { onRecord, outcome };
1935
- };
1936
- var useWizardSteps = (step) => {
1937
- const { dispatch } = useStudioDispatch();
1938
- const activeIndex = VIDEO_STEP_ORDER.indexOf(step);
1939
- const goToStep = useCallback(
1940
- (next) => {
1941
- void dispatch("studio.video.step.set", { step: next });
1942
- },
1943
- [dispatch]
1944
- );
1945
- const onBack = useCallback(() => {
1946
- const previous = VIDEO_STEP_ORDER[activeIndex - 1];
1947
- if (previous) {
1948
- goToStep(previous);
1949
- }
1950
- }, [activeIndex, goToStep]);
1951
- const onNext = useCallback(() => {
1952
- const next = VIDEO_STEP_ORDER[activeIndex + 1];
1953
- if (next) {
1954
- goToStep(next);
1955
- }
1956
- }, [activeIndex, goToStep]);
1957
- return { activeIndex, goToStep, onBack, onNext };
1958
- };
1959
- var usePreviewShortcuts = (inert) => {
1960
- const { dispatch } = useStudioDispatch();
1961
- const uiStore = useUiStoreApi();
1962
- useWindowEvent("keydown", (event) => {
1963
- if (inert) {
1964
- return;
1965
- }
1966
- if (event.composedPath().some((node) => node instanceof Element && node.matches(INTERACTIVE_SELECTOR))) {
1967
- return;
1968
- }
1969
- if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) {
1970
- return;
1971
- }
1972
- if (event.code === "Space") {
1973
- event.preventDefault();
1974
- const playing = uiStore.getState().videoExport?.status.kind === "previewing";
1975
- void dispatch(playing ? "studio.video.preview.pause" : "studio.video.preview.play", {});
1976
- return;
1977
- }
1978
- if (event.key === "ArrowLeft" || event.key === "ArrowRight") {
1979
- event.preventDefault();
1980
- const status = uiStore.getState().videoExport?.status;
1981
- const fraction = status && status.kind !== "idle" ? status.fraction : 0;
1982
- const delta = event.key === "ArrowLeft" ? -SEEK_STEP_FRACTION : SEEK_STEP_FRACTION;
1983
- void dispatch("studio.video.preview.seek", {
1984
- fraction: Math.min(1, Math.max(0, fraction + delta))
1985
- });
1986
- }
1987
- });
1988
- };
1989
- var WizardShell = ({
1990
- director,
1991
- directing,
1992
- indicator,
1993
- itineraryId,
1994
- mapClient,
1995
- scrim,
1996
- transformRequest
1997
- }) => {
1998
- const words = useStudioScopedStrings(SECTIONS13);
1999
- const { dispatch } = useStudioDispatch();
2000
- const stepsId = useId$1();
2001
- const plan = useUiStore(selectVideoExportPlan);
2002
- const route = useUiStore(selectVideoExportRoute);
2003
- const step = useUiStore((state) => state.videoExport?.step ?? "format");
2004
- const recording = useUiStore((state) => selectVideoExportStatus(state)?.kind === "recording");
2005
- const itinerarySubject = useVideoItinerarySubject(itineraryId);
2006
- const publication = useVideoPublication(itineraryId);
2007
- const unpublished = publication === "unpublished";
2008
- const organizationId = useVideoOrganizationId();
2009
- const routeReady = useVideoRouteReady();
2010
- const routeState = publication === "error" ? "error" : routeReady;
2011
- const flyable = routeState === "ready";
2012
- const [client, setClient] = useState(null);
2013
- const { onRecord, outcome } = useRecordOutcome();
2014
- const { activeIndex, goToStep, onBack, onNext } = useWizardSteps(step);
2015
- usePreviewShortcuts(Boolean(directing) || recording || !flyable);
2016
- const close = useCallback(() => {
2017
- void dispatch("studio.video.close", {});
2018
- }, [dispatch]);
2019
- const held = Boolean(directing) || recording;
2020
- const entries = useMemo(
2021
- () => VIDEO_STEP_ORDER.map(
2022
- (id) => ({
2023
- disabled: held && id !== step,
2024
- glyph: stepGlyphs[id],
2025
- id,
2026
- label: words.video.steps[id].label
2027
- })
2028
- ),
2029
- [held, step, words]
2030
- );
2031
- if (!plan) {
2032
- return null;
2033
- }
2034
- const stepBody = {
2035
- camera: /* @__PURE__ */ jsx(MemoCameraStep, { directing, director, plan, scrim }),
2036
- format: /* @__PURE__ */ jsx(MemoFormatStep, { plan, route }),
2037
- profile: /* @__PURE__ */ jsx(MemoProfileStep, {}),
2038
- review: /* @__PURE__ */ jsx(MemoReviewStep, { outcome, plan })
2039
- };
2040
- return /* @__PURE__ */ jsx(FullscreenModal, { ariaLabel: words.video.title, onClose: close, children: /* @__PURE__ */ jsx(
2041
- WizardLayout,
2042
- {
2043
- className: VIDEO_WIZARD_CLASS,
2044
- footer: /* @__PURE__ */ jsx(
2045
- WizardFooter,
2046
- {
2047
- activeIndex,
2048
- directing,
2049
- onBack,
2050
- onNext,
2051
- onRecord,
2052
- recordDisabled: unpublished || !flyable,
2053
- recording,
2054
- stepCount: VIDEO_STEP_ORDER.length
2055
- }
2056
- ),
2057
- header: /* @__PURE__ */ jsx(
2058
- FullscreenHeader,
2059
- {
2060
- closeLabel: words.actions.close,
2061
- onClose: close,
2062
- subject: itinerarySubject ? /* @__PURE__ */ jsx(DialogSubject, { ...itinerarySubject }) : void 0,
2063
- title: words.video.title
2064
- }
2065
- ),
2066
- id: stepsId,
2067
- onChange: goToStep,
2068
- panel: VIDEO_STEP_ORDER.map((id) => (
2069
- // Kept mounted, and hidden while another step is open, so a step's own state
2070
- // survives a look at another.
2071
- /* @__PURE__ */ jsx(Tabs.Panel, { keepMounted: true, value: id, children: /* @__PURE__ */ jsxs(Stack, { gap: "lg", inert: recording, style: recording ? recordingStepStyle : void 0, children: [
2072
- /* @__PURE__ */ jsx(
2073
- SectionHead,
2074
- {
2075
- description: words.video.steps[id].description,
2076
- title: words.video.steps[id].label
2077
- }
2078
- ),
2079
- /* @__PURE__ */ jsx(Box, { children: stepBody[id] })
2080
- ] }) }, id)
2081
- )),
2082
- rail: /* @__PURE__ */ jsxs(Stack, { gap: "xxs", children: [
2083
- /* @__PURE__ */ jsx(Text, { className: "mtya-studio-visible-from-md", px: "xxs", variant: "section-label", children: words.video.stepsHeading }),
2084
- /* @__PURE__ */ jsx(
2085
- SectionNav,
2086
- {
2087
- ariaLabel: words.video.stepsLabel,
2088
- entries,
2089
- id: stepsId,
2090
- value: step
2091
- }
2092
- )
2093
- ] }),
2094
- sections: VIDEO_STEP_ORDER,
2095
- stageAriaLabel: words.video.preview.label,
2096
- value: step,
2097
- children: unpublished ? /* @__PURE__ */ jsx(UnpublishedStage, { itineraryId, organizationId }) : /* @__PURE__ */ jsx(
2098
- PreviewStage,
2099
- {
2100
- client,
2101
- directing,
2102
- indicator,
2103
- mapClient,
2104
- notice: publication === "dirty" ? /* @__PURE__ */ jsx(
2105
- PublicationNotice,
2106
- {
2107
- itineraryId,
2108
- organizationId,
2109
- state: "dirty"
2110
- }
2111
- ) : void 0,
2112
- onClient: setClient,
2113
- plan,
2114
- recording,
2115
- routeState,
2116
- transformRequest
2117
- }
2118
- )
2119
- }
2120
- ) });
2121
- };
2122
- var DirectorRegion = ({ children }) => {
2123
- const words = useStudioScopedStrings(SECTIONS13);
2124
- return /* @__PURE__ */ jsxs(Stack, { gap: "xs", mt: "lg", children: [
2125
- /* @__PURE__ */ jsx(Text, { variant: "section-label", children: words.director.heading }),
2126
- children
2127
- ] });
2128
- };
2129
- var DirectorSlot = () => {
2130
- const organizationId = useVideoOrganizationId() ?? void 0;
2131
- const availability = useCopilotAvailability(organizationId);
2132
- const setupAction = useCopilotSetupAction(organizationId);
2133
- if (organizationId === void 0 || availability.loading) {
2134
- return /* @__PURE__ */ jsx(DirectorRegion, { children: /* @__PURE__ */ jsx(Group, { justify: "center", children: /* @__PURE__ */ jsx(Loader, { size: "sm" }) }) });
2135
- }
2136
- if (!availability.writable) {
2137
- return /* @__PURE__ */ jsx(DirectorRegion, { children: /* @__PURE__ */ jsx(CopilotNoAccessNotice, {}) });
2138
- }
2139
- return /* @__PURE__ */ jsx(DirectorRegion, { children: availability.notConfigured ? /* @__PURE__ */ jsx(CopilotSetupNotice, { action: setupAction }) : /* @__PURE__ */ jsx(DirectorChat, {}) });
2140
- };
2141
- var DirectedShell = ({
2142
- itineraryId,
2143
- mapClient,
2144
- transformRequest
2145
- }) => {
2146
- const director = useDirectorChatSurface();
2147
- return /* @__PURE__ */ jsx(
2148
- WizardShell,
2149
- {
2150
- directing: director?.directing,
2151
- director: director ? /* @__PURE__ */ jsx(DirectorSlot, {}) : void 0,
2152
- indicator: director ? /* @__PURE__ */ jsx(WizardDirectingIndicator, {}) : void 0,
2153
- itineraryId,
2154
- mapClient,
2155
- scrim: director ? /* @__PURE__ */ jsx(DirectingScrim, {}) : void 0,
2156
- transformRequest
2157
- }
2158
- );
2159
- };
2160
- var PersonalItineraryNotice = () => {
2161
- const words = useStudioScopedStrings(SECTIONS13);
2162
- const { dispatch } = useStudioDispatch();
2163
- const close = useCallback(() => {
2164
- void dispatch("studio.video.close", {});
2165
- }, [dispatch]);
2166
- return /* @__PURE__ */ jsxs(FullscreenModal, { ariaLabel: words.video.title, onClose: close, children: [
2167
- /* @__PURE__ */ jsx(
2168
- FullscreenHeader,
2169
- {
2170
- closeLabel: words.actions.close,
2171
- onClose: close,
2172
- title: words.video.title
2173
- }
2174
- ),
2175
- /* @__PURE__ */ jsx(Center, { flex: 1, p: "xl", children: /* @__PURE__ */ jsx(Alert, { color: "gray", maw: 420, children: words.itineraryActions.exportAsVideoPersonalHint }) })
2176
- ] });
2177
- };
2178
- var VideoExportWizard = ({
2179
- invalidateAiConfig,
2180
- itineraryId,
2181
- mapClient,
2182
- recoveryAddendum,
2183
- strings,
2184
- transformRequest
2185
- }) => {
2186
- const ctx = useStudioToolContext();
2187
- useVideoRouteSync();
2188
- useVideoProfileSeed();
2189
- const withOrgModes = useStudioEntitlement("video-organization-modes");
2190
- const personal = useVideoOrganizationId() === null;
2191
- return /* @__PURE__ */ jsx(StudioStringsScope, { sections: SECTIONS13, strings, children: /* @__PURE__ */ jsx(
2192
- DirectorChatProvider,
2193
- {
2194
- ctx,
2195
- enabled: withOrgModes && !personal,
2196
- invalidateAiConfig,
2197
- recoveryAddendum,
2198
- children: personal ? /* @__PURE__ */ jsx(PersonalItineraryNotice, {}) : /* @__PURE__ */ jsx(
2199
- DirectedShell,
2200
- {
2201
- itineraryId,
2202
- mapClient,
2203
- transformRequest
2204
- }
2205
- )
2206
- }
2207
- ) });
2208
- };
2209
-
2210
- export { VideoExportWizard };
2211
- //# sourceMappingURL=chunk-T27LICRD.js.map
2212
- //# sourceMappingURL=chunk-T27LICRD.js.map