@mountaya/studio-react 0.0.0-stage → 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.
- package/CHANGELOG.md +98 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +1087 -2
- package/THIRD-PARTY-NOTICES.txt +149 -0
- package/dist/chunk--VSQcEs_.cjs +26 -0
- package/dist/chunk--VSQcEs_.cjs.map +1 -0
- package/dist/chunk-0qoALFfx.cjs +454 -0
- package/dist/chunk-0qoALFfx.cjs.map +1 -0
- package/dist/chunk-0sHgX8We.cjs +97 -0
- package/dist/chunk-0sHgX8We.cjs.map +1 -0
- package/dist/chunk-4D4as_tP.js +16 -0
- package/dist/chunk-4D4as_tP.js.map +1 -0
- package/dist/chunk-6LM6wuIg.cjs +13 -0
- package/dist/chunk-6LM6wuIg.cjs.map +1 -0
- package/dist/chunk-6VpwF-77.js +7 -0
- package/dist/chunk-6VpwF-77.js.map +1 -0
- package/dist/chunk-6v2fJIDh.cjs +28 -0
- package/dist/chunk-6v2fJIDh.cjs.map +1 -0
- package/dist/chunk-Af0f-OjN.js +71 -0
- package/dist/chunk-Af0f-OjN.js.map +1 -0
- package/dist/chunk-B-QQkaWk.js +91 -0
- package/dist/chunk-B-QQkaWk.js.map +1 -0
- package/dist/chunk-B1lX5w6I.cjs +181 -0
- package/dist/chunk-B1lX5w6I.cjs.map +1 -0
- package/dist/chunk-B2gsz9OJ.js +19 -0
- package/dist/chunk-B2gsz9OJ.js.map +1 -0
- package/dist/chunk-B38srE2R.d.cts +3976 -0
- package/dist/chunk-B3HdxIq7.js +69 -0
- package/dist/chunk-B3HdxIq7.js.map +1 -0
- package/dist/chunk-B3UCX3Wd.js +30 -0
- package/dist/chunk-B3UCX3Wd.js.map +1 -0
- package/dist/chunk-B3mMYMtz.cjs +88 -0
- package/dist/chunk-B3mMYMtz.cjs.map +1 -0
- package/dist/chunk-B7D0neNQ.cjs +47 -0
- package/dist/chunk-B7D0neNQ.cjs.map +1 -0
- package/dist/chunk-B7UzNwmm.cjs +115 -0
- package/dist/chunk-B7UzNwmm.cjs.map +1 -0
- package/dist/chunk-B7d3NIaH.js +55 -0
- package/dist/chunk-B7d3NIaH.js.map +1 -0
- package/dist/chunk-B8ONCPFQ.cjs +70 -0
- package/dist/chunk-B8ONCPFQ.cjs.map +1 -0
- package/dist/chunk-B8QgG-RT.js +2232 -0
- package/dist/chunk-B8QgG-RT.js.map +1 -0
- package/dist/chunk-B8ZpXH0_.cjs +64 -0
- package/dist/chunk-B8ZpXH0_.cjs.map +1 -0
- package/dist/chunk-B8mS5bGc.cjs +112 -0
- package/dist/chunk-B8mS5bGc.cjs.map +1 -0
- package/dist/chunk-B9EkHHSU.js +40 -0
- package/dist/chunk-B9EkHHSU.js.map +1 -0
- package/dist/chunk-BA0PWNyn.js +234 -0
- package/dist/chunk-BA0PWNyn.js.map +1 -0
- package/dist/chunk-BAWE1gqe.js +60 -0
- package/dist/chunk-BAWE1gqe.js.map +1 -0
- package/dist/chunk-BAe9m2Yp.d.cts +963 -0
- package/dist/chunk-BDJCk6ml.js +19 -0
- package/dist/chunk-BDJCk6ml.js.map +1 -0
- package/dist/chunk-BFI2CR6j.cjs +381 -0
- package/dist/chunk-BFI2CR6j.cjs.map +1 -0
- package/dist/chunk-BIIJXiiS.js +40 -0
- package/dist/chunk-BIIJXiiS.js.map +1 -0
- package/dist/chunk-BJAn10wR.js +54 -0
- package/dist/chunk-BJAn10wR.js.map +1 -0
- package/dist/chunk-BLxPxx5p.js +1641 -0
- package/dist/chunk-BLxPxx5p.js.map +1 -0
- package/dist/chunk-BNSJoNwO.cjs +377 -0
- package/dist/chunk-BNSJoNwO.cjs.map +1 -0
- package/dist/chunk-BNTshA5u.js +304 -0
- package/dist/chunk-BNTshA5u.js.map +1 -0
- package/dist/chunk-BO_yHMn2.js +7 -0
- package/dist/chunk-BO_yHMn2.js.map +1 -0
- package/dist/chunk-BOpIVklq.cjs +23 -0
- package/dist/chunk-BOpIVklq.cjs.map +1 -0
- package/dist/chunk-BP8bHGiE.cjs +12 -0
- package/dist/chunk-BP8bHGiE.cjs.map +1 -0
- package/dist/chunk-BPsgx3c7.js +56 -0
- package/dist/chunk-BPsgx3c7.js.map +1 -0
- package/dist/chunk-BQkKY_kf.js +44 -0
- package/dist/chunk-BQkKY_kf.js.map +1 -0
- package/dist/chunk-BQoAEKyJ.js +193 -0
- package/dist/chunk-BQoAEKyJ.js.map +1 -0
- package/dist/chunk-BRuLc45I.cjs +21 -0
- package/dist/chunk-BRuLc45I.cjs.map +1 -0
- package/dist/chunk-BSnrqsA8.cjs +56 -0
- package/dist/chunk-BSnrqsA8.cjs.map +1 -0
- package/dist/chunk-BTDBomKm.cjs +80 -0
- package/dist/chunk-BTDBomKm.cjs.map +1 -0
- package/dist/chunk-BVogYy0R.js +375 -0
- package/dist/chunk-BVogYy0R.js.map +1 -0
- package/dist/chunk-BWITLmlf.js +6 -0
- package/dist/chunk-BWITLmlf.js.map +1 -0
- package/dist/chunk-BXUrvYqd.d.cts +112 -0
- package/dist/chunk-BXUrvYqd.d.ts +112 -0
- package/dist/chunk-BYzQfFFV.js +54 -0
- package/dist/chunk-BYzQfFFV.js.map +1 -0
- package/dist/chunk-BZCKMlN8.js +35 -0
- package/dist/chunk-BZCKMlN8.js.map +1 -0
- package/dist/chunk-BalPERFX.js +13 -0
- package/dist/chunk-BalPERFX.js.map +1 -0
- package/dist/chunk-Bb5SAw6T.cjs +72 -0
- package/dist/chunk-Bb5SAw6T.cjs.map +1 -0
- package/dist/chunk-BbQyoetL.cjs +269 -0
- package/dist/chunk-BbQyoetL.cjs.map +1 -0
- package/dist/chunk-BdepwGey.js +600 -0
- package/dist/chunk-BdepwGey.js.map +1 -0
- package/dist/chunk-BeB57TnZ.js +29 -0
- package/dist/chunk-BeB57TnZ.js.map +1 -0
- package/dist/chunk-BecxET4U.cjs +26 -0
- package/dist/chunk-BecxET4U.cjs.map +1 -0
- package/dist/chunk-Bfuu_B7M.js +16 -0
- package/dist/chunk-Bfuu_B7M.js.map +1 -0
- package/dist/chunk-Bh4xSiDO.js +93 -0
- package/dist/chunk-Bh4xSiDO.js.map +1 -0
- package/dist/chunk-BhLItb06.js +10 -0
- package/dist/chunk-BhLItb06.js.map +1 -0
- package/dist/chunk-BhelUZ4P.js +30 -0
- package/dist/chunk-BhelUZ4P.js.map +1 -0
- package/dist/chunk-BiMRpOwB.cjs +342 -0
- package/dist/chunk-BiMRpOwB.cjs.map +1 -0
- package/dist/chunk-Bj3ium6N.cjs +22 -0
- package/dist/chunk-Bj3ium6N.cjs.map +1 -0
- package/dist/chunk-BjQzK3c3.cjs +59 -0
- package/dist/chunk-BjQzK3c3.cjs.map +1 -0
- package/dist/chunk-BkvNTXo7.cjs +15 -0
- package/dist/chunk-BkvNTXo7.cjs.map +1 -0
- package/dist/chunk-BmJDHIlZ.cjs +50 -0
- package/dist/chunk-BmJDHIlZ.cjs.map +1 -0
- package/dist/chunk-BmztanwN.cjs +13 -0
- package/dist/chunk-BmztanwN.cjs.map +1 -0
- package/dist/chunk-Bnci-ej8.cjs +262 -0
- package/dist/chunk-Bnci-ej8.cjs.map +1 -0
- package/dist/chunk-BoOw05B0.js +24 -0
- package/dist/chunk-BoOw05B0.js.map +1 -0
- package/dist/chunk-BqPxk-8w.cjs +95 -0
- package/dist/chunk-BqPxk-8w.cjs.map +1 -0
- package/dist/chunk-Br_1h4WD.cjs +15 -0
- package/dist/chunk-Br_1h4WD.cjs.map +1 -0
- package/dist/chunk-BtmcBZXU.js +13 -0
- package/dist/chunk-BtmcBZXU.js.map +1 -0
- package/dist/chunk-BvaNI_86.js +11 -0
- package/dist/chunk-BvaNI_86.js.map +1 -0
- package/dist/chunk-BvoYNlF5.js +145 -0
- package/dist/chunk-BvoYNlF5.js.map +1 -0
- package/dist/chunk-BwnCGe7J.js +268 -0
- package/dist/chunk-BwnCGe7J.js.map +1 -0
- package/dist/chunk-BxpaOkyq.cjs +310 -0
- package/dist/chunk-BxpaOkyq.cjs.map +1 -0
- package/dist/chunk-BybRyFen.cjs +65 -0
- package/dist/chunk-BybRyFen.cjs.map +1 -0
- package/dist/chunk-C-9wXKm5.cjs +83 -0
- package/dist/chunk-C-9wXKm5.cjs.map +1 -0
- package/dist/chunk-C-hV-Usi.js +7 -0
- package/dist/chunk-C-hV-Usi.js.map +1 -0
- package/dist/chunk-C06UWdDq.js +100 -0
- package/dist/chunk-C06UWdDq.js.map +1 -0
- package/dist/chunk-C1NzDn7y.cjs +35 -0
- package/dist/chunk-C1NzDn7y.cjs.map +1 -0
- package/dist/chunk-C2zEVNM1.js +20 -0
- package/dist/chunk-C2zEVNM1.js.map +1 -0
- package/dist/chunk-C3ftwoOp.js +6 -0
- package/dist/chunk-C3ftwoOp.js.map +1 -0
- package/dist/chunk-C5ZETobm.js +17 -0
- package/dist/chunk-C5ZETobm.js.map +1 -0
- package/dist/chunk-C5oCIViv.js +98 -0
- package/dist/chunk-C5oCIViv.js.map +1 -0
- package/dist/chunk-C60kC4oZ.cjs +114 -0
- package/dist/chunk-C60kC4oZ.cjs.map +1 -0
- package/dist/chunk-C6Mr3Z8L.js +59 -0
- package/dist/chunk-C6Mr3Z8L.js.map +1 -0
- package/dist/chunk-C6cBmVch.js +119 -0
- package/dist/chunk-C6cBmVch.js.map +1 -0
- package/dist/chunk-C6vKd7KP.cjs +519 -0
- package/dist/chunk-C6vKd7KP.cjs.map +1 -0
- package/dist/chunk-C7NizUxN.js +21 -0
- package/dist/chunk-C7NizUxN.js.map +1 -0
- package/dist/chunk-C93yeTAD.js +91 -0
- package/dist/chunk-C93yeTAD.js.map +1 -0
- package/dist/chunk-CByZU6Hx.cjs +90 -0
- package/dist/chunk-CByZU6Hx.cjs.map +1 -0
- package/dist/chunk-CCNIPIJB.cjs +25 -0
- package/dist/chunk-CCNIPIJB.cjs.map +1 -0
- package/dist/chunk-CEDKBew2.js +15 -0
- package/dist/chunk-CEDKBew2.js.map +1 -0
- package/dist/chunk-CI2PEZIK.js +147 -0
- package/dist/chunk-CI2PEZIK.js.map +1 -0
- package/dist/chunk-CIjPAYuo.cjs +268 -0
- package/dist/chunk-CIjPAYuo.cjs.map +1 -0
- package/dist/chunk-CJyqD6Ib.js +518 -0
- package/dist/chunk-CJyqD6Ib.js.map +1 -0
- package/dist/chunk-CNFF8fiL.js +38 -0
- package/dist/chunk-CNFF8fiL.js.map +1 -0
- package/dist/chunk-CNFoFzhK.cjs +50 -0
- package/dist/chunk-CNFoFzhK.cjs.map +1 -0
- package/dist/chunk-CQAuAPOE.cjs +63 -0
- package/dist/chunk-CQAuAPOE.cjs.map +1 -0
- package/dist/chunk-CR46E73M.js +50 -0
- package/dist/chunk-CR46E73M.js.map +1 -0
- package/dist/chunk-CSq4CbT1.js +86 -0
- package/dist/chunk-CSq4CbT1.js.map +1 -0
- package/dist/chunk-CT6i9_8G.cjs +31 -0
- package/dist/chunk-CT6i9_8G.cjs.map +1 -0
- package/dist/chunk-CUKEOil1.cjs +108 -0
- package/dist/chunk-CUKEOil1.cjs.map +1 -0
- package/dist/chunk-CWxPV2vI.js +111 -0
- package/dist/chunk-CWxPV2vI.js.map +1 -0
- package/dist/chunk-CXap-mFu.js +50 -0
- package/dist/chunk-CXap-mFu.js.map +1 -0
- package/dist/chunk-CYx1vTOG.d.ts +69 -0
- package/dist/chunk-CZOXtOQp.js +261 -0
- package/dist/chunk-CZOXtOQp.js.map +1 -0
- package/dist/chunk-CZSBVyE9.js +68 -0
- package/dist/chunk-CZSBVyE9.js.map +1 -0
- package/dist/chunk-C_NZdnA3.cjs +57 -0
- package/dist/chunk-C_NZdnA3.cjs.map +1 -0
- package/dist/chunk-C_k4SxhD.js +245 -0
- package/dist/chunk-C_k4SxhD.js.map +1 -0
- package/dist/chunk-CaTeIppS.cjs +115 -0
- package/dist/chunk-CaTeIppS.cjs.map +1 -0
- package/dist/chunk-CaUCI-WV.cjs +69 -0
- package/dist/chunk-CaUCI-WV.cjs.map +1 -0
- package/dist/chunk-CblkEI9o.js +19 -0
- package/dist/chunk-CblkEI9o.js.map +1 -0
- package/dist/chunk-CcXeCiEQ.js +70 -0
- package/dist/chunk-CcXeCiEQ.js.map +1 -0
- package/dist/chunk-Ce4D2B8W.cjs +49 -0
- package/dist/chunk-Ce4D2B8W.cjs.map +1 -0
- package/dist/chunk-CetxbYL1.js +66 -0
- package/dist/chunk-CetxbYL1.js.map +1 -0
- package/dist/chunk-ClfU9elo.js +68 -0
- package/dist/chunk-ClfU9elo.js.map +1 -0
- package/dist/chunk-CmNHE_Un.cjs +4 -0
- package/dist/chunk-Cmb_XLfd.js +82 -0
- package/dist/chunk-Cmb_XLfd.js.map +1 -0
- package/dist/chunk-Cp26IdF1.js +72 -0
- package/dist/chunk-Cp26IdF1.js.map +1 -0
- package/dist/chunk-CsBkSCbR.cjs +92 -0
- package/dist/chunk-CsBkSCbR.cjs.map +1 -0
- package/dist/chunk-CsnIpELM.js +31 -0
- package/dist/chunk-CsnIpELM.js.map +1 -0
- package/dist/chunk-CsnJv55G.cjs +36 -0
- package/dist/chunk-CsnJv55G.cjs.map +1 -0
- package/dist/chunk-CsxHDVHF.cjs +68 -0
- package/dist/chunk-CsxHDVHF.cjs.map +1 -0
- package/dist/chunk-Cv1FyWmK.js +670 -0
- package/dist/chunk-Cv1FyWmK.js.map +1 -0
- package/dist/chunk-CwXRQ-3X.cjs +2238 -0
- package/dist/chunk-CwXRQ-3X.cjs.map +1 -0
- package/dist/chunk-CxC9GaSV.js +6 -0
- package/dist/chunk-CxC9GaSV.js.map +1 -0
- package/dist/chunk-CyDQK1JF.js +22 -0
- package/dist/chunk-CyDQK1JF.js.map +1 -0
- package/dist/chunk-CyFo-C-X.js +341 -0
- package/dist/chunk-CyFo-C-X.js.map +1 -0
- package/dist/chunk-CzGWcm8C.cjs +109 -0
- package/dist/chunk-CzGWcm8C.cjs.map +1 -0
- package/dist/chunk-D0Cmheqq.cjs +25 -0
- package/dist/chunk-D0Cmheqq.cjs.map +1 -0
- package/dist/chunk-D0VevtWq.cjs +13 -0
- package/dist/chunk-D0VevtWq.cjs.map +1 -0
- package/dist/chunk-D1HIZ09h.d.cts +22 -0
- package/dist/chunk-D1HIZ09h.d.ts +22 -0
- package/dist/chunk-D1PwxEEq.cjs +281 -0
- package/dist/chunk-D1PwxEEq.cjs.map +1 -0
- package/dist/chunk-D2BipKyx.d.cts +69 -0
- package/dist/chunk-D4g36nrI.d.ts +963 -0
- package/dist/chunk-D5vZKs5k.js +85 -0
- package/dist/chunk-D5vZKs5k.js.map +1 -0
- package/dist/chunk-D7XBi__G.js +17 -0
- package/dist/chunk-D7XBi__G.js.map +1 -0
- package/dist/chunk-D8TsKfym.cjs +35 -0
- package/dist/chunk-D8TsKfym.cjs.map +1 -0
- package/dist/chunk-D8r50zRF.cjs +4 -0
- package/dist/chunk-DAAlHzRS.js +2 -0
- package/dist/chunk-DBY6OSNP.js +13 -0
- package/dist/chunk-DBY6OSNP.js.map +1 -0
- package/dist/chunk-DBfZJAh3.js +146 -0
- package/dist/chunk-DBfZJAh3.js.map +1 -0
- package/dist/chunk-DBpF1Eur.cjs +69 -0
- package/dist/chunk-DBpF1Eur.cjs.map +1 -0
- package/dist/chunk-DCvhBL80.js +9 -0
- package/dist/chunk-DCvhBL80.js.map +1 -0
- package/dist/chunk-DDNoqMiU.cjs +12 -0
- package/dist/chunk-DDNoqMiU.cjs.map +1 -0
- package/dist/chunk-DEpLX45Z.cjs +25 -0
- package/dist/chunk-DEpLX45Z.cjs.map +1 -0
- package/dist/chunk-DFw3I0U0.cjs +19 -0
- package/dist/chunk-DFw3I0U0.cjs.map +1 -0
- package/dist/chunk-DJOkmY4u.cjs +36 -0
- package/dist/chunk-DJOkmY4u.cjs.map +1 -0
- package/dist/chunk-DJQsem2x.js +1128 -0
- package/dist/chunk-DJQsem2x.js.map +1 -0
- package/dist/chunk-DKNcYR4L.cjs +71 -0
- package/dist/chunk-DKNcYR4L.cjs.map +1 -0
- package/dist/chunk-DL4Q5WpP.cjs +19 -0
- package/dist/chunk-DL4Q5WpP.cjs.map +1 -0
- package/dist/chunk-DLt13wEh.js +279 -0
- package/dist/chunk-DLt13wEh.js.map +1 -0
- package/dist/chunk-DPvFDS5n.cjs +31 -0
- package/dist/chunk-DPvFDS5n.cjs.map +1 -0
- package/dist/chunk-DQ4l6EDZ.js +1728 -0
- package/dist/chunk-DQ4l6EDZ.js.map +1 -0
- package/dist/chunk-DQ_X9yhT.cjs +21 -0
- package/dist/chunk-DQ_X9yhT.cjs.map +1 -0
- package/dist/chunk-DQbbL87b.cjs +57 -0
- package/dist/chunk-DQbbL87b.cjs.map +1 -0
- package/dist/chunk-DRphChLx.js +15 -0
- package/dist/chunk-DRphChLx.js.map +1 -0
- package/dist/chunk-DSsTHBp4.js +62 -0
- package/dist/chunk-DSsTHBp4.js.map +1 -0
- package/dist/chunk-DVI59otQ.js +20 -0
- package/dist/chunk-DVI59otQ.js.map +1 -0
- package/dist/chunk-DVN4tYVL.cjs +235 -0
- package/dist/chunk-DVN4tYVL.cjs.map +1 -0
- package/dist/chunk-DWxCDSxn.cjs +36 -0
- package/dist/chunk-DWxCDSxn.cjs.map +1 -0
- package/dist/chunk-DXMaeZs_.cjs +135 -0
- package/dist/chunk-DXMaeZs_.cjs.map +1 -0
- package/dist/chunk-D_dPThBm.js +44 -0
- package/dist/chunk-D_dPThBm.js.map +1 -0
- package/dist/chunk-DbW3lF5Y.cjs +55 -0
- package/dist/chunk-DbW3lF5Y.cjs.map +1 -0
- package/dist/chunk-Dc0Robe4.cjs +254 -0
- package/dist/chunk-Dc0Robe4.cjs.map +1 -0
- package/dist/chunk-DcLLI7B1.cjs +16 -0
- package/dist/chunk-DcLLI7B1.cjs.map +1 -0
- package/dist/chunk-Dd9K8OSs.js +73 -0
- package/dist/chunk-Dd9K8OSs.js.map +1 -0
- package/dist/chunk-DeFJnC-Q.js +52 -0
- package/dist/chunk-DeFJnC-Q.js.map +1 -0
- package/dist/chunk-DeggaLXL.cjs +109 -0
- package/dist/chunk-DeggaLXL.cjs.map +1 -0
- package/dist/chunk-DetGuqR8.cjs +12 -0
- package/dist/chunk-DetGuqR8.cjs.map +1 -0
- package/dist/chunk-Df761BAX.cjs +4 -0
- package/dist/chunk-DfQZch7H.cjs +60 -0
- package/dist/chunk-DfQZch7H.cjs.map +1 -0
- package/dist/chunk-DhwoAmi8.cjs +77 -0
- package/dist/chunk-DhwoAmi8.cjs.map +1 -0
- package/dist/chunk-DkH1DKxi.cjs +66 -0
- package/dist/chunk-DkH1DKxi.cjs.map +1 -0
- package/dist/chunk-DkjkI8F5.cjs +150 -0
- package/dist/chunk-DkjkI8F5.cjs.map +1 -0
- package/dist/chunk-DlaVYkP2.cjs +23 -0
- package/dist/chunk-DlaVYkP2.cjs.map +1 -0
- package/dist/chunk-DlcsA1GQ.js +6 -0
- package/dist/chunk-DlcsA1GQ.js.map +1 -0
- package/dist/chunk-DmBkJhi_.js +8 -0
- package/dist/chunk-DmBkJhi_.js.map +1 -0
- package/dist/chunk-DnXjnOQ1.cjs +42 -0
- package/dist/chunk-DnXjnOQ1.cjs.map +1 -0
- package/dist/chunk-DrG9yz7c.js +509 -0
- package/dist/chunk-DrG9yz7c.js.map +1 -0
- package/dist/chunk-DsTU_5Be.js +96 -0
- package/dist/chunk-DsTU_5Be.js.map +1 -0
- package/dist/chunk-DsXj9iLu.cjs +1827 -0
- package/dist/chunk-DsXj9iLu.cjs.map +1 -0
- package/dist/chunk-DteUy52S.js +45 -0
- package/dist/chunk-DteUy52S.js.map +1 -0
- package/dist/chunk-DtvsE56k.cjs +12 -0
- package/dist/chunk-DtvsE56k.cjs.map +1 -0
- package/dist/chunk-DuD5YqoE.cjs +99 -0
- package/dist/chunk-DuD5YqoE.cjs.map +1 -0
- package/dist/chunk-DvrtQ0Y0.js +51 -0
- package/dist/chunk-DvrtQ0Y0.js.map +1 -0
- package/dist/chunk-DwUFwDV2.js +144 -0
- package/dist/chunk-DwUFwDV2.js.map +1 -0
- package/dist/chunk-Dy59Tdfm.cjs +67 -0
- package/dist/chunk-Dy59Tdfm.cjs.map +1 -0
- package/dist/chunk-DyJupG9U.cjs +74 -0
- package/dist/chunk-DyJupG9U.cjs.map +1 -0
- package/dist/chunk-DzCbinPo.js +9 -0
- package/dist/chunk-DzCbinPo.js.map +1 -0
- package/dist/chunk-GgcOmaXu.cjs +137 -0
- package/dist/chunk-GgcOmaXu.cjs.map +1 -0
- package/dist/chunk-GnVcZTQv.cjs +50 -0
- package/dist/chunk-GnVcZTQv.cjs.map +1 -0
- package/dist/chunk-JDLVWYk5.cjs +22 -0
- package/dist/chunk-JDLVWYk5.cjs.map +1 -0
- package/dist/chunk-NA04sFmY.js +2 -0
- package/dist/chunk-NqIZvB2L.js +44 -0
- package/dist/chunk-NqIZvB2L.js.map +1 -0
- package/dist/chunk-OGNas_Mn.cjs +654 -0
- package/dist/chunk-OGNas_Mn.cjs.map +1 -0
- package/dist/chunk-PeexRooj.cjs +12 -0
- package/dist/chunk-PeexRooj.cjs.map +1 -0
- package/dist/chunk-QUjeQKsz.js +26 -0
- package/dist/chunk-QUjeQKsz.js.map +1 -0
- package/dist/chunk-S0jc_E9W.cjs +62 -0
- package/dist/chunk-S0jc_E9W.cjs.map +1 -0
- package/dist/chunk-TLRG-UaM.js +453 -0
- package/dist/chunk-TLRG-UaM.js.map +1 -0
- package/dist/chunk-TYmd7TzW.cjs +68 -0
- package/dist/chunk-TYmd7TzW.cjs.map +1 -0
- package/dist/chunk-TlHnQSY_.js +250 -0
- package/dist/chunk-TlHnQSY_.js.map +1 -0
- package/dist/chunk-Vba_029j.js +36 -0
- package/dist/chunk-Vba_029j.js.map +1 -0
- package/dist/chunk-Vp0uJb7O.cjs +92 -0
- package/dist/chunk-Vp0uJb7O.cjs.map +1 -0
- package/dist/chunk-WPGdcwtf.cjs +15 -0
- package/dist/chunk-WPGdcwtf.cjs.map +1 -0
- package/dist/chunk-WUipjqNN.cjs +158 -0
- package/dist/chunk-WUipjqNN.cjs.map +1 -0
- package/dist/chunk-Y-zyJ0-m.js +6 -0
- package/dist/chunk-Y-zyJ0-m.js.map +1 -0
- package/dist/chunk-ZIIlDASG.js +94 -0
- package/dist/chunk-ZIIlDASG.js.map +1 -0
- package/dist/chunk-ZLDg2I1Z.js +6 -0
- package/dist/chunk-ZLDg2I1Z.js.map +1 -0
- package/dist/chunk-_jSTl9gW.cjs +1129 -0
- package/dist/chunk-_jSTl9gW.cjs.map +1 -0
- package/dist/chunk-b5CqEoo1.cjs +599 -0
- package/dist/chunk-b5CqEoo1.cjs.map +1 -0
- package/dist/chunk-bA-2OGXv.d.ts +3977 -0
- package/dist/chunk-bvwC3n0z.cjs +12 -0
- package/dist/chunk-bvwC3n0z.cjs.map +1 -0
- package/dist/chunk-cMQzXXQq.js +67 -0
- package/dist/chunk-cMQzXXQq.js.map +1 -0
- package/dist/chunk-cTRnGhbF.cjs +177 -0
- package/dist/chunk-cTRnGhbF.cjs.map +1 -0
- package/dist/chunk-dHKPMJ4D.js +85 -0
- package/dist/chunk-dHKPMJ4D.js.map +1 -0
- package/dist/chunk-d_BOXcT5.js +9 -0
- package/dist/chunk-d_BOXcT5.js.map +1 -0
- package/dist/chunk-ea1IbBcA.js +66 -0
- package/dist/chunk-ea1IbBcA.js.map +1 -0
- package/dist/chunk-f-dHVrF3.js +293 -0
- package/dist/chunk-f-dHVrF3.js.map +1 -0
- package/dist/chunk-h7Z5mAV_.cjs +41 -0
- package/dist/chunk-h7Z5mAV_.cjs.map +1 -0
- package/dist/chunk-jSgMzVr1.js +35 -0
- package/dist/chunk-jSgMzVr1.js.map +1 -0
- package/dist/chunk-kYE5SZgs.cjs +252 -0
- package/dist/chunk-kYE5SZgs.cjs.map +1 -0
- package/dist/chunk-lEnNKG6x.cjs +285 -0
- package/dist/chunk-lEnNKG6x.cjs.map +1 -0
- package/dist/chunk-lcml1N1G.js +11 -0
- package/dist/chunk-lcml1N1G.js.map +1 -0
- package/dist/chunk-nBK0qBXt.js +68 -0
- package/dist/chunk-nBK0qBXt.js.map +1 -0
- package/dist/chunk-njoANlUr.cjs +41 -0
- package/dist/chunk-njoANlUr.cjs.map +1 -0
- package/dist/chunk-nwutfrnH.cjs +430 -0
- package/dist/chunk-nwutfrnH.cjs.map +1 -0
- package/dist/chunk-o1EKuTLo.js +56 -0
- package/dist/chunk-o1EKuTLo.js.map +1 -0
- package/dist/chunk-oMFOZSQM.cjs +52 -0
- package/dist/chunk-oMFOZSQM.cjs.map +1 -0
- package/dist/chunk-pb64dLGD.cjs +682 -0
- package/dist/chunk-pb64dLGD.cjs.map +1 -0
- package/dist/chunk-s7kBzSlt.js +2 -0
- package/dist/chunk-uhXxE8xV.cjs +32 -0
- package/dist/chunk-uhXxE8xV.cjs.map +1 -0
- package/dist/chunk-vGzpsUSM.cjs +110 -0
- package/dist/chunk-vGzpsUSM.cjs.map +1 -0
- package/dist/chunk-vN_Di8Af.cjs +1890 -0
- package/dist/chunk-vN_Di8Af.cjs.map +1 -0
- package/dist/chunk-veLShVmw.js +41 -0
- package/dist/chunk-veLShVmw.js.map +1 -0
- package/dist/chunk-wTf5jOFv.js +253 -0
- package/dist/chunk-wTf5jOFv.js.map +1 -0
- package/dist/chunk-yO-Ek9RH.cjs +17 -0
- package/dist/chunk-yO-Ek9RH.cjs.map +1 -0
- package/dist/chunk-ye5UUSFw.js +280 -0
- package/dist/chunk-ye5UUSFw.js.map +1 -0
- package/dist/copilot/index.cjs +10 -0
- package/dist/copilot/index.d.cts +62 -0
- package/dist/copilot/index.d.ts +62 -0
- package/dist/copilot/index.js +4 -0
- package/dist/embed/index.cjs +1653 -0
- package/dist/embed/index.cjs.map +1 -0
- package/dist/embed/index.d.cts +291 -0
- package/dist/embed/index.d.ts +291 -0
- package/dist/embed/index.js +1643 -0
- package/dist/embed/index.js.map +1 -0
- package/dist/headless/index.cjs +126 -0
- package/dist/headless/index.d.cts +4 -0
- package/dist/headless/index.d.ts +4 -0
- package/dist/headless/index.js +29 -0
- package/dist/import/index.cjs +403 -0
- package/dist/import/index.cjs.map +1 -0
- package/dist/import/index.d.cts +160 -0
- package/dist/import/index.d.ts +160 -0
- package/dist/import/index.js +393 -0
- package/dist/import/index.js.map +1 -0
- package/dist/index.cjs +8991 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4847 -0
- package/dist/index.d.ts +4847 -0
- package/dist/index.js +8768 -0
- package/dist/index.js.map +1 -0
- package/dist/map/index.cjs +36 -0
- package/dist/map/index.d.cts +2 -0
- package/dist/map/index.d.ts +2 -0
- package/dist/map/index.js +2 -0
- package/dist/styles.css +14684 -0
- package/dist/testing/index.cjs +398 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +302 -0
- package/dist/testing/index.d.ts +302 -0
- package/dist/testing/index.js +382 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/video/index.cjs +8 -0
- package/dist/video/index.d.cts +122 -0
- package/dist/video/index.d.ts +122 -0
- package/dist/video/index.js +2 -0
- package/package.json +226 -4
- package/src/agent/components/ActivityRow.tsx +226 -0
- package/src/agent/components/AgentEntityIndicator.tsx +67 -0
- package/src/agent/components/AgentMarkdown.tsx +530 -0
- package/src/agent/components/ChatComposer.tsx +161 -0
- package/src/agent/components/ChatTranscript.tsx +1358 -0
- package/src/agent/components/CopilotPanel.tsx +415 -0
- package/src/agent/components/CopilotStates.tsx +238 -0
- package/src/agent/components/CopilotTranscript.tsx +191 -0
- package/src/agent/components/MessageFeedback.tsx +100 -0
- package/src/agent/hooks/useAgentChatTransport.ts +61 -0
- package/src/agent/hooks/useAgentErrorCopy.ts +27 -0
- package/src/agent/hooks/useCopilotOpen.ts +68 -0
- package/src/agent/providers/AgentThreadsProvider.tsx +360 -0
- package/src/agent/providers/PromptPanelConversation.tsx +135 -0
- package/src/agent/rules/drawnNode.ts +24 -0
- package/src/alerts/components/MapAlerts.tsx +127 -0
- package/src/cache/hooks/useStudioCache.ts +40 -0
- package/src/cache/rules/studioCache.ts +145 -0
- package/src/collab/components/PeerEntityIndicator.tsx +150 -0
- package/src/collab/components/PresenceRoster.tsx +113 -0
- package/src/collab/components/peerLock.tsx +59 -0
- package/src/collab/hooks/useCollabOrganizationId.ts +24 -0
- package/src/collab/hooks/usePeerLockLabel.ts +41 -0
- package/src/collections/components/CollectionFormModal.tsx +280 -0
- package/src/collections/components/CollectionMultiSelect.tsx +640 -0
- package/src/collections/components/EditCollectionModal.tsx +114 -0
- package/src/collections/components/ManageCollectionsModal.tsx +692 -0
- package/src/collections/components/NewCollectionModal.tsx +87 -0
- package/src/collections/components/ShareCollectionModal.tsx +150 -0
- package/src/collections/hooks/useEntityCollections.ts +126 -0
- package/src/collections/hooks/useEveryPage.ts +33 -0
- package/src/controls/components/MapControlTooltip.tsx +84 -0
- package/src/controls/components/PoiOverlayMenu.tsx +342 -0
- package/src/controls/components/StudioControls.tsx +278 -0
- package/src/controls/rules/constants.ts +34 -0
- package/src/copilot/hooks/useStudioCopilotInset.ts +39 -0
- package/src/copilot/index.ts +29 -0
- package/src/directions/components/DirectionsModal.tsx +447 -0
- package/src/directions/components/directionsPdf.tsx +549 -0
- package/src/embed/components/DefaultViewControl.tsx +159 -0
- package/src/embed/components/EmbedBaseMapPicker.tsx +107 -0
- package/src/embed/components/EmbedCodeSection.tsx +329 -0
- package/src/embed/components/EmbedColumnsSection.tsx +167 -0
- package/src/embed/components/EmbedConfigForm.tsx +239 -0
- package/src/embed/components/EmbedElementSwitcher.tsx +85 -0
- package/src/embed/components/EmbedFieldControl.tsx +488 -0
- package/src/embed/components/EmbedGeneralSection.tsx +279 -0
- package/src/embed/components/EmbedKeyPanel.tsx +138 -0
- package/src/embed/components/EmbedSnippetCode.tsx +154 -0
- package/src/embed/components/EmbedStage.tsx +505 -0
- package/src/embed/components/EmbedTablePreview.tsx +134 -0
- package/src/embed/components/EmbedThemePicker.tsx +74 -0
- package/src/embed/components/EmbedTintPicker.tsx +76 -0
- package/src/embed/components/EmbedWizard.tsx +1031 -0
- package/src/embed/hooks/useEmbedCode.ts +170 -0
- package/src/embed/hooks/useEmbedCollectionItineraries.ts +42 -0
- package/src/embed/hooks/useEmbedLayerOptions.ts +75 -0
- package/src/embed/hooks/useEmbedPreviewCamera.ts +169 -0
- package/src/embed/index.ts +42 -0
- package/src/fullscreen/components/FullscreenHeader.tsx +77 -0
- package/src/fullscreen/components/FullscreenModal.tsx +80 -0
- package/src/fullscreen/components/WizardLayout.tsx +129 -0
- package/src/guards/components/AgentDrivingGuard.tsx +59 -0
- package/src/guards/components/UnsavedEditsGuard.tsx +210 -0
- package/src/guards/hooks/useReportUnsavedForm.ts +34 -0
- package/src/guards/hooks/useUnsavedEditsGuard.ts +44 -0
- package/src/headless/hooks/useAgentDriving.ts +21 -0
- package/src/headless/hooks/useBeginSegmentEdit.ts +89 -0
- package/src/headless/hooks/useBeginWaypointEdit.ts +74 -0
- package/src/headless/hooks/useCapabilitySet.ts +65 -0
- package/src/headless/hooks/useCollabResources.ts +148 -0
- package/src/headless/hooks/useCollectionScope.ts +37 -0
- package/src/headless/hooks/useEditActions.ts +250 -0
- package/src/headless/hooks/useEscapeKey.ts +43 -0
- package/src/headless/hooks/useInlineRename.ts +276 -0
- package/src/headless/hooks/useLiveAwareSegments.ts +88 -0
- package/src/headless/hooks/useLiveAwareWaypoints.ts +39 -0
- package/src/headless/hooks/useMapHoveredRow.ts +76 -0
- package/src/headless/hooks/usePlatformViewer.ts +452 -0
- package/src/headless/hooks/usePluginSlot.ts +235 -0
- package/src/headless/hooks/useRowEmphasis.ts +66 -0
- package/src/headless/hooks/useSegmentList.ts +428 -0
- package/src/headless/hooks/useSegmentRow.ts +370 -0
- package/src/headless/hooks/useSegmentRowActions.ts +267 -0
- package/src/headless/hooks/useShallowSelector.ts +145 -0
- package/src/headless/hooks/useStableMembers.ts +74 -0
- package/src/headless/hooks/useStoreSlice.ts +52 -0
- package/src/headless/hooks/useStreetViewCorridor.ts +120 -0
- package/src/headless/hooks/useStudioApi.ts +18 -0
- package/src/headless/hooks/useStudioDispatch.ts +180 -0
- package/src/headless/hooks/useStudioDispatchCount.ts +147 -0
- package/src/headless/hooks/useStudioDispatchUnsafe.ts +111 -0
- package/src/headless/hooks/useStudioEntitlement.ts +29 -0
- package/src/headless/hooks/useStudioFailureAlert.ts +67 -0
- package/src/headless/hooks/useStudioObserve.ts +38 -0
- package/src/headless/hooks/useStudioPreferences.ts +8 -0
- package/src/headless/hooks/useStudioSignedIn.ts +12 -0
- package/src/headless/hooks/useStudioStore.ts +72 -0
- package/src/headless/hooks/useStudioUnits.ts +23 -0
- package/src/headless/hooks/useStudioUrl.ts +24 -0
- package/src/headless/hooks/useStudioUserId.ts +5 -0
- package/src/headless/hooks/useStudioVerbHeld.ts +43 -0
- package/src/headless/hooks/useStudioViewer.ts +19 -0
- package/src/headless/hooks/useStudioViewerEntitlement.ts +40 -0
- package/src/headless/hooks/useStudioViewerItineraryLimit.ts +34 -0
- package/src/headless/hooks/useStudioViewerPreferences.ts +44 -0
- package/src/headless/hooks/useStudioViewerUnits.ts +50 -0
- package/src/headless/hooks/useStudioViewerUserId.ts +23 -0
- package/src/headless/hooks/useUiStore.ts +91 -0
- package/src/headless/hooks/useUiStoreShallow.ts +43 -0
- package/src/headless/hooks/useWaypointDetailsDialog.ts +52 -0
- package/src/headless/hooks/useWaypointList.ts +89 -0
- package/src/headless/hooks/useWaypointRow.ts +229 -0
- package/src/headless/hooks/useWaypointRowActions.ts +166 -0
- package/src/headless/index.ts +287 -0
- package/src/headless/providers/billingGate.tsx +129 -0
- package/src/headless/providers/copilot.tsx +155 -0
- package/src/headless/providers/mountayaStudio.tsx +127 -0
- package/src/headless/providers/navigationBlocker.tsx +91 -0
- package/src/headless/providers/notify.tsx +36 -0
- package/src/headless/providers/organizations.tsx +267 -0
- package/src/headless/providers/plugins.tsx +173 -0
- package/src/headless/providers/studio.tsx +1296 -0
- package/src/headless/providers/studioStrings.tsx +243 -0
- package/src/headless/rules/inputMethod.ts +19 -0
- package/src/hooks/useAgreementLimits.ts +165 -0
- package/src/hooks/useLayerCatalogOptions.ts +106 -0
- package/src/host/components/MountayaStudioHost.tsx +1018 -0
- package/src/host/hooks/useEmbeddedStudio.ts +24 -0
- package/src/host/hooks/useItineraryActivation.ts +126 -0
- package/src/host/hooks/useMemberGrants.ts +51 -0
- package/src/host/hooks/useStudioHostSurfaces.ts +100 -0
- package/src/host/hooks/useStudioPluginBinding.ts +133 -0
- package/src/host/hooks/useStudioSessionHeld.ts +111 -0
- package/src/host/hooks/useStudioToolBus.ts +127 -0
- package/src/host/hooks/useStudioToolContext.ts +175 -0
- package/src/host/providers/hostRegistry.tsx +144 -0
- package/src/host/providers/hostSurface.tsx +47 -0
- package/src/host/providers/hostVideo.tsx +73 -0
- package/src/import/components/DraftEntityList.tsx +298 -0
- package/src/import/components/FileDropInput.tsx +261 -0
- package/src/import/components/FileDropzone.tsx +97 -0
- package/src/import/components/ImportItineraryContent.tsx +133 -0
- package/src/import/components/ImportPreviewLegend.tsx +50 -0
- package/src/import/components/ImportPrimer.tsx +113 -0
- package/src/import/index.ts +32 -0
- package/src/import/providers/ImportRoutingGuideProvider.tsx +319 -0
- package/src/import/rules/routingGuidePictures.ts +20 -0
- package/src/index.ts +594 -0
- package/src/internal/components/Glyph.tsx +34 -0
- package/src/internal/components/MarkerGlyph.tsx +23 -0
- package/src/internal/components/MountayaMark.tsx +142 -0
- package/src/internal/hooks/useTextOverflow.ts +90 -0
- package/src/internal/providers/studioEditorRoot.tsx +42 -0
- package/src/internal/rules/editorRoot.ts +9 -0
- package/src/internal/rules/missingSeam.ts +32 -0
- package/src/itinerary/components/ActivityGuideModal.tsx +345 -0
- package/src/itinerary/components/ActivitySelect.tsx +204 -0
- package/src/itinerary/components/AddWaypointButton.tsx +151 -0
- package/src/itinerary/components/AscentInput.tsx +65 -0
- package/src/itinerary/components/Characteristics.tsx +129 -0
- package/src/itinerary/components/CursorReadout.tsx +66 -0
- package/src/itinerary/components/DistanceInput.tsx +67 -0
- package/src/itinerary/components/DraftProvenanceBanner.tsx +79 -0
- package/src/itinerary/components/DuplicateItineraryModal.tsx +341 -0
- package/src/itinerary/components/EditorSaveFooter.tsx +424 -0
- package/src/itinerary/components/ItineraryActionsMenu.tsx +655 -0
- package/src/itinerary/components/ItineraryForm.tsx +887 -0
- package/src/itinerary/components/ItineraryHeaderIdentity.tsx +121 -0
- package/src/itinerary/components/ItineraryHeaderMeta.tsx +68 -0
- package/src/itinerary/components/ItineraryHeaderTitle.tsx +88 -0
- package/src/itinerary/components/ItineraryIdentityFields.tsx +153 -0
- package/src/itinerary/components/ItineraryProfilePanel.tsx +619 -0
- package/src/itinerary/components/ItineraryProfileSheet.tsx +219 -0
- package/src/itinerary/components/ItinerarySubHeader.tsx +236 -0
- package/src/itinerary/components/PendingProfile.tsx +142 -0
- package/src/itinerary/components/PlaceCard.tsx +35 -0
- package/src/itinerary/components/PlaceMark.tsx +76 -0
- package/src/itinerary/components/ProfileAnalysisBars.tsx +84 -0
- package/src/itinerary/components/ProfileBar.tsx +215 -0
- package/src/itinerary/components/ProfileHeaderControls.tsx +116 -0
- package/src/itinerary/components/ProfileHeaderFigures.tsx +119 -0
- package/src/itinerary/components/ProfilePaceControl.tsx +97 -0
- package/src/itinerary/components/ProfileStat.tsx +76 -0
- package/src/itinerary/components/ProfileStatStrip.tsx +38 -0
- package/src/itinerary/components/RoadAccessModal.tsx +76 -0
- package/src/itinerary/components/RouteTypeControl.tsx +73 -0
- package/src/itinerary/components/SegmentGroupModal.tsx +312 -0
- package/src/itinerary/components/SegmentGroupRangePicker.tsx +228 -0
- package/src/itinerary/components/StagingCreateFooter.tsx +185 -0
- package/src/itinerary/components/StudioItineraryProfile.tsx +620 -0
- package/src/itinerary/components/SuggestForm.tsx +256 -0
- package/src/itinerary/components/SuggestFormActions.tsx +124 -0
- package/src/itinerary/components/SuggestionResultRow.tsx +98 -0
- package/src/itinerary/components/SuggestionResultsList.tsx +85 -0
- package/src/itinerary/components/WaypointAmenityPicker.tsx +105 -0
- package/src/itinerary/components/WaypointDetailFields.tsx +604 -0
- package/src/itinerary/components/WaypointDetailsModal.tsx +134 -0
- package/src/itinerary/components/WaypointDetailsRows.tsx +707 -0
- package/src/itinerary/components/WaypointDetailsView.tsx +389 -0
- package/src/itinerary/components/WaypointIconCircle.tsx +211 -0
- package/src/itinerary/components/WaypointIconPicker.tsx +82 -0
- package/src/itinerary/components/WaypointMarkers.tsx +293 -0
- package/src/itinerary/components/WaypointPreviewCard.tsx +56 -0
- package/src/itinerary/components/WaypointSectionNav.tsx +151 -0
- package/src/itinerary/components/WaypointSwitcher.tsx +143 -0
- package/src/itinerary/components/WaypointWorkbench.tsx +263 -0
- package/src/itinerary/hooks/useDuplicateDraft.ts +205 -0
- package/src/itinerary/hooks/useDuplicateSource.ts +69 -0
- package/src/itinerary/hooks/useFriendlyNameBanks.ts +26 -0
- package/src/itinerary/hooks/useItineraryEditable.ts +89 -0
- package/src/itinerary/hooks/useItineraryPace.ts +104 -0
- package/src/itinerary/hooks/useItinerarySubject.ts +117 -0
- package/src/itinerary/hooks/useOpenItineraryEditable.ts +39 -0
- package/src/itinerary/hooks/useProfileOverlay.tsx +61 -0
- package/src/itinerary/hooks/useProfileSeries.ts +95 -0
- package/src/itinerary/hooks/useProfileVisibility.ts +149 -0
- package/src/itinerary/hooks/useSeedDraftOrganization.ts +85 -0
- package/src/itinerary/hooks/useSegmentGroupSave.ts +143 -0
- package/src/itinerary/hooks/useStartFromSuggestion.ts +63 -0
- package/src/itinerary/hooks/useStudioItinerary.ts +35 -0
- package/src/itinerary/hooks/useSuggestionPin.ts +36 -0
- package/src/itinerary/hooks/useWaypointCardWords.ts +51 -0
- package/src/itinerary/hooks/useWaypointCreateFollowUp.ts +158 -0
- package/src/itinerary/hooks/useWaypointDetailsEditor.ts +280 -0
- package/src/itinerary/hooks/useWaypointSectionEntries.ts +114 -0
- package/src/itinerary/providers/ActivityGuideProvider.tsx +113 -0
- package/src/itinerary/providers/ItineraryViewProvider.tsx +146 -0
- package/src/itinerary/rules/amenityGlyphs.ts +25 -0
- package/src/itinerary/rules/cursorReadoutData.ts +34 -0
- package/src/itinerary/rules/profileCursor.ts +11 -0
- package/src/itinerary/rules/profileModel.ts +98 -0
- package/src/itinerary/rules/shownFocus.ts +11 -0
- package/src/itinerary/rules/waypointGlyphs.ts +42 -0
- package/src/itinerary/stores/profileHover.ts +54 -0
- package/src/lists/components/AddSegmentButton.tsx +240 -0
- package/src/lists/components/EditActions.tsx +153 -0
- package/src/lists/components/EditorListSection.tsx +117 -0
- package/src/lists/components/EditorSegmentRow.tsx +458 -0
- package/src/lists/components/ItineraryAddSegmentButton.tsx +66 -0
- package/src/lists/components/ItinerarySegmentList.tsx +301 -0
- package/src/lists/components/ItineraryWaypointList.tsx +257 -0
- package/src/lists/components/SegmentList.tsx +549 -0
- package/src/lists/components/SegmentSeam.tsx +292 -0
- package/src/lists/components/WaypointList.tsx +233 -0
- package/src/map/components/ContextMenuPopup.tsx +913 -0
- package/src/map/components/MapAnchoredPopup.tsx +285 -0
- package/src/map/components/SegmentViaPopup.tsx +133 -0
- package/src/map/hooks/useAccessRestrictions.ts +25 -0
- package/src/map/hooks/useEmbedConstraints.ts +359 -0
- package/src/map/hooks/useEmbedDisplaySeed.ts +61 -0
- package/src/map/hooks/useEmbedReady.ts +137 -0
- package/src/map/hooks/useHeldTileSources.ts +65 -0
- package/src/map/hooks/useSegmentColor.ts +24 -0
- package/src/map/hooks/useSpecificationLayers.ts +25 -0
- package/src/map/hooks/useStudioConstraints.ts +135 -0
- package/src/map/hooks/useStudioContextMenu.ts +34 -0
- package/src/map/hooks/useStudioContextMenuWaypoint.ts +119 -0
- package/src/map/hooks/useStudioEditCommitReporter.ts +56 -0
- package/src/map/hooks/useStudioEditEngine.ts +271 -0
- package/src/map/hooks/useStudioEnrichment.ts +117 -0
- package/src/map/hooks/useStudioItinerarySelection.ts +484 -0
- package/src/map/hooks/useStudioLayersScope.ts +34 -0
- package/src/map/hooks/useStudioMapBindings.ts +178 -0
- package/src/map/hooks/useStudioMapEditSeams.ts +161 -0
- package/src/map/hooks/useStudioMapSync.ts +127 -0
- package/src/map/hooks/useStudioOverlay.ts +75 -0
- package/src/map/hooks/useStudioOverlayWithdrawal.ts +52 -0
- package/src/map/hooks/useStudioOverlaysEntitled.ts +12 -0
- package/src/map/hooks/useStudioPeerDrafts.ts +126 -0
- package/src/map/hooks/useStudioPoiLayers.ts +110 -0
- package/src/map/hooks/useStudioPreviewSync.ts +205 -0
- package/src/map/hooks/useStudioSegmentEditing.ts +239 -0
- package/src/map/hooks/useStudioSegmentViaPrompt.ts +38 -0
- package/src/map/hooks/useStudioSplitPicking.ts +411 -0
- package/src/map/hooks/useStudioSuggestionPicking.ts +178 -0
- package/src/map/hooks/useStudioTimestamp.ts +226 -0
- package/src/map/hooks/useStudioUrlState.ts +340 -0
- package/src/map/hooks/useStudioWaypointEditing.ts +251 -0
- package/src/map/hooks/useStudioZoneEditing.ts +260 -0
- package/src/map/hooks/useStudioZoneOriginPicking.ts +129 -0
- package/src/map/hooks/useStudioZoneSelection.ts +240 -0
- package/src/map/hooks/useTileLayers.ts +33 -0
- package/src/map/index.ts +67 -0
- package/src/map/rules/editKeyboard.ts +216 -0
- package/src/map/rules/editTooltip.ts +222 -0
- package/src/map/rules/nearerEscape.ts +107 -0
- package/src/map/rules/poiGlyphs.ts +40 -0
- package/src/modals/components/AppModal.tsx +280 -0
- package/src/modals/components/ConfirmModal.tsx +223 -0
- package/src/modals/components/ExportModal.tsx +538 -0
- package/src/modals/components/LocationPermissionModal.tsx +129 -0
- package/src/modals/components/ModalFooter.tsx +187 -0
- package/src/modals/hooks/useConfirmGate.tsx +209 -0
- package/src/modals/hooks/useDiscardGuard.tsx +168 -0
- package/src/panels/components/EditShortcutHint.tsx +115 -0
- package/src/panels/components/FloatingOverlay.tsx +243 -0
- package/src/panels/components/GlyphPickerGrid.tsx +84 -0
- package/src/panels/components/PanelRouter.tsx +133 -0
- package/src/panels/components/PickerCard.tsx +108 -0
- package/src/panels/components/RadioOptionCard.tsx +116 -0
- package/src/panels/components/SidenavContentBody.tsx +56 -0
- package/src/panels/components/SidenavContentFooter.tsx +27 -0
- package/src/panels/components/SidenavContentHeader.tsx +172 -0
- package/src/panels/components/SidenavFormActions.tsx +96 -0
- package/src/panels/components/StudioFormStack.tsx +44 -0
- package/src/panels/components/StudioHeader.tsx +117 -0
- package/src/panels/components/StudioLayersPanel.tsx +909 -0
- package/src/panels/components/StudioPreferencesPanel.tsx +199 -0
- package/src/panels/rules/studioHeader.ts +68 -0
- package/src/plugins/components/PluginBoundary.tsx +62 -0
- package/src/plugins/components/PluginContextMenuActions.tsx +73 -0
- package/src/plugins/components/PluginControls.tsx +101 -0
- package/src/plugins/components/PluginHeldView.tsx +77 -0
- package/src/plugins/components/PluginMenuItems.tsx +63 -0
- package/src/plugins/components/PluginProfileHeader.tsx +71 -0
- package/src/plugins/components/PluginProfilePlot.tsx +134 -0
- package/src/plugins/components/PluginSlotItems.tsx +55 -0
- package/src/primitives/components/ActivityIcon.tsx +106 -0
- package/src/primitives/components/AllowlistField.tsx +508 -0
- package/src/primitives/components/CopyIconButton.tsx +80 -0
- package/src/primitives/components/DateTimeInput.tsx +133 -0
- package/src/primitives/components/DateTimePickerField.tsx +110 -0
- package/src/primitives/components/DescriptiveMenuItem.tsx +80 -0
- package/src/primitives/components/DialogSubject.tsx +102 -0
- package/src/primitives/components/DisabledMenuItem.tsx +45 -0
- package/src/primitives/components/DisabledReason.tsx +34 -0
- package/src/primitives/components/EmptyState.tsx +186 -0
- package/src/primitives/components/ErrorAlert.tsx +35 -0
- package/src/primitives/components/ErrorBoundary.tsx +55 -0
- package/src/primitives/components/FieldLabel.tsx +34 -0
- package/src/primitives/components/FormErrorAlert.tsx +33 -0
- package/src/primitives/components/GroupLabelledBy.tsx +31 -0
- package/src/primitives/components/LanguageSelect.tsx +139 -0
- package/src/primitives/components/ListSkeleton.tsx +64 -0
- package/src/primitives/components/MarqueeText.tsx +61 -0
- package/src/primitives/components/OrganizationScopeItem.tsx +146 -0
- package/src/primitives/components/OrganizationSelect.tsx +149 -0
- package/src/primitives/components/PointField.tsx +75 -0
- package/src/primitives/components/PrivacyControl.tsx +127 -0
- package/src/primitives/components/RenameInput.tsx +159 -0
- package/src/primitives/components/RequiredLabelWithHelp.tsx +76 -0
- package/src/primitives/components/SegmentIcon.tsx +43 -0
- package/src/primitives/components/SegmentIconLabel.tsx +37 -0
- package/src/primitives/components/SpeedInput.tsx +222 -0
- package/src/primitives/components/StudioSectionBoundary.tsx +56 -0
- package/src/primitives/components/StudioSegmentedControl.tsx +23 -0
- package/src/primitives/components/UnitPickerField.tsx +62 -0
- package/src/primitives/components/UnitPickerGrid.tsx +71 -0
- package/src/primitives/components/WarningAlert.tsx +34 -0
- package/src/primitives/hooks/useCompactLayout.ts +30 -0
- package/src/primitives/hooks/useSpeedControlLabel.ts +28 -0
- package/src/primitives/rules/activityBadge.ts +87 -0
- package/src/publication/components/PublicationBadge.tsx +42 -0
- package/src/publication/components/PublicationDot.tsx +31 -0
- package/src/publication/components/PublicationNotice.tsx +115 -0
- package/src/publication/components/PublicationSettledPill.tsx +43 -0
- package/src/publication/components/PublicationStatus.tsx +52 -0
- package/src/publication/components/UnpublishedPanel.tsx +133 -0
- package/src/publication/hooks/usePublicationHint.ts +235 -0
- package/src/publication/hooks/usePublishAct.ts +101 -0
- package/src/publication/hooks/usePublishItinerary.ts +27 -0
- package/src/publication/hooks/usePublishZone.ts +27 -0
- package/src/publication/hooks/usePublishableScope.ts +23 -0
- package/src/publication/hooks/usePublishedItinerary.ts +83 -0
- package/src/rows/components/ReadOnlySegmentRow.tsx +155 -0
- package/src/rows/components/RouteMetricLine.tsx +90 -0
- package/src/rows/components/RowMetadata.tsx +92 -0
- package/src/rows/components/SegmentRow.tsx +381 -0
- package/src/rows/components/SegmentRowActions.tsx +187 -0
- package/src/rows/components/SegmentRowBody.tsx +197 -0
- package/src/rows/components/StudioToggleRow.tsx +71 -0
- package/src/rows/components/SuggestionList.tsx +100 -0
- package/src/rows/components/SuggestionRowLayout.tsx +164 -0
- package/src/rows/components/WaypointRow.tsx +176 -0
- package/src/rows/components/WaypointRowLayout.tsx +279 -0
- package/src/rows/components/lockChrome.tsx +106 -0
- package/src/rules/menuActions.ts +149 -0
- package/src/rules/sizing.ts +127 -0
- package/src/rules/studioConfig.ts +719 -0
- package/src/search/components/CategoryTabs.tsx +136 -0
- package/src/search/components/ResultRow.tsx +242 -0
- package/src/search/components/ResultsList.tsx +182 -0
- package/src/search/components/SearchInput.tsx +100 -0
- package/src/search/components/SearchTab.tsx +614 -0
- package/src/sections/components/RailSwitcher.tsx +179 -0
- package/src/sections/components/SectionCard.tsx +48 -0
- package/src/sections/components/SectionHead.tsx +42 -0
- package/src/sections/components/SectionTabs.tsx +231 -0
- package/src/segments/components/SegmentColorCircle.tsx +118 -0
- package/src/segments/components/SegmentColorPicker.tsx +134 -0
- package/src/segments/components/SegmentModeControl.tsx +118 -0
- package/src/segments/components/SegmentRowMenu.tsx +449 -0
- package/src/segments/components/SegmentRowPopover.tsx +163 -0
- package/src/segments/components/SegmentSelect.tsx +116 -0
- package/src/segments/components/SegmentSpeedControl.tsx +299 -0
- package/src/share/components/ShareLinkManage.tsx +699 -0
- package/src/share/components/ShareModal.tsx +182 -0
- package/src/share/components/ShareSheet.tsx +178 -0
- package/src/share/components/ShareViewModal.tsx +131 -0
- package/src/share/hooks/useCanManageShareLink.ts +51 -0
- package/src/studio/components/MountayaStudio.tsx +1170 -0
- package/src/studio/components/MountayaStudioViewer.tsx +775 -0
- package/src/studio/hooks/useEmbeddedStudioConfig.ts +60 -0
- package/src/studio/hooks/useViewerActivation.ts +47 -0
- package/src/studio/hooks/useViewerCollectionSpecification.ts +58 -0
- package/src/studio/hooks/useViewerEmbedConfig.ts +74 -0
- package/src/studio/hooks/useViewerFraming.ts +211 -0
- package/src/studio/hooks/useViewerMapBindings.ts +109 -0
- package/src/styles.css +3994 -0
- package/src/testing/collections.ts +40 -0
- package/src/testing/hostRegistry.tsx +109 -0
- package/src/testing/index.ts +65 -0
- package/src/testing/itinerary.ts +297 -0
- package/src/testing/mountayaClient.tsx +218 -0
- package/src/testing/viewer.tsx +171 -0
- package/src/theme/components/StudioPortalScope.tsx +130 -0
- package/src/theme/hooks/useResolvedStudioTheme.ts +37 -0
- package/src/theme/rules/density.ts +157 -0
- package/src/theme/rules/mountayaStudioTheme.ts +114 -0
- package/src/theme/rules/passwordManager.ts +20 -0
- package/src/theme/rules/tokenStyle.ts +18 -0
- package/src/theme/rules/tokens.ts +71 -0
- package/src/theme/rules/tone.ts +34 -0
- package/src/theme/rules/zIndex.ts +40 -0
- package/src/video/components/CameraStep.tsx +82 -0
- package/src/video/components/DirectingScrim.tsx +28 -0
- package/src/video/components/DirectorChat.tsx +79 -0
- package/src/video/components/FormatStep.tsx +487 -0
- package/src/video/components/ModeCards.tsx +141 -0
- package/src/video/components/PlanNumberField.tsx +54 -0
- package/src/video/components/PreviewControls.tsx +212 -0
- package/src/video/components/PreviewStage.tsx +319 -0
- package/src/video/components/PreviewSurface.tsx +247 -0
- package/src/video/components/PreviewWatermark.tsx +77 -0
- package/src/video/components/ProfileOverlayCanvas.tsx +195 -0
- package/src/video/components/ProfileStep.tsx +254 -0
- package/src/video/components/RecordProgress.tsx +117 -0
- package/src/video/components/ReviewStep.tsx +244 -0
- package/src/video/components/ShotList.tsx +452 -0
- package/src/video/components/VideoExportWizard.tsx +827 -0
- package/src/video/components/WizardDirectingIndicator.tsx +57 -0
- package/src/video/components/WizardFooter.tsx +112 -0
- package/src/video/hooks/usePreviewPlanRefresh.ts +91 -0
- package/src/video/hooks/useVideoItinerarySubject.ts +18 -0
- package/src/video/hooks/useVideoOrganizationId.ts +30 -0
- package/src/video/hooks/useVideoPreviewSeed.ts +203 -0
- package/src/video/hooks/useVideoProfileSeed.ts +53 -0
- package/src/video/hooks/useVideoPublication.ts +29 -0
- package/src/video/hooks/useVideoRouteReady.ts +52 -0
- package/src/video/hooks/useVideoRouteSync.ts +100 -0
- package/src/video/hooks/useVideoTileTransform.ts +88 -0
- package/src/video/index.ts +24 -0
- package/src/video/providers/DirectorChatProvider.tsx +293 -0
- package/src/video/rules/changeTo.ts +20 -0
- package/src/zone/components/ZoneActionsMenu.tsx +305 -0
- package/src/zone/components/ZoneAvailabilityFields.tsx +98 -0
- package/src/zone/components/ZoneForm.tsx +622 -0
- package/src/zone/components/ZoneInheritedContext.tsx +70 -0
- package/src/zone/components/ZoneLevelSelect.tsx +86 -0
- package/src/zone/components/ZoneMetadataFields.tsx +89 -0
- package/src/zone/components/ZoneMethodSelect.tsx +90 -0
- package/src/zone/components/ZoneModeSelect.tsx +98 -0
- package/src/zone/components/ZoneRangeInput.tsx +129 -0
- package/src/zone/components/ZoneReachabilityFields.tsx +120 -0
- package/src/zone/components/ZoneSubHeader.tsx +188 -0
- package/src/zone/components/ZoneVisibility.tsx +94 -0
- package/src/zone/hooks/useStudioReachabilityStart.ts +79 -0
- package/src/zone/hooks/useStudioZonesBrowsed.ts +32 -0
|
@@ -0,0 +1,1728 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { C as useStudioStorage, d as useStudioDensity, i as useStudioActivities, x as useStudioPeerName } from "./chunk-TlHnQSY_.js";
|
|
3
|
+
import { t as useUiStore } from "./chunk-CsnIpELM.js";
|
|
4
|
+
import { n as useStudioScopedStrings } from "./chunk-B7d3NIaH.js";
|
|
5
|
+
import { a as iconSizes, s as Glyph$1 } from "./chunk-C7NizUxN.js";
|
|
6
|
+
import { t as DisabledReason } from "./chunk-DCvhBL80.js";
|
|
7
|
+
import { t as useUiStoreShallow } from "./chunk-BO_yHMn2.js";
|
|
8
|
+
import { a as usePeerLockHolderId, r as useActiveItineraryResource } from "./chunk-Dd9K8OSs.js";
|
|
9
|
+
import { t as useCollabOrganizationId } from "./chunk-CxC9GaSV.js";
|
|
10
|
+
import { t as useAgentDriving } from "./chunk-C3ftwoOp.js";
|
|
11
|
+
import { t as usePluginSlot } from "./chunk-dHKPMJ4D.js";
|
|
12
|
+
import { t as useStudioDispatch } from "./chunk-nBK0qBXt.js";
|
|
13
|
+
import { i as useSegmentRowActions, l as useStudioDispatchUnsafe, n as useWaypointRowActions, r as useSegmentRow, s as useInlineRename, t as useWaypointRow } from "./chunk-BdepwGey.js";
|
|
14
|
+
import { t as PluginSlotItems } from "./chunk-ea1IbBcA.js";
|
|
15
|
+
import { t as useEscapeKey } from "./chunk-DVI59otQ.js";
|
|
16
|
+
import { t as useStudioFailureAlert } from "./chunk-C5ZETobm.js";
|
|
17
|
+
import { t as useStudioUnits } from "./chunk-BDJCk6ml.js";
|
|
18
|
+
import { n as FieldLabel } from "./chunk-CWxPV2vI.js";
|
|
19
|
+
import { t as AppModal } from "./chunk-Bh4xSiDO.js";
|
|
20
|
+
import { t as ActivityIcon } from "./chunk-DteUy52S.js";
|
|
21
|
+
import { n as densityThemes } from "./chunk-DBfZJAh3.js";
|
|
22
|
+
import { t as menuActionGlyphs } from "./chunk-jSgMzVr1.js";
|
|
23
|
+
import { n as RowMetadata, r as joinMetadata } from "./chunk-CNFF8fiL.js";
|
|
24
|
+
import { t as StudioSegmentedControl } from "./chunk-6VpwF-77.js";
|
|
25
|
+
import { n as useSpeedControlLabel, r as SegmentColorCircle, t as SpeedInput } from "./chunk-C6cBmVch.js";
|
|
26
|
+
import { n as waypointGlyphTable } from "./chunk-DmBkJhi_.js";
|
|
27
|
+
import { t as WaypointIconPicker } from "./chunk-NqIZvB2L.js";
|
|
28
|
+
import { ActionIcon, Anchor, Avatar, Box, Button, Center, Group, Image, MantineThemeProvider, Menu, Popover, Select, Stack, Text, TextInput, Tooltip, UnstyledButton, VisuallyHidden } from "@mantine/core";
|
|
29
|
+
import { EMPTY_SEGMENTS, REACHABILITY_GLYPH, beginDraftSegmentEdit, collabPeerColor, displayNameSchema, importReasonSentence, importSegmentCounts, segmentEditModeSchema, selectActiveDraftSession, selectAgentEntityLocked, selectCollabLockHolder, selectCollabPeers, selectImportSession, userWaypointIconSchema } from "@mountaya/studio";
|
|
30
|
+
import { Fragment, Suspense, createContext, lazy, memo, use, useCallback, useEffect, useId, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
31
|
+
import { mergeDisabledHintKey, splitDisabledHintKey } from "@mountaya/studio/strings";
|
|
32
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
33
|
+
import { localizedName } from "@mountaya/elements/i18n";
|
|
34
|
+
import { useLatestRef, useMountayaLanguage, useMountayaScopedStrings } from "@mountaya/elements-react";
|
|
35
|
+
import { DEFAULT_WAYPOINT_COLOR } from "@mountaya/elements/icons";
|
|
36
|
+
import { useDisclosure, useHover } from "@mantine/hooks";
|
|
37
|
+
import { durationForSpeed, formatDistance, formatElevation, kilometersPerHourToDisplay, resolveSpeedKmh, speedUnitFor, splitDuration } from "@mountaya/elements/profile";
|
|
38
|
+
import { SECONDS_PER_MINUTE, isPaceUnit } from "@mountaya/elements/units";
|
|
39
|
+
const lockTooltipStyles = { tooltip: { whiteSpace: "pre-line" } };
|
|
40
|
+
const lockLabelNewline = /\n/g;
|
|
41
|
+
const flattenLockLabel = (label) => label.replace(lockLabelNewline, " ");
|
|
42
|
+
const LockTooltip = ({ children, label }) => /* @__PURE__ */ jsx(Tooltip, {
|
|
43
|
+
events: {
|
|
44
|
+
focus: true,
|
|
45
|
+
hover: true,
|
|
46
|
+
touch: false
|
|
47
|
+
},
|
|
48
|
+
label,
|
|
49
|
+
position: "right",
|
|
50
|
+
styles: lockTooltipStyles,
|
|
51
|
+
withArrow: true,
|
|
52
|
+
children
|
|
53
|
+
});
|
|
54
|
+
const DisabledActionsButton = ({ ariaLabel, tooltipLabel }) => /* @__PURE__ */ jsx(LockTooltip, {
|
|
55
|
+
label: tooltipLabel,
|
|
56
|
+
children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsxs(ActionIcon, {
|
|
57
|
+
disabled: true,
|
|
58
|
+
variant: "subtle",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx(Glyph$1, {
|
|
61
|
+
name: "more",
|
|
62
|
+
size: iconSizes.sm
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: ariaLabel }),
|
|
65
|
+
/* @__PURE__ */ jsx(DisabledReason, { children: flattenLockLabel(tooltipLabel) })
|
|
66
|
+
]
|
|
67
|
+
}) })
|
|
68
|
+
});
|
|
69
|
+
const SECTIONS$13 = ["agentLock"];
|
|
70
|
+
const agentTint = { color: "var(--mantine-color-blue-6)" };
|
|
71
|
+
const AgentEntityIndicator = ({ id, kind }) => {
|
|
72
|
+
const words = useStudioScopedStrings(SECTIONS$13);
|
|
73
|
+
if (!useUiStore((state) => selectAgentEntityLocked(kind, id)(state))) return null;
|
|
74
|
+
const label = words.agentLock.editingThis;
|
|
75
|
+
return /* @__PURE__ */ jsx(Tooltip, {
|
|
76
|
+
label,
|
|
77
|
+
position: "right",
|
|
78
|
+
styles: lockTooltipStyles,
|
|
79
|
+
withArrow: true,
|
|
80
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
81
|
+
"aria-label": flattenLockLabel(label),
|
|
82
|
+
role: "img",
|
|
83
|
+
children: /* @__PURE__ */ jsx(Glyph$1, {
|
|
84
|
+
name: "agent",
|
|
85
|
+
size: iconSizes.sm,
|
|
86
|
+
style: agentTint
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
const SECTIONS$12 = ["collab"];
|
|
92
|
+
const PeerEntityBadges = ({ lockHolderId, viewerIds }) => {
|
|
93
|
+
const words = useStudioScopedStrings(SECTIONS$12);
|
|
94
|
+
const resolveName = useStudioPeerName(useCollabOrganizationId());
|
|
95
|
+
const nameFor = useCallback((userId) => resolveName(userId) ?? words.collab.roster.unknownPeer, [resolveName, words]);
|
|
96
|
+
const editingLabel = lockHolderId === null ? null : words.collab.lockedBy(nameFor(lockHolderId));
|
|
97
|
+
const holderTint = useMemo(() => lockHolderId === null ? {} : { color: collabPeerColor(lockHolderId) }, [lockHolderId]);
|
|
98
|
+
return /* @__PURE__ */ jsxs(Group, {
|
|
99
|
+
gap: "xxs",
|
|
100
|
+
children: [viewerIds.map((userId) => {
|
|
101
|
+
const viewingLabel = words.collab.peerViewing(nameFor(userId));
|
|
102
|
+
return /* @__PURE__ */ jsx(Tooltip, {
|
|
103
|
+
label: viewingLabel,
|
|
104
|
+
position: "right",
|
|
105
|
+
withArrow: true,
|
|
106
|
+
children: /* @__PURE__ */ jsx(Avatar, {
|
|
107
|
+
"aria-label": viewingLabel,
|
|
108
|
+
color: collabPeerColor(userId),
|
|
109
|
+
name: nameFor(userId),
|
|
110
|
+
role: "img",
|
|
111
|
+
size: "xs"
|
|
112
|
+
})
|
|
113
|
+
}, userId);
|
|
114
|
+
}), lockHolderId !== null && editingLabel !== null ? /* @__PURE__ */ jsx(Tooltip, {
|
|
115
|
+
label: editingLabel,
|
|
116
|
+
position: "right",
|
|
117
|
+
styles: lockTooltipStyles,
|
|
118
|
+
withArrow: true,
|
|
119
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
120
|
+
"aria-label": flattenLockLabel(editingLabel),
|
|
121
|
+
role: "img",
|
|
122
|
+
children: /* @__PURE__ */ jsx(Glyph$1, {
|
|
123
|
+
name: "action-edit",
|
|
124
|
+
size: iconSizes.sm,
|
|
125
|
+
style: holderTint
|
|
126
|
+
})
|
|
127
|
+
})
|
|
128
|
+
}) : null]
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
const PeerEntityIndicator = ({ id, kind }) => {
|
|
132
|
+
const itineraryResource = useActiveItineraryResource();
|
|
133
|
+
const viewerIds = useUiStoreShallow((state) => {
|
|
134
|
+
const ids = [];
|
|
135
|
+
if (itineraryResource === null) return ids;
|
|
136
|
+
for (const peer of Object.values(selectCollabPeers(itineraryResource)(state))) if (peer.selection?.kind === kind && peer.selection.id === id) ids.push(peer.userId);
|
|
137
|
+
return ids;
|
|
138
|
+
});
|
|
139
|
+
const lockHolderId = useUiStore((state) => itineraryResource === null ? null : selectCollabLockHolder(itineraryResource, kind, id)(state) ?? null);
|
|
140
|
+
if (viewerIds.length === 0 && lockHolderId === null) return null;
|
|
141
|
+
return /* @__PURE__ */ jsx(PeerEntityBadges, {
|
|
142
|
+
lockHolderId,
|
|
143
|
+
viewerIds
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
const SECTIONS$11 = ["collab"];
|
|
147
|
+
const usePeerLockLabel = (lockHolderId) => usePeerLockLabels()(lockHolderId);
|
|
148
|
+
const usePeerLockLabels = () => {
|
|
149
|
+
const words = useStudioScopedStrings(SECTIONS$11);
|
|
150
|
+
const resolveName = useStudioPeerName(useCollabOrganizationId());
|
|
151
|
+
return useCallback((lockHolderId) => {
|
|
152
|
+
const name = resolveName(lockHolderId);
|
|
153
|
+
return name === null ? words.collab.locked : words.collab.lockedBy(name);
|
|
154
|
+
}, [resolveName, words]);
|
|
155
|
+
};
|
|
156
|
+
const SECTIONS$10 = ["actions", "import"];
|
|
157
|
+
const ILLUSTRATED_SECTIONS = [{
|
|
158
|
+
key: "precision",
|
|
159
|
+
sides: ["recorded", "matched"]
|
|
160
|
+
}, {
|
|
161
|
+
key: "editable",
|
|
162
|
+
sides: ["manyPoints", "fewPoints"]
|
|
163
|
+
}];
|
|
164
|
+
const suppliedSides = (names, pictures) => {
|
|
165
|
+
const sides = names.flatMap((name) => {
|
|
166
|
+
const src = pictures[name];
|
|
167
|
+
return src === void 0 || src === "" ? [] : [{
|
|
168
|
+
name,
|
|
169
|
+
src
|
|
170
|
+
}];
|
|
171
|
+
});
|
|
172
|
+
return sides.length === names.length ? sides : [];
|
|
173
|
+
};
|
|
174
|
+
const TEXT_SECTIONS = ["exact"];
|
|
175
|
+
const ImportRoutingGuideModal = ({ matchedCount, onClose, opened, pictures = noPictures, totalCount }) => {
|
|
176
|
+
const words = useStudioScopedStrings(SECTIONS$10);
|
|
177
|
+
return /* @__PURE__ */ jsx(AppModal, {
|
|
178
|
+
closeLabel: words.actions.close,
|
|
179
|
+
description: words.import.guide.description,
|
|
180
|
+
icon: /* @__PURE__ */ jsx(Glyph$1, {
|
|
181
|
+
name: "help",
|
|
182
|
+
size: iconSizes.md
|
|
183
|
+
}),
|
|
184
|
+
onClose,
|
|
185
|
+
opened,
|
|
186
|
+
size: "lg",
|
|
187
|
+
title: words.import.guide.title,
|
|
188
|
+
children: /* @__PURE__ */ jsxs(Stack, {
|
|
189
|
+
gap: "md",
|
|
190
|
+
children: [
|
|
191
|
+
ILLUSTRATED_SECTIONS.map((section) => {
|
|
192
|
+
const sides = suppliedSides(section.sides, pictures);
|
|
193
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
194
|
+
gap: "xs",
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ jsx(Text, {
|
|
197
|
+
variant: "section-label",
|
|
198
|
+
children: words.import.guide[`${section.key}Title`]
|
|
199
|
+
}),
|
|
200
|
+
sides.length === 0 ? null : /* @__PURE__ */ jsx(Box, {
|
|
201
|
+
className: "mtya-routing-guide-pair",
|
|
202
|
+
children: sides.map((side) => /* @__PURE__ */ jsxs("div", {
|
|
203
|
+
className: "mtya-routing-guide-frame",
|
|
204
|
+
children: [/* @__PURE__ */ jsx(Image, {
|
|
205
|
+
alt: words.import.guide.comparison[`${side.name}Alt`],
|
|
206
|
+
className: "mtya-routing-guide-comparison",
|
|
207
|
+
radius: "md",
|
|
208
|
+
src: side.src
|
|
209
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
210
|
+
className: "mtya-routing-guide-caption",
|
|
211
|
+
size: "xs",
|
|
212
|
+
children: words.import.guide.comparison[`${side.name}Caption`]
|
|
213
|
+
})]
|
|
214
|
+
}, side.name))
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ jsx(Text, {
|
|
217
|
+
c: "dimmed",
|
|
218
|
+
size: "xs",
|
|
219
|
+
children: words.import.guide[`${section.key}Body`]
|
|
220
|
+
})
|
|
221
|
+
]
|
|
222
|
+
}, section.key);
|
|
223
|
+
}),
|
|
224
|
+
TEXT_SECTIONS.map((key) => /* @__PURE__ */ jsxs(Stack, {
|
|
225
|
+
gap: "xxs",
|
|
226
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
227
|
+
variant: "section-label",
|
|
228
|
+
children: words.import.guide[`${key}Title`]
|
|
229
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
230
|
+
c: "dimmed",
|
|
231
|
+
size: "xs",
|
|
232
|
+
children: words.import.guide[`${key}Body`]
|
|
233
|
+
})]
|
|
234
|
+
}, key)),
|
|
235
|
+
matchedCount === void 0 || totalCount === void 0 ? null : /* @__PURE__ */ jsxs(Stack, {
|
|
236
|
+
gap: "xxs",
|
|
237
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
238
|
+
variant: "section-label",
|
|
239
|
+
children: words.import.guide.yourFile
|
|
240
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
241
|
+
c: "dimmed",
|
|
242
|
+
size: "xs",
|
|
243
|
+
children: words.import.guide.yourFileMatched(matchedCount, totalCount)
|
|
244
|
+
})]
|
|
245
|
+
})
|
|
246
|
+
]
|
|
247
|
+
})
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
const noPictures = {};
|
|
251
|
+
const SEEN = "1";
|
|
252
|
+
const ImportRoutingGuideContext = createContext({ open: () => {} });
|
|
253
|
+
const useImportRoutingGuide = () => use(ImportRoutingGuideContext);
|
|
254
|
+
const ImportRoutingGuideProvider = ({ children, pictures }) => {
|
|
255
|
+
const [opened, { close, open }] = useDisclosure(false);
|
|
256
|
+
const storage = useStudioStorage();
|
|
257
|
+
const { importOpen, matchedCount, totalCount } = useUiStoreShallow((state) => {
|
|
258
|
+
const segments = selectImportSession(state)?.draft?.segments ?? EMPTY_SEGMENTS;
|
|
259
|
+
return {
|
|
260
|
+
importOpen: state.openContent === "import",
|
|
261
|
+
matchedCount: importSegmentCounts(segments).routable,
|
|
262
|
+
totalCount: segments.length
|
|
263
|
+
};
|
|
264
|
+
});
|
|
265
|
+
useEffect(() => {
|
|
266
|
+
if (!importOpen || storage.read("import.routingGuideSeen") === SEEN) return;
|
|
267
|
+
storage.write("import.routingGuideSeen", SEEN);
|
|
268
|
+
open();
|
|
269
|
+
}, [
|
|
270
|
+
importOpen,
|
|
271
|
+
open,
|
|
272
|
+
storage
|
|
273
|
+
]);
|
|
274
|
+
const controls = useMemo(() => ({ open }), [open]);
|
|
275
|
+
return /* @__PURE__ */ jsxs(ImportRoutingGuideContext, {
|
|
276
|
+
value: controls,
|
|
277
|
+
children: [children, /* @__PURE__ */ jsx(ImportRoutingGuideModal, {
|
|
278
|
+
matchedCount: totalCount > 0 ? matchedCount : void 0,
|
|
279
|
+
onClose: close,
|
|
280
|
+
opened,
|
|
281
|
+
pictures,
|
|
282
|
+
totalCount: totalCount > 0 ? totalCount : void 0
|
|
283
|
+
})]
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
const showsFocus = (element) => element?.matches(":focus-visible") ?? false;
|
|
287
|
+
const SECTIONS$9 = ["actions", "itineraryForm"];
|
|
288
|
+
const CAPABILITIES = [
|
|
289
|
+
{
|
|
290
|
+
glyph: "routed",
|
|
291
|
+
key: "routing",
|
|
292
|
+
supported: (activity) => activity.capabilities.directions
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
glyph: "action-draw",
|
|
296
|
+
key: "freeline",
|
|
297
|
+
supported: (activity) => activity.capabilities.linestring
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
glyph: REACHABILITY_GLYPH,
|
|
301
|
+
key: "zone",
|
|
302
|
+
supported: (activity) => activity.capabilities.directions
|
|
303
|
+
}
|
|
304
|
+
];
|
|
305
|
+
const supportedTint = { color: "var(--mantine-color-teal-6)" };
|
|
306
|
+
const unavailableTint = { color: "var(--mantine-color-dimmed)" };
|
|
307
|
+
const CapabilityMark = ({ hint, supported }) => /* @__PURE__ */ jsx("span", {
|
|
308
|
+
className: "mtya-activity-guide-mark",
|
|
309
|
+
children: supported ? /* @__PURE__ */ jsx(Glyph$1, {
|
|
310
|
+
label: hint,
|
|
311
|
+
name: "check",
|
|
312
|
+
size: iconSizes.sm,
|
|
313
|
+
style: supportedTint
|
|
314
|
+
}) : /* @__PURE__ */ jsx(Glyph$1, {
|
|
315
|
+
label: hint,
|
|
316
|
+
name: "unavailable",
|
|
317
|
+
size: iconSizes.sm,
|
|
318
|
+
style: unavailableTint
|
|
319
|
+
})
|
|
320
|
+
});
|
|
321
|
+
const activityLine = (bank, slug) => bank[slug] ?? "";
|
|
322
|
+
const nameControlStyle = { cursor: "inherit" };
|
|
323
|
+
const ActivityGuideRow = memo(function ActivityGuideRow({ activity, name, selected }) {
|
|
324
|
+
const words = useStudioScopedStrings(SECTIONS$9);
|
|
325
|
+
const detail = activityLine(words.itineraryForm.activityGuide.detail, activity.slug);
|
|
326
|
+
const detailId = useId();
|
|
327
|
+
const { hovered, ref } = useHover();
|
|
328
|
+
const [focused, setFocused] = useState(false);
|
|
329
|
+
return /* @__PURE__ */ jsx(Tooltip, {
|
|
330
|
+
label: /* @__PURE__ */ jsxs(Stack, {
|
|
331
|
+
gap: "xxs",
|
|
332
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
333
|
+
fw: 600,
|
|
334
|
+
size: "xs",
|
|
335
|
+
children: name
|
|
336
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
337
|
+
c: "dimmed",
|
|
338
|
+
size: "xs",
|
|
339
|
+
children: detail
|
|
340
|
+
})]
|
|
341
|
+
}),
|
|
342
|
+
opened: hovered || focused,
|
|
343
|
+
position: "top",
|
|
344
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
345
|
+
className: "mtya-activity-guide-row",
|
|
346
|
+
"data-selected": selected || void 0,
|
|
347
|
+
ref,
|
|
348
|
+
children: [
|
|
349
|
+
/* @__PURE__ */ jsxs(UnstyledButton, {
|
|
350
|
+
"aria-describedby": detailId,
|
|
351
|
+
className: "mtya-activity-guide-name",
|
|
352
|
+
onBlur: () => setFocused(false),
|
|
353
|
+
onFocus: (event) => setFocused(showsFocus(event.currentTarget)),
|
|
354
|
+
style: nameControlStyle,
|
|
355
|
+
children: [/* @__PURE__ */ jsx(ActivityIcon, {
|
|
356
|
+
size: "1.5rem",
|
|
357
|
+
slug: activity.slug
|
|
358
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
359
|
+
fw: 500,
|
|
360
|
+
size: "sm",
|
|
361
|
+
children: name
|
|
362
|
+
})]
|
|
363
|
+
}),
|
|
364
|
+
/* @__PURE__ */ jsx(VisuallyHidden, {
|
|
365
|
+
id: detailId,
|
|
366
|
+
children: detail
|
|
367
|
+
}),
|
|
368
|
+
/* @__PURE__ */ jsx(Text, {
|
|
369
|
+
c: "dimmed",
|
|
370
|
+
className: "mtya-activity-guide-description",
|
|
371
|
+
size: "xs",
|
|
372
|
+
children: activityLine(words.itineraryForm.activityGuide.activity, activity.slug)
|
|
373
|
+
}),
|
|
374
|
+
CAPABILITIES.map(({ key, supported }) => {
|
|
375
|
+
const has = supported(activity);
|
|
376
|
+
return /* @__PURE__ */ jsx(CapabilityMark, {
|
|
377
|
+
hint: has ? words.itineraryForm.capability[key].supported : words.itineraryForm.capability[key].unsupported,
|
|
378
|
+
supported: has
|
|
379
|
+
}, key);
|
|
380
|
+
})
|
|
381
|
+
]
|
|
382
|
+
})
|
|
383
|
+
});
|
|
384
|
+
});
|
|
385
|
+
const ActivityGuideTable = ({ categories, language, selectedActivityId }) => {
|
|
386
|
+
const words = useStudioScopedStrings(SECTIONS$9);
|
|
387
|
+
const nameOf = (activity) => localizedName(activity, language);
|
|
388
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
389
|
+
className: "mtya-activity-guide-head",
|
|
390
|
+
children: [
|
|
391
|
+
/* @__PURE__ */ jsx("span", {}),
|
|
392
|
+
/* @__PURE__ */ jsx("span", {}),
|
|
393
|
+
CAPABILITIES.map(({ glyph, key }) => /* @__PURE__ */ jsxs("div", {
|
|
394
|
+
className: "mtya-activity-guide-head-mark",
|
|
395
|
+
children: [
|
|
396
|
+
/* @__PURE__ */ jsx(Glyph$1, {
|
|
397
|
+
name: glyph,
|
|
398
|
+
size: iconSizes.sm
|
|
399
|
+
}),
|
|
400
|
+
/* @__PURE__ */ jsx(Text, {
|
|
401
|
+
className: "mtya-activity-guide-head-label",
|
|
402
|
+
children: words.itineraryForm.capability[key].label
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ jsx(Text, {
|
|
405
|
+
className: "mtya-activity-guide-head-gloss",
|
|
406
|
+
children: words.itineraryForm.capability[key].gloss
|
|
407
|
+
})
|
|
408
|
+
]
|
|
409
|
+
}, key))
|
|
410
|
+
]
|
|
411
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
412
|
+
className: "mtya-activity-guide-body",
|
|
413
|
+
children: categories.map((category) => {
|
|
414
|
+
if (category.children.length === 0) return null;
|
|
415
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Text, {
|
|
416
|
+
className: "mtya-activity-guide-group",
|
|
417
|
+
variant: "section-label",
|
|
418
|
+
children: localizedName(category, language)
|
|
419
|
+
}), category.children.map((activity) => /* @__PURE__ */ jsx(ActivityGuideRow, {
|
|
420
|
+
activity,
|
|
421
|
+
name: nameOf(activity),
|
|
422
|
+
selected: activity.id === selectedActivityId
|
|
423
|
+
}, activity.id))] }, category.id);
|
|
424
|
+
})
|
|
425
|
+
})] });
|
|
426
|
+
};
|
|
427
|
+
const ACTIVITY_GUIDE_WIDTH = "52.5rem";
|
|
428
|
+
const ActivityGuideModal = ({ categories, language, onClose, opened, selectedActivityId }) => {
|
|
429
|
+
const words = useStudioScopedStrings(SECTIONS$9);
|
|
430
|
+
return /* @__PURE__ */ jsx(AppModal, {
|
|
431
|
+
closeLabel: words.actions.close,
|
|
432
|
+
description: words.itineraryForm.activityGuide.description,
|
|
433
|
+
icon: /* @__PURE__ */ jsx(Glyph$1, {
|
|
434
|
+
name: "guide",
|
|
435
|
+
size: iconSizes.md
|
|
436
|
+
}),
|
|
437
|
+
onClose,
|
|
438
|
+
opened,
|
|
439
|
+
size: ACTIVITY_GUIDE_WIDTH,
|
|
440
|
+
title: words.itineraryForm.activityGuide.title,
|
|
441
|
+
children: /* @__PURE__ */ jsx(ActivityGuideTable, {
|
|
442
|
+
categories,
|
|
443
|
+
language,
|
|
444
|
+
selectedActivityId
|
|
445
|
+
})
|
|
446
|
+
});
|
|
447
|
+
};
|
|
448
|
+
const ActivityGuideContext = createContext({
|
|
449
|
+
open: () => {},
|
|
450
|
+
openFor: () => {}
|
|
451
|
+
});
|
|
452
|
+
const useActivityGuide = () => use(ActivityGuideContext);
|
|
453
|
+
const ActivityGuideProvider = ({ children }) => {
|
|
454
|
+
const language = useMountayaLanguage();
|
|
455
|
+
const [opened, { close, open: show }] = useDisclosure(false);
|
|
456
|
+
const [stated, setStated] = useState(null);
|
|
457
|
+
const categories = useStudioActivities();
|
|
458
|
+
const itineraryActivityId = useUiStore((state) => state.activeItinerary?.activity_id ?? null);
|
|
459
|
+
const draftActivityId = useUiStore((state) => selectActiveDraftSession(state)?.draft?.activityId ?? null);
|
|
460
|
+
const controls = useMemo(() => ({
|
|
461
|
+
open: () => {
|
|
462
|
+
setStated(null);
|
|
463
|
+
show();
|
|
464
|
+
},
|
|
465
|
+
openFor: (activityId) => {
|
|
466
|
+
setStated({ activityId });
|
|
467
|
+
show();
|
|
468
|
+
}
|
|
469
|
+
}), [show]);
|
|
470
|
+
return /* @__PURE__ */ jsxs(ActivityGuideContext, {
|
|
471
|
+
value: controls,
|
|
472
|
+
children: [children, /* @__PURE__ */ jsx(ActivityGuideModal, {
|
|
473
|
+
categories,
|
|
474
|
+
language,
|
|
475
|
+
onClose: close,
|
|
476
|
+
opened,
|
|
477
|
+
selectedActivityId: stated === null ? itineraryActivityId ?? draftActivityId : stated.activityId
|
|
478
|
+
})]
|
|
479
|
+
});
|
|
480
|
+
};
|
|
481
|
+
const DisabledMenuItem = ({ color, icon, label, reason }) => /* @__PURE__ */ jsx(Tooltip, {
|
|
482
|
+
label: reason,
|
|
483
|
+
withinPortal: true,
|
|
484
|
+
children: /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Menu.Item, {
|
|
485
|
+
color,
|
|
486
|
+
disabled: true,
|
|
487
|
+
fz: "xs",
|
|
488
|
+
leftSection: icon,
|
|
489
|
+
children: [label, /* @__PURE__ */ jsx(DisabledReason, { children: reason })]
|
|
490
|
+
}) })
|
|
491
|
+
});
|
|
492
|
+
const SECTIONS$8 = ["agentLock"];
|
|
493
|
+
const PluginMenuItems = ({ items }) => {
|
|
494
|
+
const words = useStudioScopedStrings(SECTIONS$8);
|
|
495
|
+
return /* @__PURE__ */ jsx(PluginSlotItems, {
|
|
496
|
+
items,
|
|
497
|
+
renderAction: (item) => item.disabled ? /* @__PURE__ */ jsx(DisabledMenuItem, {
|
|
498
|
+
color: item.entry.destructive ? "red" : void 0,
|
|
499
|
+
icon: item.entry.icon,
|
|
500
|
+
label: item.label,
|
|
501
|
+
reason: words.agentLock.rowLocked
|
|
502
|
+
}) : /* @__PURE__ */ jsx(Menu.Item, {
|
|
503
|
+
color: item.entry.destructive ? "red" : void 0,
|
|
504
|
+
fz: "xs",
|
|
505
|
+
leftSection: item.entry.icon,
|
|
506
|
+
onClick: item.run,
|
|
507
|
+
children: item.label
|
|
508
|
+
})
|
|
509
|
+
});
|
|
510
|
+
};
|
|
511
|
+
const StudioFormStack = ({ children, ...props }) => /* @__PURE__ */ jsx(MantineThemeProvider, {
|
|
512
|
+
theme: densityThemes[useStudioDensity()].form,
|
|
513
|
+
children: /* @__PURE__ */ jsx(Stack, {
|
|
514
|
+
gap: "md",
|
|
515
|
+
...props,
|
|
516
|
+
children
|
|
517
|
+
})
|
|
518
|
+
});
|
|
519
|
+
const SECTIONS$7 = ["itineraryForm"];
|
|
520
|
+
const ActivitySelect = ({ capability, categories, language, locked, onChange, value }) => {
|
|
521
|
+
const words = useStudioScopedStrings(SECTIONS$7);
|
|
522
|
+
const selectId = useId();
|
|
523
|
+
const { openFor: openGuideFor } = useActivityGuide();
|
|
524
|
+
const agentDriving = useAgentDriving();
|
|
525
|
+
const data = useMemo(() => categories.map((category) => ({
|
|
526
|
+
group: localizedName(category, language),
|
|
527
|
+
items: category.children.filter((activity) => capability === void 0 || activity.capabilities[capability]).map((activity) => ({
|
|
528
|
+
label: localizedName(activity, language),
|
|
529
|
+
value: activity.id
|
|
530
|
+
}))
|
|
531
|
+
})).filter((group) => group.items.length > 0), [
|
|
532
|
+
capability,
|
|
533
|
+
categories,
|
|
534
|
+
language
|
|
535
|
+
]);
|
|
536
|
+
const slugById = useMemo(() => {
|
|
537
|
+
const map = /* @__PURE__ */ new Map();
|
|
538
|
+
for (const category of categories) for (const activity of category.children) map.set(activity.id, activity.slug);
|
|
539
|
+
return map;
|
|
540
|
+
}, [categories]);
|
|
541
|
+
const selectedSlug = value === null ? void 0 : slugById.get(value);
|
|
542
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
543
|
+
gap: "6px",
|
|
544
|
+
children: [/* @__PURE__ */ jsxs(Group, {
|
|
545
|
+
align: "center",
|
|
546
|
+
justify: "space-between",
|
|
547
|
+
wrap: "nowrap",
|
|
548
|
+
children: [/* @__PURE__ */ jsx(FieldLabel, {
|
|
549
|
+
htmlFor: selectId,
|
|
550
|
+
required: true,
|
|
551
|
+
children: words.itineraryForm.activityLabel
|
|
552
|
+
}), /* @__PURE__ */ jsx(Anchor, {
|
|
553
|
+
c: agentDriving ? "dimmed" : void 0,
|
|
554
|
+
component: "button",
|
|
555
|
+
disabled: agentDriving,
|
|
556
|
+
onClick: () => openGuideFor(value),
|
|
557
|
+
size: "xs",
|
|
558
|
+
type: "button",
|
|
559
|
+
children: /* @__PURE__ */ jsxs(Group, {
|
|
560
|
+
component: "span",
|
|
561
|
+
gap: "xxs",
|
|
562
|
+
wrap: "nowrap",
|
|
563
|
+
children: [/* @__PURE__ */ jsx(Glyph$1, {
|
|
564
|
+
name: "guide",
|
|
565
|
+
size: iconSizes.xs
|
|
566
|
+
}), words.itineraryForm.activityGuide.trigger]
|
|
567
|
+
})
|
|
568
|
+
})]
|
|
569
|
+
}), /* @__PURE__ */ jsx(Select, {
|
|
570
|
+
allowDeselect: false,
|
|
571
|
+
data,
|
|
572
|
+
disabled: locked,
|
|
573
|
+
id: selectId,
|
|
574
|
+
leftSection: selectedSlug ? /* @__PURE__ */ jsx(ActivityIcon, {
|
|
575
|
+
size: "1.5rem",
|
|
576
|
+
slug: selectedSlug
|
|
577
|
+
}) : void 0,
|
|
578
|
+
onChange,
|
|
579
|
+
placeholder: words.itineraryForm.activityPlaceholder,
|
|
580
|
+
renderOption: ({ option }) => {
|
|
581
|
+
const slug = slugById.get(option.value);
|
|
582
|
+
if (!slug) return /* @__PURE__ */ jsx(Text, {
|
|
583
|
+
inherit: true,
|
|
584
|
+
children: option.label
|
|
585
|
+
});
|
|
586
|
+
return /* @__PURE__ */ jsxs(Group, { children: [/* @__PURE__ */ jsx(ActivityIcon, {
|
|
587
|
+
size: "1.5rem",
|
|
588
|
+
slug
|
|
589
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
590
|
+
inherit: true,
|
|
591
|
+
children: option.label
|
|
592
|
+
})] });
|
|
593
|
+
},
|
|
594
|
+
required: true,
|
|
595
|
+
rightSection: locked ? /* @__PURE__ */ jsx(Tooltip, {
|
|
596
|
+
label: words.itineraryForm.activityLocked,
|
|
597
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
598
|
+
"aria-label": words.itineraryForm.activityLocked,
|
|
599
|
+
role: "img",
|
|
600
|
+
children: /* @__PURE__ */ jsx(Glyph$1, {
|
|
601
|
+
name: "locked",
|
|
602
|
+
size: iconSizes.xs
|
|
603
|
+
})
|
|
604
|
+
})
|
|
605
|
+
}) : void 0,
|
|
606
|
+
value
|
|
607
|
+
})]
|
|
608
|
+
});
|
|
609
|
+
};
|
|
610
|
+
const RenameInput = ({ ariaLabel, details, errorMessage, fw, gap = 0, onBlur, onChange, onKeyDown, size = "xs", value }) => {
|
|
611
|
+
const inputRef = useRef(null);
|
|
612
|
+
useEffect(() => {
|
|
613
|
+
const timer = setTimeout(() => {
|
|
614
|
+
inputRef.current?.focus();
|
|
615
|
+
inputRef.current?.select();
|
|
616
|
+
});
|
|
617
|
+
return () => clearTimeout(timer);
|
|
618
|
+
}, []);
|
|
619
|
+
const invalid = !displayNameSchema.safeParse(value).success;
|
|
620
|
+
const reasonId = useId();
|
|
621
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
622
|
+
__vars: {
|
|
623
|
+
"--mtya-rename-fw": fw === void 0 ? "inherit" : String(fw),
|
|
624
|
+
"--mtya-rename-fz": `var(--mantine-font-size-${size})`,
|
|
625
|
+
"--mtya-rename-lh": `var(--mantine-line-height-${size})`
|
|
626
|
+
},
|
|
627
|
+
className: "mtya-rename-column",
|
|
628
|
+
gap,
|
|
629
|
+
children: [/* @__PURE__ */ jsx(TextInput, {
|
|
630
|
+
"aria-errormessage": invalid ? reasonId : void 0,
|
|
631
|
+
"aria-label": ariaLabel,
|
|
632
|
+
classNames: {
|
|
633
|
+
input: "mtya-rename-input",
|
|
634
|
+
root: "mtya-rename-root"
|
|
635
|
+
},
|
|
636
|
+
error: invalid,
|
|
637
|
+
mb: 0,
|
|
638
|
+
mt: 0,
|
|
639
|
+
onBlur,
|
|
640
|
+
onChange,
|
|
641
|
+
onKeyDown,
|
|
642
|
+
ref: inputRef,
|
|
643
|
+
value,
|
|
644
|
+
variant: "unstyled",
|
|
645
|
+
withErrorStyles: false
|
|
646
|
+
}), invalid ? /* @__PURE__ */ jsx(Text, {
|
|
647
|
+
c: "red",
|
|
648
|
+
id: reasonId,
|
|
649
|
+
size: "xs",
|
|
650
|
+
children: errorMessage
|
|
651
|
+
}) : details]
|
|
652
|
+
});
|
|
653
|
+
};
|
|
654
|
+
const SegmentIcon = ({ color, glyph, label }) => /* @__PURE__ */ jsx(Tooltip, {
|
|
655
|
+
label,
|
|
656
|
+
position: "bottom",
|
|
657
|
+
children: /* @__PURE__ */ jsxs(Center, { children: [/* @__PURE__ */ jsx(Glyph$1, {
|
|
658
|
+
name: glyph,
|
|
659
|
+
size: iconSizes.sm,
|
|
660
|
+
style: color === void 0 ? void 0 : { color }
|
|
661
|
+
}), /* @__PURE__ */ jsx(VisuallyHidden, { children: label })] })
|
|
662
|
+
});
|
|
663
|
+
const anchorStyle = {
|
|
664
|
+
inset: 0,
|
|
665
|
+
pointerEvents: "none"
|
|
666
|
+
};
|
|
667
|
+
const DROPDOWN_MARKER = "data-segment-row-popover";
|
|
668
|
+
const SegmentRowPopover = ({ children, dropdown, label, onCancel, onDismiss, opened }) => {
|
|
669
|
+
const dismissRef = useLatestRef(onDismiss);
|
|
670
|
+
const cancelRef = useLatestRef(onCancel);
|
|
671
|
+
const endedRef = useRef(false);
|
|
672
|
+
const end = useCallback((action) => {
|
|
673
|
+
if (endedRef.current) return;
|
|
674
|
+
endedRef.current = true;
|
|
675
|
+
action();
|
|
676
|
+
}, []);
|
|
677
|
+
const wasOpenRef = useRef(opened);
|
|
678
|
+
if (opened !== wasOpenRef.current) {
|
|
679
|
+
wasOpenRef.current = opened;
|
|
680
|
+
if (opened) endedRef.current = false;
|
|
681
|
+
}
|
|
682
|
+
useEscapeKey(() => end(cancelRef.current), opened);
|
|
683
|
+
useEffect(() => {
|
|
684
|
+
if (!opened) return;
|
|
685
|
+
const onPointerDown = (event) => {
|
|
686
|
+
if (!event.composedPath().some((node) => node instanceof Element && node.hasAttribute(DROPDOWN_MARKER))) end(dismissRef.current);
|
|
687
|
+
};
|
|
688
|
+
document.addEventListener("pointerdown", onPointerDown, true);
|
|
689
|
+
return () => {
|
|
690
|
+
document.removeEventListener("pointerdown", onPointerDown, true);
|
|
691
|
+
};
|
|
692
|
+
}, [
|
|
693
|
+
dismissRef,
|
|
694
|
+
end,
|
|
695
|
+
opened
|
|
696
|
+
]);
|
|
697
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
698
|
+
pos: "relative",
|
|
699
|
+
children: [/* @__PURE__ */ jsxs(Popover, {
|
|
700
|
+
closeOnClickOutside: false,
|
|
701
|
+
closeOnEscape: false,
|
|
702
|
+
opened,
|
|
703
|
+
position: "bottom-end",
|
|
704
|
+
returnFocus: true,
|
|
705
|
+
trapFocus: true,
|
|
706
|
+
withinPortal: true,
|
|
707
|
+
withRoles: false,
|
|
708
|
+
children: [/* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(Box, {
|
|
709
|
+
"aria-hidden": true,
|
|
710
|
+
pos: "absolute",
|
|
711
|
+
style: anchorStyle
|
|
712
|
+
}) }), /* @__PURE__ */ jsx(Popover.Dropdown, {
|
|
713
|
+
"aria-label": label,
|
|
714
|
+
"data-segment-row-popover": true,
|
|
715
|
+
role: "dialog",
|
|
716
|
+
children: dropdown
|
|
717
|
+
})]
|
|
718
|
+
}), children]
|
|
719
|
+
});
|
|
720
|
+
};
|
|
721
|
+
const SECTIONS$6 = ["segments"];
|
|
722
|
+
const SegmentModeControl = ({ children, mode, onChange, onClose, opened }) => {
|
|
723
|
+
const strings = useStudioScopedStrings(SECTIONS$6).segments;
|
|
724
|
+
const pick = (next) => {
|
|
725
|
+
onClose();
|
|
726
|
+
const engine = segmentEditModeSchema.safeParse(next);
|
|
727
|
+
if (engine.success && engine.data !== mode) onChange(engine.data);
|
|
728
|
+
};
|
|
729
|
+
return /* @__PURE__ */ jsx(SegmentRowPopover, {
|
|
730
|
+
dropdown: /* @__PURE__ */ jsxs(Stack, {
|
|
731
|
+
gap: "xs",
|
|
732
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
733
|
+
c: "dimmed",
|
|
734
|
+
fw: 500,
|
|
735
|
+
fz: "xs",
|
|
736
|
+
children: strings.engineHeading
|
|
737
|
+
}), /* @__PURE__ */ jsx(StudioSegmentedControl, {
|
|
738
|
+
data: [{
|
|
739
|
+
label: /* @__PURE__ */ jsx(Tooltip, {
|
|
740
|
+
label: strings.engineRouted,
|
|
741
|
+
children: /* @__PURE__ */ jsx(Group, {
|
|
742
|
+
justify: "center",
|
|
743
|
+
children: /* @__PURE__ */ jsx(Glyph$1, {
|
|
744
|
+
name: "routed",
|
|
745
|
+
size: iconSizes.sm
|
|
746
|
+
})
|
|
747
|
+
})
|
|
748
|
+
}),
|
|
749
|
+
value: "directions"
|
|
750
|
+
}, {
|
|
751
|
+
label: /* @__PURE__ */ jsx(Tooltip, {
|
|
752
|
+
label: strings.engineFreehand,
|
|
753
|
+
children: /* @__PURE__ */ jsx(Group, {
|
|
754
|
+
justify: "center",
|
|
755
|
+
children: /* @__PURE__ */ jsx(Glyph$1, {
|
|
756
|
+
name: "freehand",
|
|
757
|
+
size: iconSizes.sm
|
|
758
|
+
})
|
|
759
|
+
})
|
|
760
|
+
}),
|
|
761
|
+
value: "linestring"
|
|
762
|
+
}],
|
|
763
|
+
onChange: pick,
|
|
764
|
+
value: mode
|
|
765
|
+
})]
|
|
766
|
+
}),
|
|
767
|
+
label: strings.engineHeading,
|
|
768
|
+
onCancel: onClose,
|
|
769
|
+
onDismiss: onClose,
|
|
770
|
+
opened,
|
|
771
|
+
children
|
|
772
|
+
});
|
|
773
|
+
};
|
|
774
|
+
const SECTIONS$5 = ["agentLock", "segmentMenu"];
|
|
775
|
+
const verbGlyph = (action) => /* @__PURE__ */ jsx(Glyph$1, {
|
|
776
|
+
name: menuActionGlyphs[action],
|
|
777
|
+
size: iconSizes.sm
|
|
778
|
+
});
|
|
779
|
+
const triggerHiddenStyle$1 = { opacity: 0 };
|
|
780
|
+
const triggerVisibleStyle$1 = { opacity: 1 };
|
|
781
|
+
const SegmentChainBand = ({ chain, splitReason, strings }) => {
|
|
782
|
+
const offersGaps = chain.onInsertAfter !== void 0 && chain.onInsertBefore !== void 0;
|
|
783
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
784
|
+
/* @__PURE__ */ jsx(Menu.Divider, {}),
|
|
785
|
+
offersGaps ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Menu.Item, {
|
|
786
|
+
fz: "xs",
|
|
787
|
+
leftSection: verbGlyph("insertBefore"),
|
|
788
|
+
onClick: chain.onInsertBefore,
|
|
789
|
+
children: strings.menuInsertBefore
|
|
790
|
+
}), /* @__PURE__ */ jsx(Menu.Item, {
|
|
791
|
+
fz: "xs",
|
|
792
|
+
leftSection: verbGlyph("insertAfter"),
|
|
793
|
+
onClick: chain.onInsertAfter,
|
|
794
|
+
children: strings.menuInsertAfter
|
|
795
|
+
})] }) : null,
|
|
796
|
+
/* @__PURE__ */ jsxs(Menu.Sub, {
|
|
797
|
+
safeAreaPolygon: true,
|
|
798
|
+
children: [/* @__PURE__ */ jsx(Menu.Sub.Target, { children: /* @__PURE__ */ jsx(Menu.Sub.Item, {
|
|
799
|
+
fz: "xs",
|
|
800
|
+
leftSection: verbGlyph("splitMerge"),
|
|
801
|
+
children: strings.menuSplitMerge
|
|
802
|
+
}) }), /* @__PURE__ */ jsxs(Menu.Sub.Dropdown, { children: [
|
|
803
|
+
splitReason === null ? /* @__PURE__ */ jsx(Menu.Item, {
|
|
804
|
+
fz: "xs",
|
|
805
|
+
leftSection: verbGlyph("split"),
|
|
806
|
+
onClick: chain.onSplit,
|
|
807
|
+
children: strings.menuSplit
|
|
808
|
+
}) : /* @__PURE__ */ jsx(DisabledMenuItem, {
|
|
809
|
+
icon: verbGlyph("split"),
|
|
810
|
+
label: strings.menuSplit,
|
|
811
|
+
reason: splitReason
|
|
812
|
+
}),
|
|
813
|
+
chain.mergePreviousDisabledReason !== null ? /* @__PURE__ */ jsx(DisabledMenuItem, {
|
|
814
|
+
icon: verbGlyph("mergePrevious"),
|
|
815
|
+
label: strings.menuMergePrevious,
|
|
816
|
+
reason: strings[mergeDisabledHintKey[chain.mergePreviousDisabledReason]]
|
|
817
|
+
}) : /* @__PURE__ */ jsx(Menu.Item, {
|
|
818
|
+
fz: "xs",
|
|
819
|
+
leftSection: verbGlyph("mergePrevious"),
|
|
820
|
+
onClick: chain.onMergePrevious,
|
|
821
|
+
children: strings.menuMergePrevious
|
|
822
|
+
}),
|
|
823
|
+
chain.mergeNextDisabledReason !== null ? /* @__PURE__ */ jsx(DisabledMenuItem, {
|
|
824
|
+
icon: verbGlyph("mergeNext"),
|
|
825
|
+
label: strings.menuMergeNext,
|
|
826
|
+
reason: strings[mergeDisabledHintKey[chain.mergeNextDisabledReason]]
|
|
827
|
+
}) : /* @__PURE__ */ jsx(Menu.Item, {
|
|
828
|
+
fz: "xs",
|
|
829
|
+
leftSection: verbGlyph("mergeNext"),
|
|
830
|
+
onClick: chain.onMergeNext,
|
|
831
|
+
children: strings.menuMergeNext
|
|
832
|
+
})
|
|
833
|
+
] })]
|
|
834
|
+
})
|
|
835
|
+
] });
|
|
836
|
+
};
|
|
837
|
+
const SegmentGroupBand = ({ group, strings }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Menu.Divider, {}), group.grouped ? /* @__PURE__ */ jsxs(Menu.Sub, {
|
|
838
|
+
safeAreaPolygon: true,
|
|
839
|
+
children: [/* @__PURE__ */ jsx(Menu.Sub.Target, { children: /* @__PURE__ */ jsx(Menu.Sub.Item, {
|
|
840
|
+
fz: "xs",
|
|
841
|
+
leftSection: verbGlyph("group"),
|
|
842
|
+
children: strings.menuGroupSection
|
|
843
|
+
}) }), /* @__PURE__ */ jsxs(Menu.Sub.Dropdown, { children: [/* @__PURE__ */ jsx(Menu.Item, {
|
|
844
|
+
fz: "xs",
|
|
845
|
+
leftSection: verbGlyph("group"),
|
|
846
|
+
onClick: group.onEditGroup,
|
|
847
|
+
children: strings.menuEditGroup
|
|
848
|
+
}), group.removeDisabled ? /* @__PURE__ */ jsx(DisabledMenuItem, {
|
|
849
|
+
icon: verbGlyph("group"),
|
|
850
|
+
label: strings.menuRemoveFromGroup,
|
|
851
|
+
reason: strings.removeDisabledHint
|
|
852
|
+
}) : group.removeDissolves ? /* @__PURE__ */ jsx(Tooltip, {
|
|
853
|
+
label: strings.ungroupHint,
|
|
854
|
+
withinPortal: true,
|
|
855
|
+
children: /* @__PURE__ */ jsx(Menu.Item, {
|
|
856
|
+
fz: "xs",
|
|
857
|
+
leftSection: verbGlyph("group"),
|
|
858
|
+
onClick: group.onRemoveFromGroup,
|
|
859
|
+
children: strings.ungroup
|
|
860
|
+
})
|
|
861
|
+
}) : /* @__PURE__ */ jsx(Menu.Item, {
|
|
862
|
+
fz: "xs",
|
|
863
|
+
leftSection: verbGlyph("group"),
|
|
864
|
+
onClick: group.onRemoveFromGroup,
|
|
865
|
+
children: strings.menuRemoveFromGroup
|
|
866
|
+
})] })]
|
|
867
|
+
}) : group.groupDisabled ? /* @__PURE__ */ jsx(DisabledMenuItem, {
|
|
868
|
+
icon: verbGlyph("group"),
|
|
869
|
+
label: strings.menuGroup,
|
|
870
|
+
reason: strings.groupDisabledHint
|
|
871
|
+
}) : /* @__PURE__ */ jsx(Menu.Item, {
|
|
872
|
+
fz: "xs",
|
|
873
|
+
leftSection: verbGlyph("group"),
|
|
874
|
+
onClick: group.onGroup,
|
|
875
|
+
children: strings.menuGroup
|
|
876
|
+
})] });
|
|
877
|
+
const SegmentRowMenu = memo(function SegmentRowMenu({ chain, deleteDisabled, group, onDelete, onEditGeometry, onExport, onToggle, onRename, onSetSpeed, pluginTarget, triggerVisible }) {
|
|
878
|
+
const strings = useStudioScopedStrings(SECTIONS$5).segmentMenu;
|
|
879
|
+
const pluginItems = usePluginSlot("segment.menu", pluginTarget ?? null);
|
|
880
|
+
const splitReason = chain?.splitDisabledReason ? strings[splitDisabledHintKey[chain.splitDisabledReason]] : null;
|
|
881
|
+
return /* @__PURE__ */ jsxs(Menu, {
|
|
882
|
+
onChange: onToggle,
|
|
883
|
+
position: "bottom-end",
|
|
884
|
+
withinPortal: true,
|
|
885
|
+
children: [/* @__PURE__ */ jsx(Menu.Target, { children: /* @__PURE__ */ jsx(ActionIcon, {
|
|
886
|
+
"aria-label": strings.menuLabel,
|
|
887
|
+
className: "mtya-menu-trigger",
|
|
888
|
+
style: triggerVisible ? triggerVisibleStyle$1 : triggerHiddenStyle$1,
|
|
889
|
+
variant: "subtle",
|
|
890
|
+
children: /* @__PURE__ */ jsx(Glyph$1, {
|
|
891
|
+
name: "more",
|
|
892
|
+
size: iconSizes.sm
|
|
893
|
+
})
|
|
894
|
+
}) }), /* @__PURE__ */ jsxs(Menu.Dropdown, { children: [
|
|
895
|
+
/* @__PURE__ */ jsx(Menu.Item, {
|
|
896
|
+
fz: "xs",
|
|
897
|
+
leftSection: verbGlyph("rename"),
|
|
898
|
+
onClick: onRename,
|
|
899
|
+
children: strings.menuRename
|
|
900
|
+
}),
|
|
901
|
+
/* @__PURE__ */ jsx(Menu.Item, {
|
|
902
|
+
fz: "xs",
|
|
903
|
+
leftSection: verbGlyph("edit"),
|
|
904
|
+
onClick: onEditGeometry,
|
|
905
|
+
children: strings.menuEdit
|
|
906
|
+
}),
|
|
907
|
+
/* @__PURE__ */ jsx(Menu.Item, {
|
|
908
|
+
fz: "xs",
|
|
909
|
+
leftSection: verbGlyph("setSpeed"),
|
|
910
|
+
onClick: onSetSpeed,
|
|
911
|
+
children: strings.menuSetSpeed
|
|
912
|
+
}),
|
|
913
|
+
chain ? /* @__PURE__ */ jsx(Menu.Item, {
|
|
914
|
+
fz: "xs",
|
|
915
|
+
leftSection: verbGlyph("engine"),
|
|
916
|
+
onClick: chain.onChangeEngine,
|
|
917
|
+
children: strings.menuChangeEngine
|
|
918
|
+
}) : null,
|
|
919
|
+
chain ? /* @__PURE__ */ jsx(SegmentChainBand, {
|
|
920
|
+
chain,
|
|
921
|
+
splitReason,
|
|
922
|
+
strings
|
|
923
|
+
}) : null,
|
|
924
|
+
group ? /* @__PURE__ */ jsx(SegmentGroupBand, {
|
|
925
|
+
group,
|
|
926
|
+
strings
|
|
927
|
+
}) : null,
|
|
928
|
+
onExport ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Menu.Divider, {}), /* @__PURE__ */ jsx(Menu.Item, {
|
|
929
|
+
fz: "xs",
|
|
930
|
+
leftSection: verbGlyph("export"),
|
|
931
|
+
onClick: onExport,
|
|
932
|
+
children: strings.menuExport
|
|
933
|
+
})] }) : null,
|
|
934
|
+
/* @__PURE__ */ jsx(PluginMenuItems, { items: pluginItems }),
|
|
935
|
+
/* @__PURE__ */ jsx(Menu.Divider, {}),
|
|
936
|
+
deleteDisabled ? /* @__PURE__ */ jsx(DisabledMenuItem, {
|
|
937
|
+
color: "red",
|
|
938
|
+
icon: verbGlyph("delete"),
|
|
939
|
+
label: strings.menuDelete,
|
|
940
|
+
reason: strings.deleteDisabledHint
|
|
941
|
+
}) : /* @__PURE__ */ jsx(Menu.Item, {
|
|
942
|
+
color: "red",
|
|
943
|
+
fz: "xs",
|
|
944
|
+
leftSection: verbGlyph("delete"),
|
|
945
|
+
onClick: onDelete,
|
|
946
|
+
children: strings.menuDelete
|
|
947
|
+
})
|
|
948
|
+
] })]
|
|
949
|
+
});
|
|
950
|
+
});
|
|
951
|
+
const SECTIONS$4 = ["segments"];
|
|
952
|
+
const formatDurationHint = (totalSeconds, hoursLabel, minutesLabel) => {
|
|
953
|
+
const split = splitDuration(totalSeconds);
|
|
954
|
+
if (split === null || split.hours === 0 && split.minutes === 0) return null;
|
|
955
|
+
const { hours, minutes } = split;
|
|
956
|
+
if (hours > 0) return minutes === 0 ? hoursLabel(hours) : `${hoursLabel(hours)} ${minutesLabel(minutes)}`;
|
|
957
|
+
return minutesLabel(minutes);
|
|
958
|
+
};
|
|
959
|
+
const SegmentSpeedControl = ({ activityDefaultSpeed, children, distanceMeters, durationSeconds = null, onChange, onClose, opened, speed, units }) => {
|
|
960
|
+
const strings = useStudioScopedStrings(SECTIONS$4).segments;
|
|
961
|
+
const studioUnits = useStudioUnits();
|
|
962
|
+
const resolvedUnits = units ?? studioUnits;
|
|
963
|
+
const speedUnit = speedUnitFor(resolvedUnits.length, resolvedUnits.pace);
|
|
964
|
+
const label = useSpeedControlLabel(resolvedUnits.length, resolvedUnits.pace);
|
|
965
|
+
const [draft, setDraft] = useState(speed);
|
|
966
|
+
const openSpeedRef = useRef(speed);
|
|
967
|
+
const committedRef = useRef(false);
|
|
968
|
+
const [wasOpen, setWasOpen] = useState(opened);
|
|
969
|
+
if (opened !== wasOpen) {
|
|
970
|
+
setWasOpen(opened);
|
|
971
|
+
if (opened) {
|
|
972
|
+
setDraft(speed);
|
|
973
|
+
openSpeedRef.current = speed;
|
|
974
|
+
committedRef.current = false;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
const enteredKmh = draft ?? activityDefaultSpeed;
|
|
978
|
+
const hintSeconds = durationForSpeed({
|
|
979
|
+
baseDurationSeconds: durationSeconds,
|
|
980
|
+
baseSpeedKmh: resolveSpeedKmh(speed, activityDefaultSpeed),
|
|
981
|
+
distanceMeters,
|
|
982
|
+
targetSpeedKmh: enteredKmh
|
|
983
|
+
});
|
|
984
|
+
const durationHint = formatDurationHint(hintSeconds, (count) => strings.durationHours(count), (count) => strings.durationMinutes(count));
|
|
985
|
+
const speedKey = (kmh) => {
|
|
986
|
+
if (kmh === null) return null;
|
|
987
|
+
const display = kilometersPerHourToDisplay(kmh, speedUnit);
|
|
988
|
+
if (display === null) return null;
|
|
989
|
+
const steps = isPaceUnit(speedUnit) ? SECONDS_PER_MINUTE : 10;
|
|
990
|
+
return Math.round(display * steps) / steps;
|
|
991
|
+
};
|
|
992
|
+
const commitAndClose = (next) => {
|
|
993
|
+
if (committedRef.current) return;
|
|
994
|
+
committedRef.current = true;
|
|
995
|
+
if (speedKey(next) !== speedKey(openSpeedRef.current)) onChange(next);
|
|
996
|
+
onClose();
|
|
997
|
+
};
|
|
998
|
+
const cancelAndClose = () => {
|
|
999
|
+
if (committedRef.current) return;
|
|
1000
|
+
committedRef.current = true;
|
|
1001
|
+
setDraft(openSpeedRef.current);
|
|
1002
|
+
onClose();
|
|
1003
|
+
};
|
|
1004
|
+
const useDefault = () => commitAndClose(null);
|
|
1005
|
+
return /* @__PURE__ */ jsx(SegmentRowPopover, {
|
|
1006
|
+
dropdown: /* @__PURE__ */ jsxs(Stack, { children: [
|
|
1007
|
+
/* @__PURE__ */ jsx(SpeedInput, {
|
|
1008
|
+
defaultSpeedKmh: activityDefaultSpeed,
|
|
1009
|
+
kmh: draft,
|
|
1010
|
+
length: resolvedUnits.length,
|
|
1011
|
+
onChange: setDraft,
|
|
1012
|
+
pace: resolvedUnits.pace
|
|
1013
|
+
}),
|
|
1014
|
+
durationHint ? /* @__PURE__ */ jsx(Text, {
|
|
1015
|
+
c: "dimmed",
|
|
1016
|
+
size: "xs",
|
|
1017
|
+
children: strings.durationHint(durationHint)
|
|
1018
|
+
}) : null,
|
|
1019
|
+
/* @__PURE__ */ jsx(Button, {
|
|
1020
|
+
onClick: () => commitAndClose(draft),
|
|
1021
|
+
children: strings.speedSet
|
|
1022
|
+
}),
|
|
1023
|
+
/* @__PURE__ */ jsx(Button, {
|
|
1024
|
+
onClick: useDefault,
|
|
1025
|
+
variant: "subtle",
|
|
1026
|
+
children: strings.speedUseDefault
|
|
1027
|
+
})
|
|
1028
|
+
] }),
|
|
1029
|
+
label,
|
|
1030
|
+
onCancel: cancelAndClose,
|
|
1031
|
+
onDismiss: () => commitAndClose(draft),
|
|
1032
|
+
opened,
|
|
1033
|
+
children
|
|
1034
|
+
});
|
|
1035
|
+
};
|
|
1036
|
+
const SECTIONS$3 = [
|
|
1037
|
+
"agentLock",
|
|
1038
|
+
"segmentMenu",
|
|
1039
|
+
"segments"
|
|
1040
|
+
];
|
|
1041
|
+
const SegmentRowActions = memo(function SegmentRowActions({ chain, deleteDisabled, group, mode, onDelete, onEditGeometry, onExport, onMenuOpenChange, onSetMode, onSetSpeed, onStartRename, pluginTarget, posture, speed, triggerVisible }) {
|
|
1042
|
+
const menuLabel = useStudioScopedStrings(SECTIONS$3).segmentMenu.menuLabel;
|
|
1043
|
+
const [speedOpen, setSpeedOpen] = useState(false);
|
|
1044
|
+
const [modeOpen, setModeOpen] = useState(false);
|
|
1045
|
+
if (!(posture.kind === "interactive" || posture.kind === "renaming") && (speedOpen || modeOpen)) {
|
|
1046
|
+
setSpeedOpen(false);
|
|
1047
|
+
setModeOpen(false);
|
|
1048
|
+
}
|
|
1049
|
+
const menuChain = useMemo(() => chain ? {
|
|
1050
|
+
...chain,
|
|
1051
|
+
onChangeEngine: () => setModeOpen(true)
|
|
1052
|
+
} : void 0, [chain]);
|
|
1053
|
+
const openSpeed = useCallback(() => setSpeedOpen(true), []);
|
|
1054
|
+
const closeSpeed = useCallback(() => setSpeedOpen(false), []);
|
|
1055
|
+
const closeMode = useCallback(() => setModeOpen(false), []);
|
|
1056
|
+
if (posture.kind === "readonly") return null;
|
|
1057
|
+
if (posture.kind === "agentDriving" || posture.kind === "peerLocked" || posture.kind === "unsaved") return /* @__PURE__ */ jsx(DisabledActionsButton, {
|
|
1058
|
+
ariaLabel: menuLabel,
|
|
1059
|
+
tooltipLabel: posture.reason
|
|
1060
|
+
});
|
|
1061
|
+
return /* @__PURE__ */ jsx(SegmentSpeedControl, {
|
|
1062
|
+
activityDefaultSpeed: speed.activityDefaultSpeed,
|
|
1063
|
+
distanceMeters: speed.distanceMeters,
|
|
1064
|
+
durationSeconds: speed.durationSeconds,
|
|
1065
|
+
onChange: onSetSpeed,
|
|
1066
|
+
onClose: closeSpeed,
|
|
1067
|
+
opened: speedOpen,
|
|
1068
|
+
speed: speed.speed,
|
|
1069
|
+
children: /* @__PURE__ */ jsx(SegmentModeControl, {
|
|
1070
|
+
mode,
|
|
1071
|
+
onChange: onSetMode,
|
|
1072
|
+
onClose: closeMode,
|
|
1073
|
+
opened: modeOpen,
|
|
1074
|
+
children: /* @__PURE__ */ jsx(SegmentRowMenu, {
|
|
1075
|
+
chain: menuChain,
|
|
1076
|
+
deleteDisabled,
|
|
1077
|
+
group,
|
|
1078
|
+
onDelete,
|
|
1079
|
+
onEditGeometry,
|
|
1080
|
+
onExport,
|
|
1081
|
+
onRename: onStartRename,
|
|
1082
|
+
onSetSpeed: openSpeed,
|
|
1083
|
+
onToggle: onMenuOpenChange,
|
|
1084
|
+
pluginTarget,
|
|
1085
|
+
triggerVisible
|
|
1086
|
+
})
|
|
1087
|
+
})
|
|
1088
|
+
});
|
|
1089
|
+
});
|
|
1090
|
+
const nameColumnStyle$1 = {
|
|
1091
|
+
flex: 1,
|
|
1092
|
+
minWidth: 0
|
|
1093
|
+
};
|
|
1094
|
+
const SegmentRowBody = memo(function SegmentRowBody({ ascent, distance, name, onEditGeometry, onStartRename, posture, reasonMessage, rename }) {
|
|
1095
|
+
const metadataLine = /* @__PURE__ */ jsx(RowMetadata, {
|
|
1096
|
+
ascent,
|
|
1097
|
+
distance
|
|
1098
|
+
});
|
|
1099
|
+
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Text, {
|
|
1100
|
+
size: "xs",
|
|
1101
|
+
children: name
|
|
1102
|
+
}), metadataLine] });
|
|
1103
|
+
let body;
|
|
1104
|
+
if (posture.kind === "renaming") body = /* @__PURE__ */ jsx(RenameInput, {
|
|
1105
|
+
ariaLabel: rename.ariaLabel,
|
|
1106
|
+
details: metadataLine,
|
|
1107
|
+
errorMessage: rename.errorMessage,
|
|
1108
|
+
onBlur: rename.onBlur,
|
|
1109
|
+
onChange: (event) => rename.onChange(event.currentTarget.value),
|
|
1110
|
+
onKeyDown: rename.onKeyDown,
|
|
1111
|
+
value: rename.value
|
|
1112
|
+
});
|
|
1113
|
+
else if (posture.kind === "peerLocked") body = /* @__PURE__ */ jsx(LockTooltip, {
|
|
1114
|
+
label: posture.reason,
|
|
1115
|
+
children: /* @__PURE__ */ jsx(UnstyledButton, {
|
|
1116
|
+
"aria-disabled": true,
|
|
1117
|
+
children: content
|
|
1118
|
+
})
|
|
1119
|
+
});
|
|
1120
|
+
else if (posture.kind === "readonly") body = content;
|
|
1121
|
+
else if (posture.kind === "agentDriving" || posture.kind === "unsaved") body = /* @__PURE__ */ jsx(LockTooltip, {
|
|
1122
|
+
label: posture.reason,
|
|
1123
|
+
children: /* @__PURE__ */ jsx(UnstyledButton, {
|
|
1124
|
+
"aria-disabled": true,
|
|
1125
|
+
children: content
|
|
1126
|
+
})
|
|
1127
|
+
});
|
|
1128
|
+
else body = /* @__PURE__ */ jsx(UnstyledButton, {
|
|
1129
|
+
onClick: onEditGeometry,
|
|
1130
|
+
onDoubleClick: onStartRename,
|
|
1131
|
+
children: content
|
|
1132
|
+
});
|
|
1133
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
1134
|
+
gap: "xxs",
|
|
1135
|
+
style: nameColumnStyle$1,
|
|
1136
|
+
children: [body, reasonMessage !== null ? /* @__PURE__ */ jsx(Text, {
|
|
1137
|
+
c: "dimmed",
|
|
1138
|
+
size: "xs",
|
|
1139
|
+
children: reasonMessage
|
|
1140
|
+
}) : null]
|
|
1141
|
+
});
|
|
1142
|
+
});
|
|
1143
|
+
const SECTIONS$2 = [
|
|
1144
|
+
"agentLock",
|
|
1145
|
+
"segmentMenu",
|
|
1146
|
+
"segments"
|
|
1147
|
+
];
|
|
1148
|
+
const useSegmentRowChain = ({ activitySlug, chain, itineraryId, merge, mode, onFailure, segmentId, splitPick }) => {
|
|
1149
|
+
const { dispatch } = useStudioDispatchUnsafe();
|
|
1150
|
+
const previousSegmentId = chain?.previousSegmentId ?? null;
|
|
1151
|
+
const insertMode = chain?.insertMode === null ? null : chain?.insertMode ?? mode;
|
|
1152
|
+
const insert = useCallback(async (afterSegmentId) => {
|
|
1153
|
+
if (insertMode === null) return;
|
|
1154
|
+
const result = await dispatch("studio.itinerary.segment.insertBegin", {
|
|
1155
|
+
activitySlug,
|
|
1156
|
+
afterSegmentId,
|
|
1157
|
+
itineraryId,
|
|
1158
|
+
mode: insertMode
|
|
1159
|
+
});
|
|
1160
|
+
if (!result.ok) onFailure?.({
|
|
1161
|
+
result,
|
|
1162
|
+
verb: "insert"
|
|
1163
|
+
});
|
|
1164
|
+
}, [
|
|
1165
|
+
activitySlug,
|
|
1166
|
+
dispatch,
|
|
1167
|
+
insertMode,
|
|
1168
|
+
itineraryId,
|
|
1169
|
+
onFailure
|
|
1170
|
+
]);
|
|
1171
|
+
const chainable = chain !== void 0;
|
|
1172
|
+
return useMemo(() => chainable ? {
|
|
1173
|
+
mergeNextDisabledReason: chain?.mergeNextDisabledReason ?? null,
|
|
1174
|
+
mergePreviousDisabledReason: chain?.mergePreviousDisabledReason ?? null,
|
|
1175
|
+
...insertMode === null ? {} : {
|
|
1176
|
+
onInsertAfter: () => insert(segmentId),
|
|
1177
|
+
onInsertBefore: () => insert(previousSegmentId)
|
|
1178
|
+
},
|
|
1179
|
+
onMergeNext: () => {
|
|
1180
|
+
merge(segmentId);
|
|
1181
|
+
},
|
|
1182
|
+
onMergePrevious: () => {
|
|
1183
|
+
if (previousSegmentId !== null) merge(previousSegmentId);
|
|
1184
|
+
},
|
|
1185
|
+
onSplit: splitPick,
|
|
1186
|
+
splitDisabledReason: chain?.splitDisabledReason ?? null
|
|
1187
|
+
} : void 0, [
|
|
1188
|
+
chain?.mergeNextDisabledReason,
|
|
1189
|
+
chain?.mergePreviousDisabledReason,
|
|
1190
|
+
chain?.splitDisabledReason,
|
|
1191
|
+
chainable,
|
|
1192
|
+
insert,
|
|
1193
|
+
insertMode,
|
|
1194
|
+
merge,
|
|
1195
|
+
previousSegmentId,
|
|
1196
|
+
segmentId,
|
|
1197
|
+
splitPick
|
|
1198
|
+
]);
|
|
1199
|
+
};
|
|
1200
|
+
const SegmentRow = memo(function SegmentRow({ activityDefaultSpeed = null, ascent, chain, color = null, deleteDisabled = false, distance, distanceMeters = null, durationSeconds = null, group, groupRail, indicators, mode, name, onExport, reasonMessage = null, speed = null, trailing, ...options }) {
|
|
1201
|
+
const words = useStudioScopedStrings(SECTIONS$2);
|
|
1202
|
+
const row = useSegmentRow({
|
|
1203
|
+
...options,
|
|
1204
|
+
segmentName: name
|
|
1205
|
+
});
|
|
1206
|
+
const locked = row.posture.kind === "peerLocked" || row.posture.kind === "agentDriving";
|
|
1207
|
+
const chainable = chain !== void 0 && row.posture.kind !== "unsaved";
|
|
1208
|
+
const { itineraryId, segmentId } = options;
|
|
1209
|
+
const chainActions = useSegmentRowChain({
|
|
1210
|
+
activitySlug: options.activitySlug,
|
|
1211
|
+
chain: chainable ? chain : void 0,
|
|
1212
|
+
itineraryId,
|
|
1213
|
+
merge: row.actions.merge,
|
|
1214
|
+
mode,
|
|
1215
|
+
onFailure: options.onFailure,
|
|
1216
|
+
segmentId,
|
|
1217
|
+
splitPick: row.actions.splitPick
|
|
1218
|
+
});
|
|
1219
|
+
const rename = useMemo(() => ({
|
|
1220
|
+
ariaLabel: words.segments.renameLabel,
|
|
1221
|
+
errorMessage: words.segments.renameError,
|
|
1222
|
+
onBlur: row.rename.inputProps.onBlur,
|
|
1223
|
+
onChange: row.rename.setValue,
|
|
1224
|
+
onKeyDown: row.rename.inputProps.onKeyDown,
|
|
1225
|
+
value: row.rename.value
|
|
1226
|
+
}), [
|
|
1227
|
+
row.rename.inputProps.onBlur,
|
|
1228
|
+
row.rename.inputProps.onKeyDown,
|
|
1229
|
+
row.rename.setValue,
|
|
1230
|
+
row.rename.value,
|
|
1231
|
+
words.segments.renameError,
|
|
1232
|
+
words.segments.renameLabel
|
|
1233
|
+
]);
|
|
1234
|
+
const exportSegment = useMemo(() => onExport === void 0 ? void 0 : () => onExport(segmentId), [onExport, segmentId]);
|
|
1235
|
+
const speedProps = useMemo(() => ({
|
|
1236
|
+
activityDefaultSpeed,
|
|
1237
|
+
distanceMeters,
|
|
1238
|
+
durationSeconds,
|
|
1239
|
+
speed
|
|
1240
|
+
}), [
|
|
1241
|
+
activityDefaultSpeed,
|
|
1242
|
+
distanceMeters,
|
|
1243
|
+
durationSeconds,
|
|
1244
|
+
speed
|
|
1245
|
+
]);
|
|
1246
|
+
const groupStyle = useMemo(() => groupRail ? { "--group-color": groupRail.color } : void 0, [groupRail]);
|
|
1247
|
+
return /* @__PURE__ */ jsxs(Group, {
|
|
1248
|
+
align: "center",
|
|
1249
|
+
"aria-describedby": groupRail?.chipId,
|
|
1250
|
+
"aria-disabled": locked || void 0,
|
|
1251
|
+
"data-editing": row.rename.editing || void 0,
|
|
1252
|
+
"data-group-first": groupRail?.isFirst || void 0,
|
|
1253
|
+
"data-group-last": groupRail?.isLast || void 0,
|
|
1254
|
+
"data-grouped": groupRail ? true : void 0,
|
|
1255
|
+
"data-map-hovered": row.mapHovered || void 0,
|
|
1256
|
+
"data-menu-open": row.menuOpen || void 0,
|
|
1257
|
+
style: groupStyle,
|
|
1258
|
+
...row.rowProps,
|
|
1259
|
+
children: [
|
|
1260
|
+
/* @__PURE__ */ jsx(SegmentColorCircle, {
|
|
1261
|
+
color,
|
|
1262
|
+
disabled: locked,
|
|
1263
|
+
label: words.segments.recolor,
|
|
1264
|
+
onRecolor: row.actions.recolor
|
|
1265
|
+
}),
|
|
1266
|
+
/* @__PURE__ */ jsx(SegmentRowBody, {
|
|
1267
|
+
ascent,
|
|
1268
|
+
distance,
|
|
1269
|
+
name,
|
|
1270
|
+
onEditGeometry: row.editGeometry,
|
|
1271
|
+
onStartRename: row.startRename,
|
|
1272
|
+
posture: row.posture,
|
|
1273
|
+
reasonMessage,
|
|
1274
|
+
rename
|
|
1275
|
+
}),
|
|
1276
|
+
indicators,
|
|
1277
|
+
trailing,
|
|
1278
|
+
/* @__PURE__ */ jsx(SegmentRowActions, {
|
|
1279
|
+
chain: chainActions,
|
|
1280
|
+
deleteDisabled,
|
|
1281
|
+
group,
|
|
1282
|
+
mode,
|
|
1283
|
+
onDelete: row.actions.remove,
|
|
1284
|
+
onEditGeometry: row.editGeometry,
|
|
1285
|
+
onExport: chainable ? exportSegment : void 0,
|
|
1286
|
+
onMenuOpenChange: row.setMenuOpen,
|
|
1287
|
+
onSetMode: row.actions.setMode,
|
|
1288
|
+
onSetSpeed: row.actions.setSpeed,
|
|
1289
|
+
onStartRename: row.startRename,
|
|
1290
|
+
pluginTarget: row.pluginTarget,
|
|
1291
|
+
posture: row.posture,
|
|
1292
|
+
speed: speedProps,
|
|
1293
|
+
triggerVisible: row.active || row.menuOpen
|
|
1294
|
+
})
|
|
1295
|
+
]
|
|
1296
|
+
});
|
|
1297
|
+
});
|
|
1298
|
+
const SECTIONS$1 = [
|
|
1299
|
+
"agentLock",
|
|
1300
|
+
"collab",
|
|
1301
|
+
"import",
|
|
1302
|
+
"segmentEditor",
|
|
1303
|
+
"segmentGroup",
|
|
1304
|
+
"segmentMenu",
|
|
1305
|
+
"segments"
|
|
1306
|
+
];
|
|
1307
|
+
const verbFailureSentence = (words, verb) => ({
|
|
1308
|
+
editBegin: words.segmentEditor.editGeometryFailed,
|
|
1309
|
+
groupDelete: words.segmentGroup.ungroupFailed,
|
|
1310
|
+
groupOpen: words.segmentGroup.openFailed,
|
|
1311
|
+
groupSetRange: words.segmentGroup.rangeFailed,
|
|
1312
|
+
insert: words.segmentEditor.insertFailed,
|
|
1313
|
+
merge: words.segmentEditor.mergeFailed,
|
|
1314
|
+
recolor: words.segmentEditor.saveFailed,
|
|
1315
|
+
remove: words.segmentEditor.deleteFailed,
|
|
1316
|
+
rename: words.segmentEditor.saveFailed,
|
|
1317
|
+
setMode: words.segmentEditor.setModeFailed,
|
|
1318
|
+
setSpeed: words.segmentEditor.saveFailed,
|
|
1319
|
+
splitPick: words.segmentEditor.splitFailed
|
|
1320
|
+
})[verb];
|
|
1321
|
+
const verbRefusal = (words, failure) => {
|
|
1322
|
+
const { result, verb } = failure;
|
|
1323
|
+
return verb === "remove" && !result.ok && result.code === "conflict" && !result.detail ? {
|
|
1324
|
+
...result,
|
|
1325
|
+
detail: words.segmentEditor.deleteNotEdge
|
|
1326
|
+
} : result;
|
|
1327
|
+
};
|
|
1328
|
+
const reportVerbFailure = (report, words, failure) => {
|
|
1329
|
+
report(verbRefusal(words, failure), verbFailureSentence(words, failure.verb));
|
|
1330
|
+
};
|
|
1331
|
+
const LockedSegmentRow = ({ lockHolderId, ...props }) => /* @__PURE__ */ jsx(SegmentRow, {
|
|
1332
|
+
...props,
|
|
1333
|
+
peerLockHint: usePeerLockLabel(lockHolderId)
|
|
1334
|
+
});
|
|
1335
|
+
const PersistedSegmentRow = memo(function PersistedSegmentRow({ activityDefaultSpeed, activitySlug, groupActions, groupRail, insertMode, isCommitted, isFirst, isLast, itineraryId, mergeNextDisabledReason, mergePreviousDisabledReason, onExport, previousSegmentId, segment, splitDisabledReason }) {
|
|
1336
|
+
const words = useStudioScopedStrings(SECTIONS$1);
|
|
1337
|
+
const unitFormat = useStudioUnits();
|
|
1338
|
+
const reportFailure = useStudioFailureAlert();
|
|
1339
|
+
const resource = useActiveItineraryResource();
|
|
1340
|
+
const lockHolderId = usePeerLockHolderId(resource, "segment", segment.id);
|
|
1341
|
+
const onFailure = useCallback((failure) => reportVerbFailure(reportFailure, words, failure), [words, reportFailure]);
|
|
1342
|
+
const indicators = useMemo(() => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(AgentEntityIndicator, {
|
|
1343
|
+
id: segment.id,
|
|
1344
|
+
kind: "segment"
|
|
1345
|
+
}), /* @__PURE__ */ jsx(PeerEntityIndicator, {
|
|
1346
|
+
id: segment.id,
|
|
1347
|
+
kind: "segment"
|
|
1348
|
+
})] }), [segment.id]);
|
|
1349
|
+
const chain = useMemo(() => isCommitted ? {
|
|
1350
|
+
insertMode,
|
|
1351
|
+
mergeNextDisabledReason,
|
|
1352
|
+
mergePreviousDisabledReason,
|
|
1353
|
+
previousSegmentId,
|
|
1354
|
+
splitDisabledReason
|
|
1355
|
+
} : void 0, [
|
|
1356
|
+
insertMode,
|
|
1357
|
+
isCommitted,
|
|
1358
|
+
mergeNextDisabledReason,
|
|
1359
|
+
mergePreviousDisabledReason,
|
|
1360
|
+
previousSegmentId,
|
|
1361
|
+
splitDisabledReason
|
|
1362
|
+
]);
|
|
1363
|
+
const rowProps = {
|
|
1364
|
+
activityDefaultSpeed,
|
|
1365
|
+
activitySlug: activitySlug ?? void 0,
|
|
1366
|
+
agentLockHint: words.agentLock.rowLocked,
|
|
1367
|
+
ascent: formatElevation(segment.ascent, unitFormat),
|
|
1368
|
+
chain,
|
|
1369
|
+
color: segment.color,
|
|
1370
|
+
deleteDisabled: !(isFirst || isLast),
|
|
1371
|
+
distance: formatDistance(segment.distance, unitFormat),
|
|
1372
|
+
distanceMeters: segment.distance,
|
|
1373
|
+
durationSeconds: segment.duration,
|
|
1374
|
+
group: groupActions,
|
|
1375
|
+
groupRail,
|
|
1376
|
+
indicators,
|
|
1377
|
+
itineraryId,
|
|
1378
|
+
mode: segment.mode,
|
|
1379
|
+
name: segment.name,
|
|
1380
|
+
onExport,
|
|
1381
|
+
onFailure,
|
|
1382
|
+
segmentId: segment.id,
|
|
1383
|
+
segmentName: segment.name,
|
|
1384
|
+
speed: segment.speed,
|
|
1385
|
+
unsavedHint: isCommitted ? null : words.segmentEditor.unsavedRowHint
|
|
1386
|
+
};
|
|
1387
|
+
return lockHolderId === null ? /* @__PURE__ */ jsx(SegmentRow, {
|
|
1388
|
+
...rowProps,
|
|
1389
|
+
peerLockHint: null
|
|
1390
|
+
}) : /* @__PURE__ */ jsx(LockedSegmentRow, {
|
|
1391
|
+
...rowProps,
|
|
1392
|
+
lockHolderId
|
|
1393
|
+
});
|
|
1394
|
+
});
|
|
1395
|
+
const DraftSegmentRow = memo(function DraftSegmentRow({ activityDefaultSpeed, activitySlug, isFirst, isLast, isOnly, liveSegment, previousEnd, segment }) {
|
|
1396
|
+
const { dispatch } = useStudioDispatch();
|
|
1397
|
+
const words = useStudioScopedStrings(SECTIONS$1);
|
|
1398
|
+
const unitFormat = useStudioUnits();
|
|
1399
|
+
const reportFailure = useStudioFailureAlert();
|
|
1400
|
+
const { toggleImportMode } = useSegmentRowActions({
|
|
1401
|
+
itineraryId: "",
|
|
1402
|
+
segmentId: segment.id
|
|
1403
|
+
});
|
|
1404
|
+
const onFailure = useCallback((failure) => reportVerbFailure(reportFailure, words, failure), [words, reportFailure]);
|
|
1405
|
+
const onEditGeometry = useCallback(() => {
|
|
1406
|
+
beginDraftSegmentEdit(dispatch, segment, {
|
|
1407
|
+
isFirst,
|
|
1408
|
+
previousEnd
|
|
1409
|
+
}, activitySlug).then((result) => {
|
|
1410
|
+
if (result !== null && !result.ok) reportFailure(result, verbFailureSentence(words, "editBegin"));
|
|
1411
|
+
});
|
|
1412
|
+
}, [
|
|
1413
|
+
activitySlug,
|
|
1414
|
+
dispatch,
|
|
1415
|
+
words,
|
|
1416
|
+
isFirst,
|
|
1417
|
+
previousEnd,
|
|
1418
|
+
reportFailure,
|
|
1419
|
+
segment
|
|
1420
|
+
]);
|
|
1421
|
+
const chosen = segment.mode === "directions" && segment.directions ? segment.directions : segment.linestring;
|
|
1422
|
+
const ascentMeters = liveSegment?.ascent ?? chosen.elevation?.ascent ?? chosen.ascent ?? null;
|
|
1423
|
+
const distance = liveSegment?.distance ?? chosen.distance ?? null;
|
|
1424
|
+
const canToggle = segment.directions !== null && !segment.snapLocked;
|
|
1425
|
+
const modeTooltip = (mode) => {
|
|
1426
|
+
const verb = mode === "directions" ? words.import.segmentMode.snapTooltip : words.import.segmentMode.exactTooltip;
|
|
1427
|
+
const candidate = mode === "directions" ? segment.directions : segment.linestring;
|
|
1428
|
+
const measured = candidate?.distance != null ? formatDistance(candidate.distance, unitFormat) : "";
|
|
1429
|
+
return joinMetadata([verb, measured]);
|
|
1430
|
+
};
|
|
1431
|
+
const reasonMessage = segment.mode === "linestring" && segment.recommendationReason !== null ? importReasonSentence(words, segment.recommendationReason) : null;
|
|
1432
|
+
return /* @__PURE__ */ jsx(SegmentRow, {
|
|
1433
|
+
activityDefaultSpeed,
|
|
1434
|
+
agentLockHint: words.agentLock.rowLocked,
|
|
1435
|
+
ascent: formatElevation(ascentMeters, unitFormat),
|
|
1436
|
+
color: segment.color,
|
|
1437
|
+
deleteDisabled: !(isFirst || isLast) || isOnly,
|
|
1438
|
+
distance: formatDistance(distance, unitFormat),
|
|
1439
|
+
distanceMeters: distance,
|
|
1440
|
+
mode: segment.mode,
|
|
1441
|
+
name: segment.name,
|
|
1442
|
+
onEditGeometry,
|
|
1443
|
+
onFailure,
|
|
1444
|
+
peerLockHint: null,
|
|
1445
|
+
reasonMessage,
|
|
1446
|
+
segmentId: segment.id,
|
|
1447
|
+
segmentName: segment.name,
|
|
1448
|
+
speed: segment.speed,
|
|
1449
|
+
trailing: canToggle ? /* @__PURE__ */ jsx(StudioSegmentedControl, {
|
|
1450
|
+
data: [{
|
|
1451
|
+
label: /* @__PURE__ */ jsx(SegmentIcon, {
|
|
1452
|
+
glyph: "routed",
|
|
1453
|
+
label: modeTooltip("directions")
|
|
1454
|
+
}),
|
|
1455
|
+
value: "directions"
|
|
1456
|
+
}, {
|
|
1457
|
+
label: /* @__PURE__ */ jsx(SegmentIcon, {
|
|
1458
|
+
glyph: "freehand",
|
|
1459
|
+
label: modeTooltip("linestring")
|
|
1460
|
+
}),
|
|
1461
|
+
value: "linestring"
|
|
1462
|
+
}],
|
|
1463
|
+
onChange: toggleImportMode,
|
|
1464
|
+
value: segment.mode
|
|
1465
|
+
}) : null
|
|
1466
|
+
});
|
|
1467
|
+
});
|
|
1468
|
+
const SidenavContentBody = ({ children }) => /* @__PURE__ */ jsx(Stack, {
|
|
1469
|
+
gap: "md",
|
|
1470
|
+
mih: "100%",
|
|
1471
|
+
p: "md",
|
|
1472
|
+
children
|
|
1473
|
+
});
|
|
1474
|
+
const SidenavContentFormBody = ({ children }) => /* @__PURE__ */ jsx(StudioFormStack, {
|
|
1475
|
+
mih: "100%",
|
|
1476
|
+
p: "md",
|
|
1477
|
+
children
|
|
1478
|
+
});
|
|
1479
|
+
const SECTIONS = ["segments", "waypointEditor"];
|
|
1480
|
+
const LazySegmentColorPicker = lazy(() => import("./chunk-cMQzXXQq.js").then((module) => ({ default: module.SegmentColorPicker })));
|
|
1481
|
+
const diskBaseStyle = {
|
|
1482
|
+
alignItems: "center",
|
|
1483
|
+
borderRadius: "50%",
|
|
1484
|
+
color: "white",
|
|
1485
|
+
display: "flex",
|
|
1486
|
+
height: 28,
|
|
1487
|
+
justifyContent: "center",
|
|
1488
|
+
width: 28
|
|
1489
|
+
};
|
|
1490
|
+
const WaypointIconCircle = ({ color, colorless = false, disabled = false, icon, itineraryId, label, session = false, waypointId }) => {
|
|
1491
|
+
const words = useStudioScopedStrings(SECTIONS);
|
|
1492
|
+
const { recolor, setIcon } = useWaypointRowActions({
|
|
1493
|
+
itineraryId: itineraryId ?? "",
|
|
1494
|
+
session,
|
|
1495
|
+
waypointId
|
|
1496
|
+
});
|
|
1497
|
+
const [opened, setOpened] = useState(false);
|
|
1498
|
+
const [draftColor, setDraftColor] = useState(color ?? DEFAULT_WAYPOINT_COLOR);
|
|
1499
|
+
const open = () => {
|
|
1500
|
+
setDraftColor(color ?? DEFAULT_WAYPOINT_COLOR);
|
|
1501
|
+
setOpened(true);
|
|
1502
|
+
};
|
|
1503
|
+
useEscapeKey(() => setOpened(false), opened);
|
|
1504
|
+
const resolvedColor = opened && !colorless ? draftColor : color ?? DEFAULT_WAYPOINT_COLOR;
|
|
1505
|
+
const Glyph = waypointGlyphTable[icon ?? "map-pin"];
|
|
1506
|
+
const pickerSelection = icon === null ? null : userWaypointIconSchema.safeParse(icon).data ?? null;
|
|
1507
|
+
const diskStyle = useMemo(() => ({
|
|
1508
|
+
...diskBaseStyle,
|
|
1509
|
+
backgroundColor: resolvedColor
|
|
1510
|
+
}), [resolvedColor]);
|
|
1511
|
+
if (disabled) return /* @__PURE__ */ jsx(UnstyledButton, {
|
|
1512
|
+
"aria-disabled": true,
|
|
1513
|
+
"aria-label": label,
|
|
1514
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
1515
|
+
style: diskStyle,
|
|
1516
|
+
children: /* @__PURE__ */ jsx(Glyph, { size: iconSizes.sm })
|
|
1517
|
+
})
|
|
1518
|
+
});
|
|
1519
|
+
return /* @__PURE__ */ jsxs(Popover, {
|
|
1520
|
+
onChange: setOpened,
|
|
1521
|
+
opened,
|
|
1522
|
+
position: "bottom-start",
|
|
1523
|
+
preventPositionChangeWhenVisible: false,
|
|
1524
|
+
withArrow: true,
|
|
1525
|
+
withinPortal: true,
|
|
1526
|
+
children: [/* @__PURE__ */ jsx(Popover.Target, { children: /* @__PURE__ */ jsx(UnstyledButton, {
|
|
1527
|
+
"aria-label": label,
|
|
1528
|
+
onClick: open,
|
|
1529
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
1530
|
+
style: diskStyle,
|
|
1531
|
+
children: /* @__PURE__ */ jsx(Glyph, { size: iconSizes.sm })
|
|
1532
|
+
})
|
|
1533
|
+
}) }), /* @__PURE__ */ jsx(Popover.Dropdown, { children: /* @__PURE__ */ jsxs(Group, {
|
|
1534
|
+
align: "flex-start",
|
|
1535
|
+
gap: "md",
|
|
1536
|
+
wrap: "nowrap",
|
|
1537
|
+
children: [colorless ? null : /* @__PURE__ */ jsx(Box, {
|
|
1538
|
+
"aria-label": words.waypointEditor.colorLabel,
|
|
1539
|
+
role: "group",
|
|
1540
|
+
children: /* @__PURE__ */ jsx(Suspense, {
|
|
1541
|
+
fallback: null,
|
|
1542
|
+
children: /* @__PURE__ */ jsx(LazySegmentColorPicker, {
|
|
1543
|
+
onChange: setDraftColor,
|
|
1544
|
+
onChangeEnd: recolor,
|
|
1545
|
+
value: draftColor
|
|
1546
|
+
})
|
|
1547
|
+
})
|
|
1548
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
1549
|
+
"aria-label": words.waypointEditor.iconLabel,
|
|
1550
|
+
role: "group",
|
|
1551
|
+
children: /* @__PURE__ */ jsx(WaypointIconPicker, {
|
|
1552
|
+
onChange: setIcon,
|
|
1553
|
+
value: pickerSelection
|
|
1554
|
+
})
|
|
1555
|
+
})]
|
|
1556
|
+
}) })]
|
|
1557
|
+
});
|
|
1558
|
+
};
|
|
1559
|
+
const nameColumnStyle = {
|
|
1560
|
+
flex: 1,
|
|
1561
|
+
minWidth: 0
|
|
1562
|
+
};
|
|
1563
|
+
const triggerVisibleStyle = { opacity: 1 };
|
|
1564
|
+
const triggerHiddenStyle = { opacity: 0 };
|
|
1565
|
+
const ELEMENT_SECTIONS$1 = ["waypoints"];
|
|
1566
|
+
const isDisplayName = (name) => displayNameSchema.safeParse(name).success;
|
|
1567
|
+
const WaypointRowLayout = ({ details, iconCircle, indicator, lockHint = null, mapHovered, menuItems, name, onBodyClick, onMouseEnter, onMouseLeave, onRename, onStartRename, ref, rowRef }) => {
|
|
1568
|
+
const strings = useMountayaScopedStrings(ELEMENT_SECTIONS$1).waypoints;
|
|
1569
|
+
const commitRename = useCallback((next) => onRename?.(next), [onRename]);
|
|
1570
|
+
const rename = useInlineRename({
|
|
1571
|
+
locked: lockHint !== null,
|
|
1572
|
+
name,
|
|
1573
|
+
onCommit: commitRename,
|
|
1574
|
+
validate: isDisplayName
|
|
1575
|
+
});
|
|
1576
|
+
const { editing } = rename;
|
|
1577
|
+
const startRename = useCallback(() => {
|
|
1578
|
+
onStartRename?.();
|
|
1579
|
+
rename.start();
|
|
1580
|
+
}, [onStartRename, rename.start]);
|
|
1581
|
+
useImperativeHandle(ref, () => ({ startRenaming: startRename }), [startRename]);
|
|
1582
|
+
const [active, setActive] = useState(false);
|
|
1583
|
+
const [menuOpened, setMenuOpened] = useState(false);
|
|
1584
|
+
const onRowMouseEnter = useCallback(() => {
|
|
1585
|
+
setActive(true);
|
|
1586
|
+
onMouseEnter?.();
|
|
1587
|
+
}, [onMouseEnter]);
|
|
1588
|
+
const onRowMouseLeave = useCallback(() => {
|
|
1589
|
+
setActive(false);
|
|
1590
|
+
onMouseLeave?.();
|
|
1591
|
+
}, [onMouseLeave]);
|
|
1592
|
+
const onRowBlur = useCallback((event) => {
|
|
1593
|
+
if (!event.currentTarget.contains(event.relatedTarget)) setActive(false);
|
|
1594
|
+
}, []);
|
|
1595
|
+
const bodyContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Text, {
|
|
1596
|
+
size: "xs",
|
|
1597
|
+
children: name
|
|
1598
|
+
}), details] });
|
|
1599
|
+
const displayOnly = menuItems === void 0 && onRename === void 0 && onBodyClick === void 0;
|
|
1600
|
+
return /* @__PURE__ */ jsxs(Group, {
|
|
1601
|
+
align: "center",
|
|
1602
|
+
"aria-disabled": lockHint !== null || void 0,
|
|
1603
|
+
"data-editing": editing || void 0,
|
|
1604
|
+
"data-map-hovered": mapHovered || void 0,
|
|
1605
|
+
"data-menu-open": menuOpened || void 0,
|
|
1606
|
+
"data-readonly": displayOnly || void 0,
|
|
1607
|
+
onBlur: onRowBlur,
|
|
1608
|
+
onFocus: () => setActive(true),
|
|
1609
|
+
onMouseEnter: onRowMouseEnter,
|
|
1610
|
+
onMouseLeave: onRowMouseLeave,
|
|
1611
|
+
ref: rowRef,
|
|
1612
|
+
children: [
|
|
1613
|
+
iconCircle,
|
|
1614
|
+
/* @__PURE__ */ jsx(Stack, {
|
|
1615
|
+
gap: "xxs",
|
|
1616
|
+
style: nameColumnStyle,
|
|
1617
|
+
children: editing ? /* @__PURE__ */ jsx(RenameInput, {
|
|
1618
|
+
ariaLabel: strings.renameLabel,
|
|
1619
|
+
details,
|
|
1620
|
+
errorMessage: strings.renameError,
|
|
1621
|
+
onBlur: rename.inputProps.onBlur,
|
|
1622
|
+
onChange: rename.inputProps.onChange,
|
|
1623
|
+
onKeyDown: rename.inputProps.onKeyDown,
|
|
1624
|
+
value: rename.value
|
|
1625
|
+
}) : lockHint !== null ? /* @__PURE__ */ jsx(LockTooltip, {
|
|
1626
|
+
label: lockHint,
|
|
1627
|
+
children: /* @__PURE__ */ jsx(UnstyledButton, {
|
|
1628
|
+
"aria-disabled": true,
|
|
1629
|
+
children: bodyContent
|
|
1630
|
+
})
|
|
1631
|
+
}) : displayOnly ? bodyContent : /* @__PURE__ */ jsx(UnstyledButton, {
|
|
1632
|
+
onClick: onBodyClick,
|
|
1633
|
+
onDoubleClick: onRename === void 0 ? void 0 : startRename,
|
|
1634
|
+
children: bodyContent
|
|
1635
|
+
})
|
|
1636
|
+
}),
|
|
1637
|
+
indicator,
|
|
1638
|
+
menuItems === void 0 ? null : lockHint !== null ? /* @__PURE__ */ jsx(DisabledActionsButton, {
|
|
1639
|
+
ariaLabel: strings.menuLabel,
|
|
1640
|
+
tooltipLabel: lockHint
|
|
1641
|
+
}) : /* @__PURE__ */ jsxs(Menu, {
|
|
1642
|
+
onChange: setMenuOpened,
|
|
1643
|
+
position: "bottom-end",
|
|
1644
|
+
withinPortal: true,
|
|
1645
|
+
children: [/* @__PURE__ */ jsx(Menu.Target, { children: /* @__PURE__ */ jsx(ActionIcon, {
|
|
1646
|
+
"aria-label": strings.menuLabel,
|
|
1647
|
+
className: "mtya-menu-trigger",
|
|
1648
|
+
style: active || menuOpened ? triggerVisibleStyle : triggerHiddenStyle,
|
|
1649
|
+
variant: "subtle",
|
|
1650
|
+
children: /* @__PURE__ */ jsx(Glyph$1, {
|
|
1651
|
+
name: "more",
|
|
1652
|
+
size: iconSizes.sm
|
|
1653
|
+
})
|
|
1654
|
+
}) }), /* @__PURE__ */ jsx(Menu.Dropdown, { children: menuItems })]
|
|
1655
|
+
})
|
|
1656
|
+
]
|
|
1657
|
+
});
|
|
1658
|
+
};
|
|
1659
|
+
const ELEMENT_SECTIONS = ["waypoints"];
|
|
1660
|
+
const WaypointRow = memo(function WaypointRow({ iconCircle, indicators, menuItems: hostItems, mode, name, onBodyClick, readOnly = false, ...options }) {
|
|
1661
|
+
const strings = useMountayaScopedStrings(ELEMENT_SECTIONS).waypoints;
|
|
1662
|
+
const layoutRef = useRef(null);
|
|
1663
|
+
const row = useWaypointRow(options);
|
|
1664
|
+
const pluginItems = usePluginSlot("waypoint.menu", row.pluginTarget);
|
|
1665
|
+
const onStartRename = row.cancelMove;
|
|
1666
|
+
const startRenaming = useCallback(() => layoutRef.current?.startRenaming(), []);
|
|
1667
|
+
const locked = row.lockHint !== null;
|
|
1668
|
+
const movable = !readOnly && row.moveOnMap !== void 0 && !locked;
|
|
1669
|
+
const bodyAction = useCallback(() => {
|
|
1670
|
+
if (onBodyClick !== void 0) row.deferBodyClick(onBodyClick);
|
|
1671
|
+
}, [onBodyClick, row.deferBodyClick]);
|
|
1672
|
+
const menuItems = readOnly ? void 0 : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1673
|
+
/* @__PURE__ */ jsx(Menu.Item, {
|
|
1674
|
+
fz: "xs",
|
|
1675
|
+
leftSection: /* @__PURE__ */ jsx(Glyph$1, {
|
|
1676
|
+
name: "action-rename",
|
|
1677
|
+
size: iconSizes.sm
|
|
1678
|
+
}),
|
|
1679
|
+
onClick: startRenaming,
|
|
1680
|
+
children: strings.menuRename
|
|
1681
|
+
}),
|
|
1682
|
+
hostItems,
|
|
1683
|
+
/* @__PURE__ */ jsx(PluginMenuItems, { items: pluginItems }),
|
|
1684
|
+
movable ? /* @__PURE__ */ jsx(Menu.Item, {
|
|
1685
|
+
fz: "xs",
|
|
1686
|
+
leftSection: /* @__PURE__ */ jsx(Glyph$1, {
|
|
1687
|
+
name: "action-move",
|
|
1688
|
+
size: iconSizes.sm
|
|
1689
|
+
}),
|
|
1690
|
+
onClick: row.moveOnMap,
|
|
1691
|
+
children: strings.menuMove
|
|
1692
|
+
}) : null,
|
|
1693
|
+
/* @__PURE__ */ jsx(Menu.Divider, {}),
|
|
1694
|
+
/* @__PURE__ */ jsx(Menu.Item, {
|
|
1695
|
+
color: "red",
|
|
1696
|
+
fz: "xs",
|
|
1697
|
+
leftSection: /* @__PURE__ */ jsx(Glyph$1, {
|
|
1698
|
+
name: "action-delete",
|
|
1699
|
+
size: iconSizes.sm
|
|
1700
|
+
}),
|
|
1701
|
+
onClick: row.actions.remove,
|
|
1702
|
+
children: strings.menuDelete
|
|
1703
|
+
})
|
|
1704
|
+
] });
|
|
1705
|
+
return /* @__PURE__ */ jsx(WaypointRowLayout, {
|
|
1706
|
+
details: /* @__PURE__ */ jsx(Text, {
|
|
1707
|
+
c: "dimmed",
|
|
1708
|
+
size: "xs",
|
|
1709
|
+
children: mode === "poi" ? strings.modePoi : strings.modePoint
|
|
1710
|
+
}),
|
|
1711
|
+
iconCircle,
|
|
1712
|
+
indicator: indicators,
|
|
1713
|
+
lockHint: row.lockHint,
|
|
1714
|
+
mapHovered: row.mapHovered,
|
|
1715
|
+
menuItems,
|
|
1716
|
+
name,
|
|
1717
|
+
onBodyClick: onBodyClick !== void 0 ? bodyAction : movable ? row.moveOnMap : void 0,
|
|
1718
|
+
onMouseEnter: row.onMouseEnter,
|
|
1719
|
+
onMouseLeave: row.onMouseLeave,
|
|
1720
|
+
onRename: readOnly ? void 0 : row.actions.rename,
|
|
1721
|
+
onStartRename,
|
|
1722
|
+
ref: layoutRef,
|
|
1723
|
+
rowRef: row.rowRef
|
|
1724
|
+
});
|
|
1725
|
+
});
|
|
1726
|
+
export { usePeerLockLabels as C, LockTooltip as D, DisabledActionsButton as E, usePeerLockLabel as S, AgentEntityIndicator as T, ActivityGuideProvider as _, DraftSegmentRow as a, ImportRoutingGuideProvider as b, verbFailureSentence as c, SegmentIcon as d, RenameInput as f, DisabledMenuItem as g, PluginMenuItems as h, SidenavContentFormBody as i, SegmentRow as l, StudioFormStack as m, WaypointIconCircle as n, PersistedSegmentRow as o, ActivitySelect as p, SidenavContentBody as r, reportVerbFailure as s, WaypointRow as t, SegmentRowBody as u, useActivityGuide as v, PeerEntityIndicator as w, useImportRoutingGuide as x, showsFocus as y };
|
|
1727
|
+
|
|
1728
|
+
//# sourceMappingURL=chunk-DQ4l6EDZ.js.map
|