@intent-hq/web 2.391.1 → 2.392.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{gQ8VFuWN.js → 0TbppU-W.js} +2 -2
  3. package/web/app/immutable/chunks/{B2awO10u.js → 2OP7IVCM.js} +1 -1
  4. package/web/app/immutable/chunks/{BZ27qIg1.js → 2z64ELW5.js} +1 -1
  5. package/web/app/immutable/chunks/{Cr9C4VDu.js → 3rqOYBi3.js} +1 -1
  6. package/web/app/immutable/chunks/{z0xDttNV.js → 50HYkjWD.js} +3 -3
  7. package/web/app/immutable/chunks/{DLqZuVvj.js → 52kdRKiP.js} +1 -1
  8. package/web/app/immutable/chunks/{Dh1j4V0b.js → 7zxUzaYz.js} +1 -1
  9. package/web/app/immutable/chunks/{Drn9m8Tp.js → 9AKr1UyY.js} +1 -1
  10. package/web/app/immutable/chunks/{DXCHCOFX.js → 9ryMZ44V.js} +1 -1
  11. package/web/app/immutable/chunks/{B7hGbqIM.js → AlO3r9jV.js} +1 -1
  12. package/web/app/immutable/chunks/{CVtLV3_x.js → B0SSzYpD.js} +1 -1
  13. package/web/app/immutable/chunks/{DuZtgB5V.js → B0oQ37UY.js} +1 -1
  14. package/web/app/immutable/chunks/{9eqoPT_C.js → B2-ooCTr.js} +1 -1
  15. package/web/app/immutable/chunks/{C1MYTxgW.js → B2frqTj8.js} +1 -1
  16. package/web/app/immutable/chunks/{CedswVQA.js → B36ccT8S.js} +1 -1
  17. package/web/app/immutable/chunks/{g5QqP-QE.js → B6Qz5J1y.js} +1 -1
  18. package/web/app/immutable/chunks/{DHvVAxAW.js → B6wkNYPs.js} +1 -1
  19. package/web/app/immutable/chunks/{DG3-me8H.js → B8m3-qrW.js} +1 -1
  20. package/web/app/immutable/chunks/{YQwkPi_0.js → B97l6Xkk.js} +1 -1
  21. package/web/app/immutable/chunks/{Cp-4w4r1.js → B9NjB9vD.js} +1 -1
  22. package/web/app/immutable/chunks/{DPk2fLxi.js → B9R2bql6.js} +1 -1
  23. package/web/app/immutable/chunks/{Cr5mKkdD.js → B9ZgGXDm.js} +1 -1
  24. package/web/app/immutable/chunks/{CT8vPg_p.js → BAtAwQ72.js} +2 -2
  25. package/web/app/immutable/chunks/{D5Jk5CWk.js → BB5TUToP.js} +2 -2
  26. package/web/app/immutable/chunks/{DGU9U1O6.js → BBfR26V0.js} +1 -1
  27. package/web/app/immutable/chunks/{C4l6men1.js → BCw-LKCu.js} +1 -1
  28. package/web/app/immutable/chunks/{WYNXUtt9.js → BDQvAsU6.js} +1 -1
  29. package/web/app/immutable/chunks/{DDvFH8QS.js → BDRM-DVo.js} +1 -1
  30. package/web/app/immutable/chunks/{D9T_0Eev.js → BE3g5vcj.js} +3 -3
  31. package/web/app/immutable/chunks/{KWtYfwVq.js → BE4DZU9i.js} +1 -1
  32. package/web/app/immutable/chunks/{C3JJkOFb.js → BEGGqaof.js} +1 -1
  33. package/web/app/immutable/chunks/{CyvzL5p8.js → BFO-Le8U.js} +3 -3
  34. package/web/app/immutable/chunks/BGSmaq6H.js +1 -0
  35. package/web/app/immutable/chunks/{K0WiFC8Y.js → BJEFEyAm.js} +1 -1
  36. package/web/app/immutable/chunks/{CEyWnfg4.js → BJIUXUAo.js} +1 -1
  37. package/web/app/immutable/chunks/{B_JGVEqN.js → BKGQPtRi.js} +1 -1
  38. package/web/app/immutable/chunks/BPFSAjsd.js +411 -0
  39. package/web/app/immutable/chunks/{CV17KbhT.js → BQ5x_RaT.js} +1 -1
  40. package/web/app/immutable/chunks/{B26ZHg3s.js → BRCr02in.js} +1 -1
  41. package/web/app/immutable/chunks/{CHIxjTWu.js → BS1zON0P.js} +1 -1
  42. package/web/app/immutable/chunks/{kkKMJ9w9.js → BS5e_kKu.js} +1 -1
  43. package/web/app/immutable/chunks/{CpwS8V1F.js → BS9LmSp_.js} +1 -1
  44. package/web/app/immutable/chunks/{CwqJ7uz4.js → BSMi55yC.js} +1 -1
  45. package/web/app/immutable/chunks/{BBcnUEuQ.js → BSpgPPjp.js} +1 -1
  46. package/web/app/immutable/chunks/{6JlgfFWd.js → BT6sDnDt.js} +1 -1
  47. package/web/app/immutable/chunks/{BmaG8vdR.js → BTE0066U.js} +1 -1
  48. package/web/app/immutable/chunks/{BRScUzfU.js → BUF0WvAS.js} +1 -1
  49. package/web/app/immutable/chunks/{CUgl7USU.js → BUPWY1pO.js} +1 -1
  50. package/web/app/immutable/chunks/{Cnkux63v.js → BVBh582U.js} +1 -1
  51. package/web/app/immutable/chunks/{BSKVcPN7.js → BVhnyyZ7.js} +1 -1
  52. package/web/app/immutable/chunks/{CH6Im5iM.js → BYfDvU8j.js} +1 -1
  53. package/web/app/immutable/chunks/{Ci6PI5sn.js → Bc4EBjSN.js} +1 -1
  54. package/web/app/immutable/chunks/{CiHhUIjb.js → BdWMbiFk.js} +1 -1
  55. package/web/app/immutable/chunks/{7-WRRruG.js → BdlwjSpf.js} +1 -1
  56. package/web/app/immutable/chunks/{D9R5fzn8.js → Beq_QLuz.js} +1 -1
  57. package/web/app/immutable/chunks/{B2Ny2uiy.js → Bh3yfjRP.js} +1 -1
  58. package/web/app/immutable/chunks/{DynUeYUu.js → BhYXv0ZM.js} +1 -1
  59. package/web/app/immutable/chunks/{D3pRyooW.js → Bhul7r_Y.js} +1 -1
  60. package/web/app/immutable/chunks/{OsJD3pkm.js → Bky3Gaqa.js} +1 -1
  61. package/web/app/immutable/chunks/{B5-Plsom.js → BlVpCoL1.js} +1 -1
  62. package/web/app/immutable/chunks/{CwCvyVGi.js → BmqZzhgO.js} +1 -1
  63. package/web/app/immutable/chunks/{Chbrtg19.js → BnnKw3Va.js} +1 -1
  64. package/web/app/immutable/chunks/{DmQ5G_6J.js → Bo0PodRV.js} +1 -1
  65. package/web/app/immutable/chunks/{Cxc8q3rR.js → BonA_mfc.js} +1 -1
  66. package/web/app/immutable/chunks/{BuyrOC4V.js → Bp6DusVC.js} +1 -1
  67. package/web/app/immutable/chunks/{DIIj7EWA.js → BpFxCD0b.js} +1 -1
  68. package/web/app/immutable/chunks/{DqtLBCnq.js → BqRQBnTW.js} +1 -1
  69. package/web/app/immutable/chunks/{JvFe2B29.js → BuM8LV7z.js} +1 -1
  70. package/web/app/immutable/chunks/{BM39k1x6.js → BusD2v6a.js} +1 -1
  71. package/web/app/immutable/chunks/{DF15jnSX.js → BvByaKKp.js} +1 -1
  72. package/web/app/immutable/chunks/{z4O7yNZ6.js → BvvIG-FE.js} +1 -1
  73. package/web/app/immutable/chunks/{Bhyo7hBL.js → Bvwrya09.js} +1 -1
  74. package/web/app/immutable/chunks/{RV6uszBL.js → Bw-Zu1Zf.js} +1 -1
  75. package/web/app/immutable/chunks/{Dl1AOLZu.js → BwFe8eI9.js} +1 -1
  76. package/web/app/immutable/chunks/{Dr6-g-BO.js → Bwa2n5jC.js} +1 -1
  77. package/web/app/immutable/chunks/{QzxpbvSo.js → BwweojP5.js} +1 -1
  78. package/web/app/immutable/chunks/{CnDgS0vt.js → ByaJIEgQ.js} +1 -1
  79. package/web/app/immutable/chunks/{BZCcX8wj.js → ByvcSsIj.js} +2 -2
  80. package/web/app/immutable/chunks/{Bz80vYvX.js → BzXQ5SMs.js} +1 -1
  81. package/web/app/immutable/chunks/{CPnqf2bo.js → C13CRqsS.js} +1 -1
  82. package/web/app/immutable/chunks/{CAGrRNbp.js → C1SGWBXH.js} +1 -1
  83. package/web/app/immutable/chunks/{B4Yz29Q3.js → C2RnxEnO.js} +1 -1
  84. package/web/app/immutable/chunks/{DcraaizU.js → C3KgmGxd.js} +1 -1
  85. package/web/app/immutable/chunks/{Dd_KPYBw.js → C6Af0QaF.js} +1 -1
  86. package/web/app/immutable/chunks/{sFief-xo.js → C7MFACZg.js} +1 -1
  87. package/web/app/immutable/chunks/{DMEIbJII.js → C7b3vXLD.js} +1 -1
  88. package/web/app/immutable/chunks/{BMTanQ2Z.js → C8OXQeb2.js} +1 -1
  89. package/web/app/immutable/chunks/{Bb-kpHQF.js → C8PR5GO9.js} +1 -1
  90. package/web/app/immutable/chunks/C9DStJW1.js +1 -0
  91. package/web/app/immutable/chunks/{5az3n8fR.js → C9iwh4F-.js} +1 -1
  92. package/web/app/immutable/chunks/{CwOdvmTo.js → CA5vNvRD.js} +3 -3
  93. package/web/app/immutable/chunks/{CnFZbWXv.js → CA6H1-bp.js} +1 -1
  94. package/web/app/immutable/chunks/{B6m0Dypi.js → CBQrOO2t.js} +1 -1
  95. package/web/app/immutable/chunks/{Bhq56Jsu.js → CCAtqaSn.js} +1 -1
  96. package/web/app/immutable/chunks/{CREbzS7Z.js → CCSQmeuF.js} +1 -1
  97. package/web/app/immutable/chunks/{CCzPC_cB.js → CCyGGl6b.js} +1 -1
  98. package/web/app/immutable/chunks/{CoSEZL3s.js → CDcxODgf.js} +1 -1
  99. package/web/app/immutable/chunks/{CAUJiTuz.js → CDtaIFAl.js} +1 -1
  100. package/web/app/immutable/chunks/{Csqi0oV3.js → CEqrck_t.js} +1 -1
  101. package/web/app/immutable/chunks/{B2Q_FC4n.js → CGJ5yTzR.js} +3 -3
  102. package/web/app/immutable/chunks/{BkcCJyDK.js → CH7HNVC2.js} +1 -1
  103. package/web/app/immutable/chunks/{DLt9OoMP.js → CJItvMq2.js} +1 -1
  104. package/web/app/immutable/chunks/{By2YlE-l.js → CLX81MHV.js} +1 -1
  105. package/web/app/immutable/chunks/{BOPrepKH.js → COmspkQo.js} +1 -1
  106. package/web/app/immutable/chunks/{9qqz3Jr0.js → CPNOsHfj.js} +1 -1
  107. package/web/app/immutable/chunks/{CA-b7pAY.js → CPav-V5t.js} +2 -2
  108. package/web/app/immutable/chunks/{C5fxud9g.js → CPmXQBUf.js} +1 -1
  109. package/web/app/immutable/chunks/{BrL12o40.js → CQClkuxa.js} +1 -1
  110. package/web/app/immutable/chunks/{BQCtWEZ2.js → CRFyRwf-.js} +1 -1
  111. package/web/app/immutable/chunks/{CHUYHKuh.js → CRIoGx5T.js} +1 -1
  112. package/web/app/immutable/chunks/{CbB6SI0i.js → CRm25OCR.js} +1 -1
  113. package/web/app/immutable/chunks/{mFWmuyR-.js → CS6als-f.js} +1 -1
  114. package/web/app/immutable/chunks/{CfDqTHT1.js → CSzXeH2S.js} +1 -1
  115. package/web/app/immutable/chunks/{DHkcvVzr.js → CTkkv_Ih.js} +1 -1
  116. package/web/app/immutable/chunks/{DSs6r6NG.js → CUiYYsIq.js} +1 -1
  117. package/web/app/immutable/chunks/{DR_b4dt8.js → CUmvnJK5.js} +1 -1
  118. package/web/app/immutable/chunks/{DQpGArF7.js → CVx5OKWy.js} +1 -1
  119. package/web/app/immutable/chunks/{DISm8kek.js → CWS5g6aA.js} +1 -1
  120. package/web/app/immutable/chunks/{CGmYraIa.js → CWfjuhY2.js} +1 -1
  121. package/web/app/immutable/chunks/{CRXlvdEs.js → CWtyXmQ4.js} +1 -1
  122. package/web/app/immutable/chunks/{CWXVdpgZ.js → CXygwMkb.js} +1 -1
  123. package/web/app/immutable/chunks/{pXrAh3i2.js → CY56l_5k.js} +1 -1
  124. package/web/app/immutable/chunks/{B1lpukIv.js → CZfU7DE3.js} +1 -1
  125. package/web/app/immutable/chunks/{Ao0jjYj2.js → CbSZGuz9.js} +1 -1
  126. package/web/app/immutable/chunks/{DFKhOU69.js → Cc0763mU.js} +1 -1
  127. package/web/app/immutable/chunks/{DidHgSQp.js → CcBmcC9f.js} +2 -2
  128. package/web/app/immutable/chunks/{D59tCG3q.js → CcMCIG6E.js} +2 -2
  129. package/web/app/immutable/chunks/{qWgJ-CUF.js → CccfsETL.js} +2 -2
  130. package/web/app/immutable/chunks/{BDeGl6ee.js → CdLJ0-dH.js} +1 -1
  131. package/web/app/immutable/chunks/{-CpNnXIW.js → CdtwTpzR.js} +1 -1
  132. package/web/app/immutable/chunks/{DQNtbVVY.js → Cdw7QKyr.js} +3 -3
  133. package/web/app/immutable/chunks/{C9N7yhqm.js → Ce-va2I0.js} +1 -1
  134. package/web/app/immutable/chunks/{CK543FRe.js → CeHL-3WK.js} +1 -1
  135. package/web/app/immutable/chunks/{D5al-p9o.js → CewZlXwy.js} +1 -1
  136. package/web/app/immutable/chunks/{C22cBcHz.js → Ch9YoFhc.js} +1 -1
  137. package/web/app/immutable/chunks/{COofQgO0.js → ChHRVjww.js} +1 -1
  138. package/web/app/immutable/chunks/{D__sU8Ug.js → CiNmS1jZ.js} +1 -1
  139. package/web/app/immutable/chunks/{BlzuDW6O.js → CjrqEuvI.js} +1 -1
  140. package/web/app/immutable/chunks/{D49mWFig.js → CnPYlvZC.js} +1 -1
  141. package/web/app/immutable/chunks/{ByP-EusE.js → CngTEvgU.js} +1 -1
  142. package/web/app/immutable/chunks/{DeFlL2nh.js → CorT7tdR.js} +1 -1
  143. package/web/app/immutable/chunks/{9GL-RXJZ.js → Cp4SiU7R.js} +1 -1
  144. package/web/app/immutable/chunks/{DUTvR2si.js → CpK0xLH4.js} +1 -1
  145. package/web/app/immutable/chunks/CpT48V2z.js +1 -0
  146. package/web/app/immutable/chunks/{jyQWudgn.js → Cq97NFfR.js} +1 -1
  147. package/web/app/immutable/chunks/{BczcQRsN.js → CqRvL4xi.js} +1 -1
  148. package/web/app/immutable/chunks/{DvUsJK3H.js → Ct0fN4Lt.js} +1 -1
  149. package/web/app/immutable/chunks/{DJcR4XQR.js → CtzbB_EQ.js} +1 -1
  150. package/web/app/immutable/chunks/{CjpWOZGa.js → Cu9dGfYE.js} +1 -1
  151. package/web/app/immutable/chunks/{DJqiMUht.js → Cv-fAWZf.js} +1 -1
  152. package/web/app/immutable/chunks/{CU15H7o_.js → Cx394IAH.js} +1 -1
  153. package/web/app/immutable/chunks/{Bx1P9uW7.js → CxR-pcVt.js} +1 -1
  154. package/web/app/immutable/chunks/{CTgYTdXw.js → Cz3WzTlQ.js} +1 -1
  155. package/web/app/immutable/chunks/{23FyIn6O.js → CzK_7_Jd.js} +1 -1
  156. package/web/app/immutable/chunks/{BTXzEcFX.js → D-j7vD5Z.js} +1 -1
  157. package/web/app/immutable/chunks/{CAUle5iU.js → D0DIeAXH.js} +1 -1
  158. package/web/app/immutable/chunks/{CiKoEJ2m.js → D0qhIm1r.js} +1 -1
  159. package/web/app/immutable/chunks/{CeoBhFo7.js → D179JMBI.js} +1 -1
  160. package/web/app/immutable/chunks/{Cgz4dZpP.js → D5ocbEo-.js} +1 -1
  161. package/web/app/immutable/chunks/{fCtMtGYt.js → D6EyZ2rd.js} +1 -1
  162. package/web/app/immutable/chunks/{DoB-G8kB.js → D6H34kDj.js} +1 -1
  163. package/web/app/immutable/chunks/{aWBSU8IQ.js → D7KhILhs.js} +1 -1
  164. package/web/app/immutable/chunks/{CR5XXYcE.js → D8MIwtpL.js} +1 -1
  165. package/web/app/immutable/chunks/{DyreqWqr.js → D8cNe_33.js} +1 -1
  166. package/web/app/immutable/chunks/{CzxEKNiF.js → D9gMMVdB.js} +1 -1
  167. package/web/app/immutable/chunks/{JiW1DfLK.js → DA3tGWzX.js} +1 -1
  168. package/web/app/immutable/chunks/{CLMwPQBQ.js → DDDvNwR-.js} +1 -1
  169. package/web/app/immutable/chunks/{CDh2mZdS.js → DEQnE_KB.js} +1 -1
  170. package/web/app/immutable/chunks/{DcU8bi_n.js → DEsM7h8K.js} +2 -2
  171. package/web/app/immutable/chunks/{DMudvlKI.js → DFNKkiho.js} +4 -4
  172. package/web/app/immutable/chunks/{DcPZfWKB.js → DFRVxmWf.js} +1 -1
  173. package/web/app/immutable/chunks/{Dgo57zmq.js → DHMxSQaO.js} +1 -1
  174. package/web/app/immutable/chunks/{CIxnaBAb.js → DIME5LWK.js} +2 -2
  175. package/web/app/immutable/chunks/{BLtLj2yz.js → DIxibpTv.js} +1 -1
  176. package/web/app/immutable/chunks/{KaOLys0u.js → DJZIHUd7.js} +1 -1
  177. package/web/app/immutable/chunks/{HiIoMspb.js → DLPlXnVY.js} +1 -1
  178. package/web/app/immutable/chunks/{1-MeqddK.js → DL__HI6l.js} +1 -1
  179. package/web/app/immutable/chunks/{k48f0Jn8.js → DMOXpjfz.js} +1 -1
  180. package/web/app/immutable/chunks/{BLfqsc2a.js → DNup87JQ.js} +1 -1
  181. package/web/app/immutable/chunks/{B7pblHOt.js → DON9zoQ1.js} +1 -1
  182. package/web/app/immutable/chunks/{CwqyVbqi.js → DP31pjuo.js} +3 -3
  183. package/web/app/immutable/chunks/{Bpi8OSTE.js → DQe_5JbW.js} +1 -1
  184. package/web/app/immutable/chunks/{BFfRQORP.js → DRMe5Ypb.js} +1 -1
  185. package/web/app/immutable/chunks/{DoJ49Zrl.js → DTNrtzyx.js} +1 -1
  186. package/web/app/immutable/chunks/{Q1bO23Hj.js → DTbyG794.js} +1 -1
  187. package/web/app/immutable/chunks/{DWRtOXBU.js → DTco_120.js} +1 -1
  188. package/web/app/immutable/chunks/{S3jMTv3a.js → DUcJILSg.js} +1 -1
  189. package/web/app/immutable/chunks/{Cxmepjfl.js → DWjpzYNk.js} +1 -1
  190. package/web/app/immutable/chunks/{BFHmbbvG.js → DY9w61PC.js} +6 -6
  191. package/web/app/immutable/chunks/{CiRkFhK8.js → DYzxLuOL.js} +1 -1
  192. package/web/app/immutable/chunks/{CKTB5KRw.js → D_R1vNH8.js} +1 -1
  193. package/web/app/immutable/chunks/{DF54qNJU.js → D_YMc8vN.js} +1 -1
  194. package/web/app/immutable/chunks/{BGeImWEk.js → D_jEt7ej.js} +1 -1
  195. package/web/app/immutable/chunks/{BVwQph9_.js → DaTkisKB.js} +1 -1
  196. package/web/app/immutable/chunks/{DxmPtFKv.js → DaTwSOqs.js} +1 -1
  197. package/web/app/immutable/chunks/{DE8II0cx.js → DbB491_u.js} +1 -1
  198. package/web/app/immutable/chunks/{BWQPB65O.js → DbPBKS19.js} +1 -1
  199. package/web/app/immutable/chunks/{BHgSQJqT.js → Dbqo6rfT.js} +1 -1
  200. package/web/app/immutable/chunks/{TPru2I57.js → DcrCEeFN.js} +1 -1
  201. package/web/app/immutable/chunks/{0R5VEpaM.js → DdU2snxg.js} +4 -4
  202. package/web/app/immutable/chunks/{CUZpLDKB.js → DdYVblGk.js} +1 -1
  203. package/web/app/immutable/chunks/DejjV5ft.js +1 -0
  204. package/web/app/immutable/chunks/{D3tqOSzT.js → DepS1LOg.js} +1 -1
  205. package/web/app/immutable/chunks/{DW8fwVBf.js → DfINI0LK.js} +1 -1
  206. package/web/app/immutable/chunks/{QeZhJHLb.js → Dgvdn_ax.js} +1 -1
  207. package/web/app/immutable/chunks/{CktgkomQ.js → DhXSKt_a.js} +1 -1
  208. package/web/app/immutable/chunks/{B7hWIBzm.js → Dhs7RSq9.js} +1 -1
  209. package/web/app/immutable/chunks/{CyinuwPx.js → DivmpPFQ.js} +1 -1
  210. package/web/app/immutable/chunks/{DOhHP999.js → DjAFd7Fr.js} +1 -1
  211. package/web/app/immutable/chunks/{l7sDKa65.js → Dk9lUzSs.js} +1 -1
  212. package/web/app/immutable/chunks/{C3jMXj_V.js → DkQdSPDN.js} +1 -1
  213. package/web/app/immutable/chunks/{DEr2A_-h.js → DlnCrS3y.js} +2 -2
  214. package/web/app/immutable/chunks/{DBYe3Dcp.js → DmtYsVlu.js} +2 -2
  215. package/web/app/immutable/chunks/{BM2ubpAw.js → DoFGyuPK.js} +1 -1
  216. package/web/app/immutable/chunks/{C5tJUrGJ.js → DotCIVLI.js} +1 -1
  217. package/web/app/immutable/chunks/{BOVldAsb.js → Dp0kLnIL.js} +1 -1
  218. package/web/app/immutable/chunks/{Dk7Kxi97.js → DqCgFTqN.js} +1 -1
  219. package/web/app/immutable/chunks/{uyQciu7h.js → DuFY1gwd.js} +4 -4
  220. package/web/app/immutable/chunks/{BT8mEFV6.js → DuYgHIqV.js} +1 -1
  221. package/web/app/immutable/chunks/{BJCm9MUD.js → Dusq2uGc.js} +1 -1
  222. package/web/app/immutable/chunks/{zXLHCuiE.js → DvEcqVUt.js} +1 -1
  223. package/web/app/immutable/chunks/{B28HQLvX.js → DvdITStP.js} +1 -1
  224. package/web/app/immutable/chunks/{Dt_7lHy8.js → Dvzvnzzu.js} +1 -1
  225. package/web/app/immutable/chunks/{Cq8_4net.js → DznISJQO.js} +1 -1
  226. package/web/app/immutable/chunks/{DhTLwmro.js → EK8GFErl.js} +1 -1
  227. package/web/app/immutable/chunks/{C2tSFTTb.js → FS0kRzLP.js} +1 -1
  228. package/web/app/immutable/chunks/Fcr7AvC-.js +1 -0
  229. package/web/app/immutable/chunks/{Byobtdo1.js → G_kSYo3Y.js} +1 -1
  230. package/web/app/immutable/chunks/{BKKCpqXK.js → H8hIaDaV.js} +2 -2
  231. package/web/app/immutable/chunks/{CaX8Mme7.js → KPBWxwIA.js} +1 -1
  232. package/web/app/immutable/chunks/{GwtGeFMJ.js → KRACSBb9.js} +1 -1
  233. package/web/app/immutable/chunks/{DupTZXsI.js → KvfW-q1N.js} +1 -1
  234. package/web/app/immutable/chunks/{D5tDAzIo.js → MFTfhUYi.js} +1 -1
  235. package/web/app/immutable/chunks/{BS9WBIBb.js → O5ZlQHf9.js} +1 -1
  236. package/web/app/immutable/chunks/{ChYLETZB.js → OqslD7bF.js} +1 -1
  237. package/web/app/immutable/chunks/{DXXFBdjF.js → OuI4JmWC.js} +1 -1
  238. package/web/app/immutable/chunks/{BXwdb0J5.js → PejVYY2W.js} +3 -3
  239. package/web/app/immutable/chunks/{C9wxB2bb.js → QKQvZF-2.js} +2 -2
  240. package/web/app/immutable/chunks/R3fZBk-k.js +1 -0
  241. package/web/app/immutable/chunks/{BNYZa6GV.js → Rq6GuI3F.js} +1 -1
  242. package/web/app/immutable/chunks/{BcdTbj6d.js → RqSv1iWX.js} +1 -1
  243. package/web/app/immutable/chunks/{Xgzr3BTD.js → T6UBEOFc.js} +1 -1
  244. package/web/app/immutable/chunks/{BpezAJRw.js → TdGvVwuC.js} +1 -1
  245. package/web/app/immutable/chunks/{DSZbBNDD.js → Tgw7Kdvt.js} +1 -1
  246. package/web/app/immutable/chunks/{P7zPRuFC.js → U5o8u-di.js} +1 -1
  247. package/web/app/immutable/chunks/{BUSErGiB.js → UWtWVoQE.js} +1 -1
  248. package/web/app/immutable/chunks/{BCLYeYwk.js → W7uazUja.js} +1 -1
  249. package/web/app/immutable/chunks/{CDUYzZ2W.js → WWDClKTE.js} +1 -1
  250. package/web/app/immutable/chunks/{DJSvqrCI.js → WWq3hijy.js} +1 -1
  251. package/web/app/immutable/chunks/{B9Nn4kQr.js → Xr-aTNRN.js} +1 -1
  252. package/web/app/immutable/chunks/{DlljGo_I.js → Y8hdNZSZ.js} +1 -1
  253. package/web/app/immutable/chunks/{Dh-DCh2Y.js → YsAO4v_N.js} +1 -1
  254. package/web/app/immutable/chunks/{BB2vaoZ2.js → ZIePA90q.js} +3 -3
  255. package/web/app/immutable/chunks/{C-nTKxY9.js → ZfkZCfTr.js} +1 -1
  256. package/web/app/immutable/chunks/{CLvqghA8.js → ZmAQurQV.js} +1 -1
  257. package/web/app/immutable/chunks/{BU3y3Xes.js → _IjN0Lbt.js} +1 -1
  258. package/web/app/immutable/chunks/{DnzDw_9l.js → a3O-Ns1M.js} +1 -1
  259. package/web/app/immutable/chunks/{Em5CdgqH.js → aoX2v33V.js} +4 -4
  260. package/web/app/immutable/chunks/{C00PRSTi.js → b7gnFN68.js} +1 -1
  261. package/web/app/immutable/chunks/{iQDlfKDR.js → cD292w1o.js} +1 -1
  262. package/web/app/immutable/chunks/{COo5pTrI.js → ciQFmiC4.js} +1 -1
  263. package/web/app/immutable/chunks/{ClaP_sir.js → dvKmN4h6.js} +1 -1
  264. package/web/app/immutable/chunks/{D7QFmXLb.js → f0WUpIfB.js} +1 -1
  265. package/web/app/immutable/chunks/{Crey45Oa.js → f5b-J-bi.js} +1 -1
  266. package/web/app/immutable/chunks/{ZX798KkU.js → gKdztwD8.js} +1 -1
  267. package/web/app/immutable/chunks/{BdhKX9ZN.js → gNR_yDDX.js} +1 -1
  268. package/web/app/immutable/chunks/{BAMJ8Hnj.js → gX9ZnDRD.js} +1 -1
  269. package/web/app/immutable/chunks/{BVUW22uN.js → gXHlCg5O.js} +1 -1
  270. package/web/app/immutable/chunks/{axwUS21u.js → ghzRmqKs.js} +1 -1
  271. package/web/app/immutable/chunks/{FM3MDwzB.js → gocm4HZf.js} +1 -1
  272. package/web/app/immutable/chunks/{SdVpHK7d.js → i2Q0D3-m.js} +1 -1
  273. package/web/app/immutable/chunks/{CdTSfppl.js → iCTyujt5.js} +1 -1
  274. package/web/app/immutable/chunks/{IxxdIKNN.js → iMqZaR5X.js} +1 -1
  275. package/web/app/immutable/chunks/{BT5iyspK.js → iNacp7Sr.js} +1 -1
  276. package/web/app/immutable/chunks/{BjGqF2I6.js → iViWtmHm.js} +1 -1
  277. package/web/app/immutable/chunks/{D3JNbQ4D.js → jphlY6bT.js} +1 -1
  278. package/web/app/immutable/chunks/{CEA7jD1C.js → koUs6Gjt.js} +1 -1
  279. package/web/app/immutable/chunks/{rwibDzZr.js → l3Y4i65_.js} +1 -1
  280. package/web/app/immutable/chunks/{BTvJ4T_4.js → lK1e5NlM.js} +1 -1
  281. package/web/app/immutable/chunks/{Cd-qmx8U.js → oM2TfoNE.js} +1 -1
  282. package/web/app/immutable/chunks/{Di3gErxh.js → pQalwNsE.js} +1 -1
  283. package/web/app/immutable/chunks/{DWBUvNGh.js → r4dmBxo_.js} +1 -1
  284. package/web/app/immutable/chunks/{BU9me3Pg.js → rmHQzJ1a.js} +1 -1
  285. package/web/app/immutable/chunks/s_T1Uukt.js +1 -0
  286. package/web/app/immutable/chunks/{Cn-Afla1.js → u_H5ILVa.js} +1 -1
  287. package/web/app/immutable/chunks/{bJK6npyT.js → vJJtTADX.js} +1 -1
  288. package/web/app/immutable/chunks/{BSZu3BUb.js → vq6mxGLA.js} +1 -1
  289. package/web/app/immutable/chunks/{B3T1oiJl.js → x4bPxhVW.js} +1 -1
  290. package/web/app/immutable/chunks/{Cn4-Fvkn.js → x9IQ_8UO.js} +1 -1
  291. package/web/app/immutable/chunks/{n0_jgWL7.js → z2uEgbos.js} +1 -1
  292. package/web/app/immutable/entry/{app.B0HiWR5T.js → app.Dh0FLLBd.js} +3 -3
  293. package/web/app/immutable/entry/start.IMZH36aM.js +1 -0
  294. package/web/app/immutable/nodes/{0.5oa9JC3V.js → 0.BlcS-Hyh.js} +1 -1
  295. package/web/app/immutable/nodes/{1.dLY473QL.js → 1.BMTchPFq.js} +1 -1
  296. package/web/app/immutable/nodes/{10.Dg3iEVmH.js → 10.CfDNhRgU.js} +14 -14
  297. package/web/app/immutable/nodes/{11.PFTrUEsb.js → 11.CxSRkGHD.js} +1 -1
  298. package/web/app/immutable/nodes/{12.DUMat2GN.js → 12.B8s5KuaN.js} +1 -1
  299. package/web/app/immutable/nodes/{13.BEiznOPk.js → 13.J8EpPA9A.js} +1 -1
  300. package/web/app/immutable/nodes/{14.DFolVj6c.js → 14.C5TLXVit.js} +3 -3
  301. package/web/app/immutable/nodes/{15.CGEsAjgd.js → 15.DCpm4k7K.js} +1 -1
  302. package/web/app/immutable/nodes/{16.cptOJ-f9.js → 16.T0PyvW1V.js} +1 -1
  303. package/web/app/immutable/nodes/{17.BVn1LtfR.js → 17.pi-yfOoM.js} +1 -1
  304. package/web/app/immutable/nodes/{18.BLC8YWHJ.js → 18.CTVha2lA.js} +1 -1
  305. package/web/app/immutable/nodes/{19.CqJycQsd.js → 19.C2T81__z.js} +2 -2
  306. package/web/app/immutable/nodes/{2.BaR1WF3o.js → 2.1iJIAnw5.js} +4 -4
  307. package/web/app/immutable/nodes/{20.g9As4rvG.js → 20.BHRuLw4-.js} +1 -1
  308. package/web/app/immutable/nodes/{3.DwF_25Xt.js → 3.BDDby9Gq.js} +1 -1
  309. package/web/app/immutable/nodes/{4.ttOSy2Tq.js → 4.utfN0vdd.js} +1 -1
  310. package/web/app/immutable/nodes/{5.BVpoghsD.js → 5.Z6w8za6J.js} +1 -1
  311. package/web/app/immutable/nodes/6.w_k_ibWb.js +5 -0
  312. package/web/app/immutable/nodes/{7.BO56ByN2.js → 7.I-q-I1bs.js} +1 -1
  313. package/web/app/immutable/nodes/{8.CPtVgnSI.js → 8.BgjULPKU.js} +1 -1
  314. package/web/app/immutable/nodes/9.DOkmR0cl.js +14 -0
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +49 -49
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/BaXq2aUL.js +0 -411
  319. package/web/app/immutable/chunks/Bheykcr9.js +0 -1
  320. package/web/app/immutable/chunks/C8E14ldW.js +0 -1
  321. package/web/app/immutable/chunks/CDVPwJHE.js +0 -1
  322. package/web/app/immutable/chunks/CtfEuoOH.js +0 -1
  323. package/web/app/immutable/chunks/DRuLniWc.js +0 -1
  324. package/web/app/immutable/chunks/T9rMC0YB.js +0 -1
  325. package/web/app/immutable/chunks/jlu1ZSD8.js +0 -1
  326. package/web/app/immutable/entry/start.BFcXwo9Y.js +0 -1
  327. package/web/app/immutable/nodes/6.D6pOrTxH.js +0 -5
  328. package/web/app/immutable/nodes/9.cl9L6J-I.js +0 -14
@@ -0,0 +1 @@
1
+ import{bm as r}from"./Fcr7AvC-.js";import{JH as s,n_ as p,Cc as N,yJ as f,q$ as F,nZ as T,s2 as m,hu as U,LU as B,o as H,mZ as V,hq as k,F as W}from"./D0qhIm1r.js";import{w as Y}from"./BwweojP5.js";import{cx as z,cf as $,cS as G,co as h,cc as M,cJ as R,d0 as C,c$ as K,dI as I,cZ as Z,c_ as J,d2 as X}from"./cD292w1o.js";const Q={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor",dsh:"dsh"},ee=new Map(Object.entries(Q).map(([e,t])=>[t,e]));function te(e,t){const o=ee.get(t);return o===void 0?void 0:e?.providers[o]}function De(e,t){const o=te(e,t);return o?.available===!0&&O(t,o.authenticated)}const je=new Set(["claude-code"]);function O(e,t){return t!==!1}const y=new WeakMap,qe=s.createSelector((e,t)=>e.agentAvailability.providerStatusMap[t]?.viaNpx===!0),Ne=s.createSelector((e,t)=>{const o=e.agentAvailability.providerStatusMap[t];return o?.available===!0&&o.authenticated!==!0}),w=s.createSelector(e=>{if(!z.select(e))return e.agentAvailability.providerStatusMap;const t=e.providerCatalog?.providers;if(!t)return{};let o=y.get(t);return o||(o=Object.fromEntries(p(t).map(n=>[n.id,{available:!0}])),y.set(t,o)),o}),Fe=s.createSelector(e=>e.agentAvailability.providerLoadingMap),Te=s.createSelector(e=>e.agentAvailability.providerCheckEpochMap),re=s.createSelector(e=>e.agentAvailability.hasCheckedOnce),Ue=s.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),Be=s.createSelector(e=>e.agentAvailability.npxStatus),He=s.createSelector(e=>e.agentAvailability.hiddenProviders),Ve=s.createSelector(e=>e.agentAvailability.discoveryError),We=s.createSelector(e=>e.agentAvailability.discoveryRevision),Ye=s.createSelector(e=>e.agentAvailability.refreshModelsPending),ze=s.createSelector(e=>e.agentAvailability.refreshModelsRevision),$e=s.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&$.select(e)==="owner"?G.select(e):null),Ge=s.createSelector((e,t)=>p(e.providerSettings.requests).filter(o=>o.sessionId===t)),Ke=s.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Ze=s.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),Je=s.createSelector(e=>e.providerSettings.paths),Xe=s.createSelector(e=>e.providerSettings.pathsRevision),g=s.createSelector(e=>h.select(e)?M.select(e)?.defaultProviderId??"":e.model.defaultProviderId);s.createSelector((e,t)=>g.select(e)===t);const oe=s.createSelector(e=>h.select(e)?Object.fromEntries((M.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),A=s.createSelector((e,t)=>{if(h.select(e))return M.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return N(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),L=s.createSelector(e=>{if(h.select(e))return M.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?p(e.providerCatalog.providers):[],n=new Set(o.filter(c=>A.select(e,c.id)).map(c=>c.id)),i=g.select(e),a=f(i);a&&t[a]!==!1&&n.add(a);for(const[c,l]of Object.entries(t))l&&n.add(c);return[...n]});function ne(e,t){const o=C.select(e,t);return h.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const S=s.createSelector(e=>{const t=w.select(e);return L.select(e).filter(o=>!ne(e,o)&&t[o]?.available===!0)}),Qe=s.createSelector((e,t)=>{const o=w.select(e),n=R.select(e,t);return S.select(e).filter(i=>R.select(e,i)!==n&&A.select(e,i)&&O(i,o[i]?.authenticated))}),et=s.createSelector(e=>re.select(e)?S.select(e):L.select(e)),tt=s.createSelector(e=>{const t=f(g.select(e));return S.select(e).includes(t)}),rt=s.createSelector(e=>e.providerSettings.fastMode),ot=s.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[n,i]of Object.entries(t?.pending??{}))o[n]=i.enabled;return o}),nt=s.createSelector(e=>Object.values(u(e).defaults).some(t=>t.remoteLaunch!==void 0)),st=s.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>C.select(e,t)?.supportsFastMode===!0):[]),u=e=>e.providerSettings?.profiles??F,at=s.createSelector(e=>K.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),it=s.createSelector((e,t)=>p(u(e).items).filter(o=>o.baseProviderId===t)),ct=s.createSelector(e=>[...new Set(p(u(e).items).map(t=>t.baseProviderId))]),lt=s.createSelector(e=>u(e).defaults),dt=s.createSelector((e,t)=>u(e).defaults[t]),ut=s.createSelector((e,t)=>T(u(e).items,t)),_t=s.createSelector(e=>u(e).revision),pt=s.createSelector(e=>u(e).loadStatus),ft=s.createSelector(e=>u(e).status),ht=s.createSelector(e=>u(e).activation),vt=s.createSelector(e=>Object.fromEntries(p(u(e).mutations).map(t=>[t.id,t]))),se={},mt=s.createSelector(e=>u(e).identity??se),ae={},Mt=s.createSelector(e=>u(e).setups??ae),bt=s.createSelector(e=>(e.providerSettings?.sessions.length??0)>0);function E(e){const t=e.trim();if(!t.startsWith("tc"))return!1;const o=t.slice(2);if(o.length<50||o.length%4===1||!/^[A-Za-z0-9_-]+$/.test(o))return!1;const n=atob(o.slice(0,4).replace(/-/g,"+").replace(/_/g,"/")).charCodeAt(0);return n>=161&&n<=187||n===191}function gt(e){if(!e||typeof e!="object")return null;const t=e;for(const o of[t.collaborationName,t.prettyHostname,t.hostname])if(typeof o=="string"&&v(o))return v(o);return null}function St(e){return[...v(e)].length<=100&&!/\p{Cc}/u.test(e)}function v(e){return e.replace(/^\p{White_Space}+|\p{White_Space}+$/gu,"")}function ie(e){const t=e.label.trim(),o=e.host&&e.port!=null?`${e.host}:${e.port}`:"";return(t&&t!==o?t:"")||e.hostname?.trim()||t||o}function ce(e){return r.layout_daemonStatus_localConnection_label()}function Pt(e,t){return e.isLocal?ce():ie(e)}function le(e){const t=v(e.hostname??"");return t||(E(e.label)?r.connection_unknownHost_label():e.label)}function kt(e){const t=e.label.trim();return!t||E(t)?null:t!==le(e)?t:null}function Rt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.defaultRemoteLaunch||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function yt(e,t,o){if(m(e)){const n=t.find(i=>i.providerRef===e);return n?.remoteCompatible!==!1?null:n.remoteIncompatibility??{reason:"unknown",keys:[]}}return null}const de=1440*60*1e3;function x(e,t){if(!e?.capabilities)return"missing";const o=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(o)&&t-o>de?"stale":"fresh"}function Ct(e,t,o){if(!e||x(e,o)!=="fresh")return;const n=f(t),i=e.capabilities?.providers.find(a=>a.id===n);return i&&i.models.length>0?i.models:void 0}function It(e,t,o){const n=f(t),i=new Set;for(const a of e){if(a.state==="revoked"||x(a,o)!=="fresh")continue;const c=a.capabilities?.providers.find(l=>l.id===n);if(!(!c||!_e(c)))for(const l of c.models)i.add(l)}return[...i]}const ue=new Set(["cli-missing","prerequisite-missing"]);function _e(e){return e.visible!==!1&&!ue.has(e.status)}const pe=new Set(["signed-out","auth-failed"]);function fe(e){return pe.has(e)}function he(e,t){if(m(t))return!1;const o=f(t),n=e?.capabilities?.providers.find(i=>i.id===o);return!!n&&fe(n.status)}function D(e,t){return(t.defaultRemoteLaunch?t.defaultRemoteLaunch[e]==="send":!t.defaultRemoteIncompatibility?.[e])&&t.defaultHasOverrides?.[e]!==!1}function ve(e,t,o){return o.defaultRemoteLaunch?.[t]==="refused"?!1:!e.cloud&&!he(e,t)}function Ot(e){const{machine:t,providerRef:o}=e;return m(o)||ve(t,o,e)||D(o,e)?null:e.catalogProfiles.find(n=>n.baseProviderId===o&&n.remoteCompatible===!0)??null}const me="https://e2b.dev/dashboard",Me="https://app.northflank.com",be="https://www.agent37.com/dashboard/cloud",ge="https://vercel.com/dashboard";function wt(e="e2b"){return e==="vercel"?ge:e==="northflank"?Me:e==="agent37"?be:me}function Se(e){switch(e){case"northflank":return{keyRejected:r.cloudMachines_northflank_state_tokenRejected_label(),unreachable:r.cloudMachines_northflank_state_unreachable_label(),ownerOnly:r.cloudMachines_northflank_error_ownerOnly(),saved:r.cloudMachines_northflank_saved_toast(),listTitle:r.cloudMachines_northflank_services_title(),dashboardOpen:r.cloudMachines_northflank_dashboardOpen_label(),deleteTitle:r.cloudMachines_northflank_delete_confirmTitle,deleteDescription:r.cloudMachines_northflank_delete_confirm_description(),creating:r.cloudMachines_northflank_start_creating(),startFailed:r.cloudMachines_northflank_startFailure_title(),startUnknown:r.cloudMachines_northflank_startFailure_unknown_cause()};case"agent37":return{keyRejected:r.cloudMachines_state_keyRejected_label(),unreachable:r.cloudMachines_agent37_state_unreachable_label(),ownerOnly:r.cloudMachines_agent37_error_ownerOnly(),saved:r.cloudMachines_agent37_saved_toast(),listTitle:r.cloudMachines_agent37_instances_title(),dashboardOpen:r.cloudMachines_agent37_dashboardOpen_label(),deleteTitle:r.cloudMachines_agent37_delete_confirmTitle,deleteDescription:r.cloudMachines_agent37_delete_confirm_description(),creating:r.cloudMachines_agent37_start_creating(),startFailed:r.cloudMachines_agent37_startFailure_title(),startUnknown:r.cloudMachines_agent37_startFailure_unknown_cause()};case"vercel":return{keyRejected:r.cloudMachines_vercel_state_tokenRejected_label(),unreachable:r.cloudMachines_vercel_state_unreachable_label(),ownerOnly:r.cloudMachines_vercel_error_ownerOnly(),saved:r.cloudMachines_vercel_saved_toast(),listTitle:r.cloudMachines_vercel_sandboxes_title(),dashboardOpen:r.cloudMachines_vercel_dashboardOpen_label(),deleteTitle:r.cloudMachines_delete_confirmTitle,deleteDescription:r.cloudMachines_vercel_delete_confirm_description(),creating:r.cloudMachines_vercel_start_creating(),startFailed:r.cloudMachines_vercel_startFailure_title(),startUnknown:r.cloudMachines_vercel_startFailure_unknown_cause()};default:return{keyRejected:r.cloudMachines_state_keyRejected_label(),unreachable:r.cloudMachines_state_unreachable_label(),ownerOnly:r.cloudMachines_error_ownerOnly(),saved:r.cloudMachines_saved_toast(),listTitle:r.cloudMachines_sandboxes_title(),dashboardOpen:r.cloudMachines_dashboardOpen_label(),deleteTitle:r.cloudMachines_delete_confirmTitle,deleteDescription:r.cloudMachines_delete_confirm_description(),creating:r.cloudMachines_start_creating(),startFailed:r.cloudMachines_startFailure_title(),startUnknown:r.cloudMachines_startFailure_unknown_cause()}}}function At(e){return e==="vm"?r.cloudMachines_agent37_form_type_vm():r.cloudMachines_agent37_form_type_default()}function Lt(e){return e==="eu"?r.cloudMachines_agent37_region_eu():e==="ap-south"?r.cloudMachines_agent37_region_apSouth():r.cloudMachines_agent37_region_us()}const Pe=/^E2B\s*·\s*/u;function Et(e,t){const o=t?`${t} · `:null;return(o&&e.name.startsWith(o)?e.name.slice(o.length):e.name.replace(Pe,"")).trim()||e.name}function xt(e){const t=U(e);return t?r.cloudMachines_size_label({vcpu:String(t.vcpu),memory:String(t.memoryGiB)}):e}function Dt(e,t,o){const n=e.cloud;if(!n)return 0;const i=n.state==="running"&&t>0?Math.max(0,(o-t)/1e3):0;return Math.floor(n.runningSeconds+i)}function jt(e){const t=Math.floor(e/60);if(t<1)return r.cloudMachines_uptime_underMinute();if(t<60)return r.cloudMachines_uptime_minutes({minutes:String(t)});const o=Math.floor(t/60),n=t%60;return n===0?r.cloudMachines_uptime_hours({hours:String(o)}):r.cloudMachines_uptime_hoursMinutes({hours:String(o),minutes:String(n)})}const ke=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2});function qt(e){const t=V(e,3600);return t===null?null:r.cloudMachines_size_hourly({amount:ke.format(t)})}function j(e){try{return new URL(e).host||e}catch{return e}}function Nt(e){const t=e.find(o=>o.cloud?.state==="running")?.cloud?.relayUrl;return t?r.cloudMachines_relay_host({host:j(t)}):null}function Ft(e){const t=a=>e.filter(c=>c.cloud?.state===a).length,o=t("running"),n=t("paused"),i=[o>0?r.cloudMachines_sandboxes_running_count({count:String(o)}):null,n>0?r.cloudMachines_sandboxes_paused_count({count:String(n)}):null].filter(a=>a!==null);return i.length>0?i.join(" · "):null}function Tt(e,t){const o=new Map;for(const a of e){const c=a.cloud?.workspaceId,l=c?t(c):null,_=c&&l?c:"";let d=o.get(_);d||(d={key:_,name:l??r.cloudMachines_sandboxes_otherWorkspace(),sandboxes:[]},o.set(_,d)),d.sandboxes.push(a)}const n=a=>+(a.cloud?.state==="paused"),i=a=>Number(a.sandboxes.every(c=>n(c)));for(const a of o.values())a.sandboxes.sort((c,l)=>n(c)-n(l)||(l.cloud?.startedAt??"").localeCompare(c.cloud?.startedAt??"")||c.id.localeCompare(l.id));return[...o.values()].sort((a,c)=>i(a)-i(c)||+(a.key==="")-+(c.key==="")||a.name.localeCompare(c.name,void 0,{sensitivity:"base"})||a.key.localeCompare(c.key))}function Re(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_northflank_error_profileRequired_title(),description:r.cloudMachines_northflank_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_northflank_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_northflank_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_northflank_error_quotaRate_description():r.cloudMachines_northflank_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_northflank_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_northflank_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_northflank_error_tokenRejected_title(),description:r.cloudMachines_northflank_error_tokenRejected_description()};case"project-missing":return t(r.cloudMachines_northflank_error_projectMissing_description());case"permission-denied":return{title:r.cloudMachines_northflank_error_permissionDenied_title(),description:r.cloudMachines_northflank_error_permissionDenied_description()};case"template-missing":return t(r.cloudMachines_northflank_error_imageMissing_description());case"sandbox-lost":return{title:r.cloudMachines_northflank_error_serviceLost_title(),description:r.cloudMachines_northflank_error_serviceLost_description()};case"bootstrap-failed":return t(r.cloudMachines_northflank_error_bootstrapFailed_description());default:return t(r.cloudMachines_northflank_error_apiError_description())}}}}function ye(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_agent37_error_profileRequired_title(),description:r.cloudMachines_agent37_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_agent37_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_agent37_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_agent37_error_quotaRate_description():r.cloudMachines_agent37_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_agent37_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_agent37_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_agent37_error_keyRejected_title(),description:r.cloudMachines_agent37_error_keyRejected_description()};case"permission-denied":return{title:r.cloudMachines_agent37_error_permissionDenied_title(),description:r.cloudMachines_agent37_error_permissionDenied_description()};case"no-capacity":return{title:r.cloudMachines_agent37_error_noCapacity_title(),description:r.cloudMachines_agent37_error_noCapacity_description()};case"template-missing":return t(r.cloudMachines_agent37_error_templateMissing_description());case"sandbox-lost":return{title:r.cloudMachines_agent37_error_instanceLost_title(),description:r.cloudMachines_agent37_error_instanceLost_description()};case"bootstrap-failed":return t(r.cloudMachines_agent37_error_bootstrapFailed_description());default:return t(r.cloudMachines_agent37_error_apiError_description())}}}}function Ce(e){switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_vercel_error_profileRequired_title(),description:r.cloudMachines_vercel_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_vercel_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_vercel_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_vercel_error_quotaRate_description():r.cloudMachines_vercel_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=o=>({title:r.cloudMachines_vercel_error_unavailable_title(),description:o});switch(e.reason){case"not-configured":return t(r.cloudMachines_vercel_error_notConfigured_description());case"key-rejected":return{title:r.cloudMachines_vercel_error_keyRejected_title(),description:r.cloudMachines_vercel_error_keyRejected_description()};case"project-missing":return t(r.cloudMachines_vercel_error_projectMissing_description());case"permission-denied":return{title:r.cloudMachines_vercel_error_permissionDenied_title(),description:r.cloudMachines_vercel_error_permissionDenied_description()};case"template-missing":return t(r.cloudMachines_vercel_error_imageMissing_description());case"sandbox-lost":return{title:r.cloudMachines_vercel_error_sandboxLost_title(),description:r.cloudMachines_vercel_error_sandboxLost_description()};case"bootstrap-failed":return t(r.cloudMachines_vercel_error_bootstrapFailed_description());default:return t(r.cloudMachines_vercel_error_apiError_description())}}}}function Ut(e,t){if(e.code==="cloud-machine-unavailable"&&e.reason==="relay-unreachable")return{title:r.cloudMachines_error_relayUnreachable_title(),description:e.relayUrl?r.cloudMachines_error_relayUnreachable_description({host:j(e.relayUrl)}):r.cloudMachines_error_relayUnreachable_noHost_description()};const o=e.provider??t;if(o==="northflank")return Re(e);if(o==="agent37")return ye(e);if(o==="vercel")return Ce(e);switch(e.code){case"cloud-profile-required":return{title:r.cloudMachines_error_profileRequired_title(),description:r.cloudMachines_error_profileRequired_description()};case"cloud-quota":return{title:r.cloudMachines_error_quota_title(),description:e.limit==="plan"?r.cloudMachines_error_quotaPlan_description():e.limit==="rate"?r.cloudMachines_error_quotaRate_description():r.cloudMachines_error_quotaConcurrency_description()};case"cloud-machine-unavailable":switch(e.reason){case"not-configured":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_notConfigured_description()};case"key-rejected":return{title:r.cloudMachines_error_keyRejected_title(),description:r.cloudMachines_error_keyRejected_description()};case"template-missing":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_templateMissing_description()};case"sandbox-lost":return{title:r.cloudMachines_error_sandboxLost_title(),description:r.cloudMachines_error_sandboxLost_description()};case"bootstrap-failed":return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_bootstrapFailed_description()};default:return{title:r.cloudMachines_error_unavailable_title(),description:r.cloudMachines_error_apiError_description()}}}}function Bt(e,t,o){const n=e.trim();if(!n)return r.cloudMachines_form_name_required();if(B(n)>H||/[\u0000-\u001f\u007f]/u.test(n))return r.cloudMachines_form_name_invalid();const i=n.toLowerCase();return t.some(a=>a.id!==o&&a.name.trim().toLowerCase()===i)?r.cloudMachines_form_name_taken():null}const Ie=s.createSelector(e=>Y.select(e)&&e.remoteMachines?.supported===!0&&e.cloudMachines?.supported===!0),Ht=s.createSelector(e=>{const t=e.cloudMachines?.providerKinds??["e2b"];return e.cloudMachines?.entries===!0?t:t.filter(o=>o==="e2b")}),Vt=s.createSelector(e=>e.cloudMachines?.diskSettings??{}),Wt=s.createSelector(e=>e.cloudMachines?.entries===!0);function q(e){return Object.values(e.cloudMachines?.providers??{}).sort((t,o)=>t.configuredAt.localeCompare(o.configuredAt)||t.name.localeCompare(o.name))}const Yt=s.createSelector(q),zt=s.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).sort((t,o)=>(t.cloud?.startedAt??"").localeCompare(o.cloud?.startedAt??""))),$t=s.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).filter(t=>t.cloud?.state==="paused").length);function Oe(e,t){const o=t.cloud;return!o?.agentId||!o.workspaceId||!I.select(e,o.workspaceId)?null:{workspaceId:o.workspaceId,agentId:o.agentId}}const Gt=s.createSelector((e,t)=>{const o={},n={};for(const i of t){const a=i.cloud?.workspaceId;if(a&&!(a in o)){const c=I.select(e,a);o[a]=c?.title||c?.name||null}n[i.id]=Oe(e,i)}return{workspaceNames:o,agentLinks:n}}),Kt=s.createSelector(e=>e.cloudMachines?.readAt??{}),Zt=s.createSelector(e=>e.cloudMachines?.pending??{}),Jt=s.createSelector(e=>e.cloudMachines?.failures??{}),Xt=s.createSelector(e=>e.cloudMachines?.validated??null);function Qt(e){if(!Ie.select(e))return null;const t=q(e);if(t.length===0)return null;const o=e.cloudMachines?.entries===!0;return t.map(n=>({cloudMachineId:n.id,label:n.provider==="e2b"?o&&(t.length>1||n.name.trim().toLowerCase()!=="e2b")?r.cloudMachines_startOn_entry_label({name:n.name}):r.cloudMachines_startOn_label():n.name.trim().toLowerCase()===k(n.provider).toLowerCase()?k(n.provider):n.provider==="northflank"?r.cloudMachines_startOn_northflank_label({name:n.name}):n.provider==="agent37"?r.cloudMachines_startOn_agent37_label({name:n.name}):r.cloudMachines_startOn_vercel_label({name:n.name}),unavailableReason:n.state==="key-rejected"?Se(n.provider).keyRejected:null,needsProfile:!we(e,n)}))}function we(e,t){const o=oe.select(e),n=e.providerSettings?.profiles?.defaults??{},i={defaultRemoteLaunch:J.select(e),defaultRemoteIncompatibility:Z.select(e)},a=d=>o[d]!==!1&&(t.agentProviders.length===0||t.agentProviders.includes(d)),c=new Set([...t.agentProviders,...Object.keys(i.defaultRemoteLaunch??{})]);for(const d of c)if(a(d)&&(n[d]?.env.length??0)>0&&D(d,i))return!0;const l=e.providerSettings?.profiles?.items,_=l?p(l):[];return X.select(e).some(d=>{if(d.remoteCompatible!==!0||!a(d.baseProviderId))return!1;const P=_.find(b=>b.providerRef===d.providerRef);return!P||P.env.some(b=>b.kind==="set")})}function er(e,t,o=e.cloudMachines?.providers[W]??null){if(!t)return null;const n=o,i=f(t);if(n&&n.agentProviders.length>0&&!n.agentProviders.includes(i))return r.cloudMachines_startOn_providerMissing();const a=e.providerSettings?.profiles;if(m(t)){const l=a?p(a.items).find(_=>_.providerRef===t):void 0;return l?l.remoteCompatible===!1?r.cloudMachines_startOn_needsProfile():l.env.some(_=>_.kind==="set")?null:r.cloudMachines_startOn_needsProfile():null}const c=a?.defaults?.[i];return c?c.remoteCompatible===!1?r.cloudMachines_startOn_needsProfile():c.env.some(l=>l.kind==="set")?null:r.cloudMachines_startOn_needsProfile():a?.loadStatus==="success"?r.cloudMachines_startOn_needsProfile():null}export{re as $,E as A,Dt as B,x as C,Ct as D,v as E,It as F,Ot as G,yt as H,Rt as I,Et as J,g as K,S as L,ct as M,je as N,Vt as O,Q as P,Yt as Q,Wt as R,Jt as S,Ie as T,Zt as U,Ht as V,Kt as W,zt as X,Xt as Y,oe as Z,st as _,Lt as a,tt as a0,Ue as a1,A as a2,et as a3,Be as a4,$e as a5,$t as a6,at as a7,Ne as a8,Te as a9,Ze as aA,Qe as aB,nt as aC,Gt as aD,Qt as aE,St as aF,dt as aa,lt as ab,Ve as ac,We as ad,rt as ae,ot as af,He as ag,Fe as ah,Ye as ai,ze as aj,Je as ak,Xe as al,ut as am,ht as an,mt as ao,vt as ap,Mt as aq,ft as ar,it as as,pt as at,_t as au,qe as av,bt as aw,Ke as ax,Ge as ay,w as az,At as b,wt as c,Bt as d,Nt as e,Ut as f,er as g,Se as h,Ft as i,xt as j,gt as k,ve as l,D as m,ie as n,kt as o,le as p,ce as q,Pt as r,jt as s,te as t,Tt as u,qt as v,_e as w,O as x,De as y,he as z};
@@ -1 +1 @@
1
- import{JH as o,n_ as d,nZ as n,oR as i,br as a,se as S,pG as p,oO as k}from"./CiKoEJ2m.js";import{bn as g,b5 as m,dV as v,dH as W,c as h,cU as I,cf as R}from"./iQDlfKDR.js";const w={status:"loading",members:[]},u=o.createSelector(e=>d(e.guestSessions.sessions)),K=o.createSelector(e=>e.guestSessions.hasReceivedList),l=o.createSelector(e=>n(e.guestSessions.sessions,e.connections.windowBackendId)??null);o.createSelector(e=>l.select(e)!==null);const M=o.createSelector(e=>e.guestSessions.openIds),F=o.createSelector(e=>e.guestSessions.connectedIds),O=o.createSelector(e=>e.guestSessions.leavingIds),P=o.createSelector(e=>e.guestSessions.leavingWorkspaceKeys),x=o.createSelector(e=>u.select(e).filter(s=>e.guestSessions.failedLeaveIds.includes(s.id))),B=o.createSelector(e=>u.select(e).flatMap(s=>(s.workspaces??[]).filter(t=>e.guestSessions.failedLeaveWorkspaceKeys.includes(i(s.id,t.id))).map(t=>({session:s,workspace:t})))),A=o.createSelector(e=>e.guestSessions.failedLeaveIds),J=o.createSelector(e=>d(e.guestSessions.sweepReports)),N=o.createSelector((e,s)=>n(e.guestSessions.sweepReports,s)),U=o.createSelector(e=>e.guestSessions.clearingWorkspaceIds),_=o.createSelector((e,s)=>n(e.workspace.workspaces,a(s))!==void 0),L=o.createSelector((e,s)=>e.guestSessions.hostedRosters[s]?.status==="withheld"?!1:n(e.workspace.workspaces,a(s))!==void 0&&g.select(e)&&m.select(e,s)),b=o.createSelector((e,s)=>{const t=n(e.workspace.workspaces,a(s));if(t?.openInviteCount!=null)return t.openInviteCount;const c=e.guestSessions.hostedRosters[s];return c?.guestCount!=null?Math.max(0,c.guestCount-c.members.filter(S).length):null}),$=o.createSelector(e=>e.workspace.error?"error":v.select(e,e.connections.windowBackendId)?"loaded":"loading"),j=o.createSelector(e=>{const s=W.select(e);return d(e.workspace.workspaces).filter(t=>{if(!s.collaborationReady||!h(s,t.id,()=>t))return!1;const c=b.select(e,t.id);if((t.memberCount??1/0)<=1&&c===0)return!1;const r=e.guestSessions.hostedRosters[t.id];return!r||r.status!=="loaded"?!0:r.members.some(S)||c===null||c>0})}),f=o.createSelector(e=>{const s=l.select(e),t=I.select(e);return u.select(e).filter(c=>{const r=s?.id===c.id&&t?.principal.id===c.principalId?R.select(e):null;return r?r!=="guest":c.hostRole==="member"})}),E=o.createSelector(e=>{const s=new Set(f.select(e).map(t=>t.id));return u.select(e).filter(t=>!s.has(t.id))}),V=o.createSelector(e=>e.guestSessions.listUnavailable),y=o.createSelector((e,s)=>e.guestSessions.hostedRosters[s]??w),q=o.createSelector((e,s)=>y.select(e,s).members.filter(t=>e.guestSessions.failedMemberKeys.includes(p(s,t.principalId)))),C=[],z=o.createSelector((e,s)=>{const t=p(s,""),c=e.guestSessions.removingMemberKeys.filter(r=>r.startsWith(t)).map(r=>r.slice(t.length));return c.length===0?C:c}),D=o.createSelector((e,s)=>e.guestSessions.clearingWorkspaceIds.includes(s)),T=o.createSelector(e=>{const s=[];for(const[t,c]of Object.entries(e.guestSessions.hostedRosters)){if(c.status==="withheld")continue;const r=n(e.workspace.workspaces,a(t));!r||!L.select(e,t)||s.push(`${t}:${r.memberCount??0},${c.invalidation??0}`)}return s.sort()}),Z=o.createSelector(e=>e.guestSessions.inheritedWorkspaceKeys),Q=o.createSelector(e=>e.guestSessions.leaveConfirmations),X=o.createSelector((e,s)=>k(n(e.guestSessions.sessions,s))),Y=o.createSelector((e,s)=>{if(!s||!g.select(e))return!1;const t=l.select(e);return!t||!(t.workspaces??[]).some(c=>c.id===s)||f.select(e).some(c=>c.id===t.id)||e.guestSessions.inheritedWorkspaceKeys.includes(i(t.id,s))?!1:n(e.workspace.workspaces,a(s))?.myRole!=="owner"}),ee=o.createSelector((e,s)=>{const t=l.select(e);return!!t&&e.guestSessions.selfLeaveWorkspaceKeys.includes(i(t.id,s))}),se=o.createSelector((e,s)=>{const t=l.select(e);return!!t&&e.guestSessions.leavingWorkspaceKeys.includes(i(t.id,s))});export{_ as A,se as B,ee as C,f as D,E,l as F,L as a,x as b,B as c,Q as d,A as e,O as f,P as g,X as h,u as i,F as j,K as k,M as l,V as m,U as n,q as o,b as p,z as q,y as r,Y as s,T as t,$ as u,N as v,J as w,j as x,Z as y,D as z};
1
+ import{JH as o,n_ as d,nZ as n,oR as i,br as a,se as S,pG as p,oO as k}from"./D0qhIm1r.js";import{bn as g,b5 as m,dV as v,dH as W,c as h,cU as I,cf as R}from"./cD292w1o.js";const w={status:"loading",members:[]},u=o.createSelector(e=>d(e.guestSessions.sessions)),K=o.createSelector(e=>e.guestSessions.hasReceivedList),l=o.createSelector(e=>n(e.guestSessions.sessions,e.connections.windowBackendId)??null);o.createSelector(e=>l.select(e)!==null);const M=o.createSelector(e=>e.guestSessions.openIds),F=o.createSelector(e=>e.guestSessions.connectedIds),O=o.createSelector(e=>e.guestSessions.leavingIds),P=o.createSelector(e=>e.guestSessions.leavingWorkspaceKeys),x=o.createSelector(e=>u.select(e).filter(s=>e.guestSessions.failedLeaveIds.includes(s.id))),B=o.createSelector(e=>u.select(e).flatMap(s=>(s.workspaces??[]).filter(t=>e.guestSessions.failedLeaveWorkspaceKeys.includes(i(s.id,t.id))).map(t=>({session:s,workspace:t})))),A=o.createSelector(e=>e.guestSessions.failedLeaveIds),J=o.createSelector(e=>d(e.guestSessions.sweepReports)),N=o.createSelector((e,s)=>n(e.guestSessions.sweepReports,s)),U=o.createSelector(e=>e.guestSessions.clearingWorkspaceIds),_=o.createSelector((e,s)=>n(e.workspace.workspaces,a(s))!==void 0),L=o.createSelector((e,s)=>e.guestSessions.hostedRosters[s]?.status==="withheld"?!1:n(e.workspace.workspaces,a(s))!==void 0&&g.select(e)&&m.select(e,s)),b=o.createSelector((e,s)=>{const t=n(e.workspace.workspaces,a(s));if(t?.openInviteCount!=null)return t.openInviteCount;const c=e.guestSessions.hostedRosters[s];return c?.guestCount!=null?Math.max(0,c.guestCount-c.members.filter(S).length):null}),$=o.createSelector(e=>e.workspace.error?"error":v.select(e,e.connections.windowBackendId)?"loaded":"loading"),j=o.createSelector(e=>{const s=W.select(e);return d(e.workspace.workspaces).filter(t=>{if(!s.collaborationReady||!h(s,t.id,()=>t))return!1;const c=b.select(e,t.id);if((t.memberCount??1/0)<=1&&c===0)return!1;const r=e.guestSessions.hostedRosters[t.id];return!r||r.status!=="loaded"?!0:r.members.some(S)||c===null||c>0})}),f=o.createSelector(e=>{const s=l.select(e),t=I.select(e);return u.select(e).filter(c=>{const r=s?.id===c.id&&t?.principal.id===c.principalId?R.select(e):null;return r?r!=="guest":c.hostRole==="member"})}),E=o.createSelector(e=>{const s=new Set(f.select(e).map(t=>t.id));return u.select(e).filter(t=>!s.has(t.id))}),V=o.createSelector(e=>e.guestSessions.listUnavailable),y=o.createSelector((e,s)=>e.guestSessions.hostedRosters[s]??w),q=o.createSelector((e,s)=>y.select(e,s).members.filter(t=>e.guestSessions.failedMemberKeys.includes(p(s,t.principalId)))),C=[],z=o.createSelector((e,s)=>{const t=p(s,""),c=e.guestSessions.removingMemberKeys.filter(r=>r.startsWith(t)).map(r=>r.slice(t.length));return c.length===0?C:c}),D=o.createSelector((e,s)=>e.guestSessions.clearingWorkspaceIds.includes(s)),T=o.createSelector(e=>{const s=[];for(const[t,c]of Object.entries(e.guestSessions.hostedRosters)){if(c.status==="withheld")continue;const r=n(e.workspace.workspaces,a(t));!r||!L.select(e,t)||s.push(`${t}:${r.memberCount??0},${c.invalidation??0}`)}return s.sort()}),Z=o.createSelector(e=>e.guestSessions.inheritedWorkspaceKeys),Q=o.createSelector(e=>e.guestSessions.leaveConfirmations),X=o.createSelector((e,s)=>k(n(e.guestSessions.sessions,s))),Y=o.createSelector((e,s)=>{if(!s||!g.select(e))return!1;const t=l.select(e);return!t||!(t.workspaces??[]).some(c=>c.id===s)||f.select(e).some(c=>c.id===t.id)||e.guestSessions.inheritedWorkspaceKeys.includes(i(t.id,s))?!1:n(e.workspace.workspaces,a(s))?.myRole!=="owner"}),ee=o.createSelector((e,s)=>{const t=l.select(e);return!!t&&e.guestSessions.selfLeaveWorkspaceKeys.includes(i(t.id,s))}),se=o.createSelector((e,s)=>{const t=l.select(e);return!!t&&e.guestSessions.leavingWorkspaceKeys.includes(i(t.id,s))});export{_ as A,se as B,ee as C,f as D,E,l as F,L as a,x as b,B as c,Q as d,A as e,O as f,P as g,X as h,u as i,F as j,K as k,M as l,V as m,U as n,q as o,b as p,z as q,y as r,Y as s,T as t,$ as u,N as v,J as w,j as x,Z as y,D as z};
@@ -1 +1 @@
1
- var dt=Object.defineProperty;var qe=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||qe("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as W,bo as i,bw as X,b as j,bp as L,br as Ne}from"./CtfEuoOH.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as q,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./3SdAC2_C.js";import{i as z}from"./DynUeYUu.js";import{t as E}from"./CGmYraIa.js";import{b as Pe}from"./B26ZHg3s.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as k,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./D9R5fzn8.js";import{c as wt}from"./BZ27qIg1.js";import{s as St}from"./DcraaizU.js";import{f as xt,k as Nt}from"./Bx1P9uW7.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),U=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=U.getOr(null);return U.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,U.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let ke=Ke;var pe;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new ze(e,U.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let Ee=ze;var ge;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new Ge(e,U.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=Ge;var fe,ve;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ue(e,U.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ue;var me,ye;const We=class We{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new We(e,U.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=We;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function kt(n,e){const r=be();if(new.target)return W({component:kt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=Ee.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>v()??Q),Oe(h),C(t,h)};z(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var Et=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return W({component:Mt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,Et);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));E(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);E(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};z(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};z(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return W({component:Bt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);E(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);E(h,()=>g()??Q),Oe(t),C(o,t)};z(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return W({component:et,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,k),g=i(e,"onOpenChangeComplete",7,k),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=k){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=k){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:X,$on:(p,f)=>j(e,p,f)},m=A(),w=x(m);return E(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),zt=Y("<button><!></button>");function Gt(n,e){const r=be();if(new.target)return W({component:Gt,...n});q(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=ke.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=zt();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>s()??Q),Oe(h),C(t,h)};z(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Ut=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Wt=Y("<!> <!>",1),Xt=Y("<!> <div><!></div>",1);function jt(n,e){const r=be();if(new.target)return W({component:jt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,k),p=i(e,"onOpenAutoFocus",7,k),f=i(e,"onEscapeKeydown",7,k),S=i(e,"onInteractOutside",7,k),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Ut);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=k){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=k){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=k){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=k){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:X,$on:(d,V)=>j(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let Xe=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var je=A(),it=x(je);{var at=J=>{var Z=Wt(),$=x(Z);{var ee=G=>{Ve(G,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};z($,G=>{t.root.opts.open.current&&G(ee)})}var Ae=He($,2);{let G=N(()=>({props:B(c(h),Xe()),...t.snippetProps}));E(Ae,u,()=>c(G))}C(J,Z)},lt=J=>{var Z=Xt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,G=>({...G}),[()=>B(c(h),Xe())]);var Ae=Ce(ee);E(Ae,()=>g()??Q),Oe(ee),C(J,Z)};z(it,J=>{u()?J(at):J(lt,-1)})}C(st,je)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};z(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},qt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...qt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return W({component:Jt,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:X,$on:(f,S)=>j(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);E(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{Gt as D,Jt as O,jt as a,Bt as b,Mt as c,kt as d,hr as e,ur as f,dr as o,cr as u};
1
+ var dt=Object.defineProperty;var qe=n=>{throw TypeError(n)};var ct=(n,e,r)=>e in n?dt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r;var y=(n,e,r)=>ct(n,typeof e!="symbol"?e+"":e,r),ut=(n,e,r)=>e.has(n)||qe("Cannot "+r);var l=(n,e,r)=>(ut(n,e,"read from private field"),r?r.call(n):e.get(n)),O=(n,e,r)=>e.has(n)?qe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,r);import{t as W,bo as i,bw as X,b as j,bp as L,br as Ne}from"./Fcr7AvC-.js";import{bV as M,aD as c,bH as b,c9 as N,bo as be,bs as q,a7 as A,ay as x,W as C,bn as H,aA as a,a5 as Ce,bf as Q,bA as Oe,aB as Y,bS as He,aG as Ye,br as ht,ca as pt,bI as Ze}from"./3SdAC2_C.js";import{i as z}from"./BhYXv0ZM.js";import{t as E}from"./CWfjuhY2.js";import{b as Pe}from"./BRCr02in.js";import{h as gt,a2 as Qe,av as _,a$ as Te,aU as ft,aF as vt,an as _e,ay as mt,aG as $e,aq as Ie,a6 as yt,l as bt,az as R,aQ as B,aS as k,I as Ct,n as Ot,j as Pt,ad as _t,a9 as Ve}from"./Beq_QLuz.js";import{c as wt}from"./2z64ELW5.js";import{s as St}from"./C3KgmGxd.js";import{f as xt,k as Nt}from"./CxR-pcVt.js";const It=mt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),U=new gt("Dialog.Root | AlertDialog.Root");var te,re,ne,oe,se,ie,ae,le,de,ce,ue;const Be=class Be{constructor(e,r){y(this,"opts");O(this,te,M(null));O(this,re,M(null));O(this,ne,M(null));O(this,oe,M(null));O(this,se,M(void 0));O(this,ie,M(void 0));O(this,ae,M(void 0));O(this,le,M(void 0));O(this,de,M(null));O(this,ce,M(0));y(this,"depth");y(this,"parent");y(this,"contentPresence");y(this,"overlayPresence");y(this,"getBitsAttr",e=>It.getAttr(e,this.opts.variant.current));O(this,ue,N(()=>({"data-state":vt(this.opts.open.current)})));this.opts=e,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Qe({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Qe({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Te(()=>this.opts.open.current,s=>{this.parent&&(s?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),ft(()=>{this.opts.open.current&&this.parent?.decrementNested()})}static create(e){const r=U.getOr(null);return U.set(new Be(e,r))}get triggerNode(){return c(l(this,te))}set triggerNode(e){b(l(this,te),e,!0)}get contentNode(){return c(l(this,re))}set contentNode(e){b(l(this,re),e,!0)}get overlayNode(){return c(l(this,ne))}set overlayNode(e){b(l(this,ne),e,!0)}get descriptionNode(){return c(l(this,oe))}set descriptionNode(e){b(l(this,oe),e,!0)}get contentId(){return c(l(this,se))}set contentId(e){b(l(this,se),e,!0)}get titleId(){return c(l(this,ie))}set titleId(e){b(l(this,ie),e,!0)}get triggerId(){return c(l(this,ae))}set triggerId(e){b(l(this,ae),e,!0)}get descriptionId(){return c(l(this,le))}set descriptionId(e){b(l(this,le),e,!0)}get cancelNode(){return c(l(this,de))}set cancelNode(e){b(l(this,de),e,!0)}get nestedOpenCount(){return c(l(this,ce))}set nestedOpenCount(e){b(l(this,ce),e,!0)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}get sharedProps(){return c(l(this,ue))}set sharedProps(e){b(l(this,ue),e)}};te=new WeakMap,re=new WeakMap,ne=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,ae=new WeakMap,le=new WeakMap,de=new WeakMap,ce=new WeakMap,ue=new WeakMap;let Fe=Be;var he;const Ke=class Ke{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,he,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Ke(e,U.get())}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===yt||e.key===bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return c(l(this,he))}set props(e){b(l(this,he),e)}};he=new WeakMap;let ke=Ke;var pe;const ze=class ze{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,pe,N(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=_e(this.opts.ref),Te.pre(()=>this.opts.id.current,s=>{this.root.titleId=s})}static create(e){return new ze(e,U.get())}get props(){return c(l(this,pe))}set props(e){b(l(this,pe),e)}};pe=new WeakMap;let Ee=ze;var ge;const Ge=class Ge{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,ge,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=_e(this.opts.ref,s=>{this.root.descriptionNode=s}),Te.pre(()=>this.opts.id.current,s=>{this.root.descriptionId=s})}static create(e){return new Ge(e,U.get())}get props(){return c(l(this,ge))}set props(e){b(l(this,ge),e)}};ge=new WeakMap;let De=Ge;var fe,ve;const Ue=class Ue{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,fe,N(()=>({open:this.root.opts.open.current})));O(this,ve,N(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>{this.root.contentNode=s,this.root.contentId=s?.id})}static create(e){return new Ue(e,U.get())}get snippetProps(){return c(l(this,fe))}set snippetProps(e){b(l(this,fe),e)}get props(){return c(l(this,ve))}set props(e){b(l(this,ve),e)}get shouldRender(){return this.root.contentPresence.shouldRender}};fe=new WeakMap,ve=new WeakMap;let Me=Ue;var me,ye;const We=class We{constructor(e,r){y(this,"opts");y(this,"root");y(this,"attachment");O(this,me,N(()=>({open:this.root.opts.open.current})));O(this,ye,N(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ie(this.root.nestedOpenCount>0),"data-nested":Ie(this.root.parent!==null),...$e(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment})));this.opts=e,this.root=r,this.attachment=_e(this.opts.ref,s=>this.root.overlayNode=s)}static create(e){return new We(e,U.get())}get snippetProps(){return c(l(this,me))}set snippetProps(e){b(l(this,me),e)}get props(){return c(l(this,ye))}set props(e){b(l(this,ye),e)}get shouldRender(){return this.root.overlayPresence.shouldRender}};me=new WeakMap,ye=new WeakMap;let Re=We;var At=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","level"]),Ft=Y("<div><!></div>");function kt(n,e){const r=be();if(new.target)return W({component:kt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"ref",15,null),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"level",7,2),w=L(e,At);const p=Ee.create({id:_(()=>s()),level:_(()=>m()),ref:_(()=>g(),t=>g(t))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(t=R(r)){s(t),a()},get ref(){return g()},set ref(t=null){g(t),a()},get child(){return u()},set child(t){u(t),a()},get children(){return v()},set children(t){v(t),a()},get level(){return m()},set level(t=2){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,u,()=>({props:c(f)})),C(t,h)},o=t=>{var h=Ft();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>v()??Q),Oe(h),C(t,h)};z(F,t=>{u()?t(I):t(o,-1)})}return C(n,P),H(S)}var Et=new Set(["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]),Dt=Y("<div><!></div>");function Mt(n,e){const r=be();if(new.target)return W({component:Mt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"forceMount",7,!1),u=i(e,"child",7),v=i(e,"children",7),m=i(e,"ref",15,null),w=L(e,Et);const p=Re.create({id:_(()=>s()),ref:_(()=>m(),o=>m(o))}),f=N(()=>B(w,p.props));var S={get id(){return s()},set id(o=R(r)){s(o),a()},get forceMount(){return g()},set forceMount(o=!1){g(o),a()},get child(){return u()},set child(o){u(o),a()},get children(){return v()},set children(o){v(o),a()},get ref(){return m()},set ref(o=null){m(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},P=A(),F=x(P);{var I=o=>{var t=A(),h=x(t);{var D=K=>{var T=A(),d=x(T);{let V=N(()=>({props:B(c(f)),...p.snippetProps}));E(d,u,()=>c(V))}C(K,T)},we=K=>{var T=Dt();Pe(T,V=>({...V}),[()=>B(c(f))]);var d=Ce(T);E(d,()=>v()??Q,()=>p.snippetProps),Oe(T),C(K,T)};z(h,K=>{u()?K(D):K(we,-1)})}C(o,t)};z(F,o=>{(p.shouldRender||g())&&o(I)})}return C(n,P),H(S)}var Rt=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),Tt=Y("<div><!></div>");function Bt(n,e){const r=be();if(new.target)return W({component:Bt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=L(e,Rt);const w=De.create({id:_(()=>s()),ref:_(()=>v(),o=>v(o))}),p=N(()=>B(m,w.props));var f={get id(){return s()},set id(o=R(r)){s(o),a()},get children(){return g()},set children(o){g(o),a()},get child(){return u()},set child(o){u(o),a()},get ref(){return v()},set ref(o=null){v(o),a()},$set:X,$on:(o,t)=>j(e,o,t)},S=A(),P=x(S);{var F=o=>{var t=A(),h=x(t);E(h,u,()=>({props:c(p)})),C(o,t)},I=o=>{var t=Tt();Pe(t,()=>({...c(p)}));var h=Ce(t);E(h,()=>g()??Q),Oe(t),C(o,t)};z(P,o=>{u()?o(F):o(I,-1)})}return C(n,S),H(f)}function et(n,e){if(new.target)return W({component:et,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"onOpenChange",7,k),g=i(e,"onOpenChangeComplete",7,k),u=i(e,"children",7);Fe.create({variant:_(()=>"dialog"),open:_(()=>r(),p=>{r(p),s()(p)}),onOpenChangeComplete:_(()=>g())});var v={get open(){return r()},set open(p=!1){r(p),a()},get onOpenChange(){return s()},set onOpenChange(p=k){s(p),a()},get onOpenChangeComplete(){return g()},set onOpenChangeComplete(p=k){g(p),a()},get children(){return u()},set children(p){u(p),a()},$set:X,$on:(p,f)=>j(e,p,f)},m=A(),w=x(m);return E(w,()=>u()??Q),C(n,m),H(v)}var Kt=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]),zt=Y("<button><!></button>");function Gt(n,e){const r=be();if(new.target)return W({component:Gt,...n});q(e,!0);let s=i(e,"children",7),g=i(e,"child",7),u=i(e,"id",23,()=>R(r)),v=i(e,"ref",15,null),m=i(e,"disabled",7,!1),w=L(e,Kt);const p=ke.create({variant:_(()=>"close"),id:_(()=>u()),ref:_(()=>v(),t=>v(t)),disabled:_(()=>!!m())}),f=N(()=>B(w,p.props));var S={get children(){return s()},set children(t){s(t),a()},get child(){return g()},set child(t){g(t),a()},get id(){return u()},set id(t=R(r)){u(t),a()},get ref(){return v()},set ref(t=null){v(t),a()},get disabled(){return m()},set disabled(t=!1){m(t),a()},$set:X,$on:(t,h)=>j(e,t,h)},P=A(),F=x(P);{var I=t=>{var h=A(),D=x(h);E(D,g,()=>({props:c(f)})),C(t,h)},o=t=>{var h=zt();Pe(h,()=>({...c(f)}));var D=Ce(h);E(D,()=>s()??Q),Oe(h),C(t,h)};z(F,t=>{g()?t(I):t(o,-1)})}return C(n,P),H(S)}var Ut=new Set(["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]),Wt=Y("<!> <!>",1),Xt=Y("<!> <div><!></div>",1);function jt(n,e){const r=be();if(new.target)return W({component:jt,...n});q(e,!0);let s=i(e,"id",23,()=>R(r)),g=i(e,"children",7),u=i(e,"child",7),v=i(e,"ref",15,null),m=i(e,"forceMount",7,!1),w=i(e,"onCloseAutoFocus",7,k),p=i(e,"onOpenAutoFocus",7,k),f=i(e,"onEscapeKeydown",7,k),S=i(e,"onInteractOutside",7,k),P=i(e,"trapFocus",7,!0),F=i(e,"preventScroll",7,!0),I=i(e,"restoreScrollDelay",7,null),o=L(e,Ut);const t=Me.create({id:_(()=>s()),ref:_(()=>v(),d=>v(d))}),h=N(()=>B(o,t.props));var D={get id(){return s()},set id(d=R(r)){s(d),a()},get children(){return g()},set children(d){g(d),a()},get child(){return u()},set child(d){u(d),a()},get ref(){return v()},set ref(d=null){v(d),a()},get forceMount(){return m()},set forceMount(d=!1){m(d),a()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(d=k){w(d),a()},get onOpenAutoFocus(){return p()},set onOpenAutoFocus(d=k){p(d),a()},get onEscapeKeydown(){return f()},set onEscapeKeydown(d=k){f(d),a()},get onInteractOutside(){return S()},set onInteractOutside(d=k){S(d),a()},get trapFocus(){return P()},set trapFocus(d=!0){P(d),a()},get preventScroll(){return F()},set preventScroll(d=!0){F(d),a()},get restoreScrollDelay(){return I()},set restoreScrollDelay(d=null){I(d),a()},$set:X,$on:(d,V)=>j(e,d,V)},we=A(),K=x(we);{var T=d=>{Ct(d,{get ref(){return t.opts.ref},loop:!0,get trapFocus(){return P()},get enabled(){return t.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return w()},focusScope:(nt,ot)=>{let Xe=()=>(ot?.()).props;Ot(nt,Ne(()=>c(h),{get enabled(){return t.root.opts.open.current},get ref(){return t.opts.ref},onEscapeKeydown:Se=>{f()(Se),!Se.defaultPrevented&&t.root.handleClose()},children:(Se,Lt)=>{Pt(Se,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},onInteractOutside:xe=>{S()(xe),!xe.defaultPrevented&&t.root.handleClose()},children:(xe,Yt)=>{_t(xe,Ne(()=>c(h),{get ref(){return t.opts.ref},get enabled(){return t.root.opts.open.current},children:(st,Zt)=>{var je=A(),it=x(je);{var at=J=>{var Z=Wt(),$=x(Z);{var ee=G=>{Ve(G,{get preventScroll(){return F()},get restoreScrollDelay(){return I()}})};z($,G=>{t.root.opts.open.current&&G(ee)})}var Ae=He($,2);{let G=N(()=>({props:B(c(h),Xe()),...t.snippetProps}));E(Ae,u,()=>c(G))}C(J,Z)},lt=J=>{var Z=Xt(),$=x(Z);Ve($,{get preventScroll(){return F()}});var ee=He($,2);Pe(ee,G=>({...G}),[()=>B(c(h),Xe())]);var Ae=Ce(ee);E(Ae,()=>g()??Q),Oe(ee),C(J,Z)};z(it,J=>{u()?J(at):J(lt,-1)})}C(st,je)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};z(K,d=>{(t.shouldRender||m())&&d(T)})}return C(n,we),H(D)}const tt=Symbol("overlay-open"),rt=Symbol("overlay-static"),Je={tier:"moderate",x:0,y:0,scale:1,opacity:0},Le={tier:"slow",x:0,y:8,scale:.97,opacity:0},qt={top:{x:0,y:"-100%"},right:{x:"100%",y:0},bottom:{x:0,y:"100%"},left:{x:"-100%",y:0}},dr={backdrop:{enter:Je,exit:Je},dialog:{enter:Le,exit:Le},sheet(n){const e={tier:"slow",scale:1,opacity:1,...qt[n]};return{enter:e,exit:e}}};function Ht(n){Ze(tt,n)}function cr(){const n=Ye(tt);if(!n)throw new Error("Dialog or Sheet Content must be nested inside its Root.");return n}function Qt(n){Ze(rt,n)}function ur(){return Ye(rt)??(()=>!1)}function hr(n){let e=M(ht(n()));return pt(()=>{if(n()){b(e,!0);return}if(!c(e))return;const r=window.setTimeout(()=>b(e,!1),xt(Nt.slow));return()=>window.clearTimeout(r)}),{get mounted(){return c(e)},finishExit(){n()||b(e,!1)}}}var Vt=new Set(["$$slots","$$events","$$legacy","open","staticPosition","children","onOpenChange"]);function Jt(n,e){if(new.target)return W({component:Jt,...n});q(e,!0);let r=i(e,"open",15,!1),s=i(e,"staticPosition",7,!1),g=i(e,"children",7),u=i(e,"onOpenChange",7),v=L(e,Vt);Ht(()=>r()),Qt(()=>s()),St(()=>{r(!1),u()?.(!1)});var m={get open(){return r()},set open(f=!1){r(f),a()},get staticPosition(){return s()},set staticPosition(f=!1){s(f),a()},get children(){return g()},set children(f){g(f),a()},get onOpenChange(){return u()},set onOpenChange(f){u(f),a()},$set:X,$on:(f,S)=>j(e,f,S)},w=A(),p=x(w);return wt(p,()=>et,(f,S)=>{S(f,Ne({get onOpenChange(){return u()}},()=>v,{get open(){return r()},set open(P){r(P)},children:(P,F)=>{var I=A(),o=x(I);E(o,()=>g()??Q),C(P,I)},$$slots:{default:!0}}))}),C(n,w),H(m)}export{Gt as D,Jt as O,jt as a,Bt as b,Mt as c,kt as d,hr as e,ur as f,dr as o,cr as u};
@@ -1 +1 @@
1
- import{t as T,bo as r,bw as W,bq as $,b as x,bs as B}from"./CtfEuoOH.js";import{bs as C,cd as H,ca as S,a7 as u,ay as f,W as k,bn as q,aA as o}from"./3SdAC2_C.js";import{i as D}from"./DynUeYUu.js";import{k as J}from"./DFKhOU69.js";import{a as L}from"./Dr6-g-BO.js";import{dI as j}from"./iQDlfKDR.js";import{JH as z,h0 as E}from"./CiKoEJ2m.js";function F(i,t){if(new.target)return T({component:F,...i});C(t,!0);const d=()=>B(v,"$workspace$",b),[b,w]=$();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const m=H(a());S(()=>m.set(a()));const v=j(m);var _={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:W,$on:(e,s)=>x(t,e,s)},l=u(),g=f(l);{var y=e=>{var s=u(),h=f(s);J(h,a,A=>{L(A,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(E(n()??a(),c().id))})}),k(e,s)};D(g,e=>{p()&&d()&&e(y)})}k(i,l);var I=q(_);return w(),I}export{F as default};
1
+ import{t as T,bo as r,bw as W,bq as $,b as x,bs as B}from"./Fcr7AvC-.js";import{bs as C,cd as H,ca as S,a7 as u,ay as f,W as k,bn as q,aA as o}from"./3SdAC2_C.js";import{i as D}from"./BhYXv0ZM.js";import{k as J}from"./Cc0763mU.js";import{a as L}from"./Bwa2n5jC.js";import{dI as j}from"./cD292w1o.js";import{JH as z,h0 as E}from"./D0qhIm1r.js";function F(i,t){if(new.target)return T({component:F,...i});C(t,!0);const d=()=>B(v,"$workspace$",b),[b,w]=$();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const m=H(a());S(()=>m.set(a()));const v=j(m);var _={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:W,$on:(e,s)=>x(t,e,s)},l=u(),g=f(l);{var y=e=>{var s=u(),h=f(s);J(h,a,A=>{L(A,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(E(n()??a(),c().id))})}),k(e,s)};D(g,e=>{p()&&d()&&e(y)})}k(i,l);var I=q(_);return w(),I}export{F as default};
@@ -1 +1 @@
1
- import{t as Me,bo as u,bw as Ae,b as Se}from"./CtfEuoOH.js";import{ai as He,bs as Re,ca as ze,aD as n,bk as Le,a7 as Oe,ay as Ie,W as D,bn as Ve,bV as J,c0 as We,aA as f,a5 as K,bf as Q,bA as X,bH as R,b_ as Y,aw as N,aj as k,aB as ye,c9 as q}from"./3SdAC2_C.js";import{i as Be}from"./DynUeYUu.js";import{t as Z}from"./CGmYraIa.js";import{n as F,l as ge,c as pe}from"./Bx1P9uW7.js";import{s as P,f as $,g as ve}from"./B26ZHg3s.js";import{b as ee}from"./Dn334wJv.js";import{P as Te}from"./DQpGArF7.js";import{s as De}from"./BsieX9dN.js";import{c as Ne,u as ke,s as qe,a as Fe}from"./D9tVylVS.js";var Ue=ye('<div data-static-position="" role="tooltip"><!></div>'),be=ye('<div role="tooltip"><!></div>');function je(te,a){if(new.target)return Me({component:je,...te});Re(a,!0);let C=u(a,"id",7),h=u(a,"anchor",7),r=u(a,"position",7,"right"),b=u(a,"absolute",7,!1),w=u(a,"anchorElement",7,null),y=u(a,"staticPosition",7,!1),E=u(a,"class",7,""),M=u(a,"children",7),z=u(a,"onmouseenter",7),L=u(a,"onmouseleave",7),O=u(a,"onfocusin",7),I=u(a,"onfocusout",7);const A=Ne(ke()+2);qe(A);const U=Fe(A),d=8,m=4;let l=J(null),ne=J(""),oe=J(void 0);const S=q(()=>r()==="bottom-right"||r()==="bottom-left"),g=q(()=>r()==="top"),j=q(()=>y()?"relative":b()?"absolute":"fixed"),re=q(()=>r()==="right"?{x:-4,y:0}:r()==="bottom"?{x:4,y:0}:n(g)?{x:0,y:4}:{x:0,y:-4});function ie(t,e,c){return Math.max(e,Math.min(c,t))}let p=null,se=null;function ae(){return!p?.isConnected||se!==h()?!1:p.style.getPropertyValue("anchor-name").includes(h())||getComputedStyle(p).getPropertyValue("anchor-name").includes(h())}function le(){return w()?w():(ae()||(p=Array.from(document.querySelectorAll('[style*="anchor-name"]')).find(t=>{const e=t.style.getPropertyValue("anchor-name"),c=getComputedStyle(t).getPropertyValue("anchor-name");return e.includes(h())||c.includes(h())})??null,se=p?h():null),p)}function ce(){if(y()||b()||!n(l))return;const t=le();if(!t)return;const e=t.getBoundingClientRect(),c=n(l).getBoundingClientRect(),o=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,v=c.width||n(l).offsetWidth,s=c.height||n(l).offsetHeight,W=Math.max(0,e.top-m-d),B=Math.max(0,i-e.bottom-m-d),me=n(g)?!(W<s&&B>W):n(S)&&B<s&&W>B;let x=e.left,_=e.bottom+m,T=me?W:B;if(r()==="right"){const Ee=e.left-m-d,he=o-e.right-m-d;x=he>=v||he>=Ee?e.right+m:e.left-v-m,_=e.top,T=Math.max(0,i-d*2)}else r()==="bottom"?(x=e.left-v-m,_=e.bottom-s):(n(g)||n(S))&&(r()==="bottom-left"?x=e.right-v:n(g)&&(x=e.left+e.width/2-v/2),_=me?e.top-Math.min(s,T)-m:e.bottom+m);x=ie(x,d,Math.max(d,o-v-d)),_=ie(_,d,Math.max(d,i-Math.min(s,T)-d)),R(oe,`${T}px`),R(ne,`left: ${x}px; top: ${_}px;`)}let G=!1;async function ue(){G||(G=!0,await We(),G=!1,ce())}let H=null;function V(){H||(H=De(()=>{H=null,ce()}))}function fe(t){const e=w()??(ae()?p:null);e&&t.target instanceof Node&&!t.target.contains(e)||V()}ze(()=>{const t=n(l),e=w();y()||b()||!t||!e||ue()}),Le(()=>{if(y())return;let t=null;return ue().then(()=>{if(!b()&&typeof ResizeObserver<"u"){t=new ResizeObserver(V),n(l)&&t.observe(n(l));const e=le();e&&t.observe(e)}}),window.addEventListener("resize",V),window.addEventListener("scroll",fe,!0),()=>{t?.disconnect(),window.removeEventListener("resize",V),window.removeEventListener("scroll",fe,!0),H?.(),H=null}});var xe={get id(){return C()},set id(t){C(t),f()},get anchor(){return h()},set anchor(t){h(t),f()},get position(){return r()},set position(t="right"){r(t),f()},get absolute(){return b()},set absolute(t=!1){b(t),f()},get anchorElement(){return w()},set anchorElement(t=null){w(t),f()},get staticPosition(){return y()},set staticPosition(t=!1){y(t),f()},get class(){return E()},set class(t=""){E(t),f()},get children(){return M()},set children(t){M(t),f()},get onmouseenter(){return z()},set onmouseenter(t){z(t),f()},get onmouseleave(){return L()},set onmouseleave(t){L(t),f()},get onfocusin(){return O()},set onfocusin(t){O(t),f()},get onfocusout(){return I()},set onfocusout(t){I(t),f()},$set:Ae,$on:(t,e)=>Se(a,t,e)},de=Oe(),we=Ie(de);{var _e=t=>{var e=Ue(),c=K(e);Z(c,()=>M()??Q),X(e),ee(e,o=>R(l,o),()=>n(l)),Y(()=>{P(e,"id",C()),$(e,1,n(j)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${U} `+E()),P(e,"data-surface-level",A)}),D(t,e)},Pe=t=>{var e=be();let c;var o=K(e);Z(o,()=>M()??Q),X(e),ee(e,i=>R(l,i),()=>n(l)),Y(()=>{P(e,"id",C()),$(e,1,n(j)+` z-50 w-64 flex flex-col border border-border pointer-events-none ${U} `+E()),P(e,"data-surface-level",A),c=ve(e,"",c,{"position-anchor":h(),right:r()==="bottom"?"anchor(left)":void 0,left:r()==="right"?"anchor(right)":n(S)?"anchor(left)":n(g)?"anchor(center)":void 0,top:r()==="right"?"anchor(top)":n(S)?"anchor(bottom)":void 0,bottom:r()==="bottom"?"anchor(bottom)":n(g)?"anchor(top)":void 0,"margin-right":r()==="bottom"?"8px":void 0,"margin-left":r()==="right"?"8px":void 0,"margin-top":n(S)?"4px":void 0,"margin-bottom":n(g)?"4px":void 0,translate:n(g)?"-50% 0":void 0})}),N("mouseenter",e,function(...i){z()?.apply(this,i)}),N("mouseleave",e,function(...i){L()?.apply(this,i)}),k("focusin",e,function(...i){O()?.apply(this,i)}),k("focusout",e,function(...i){I()?.apply(this,i)}),F(1,e,()=>ge,()=>({tier:"fast",...n(re),scale:.96})),F(2,e,()=>pe,()=>({tier:"fast"})),D(t,e)},Ce=t=>{Te(t,{zIndex:50,children:(e,c)=>{var o=be();let i;var v=K(o);Z(v,()=>M()??Q),X(o),ee(o,s=>R(l,s),()=>n(l)),Y(()=>{P(o,"id",C()),$(o,1,n(j)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${U} `+E()),P(o,"data-surface-level",A),i=ve(o,n(ne),i,{"max-height":n(oe)})}),N("mouseenter",o,function(...s){z()?.apply(this,s)}),N("mouseleave",o,function(...s){L()?.apply(this,s)}),k("focusin",o,function(...s){O()?.apply(this,s)}),k("focusout",o,function(...s){I()?.apply(this,s)}),F(1,o,()=>ge,()=>({tier:"fast",...n(re),scale:.96})),F(2,o,()=>pe,()=>({tier:"fast"})),D(e,o)},$$slots:{default:!0}})};Be(we,t=>{y()?t(_e):b()?t(Pe,1):t(Ce,-1)})}return D(te,de),Ve(xe)}He(["focusin","focusout"]);export{je as H};
1
+ import{t as Me,bo as u,bw as Ae,b as Se}from"./Fcr7AvC-.js";import{ai as He,bs as Re,ca as ze,aD as n,bk as Le,a7 as Oe,ay as Ie,W as D,bn as Ve,bV as J,c0 as We,aA as f,a5 as K,bf as Q,bA as X,bH as R,b_ as Y,aw as N,aj as k,aB as ye,c9 as q}from"./3SdAC2_C.js";import{i as Be}from"./BhYXv0ZM.js";import{t as Z}from"./CWfjuhY2.js";import{n as F,l as ge,c as pe}from"./CxR-pcVt.js";import{s as P,f as $,g as ve}from"./BRCr02in.js";import{b as ee}from"./Dn334wJv.js";import{P as Te}from"./CVx5OKWy.js";import{s as De}from"./BsieX9dN.js";import{c as Ne,u as ke,s as qe,a as Fe}from"./D9tVylVS.js";var Ue=ye('<div data-static-position="" role="tooltip"><!></div>'),be=ye('<div role="tooltip"><!></div>');function je(te,a){if(new.target)return Me({component:je,...te});Re(a,!0);let C=u(a,"id",7),h=u(a,"anchor",7),r=u(a,"position",7,"right"),b=u(a,"absolute",7,!1),w=u(a,"anchorElement",7,null),y=u(a,"staticPosition",7,!1),E=u(a,"class",7,""),M=u(a,"children",7),z=u(a,"onmouseenter",7),L=u(a,"onmouseleave",7),O=u(a,"onfocusin",7),I=u(a,"onfocusout",7);const A=Ne(ke()+2);qe(A);const U=Fe(A),d=8,m=4;let l=J(null),ne=J(""),oe=J(void 0);const S=q(()=>r()==="bottom-right"||r()==="bottom-left"),g=q(()=>r()==="top"),j=q(()=>y()?"relative":b()?"absolute":"fixed"),re=q(()=>r()==="right"?{x:-4,y:0}:r()==="bottom"?{x:4,y:0}:n(g)?{x:0,y:4}:{x:0,y:-4});function ie(t,e,c){return Math.max(e,Math.min(c,t))}let p=null,se=null;function ae(){return!p?.isConnected||se!==h()?!1:p.style.getPropertyValue("anchor-name").includes(h())||getComputedStyle(p).getPropertyValue("anchor-name").includes(h())}function le(){return w()?w():(ae()||(p=Array.from(document.querySelectorAll('[style*="anchor-name"]')).find(t=>{const e=t.style.getPropertyValue("anchor-name"),c=getComputedStyle(t).getPropertyValue("anchor-name");return e.includes(h())||c.includes(h())})??null,se=p?h():null),p)}function ce(){if(y()||b()||!n(l))return;const t=le();if(!t)return;const e=t.getBoundingClientRect(),c=n(l).getBoundingClientRect(),o=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,v=c.width||n(l).offsetWidth,s=c.height||n(l).offsetHeight,W=Math.max(0,e.top-m-d),B=Math.max(0,i-e.bottom-m-d),me=n(g)?!(W<s&&B>W):n(S)&&B<s&&W>B;let x=e.left,_=e.bottom+m,T=me?W:B;if(r()==="right"){const Ee=e.left-m-d,he=o-e.right-m-d;x=he>=v||he>=Ee?e.right+m:e.left-v-m,_=e.top,T=Math.max(0,i-d*2)}else r()==="bottom"?(x=e.left-v-m,_=e.bottom-s):(n(g)||n(S))&&(r()==="bottom-left"?x=e.right-v:n(g)&&(x=e.left+e.width/2-v/2),_=me?e.top-Math.min(s,T)-m:e.bottom+m);x=ie(x,d,Math.max(d,o-v-d)),_=ie(_,d,Math.max(d,i-Math.min(s,T)-d)),R(oe,`${T}px`),R(ne,`left: ${x}px; top: ${_}px;`)}let G=!1;async function ue(){G||(G=!0,await We(),G=!1,ce())}let H=null;function V(){H||(H=De(()=>{H=null,ce()}))}function fe(t){const e=w()??(ae()?p:null);e&&t.target instanceof Node&&!t.target.contains(e)||V()}ze(()=>{const t=n(l),e=w();y()||b()||!t||!e||ue()}),Le(()=>{if(y())return;let t=null;return ue().then(()=>{if(!b()&&typeof ResizeObserver<"u"){t=new ResizeObserver(V),n(l)&&t.observe(n(l));const e=le();e&&t.observe(e)}}),window.addEventListener("resize",V),window.addEventListener("scroll",fe,!0),()=>{t?.disconnect(),window.removeEventListener("resize",V),window.removeEventListener("scroll",fe,!0),H?.(),H=null}});var xe={get id(){return C()},set id(t){C(t),f()},get anchor(){return h()},set anchor(t){h(t),f()},get position(){return r()},set position(t="right"){r(t),f()},get absolute(){return b()},set absolute(t=!1){b(t),f()},get anchorElement(){return w()},set anchorElement(t=null){w(t),f()},get staticPosition(){return y()},set staticPosition(t=!1){y(t),f()},get class(){return E()},set class(t=""){E(t),f()},get children(){return M()},set children(t){M(t),f()},get onmouseenter(){return z()},set onmouseenter(t){z(t),f()},get onmouseleave(){return L()},set onmouseleave(t){L(t),f()},get onfocusin(){return O()},set onfocusin(t){O(t),f()},get onfocusout(){return I()},set onfocusout(t){I(t),f()},$set:Ae,$on:(t,e)=>Se(a,t,e)},de=Oe(),we=Ie(de);{var _e=t=>{var e=Ue(),c=K(e);Z(c,()=>M()??Q),X(e),ee(e,o=>R(l,o),()=>n(l)),Y(()=>{P(e,"id",C()),$(e,1,n(j)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${U} `+E()),P(e,"data-surface-level",A)}),D(t,e)},Pe=t=>{var e=be();let c;var o=K(e);Z(o,()=>M()??Q),X(e),ee(e,i=>R(l,i),()=>n(l)),Y(()=>{P(e,"id",C()),$(e,1,n(j)+` z-50 w-64 flex flex-col border border-border pointer-events-none ${U} `+E()),P(e,"data-surface-level",A),c=ve(e,"",c,{"position-anchor":h(),right:r()==="bottom"?"anchor(left)":void 0,left:r()==="right"?"anchor(right)":n(S)?"anchor(left)":n(g)?"anchor(center)":void 0,top:r()==="right"?"anchor(top)":n(S)?"anchor(bottom)":void 0,bottom:r()==="bottom"?"anchor(bottom)":n(g)?"anchor(top)":void 0,"margin-right":r()==="bottom"?"8px":void 0,"margin-left":r()==="right"?"8px":void 0,"margin-top":n(S)?"4px":void 0,"margin-bottom":n(g)?"4px":void 0,translate:n(g)?"-50% 0":void 0})}),N("mouseenter",e,function(...i){z()?.apply(this,i)}),N("mouseleave",e,function(...i){L()?.apply(this,i)}),k("focusin",e,function(...i){O()?.apply(this,i)}),k("focusout",e,function(...i){I()?.apply(this,i)}),F(1,e,()=>ge,()=>({tier:"fast",...n(re),scale:.96})),F(2,e,()=>pe,()=>({tier:"fast"})),D(t,e)},Ce=t=>{Te(t,{zIndex:50,children:(e,c)=>{var o=be();let i;var v=K(o);Z(v,()=>M()??Q),X(o),ee(o,s=>R(l,s),()=>n(l)),Y(()=>{P(o,"id",C()),$(o,1,n(j)+` z-50 w-64 flex flex-col overflow-y-auto border border-border pointer-events-auto ${U} `+E()),P(o,"data-surface-level",A),i=ve(o,n(ne),i,{"max-height":n(oe)})}),N("mouseenter",o,function(...s){z()?.apply(this,s)}),N("mouseleave",o,function(...s){L()?.apply(this,s)}),k("focusin",o,function(...s){O()?.apply(this,s)}),k("focusout",o,function(...s){I()?.apply(this,s)}),F(1,o,()=>ge,()=>({tier:"fast",...n(re),scale:.96})),F(2,o,()=>pe,()=>({tier:"fast"})),D(e,o)},$$slots:{default:!0}})};Be(we,t=>{y()?t(_e):b()?t(Pe,1):t(Ce,-1)})}return D(te,de),Ve(xe)}He(["focusin","focusout"]);export{je as H};
@@ -1 +1 @@
1
- import{t as bt,bo as x,bw as wt,bq as Rt,b as It,bs as g}from"./CtfEuoOH.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./3SdAC2_C.js";import{b as vt}from"./Dn334wJv.js";import{JH as l,eK as Ut,eL as At,t6 as Bt,op as xt,oq as Ft,Kf as Tt,Ku as Lt,Kk as _t,ou as T}from"./CiKoEJ2m.js";import{t as Dt}from"./C-BsEdGZ.js";import{g as Wt}from"./DWGXN6Nr.js";import{dI as Gt,bO as Nt,bQ as Et,bN as Mt,bS as Vt,de as Ht,m as Kt}from"./iQDlfKDR.js";import{C as qt}from"./Cnkux63v.js";import{V as zt}from"./CAUJiTuz.js";import{bT as Jt,bN as Ot,b8 as Qt}from"./BTXzEcFX.js";import{i as L,n as V}from"./H2jLkRRS.js";import{af as jt}from"./z0xDttNV.js";function Xt(_,$){if(new.target)return bt({component:Xt,..._});Pt($,!0);const H=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),K=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),z=()=>g(tt,"$foldUnchanged",c),J=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),Q=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,X]=Rt(),Y=o=>{zt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{E(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return z()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return J()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Jt(),tt=Ot(),et=Qt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const D=Wt(),p=Dt(()=>m()),ot=Gt(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(p),b=s(()=>H().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Nt(p),nt=Et(p),it=Mt(p),rt=Vt(p),dt=s(()=>K()||[]),lt=Ht(p),f=s(()=>q()[t(n)]??Kt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(b)?.registeredCommitSha,100))});let w=M(!0),R=M(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Y})});const N=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,N)),()=>l.dispatch(Ft(o,N))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):Q()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(qt(_,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>E(R,d,!0),()=>t(R))}var $t=kt(ft);return X(),$t}export{Xt as default};
1
+ import{t as bt,bo as x,bw as wt,bq as Rt,b as It,bs as g}from"./Fcr7AvC-.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./3SdAC2_C.js";import{b as vt}from"./Dn334wJv.js";import{JH as l,eK as Ut,eL as At,t6 as Bt,op as xt,oq as Ft,Kf as Tt,Ku as Lt,Kk as _t,ou as T}from"./D0qhIm1r.js";import{t as Dt}from"./C-BsEdGZ.js";import{g as Wt}from"./DWGXN6Nr.js";import{dI as Gt,bO as Nt,bQ as Et,bN as Mt,bS as Vt,de as Ht,m as Kt}from"./cD292w1o.js";import{C as qt}from"./BVBh582U.js";import{V as zt}from"./CDtaIFAl.js";import{bT as Jt,bN as Ot,b8 as Qt}from"./D-j7vD5Z.js";import{i as L,n as V}from"./H2jLkRRS.js";import{af as jt}from"./50HYkjWD.js";function Xt(_,$){if(new.target)return bt({component:Xt,..._});Pt($,!0);const H=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),K=()=>g(nt,"$ftCommits$",c),q=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),z=()=>g(tt,"$foldUnchanged",c),J=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),Q=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,X]=Rt(),Y=o=>{zt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{E(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return z()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return J()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Jt(),tt=Ot(),et=Qt();let P=x($,"tab",7),m=x($,"workspaceId",7),C=x($,"isActive",7);const D=Wt(),p=Dt(()=>m()),ot=Gt(p);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(p),b=s(()=>H().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Nt(p),nt=Et(p),it=Mt(p),rt=Vt(p),dt=s(()=>K()||[]),lt=Ht(p),f=s(()=>q()[t(n)]??Kt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),ut=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(Bt(o,i,t(b)?.registeredCommitSha,100))});let w=M(!0),R=M(null);const pt=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(ut).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,B=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:B,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Y})});const N=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(xt(o,N)),()=>l.dispatch(Ft(o,N))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):Q()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),B=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="unstaged");W(d.map(u=>u.relativePath||u.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(u=>u.stage==="staged");G(d.map(u=>u.relativePath||u.file))});vt(qt(_,{get isLoading(){return t(o)},get changes(){return t(pt)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(B)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>E(R,d,!0),()=>t(R))}var $t=kt(ft);return X(),$t}export{Xt as default};
@@ -1 +1 @@
1
- import{ca as p,c5 as i,aD as l,c9 as S,bs as W,a7 as R,ay as q,W as z,bn as I,aA as m}from"./3SdAC2_C.js";import{JH as h,t3 as K,bt as C}from"./CiKoEJ2m.js";import{t as x,bo as u,bw as M,bs as f,bq as A,b as D}from"./CtfEuoOH.js";import{i as E}from"./DynUeYUu.js";import{t as H}from"./C-BsEdGZ.js";import{m as J}from"./A0p6PvBn.js";import{aK as O}from"./JvFe2B29.js";import{c as j}from"./C3jMXj_V.js";function V(t){const s=()=>h.dispatch(K({quiet:t.quiet}));p(()=>{t.key?.(),t.active()&&i(s)});const r=S(()=>t.workspaces().some(o=>o.status===C.Retired));let a=i(()=>l(r));p(()=>{const o=l(r);i(()=>{a&&!o&&t.active()&&s(),a=o})})}function B(t,s){if(new.target)return x({component:B,...t});W(s,!0);const r=()=>f($,"$connected$",o),a=()=>f(_,"$slot$",o),[o,k]=A();let c=u(s,"workspaceId",7),n=u(s,"size",7,"default");const $=J(),_=O(H(()=>c()));var b={get workspaceId(){return c()},set workspaceId(e){c(e),m()},get size(){return n()},set size(e="default"){n(e),m()},$set:M,$on:(e,y)=>D(s,e,y)},d=R(),g=q(d);{var v=e=>{j(e,{get slot(){return a()},get size(){return n()}})};E(g,e=>{r()&&a()!==null&&e(v)})}z(t,d);var w=I(b);return k(),w}export{B as W,V as r};
1
+ import{ca as p,c5 as i,aD as l,c9 as S,bs as W,a7 as R,ay as q,W as z,bn as I,aA as m}from"./3SdAC2_C.js";import{JH as h,t3 as K,bt as C}from"./D0qhIm1r.js";import{t as x,bo as u,bw as M,bs as f,bq as A,b as D}from"./Fcr7AvC-.js";import{i as E}from"./BhYXv0ZM.js";import{t as H}from"./C-BsEdGZ.js";import{m as J}from"./A0p6PvBn.js";import{aK as O}from"./BuM8LV7z.js";import{c as j}from"./DkQdSPDN.js";function V(t){const s=()=>h.dispatch(K({quiet:t.quiet}));p(()=>{t.key?.(),t.active()&&i(s)});const r=S(()=>t.workspaces().some(o=>o.status===C.Retired));let a=i(()=>l(r));p(()=>{const o=l(r);i(()=>{a&&!o&&t.active()&&s(),a=o})})}function B(t,s){if(new.target)return x({component:B,...t});W(s,!0);const r=()=>f($,"$connected$",o),a=()=>f(_,"$slot$",o),[o,k]=A();let c=u(s,"workspaceId",7),n=u(s,"size",7,"default");const $=J(),_=O(H(()=>c()));var b={get workspaceId(){return c()},set workspaceId(e){c(e),m()},get size(){return n()},set size(e="default"){n(e),m()},$set:M,$on:(e,y)=>D(s,e,y)},d=R(),g=q(d);{var v=e=>{j(e,{get slot(){return a()},get size(){return n()}})};E(g,e=>{r()&&a()!==null&&e(v)})}z(t,d);var w=I(b);return k(),w}export{B as W,V as r};
@@ -1 +1 @@
1
- import{t as oe,bo as i,bw as ie,bq as ce,b as le,bs as $}from"./CtfEuoOH.js";import{bs as ue,bk as me,bH as j,ca as ve,aD as s,a5 as R,bl as ee,bS as B,bA as F,b_ as Z,bO as Q,W as w,bn as de,bV as te,c9 as g,aA as l,aB as E,a7 as fe,ay as pe,b$ as ae}from"./3SdAC2_C.js";import{i as h}from"./DynUeYUu.js";import{f as K,s as se}from"./B26ZHg3s.js";import{F as re,cd as ge,bZ as xe}from"./COofQgO0.js";import{p as _e,o as be}from"./CnFZbWXv.js";import{o as ne}from"./Bx1P9uW7.js";import{l as T}from"./DMEIbJII.js";var he=E('<span class="animated-number-target svelte-194ris3" aria-atomic="true"> </span>'),we=E('<span><span class="animated-number-value svelte-194ris3"> </span> <!></span>');function Y(L,r){if(new.target)return oe({component:Y,...L});ue(r,!0);const y=()=>$(W,"$displayValue",x),V=()=>$(q,"$displaySecondaryValue",x),[x,D]=ce();let n=i(r,"value",7),c=i(r,"tier",7,"slow"),o=i(r,"secondaryValue",7),_=i(r,"format",7,e=>T(e)),z=i(r,"class",7,""),N=i(r,"accessible",7,!0),S=i(r,"pulse",7,!0),k=te(null),m=n(),v=o(),P=te(!1),C=0;const W=ne(n(),c()),q=ne(o()??0,c());me(()=>(j(P,_e(),!0),be(e=>j(P,e,!0)))),ve(()=>{if(s(P)){C+=1,j(k,null),m=n(),v=o(),W.set(n()),q.set(o()??0);return}if(n()!==m||o()!==v){const e=n()!==m?m:v,u=n()!==m?n():o();j(k,(u??0)>(e??0)?"up":"down",!0),m=n(),v=o();const M=++C;return Promise.all([W.set(n()),q.set(o()??0)]).then(()=>{M===C&&j(k,null)}),()=>{C+=1}}});const t=g(()=>_()(y(),o()===void 0?void 0:V())),b=g(()=>_()(n(),o()));var G={get value(){return n()},set value(e){n(e),l()},get tier(){return c()},set tier(e="slow"){c(e),l()},get secondaryValue(){return o()},set secondaryValue(e){o(e),l()},get format(){return _()},set format(e=u=>T(u)){_(e),l()},get class(){return z()},set class(e=""){z(e),l()},get accessible(){return N()},set accessible(e=!0){N(e),l()},get pulse(){return S()},set pulse(e=!0){S(e),l()},$set:ie,$on:(e,u)=>le(r,e,u)},A=we();let J;var H=R(A),f=ee(H,!0),d=B(H,2);{var I=e=>{var u=he(),M=ee(u,!0);Z(()=>Q(M,s(b))),w(e,u)};h(d,e=>{N()&&e(I)})}F(A),Z(()=>{J=K(A,1,`animated-number ${z()??""}`,"svelte-194ris3",J,{"animating-up":S()&&s(k)==="up","animating-down":S()&&s(k)==="down"}),se(A,"data-pulse",S()?"true":"false"),se(H,"aria-hidden",N()?"true":void 0),Q(f,s(t))}),w(L,A);var O=de(G);return D(),O}var ye=E("<span><!> <span>+<!></span></span>"),Ve=E("<span><!> <span>-<!></span></span>"),ze=E("<div><!> <!></div>");function Se(L,r){if(new.target)return oe({component:Se,...L});ue(r,!0);let y=i(r,"additions",7,0),V=i(r,"deletions",7,0),x=i(r,"showZero",7,!1),D=i(r,"size",7,"xs"),n=i(r,"showIcons",7,!1),c=i(r,"animated",7,!1),o=i(r,"class",7,""),_=g(()=>y()>0),z=g(()=>V()>0),N=g(()=>s(_)||s(z)||x());const S={xxs:"text-[0.6rem]",xs:"text-[0.7rem]",sm:"text-sm",md:"text-base"},k={xxs:8,xs:10,sm:12,md:14},m=g(()=>S[D()]),v=g(()=>k[D()]);var P={get additions(){return y()},set additions(t=0){y(t),l()},get deletions(){return V()},set deletions(t=0){V(t),l()},get showZero(){return x()},set showZero(t=!1){x(t),l()},get size(){return D()},set size(t="xs"){D(t),l()},get showIcons(){return n()},set showIcons(t=!1){n(t),l()},get animated(){return c()},set animated(t=!1){c(t),l()},get class(){return o()},set class(t=""){o(t),l()},$set:ie,$on:(t,b)=>le(r,t,b)},C=fe(),W=pe(C);{var q=t=>{var b=ze(),G=R(b);{var A=f=>{var d=ye(),I=R(d);{var O=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return ge},get size(){return s(p)}})}};h(I,a=>{n()&&a(O)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return y()}})},U=a=>{var p=ae();Z(X=>Q(p,X),[()=>T(y())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),Z(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(_)?"text-emerald-600 dark:text-emerald-500":"text-emerald-600/30 dark:text-emerald-500/30"}`)),w(f,d)};h(G,f=>{(s(_)||x())&&f(A)})}var J=B(G,2);{var H=f=>{var d=Ve(),I=R(d);{var O=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return xe},get size(){return s(p)}})}};h(I,a=>{n()&&a(O)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return V()}})},U=a=>{var p=ae();Z(X=>Q(p,X),[()=>T(V())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),Z(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(z)?"text-red-600 dark:text-red-500":"text-red-600/30 dark:text-red-500/30"}`)),w(f,d)};h(J,f=>{(s(z)||x())&&f(H)})}F(b),Z(()=>K(b,1,`flex items-center gap-1 ${o()??""}`)),w(t,b)};h(W,t=>{s(N)&&t(q)})}return w(L,C),de(P)}export{Y as A,Se as L};
1
+ import{t as oe,bo as i,bw as ie,bq as ce,b as le,bs as $}from"./Fcr7AvC-.js";import{bs as ue,bk as me,bH as j,ca as ve,aD as s,a5 as R,bl as ee,bS as B,bA as F,b_ as Z,bO as Q,W as w,bn as de,bV as te,c9 as g,aA as l,aB as E,a7 as fe,ay as pe,b$ as ae}from"./3SdAC2_C.js";import{i as h}from"./BhYXv0ZM.js";import{f as K,s as se}from"./BRCr02in.js";import{F as re,cd as ge,bZ as xe}from"./ChHRVjww.js";import{p as _e,o as be}from"./CA6H1-bp.js";import{o as ne}from"./CxR-pcVt.js";import{l as T}from"./C7b3vXLD.js";var he=E('<span class="animated-number-target svelte-194ris3" aria-atomic="true"> </span>'),we=E('<span><span class="animated-number-value svelte-194ris3"> </span> <!></span>');function Y(L,r){if(new.target)return oe({component:Y,...L});ue(r,!0);const y=()=>$(W,"$displayValue",x),V=()=>$(q,"$displaySecondaryValue",x),[x,D]=ce();let n=i(r,"value",7),c=i(r,"tier",7,"slow"),o=i(r,"secondaryValue",7),_=i(r,"format",7,e=>T(e)),z=i(r,"class",7,""),N=i(r,"accessible",7,!0),S=i(r,"pulse",7,!0),k=te(null),m=n(),v=o(),P=te(!1),C=0;const W=ne(n(),c()),q=ne(o()??0,c());me(()=>(j(P,_e(),!0),be(e=>j(P,e,!0)))),ve(()=>{if(s(P)){C+=1,j(k,null),m=n(),v=o(),W.set(n()),q.set(o()??0);return}if(n()!==m||o()!==v){const e=n()!==m?m:v,u=n()!==m?n():o();j(k,(u??0)>(e??0)?"up":"down",!0),m=n(),v=o();const M=++C;return Promise.all([W.set(n()),q.set(o()??0)]).then(()=>{M===C&&j(k,null)}),()=>{C+=1}}});const t=g(()=>_()(y(),o()===void 0?void 0:V())),b=g(()=>_()(n(),o()));var G={get value(){return n()},set value(e){n(e),l()},get tier(){return c()},set tier(e="slow"){c(e),l()},get secondaryValue(){return o()},set secondaryValue(e){o(e),l()},get format(){return _()},set format(e=u=>T(u)){_(e),l()},get class(){return z()},set class(e=""){z(e),l()},get accessible(){return N()},set accessible(e=!0){N(e),l()},get pulse(){return S()},set pulse(e=!0){S(e),l()},$set:ie,$on:(e,u)=>le(r,e,u)},A=we();let J;var H=R(A),f=ee(H,!0),d=B(H,2);{var I=e=>{var u=he(),M=ee(u,!0);Z(()=>Q(M,s(b))),w(e,u)};h(d,e=>{N()&&e(I)})}F(A),Z(()=>{J=K(A,1,`animated-number ${z()??""}`,"svelte-194ris3",J,{"animating-up":S()&&s(k)==="up","animating-down":S()&&s(k)==="down"}),se(A,"data-pulse",S()?"true":"false"),se(H,"aria-hidden",N()?"true":void 0),Q(f,s(t))}),w(L,A);var O=de(G);return D(),O}var ye=E("<span><!> <span>+<!></span></span>"),Ve=E("<span><!> <span>-<!></span></span>"),ze=E("<div><!> <!></div>");function Se(L,r){if(new.target)return oe({component:Se,...L});ue(r,!0);let y=i(r,"additions",7,0),V=i(r,"deletions",7,0),x=i(r,"showZero",7,!1),D=i(r,"size",7,"xs"),n=i(r,"showIcons",7,!1),c=i(r,"animated",7,!1),o=i(r,"class",7,""),_=g(()=>y()>0),z=g(()=>V()>0),N=g(()=>s(_)||s(z)||x());const S={xxs:"text-[0.6rem]",xs:"text-[0.7rem]",sm:"text-sm",md:"text-base"},k={xxs:8,xs:10,sm:12,md:14},m=g(()=>S[D()]),v=g(()=>k[D()]);var P={get additions(){return y()},set additions(t=0){y(t),l()},get deletions(){return V()},set deletions(t=0){V(t),l()},get showZero(){return x()},set showZero(t=!1){x(t),l()},get size(){return D()},set size(t="xs"){D(t),l()},get showIcons(){return n()},set showIcons(t=!1){n(t),l()},get animated(){return c()},set animated(t=!1){c(t),l()},get class(){return o()},set class(t=""){o(t),l()},$set:ie,$on:(t,b)=>le(r,t,b)},C=fe(),W=pe(C);{var q=t=>{var b=ze(),G=R(b);{var A=f=>{var d=ye(),I=R(d);{var O=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return ge},get size(){return s(p)}})}};h(I,a=>{n()&&a(O)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return y()}})},U=a=>{var p=ae();Z(X=>Q(p,X),[()=>T(y())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),Z(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(_)?"text-emerald-600 dark:text-emerald-500":"text-emerald-600/30 dark:text-emerald-500/30"}`)),w(f,d)};h(G,f=>{(s(_)||x())&&f(A)})}var J=B(G,2);{var H=f=>{var d=Ve(),I=R(d);{var O=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return xe},get size(){return s(p)}})}};h(I,a=>{n()&&a(O)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return V()}})},U=a=>{var p=ae();Z(X=>Q(p,X),[()=>T(V())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),Z(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(z)?"text-red-600 dark:text-red-500":"text-red-600/30 dark:text-red-500/30"}`)),w(f,d)};h(J,f=>{(s(z)||x())&&f(H)})}F(b),Z(()=>K(b,1,`flex items-center gap-1 ${o()??""}`)),w(t,b)};h(W,t=>{s(N)&&t(q)})}return w(L,C),de(P)}export{Y as A,Se as L};
@@ -1 +1 @@
1
- import{JH as s}from"./CiKoEJ2m.js";import{bm as r}from"./CtfEuoOH.js";import{l as t,m as c}from"./DMEIbJII.js";const u=s.createSelector((a,e)=>e?a.workspaceCreateProgress.byProgressId[e]??null:null);function o(a){const e=a?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function n(a){const e=a?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function i(a){const e=a?.match(/^Starting agent on (.+?)(?:\.\.\.|…)$/);return e?e[1]:null}function _(a){switch(a.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=n(a.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=o(a.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:t(e.current),total:t(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"agent":{const e=i(a.message);return e?r.workspace_compactInitializer_progressAgent_label({machine:e}):r.workspace_compactInitializer_progressAgentGeneric_label()}case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function g(a){const e=Math.min(Math.max(a,0),100);return c(e/100,{style:"percent",maximumFractionDigits:0})}export{_ as c,g as f,u as s};
1
+ import{JH as s}from"./D0qhIm1r.js";import{bm as r}from"./Fcr7AvC-.js";import{l as t,m as c}from"./C7b3vXLD.js";const u=s.createSelector((a,e)=>e?a.workspaceCreateProgress.byProgressId[e]??null:null);function o(a){const e=a?.match(/\((\d+)\/(\d+)\)/);return e?{current:Number(e[1]),total:Number(e[2])}:null}function n(a){const e=a?.match(/^Updating (\S+) from (\S+?)(?:\.\.\.|…)?$/);return e?{base:e[1],remote:e[2]}:null}function i(a){const e=a?.match(/^Starting agent on (.+?)(?:\.\.\.|…)$/);return e?e[1]:null}function _(a){switch(a.phase){case"cache":return r.workspace_compactInitializer_progressCache_label();case"base-refresh":{const e=n(a.message);return e?r.workspace_compactInitializer_progressBaseRefresh_label(e):r.workspace_compactInitializer_progressBaseRefreshGeneric_label()}case"counting":return r.workspace_compactInitializer_progressCounting_label();case"compressing":return r.workspace_compactInitializer_progressCompressing_label();case"receiving":return r.workspace_compactInitializer_progressReceiving_label();case"resolving":return r.workspace_compactInitializer_progressResolving_label();case"checkout":return r.workspace_compactInitializer_progressCheckout_label();case"submodules":{const e=o(a.message);return e?r.workspace_compactInitializer_progressSubmodulesCounted_label({current:t(e.current),total:t(e.total)}):r.workspace_compactInitializer_progressSubmodules_label()}case"cow-copy":return r.workspace_compactInitializer_progressCowCopy_label();case"worktree":return r.workspace_compactInitializer_progressWorktree_label();case"finalizing":return r.workspace_compactInitializer_progressFinalizing_label();case"agent":{const e=i(a.message);return e?r.workspace_compactInitializer_progressAgent_label({machine:e}):r.workspace_compactInitializer_progressAgentGeneric_label()}case"complete":return r.workspace_compactInitializer_stageAlmostReady_label();case"starting":default:return r.workspace_compactInitializer_stagePreparing_label()}}function g(a){const e=Math.min(Math.max(a,0),100);return c(e/100,{style:"percent",maximumFractionDigits:0})}export{_ as c,g as f,u as s};