@clickview/exchange 0.43.1-dev.0 → 0.43.1-dev.2

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 (284) hide show
  1. package/dist/bundles.json +4 -0
  2. package/dist/css/137-exchange-8c1b8716b3.chunk.css +25 -0
  3. package/dist/css/212-exchange-d71527fc65.chunk.css +1 -0
  4. package/dist/css/226-exchange-9ab9f14b3c.chunk.css +57 -0
  5. package/dist/css/291-exchange-be9d9f0cdb.chunk.css +11 -0
  6. package/dist/css/298-exchange-78ece5c7c5.chunk.css +37 -0
  7. package/dist/css/332-exchange-e4754ae27a.chunk.css +1 -0
  8. package/dist/css/489-exchange-6ecb1e7adc.chunk.css +85 -0
  9. package/dist/css/494-exchange-02d7a0249c.chunk.css +2 -0
  10. package/dist/css/522-exchange-1387f35e92.chunk.css +14 -0
  11. package/dist/css/538-exchange-4cbfe56ba3.chunk.css +1 -0
  12. package/dist/css/589-exchange-fa098d9131.chunk.css +11 -0
  13. package/dist/css/611-exchange-cbf2bb5621.chunk.css +5 -0
  14. package/dist/css/669-exchange-e80e6c6649.chunk.css +10 -0
  15. package/dist/css/68-exchange-b5eaf8af44.chunk.css +35 -0
  16. package/dist/css/75-exchange-6d2304419c.chunk.css +5 -0
  17. package/dist/css/759-exchange-23bb5dd175.chunk.css +8 -0
  18. package/dist/css/858-exchange-06944bdfa4.chunk.css +1 -0
  19. package/dist/css/904-exchange-0eab318199.chunk.css +40 -0
  20. package/dist/css/95-exchange-4cbfe56ba3.chunk.css +1 -0
  21. package/dist/css/lite-exchange-ed6bd260c5.css +14 -0
  22. package/dist/languages/en.json +1 -0
  23. package/dist/scripts/117-259130ac0e-exchange.chunk.js +1 -0
  24. package/dist/scripts/127-4a3c8f9725-exchange.chunk.js +1 -0
  25. package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js +2 -0
  26. package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js.LICENSE.txt +1 -0
  27. package/dist/scripts/137-51b4dab452-exchange.chunk.js +1 -0
  28. package/dist/scripts/156-7e4d78c20a-exchange.chunk.js +1 -0
  29. package/dist/scripts/170-9db7c3b12e-exchange.chunk.js +1 -0
  30. package/dist/scripts/173-3668db114a-exchange.chunk.js +1 -0
  31. package/dist/scripts/212-6ed71b2797-exchange.chunk.js +1 -0
  32. package/dist/scripts/226-889bef8e6c-exchange.chunk.js +1 -0
  33. package/dist/scripts/267-7daf64f8a1-exchange.chunk.js +1 -0
  34. package/dist/scripts/291-7e85a6e844-exchange.chunk.js +1 -0
  35. package/dist/scripts/298-ed8e8b8328-exchange.chunk.js +1 -0
  36. package/dist/scripts/312-69afcbbc39-exchange.chunk.js +1 -0
  37. package/dist/scripts/325-76baea117f-exchange.chunk.js +1 -0
  38. package/dist/scripts/332-08d48debc2-exchange.chunk.js +1 -0
  39. package/dist/scripts/414-567e121c75-exchange.chunk.js +2 -0
  40. package/dist/scripts/414-567e121c75-exchange.chunk.js.LICENSE.txt +60 -0
  41. package/dist/scripts/442-fcba36183d-exchange.chunk.js +1 -0
  42. package/dist/scripts/455-ceeb969c54-exchange.chunk.js +1 -0
  43. package/dist/scripts/484-08c82c5a88-exchange.chunk.js +1 -0
  44. package/dist/scripts/489-8b40fa92cc-exchange.chunk.js +2 -0
  45. package/dist/scripts/489-8b40fa92cc-exchange.chunk.js.LICENSE.txt +1 -0
  46. package/dist/scripts/494-abba46b945-exchange.chunk.js +2 -0
  47. package/dist/scripts/494-abba46b945-exchange.chunk.js.LICENSE.txt +1 -0
  48. package/dist/scripts/507-b6e119c8e2-exchange.chunk.js +1 -0
  49. package/dist/scripts/522-cb18547130-exchange.chunk.js +2 -0
  50. package/dist/scripts/522-cb18547130-exchange.chunk.js.LICENSE.txt +1 -0
  51. package/dist/scripts/536-b915864d5f-exchange.chunk.js +1 -0
  52. package/dist/scripts/538-ccc01a623f-exchange.chunk.js +2 -0
  53. package/dist/scripts/538-ccc01a623f-exchange.chunk.js.LICENSE.txt +1 -0
  54. package/dist/scripts/558-1bdbbc1f64-exchange.chunk.js +1 -0
  55. package/dist/scripts/589-17d73ab116-exchange.chunk.js +1 -0
  56. package/dist/scripts/601-a3c22b0a9f-exchange.chunk.js +1 -0
  57. package/dist/scripts/611-d8bd3e98dc-exchange.chunk.js +1 -0
  58. package/dist/scripts/619-1abac6cb1d-exchange.chunk.js +1 -0
  59. package/dist/scripts/648-485af12c37-exchange.chunk.js +1 -0
  60. package/dist/scripts/659-d08f206e1d-exchange.chunk.js +1 -0
  61. package/dist/scripts/669-a49a0838ff-exchange.chunk.js +1 -0
  62. package/dist/scripts/68-d0da8f3bd8-exchange.chunk.js +1 -0
  63. package/dist/scripts/725-9ddf1084b6-exchange.chunk.js +1 -0
  64. package/dist/scripts/726-868a877381-exchange.chunk.js +1 -0
  65. package/dist/scripts/75-9780e4300e-exchange.chunk.js +1 -0
  66. package/dist/scripts/759-f1a9db4868-exchange.chunk.js +1 -0
  67. package/dist/scripts/782-2c340d8404-exchange.chunk.js +1 -0
  68. package/dist/scripts/831-8808647fc7-exchange.chunk.js +1 -0
  69. package/dist/scripts/851-61f77ce4aa-exchange.chunk.js +2 -0
  70. package/dist/scripts/851-61f77ce4aa-exchange.chunk.js.LICENSE.txt +1 -0
  71. package/dist/scripts/858-70085ed3b1-exchange.chunk.js +1 -0
  72. package/dist/scripts/866-14ce8a3a4d-exchange.chunk.js +1 -0
  73. package/dist/scripts/87-d569a1463e-exchange.chunk.js +1 -0
  74. package/dist/scripts/877-5b357aeb63-exchange.chunk.js +1 -0
  75. package/dist/scripts/904-bd1dfd39e0-exchange.chunk.js +1 -0
  76. package/dist/scripts/925-f70ee1c7f9-exchange.chunk.js +1 -0
  77. package/dist/scripts/937-2e1f1f330e-exchange.chunk.js +1 -0
  78. package/dist/scripts/95-841a847f54-exchange.chunk.js +2 -0
  79. package/dist/scripts/95-841a847f54-exchange.chunk.js.LICENSE.txt +1 -0
  80. package/dist/scripts/bundle-7065b184e2.min.js +2 -0
  81. package/dist/scripts/bundle-7065b184e2.min.js.LICENSE.txt +108 -0
  82. package/package.json +3 -12
  83. package/typings/utils/imports.d.ts +1 -1
  84. package/dist/Actions-BtMRNMuv.cjs +0 -1
  85. package/dist/Actions-DfeKDy3k.js +0 -178
  86. package/dist/AddToLibraryView-BoCLtcWV.js +0 -508
  87. package/dist/AddToLibraryView-MpkcVgoR.cjs +0 -1
  88. package/dist/Badge-3MW5GacP.cjs +0 -1
  89. package/dist/Badge-Ddz0Il5v.js +0 -326
  90. package/dist/BadgeListContainer-CqwUuWKL.js +0 -19
  91. package/dist/BadgeListContainer-DLrBuDpU.cjs +0 -1
  92. package/dist/ButtonGroup-C-z2yWvb.cjs +0 -1
  93. package/dist/ButtonGroup-zaxEq7ZK.js +0 -24
  94. package/dist/Caret-Cpx0uvJ0.js +0 -36
  95. package/dist/Caret-Dgjy7YHO.cjs +0 -1
  96. package/dist/ChevronDownSvg-BI6xUNrZ.cjs +0 -1
  97. package/dist/ChevronDownSvg-BfijmId7.js +0 -13
  98. package/dist/ClassNameHelper-aJ0BDnVo.js +0 -29
  99. package/dist/ClassNameHelper-n4BHW-GR.cjs +0 -1
  100. package/dist/CloseSvg-2PKjla1T.js +0 -13
  101. package/dist/CloseSvg-B7rizkGp.cjs +0 -1
  102. package/dist/CurationStatus-BGjsO3l8.cjs +0 -1
  103. package/dist/CurationStatus-DZn3C9Qe.js +0 -4
  104. package/dist/DevErrorView-Bg1Ufy6-.js +0 -79
  105. package/dist/DevErrorView-CpXfV0V4.cjs +0 -1
  106. package/dist/DialogView-B5FEh3e8.cjs +0 -1
  107. package/dist/DialogView-RcNOylD7.js +0 -22
  108. package/dist/DownloadHelper-ChKHN-Le.cjs +0 -1
  109. package/dist/DownloadHelper-dL46n0Kq.js +0 -32
  110. package/dist/DownloadVideoView-CvDFi8HI.cjs +0 -1
  111. package/dist/DownloadVideoView-HSnwAYLp.js +0 -32
  112. package/dist/DragDropMoveWrapper-B_dy7ady.cjs +0 -1
  113. package/dist/DragDropMoveWrapper-TdzJqiqv.js +0 -462
  114. package/dist/ExchangeAddView-BRLjRe3p.js +0 -63
  115. package/dist/ExchangeAddView-CWfp5W52.cjs +0 -1
  116. package/dist/ExchangeFolderView-4ArEcQvn.js +0 -159
  117. package/dist/ExchangeFolderView-_ldS0uwf.cjs +0 -1
  118. package/dist/ExchangeMostRecentView-BMAosIXz.js +0 -61
  119. package/dist/ExchangeMostRecentView-s1iLfclz.cjs +0 -1
  120. package/dist/ExchangeNotFoundView-C_dtuc6J.cjs +0 -1
  121. package/dist/ExchangeNotFoundView-Cb-rmQH1.js +0 -7
  122. package/dist/ExchangePreviewView-hztBChIE.js +0 -82
  123. package/dist/ExchangePreviewView-kjDv-uqf.cjs +0 -1
  124. package/dist/ExchangeRequests-B3wRfv5Y.cjs +0 -1
  125. package/dist/ExchangeRequests-DV7BD3HZ.js +0 -115
  126. package/dist/ExchangeSearchBar-CNtU_swT.js +0 -32
  127. package/dist/ExchangeSearchBar-Ci1_Sc2S.cjs +0 -1
  128. package/dist/ExchangeSearchResultsView-CEueb9Li.js +0 -1641
  129. package/dist/ExchangeSearchResultsView-CGSIyjiV.cjs +0 -2
  130. package/dist/ExchangeSeriesView-BGBgwgMW.cjs +0 -1
  131. package/dist/ExchangeSeriesView-DMr_mCAH.js +0 -143
  132. package/dist/ExchangeSuggestEditView-B3P-nGFE.js +0 -307
  133. package/dist/ExchangeSuggestEditView-D1m5Z20N.cjs +0 -1
  134. package/dist/ExchangeTabs-CrA22PjN.js +0 -46
  135. package/dist/ExchangeTabs-KgrROs1d.cjs +0 -1
  136. package/dist/ExchangeUtils-BRDE3b9w.cjs +0 -1
  137. package/dist/ExchangeUtils-CCCrn5oQ.js +0 -65
  138. package/dist/ExchangeView-Cui4zZ4D.js +0 -30
  139. package/dist/ExchangeView-Dql8pHzi.cjs +0 -1
  140. package/dist/FormButtons-CDOsf9A-.cjs +0 -1
  141. package/dist/FormButtons-fQkvwYsy.js +0 -20
  142. package/dist/FormFeedback-5Dd3bMCl.js +0 -7
  143. package/dist/FormFeedback-BU7vSBqB.cjs +0 -1
  144. package/dist/FormField-Cb2l2GMO.cjs +0 -5
  145. package/dist/FormField-DYeERWxm.js +0 -3353
  146. package/dist/GiveFeedbackView-0tH6h1s3.js +0 -5436
  147. package/dist/GiveFeedbackView-DirGDc2a.cjs +0 -7
  148. package/dist/GroupSvg-BmwXO6yT.js +0 -53
  149. package/dist/GroupSvg-DVAq4iNX.cjs +0 -1
  150. package/dist/HardCoded-25AFj2sZ.js +0 -51
  151. package/dist/HardCoded-BbbeCQNt.cjs +0 -1
  152. package/dist/HttpErrorHandlers-CBhvfsvb.cjs +0 -1
  153. package/dist/HttpErrorHandlers-DKqNIMOg.js +0 -76
  154. package/dist/IconCircle-BVHFUBGt.cjs +0 -1
  155. package/dist/IconCircle-CxFLsbLY.js +0 -26
  156. package/dist/InstanceRegion-C7aJEkFV.cjs +0 -1
  157. package/dist/InstanceRegion-DQlzs4EK.js +0 -4
  158. package/dist/LazyImage-DBQklqeJ.js +0 -163
  159. package/dist/LazyImage-lv36coda.cjs +0 -1
  160. package/dist/LibraryRequests-BHAZPSUw.js +0 -186
  161. package/dist/LibraryRequests-DKCsJHbr.cjs +0 -1
  162. package/dist/LinkifyHelper-DPHYATPc.js +0 -925
  163. package/dist/LinkifyHelper-EOfbsqdi.cjs +0 -4
  164. package/dist/MasterTypeHelper-Y_SDsEUF.cjs +0 -1
  165. package/dist/MasterTypeHelper-uSKy6GZd.js +0 -16
  166. package/dist/MediaQueries-9caJ2eG6.js +0 -4
  167. package/dist/MediaQueries-CE9Kbs0e.cjs +0 -1
  168. package/dist/PartialLoadingHelper-D42uOdDd.cjs +0 -1
  169. package/dist/PartialLoadingHelper-DIas6hnM.js +0 -29
  170. package/dist/PermissionFilterOption-B-QrMVdA.js +0 -4
  171. package/dist/PermissionFilterOption-BIA__Q_O.cjs +0 -1
  172. package/dist/PillTabSelector-B5V2rqf0.js +0 -64
  173. package/dist/PillTabSelector-yR52s5ix.cjs +0 -14
  174. package/dist/PreviewVideoDetails-BQ0lYYbK.cjs +0 -362
  175. package/dist/PreviewVideoDetails-DJXB4vV3.js +0 -68337
  176. package/dist/ProgramType-DHk-SlRZ.cjs +0 -1
  177. package/dist/ProgramType-FpE5cuZV.js +0 -60
  178. package/dist/RatingRequests-BNPZAxXm.cjs +0 -1
  179. package/dist/RatingRequests-Dr3w3-z8.js +0 -11
  180. package/dist/RedirectView-BK8yU-PU.js +0 -22
  181. package/dist/RedirectView-OEJhJrvf.cjs +0 -1
  182. package/dist/RestrictionHelper-BSceJYz-.js +0 -112
  183. package/dist/RestrictionHelper-C5u_CmoL.cjs +0 -1
  184. package/dist/ScrollHelper-Dg7bDIH7.js +0 -10
  185. package/dist/ScrollHelper-ESsjtyv8.cjs +0 -1
  186. package/dist/SearchFilters-C_yEnumc.js +0 -3046
  187. package/dist/SearchFilters-D3fLjseM.cjs +0 -1
  188. package/dist/SearchSvg-BB6oXs1v.js +0 -13
  189. package/dist/SearchSvg-BU6G1Fs0.cjs +0 -1
  190. package/dist/SharedSearchHelper-BuVD-GvT.js +0 -159
  191. package/dist/SharedSearchHelper-D5GJJwW7.cjs +0 -1
  192. package/dist/TagItem-BBc3HmnI.cjs +0 -1
  193. package/dist/TagItem-BFnSikAz.js +0 -1125
  194. package/dist/TvAdFreeBadge-BDFn2ujd.js +0 -11
  195. package/dist/TvAdFreeBadge-X2iSf6B3.cjs +0 -1
  196. package/dist/TvAdFreeRequestView-CEAvozfO.js +0 -46
  197. package/dist/TvAdFreeRequestView-DgnMCKX4.cjs +0 -1
  198. package/dist/TvAddView-Bv12wfX7.js +0 -276
  199. package/dist/TvAddView-CA7Yappn.cjs +0 -1
  200. package/dist/TvAlreadyAddedView-C240rLQ7.js +0 -56
  201. package/dist/TvAlreadyAddedView-X4KElzJA.cjs +0 -1
  202. package/dist/TvBroadcastContentView-DizJHvTQ.js +0 -52
  203. package/dist/TvBroadcastContentView-g8i0Cy-k.cjs +0 -1
  204. package/dist/TvChannelBadge-B4a1wkQI.cjs +0 -1
  205. package/dist/TvChannelBadge-Doqs12s9.js +0 -11
  206. package/dist/TvChannelView-CSn0VleL.js +0 -177
  207. package/dist/TvChannelView-Ds_F3Mmp.cjs +0 -1
  208. package/dist/TvChannelsView-CM_T5E3j.js +0 -171
  209. package/dist/TvChannelsView-r3NO_BRv.cjs +0 -1
  210. package/dist/TvGuideView-B8vS-8lS.cjs +0 -1
  211. package/dist/TvGuideView-BLlQJiZ3.js +0 -54
  212. package/dist/TvHomeView-C_h4DZw_.cjs +0 -1
  213. package/dist/TvHomeView-CbNg8AyI.js +0 -15
  214. package/dist/TvPreviewView-DhXD3H__.js +0 -114
  215. package/dist/TvPreviewView-hGq7_Bzs.cjs +0 -1
  216. package/dist/TvProgramTimeBadge-BtQKNLz2.js +0 -18
  217. package/dist/TvProgramTimeBadge-DPJu73xG.cjs +0 -1
  218. package/dist/TvProgramsView-Ba9VPnEh.cjs +0 -1
  219. package/dist/TvProgramsView-DO4WnPJx.js +0 -223
  220. package/dist/TvRadioDownloadView-ByABG_YW.js +0 -41
  221. package/dist/TvRadioDownloadView-CitV60kZ.cjs +0 -1
  222. package/dist/TvRequestProgramView-CYc5nAEt.cjs +0 -1
  223. package/dist/TvRequestProgramView-Dm5Bra4d.js +0 -267
  224. package/dist/TvRequests-Bcy68aT5.js +0 -227
  225. package/dist/TvRequests-l_Xv-rcr.cjs +0 -1
  226. package/dist/TvSearchBar-5J6420z2.cjs +0 -1
  227. package/dist/TvSearchBar-KZqcg7G0.js +0 -95
  228. package/dist/TvSearchResultsView-BTONTtMg.cjs +0 -1
  229. package/dist/TvSearchResultsView-CMsq8ehS.js +0 -212
  230. package/dist/TvTabs-CrQVKuod.js +0 -88
  231. package/dist/TvTabs-JuCI2Ea7.cjs +0 -1
  232. package/dist/TypeHelper-Dt2Y9Wc4.js +0 -14
  233. package/dist/TypeHelper-Z2rqPzup.cjs +0 -1
  234. package/dist/UseAlerts-B2BbQeN3.js +0 -39
  235. package/dist/UseAlerts-pIg83NsO.cjs +0 -1
  236. package/dist/UseFetchAll-BaDVJFdj.cjs +0 -1
  237. package/dist/UseFetchAll-DYGA8s5a.js +0 -147
  238. package/dist/UseGetMediaQueryString-BLeJTZt2.cjs +0 -1
  239. package/dist/UseGetMediaQueryString-Dc_jP0rr.js +0 -226
  240. package/dist/UseHandleDialogError-BJHsOnKn.js +0 -9
  241. package/dist/UseHandleDialogError-PbyWsVaT.cjs +0 -1
  242. package/dist/UseHandleObjectError-CBFN1Ill.cjs +0 -1
  243. package/dist/UseHandleObjectError-DAhDbPEo.js +0 -16
  244. package/dist/UseHover-CLOLtbUV.cjs +0 -1
  245. package/dist/UseHover-Cc_d5rRf.js +0 -85
  246. package/dist/UseSelectAllPages-04737Rdu.cjs +0 -1
  247. package/dist/UseSelectAllPages-Cnk3MEAt.js +0 -149
  248. package/dist/VideoHelper-3AKe5Jyy.js +0 -477
  249. package/dist/VideoHelper-BQ7rWUw0.cjs +0 -1
  250. package/dist/VideoList-SNG1hmoL.cjs +0 -49
  251. package/dist/VideoList-s7lvSqSs.js +0 -2622
  252. package/dist/VideoRequests-CpDXl7E_.cjs +0 -1
  253. package/dist/VideoRequests-DlUeYLjl.js +0 -225
  254. package/dist/VideoSortSelect-3JfrvPfj.cjs +0 -1
  255. package/dist/VideoSortSelect-DS9Uvc-S.js +0 -116
  256. package/dist/VisibleOnSvg-BisjF586.cjs +0 -1
  257. package/dist/VisibleOnSvg-WDCQPPvV.js +0 -33
  258. package/dist/app-2U039aX_.js +0 -67680
  259. package/dist/app-DcIbciDa.cjs +0 -454
  260. package/dist/app.js +0 -1
  261. package/dist/en.json +0 -1
  262. package/dist/exchange.css +0 -1
  263. package/dist/getRegionInfo-B_h_jjAy.js +0 -31
  264. package/dist/getRegionInfo-Bs5JKG7h.cjs +0 -1
  265. package/dist/index-CGkY5YVS.cjs +0 -1
  266. package/dist/index-DUgR-v-j.js +0 -885
  267. package/dist/toLocalTime-Bt8Uy4Kq.js +0 -15
  268. package/dist/toLocalTime-DF9SIfIt.cjs +0 -1
  269. package/dist/useBreakpoints-37V489ap.js +0 -66
  270. package/dist/useBreakpoints-B-bcgx-L.cjs +0 -1
  271. package/dist/useGetExchangeActions-BwXrBSH-.cjs +0 -1
  272. package/dist/useGetExchangeActions-C8Y1FNSl.js +0 -176
  273. package/dist/useGetTvActions-CmEBdHbw.cjs +0 -1
  274. package/dist/useGetTvActions-DENrO3wZ.js +0 -54
  275. package/dist/useHandleRegionError-BNRrs6y8.cjs +0 -1
  276. package/dist/useHandleRegionError-BNxhNPKP.js +0 -10
  277. package/dist/usePreviewContext--ihfEi4P.js +0 -14
  278. package/dist/usePreviewContext-DjpFhe3I.cjs +0 -1
  279. package/dist/useSelectedRegion-7_2s4QQF.js +0 -16
  280. package/dist/useSelectedRegion-D3Xsu2Ut.cjs +0 -1
  281. package/dist/useVerifiedEmailRequiredErrorHandler-CSkvs-EW.cjs +0 -1
  282. package/dist/useVerifiedEmailRequiredErrorHandler-DFLs3cQc.js +0 -57
  283. package/vite-i18n-plugin.ts +0 -113
  284. package/vite.config.ts +0 -59
@@ -1,15 +0,0 @@
1
- import { ay as t } from "./app-2U039aX_.js";
2
- const i = {
3
- "AUS Eastern Standard Time": "Australia/Sydney",
4
- "W. Australia Standard Time": "Australia/Perth",
5
- "E. Australia Standard Time": "Australia/Brisbane",
6
- "Cen. Australia Standard Time": "Australia/Adelaide",
7
- "New Zealand Standard Time": "Pacific/Auckland",
8
- "GMT Standard Time": "Europe/London"
9
- };
10
- function d(a, e) {
11
- return t.getUtcTimeByTimezone(a, "YYYY-MM-DDTHH:mm:ss", i[e]);
12
- }
13
- export {
14
- d as t
15
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("./app-DcIbciDa.cjs"),i={"AUS Eastern Standard Time":"Australia/Sydney","W. Australia Standard Time":"Australia/Perth","E. Australia Standard Time":"Australia/Brisbane","Cen. Australia Standard Time":"Australia/Adelaide","New Zealand Standard Time":"Pacific/Auckland","GMT Standard Time":"Europe/London"};function r(a,e){return t.DateHelper.getUtcTimeByTimezone(a,"YYYY-MM-DDTHH:mm:ss",i[e])}exports.toLocalTime=r;
@@ -1,66 +0,0 @@
1
- import { X as b, ar as h, j as m, ao as k, ap as s, R as y, bp as d } from "./app-2U039aX_.js";
2
- import { L as C } from "./LazyImage-DBQklqeJ.js";
3
- const x = "_image_1himm_1", N = "_thumbnail_1himm_13", T = "_tallPoster_1himm_16", L = "_cover_1himm_19", v = "_banner_1himm_22", I = "_poster_1himm_25", j = "_pdf_1himm_28", P = "_link_1himm_31", i = {
4
- image: x,
5
- thumbnail: N,
6
- tallPoster: T,
7
- cover: L,
8
- banner: v,
9
- poster: I,
10
- pdf: j,
11
- link: P
12
- };
13
- function p(e) {
14
- let t = i.image, a = "";
15
- return e.imageType === s.Thumbnails && (a = `thumbnail ${i.thumbnail}`), e.imageType === s.TallPosters && (a = i.tallPoster), e.imageType === s.Covers && (a = i.cover), e.imageType === s.Banners && (a = i.banner), e.imageType === s.Posters && (a = i.poster), e.imageType === s.Pdf && (a = i.pdf), e.imageType === s.Link && (a = i.link), a && (t += ` ${a}`), e.className && (t += ` ${e.className}`), t;
16
- }
17
- function O(e) {
18
- const {
19
- data: t,
20
- imageOptions: a,
21
- appLink: r,
22
- preload: c,
23
- preventLoad: o,
24
- analyticsOptions: g,
25
- analyticsData: _,
26
- imageClassName: f,
27
- alt: u
28
- } = e;
29
- let n = "";
30
- typeof t == "string" ? n = t : b.isObject(t) && (n = t.url);
31
- const l = n && a ? h.createUrl(n, a) : n;
32
- return /* @__PURE__ */ m.jsx("div", { className: p(e), style: e.imageStyle, children: /* @__PURE__ */ m.jsxs(
33
- k,
34
- {
35
- appLink: r,
36
- analyticsData: _,
37
- analyticsOptions: g,
38
- onClick: e.onClick,
39
- preventFocus: e.preventFocus,
40
- className: e.appLinkClassName,
41
- children: [
42
- e.children,
43
- l && /* @__PURE__ */ m.jsx(
44
- C,
45
- {
46
- src: l,
47
- alt: u,
48
- forceLoad: c,
49
- preventLoad: o,
50
- extraClasses: f,
51
- errorFallbackImageSrc: e.errorFallbackImageSrc,
52
- errorFallbackImageClassName: e.errorFallbackImageClassName,
53
- onLoad: e.onLoad
54
- }
55
- )
56
- ]
57
- }
58
- ) });
59
- }
60
- function R() {
61
- return y.useContext(d);
62
- }
63
- export {
64
- O as B,
65
- R as u
66
- };
@@ -1 +0,0 @@
1
- "use strict";const a=require("./app-DcIbciDa.cjs"),y=require("./LazyImage-lv36coda.cjs"),f="_image_1himm_1",h="_thumbnail_1himm_13",k="_tallPoster_1himm_16",I="_cover_1himm_19",T="_banner_1himm_22",b="_poster_1himm_25",d="_pdf_1himm_28",x="_link_1himm_31",n={image:f,thumbnail:h,tallPoster:k,cover:I,banner:T,poster:b,pdf:d,link:x};function p(e){let i=n.image,t="";return e.imageType===a.ImageType.Thumbnails&&(t=`thumbnail ${n.thumbnail}`),e.imageType===a.ImageType.TallPosters&&(t=n.tallPoster),e.imageType===a.ImageType.Covers&&(t=n.cover),e.imageType===a.ImageType.Banners&&(t=n.banner),e.imageType===a.ImageType.Posters&&(t=n.poster),e.imageType===a.ImageType.Pdf&&(t=n.pdf),e.imageType===a.ImageType.Link&&(t=n.link),t&&(i+=` ${t}`),e.className&&(i+=` ${e.className}`),i}function C(e){const{data:i,imageOptions:t,appLink:l,preload:r,preventLoad:c,analyticsOptions:o,analyticsData:g,imageClassName:u,alt:_}=e;let s="";typeof i=="string"?s=i:a.ObjectHelper.isObject(i)&&(s=i.url);const m=s&&t?a.ImageHelper.createUrl(s,t):s;return a.jsxRuntimeExports.jsx("div",{className:p(e),style:e.imageStyle,children:a.jsxRuntimeExports.jsxs(a.AppLink,{appLink:l,analyticsData:g,analyticsOptions:o,onClick:e.onClick,preventFocus:e.preventFocus,className:e.appLinkClassName,children:[e.children,m&&a.jsxRuntimeExports.jsx(y.LazyImage,{src:m,alt:_,forceLoad:r,preventLoad:c,extraClasses:u,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName,onLoad:e.onLoad})]})})}function N(){return a.React.useContext(a.BreakpointsContext)}exports.BaseImage=C;exports.useBreakpoints=N;
@@ -1 +0,0 @@
1
- "use strict";const e=require("./app-DcIbciDa.cjs"),b=require("./LibraryRequests-DKCsJHbr.cjs"),m=require("./VideoHelper-BQ7rWUw0.cjs"),P=require("./BadgeListContainer-DLrBuDpU.cjs");var C=(t=>(t.Developer="Curator Devs",t.Content="Content",t.Curator="Curators",t.Support="Support",t.SalesSupport="Sales Support",t.GraphicDesigner="Graphic Designers",t.MetadataEditor="Metadata Editors",t.ResourcingManager="Resourcing Managers",t.SeniorContentManager="Senior Content Manager",t.Marketing="Marketing",t.Sales="Sales Representatives",t.StreamableCurator="Streamable Curator",t.SupportExtraPermission="Support - Extra Permissions",t.SeoManager="SEO Manager",t.ContentReviewer="Content Reviewer",t))(C||{});const T="shared.hooks",L=e.LanguageService.encloseNamespace(T);function U(t,o,s,p){const r=e.UrlHelper.safeUrlConcat(t,"manage"),c=e.UrlHelper.safeUrlConcat(t,"exchange"),n=(i,l,y)=>e.UrlHelper.safeUrlConcat(i,`${l}/${y}`);switch(o){case e.MasterType.Subject:return e.UrlHelper.safeUrlConcat(r,`subjects/presentations/${p}/classifications/${s}/edit`);case e.MasterType.Video:return n(r,"videos",s);case e.MasterType.Playlist:return n(r,"playlists",s);case e.MasterType.Series:return n(r,"series",s);case e.MasterType.Company:return n(r,"companies",s);case e.MasterType.Interactive:return n(r,"interactives",s);case e.MasterType.Clip:return n(r,"clips",s);case e.MasterType.Category:return n(c,"categories",s)}}function V(){return L("openInCurationStudio")}function w(){var c,n;const t=e.useBasicFetch(e.UserRequests.currentUser()),{data:o}=e.useBasicFetch(((c=t.data)==null?void 0:c.id)&&e.UserRequests.groups((n=t.data)==null?void 0:n.id)),s=e.useBasicFetch(e.ConfigRequests.config()),p=[C.Curator,C.Content,C.Developer];function r(){return p.some(i=>o==null?void 0:o.data.find(l=>l.name===i))}return{openInCurationStudioLabel:V(),isUserCurator:r(),getOpenInCurationStudioLink:(i,l,y)=>{var a;return U((a=s.data)==null?void 0:a.curatorUrl,i,l,y)}}}var E=(t=>(t[t.PlayPage=0]="PlayPage",t))(E||{});function M(t){const o=e.useGetResponseFunc(),s=e.useGetFetch();function p(n){return t.type!==0?null:m.VideoHelper.getVideoRequest(n.id,n.typeId,t.shareId)}function r(n){const i=p(n);o(i.key).shouldFetch&&s(i)}function c(n){const i=p(n);return o(i.key).hasCompleted}return{hydrate:r,isHydrated:c}}const I="exchange.exchangeHooks",d=e.LanguageService.encloseNamespace(I),R={lazyPlaceholder:!0};function D(t){const{hasPermissions:o}=e.usePermissions(),{isUserCurator:s,openInCurationStudioLabel:p,getOpenInCurationStudioLink:r}=w(),c=e.useBasicFetch(e.ConfigRequests.config()),n=e.useBasicFetch(o(e.PermissionName.ViewLibraries)&&b.LibraryRequests.libraryRequestLibraries()),{hydrate:i,isHydrated:l}=M({type:E.PlayPage});function y(a){var S,A,k;const u=t==="preview",h={id:a.id,name:a.name},g=u?e.LocationContext.VideoItemPreview:e.LocationContext.VideoListItem,f=[{order:10,label:u?d("openInClickView"):"",svg:e.NewWindowSvg,tooltip:u?"":d("openInClickView"),className:u?"btn btn-dark me-2":"",button:!0,href:c.data&&e.UrlHelper$1.safeUrlConcat(c.data.liteUrl,`/videos/${a.id}`),analyticsData:h,analyticsOptions:{actionType:e.UserAction.Click,entity:e.EntityType.Video,descriptor:e.VideoActionDescriptor.OpenInClickView,location:g,workflowPhase:e.WorkflowPhase.Start}},{order:20,label:u?d("addVideo"):null,svg:u?void 0:P.AddVideoSvg,tooltip:u?"":d("addVideo"),button:!u,appLink:{application:e.AppChannels.EXCHANGE,action:e.Actions.Exchange.ADD,args:[a.id]},analyticsData:h,analyticsOptions:{actionType:e.UserAction.Click,entity:e.EntityType.Video,descriptor:e.VideoActionDescriptor.AddToWorkspace,location:g,workflowPhase:e.WorkflowPhase.Start}},{order:30,label:d("suggest"),className:"",appLink:{application:e.AppChannels.EXCHANGE,action:e.Actions.Exchange.SUGGEST_EDIT,args:[a.id],params:{location:g}},analyticsData:h,analyticsOptions:{actionType:e.UserAction.Click,entity:e.EntityType.Video,descriptor:e.VideoActionDescriptor.SuggestEdit,location:g,workflowPhase:e.WorkflowPhase.Start}}];return l(a)?((S=a._canAddToLibrary)!=null&&S.value&&((A=n.data)!=null&&A.length)&&f.push({order:25,label:d("addToLibrary"),className:"",appLink:{application:e.AppChannels.EXCHANGE,action:e.Actions.Exchange.ADD_TO_LIBRARY,args:[a.id]},analyticsData:h,analyticsOptions:{actionType:e.UserAction.Create,entity:e.EntityType.LibraryRequest,workflowPhase:e.WorkflowPhase.Start,location:g}}),(k=a._canDownload)!=null&&k.value&&f.push({order:40,label:d("download"),className:"",appLink:{application:e.AppChannels.EXCHANGE,action:e.Actions.Exchange.DOWNLOAD_VIDEO,args:[a.id]},analyticsData:h,analyticsOptions:{actionType:e.UserAction.Download,entity:e.EntityType.Video,workflowPhase:e.WorkflowPhase.Start,location:g}}),s&&f.push({order:50,label:p,openInNewTab:!0,href:r(e.MasterType.Video,a.id)}),f):[...f,R]}return{getVideoActions:y,fetchMoreActions:a=>i(a)}}exports.useCurationStudio=w;exports.useGetExchangeActions=D;
@@ -1,176 +0,0 @@
1
- import { a1 as b, a3 as O, aA as D, U as k, M as l, L as R, aE as T, ah as M, n as x, o as v, ab as U, aa as S, aF as P, ac as m, ad as C, aG as H, aH as q, a as w, b as E } from "./app-2U039aX_.js";
2
- import { L as _ } from "./LibraryRequests-BHAZPSUw.js";
3
- import { V as $ } from "./VideoHelper-3AKe5Jyy.js";
4
- import { A as F } from "./BadgeListContainer-CqwUuWKL.js";
5
- var L = /* @__PURE__ */ ((e) => (e.Developer = "Curator Devs", e.Content = "Content", e.Curator = "Curators", e.Support = "Support", e.SalesSupport = "Sales Support", e.GraphicDesigner = "Graphic Designers", e.MetadataEditor = "Metadata Editors", e.ResourcingManager = "Resourcing Managers", e.SeniorContentManager = "Senior Content Manager", e.Marketing = "Marketing", e.Sales = "Sales Representatives", e.StreamableCurator = "Streamable Curator", e.SupportExtraPermission = "Support - Extra Permissions", e.SeoManager = "SEO Manager", e.ContentReviewer = "Content Reviewer", e))(L || {});
6
- const W = "shared.hooks", X = R.encloseNamespace(W);
7
- function j(e, i, n, p) {
8
- const s = k.safeUrlConcat(e, "manage"), r = k.safeUrlConcat(e, "exchange"), a = (o, c, h) => k.safeUrlConcat(o, `${c}/${h}`);
9
- switch (i) {
10
- case l.Subject:
11
- return k.safeUrlConcat(s, `subjects/presentations/${p}/classifications/${n}/edit`);
12
- case l.Video:
13
- return a(s, "videos", n);
14
- case l.Playlist:
15
- return a(s, "playlists", n);
16
- case l.Series:
17
- return a(s, "series", n);
18
- case l.Company:
19
- return a(s, "companies", n);
20
- case l.Interactive:
21
- return a(s, "interactives", n);
22
- case l.Clip:
23
- return a(s, "clips", n);
24
- case l.Category:
25
- return a(r, "categories", n);
26
- }
27
- }
28
- function B() {
29
- return X("openInCurationStudio");
30
- }
31
- function z() {
32
- var r, a;
33
- const e = b(O.currentUser()), { data: i } = b(
34
- ((r = e.data) == null ? void 0 : r.id) && O.groups((a = e.data) == null ? void 0 : a.id)
35
- ), n = b(D.config()), p = [L.Curator, L.Content, L.Developer];
36
- function s() {
37
- return p.some((o) => i == null ? void 0 : i.data.find((c) => c.name === o));
38
- }
39
- return {
40
- openInCurationStudioLabel: B(),
41
- isUserCurator: s(),
42
- getOpenInCurationStudioLink: (o, c, h) => {
43
- var t;
44
- return j((t = n.data) == null ? void 0 : t.curatorUrl, o, c, h);
45
- }
46
- };
47
- }
48
- var N = /* @__PURE__ */ ((e) => (e[e.PlayPage = 0] = "PlayPage", e))(N || {});
49
- function Y(e) {
50
- const i = T(), n = M();
51
- function p(a) {
52
- return e.type !== 0 ? null : $.getVideoRequest(a.id, a.typeId, e.shareId);
53
- }
54
- function s(a) {
55
- const o = p(a);
56
- i(o.key).shouldFetch && n(o);
57
- }
58
- function r(a) {
59
- const o = p(a);
60
- return i(o.key).hasCompleted;
61
- }
62
- return { hydrate: s, isHydrated: r };
63
- }
64
- const J = "exchange.exchangeHooks", d = R.encloseNamespace(J), K = {
65
- lazyPlaceholder: !0
66
- };
67
- function ae(e) {
68
- const { hasPermissions: i } = x(), { isUserCurator: n, openInCurationStudioLabel: p, getOpenInCurationStudioLink: s } = z(), r = b(D.config()), a = b(
69
- i(v.ViewLibraries) && _.libraryRequestLibraries()
70
- ), { hydrate: o, isHydrated: c } = Y({
71
- type: N.PlayPage
72
- });
73
- function h(t) {
74
- var A, I, V;
75
- const u = e === "preview", f = { id: t.id, name: t.name }, g = u ? U.VideoItemPreview : U.VideoListItem, y = [{
76
- order: 10,
77
- label: u ? d("openInClickView") : "",
78
- svg: q,
79
- tooltip: u ? "" : d("openInClickView"),
80
- className: u ? "btn btn-dark me-2" : "",
81
- button: !0,
82
- href: r.data && H.safeUrlConcat(r.data.liteUrl, `/videos/${t.id}`),
83
- analyticsData: f,
84
- analyticsOptions: {
85
- actionType: C.Click,
86
- entity: m.Video,
87
- descriptor: P.OpenInClickView,
88
- location: g,
89
- workflowPhase: S.Start
90
- }
91
- }, {
92
- order: 20,
93
- label: u ? d("addVideo") : null,
94
- svg: u ? void 0 : F,
95
- tooltip: u ? "" : d("addVideo"),
96
- button: !u,
97
- appLink: {
98
- application: E.EXCHANGE,
99
- action: w.Exchange.ADD,
100
- args: [t.id]
101
- },
102
- analyticsData: f,
103
- analyticsOptions: {
104
- actionType: C.Click,
105
- entity: m.Video,
106
- descriptor: P.AddToWorkspace,
107
- location: g,
108
- workflowPhase: S.Start
109
- }
110
- }, {
111
- order: 30,
112
- label: d("suggest"),
113
- className: "",
114
- appLink: {
115
- application: E.EXCHANGE,
116
- action: w.Exchange.SUGGEST_EDIT,
117
- args: [t.id],
118
- params: { location: g }
119
- },
120
- analyticsData: f,
121
- analyticsOptions: {
122
- actionType: C.Click,
123
- entity: m.Video,
124
- descriptor: P.SuggestEdit,
125
- location: g,
126
- workflowPhase: S.Start
127
- }
128
- }];
129
- return c(t) ? ((A = t._canAddToLibrary) != null && A.value && ((I = a.data) != null && I.length) && y.push({
130
- order: 25,
131
- label: d("addToLibrary"),
132
- className: "",
133
- appLink: {
134
- application: E.EXCHANGE,
135
- action: w.Exchange.ADD_TO_LIBRARY,
136
- args: [t.id]
137
- },
138
- analyticsData: f,
139
- analyticsOptions: {
140
- actionType: C.Create,
141
- entity: m.LibraryRequest,
142
- workflowPhase: S.Start,
143
- location: g
144
- }
145
- }), (V = t._canDownload) != null && V.value && y.push({
146
- order: 40,
147
- label: d("download"),
148
- className: "",
149
- appLink: {
150
- application: E.EXCHANGE,
151
- action: w.Exchange.DOWNLOAD_VIDEO,
152
- args: [t.id]
153
- },
154
- analyticsData: f,
155
- analyticsOptions: {
156
- actionType: C.Download,
157
- entity: m.Video,
158
- workflowPhase: S.Start,
159
- location: g
160
- }
161
- }), n && y.push({
162
- order: 50,
163
- label: p,
164
- openInNewTab: !0,
165
- href: s(l.Video, t.id)
166
- }), y) : [...y, K];
167
- }
168
- return {
169
- getVideoActions: h,
170
- fetchMoreActions: (t) => o(t)
171
- };
172
- }
173
- export {
174
- ae as a,
175
- z as u
176
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("./app-DcIbciDa.cjs"),u=require("./BadgeListContainer-DLrBuDpU.cjs"),p="tv.addRequests",n=t.LanguageService.encloseNamespace(p);function v(d,c,o){const l=t.useBasicFetch(t.ConfigRequests.config());return function(i){var r;if(!c)return[];const e=d==="preview",s={id:i.id,name:i.title},a=e?t.LocationContext.VideoItemPreview:t.LocationContext.VideoListItem;return[{label:e?n("addVideo"):"",svg:e?void 0:u.AddVideoSvg,tooltip:e?"":n("addVideo"),className:e?"btn btn-dark me-2 text-nowrap":"btn",button:!0,onClick:()=>{t.AppLinkHelper.trigger({application:t.AppChannels.TV,action:t.Actions.Tv.ADD,args:[c.code,i.id],params:{currentTime:Math.floor(+(o==null?void 0:o.currentTime()))||void 0}})},analyticsData:s,analyticsOptions:{actionType:t.UserAction.Click,entity:t.EntityType.Video,descriptor:t.VideoActionDescriptor.AddToWorkspace,location:a,workflowPhase:t.WorkflowPhase.Start}},{label:n("editVideo"),href:t.UrlHelper.urlBuilder(`${(r=l.data)==null?void 0:r.cloudEditorUrl}/tv/${i.globalId}`,{product:t.ProductId.Exchange}),openInNewTab:!0,analyticsData:s,analyticsOptions:{actionType:t.UserAction.Click,entity:t.EntityType.Video,location:a,descriptor:t.VideoActionDescriptor.EditVideo}}]}}exports.useGetTvActions=v;
@@ -1,54 +0,0 @@
1
- import { a1 as A, aA as m, ab as d, aa as T, aF as r, ac as l, ad as p, L as V, U as b, A as g, a as f, b as h, a4 as k } from "./app-2U039aX_.js";
2
- import { A as w } from "./BadgeListContainer-CqwUuWKL.js";
3
- const C = "tv.addRequests", a = V.encloseNamespace(C);
4
- function I(u, i, o) {
5
- const v = A(m.config());
6
- return function(e) {
7
- var c;
8
- if (!i)
9
- return [];
10
- const t = u === "preview", n = { id: e.id, name: e.title }, s = t ? d.VideoItemPreview : d.VideoListItem;
11
- return [{
12
- label: t ? a("addVideo") : "",
13
- svg: t ? void 0 : w,
14
- tooltip: t ? "" : a("addVideo"),
15
- className: t ? "btn btn-dark me-2 text-nowrap" : "btn",
16
- button: !0,
17
- onClick: () => {
18
- g.trigger({
19
- application: h.TV,
20
- action: f.Tv.ADD,
21
- args: [i.code, e.id],
22
- params: {
23
- currentTime: Math.floor(+(o == null ? void 0 : o.currentTime())) || void 0
24
- }
25
- });
26
- },
27
- analyticsData: n,
28
- analyticsOptions: {
29
- actionType: p.Click,
30
- entity: l.Video,
31
- descriptor: r.AddToWorkspace,
32
- location: s,
33
- workflowPhase: T.Start
34
- }
35
- }, {
36
- label: a("editVideo"),
37
- href: b.urlBuilder(
38
- `${(c = v.data) == null ? void 0 : c.cloudEditorUrl}/tv/${e.globalId}`,
39
- { product: k.Exchange }
40
- ),
41
- openInNewTab: !0,
42
- analyticsData: n,
43
- analyticsOptions: {
44
- actionType: p.Click,
45
- entity: l.Video,
46
- location: s,
47
- descriptor: r.EditVideo
48
- }
49
- }];
50
- };
51
- }
52
- export {
53
- I as u
54
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("./app-DcIbciDa.cjs"),e=require("./HttpErrorHandlers-CBhvfsvb.cjs");function i(r,a){t.React.useEffect(()=>{r.hasCompleted&&(r.data||(r.hasError&&e.handleHttpError(r.statusCode),a?t.ErrorHelper.throw(new t.UnspecifiedDialogError):e.handleHttpError(t.HttpStatus.BadRequest)))},[r.hasCompleted,r.data])}exports.useHandleRegionError=i;
@@ -1,10 +0,0 @@
1
- import { R as e, q as o, bs as i, aR as f } from "./app-2U039aX_.js";
2
- import { h as a } from "./HttpErrorHandlers-DKqNIMOg.js";
3
- function s(t, r) {
4
- e.useEffect(() => {
5
- t.hasCompleted && (t.data || (t.hasError && a(t.statusCode), r ? o.throw(new i()) : a(f.BadRequest)));
6
- }, [t.hasCompleted, t.data]);
7
- }
8
- export {
9
- s as u
10
- };
@@ -1,14 +0,0 @@
1
- import { Y as r, aL as n } from "./app-2U039aX_.js";
2
- function v(e, t) {
3
- const [o, i] = r(
4
- `exchange:preview:${e}`,
5
- t ? n.getPreviousRoute() : void 0
6
- );
7
- return {
8
- previewContext: o,
9
- clearPreviewContext: () => i(void 0)
10
- };
11
- }
12
- export {
13
- v as u
14
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("./app-DcIbciDa.cjs");function n(t,i){const[o,r]=e.useViewModel(`exchange:preview:${t}`,i?e.ContextService.getPreviousRoute():void 0);return{previewContext:o,clearPreviewContext:()=>r(void 0)}}exports.usePreviewContext=n;
@@ -1,16 +0,0 @@
1
- import { a1 as g, u as d, Y as u, c4 as c } from "./app-2U039aX_.js";
2
- import { u as l } from "./UseHandleObjectError-DAhDbPEo.js";
3
- import { T as f } from "./TvRequests-Bcy68aT5.js";
4
- function w() {
5
- var t;
6
- const e = g(f.regions());
7
- l(e);
8
- const { tvRegion: n, isLoadingSettings: s } = d(null), [r, a] = u("tv:region", { region: null }, { storage: c.LocalStorage });
9
- function i(o) {
10
- a({ region: o.code });
11
- }
12
- return !((t = e.data) != null && t.length) || s ? { isLoading: !0, region: null, setRegion: i } : r.region && e.data.find((o) => o.code.toLowerCase() === r.region.toLowerCase()) ? { isLoading: !1, region: r.region.toUpperCase(), setRegion: i } : n && e.data.find((o) => o.code.toLowerCase() === n.toLowerCase()) ? { isLoading: !1, region: n.toUpperCase(), setRegion: i } : { isLoading: !1, region: e.data[0].code, setRegion: i };
13
- }
14
- export {
15
- w as u
16
- };
@@ -1 +0,0 @@
1
- "use strict";const i=require("./app-DcIbciDa.cjs"),u=require("./UseHandleObjectError-CBFN1Ill.cjs"),d=require("./TvRequests-l_Xv-rcr.cjs");function c(){var s;const e=i.useBasicFetch(d.TvRequests.regions());u.useHandleObjectError(e);const{tvRegion:r,isLoadingSettings:a}=i.useSettings(null),[t,g]=i.useViewModel("tv:region",{region:null},{storage:i.StorageType.LocalStorage});function n(o){g({region:o.code})}return!((s=e.data)!=null&&s.length)||a?{isLoading:!0,region:null,setRegion:n}:t.region&&e.data.find(o=>o.code.toLowerCase()===t.region.toLowerCase())?{isLoading:!1,region:t.region.toUpperCase(),setRegion:n}:r&&e.data.find(o=>o.code.toLowerCase()===r.toLowerCase())?{isLoading:!1,region:r.toUpperCase(),setRegion:n}:{isLoading:!1,region:e.data[0].code,setRegion:n}}exports.useSelectedRegion=c;
@@ -1 +0,0 @@
1
- "use strict";const e=require("./app-DcIbciDa.cjs"),l=require("./UseAlerts-pIg83NsO.cjs"),c="shared.verifiedEmailError";class h extends e.DialogError{constructor(r,t,s){super("VerifiedEmailRequiredError"),this.message=r,this.liteUrl=t,this.hasLite=s}get name(){return"VerifiedEmailRequiredError"}get dialogOptions(){const r=e.UrlHelper.safeUrlConcat(this.liteUrl,"settings/account");return{title:e.LanguageService.getPhrase(c,"heading"),text:this.hasLite?`${this.message} ${e.LanguageService.getPhrase(c,"visitSettings",{href:r})}`:this.message,buttons:[{text:e.LanguageService.getPhrase(c,"close"),className:"btn btn-dark",success:!0}]}}}const g=()=>{var a;const i=e.useBasicFetch(e.UserRequests.currentUser()),r=e.useBasicFetch(((a=i.data)==null?void 0:a.isAuthenticated)&&e.ProductRequests.userProducts()),t=!r.hasCompleted;return{hasProduct:n=>{var o;return t||r.hasError||!((o=r.data)!=null&&o.length)?!1:r.data.some(u=>u.id===n)},products:r,isLoadingProducts:t}};function f(){const i=l.useAlerts(),{hasProduct:r,isLoadingProducts:t}=g(),s=e.useBasicFetch(e.ConfigRequests.config());function a(n,o,u){var d;if(!n.responseJSON||((d=n.responseJSON)==null?void 0:d.type)!=="no-email"){i.error(o);return}e.ErrorHelper.throw(new h(u,s.data.liteUrl,r(e.ProductId.Primary)))}return{handleGenerateReportError:a,loading:!s.hasCompleted||t}}exports.useVerifiedEmailRequiredErrorHandler=f;
@@ -1,57 +0,0 @@
1
- import { D as h, U as g, L as u, a1 as d, a3 as m, a8 as f, aA as p, q as E, a4 as P } from "./app-2U039aX_.js";
2
- import { u as U } from "./UseAlerts-B2BbQeN3.js";
3
- const c = "shared.verifiedEmailError";
4
- class q extends h {
5
- constructor(e, r, s) {
6
- super("VerifiedEmailRequiredError"), this.message = e, this.liteUrl = r, this.hasLite = s;
7
- }
8
- // @ts-ignore
9
- get name() {
10
- return "VerifiedEmailRequiredError";
11
- }
12
- // @ts-ignore
13
- get dialogOptions() {
14
- const e = g.safeUrlConcat(this.liteUrl, "settings/account");
15
- return {
16
- title: u.getPhrase(c, "heading"),
17
- text: this.hasLite ? `${this.message} ${u.getPhrase(c, "visitSettings", { href: e })}` : this.message,
18
- buttons: [{
19
- text: u.getPhrase(c, "close"),
20
- className: "btn btn-dark",
21
- success: !0
22
- }]
23
- };
24
- }
25
- }
26
- const R = () => {
27
- var a;
28
- const t = d(m.currentUser()), e = d(((a = t.data) == null ? void 0 : a.isAuthenticated) && f.userProducts()), r = !e.hasCompleted;
29
- return {
30
- hasProduct: (i) => {
31
- var o;
32
- return r || e.hasError || !((o = e.data) != null && o.length) ? !1 : e.data.some((n) => n.id === i);
33
- },
34
- products: e,
35
- isLoadingProducts: r
36
- };
37
- };
38
- function S() {
39
- const t = U(), { hasProduct: e, isLoadingProducts: r } = R(), s = d(p.config());
40
- function a(i, o, n) {
41
- var l;
42
- if (!i.responseJSON || ((l = i.responseJSON) == null ? void 0 : l.type) !== "no-email") {
43
- t.error(o);
44
- return;
45
- }
46
- E.throw(
47
- new q(n, s.data.liteUrl, e(P.Primary))
48
- );
49
- }
50
- return {
51
- handleGenerateReportError: a,
52
- loading: !s.hasCompleted || r
53
- };
54
- }
55
- export {
56
- S as u
57
- };
@@ -1,113 +0,0 @@
1
- import glob from 'fast-glob';
2
- import { promises as fs } from 'fs';
3
- import path from 'path';
4
- import { NormalizedOutputOptions, OutputBundle } from 'rollup';
5
- import { PluginOption } from 'vite';
6
-
7
- const VIRTUAL_MODULE_ID = 'virtual:i18n-data';
8
- const RESOLVED_VIRTUAL_MODULE_ID = '\0' + VIRTUAL_MODULE_ID;
9
-
10
- interface LangFile {
11
- namespace: string;
12
- phrases: Record<string, string>;
13
- }
14
-
15
- interface MergedLangFile {
16
- [topLevelNamespace: string]: {
17
- [subNamespace: string]: {
18
- [key: string]: string;
19
- };
20
- }
21
- }
22
-
23
- export default function i18n(globPatterns: string[]): PluginOption {
24
- let masterLanguageObject: MergedLangFile;
25
- const filesWatched: Set<string> = new Set();
26
-
27
- return {
28
- name: 'vite-i18n-plugin',
29
- enforce: 'post',
30
- resolveId(id: string) {
31
- if (id === VIRTUAL_MODULE_ID) return RESOLVED_VIRTUAL_MODULE_ID;
32
- },
33
- async load(id: string) {
34
- if (id === RESOLVED_VIRTUAL_MODULE_ID) {
35
- return `export default ${JSON.stringify(masterLanguageObject)};`;
36
- }
37
- },
38
- async buildStart() {
39
- const fileGroups = await Promise.all(
40
- globPatterns.map(async pattern => {
41
- const files = await glob(pattern);
42
- return files.map(file => path.resolve(file));
43
- })
44
- );
45
-
46
- const languageFiles = fileGroups.flat();
47
- masterLanguageObject = await concat(languageFiles);
48
-
49
- languageFiles.forEach(file => {
50
- this.addWatchFile(file);
51
- filesWatched.add(file);
52
- });
53
- },
54
- async handleHotUpdate({ file, server }: any) {
55
- if (!filesWatched.has(file))
56
- return;
57
-
58
- masterLanguageObject = await concat(Array.from(filesWatched));
59
-
60
- const { moduleGraph } = server;
61
- const moduleToInvalidate = moduleGraph.getModuleById(RESOLVED_VIRTUAL_MODULE_ID);
62
- if (moduleToInvalidate) {
63
- moduleGraph.invalidateModule(moduleToInvalidate);
64
- }
65
-
66
- server.ws.send({
67
- type: 'full-reload',
68
- path: `/${VIRTUAL_MODULE_ID}`
69
- });
70
-
71
- return [moduleToInvalidate].filter(Boolean);
72
- },
73
- generateBundle(options: NormalizedOutputOptions, bundle: OutputBundle) {
74
- bundle['en.json'] = {
75
- type: 'asset',
76
- fileName: 'en.json',
77
- names: ['en.json'],
78
- name: undefined,
79
- source: JSON.stringify(masterLanguageObject),
80
- originalFileNames: ['en.json'],
81
- originalFileName: undefined,
82
- needsCodeReference: false
83
- };
84
- }
85
- };
86
- }
87
-
88
- async function concat(files: string[]) {
89
- const bundle: MergedLangFile = {};
90
-
91
- for (const file of files) {
92
- const content = await fs.readFile(file, 'utf8');
93
- const { namespace, phrases } = JSON.parse(content) as LangFile;
94
-
95
- const [ topLevelNamespace, subNamespace ] = namespace.split('.');
96
-
97
- if (!bundle[topLevelNamespace]) bundle[topLevelNamespace] = {};
98
- if (!bundle[topLevelNamespace][subNamespace]) bundle[topLevelNamespace][subNamespace] = {};
99
-
100
- for (const key in phrases) {
101
- if (bundle[topLevelNamespace][subNamespace][key]) {
102
- if (process.env.NODE_ENV === 'production') {
103
- throw new Error(`Duplicate key "${key}" in namespace "${namespace}"`);
104
- } else {
105
- console.warn(`Duplicate key "${key}" in namespace "${namespace}"`);
106
- }
107
- }
108
- bundle[topLevelNamespace][subNamespace][key] = phrases[key];
109
- }
110
- }
111
-
112
- return bundle;
113
- }
package/vite.config.ts DELETED
@@ -1,59 +0,0 @@
1
- import react from '@vitejs/plugin-react';
2
- import path from 'path';
3
- import { defineConfig } from 'vite';
4
- import tsconfigPaths from 'vite-tsconfig-paths';
5
-
6
- import i18n from './vite-i18n-plugin';
7
-
8
- export default defineConfig({
9
- plugins: [
10
- i18n([
11
- path.resolve(__dirname, '../../libs/common/src'),
12
- path.resolve(__dirname, '../../libs/shared/src'),
13
- path.resolve(__dirname, '../../libs/analytics/src'),
14
- path.resolve(__dirname, '../player/src'),
15
- path.resolve(__dirname, './src')
16
- ].map(p => `${p}/**/*.lang.json`)),
17
- react(),
18
- tsconfigPaths()
19
- ],
20
- build: {
21
- lib: {
22
- entry: './src/app.ts',
23
- formats: [ 'es', 'cjs' ]
24
- },
25
- outDir: 'dist',
26
- rollupOptions: {
27
- output: {
28
- entryFileNames: '[name].js'
29
- }
30
- }
31
- },
32
- css: {
33
- preprocessorOptions: {
34
- scss: {
35
- api: 'modern-compiler',
36
- additionalData: `
37
- @import "${path.resolve(__dirname, 'src/styles/theme/_variables.scss')}";
38
- @import "${path.resolve(__dirname, '../../libs/styles/src/computed/globals.scss')}";
39
- `
40
- }
41
- },
42
- preprocessorMaxWorkers: true
43
- },
44
-
45
- define: {
46
- __ENVIRONMENT__: JSON.stringify(process.env.NODE_ENV)
47
- },
48
-
49
- server: {
50
- port: 7000,
51
- open: false,
52
- strictPort: true,
53
- hmr: true
54
- },
55
-
56
- resolve: {
57
- extensions: [ '.ts', '.tsx', '.js' ]
58
- }
59
- });