@getontime/cli 4.2.0 → 4.2.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 (393) hide show
  1. package/client/assets/Backstage-WSlbFC9X.js +2 -0
  2. package/client/assets/Backstage-WSlbFC9X.js.br +0 -0
  3. package/client/assets/Backstage-WSlbFC9X.js.gz +0 -0
  4. package/client/assets/{Backstage-DG-hwPI3.js.map → Backstage-WSlbFC9X.js.map} +1 -1
  5. package/client/assets/{Countdown-C8LGl1pp.js → Countdown-B32qlxYT.js} +2 -2
  6. package/client/assets/Countdown-B32qlxYT.js.br +0 -0
  7. package/client/assets/Countdown-B32qlxYT.js.gz +0 -0
  8. package/client/assets/{Countdown-C8LGl1pp.js.map → Countdown-B32qlxYT.js.map} +1 -1
  9. package/client/assets/{CustomTranslationModal-CJ9-aDjl.js → CustomTranslationModal-CtBvokyt.js} +2 -2
  10. package/client/assets/CustomTranslationModal-CtBvokyt.js.br +0 -0
  11. package/client/assets/CustomTranslationModal-CtBvokyt.js.gz +0 -0
  12. package/client/assets/{CustomTranslationModal-CJ9-aDjl.js.map → CustomTranslationModal-CtBvokyt.js.map} +1 -1
  13. package/client/assets/DelayIndicator-BFZFpsY5.js +2 -0
  14. package/client/assets/DelayIndicator-BFZFpsY5.js.br +0 -0
  15. package/client/assets/DelayIndicator-BFZFpsY5.js.gz +0 -0
  16. package/client/assets/{DelayIndicator-F4GdgsGh.js.map → DelayIndicator-BFZFpsY5.js.map} +1 -1
  17. package/client/assets/EditorFeatureWrapper-DaMxgBMP.js +2 -0
  18. package/client/assets/EditorFeatureWrapper-DaMxgBMP.js.br +0 -0
  19. package/client/assets/EditorFeatureWrapper-DaMxgBMP.js.gz +0 -0
  20. package/client/assets/{EditorFeatureWrapper-eIpSr_UK.js.map → EditorFeatureWrapper-DaMxgBMP.js.map} +1 -1
  21. package/client/assets/EditorUtils-DoaSwWiz.js +2 -0
  22. package/client/assets/EditorUtils-DoaSwWiz.js.br +0 -0
  23. package/client/assets/EditorUtils-DoaSwWiz.js.gz +0 -0
  24. package/client/assets/{EditorUtils-Bd3J5Dvf.js.map → EditorUtils-DoaSwWiz.js.map} +1 -1
  25. package/client/assets/Empty-D1UteOYj.js +2 -0
  26. package/client/assets/Empty-D1UteOYj.js.br +0 -0
  27. package/client/assets/Empty-D1UteOYj.js.gz +0 -0
  28. package/client/assets/{Empty-C0IdV_kI.js.map → Empty-D1UteOYj.js.map} +1 -1
  29. package/client/assets/EmptyPage-DeRjpRKZ.js +2 -0
  30. package/client/assets/EmptyPage-DeRjpRKZ.js.br +0 -0
  31. package/client/assets/EmptyPage-DeRjpRKZ.js.gz +0 -0
  32. package/client/assets/{EmptyPage-Ct3d0DqJ.js.map → EmptyPage-DeRjpRKZ.js.map} +1 -1
  33. package/client/assets/FollowButton-FodezDem.js +2 -0
  34. package/client/assets/FollowButton-FodezDem.js.br +0 -0
  35. package/client/assets/FollowButton-FodezDem.js.gz +0 -0
  36. package/client/assets/{FollowButton-BG-ycRWu.js.map → FollowButton-FodezDem.js.map} +1 -1
  37. package/client/assets/{MessageControlExport-X-4dl9QT.js → MessageControlExport-CFGgiwk_.js} +3 -3
  38. package/client/assets/MessageControlExport-CFGgiwk_.js.br +0 -0
  39. package/client/assets/MessageControlExport-CFGgiwk_.js.gz +0 -0
  40. package/client/assets/MessageControlExport-CFGgiwk_.js.map +1 -0
  41. package/client/assets/{MilestoneEditor-rgBQSXVU.js → MilestoneEditor-B5BdJ5ju.js} +2 -2
  42. package/client/assets/MilestoneEditor-B5BdJ5ju.js.br +0 -0
  43. package/client/assets/MilestoneEditor-B5BdJ5ju.js.gz +0 -0
  44. package/client/assets/{MilestoneEditor-rgBQSXVU.js.map → MilestoneEditor-B5BdJ5ju.js.map} +1 -1
  45. package/client/assets/Modal-B8ZZbVMg.js +2 -0
  46. package/client/assets/Modal-B8ZZbVMg.js.br +0 -0
  47. package/client/assets/Modal-B8ZZbVMg.js.gz +0 -0
  48. package/client/assets/{Modal-Bn1bZkwb.js.map → Modal-B8ZZbVMg.js.map} +1 -1
  49. package/client/assets/{MultiPartProgressBar-Cmw-gisu.js → MultiPartProgressBar-BKHk19Hb.js} +2 -2
  50. package/client/assets/MultiPartProgressBar-BKHk19Hb.js.br +0 -0
  51. package/client/assets/MultiPartProgressBar-BKHk19Hb.js.gz +0 -0
  52. package/client/assets/{MultiPartProgressBar-Cmw-gisu.js.map → MultiPartProgressBar-BKHk19Hb.js.map} +1 -1
  53. package/client/assets/{OperatorExport-CJd8jmY4.js → OperatorExport-DQM14DsN.js} +2 -2
  54. package/client/assets/OperatorExport-DQM14DsN.js.br +0 -0
  55. package/client/assets/OperatorExport-DQM14DsN.js.gz +0 -0
  56. package/client/assets/{OperatorExport-CJd8jmY4.js.map → OperatorExport-DQM14DsN.js.map} +1 -1
  57. package/client/assets/{OverviewWrapper-1Vj3_ojX.js → OverviewWrapper-D1hUkrRi.js} +2 -2
  58. package/client/assets/OverviewWrapper-D1hUkrRi.js.br +0 -0
  59. package/client/assets/OverviewWrapper-D1hUkrRi.js.gz +0 -0
  60. package/client/assets/{OverviewWrapper-1Vj3_ojX.js.map → OverviewWrapper-D1hUkrRi.js.map} +1 -1
  61. package/client/assets/PipHost-B9-cZ8Lm.js +2 -0
  62. package/client/assets/PipHost-B9-cZ8Lm.js.br +0 -0
  63. package/client/assets/PipHost-B9-cZ8Lm.js.gz +0 -0
  64. package/client/assets/PipHost-B9-cZ8Lm.js.map +1 -0
  65. package/client/assets/PipHost-DEhjTbGT.css +1 -0
  66. package/client/assets/PipHost-DEhjTbGT.css.br +0 -0
  67. package/client/assets/PipHost-DEhjTbGT.css.gz +0 -0
  68. package/client/assets/{ProjectInfo-BduQgjcz.js → ProjectInfo-Dp1TZyBd.js} +2 -2
  69. package/client/assets/ProjectInfo-Dp1TZyBd.js.br +0 -0
  70. package/client/assets/ProjectInfo-Dp1TZyBd.js.gz +0 -0
  71. package/client/assets/{ProjectInfo-BduQgjcz.js.map → ProjectInfo-Dp1TZyBd.js.map} +1 -1
  72. package/client/assets/ProtectRoute-EejQ5o_H.js +2 -0
  73. package/client/assets/ProtectRoute-EejQ5o_H.js.br +0 -0
  74. package/client/assets/ProtectRoute-EejQ5o_H.js.gz +0 -0
  75. package/client/assets/{ProtectRoute-Ci_AIozP.js.map → ProtectRoute-EejQ5o_H.js.map} +1 -1
  76. package/client/assets/{ProtectedCuesheet-D_zdkwM-.js → ProtectedCuesheet-DvYSgueA.js} +2 -2
  77. package/client/assets/ProtectedCuesheet-DvYSgueA.js.br +0 -0
  78. package/client/assets/ProtectedCuesheet-DvYSgueA.js.gz +0 -0
  79. package/client/assets/{ProtectedCuesheet-D_zdkwM-.js.map → ProtectedCuesheet-DvYSgueA.js.map} +1 -1
  80. package/client/assets/{ProtectedEditor-CNL2ig79.js → ProtectedEditor-B0l0X3QP.js} +3 -3
  81. package/client/assets/ProtectedEditor-B0l0X3QP.js.br +0 -0
  82. package/client/assets/ProtectedEditor-B0l0X3QP.js.gz +0 -0
  83. package/client/assets/ProtectedEditor-B0l0X3QP.js.map +1 -0
  84. package/client/assets/RundownEntry-CwiStTnR.js +2 -0
  85. package/client/assets/RundownEntry-CwiStTnR.js.br +0 -0
  86. package/client/assets/RundownEntry-CwiStTnR.js.gz +0 -0
  87. package/client/assets/RundownEntry-CwiStTnR.js.map +1 -0
  88. package/client/assets/RundownExport-CCaOfHIr.js +3 -0
  89. package/client/assets/RundownExport-CCaOfHIr.js.br +0 -0
  90. package/client/assets/RundownExport-CCaOfHIr.js.gz +0 -0
  91. package/client/assets/RundownExport-CCaOfHIr.js.map +1 -0
  92. package/client/assets/Select-cHK8JrMG.js +2 -0
  93. package/client/assets/Select-cHK8JrMG.js.br +0 -0
  94. package/client/assets/Select-cHK8JrMG.js.gz +0 -0
  95. package/client/assets/{Select-B5xNi_tM.js.map → Select-cHK8JrMG.js.map} +1 -1
  96. package/client/assets/{Studio-D4hRKhJ1.js → Studio-BzwFDYzk.js} +2 -2
  97. package/client/assets/Studio-BzwFDYzk.js.br +0 -0
  98. package/client/assets/Studio-BzwFDYzk.js.gz +0 -0
  99. package/client/assets/{Studio-D4hRKhJ1.js.map → Studio-BzwFDYzk.js.map} +1 -1
  100. package/client/assets/StyleEditor-RZvkKHdf.js +2 -0
  101. package/client/assets/StyleEditor-RZvkKHdf.js.br +0 -0
  102. package/client/assets/StyleEditor-RZvkKHdf.js.gz +0 -0
  103. package/client/assets/{StyleEditor-BvcE8dkA.js.map → StyleEditor-RZvkKHdf.js.map} +1 -1
  104. package/client/assets/SuperscriptPeriod-DaZq1rr6.js +2 -0
  105. package/client/assets/SuperscriptPeriod-DaZq1rr6.js.br +0 -0
  106. package/client/assets/SuperscriptPeriod-DaZq1rr6.js.gz +0 -0
  107. package/client/assets/{SuperscriptPeriod-BmHAoSBy.js.map → SuperscriptPeriod-DaZq1rr6.js.map} +1 -1
  108. package/client/assets/SuperscriptTime-Mc0ZGBMo.js +2 -0
  109. package/client/assets/SuperscriptTime-Mc0ZGBMo.js.br +0 -0
  110. package/client/assets/SuperscriptTime-Mc0ZGBMo.js.gz +0 -0
  111. package/client/assets/{SuperscriptTime-Nou92D8X.js.map → SuperscriptTime-Mc0ZGBMo.js.map} +1 -1
  112. package/client/assets/{TimeElements-XpRwBsaa.js → TimeElements-dIvFHgcd.js} +2 -2
  113. package/client/assets/TimeElements-dIvFHgcd.js.br +0 -0
  114. package/client/assets/TimeElements-dIvFHgcd.js.gz +0 -0
  115. package/client/assets/{TimeElements-XpRwBsaa.js.map → TimeElements-dIvFHgcd.js.map} +1 -1
  116. package/client/assets/TimeInput-Duzx40TC.js +2 -0
  117. package/client/assets/TimeInput-Duzx40TC.js.br +0 -0
  118. package/client/assets/TimeInput-Duzx40TC.js.gz +0 -0
  119. package/client/assets/{TimeInput-Bu_5GlHP.js.map → TimeInput-Duzx40TC.js.map} +1 -1
  120. package/client/assets/{TimelinePage-CQqUB1KT.js → TimelinePage-C-OHrCR8.js} +2 -2
  121. package/client/assets/TimelinePage-C-OHrCR8.js.br +0 -0
  122. package/client/assets/TimelinePage-C-OHrCR8.js.gz +0 -0
  123. package/client/assets/{TimelinePage-CQqUB1KT.js.map → TimelinePage-C-OHrCR8.js.map} +1 -1
  124. package/client/assets/Timer-CGqVtVEC.js +2 -0
  125. package/client/assets/Timer-CGqVtVEC.js.br +0 -0
  126. package/client/assets/Timer-CGqVtVEC.js.gz +0 -0
  127. package/client/assets/{Timer-CIr2L3gJ.js.map → Timer-CGqVtVEC.js.map} +1 -1
  128. package/client/assets/{Timer-B7nk3TMf.css → Timer-Jjolf5Ra.css} +1 -1
  129. package/client/assets/Timer-Jjolf5Ra.css.br +0 -0
  130. package/client/assets/Timer-Jjolf5Ra.css.gz +0 -0
  131. package/client/assets/{TimerControlExport-4a3Cd9x8.js → TimerControlExport-GJn4WWdH.js} +2 -2
  132. package/client/assets/TimerControlExport-GJn4WWdH.js.br +0 -0
  133. package/client/assets/TimerControlExport-GJn4WWdH.js.gz +0 -0
  134. package/client/assets/{TimerControlExport-4a3Cd9x8.js.map → TimerControlExport-GJn4WWdH.js.map} +1 -1
  135. package/client/assets/TitleCard-BqbrUnHO.js +2 -0
  136. package/client/assets/TitleCard-BqbrUnHO.js.br +0 -0
  137. package/client/assets/TitleCard-BqbrUnHO.js.gz +0 -0
  138. package/client/assets/{TitleCard-1U35ek0D.js.map → TitleCard-BqbrUnHO.js.map} +1 -1
  139. package/client/assets/Tooltip-BQBvaIZx.js +2 -0
  140. package/client/assets/Tooltip-BQBvaIZx.js.br +0 -0
  141. package/client/assets/Tooltip-BQBvaIZx.js.gz +0 -0
  142. package/client/assets/{Tooltip-B8y25e3n.js.map → Tooltip-BQBvaIZx.js.map} +1 -1
  143. package/client/assets/ViewLogo-BdL1hUV1.js +2 -0
  144. package/client/assets/ViewLogo-BdL1hUV1.js.br +0 -0
  145. package/client/assets/ViewLogo-BdL1hUV1.js.gz +0 -0
  146. package/client/assets/{ViewLogo-BHsV7Faa.js.map → ViewLogo-BdL1hUV1.js.map} +1 -1
  147. package/client/assets/{ViewParamsEditor-BMHXOv-K.js → ViewParamsEditor-CFedpp6w.js} +2 -2
  148. package/client/assets/ViewParamsEditor-CFedpp6w.js.br +0 -0
  149. package/client/assets/ViewParamsEditor-CFedpp6w.js.gz +0 -0
  150. package/client/assets/{ViewParamsEditor-BMHXOv-K.js.map → ViewParamsEditor-CFedpp6w.js.map} +1 -1
  151. package/client/assets/dateConfig-BU1RZfIK.js +2 -0
  152. package/client/assets/dateConfig-BU1RZfIK.js.br +0 -0
  153. package/client/assets/dateConfig-BU1RZfIK.js.gz +0 -0
  154. package/client/assets/dateConfig-BU1RZfIK.js.map +1 -0
  155. package/client/assets/editorSettings-BMt-7s8I.js +2 -0
  156. package/client/assets/editorSettings-BMt-7s8I.js.br +0 -0
  157. package/client/assets/editorSettings-BMt-7s8I.js.gz +0 -0
  158. package/client/assets/{editorSettings-DH9ca-nB.js.map → editorSettings-BMt-7s8I.js.map} +1 -1
  159. package/client/assets/{getProgress-DlrSzpnf.js → getProgress-sdxPEEPi.js} +2 -2
  160. package/client/assets/getProgress-sdxPEEPi.js.br +0 -0
  161. package/client/assets/getProgress-sdxPEEPi.js.gz +0 -0
  162. package/client/assets/{getProgress-DlrSzpnf.js.map → getProgress-sdxPEEPi.js.map} +1 -1
  163. package/client/assets/index-CoGiopcb.js +3 -0
  164. package/client/assets/index-CoGiopcb.js.br +0 -0
  165. package/client/assets/index-CoGiopcb.js.gz +0 -0
  166. package/client/assets/index-CoGiopcb.js.map +1 -0
  167. package/client/assets/{offset-CLG4o744.js → offset-BS90Rks2.js} +2 -2
  168. package/client/assets/offset-BS90Rks2.js.br +0 -0
  169. package/client/assets/offset-BS90Rks2.js.gz +0 -0
  170. package/client/assets/{offset-CLG4o744.js.map → offset-BS90Rks2.js.map} +1 -1
  171. package/client/assets/parseUserTime-DZJMcfuJ.js +2 -0
  172. package/client/assets/parseUserTime-DZJMcfuJ.js.br +0 -0
  173. package/client/assets/parseUserTime-DZJMcfuJ.js.gz +0 -0
  174. package/client/assets/{parseUserTime-Cp5iWS7y.js.map → parseUserTime-DZJMcfuJ.js.map} +1 -1
  175. package/client/assets/{playbackstate-B3BKJ8cT.js → playbackstate-CWexoP3a.js} +2 -2
  176. package/client/assets/playbackstate-CWexoP3a.js.br +0 -0
  177. package/client/assets/playbackstate-CWexoP3a.js.gz +0 -0
  178. package/client/assets/{playbackstate-B3BKJ8cT.js.map → playbackstate-CWexoP3a.js.map} +1 -1
  179. package/client/assets/{presentation.utils-B-wIv_a5.js → presentation.utils-Zo5hNQje.js} +2 -2
  180. package/client/assets/presentation.utils-Zo5hNQje.js.br +0 -0
  181. package/client/assets/presentation.utils-Zo5hNQje.js.gz +0 -0
  182. package/client/assets/{presentation.utils-B-wIv_a5.js.map → presentation.utils-Zo5hNQje.js.map} +1 -1
  183. package/client/assets/rundownUtils-Dl1x6NDv.js +2 -0
  184. package/client/assets/rundownUtils-Dl1x6NDv.js.br +0 -0
  185. package/client/assets/rundownUtils-Dl1x6NDv.js.gz +0 -0
  186. package/client/assets/{rundownUtils-DJKMt8Ih.js.map → rundownUtils-Dl1x6NDv.js.map} +1 -1
  187. package/client/assets/timer.utils-BnMyVO6Z.js +2 -0
  188. package/client/assets/timer.utils-BnMyVO6Z.js.br +0 -0
  189. package/client/assets/timer.utils-BnMyVO6Z.js.gz +0 -0
  190. package/client/assets/timer.utils-BnMyVO6Z.js.map +1 -0
  191. package/client/assets/useCustomFields-CcTb-GQM.js +2 -0
  192. package/client/assets/useCustomFields-CcTb-GQM.js.br +0 -0
  193. package/client/assets/useCustomFields-CcTb-GQM.js.gz +0 -0
  194. package/client/assets/{useCustomFields-BUJkzZvM.js.map → useCustomFields-CcTb-GQM.js.map} +1 -1
  195. package/client/assets/useFollowComponent-BjhV6Uv8.js +2 -0
  196. package/client/assets/useFollowComponent-BjhV6Uv8.js.br +0 -0
  197. package/client/assets/useFollowComponent-BjhV6Uv8.js.gz +0 -0
  198. package/client/assets/{useFollowComponent-Eyo4hWVG.js.map → useFollowComponent-BjhV6Uv8.js.map} +1 -1
  199. package/client/assets/{useProjectData-DGA6K2Zs.js → useProjectData-B5mjXsMj.js} +2 -2
  200. package/client/assets/useProjectData-B5mjXsMj.js.br +0 -0
  201. package/client/assets/useProjectData-B5mjXsMj.js.gz +0 -0
  202. package/client/assets/{useProjectData-DGA6K2Zs.js.map → useProjectData-B5mjXsMj.js.map} +1 -1
  203. package/client/assets/useReport-zMbyWwpn.js +2 -0
  204. package/client/assets/useReport-zMbyWwpn.js.br +0 -0
  205. package/client/assets/useReport-zMbyWwpn.js.gz +0 -0
  206. package/client/assets/{useReport-BUCsRa2T.js.map → useReport-zMbyWwpn.js.map} +1 -1
  207. package/client/assets/useRundown-CHsh5rnl.js +2 -0
  208. package/client/assets/useRundown-CHsh5rnl.js.br +0 -0
  209. package/client/assets/useRundown-CHsh5rnl.js.gz +0 -0
  210. package/client/assets/useRundown-CHsh5rnl.js.map +1 -0
  211. package/client/assets/useWindowTitle-mLKt65i7.js +2 -0
  212. package/client/assets/useWindowTitle-mLKt65i7.js.br +0 -0
  213. package/client/assets/useWindowTitle-mLKt65i7.js.gz +0 -0
  214. package/client/assets/{useWindowTitle-DU8NlxIu.js.map → useWindowTitle-mLKt65i7.js.map} +1 -1
  215. package/client/assets/{validateEvent-3adKsP1N.js → validateEvent-CUmvjN95.js} +2 -2
  216. package/client/assets/validateEvent-CUmvjN95.js.br +0 -0
  217. package/client/assets/validateEvent-CUmvjN95.js.gz +0 -0
  218. package/client/assets/{validateEvent-3adKsP1N.js.map → validateEvent-CUmvjN95.js.map} +1 -1
  219. package/client/assets/{vendor-BoH5HFNN.js → vendor-Cdwxo8bP.js} +21 -21
  220. package/client/assets/vendor-Cdwxo8bP.js.br +0 -0
  221. package/client/assets/vendor-Cdwxo8bP.js.gz +0 -0
  222. package/client/assets/{vendor-BoH5HFNN.js.map → vendor-Cdwxo8bP.js.map} +1 -1
  223. package/client/assets/{viewLoader.utils-BPOG1xso.js → viewLoader.utils-DuXjY5zb.js} +2 -2
  224. package/client/assets/viewLoader.utils-DuXjY5zb.js.br +0 -0
  225. package/client/assets/viewLoader.utils-DuXjY5zb.js.gz +0 -0
  226. package/client/assets/{viewLoader.utils-BPOG1xso.js.map → viewLoader.utils-DuXjY5zb.js.map} +1 -1
  227. package/client/assets/viewUtils-dKRKkb_F.js +2 -0
  228. package/client/assets/viewUtils-dKRKkb_F.js.br +0 -0
  229. package/client/assets/viewUtils-dKRKkb_F.js.gz +0 -0
  230. package/client/assets/viewUtils-dKRKkb_F.js.map +1 -0
  231. package/client/index.html +2 -2
  232. package/package.json +1 -1
  233. package/server/index.cjs +89 -89
  234. package/client/assets/Backstage-DG-hwPI3.js +0 -2
  235. package/client/assets/Backstage-DG-hwPI3.js.br +0 -0
  236. package/client/assets/Backstage-DG-hwPI3.js.gz +0 -0
  237. package/client/assets/Countdown-C8LGl1pp.js.br +0 -0
  238. package/client/assets/Countdown-C8LGl1pp.js.gz +0 -0
  239. package/client/assets/CustomTranslationModal-CJ9-aDjl.js.br +0 -0
  240. package/client/assets/CustomTranslationModal-CJ9-aDjl.js.gz +0 -0
  241. package/client/assets/DelayIndicator-F4GdgsGh.js +0 -2
  242. package/client/assets/DelayIndicator-F4GdgsGh.js.br +0 -0
  243. package/client/assets/DelayIndicator-F4GdgsGh.js.gz +0 -0
  244. package/client/assets/EditorFeatureWrapper-eIpSr_UK.js +0 -2
  245. package/client/assets/EditorFeatureWrapper-eIpSr_UK.js.br +0 -0
  246. package/client/assets/EditorFeatureWrapper-eIpSr_UK.js.gz +0 -0
  247. package/client/assets/EditorUtils-Bd3J5Dvf.js +0 -2
  248. package/client/assets/EditorUtils-Bd3J5Dvf.js.br +0 -0
  249. package/client/assets/EditorUtils-Bd3J5Dvf.js.gz +0 -0
  250. package/client/assets/Empty-C0IdV_kI.js +0 -2
  251. package/client/assets/Empty-C0IdV_kI.js.br +0 -0
  252. package/client/assets/Empty-C0IdV_kI.js.gz +0 -0
  253. package/client/assets/EmptyPage-Ct3d0DqJ.js +0 -2
  254. package/client/assets/EmptyPage-Ct3d0DqJ.js.br +0 -0
  255. package/client/assets/EmptyPage-Ct3d0DqJ.js.gz +0 -0
  256. package/client/assets/FollowButton-BG-ycRWu.js +0 -2
  257. package/client/assets/FollowButton-BG-ycRWu.js.br +0 -0
  258. package/client/assets/FollowButton-BG-ycRWu.js.gz +0 -0
  259. package/client/assets/MessageControlExport-X-4dl9QT.js.br +0 -0
  260. package/client/assets/MessageControlExport-X-4dl9QT.js.gz +0 -0
  261. package/client/assets/MessageControlExport-X-4dl9QT.js.map +0 -1
  262. package/client/assets/MilestoneEditor-rgBQSXVU.js.br +0 -0
  263. package/client/assets/MilestoneEditor-rgBQSXVU.js.gz +0 -0
  264. package/client/assets/Modal-Bn1bZkwb.js +0 -2
  265. package/client/assets/Modal-Bn1bZkwb.js.br +0 -0
  266. package/client/assets/Modal-Bn1bZkwb.js.gz +0 -0
  267. package/client/assets/MultiPartProgressBar-Cmw-gisu.js.br +0 -0
  268. package/client/assets/MultiPartProgressBar-Cmw-gisu.js.gz +0 -0
  269. package/client/assets/OperatorExport-CJd8jmY4.js.br +0 -0
  270. package/client/assets/OperatorExport-CJd8jmY4.js.gz +0 -0
  271. package/client/assets/OverviewWrapper-1Vj3_ojX.js.br +0 -0
  272. package/client/assets/OverviewWrapper-1Vj3_ojX.js.gz +0 -0
  273. package/client/assets/PipHost-BUF7n-lT.css +0 -1
  274. package/client/assets/PipHost-BUF7n-lT.css.br +0 -0
  275. package/client/assets/PipHost-BUF7n-lT.css.gz +0 -0
  276. package/client/assets/PipHost-D7liNR4M.js +0 -2
  277. package/client/assets/PipHost-D7liNR4M.js.br +0 -0
  278. package/client/assets/PipHost-D7liNR4M.js.gz +0 -0
  279. package/client/assets/PipHost-D7liNR4M.js.map +0 -1
  280. package/client/assets/ProjectInfo-BduQgjcz.js.br +0 -0
  281. package/client/assets/ProjectInfo-BduQgjcz.js.gz +0 -0
  282. package/client/assets/ProtectRoute-Ci_AIozP.js +0 -2
  283. package/client/assets/ProtectRoute-Ci_AIozP.js.br +0 -0
  284. package/client/assets/ProtectRoute-Ci_AIozP.js.gz +0 -0
  285. package/client/assets/ProtectedCuesheet-D_zdkwM-.js.br +0 -0
  286. package/client/assets/ProtectedCuesheet-D_zdkwM-.js.gz +0 -0
  287. package/client/assets/ProtectedEditor-CNL2ig79.js.br +0 -0
  288. package/client/assets/ProtectedEditor-CNL2ig79.js.gz +0 -0
  289. package/client/assets/ProtectedEditor-CNL2ig79.js.map +0 -1
  290. package/client/assets/RundownEntry-Bs1ombtH.js +0 -2
  291. package/client/assets/RundownEntry-Bs1ombtH.js.br +0 -0
  292. package/client/assets/RundownEntry-Bs1ombtH.js.gz +0 -0
  293. package/client/assets/RundownEntry-Bs1ombtH.js.map +0 -1
  294. package/client/assets/RundownExport-BCT0ybxy.js +0 -3
  295. package/client/assets/RundownExport-BCT0ybxy.js.br +0 -0
  296. package/client/assets/RundownExport-BCT0ybxy.js.gz +0 -0
  297. package/client/assets/RundownExport-BCT0ybxy.js.map +0 -1
  298. package/client/assets/Select-B5xNi_tM.js +0 -2
  299. package/client/assets/Select-B5xNi_tM.js.br +0 -0
  300. package/client/assets/Select-B5xNi_tM.js.gz +0 -0
  301. package/client/assets/Studio-D4hRKhJ1.js.br +0 -0
  302. package/client/assets/Studio-D4hRKhJ1.js.gz +0 -0
  303. package/client/assets/StyleEditor-BvcE8dkA.js +0 -2
  304. package/client/assets/StyleEditor-BvcE8dkA.js.br +0 -3
  305. package/client/assets/StyleEditor-BvcE8dkA.js.gz +0 -0
  306. package/client/assets/SuperscriptPeriod-BmHAoSBy.js +0 -2
  307. package/client/assets/SuperscriptPeriod-BmHAoSBy.js.br +0 -0
  308. package/client/assets/SuperscriptPeriod-BmHAoSBy.js.gz +0 -0
  309. package/client/assets/SuperscriptTime-Nou92D8X.js +0 -2
  310. package/client/assets/SuperscriptTime-Nou92D8X.js.br +0 -0
  311. package/client/assets/SuperscriptTime-Nou92D8X.js.gz +0 -0
  312. package/client/assets/TimeElements-XpRwBsaa.js.br +0 -0
  313. package/client/assets/TimeElements-XpRwBsaa.js.gz +0 -0
  314. package/client/assets/TimeInput-Bu_5GlHP.js +0 -2
  315. package/client/assets/TimeInput-Bu_5GlHP.js.br +0 -0
  316. package/client/assets/TimeInput-Bu_5GlHP.js.gz +0 -0
  317. package/client/assets/TimelinePage-CQqUB1KT.js.br +0 -0
  318. package/client/assets/TimelinePage-CQqUB1KT.js.gz +0 -0
  319. package/client/assets/Timer-B7nk3TMf.css.br +0 -0
  320. package/client/assets/Timer-B7nk3TMf.css.gz +0 -0
  321. package/client/assets/Timer-CIr2L3gJ.js +0 -2
  322. package/client/assets/Timer-CIr2L3gJ.js.br +0 -0
  323. package/client/assets/Timer-CIr2L3gJ.js.gz +0 -0
  324. package/client/assets/TimerControlExport-4a3Cd9x8.js.br +0 -0
  325. package/client/assets/TimerControlExport-4a3Cd9x8.js.gz +0 -0
  326. package/client/assets/TitleCard-1U35ek0D.js +0 -2
  327. package/client/assets/TitleCard-1U35ek0D.js.br +0 -0
  328. package/client/assets/TitleCard-1U35ek0D.js.gz +0 -0
  329. package/client/assets/Tooltip-B8y25e3n.js +0 -2
  330. package/client/assets/Tooltip-B8y25e3n.js.br +0 -0
  331. package/client/assets/Tooltip-B8y25e3n.js.gz +0 -0
  332. package/client/assets/ViewLogo-BHsV7Faa.js +0 -2
  333. package/client/assets/ViewLogo-BHsV7Faa.js.br +0 -0
  334. package/client/assets/ViewLogo-BHsV7Faa.js.gz +0 -0
  335. package/client/assets/ViewParamsEditor-BMHXOv-K.js.br +0 -0
  336. package/client/assets/ViewParamsEditor-BMHXOv-K.js.gz +0 -0
  337. package/client/assets/dateConfig-_BhycZza.js +0 -2
  338. package/client/assets/dateConfig-_BhycZza.js.br +0 -0
  339. package/client/assets/dateConfig-_BhycZza.js.gz +0 -0
  340. package/client/assets/dateConfig-_BhycZza.js.map +0 -1
  341. package/client/assets/editorSettings-DH9ca-nB.js +0 -2
  342. package/client/assets/editorSettings-DH9ca-nB.js.br +0 -0
  343. package/client/assets/editorSettings-DH9ca-nB.js.gz +0 -0
  344. package/client/assets/getProgress-DlrSzpnf.js.br +0 -0
  345. package/client/assets/getProgress-DlrSzpnf.js.gz +0 -0
  346. package/client/assets/index-CDBQg2fh.js +0 -3
  347. package/client/assets/index-CDBQg2fh.js.br +0 -0
  348. package/client/assets/index-CDBQg2fh.js.gz +0 -0
  349. package/client/assets/index-CDBQg2fh.js.map +0 -1
  350. package/client/assets/offset-CLG4o744.js.br +0 -0
  351. package/client/assets/offset-CLG4o744.js.gz +0 -0
  352. package/client/assets/parseUserTime-Cp5iWS7y.js +0 -2
  353. package/client/assets/parseUserTime-Cp5iWS7y.js.br +0 -0
  354. package/client/assets/parseUserTime-Cp5iWS7y.js.gz +0 -0
  355. package/client/assets/playbackstate-B3BKJ8cT.js.br +0 -0
  356. package/client/assets/playbackstate-B3BKJ8cT.js.gz +0 -0
  357. package/client/assets/presentation.utils-B-wIv_a5.js.br +0 -0
  358. package/client/assets/presentation.utils-B-wIv_a5.js.gz +0 -0
  359. package/client/assets/rundownUtils-DJKMt8Ih.js +0 -2
  360. package/client/assets/rundownUtils-DJKMt8Ih.js.br +0 -0
  361. package/client/assets/rundownUtils-DJKMt8Ih.js.gz +0 -0
  362. package/client/assets/timer.utils-ByC_bcT9.js +0 -2
  363. package/client/assets/timer.utils-ByC_bcT9.js.br +0 -0
  364. package/client/assets/timer.utils-ByC_bcT9.js.gz +0 -0
  365. package/client/assets/timer.utils-ByC_bcT9.js.map +0 -1
  366. package/client/assets/useCustomFields-BUJkzZvM.js +0 -2
  367. package/client/assets/useCustomFields-BUJkzZvM.js.br +0 -2
  368. package/client/assets/useCustomFields-BUJkzZvM.js.gz +0 -0
  369. package/client/assets/useFollowComponent-Eyo4hWVG.js +0 -2
  370. package/client/assets/useFollowComponent-Eyo4hWVG.js.br +0 -0
  371. package/client/assets/useFollowComponent-Eyo4hWVG.js.gz +0 -0
  372. package/client/assets/useProjectData-DGA6K2Zs.js.br +0 -0
  373. package/client/assets/useProjectData-DGA6K2Zs.js.gz +0 -0
  374. package/client/assets/useReport-BUCsRa2T.js +0 -2
  375. package/client/assets/useReport-BUCsRa2T.js.br +0 -0
  376. package/client/assets/useReport-BUCsRa2T.js.gz +0 -0
  377. package/client/assets/useRundown-BFae0_bU.js +0 -2
  378. package/client/assets/useRundown-BFae0_bU.js.br +0 -0
  379. package/client/assets/useRundown-BFae0_bU.js.gz +0 -0
  380. package/client/assets/useRundown-BFae0_bU.js.map +0 -1
  381. package/client/assets/useWindowTitle-DU8NlxIu.js +0 -2
  382. package/client/assets/useWindowTitle-DU8NlxIu.js.br +0 -0
  383. package/client/assets/useWindowTitle-DU8NlxIu.js.gz +0 -0
  384. package/client/assets/validateEvent-3adKsP1N.js.br +0 -0
  385. package/client/assets/validateEvent-3adKsP1N.js.gz +0 -0
  386. package/client/assets/vendor-BoH5HFNN.js.br +0 -0
  387. package/client/assets/vendor-BoH5HFNN.js.gz +0 -0
  388. package/client/assets/viewLoader.utils-BPOG1xso.js.br +0 -0
  389. package/client/assets/viewLoader.utils-BPOG1xso.js.gz +0 -0
  390. package/client/assets/viewUtils-DI8_kmUZ.js +0 -2
  391. package/client/assets/viewUtils-DI8_kmUZ.js.br +0 -0
  392. package/client/assets/viewUtils-DI8_kmUZ.js.gz +0 -0
  393. package/client/assets/viewUtils-DI8_kmUZ.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"mappings":"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","names":["InputRow","props","label","placeholder","text","visible","changeHandler","children","value","setValue","useState","inputRef","useRef","cursorPositionRef","useEffect","current","document","activeElement","selectionStart","selectionEnd","handleInputChange","event","target","jsxs","style","inputRow","jsx","cx","active","inputItems","Input","isPipSupported","window","PipTimerHost","lazy","__vitePreload","memo","PipRoot","Suspense","secondarySourceLabels","aux1","aux2","aux3","secondary","TimerPreview","blink","blackout","countToEnd","phase","secondarySource","showTimerMessage","timerType","useMessagePreview","data","useViewSettings","main","TimerType","None","timerPlaceholder","TimerPhase","Pending","Overtime","Clock","overrideColour","Warning","warningColor","Danger","dangerColor","normalColor","showColourOverride","contentClasses","preview","CornerWithPip","handleLinks","mainContent","secondaryContent","eventStatus","Tooltip","statusIcon","CountDown","IoArrowDown","CountUp","IoArrowUp","IoTime","IoBan","LuArrowDownToLine","TimerControlsPreview","useTimerViewControl","previewContainer","options","SecondarySourceControl","Editor.Separator","Button","setMessage","timerBlink","timerBlackout","toggleSecondary","timerSecondarySource","Fragment","Select","MessageControl","TimerMessageInput","SecondaryInput","useTimerMessageInput","newValue","timerText","IconButton","timerVisible","IoEye","IoEyeOffOutline","useSecondaryMessageInput","secondaryMessage","MessageControlExport","isExtracted","location","pathname","includes","classes","content","contentColumnLayout","ProtectRoute","messages","CornerExtract","ViewNavigationMenu","getIsNavigationLocked","ErrorBoundary"],"ignoreList":[],"sources":["../../src/features/control/message/InputRow.tsx","../../src/views/editor/pip-timer/pip.utils.ts","../../src/views/editor/pip-timer/PipRoot.tsx","../../src/features/control/message/TimerPreview.tsx","../../src/features/control/message/TimerViewControl.tsx","../../src/features/control/message/MessageControl.tsx","../../src/features/control/message/MessageControlExport.tsx"],"sourcesContent":["import { PropsWithChildren, useEffect, useRef, useState } from 'react';\n\nimport Input from '../../../common/components/input/input/Input';\nimport { cx } from '../../../common/utils/styleUtils';\n\nimport style from './InputRow.module.scss';\n\ninterface InputRowProps {\n label: string;\n placeholder: string;\n text: string;\n visible: boolean;\n changeHandler: (newValue: string) => void;\n}\n\nexport default function InputRow(props: PropsWithChildren<InputRowProps>) {\n const { label, placeholder, text, visible, changeHandler, children } = props;\n\n const [value, setValue] = useState(text);\n const inputRef = useRef<HTMLInputElement>(null);\n const cursorPositionRef = useRef(0);\n\n // sync cursor position with text\n useEffect(() => {\n if (inputRef.current && inputRef.current !== document.activeElement) {\n inputRef.current.selectionStart = cursorPositionRef.current;\n inputRef.current.selectionEnd = cursorPositionRef.current;\n }\n }, [text]);\n\n // synchronise external text\n useEffect(() => {\n if (inputRef.current !== document.activeElement) {\n setValue(text);\n }\n }, [text]);\n\n const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n cursorPositionRef.current = event.target.selectionStart ?? 0;\n setValue(event.target.value);\n changeHandler(event.target.value);\n };\n\n return (\n <div className={style.inputRow}>\n <label className={cx([style.label, visible ?? style.active])} htmlFor={label}>\n {label}\n </label>\n <div className={style.inputItems}>\n <Input id={label} ref={inputRef} value={value} onChange={handleInputChange} placeholder={placeholder} />\n {children}\n </div>\n </div>\n );\n}\n","export const isPipSupported = 'documentPictureInPicture' in window;\n","import { lazy, memo, Suspense } from 'react';\n\nimport { isPipSupported } from './pip.utils';\n\nconst PipTimerHost = lazy(() => import('./PipHost'));\n\nexport default memo(PipRoot);\nfunction PipRoot() {\n if (!isPipSupported) {\n return null;\n }\n\n return (\n <Suspense fallback={null}>\n <PipTimerHost />\n </Suspense>\n );\n}\n","import { IoArrowDown, IoArrowUp, IoBan, IoTime } from 'react-icons/io5';\nimport { LuArrowDownToLine } from 'react-icons/lu';\nimport { TimerPhase, TimerType } from 'ontime-types';\n\nimport { CornerWithPip } from '../../../common/components/editor-utils/EditorUtils';\nimport Tooltip from '../../../common/components/tooltip/Tooltip';\nimport { useMessagePreview } from '../../../common/hooks/useSocket';\nimport useViewSettings from '../../../common/hooks-query/useViewSettings';\nimport { handleLinks } from '../../../common/utils/linkUtils';\nimport { cx, timerPlaceholder } from '../../../common/utils/styleUtils';\nimport PipRoot from '../../../views/editor/pip-timer/PipRoot';\n\nimport style from './MessageControl.module.scss';\n\nconst secondarySourceLabels: Record<string, string> = {\n aux1: 'Aux 1',\n aux2: 'Aux 2',\n aux3: 'Aux 3',\n secondary: 'Secondary message',\n};\n\nexport default function TimerPreview() {\n const { blink, blackout, countToEnd, phase, secondarySource, showTimerMessage, timerType } = useMessagePreview();\n const { data } = useViewSettings();\n\n const main = (() => {\n if (showTimerMessage) return 'Message';\n if (timerType === TimerType.None) return timerPlaceholder;\n if (phase === TimerPhase.Pending) return 'Standby to start';\n if (phase === TimerPhase.Overtime) return 'Timer Overtime';\n if (timerType === TimerType.Clock) return 'Clock';\n if (countToEnd) return 'Count to End';\n return 'Timer';\n })();\n\n const secondary = (() => {\n // message is a fullscreen overlay or secondary is not active\n if (showTimerMessage || !secondarySource) return null;\n\n // we need to check aux first since it takes priority\n return secondarySourceLabels[secondarySource];\n })();\n\n const overrideColour = (() => {\n // override fallback colours from starter project\n if (phase === TimerPhase.Warning) return data.warningColor ?? '#ffa528';\n if (phase === TimerPhase.Danger) return data.dangerColor ?? '#ff7300';\n return data.normalColor ?? '#FFFC';\n })();\n\n const showColourOverride = main == 'Timer';\n const contentClasses = cx([blink && style.blink, blackout && style.blackout]);\n\n return (\n <div className={style.preview}>\n <CornerWithPip onExtractClick={(event) => handleLinks('timer', event)} pipElement={<PipRoot />} />\n <div className={contentClasses}>\n <div\n className={style.mainContent}\n data-phase={showColourOverride && phase}\n style={showColourOverride ? { '--override-colour': overrideColour } : {}}\n >\n {main}\n </div>\n {secondary !== null && <div className={style.secondaryContent}>{secondary}</div>}\n </div>\n <div className={style.eventStatus}>\n <Tooltip\n text='Time type: Count down'\n render={<span />}\n className={style.statusIcon}\n data-active={timerType === TimerType.CountDown}\n >\n <IoArrowDown />\n </Tooltip>\n <Tooltip\n text='Time type: Count up'\n render={<span />}\n className={style.statusIcon}\n data-active={timerType === TimerType.CountUp}\n >\n <IoArrowUp />\n </Tooltip>\n <Tooltip\n text='Time type: Clock'\n render={<span />}\n className={style.statusIcon}\n data-active={timerType === TimerType.Clock}\n >\n <IoTime />\n </Tooltip>\n <Tooltip\n text='Time type: None'\n render={<span />}\n className={style.statusIcon}\n data-active={timerType === TimerType.None}\n >\n <IoBan />\n </Tooltip>\n <Tooltip\n text={countToEnd ? 'Count to end' : 'Count duration'}\n render={<span />}\n className={style.statusIcon}\n data-active={countToEnd}\n >\n <LuArrowDownToLine />\n </Tooltip>\n </div>\n </div>\n );\n}\n","import { useEffect, useState } from 'react';\nimport { SecondarySource } from 'ontime-types';\n\nimport Button from '../../../common/components/buttons/Button';\nimport * as Editor from '../../../common/components/editor-utils/EditorUtils';\nimport Select from '../../../common/components/select/Select';\nimport { setMessage, useTimerViewControl } from '../../../common/hooks/useSocket';\n\nimport TimerPreview from './TimerPreview';\n\nimport style from './MessageControl.module.scss';\n\nexport default function TimerControlsPreview() {\n const { blackout, blink } = useTimerViewControl();\n\n return (\n <div className={style.previewContainer}>\n <TimerPreview />\n <div className={style.options}>\n <SecondarySourceControl />\n\n <Editor.Separator orientation='horizontal' />\n\n <Button\n variant={blink ? 'primary' : 'subtle'}\n fluid\n onClick={() => setMessage.timerBlink(!blink)}\n data-testid='toggle timer blink'\n >\n Blink\n </Button>\n <Button\n variant={blackout ? 'primary' : 'subtle'}\n fluid\n onClick={() => setMessage.timerBlackout(!blackout)}\n data-testid='toggle timer blackout'\n >\n Blackout screen\n </Button>\n </div>\n </div>\n );\n}\n\nfunction SecondarySourceControl() {\n const { secondarySource } = useTimerViewControl();\n const [value, setValue] = useState<SecondarySource>('aux1');\n\n // sync secondary source with external changes\n useEffect(() => {\n if (secondarySource !== null) {\n setValue(secondarySource);\n }\n }, [secondarySource]);\n\n const toggleSecondary = () => {\n if (secondarySource === value) {\n setMessage.timerSecondarySource(null);\n } else {\n setMessage.timerSecondarySource(value);\n }\n };\n\n return (\n <>\n <Select\n value={value}\n options={[\n { value: 'aux1', label: 'Aux 1' },\n { value: 'aux2', label: 'Aux 2' },\n { value: 'aux3', label: 'Aux 3' },\n { value: 'secondary', label: 'Secondary message' },\n ]}\n onValueChange={(value) => {\n // we can only update the remote if it is enabled\n if (secondarySource !== null) {\n setMessage.timerSecondarySource(value as SecondarySource);\n }\n setValue(value as SecondarySource);\n }}\n />\n <Button\n variant={secondarySource !== null ? 'primary' : 'subtle'}\n fluid\n onClick={toggleSecondary}\n data-testid='toggle secondary'\n >\n Show secondary\n </Button>\n </>\n );\n}\n","import { IoEye, IoEyeOffOutline } from 'react-icons/io5';\n\nimport IconButton from '../../../common/components/buttons/IconButton';\nimport {\n setMessage,\n useExternalMessageInput as useSecondaryMessageInput,\n useTimerMessageInput,\n} from '../../../common/hooks/useSocket';\n\nimport InputRow from './InputRow';\nimport TimerControlsPreview from './TimerViewControl';\n\nexport default function MessageControl() {\n return (\n <>\n <TimerControlsPreview />\n <TimerMessageInput />\n <SecondaryInput />\n </>\n );\n}\n\nfunction TimerMessageInput() {\n const { text, visible } = useTimerMessageInput();\n\n return (\n <InputRow\n label='Timer Message'\n placeholder='Message shown fullscreen in stage timer'\n text={text}\n visible={visible}\n changeHandler={(newValue) => setMessage.timerText(newValue)}\n >\n <IconButton\n aria-label='Toggle timer message visibility'\n onClick={() => setMessage.timerVisible(!visible)}\n variant={visible ? 'primary' : 'subtle'}\n >\n {visible ? <IoEye /> : <IoEyeOffOutline />}\n </IconButton>\n </InputRow>\n );\n}\n\nfunction SecondaryInput() {\n const { text, visible } = useSecondaryMessageInput();\n\n const toggleSecondary = () => {\n if (visible) {\n setMessage.timerSecondarySource(null);\n } else {\n setMessage.timerSecondarySource('secondary');\n }\n };\n\n return (\n <InputRow\n label='Secondary Message'\n placeholder='Message shown as secondary text in stage timer'\n text={text}\n visible={visible}\n changeHandler={(newValue) => setMessage.secondaryMessage(newValue)}\n >\n <IconButton\n aria-label='Toggle secondary message visibility'\n onClick={toggleSecondary}\n variant={visible ? 'primary' : 'subtle'}\n >\n {visible ? <IoEye /> : <IoEyeOffOutline />}\n </IconButton>\n </InputRow>\n );\n}\n","import { memo } from 'react';\n\nimport { CornerExtract } from '../../../common/components/editor-utils/EditorUtils';\nimport ErrorBoundary from '../../../common/components/error-boundary/ErrorBoundary';\nimport ViewNavigationMenu from '../../../common/components/navigation-menu/ViewNavigationMenu';\nimport ProtectRoute from '../../../common/components/protect-route/ProtectRoute';\nimport { handleLinks } from '../../../common/utils/linkUtils';\nimport { cx } from '../../../common/utils/styleUtils';\nimport { getIsNavigationLocked } from '../../../externals';\n\nimport MessageControl from './MessageControl';\n\nimport style from '../../../views/editor/Editor.module.scss';\n\nexport default memo(MessageControlExport);\nfunction MessageControlExport() {\n const isExtracted = window.location.pathname.includes('/messagecontrol');\n const classes = cx([style.content, style.contentColumnLayout]);\n\n return (\n <ProtectRoute permission='editor'>\n <div className={style.messages} data-testid='panel-messages-control'>\n {!isExtracted && <CornerExtract onClick={(event) => handleLinks('messagecontrol', event)} />}\n {isExtracted && <ViewNavigationMenu suppressSettings isNavigationLocked={getIsNavigationLocked()} />}\n\n <div className={classes}>\n <ErrorBoundary>\n <MessageControl />\n </ErrorBoundary>\n </div>\n </div>\n </ProtectRoute>\n );\n}\n"],"file":"assets/MessageControlExport-CFGgiwk_.js"}
@@ -1,2 +1,2 @@
1
- import{j as e,h as m,bi as Z,bj as oe,am as de,bk as ue,bl as P,bm as U,bn as me,bo as he,ah as xe,b9 as je,bp as be}from"./vendor-BoH5HFNN.js";import{L as b,T as y}from"./EditorUtils-Bd3J5Dvf.js";import{T as S,A as W,s as ge}from"./TimeInput-Bu_5GlHP.js";import{u as T,m as fe}from"./dateConfig-_BhycZza.js";import{u as J}from"./useCustomFields-BUJkzZvM.js";import{T as A,E as G}from"./validateEvent-3adKsP1N.js";import{ah as R,aC as ve,e as O,ak as F,s as _e,m as I,T as q,B as pe,ba as ke,x as K,bk as ee}from"./index-CDBQg2fh.js";import{S as M}from"./Select-B5xNi_tM.js";import{S as ae}from"./useProjectData-DGA6K2Zs.js";import{T as w}from"./Tooltip-B8y25e3n.js";import{p as ie}from"./parseUserTime-Cp5iWS7y.js";import{S as Q,u as re,T as te}from"./Modal-Bn1bZkwb.js";import{g as ye}from"./offset-CLG4o744.js";import{T as Ee}from"./editorSettings-DH9ca-nB.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="bb9ff669-dc4b-4447-9490-5f253f1feb6d",t._sentryDebugIdIdentifier="sentry-dbid-bb9ff669-dc4b-4447-9490-5f253f1feb6d")}catch{}})();var C=(t=>(t.onLoad="onLoad",t.onStart="onStart",t.onPause="onPause",t.onStop="onStop",t.onClock="onClock",t.onUpdate="onUpdate",t.onFinish="onFinish",t.onWarning="onWarning",t.onDanger="onDanger",t))(C||{});const Ne=Object.keys(C);function Ce(t){return t.replaceAll(" ","").replaceAll(",",".")}const Te="_imageContainer_1k5qa_17",Ie="_imageOverlay_1k5qa_25",ne={imageContainer:Te,imageOverlay:Ie};function we({src:t}){return e.jsxs("div",{className:ne.imageContainer,children:[!!t&&e.jsx("img",{loading:"lazy",src:t}),e.jsx("div",{className:ne.imageOverlay})]})}function Le({value:t,inputref:s,...a}){return m.useEffect(()=>{const n=s.current;return Z(s.current),()=>{Z.destroy(n)}},[s,t]),e.jsx(Ee,{ref:s,value:t,...a})}function le(t,s,a,n){const[o,l]=m.useState(t),i=m.useRef(!1);m.useEffect(()=>{l(typeof t>"u"?"":t)},[t]);const c=m.useCallback(d=>{d!==o&&l(d)},[o]),h=m.useCallback(d=>{var j;if(d===t&&!(n!=null&&n.allowSubmitSameValue))(j=n==null?void 0:n.onCancelUpdate)==null||j.call(n);else{const r=d.trim();s(r),r!==d&&l(r)}setTimeout(()=>{var r,v,_;n!=null&&n.allowKeyboardNavigation?(v=(r=a.current)==null?void 0:r.parentElement)==null||v.focus():(_=a.current)==null||_.blur()})},[t,n,a,s]),x=m.useCallback(()=>{var d;l(t),a.current&&(a.current.value=t),(d=n==null?void 0:n.onCancelUpdate)==null||d.call(n),setTimeout(()=>{var j;return(j=a.current)==null?void 0:j.blur()})},[t,n,a]),g=m.useMemo(()=>{const d=[["Escape",r=>{r.preventDefault(),x()},{preventDefault:!0}]];n!=null&&n.submitOnEnter&&d.push(["Enter",()=>{i.current=!0,h(o),setTimeout(()=>{i.current=!1},0)}]),n!=null&&n.submitOnCtrlEnter&&d.push(["mod + Enter",()=>{i.current=!0,h(o),setTimeout(()=>{i.current=!1},0)}]);const j=oe(d);return r=>{(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown")&&r.stopPropagation(),j(r)}},[x,h,n==null?void 0:n.submitOnCtrlEnter,n==null?void 0:n.submitOnEnter,o]);return{value:o,onChange:d=>c(d.target.value),onBlur:d=>{i.current||h(d.target.value)},onKeyDown:g}}function B({className:t,field:s,label:a,initialValue:n,style:o,submitHandler:l}){const i=m.useRef(null),c=m.useCallback(j=>l(s,j),[s,l]),{value:h,onChange:x,onBlur:g,onKeyDown:d}=le(n,c,i,{submitOnCtrlEnter:!0});return e.jsxs("div",{children:[e.jsx(b,{className:t,htmlFor:s,style:o,children:a}),e.jsx(Le,{id:s,inputref:i,rows:1,"data-testid":"input-textarea",fluid:!0,value:h,onChange:x,onBlur:g,onKeyDown:d})]})}function D({className:t,field:s,label:a,initialValue:n,style:o,submitHandler:l,maxLength:i,placeholder:c}){const h=m.useRef(null),x=m.useCallback(v=>l(s,v),[s,l]),{value:g,onChange:d,onBlur:j,onKeyDown:r}=le(n,x,h,{submitOnEnter:!0});return e.jsxs("div",{children:[e.jsx(b,{className:t,htmlFor:s,style:o,children:a}),e.jsx(R,{id:s,ref:h,maxLength:i,fluid:!0,"data-testid":"input-textfield",value:g,placeholder:c,onChange:d,onBlur:j,onKeyDown:r})]})}const De="_rundownEditor_qkzuc_19",Se="_content_qkzuc_29",Fe="_column_qkzuc_48",Oe="_decorated_qkzuc_57",Ae="_delayLabel_qkzuc_65",qe="_switchLabel_qkzuc_73",ze="_inline_qkzuc_83",He="_splitTwo_qkzuc_89",$e="_splitThree_qkzuc_96",Ve="_tooltipIcon_qkzuc_103",We="_customImage_qkzuc_110",Me="_textLikeInput_qkzuc_117",Re="_inactive_qkzuc_125",Be="_active_qkzuc_129",u={rundownEditor:De,content:Se,column:Fe,decorated:Oe,delayLabel:Ae,switchLabel:qe,inline:ze,splitTwo:He,splitThree:$e,tooltipIcon:Ve,customImage:We,textLikeInput:Me,inactive:Re,active:Be};function X({fields:t,handleSubmit:s,entry:a}){return e.jsx(m.Fragment,{children:Object.keys(t).map(n=>{const o=`${a.id}-${n}`,l=`custom-${n}`,i=a.custom[n]??"",{backgroundColor:c,color:h}=ve(t[n].colour),x=t[n].label;return t[n].type==="text"?e.jsx(B,{field:l,label:x,initialValue:i,submitHandler:s,className:u.decorated,style:{"--decorator-bg":c,"--decorator-color":h}},o):t[n].type==="image"?e.jsxs("div",{className:u.customImage,children:[e.jsx(D,{field:l,label:x,initialValue:i,placeholder:"Paste image URL",submitHandler:s,className:u.decorated,maxLength:255,style:{"--decorator-bg":c,"--decorator-color":h}},o),e.jsx(we,{src:i})]},o):null})})}const Ge="_inputGroup_1e1jq_17",Pe="_delayed_1e1jq_24",se={inputGroup:Ge,delayed:Pe};function $({hasDelay:t,children:s}){return e.jsx("div",{className:O([se.inputGroup,t&&se.delayed]),children:s})}const Ue="_fourtyfive_ezj8b_13",Ke="_timerNote_ezj8b_21",Je="_inactive_ezj8b_27",Qe="_active_ezj8b_31",Xe="_inputWrapper_ezj8b_35",Ye="_hoverLabel_ezj8b_39",k={fourtyfive:Ue,timerNote:Ke,inactive:Je,active:Qe,inputWrapper:Xe,hoverLabel:Ye},Ze=m.memo(et);function et({eventId:t,countToEnd:s,timeStart:a,timeEnd:n,duration:o,timeStrategy:l,linkStart:i,delay:c,showLabels:h}){const{updateEntry:x,updateTimer:g}=T(),d=(N,p)=>{g(t,N,p)},j=N=>{x({id:t,timeStrategy:N})},r=N=>{x({id:t,linkStart:N})},v=[];a+o>_e&&v.push("Over midnight"),s&&v.push("Count to End");const _=c!==0,f=l===A.LockEnd,E=l===A.LockDuration;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:k.inputWrapper,children:[h&&e.jsx(b,{className:k.sectionTitle,children:"Start time"}),e.jsx(b,{className:k.hoverLabel,children:"Start"}),e.jsxs($,{hasDelay:_,children:[e.jsx(S,{name:"timeStart",submitHandler:d,time:a,placeholder:"Start",align:"left",disabled:i}),e.jsx(w,{text:"Link start to previous end",onClick:()=>r(!i),render:e.jsx(F,{variant:"subtle-white",className:i?k.active:k.inactive}),children:e.jsx("span",{className:k.fourtyfive,children:i?e.jsx(de,{}):e.jsx(ue,{})})})]})]}),e.jsxs("div",{className:k.inputWrapper,children:[h&&e.jsx(b,{children:"End time"}),e.jsx(b,{className:k.hoverLabel,children:"End"}),e.jsxs($,{hasDelay:_,children:[e.jsx(S,{name:"timeEnd",submitHandler:d,time:n,placeholder:"End",align:"left",disabled:E}),e.jsx(w,{text:"Lock end",render:e.jsx(F,{variant:"subtle-white",className:f?k.active:k.inactive}),onClick:()=>j(A.LockEnd),"data-testid":"lock__end",children:f?e.jsx(P,{}):e.jsx(U,{})})]})]}),e.jsxs("div",{className:k.inputWrapper,children:[h&&e.jsx(b,{children:"Duration"}),e.jsx(b,{className:k.hoverLabel,children:"Duration"}),e.jsxs($,{hasDelay:_,children:[e.jsx(S,{name:"duration",submitHandler:d,time:o,placeholder:"Duration",align:"left",disabled:f}),e.jsx(w,{text:"Lock duration",render:e.jsx(F,{variant:"subtle-white",className:E?k.active:k.inactive}),onClick:()=>j(A.LockDuration),"data-testid":"lock__duration",children:E?e.jsx(P,{}):e.jsx(U,{})})]})]}),v.length>0&&e.jsx(w,{text:v.join(" - "),className:k.timerNote,"data-testid":"event-warning",render:e.jsx("span",{}),children:e.jsx(me,{})})]})}const tt=m.memo(nt);function nt({eventId:t,timeStart:s,timeEnd:a,duration:n,timeStrategy:o,linkStart:l,countToEnd:i,delay:c,endAction:h,timerType:x,timeWarning:g,timeDanger:d}){const{updateEntry:j}=T(),r=(f,E)=>{if(f==="countToEnd"){j({id:t,countToEnd:E});return}if(f==="timeWarning"||f==="timeDanger"){const N=ie(E);j({id:t,[f]:N});return}if(f==="timerType"||f==="endAction"){j({id:t,[f]:E});return}},_=c!==0?`Event is ${fe(c,"expanded")}. New schedule ${I(s+c)} → ${I(a+c)}`:"";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Event schedule"}),e.jsxs("div",{children:[e.jsx("div",{className:u.inline,children:e.jsx(Ze,{eventId:t,timeStart:s,timeEnd:a,duration:n,timeStrategy:o,linkStart:l,delay:c,countToEnd:i,showLabels:!0})}),e.jsx("div",{className:u.delayLabel,children:_})]})]}),e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Event Behaviour"}),e.jsxs("div",{className:u.splitTwo,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"endAction",children:"End Action"}),e.jsx(M,{value:h,onValueChange:f=>r("endAction",f),options:[{value:G.None,label:"None"},{value:G.LoadNext,label:"Load next event"},{value:G.PlayNext,label:"Play next event"}]})]}),e.jsxs("div",{children:[e.jsx(b,{htmlFor:"countToEnd",children:"Count to End"}),e.jsxs(b,{className:u.switchLabel,children:[e.jsx(ae,{id:"countToEnd",checked:i,onCheckedChange:f=>r("countToEnd",f)}),i?"On":"Off"]})]})]})]}),e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:e.jsxs(w,{text:"Changes how the timer is displayed in different views. It is not reflected in the rundown",render:e.jsx("span",{}),children:["Display Options",e.jsx(he,{className:u.tooltipIcon})]})}),e.jsxs("div",{className:u.splitTwo,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"timerType",children:"Timer Type"}),e.jsx(M,{value:x,onValueChange:f=>r("timerType",f),options:[{value:q.CountDown,label:"Count down"},{value:q.CountUp,label:"Count up"},{value:q.Clock,label:"Clock"},{value:q.None,label:"None"}]})]}),e.jsxs("div",{className:u.inline,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"timeWarning",children:"Warning Time"}),e.jsx(S,{id:"timeWarning",name:"timeWarning",submitHandler:r,time:g,placeholder:"Duration"})]}),e.jsxs("div",{children:[e.jsx(b,{htmlFor:"timeDanger",children:"Danger Time"}),e.jsx(S,{id:"timeDanger",name:"timeDanger",submitHandler:r,time:d,placeholder:"Duration"})]})]})]})]})]})}const st=m.memo(at);function at({eventId:t,cue:s,flag:a,title:n,note:o,colour:l}){const{updateEntry:i}=T(),c=(g,d)=>{i({id:t,cue:Ce(d)})},h=g=>{i({id:t,flag:g})},x=(g,d)=>{i({id:t,[g]:d})};return e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Event Data"}),e.jsxs("div",{className:u.splitThree,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"eventId",children:"Event ID (read only)"}),e.jsx(R,{id:"eventId","data-testid":"input-textfield",value:t,readOnly:!0,fluid:!0})]}),e.jsx(D,{field:"cue",label:"Cue",initialValue:s,submitHandler:c,maxLength:10}),e.jsxs("div",{children:[e.jsx(b,{htmlFor:"flag",children:"Flag"}),e.jsxs(b,{className:u.switchLabel,children:[e.jsx(ae,{id:"flag",checked:a,onCheckedChange:h}),a?"On":"Off"]})]})]}),e.jsxs("div",{children:[e.jsx(b,{children:"Colour"}),e.jsx(Q,{name:"colour",value:l,handleChange:x})]}),e.jsx(D,{field:"title",label:"Title",initialValue:n,submitHandler:x}),e.jsx(B,{field:"note",label:"Note",initialValue:o,submitHandler:x})]})}const it=[C.onLoad,C.onStart,C.onPause,C.onFinish,C.onWarning,C.onDanger],rt="_triggerForm_l7413_17",lt="_trigger_l7413_17",ct="_errorLabel_l7413_38",ot="_success_l7413_42",V={triggerForm:rt,trigger:lt,errorLabel:ct,success:ot};function dt({triggers:t,eventId:s}){const a=t.length>0;return e.jsxs(e.Fragment,{children:[a&&e.jsx(mt,{triggers:t,eventId:s}),e.jsx(ut,{triggers:t,eventId:s})]})}function ut({eventId:t,triggers:s}){const{data:a}=re(),{updateEntry:n}=T(),[o,l]=m.useState(void 0),[i,c]=m.useState(C.onStart),h=(r,v)=>{const _=s??new Array,f=ke();_.push({id:f,title:"",trigger:r,automationId:v}),n({id:t,triggers:_})},g=((r,v)=>{if(v===void 0)return"Select an automation";if(!Object.keys(a.automations).includes(v))return"This automation does not exist";if(s!==void 0)return Object.values(s).some(_=>_.automationId===v&&_.trigger===r)?"Automation can only be used once":void 0})(i,o),d=m.useMemo(()=>[{value:null,label:"Select Trigger"},...it.map(r=>({value:r,label:r}))],[]),j=m.useMemo(()=>[{value:null,label:"Select Automation"},...Object.values(a.automations).map(({id:r,title:v})=>({value:r,label:v}))],[a.automations]);return e.jsxs("div",{className:V.triggerForm,children:[e.jsx(M,{value:i,onValueChange:r=>{r!==null&&c(r)},options:d}),e.jsx(M,{value:o??null,onValueChange:r=>{r!==null&&l(r)},options:j}),e.jsx(pe,{disabled:g!==void 0,onClick:()=>o&&h(i,o),children:"Add"}),g!==void 0?e.jsx(w,{text:g,render:e.jsx("span",{}),children:e.jsx(je,{className:V.errorLabel})}):e.jsx(be,{className:V.success})]})}function mt({eventId:t,triggers:s}){const{updateEntry:a}=T(),{data:n}=re(),o=m.useCallback(i=>{const c=s.filter(h=>h.id!==i);a({id:t,triggers:c})},[t,s,a]),l={};return Ne.forEach(i=>{const c=s.filter(h=>h.trigger===i);c.length&&Object.assign(l,{[i]:c})}),e.jsx("div",{children:Object.entries(l).map(([i,c])=>e.jsx(m.Fragment,{children:c.map(h=>{var j;const{id:x,automationId:g}=h,d=((j=n.automations[g])==null?void 0:j.title)??"<MISSING AUTOMATION>";return e.jsxs("div",{className:V.trigger,children:[e.jsx(te,{children:i}),e.jsx(te,{children:d}),e.jsx(F,{variant:"ghosted-destructive",onClick:()=>o(x),children:e.jsx(xe,{})})]},x)})},i))})}function qt({event:t}){const{data:s}=J(),{updateEntry:a}=T(),n=window.location.pathname.includes("editor"),o=m.useCallback((l,i)=>{if(l.startsWith("custom-")){const c=l.split("custom-")[1];a({id:t.id,custom:{[c]:i}})}else a({id:t.id,[l]:i})},[t.id,a]);return e.jsxs("div",{className:u.content,children:[e.jsx(tt,{eventId:t.id,timeStart:t.timeStart,timeEnd:t.timeEnd,duration:t.duration,timeStrategy:t.timeStrategy,linkStart:t.linkStart,countToEnd:t.countToEnd,delay:t.delay,endAction:t.endAction,timerType:t.timerType,timeWarning:t.timeWarning,timeDanger:t.timeDanger},`${t.id}-times`),e.jsx(st,{eventId:t.id,cue:t.cue,flag:t.flag,title:t.title,note:t.note,colour:t.colour},`${t.id}-titles`),e.jsxs("div",{className:u.column,children:[e.jsxs(y,{children:["Custom Fields",n&&e.jsx(W,{search:"settings=manage__custom",children:"Manage Custom Fields"})]}),e.jsx(X,{fields:s,handleSubmit:o,entry:t})]}),e.jsxs("div",{className:u.column,children:[e.jsxs(y,{children:["Automations",n&&e.jsx(W,{search:"settings=automation",children:"Manage Automations"})]}),e.jsx(dt,{triggers:t.triggers,eventId:t.id})]})]})}const ht="_blink_1qqxl_1",xt="_fourtyfive_1qqxl_13",jt="_textInput_1qqxl_18",bt="_under_1qqxl_31",gt="_over_1qqxl_34",ft="_muted_1qqxl_37",vt="_disabled_1qqxl_40",z={blink:ht,fourtyfive:xt,textInput:jt,under:bt,over:gt,muted:ft,disabled:vt},ce=m.forwardRef(({offset:t,muted:s,disabled:a,children:n,className:o,...l},i)=>{const c=m.useRef(null),h=O([z.textInput,t&&z[t],s&&z.muted,a&&z.disabled,o]);return m.useImperativeHandle(i,()=>({focusParentElement(){var x,g;(g=(x=c.current)==null?void 0:x.parentElement)==null||g.focus()}})),e.jsx("div",{className:h,tabIndex:a?-1:0,...l,ref:c,children:n})});ce.displayName="TextLikeInput";const H=m.memo(ce);function _t({id:t,name:s,submitHandler:a,time:n,emptyDisplay:o,placeholder:l,disabled:i,align:c="center",className:h}){const x=m.useRef(null),[g,d]=m.useState(""),j=m.useRef(!1),r=m.useCallback(()=>{typeof n!="number"||isNaN(n)?d(o):d(I(n))},[o,n]),v=m.useCallback(()=>{var p;(p=x.current)==null||p.select()},[]),_=m.useCallback(p=>{if(p===""&&n===null)return!1;const L=ie(p);return L===n?!1:(a(s,L),!0)},[s,a,n]),f=m.useCallback(p=>{_(p)||r()},[_,r]),E=m.useCallback(p=>{var L,Y;p.key==="Enter"&&((L=x.current)==null||L.blur()),p.key==="Escape"&&(j.current=!0,(Y=x.current)==null||Y.blur(),r())},[r]),N=m.useCallback(p=>{if(j.current){j.current=!1;return}f(p.target.value)},[f]);return m.useEffect(()=>{r()},[r]),e.jsx(R,{id:t,disabled:i,ref:x,"data-testid":`time-input-${s}`,className:O([ge.timeInput,h]),placeholder:l,onFocus:v,onChange:p=>d(p.target.value),onBlur:N,onKeyDown:E,value:g,maxLength:8,autoComplete:"off",style:{textAlign:c}})}function pt({duration:t,targetDuration:s,submitHandler:a}){const n=s!==null;return e.jsxs("div",{children:[e.jsx(b,{htmlFor:"targetDuration",children:"Target duration"}),e.jsxs($,{hasDelay:n&&s!==t,children:[e.jsx(_t,{name:"targetDuration",time:s,submitHandler:a,emptyDisplay:K,className:n?"":u.inactive}),e.jsx(w,{text:"Lock to target duration",className:O([u.timeAction,n&&u.active]),onClick:()=>a("targetDuration",n?null:t),"data-testid":"lock__duration",render:e.jsx(F,{variant:"subtle-white",className:n?u.active:u.inactive}),children:n?e.jsx(P,{}):e.jsx(U,{})})]})]})}function zt({group:t}){const{data:s}=J(),{updateEntry:a}=T(),n=m.useCallback((c,h)=>{if(typeof c=="string"&&c.startsWith("custom-")){const x=c.split("custom-")[1];a({id:t.id,custom:{[x]:h}});return}return a(c==="targetDuration"?{id:t.id,targetDuration:h}:{id:t.id,[c]:h})},[t.id,a]),o=window.location.pathname.includes("editor"),l=t.targetDuration===null?null:t.duration-t.targetDuration,i=l!==null?ye(l):null;return e.jsxs("div",{className:u.content,children:[e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Group schedule"}),e.jsxs("div",{className:u.inline,children:[e.jsxs("div",{children:[e.jsx(b,{children:"First event start"}),e.jsx(H,{className:u.textLikeInput,disabled:!0,children:I(t.timeStart,{fallback:ee})})]}),e.jsxs("div",{children:[e.jsx(b,{children:"Last event end"}),e.jsx(H,{className:u.textLikeInput,disabled:!0,children:I(t.timeEnd,{fallback:ee})})]}),e.jsxs("div",{children:[e.jsx(b,{htmlFor:"duration",children:"Scheduled duration"}),e.jsx(H,{className:u.textLikeInput,disabled:!0,children:I(t.duration,{fallback:K})})]})]}),e.jsxs("div",{className:u.inline,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"eventId",children:"Plan offset"}),e.jsxs(H,{offset:i,className:O([u.textLikeInput,l===null&&u.inactive]),disabled:!0,children:[l!==null&&l>0?"+":"",I(l,{fallback:K})]})]}),e.jsx(pt,{duration:t.duration,targetDuration:t.targetDuration,submitHandler:n})]})]}),e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Group data"}),e.jsxs("div",{children:[e.jsx(b,{children:"Colour"}),e.jsx(Q,{name:"colour",value:t.colour,handleChange:n})]}),e.jsx(D,{field:"title",label:"Title",initialValue:t.title,submitHandler:n}),e.jsx(B,{field:"note",label:"Note",initialValue:t.note,submitHandler:n})]}),e.jsxs("div",{className:u.column,children:[e.jsxs(y,{children:["Custom Fields",o&&e.jsx(W,{search:"settings=manage__custom",children:"Manage Custom Fields"})]}),e.jsx(X,{fields:s,handleSubmit:n,entry:t})]})]})}function Ht({milestone:t}){const{data:s}=J(),{updateEntry:a}=T(),n=m.useCallback((l,i)=>{if(typeof l=="string"&&l.startsWith("custom-")){const c=l.split("custom-")[1];a({id:t.id,custom:{[c]:i}});return}return a({id:t.id,[l]:i})},[t.id,a]),o=window.location.pathname.includes("editor");return e.jsxs("div",{className:u.content,children:[e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Milestone data"}),e.jsxs("div",{className:u.splitTwo,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"entryId",children:"Milestone ID (read only)"}),e.jsx(R,{id:"entryId","data-testid":"input-textfield",value:t.id,readOnly:!0,fluid:!0})]}),e.jsx(D,{field:"cue",label:"Cue",initialValue:t.cue,submitHandler:n,maxLength:10})]}),e.jsxs("div",{children:[e.jsx(b,{children:"Colour"}),e.jsx(Q,{name:"colour",value:t.colour,handleChange:n})]}),e.jsx(D,{field:"title",label:"Title",initialValue:t.title,submitHandler:n}),e.jsx(B,{field:"note",label:"Note",initialValue:t.note,submitHandler:n})]}),e.jsxs("div",{className:u.column,children:[e.jsxs(y,{children:["Custom Fields",o&&e.jsx(W,{search:"settings=manage__custom",children:"Manage Custom Fields"})]}),e.jsx(X,{fields:s,handleSubmit:n,entry:t})]})]})}export{Le as A,qt as E,zt as G,Ht as M,H as T,Ze as a,u as s,le as u};
2
- //# sourceMappingURL=MilestoneEditor-rgBQSXVU.js.map
1
+ import{j as e,h as m,bj as Z,bk as oe,am as de,bl as ue,bm as P,bn as U,bo as me,bp as he,ah as xe,b9 as je,bq as be}from"./vendor-Cdwxo8bP.js";import{L as b,T as y}from"./EditorUtils-DoaSwWiz.js";import{T as S,A as W,s as ge}from"./TimeInput-Duzx40TC.js";import{u as T,m as fe}from"./dateConfig-BU1RZfIK.js";import{u as J}from"./useCustomFields-CcTb-GQM.js";import{T as A,E as G}from"./validateEvent-CUmvjN95.js";import{ah as R,aC as ve,e as O,ak as F,s as _e,m as I,T as q,B as pe,ba as ke,x as K,bk as ee}from"./index-CoGiopcb.js";import{S as M}from"./Select-cHK8JrMG.js";import{S as ae}from"./useProjectData-B5mjXsMj.js";import{T as w}from"./Tooltip-BQBvaIZx.js";import{p as ie}from"./parseUserTime-DZJMcfuJ.js";import{S as Q,u as re,T as te}from"./Modal-B8ZZbVMg.js";import{g as ye}from"./offset-BS90Rks2.js";import{T as Ee}from"./editorSettings-BMt-7s8I.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="5b68dabf-078f-41d0-868e-5974b4440755",t._sentryDebugIdIdentifier="sentry-dbid-5b68dabf-078f-41d0-868e-5974b4440755")}catch{}})();var C=(t=>(t.onLoad="onLoad",t.onStart="onStart",t.onPause="onPause",t.onStop="onStop",t.onClock="onClock",t.onUpdate="onUpdate",t.onFinish="onFinish",t.onWarning="onWarning",t.onDanger="onDanger",t))(C||{});const Ne=Object.keys(C);function Ce(t){return t.replaceAll(" ","").replaceAll(",",".")}const Te="_imageContainer_1k5qa_17",Ie="_imageOverlay_1k5qa_25",ne={imageContainer:Te,imageOverlay:Ie};function we({src:t}){return e.jsxs("div",{className:ne.imageContainer,children:[!!t&&e.jsx("img",{loading:"lazy",src:t}),e.jsx("div",{className:ne.imageOverlay})]})}function Le({value:t,inputref:s,...a}){return m.useEffect(()=>{const n=s.current;return Z(s.current),()=>{Z.destroy(n)}},[s,t]),e.jsx(Ee,{ref:s,value:t,...a})}function le(t,s,a,n){const[o,l]=m.useState(t),i=m.useRef(!1);m.useEffect(()=>{l(typeof t>"u"?"":t)},[t]);const c=m.useCallback(d=>{d!==o&&l(d)},[o]),h=m.useCallback(d=>{var j;if(d===t&&!(n!=null&&n.allowSubmitSameValue))(j=n==null?void 0:n.onCancelUpdate)==null||j.call(n);else{const r=d.trim();s(r),r!==d&&l(r)}setTimeout(()=>{var r,v,_;n!=null&&n.allowKeyboardNavigation?(v=(r=a.current)==null?void 0:r.parentElement)==null||v.focus():(_=a.current)==null||_.blur()})},[t,n,a,s]),x=m.useCallback(()=>{var d;l(t),a.current&&(a.current.value=t),(d=n==null?void 0:n.onCancelUpdate)==null||d.call(n),setTimeout(()=>{var j;return(j=a.current)==null?void 0:j.blur()})},[t,n,a]),g=m.useMemo(()=>{const d=[["Escape",r=>{r.preventDefault(),x()},{preventDefault:!0}]];n!=null&&n.submitOnEnter&&d.push(["Enter",()=>{i.current=!0,h(o),setTimeout(()=>{i.current=!1},0)}]),n!=null&&n.submitOnCtrlEnter&&d.push(["mod + Enter",()=>{i.current=!0,h(o),setTimeout(()=>{i.current=!1},0)}]);const j=oe(d);return r=>{(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown")&&r.stopPropagation(),j(r)}},[x,h,n==null?void 0:n.submitOnCtrlEnter,n==null?void 0:n.submitOnEnter,o]);return{value:o,onChange:d=>c(d.target.value),onBlur:d=>{i.current||h(d.target.value)},onKeyDown:g}}function B({className:t,field:s,label:a,initialValue:n,style:o,submitHandler:l}){const i=m.useRef(null),c=m.useCallback(j=>l(s,j),[s,l]),{value:h,onChange:x,onBlur:g,onKeyDown:d}=le(n,c,i,{submitOnCtrlEnter:!0});return e.jsxs("div",{children:[e.jsx(b,{className:t,htmlFor:s,style:o,children:a}),e.jsx(Le,{id:s,inputref:i,rows:1,"data-testid":"input-textarea",fluid:!0,value:h,onChange:x,onBlur:g,onKeyDown:d})]})}function D({className:t,field:s,label:a,initialValue:n,style:o,submitHandler:l,maxLength:i,placeholder:c}){const h=m.useRef(null),x=m.useCallback(v=>l(s,v),[s,l]),{value:g,onChange:d,onBlur:j,onKeyDown:r}=le(n,x,h,{submitOnEnter:!0});return e.jsxs("div",{children:[e.jsx(b,{className:t,htmlFor:s,style:o,children:a}),e.jsx(R,{id:s,ref:h,maxLength:i,fluid:!0,"data-testid":"input-textfield",value:g,placeholder:c,onChange:d,onBlur:j,onKeyDown:r})]})}const De="_rundownEditor_qkzuc_19",Se="_content_qkzuc_29",Fe="_column_qkzuc_48",Oe="_decorated_qkzuc_57",Ae="_delayLabel_qkzuc_65",qe="_switchLabel_qkzuc_73",ze="_inline_qkzuc_83",He="_splitTwo_qkzuc_89",$e="_splitThree_qkzuc_96",Ve="_tooltipIcon_qkzuc_103",We="_customImage_qkzuc_110",Me="_textLikeInput_qkzuc_117",Re="_inactive_qkzuc_125",Be="_active_qkzuc_129",u={rundownEditor:De,content:Se,column:Fe,decorated:Oe,delayLabel:Ae,switchLabel:qe,inline:ze,splitTwo:He,splitThree:$e,tooltipIcon:Ve,customImage:We,textLikeInput:Me,inactive:Re,active:Be};function X({fields:t,handleSubmit:s,entry:a}){return e.jsx(m.Fragment,{children:Object.keys(t).map(n=>{const o=`${a.id}-${n}`,l=`custom-${n}`,i=a.custom[n]??"",{backgroundColor:c,color:h}=ve(t[n].colour),x=t[n].label;return t[n].type==="text"?e.jsx(B,{field:l,label:x,initialValue:i,submitHandler:s,className:u.decorated,style:{"--decorator-bg":c,"--decorator-color":h}},o):t[n].type==="image"?e.jsxs("div",{className:u.customImage,children:[e.jsx(D,{field:l,label:x,initialValue:i,placeholder:"Paste image URL",submitHandler:s,className:u.decorated,maxLength:255,style:{"--decorator-bg":c,"--decorator-color":h}},o),e.jsx(we,{src:i})]},o):null})})}const Ge="_inputGroup_1e1jq_17",Pe="_delayed_1e1jq_24",se={inputGroup:Ge,delayed:Pe};function $({hasDelay:t,children:s}){return e.jsx("div",{className:O([se.inputGroup,t&&se.delayed]),children:s})}const Ue="_fourtyfive_ezj8b_13",Ke="_timerNote_ezj8b_21",Je="_inactive_ezj8b_27",Qe="_active_ezj8b_31",Xe="_inputWrapper_ezj8b_35",Ye="_hoverLabel_ezj8b_39",k={fourtyfive:Ue,timerNote:Ke,inactive:Je,active:Qe,inputWrapper:Xe,hoverLabel:Ye},Ze=m.memo(et);function et({eventId:t,countToEnd:s,timeStart:a,timeEnd:n,duration:o,timeStrategy:l,linkStart:i,delay:c,showLabels:h}){const{updateEntry:x,updateTimer:g}=T(),d=(N,p)=>{g(t,N,p)},j=N=>{x({id:t,timeStrategy:N})},r=N=>{x({id:t,linkStart:N})},v=[];a+o>_e&&v.push("Over midnight"),s&&v.push("Count to End");const _=c!==0,f=l===A.LockEnd,E=l===A.LockDuration;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:k.inputWrapper,children:[h&&e.jsx(b,{className:k.sectionTitle,children:"Start time"}),e.jsx(b,{className:k.hoverLabel,children:"Start"}),e.jsxs($,{hasDelay:_,children:[e.jsx(S,{name:"timeStart",submitHandler:d,time:a,placeholder:"Start",align:"left",disabled:i}),e.jsx(w,{text:"Link start to previous end",onClick:()=>r(!i),render:e.jsx(F,{variant:"subtle-white",className:i?k.active:k.inactive}),children:e.jsx("span",{className:k.fourtyfive,children:i?e.jsx(de,{}):e.jsx(ue,{})})})]})]}),e.jsxs("div",{className:k.inputWrapper,children:[h&&e.jsx(b,{children:"End time"}),e.jsx(b,{className:k.hoverLabel,children:"End"}),e.jsxs($,{hasDelay:_,children:[e.jsx(S,{name:"timeEnd",submitHandler:d,time:n,placeholder:"End",align:"left",disabled:E}),e.jsx(w,{text:"Lock end",render:e.jsx(F,{variant:"subtle-white",className:f?k.active:k.inactive}),onClick:()=>j(A.LockEnd),"data-testid":"lock__end",children:f?e.jsx(P,{}):e.jsx(U,{})})]})]}),e.jsxs("div",{className:k.inputWrapper,children:[h&&e.jsx(b,{children:"Duration"}),e.jsx(b,{className:k.hoverLabel,children:"Duration"}),e.jsxs($,{hasDelay:_,children:[e.jsx(S,{name:"duration",submitHandler:d,time:o,placeholder:"Duration",align:"left",disabled:f}),e.jsx(w,{text:"Lock duration",render:e.jsx(F,{variant:"subtle-white",className:E?k.active:k.inactive}),onClick:()=>j(A.LockDuration),"data-testid":"lock__duration",children:E?e.jsx(P,{}):e.jsx(U,{})})]})]}),v.length>0&&e.jsx(w,{text:v.join(" - "),className:k.timerNote,"data-testid":"event-warning",render:e.jsx("span",{}),children:e.jsx(me,{})})]})}const tt=m.memo(nt);function nt({eventId:t,timeStart:s,timeEnd:a,duration:n,timeStrategy:o,linkStart:l,countToEnd:i,delay:c,endAction:h,timerType:x,timeWarning:g,timeDanger:d}){const{updateEntry:j}=T(),r=(f,E)=>{if(f==="countToEnd"){j({id:t,countToEnd:E});return}if(f==="timeWarning"||f==="timeDanger"){const N=ie(E);j({id:t,[f]:N});return}if(f==="timerType"||f==="endAction"){j({id:t,[f]:E});return}},_=c!==0?`Event is ${fe(c,"expanded")}. New schedule ${I(s+c)} → ${I(a+c)}`:"";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Event schedule"}),e.jsxs("div",{children:[e.jsx("div",{className:u.inline,children:e.jsx(Ze,{eventId:t,timeStart:s,timeEnd:a,duration:n,timeStrategy:o,linkStart:l,delay:c,countToEnd:i,showLabels:!0})}),e.jsx("div",{className:u.delayLabel,children:_})]})]}),e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Event Behaviour"}),e.jsxs("div",{className:u.splitTwo,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"endAction",children:"End Action"}),e.jsx(M,{value:h,onValueChange:f=>r("endAction",f),options:[{value:G.None,label:"None"},{value:G.LoadNext,label:"Load next event"},{value:G.PlayNext,label:"Play next event"}]})]}),e.jsxs("div",{children:[e.jsx(b,{htmlFor:"countToEnd",children:"Count to End"}),e.jsxs(b,{className:u.switchLabel,children:[e.jsx(ae,{id:"countToEnd",checked:i,onCheckedChange:f=>r("countToEnd",f)}),i?"On":"Off"]})]})]})]}),e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:e.jsxs(w,{text:"Changes how the timer is displayed in different views. It is not reflected in the rundown",render:e.jsx("span",{}),children:["Display Options",e.jsx(he,{className:u.tooltipIcon})]})}),e.jsxs("div",{className:u.splitTwo,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"timerType",children:"Timer Type"}),e.jsx(M,{value:x,onValueChange:f=>r("timerType",f),options:[{value:q.CountDown,label:"Count down"},{value:q.CountUp,label:"Count up"},{value:q.Clock,label:"Clock"},{value:q.None,label:"None"}]})]}),e.jsxs("div",{className:u.inline,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"timeWarning",children:"Warning Time"}),e.jsx(S,{id:"timeWarning",name:"timeWarning",submitHandler:r,time:g,placeholder:"Duration"})]}),e.jsxs("div",{children:[e.jsx(b,{htmlFor:"timeDanger",children:"Danger Time"}),e.jsx(S,{id:"timeDanger",name:"timeDanger",submitHandler:r,time:d,placeholder:"Duration"})]})]})]})]})]})}const st=m.memo(at);function at({eventId:t,cue:s,flag:a,title:n,note:o,colour:l}){const{updateEntry:i}=T(),c=(g,d)=>{i({id:t,cue:Ce(d)})},h=g=>{i({id:t,flag:g})},x=(g,d)=>{i({id:t,[g]:d})};return e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Event Data"}),e.jsxs("div",{className:u.splitThree,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"eventId",children:"Event ID (read only)"}),e.jsx(R,{id:"eventId","data-testid":"input-textfield",value:t,readOnly:!0,fluid:!0})]}),e.jsx(D,{field:"cue",label:"Cue",initialValue:s,submitHandler:c,maxLength:10}),e.jsxs("div",{children:[e.jsx(b,{htmlFor:"flag",children:"Flag"}),e.jsxs(b,{className:u.switchLabel,children:[e.jsx(ae,{id:"flag",checked:a,onCheckedChange:h}),a?"On":"Off"]})]})]}),e.jsxs("div",{children:[e.jsx(b,{children:"Colour"}),e.jsx(Q,{name:"colour",value:l,handleChange:x})]}),e.jsx(D,{field:"title",label:"Title",initialValue:n,submitHandler:x}),e.jsx(B,{field:"note",label:"Note",initialValue:o,submitHandler:x})]})}const it=[C.onLoad,C.onStart,C.onPause,C.onFinish,C.onWarning,C.onDanger],rt="_triggerForm_l7413_17",lt="_trigger_l7413_17",ct="_errorLabel_l7413_38",ot="_success_l7413_42",V={triggerForm:rt,trigger:lt,errorLabel:ct,success:ot};function dt({triggers:t,eventId:s}){const a=t.length>0;return e.jsxs(e.Fragment,{children:[a&&e.jsx(mt,{triggers:t,eventId:s}),e.jsx(ut,{triggers:t,eventId:s})]})}function ut({eventId:t,triggers:s}){const{data:a}=re(),{updateEntry:n}=T(),[o,l]=m.useState(void 0),[i,c]=m.useState(C.onStart),h=(r,v)=>{const _=s??new Array,f=ke();_.push({id:f,title:"",trigger:r,automationId:v}),n({id:t,triggers:_})},g=((r,v)=>{if(v===void 0)return"Select an automation";if(!Object.keys(a.automations).includes(v))return"This automation does not exist";if(s!==void 0)return Object.values(s).some(_=>_.automationId===v&&_.trigger===r)?"Automation can only be used once":void 0})(i,o),d=m.useMemo(()=>[{value:null,label:"Select Trigger"},...it.map(r=>({value:r,label:r}))],[]),j=m.useMemo(()=>[{value:null,label:"Select Automation"},...Object.values(a.automations).map(({id:r,title:v})=>({value:r,label:v}))],[a.automations]);return e.jsxs("div",{className:V.triggerForm,children:[e.jsx(M,{value:i,onValueChange:r=>{r!==null&&c(r)},options:d}),e.jsx(M,{value:o??null,onValueChange:r=>{r!==null&&l(r)},options:j}),e.jsx(pe,{disabled:g!==void 0,onClick:()=>o&&h(i,o),children:"Add"}),g!==void 0?e.jsx(w,{text:g,render:e.jsx("span",{}),children:e.jsx(je,{className:V.errorLabel})}):e.jsx(be,{className:V.success})]})}function mt({eventId:t,triggers:s}){const{updateEntry:a}=T(),{data:n}=re(),o=m.useCallback(i=>{const c=s.filter(h=>h.id!==i);a({id:t,triggers:c})},[t,s,a]),l={};return Ne.forEach(i=>{const c=s.filter(h=>h.trigger===i);c.length&&Object.assign(l,{[i]:c})}),e.jsx("div",{children:Object.entries(l).map(([i,c])=>e.jsx(m.Fragment,{children:c.map(h=>{var j;const{id:x,automationId:g}=h,d=((j=n.automations[g])==null?void 0:j.title)??"<MISSING AUTOMATION>";return e.jsxs("div",{className:V.trigger,children:[e.jsx(te,{children:i}),e.jsx(te,{children:d}),e.jsx(F,{variant:"ghosted-destructive",onClick:()=>o(x),children:e.jsx(xe,{})})]},x)})},i))})}function qt({event:t}){const{data:s}=J(),{updateEntry:a}=T(),n=window.location.pathname.includes("editor"),o=m.useCallback((l,i)=>{if(l.startsWith("custom-")){const c=l.split("custom-")[1];a({id:t.id,custom:{[c]:i}})}else a({id:t.id,[l]:i})},[t.id,a]);return e.jsxs("div",{className:u.content,children:[e.jsx(tt,{eventId:t.id,timeStart:t.timeStart,timeEnd:t.timeEnd,duration:t.duration,timeStrategy:t.timeStrategy,linkStart:t.linkStart,countToEnd:t.countToEnd,delay:t.delay,endAction:t.endAction,timerType:t.timerType,timeWarning:t.timeWarning,timeDanger:t.timeDanger},`${t.id}-times`),e.jsx(st,{eventId:t.id,cue:t.cue,flag:t.flag,title:t.title,note:t.note,colour:t.colour},`${t.id}-titles`),e.jsxs("div",{className:u.column,children:[e.jsxs(y,{children:["Custom Fields",n&&e.jsx(W,{search:"settings=manage__custom",children:"Manage Custom Fields"})]}),e.jsx(X,{fields:s,handleSubmit:o,entry:t})]}),e.jsxs("div",{className:u.column,children:[e.jsxs(y,{children:["Automations",n&&e.jsx(W,{search:"settings=automation",children:"Manage Automations"})]}),e.jsx(dt,{triggers:t.triggers,eventId:t.id})]})]})}const ht="_blink_1qqxl_1",xt="_fourtyfive_1qqxl_13",jt="_textInput_1qqxl_18",bt="_under_1qqxl_31",gt="_over_1qqxl_34",ft="_muted_1qqxl_37",vt="_disabled_1qqxl_40",z={blink:ht,fourtyfive:xt,textInput:jt,under:bt,over:gt,muted:ft,disabled:vt},ce=m.forwardRef(({offset:t,muted:s,disabled:a,children:n,className:o,...l},i)=>{const c=m.useRef(null),h=O([z.textInput,t&&z[t],s&&z.muted,a&&z.disabled,o]);return m.useImperativeHandle(i,()=>({focusParentElement(){var x,g;(g=(x=c.current)==null?void 0:x.parentElement)==null||g.focus()}})),e.jsx("div",{className:h,tabIndex:a?-1:0,...l,ref:c,children:n})});ce.displayName="TextLikeInput";const H=m.memo(ce);function _t({id:t,name:s,submitHandler:a,time:n,emptyDisplay:o,placeholder:l,disabled:i,align:c="center",className:h}){const x=m.useRef(null),[g,d]=m.useState(""),j=m.useRef(!1),r=m.useCallback(()=>{typeof n!="number"||isNaN(n)?d(o):d(I(n))},[o,n]),v=m.useCallback(()=>{var p;(p=x.current)==null||p.select()},[]),_=m.useCallback(p=>{if(p===""&&n===null)return!1;const L=ie(p);return L===n?!1:(a(s,L),!0)},[s,a,n]),f=m.useCallback(p=>{_(p)||r()},[_,r]),E=m.useCallback(p=>{var L,Y;p.key==="Enter"&&((L=x.current)==null||L.blur()),p.key==="Escape"&&(j.current=!0,(Y=x.current)==null||Y.blur(),r())},[r]),N=m.useCallback(p=>{if(j.current){j.current=!1;return}f(p.target.value)},[f]);return m.useEffect(()=>{r()},[r]),e.jsx(R,{id:t,disabled:i,ref:x,"data-testid":`time-input-${s}`,className:O([ge.timeInput,h]),placeholder:l,onFocus:v,onChange:p=>d(p.target.value),onBlur:N,onKeyDown:E,value:g,maxLength:8,autoComplete:"off",style:{textAlign:c}})}function pt({duration:t,targetDuration:s,submitHandler:a}){const n=s!==null;return e.jsxs("div",{children:[e.jsx(b,{htmlFor:"targetDuration",children:"Target duration"}),e.jsxs($,{hasDelay:n&&s!==t,children:[e.jsx(_t,{name:"targetDuration",time:s,submitHandler:a,emptyDisplay:K,className:n?"":u.inactive}),e.jsx(w,{text:"Lock to target duration",className:O([u.timeAction,n&&u.active]),onClick:()=>a("targetDuration",n?null:t),"data-testid":"lock__duration",render:e.jsx(F,{variant:"subtle-white",className:n?u.active:u.inactive}),children:n?e.jsx(P,{}):e.jsx(U,{})})]})]})}function zt({group:t}){const{data:s}=J(),{updateEntry:a}=T(),n=m.useCallback((c,h)=>{if(typeof c=="string"&&c.startsWith("custom-")){const x=c.split("custom-")[1];a({id:t.id,custom:{[x]:h}});return}return a(c==="targetDuration"?{id:t.id,targetDuration:h}:{id:t.id,[c]:h})},[t.id,a]),o=window.location.pathname.includes("editor"),l=t.targetDuration===null?null:t.duration-t.targetDuration,i=l!==null?ye(l):null;return e.jsxs("div",{className:u.content,children:[e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Group schedule"}),e.jsxs("div",{className:u.inline,children:[e.jsxs("div",{children:[e.jsx(b,{children:"First event start"}),e.jsx(H,{className:u.textLikeInput,disabled:!0,children:I(t.timeStart,{fallback:ee})})]}),e.jsxs("div",{children:[e.jsx(b,{children:"Last event end"}),e.jsx(H,{className:u.textLikeInput,disabled:!0,children:I(t.timeEnd,{fallback:ee})})]}),e.jsxs("div",{children:[e.jsx(b,{htmlFor:"duration",children:"Scheduled duration"}),e.jsx(H,{className:u.textLikeInput,disabled:!0,children:I(t.duration,{fallback:K})})]})]}),e.jsxs("div",{className:u.inline,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"eventId",children:"Plan offset"}),e.jsxs(H,{offset:i,className:O([u.textLikeInput,l===null&&u.inactive]),disabled:!0,children:[l!==null&&l>0?"+":"",I(l,{fallback:K})]})]}),e.jsx(pt,{duration:t.duration,targetDuration:t.targetDuration,submitHandler:n})]})]}),e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Group data"}),e.jsxs("div",{children:[e.jsx(b,{children:"Colour"}),e.jsx(Q,{name:"colour",value:t.colour,handleChange:n})]}),e.jsx(D,{field:"title",label:"Title",initialValue:t.title,submitHandler:n}),e.jsx(B,{field:"note",label:"Note",initialValue:t.note,submitHandler:n})]}),e.jsxs("div",{className:u.column,children:[e.jsxs(y,{children:["Custom Fields",o&&e.jsx(W,{search:"settings=manage__custom",children:"Manage Custom Fields"})]}),e.jsx(X,{fields:s,handleSubmit:n,entry:t})]})]})}function Ht({milestone:t}){const{data:s}=J(),{updateEntry:a}=T(),n=m.useCallback((l,i)=>{if(typeof l=="string"&&l.startsWith("custom-")){const c=l.split("custom-")[1];a({id:t.id,custom:{[c]:i}});return}return a({id:t.id,[l]:i})},[t.id,a]),o=window.location.pathname.includes("editor");return e.jsxs("div",{className:u.content,children:[e.jsxs("div",{className:u.column,children:[e.jsx(y,{children:"Milestone data"}),e.jsxs("div",{className:u.splitTwo,children:[e.jsxs("div",{children:[e.jsx(b,{htmlFor:"entryId",children:"Milestone ID (read only)"}),e.jsx(R,{id:"entryId","data-testid":"input-textfield",value:t.id,readOnly:!0,fluid:!0})]}),e.jsx(D,{field:"cue",label:"Cue",initialValue:t.cue,submitHandler:n,maxLength:10})]}),e.jsxs("div",{children:[e.jsx(b,{children:"Colour"}),e.jsx(Q,{name:"colour",value:t.colour,handleChange:n})]}),e.jsx(D,{field:"title",label:"Title",initialValue:t.title,submitHandler:n}),e.jsx(B,{field:"note",label:"Note",initialValue:t.note,submitHandler:n})]}),e.jsxs("div",{className:u.column,children:[e.jsxs(y,{children:["Custom Fields",o&&e.jsx(W,{search:"settings=manage__custom",children:"Manage Custom Fields"})]}),e.jsx(X,{fields:s,handleSubmit:n,entry:t})]})]})}export{Le as A,qt as E,zt as G,Ht as M,H as T,Ze as a,u as s,le as u};
2
+ //# sourceMappingURL=MilestoneEditor-B5BdJ5ju.js.map