@clickview/exchange 0.43.0 → 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-259130ac0e-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-8554f0ce7a-exchange.chunk.js +0 -2
  248. package/dist/scripts/489-8554f0ce7a-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-15f20b2d26.min.js +0 -2
  284. package/dist/scripts/bundle-15f20b2d26.min.js.LICENSE.txt +0 -108
@@ -0,0 +1,159 @@
1
+ import { j as e, ai as B, aj as c, ak as R, B as U, aa as q, ad as H, ac as M, ab as O, ah as G, a1 as f, l as z, al as D, am as Q, Q as Y, a3 as W, M as $, L as J } from "./app-2U039aX_.js";
2
+ import { A as K } from "./Actions-DfeKDy3k.js";
3
+ import { P as X, u as Z, F as _ } from "./UseFetchAll-DYGA8s5a.js";
4
+ import { V as ee, u as se, a as te } from "./VideoList-s7lvSqSs.js";
5
+ import { h as ae } from "./HttpErrorHandlers-DKqNIMOg.js";
6
+ import { L as j } from "./LibraryRequests-BHAZPSUw.js";
7
+ import { u as re } from "./UseAlerts-B2BbQeN3.js";
8
+ import { u as oe, a as ne } from "./useGetExchangeActions-C8Y1FNSl.js";
9
+ import { u as ie } from "./UseHandleObjectError-DAhDbPEo.js";
10
+ import { P as b, I as de, u as ce } from "./UseGetMediaQueryString-Dc_jP0rr.js";
11
+ import { E as le } from "./ExchangeSearchBar-CNtU_swT.js";
12
+ import { E as me } from "./ExchangeTabs-CrA22PjN.js";
13
+ import { E as ue } from "./ExchangeRequests-DV7BD3HZ.js";
14
+ import { a as he, u as xe, g as p } from "./ExchangeUtils-CCCrn5oQ.js";
15
+ import { B as ge, V as fe, P as je } from "./VideoSortSelect-DS9Uvc-S.js";
16
+ const pe = "exchange.exchangeFolderEmptyState";
17
+ function be() {
18
+ return /* @__PURE__ */ e.jsx(B.Provider, { value: pe, children: /* @__PURE__ */ e.jsxs(c, { children: [
19
+ /* @__PURE__ */ e.jsx(c.Image, { src: R.EmptyStates.FOLDER }),
20
+ /* @__PURE__ */ e.jsx(c.Heading, { children: /* @__PURE__ */ e.jsx(U, { phrase: "heading" }) })
21
+ ] }) });
22
+ }
23
+ function Fe(s) {
24
+ var r;
25
+ return !((r = s.videos) != null && r.length) && !s.isFetching ? /* @__PURE__ */ e.jsx(be, {}) : /* @__PURE__ */ e.jsxs("div", { children: [
26
+ /* @__PURE__ */ e.jsxs("div", { className: "d-flex justify-content-between align-items-center mb-2", children: [
27
+ /* @__PURE__ */ e.jsx(ge, { breadcrumbs: s.breadcrumbs }),
28
+ /* @__PURE__ */ e.jsx(
29
+ fe,
30
+ {
31
+ variant: "outline-dark",
32
+ type: s.sort,
33
+ getSortAppLink: s.getSortAppLink,
34
+ analyticsOptions: {
35
+ location: O.VideoListHeader,
36
+ entity: M.Video,
37
+ actionType: H.Sort,
38
+ workflowPhase: q.Complete
39
+ },
40
+ includeProductionYear: !0
41
+ }
42
+ )
43
+ ] }),
44
+ s.videos ? /* @__PURE__ */ e.jsx(
45
+ ee,
46
+ {
47
+ videos: s.videos,
48
+ getVideoAppLink: he,
49
+ presentationAudiences: null,
50
+ getPreviewQuestionsAppLink: () => null,
51
+ hasPermissions: () => !1,
52
+ hideVideoGuidance: !0,
53
+ commonVideoProps: s.commonVideoProps
54
+ }
55
+ ) : /* @__PURE__ */ e.jsx("div", { className: "mx-n2", children: /* @__PURE__ */ e.jsx(b, {}) }),
56
+ (s.hasMore || s.isFetching) && /* @__PURE__ */ e.jsx(
57
+ de,
58
+ {
59
+ isFetching: s.isFetching,
60
+ fetchNext: s.fetchNext,
61
+ nextCursor: s.nextCursor
62
+ }
63
+ )
64
+ ] });
65
+ }
66
+ function Se() {
67
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
68
+ /* @__PURE__ */ e.jsx(
69
+ "div",
70
+ {
71
+ className: "partial-loading-background h2 mb-3 w-25",
72
+ children: " "
73
+ }
74
+ ),
75
+ /* @__PURE__ */ e.jsx("div", { className: "mt-1 mb-2", children: /* @__PURE__ */ e.jsx(X, {}) }),
76
+ /* @__PURE__ */ e.jsxs("div", { className: "mb-3", children: [
77
+ /* @__PURE__ */ e.jsx("div", { className: "mb-3", children: /* @__PURE__ */ e.jsx(je, {}) }),
78
+ /* @__PURE__ */ e.jsx("div", { className: "mx-n2", children: /* @__PURE__ */ e.jsx(b, {}) })
79
+ ] })
80
+ ] });
81
+ }
82
+ const ve = "exchange.exchangeFolder", Le = J.encloseNamespace(ve);
83
+ function He(s) {
84
+ var x, g;
85
+ const r = G(), F = re(), i = f(W.currentUser()), a = f(j.folder(s.folderId)), { isUserCurator: S, openInCurationStudioLabel: v, getOpenInCurationStudioLink: L } = oe(), l = (t) => j.childFolders(a.data.id, t), E = (t) => r(l(t)), o = Z(a.data && l, E);
86
+ z({ title: (x = a.data) == null ? void 0 : x.name }), ie([a]);
87
+ const { commonVideoProps: N } = se(), d = !!i.data && D.getOrSetSortType(i.data.id, s.sort, Q.ProductionYear), {
88
+ items: n,
89
+ hasMore: P,
90
+ isFetching: V,
91
+ nextCursor: C
92
+ } = ce(m, u, A);
93
+ function m(t) {
94
+ return ue.folderVideos(s.folderId, d, t);
95
+ }
96
+ function u(t) {
97
+ return r(m(t));
98
+ }
99
+ function A(t, T) {
100
+ if (t === 1)
101
+ return ae(T);
102
+ F.error(Le("error"));
103
+ }
104
+ function y() {
105
+ return S ? [
106
+ {
107
+ label: v,
108
+ openInNewTab: !0,
109
+ href: L($.Category, a.data.id)
110
+ }
111
+ ] : [];
112
+ }
113
+ const k = xe(s.folderId, s.sort), I = ne("video-list"), h = ((g = o == null ? void 0 : o.items) == null ? void 0 : g.length) > 0, w = a.hasCompleted && i.hasCompleted && o.hasCompleted;
114
+ return /* @__PURE__ */ e.jsxs(te.Provider, { value: I, children: [
115
+ /* @__PURE__ */ e.jsxs("div", { className: "mb-3", children: [
116
+ /* @__PURE__ */ e.jsx(le, {}),
117
+ /* @__PURE__ */ e.jsx(me, { active: "categories" })
118
+ ] }),
119
+ w ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
120
+ a.data && /* @__PURE__ */ e.jsxs("div", { className: "d-flex mb-3", children: [
121
+ /* @__PURE__ */ e.jsx("h1", { className: "h2 me-1 mb-0", children: a.data.name }),
122
+ /* @__PURE__ */ e.jsx(
123
+ K,
124
+ {
125
+ actions: y(),
126
+ actionsDropdownClassName: "btn btn-sm",
127
+ dropdownToggleSvgSize: Y.Standard
128
+ }
129
+ )
130
+ ] }),
131
+ h && /* @__PURE__ */ e.jsx("div", { className: "mx-n2", children: /* @__PURE__ */ e.jsx(
132
+ _,
133
+ {
134
+ folders: o.items,
135
+ getAppLink: (t) => p(t, d),
136
+ expandFolders: !(n != null && n.length)
137
+ }
138
+ ) }),
139
+ /* @__PURE__ */ e.jsx("div", { className: "pb-3", children: /* @__PURE__ */ e.jsx(
140
+ Fe,
141
+ {
142
+ videos: n,
143
+ hasSubFolders: h,
144
+ hasMore: P,
145
+ isFetching: V,
146
+ fetchNext: u,
147
+ nextCursor: C,
148
+ sort: d,
149
+ breadcrumbs: k,
150
+ getSortAppLink: (t) => p(a.data, t),
151
+ commonVideoProps: N
152
+ }
153
+ ) })
154
+ ] }) : /* @__PURE__ */ e.jsx(Se, {})
155
+ ] });
156
+ }
157
+ export {
158
+ He as ExchangeFolderView
159
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),I=require("./Actions-BtMRNMuv.cjs"),u=require("./UseFetchAll-BaDVJFdj.cjs"),l=require("./VideoList-SNG1hmoL.cjs"),H=require("./HttpErrorHandlers-CBhvfsvb.cjs"),S=require("./LibraryRequests-DKCsJHbr.cjs"),B=require("./UseAlerts-pIg83NsO.cjs"),b=require("./useGetExchangeActions-BwXrBSH-.cjs"),O=require("./UseHandleObjectError-CBFN1Ill.cjs"),c=require("./UseGetMediaQueryString-BLeJTZt2.cjs"),G=require("./ExchangeSearchBar-Ci1_Sc2S.cjs"),M=require("./ExchangeTabs-KgrROs1d.cjs"),z=require("./ExchangeRequests-B3wRfv5Y.cjs"),a=require("./ExchangeUtils-BRDE3b9w.cjs"),m=require("./VideoSortSelect-3JfrvPfj.cjs"),D="exchange.exchangeFolderEmptyState";function Q(){return e.jsxRuntimeExports.jsx(e.LanguageNamespaceContext.Provider,{value:D,children:e.jsxRuntimeExports.jsxs(e.EmptyState,{children:[e.jsxRuntimeExports.jsx(e.EmptyState.Image,{src:e.ImageUrls.EmptyStates.FOLDER}),e.jsxRuntimeExports.jsx(e.EmptyState.Heading,{children:e.jsxRuntimeExports.jsx(e.Text,{phrase:"heading"})})]})})}function Y(t){var n;return!((n=t.videos)!=null&&n.length)&&!t.isFetching?e.jsxRuntimeExports.jsx(Q,{}):e.jsxRuntimeExports.jsxs("div",{children:[e.jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-2",children:[e.jsxRuntimeExports.jsx(m.Breadcrumbs,{breadcrumbs:t.breadcrumbs}),e.jsxRuntimeExports.jsx(m.VideoSortSelect,{variant:"outline-dark",type:t.sort,getSortAppLink:t.getSortAppLink,analyticsOptions:{location:e.LocationContext.VideoListHeader,entity:e.EntityType.Video,actionType:e.UserAction.Sort,workflowPhase:e.WorkflowPhase.Complete},includeProductionYear:!0})]}),t.videos?e.jsxRuntimeExports.jsx(l.VideoList,{videos:t.videos,getVideoAppLink:a.getVideoAppLink,presentationAudiences:null,getPreviewQuestionsAppLink:()=>null,hasPermissions:()=>!1,hideVideoGuidance:!0,commonVideoProps:t.commonVideoProps}):e.jsxRuntimeExports.jsx("div",{className:"mx-n2",children:e.jsxRuntimeExports.jsx(c.PartialVideoList,{})}),(t.hasMore||t.isFetching)&&e.jsxRuntimeExports.jsx(c.InfiniteScrollFooter,{isFetching:t.isFetching,fetchNext:t.fetchNext,nextCursor:t.nextCursor})]})}function W(){return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{className:"partial-loading-background h2 mb-3 w-25",children:" "}),e.jsxRuntimeExports.jsx("div",{className:"mt-1 mb-2",children:e.jsxRuntimeExports.jsx(u.PartialFolderList,{})}),e.jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[e.jsxRuntimeExports.jsx("div",{className:"mb-3",children:e.jsxRuntimeExports.jsx(m.PartialBreadcrumbs,{})}),e.jsxRuntimeExports.jsx("div",{className:"mx-n2",children:e.jsxRuntimeExports.jsx(c.PartialVideoList,{})})]})]})}const $="exchange.exchangeFolder",J=e.LanguageService.encloseNamespace($);function K(t){var E,R;const n=e.useGetFetch(),f=B.useAlerts(),x=e.useBasicFetch(e.UserRequests.currentUser()),r=e.useBasicFetch(S.LibraryRequests.folder(t.folderId)),{isUserCurator:F,openInCurationStudioLabel:v,getOpenInCurationStudioLink:L}=b.useCurationStudio(),h=s=>S.LibraryRequests.childFolders(r.data.id,s),V=s=>n(h(s)),i=u.useFetchAll(r.data&&h,V);e.useSetPageMetadata({title:(E=r.data)==null?void 0:E.name}),O.useHandleObjectError([r]);const{commonVideoProps:q}=l.useCommonVideoProps(),d=!!x.data&&e.VideoSortHelper.getOrSetSortType(x.data.id,t.sort,e.VideoSortType.ProductionYear),{items:o,hasMore:y,isFetching:A,nextCursor:N}=c.useInfiniteList(j,g,P);function j(s){return z.ExchangeRequests.folderVideos(t.folderId,d,s)}function g(s){return n(j(s))}function P(s,U){if(s===1)return H.handleHttpError(U);f.error(J("error"))}function C(){return F?[{label:v,openInNewTab:!0,href:L(e.MasterType.Category,r.data.id)}]:[]}const k=a.useGetFolderBreadcrumbs(t.folderId,t.sort),w=b.useGetExchangeActions("video-list"),p=((R=i==null?void 0:i.items)==null?void 0:R.length)>0,T=r.hasCompleted&&x.hasCompleted&&i.hasCompleted;return e.jsxRuntimeExports.jsxs(l.VideoActionsContext.Provider,{value:w,children:[e.jsxRuntimeExports.jsxs("div",{className:"mb-3",children:[e.jsxRuntimeExports.jsx(G.ExchangeSearchBar,{}),e.jsxRuntimeExports.jsx(M.ExchangeTabs,{active:"categories"})]}),T?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[r.data&&e.jsxRuntimeExports.jsxs("div",{className:"d-flex mb-3",children:[e.jsxRuntimeExports.jsx("h1",{className:"h2 me-1 mb-0",children:r.data.name}),e.jsxRuntimeExports.jsx(I.Actions,{actions:C(),actionsDropdownClassName:"btn btn-sm",dropdownToggleSvgSize:e.SvgContainerSize.Standard})]}),p&&e.jsxRuntimeExports.jsx("div",{className:"mx-n2",children:e.jsxRuntimeExports.jsx(u.FolderList,{folders:i.items,getAppLink:s=>a.getFolderAppLink(s,d),expandFolders:!(o!=null&&o.length)})}),e.jsxRuntimeExports.jsx("div",{className:"pb-3",children:e.jsxRuntimeExports.jsx(Y,{videos:o,hasSubFolders:p,hasMore:y,isFetching:A,fetchNext:g,nextCursor:N,sort:d,breadcrumbs:k,getSortAppLink:s=>a.getFolderAppLink(r.data,s),commonVideoProps:q})})]}):e.jsxRuntimeExports.jsx(W,{})]})}exports.ExchangeFolderView=K;
@@ -0,0 +1,61 @@
1
+ import { ah as g, a1 as V, l as E, L as j, j as e } from "./app-2U039aX_.js";
2
+ import { u as v, P, I as A } from "./UseGetMediaQueryString-Dc_jP0rr.js";
3
+ import { u as L, a as R, V as N } from "./VideoList-s7lvSqSs.js";
4
+ import { h as F } from "./HttpErrorHandlers-DKqNIMOg.js";
5
+ import { u as S } from "./UseAlerts-B2BbQeN3.js";
6
+ import { E as C } from "./ExchangeSearchBar-CNtU_swT.js";
7
+ import { E as G } from "./ExchangeTabs-CrA22PjN.js";
8
+ import { E as n } from "./ExchangeRequests-DV7BD3HZ.js";
9
+ import { a as I } from "./useGetExchangeActions-C8Y1FNSl.js";
10
+ import { a as M } from "./ExchangeUtils-CCCrn5oQ.js";
11
+ const b = "exchange.mostRecent", c = j.encloseNamespace(b);
12
+ function J() {
13
+ const m = g(), u = S(), t = V(n.exchange()), d = I("video-list"), { commonVideoProps: h } = L();
14
+ E({ title: c("title") });
15
+ const {
16
+ items: o,
17
+ hasMore: x,
18
+ isFetching: i,
19
+ nextCursor: l
20
+ } = v(t.data && r, a, p);
21
+ function r(s) {
22
+ return n.mostRecentVideos(t.data.id, s);
23
+ }
24
+ function a(s) {
25
+ return m(r(s));
26
+ }
27
+ function p(s, f) {
28
+ if (s === 1)
29
+ return F(f);
30
+ u.error(c("error"));
31
+ }
32
+ return /* @__PURE__ */ e.jsxs(R.Provider, { value: d, children: [
33
+ /* @__PURE__ */ e.jsxs("div", { className: "mb-2", children: [
34
+ /* @__PURE__ */ e.jsx(C, {}),
35
+ /* @__PURE__ */ e.jsx(G, { active: "most-recent" })
36
+ ] }),
37
+ o ? /* @__PURE__ */ e.jsx(
38
+ N,
39
+ {
40
+ videos: o,
41
+ getVideoAppLink: M,
42
+ presentationAudiences: null,
43
+ getPreviewQuestionsAppLink: () => null,
44
+ hasPermissions: () => !1,
45
+ hideVideoGuidance: !0,
46
+ commonVideoProps: h
47
+ }
48
+ ) : /* @__PURE__ */ e.jsx("div", { className: "mx-n2", children: /* @__PURE__ */ e.jsx(P, {}) }),
49
+ (x || i) && /* @__PURE__ */ e.jsx(
50
+ A,
51
+ {
52
+ isFetching: i,
53
+ fetchNext: a,
54
+ nextCursor: l
55
+ }
56
+ )
57
+ ] });
58
+ }
59
+ export {
60
+ J as ExchangeMostRecentView
61
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),s=require("./UseGetMediaQueryString-BLeJTZt2.cjs"),n=require("./VideoList-SNG1hmoL.cjs"),R=require("./HttpErrorHandlers-CBhvfsvb.cjs"),q=require("./UseAlerts-pIg83NsO.cjs"),V=require("./ExchangeSearchBar-Ci1_Sc2S.cjs"),f=require("./ExchangeTabs-KgrROs1d.cjs"),u=require("./ExchangeRequests-B3wRfv5Y.cjs"),v=require("./useGetExchangeActions-BwXrBSH-.cjs"),A=require("./ExchangeUtils-BRDE3b9w.cjs"),P="exchange.mostRecent",x=e.LanguageService.encloseNamespace(P);function L(){const d=e.useGetFetch(),h=q.useAlerts(),i=e.useBasicFetch(u.ExchangeRequests.exchange()),g=v.useGetExchangeActions("video-list"),{commonVideoProps:l}=n.useCommonVideoProps();e.useSetPageMetadata({title:x("title")});const{items:r,hasMore:m,isFetching:o,nextCursor:p}=s.useInfiniteList(i.data&&c,a,E);function c(t){return u.ExchangeRequests.mostRecentVideos(i.data.id,t)}function a(t){return d(c(t))}function E(t,j){if(t===1)return R.handleHttpError(j);h.error(x("error"))}return e.jsxRuntimeExports.jsxs(n.VideoActionsContext.Provider,{value:g,children:[e.jsxRuntimeExports.jsxs("div",{className:"mb-2",children:[e.jsxRuntimeExports.jsx(V.ExchangeSearchBar,{}),e.jsxRuntimeExports.jsx(f.ExchangeTabs,{active:"most-recent"})]}),r?e.jsxRuntimeExports.jsx(n.VideoList,{videos:r,getVideoAppLink:A.getVideoAppLink,presentationAudiences:null,getPreviewQuestionsAppLink:()=>null,hasPermissions:()=>!1,hideVideoGuidance:!0,commonVideoProps:l}):e.jsxRuntimeExports.jsx("div",{className:"mx-n2",children:e.jsxRuntimeExports.jsx(s.PartialVideoList,{})}),(m||o)&&e.jsxRuntimeExports.jsx(s.InfiniteScrollFooter,{isFetching:o,fetchNext:a,nextCursor:p})]})}exports.ExchangeMostRecentView=L;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs");function o({error:t}){return e.jsxRuntimeExports.jsx(e.ErrorView,{error:t})}exports.NotFoundView=o;
@@ -0,0 +1,7 @@
1
+ import { j as o, E as t } from "./app-2U039aX_.js";
2
+ function i({ error: r }) {
3
+ return /* @__PURE__ */ o.jsx(t, { error: r });
4
+ }
5
+ export {
6
+ i as NotFoundView
7
+ };
@@ -0,0 +1,82 @@
1
+ import { H as m, a1 as n, j as t, P as y, aA as h, A as w, a as f, b as g } from "./app-2U039aX_.js";
2
+ import { S as P } from "./ScrollHelper-Dg7bDIH7.js";
3
+ import { V as x } from "./VideoRequests-DlUeYLjl.js";
4
+ import { u as A } from "./UseHandleDialogError-BJHsOnKn.js";
5
+ import { C as j, P as C, a as E } from "./PreviewVideoDetails-DJXB4vV3.js";
6
+ import { a as V } from "./useGetExchangeActions-C8Y1FNSl.js";
7
+ import { u as S } from "./usePreviewContext--ihfEi4P.js";
8
+ var p = /* @__PURE__ */ ((e) => (e.Share = "share", e.MasterObject = "masterobject", e))(p || {});
9
+ const b = {
10
+ createViewKey(e, a, i, s, r) {
11
+ const o = {
12
+ mediaId: e.toString(),
13
+ mediaIdType: a
14
+ };
15
+ return i && (o.shareContextId = i), {
16
+ url: "/api/player/create-view-key",
17
+ key: `view:key:${e}:${a}`,
18
+ type: m.POST,
19
+ data: o,
20
+ /**
21
+ * A view key is valid for 8 hours, at that point we need refetch the view key
22
+ */
23
+ cacheDuration: 28800,
24
+ success: s,
25
+ error: r
26
+ };
27
+ }
28
+ };
29
+ function q(e) {
30
+ var d;
31
+ const a = n(x.video(e.videoId)), i = n(h.config()), s = n(
32
+ b.createViewKey(e.videoId, p.MasterObject)
33
+ ), r = V("preview");
34
+ A(a.statusCode);
35
+ const { previewContext: o, clearPreviewContext: u } = S(e.videoId, !0);
36
+ function v(k) {
37
+ }
38
+ function l() {
39
+ e.closePopup(), P.preventScrollTop(), w.trigger((o == null ? void 0 : o.appLink) ?? {
40
+ application: g.EXCHANGE,
41
+ action: f.Exchange.INDEX
42
+ }), u();
43
+ }
44
+ const c = a.data && i.hasCompleted && s.hasCompleted;
45
+ return /* @__PURE__ */ t.jsx(
46
+ y,
47
+ {
48
+ title: (d = a.data) == null ? void 0 : d.name,
49
+ hideTitle: !0,
50
+ closePopup: l,
51
+ showLoadingSpinner: !c,
52
+ size: "lg",
53
+ bodyClassName: "p-0 rounded-3 position-relative",
54
+ children: c && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
55
+ /* @__PURE__ */ t.jsx("div", { className: "overflow-hidden rounded-top-lg", children: /* @__PURE__ */ t.jsx(
56
+ j,
57
+ {
58
+ viewKey: s.data.viewKey,
59
+ playerApi: new URL(i.data.playerApiUrl),
60
+ autoplay: !0,
61
+ hotkeyElQuerySelector: "body",
62
+ onReady: v,
63
+ allowFullscreen: !1
64
+ }
65
+ ) }),
66
+ /* @__PURE__ */ t.jsx(
67
+ C,
68
+ {
69
+ video: a.data,
70
+ title: a.data.name,
71
+ description: a.data.description,
72
+ videoActions: r.getVideoActions(a.data)
73
+ }
74
+ ),
75
+ /* @__PURE__ */ t.jsx(E, { closePopup: l })
76
+ ] })
77
+ }
78
+ );
79
+ }
80
+ export {
81
+ q as ExchangePreviewView
82
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),x=require("./ScrollHelper-ESsjtyv8.cjs"),y=require("./VideoRequests-CpDXl7E_.cjs"),h=require("./UseHandleDialogError-PbyWsVaT.cjs"),a=require("./PreviewVideoDetails-BQ0lYYbK.cjs"),w=require("./useGetExchangeActions-BwXrBSH-.cjs"),g=require("./usePreviewContext-DjpFhe3I.cjs");var d=(t=>(t.Share="share",t.MasterObject="masterobject",t))(d||{});const E={createViewKey(t,i,r,s,n){const o={mediaId:t.toString(),mediaIdType:i};return r&&(o.shareContextId=r),{url:"/api/player/create-view-key",key:`view:key:${t}:${i}`,type:e.HttpVerbs.POST,data:o,cacheDuration:28800,success:s,error:n}}};function j(t){var u;const i=e.useBasicFetch(y.VideoRequests.video(t.videoId)),r=e.useBasicFetch(e.ConfigRequests.config()),s=e.useBasicFetch(E.createViewKey(t.videoId,d.MasterObject)),n=w.useGetExchangeActions("preview");h.useHandleDialogError(i.statusCode);const{previewContext:o,clearPreviewContext:p}=g.usePreviewContext(t.videoId,!0);function v(P){}function c(){t.closePopup(),x.ScrollHelper.preventScrollTop(),e.AppLinkHelper.trigger((o==null?void 0:o.appLink)??{application:e.AppChannels.EXCHANGE,action:e.Actions.Exchange.INDEX}),p()}const l=i.data&&r.hasCompleted&&s.hasCompleted;return e.jsxRuntimeExports.jsx(e.Popup,{title:(u=i.data)==null?void 0:u.name,hideTitle:!0,closePopup:c,showLoadingSpinner:!l,size:"lg",bodyClassName:"p-0 rounded-3 position-relative",children:l&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{className:"overflow-hidden rounded-top-lg",children:e.jsxRuntimeExports.jsx(a.ClickViewPlayer,{viewKey:s.data.viewKey,playerApi:new URL(r.data.playerApiUrl),autoplay:!0,hotkeyElQuerySelector:"body",onReady:v,allowFullscreen:!1})}),e.jsxRuntimeExports.jsx(a.PreviewVideoDetails,{video:i.data,title:i.data.name,description:i.data.description,videoActions:n.getVideoActions(i.data)}),e.jsxRuntimeExports.jsx(a.PlayerOverlayButtons,{closePopup:c})]})})}exports.ExchangePreviewView=j;
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./app-DcIbciDa.cjs"),V=require("./SharedSearchHelper-D5GJJwW7.cjs"),$=require("./PermissionFilterOption-BIA__Q_O.cjs"),k={exchange(){return{url:r.UrlHelper.urlBuilder("/api/domain/v2/me/libraries",{type:["exchange"],maxCategoryDepth:0}),key:"exchange",normalize:!1,formatData:e=>r.ArrayHelper.first(e).data}},categories(){return{url:r.UrlHelper.urlBuilder("/api/domain/v2/me/libraries",{type:["exchange"],maxCategoryDepth:2}),key:"exchange:categories",normalize:!1,formatData:e=>r.ArrayHelper.first(e).children}},folderVideos(e,t,i){const s=r.VideoSortHelper.getVideoSortParam(t),l=(s?`{${s},libraries.typeid:18}`:"")+r.SharedWithStatements.VIDEO_COLLECTION,o=r.UrlHelper.urlBuilder(`{gateway}/v1/objects/${e}/videos`,{cursor:i,query:l,permissionFilterOption:$.PermissionFilterOption.StripMetadata}),a=["folder","videos",e,i,t].filter(n=>!!n).join(":");return{url:o,key:a}},seriesVideos(e,t,i){const s=r.VideoSortHelper.getVideoSortParam(t),l=(s?`{${s},libraries.typeid:18}`:"")+r.SharedWithStatements.VIDEO_COLLECTION,o=r.UrlHelper.urlBuilder(`{gateway}/v1/collections/${e}/videos`,{query:l,cursor:i}),a=["series","videos",e,i,t].filter(n=>!!n).join(":");return{url:o,key:a}},mostRecentVideos(e,t){const i="{orderByDesc:timestamp}"+r.SharedWithStatements.VIDEO_COLLECTION,s=r.UrlHelper.urlBuilder(`{gateway}/v1/collections/${e}/videos`,{query:i,cursor:t}),l=["mostRecent","videos",e,t].filter(o=>!!o).join(":");return{url:s,key:l}},addVideo(e,t){return{key:"add:video:exchange",url:"{gateway}/v1/users/me/add-videos",data:{libraryId:e,objectId:t},type:r.HttpVerbs.POST,invalidationKeys:`videos:${t}:`}},suggestEdit(e,t){return{key:"suggest:an:edit",url:`{gateway}/v1/videos/${e}/suggest-edit`,data:t,type:r.HttpVerbs.POST}},search(e,t,i={},s){let l=`search:${e}:${t}:${s}`;l+=Object.keys(i).map(a=>i[a]).join(";");const o=Object.assign({},{index:t,cursor:s??void 0,query:e,...i});return{url:r.UrlHelper.urlBuilder("{gateway}/v3/search/exchange",o),key:l,formatData:a=>{var y,g;let n=a.totalResults;const u=((y=a==null?void 0:a.results)==null?void 0:y.filter(d=>{var p,h,m,v,S,f,x,O;if(d._index!=="series"&&d._index!=="playlist")return!0;if(d._index==="playlist"){const c=d;return(h=(p=c.clips)==null?void 0:p.data)!=null&&h.length||(v=(m=c.interactives)==null?void 0:m.data)!=null&&v.length||(f=(S=c.videos)==null?void 0:S.data)!=null&&f.length?!0:(n--,!1)}return((O=(x=d.videos)==null?void 0:x.data)==null?void 0:O.length)===0?(n--,!1):!0}))??[];a.results=u,a.totalResults=n;const H=(g=u[0])==null?void 0:g._score;return{...a,results:V.SharedSearchHelper.mapMaxScoreToSearchResults(u,H)}}}}};exports.ExchangeRequests=k;
@@ -0,0 +1,115 @@
1
+ import { U as n, H as $, al as k, c as D, S as y } from "./app-2U039aX_.js";
2
+ import { S as C } from "./SharedSearchHelper-BuVD-GvT.js";
3
+ import { P as b } from "./PermissionFilterOption-B-QrMVdA.js";
4
+ const j = {
5
+ exchange() {
6
+ return {
7
+ url: n.urlBuilder("/api/domain/v2/me/libraries", {
8
+ type: ["exchange"],
9
+ maxCategoryDepth: 0
10
+ }),
11
+ key: "exchange",
12
+ normalize: !1,
13
+ formatData: (e) => D.first(e).data
14
+ };
15
+ },
16
+ categories() {
17
+ return {
18
+ url: n.urlBuilder("/api/domain/v2/me/libraries", {
19
+ type: ["exchange"],
20
+ maxCategoryDepth: 2
21
+ }),
22
+ key: "exchange:categories",
23
+ normalize: !1,
24
+ formatData: (e) => D.first(e).children
25
+ };
26
+ },
27
+ folderVideos(e, t, a) {
28
+ const i = k.getVideoSortParam(t), s = (i ? `{${i},libraries.typeid:18}` : "") + y.VIDEO_COLLECTION, l = n.urlBuilder(`{gateway}/v1/objects/${e}/videos`, {
29
+ cursor: a,
30
+ query: s,
31
+ permissionFilterOption: b.StripMetadata
32
+ }), r = ["folder", "videos", e, a, t].filter((o) => !!o).join(":");
33
+ return {
34
+ url: l,
35
+ key: r
36
+ };
37
+ },
38
+ seriesVideos(e, t, a) {
39
+ const i = k.getVideoSortParam(t), s = (i ? `{${i},libraries.typeid:18}` : "") + y.VIDEO_COLLECTION, l = n.urlBuilder(`{gateway}/v1/collections/${e}/videos`, {
40
+ query: s,
41
+ cursor: a
42
+ }), r = ["series", "videos", e, a, t].filter((o) => !!o).join(":");
43
+ return {
44
+ url: l,
45
+ key: r
46
+ };
47
+ },
48
+ mostRecentVideos(e, t) {
49
+ const a = "{orderByDesc:timestamp}" + y.VIDEO_COLLECTION, i = n.urlBuilder(`{gateway}/v1/collections/${e}/videos`, {
50
+ query: a,
51
+ cursor: t
52
+ }), s = ["mostRecent", "videos", e, t].filter((l) => !!l).join(":");
53
+ return {
54
+ url: i,
55
+ key: s
56
+ };
57
+ },
58
+ addVideo(e, t) {
59
+ return {
60
+ key: "add:video:exchange",
61
+ url: "{gateway}/v1/users/me/add-videos",
62
+ data: {
63
+ libraryId: e,
64
+ objectId: t
65
+ },
66
+ type: $.POST,
67
+ invalidationKeys: `videos:${t}:`
68
+ };
69
+ },
70
+ suggestEdit(e, t) {
71
+ return {
72
+ key: "suggest:an:edit",
73
+ url: `{gateway}/v1/videos/${e}/suggest-edit`,
74
+ data: t,
75
+ type: $.POST
76
+ };
77
+ },
78
+ search(e, t, a = {}, i) {
79
+ let s = `search:${e}:${t}:${i}`;
80
+ s += Object.keys(a).map((r) => a[r]).join(";");
81
+ const l = Object.assign({}, {
82
+ index: t,
83
+ cursor: i ?? void 0,
84
+ query: e,
85
+ ...a
86
+ });
87
+ return {
88
+ url: n.urlBuilder("{gateway}/v3/search/exchange", l),
89
+ key: s,
90
+ formatData: (r) => {
91
+ var g, m;
92
+ let o = r.totalResults;
93
+ const u = ((g = r == null ? void 0 : r.results) == null ? void 0 : g.filter((d) => {
94
+ var p, v, h, f, x, O, S, V;
95
+ if (d._index !== "series" && d._index !== "playlist")
96
+ return !0;
97
+ if (d._index === "playlist") {
98
+ const c = d;
99
+ return (v = (p = c.clips) == null ? void 0 : p.data) != null && v.length || (f = (h = c.interactives) == null ? void 0 : h.data) != null && f.length || (O = (x = c.videos) == null ? void 0 : x.data) != null && O.length ? !0 : (o--, !1);
100
+ }
101
+ return ((V = (S = d.videos) == null ? void 0 : S.data) == null ? void 0 : V.length) === 0 ? (o--, !1) : !0;
102
+ })) ?? [];
103
+ r.results = u, r.totalResults = o;
104
+ const E = (m = u[0]) == null ? void 0 : m._score;
105
+ return {
106
+ ...r,
107
+ results: C.mapMaxScoreToSearchResults(u, E)
108
+ };
109
+ }
110
+ };
111
+ }
112
+ };
113
+ export {
114
+ j as E
115
+ };
@@ -0,0 +1,32 @@
1
+ import { R as o, j as e, G as c, A as i, a as h, b as p } from "./app-2U039aX_.js";
2
+ import { S as l } from "./SearchSvg-BB6oXs1v.js";
3
+ const u = "_searchBar_w17nz_1", m = {
4
+ searchBar: u
5
+ };
6
+ function x(s) {
7
+ const [r, t] = o.useState(s.query ?? "");
8
+ function n(a) {
9
+ a.preventDefault(), r && i.trigger({
10
+ application: p.EXCHANGE,
11
+ action: h.Exchange.SEARCH,
12
+ params: { query: r }
13
+ });
14
+ }
15
+ return /* @__PURE__ */ e.jsx("form", { onSubmit: n, children: /* @__PURE__ */ e.jsxs("div", { className: `${m.searchBar} d-flex border border-dark rounded align-items-center mb-3`, children: [
16
+ /* @__PURE__ */ e.jsx(c, { svg: l }),
17
+ /* @__PURE__ */ e.jsx(
18
+ "input",
19
+ {
20
+ type: "text",
21
+ className: "form-control h-100 w-100 py-0 border-0 shadow-none",
22
+ placeholder: "Search for resources in the Exchange Archive",
23
+ value: r,
24
+ onChange: (a) => t(a.target.value),
25
+ autoComplete: "off"
26
+ }
27
+ )
28
+ ] }) });
29
+ }
30
+ export {
31
+ x as E
32
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./app-DcIbciDa.cjs"),c=require("./SearchSvg-BU6G1Fs0.cjs"),o="_searchBar_w17nz_1",i={searchBar:o};function u(a){const[r,n]=e.React.useState(a.query??"");function s(t){t.preventDefault(),r&&e.AppLinkHelper.trigger({application:e.AppChannels.EXCHANGE,action:e.Actions.Exchange.SEARCH,params:{query:r}})}return e.jsxRuntimeExports.jsx("form",{onSubmit:s,children:e.jsxRuntimeExports.jsxs("div",{className:`${i.searchBar} d-flex border border-dark rounded align-items-center mb-3`,children:[e.jsxRuntimeExports.jsx(e.SvgContainer,{svg:c.SearchSvg}),e.jsxRuntimeExports.jsx("input",{type:"text",className:"form-control h-100 w-100 py-0 border-0 shadow-none",placeholder:"Search for resources in the Exchange Archive",value:r,onChange:t=>n(t.target.value),autoComplete:"off"})]})})}exports.ExchangeSearchBar=u;