@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
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- import{I as c,M as d,bg as h}from"./index-CDBQg2fh.js";import"./vendor-BoH5HFNN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="239a4d70-94e4-43b4-b82e-bbf31453e482",e._sentryDebugIdIdentifier="sentry-dbid-239a4d70-94e4-43b4-b82e-bbf31453e482")}catch{}})();function P(e){const{isAM:s,isPM:l,value:r}=I(e.toLowerCase()),n=m(r);if(n!==null)return n;const a=/[\s,:.]+/,[t,f,b]=r.split(a);let u=0,M=l;if(t!=null&&f!=null&&b!=null){let o=i(t);o===12&&(s&&(o=0),M=!1),u=o*c,u+=i(f)*d,u+=i(b)*h}else if(t!=null&&f==null&&b==null){const{inferredMillis:o,addAM:g}=p(t,s,l);u=o,M=g<12&&l}else if(t!=null&&f!=null&&b==null){let o=i(t);o===12&&(s&&(o=0),M=!1),u=o*c,u+=i(f)*d}return M&&(u+=12*c),u}function p(e,s,l){const r=e.length;let n=0,a=0;if(r===1)l||s?(n=i(e)*c,s&&(a=n)):n=i(e)*d;else if(r===2)l||s?(e==="12"&&s?n=0:n=i(e)*c,(s||e==="12")&&(a=12)):n=i(e)*d;else if(r===3)n=i(e[0])*c+i(e.substring(1))*d;else if(r===4)n=i(e.substring(0,2))*c+i(e.substring(2))*d;else if(r>=5){const t=i(e.substring(0,2)),f=i(e.substring(2,4)),b=i(e.substring(4));n=t*c+f*d+b*h}return{inferredMillis:n,addAM:a}}function m(e){const s=/(\d+)h(?:(\d+)(?!s))?/i.exec(e),l=s?i(s[1]):0,r=s!=null&&s[2]?i(s[2]):0,n=/(\d+)m/i.exec(e),a=n?i(n[1]):r,t=/(\d+)s/i.exec(e),f=t?i(t[1]):0;return s||n||t?l*c+a*d+f*h:null}function I(e){return e.endsWith("pm")?{isAM:!1,isPM:!0,value:e.slice(0,-2)}:e.endsWith("p")?{isAM:!1,isPM:!0,value:e.slice(0,-1)}:e.endsWith("am")?{isAM:!0,isPM:!1,value:e.slice(0,-2)}:e.endsWith("a")?{isAM:!0,isPM:!1,value:e.slice(0,-1)}:{isAM:!1,isPM:!1,value:e}}function i(e){const s=Number(e);return isNaN(s)?0:Math.abs(s)}export{P as p};
2
- //# sourceMappingURL=parseUserTime-Cp5iWS7y.js.map
@@ -1,2 +0,0 @@
1
- import"./vendor-BoH5HFNN.js";import"./index-CDBQg2fh.js";import{j as u,i as a,a as d}from"./useRundown-BFae0_bU.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="c28446cd-28c6-45d2-99a0-715fc106d7a2",n._sentryDebugIdIdentifier="sentry-dbid-c28446cd-28c6-45d2-99a0-715fc106d7a2")}catch{}})();function x(n,t){if(!t.length)return null;const e=t[0];return n[e]??null}function g(n){for(let t=0;t<n.length;t++){const e=n[t];if(a(e)&&d(e))return{firstEvent:e,firstIndex:t}}return{firstEvent:null,firstIndex:null}}function y(n,t){const e=t.at(-1);return e===void 0?null:n[e]??null}function I(n){if(n.length<1)return{lastEvent:null,lastIndex:null};for(let t=n.length-1;t>=0;t--){const e=n[t];if(a(e)&&d(e))return{lastEvent:e,lastIndex:t}}return{lastEvent:null,lastIndex:null}}function E(n,t,e){const i=t.findIndex(r=>r===e);if(i!==-1&&i+1<t.length){const r=i+1,l=t[r];return{entry:n[l],index:r}}else return{entry:null,index:null}}function p(n,t){const e=n.findIndex(i=>i.id===t);if(e<0)return{nextEvent:null,nextIndex:null};for(let i=e+1;i<n.length;i++){const r=n[i];if(a(r))return{nextEvent:r,nextIndex:i}}return{nextEvent:null,nextIndex:null}}function m(n,t,e){const i=t.findIndex(r=>r===e);if(i!==-1&&i-1>=0){const r=i-1,l=t[r];return{entry:n[l],index:r}}else return{entry:null,index:null}}const h=(n,t)=>{const e={...t,id:n.id,timeStart:n.timeStart,timeEnd:n.timeEnd,duration:n.duration,linkStart:n.linkStart,parent:n.parent,delay:n.delay,gap:n.gap,dayOffset:n.dayOffset,revision:n.revision},i={...n,id:t.id,timeStart:t.timeStart,timeEnd:t.timeEnd,duration:t.duration,linkStart:t.linkStart,parent:t.parent,delay:t.delay,gap:t.gap,dayOffset:t.dayOffset,revision:t.revision};return[e,i]};function b(n,t){return n.find(e=>e.id===t)}function N(n,t,e){let i=!1;for(let r=t.length-1;r>=0;r--){const l=t[r];if(!i&&l===e){i=!0;continue}const s=n[l];if(i&&u(s))return{entry:s,index:r}}return{entry:null,index:null}}function S(n,t,e){let i=!1;for(let r=0;r<t.length;r++){const l=t[r];if(!i&&l===e){i=!0;continue}const s=n[l];if(i&&u(s))return{entry:s,index:r}}return{entry:null,index:null}}export{p as a,g as b,I as c,m as d,y as e,x as f,b as g,N as h,S as i,E as j,h as s};
2
- //# sourceMappingURL=rundownUtils-DJKMt8Ih.js.map
@@ -1,2 +0,0 @@
1
- import{h as g,j as S}from"./vendor-BoH5HFNN.js";import{T as d,y as u,h as w}from"./index-CDBQg2fh.js";import{b as c,a as x}from"./viewUtils-DI8_kmUZ.js";import{i as v}from"./playbackstate-B3BKJ8cT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9c1fdab2-717e-4045-80df-33e769d78ba6",e._sentryDebugIdIdentifier="sentry-dbid-9c1fdab2-717e-4045-80df-33e769d78ba6")}catch{}})();const m=(e,t,n)=>{for(;e<t;){const i=Math.floor((e+t)/2);if(i===e)break;n(i)?e=i:t=i}return e};function F({children:e,mode:t="multi",min:n=16,max:i=256,...o}){const s=g.useRef(null),a=g.useCallback(()=>{const r=s.current;return r?r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth:!1},[]),f=g.useCallback(()=>{const r=s.current;if(!r)return;const l=r.style.visibility;r.style.visibility="hidden";const h=m(n,i+1,b=>(r.style.fontSize=`${b}px`,!a()));r.style.fontSize=`${h}px`,r.style.visibility=l},[a,n,i]);return g.useEffect(()=>{const r=s.current;if(!r)return;f();const l=new ResizeObserver(f);return l.observe(r),()=>l.disconnect()},[e,t,f]),S.jsx("div",{ref:s,style:{whiteSpace:t==="single"?"nowrap":"normal"},...o,children:e})}function z(e){return e.text!==""&&e.visible}function E(e){return e===w.Play||e===w.Roll}function P(e,t){return(e??0)+(t??0)}function k(e){return e!==d.None&&e!==d.Clock}function C(e){return e!==d.Clock}const y={4:28,5:28,6:25,8:18,9:18};function I(e,t){const n=e.length;let i=100/(n-1)*1.25;y[n]&&(i=y[n]);let o=i*.325;return t&&(i*=.6,t.length>25&&(o=100/(t.length-1)*1.8)),{timerFontSize:i,externalFontSize:o}}function W(e,t,n,i,o,s){return s?{showEndMessage:!1,showFinished:!1,showWarning:!1,showDanger:!1}:e===d.CountDown||t?{showEndMessage:n===u.Overtime&&i&&o!=="",showFinished:n===u.Overtime,showWarning:n===u.Warning,showDanger:n===u.Danger}:{showEndMessage:!1,showFinished:!1,showWarning:!1,showDanger:!1}}function B(e,t,n,i,o,s){if(!s){if(e.timer.secondarySource==="aux1"||e.timer.secondarySource==="aux2"||e.timer.secondarySource==="aux3")return x(t,d.CountDown,n,{removeSeconds:i,removeLeadingZero:o});if(e.timer.secondarySource==="secondary"&&e.secondary)return e.secondary}}function O(e,t,n,i,o,s){if(o===w.Stop)return{showNow:!1,nowMain:void 0,nowSecondary:void 0,showNext:!1,nextMain:void 0,nextSecondary:void 0};const a=v(o)&&s!==u.Pending,f=a?c(e,n??"title"):void 0,r=a?c(e,i):void 0,l=a?c(t,n??"title"):c(e,n??"title"),h=a?c(t,i):c(e,i);return{showNow:!!f||!!r,nowMain:f,nowSecondary:r,showNext:!!l||!!h,nextMain:l,nextSecondary:h}}export{F,W as a,E as b,C as c,k as d,O as e,P as f,z as g,B as h,I as i};
2
- //# sourceMappingURL=timer.utils-ByC_bcT9.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timer.utils-ByC_bcT9.js","sources":["../../src/common/components/fit-text/fitText.utils.ts","../../src/common/components/fit-text/FitText.tsx","../../src/views/timer/timer.utils.ts"],"sourcesContent":["/**\n * @param low inclusive, must be true on predicate function\n * @param high exclusive,\n * @param predicate predicate function\n */\nexport const bsearch = (low: number, high: number, predicate: (mid: number) => boolean): number => {\n while (low < high) {\n const mid = Math.floor((low + high) / 2);\n if (mid === low) break;\n\n if (predicate(mid)) {\n low = mid;\n } else {\n high = mid;\n }\n }\n return low;\n};\n","/**\n * Copied from\n * https://github.com/namhong2001/react-textfit/blob/master/index.tsx\n */\n\nimport { HTMLAttributes, PropsWithChildren, useCallback, useEffect, useRef } from 'react';\n\nimport { bsearch } from './fitText.utils';\n\ninterface FitTextProps extends HTMLAttributes<HTMLDivElement> {\n mode?: 'single' | 'multi';\n min?: number; // inclusive\n max?: number; // inclusive\n}\n\nexport function FitText({\n children,\n mode = 'multi',\n min = 16,\n max = 256,\n ...elementProps\n}: PropsWithChildren<FitTextProps>) {\n const ref = useRef<HTMLDivElement>(null);\n\n const isOverflown = useCallback(() => {\n const el = ref.current;\n if (!el) return false;\n return el.scrollHeight > el.clientHeight || el.scrollWidth > el.clientWidth;\n }, []);\n\n const setFontSize = useCallback(() => {\n const el = ref.current;\n if (!el) return;\n\n const originVisibility = el.style.visibility;\n\n el.style.visibility = 'hidden';\n const fontSize = bsearch(min, max + 1, (mid) => {\n el.style.fontSize = `${mid}px`;\n return !isOverflown();\n });\n el.style.fontSize = `${fontSize}px`;\n el.style.visibility = originVisibility;\n }, [isOverflown, min, max]);\n\n useEffect(() => {\n const el = ref.current;\n if (!el) return;\n\n setFontSize();\n const observer = new ResizeObserver(setFontSize);\n observer.observe(el);\n\n return () => observer.disconnect();\n }, [children, mode, setFontSize]);\n\n return (\n <div\n ref={ref}\n style={{\n whiteSpace: mode === 'single' ? 'nowrap' : 'normal',\n }}\n {...elementProps}\n >\n {children}\n </div>\n );\n}\n","import { MaybeNumber, MessageState, OntimeEvent, Playback, TimerMessage, TimerPhase, TimerType } from 'ontime-types';\nimport { isPlaybackActive } from 'ontime-utils';\n\nimport { getFormattedTimer, getPropertyValue } from '../../features/viewers/common/viewUtils';\n\n/**\n * Whether a message should be shown\n */\nexport function getShowMessage(message: TimerMessage): boolean {\n return message.text !== '' && message.visible;\n}\n\n/**\n * Whether the playback is playing\n */\nexport function getIsPlaying(playback: Playback): boolean {\n return playback === Playback.Play || playback === Playback.Roll;\n}\n\n/**\n * Gets the total time from the duration and added time of an event\n */\nexport function getTotalTime(duration: MaybeNumber, addedTime: MaybeNumber): number {\n return (duration ?? 0) + (addedTime ?? 0);\n}\n\n/**\n * Whether the progress bar should be shown for this timer type\n */\nexport function getShowProgressBar(timerType: TimerType) {\n return timerType !== TimerType.None && timerType !== TimerType.Clock;\n}\n\n/**\n * Whether the clock should be shown with this timer type\n */\nexport function getShowClock(timerType: TimerType) {\n return timerType !== TimerType.Clock;\n}\n\nconst fontSizeMap: { [key: number]: number } = {\n 4: 28, // 9:01\n 5: 28, // -9:01, 10:01, 9 min\n 6: 25, // -10:01, 10 min\n 8: 18, // 23:01:01\n 9: 18, // -23:01:01\n};\n\n/**\n * Finds a font size that fits the timer in the screen\n * Unfortunately hand tweaked\n */\nexport function getEstimatedFontSize(stageTimer: string, secondaryContent?: string) {\n const stageTimerCharacters = stageTimer.length;\n let timerFontSize = (100 / (stageTimerCharacters - 1)) * 1.25;\n\n if (fontSizeMap[stageTimerCharacters]) {\n timerFontSize = fontSizeMap[stageTimerCharacters];\n }\n\n let externalFontSize = timerFontSize * 0.325;\n if (secondaryContent) {\n // we need to shrink the timer if the external is going to be there\n // this number has been tweaked to fit in a landscape mobile screen\n timerFontSize *= 0.6;\n if (secondaryContent.length > 25) {\n externalFontSize = (100 / (secondaryContent.length - 1)) * 1.8;\n }\n }\n\n return {\n timerFontSize,\n externalFontSize,\n };\n}\n\n/**\n * which, if any, modifier should be shown at any time\n */\nexport function getShowModifiers(\n timerType: TimerType,\n countToEnd: boolean,\n phase: TimerPhase,\n freezeOvertime: boolean,\n freezeMessage: string,\n hidePhase: boolean,\n) {\n if (hidePhase) {\n return {\n showEndMessage: false,\n showFinished: false,\n showWarning: false,\n showDanger: false,\n };\n }\n\n const showModifiers = timerType === TimerType.CountDown || countToEnd;\n if (!showModifiers) {\n return {\n showEndMessage: false,\n showFinished: false,\n showWarning: false,\n showDanger: false,\n };\n }\n\n return {\n showEndMessage: phase === TimerPhase.Overtime && freezeOvertime && freezeMessage !== '',\n showFinished: phase === TimerPhase.Overtime,\n showWarning: phase === TimerPhase.Warning,\n showDanger: phase === TimerPhase.Danger,\n };\n}\n\n/**\n * What, if anything, should be displayed in the secondary field\n */\nexport function getSecondaryDisplay(\n message: MessageState,\n currentAux: MaybeNumber,\n localisedMinutes: string,\n removeSeconds: boolean,\n removeLeadingZero: boolean,\n hideSecondary: boolean,\n): string | undefined {\n if (hideSecondary) {\n return;\n }\n if (\n message.timer.secondarySource === 'aux1' ||\n message.timer.secondarySource === 'aux2' ||\n message.timer.secondarySource === 'aux3'\n ) {\n return getFormattedTimer(currentAux, TimerType.CountDown, localisedMinutes, {\n removeSeconds,\n removeLeadingZero,\n });\n }\n if (message.timer.secondarySource === 'secondary' && message.secondary) {\n return message.secondary;\n }\n return;\n}\n\n/**\n * What should we be showing in the cards?\n */\nexport function getCardData(\n eventNow: OntimeEvent | null,\n eventNext: OntimeEvent | null,\n mainSource: keyof OntimeEvent | null,\n secondarySource: keyof OntimeEvent | null,\n playback: Playback,\n phase: TimerPhase,\n) {\n if (playback === Playback.Stop) {\n return {\n showNow: false,\n nowMain: undefined,\n nowSecondary: undefined,\n showNext: false,\n nextMain: undefined,\n nextSecondary: undefined,\n };\n }\n\n // pending roll timers would be classified as active\n const hasActiveTimer = isPlaybackActive(playback) && phase !== TimerPhase.Pending;\n\n // if we are loaded, we show the upcoming event as next\n const nowMain = hasActiveTimer ? getPropertyValue(eventNow, mainSource ?? 'title') : undefined;\n const nowSecondary = hasActiveTimer ? getPropertyValue(eventNow, secondarySource) : undefined;\n const nextMain = hasActiveTimer\n ? getPropertyValue(eventNext, mainSource ?? 'title')\n : getPropertyValue(eventNow, mainSource ?? 'title');\n const nextSecondary = hasActiveTimer\n ? getPropertyValue(eventNext, secondarySource)\n : getPropertyValue(eventNow, secondarySource);\n\n return {\n showNow: Boolean(nowMain) || Boolean(nowSecondary),\n nowMain,\n nowSecondary,\n showNext: Boolean(nextMain) || Boolean(nextSecondary),\n nextMain,\n nextSecondary,\n };\n}\n"],"names":["bsearch","low","high","predicate","mid","FitText","children","mode","min","max","elementProps","ref","useRef","isOverflown","useCallback","el","setFontSize","originVisibility","fontSize","useEffect","observer","jsx","getShowMessage","message","getIsPlaying","playback","Playback","getTotalTime","duration","addedTime","getShowProgressBar","timerType","TimerType","getShowClock","fontSizeMap","getEstimatedFontSize","stageTimer","secondaryContent","stageTimerCharacters","timerFontSize","externalFontSize","getShowModifiers","countToEnd","phase","freezeOvertime","freezeMessage","hidePhase","TimerPhase","getSecondaryDisplay","currentAux","localisedMinutes","removeSeconds","removeLeadingZero","hideSecondary","getFormattedTimer","getCardData","eventNow","eventNext","mainSource","secondarySource","hasActiveTimer","isPlaybackActive","nowMain","getPropertyValue","nowSecondary","nextMain","nextSecondary"],"mappings":"miBAKO,MAAMA,EAAU,CAACC,EAAaC,EAAcC,IAAgD,CACjG,KAAOF,EAAMC,GAAM,CACjB,MAAME,EAAM,KAAK,OAAOH,EAAMC,GAAQ,CAAC,EACvC,GAAIE,IAAQH,EAAK,MAEbE,EAAUC,CAAG,EACTH,EAAAG,EAECF,EAAAE,CACT,CAEK,OAAAH,CACT,ECFO,SAASI,EAAQ,CACtB,SAAAC,EACA,KAAAC,EAAO,QACP,IAAAC,EAAM,GACN,IAAAC,EAAM,IACN,GAAGC,CACL,EAAoC,CAC5B,MAAAC,EAAMC,SAAuB,IAAI,EAEjCC,EAAcC,EAAAA,YAAY,IAAM,CACpC,MAAMC,EAAKJ,EAAI,QACX,OAACI,EACEA,EAAG,aAAeA,EAAG,cAAgBA,EAAG,YAAcA,EAAG,YADhD,EAElB,EAAG,EAAE,EAECC,EAAcF,EAAAA,YAAY,IAAM,CACpC,MAAMC,EAAKJ,EAAI,QACf,GAAI,CAACI,EAAI,OAEH,MAAAE,EAAmBF,EAAG,MAAM,WAElCA,EAAG,MAAM,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K,EAAiBP,EAAUE,GAAc,OAAO,EAC9CQ,EAAgBN,EAClBG,EAAiBN,EAAWE,CAAe,EAC3CI,EAAiBP,EAAUG,CAAe,EAEvC,MAAA,CACL,QAAS,EAAQG,GAAY,EAAQE,EACrC,QAAAF,EACA,aAAAE,EACA,SAAU,EAAQC,GAAa,EAAQC,EACvC,SAAAD,EACA,cAAAC,CACF,CACF"}
@@ -1,2 +0,0 @@
1
- import{e as s,k as i}from"./vendor-BoH5HFNN.js";import{ay as u,aG as c,aA as f}from"./index-CDBQg2fh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="16e5d773-e5a6-416a-8811-28e3ff3fc326",e._sentryDebugIdIdentifier="sentry-dbid-16e5d773-e5a6-416a-8811-28e3ff3fc326")}catch{}})();const a=`${u}/custom-fields`;async function l(){return(await s.get(a)).data}async function m(e){return(await s.post(a,{...e})).data}async function h(e,t){return(await s.put(`${a}/${e}`,{...t})).data}async function b(e){return(await s.delete(`${a}/${e}`)).data}const y={};function F(){const{data:e,status:t,isFetching:r,isError:o,refetch:d}=i({queryKey:f,queryFn:l,placeholderData:(n,p)=>n,retry:5,retryDelay:n=>n*2500,refetchInterval:c,networkMode:"always"});return{data:e??y,status:t,isFetching:r,isError:o,refetch:d}}export{b as d,h as e,m as p,F as u};
2
- //# sourceMappingURL=useCustomFields-BUJkzZvM.js.map
@@ -1,2 +0,0 @@
1
- #@��.7�]�ٿ�W��f���č���bPe��k~4�>�xQ��Y$�|��������s/��(>1l�: � �����$�
2
- ��mF�����[fR�-�X�A����]�2��GLJ����Ұ�v�v����:��Rs;5O�e4Nb[ �aE�]�X�P�W���!�ɧ�y�;#\ȼ�ޓ�+�~ds9��ό �Ow�B��2�^����ٟ�T��5�hT(�D�VKuA��R���XQ���J���.d~X+�����T��������$�-?�������j�Tќ�H���+��XeX-aȤ��3l�h26xp�1��Dw���ܒ����q���4d��ꇵ��ȳ���Y�8�0O 0�UJ9�Əq ڜ��[4��3�F'��f��\�M��1p�k� s{:�0#�X�G2�I��;��ٚ�>�{��#J{�\+E�ގ��$iB���g��D\�������Ǖm�m�%t!FB2�S{�Q�PHo⎤~y�ޙ\0���^�×���sq� �I
@@ -1,2 +0,0 @@
1
- import{h as o}from"./vendor-BoH5HFNN.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new n.Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="ac40b7cb-8d58-49cd-a4f1-d2074c4c7367",n._sentryDebugIdIdentifier="sentry-dbid-ac40b7cb-8d58-49cd-a4f1-d2074c4c7367")}catch{}})();function b(n,t,r){if(!n.current||!t.current)return;const u=n.current.getBoundingClientRect(),e=t.current.getBoundingClientRect(),d=u.top-e.top+t.current.scrollTop-r;t.current.scrollTo({top:d,behavior:"smooth"})}function a({followRef:n,scrollRef:t,doFollow:r,topOffset:u=100,setScrollFlag:e,followTrigger:d}){return o.useEffect(()=>{!r||!d||n.current&&t.current&&(e==null||e(!0),window.requestAnimationFrame(()=>{b(n,t,u),e==null||e(!1)}))},[d,r,n,t,e,u]),o.useCallback((i=n,c=t,s=u)=>{i&&c&&b(i,c,s)},[n,t,u])}export{a as u};
2
- //# sourceMappingURL=useFollowComponent-Eyo4hWVG.js.map
@@ -1,2 +0,0 @@
1
- import{e as a,k as o}from"./vendor-BoH5HFNN.js";import{ay as i,bu as d,bV as n,I as u}from"./index-CDBQg2fh.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d5062217-141a-4724-96c2-0f70ec2b0b56",e._sentryDebugIdIdentifier="sentry-dbid-d5062217-141a-4724-96c2-0f70ec2b0b56")}catch{}})();const s=`${i}/report`;async function y(){return(await a.get(s)).data}async function b(){await a.delete(`${s}/all`),await d.invalidateQueries({queryKey:n})}function p(){const{data:e,refetch:t}=o({queryKey:n,queryFn:y,placeholderData:(r,l)=>r,retry:5,retryDelay:r=>r*2500,networkMode:"always",staleTime:u});return{data:e??{},refetch:t}}export{b as d,p as u};
2
- //# sourceMappingURL=useReport-BUCsRa2T.js.map
@@ -1,2 +0,0 @@
1
- import{e as a,k as h,h as i}from"./vendor-BoH5HFNN.js";import{s as p,ay as g,o as y,aG as R,az as m}from"./index-CDBQg2fh.js";import{u as I}from"./useProjectData-DGA6K2Zs.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="a091b232-68e1-4b49-9edb-a41c0655c5e8",t._sentryDebugIdIdentifier="sentry-dbid-a091b232-68e1-4b49-9edb-a41c0655c5e8")}catch{}})();var c=(t=>(t.Event="event",t.Delay="delay",t.Group="group",t.Milestone="milestone",t))(c||{});function M(t){return(t==null?void 0:t.type)===c.Event}function v(t){return!t.skip}function C(t){return(t==null?void 0:t.type)===c.Delay}function O(t){return(t==null?void 0:t.type)===c.Group}function N(t){return(t==null?void 0:t.type)===c.Milestone}function W(t,n){return t in n}function _(t){return t.type==="osc"}function B(t){return t.type==="http"}function K(t){return t.type==="ontime"}function b(t,n){return!(!n||t.dayOffset<=n.dayOffset||n.timeStart+n.duration>p)}function D(t,n){if(!n)return!0;const s=t.timeStart+t.duration+t.dayOffset*p,e=n.timeStart+n.duration+n.dayOffset*p;return s>=e}const r=`${g}/rundowns`;async function U(){return(await a.get(r)).data}async function L(){return(await a.get(`${r}/current`)).data}async function z(t){return a.post(`${r}/${t}/load`)}async function H(t){return a.post(r,{title:t})}async function Q(t){return a.post(`${r}/${t}/duplicate`)}async function j(t,n){return a.patch(`${r}/${t}`,{title:n})}async function J(t){return a.delete(`${r}/${t}`)}async function V(t,n){return a.post(`${r}/${t}/entry`,n)}async function X(t,n){return a.put(`${r}/${t}/entry`,n)}async function Y(t,n){return a.put(`${r}/${t}/batch`,n)}async function Z(t,n){return a.patch(`${r}/${t}/reorder`,n)}async function tt(t,n,s){return a.patch(`${r}/${t}/swap`,{from:n,to:s})}async function nt(t,n){return a.patch(`${r}/${t}/applydelay/${n}`)}async function et(t,n){return a.post(`${r}/${t}/clone/${n}`)}async function st(t,n){return a.post(`${r}/${t}/group`,{ids:n})}async function at(t,n){return a.post(`${r}/${t}/ungroup/${n}`)}async function rt(t,n){return a.delete(`${r}/${t}/entries`,{data:{ids:n}})}async function ot(t){return a.delete(`${r}/${t}/all`)}const P="LAST";function x(t,n){const{metadata:s,process:e}=w(n);let o=s;const u={};for(const d of t.flatOrder){const f=t.entries[d];o=e(f),u[d]=o}return u[P]=o,u}function T(t,n){const{process:s}=w(n),e=[];for(const o of t.flatOrder){const u=t.entries[o],d={...u,...s(u)};e.push(d)}return e}function w(t){let n={previousEvent:null,latestEvent:null,previousEntryId:null,thisId:null,eventIndex:0,isPast:!!t,isNextDay:!1,totalGap:0,isLinkedToLoaded:!1,isLoaded:!1,groupId:null,groupColour:void 0,groupEntries:void 0,isFirstAfterGroup:!1};function s(e){return n=k(n,t,e),n}return{metadata:n,process:s}}function k(t,n,s){var o,u;const e={...t};return e.isNextDay=!1,e.isLoaded=!1,e.previousEntryId=e.thisId,e.thisId=s.id,e.previousEvent=e.latestEvent,s.id===n&&(e.isLoaded=!0,e.isPast=!1,e.isLinkedToLoaded=!0),O(s)?(e.groupId=s.id,e.groupColour=s.colour,e.groupEntries=s.entries.length):(s.parent!==e.groupId&&(e.groupId=s.parent,e.groupEntries=void 0,s.parent===null&&(e.groupColour=void 0)),M(s)&&(e.eventIndex+=1,e.isFirstAfterGroup=!!((o=e.previousEvent)!=null&&o.parent)&&s.parent===null,v(s)&&(e.isNextDay=b(s,e.previousEvent),!e.isPast&&!e.isLoaded&&(e.totalGap+=s.gap,e.isLinkedToLoaded=s.linkStart&&!((u=e.previousEvent)!=null&&u.countToEnd)&&e.isLinkedToLoaded),D(s,e.latestEvent)&&(e.latestEvent=s)))),e}const G={id:"default",title:"",order:[],flatOrder:[],entries:{},revision:-1};function l(){const{data:t,status:n,isError:s,refetch:e,isFetching:o}=h({queryKey:m,queryFn:L,placeholderData:(u,d)=>u,refetchInterval:R});return{data:t??G,status:n,isError:s,refetch:e,isFetching:o}}function ut(){const{data:t,status:n}=l(),{selectedEventId:s}=y(),e=i.useMemo(()=>x(t,s),[t,s]);return{data:t,status:n,rundownMetadata:e}}function it(){const{data:t,status:n}=l(),{data:s}=I(),e=i.useRef(""),[o,u]=i.useState(-1),[d,f]=i.useState([]);return i.useEffect(()=>{if(t.revision!==-1||t.revision!==o){const E=t.flatOrder.map($=>t.entries[$]);f(E),u(t.revision)}},[t.entries,t.flatOrder,t.revision,o]),i.useEffect(()=>{(s==null?void 0:s.title)!==e.current&&(u(-1),e.current=(s==null?void 0:s.title)??"")},[s]),{data:d,rundownId:t.id,status:n}}function S(){const{data:t,status:n}=l(),{selectedEventId:s}=y();return{data:i.useMemo(()=>T(t,s),[t,s]),status:n}}function dt(t){const{data:n,status:s}=S();return{data:i.useMemo(()=>n.filter(t),[n,t]),status:s}}function ct(t){const{data:n}=l();return i.useMemo(()=>t===null?null:n.entries[t],[t,n.entries])}export{Y as A,rt as B,ot as C,nt as D,at as E,st as F,Z as G,tt as H,c as S,v as a,dt as b,it as c,D as d,_ as e,B as f,K as g,l as h,M as i,O as j,N as k,H as l,Q as m,J as n,z as o,U as p,W as q,j as r,C as s,ut as t,S as u,ct as v,P as w,V as x,et as y,X as z};
2
- //# sourceMappingURL=useRundown-BFae0_bU.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRundown-BFae0_bU.js","sources":["../../../../packages/types/src/definitions/core/OntimeEntry.ts","../../../../packages/types/src/utils/guards.ts","../../../../packages/utils/src/date-utils/checkIsNextDay.ts","../../../../packages/utils/src/date-utils/isNewLatest.ts","../../src/common/api/rundown.ts","../../src/common/utils/rundownMetadata.ts","../../src/common/hooks-query/useRundown.ts"],"sourcesContent":["import type { MaybeNumber } from '../../utils/utils.type.js';\nimport type { EndAction } from '../EndAction.type.js';\nimport type { TimerType } from '../TimerType.type.js';\nimport type { TimeStrategy } from '../TimeStrategy.type.js';\nimport type { Trigger } from './Automation.type.js';\nimport type { EntryCustomFields } from './CustomFields.type.js';\n\nexport type EntryId = string;\n\nexport enum SupportedEntry {\n Event = 'event',\n Delay = 'delay',\n Group = 'group',\n Milestone = 'milestone',\n}\n\nexport type OntimeBaseEvent = {\n type: SupportedEntry;\n id: EntryId;\n};\n\nexport type OntimeDelay = OntimeBaseEvent & {\n type: SupportedEntry.Delay;\n duration: number;\n parent: EntryId | null;\n};\n\nexport type OntimeMilestone = OntimeBaseEvent & {\n type: SupportedEntry.Milestone;\n cue: string;\n title: string;\n note: string;\n colour: string;\n custom: EntryCustomFields;\n parent: EntryId | null;\n // !==== RUNTIME METADATA ====! //\n revision: number;\n};\n\nexport type OntimeGroup = OntimeBaseEvent & {\n type: SupportedEntry.Group;\n title: string;\n note: string;\n entries: EntryId[];\n targetDuration: MaybeNumber;\n colour: string;\n custom: EntryCustomFields;\n // !==== RUNTIME METADATA ====! //\n revision: number;\n timeStart: MaybeNumber; // calculated at runtime\n timeEnd: MaybeNumber; // calculated at runtime\n duration: number; // calculated at runtime\n isFirstLinked: boolean; // calculated at runtime, whether the first event is linked\n};\n\nexport type OntimeEvent = OntimeBaseEvent & {\n type: SupportedEntry.Event;\n flag: boolean;\n cue: string;\n title: string;\n note: string;\n endAction: EndAction;\n timerType: TimerType;\n countToEnd: boolean;\n linkStart: boolean;\n timeStrategy: TimeStrategy;\n timeStart: number;\n timeEnd: number;\n duration: number;\n skip: boolean;\n colour: string;\n timeWarning: number;\n timeDanger: number;\n custom: EntryCustomFields;\n triggers: Trigger[];\n parent: EntryId | null;\n // !==== RUNTIME METADATA ====! //\n revision: number;\n delay: number; // calculated at runtime\n dayOffset: number; // calculated at runtime\n gap: number; // calculated at runtime\n};\n\nexport type PlayableEvent = OntimeEvent & { skip: false };\nexport type TimeField = 'timeStart' | 'timeEnd' | 'duration';\nexport type OntimeEntry = OntimeDelay | OntimeGroup | OntimeEvent | OntimeMilestone;\n\n// we need to create a manual union type since keys cannot be used in type unions\nexport type OntimeEntryCommonKeys = keyof OntimeEvent | keyof OntimeDelay | keyof OntimeGroup | keyof OntimeMilestone;\n","import type { AutomationOutput, HTTPOutput, OntimeAction, OSCOutput } from '../definitions/core/Automation.type.js';\nimport type {\n OntimeDelay,\n OntimeEntry,\n OntimeEvent,\n OntimeGroup,\n OntimeMilestone,\n PlayableEvent,\n} from '../definitions/core/OntimeEntry.js';\nimport { SupportedEntry } from '../definitions/core/OntimeEntry.js';\nimport { type TimerLifeCycle, timerLifecycleValues } from '../definitions/core/TimerLifecycle.type.js';\n\ntype MaybeEvent = OntimeEntry | Partial<OntimeEntry> | null | undefined;\n\nexport function isOntimeEvent(event: MaybeEvent): event is OntimeEvent {\n return event?.type === SupportedEntry.Event;\n}\n\nexport function isPlayableEvent(event: OntimeEvent): event is PlayableEvent {\n return !event.skip;\n}\n\nexport function isOntimeDelay(event: MaybeEvent): event is OntimeDelay {\n return event?.type === SupportedEntry.Delay;\n}\n\nexport function isOntimeGroup(event: MaybeEvent): event is OntimeGroup {\n return event?.type === SupportedEntry.Group;\n}\n\nexport function isOntimeMilestone(event: MaybeEvent): event is OntimeMilestone {\n return event?.type === SupportedEntry.Milestone;\n}\n\ntype AnyKeys<T> = keyof T;\n\nexport function isKeyOfType<T extends object>(key: PropertyKey, obj: T): key is AnyKeys<T> {\n return key in obj;\n}\n\nexport function isOSCOutput(output: AutomationOutput): output is OSCOutput {\n return output.type === 'osc';\n}\n\nexport function isHTTPOutput(output: AutomationOutput): output is HTTPOutput {\n return output.type === 'http';\n}\n\nexport function isOntimeAction(output: AutomationOutput): output is OntimeAction {\n return output.type === 'ontime';\n}\n\nexport function isTimerLifeCycle(maybeCycle: unknown): maybeCycle is TimerLifeCycle {\n if (typeof maybeCycle !== 'string') return false;\n return timerLifecycleValues.includes(maybeCycle);\n}\n","import type { OntimeEvent } from 'ontime-types';\n\nimport { dayInMs } from './conversionUtils.js';\n\n/**\n * Utility function checks whether a given event is the day after from its predecessor\n */\nexport function checkIsNextDay(\n current: Pick<OntimeEvent, 'timeStart' | 'dayOffset'>,\n previous: Pick<OntimeEvent, 'timeStart' | 'duration' | 'dayOffset'> | null,\n): boolean {\n if (!previous) {\n return false;\n }\n\n // if the day offsets are the same it can't be the next day\n if (current.dayOffset <= previous.dayOffset) {\n return false;\n }\n\n // if the previous event crossed midnight then the current is the same day\n if (previous.timeStart + previous.duration > dayInMs) {\n return false;\n }\n\n return true;\n}\n","import type { OntimeEvent } from 'ontime-types';\n\nimport { dayInMs } from './conversionUtils.js';\n\n/**\n * Checks whether a new element is the latest in the list\n */\nexport function isNewLatest(\n currentEvent: Pick<OntimeEvent, 'timeStart' | 'duration' | 'dayOffset'>,\n previousEvent: Pick<OntimeEvent, 'timeStart' | 'duration' | 'dayOffset'> | null,\n) {\n // true if there is no previous\n if (!previousEvent) {\n return true;\n }\n\n const normalisedCurrentEnd = currentEvent.timeStart + currentEvent.duration + currentEvent.dayOffset * dayInMs;\n const normalisedPreviousEnd = previousEvent.timeStart + previousEvent.duration + previousEvent.dayOffset * dayInMs;\n\n return normalisedCurrentEnd >= normalisedPreviousEnd;\n}\n","import axios, { AxiosResponse } from 'axios';\nimport { EntryId, OntimeEntry, OntimeEvent, ProjectRundownsList, Rundown, TransientEventPayload } from 'ontime-types';\n\nimport { apiEntryUrl } from './constants';\n\ntype RundownId = string;\nconst rundownPath = `${apiEntryUrl}/rundowns`;\n\n// #region operations on project rundowns =========================\n\n/**\n * HTTP request to fetch a list of existing rundowns\n */\nexport async function fetchProjectRundownList(): Promise<ProjectRundownsList> {\n const res = await axios.get(rundownPath);\n return res.data;\n}\n\n/**\n * HTTP request to fetch all entries in the currently loaded rundown\n */\nexport async function fetchCurrentRundown(): Promise<Rundown> {\n const res = await axios.get(`${rundownPath}/current`);\n return res.data;\n}\n\n/**\n * HTTP request to switch the currently loaded rundown\n */\nexport async function loadRundown(rundownId: RundownId): Promise<AxiosResponse<ProjectRundownsList>> {\n return axios.post(`${rundownPath}/${rundownId}/load`);\n}\n\n/**\n * HTTP request to create a new rundown\n */\nexport async function createRundown(title: string): Promise<AxiosResponse<ProjectRundownsList>> {\n return axios.post(rundownPath, { title });\n}\n\n/**\n * HTTP request to duplicate an existing rundown\n */\nexport async function duplicateRundown(rundownId: RundownId): Promise<AxiosResponse<ProjectRundownsList>> {\n return axios.post(`${rundownPath}/${rundownId}/duplicate`);\n}\n\n/**\n * HTTP request to rename an existing rundown\n */\nexport async function renameRundown(rundownId: RundownId, title: string): Promise<AxiosResponse<ProjectRundownsList>> {\n return axios.patch(`${rundownPath}/${rundownId}`, { title });\n}\n\n/**\n * HTTP request to delete a rundown\n */\nexport async function deleteRundown(rundownId: RundownId): Promise<AxiosResponse<ProjectRundownsList>> {\n return axios.delete(`${rundownPath}/${rundownId}`);\n}\n\n// #endregion operations on project rundowns ======================\n// #region operations on rundown entries ==========================\n\n/**\n * HTTP request to post new entry\n */\nexport async function postAddEntry(\n rundownId: RundownId,\n data: TransientEventPayload,\n): Promise<AxiosResponse<OntimeEntry>> {\n return axios.post(`${rundownPath}/${rundownId}/entry`, data);\n}\n\n/**\n * HTTP request to edit an entry\n */\nexport async function putEditEntry(rundownId: RundownId, data: Partial<OntimeEntry>): Promise<AxiosResponse<OntimeEntry>> {\n return axios.put(`${rundownPath}/${rundownId}/entry`, data);\n}\n\nexport type BatchEditEntry = {\n data: Partial<OntimeEvent>;\n ids: EntryId[];\n};\n\n/**\n * HTTP request to edit multiple events\n */\nexport async function putBatchEditEvents(rundownId: RundownId, data: BatchEditEntry): Promise<AxiosResponse<Rundown>> {\n return axios.put(`${rundownPath}/${rundownId}/batch`, data);\n}\n\nexport type ReorderEntry = {\n entryId: EntryId;\n destinationId: EntryId;\n order: 'before' | 'after' | 'insert';\n};\n\n/**\n * HTTP request to reorder an entry\n */\nexport async function patchReorderEntry(rundownId: RundownId, data: ReorderEntry): Promise<AxiosResponse<Rundown>> {\n return axios.patch(`${rundownPath}/${rundownId}/reorder`, data);\n}\n\n/**\n * HTTP request to swap two events\n */\nexport async function requestEventSwap(rundownId: RundownId, from: EntryId, to: EntryId): Promise<AxiosResponse<Rundown>> {\n return axios.patch(`${rundownPath}/${rundownId}/swap`, { from, to });\n}\n\n/**\n * HTTP request to request application of delay\n */\nexport async function requestApplyDelay(rundownId: RundownId, delayId: EntryId): Promise<AxiosResponse<Rundown>> {\n return axios.patch(`${rundownPath}/${rundownId}/applydelay/${delayId}`);\n}\n\n/**\n * HTTP request for cloning an entry\n */\nexport async function postCloneEntry(rundownId: RundownId, entryId: EntryId): Promise<AxiosResponse<Rundown>> {\n return axios.post(`${rundownPath}/${rundownId}/clone/${entryId}`);\n}\n\n/**\n * HTTP request for grouping a list of entries into a group\n */\nexport async function requestGroupEntries(rundownId: RundownId, entryIds: EntryId[]): Promise<AxiosResponse<Rundown>> {\n return axios.post(`${rundownPath}/${rundownId}/group`, { ids: entryIds });\n}\n\n/**\n * HTTP request for dissolving of a group\n */\nexport async function requestUngroup(rundownId: RundownId, groupId: EntryId): Promise<AxiosResponse<Rundown>> {\n return axios.post(`${rundownPath}/${rundownId}/ungroup/${groupId}`);\n}\n\n/**\n * HTTP request to delete entries of a given rundown\n */\nexport async function deleteEntries(rundownId: RundownId, entryIds: EntryId[]): Promise<AxiosResponse<Rundown>> {\n return axios.delete(`${rundownPath}/${rundownId}/entries`, { data: { ids: entryIds } });\n}\n\n/**\n * HTTP request to delete all entries of a given rundown\n */\nexport async function requestDeleteAll(rundownId: RundownId): Promise<AxiosResponse<Rundown>> {\n return axios.delete(`${rundownPath}/${rundownId}/all`);\n}\n\n// #endregion operations on rundown entries =======================\n","import {\n isOntimeEvent,\n isOntimeGroup,\n isPlayableEvent,\n MaybeString,\n OntimeDelay,\n OntimeEntry,\n OntimeEvent,\n OntimeMilestone,\n PlayableEvent,\n Rundown,\n} from 'ontime-types';\nimport { checkIsNextDay, isNewLatest } from 'ontime-utils';\n\nexport type RundownMetadata = {\n previousEvent: PlayableEvent | null; // The playableEvent from the previous iteration, used by indicators\n latestEvent: PlayableEvent | null; // The playableEvent most forwards in time processed so far\n previousEntryId: MaybeString; // previous entry is used to infer position in the rundown for new events\n thisId: MaybeString;\n eventIndex: number;\n isPast: boolean;\n isNextDay: boolean;\n totalGap: number;\n isLinkedToLoaded: boolean; // check if the event can link all the way back to the currently playing event\n isLoaded: boolean;\n groupId: MaybeString;\n groupColour: string | undefined;\n groupEntries: number | undefined;\n isFirstAfterGroup: boolean;\n};\n\nexport type ExtendedEntry<T extends OntimeEntry = OntimeEntry> = T & RundownMetadata;\n\nexport const lastMetadataKey = 'LAST';\n\nexport type RundownMetadataObject = Record<string, Readonly<RundownMetadata>>;\n\n/**\n * Generates a Rundown Metadata object from a rundown\n */\nexport function getRundownMetadata(\n data: Pick<Rundown, 'entries' | 'flatOrder'>,\n selectedEventId: MaybeString,\n): RundownMetadataObject {\n const { metadata, process } = initRundownMetadata(selectedEventId);\n // keep a single reference to the metadata which we override for every entry\n let lastSnapshot = metadata;\n const rundownMetadata: RundownMetadataObject = {};\n\n for (const id of data.flatOrder) {\n const entry = data.entries[id];\n lastSnapshot = process(entry);\n rundownMetadata[id] = lastSnapshot;\n }\n\n // ensure some blank data even for empty rundowns\n rundownMetadata[lastMetadataKey] = lastSnapshot;\n\n return rundownMetadata;\n}\n\nexport function getFlatRundownMetadata(\n data: Pick<Rundown, 'entries' | 'flatOrder'>,\n selectedEventId: MaybeString,\n): ExtendedEntry[] {\n const { process } = initRundownMetadata(selectedEventId);\n const flatRundown: ExtendedEntry[] = [];\n\n for (const id of data.flatOrder) {\n const entry = data.entries[id];\n const extendedEntry = { ...entry, ...process(entry) };\n flatRundown.push(extendedEntry);\n }\n\n return flatRundown;\n}\n\n/**\n * Creates a process function which aggregates the rundown metadata and event metadata\n */\nexport function initRundownMetadata(selectedEventId: MaybeString) {\n let rundownMeta: RundownMetadata = {\n previousEvent: null,\n latestEvent: null,\n previousEntryId: null,\n thisId: null,\n eventIndex: 0,\n isPast: Boolean(selectedEventId), // all events before the current selected are in the past\n isNextDay: false,\n totalGap: 0,\n isLinkedToLoaded: false,\n isLoaded: false,\n groupId: null,\n groupColour: undefined,\n groupEntries: undefined,\n isFirstAfterGroup: false,\n };\n\n function process(entry: OntimeEntry): Readonly<RundownMetadata> {\n const processedRundownMetadata = processEntry(rundownMeta, selectedEventId, entry);\n rundownMeta = processedRundownMetadata;\n return rundownMeta;\n }\n\n return { metadata: rundownMeta, process };\n}\n\n/**\n * Receives a rundown entry and processes its place in the rundown\n */\nfunction processEntry(\n rundownMetadata: RundownMetadata,\n selectedEventId: MaybeString,\n entry: Readonly<OntimeEntry>,\n): Readonly<RundownMetadata> {\n const processedData = { ...rundownMetadata };\n // initialise data to be overridden below\n processedData.isNextDay = false;\n processedData.isLoaded = false;\n\n processedData.previousEntryId = processedData.thisId; // thisId comes from the previous iteration\n processedData.thisId = entry.id; // we reassign thisId\n processedData.previousEvent = processedData.latestEvent;\n\n if (entry.id === selectedEventId) {\n processedData.isLoaded = true;\n processedData.isPast = false;\n processedData.isLinkedToLoaded = true;\n }\n\n if (isOntimeGroup(entry)) {\n processedData.groupId = entry.id;\n processedData.groupColour = entry.colour;\n processedData.groupEntries = entry.entries.length;\n } else {\n // for delays and groups, we insert the group metadata\n if ((entry as OntimeEvent | OntimeDelay | OntimeMilestone).parent !== processedData.groupId) {\n // if the parent is not the current group, we need to update the groupId\n processedData.groupId = (entry as OntimeEvent | OntimeDelay | OntimeMilestone).parent;\n processedData.groupEntries = undefined;\n if ((entry as OntimeEvent | OntimeDelay | OntimeMilestone).parent === null) {\n // if the entry has no parent, it cannot have a group colour\n processedData.groupColour = undefined;\n }\n }\n\n if (isOntimeEvent(entry)) {\n // event indexes are 1 based in UI\n processedData.eventIndex += 1;\n processedData.isFirstAfterGroup = Boolean(processedData.previousEvent?.parent) && entry.parent === null;\n\n if (isPlayableEvent(entry)) {\n processedData.isNextDay = checkIsNextDay(entry, processedData.previousEvent);\n \n if (!processedData.isPast && !processedData.isLoaded) {\n /**\n * isLinkToLoaded is a chain value that we maintain until we\n * a) find an unlinked event\n * b) find a countToEnd event\n */\n processedData.totalGap += entry.gap;\n processedData.isLinkedToLoaded =\n entry.linkStart && !processedData.previousEvent?.countToEnd && processedData.isLinkedToLoaded;\n }\n\n if (isNewLatest(entry, processedData.latestEvent)) {\n // this event is the forward most event in rundown, for next iteration\n processedData.latestEvent = entry;\n }\n }\n }\n }\n\n return processedData;\n}\n","import { useEffect, useMemo, useRef, useState } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { EntryId, OntimeEntry, Rundown } from 'ontime-types';\n\nimport { queryRefetchIntervalSlow } from '../../ontimeConfig';\nimport { RUNDOWN } from '../api/constants';\nimport { fetchCurrentRundown } from '../api/rundown';\nimport { useSelectedEventId } from '../hooks/useSocket';\nimport { ExtendedEntry, getFlatRundownMetadata, getRundownMetadata } from '../utils/rundownMetadata';\n\nimport useProjectData from './useProjectData';\n\n// revision is -1 so that the remote revision is higher\nconst cachedRundownPlaceholder: Rundown = {\n id: 'default',\n title: '',\n order: [],\n flatOrder: [],\n entries: {},\n revision: -1,\n};\n\n/**\n * Normalised rundown data\n */\nexport default function useRundown() {\n const { data, status, isError, refetch, isFetching } = useQuery<Rundown>({\n queryKey: RUNDOWN,\n queryFn: fetchCurrentRundown,\n placeholderData: (previousData, _previousQuery) => previousData,\n refetchInterval: queryRefetchIntervalSlow,\n });\n return { data: data ?? cachedRundownPlaceholder, status, isError, refetch, isFetching };\n}\n\nexport function useRundownWithMetadata() {\n const { data, status } = useRundown();\n const { selectedEventId } = useSelectedEventId();\n const rundownMetadata = useMemo(() => getRundownMetadata(data, selectedEventId), [data, selectedEventId]);\n return { data, status, rundownMetadata };\n}\n\n/**\n * Provides access to a flat rundown\n * built from the order and rundown fields\n */\nexport function useFlatRundown() {\n const { data, status } = useRundown();\n const { data: projectData } = useProjectData();\n\n const loadedProject = useRef<string>('');\n const [prevRevision, setPrevRevision] = useState<number>(-1);\n const [flatRundown, setFlatRundown] = useState<OntimeEntry[]>([]);\n\n // update data whenever the revision changes\n useEffect(() => {\n if (data.revision !== -1 || data.revision !== prevRevision) {\n const flatRundown = data.flatOrder.map((id) => data.entries[id]);\n setFlatRundown(flatRundown);\n setPrevRevision(data.revision);\n }\n }, [data.entries, data.flatOrder, data.revision, prevRevision]);\n\n // TODO: should we have a project id field?\n // TODO(v4): cleanup as part of load multiple rundowns\n // invalidate current version if project changes\n useEffect(() => {\n if (projectData?.title !== loadedProject.current) {\n setPrevRevision(-1);\n loadedProject.current = projectData?.title ?? '';\n }\n }, [projectData]);\n\n return { data: flatRundown, rundownId: data.id, status };\n}\n\nexport function useFlatRundownWithMetadata() {\n const { data, status } = useRundown();\n const { selectedEventId } = useSelectedEventId();\n\n const rundownWithMetadata = useMemo(() => getFlatRundownMetadata(data, selectedEventId), [data, selectedEventId]);\n return { data: rundownWithMetadata, status };\n}\n\n/**\n * Provides access to a partial rundown based on a filter callback\n */\nexport function usePartialRundown(cb: (event: ExtendedEntry<OntimeEntry>) => boolean) {\n const { data, status } = useFlatRundownWithMetadata();\n const filteredData = useMemo(() => {\n return data.filter(cb);\n }, [data, cb]);\n\n return { data: filteredData, status };\n}\n\n/**\n * Hook to get a specific entry by ID from the rundown\n */\nexport function useEntry(entryId: EntryId | null): OntimeEntry | null {\n const { data: rundown } = useRundown();\n\n // track the specific entry we care about\n const entry = useMemo(() => {\n if (entryId === null) return null;\n return rundown.entries[entryId];\n }, [entryId, rundown.entries]);\n\n return entry;\n}\n"],"names":["SupportedEntry","isOntimeEvent","event","isPlayableEvent","isOntimeDelay","isOntimeGroup","isOntimeMilestone","isKeyOfType","key","obj","isOSCOutput","output","isHTTPOutput","isOntimeAction","checkIsNextDay","current","previous","dayInMs","isNewLatest","currentEvent","previousEvent","normalisedCurrentEnd","normalisedPreviousEnd","rundownPath","apiEntryUrl","fetchProjectRundownList","axios","fetchCurrentRundown","loadRundown","rundownId","createRundown","title","duplicateRundown","renameRundown","deleteRundown","postAddEntry","data","putEditEntry","putBatchEditEvents","patchReorderEntry","requestEventSwap","from","to","requestApplyDelay","delayId","postCloneEntry","entryId","requestGroupEntries","entryIds","requestUngroup","groupId","deleteEntries","requestDeleteAll","lastMetadataKey","getRundownMetadata","selectedEventId","metadata","process","initRundownMetadata","lastSnapshot","rundownMetadata","id","entry","getFlatRundownMetadata","flatRundown","extendedEntry","rundownMeta","processEntry","processedData","_a","_b","cachedRundownPlaceholder","useRundown","status","isError","refetch","isFetching","useQuery","RUNDOWN","previousData","_previousQuery","queryRefetchIntervalSlow","useRundownWithMetadata","useSelectedEventId","useMemo","useFlatRundown","projectData","useProjectData","loadedProject","useRef","prevRevision","setPrevRevision","useState","setFlatRundown","useEffect","useFlatRundownWithMetadata","usePartialRundown","cb","useEntry","rundown"],"mappings":"ygBASY,IAAAA,GAAAA,IACVA,EAAA,MAAQ,QACRA,EAAA,MAAQ,QACRA,EAAA,MAAQ,QACRA,EAAA,UAAY,YAJFA,IAAAA,GAAA,CAAA,CAAA,ECKL,SAASC,EAAcC,EAAyC,CAC9D,OAAAA,GAAA,YAAAA,EAAO,QAASF,EAAe,KACxC,CAEO,SAASG,EAAgBD,EAA4C,CAC1E,MAAO,CAACA,EAAM,IAChB,CAEO,SAASE,EAAcF,EAAyC,CAC9D,OAAAA,GAAA,YAAAA,EAAO,QAASF,EAAe,KACxC,CAEO,SAASK,EAAcH,EAAyC,CAC9D,OAAAA,GAAA,YAAAA,EAAO,QAASF,EAAe,KACxC,CAEO,SAASM,EAAkBJ,EAA6C,CACtE,OAAAA,GAAA,YAAAA,EAAO,QAASF,EAAe,SACxC,CAIgB,SAAA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BC,UAAQ,IAAMrB,EAAuB3B,EAAMmB,CAAe,EAAG,CAACnB,EAAMmB,CAAe,CAAC,EAC5E,OAAAkB,CAAO,CAC7C,CAKO,SAASuB,GAAkBC,EAAoD,CACpF,KAAM,CAAE,KAAA7D,EAAM,OAAAqC,CAAO,EAAIsB,EAA2B,EAK7C,MAAA,CAAE,KAJYX,EAAAA,QAAQ,IACpBhD,EAAK,OAAO6D,CAAE,EACpB,CAAC7D,EAAM6D,CAAE,CAAC,EAEgB,OAAAxB,CAAO,CACtC,CAKO,SAASyB,GAASpD,EAA6C,CACpE,KAAM,CAAE,KAAMqD,CAAQ,EAAI3B,EAAW,EAQ9B,OALOY,EAAAA,QAAQ,IAChBtC,IAAY,KAAa,KACtBqD,EAAQ,QAAQrD,CAAO,EAC7B,CAACA,EAASqD,EAAQ,OAAO,CAAC,CAG/B"}
@@ -1,2 +0,0 @@
1
- import{j as e,b9 as c,ba as r,bb as a,bc as f,A as b,h as d}from"./vendor-BoH5HFNN.js";import{e as l}from"./index-CDBQg2fh.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new n.Error().stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="ffe6e6d4-3620-45e9-8686-a8e1f3f68aac",n._sentryDebugIdIdentifier="sentry-dbid-ffe6e6d4-3620-45e9-8686-a8e1f3f68aac")}catch{}})();const _="_blink_177b4_1",u="_fourtyfive_177b4_13",x="_infoLabel_177b4_17",h="_info_177b4_17",g="_warning_177b4_37",k="_error_177b4_41",t={blink:_,fourtyfive:u,infoLabel:x,info:h,warning:g,error:k};function w({className:n,type:o="info",children:s}){return e.jsxs("div",{className:l([t.infoLabel,t[o],n]),children:[o==="info"&&e.jsx(c,{}),o==="warning"&&e.jsx(r,{}),o==="error"&&e.jsx(r,{}),e.jsx("div",{children:s})]})}const m="_checkbox_175d8_17",y="_indicator_175d8_53",i={checkbox:m,indicator:y};function p(n){return e.jsx(a,{className:i.checkbox,...n,children:e.jsx(f,{className:i.indicator,children:e.jsx(b,{className:i.icon})})})}function v(n){d.useEffect(()=>{document.title=`ontime - ${n}`},[])}export{p as C,w as I,v as u};
2
- //# sourceMappingURL=useWindowTitle-DU8NlxIu.js.map
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- import"./vendor-BoH5HFNN.js";import{T as i,A as a,bk as l,f,M as c,m as d,r as g,be as m}from"./index-CDBQg2fh.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="86151724-01e9-4f15-ad90-5bccbe88bd1b",n._sentryDebugIdIdentifier="sentry-dbid-86151724-01e9-4f15-ad90-5bccbe88bd1b")}catch{}})();function v(n,e,o,u,r,t){if(!r)return null;const s=t??e;if(o)return r.current===null?null:n?Math.max(r.current,0):r.current;switch(s){case i.CountDown:return r.current===null?null:n?Math.max(r.current,0):r.current;case i.CountUp:return Math.abs(r.elapsed??0);case i.Clock:return u;case i.None:return null;default:return null}}function w(n){return n===null?!1:(n==null?void 0:n.toLowerCase())==="true"||n==="1"}function I(n){if(n)return n.startsWith("#")?n:`#${n}`}function M(n,e){var o;if(!(!n||typeof e!="string"||e==="none")){if(e.startsWith("custom-")){const u=e.split("custom-")[1];return(o=n.custom)==null?void 0:o[u]}return n[e]}}function S(n,e,o,u){if(n==null||e===i.None)return u.removeSeconds?a:l;if(e===i.Clock)return f(n);let r=n;u.removeSeconds&&r<-1e3&&e!==i.CountUp&&(r-=c);let t=d(r,{direction:e});return u.removeLeadingZero&&(t=g(t)),u.removeSeconds&&(t=b(t,o)),t}function b(n,e){return n=m(n),n.length<3?`${n} ${e}`:n}export{S as a,M as b,v as g,w as i,I as m};
2
- //# sourceMappingURL=viewUtils-DI8_kmUZ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"viewUtils-DI8_kmUZ.js","sources":["../../src/features/viewers/common/viewUtils.ts"],"sourcesContent":["import { MaybeNumber, MaybeString, OntimeEvent, TimerState, TimerType } from 'ontime-types';\nimport { MILLIS_PER_MINUTE, MILLIS_PER_SECOND, millisToString, removeLeadingZero, removeSeconds } from 'ontime-utils';\n\nimport { timerPlaceholder, timerPlaceholderMin } from '../../../common/utils/styleUtils';\nimport { formatTime } from '../../../common/utils/time';\n\n/**\n * Gathers all options that affect which timer is displayed and selects the correct data source to display\n * it also handles edge cases such as freezing on end\n */\nexport function getTimerByType(\n freezeEnd: boolean,\n timerTypeNow: TimerType,\n countToEndNow: boolean,\n clock: number,\n timerObject: Pick<TimerState, 'current' | 'elapsed'>,\n timerTypeOverride?: TimerType,\n): number | null {\n if (!timerObject) {\n return null;\n }\n\n const viewTimerType = timerTypeOverride ?? timerTypeNow;\n\n if (countToEndNow) {\n if (timerObject.current === null) {\n return null;\n }\n return freezeEnd ? Math.max(timerObject.current, 0) : timerObject.current;\n }\n\n switch (viewTimerType) {\n case TimerType.CountDown:\n if (timerObject.current === null) {\n return null;\n }\n return freezeEnd ? Math.max(timerObject.current, 0) : timerObject.current;\n case TimerType.CountUp:\n return Math.abs(timerObject.elapsed ?? 0);\n case TimerType.Clock:\n return clock;\n case TimerType.None:\n return null;\n default: {\n viewTimerType satisfies never;\n return null;\n }\n }\n}\n\n/**\n * Parses a string to semantically verify if it represents a true value\n * Used in the context of parsing search params and local storage items which can be strings or null\n */\nexport function isStringBoolean(text: string | null) {\n if (text === null) {\n return false;\n }\n return text?.toLowerCase() === 'true' || text === '1';\n}\n\n/**\n * Prepares a colour string for use in views\n * Colours in params do not have the #prefix\n */\nexport function makeColourString(hex: string | null): string | undefined {\n if (!hex) {\n return undefined;\n }\n // ensure the hex starts with a #\n return hex.startsWith('#') ? hex : `#${hex}`;\n}\n\n/**\n * Retrieves a dynamic property from an event\n * Considers custom fields\n */\nexport function getPropertyValue(event: OntimeEvent | null, property: MaybeString): string | undefined {\n if (!event || typeof property !== 'string' || property === 'none') {\n return undefined;\n }\n\n if (property.startsWith('custom-')) {\n const field = property.split('custom-')[1];\n return event.custom?.[field];\n }\n\n return event[property as keyof OntimeEvent] as string;\n}\n\ntype FormattingOptions = {\n removeSeconds: boolean;\n removeLeadingZero: boolean;\n};\n\nexport function getFormattedTimer(\n timer: MaybeNumber,\n timerType: TimerType,\n localisedMinutes: string,\n options: FormattingOptions,\n): string {\n if (timer == null || timerType === TimerType.None) {\n return options.removeSeconds ? timerPlaceholderMin : timerPlaceholder;\n }\n\n if (timerType === TimerType.Clock) {\n return formatTime(timer);\n }\n\n let timeToParse = timer;\n if (options.removeSeconds) {\n const isNegative = timeToParse < -MILLIS_PER_SECOND && timerType !== TimerType.CountUp;\n if (isNegative) {\n // in negative numbers, we need to round down\n timeToParse -= MILLIS_PER_MINUTE;\n }\n }\n\n let display = millisToString(timeToParse, { direction: timerType });\n if (options.removeLeadingZero) {\n display = removeLeadingZero(display);\n }\n\n if (options.removeSeconds) {\n display = formatDisplayWithMinutes(display, localisedMinutes);\n }\n return display;\n}\n\nfunction formatDisplayWithMinutes(display: string, localisedMinutes: string): string {\n display = removeSeconds(display);\n return display.length < 3 ? `${display} ${localisedMinutes}` : display;\n}\n"],"names":["getTimerByType","freezeEnd","timerTypeNow","countToEndNow","clock","timerObject","timerTypeOverride","viewTimerType","TimerType","isStringBoolean","text","makeColourString","hex","getPropertyValue","event","property","field","_a","getFormattedTimer","timer","timerType","localisedMinutes","options","timerPlaceholderMin","timerPlaceholder","formatTime","timeToParse","MILLIS_PER_MINUTE","display","millisToString","removeLeadingZero","formatDisplayWithMinutes","removeSeconds"],"mappings":"6cAUO,SAASA,EACdC,EACAC,EACAC,EACAC,EACAC,EACAC,EACe,CACf,GAAI,CAACD,EACI,OAAA,KAGT,MAAME,EAAgBD,GAAqBJ,EAE3C,GAAIC,EACE,OAAAE,EAAY,UAAY,KACnB,KAEFJ,EAAY,KAAK,IAAII,EAAY,QAAS,CAAC,EAAIA,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