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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/dist/Actions-BtMRNMuv.cjs +1 -0
  2. package/dist/Actions-DfeKDy3k.js +178 -0
  3. package/dist/AddToLibraryView-BoCLtcWV.js +508 -0
  4. package/dist/AddToLibraryView-MpkcVgoR.cjs +1 -0
  5. package/dist/Badge-3MW5GacP.cjs +1 -0
  6. package/dist/Badge-Ddz0Il5v.js +326 -0
  7. package/dist/BadgeListContainer-CqwUuWKL.js +19 -0
  8. package/dist/BadgeListContainer-DLrBuDpU.cjs +1 -0
  9. package/dist/ButtonGroup-C-z2yWvb.cjs +1 -0
  10. package/dist/ButtonGroup-zaxEq7ZK.js +24 -0
  11. package/dist/Caret-Cpx0uvJ0.js +36 -0
  12. package/dist/Caret-Dgjy7YHO.cjs +1 -0
  13. package/dist/ChevronDownSvg-BI6xUNrZ.cjs +1 -0
  14. package/dist/ChevronDownSvg-BfijmId7.js +13 -0
  15. package/dist/ClassNameHelper-aJ0BDnVo.js +29 -0
  16. package/dist/ClassNameHelper-n4BHW-GR.cjs +1 -0
  17. package/dist/CloseSvg-2PKjla1T.js +13 -0
  18. package/dist/CloseSvg-B7rizkGp.cjs +1 -0
  19. package/dist/CurationStatus-BGjsO3l8.cjs +1 -0
  20. package/dist/CurationStatus-DZn3C9Qe.js +4 -0
  21. package/dist/DevErrorView-Bg1Ufy6-.js +79 -0
  22. package/dist/DevErrorView-CpXfV0V4.cjs +1 -0
  23. package/dist/DialogView-B5FEh3e8.cjs +1 -0
  24. package/dist/DialogView-RcNOylD7.js +22 -0
  25. package/dist/DownloadHelper-ChKHN-Le.cjs +1 -0
  26. package/dist/DownloadHelper-dL46n0Kq.js +32 -0
  27. package/dist/DownloadVideoView-CvDFi8HI.cjs +1 -0
  28. package/dist/DownloadVideoView-HSnwAYLp.js +32 -0
  29. package/dist/DragDropMoveWrapper-B_dy7ady.cjs +1 -0
  30. package/dist/DragDropMoveWrapper-TdzJqiqv.js +462 -0
  31. package/dist/ExchangeAddView-BRLjRe3p.js +63 -0
  32. package/dist/ExchangeAddView-CWfp5W52.cjs +1 -0
  33. package/dist/ExchangeFolderView-4ArEcQvn.js +159 -0
  34. package/dist/ExchangeFolderView-_ldS0uwf.cjs +1 -0
  35. package/dist/ExchangeMostRecentView-BMAosIXz.js +61 -0
  36. package/dist/ExchangeMostRecentView-s1iLfclz.cjs +1 -0
  37. package/dist/ExchangeNotFoundView-C_dtuc6J.cjs +1 -0
  38. package/dist/ExchangeNotFoundView-Cb-rmQH1.js +7 -0
  39. package/dist/ExchangePreviewView-hztBChIE.js +82 -0
  40. package/dist/ExchangePreviewView-kjDv-uqf.cjs +1 -0
  41. package/dist/ExchangeRequests-B3wRfv5Y.cjs +1 -0
  42. package/dist/ExchangeRequests-DV7BD3HZ.js +115 -0
  43. package/dist/ExchangeSearchBar-CNtU_swT.js +32 -0
  44. package/dist/ExchangeSearchBar-Ci1_Sc2S.cjs +1 -0
  45. package/dist/ExchangeSearchResultsView-CEueb9Li.js +1641 -0
  46. package/dist/ExchangeSearchResultsView-CGSIyjiV.cjs +2 -0
  47. package/dist/ExchangeSeriesView-BGBgwgMW.cjs +1 -0
  48. package/dist/ExchangeSeriesView-DMr_mCAH.js +143 -0
  49. package/dist/ExchangeSuggestEditView-B3P-nGFE.js +307 -0
  50. package/dist/ExchangeSuggestEditView-D1m5Z20N.cjs +1 -0
  51. package/dist/ExchangeTabs-CrA22PjN.js +46 -0
  52. package/dist/ExchangeTabs-KgrROs1d.cjs +1 -0
  53. package/dist/ExchangeUtils-BRDE3b9w.cjs +1 -0
  54. package/dist/ExchangeUtils-CCCrn5oQ.js +65 -0
  55. package/dist/ExchangeView-Cui4zZ4D.js +30 -0
  56. package/dist/ExchangeView-Dql8pHzi.cjs +1 -0
  57. package/dist/FormButtons-CDOsf9A-.cjs +1 -0
  58. package/dist/FormButtons-fQkvwYsy.js +20 -0
  59. package/dist/FormFeedback-5Dd3bMCl.js +7 -0
  60. package/dist/FormFeedback-BU7vSBqB.cjs +1 -0
  61. package/dist/FormField-Cb2l2GMO.cjs +5 -0
  62. package/dist/FormField-DYeERWxm.js +3353 -0
  63. package/dist/GiveFeedbackView-0tH6h1s3.js +5436 -0
  64. package/dist/GiveFeedbackView-DirGDc2a.cjs +7 -0
  65. package/dist/GroupSvg-BmwXO6yT.js +53 -0
  66. package/dist/GroupSvg-DVAq4iNX.cjs +1 -0
  67. package/dist/HardCoded-25AFj2sZ.js +51 -0
  68. package/dist/HardCoded-BbbeCQNt.cjs +1 -0
  69. package/dist/HttpErrorHandlers-CBhvfsvb.cjs +1 -0
  70. package/dist/HttpErrorHandlers-DKqNIMOg.js +76 -0
  71. package/dist/IconCircle-BVHFUBGt.cjs +1 -0
  72. package/dist/IconCircle-CxFLsbLY.js +26 -0
  73. package/dist/InstanceRegion-C7aJEkFV.cjs +1 -0
  74. package/dist/InstanceRegion-DQlzs4EK.js +4 -0
  75. package/dist/LazyImage-DBQklqeJ.js +163 -0
  76. package/dist/LazyImage-lv36coda.cjs +1 -0
  77. package/dist/LibraryRequests-BHAZPSUw.js +186 -0
  78. package/dist/LibraryRequests-DKCsJHbr.cjs +1 -0
  79. package/dist/LinkifyHelper-DPHYATPc.js +925 -0
  80. package/dist/LinkifyHelper-EOfbsqdi.cjs +4 -0
  81. package/dist/MasterTypeHelper-Y_SDsEUF.cjs +1 -0
  82. package/dist/MasterTypeHelper-uSKy6GZd.js +16 -0
  83. package/dist/MediaQueries-9caJ2eG6.js +4 -0
  84. package/dist/MediaQueries-CE9Kbs0e.cjs +1 -0
  85. package/dist/PartialLoadingHelper-D42uOdDd.cjs +1 -0
  86. package/dist/PartialLoadingHelper-DIas6hnM.js +29 -0
  87. package/dist/PermissionFilterOption-B-QrMVdA.js +4 -0
  88. package/dist/PermissionFilterOption-BIA__Q_O.cjs +1 -0
  89. package/dist/PillTabSelector-B5V2rqf0.js +64 -0
  90. package/dist/PillTabSelector-yR52s5ix.cjs +14 -0
  91. package/dist/PreviewVideoDetails-BQ0lYYbK.cjs +362 -0
  92. package/dist/PreviewVideoDetails-DJXB4vV3.js +68337 -0
  93. package/dist/ProgramType-DHk-SlRZ.cjs +1 -0
  94. package/dist/ProgramType-FpE5cuZV.js +60 -0
  95. package/dist/RatingRequests-BNPZAxXm.cjs +1 -0
  96. package/dist/RatingRequests-Dr3w3-z8.js +11 -0
  97. package/dist/RedirectView-BK8yU-PU.js +22 -0
  98. package/dist/RedirectView-OEJhJrvf.cjs +1 -0
  99. package/dist/RestrictionHelper-BSceJYz-.js +112 -0
  100. package/dist/RestrictionHelper-C5u_CmoL.cjs +1 -0
  101. package/dist/ScrollHelper-Dg7bDIH7.js +10 -0
  102. package/dist/ScrollHelper-ESsjtyv8.cjs +1 -0
  103. package/dist/SearchFilters-C_yEnumc.js +3046 -0
  104. package/dist/SearchFilters-D3fLjseM.cjs +1 -0
  105. package/dist/SearchSvg-BB6oXs1v.js +13 -0
  106. package/dist/SearchSvg-BU6G1Fs0.cjs +1 -0
  107. package/dist/SharedSearchHelper-BuVD-GvT.js +159 -0
  108. package/dist/SharedSearchHelper-D5GJJwW7.cjs +1 -0
  109. package/dist/TagItem-BBc3HmnI.cjs +1 -0
  110. package/dist/TagItem-BFnSikAz.js +1125 -0
  111. package/dist/TvAdFreeBadge-BDFn2ujd.js +11 -0
  112. package/dist/TvAdFreeBadge-X2iSf6B3.cjs +1 -0
  113. package/dist/TvAdFreeRequestView-CEAvozfO.js +46 -0
  114. package/dist/TvAdFreeRequestView-DgnMCKX4.cjs +1 -0
  115. package/dist/TvAddView-Bv12wfX7.js +276 -0
  116. package/dist/TvAddView-CA7Yappn.cjs +1 -0
  117. package/dist/TvAlreadyAddedView-C240rLQ7.js +56 -0
  118. package/dist/TvAlreadyAddedView-X4KElzJA.cjs +1 -0
  119. package/dist/TvBroadcastContentView-DizJHvTQ.js +52 -0
  120. package/dist/TvBroadcastContentView-g8i0Cy-k.cjs +1 -0
  121. package/dist/TvChannelBadge-B4a1wkQI.cjs +1 -0
  122. package/dist/TvChannelBadge-Doqs12s9.js +11 -0
  123. package/dist/TvChannelView-CSn0VleL.js +177 -0
  124. package/dist/TvChannelView-Ds_F3Mmp.cjs +1 -0
  125. package/dist/TvChannelsView-CM_T5E3j.js +171 -0
  126. package/dist/TvChannelsView-r3NO_BRv.cjs +1 -0
  127. package/dist/TvGuideView-B8vS-8lS.cjs +1 -0
  128. package/dist/TvGuideView-BLlQJiZ3.js +54 -0
  129. package/dist/TvHomeView-C_h4DZw_.cjs +1 -0
  130. package/dist/TvHomeView-CbNg8AyI.js +15 -0
  131. package/dist/TvPreviewView-DhXD3H__.js +114 -0
  132. package/dist/TvPreviewView-hGq7_Bzs.cjs +1 -0
  133. package/dist/TvProgramTimeBadge-BtQKNLz2.js +18 -0
  134. package/dist/TvProgramTimeBadge-DPJu73xG.cjs +1 -0
  135. package/dist/TvProgramsView-Ba9VPnEh.cjs +1 -0
  136. package/dist/TvProgramsView-DO4WnPJx.js +223 -0
  137. package/dist/TvRadioDownloadView-ByABG_YW.js +41 -0
  138. package/dist/TvRadioDownloadView-CitV60kZ.cjs +1 -0
  139. package/dist/TvRequestProgramView-CYc5nAEt.cjs +1 -0
  140. package/dist/TvRequestProgramView-Dm5Bra4d.js +267 -0
  141. package/dist/TvRequests-Bcy68aT5.js +227 -0
  142. package/dist/TvRequests-l_Xv-rcr.cjs +1 -0
  143. package/dist/TvSearchBar-5J6420z2.cjs +1 -0
  144. package/dist/TvSearchBar-KZqcg7G0.js +95 -0
  145. package/dist/TvSearchResultsView-BTONTtMg.cjs +1 -0
  146. package/dist/TvSearchResultsView-CMsq8ehS.js +212 -0
  147. package/dist/TvTabs-CrQVKuod.js +88 -0
  148. package/dist/TvTabs-JuCI2Ea7.cjs +1 -0
  149. package/dist/TypeHelper-Dt2Y9Wc4.js +14 -0
  150. package/dist/TypeHelper-Z2rqPzup.cjs +1 -0
  151. package/dist/UseAlerts-B2BbQeN3.js +39 -0
  152. package/dist/UseAlerts-pIg83NsO.cjs +1 -0
  153. package/dist/UseFetchAll-BaDVJFdj.cjs +1 -0
  154. package/dist/UseFetchAll-DYGA8s5a.js +147 -0
  155. package/dist/UseGetMediaQueryString-BLeJTZt2.cjs +1 -0
  156. package/dist/UseGetMediaQueryString-Dc_jP0rr.js +226 -0
  157. package/dist/UseHandleDialogError-BJHsOnKn.js +9 -0
  158. package/dist/UseHandleDialogError-PbyWsVaT.cjs +1 -0
  159. package/dist/UseHandleObjectError-CBFN1Ill.cjs +1 -0
  160. package/dist/UseHandleObjectError-DAhDbPEo.js +16 -0
  161. package/dist/UseHover-CLOLtbUV.cjs +1 -0
  162. package/dist/UseHover-Cc_d5rRf.js +85 -0
  163. package/dist/UseSelectAllPages-04737Rdu.cjs +1 -0
  164. package/dist/UseSelectAllPages-Cnk3MEAt.js +149 -0
  165. package/dist/VideoHelper-3AKe5Jyy.js +477 -0
  166. package/dist/VideoHelper-BQ7rWUw0.cjs +1 -0
  167. package/dist/VideoList-SNG1hmoL.cjs +49 -0
  168. package/dist/VideoList-s7lvSqSs.js +2622 -0
  169. package/dist/VideoRequests-CpDXl7E_.cjs +1 -0
  170. package/dist/VideoRequests-DlUeYLjl.js +225 -0
  171. package/dist/VideoSortSelect-3JfrvPfj.cjs +1 -0
  172. package/dist/VideoSortSelect-DS9Uvc-S.js +116 -0
  173. package/dist/VisibleOnSvg-BisjF586.cjs +1 -0
  174. package/dist/VisibleOnSvg-WDCQPPvV.js +33 -0
  175. package/dist/app-2U039aX_.js +67680 -0
  176. package/dist/app-DcIbciDa.cjs +454 -0
  177. package/dist/app.js +1 -0
  178. package/dist/en.json +1 -0
  179. package/dist/exchange.css +1 -0
  180. package/dist/getRegionInfo-B_h_jjAy.js +31 -0
  181. package/dist/getRegionInfo-Bs5JKG7h.cjs +1 -0
  182. package/dist/index-CGkY5YVS.cjs +1 -0
  183. package/dist/index-DUgR-v-j.js +885 -0
  184. package/dist/toLocalTime-Bt8Uy4Kq.js +15 -0
  185. package/dist/toLocalTime-DF9SIfIt.cjs +1 -0
  186. package/dist/useBreakpoints-37V489ap.js +66 -0
  187. package/dist/useBreakpoints-B-bcgx-L.cjs +1 -0
  188. package/dist/useGetExchangeActions-BwXrBSH-.cjs +1 -0
  189. package/dist/useGetExchangeActions-C8Y1FNSl.js +176 -0
  190. package/dist/useGetTvActions-CmEBdHbw.cjs +1 -0
  191. package/dist/useGetTvActions-DENrO3wZ.js +54 -0
  192. package/dist/useHandleRegionError-BNRrs6y8.cjs +1 -0
  193. package/dist/useHandleRegionError-BNxhNPKP.js +10 -0
  194. package/dist/usePreviewContext--ihfEi4P.js +14 -0
  195. package/dist/usePreviewContext-DjpFhe3I.cjs +1 -0
  196. package/dist/useSelectedRegion-7_2s4QQF.js +16 -0
  197. package/dist/useSelectedRegion-D3Xsu2Ut.cjs +1 -0
  198. package/dist/useVerifiedEmailRequiredErrorHandler-CSkvs-EW.cjs +1 -0
  199. package/dist/useVerifiedEmailRequiredErrorHandler-DFLs3cQc.js +57 -0
  200. package/package.json +12 -3
  201. package/typings/utils/imports.d.ts +1 -1
  202. package/vite-i18n-plugin.ts +113 -0
  203. package/vite.config.ts +59 -0
  204. package/dist/bundles.json +0 -4
  205. package/dist/css/137-exchange-8c1b8716b3.chunk.css +0 -25
  206. package/dist/css/212-exchange-d71527fc65.chunk.css +0 -1
  207. package/dist/css/226-exchange-9ab9f14b3c.chunk.css +0 -57
  208. package/dist/css/291-exchange-be9d9f0cdb.chunk.css +0 -11
  209. package/dist/css/298-exchange-78ece5c7c5.chunk.css +0 -37
  210. package/dist/css/332-exchange-e4754ae27a.chunk.css +0 -1
  211. package/dist/css/489-exchange-6ecb1e7adc.chunk.css +0 -85
  212. package/dist/css/494-exchange-02d7a0249c.chunk.css +0 -2
  213. package/dist/css/522-exchange-1387f35e92.chunk.css +0 -14
  214. package/dist/css/538-exchange-4cbfe56ba3.chunk.css +0 -1
  215. package/dist/css/589-exchange-fa098d9131.chunk.css +0 -11
  216. package/dist/css/611-exchange-cbf2bb5621.chunk.css +0 -5
  217. package/dist/css/669-exchange-e80e6c6649.chunk.css +0 -10
  218. package/dist/css/68-exchange-b5eaf8af44.chunk.css +0 -35
  219. package/dist/css/75-exchange-6d2304419c.chunk.css +0 -5
  220. package/dist/css/759-exchange-23bb5dd175.chunk.css +0 -8
  221. package/dist/css/858-exchange-06944bdfa4.chunk.css +0 -1
  222. package/dist/css/904-exchange-0eab318199.chunk.css +0 -40
  223. package/dist/css/95-exchange-4cbfe56ba3.chunk.css +0 -1
  224. package/dist/css/lite-exchange-ed6bd260c5.css +0 -14
  225. package/dist/languages/en.json +0 -1
  226. package/dist/scripts/117-e2b3dd7f3e-exchange.chunk.js +0 -1
  227. package/dist/scripts/127-4a3c8f9725-exchange.chunk.js +0 -1
  228. package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js +0 -2
  229. package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js.LICENSE.txt +0 -1
  230. package/dist/scripts/137-51b4dab452-exchange.chunk.js +0 -1
  231. package/dist/scripts/156-847dae6ace-exchange.chunk.js +0 -1
  232. package/dist/scripts/170-9db7c3b12e-exchange.chunk.js +0 -1
  233. package/dist/scripts/173-3668db114a-exchange.chunk.js +0 -1
  234. package/dist/scripts/212-6ed71b2797-exchange.chunk.js +0 -1
  235. package/dist/scripts/226-889bef8e6c-exchange.chunk.js +0 -1
  236. package/dist/scripts/267-7daf64f8a1-exchange.chunk.js +0 -1
  237. package/dist/scripts/291-7e85a6e844-exchange.chunk.js +0 -1
  238. package/dist/scripts/298-ed8e8b8328-exchange.chunk.js +0 -1
  239. package/dist/scripts/312-69afcbbc39-exchange.chunk.js +0 -1
  240. package/dist/scripts/325-76baea117f-exchange.chunk.js +0 -1
  241. package/dist/scripts/332-08d48debc2-exchange.chunk.js +0 -1
  242. package/dist/scripts/414-567e121c75-exchange.chunk.js +0 -2
  243. package/dist/scripts/414-567e121c75-exchange.chunk.js.LICENSE.txt +0 -60
  244. package/dist/scripts/442-fcba36183d-exchange.chunk.js +0 -1
  245. package/dist/scripts/455-ceeb969c54-exchange.chunk.js +0 -1
  246. package/dist/scripts/484-08c82c5a88-exchange.chunk.js +0 -1
  247. package/dist/scripts/489-be60742399-exchange.chunk.js +0 -2
  248. package/dist/scripts/489-be60742399-exchange.chunk.js.LICENSE.txt +0 -1
  249. package/dist/scripts/494-abba46b945-exchange.chunk.js +0 -2
  250. package/dist/scripts/494-abba46b945-exchange.chunk.js.LICENSE.txt +0 -1
  251. package/dist/scripts/507-b6e119c8e2-exchange.chunk.js +0 -1
  252. package/dist/scripts/522-ce819dee18-exchange.chunk.js +0 -2
  253. package/dist/scripts/522-ce819dee18-exchange.chunk.js.LICENSE.txt +0 -1
  254. package/dist/scripts/536-b915864d5f-exchange.chunk.js +0 -1
  255. package/dist/scripts/538-ccc01a623f-exchange.chunk.js +0 -2
  256. package/dist/scripts/538-ccc01a623f-exchange.chunk.js.LICENSE.txt +0 -1
  257. package/dist/scripts/558-1bdbbc1f64-exchange.chunk.js +0 -1
  258. package/dist/scripts/589-17d73ab116-exchange.chunk.js +0 -1
  259. package/dist/scripts/601-a3c22b0a9f-exchange.chunk.js +0 -1
  260. package/dist/scripts/611-d8bd3e98dc-exchange.chunk.js +0 -1
  261. package/dist/scripts/619-1abac6cb1d-exchange.chunk.js +0 -1
  262. package/dist/scripts/648-485af12c37-exchange.chunk.js +0 -1
  263. package/dist/scripts/659-d08f206e1d-exchange.chunk.js +0 -1
  264. package/dist/scripts/669-a49a0838ff-exchange.chunk.js +0 -1
  265. package/dist/scripts/68-34b81dae8c-exchange.chunk.js +0 -1
  266. package/dist/scripts/725-9ddf1084b6-exchange.chunk.js +0 -1
  267. package/dist/scripts/726-868a877381-exchange.chunk.js +0 -1
  268. package/dist/scripts/75-9780e4300e-exchange.chunk.js +0 -1
  269. package/dist/scripts/759-f1a9db4868-exchange.chunk.js +0 -1
  270. package/dist/scripts/782-2c340d8404-exchange.chunk.js +0 -1
  271. package/dist/scripts/831-8808647fc7-exchange.chunk.js +0 -1
  272. package/dist/scripts/851-61f77ce4aa-exchange.chunk.js +0 -2
  273. package/dist/scripts/851-61f77ce4aa-exchange.chunk.js.LICENSE.txt +0 -1
  274. package/dist/scripts/858-70085ed3b1-exchange.chunk.js +0 -1
  275. package/dist/scripts/866-14ce8a3a4d-exchange.chunk.js +0 -1
  276. package/dist/scripts/87-d569a1463e-exchange.chunk.js +0 -1
  277. package/dist/scripts/877-5b357aeb63-exchange.chunk.js +0 -1
  278. package/dist/scripts/904-bd1dfd39e0-exchange.chunk.js +0 -1
  279. package/dist/scripts/925-f70ee1c7f9-exchange.chunk.js +0 -1
  280. package/dist/scripts/937-2e1f1f330e-exchange.chunk.js +0 -1
  281. package/dist/scripts/95-841a847f54-exchange.chunk.js +0 -2
  282. package/dist/scripts/95-841a847f54-exchange.chunk.js.LICENSE.txt +0 -1
  283. package/dist/scripts/bundle-26830afcc1.min.js +0 -2
  284. package/dist/scripts/bundle-26830afcc1.min.js.LICENSE.txt +0 -108
@@ -0,0 +1,15 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,66 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1 @@
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;
@@ -0,0 +1,176 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,54 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,10 @@
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
+ };
@@ -0,0 +1,14 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,16 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1 @@
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;
@@ -0,0 +1,57 @@
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
+ };
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@clickview/exchange",
3
- "version": "0.43.0-rc.2",
3
+ "version": "0.43.1-dev.0",
4
4
  "description": "ClickView exchange",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "scripts": {
7
- "start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
8
- "build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js",
7
+ "start": "vite",
8
+ "build": "vite build",
9
+ "preview": "vite preview",
9
10
  "test": "jest",
10
11
  "test-watch": "jest --watch"
11
12
  },
@@ -17,6 +18,7 @@
17
18
  "publishable": true,
18
19
  "rebuildable": true
19
20
  },
21
+ "type": "module",
20
22
  "author": "Shale Kuzmanovski",
21
23
  "license": "ISC",
22
24
  "babel": {
@@ -29,5 +31,12 @@
29
31
  }
30
32
  ]
31
33
  ]
34
+ },
35
+ "devDependencies": {
36
+ "rollup": "4.37.0",
37
+ "vite": "6.2.2",
38
+ "@vitejs/plugin-react": "4.3.4",
39
+ "vite-tsconfig-paths": "5.1.4",
40
+ "sass-embedded": "1.77.5"
32
41
  }
33
42
  }
@@ -4,7 +4,7 @@
4
4
  * ts/js code.
5
5
  */
6
6
  declare module '*.scss';
7
- declare module '*.svg';
7
+ declare module 'virtual:i18n-data';
8
8
 
9
9
  declare module '*.json' {
10
10
  export const value: any;
@@ -0,0 +1,113 @@
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
+ }