@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.
- package/dist/Actions-BtMRNMuv.cjs +1 -0
- package/dist/Actions-DfeKDy3k.js +178 -0
- package/dist/AddToLibraryView-BoCLtcWV.js +508 -0
- package/dist/AddToLibraryView-MpkcVgoR.cjs +1 -0
- package/dist/Badge-3MW5GacP.cjs +1 -0
- package/dist/Badge-Ddz0Il5v.js +326 -0
- package/dist/BadgeListContainer-CqwUuWKL.js +19 -0
- package/dist/BadgeListContainer-DLrBuDpU.cjs +1 -0
- package/dist/ButtonGroup-C-z2yWvb.cjs +1 -0
- package/dist/ButtonGroup-zaxEq7ZK.js +24 -0
- package/dist/Caret-Cpx0uvJ0.js +36 -0
- package/dist/Caret-Dgjy7YHO.cjs +1 -0
- package/dist/ChevronDownSvg-BI6xUNrZ.cjs +1 -0
- package/dist/ChevronDownSvg-BfijmId7.js +13 -0
- package/dist/ClassNameHelper-aJ0BDnVo.js +29 -0
- package/dist/ClassNameHelper-n4BHW-GR.cjs +1 -0
- package/dist/CloseSvg-2PKjla1T.js +13 -0
- package/dist/CloseSvg-B7rizkGp.cjs +1 -0
- package/dist/CurationStatus-BGjsO3l8.cjs +1 -0
- package/dist/CurationStatus-DZn3C9Qe.js +4 -0
- package/dist/DevErrorView-Bg1Ufy6-.js +79 -0
- package/dist/DevErrorView-CpXfV0V4.cjs +1 -0
- package/dist/DialogView-B5FEh3e8.cjs +1 -0
- package/dist/DialogView-RcNOylD7.js +22 -0
- package/dist/DownloadHelper-ChKHN-Le.cjs +1 -0
- package/dist/DownloadHelper-dL46n0Kq.js +32 -0
- package/dist/DownloadVideoView-CvDFi8HI.cjs +1 -0
- package/dist/DownloadVideoView-HSnwAYLp.js +32 -0
- package/dist/DragDropMoveWrapper-B_dy7ady.cjs +1 -0
- package/dist/DragDropMoveWrapper-TdzJqiqv.js +462 -0
- package/dist/ExchangeAddView-BRLjRe3p.js +63 -0
- package/dist/ExchangeAddView-CWfp5W52.cjs +1 -0
- package/dist/ExchangeFolderView-4ArEcQvn.js +159 -0
- package/dist/ExchangeFolderView-_ldS0uwf.cjs +1 -0
- package/dist/ExchangeMostRecentView-BMAosIXz.js +61 -0
- package/dist/ExchangeMostRecentView-s1iLfclz.cjs +1 -0
- package/dist/ExchangeNotFoundView-C_dtuc6J.cjs +1 -0
- package/dist/ExchangeNotFoundView-Cb-rmQH1.js +7 -0
- package/dist/ExchangePreviewView-hztBChIE.js +82 -0
- package/dist/ExchangePreviewView-kjDv-uqf.cjs +1 -0
- package/dist/ExchangeRequests-B3wRfv5Y.cjs +1 -0
- package/dist/ExchangeRequests-DV7BD3HZ.js +115 -0
- package/dist/ExchangeSearchBar-CNtU_swT.js +32 -0
- package/dist/ExchangeSearchBar-Ci1_Sc2S.cjs +1 -0
- package/dist/ExchangeSearchResultsView-CEueb9Li.js +1641 -0
- package/dist/ExchangeSearchResultsView-CGSIyjiV.cjs +2 -0
- package/dist/ExchangeSeriesView-BGBgwgMW.cjs +1 -0
- package/dist/ExchangeSeriesView-DMr_mCAH.js +143 -0
- package/dist/ExchangeSuggestEditView-B3P-nGFE.js +307 -0
- package/dist/ExchangeSuggestEditView-D1m5Z20N.cjs +1 -0
- package/dist/ExchangeTabs-CrA22PjN.js +46 -0
- package/dist/ExchangeTabs-KgrROs1d.cjs +1 -0
- package/dist/ExchangeUtils-BRDE3b9w.cjs +1 -0
- package/dist/ExchangeUtils-CCCrn5oQ.js +65 -0
- package/dist/ExchangeView-Cui4zZ4D.js +30 -0
- package/dist/ExchangeView-Dql8pHzi.cjs +1 -0
- package/dist/FormButtons-CDOsf9A-.cjs +1 -0
- package/dist/FormButtons-fQkvwYsy.js +20 -0
- package/dist/FormFeedback-5Dd3bMCl.js +7 -0
- package/dist/FormFeedback-BU7vSBqB.cjs +1 -0
- package/dist/FormField-Cb2l2GMO.cjs +5 -0
- package/dist/FormField-DYeERWxm.js +3353 -0
- package/dist/GiveFeedbackView-0tH6h1s3.js +5436 -0
- package/dist/GiveFeedbackView-DirGDc2a.cjs +7 -0
- package/dist/GroupSvg-BmwXO6yT.js +53 -0
- package/dist/GroupSvg-DVAq4iNX.cjs +1 -0
- package/dist/HardCoded-25AFj2sZ.js +51 -0
- package/dist/HardCoded-BbbeCQNt.cjs +1 -0
- package/dist/HttpErrorHandlers-CBhvfsvb.cjs +1 -0
- package/dist/HttpErrorHandlers-DKqNIMOg.js +76 -0
- package/dist/IconCircle-BVHFUBGt.cjs +1 -0
- package/dist/IconCircle-CxFLsbLY.js +26 -0
- package/dist/InstanceRegion-C7aJEkFV.cjs +1 -0
- package/dist/InstanceRegion-DQlzs4EK.js +4 -0
- package/dist/LazyImage-DBQklqeJ.js +163 -0
- package/dist/LazyImage-lv36coda.cjs +1 -0
- package/dist/LibraryRequests-BHAZPSUw.js +186 -0
- package/dist/LibraryRequests-DKCsJHbr.cjs +1 -0
- package/dist/LinkifyHelper-DPHYATPc.js +925 -0
- package/dist/LinkifyHelper-EOfbsqdi.cjs +4 -0
- package/dist/MasterTypeHelper-Y_SDsEUF.cjs +1 -0
- package/dist/MasterTypeHelper-uSKy6GZd.js +16 -0
- package/dist/MediaQueries-9caJ2eG6.js +4 -0
- package/dist/MediaQueries-CE9Kbs0e.cjs +1 -0
- package/dist/PartialLoadingHelper-D42uOdDd.cjs +1 -0
- package/dist/PartialLoadingHelper-DIas6hnM.js +29 -0
- package/dist/PermissionFilterOption-B-QrMVdA.js +4 -0
- package/dist/PermissionFilterOption-BIA__Q_O.cjs +1 -0
- package/dist/PillTabSelector-B5V2rqf0.js +64 -0
- package/dist/PillTabSelector-yR52s5ix.cjs +14 -0
- package/dist/PreviewVideoDetails-BQ0lYYbK.cjs +362 -0
- package/dist/PreviewVideoDetails-DJXB4vV3.js +68337 -0
- package/dist/ProgramType-DHk-SlRZ.cjs +1 -0
- package/dist/ProgramType-FpE5cuZV.js +60 -0
- package/dist/RatingRequests-BNPZAxXm.cjs +1 -0
- package/dist/RatingRequests-Dr3w3-z8.js +11 -0
- package/dist/RedirectView-BK8yU-PU.js +22 -0
- package/dist/RedirectView-OEJhJrvf.cjs +1 -0
- package/dist/RestrictionHelper-BSceJYz-.js +112 -0
- package/dist/RestrictionHelper-C5u_CmoL.cjs +1 -0
- package/dist/ScrollHelper-Dg7bDIH7.js +10 -0
- package/dist/ScrollHelper-ESsjtyv8.cjs +1 -0
- package/dist/SearchFilters-C_yEnumc.js +3046 -0
- package/dist/SearchFilters-D3fLjseM.cjs +1 -0
- package/dist/SearchSvg-BB6oXs1v.js +13 -0
- package/dist/SearchSvg-BU6G1Fs0.cjs +1 -0
- package/dist/SharedSearchHelper-BuVD-GvT.js +159 -0
- package/dist/SharedSearchHelper-D5GJJwW7.cjs +1 -0
- package/dist/TagItem-BBc3HmnI.cjs +1 -0
- package/dist/TagItem-BFnSikAz.js +1125 -0
- package/dist/TvAdFreeBadge-BDFn2ujd.js +11 -0
- package/dist/TvAdFreeBadge-X2iSf6B3.cjs +1 -0
- package/dist/TvAdFreeRequestView-CEAvozfO.js +46 -0
- package/dist/TvAdFreeRequestView-DgnMCKX4.cjs +1 -0
- package/dist/TvAddView-Bv12wfX7.js +276 -0
- package/dist/TvAddView-CA7Yappn.cjs +1 -0
- package/dist/TvAlreadyAddedView-C240rLQ7.js +56 -0
- package/dist/TvAlreadyAddedView-X4KElzJA.cjs +1 -0
- package/dist/TvBroadcastContentView-DizJHvTQ.js +52 -0
- package/dist/TvBroadcastContentView-g8i0Cy-k.cjs +1 -0
- package/dist/TvChannelBadge-B4a1wkQI.cjs +1 -0
- package/dist/TvChannelBadge-Doqs12s9.js +11 -0
- package/dist/TvChannelView-CSn0VleL.js +177 -0
- package/dist/TvChannelView-Ds_F3Mmp.cjs +1 -0
- package/dist/TvChannelsView-CM_T5E3j.js +171 -0
- package/dist/TvChannelsView-r3NO_BRv.cjs +1 -0
- package/dist/TvGuideView-B8vS-8lS.cjs +1 -0
- package/dist/TvGuideView-BLlQJiZ3.js +54 -0
- package/dist/TvHomeView-C_h4DZw_.cjs +1 -0
- package/dist/TvHomeView-CbNg8AyI.js +15 -0
- package/dist/TvPreviewView-DhXD3H__.js +114 -0
- package/dist/TvPreviewView-hGq7_Bzs.cjs +1 -0
- package/dist/TvProgramTimeBadge-BtQKNLz2.js +18 -0
- package/dist/TvProgramTimeBadge-DPJu73xG.cjs +1 -0
- package/dist/TvProgramsView-Ba9VPnEh.cjs +1 -0
- package/dist/TvProgramsView-DO4WnPJx.js +223 -0
- package/dist/TvRadioDownloadView-ByABG_YW.js +41 -0
- package/dist/TvRadioDownloadView-CitV60kZ.cjs +1 -0
- package/dist/TvRequestProgramView-CYc5nAEt.cjs +1 -0
- package/dist/TvRequestProgramView-Dm5Bra4d.js +267 -0
- package/dist/TvRequests-Bcy68aT5.js +227 -0
- package/dist/TvRequests-l_Xv-rcr.cjs +1 -0
- package/dist/TvSearchBar-5J6420z2.cjs +1 -0
- package/dist/TvSearchBar-KZqcg7G0.js +95 -0
- package/dist/TvSearchResultsView-BTONTtMg.cjs +1 -0
- package/dist/TvSearchResultsView-CMsq8ehS.js +212 -0
- package/dist/TvTabs-CrQVKuod.js +88 -0
- package/dist/TvTabs-JuCI2Ea7.cjs +1 -0
- package/dist/TypeHelper-Dt2Y9Wc4.js +14 -0
- package/dist/TypeHelper-Z2rqPzup.cjs +1 -0
- package/dist/UseAlerts-B2BbQeN3.js +39 -0
- package/dist/UseAlerts-pIg83NsO.cjs +1 -0
- package/dist/UseFetchAll-BaDVJFdj.cjs +1 -0
- package/dist/UseFetchAll-DYGA8s5a.js +147 -0
- package/dist/UseGetMediaQueryString-BLeJTZt2.cjs +1 -0
- package/dist/UseGetMediaQueryString-Dc_jP0rr.js +226 -0
- package/dist/UseHandleDialogError-BJHsOnKn.js +9 -0
- package/dist/UseHandleDialogError-PbyWsVaT.cjs +1 -0
- package/dist/UseHandleObjectError-CBFN1Ill.cjs +1 -0
- package/dist/UseHandleObjectError-DAhDbPEo.js +16 -0
- package/dist/UseHover-CLOLtbUV.cjs +1 -0
- package/dist/UseHover-Cc_d5rRf.js +85 -0
- package/dist/UseSelectAllPages-04737Rdu.cjs +1 -0
- package/dist/UseSelectAllPages-Cnk3MEAt.js +149 -0
- package/dist/VideoHelper-3AKe5Jyy.js +477 -0
- package/dist/VideoHelper-BQ7rWUw0.cjs +1 -0
- package/dist/VideoList-SNG1hmoL.cjs +49 -0
- package/dist/VideoList-s7lvSqSs.js +2622 -0
- package/dist/VideoRequests-CpDXl7E_.cjs +1 -0
- package/dist/VideoRequests-DlUeYLjl.js +225 -0
- package/dist/VideoSortSelect-3JfrvPfj.cjs +1 -0
- package/dist/VideoSortSelect-DS9Uvc-S.js +116 -0
- package/dist/VisibleOnSvg-BisjF586.cjs +1 -0
- package/dist/VisibleOnSvg-WDCQPPvV.js +33 -0
- package/dist/app-2U039aX_.js +67680 -0
- package/dist/app-DcIbciDa.cjs +454 -0
- package/dist/app.js +1 -0
- package/dist/en.json +1 -0
- package/dist/exchange.css +1 -0
- package/dist/getRegionInfo-B_h_jjAy.js +31 -0
- package/dist/getRegionInfo-Bs5JKG7h.cjs +1 -0
- package/dist/index-CGkY5YVS.cjs +1 -0
- package/dist/index-DUgR-v-j.js +885 -0
- package/dist/toLocalTime-Bt8Uy4Kq.js +15 -0
- package/dist/toLocalTime-DF9SIfIt.cjs +1 -0
- package/dist/useBreakpoints-37V489ap.js +66 -0
- package/dist/useBreakpoints-B-bcgx-L.cjs +1 -0
- package/dist/useGetExchangeActions-BwXrBSH-.cjs +1 -0
- package/dist/useGetExchangeActions-C8Y1FNSl.js +176 -0
- package/dist/useGetTvActions-CmEBdHbw.cjs +1 -0
- package/dist/useGetTvActions-DENrO3wZ.js +54 -0
- package/dist/useHandleRegionError-BNRrs6y8.cjs +1 -0
- package/dist/useHandleRegionError-BNxhNPKP.js +10 -0
- package/dist/usePreviewContext--ihfEi4P.js +14 -0
- package/dist/usePreviewContext-DjpFhe3I.cjs +1 -0
- package/dist/useSelectedRegion-7_2s4QQF.js +16 -0
- package/dist/useSelectedRegion-D3Xsu2Ut.cjs +1 -0
- package/dist/useVerifiedEmailRequiredErrorHandler-CSkvs-EW.cjs +1 -0
- package/dist/useVerifiedEmailRequiredErrorHandler-DFLs3cQc.js +57 -0
- package/package.json +12 -3
- package/typings/utils/imports.d.ts +1 -1
- package/vite-i18n-plugin.ts +113 -0
- package/vite.config.ts +59 -0
- package/dist/bundles.json +0 -4
- package/dist/css/137-exchange-8c1b8716b3.chunk.css +0 -25
- package/dist/css/212-exchange-d71527fc65.chunk.css +0 -1
- package/dist/css/226-exchange-9ab9f14b3c.chunk.css +0 -57
- package/dist/css/291-exchange-be9d9f0cdb.chunk.css +0 -11
- package/dist/css/298-exchange-78ece5c7c5.chunk.css +0 -37
- package/dist/css/332-exchange-e4754ae27a.chunk.css +0 -1
- package/dist/css/489-exchange-6ecb1e7adc.chunk.css +0 -85
- package/dist/css/494-exchange-02d7a0249c.chunk.css +0 -2
- package/dist/css/522-exchange-1387f35e92.chunk.css +0 -14
- package/dist/css/538-exchange-4cbfe56ba3.chunk.css +0 -1
- package/dist/css/589-exchange-fa098d9131.chunk.css +0 -11
- package/dist/css/611-exchange-cbf2bb5621.chunk.css +0 -5
- package/dist/css/669-exchange-e80e6c6649.chunk.css +0 -10
- package/dist/css/68-exchange-b5eaf8af44.chunk.css +0 -35
- package/dist/css/75-exchange-6d2304419c.chunk.css +0 -5
- package/dist/css/759-exchange-23bb5dd175.chunk.css +0 -8
- package/dist/css/858-exchange-06944bdfa4.chunk.css +0 -1
- package/dist/css/904-exchange-0eab318199.chunk.css +0 -40
- package/dist/css/95-exchange-4cbfe56ba3.chunk.css +0 -1
- package/dist/css/lite-exchange-ed6bd260c5.css +0 -14
- package/dist/languages/en.json +0 -1
- package/dist/scripts/117-259130ac0e-exchange.chunk.js +0 -1
- package/dist/scripts/127-4a3c8f9725-exchange.chunk.js +0 -1
- package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js +0 -2
- package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/137-51b4dab452-exchange.chunk.js +0 -1
- package/dist/scripts/156-847dae6ace-exchange.chunk.js +0 -1
- package/dist/scripts/170-9db7c3b12e-exchange.chunk.js +0 -1
- package/dist/scripts/173-3668db114a-exchange.chunk.js +0 -1
- package/dist/scripts/212-6ed71b2797-exchange.chunk.js +0 -1
- package/dist/scripts/226-889bef8e6c-exchange.chunk.js +0 -1
- package/dist/scripts/267-7daf64f8a1-exchange.chunk.js +0 -1
- package/dist/scripts/291-7e85a6e844-exchange.chunk.js +0 -1
- package/dist/scripts/298-ed8e8b8328-exchange.chunk.js +0 -1
- package/dist/scripts/312-69afcbbc39-exchange.chunk.js +0 -1
- package/dist/scripts/325-76baea117f-exchange.chunk.js +0 -1
- package/dist/scripts/332-08d48debc2-exchange.chunk.js +0 -1
- package/dist/scripts/414-567e121c75-exchange.chunk.js +0 -2
- package/dist/scripts/414-567e121c75-exchange.chunk.js.LICENSE.txt +0 -60
- package/dist/scripts/442-fcba36183d-exchange.chunk.js +0 -1
- package/dist/scripts/455-ceeb969c54-exchange.chunk.js +0 -1
- package/dist/scripts/484-08c82c5a88-exchange.chunk.js +0 -1
- package/dist/scripts/489-8554f0ce7a-exchange.chunk.js +0 -2
- package/dist/scripts/489-8554f0ce7a-exchange.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/494-abba46b945-exchange.chunk.js +0 -2
- package/dist/scripts/494-abba46b945-exchange.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/507-b6e119c8e2-exchange.chunk.js +0 -1
- package/dist/scripts/522-ce819dee18-exchange.chunk.js +0 -2
- package/dist/scripts/522-ce819dee18-exchange.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/536-b915864d5f-exchange.chunk.js +0 -1
- package/dist/scripts/538-ccc01a623f-exchange.chunk.js +0 -2
- package/dist/scripts/538-ccc01a623f-exchange.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/558-1bdbbc1f64-exchange.chunk.js +0 -1
- package/dist/scripts/589-17d73ab116-exchange.chunk.js +0 -1
- package/dist/scripts/601-a3c22b0a9f-exchange.chunk.js +0 -1
- package/dist/scripts/611-d8bd3e98dc-exchange.chunk.js +0 -1
- package/dist/scripts/619-1abac6cb1d-exchange.chunk.js +0 -1
- package/dist/scripts/648-485af12c37-exchange.chunk.js +0 -1
- package/dist/scripts/659-d08f206e1d-exchange.chunk.js +0 -1
- package/dist/scripts/669-a49a0838ff-exchange.chunk.js +0 -1
- package/dist/scripts/68-34b81dae8c-exchange.chunk.js +0 -1
- package/dist/scripts/725-9ddf1084b6-exchange.chunk.js +0 -1
- package/dist/scripts/726-868a877381-exchange.chunk.js +0 -1
- package/dist/scripts/75-9780e4300e-exchange.chunk.js +0 -1
- package/dist/scripts/759-f1a9db4868-exchange.chunk.js +0 -1
- package/dist/scripts/782-2c340d8404-exchange.chunk.js +0 -1
- package/dist/scripts/831-8808647fc7-exchange.chunk.js +0 -1
- package/dist/scripts/851-61f77ce4aa-exchange.chunk.js +0 -2
- package/dist/scripts/851-61f77ce4aa-exchange.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/858-70085ed3b1-exchange.chunk.js +0 -1
- package/dist/scripts/866-14ce8a3a4d-exchange.chunk.js +0 -1
- package/dist/scripts/87-d569a1463e-exchange.chunk.js +0 -1
- package/dist/scripts/877-5b357aeb63-exchange.chunk.js +0 -1
- package/dist/scripts/904-bd1dfd39e0-exchange.chunk.js +0 -1
- package/dist/scripts/925-f70ee1c7f9-exchange.chunk.js +0 -1
- package/dist/scripts/937-2e1f1f330e-exchange.chunk.js +0 -1
- package/dist/scripts/95-841a847f54-exchange.chunk.js +0 -2
- package/dist/scripts/95-841a847f54-exchange.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/bundle-15f20b2d26.min.js +0 -2
- package/dist/scripts/bundle-15f20b2d26.min.js.LICENSE.txt +0 -108
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { ab as D, ac as H, ad as U, A as I, a as v, b as x, j as e, c as W, R as A, ay as L, ao as $, a1 as h, aQ as B, aR as V, l as G, L as Y, aA as F } from "./app-2U039aX_.js";
|
|
2
|
+
import { h as q } from "./HttpErrorHandlers-DKqNIMOg.js";
|
|
3
|
+
import { u as K } from "./UseHandleObjectError-DAhDbPEo.js";
|
|
4
|
+
import { P as C, A as R, a as Z } from "./ProgramType-FpE5cuZV.js";
|
|
5
|
+
import { T as z, a as Q } from "./TvTabs-CrQVKuod.js";
|
|
6
|
+
import { T as X, a as J } from "./TvSearchBar-KZqcg7G0.js";
|
|
7
|
+
import { T as j } from "./TvRequests-Bcy68aT5.js";
|
|
8
|
+
import { u as ee } from "./useHandleRegionError-BNxhNPKP.js";
|
|
9
|
+
import { u as ae } from "./useSelectedRegion-7_2s4QQF.js";
|
|
10
|
+
import { t as te } from "./toLocalTime-Bt8Uy4Kq.js";
|
|
11
|
+
import { P as se } from "./PillTabSelector-B5V2rqf0.js";
|
|
12
|
+
import { L as ne } from "./LazyImage-DBQklqeJ.js";
|
|
13
|
+
import { T as re } from "./TvProgramTimeBadge-BtQKNLz2.js";
|
|
14
|
+
const oe = "_pillTabSelector_1d8n6_1", ie = {
|
|
15
|
+
pillTabSelector: oe
|
|
16
|
+
}, N = [
|
|
17
|
+
"#",
|
|
18
|
+
"A",
|
|
19
|
+
"B",
|
|
20
|
+
"C",
|
|
21
|
+
"D",
|
|
22
|
+
"E",
|
|
23
|
+
"F",
|
|
24
|
+
"G",
|
|
25
|
+
"H",
|
|
26
|
+
"I",
|
|
27
|
+
"J",
|
|
28
|
+
"K",
|
|
29
|
+
"L",
|
|
30
|
+
"M",
|
|
31
|
+
"N",
|
|
32
|
+
"O",
|
|
33
|
+
"P",
|
|
34
|
+
"Q",
|
|
35
|
+
"R",
|
|
36
|
+
"S",
|
|
37
|
+
"T",
|
|
38
|
+
"U",
|
|
39
|
+
"V",
|
|
40
|
+
"W",
|
|
41
|
+
"X",
|
|
42
|
+
"Y",
|
|
43
|
+
"Z"
|
|
44
|
+
], ce = {
|
|
45
|
+
actionType: U.Click,
|
|
46
|
+
entity: H.Url,
|
|
47
|
+
location: D.MagicTabs
|
|
48
|
+
};
|
|
49
|
+
function le(s) {
|
|
50
|
+
const { startsWith: r, region: n } = s;
|
|
51
|
+
let t = r;
|
|
52
|
+
t === "0" && (t = "#");
|
|
53
|
+
const o = N.map((a) => {
|
|
54
|
+
let d = a;
|
|
55
|
+
d === "#" && (d = "0");
|
|
56
|
+
const i = {
|
|
57
|
+
application: x.TV,
|
|
58
|
+
action: v.Tv.PROGRAMS,
|
|
59
|
+
args: [n == null ? void 0 : n.code],
|
|
60
|
+
params: { startsWith: d }
|
|
61
|
+
};
|
|
62
|
+
return {
|
|
63
|
+
name: a,
|
|
64
|
+
appLink: i,
|
|
65
|
+
active: t === a,
|
|
66
|
+
analyticsData: {
|
|
67
|
+
name: a,
|
|
68
|
+
url: I.getHref(i)
|
|
69
|
+
},
|
|
70
|
+
analyticsOptions: ce
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
return /* @__PURE__ */ e.jsx("div", { className: "mb-3", children: /* @__PURE__ */ e.jsx(
|
|
74
|
+
se,
|
|
75
|
+
{
|
|
76
|
+
tabs: o,
|
|
77
|
+
className: ie.pillTabSelector
|
|
78
|
+
}
|
|
79
|
+
) });
|
|
80
|
+
}
|
|
81
|
+
const de = "_dateContainer_b9acj_1", me = "_hover_b9acj_4", ge = "_channelLogo_b9acj_7", ue = "_channelLogoContainer_b9acj_10", he = "_programsContainer_b9acj_13", pe = "_date_b9acj_1", fe = "_thumbnail_b9acj_27", m = {
|
|
82
|
+
dateContainer: de,
|
|
83
|
+
hover: me,
|
|
84
|
+
channelLogo: ge,
|
|
85
|
+
channelLogoContainer: ue,
|
|
86
|
+
programsContainer: he,
|
|
87
|
+
date: pe,
|
|
88
|
+
thumbnail: fe
|
|
89
|
+
};
|
|
90
|
+
function je(s) {
|
|
91
|
+
function r(n) {
|
|
92
|
+
const t = W.findWhere(s.channels, { name: n });
|
|
93
|
+
return t == null ? void 0 : t.logoUrl;
|
|
94
|
+
}
|
|
95
|
+
return /* @__PURE__ */ e.jsx("div", { className: "mb-2", children: s.groupedPrograms.map(([n, t]) => /* @__PURE__ */ e.jsxs("div", { className: "border-top d-flex pt-3 pb-2", children: [
|
|
96
|
+
/* @__PURE__ */ e.jsx("div", { className: `${m.channelLogoContainer} flex-shrink-0 mb-3`, children: /* @__PURE__ */ e.jsx("img", { src: r(n), alt: n, className: `${m.channelLogo} ms-4` }) }),
|
|
97
|
+
/* @__PURE__ */ e.jsx("div", { className: "w-100", children: t.map(([o, a]) => /* @__PURE__ */ e.jsx(ve, { date: o, programs: a, tvPreviewUrls: s.tvPreviewUrls }, o)) })
|
|
98
|
+
] }, n)) });
|
|
99
|
+
}
|
|
100
|
+
function ve(s) {
|
|
101
|
+
const [r, n] = A.useState();
|
|
102
|
+
function t(a) {
|
|
103
|
+
switch (a.programType) {
|
|
104
|
+
case C.Video:
|
|
105
|
+
return {
|
|
106
|
+
application: x.TV,
|
|
107
|
+
action: v.Tv.PREVIEW,
|
|
108
|
+
args: [a.regionCode, a.id]
|
|
109
|
+
};
|
|
110
|
+
case C.Audio:
|
|
111
|
+
return {
|
|
112
|
+
application: x.TV,
|
|
113
|
+
action: v.Tv.RADIO_DOWNLOAD,
|
|
114
|
+
args: [a.id]
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function o(a) {
|
|
119
|
+
const d = s.tvPreviewUrls[a.regionCode], i = a.globalId.split("-").join("");
|
|
120
|
+
return `${d}/thumbnail/${i}.jpg`;
|
|
121
|
+
}
|
|
122
|
+
return /* @__PURE__ */ e.jsx(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
className: `${m.dateContainer} ${r ? m.hover : ""} py-2 px-3 rounded`,
|
|
126
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "d-flex align-items-center", children: [
|
|
127
|
+
/* @__PURE__ */ e.jsx("div", { className: `${m.thumbnail} flex-shrink-0 me-3 partial-loading-background rounded`, children: /* @__PURE__ */ e.jsx(
|
|
128
|
+
ne,
|
|
129
|
+
{
|
|
130
|
+
src: o(r || s.programs[0]),
|
|
131
|
+
alt: L.format(s.date, "D MMM"),
|
|
132
|
+
extraClasses: "w-100 rounded"
|
|
133
|
+
}
|
|
134
|
+
) }),
|
|
135
|
+
/* @__PURE__ */ e.jsxs("p", { className: `${m.date} fw-semibold flex-shrink-0 mb-0`, children: [
|
|
136
|
+
L.format(s.date, "D MMM"),
|
|
137
|
+
":"
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ e.jsx("div", { className: `${m.programsContainer} d-flex flex-wrap`, children: s.programs.map((a) => /* @__PURE__ */ e.jsx(
|
|
140
|
+
"div",
|
|
141
|
+
{
|
|
142
|
+
onMouseEnter: () => n(a),
|
|
143
|
+
onMouseLeave: () => n(null),
|
|
144
|
+
children: /* @__PURE__ */ e.jsx($, { appLink: t(a), className: "text-decoration-none", children: /* @__PURE__ */ e.jsx(re, { program: a, showEndTime: !0, small: !0 }) }, a.id)
|
|
145
|
+
},
|
|
146
|
+
a.id
|
|
147
|
+
)) })
|
|
148
|
+
] }, s.date)
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
const xe = "tv.programs", Te = Y.encloseNamespace(xe), be = /^[a-zA-Z]/;
|
|
153
|
+
function De(s) {
|
|
154
|
+
const r = s.startsWith || "A", n = h(F.config()), t = h(j.region(s.region)), o = h(j.regions()), a = h(j.dateRange(s.region)), d = h(
|
|
155
|
+
t.data && j.channels(t.data.code)
|
|
156
|
+
), i = h(
|
|
157
|
+
t.data && a.data && j.programsByLetter(
|
|
158
|
+
t.data.code,
|
|
159
|
+
r,
|
|
160
|
+
a.data.startDate,
|
|
161
|
+
a.data.endDate
|
|
162
|
+
)
|
|
163
|
+
), { setRegion: S } = ae(), { showTvGuide: y } = B(), E = A.useMemo(() => {
|
|
164
|
+
var _;
|
|
165
|
+
if (!((_ = i.data) != null && _.length))
|
|
166
|
+
return [];
|
|
167
|
+
const g = {};
|
|
168
|
+
i.data.forEach((c) => {
|
|
169
|
+
s.startsWith === "0" && be.test(c.title) || (g[c.title] || (g[c.title] = []), g[c.title].push(c));
|
|
170
|
+
});
|
|
171
|
+
let p = Object.entries(g);
|
|
172
|
+
return p = p.sort(([c], [T]) => c < T ? -1 : 1), p.map(([c, T]) => {
|
|
173
|
+
const w = T.reduce((l, u) => {
|
|
174
|
+
const f = u.channelName;
|
|
175
|
+
l[f] || (l[f] = {});
|
|
176
|
+
const k = te(u.startTime, u.timeZone), b = L.format(k, "YYYY-MM-DD");
|
|
177
|
+
return l[f][b] || (l[f][b] = []), l[f][b].push(u), l;
|
|
178
|
+
}, {}), O = Object.entries(w).map(([l, u]) => [l, Object.entries(u)]);
|
|
179
|
+
return [c, O];
|
|
180
|
+
});
|
|
181
|
+
}, [i.data]);
|
|
182
|
+
[...N, "0"].includes(r) || q(V.BadRequest), ee(t), K([o, i]), G({ title: Te("title") });
|
|
183
|
+
const M = t.hasCompleted && o.hasCompleted && a.hasCompleted && i.hasCompleted && n.hasCompleted;
|
|
184
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
185
|
+
/* @__PURE__ */ e.jsx(X, { region: t.data }),
|
|
186
|
+
/* @__PURE__ */ e.jsxs("div", { className: "d-flex justify-content-between", children: [
|
|
187
|
+
/* @__PURE__ */ e.jsx(
|
|
188
|
+
z,
|
|
189
|
+
{
|
|
190
|
+
active: "programs",
|
|
191
|
+
currentRegion: t.data,
|
|
192
|
+
showTvGuide: y
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
/* @__PURE__ */ e.jsx(
|
|
196
|
+
J,
|
|
197
|
+
{
|
|
198
|
+
currentRegion: t.data,
|
|
199
|
+
regions: o.data,
|
|
200
|
+
appLink: {
|
|
201
|
+
application: x.TV,
|
|
202
|
+
action: v.Tv.PROGRAMS,
|
|
203
|
+
params: { startsWith: r }
|
|
204
|
+
},
|
|
205
|
+
onClick: S
|
|
206
|
+
}
|
|
207
|
+
)
|
|
208
|
+
] }),
|
|
209
|
+
/* @__PURE__ */ e.jsx(Q, { dateRange: a.data, region: t.data }),
|
|
210
|
+
/* @__PURE__ */ e.jsx(le, { startsWith: r, region: t.data }),
|
|
211
|
+
M ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(R, { children: E.map(([g, p], P) => /* @__PURE__ */ e.jsx(R.Header, { title: g, children: /* @__PURE__ */ e.jsx(
|
|
212
|
+
je,
|
|
213
|
+
{
|
|
214
|
+
groupedPrograms: p,
|
|
215
|
+
channels: d.data,
|
|
216
|
+
tvPreviewUrls: n.data.tvPreviewUrls
|
|
217
|
+
}
|
|
218
|
+
) }, P)) }) }) : /* @__PURE__ */ e.jsx(Z, {})
|
|
219
|
+
] });
|
|
220
|
+
}
|
|
221
|
+
export {
|
|
222
|
+
De as TvProgramsView
|
|
223
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { a1 as o, j as a, P as g, L as h, x as i, B as u, aA as x } from "./app-2U039aX_.js";
|
|
2
|
+
import { T as j } from "./TvProgramTimeBadge-BtQKNLz2.js";
|
|
3
|
+
import { T as r } from "./TvRequests-Bcy68aT5.js";
|
|
4
|
+
const l = "tv.radioDownload", d = h.encloseNamespace(l);
|
|
5
|
+
function b(s) {
|
|
6
|
+
const t = o(x.config()), e = o(r.program(s.id)), c = o(r.region(s.region));
|
|
7
|
+
function m() {
|
|
8
|
+
var n;
|
|
9
|
+
const p = (n = e.data) == null ? void 0 : n.globalId.split("-").join("");
|
|
10
|
+
return `${t.data.tvPreviewUrls[c.data.code]}/audio/${p}.mp3`;
|
|
11
|
+
}
|
|
12
|
+
return t.hasCompleted && e.hasCompleted ? /* @__PURE__ */ a.jsxs(
|
|
13
|
+
g,
|
|
14
|
+
{
|
|
15
|
+
title: d("title"),
|
|
16
|
+
closePopup: s.closePopup,
|
|
17
|
+
showLoadingSpinner: !e.hasCompleted,
|
|
18
|
+
children: [
|
|
19
|
+
e.data && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
20
|
+
/* @__PURE__ */ a.jsx("p", { className: "fw-semibold mb-2", children: e.data.title }),
|
|
21
|
+
/* @__PURE__ */ a.jsx("div", { className: "d-flex mb-2", children: /* @__PURE__ */ a.jsx(j, { program: e.data, showDate: !0, showEndTime: !0 }) }),
|
|
22
|
+
/* @__PURE__ */ a.jsx("p", { children: e.data.description })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ a.jsxs(i, { children: [
|
|
25
|
+
/* @__PURE__ */ a.jsx(
|
|
26
|
+
i.Cancel,
|
|
27
|
+
{
|
|
28
|
+
text: d("cancel"),
|
|
29
|
+
onClick: s.closePopup,
|
|
30
|
+
variant: "link"
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ a.jsx("a", { target: "_blank", href: m(), className: "btn btn-dark", children: /* @__PURE__ */ a.jsx(u, { namespace: l, phrase: "download" }) })
|
|
34
|
+
] })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
b as TvRadioDownloadView
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),l=require("./TvProgramTimeBadge-DPJu73xG.cjs"),a=require("./TvRequests-l_Xv-rcr.cjs"),r="tv.radioDownload",i=e.LanguageService.encloseNamespace(r);function x(s){const o=e.useBasicFetch(e.ConfigRequests.config()),t=e.useBasicFetch(a.TvRequests.program(s.id)),d=e.useBasicFetch(a.TvRequests.region(s.region));function c(){var n;const u=(n=t.data)==null?void 0:n.globalId.split("-").join("");return`${o.data.tvPreviewUrls[d.data.code]}/audio/${u}.mp3`}return o.hasCompleted&&t.hasCompleted?e.jsxRuntimeExports.jsxs(e.Popup,{title:i("title"),closePopup:s.closePopup,showLoadingSpinner:!t.hasCompleted,children:[t.data&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("p",{className:"fw-semibold mb-2",children:t.data.title}),e.jsxRuntimeExports.jsx("div",{className:"d-flex mb-2",children:e.jsxRuntimeExports.jsx(l.TvProgramTimeBadge,{program:t.data,showDate:!0,showEndTime:!0})}),e.jsxRuntimeExports.jsx("p",{children:t.data.description})]}),e.jsxRuntimeExports.jsxs(e.PopupButtons,{children:[e.jsxRuntimeExports.jsx(e.PopupButtons.Cancel,{text:i("cancel"),onClick:s.closePopup,variant:"link"}),e.jsxRuntimeExports.jsx("a",{target:"_blank",href:c(),className:"btn btn-dark",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:r,phrase:"download"})})]})]}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{})}exports.TvRadioDownloadView=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),t=require("./FormField-Cb2l2GMO.cjs"),F=require("./InstanceRegion-C7aJEkFV.cjs"),V=require("./UseAlerts-pIg83NsO.cjs"),Y=require("./useVerifiedEmailRequiredErrorHandler-CSkvs-EW.cjs"),E=require("./TvRequests-l_Xv-rcr.cjs"),I=require("./getRegionInfo-Bs5JKG7h.cjs"),M=require("./FormButtons-CDOsf9A-.cjs");var C=(s=>(s.Integrations="4407268725529",s.Classrooms="4405362551833",s.MakeInteractive="4405370510873",s.EditSsoAccounts="8202605666073",s.UploadToLibraryEditor="10672936659865",s.AddFromLite="10671345281561",s.ManageSsoYearGroups="14691130889241",s.ContentReview="18525199576601",s.ContentPermissions="14692125209497",s.AccessSettings="27927466562201",s.ContentGuidelines="24133696186009",s.FoxtelFaq="24133519542169",s.ViviIntegration="23826297956377",s.AppleTvIntegration="25832373739929",s.RssFeed="32567445635097",s.ManageGroupPermissions="35407217335705",s.MarcFormatDifferences="48276917260441",s.ExportLibraries="17684275853465",s))(C||{}),y=(s=>(s[s.BbcRes=0]="BbcRes",s))(y||{});const $="tv.requestProgramValidation",p=e.LanguageService.encloseNamespace($);function L(s){return s?t.libExports.object().shape({channelId:t.libExports.string().required(p("channelRequired")),title:t.libExports.string().required(p("programRequired")),broadcastDate:t.libExports.string().required(p("dateRequired")),broadcastTime:t.libExports.string().required(p("timeRequired")),closedCaptions:t.libExports.string(),comments:t.libExports.string()}):t.libExports.object().shape({title:t.libExports.string().required(p("programRequired")),comments:t.libExports.string()})}const x="tv.requestProgramForm",o=e.LanguageService.encloseNamespace(x);function G(s){const c=e.useFormikContext(),g=e.DateHelper.format(e.DateHelper.add(new Date,4,"days"),"YYYY-MM-DD"),i=e.DateHelper.format(e.DateHelper.add(g,11,"days"),"YYYY-MM-DD"),n=I.getRegionInfo(s.instanceRegion);return e.jsxRuntimeExports.jsxs(e.Form,{children:[s.channels&&e.jsxRuntimeExports.jsxs(t.FormField,{as:"select",label:o("channelLabel"),name:"channelId",value:c.values.channelId,showRequiredStar:!0,children:[e.jsxRuntimeExports.jsx("option",{value:"",children:e.LanguageService.getPhrase(x,"channelPlaceholder")},0),s.channels.map(l=>e.jsxRuntimeExports.jsx("option",{value:l.id,children:`${l.name} - (${l.number})`},l.id))]}),e.jsxRuntimeExports.jsx(t.FormField,{label:o("programLabel"),placeholder:o("programPlaceholder"),type:"text",name:"title",value:c.values.title,showRequiredStar:!0}),s.channels&&e.jsxRuntimeExports.jsxs("div",{className:"d-flex",children:[e.jsxRuntimeExports.jsx("div",{className:"w-50 me-2",children:e.jsxRuntimeExports.jsx(t.FormField,{label:o("broadcastDateLabel"),type:"date",name:"broadcastDate",value:c.values.broadcastDate,min:g,max:i,showRequiredStar:!0})}),e.jsxRuntimeExports.jsx("div",{className:"w-50",children:e.jsxRuntimeExports.jsx(t.FormField,{label:o("broadcastTimeLabel"),type:"time",name:"broadcastTime",value:c.values.broadcastTime,className:"mb-0",showRequiredStar:!0})})]}),e.jsxRuntimeExports.jsx("p",{className:"mt-n1",children:e.jsxRuntimeExports.jsx("small",{children:e.jsxRuntimeExports.jsx(e.Text,{namespace:x,phrase:n.programGuidePhraseKey})})}),s.channels&&e.jsxRuntimeExports.jsxs("div",{className:"d-flex",children:[e.jsxRuntimeExports.jsx("div",{className:"w-50 me-2",children:e.jsxRuntimeExports.jsxs(t.FormField,{as:"select",label:o("ccLabel"),name:"closedCaptions",value:c.values.closedCaptions,children:[e.jsxRuntimeExports.jsx("option",{value:"",children:e.LanguageService.getPhrase(x,"ccNo")}),e.jsxRuntimeExports.jsx("option",{value:"yes",children:e.LanguageService.getPhrase(x,"ccYes")})]})}),e.jsxRuntimeExports.jsx("div",{className:"w-50"})]}),e.jsxRuntimeExports.jsx(t.FormField,{label:o(s.channels?"commentsLabel":"additionalInfoLabel"),placeholder:o(s.channels?"commentsPlaceholder":"additionalInfoPlaceholder"),type:"text",name:"comments",value:c.values.comments}),e.jsxRuntimeExports.jsx("p",{children:e.jsxRuntimeExports.jsx(e.Text,{namespace:x,phrase:"note",options:{tv:n.tv}})}),e.jsxRuntimeExports.jsxs(e.PopupButtons,{children:[e.jsxRuntimeExports.jsx(e.PopupButtons.Cancel,{text:o("cancel"),onClick:s.onClickCancel,variant:"link"}),e.jsxRuntimeExports.jsx(M.FormButtons,{variant:"dark",submitText:o("request")})]})]})}const A={channelId:"",title:"",broadcastDate:"",broadcastTime:"",closedCaptions:"",comments:""},j="tv.requestProgram",R=e.LanguageService.encloseNamespace(j);function S(s){const c=e.useGetFetchAsync(),g=V.useAlerts(),i=s.instanceRegion===F.InstanceRegion.AU,n=e.useBasicFetch(e.UserRequests.currentUser()),l=s.instanceRegion===F.InstanceRegion.UK,b=e.useBasicFetch(l&&e.CustomerRequests.customer(n.data.customerId)),v=e.useBasicFetch(i&&E.TvRequests.payTvChannels()),m=I.getRegionInfo(s.instanceRegion);function w(){s.closePopup()}const{loading:D,handleGenerateReportError:N}=Y.useVerifiedEmailRequiredErrorHandler();function U(a){var d;if(i){const r=(d=v.data)==null?void 0:d.find(h=>String(h.id)===a.channelId);g.success(R("successChannel",{tv:m.tv,program:a.title,channel:r==null?void 0:r.name})),e.AnalyticsHelper.logUserAction({channel:r.id,name:r.name,program:a.title,region:s.region},{actionType:e.UserAction.Submit,entity:e.EntityType.Video,location:e.LocationContext.Popup,workflowPhase:e.WorkflowPhase.Complete,descriptor:e.TvDescriptor.RequestProgram})}else g.success(R("successNoChannel",{tv:m.tv,program:a.title})),e.AnalyticsHelper.logUserAction({program:a.title,region:s.region},{actionType:e.UserAction.Submit,entity:e.EntityType.Video,location:e.LocationContext.Popup,workflowPhase:e.WorkflowPhase.Complete,descriptor:e.TvDescriptor.RequestProgram})}function k(a){var q,P,f,T;const{broadcastDate:d,broadcastTime:r,closedCaptions:h,...u}=a;return l?{title:u.title,comments:u.comments,crmId:b.data.crmId,customerName:b.data.name,email:n.data.email,type:y.BbcRes,username:n.data.username}:i?{...u,closedCaptions:!!h,regionCode:s.region,programDateTime:`${d}T${r}`,userId:(q=n.data)==null?void 0:q.id,customerId:(P=n.data)==null?void 0:P.customerId}:{...u,regionCode:s.region,userId:(f=n.data)==null?void 0:f.id,customerId:(T=n.data)==null?void 0:T.customerId}}async function B(a,d){const r=k(a),h=l?E.TvRequests.requestProgramUk(r):E.TvRequests.requestProgram(r);try{await c(h),d(),U(a)}catch(u){N(u,R("error"),R("noEmailError"))}s.closePopup()}const H=n.hasCompleted&&(i&&v.hasCompleted||!i);return e.jsxRuntimeExports.jsxs(e.Popup,{title:R("title",{tv:m.tv}),closePopup:s.closePopup,showLoadingSpinner:!H||D,children:[E.TvUtils.isHolidayPeriod()&&e.jsxRuntimeExports.jsxs("div",{className:"alert alert-warning",role:"alert",children:[e.jsxRuntimeExports.jsx("h3",{className:"h5",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:j,phrase:"requestAlertHeading"})}),e.jsxRuntimeExports.jsx("p",{className:"m-0",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:j,phrase:"requestAlertBody",options:{tv:m.tv}})})]}),e.jsxRuntimeExports.jsx("p",{children:e.jsxRuntimeExports.jsx(e.Text,{namespace:j,phrase:"description",options:{tv:m.tv}})}),e.jsxRuntimeExports.jsx("p",{children:e.jsxRuntimeExports.jsx(e.Text,{namespace:j,phrase:"moreInfo",options:{tv:m.tv,faqUrl:e.ArticleHelper.getLiteArticle(C.FoxtelFaq)}})}),v&&e.jsxRuntimeExports.jsx(t.FormWrapper,{initialValues:A,validationSchema:L(i),onSubmit:B,children:e.jsxRuntimeExports.jsx(G,{onClickCancel:w,channels:i&&v.data,instanceRegion:s.instanceRegion})})]})}exports.TvRequestProgramView=S;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { L as v, aI as O, ay as R, j as a, $ as Q, B as x, x as D, a0 as X, a1 as C, a2 as Z, P as S, bt as ee, a3 as ae, a9 as U, aP as k, aa as E, ab as Y, ac as B, ad as V } from "./app-2U039aX_.js";
|
|
2
|
+
import { l as o, F as h, a as se } from "./FormField-DYeERWxm.js";
|
|
3
|
+
import { I as $ } from "./InstanceRegion-DQlzs4EK.js";
|
|
4
|
+
import { u as ne } from "./UseAlerts-B2BbQeN3.js";
|
|
5
|
+
import { u as te } from "./useVerifiedEmailRequiredErrorHandler-DFLs3cQc.js";
|
|
6
|
+
import { a as oe, T as I } from "./TvRequests-Bcy68aT5.js";
|
|
7
|
+
import { g as M } from "./getRegionInfo-B_h_jjAy.js";
|
|
8
|
+
import { F as re } from "./FormButtons-fQkvwYsy.js";
|
|
9
|
+
var G = /* @__PURE__ */ ((e) => (e.Integrations = "4407268725529", e.Classrooms = "4405362551833", e.MakeInteractive = "4405370510873", e.EditSsoAccounts = "8202605666073", e.UploadToLibraryEditor = "10672936659865", e.AddFromLite = "10671345281561", e.ManageSsoYearGroups = "14691130889241", e.ContentReview = "18525199576601", e.ContentPermissions = "14692125209497", e.AccessSettings = "27927466562201", e.ContentGuidelines = "24133696186009", e.FoxtelFaq = "24133519542169", e.ViviIntegration = "23826297956377", e.AppleTvIntegration = "25832373739929", e.RssFeed = "32567445635097", e.ManageGroupPermissions = "35407217335705", e.MarcFormatDifferences = "48276917260441", e.ExportLibraries = "17684275853465", e))(G || {}), H = /* @__PURE__ */ ((e) => (e[e.BbcRes = 0] = "BbcRes", e))(H || {});
|
|
10
|
+
const ie = "tv.requestProgramValidation", f = v.encloseNamespace(ie);
|
|
11
|
+
function ce(e) {
|
|
12
|
+
return e ? o.object().shape({
|
|
13
|
+
channelId: o.string().required(f("channelRequired")),
|
|
14
|
+
title: o.string().required(f("programRequired")),
|
|
15
|
+
broadcastDate: o.string().required(f("dateRequired")),
|
|
16
|
+
broadcastTime: o.string().required(f("timeRequired")),
|
|
17
|
+
closedCaptions: o.string(),
|
|
18
|
+
comments: o.string()
|
|
19
|
+
}) : o.object().shape({
|
|
20
|
+
title: o.string().required(f("programRequired")),
|
|
21
|
+
comments: o.string()
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const g = "tv.requestProgramForm", r = v.encloseNamespace(g);
|
|
25
|
+
function le(e) {
|
|
26
|
+
const c = O(), b = R.format(R.add(/* @__PURE__ */ new Date(), 4, "days"), "YYYY-MM-DD"), i = R.format(R.add(b, 11, "days"), "YYYY-MM-DD"), s = M(e.instanceRegion);
|
|
27
|
+
return /* @__PURE__ */ a.jsxs(Q, { children: [
|
|
28
|
+
e.channels && /* @__PURE__ */ a.jsxs(
|
|
29
|
+
h,
|
|
30
|
+
{
|
|
31
|
+
as: "select",
|
|
32
|
+
label: r("channelLabel"),
|
|
33
|
+
name: "channelId",
|
|
34
|
+
value: c.values.channelId,
|
|
35
|
+
showRequiredStar: !0,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ a.jsx("option", { value: "", children: v.getPhrase(g, "channelPlaceholder") }, 0),
|
|
38
|
+
e.channels.map((l) => /* @__PURE__ */ a.jsx("option", { value: l.id, children: `${l.name} - (${l.number})` }, l.id))
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ a.jsx(
|
|
43
|
+
h,
|
|
44
|
+
{
|
|
45
|
+
label: r("programLabel"),
|
|
46
|
+
placeholder: r("programPlaceholder"),
|
|
47
|
+
type: "text",
|
|
48
|
+
name: "title",
|
|
49
|
+
value: c.values.title,
|
|
50
|
+
showRequiredStar: !0
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
e.channels && /* @__PURE__ */ a.jsxs("div", { className: "d-flex", children: [
|
|
54
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-50 me-2", children: /* @__PURE__ */ a.jsx(
|
|
55
|
+
h,
|
|
56
|
+
{
|
|
57
|
+
label: r("broadcastDateLabel"),
|
|
58
|
+
type: "date",
|
|
59
|
+
name: "broadcastDate",
|
|
60
|
+
value: c.values.broadcastDate,
|
|
61
|
+
min: b,
|
|
62
|
+
max: i,
|
|
63
|
+
showRequiredStar: !0
|
|
64
|
+
}
|
|
65
|
+
) }),
|
|
66
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-50", children: /* @__PURE__ */ a.jsx(
|
|
67
|
+
h,
|
|
68
|
+
{
|
|
69
|
+
label: r("broadcastTimeLabel"),
|
|
70
|
+
type: "time",
|
|
71
|
+
name: "broadcastTime",
|
|
72
|
+
value: c.values.broadcastTime,
|
|
73
|
+
className: "mb-0",
|
|
74
|
+
showRequiredStar: !0
|
|
75
|
+
}
|
|
76
|
+
) })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ a.jsx("p", { className: "mt-n1", children: /* @__PURE__ */ a.jsx("small", { children: /* @__PURE__ */ a.jsx(x, { namespace: g, phrase: s.programGuidePhraseKey }) }) }),
|
|
79
|
+
e.channels && /* @__PURE__ */ a.jsxs("div", { className: "d-flex", children: [
|
|
80
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-50 me-2", children: /* @__PURE__ */ a.jsxs(
|
|
81
|
+
h,
|
|
82
|
+
{
|
|
83
|
+
as: "select",
|
|
84
|
+
label: r("ccLabel"),
|
|
85
|
+
name: "closedCaptions",
|
|
86
|
+
value: c.values.closedCaptions,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ a.jsx("option", { value: "", children: v.getPhrase(g, "ccNo") }),
|
|
89
|
+
/* @__PURE__ */ a.jsx("option", { value: "yes", children: v.getPhrase(g, "ccYes") })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
) }),
|
|
93
|
+
/* @__PURE__ */ a.jsx("div", { className: "w-50" })
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ a.jsx(
|
|
96
|
+
h,
|
|
97
|
+
{
|
|
98
|
+
label: r(e.channels ? "commentsLabel" : "additionalInfoLabel"),
|
|
99
|
+
placeholder: r(e.channels ? "commentsPlaceholder" : "additionalInfoPlaceholder"),
|
|
100
|
+
type: "text",
|
|
101
|
+
name: "comments",
|
|
102
|
+
value: c.values.comments
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(x, { namespace: g, phrase: "note", options: { tv: s.tv } }) }),
|
|
106
|
+
/* @__PURE__ */ a.jsxs(D, { children: [
|
|
107
|
+
/* @__PURE__ */ a.jsx(
|
|
108
|
+
D.Cancel,
|
|
109
|
+
{
|
|
110
|
+
text: r("cancel"),
|
|
111
|
+
onClick: e.onClickCancel,
|
|
112
|
+
variant: "link"
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ a.jsx(re, { variant: "dark", submitText: r("request") })
|
|
116
|
+
] })
|
|
117
|
+
] });
|
|
118
|
+
}
|
|
119
|
+
const de = {
|
|
120
|
+
channelId: "",
|
|
121
|
+
title: "",
|
|
122
|
+
broadcastDate: "",
|
|
123
|
+
broadcastTime: "",
|
|
124
|
+
closedCaptions: "",
|
|
125
|
+
comments: ""
|
|
126
|
+
}, p = "tv.requestProgram", P = v.encloseNamespace(p);
|
|
127
|
+
function fe(e) {
|
|
128
|
+
const c = X(), b = ne(), i = e.instanceRegion === $.AU, s = C(ae.currentUser()), l = e.instanceRegion === $.UK, y = C(l && Z.customer(s.data.customerId)), q = C(
|
|
129
|
+
i && I.payTvChannels()
|
|
130
|
+
), d = M(e.instanceRegion);
|
|
131
|
+
function K() {
|
|
132
|
+
e.closePopup();
|
|
133
|
+
}
|
|
134
|
+
const { loading: A, handleGenerateReportError: L } = te();
|
|
135
|
+
function W(n) {
|
|
136
|
+
var m;
|
|
137
|
+
if (i) {
|
|
138
|
+
const t = (m = q.data) == null ? void 0 : m.find((j) => String(j.id) === n.channelId);
|
|
139
|
+
b.success(
|
|
140
|
+
P(
|
|
141
|
+
"successChannel",
|
|
142
|
+
{
|
|
143
|
+
tv: d.tv,
|
|
144
|
+
program: n.title,
|
|
145
|
+
channel: t == null ? void 0 : t.name
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
), U.logUserAction(
|
|
149
|
+
{ channel: t.id, name: t.name, program: n.title, region: e.region },
|
|
150
|
+
{
|
|
151
|
+
actionType: V.Submit,
|
|
152
|
+
entity: B.Video,
|
|
153
|
+
location: Y.Popup,
|
|
154
|
+
workflowPhase: E.Complete,
|
|
155
|
+
descriptor: k.RequestProgram
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
} else
|
|
159
|
+
b.success(
|
|
160
|
+
P(
|
|
161
|
+
"successNoChannel",
|
|
162
|
+
{
|
|
163
|
+
tv: d.tv,
|
|
164
|
+
program: n.title
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
), U.logUserAction(
|
|
168
|
+
{ program: n.title, region: e.region },
|
|
169
|
+
{
|
|
170
|
+
actionType: V.Submit,
|
|
171
|
+
entity: B.Video,
|
|
172
|
+
location: Y.Popup,
|
|
173
|
+
workflowPhase: E.Complete,
|
|
174
|
+
descriptor: k.RequestProgram
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
function _(n) {
|
|
179
|
+
var T, w, F, N;
|
|
180
|
+
const { broadcastDate: m, broadcastTime: t, closedCaptions: j, ...u } = n;
|
|
181
|
+
return l ? {
|
|
182
|
+
title: u.title,
|
|
183
|
+
comments: u.comments,
|
|
184
|
+
crmId: y.data.crmId,
|
|
185
|
+
customerName: y.data.name,
|
|
186
|
+
email: s.data.email,
|
|
187
|
+
type: H.BbcRes,
|
|
188
|
+
username: s.data.username
|
|
189
|
+
} : i ? {
|
|
190
|
+
...u,
|
|
191
|
+
closedCaptions: !!j,
|
|
192
|
+
regionCode: e.region,
|
|
193
|
+
programDateTime: `${m}T${t}`,
|
|
194
|
+
userId: (T = s.data) == null ? void 0 : T.id,
|
|
195
|
+
customerId: (w = s.data) == null ? void 0 : w.customerId
|
|
196
|
+
} : {
|
|
197
|
+
...u,
|
|
198
|
+
regionCode: e.region,
|
|
199
|
+
userId: (F = s.data) == null ? void 0 : F.id,
|
|
200
|
+
customerId: (N = s.data) == null ? void 0 : N.customerId
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
async function z(n, m) {
|
|
204
|
+
const t = _(n), j = l ? I.requestProgramUk(t) : I.requestProgram(t);
|
|
205
|
+
try {
|
|
206
|
+
await c(j), m(), W(n);
|
|
207
|
+
} catch (u) {
|
|
208
|
+
L(u, P("error"), P("noEmailError"));
|
|
209
|
+
}
|
|
210
|
+
e.closePopup();
|
|
211
|
+
}
|
|
212
|
+
const J = s.hasCompleted && (i && q.hasCompleted || !i);
|
|
213
|
+
return /* @__PURE__ */ a.jsxs(
|
|
214
|
+
S,
|
|
215
|
+
{
|
|
216
|
+
title: P("title", { tv: d.tv }),
|
|
217
|
+
closePopup: e.closePopup,
|
|
218
|
+
showLoadingSpinner: !J || A,
|
|
219
|
+
children: [
|
|
220
|
+
oe.isHolidayPeriod() && /* @__PURE__ */ a.jsxs("div", { className: "alert alert-warning", role: "alert", children: [
|
|
221
|
+
/* @__PURE__ */ a.jsx("h3", { className: "h5", children: /* @__PURE__ */ a.jsx(x, { namespace: p, phrase: "requestAlertHeading" }) }),
|
|
222
|
+
/* @__PURE__ */ a.jsx("p", { className: "m-0", children: /* @__PURE__ */ a.jsx(x, { namespace: p, phrase: "requestAlertBody", options: {
|
|
223
|
+
tv: d.tv
|
|
224
|
+
} }) })
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(
|
|
227
|
+
x,
|
|
228
|
+
{
|
|
229
|
+
namespace: p,
|
|
230
|
+
phrase: "description",
|
|
231
|
+
options: { tv: d.tv }
|
|
232
|
+
}
|
|
233
|
+
) }),
|
|
234
|
+
/* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(
|
|
235
|
+
x,
|
|
236
|
+
{
|
|
237
|
+
namespace: p,
|
|
238
|
+
phrase: "moreInfo",
|
|
239
|
+
options: {
|
|
240
|
+
tv: d.tv,
|
|
241
|
+
faqUrl: ee.getLiteArticle(G.FoxtelFaq)
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
) }),
|
|
245
|
+
q && /* @__PURE__ */ a.jsx(
|
|
246
|
+
se,
|
|
247
|
+
{
|
|
248
|
+
initialValues: de,
|
|
249
|
+
validationSchema: ce(i),
|
|
250
|
+
onSubmit: z,
|
|
251
|
+
children: /* @__PURE__ */ a.jsx(
|
|
252
|
+
le,
|
|
253
|
+
{
|
|
254
|
+
onClickCancel: K,
|
|
255
|
+
channels: i && q.data,
|
|
256
|
+
instanceRegion: e.instanceRegion
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
export {
|
|
266
|
+
fe as TvRequestProgramView
|
|
267
|
+
};
|