@clickview/exchange 0.43.1-dev.0 → 0.43.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +4 -0
- package/dist/css/137-exchange-8c1b8716b3.chunk.css +25 -0
- package/dist/css/212-exchange-d71527fc65.chunk.css +1 -0
- package/dist/css/226-exchange-9ab9f14b3c.chunk.css +57 -0
- package/dist/css/291-exchange-be9d9f0cdb.chunk.css +11 -0
- package/dist/css/298-exchange-78ece5c7c5.chunk.css +37 -0
- package/dist/css/332-exchange-e4754ae27a.chunk.css +1 -0
- package/dist/css/489-exchange-6ecb1e7adc.chunk.css +85 -0
- package/dist/css/494-exchange-02d7a0249c.chunk.css +2 -0
- package/dist/css/522-exchange-1387f35e92.chunk.css +14 -0
- package/dist/css/538-exchange-4cbfe56ba3.chunk.css +1 -0
- package/dist/css/589-exchange-fa098d9131.chunk.css +11 -0
- package/dist/css/611-exchange-cbf2bb5621.chunk.css +5 -0
- package/dist/css/669-exchange-e80e6c6649.chunk.css +10 -0
- package/dist/css/68-exchange-b5eaf8af44.chunk.css +35 -0
- package/dist/css/75-exchange-6d2304419c.chunk.css +5 -0
- package/dist/css/759-exchange-23bb5dd175.chunk.css +8 -0
- package/dist/css/858-exchange-06944bdfa4.chunk.css +1 -0
- package/dist/css/904-exchange-0eab318199.chunk.css +40 -0
- package/dist/css/95-exchange-4cbfe56ba3.chunk.css +1 -0
- package/dist/css/lite-exchange-ed6bd260c5.css +14 -0
- package/dist/languages/en.json +1 -0
- package/dist/scripts/117-259130ac0e-exchange.chunk.js +1 -0
- package/dist/scripts/127-4a3c8f9725-exchange.chunk.js +1 -0
- package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js +2 -0
- package/dist/scripts/136-fd99ef4c9d-exchange.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/137-51b4dab452-exchange.chunk.js +1 -0
- package/dist/scripts/156-7e4d78c20a-exchange.chunk.js +1 -0
- package/dist/scripts/170-9db7c3b12e-exchange.chunk.js +1 -0
- package/dist/scripts/173-3668db114a-exchange.chunk.js +1 -0
- package/dist/scripts/212-6ed71b2797-exchange.chunk.js +1 -0
- package/dist/scripts/226-889bef8e6c-exchange.chunk.js +1 -0
- package/dist/scripts/267-7daf64f8a1-exchange.chunk.js +1 -0
- package/dist/scripts/291-7e85a6e844-exchange.chunk.js +1 -0
- package/dist/scripts/298-ed8e8b8328-exchange.chunk.js +1 -0
- package/dist/scripts/312-69afcbbc39-exchange.chunk.js +1 -0
- package/dist/scripts/325-76baea117f-exchange.chunk.js +1 -0
- package/dist/scripts/332-08d48debc2-exchange.chunk.js +1 -0
- package/dist/scripts/414-567e121c75-exchange.chunk.js +2 -0
- package/dist/scripts/414-567e121c75-exchange.chunk.js.LICENSE.txt +60 -0
- package/dist/scripts/442-fcba36183d-exchange.chunk.js +1 -0
- package/dist/scripts/455-ceeb969c54-exchange.chunk.js +1 -0
- package/dist/scripts/484-08c82c5a88-exchange.chunk.js +1 -0
- package/dist/scripts/489-8b40fa92cc-exchange.chunk.js +2 -0
- package/dist/scripts/489-8b40fa92cc-exchange.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/494-abba46b945-exchange.chunk.js +2 -0
- package/dist/scripts/494-abba46b945-exchange.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/507-b6e119c8e2-exchange.chunk.js +1 -0
- package/dist/scripts/522-cb18547130-exchange.chunk.js +2 -0
- package/dist/scripts/522-cb18547130-exchange.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/536-b915864d5f-exchange.chunk.js +1 -0
- package/dist/scripts/538-ccc01a623f-exchange.chunk.js +2 -0
- package/dist/scripts/538-ccc01a623f-exchange.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/558-1bdbbc1f64-exchange.chunk.js +1 -0
- package/dist/scripts/589-17d73ab116-exchange.chunk.js +1 -0
- package/dist/scripts/601-a3c22b0a9f-exchange.chunk.js +1 -0
- package/dist/scripts/611-d8bd3e98dc-exchange.chunk.js +1 -0
- package/dist/scripts/619-1abac6cb1d-exchange.chunk.js +1 -0
- package/dist/scripts/648-485af12c37-exchange.chunk.js +1 -0
- package/dist/scripts/659-d08f206e1d-exchange.chunk.js +1 -0
- package/dist/scripts/669-a49a0838ff-exchange.chunk.js +1 -0
- package/dist/scripts/68-d0da8f3bd8-exchange.chunk.js +1 -0
- package/dist/scripts/725-9ddf1084b6-exchange.chunk.js +1 -0
- package/dist/scripts/726-868a877381-exchange.chunk.js +1 -0
- package/dist/scripts/75-9780e4300e-exchange.chunk.js +1 -0
- package/dist/scripts/759-f1a9db4868-exchange.chunk.js +1 -0
- package/dist/scripts/782-2c340d8404-exchange.chunk.js +1 -0
- package/dist/scripts/831-8808647fc7-exchange.chunk.js +1 -0
- package/dist/scripts/851-61f77ce4aa-exchange.chunk.js +2 -0
- package/dist/scripts/851-61f77ce4aa-exchange.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/858-70085ed3b1-exchange.chunk.js +1 -0
- package/dist/scripts/866-14ce8a3a4d-exchange.chunk.js +1 -0
- package/dist/scripts/87-d569a1463e-exchange.chunk.js +1 -0
- package/dist/scripts/877-5b357aeb63-exchange.chunk.js +1 -0
- package/dist/scripts/904-bd1dfd39e0-exchange.chunk.js +1 -0
- package/dist/scripts/925-f70ee1c7f9-exchange.chunk.js +1 -0
- package/dist/scripts/937-2e1f1f330e-exchange.chunk.js +1 -0
- package/dist/scripts/95-841a847f54-exchange.chunk.js +2 -0
- package/dist/scripts/95-841a847f54-exchange.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/bundle-7065b184e2.min.js +2 -0
- package/dist/scripts/bundle-7065b184e2.min.js.LICENSE.txt +108 -0
- package/package.json +3 -12
- package/typings/utils/imports.d.ts +1 -1
- package/dist/Actions-BtMRNMuv.cjs +0 -1
- package/dist/Actions-DfeKDy3k.js +0 -178
- package/dist/AddToLibraryView-BoCLtcWV.js +0 -508
- package/dist/AddToLibraryView-MpkcVgoR.cjs +0 -1
- package/dist/Badge-3MW5GacP.cjs +0 -1
- package/dist/Badge-Ddz0Il5v.js +0 -326
- package/dist/BadgeListContainer-CqwUuWKL.js +0 -19
- package/dist/BadgeListContainer-DLrBuDpU.cjs +0 -1
- package/dist/ButtonGroup-C-z2yWvb.cjs +0 -1
- package/dist/ButtonGroup-zaxEq7ZK.js +0 -24
- package/dist/Caret-Cpx0uvJ0.js +0 -36
- package/dist/Caret-Dgjy7YHO.cjs +0 -1
- package/dist/ChevronDownSvg-BI6xUNrZ.cjs +0 -1
- package/dist/ChevronDownSvg-BfijmId7.js +0 -13
- package/dist/ClassNameHelper-aJ0BDnVo.js +0 -29
- package/dist/ClassNameHelper-n4BHW-GR.cjs +0 -1
- package/dist/CloseSvg-2PKjla1T.js +0 -13
- package/dist/CloseSvg-B7rizkGp.cjs +0 -1
- package/dist/CurationStatus-BGjsO3l8.cjs +0 -1
- package/dist/CurationStatus-DZn3C9Qe.js +0 -4
- package/dist/DevErrorView-Bg1Ufy6-.js +0 -79
- package/dist/DevErrorView-CpXfV0V4.cjs +0 -1
- package/dist/DialogView-B5FEh3e8.cjs +0 -1
- package/dist/DialogView-RcNOylD7.js +0 -22
- package/dist/DownloadHelper-ChKHN-Le.cjs +0 -1
- package/dist/DownloadHelper-dL46n0Kq.js +0 -32
- package/dist/DownloadVideoView-CvDFi8HI.cjs +0 -1
- package/dist/DownloadVideoView-HSnwAYLp.js +0 -32
- package/dist/DragDropMoveWrapper-B_dy7ady.cjs +0 -1
- package/dist/DragDropMoveWrapper-TdzJqiqv.js +0 -462
- package/dist/ExchangeAddView-BRLjRe3p.js +0 -63
- package/dist/ExchangeAddView-CWfp5W52.cjs +0 -1
- package/dist/ExchangeFolderView-4ArEcQvn.js +0 -159
- package/dist/ExchangeFolderView-_ldS0uwf.cjs +0 -1
- package/dist/ExchangeMostRecentView-BMAosIXz.js +0 -61
- package/dist/ExchangeMostRecentView-s1iLfclz.cjs +0 -1
- package/dist/ExchangeNotFoundView-C_dtuc6J.cjs +0 -1
- package/dist/ExchangeNotFoundView-Cb-rmQH1.js +0 -7
- package/dist/ExchangePreviewView-hztBChIE.js +0 -82
- package/dist/ExchangePreviewView-kjDv-uqf.cjs +0 -1
- package/dist/ExchangeRequests-B3wRfv5Y.cjs +0 -1
- package/dist/ExchangeRequests-DV7BD3HZ.js +0 -115
- package/dist/ExchangeSearchBar-CNtU_swT.js +0 -32
- package/dist/ExchangeSearchBar-Ci1_Sc2S.cjs +0 -1
- package/dist/ExchangeSearchResultsView-CEueb9Li.js +0 -1641
- package/dist/ExchangeSearchResultsView-CGSIyjiV.cjs +0 -2
- package/dist/ExchangeSeriesView-BGBgwgMW.cjs +0 -1
- package/dist/ExchangeSeriesView-DMr_mCAH.js +0 -143
- package/dist/ExchangeSuggestEditView-B3P-nGFE.js +0 -307
- package/dist/ExchangeSuggestEditView-D1m5Z20N.cjs +0 -1
- package/dist/ExchangeTabs-CrA22PjN.js +0 -46
- package/dist/ExchangeTabs-KgrROs1d.cjs +0 -1
- package/dist/ExchangeUtils-BRDE3b9w.cjs +0 -1
- package/dist/ExchangeUtils-CCCrn5oQ.js +0 -65
- package/dist/ExchangeView-Cui4zZ4D.js +0 -30
- package/dist/ExchangeView-Dql8pHzi.cjs +0 -1
- package/dist/FormButtons-CDOsf9A-.cjs +0 -1
- package/dist/FormButtons-fQkvwYsy.js +0 -20
- package/dist/FormFeedback-5Dd3bMCl.js +0 -7
- package/dist/FormFeedback-BU7vSBqB.cjs +0 -1
- package/dist/FormField-Cb2l2GMO.cjs +0 -5
- package/dist/FormField-DYeERWxm.js +0 -3353
- package/dist/GiveFeedbackView-0tH6h1s3.js +0 -5436
- package/dist/GiveFeedbackView-DirGDc2a.cjs +0 -7
- package/dist/GroupSvg-BmwXO6yT.js +0 -53
- package/dist/GroupSvg-DVAq4iNX.cjs +0 -1
- package/dist/HardCoded-25AFj2sZ.js +0 -51
- package/dist/HardCoded-BbbeCQNt.cjs +0 -1
- package/dist/HttpErrorHandlers-CBhvfsvb.cjs +0 -1
- package/dist/HttpErrorHandlers-DKqNIMOg.js +0 -76
- package/dist/IconCircle-BVHFUBGt.cjs +0 -1
- package/dist/IconCircle-CxFLsbLY.js +0 -26
- package/dist/InstanceRegion-C7aJEkFV.cjs +0 -1
- package/dist/InstanceRegion-DQlzs4EK.js +0 -4
- package/dist/LazyImage-DBQklqeJ.js +0 -163
- package/dist/LazyImage-lv36coda.cjs +0 -1
- package/dist/LibraryRequests-BHAZPSUw.js +0 -186
- package/dist/LibraryRequests-DKCsJHbr.cjs +0 -1
- package/dist/LinkifyHelper-DPHYATPc.js +0 -925
- package/dist/LinkifyHelper-EOfbsqdi.cjs +0 -4
- package/dist/MasterTypeHelper-Y_SDsEUF.cjs +0 -1
- package/dist/MasterTypeHelper-uSKy6GZd.js +0 -16
- package/dist/MediaQueries-9caJ2eG6.js +0 -4
- package/dist/MediaQueries-CE9Kbs0e.cjs +0 -1
- package/dist/PartialLoadingHelper-D42uOdDd.cjs +0 -1
- package/dist/PartialLoadingHelper-DIas6hnM.js +0 -29
- package/dist/PermissionFilterOption-B-QrMVdA.js +0 -4
- package/dist/PermissionFilterOption-BIA__Q_O.cjs +0 -1
- package/dist/PillTabSelector-B5V2rqf0.js +0 -64
- package/dist/PillTabSelector-yR52s5ix.cjs +0 -14
- package/dist/PreviewVideoDetails-BQ0lYYbK.cjs +0 -362
- package/dist/PreviewVideoDetails-DJXB4vV3.js +0 -68337
- package/dist/ProgramType-DHk-SlRZ.cjs +0 -1
- package/dist/ProgramType-FpE5cuZV.js +0 -60
- package/dist/RatingRequests-BNPZAxXm.cjs +0 -1
- package/dist/RatingRequests-Dr3w3-z8.js +0 -11
- package/dist/RedirectView-BK8yU-PU.js +0 -22
- package/dist/RedirectView-OEJhJrvf.cjs +0 -1
- package/dist/RestrictionHelper-BSceJYz-.js +0 -112
- package/dist/RestrictionHelper-C5u_CmoL.cjs +0 -1
- package/dist/ScrollHelper-Dg7bDIH7.js +0 -10
- package/dist/ScrollHelper-ESsjtyv8.cjs +0 -1
- package/dist/SearchFilters-C_yEnumc.js +0 -3046
- package/dist/SearchFilters-D3fLjseM.cjs +0 -1
- package/dist/SearchSvg-BB6oXs1v.js +0 -13
- package/dist/SearchSvg-BU6G1Fs0.cjs +0 -1
- package/dist/SharedSearchHelper-BuVD-GvT.js +0 -159
- package/dist/SharedSearchHelper-D5GJJwW7.cjs +0 -1
- package/dist/TagItem-BBc3HmnI.cjs +0 -1
- package/dist/TagItem-BFnSikAz.js +0 -1125
- package/dist/TvAdFreeBadge-BDFn2ujd.js +0 -11
- package/dist/TvAdFreeBadge-X2iSf6B3.cjs +0 -1
- package/dist/TvAdFreeRequestView-CEAvozfO.js +0 -46
- package/dist/TvAdFreeRequestView-DgnMCKX4.cjs +0 -1
- package/dist/TvAddView-Bv12wfX7.js +0 -276
- package/dist/TvAddView-CA7Yappn.cjs +0 -1
- package/dist/TvAlreadyAddedView-C240rLQ7.js +0 -56
- package/dist/TvAlreadyAddedView-X4KElzJA.cjs +0 -1
- package/dist/TvBroadcastContentView-DizJHvTQ.js +0 -52
- package/dist/TvBroadcastContentView-g8i0Cy-k.cjs +0 -1
- package/dist/TvChannelBadge-B4a1wkQI.cjs +0 -1
- package/dist/TvChannelBadge-Doqs12s9.js +0 -11
- package/dist/TvChannelView-CSn0VleL.js +0 -177
- package/dist/TvChannelView-Ds_F3Mmp.cjs +0 -1
- package/dist/TvChannelsView-CM_T5E3j.js +0 -171
- package/dist/TvChannelsView-r3NO_BRv.cjs +0 -1
- package/dist/TvGuideView-B8vS-8lS.cjs +0 -1
- package/dist/TvGuideView-BLlQJiZ3.js +0 -54
- package/dist/TvHomeView-C_h4DZw_.cjs +0 -1
- package/dist/TvHomeView-CbNg8AyI.js +0 -15
- package/dist/TvPreviewView-DhXD3H__.js +0 -114
- package/dist/TvPreviewView-hGq7_Bzs.cjs +0 -1
- package/dist/TvProgramTimeBadge-BtQKNLz2.js +0 -18
- package/dist/TvProgramTimeBadge-DPJu73xG.cjs +0 -1
- package/dist/TvProgramsView-Ba9VPnEh.cjs +0 -1
- package/dist/TvProgramsView-DO4WnPJx.js +0 -223
- package/dist/TvRadioDownloadView-ByABG_YW.js +0 -41
- package/dist/TvRadioDownloadView-CitV60kZ.cjs +0 -1
- package/dist/TvRequestProgramView-CYc5nAEt.cjs +0 -1
- package/dist/TvRequestProgramView-Dm5Bra4d.js +0 -267
- package/dist/TvRequests-Bcy68aT5.js +0 -227
- package/dist/TvRequests-l_Xv-rcr.cjs +0 -1
- package/dist/TvSearchBar-5J6420z2.cjs +0 -1
- package/dist/TvSearchBar-KZqcg7G0.js +0 -95
- package/dist/TvSearchResultsView-BTONTtMg.cjs +0 -1
- package/dist/TvSearchResultsView-CMsq8ehS.js +0 -212
- package/dist/TvTabs-CrQVKuod.js +0 -88
- package/dist/TvTabs-JuCI2Ea7.cjs +0 -1
- package/dist/TypeHelper-Dt2Y9Wc4.js +0 -14
- package/dist/TypeHelper-Z2rqPzup.cjs +0 -1
- package/dist/UseAlerts-B2BbQeN3.js +0 -39
- package/dist/UseAlerts-pIg83NsO.cjs +0 -1
- package/dist/UseFetchAll-BaDVJFdj.cjs +0 -1
- package/dist/UseFetchAll-DYGA8s5a.js +0 -147
- package/dist/UseGetMediaQueryString-BLeJTZt2.cjs +0 -1
- package/dist/UseGetMediaQueryString-Dc_jP0rr.js +0 -226
- package/dist/UseHandleDialogError-BJHsOnKn.js +0 -9
- package/dist/UseHandleDialogError-PbyWsVaT.cjs +0 -1
- package/dist/UseHandleObjectError-CBFN1Ill.cjs +0 -1
- package/dist/UseHandleObjectError-DAhDbPEo.js +0 -16
- package/dist/UseHover-CLOLtbUV.cjs +0 -1
- package/dist/UseHover-Cc_d5rRf.js +0 -85
- package/dist/UseSelectAllPages-04737Rdu.cjs +0 -1
- package/dist/UseSelectAllPages-Cnk3MEAt.js +0 -149
- package/dist/VideoHelper-3AKe5Jyy.js +0 -477
- package/dist/VideoHelper-BQ7rWUw0.cjs +0 -1
- package/dist/VideoList-SNG1hmoL.cjs +0 -49
- package/dist/VideoList-s7lvSqSs.js +0 -2622
- package/dist/VideoRequests-CpDXl7E_.cjs +0 -1
- package/dist/VideoRequests-DlUeYLjl.js +0 -225
- package/dist/VideoSortSelect-3JfrvPfj.cjs +0 -1
- package/dist/VideoSortSelect-DS9Uvc-S.js +0 -116
- package/dist/VisibleOnSvg-BisjF586.cjs +0 -1
- package/dist/VisibleOnSvg-WDCQPPvV.js +0 -33
- package/dist/app-2U039aX_.js +0 -67680
- package/dist/app-DcIbciDa.cjs +0 -454
- package/dist/app.js +0 -1
- package/dist/en.json +0 -1
- package/dist/exchange.css +0 -1
- package/dist/getRegionInfo-B_h_jjAy.js +0 -31
- package/dist/getRegionInfo-Bs5JKG7h.cjs +0 -1
- package/dist/index-CGkY5YVS.cjs +0 -1
- package/dist/index-DUgR-v-j.js +0 -885
- package/dist/toLocalTime-Bt8Uy4Kq.js +0 -15
- package/dist/toLocalTime-DF9SIfIt.cjs +0 -1
- package/dist/useBreakpoints-37V489ap.js +0 -66
- package/dist/useBreakpoints-B-bcgx-L.cjs +0 -1
- package/dist/useGetExchangeActions-BwXrBSH-.cjs +0 -1
- package/dist/useGetExchangeActions-C8Y1FNSl.js +0 -176
- package/dist/useGetTvActions-CmEBdHbw.cjs +0 -1
- package/dist/useGetTvActions-DENrO3wZ.js +0 -54
- package/dist/useHandleRegionError-BNRrs6y8.cjs +0 -1
- package/dist/useHandleRegionError-BNxhNPKP.js +0 -10
- package/dist/usePreviewContext--ihfEi4P.js +0 -14
- package/dist/usePreviewContext-DjpFhe3I.cjs +0 -1
- package/dist/useSelectedRegion-7_2s4QQF.js +0 -16
- package/dist/useSelectedRegion-D3Xsu2Ut.cjs +0 -1
- package/dist/useVerifiedEmailRequiredErrorHandler-CSkvs-EW.cjs +0 -1
- package/dist/useVerifiedEmailRequiredErrorHandler-DFLs3cQc.js +0 -57
- package/vite-i18n-plugin.ts +0 -113
- package/vite.config.ts +0 -59
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
import { ay as l, aq as k, X as w, H as d, U as u } from "./app-2U039aX_.js";
|
|
2
|
-
var m = /* @__PURE__ */ ((e) => (e[e.AllResults = 0] = "AllResults", e[e.Subtitles = 1] = "Subtitles", e[e.TitleAndDescription = 2] = "TitleAndDescription", e))(m || {});
|
|
3
|
-
function M() {
|
|
4
|
-
const e = k.get("cv:holiday:dates");
|
|
5
|
-
return w.isObject(e) ? e : {
|
|
6
|
-
// Dec 15th
|
|
7
|
-
startMonth: 12,
|
|
8
|
-
startDay: 15,
|
|
9
|
-
// Jan 6th
|
|
10
|
-
endMonth: 1,
|
|
11
|
-
endDay: 6
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const O = {
|
|
15
|
-
getFormattedDateRange(e, r) {
|
|
16
|
-
return `${l.format(e, "Do MMMM YYYY")} - ${l.format(r, "Do MMMM YYYY")}`;
|
|
17
|
-
},
|
|
18
|
-
getDateBroadcastParams(e) {
|
|
19
|
-
const r = (a) => l.format(a, "YYYY-MM-DD"), t = r(/* @__PURE__ */ new Date());
|
|
20
|
-
switch (e) {
|
|
21
|
-
case "yesterday":
|
|
22
|
-
return {
|
|
23
|
-
from: r(l.subtract(t, 1, "day")),
|
|
24
|
-
to: t
|
|
25
|
-
};
|
|
26
|
-
case "last-week":
|
|
27
|
-
return {
|
|
28
|
-
from: r(l.subtract(t, 7, "days")),
|
|
29
|
-
to: t
|
|
30
|
-
};
|
|
31
|
-
case "last-2-weeks":
|
|
32
|
-
return {
|
|
33
|
-
from: r(l.subtract(t, 14, "days")),
|
|
34
|
-
to: t
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
isHolidayPeriod() {
|
|
39
|
-
const { startMonth: e, startDay: r, endMonth: t, endDay: a } = M(), o = /* @__PURE__ */ new Date(), n = o.getMonth() + 1, i = o.getDate();
|
|
40
|
-
return n === e && i >= r || n === t && i <= a;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
function f(e) {
|
|
44
|
-
return Object.entries(e).reduce((r, [t, a]) => (r[t.charAt(0).toLowerCase() + t.slice(1)] = a, r), {});
|
|
45
|
-
}
|
|
46
|
-
function z(e) {
|
|
47
|
-
return e.map(f);
|
|
48
|
-
}
|
|
49
|
-
function s(e) {
|
|
50
|
-
return e ? Array.isArray(e) ? z(e) : f(e) : null;
|
|
51
|
-
}
|
|
52
|
-
const h = {
|
|
53
|
-
regions() {
|
|
54
|
-
return {
|
|
55
|
-
url: "/api/tv/api/v2/regions",
|
|
56
|
-
key: "tv:regions",
|
|
57
|
-
normalize: !1,
|
|
58
|
-
formatData: s
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
region(e) {
|
|
62
|
-
return {
|
|
63
|
-
url: `/api/tv/api/v2/regions/${e}`,
|
|
64
|
-
key: `tv:region:${e}`,
|
|
65
|
-
normalize: !1,
|
|
66
|
-
formatData: s
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
dateRange(e) {
|
|
70
|
-
return {
|
|
71
|
-
url: `/api/tv/api/v2/regions/${e}/daterange`,
|
|
72
|
-
key: `tv:region:${e}:daterange`,
|
|
73
|
-
normalize: !1,
|
|
74
|
-
formatData: s
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
channels(e) {
|
|
78
|
-
return {
|
|
79
|
-
url: u.urlBuilder("/api/tv/api/v2/channels", { region: e }),
|
|
80
|
-
key: `tv:channels:${e}`,
|
|
81
|
-
normalize: !1,
|
|
82
|
-
formatData: (r) => s(r).sort((a, o) => a.sortOrder - o.sortOrder)
|
|
83
|
-
};
|
|
84
|
-
},
|
|
85
|
-
payTvChannels() {
|
|
86
|
-
return {
|
|
87
|
-
url: "/api/tv/v1/pay-tv/channels/all",
|
|
88
|
-
key: "pay:tv:channels",
|
|
89
|
-
normalize: !1,
|
|
90
|
-
formatData: s
|
|
91
|
-
};
|
|
92
|
-
},
|
|
93
|
-
programsByChannel(e, r, t, a) {
|
|
94
|
-
const o = u.urlBuilder(`/api/tv/api/v3/regions/${e}/channels/programs`, {
|
|
95
|
-
channel: r,
|
|
96
|
-
startDate: t,
|
|
97
|
-
endDate: a
|
|
98
|
-
}), n = ["tv:programs:by:channel", e, r, t, a].join(":");
|
|
99
|
-
return {
|
|
100
|
-
url: o,
|
|
101
|
-
key: n,
|
|
102
|
-
normalize: !1,
|
|
103
|
-
formatData: s
|
|
104
|
-
};
|
|
105
|
-
},
|
|
106
|
-
programsByLetter(e, r, t, a) {
|
|
107
|
-
const o = u.urlBuilder("/api/tv/api/v2/Programs", {
|
|
108
|
-
regionCode: e,
|
|
109
|
-
startsWith: r,
|
|
110
|
-
startDate: t,
|
|
111
|
-
endDate: a
|
|
112
|
-
}), n = ["tv:programs:by:letter", e, r, t, a].join(":");
|
|
113
|
-
return {
|
|
114
|
-
url: o,
|
|
115
|
-
key: n,
|
|
116
|
-
normalize: !1,
|
|
117
|
-
formatData: s
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
program(e) {
|
|
121
|
-
return {
|
|
122
|
-
url: `/api/tv/api/v3/programs/${e}`,
|
|
123
|
-
key: `tv:programs:${e}`,
|
|
124
|
-
normalize: !1,
|
|
125
|
-
formatData: (r) => {
|
|
126
|
-
const t = s(r);
|
|
127
|
-
return t.region = s(r.Region), t;
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
},
|
|
131
|
-
search(e, r, t) {
|
|
132
|
-
const { query: a, dateBroadcast: o, ...n } = r, i = t || 1, p = n.filter || m.AllResults, y = u.urlBuilder("/api/tv/api/v4/search", {
|
|
133
|
-
region: e,
|
|
134
|
-
query: a,
|
|
135
|
-
filter: p,
|
|
136
|
-
...O.getDateBroadcastParams(o),
|
|
137
|
-
...n,
|
|
138
|
-
page: i,
|
|
139
|
-
size: 25
|
|
140
|
-
}), g = Object.values({ filter: p, dateBroadcast: o, ...n }).join(":"), D = ["tv:search", a, e, g, i].join(":");
|
|
141
|
-
return {
|
|
142
|
-
url: y,
|
|
143
|
-
key: D,
|
|
144
|
-
normalize: !1,
|
|
145
|
-
formatData: (v) => {
|
|
146
|
-
const c = s(v);
|
|
147
|
-
return c.results = s(v.Results), c.page = i, c;
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
},
|
|
151
|
-
addFullVideo(e, r) {
|
|
152
|
-
return {
|
|
153
|
-
url: "/api/tv/api/v2/workspace/video",
|
|
154
|
-
key: "tv:add:full:video",
|
|
155
|
-
normalize: !1,
|
|
156
|
-
type: d.POST,
|
|
157
|
-
data: e,
|
|
158
|
-
invalidationKeys: `tv:workspace:video:${r}`
|
|
159
|
-
};
|
|
160
|
-
},
|
|
161
|
-
addAdFreeVideo(e, r) {
|
|
162
|
-
return {
|
|
163
|
-
url: u.urlBuilder(`/api/tv/v4/programs/${e.id}/ad-free`, { customerId: e.customerId, userId: e.userId }),
|
|
164
|
-
key: "tv:add:ad:free:video",
|
|
165
|
-
normalize: !1,
|
|
166
|
-
type: d.POST,
|
|
167
|
-
invalidationKeys: `tv:workspace:video:${r}`
|
|
168
|
-
};
|
|
169
|
-
},
|
|
170
|
-
adFreeCredits(e, r, t) {
|
|
171
|
-
const a = /* @__PURE__ */ new Date();
|
|
172
|
-
a.setHours(0, 0, 0, 0), a.setMinutes(a.getMinutes() + a.getTimezoneOffset());
|
|
173
|
-
const o = l.add(a, 1, "day");
|
|
174
|
-
return {
|
|
175
|
-
url: u.urlBuilder("/api/tv/v4/user-requests", {
|
|
176
|
-
userId: e,
|
|
177
|
-
customerId: r,
|
|
178
|
-
regionCode: t,
|
|
179
|
-
from: l.convertUTCToLocal(a).toISOString(),
|
|
180
|
-
to: l.convertUTCToLocal(o).toISOString()
|
|
181
|
-
}),
|
|
182
|
-
key: "tv:add:free:credits",
|
|
183
|
-
normalize: !1,
|
|
184
|
-
formatData: s
|
|
185
|
-
};
|
|
186
|
-
},
|
|
187
|
-
createAdFreeRequest(e) {
|
|
188
|
-
return {
|
|
189
|
-
url: u.urlBuilder("/api/tv/v4/user-requests/ad-free", { userId: e.userId, customerId: e.customerId }),
|
|
190
|
-
key: "tv:create:add:free:request",
|
|
191
|
-
normalize: !1,
|
|
192
|
-
type: d.POST,
|
|
193
|
-
data: {
|
|
194
|
-
programId: e.programId,
|
|
195
|
-
regionCode: e.regionCode
|
|
196
|
-
},
|
|
197
|
-
invalidationKeys: ["tv:add:free:credits"]
|
|
198
|
-
};
|
|
199
|
-
},
|
|
200
|
-
workspaceVideo(e, r, t) {
|
|
201
|
-
return {
|
|
202
|
-
url: u.urlBuilder(`/api/tv/v4/workspace/programs/${e}`, { userId: r, customerId: t }),
|
|
203
|
-
key: `tv:workspace:video:${e}`,
|
|
204
|
-
formatData: s
|
|
205
|
-
};
|
|
206
|
-
},
|
|
207
|
-
requestProgram(e) {
|
|
208
|
-
return {
|
|
209
|
-
url: "/api/tv/v1/pay-tv/user-requests",
|
|
210
|
-
key: "tv:request:program",
|
|
211
|
-
type: d.POST,
|
|
212
|
-
data: e
|
|
213
|
-
};
|
|
214
|
-
},
|
|
215
|
-
requestProgramUk(e) {
|
|
216
|
-
return {
|
|
217
|
-
url: "/api/tv/api/v1/user-requests/program",
|
|
218
|
-
key: "tv:request:program:uk",
|
|
219
|
-
type: d.POST,
|
|
220
|
-
data: e
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
export {
|
|
225
|
-
h as T,
|
|
226
|
-
O as a
|
|
227
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./app-DcIbciDa.cjs");var c=(e=>(e[e.AllResults=0]="AllResults",e[e.Subtitles=1]="Subtitles",e[e.TitleAndDescription=2]="TitleAndDescription",e))(c||{});function D(){const e=a.LocalStorageHelper.get("cv:holiday:dates");return a.ObjectHelper.isObject(e)?e:{startMonth:12,startDay:15,endMonth:1,endDay:6}}const v={getFormattedDateRange(e,r){return`${a.DateHelper.format(e,"Do MMMM YYYY")} - ${a.DateHelper.format(r,"Do MMMM YYYY")}`},getDateBroadcastParams(e){const r=s=>a.DateHelper.format(s,"YYYY-MM-DD"),t=r(new Date);switch(e){case"yesterday":return{from:r(a.DateHelper.subtract(t,1,"day")),to:t};case"last-week":return{from:r(a.DateHelper.subtract(t,7,"days")),to:t};case"last-2-weeks":return{from:r(a.DateHelper.subtract(t,14,"days")),to:t}}},isHolidayPeriod(){const{startMonth:e,startDay:r,endMonth:t,endDay:s}=D(),o=new Date,l=o.getMonth()+1,u=o.getDate();return l===e&&u>=r||l===t&&u<=s}};function m(e){return Object.entries(e).reduce((r,[t,s])=>(r[t.charAt(0).toLowerCase()+t.slice(1)]=s,r),{})}function H(e){return e.map(m)}function n(e){return e?Array.isArray(e)?H(e):m(e):null}const k={regions(){return{url:"/api/tv/api/v2/regions",key:"tv:regions",normalize:!1,formatData:n}},region(e){return{url:`/api/tv/api/v2/regions/${e}`,key:`tv:region:${e}`,normalize:!1,formatData:n}},dateRange(e){return{url:`/api/tv/api/v2/regions/${e}/daterange`,key:`tv:region:${e}:daterange`,normalize:!1,formatData:n}},channels(e){return{url:a.UrlHelper.urlBuilder("/api/tv/api/v2/channels",{region:e}),key:`tv:channels:${e}`,normalize:!1,formatData:r=>n(r).sort((s,o)=>s.sortOrder-o.sortOrder)}},payTvChannels(){return{url:"/api/tv/v1/pay-tv/channels/all",key:"pay:tv:channels",normalize:!1,formatData:n}},programsByChannel(e,r,t,s){const o=a.UrlHelper.urlBuilder(`/api/tv/api/v3/regions/${e}/channels/programs`,{channel:r,startDate:t,endDate:s}),l=["tv:programs:by:channel",e,r,t,s].join(":");return{url:o,key:l,normalize:!1,formatData:n}},programsByLetter(e,r,t,s){const o=a.UrlHelper.urlBuilder("/api/tv/api/v2/Programs",{regionCode:e,startsWith:r,startDate:t,endDate:s}),l=["tv:programs:by:letter",e,r,t,s].join(":");return{url:o,key:l,normalize:!1,formatData:n}},program(e){return{url:`/api/tv/api/v3/programs/${e}`,key:`tv:programs:${e}`,normalize:!1,formatData:r=>{const t=n(r);return t.region=n(r.Region),t}}},search(e,r,t){const{query:s,dateBroadcast:o,...l}=r,u=t||1,p=l.filter||c.AllResults,f=a.UrlHelper.urlBuilder("/api/tv/api/v4/search",{region:e,query:s,filter:p,...v.getDateBroadcastParams(o),...l,page:u,size:25}),y=Object.values({filter:p,dateBroadcast:o,...l}).join(":"),g=["tv:search",s,e,y,u].join(":");return{url:f,key:g,normalize:!1,formatData:d=>{const i=n(d);return i.results=n(d.Results),i.page=u,i}}},addFullVideo(e,r){return{url:"/api/tv/api/v2/workspace/video",key:"tv:add:full:video",normalize:!1,type:a.HttpVerbs.POST,data:e,invalidationKeys:`tv:workspace:video:${r}`}},addAdFreeVideo(e,r){return{url:a.UrlHelper.urlBuilder(`/api/tv/v4/programs/${e.id}/ad-free`,{customerId:e.customerId,userId:e.userId}),key:"tv:add:ad:free:video",normalize:!1,type:a.HttpVerbs.POST,invalidationKeys:`tv:workspace:video:${r}`}},adFreeCredits(e,r,t){const s=new Date;s.setHours(0,0,0,0),s.setMinutes(s.getMinutes()+s.getTimezoneOffset());const o=a.DateHelper.add(s,1,"day");return{url:a.UrlHelper.urlBuilder("/api/tv/v4/user-requests",{userId:e,customerId:r,regionCode:t,from:a.DateHelper.convertUTCToLocal(s).toISOString(),to:a.DateHelper.convertUTCToLocal(o).toISOString()}),key:"tv:add:free:credits",normalize:!1,formatData:n}},createAdFreeRequest(e){return{url:a.UrlHelper.urlBuilder("/api/tv/v4/user-requests/ad-free",{userId:e.userId,customerId:e.customerId}),key:"tv:create:add:free:request",normalize:!1,type:a.HttpVerbs.POST,data:{programId:e.programId,regionCode:e.regionCode},invalidationKeys:["tv:add:free:credits"]}},workspaceVideo(e,r,t){return{url:a.UrlHelper.urlBuilder(`/api/tv/v4/workspace/programs/${e}`,{userId:r,customerId:t}),key:`tv:workspace:video:${e}`,formatData:n}},requestProgram(e){return{url:"/api/tv/v1/pay-tv/user-requests",key:"tv:request:program",type:a.HttpVerbs.POST,data:e}},requestProgramUk(e){return{url:"/api/tv/api/v1/user-requests/program",key:"tv:request:program:uk",type:a.HttpVerbs.POST,data:e}}};exports.TvRequests=k;exports.TvUtils=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./app-DcIbciDa.cjs"),a=require("./ChevronDownSvg-BI6xUNrZ.cjs"),c=require("./SearchSvg-BU6G1Fs0.cjs"),l="_regionSelect_9qtm0_1",x={regionSelect:l};function d(){return e.jsxRuntimeExports.jsx("div",{className:`${x.regionSelect} partial-loading-background d-flex rounded mb-3`,children:e.jsxRuntimeExports.jsx("div",{className:"svg-container std"})})}const p="_select_dlilk_1",u={select:p};function m(s){const{currentRegion:t,regions:r,appLink:i}=s;return!t||!r?e.jsxRuntimeExports.jsx(d,{}):r.length<=1?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{}):e.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-3",children:[e.jsxRuntimeExports.jsx("span",{children:"Region: "}),e.jsxRuntimeExports.jsxs("div",{className:"dropdown",children:[e.jsxRuntimeExports.jsxs("a",{className:`${u.select} d-flex align-items-center btn btn-outline-dark ms-3`,id:"region-select",type:"button","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[e.jsxRuntimeExports.jsx("span",{children:t.stateFull}),e.jsxRuntimeExports.jsx(e.SvgContainer,{svg:a.ChevronDownSvg})]}),e.jsxRuntimeExports.jsx("div",{className:"dropdown-menu dropdown-menu-end","aria-labelledby":"region-select",children:r.map((n,o)=>n.id===t.id?e.jsxRuntimeExports.jsx(e.React.Fragment,{},o):e.jsxRuntimeExports.jsx(e.AppLink,{className:"dropdown-item",appLink:{...i,args:[n.code]},analyticsData:{region:t.code},analyticsOptions:{actionType:e.UserAction.Select,entity:e.EntityType.Region,location:e.LocationContext.Dropdown,descriptor:e.TvDescriptor.RegionSelect},onClick:()=>s.onClick(n),children:n.stateFull},o))})]})]})}const g="_searchBar_w17nz_1",j={searchBar:g};function h(s){const[t,r]=e.React.useState(s.query??"");function i(n){var o;n.preventDefault(),t&&e.AppLinkHelper.trigger({application:e.AppChannels.TV,action:e.Actions.Tv.SEARCH,args:[(o=s.region)==null?void 0:o.code],params:{query:t}})}return e.jsxRuntimeExports.jsx("form",{onSubmit:i,children:e.jsxRuntimeExports.jsxs("div",{className:`${j.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 programs on ClickView TV",value:t,onChange:n=>r(n.target.value),autoComplete:"off"})]})})}exports.TvRegionSelect=m;exports.TvSearchBar=h;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { j as e, G as i, R as c, ao as l, aP as d, ab as p, ac as m, ad as g, A as u, a as x, b as h } from "./app-2U039aX_.js";
|
|
2
|
-
import { C as f } from "./ChevronDownSvg-BfijmId7.js";
|
|
3
|
-
import { S as v } from "./SearchSvg-BB6oXs1v.js";
|
|
4
|
-
const j = "_regionSelect_9qtm0_1", S = {
|
|
5
|
-
regionSelect: j
|
|
6
|
-
};
|
|
7
|
-
function b() {
|
|
8
|
-
return /* @__PURE__ */ e.jsx("div", { className: `${S.regionSelect} partial-loading-background d-flex rounded mb-3`, children: /* @__PURE__ */ e.jsx("div", { className: "svg-container std" }) });
|
|
9
|
-
}
|
|
10
|
-
const y = "_select_dlilk_1", k = {
|
|
11
|
-
select: y
|
|
12
|
-
};
|
|
13
|
-
function _(s) {
|
|
14
|
-
const { currentRegion: a, regions: t, appLink: o } = s;
|
|
15
|
-
return !a || !t ? /* @__PURE__ */ e.jsx(b, {}) : t.length <= 1 ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : /* @__PURE__ */ e.jsxs("div", { className: "d-flex align-items-center mb-3", children: [
|
|
16
|
-
/* @__PURE__ */ e.jsx("span", { children: "Region: " }),
|
|
17
|
-
/* @__PURE__ */ e.jsxs("div", { className: "dropdown", children: [
|
|
18
|
-
/* @__PURE__ */ e.jsxs(
|
|
19
|
-
"a",
|
|
20
|
-
{
|
|
21
|
-
className: `${k.select} d-flex align-items-center btn btn-outline-dark ms-3`,
|
|
22
|
-
id: "region-select",
|
|
23
|
-
type: "button",
|
|
24
|
-
"data-bs-toggle": "dropdown",
|
|
25
|
-
"aria-haspopup": "true",
|
|
26
|
-
"aria-expanded": "false",
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ e.jsx("span", { children: a.stateFull }),
|
|
29
|
-
/* @__PURE__ */ e.jsx(i, { svg: f })
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
),
|
|
33
|
-
/* @__PURE__ */ e.jsx(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
className: "dropdown-menu dropdown-menu-end",
|
|
37
|
-
"aria-labelledby": "region-select",
|
|
38
|
-
children: t.map((n, r) => n.id === a.id ? /* @__PURE__ */ e.jsx(c.Fragment, {}, r) : /* @__PURE__ */ e.jsx(
|
|
39
|
-
l,
|
|
40
|
-
{
|
|
41
|
-
className: "dropdown-item",
|
|
42
|
-
appLink: {
|
|
43
|
-
...o,
|
|
44
|
-
args: [n.code]
|
|
45
|
-
},
|
|
46
|
-
analyticsData: { region: a.code },
|
|
47
|
-
analyticsOptions: {
|
|
48
|
-
actionType: g.Select,
|
|
49
|
-
entity: m.Region,
|
|
50
|
-
location: p.Dropdown,
|
|
51
|
-
descriptor: d.RegionSelect
|
|
52
|
-
},
|
|
53
|
-
onClick: () => s.onClick(n),
|
|
54
|
-
children: n.stateFull
|
|
55
|
-
},
|
|
56
|
-
r
|
|
57
|
-
))
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
] })
|
|
61
|
-
] });
|
|
62
|
-
}
|
|
63
|
-
const w = "_searchBar_w17nz_1", C = {
|
|
64
|
-
searchBar: w
|
|
65
|
-
};
|
|
66
|
-
function A(s) {
|
|
67
|
-
const [a, t] = c.useState(s.query ?? "");
|
|
68
|
-
function o(n) {
|
|
69
|
-
var r;
|
|
70
|
-
n.preventDefault(), a && u.trigger({
|
|
71
|
-
application: h.TV,
|
|
72
|
-
action: x.Tv.SEARCH,
|
|
73
|
-
args: [(r = s.region) == null ? void 0 : r.code],
|
|
74
|
-
params: { query: a }
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return /* @__PURE__ */ e.jsx("form", { onSubmit: o, children: /* @__PURE__ */ e.jsxs("div", { className: `${C.searchBar} d-flex border border-dark rounded align-items-center mb-3`, children: [
|
|
78
|
-
/* @__PURE__ */ e.jsx(i, { svg: v }),
|
|
79
|
-
/* @__PURE__ */ e.jsx(
|
|
80
|
-
"input",
|
|
81
|
-
{
|
|
82
|
-
type: "text",
|
|
83
|
-
className: "form-control h-100 w-100 py-0 border-0 shadow-none",
|
|
84
|
-
placeholder: "Search for programs on ClickView TV",
|
|
85
|
-
value: a,
|
|
86
|
-
onChange: (n) => t(n.target.value),
|
|
87
|
-
autoComplete: "off"
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
] }) });
|
|
91
|
-
}
|
|
92
|
-
export {
|
|
93
|
-
A as T,
|
|
94
|
-
_ as a
|
|
95
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),j=require("./SearchFilters-D3fLjseM.cjs"),v=require("./UseGetMediaQueryString-BLeJTZt2.cjs"),f=require("./HttpErrorHandlers-CBhvfsvb.cjs"),w=require("./UseAlerts-pIg83NsO.cjs"),k=require("./UseHandleObjectError-CBFN1Ill.cjs"),b=require("./TvSearchBar-5J6420z2.cjs"),g=require("./TvRequests-l_Xv-rcr.cjs"),I=require("./useGetTvActions-CmEBdHbw.cjs"),_=require("./useHandleRegionError-BNRrs6y8.cjs"),P=require("./useSelectedRegion-D3Xsu2Ut.cjs"),M=require("./Actions-BtMRNMuv.cjs"),F=require("./Badge-3MW5GacP.cjs"),V=require("./BadgeListContainer-DLrBuDpU.cjs"),O=require("./useBreakpoints-B-bcgx-L.cjs"),A=require("./UseSelectAllPages-04737Rdu.cjs"),U=require("./TvAdFreeBadge-X2iSf6B3.cjs"),D=require("./TvChannelBadge-B4a1wkQI.cjs"),G=require("./TvProgramTimeBadge-DPJu73xG.cjs"),H=require("./toLocalTime-DF9SIfIt.cjs"),Q="tv.searchResultsEmptyState";function W(i){return e.jsxRuntimeExports.jsx(e.LanguageNamespaceContext.Provider,{value:Q,children:e.jsxRuntimeExports.jsxs(e.EmptyState,{children:[e.jsxRuntimeExports.jsx(e.EmptyState.Image,{src:e.ImageUrls.EmptyStates.SEARCH}),e.jsxRuntimeExports.jsx(e.EmptyState.Heading,{children:i.query?e.jsxRuntimeExports.jsx(e.Text,{phrase:"headingWithQuery",options:{query:i.query}}):e.jsxRuntimeExports.jsx(e.Text,{phrase:"headingWithoutQuery"})}),e.jsxRuntimeExports.jsx(e.EmptyState.Info,{children:e.jsxRuntimeExports.jsx(e.Text,{phrase:"info"})})]})})}const Z="_highlight_107l1_1",$="_badgeOverlay_107l1_8",B={highlight:Z,badgeOverlay:$};function S(i,t){const n=new RegExp(t,"gi");return i.replace(n,u=>`<span class=${B.highlight}>${u}</span>`)}function z(i){var l,h,m;const{program:t,query:n,region:u,getVideoActions:R}=i,[s,x]=e.React.useState(!1),a={application:e.AppChannels.TV,action:e.Actions.Tv.PREVIEW,args:[u.code,t.id]},p=H.toLocalTime(t.startTime,t.timeZone),o=H.toLocalTime(t.stopTime,t.timeZone),E=Math.abs(e.DateHelper.diffBetween(p,o,"milliseconds"));return e.jsxRuntimeExports.jsxs("div",{className:"row g-0 mb-3",children:[e.jsxRuntimeExports.jsx("div",{className:"col-3 flex-column align-items-flex-start pe-2",children:e.jsxRuntimeExports.jsx("div",{className:"rounded rounded-3 overflow-hidden",children:e.jsxRuntimeExports.jsxs(O.BaseImage,{imageType:e.ImageType.Thumbnails,data:t.thumbnailUrl,appLink:a,children:[e.jsxRuntimeExports.jsx(A.ImageFallback,{type:A.ImageFallbackType.Video}),e.jsxRuntimeExports.jsx("div",{className:B.badgeOverlay,children:e.jsxRuntimeExports.jsx(F.Badge,{type:F.BadgeType.DurationApproximate,data:E})})]})})}),e.jsxRuntimeExports.jsxs("div",{className:"col-9 pb-2",children:[e.jsxRuntimeExports.jsx(M.Actions,{actions:R(t),className:"float-end mt-n1",actionsDropdownClassName:"btn btn-link ms-1"}),e.jsxRuntimeExports.jsx(e.AppLink,{appLink:a,children:e.jsxRuntimeExports.jsx("h5",{className:"h4 mb-1 align-middle text-dark text-truncate",title:t.title??"",children:e.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:S(t.title,n)}})})}),e.jsxRuntimeExports.jsxs(V.BadgeListContainer,{className:"mb-1",children:[t.channelLogoUrl&&e.jsxRuntimeExports.jsx(D.TvChannelBadge,{logoUrl:t.channelLogoUrl,className:"me-1",small:!0}),e.jsxRuntimeExports.jsx(G.TvProgramTimeBadge,{program:t,className:"me-1",showDate:!0,showEndTime:!0,small:!0}),t.hasAdsFree&&e.jsxRuntimeExports.jsx(U.TvAdFreeBadge,{small:!0})]}),e.jsxRuntimeExports.jsx("div",{className:"mb-1",children:e.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:S(t.description,n)}})}),!!((l=t.subtitleHits)!=null&&l.length)&&e.jsxRuntimeExports.jsxs("div",{children:[(h=t.subtitleHits)==null?void 0:h.map((c,d)=>!s&&d>1?e.jsxRuntimeExports.jsx(e.React.Fragment,{},d):e.jsxRuntimeExports.jsxs(e.AppLink,{appLink:{...a,args:[...a.args],params:{currentTime:c.HitStartTime/1e3}},className:"d-block text-dark",children:[e.jsxRuntimeExports.jsxs("span",{className:"fw-semibold",children:["[",e.DateHelper.format(e.DateHelper.add(p,c.HitStartTime,"milliseconds"),"h:mm:ss a"),"]"]})," ",e.jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:S(c.SrtFragment,n)}})]},d)),!s&&((m=t.subtitleHits)==null?void 0:m.length)>2&&e.jsxRuntimeExports.jsx("div",{className:"text-info cursor-pointer",onClick:()=>x(!0),children:"Show more"})]})]})]})}C.defaultProps={queryParams:{}};function C(i){var q;const{queryParams:t}=i,{query:n}=t,u=e.useGetFetch(),R=w.useAlerts(),s=e.useBasicFetch(g.TvRequests.region(i.region)),x=e.useBasicFetch(g.TvRequests.regions()),a=e.useBasicFetch(s.data&&g.TvRequests.channels(s.data.code));s.hasCompleted&&!s.data&&f.handleHttpError(e.HttpStatus.BadRequest);const{setRegion:p}=P.useSelectedRegion();_.useHandleRegionError(s),k.useHandleObjectError([x,a]),e.useSetPageMetadata({title:n??""});const{items:o,hasMore:E,isFetching:l,nextCursor:h}=v.useInfiniteList(s.data&&m,c,d,r=>r.results,r=>r.page*25>r.totalNumber?null:(r.page+1).toString());function m(r){return g.TvRequests.search(s.data.code,t,+r)}function c(r){return u(m(r))}function d(r,T){if(r===1)return f.handleHttpError(T);R.error("Something went wrong")}const L=I.useGetTvActions("video-list",s.data),y=s.hasCompleted&&x.hasCompleted&&a.hasCompleted,N=[j.Filters.TvChannel(a.data),j.Filters.TvDateBroadcast(),j.Filters.TvFields()];return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(b.TvSearchBar,{query:n,region:s.data}),e.jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-between mb-2",children:[e.jsxRuntimeExports.jsx(j.SearchFilters,{queryParams:t,mainFilters:N,analyticsOptions:{entity:e.EntityType.SearchResults,location:e.LocationContext.SearchFilters},appLink:{application:e.AppChannels.TV,action:e.Actions.Tv.SEARCH,args:[(q=s.data)==null?void 0:q.code]},hideDivider:!0,isFetchingOptions:!y}),e.jsxRuntimeExports.jsx(b.TvRegionSelect,{currentRegion:s.data,regions:x.data,appLink:{application:e.AppChannels.TV,action:e.Actions.Tv.SEARCH,params:{query:n}},onClick:p})]}),y&&e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:o!=null&&o.length?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[o.map((r,T)=>e.jsxRuntimeExports.jsx(z,{program:r,query:n,region:s.data,getVideoActions:L},T)),(E||l)&&e.jsxRuntimeExports.jsx(v.InfiniteScrollFooter,{isFetching:l,fetchNext:c,nextCursor:h})]}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:l?e.jsxRuntimeExports.jsx("div",{className:"m-n2",children:e.jsxRuntimeExports.jsx(v.PartialVideoList,{})}):e.jsxRuntimeExports.jsx(W,{query:n})})})]})}exports.TvSearchResultsView=C;
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { j as e, ai as q, aj as x, ak as P, B as y, R as B, ay as S, a as N, b as C, ap as V, ao as E, ah as M, a1 as b, aR as O, l as D, ab as U, ac as W } from "./app-2U039aX_.js";
|
|
2
|
-
import { F as R, S as $ } from "./SearchFilters-C_yEnumc.js";
|
|
3
|
-
import { u as G, I as Q, P as Z } from "./UseGetMediaQueryString-Dc_jP0rr.js";
|
|
4
|
-
import { h as I } from "./HttpErrorHandlers-DKqNIMOg.js";
|
|
5
|
-
import { u as z } from "./UseAlerts-B2BbQeN3.js";
|
|
6
|
-
import { u as J } from "./UseHandleObjectError-DAhDbPEo.js";
|
|
7
|
-
import { T as K, a as X } from "./TvSearchBar-KZqcg7G0.js";
|
|
8
|
-
import { T as f } from "./TvRequests-Bcy68aT5.js";
|
|
9
|
-
import { u as Y } from "./useGetTvActions-DENrO3wZ.js";
|
|
10
|
-
import { u as ee } from "./useHandleRegionError-BNxhNPKP.js";
|
|
11
|
-
import { u as ae } from "./useSelectedRegion-7_2s4QQF.js";
|
|
12
|
-
import { A as te } from "./Actions-DfeKDy3k.js";
|
|
13
|
-
import { B as se, a as re } from "./Badge-Ddz0Il5v.js";
|
|
14
|
-
import { B as ne } from "./BadgeListContainer-CqwUuWKL.js";
|
|
15
|
-
import { B as ie } from "./useBreakpoints-37V489ap.js";
|
|
16
|
-
import { I as oe, a as le } from "./UseSelectAllPages-Cnk3MEAt.js";
|
|
17
|
-
import { T as ce } from "./TvAdFreeBadge-BDFn2ujd.js";
|
|
18
|
-
import { T as me } from "./TvChannelBadge-Doqs12s9.js";
|
|
19
|
-
import { T as de } from "./TvProgramTimeBadge-BtQKNLz2.js";
|
|
20
|
-
import { t as w } from "./toLocalTime-Bt8Uy4Kq.js";
|
|
21
|
-
const he = "tv.searchResultsEmptyState";
|
|
22
|
-
function ue(n) {
|
|
23
|
-
return /* @__PURE__ */ e.jsx(q.Provider, { value: he, children: /* @__PURE__ */ e.jsxs(x, { children: [
|
|
24
|
-
/* @__PURE__ */ e.jsx(x.Image, { src: P.EmptyStates.SEARCH }),
|
|
25
|
-
/* @__PURE__ */ e.jsx(x.Heading, { children: n.query ? /* @__PURE__ */ e.jsx(y, { phrase: "headingWithQuery", options: { query: n.query } }) : /* @__PURE__ */ e.jsx(y, { phrase: "headingWithoutQuery" }) }),
|
|
26
|
-
/* @__PURE__ */ e.jsx(x.Info, { children: /* @__PURE__ */ e.jsx(y, { phrase: "info" }) })
|
|
27
|
-
] }) });
|
|
28
|
-
}
|
|
29
|
-
const pe = "_highlight_107l1_1", ge = "_badgeOverlay_107l1_8", A = {
|
|
30
|
-
highlight: pe,
|
|
31
|
-
badgeOverlay: ge
|
|
32
|
-
};
|
|
33
|
-
function F(n, a) {
|
|
34
|
-
const r = new RegExp(a, "gi");
|
|
35
|
-
return n.replace(r, (m) => `<span class=${A.highlight}>${m}</span>`);
|
|
36
|
-
}
|
|
37
|
-
function xe(n) {
|
|
38
|
-
var l, g, h;
|
|
39
|
-
const { program: a, query: r, region: m, getVideoActions: j } = n, [t, d] = B.useState(!1), i = {
|
|
40
|
-
application: C.TV,
|
|
41
|
-
action: N.Tv.PREVIEW,
|
|
42
|
-
args: [m.code, a.id]
|
|
43
|
-
}, p = w(a.startTime, a.timeZone), o = w(a.stopTime, a.timeZone), T = Math.abs(S.diffBetween(p, o, "milliseconds"));
|
|
44
|
-
return /* @__PURE__ */ e.jsxs("div", { className: "row g-0 mb-3", children: [
|
|
45
|
-
/* @__PURE__ */ e.jsx("div", { className: "col-3 flex-column align-items-flex-start pe-2", children: /* @__PURE__ */ e.jsx("div", { className: "rounded rounded-3 overflow-hidden", children: /* @__PURE__ */ e.jsxs(
|
|
46
|
-
ie,
|
|
47
|
-
{
|
|
48
|
-
imageType: V.Thumbnails,
|
|
49
|
-
data: a.thumbnailUrl,
|
|
50
|
-
appLink: i,
|
|
51
|
-
children: [
|
|
52
|
-
/* @__PURE__ */ e.jsx(oe, { type: le.Video }),
|
|
53
|
-
/* @__PURE__ */ e.jsx("div", { className: A.badgeOverlay, children: /* @__PURE__ */ e.jsx(
|
|
54
|
-
se,
|
|
55
|
-
{
|
|
56
|
-
type: re.DurationApproximate,
|
|
57
|
-
data: T
|
|
58
|
-
}
|
|
59
|
-
) })
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
) }) }),
|
|
63
|
-
/* @__PURE__ */ e.jsxs("div", { className: "col-9 pb-2", children: [
|
|
64
|
-
/* @__PURE__ */ e.jsx(
|
|
65
|
-
te,
|
|
66
|
-
{
|
|
67
|
-
actions: j(a),
|
|
68
|
-
className: "float-end mt-n1",
|
|
69
|
-
actionsDropdownClassName: "btn btn-link ms-1"
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
/* @__PURE__ */ e.jsx(E, { appLink: i, children: /* @__PURE__ */ e.jsx("h5", { className: "h4 mb-1 align-middle text-dark text-truncate", title: a.title ?? "", children: /* @__PURE__ */ e.jsx("span", { dangerouslySetInnerHTML: {
|
|
73
|
-
__html: F(a.title, r)
|
|
74
|
-
} }) }) }),
|
|
75
|
-
/* @__PURE__ */ e.jsxs(ne, { className: "mb-1", children: [
|
|
76
|
-
a.channelLogoUrl && /* @__PURE__ */ e.jsx(me, { logoUrl: a.channelLogoUrl, className: "me-1", small: !0 }),
|
|
77
|
-
/* @__PURE__ */ e.jsx(de, { program: a, className: "me-1", showDate: !0, showEndTime: !0, small: !0 }),
|
|
78
|
-
a.hasAdsFree && /* @__PURE__ */ e.jsx(ce, { small: !0 })
|
|
79
|
-
] }),
|
|
80
|
-
/* @__PURE__ */ e.jsx("div", { className: "mb-1", children: /* @__PURE__ */ e.jsx("span", { dangerouslySetInnerHTML: {
|
|
81
|
-
__html: F(a.description, r)
|
|
82
|
-
} }) }),
|
|
83
|
-
!!((l = a.subtitleHits) != null && l.length) && /* @__PURE__ */ e.jsxs("div", { children: [
|
|
84
|
-
(g = a.subtitleHits) == null ? void 0 : g.map((c, u) => !t && u > 1 ? /* @__PURE__ */ e.jsx(B.Fragment, {}, u) : /* @__PURE__ */ e.jsxs(
|
|
85
|
-
E,
|
|
86
|
-
{
|
|
87
|
-
appLink: {
|
|
88
|
-
...i,
|
|
89
|
-
args: [...i.args],
|
|
90
|
-
params: {
|
|
91
|
-
currentTime: c.HitStartTime / 1e3
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
className: "d-block text-dark",
|
|
95
|
-
children: [
|
|
96
|
-
/* @__PURE__ */ e.jsxs("span", { className: "fw-semibold", children: [
|
|
97
|
-
"[",
|
|
98
|
-
S.format(S.add(p, c.HitStartTime, "milliseconds"), "h:mm:ss a"),
|
|
99
|
-
"]"
|
|
100
|
-
] }),
|
|
101
|
-
" ",
|
|
102
|
-
/* @__PURE__ */ e.jsx("span", { dangerouslySetInnerHTML: {
|
|
103
|
-
__html: F(c.SrtFragment, r)
|
|
104
|
-
} })
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
u
|
|
108
|
-
)),
|
|
109
|
-
!t && ((h = a.subtitleHits) == null ? void 0 : h.length) > 2 && /* @__PURE__ */ e.jsx("div", { className: "text-info cursor-pointer", onClick: () => d(!0), children: "Show more" })
|
|
110
|
-
] })
|
|
111
|
-
] })
|
|
112
|
-
] });
|
|
113
|
-
}
|
|
114
|
-
fe.defaultProps = {
|
|
115
|
-
queryParams: {}
|
|
116
|
-
};
|
|
117
|
-
function fe(n) {
|
|
118
|
-
var L;
|
|
119
|
-
const { queryParams: a } = n, { query: r } = a, m = M(), j = z(), t = b(f.region(n.region)), d = b(f.regions()), i = b(
|
|
120
|
-
t.data && f.channels(t.data.code)
|
|
121
|
-
);
|
|
122
|
-
t.hasCompleted && !t.data && I(O.BadRequest);
|
|
123
|
-
const { setRegion: p } = ae();
|
|
124
|
-
ee(t), J([d, i]), D({ title: r ?? "" });
|
|
125
|
-
const {
|
|
126
|
-
items: o,
|
|
127
|
-
hasMore: T,
|
|
128
|
-
isFetching: l,
|
|
129
|
-
nextCursor: g
|
|
130
|
-
} = G(
|
|
131
|
-
t.data && h,
|
|
132
|
-
c,
|
|
133
|
-
u,
|
|
134
|
-
(s) => s.results,
|
|
135
|
-
(s) => s.page * 25 > s.totalNumber ? null : (s.page + 1).toString()
|
|
136
|
-
);
|
|
137
|
-
function h(s) {
|
|
138
|
-
return f.search(
|
|
139
|
-
t.data.code,
|
|
140
|
-
a,
|
|
141
|
-
+s
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
function c(s) {
|
|
145
|
-
return m(h(s));
|
|
146
|
-
}
|
|
147
|
-
function u(s, v) {
|
|
148
|
-
if (s === 1)
|
|
149
|
-
return I(v);
|
|
150
|
-
j.error("Something went wrong");
|
|
151
|
-
}
|
|
152
|
-
const k = Y("video-list", t.data), H = t.hasCompleted && d.hasCompleted && i.hasCompleted, _ = [
|
|
153
|
-
R.TvChannel(i.data),
|
|
154
|
-
R.TvDateBroadcast(),
|
|
155
|
-
R.TvFields()
|
|
156
|
-
];
|
|
157
|
-
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
158
|
-
/* @__PURE__ */ e.jsx(K, { query: r, region: t.data }),
|
|
159
|
-
/* @__PURE__ */ e.jsxs("div", { className: "d-flex justify-content-between mb-2", children: [
|
|
160
|
-
/* @__PURE__ */ e.jsx(
|
|
161
|
-
$,
|
|
162
|
-
{
|
|
163
|
-
queryParams: a,
|
|
164
|
-
mainFilters: _,
|
|
165
|
-
analyticsOptions: {
|
|
166
|
-
entity: W.SearchResults,
|
|
167
|
-
location: U.SearchFilters
|
|
168
|
-
},
|
|
169
|
-
appLink: { application: C.TV, action: N.Tv.SEARCH, args: [(L = t.data) == null ? void 0 : L.code] },
|
|
170
|
-
hideDivider: !0,
|
|
171
|
-
isFetchingOptions: !H
|
|
172
|
-
}
|
|
173
|
-
),
|
|
174
|
-
/* @__PURE__ */ e.jsx(
|
|
175
|
-
X,
|
|
176
|
-
{
|
|
177
|
-
currentRegion: t.data,
|
|
178
|
-
regions: d.data,
|
|
179
|
-
appLink: {
|
|
180
|
-
application: C.TV,
|
|
181
|
-
action: N.Tv.SEARCH,
|
|
182
|
-
params: { query: r }
|
|
183
|
-
},
|
|
184
|
-
onClick: p
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
] }),
|
|
188
|
-
H && /* @__PURE__ */ e.jsx(e.Fragment, { children: o != null && o.length ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
189
|
-
o.map((s, v) => /* @__PURE__ */ e.jsx(
|
|
190
|
-
xe,
|
|
191
|
-
{
|
|
192
|
-
program: s,
|
|
193
|
-
query: r,
|
|
194
|
-
region: t.data,
|
|
195
|
-
getVideoActions: k
|
|
196
|
-
},
|
|
197
|
-
v
|
|
198
|
-
)),
|
|
199
|
-
(T || l) && /* @__PURE__ */ e.jsx(
|
|
200
|
-
Q,
|
|
201
|
-
{
|
|
202
|
-
isFetching: l,
|
|
203
|
-
fetchNext: c,
|
|
204
|
-
nextCursor: g
|
|
205
|
-
}
|
|
206
|
-
)
|
|
207
|
-
] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: l ? /* @__PURE__ */ e.jsx("div", { className: "m-n2", children: /* @__PURE__ */ e.jsx(Z, {}) }) : /* @__PURE__ */ e.jsx(ue, { query: r }) }) })
|
|
208
|
-
] });
|
|
209
|
-
}
|
|
210
|
-
export {
|
|
211
|
-
fe as TvSearchResultsView
|
|
212
|
-
};
|
package/dist/TvTabs-CrQVKuod.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { j as t, ao as v, a as c, b as o, B as g, ab as h, ac as A, ad as f, A as l, L as d } from "./app-2U039aX_.js";
|
|
2
|
-
import { t as p } from "./toLocalTime-Bt8Uy4Kq.js";
|
|
3
|
-
import { a as x } from "./TvRequests-Bcy68aT5.js";
|
|
4
|
-
import { P as L } from "./PillTabSelector-B5V2rqf0.js";
|
|
5
|
-
const b = "tv.infoAlert";
|
|
6
|
-
function D(a) {
|
|
7
|
-
var s;
|
|
8
|
-
return /* @__PURE__ */ t.jsx("div", { className: "mb-3", children: /* @__PURE__ */ t.jsx("div", { children: a.dateRange && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
9
|
-
v,
|
|
10
|
-
{
|
|
11
|
-
appLink: {
|
|
12
|
-
application: o.TV,
|
|
13
|
-
action: c.Tv.BROADCAST_CONTENT,
|
|
14
|
-
args: [(s = a.region) == null ? void 0 : s.code]
|
|
15
|
-
},
|
|
16
|
-
className: "text-info",
|
|
17
|
-
children: /* @__PURE__ */ t.jsxs("p", { className: "fw-semibold mb-0 me-2", children: [
|
|
18
|
-
/* @__PURE__ */ t.jsx(g, { namespace: b, phrase: "programsAvailable" }),
|
|
19
|
-
x.getFormattedDateRange(
|
|
20
|
-
p(a.dateRange.startDate, a.dateRange.timeZone),
|
|
21
|
-
p(a.dateRange.endDate, a.dateRange.timeZone)
|
|
22
|
-
)
|
|
23
|
-
] })
|
|
24
|
-
}
|
|
25
|
-
) }) }) });
|
|
26
|
-
}
|
|
27
|
-
const T = "tv.tvTabs", i = d.encloseNamespace(T), n = {
|
|
28
|
-
channels: {
|
|
29
|
-
application: o.TV,
|
|
30
|
-
action: c.Tv.CHANNELS
|
|
31
|
-
},
|
|
32
|
-
programs: {
|
|
33
|
-
application: o.TV,
|
|
34
|
-
action: c.Tv.PROGRAMS
|
|
35
|
-
},
|
|
36
|
-
tvGuide: {
|
|
37
|
-
application: o.TV,
|
|
38
|
-
action: c.Tv.TV_GUIDE
|
|
39
|
-
}
|
|
40
|
-
}, r = {
|
|
41
|
-
actionType: f.Click,
|
|
42
|
-
entity: A.Url,
|
|
43
|
-
location: h.MagicTabs
|
|
44
|
-
};
|
|
45
|
-
function G(a) {
|
|
46
|
-
const { active: s, currentRegion: e } = a, m = [{
|
|
47
|
-
name: i("channels"),
|
|
48
|
-
appLink: {
|
|
49
|
-
...n.channels,
|
|
50
|
-
args: [e == null ? void 0 : e.code]
|
|
51
|
-
},
|
|
52
|
-
active: s === "channels",
|
|
53
|
-
analyticsData: {
|
|
54
|
-
name: i("channels"),
|
|
55
|
-
url: l.getHref(n.channels)
|
|
56
|
-
},
|
|
57
|
-
analyticsOptions: r
|
|
58
|
-
}, {
|
|
59
|
-
name: i("programs"),
|
|
60
|
-
appLink: {
|
|
61
|
-
...n.programs,
|
|
62
|
-
args: [e == null ? void 0 : e.code]
|
|
63
|
-
},
|
|
64
|
-
active: s === "programs",
|
|
65
|
-
analyticsData: {
|
|
66
|
-
name: d.getPhrase(T, "programs"),
|
|
67
|
-
url: l.getHref(n.programs)
|
|
68
|
-
},
|
|
69
|
-
analyticsOptions: r
|
|
70
|
-
}];
|
|
71
|
-
return a.showTvGuide && m.push({
|
|
72
|
-
name: i("tvGuide"),
|
|
73
|
-
appLink: {
|
|
74
|
-
...n.tvGuide,
|
|
75
|
-
args: [e == null ? void 0 : e.code]
|
|
76
|
-
},
|
|
77
|
-
active: s === "tv-guide",
|
|
78
|
-
analyticsData: {
|
|
79
|
-
name: i("tvGuide"),
|
|
80
|
-
url: l.getHref(n.tvGuide)
|
|
81
|
-
},
|
|
82
|
-
analyticsOptions: r
|
|
83
|
-
}), /* @__PURE__ */ t.jsx("div", { className: "mb-3", children: /* @__PURE__ */ t.jsx(L, { tabs: m }) });
|
|
84
|
-
}
|
|
85
|
-
export {
|
|
86
|
-
G as T,
|
|
87
|
-
D as a
|
|
88
|
-
};
|
package/dist/TvTabs-JuCI2Ea7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./app-DcIbciDa.cjs"),l=require("./toLocalTime-DF9SIfIt.cjs"),p=require("./TvRequests-l_Xv-rcr.cjs"),m=require("./PillTabSelector-yR52s5ix.cjs"),T="tv.infoAlert";function v(a){var n;return e.jsxRuntimeExports.jsx("div",{className:"mb-3",children:e.jsxRuntimeExports.jsx("div",{children:a.dateRange&&e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsx(e.AppLink,{appLink:{application:e.AppChannels.TV,action:e.Actions.Tv.BROADCAST_CONTENT,args:[(n=a.region)==null?void 0:n.code]},className:"text-info",children:e.jsxRuntimeExports.jsxs("p",{className:"fw-semibold mb-0 me-2",children:[e.jsxRuntimeExports.jsx(e.Text,{namespace:T,phrase:"programsAvailable"}),p.TvUtils.getFormattedDateRange(l.toLocalTime(a.dateRange.startDate,a.dateRange.timeZone),l.toLocalTime(a.dateRange.endDate,a.dateRange.timeZone))]})})})})})}const r="tv.tvTabs",i=e.LanguageService.encloseNamespace(r),s={channels:{application:e.AppChannels.TV,action:e.Actions.Tv.CHANNELS},programs:{application:e.AppChannels.TV,action:e.Actions.Tv.PROGRAMS},tvGuide:{application:e.AppChannels.TV,action:e.Actions.Tv.TV_GUIDE}},c={actionType:e.UserAction.Click,entity:e.EntityType.Url,location:e.LocationContext.MagicTabs};function x(a){const{active:n,currentRegion:t}=a,o=[{name:i("channels"),appLink:{...s.channels,args:[t==null?void 0:t.code]},active:n==="channels",analyticsData:{name:i("channels"),url:e.AppLinkHelper.getHref(s.channels)},analyticsOptions:c},{name:i("programs"),appLink:{...s.programs,args:[t==null?void 0:t.code]},active:n==="programs",analyticsData:{name:e.LanguageService.getPhrase(r,"programs"),url:e.AppLinkHelper.getHref(s.programs)},analyticsOptions:c}];return a.showTvGuide&&o.push({name:i("tvGuide"),appLink:{...s.tvGuide,args:[t==null?void 0:t.code]},active:n==="tv-guide",analyticsData:{name:i("tvGuide"),url:e.AppLinkHelper.getHref(s.tvGuide)},analyticsOptions:c}),e.jsxRuntimeExports.jsx("div",{className:"mb-3",children:e.jsxRuntimeExports.jsx(m.PillTabSelector,{tabs:o})})}exports.TvInfoAlert=v;exports.TvTabs=x;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r={isNumber(e){return r.isType(e,"number")},isString(e){return r.isType(e,"string")},isType(e,s){return typeof e===s}};exports.TypeHelper=r;
|