@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,11 @@
|
|
|
1
|
+
import { j as a, B as d } from "./app-2U039aX_.js";
|
|
2
|
+
const t = "_adFreeBadge_1pwvw_1", l = "_small_1pwvw_5", s = {
|
|
3
|
+
adFreeBadge: t,
|
|
4
|
+
small: l
|
|
5
|
+
}, r = "tv.adFreeBadge";
|
|
6
|
+
function n(e) {
|
|
7
|
+
return /* @__PURE__ */ a.jsx("div", { className: `${s.adFreeBadge} ${e.small ? s.small : ""} ${e.className || ""} d-flex align-items-center rounded bg-red text-white fw-semibold px-1 font-size-sm`, children: /* @__PURE__ */ a.jsx(d, { namespace: r, phrase: "adFree" }) });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
n as T
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./app-DcIbciDa.cjs"),d="_adFreeBadge_1pwvw_1",t="_small_1pwvw_5",a={adFreeBadge:d,small:t},r="tv.adFreeBadge";function l(s){return e.jsxRuntimeExports.jsx("div",{className:`${a.adFreeBadge} ${s.small?a.small:""} ${s.className||""} d-flex align-items-center rounded bg-red text-white fw-semibold px-1 font-size-sm`,children:e.jsxRuntimeExports.jsx(e.Text,{namespace:r,phrase:"adFree"})})}exports.TvAdFreeBadge=l;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { a1 as o, j as e, P as x, L as h, ak as g, B as d, x as m, a3 as j } from "./app-2U039aX_.js";
|
|
2
|
+
import { u as b } from "./UseHandleDialogError-BJHsOnKn.js";
|
|
3
|
+
import { T as n } from "./TvRequests-Bcy68aT5.js";
|
|
4
|
+
import { u as C } from "./useHandleRegionError-BNxhNPKP.js";
|
|
5
|
+
const a = "tv.adFreeRequest", u = h.encloseNamespace(a);
|
|
6
|
+
function R(t) {
|
|
7
|
+
const r = o(j.currentUser()), i = o(n.region(t.region)), l = o(n.program(t.id)), s = o(
|
|
8
|
+
r.data && i.data && n.adFreeCredits(
|
|
9
|
+
r.data.id,
|
|
10
|
+
r.data.customerId,
|
|
11
|
+
i.data.code
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
C(i, !0), b(l.statusCode);
|
|
15
|
+
const c = r.hasCompleted && i.hasCompleted && l.hasCompleted && s.hasCompleted, p = s.data.maxAvailableCredit - s.data.userRequests;
|
|
16
|
+
return /* @__PURE__ */ e.jsxs(
|
|
17
|
+
x,
|
|
18
|
+
{
|
|
19
|
+
title: u("title"),
|
|
20
|
+
closePopup: t.closePopup,
|
|
21
|
+
showLoadingSpinner: !c,
|
|
22
|
+
children: [
|
|
23
|
+
c && /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
|
|
24
|
+
/* @__PURE__ */ e.jsx("img", { src: g.General.PAPER_PLANE, className: "img-fluid w-50 mb-3", draggable: !1 }),
|
|
25
|
+
/* @__PURE__ */ e.jsx("h2", { className: "h4 mb-2", children: /* @__PURE__ */ e.jsx(d, { namespace: a, phrase: "requestSent" }) }),
|
|
26
|
+
/* @__PURE__ */ e.jsx("div", { className: "bg-dark rounded-pill text-white d-inline-block fw-semibold border border-dark py-0 px-2 mb-2", children: /* @__PURE__ */ e.jsx(d, { namespace: a, phrase: "remaining", options: { smartCount: p } }) }),
|
|
27
|
+
/* @__PURE__ */ e.jsxs("div", { className: "pb-1", children: [
|
|
28
|
+
/* @__PURE__ */ e.jsx("p", { className: "mb-2", children: /* @__PURE__ */ e.jsx(d, { namespace: a, phrase: "requestDaily", options: { dailyLimit: s.data.maxAvailableCredit } }) }),
|
|
29
|
+
/* @__PURE__ */ e.jsx("p", { className: "mb-3", children: /* @__PURE__ */ e.jsx(d, { namespace: a, phrase: "requestHours", options: { dailyLimit: s.data.maxAvailableCredit } }) })
|
|
30
|
+
] })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(
|
|
33
|
+
m.Cancel,
|
|
34
|
+
{
|
|
35
|
+
text: u("close"),
|
|
36
|
+
onClick: t.closePopup,
|
|
37
|
+
variant: "link"
|
|
38
|
+
}
|
|
39
|
+
) })
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
R as TvAdFreeRequestView
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),c=require("./UseHandleDialogError-PbyWsVaT.cjs"),o=require("./TvRequests-l_Xv-rcr.cjs"),x=require("./useHandleRegionError-BNRrs6y8.cjs"),t="tv.adFreeRequest",d=e.LanguageService.encloseNamespace(t);function m(r){const a=e.useBasicFetch(e.UserRequests.currentUser()),i=e.useBasicFetch(o.TvRequests.region(r.region)),n=e.useBasicFetch(o.TvRequests.program(r.id)),s=e.useBasicFetch(a.data&&i.data&&o.TvRequests.adFreeCredits(a.data.id,a.data.customerId,i.data.code));x.useHandleRegionError(i,!0),c.useHandleDialogError(n.statusCode);const u=a.hasCompleted&&i.hasCompleted&&n.hasCompleted&&s.hasCompleted,l=s.data.maxAvailableCredit-s.data.userRequests;return e.jsxRuntimeExports.jsxs(e.Popup,{title:d("title"),closePopup:r.closePopup,showLoadingSpinner:!u,children:[u&&e.jsxRuntimeExports.jsxs("div",{className:"text-center",children:[e.jsxRuntimeExports.jsx("img",{src:e.ImageUrls.General.PAPER_PLANE,className:"img-fluid w-50 mb-3",draggable:!1}),e.jsxRuntimeExports.jsx("h2",{className:"h4 mb-2",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:t,phrase:"requestSent"})}),e.jsxRuntimeExports.jsx("div",{className:"bg-dark rounded-pill text-white d-inline-block fw-semibold border border-dark py-0 px-2 mb-2",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:t,phrase:"remaining",options:{smartCount:l}})}),e.jsxRuntimeExports.jsxs("div",{className:"pb-1",children:[e.jsxRuntimeExports.jsx("p",{className:"mb-2",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:t,phrase:"requestDaily",options:{dailyLimit:s.data.maxAvailableCredit}})}),e.jsxRuntimeExports.jsx("p",{className:"mb-3",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:t,phrase:"requestHours",options:{dailyLimit:s.data.maxAvailableCredit}})})]})]}),e.jsxRuntimeExports.jsx(e.PopupButtons,{children:e.jsxRuntimeExports.jsx(e.PopupButtons.Cancel,{text:d("close"),onClick:r.closePopup,variant:"link"})})]})}exports.TvAdFreeRequestView=m;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { j as e, w as B, a0 as G, a1 as g, a3 as L, A as b, a as j, b as F, aO as v, L as $, br as R, a9 as V, aa as U, ab as _, aP as w, ac as I, ad as k, R as H, ak as M, P as Y, B as u, x as C } from "./app-2U039aX_.js";
|
|
2
|
+
import { u as J } from "./UseHandleDialogError-BJHsOnKn.js";
|
|
3
|
+
import { T as m, a as Q } from "./TvRequests-Bcy68aT5.js";
|
|
4
|
+
import { u as W } from "./UseAlerts-B2BbQeN3.js";
|
|
5
|
+
const z = "_selected_ii58d_1", K = "_disabled_ii58d_4", O = {
|
|
6
|
+
selected: z,
|
|
7
|
+
disabled: K
|
|
8
|
+
};
|
|
9
|
+
function P(a) {
|
|
10
|
+
var i, d, A, t;
|
|
11
|
+
function n() {
|
|
12
|
+
var s;
|
|
13
|
+
(s = a.option) != null && s.disabled || a.onSelect(a.option);
|
|
14
|
+
}
|
|
15
|
+
let r = "text-center cursor-pointer p-3 border rounded-3 mx-2 user-select-none w-50";
|
|
16
|
+
return a.selected && (r += ` border-info ${O.selected}`), (i = a.option) != null && i.disabled && (r += ` ${O.disabled}`), /* @__PURE__ */ e.jsxs(B, { onClick: n, className: r, children: [
|
|
17
|
+
((d = a.option) == null ? void 0 : d.imageUrl) && /* @__PURE__ */ e.jsx("img", { src: a.option.imageUrl, className: `img-fluid my-3 ${a.option.imageClassName ?? ""}`, draggable: !1 }),
|
|
18
|
+
((A = a.option) == null ? void 0 : A.title) && /* @__PURE__ */ e.jsx("h2", { className: "h3", children: a.option.title }),
|
|
19
|
+
((t = a.option) == null ? void 0 : t.description) && /* @__PURE__ */ e.jsx("p", { className: "mb-0", dangerouslySetInnerHTML: { __html: a.option.description } }),
|
|
20
|
+
a.children
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
const X = "tv.addRequests", p = $.encloseNamespace(X);
|
|
24
|
+
function Z(a, n) {
|
|
25
|
+
const r = G(), i = W(), d = g(L.currentUser()), A = g(L.workspace()), t = g(m.program(a)), s = g(m.region(n)), l = g(
|
|
26
|
+
t.data && d.data && m.workspaceVideo(
|
|
27
|
+
t.data.id,
|
|
28
|
+
d.data.id,
|
|
29
|
+
d.data.customerId
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
async function N() {
|
|
33
|
+
var c;
|
|
34
|
+
try {
|
|
35
|
+
await r(m.createAdFreeRequest({
|
|
36
|
+
programId: t.data.id,
|
|
37
|
+
regionCode: s.data.code,
|
|
38
|
+
userId: d.data.id,
|
|
39
|
+
customerId: d.data.customerId
|
|
40
|
+
})), i.success({
|
|
41
|
+
heading: R.Success,
|
|
42
|
+
message: p("requestAdFreeSuccess", { video: t.data.title }),
|
|
43
|
+
type: v.Success
|
|
44
|
+
}), b.trigger({
|
|
45
|
+
application: F.TV,
|
|
46
|
+
action: j.Tv.AD_FREE_REQUEST,
|
|
47
|
+
args: [s.data.code, t.data.id]
|
|
48
|
+
}), V.logUserAction(
|
|
49
|
+
{ id: t.data.id, name: t.data.title },
|
|
50
|
+
{
|
|
51
|
+
actionType: k.Submit,
|
|
52
|
+
entity: I.Video,
|
|
53
|
+
descriptor: w.AdFreeRequest,
|
|
54
|
+
location: _.Popup,
|
|
55
|
+
workflowPhase: U.Complete
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
} catch (D) {
|
|
59
|
+
const T = (c = D.responseJSON) == null ? void 0 : c.message;
|
|
60
|
+
if (T) {
|
|
61
|
+
const S = JSON.parse(T);
|
|
62
|
+
i.error(p(S.Type, { video: t.data.title }));
|
|
63
|
+
} else
|
|
64
|
+
i.error(p("error"));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async function y() {
|
|
68
|
+
if (l.data.exists && l.data.hasAdFree) {
|
|
69
|
+
b.trigger({
|
|
70
|
+
application: F.TV,
|
|
71
|
+
action: j.Tv.ALREADY_ADDED,
|
|
72
|
+
params: { alreadyAdded: !0 }
|
|
73
|
+
});
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
const c = {
|
|
78
|
+
id: t.data.id,
|
|
79
|
+
userId: d.data.id,
|
|
80
|
+
customerId: d.data.customerId
|
|
81
|
+
};
|
|
82
|
+
await r(m.addAdFreeVideo(c, t.data.id)), i.success({
|
|
83
|
+
heading: R.Success,
|
|
84
|
+
message: p("addAdFreeSuccess", { video: t.data.title }),
|
|
85
|
+
type: v.Success
|
|
86
|
+
}), b.trigger({
|
|
87
|
+
application: F.TV,
|
|
88
|
+
action: j.Tv.ALREADY_ADDED,
|
|
89
|
+
args: [s.data.code, t.data.id]
|
|
90
|
+
}), V.logUserAction(
|
|
91
|
+
{ id: t.data.id, name: t.data.title },
|
|
92
|
+
{
|
|
93
|
+
actionType: k.Submit,
|
|
94
|
+
entity: I.Video,
|
|
95
|
+
descriptor: w.AddAdFreeVideo,
|
|
96
|
+
location: _.Popup,
|
|
97
|
+
workflowPhase: U.Complete
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
} catch {
|
|
101
|
+
i.error(p("error"));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
async function E() {
|
|
105
|
+
if (l.data.exists) {
|
|
106
|
+
b.trigger({
|
|
107
|
+
application: F.TV,
|
|
108
|
+
action: j.Tv.ALREADY_ADDED,
|
|
109
|
+
params: { alreadyAdded: !0 }
|
|
110
|
+
});
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
const c = {
|
|
115
|
+
userId: d.data.id,
|
|
116
|
+
customerId: d.data.customerId,
|
|
117
|
+
globalId: t.data.globalId,
|
|
118
|
+
libraryId: A.data.id
|
|
119
|
+
};
|
|
120
|
+
await r(m.addFullVideo(c, t.data.id)), i.success({
|
|
121
|
+
heading: R.Success,
|
|
122
|
+
message: p("addFullSuccess", { video: t.data.title }),
|
|
123
|
+
type: v.Success
|
|
124
|
+
}), b.trigger({
|
|
125
|
+
application: F.TV,
|
|
126
|
+
action: j.Tv.ALREADY_ADDED,
|
|
127
|
+
args: [s.data.code, t.data.id]
|
|
128
|
+
}), V.logUserAction(
|
|
129
|
+
{ id: t.data.id, name: t.data.title },
|
|
130
|
+
{
|
|
131
|
+
actionType: k.Submit,
|
|
132
|
+
entity: I.Video,
|
|
133
|
+
descriptor: w.AddFullVideo,
|
|
134
|
+
location: _.Popup,
|
|
135
|
+
workflowPhase: U.Complete
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
} catch {
|
|
139
|
+
i.error(p("error"));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return { requestAdFreeVideo: N, addAdFreeVideo: y, addFullVideo: E };
|
|
143
|
+
}
|
|
144
|
+
const ee = "_circle_1yxtg_1", ae = {
|
|
145
|
+
circle: ee
|
|
146
|
+
}, o = "tv.add", q = $.encloseNamespace(o), x = {
|
|
147
|
+
id: "ad-free",
|
|
148
|
+
title: "adFreeTitle",
|
|
149
|
+
description: "adFreeDescription",
|
|
150
|
+
imageUrl: M.General.MOUNTAINS_FRAMED
|
|
151
|
+
}, f = {
|
|
152
|
+
id: "request-ad-free",
|
|
153
|
+
title: "adFreeTitle",
|
|
154
|
+
imageUrl: M.General.MOUNTAINS_FRAMED
|
|
155
|
+
}, h = {
|
|
156
|
+
id: "full-video",
|
|
157
|
+
title: "fullVideoTitle",
|
|
158
|
+
description: "fullVideoDescription",
|
|
159
|
+
imageUrl: M.General.ANNOUNCEMENT_FRAMED
|
|
160
|
+
};
|
|
161
|
+
function re(a) {
|
|
162
|
+
const n = g(L.currentUser()), r = g(m.program(a.id)), i = g(
|
|
163
|
+
n.data && m.adFreeCredits(
|
|
164
|
+
n.data.id,
|
|
165
|
+
n.data.customerId,
|
|
166
|
+
a.region
|
|
167
|
+
)
|
|
168
|
+
), { requestAdFreeVideo: d, addAdFreeVideo: A, addFullVideo: t } = Z(a.id, a.region);
|
|
169
|
+
J(r.statusCode);
|
|
170
|
+
const [s, l] = H.useState(null), N = !Number.isNaN(a.currentTime);
|
|
171
|
+
function y() {
|
|
172
|
+
s && (s.id === h.id && t(), s.id === x.id && A(), s.id === f.id && d());
|
|
173
|
+
}
|
|
174
|
+
function E() {
|
|
175
|
+
if (!N) {
|
|
176
|
+
a.closePopup();
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
b.trigger({
|
|
180
|
+
application: F.TV,
|
|
181
|
+
action: j.Tv.PREVIEW,
|
|
182
|
+
args: [a.region, r.data.id],
|
|
183
|
+
params: {
|
|
184
|
+
currentTime: a.currentTime
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
const c = i.data && i.data.userRequests < i.data.maxAvailableCredit, D = i.data && i.data.maxAvailableCredit - i.data.userRequests;
|
|
189
|
+
H.useEffect(() => {
|
|
190
|
+
i.hasCompleted && (c || l(h));
|
|
191
|
+
}, [i, c]);
|
|
192
|
+
const T = n.hasCompleted && r.hasCompleted && i.hasCompleted, S = (s == null ? void 0 : s.id) === f.id && Q.isHolidayPeriod();
|
|
193
|
+
return /* @__PURE__ */ e.jsxs(
|
|
194
|
+
Y,
|
|
195
|
+
{
|
|
196
|
+
size: "lg",
|
|
197
|
+
title: q("title"),
|
|
198
|
+
showLoadingSpinner: !T,
|
|
199
|
+
closePopup: a.closePopup,
|
|
200
|
+
children: [
|
|
201
|
+
T && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
202
|
+
/* @__PURE__ */ e.jsxs("div", { className: "d-flex mb-3 mx-n2", children: [
|
|
203
|
+
r.data.hasAdsFree && /* @__PURE__ */ e.jsxs(
|
|
204
|
+
P,
|
|
205
|
+
{
|
|
206
|
+
option: { id: x.id },
|
|
207
|
+
onSelect: l,
|
|
208
|
+
selected: (s == null ? void 0 : s.id) === x.id,
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ e.jsx("img", { src: x.imageUrl, className: "img-fluid", draggable: !1 }),
|
|
211
|
+
/* @__PURE__ */ e.jsx("h2", { className: "h4 mb-1", children: /* @__PURE__ */ e.jsx(u, { namespace: o, phrase: x.title }) }),
|
|
212
|
+
/* @__PURE__ */ e.jsx("p", { className: "mb-2", children: /* @__PURE__ */ e.jsx(u, { namespace: o, phrase: x.description }) })
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
),
|
|
216
|
+
!r.data.hasAdsFree && /* @__PURE__ */ e.jsxs(
|
|
217
|
+
P,
|
|
218
|
+
{
|
|
219
|
+
option: { id: f.id, disabled: !c },
|
|
220
|
+
onSelect: l,
|
|
221
|
+
selected: (s == null ? void 0 : s.id) === f.id,
|
|
222
|
+
children: [
|
|
223
|
+
/* @__PURE__ */ e.jsx("img", { src: f.imageUrl, className: "img-fluid", draggable: !1 }),
|
|
224
|
+
/* @__PURE__ */ e.jsxs("div", { className: "d-flex justify-content-center align-items-center mb-1", children: [
|
|
225
|
+
/* @__PURE__ */ e.jsx("h2", { className: "h4 mb-1", children: /* @__PURE__ */ e.jsx(u, { namespace: o, phrase: f.title }) }),
|
|
226
|
+
/* @__PURE__ */ e.jsx("span", { className: `badge bg-dark rounded-circle ms-2 ${ae.circle}`, children: D })
|
|
227
|
+
] }),
|
|
228
|
+
/* @__PURE__ */ e.jsx("p", { className: "mb-2", children: /* @__PURE__ */ e.jsx(u, { namespace: o, phrase: c ? "requestAdFreeDescription" : "noRequestsDescription" }) })
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
/* @__PURE__ */ e.jsxs(
|
|
233
|
+
P,
|
|
234
|
+
{
|
|
235
|
+
option: { id: h.id },
|
|
236
|
+
onSelect: l,
|
|
237
|
+
selected: (s == null ? void 0 : s.id) === h.id,
|
|
238
|
+
children: [
|
|
239
|
+
/* @__PURE__ */ e.jsx("img", { src: h.imageUrl, className: "img-fluid", draggable: !1 }),
|
|
240
|
+
/* @__PURE__ */ e.jsx("h2", { className: "h4 mb-1", children: /* @__PURE__ */ e.jsx(u, { namespace: o, phrase: h.title }) }),
|
|
241
|
+
/* @__PURE__ */ e.jsx("p", { className: "mb-2", children: /* @__PURE__ */ e.jsx(u, { namespace: o, phrase: h.description }) })
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
] }),
|
|
246
|
+
S && /* @__PURE__ */ e.jsxs("div", { className: "alert alert-warning", role: "alert", children: [
|
|
247
|
+
/* @__PURE__ */ e.jsx("h3", { className: "h5", children: /* @__PURE__ */ e.jsx(u, { namespace: o, phrase: "adFreeAlertHeading" }) }),
|
|
248
|
+
/* @__PURE__ */ e.jsx("p", { className: "m-0", children: /* @__PURE__ */ e.jsx(u, { namespace: o, phrase: "adFreeAlertBody" }) })
|
|
249
|
+
] })
|
|
250
|
+
] }),
|
|
251
|
+
/* @__PURE__ */ e.jsxs(C, { children: [
|
|
252
|
+
/* @__PURE__ */ e.jsx(
|
|
253
|
+
C.Cancel,
|
|
254
|
+
{
|
|
255
|
+
text: q(N ? "back" : "close"),
|
|
256
|
+
onClick: E,
|
|
257
|
+
variant: "link"
|
|
258
|
+
}
|
|
259
|
+
),
|
|
260
|
+
/* @__PURE__ */ e.jsx(
|
|
261
|
+
C.Submit,
|
|
262
|
+
{
|
|
263
|
+
text: q("continue"),
|
|
264
|
+
onClick: y,
|
|
265
|
+
variant: "dark",
|
|
266
|
+
disabled: !s
|
|
267
|
+
}
|
|
268
|
+
)
|
|
269
|
+
] })
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
export {
|
|
275
|
+
re as TvAddView
|
|
276
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),b=require("./UseHandleDialogError-PbyWsVaT.cjs"),c=require("./TvRequests-l_Xv-rcr.cjs"),D=require("./UseAlerts-pIg83NsO.cjs"),N="_selected_ii58d_1",U="_disabled_ii58d_4",v={selected:N,disabled:U};function F(t){var a,r,x,s;function l(){var i;(i=t.option)!=null&&i.disabled||t.onSelect(t.option)}let d="text-center cursor-pointer p-3 border rounded-3 mx-2 user-select-none w-50";return t.selected&&(d+=` border-info ${v.selected}`),(a=t.option)!=null&&a.disabled&&(d+=` ${v.disabled}`),e.jsxRuntimeExports.jsxs(e.DivButton,{onClick:l,className:d,children:[((r=t.option)==null?void 0:r.imageUrl)&&e.jsxRuntimeExports.jsx("img",{src:t.option.imageUrl,className:`img-fluid my-3 ${t.option.imageClassName??""}`,draggable:!1}),((x=t.option)==null?void 0:x.title)&&e.jsxRuntimeExports.jsx("h2",{className:"h3",children:t.option.title}),((s=t.option)==null?void 0:s.description)&&e.jsxRuntimeExports.jsx("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:t.option.description}}),t.children]})}const S="tv.addRequests",p=e.LanguageService.encloseNamespace(S);function q(t,l){const d=e.useGetFetchAsync(),a=D.useAlerts(),r=e.useBasicFetch(e.UserRequests.currentUser()),x=e.useBasicFetch(e.UserRequests.workspace()),s=e.useBasicFetch(c.TvRequests.program(t)),i=e.useBasicFetch(c.TvRequests.region(l)),u=e.useBasicFetch(s.data&&r.data&&c.TvRequests.workspaceVideo(s.data.id,r.data.id,r.data.customerId));async function j(){var n;try{await d(c.TvRequests.createAdFreeRequest({programId:s.data.id,regionCode:i.data.code,userId:r.data.id,customerId:r.data.customerId})),a.success({heading:e.DefaultAlertHeading.Success,message:p("requestAdFreeSuccess",{video:s.data.title}),type:e.AlertType.Success}),e.AppLinkHelper.trigger({application:e.AppChannels.TV,action:e.Actions.Tv.AD_FREE_REQUEST,args:[i.data.code,s.data.id]}),e.AnalyticsHelper.logUserAction({id:s.data.id,name:s.data.title},{actionType:e.UserAction.Submit,entity:e.EntityType.Video,descriptor:e.TvDescriptor.AdFreeRequest,location:e.LocationContext.Popup,workflowPhase:e.WorkflowPhase.Complete})}catch(T){const h=(n=T.responseJSON)==null?void 0:n.message;if(h){const f=JSON.parse(h);a.error(p(f.Type,{video:s.data.title}))}else a.error(p("error"))}}async function R(){if(u.data.exists&&u.data.hasAdFree){e.AppLinkHelper.trigger({application:e.AppChannels.TV,action:e.Actions.Tv.ALREADY_ADDED,params:{alreadyAdded:!0}});return}try{const n={id:s.data.id,userId:r.data.id,customerId:r.data.customerId};await d(c.TvRequests.addAdFreeVideo(n,s.data.id)),a.success({heading:e.DefaultAlertHeading.Success,message:p("addAdFreeSuccess",{video:s.data.title}),type:e.AlertType.Success}),e.AppLinkHelper.trigger({application:e.AppChannels.TV,action:e.Actions.Tv.ALREADY_ADDED,args:[i.data.code,s.data.id]}),e.AnalyticsHelper.logUserAction({id:s.data.id,name:s.data.title},{actionType:e.UserAction.Submit,entity:e.EntityType.Video,descriptor:e.TvDescriptor.AddAdFreeVideo,location:e.LocationContext.Popup,workflowPhase:e.WorkflowPhase.Complete})}catch{a.error(p("error"))}}async function E(){if(u.data.exists){e.AppLinkHelper.trigger({application:e.AppChannels.TV,action:e.Actions.Tv.ALREADY_ADDED,params:{alreadyAdded:!0}});return}try{const n={userId:r.data.id,customerId:r.data.customerId,globalId:s.data.globalId,libraryId:x.data.id};await d(c.TvRequests.addFullVideo(n,s.data.id)),a.success({heading:e.DefaultAlertHeading.Success,message:p("addFullSuccess",{video:s.data.title}),type:e.AlertType.Success}),e.AppLinkHelper.trigger({application:e.AppChannels.TV,action:e.Actions.Tv.ALREADY_ADDED,args:[i.data.code,s.data.id]}),e.AnalyticsHelper.logUserAction({id:s.data.id,name:s.data.title},{actionType:e.UserAction.Submit,entity:e.EntityType.Video,descriptor:e.TvDescriptor.AddFullVideo,location:e.LocationContext.Popup,workflowPhase:e.WorkflowPhase.Complete})}catch{a.error(p("error"))}}return{requestAdFreeVideo:j,addAdFreeVideo:R,addFullVideo:E}}const C="_circle_1yxtg_1",V={circle:C},o="tv.add",y=e.LanguageService.encloseNamespace(o),g={id:"ad-free",title:"adFreeTitle",description:"adFreeDescription",imageUrl:e.ImageUrls.General.MOUNTAINS_FRAMED},A={id:"request-ad-free",title:"adFreeTitle",imageUrl:e.ImageUrls.General.MOUNTAINS_FRAMED},m={id:"full-video",title:"fullVideoTitle",description:"fullVideoDescription",imageUrl:e.ImageUrls.General.ANNOUNCEMENT_FRAMED};function k(t){const l=e.useBasicFetch(e.UserRequests.currentUser()),d=e.useBasicFetch(c.TvRequests.program(t.id)),a=e.useBasicFetch(l.data&&c.TvRequests.adFreeCredits(l.data.id,l.data.customerId,t.region)),{requestAdFreeVideo:r,addAdFreeVideo:x,addFullVideo:s}=q(t.id,t.region);b.useHandleDialogError(d.statusCode);const[i,u]=e.React.useState(null),j=!Number.isNaN(t.currentTime);function R(){i&&(i.id===m.id&&s(),i.id===g.id&&x(),i.id===A.id&&r())}function E(){if(!j){t.closePopup();return}e.AppLinkHelper.trigger({application:e.AppChannels.TV,action:e.Actions.Tv.PREVIEW,args:[t.region,d.data.id],params:{currentTime:t.currentTime}})}const n=a.data&&a.data.userRequests<a.data.maxAvailableCredit,T=a.data&&a.data.maxAvailableCredit-a.data.userRequests;e.React.useEffect(()=>{a.hasCompleted&&(n||u(m))},[a,n]);const h=l.hasCompleted&&d.hasCompleted&&a.hasCompleted,f=(i==null?void 0:i.id)===A.id&&c.TvUtils.isHolidayPeriod();return e.jsxRuntimeExports.jsxs(e.Popup,{size:"lg",title:y("title"),showLoadingSpinner:!h,closePopup:t.closePopup,children:[h&&e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:"d-flex mb-3 mx-n2",children:[d.data.hasAdsFree&&e.jsxRuntimeExports.jsxs(F,{option:{id:g.id},onSelect:u,selected:(i==null?void 0:i.id)===g.id,children:[e.jsxRuntimeExports.jsx("img",{src:g.imageUrl,className:"img-fluid",draggable:!1}),e.jsxRuntimeExports.jsx("h2",{className:"h4 mb-1",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:o,phrase:g.title})}),e.jsxRuntimeExports.jsx("p",{className:"mb-2",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:o,phrase:g.description})})]}),!d.data.hasAdsFree&&e.jsxRuntimeExports.jsxs(F,{option:{id:A.id,disabled:!n},onSelect:u,selected:(i==null?void 0:i.id)===A.id,children:[e.jsxRuntimeExports.jsx("img",{src:A.imageUrl,className:"img-fluid",draggable:!1}),e.jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-center align-items-center mb-1",children:[e.jsxRuntimeExports.jsx("h2",{className:"h4 mb-1",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:o,phrase:A.title})}),e.jsxRuntimeExports.jsx("span",{className:`badge bg-dark rounded-circle ms-2 ${V.circle}`,children:T})]}),e.jsxRuntimeExports.jsx("p",{className:"mb-2",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:o,phrase:n?"requestAdFreeDescription":"noRequestsDescription"})})]}),e.jsxRuntimeExports.jsxs(F,{option:{id:m.id},onSelect:u,selected:(i==null?void 0:i.id)===m.id,children:[e.jsxRuntimeExports.jsx("img",{src:m.imageUrl,className:"img-fluid",draggable:!1}),e.jsxRuntimeExports.jsx("h2",{className:"h4 mb-1",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:o,phrase:m.title})}),e.jsxRuntimeExports.jsx("p",{className:"mb-2",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:o,phrase:m.description})})]})]}),f&&e.jsxRuntimeExports.jsxs("div",{className:"alert alert-warning",role:"alert",children:[e.jsxRuntimeExports.jsx("h3",{className:"h5",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:o,phrase:"adFreeAlertHeading"})}),e.jsxRuntimeExports.jsx("p",{className:"m-0",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:o,phrase:"adFreeAlertBody"})})]})]}),e.jsxRuntimeExports.jsxs(e.PopupButtons,{children:[e.jsxRuntimeExports.jsx(e.PopupButtons.Cancel,{text:y(j?"back":"close"),onClick:E,variant:"link"}),e.jsxRuntimeExports.jsx(e.PopupButtons.Submit,{text:y("continue"),onClick:R,variant:"dark",disabled:!i})]})]})}exports.TvAddView=k;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { j as e, ak as i, B as d, x as n, L as c, G as o, aH as r, a1 as m, P as x, aA as u } from "./app-2U039aX_.js";
|
|
2
|
+
const h = "_myVideosButton_5ybcl_1", y = {
|
|
3
|
+
myVideosButton: h
|
|
4
|
+
}, a = "shared.alreadyAdded", j = c.encloseNamespace(a);
|
|
5
|
+
function g(s) {
|
|
6
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
7
|
+
/* @__PURE__ */ e.jsx("div", { className: "mx-auto w-75 mt-1 mb-2", children: /* @__PURE__ */ e.jsx("img", { src: i.General.CONFETTI, className: "img-fluid", draggable: !1 }) }),
|
|
8
|
+
/* @__PURE__ */ e.jsxs("div", { className: "text-center pb-3", children: [
|
|
9
|
+
/* @__PURE__ */ e.jsx("h4", { children: s.alreadyAdded ? /* @__PURE__ */ e.jsx(d, { namespace: a, phrase: "alreadyAdded" }) : /* @__PURE__ */ e.jsx(d, { namespace: a, phrase: "successfullyAdded" }) }),
|
|
10
|
+
!s.alreadyAdded && /* @__PURE__ */ e.jsx("p", { children: /* @__PURE__ */ e.jsx(d, { namespace: a, phrase: "successfullyAddedDescription" }) })
|
|
11
|
+
] }),
|
|
12
|
+
/* @__PURE__ */ e.jsxs(n, { children: [
|
|
13
|
+
/* @__PURE__ */ e.jsx(
|
|
14
|
+
n.Cancel,
|
|
15
|
+
{
|
|
16
|
+
text: j(s.alreadyAdded ? "addAnyway" : "close"),
|
|
17
|
+
onClick: s.onClickClose,
|
|
18
|
+
variant: "link"
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ e.jsxs(
|
|
22
|
+
"a",
|
|
23
|
+
{
|
|
24
|
+
href: `${s.liteUrl}${s.videoId ? "/videos/" + s.videoId : "/my-videos"}`,
|
|
25
|
+
className: `${y.myVideosButton} btn btn-dark d-flex align-items-center`,
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ e.jsx("span", { className: "me-1", children: /* @__PURE__ */ e.jsx(d, { namespace: a, phrase: s.videoId ? "watchVideo" : "myVideos" }) }),
|
|
28
|
+
/* @__PURE__ */ e.jsx(o, { svg: r })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
] })
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
const A = "shared.alreadyAdded", v = c.encloseNamespace(A);
|
|
36
|
+
function p(s) {
|
|
37
|
+
const { alreadyAdded: l } = s.params, t = m(u.config());
|
|
38
|
+
return /* @__PURE__ */ e.jsx(
|
|
39
|
+
x,
|
|
40
|
+
{
|
|
41
|
+
title: v("title"),
|
|
42
|
+
closePopup: s.closePopup,
|
|
43
|
+
children: /* @__PURE__ */ e.jsx(
|
|
44
|
+
g,
|
|
45
|
+
{
|
|
46
|
+
liteUrl: t.data.liteUrl,
|
|
47
|
+
alreadyAdded: l,
|
|
48
|
+
onClickClose: s.closePopup
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
p as TvAlreadyAddedView
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),a="_myVideosButton_5ybcl_1",i={myVideosButton:a},t="shared.alreadyAdded",o=e.LanguageService.encloseNamespace(t);function r(s){return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx("div",{className:"mx-auto w-75 mt-1 mb-2",children:e.jsxRuntimeExports.jsx("img",{src:e.ImageUrls.General.CONFETTI,className:"img-fluid",draggable:!1})}),e.jsxRuntimeExports.jsxs("div",{className:"text-center pb-3",children:[e.jsxRuntimeExports.jsx("h4",{children:s.alreadyAdded?e.jsxRuntimeExports.jsx(e.Text,{namespace:t,phrase:"alreadyAdded"}):e.jsxRuntimeExports.jsx(e.Text,{namespace:t,phrase:"successfullyAdded"})}),!s.alreadyAdded&&e.jsxRuntimeExports.jsx("p",{children:e.jsxRuntimeExports.jsx(e.Text,{namespace:t,phrase:"successfullyAddedDescription"})})]}),e.jsxRuntimeExports.jsxs(e.PopupButtons,{children:[e.jsxRuntimeExports.jsx(e.PopupButtons.Cancel,{text:o(s.alreadyAdded?"addAnyway":"close"),onClick:s.onClickClose,variant:"link"}),e.jsxRuntimeExports.jsxs("a",{href:`${s.liteUrl}${s.videoId?"/videos/"+s.videoId:"/my-videos"}`,className:`${i.myVideosButton} btn btn-dark d-flex align-items-center`,children:[e.jsxRuntimeExports.jsx("span",{className:"me-1",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:t,phrase:s.videoId?"watchVideo":"myVideos"})}),e.jsxRuntimeExports.jsx(e.SvgContainer,{svg:e.NewWindowSvg})]})]})]})}const c="shared.alreadyAdded",l=e.LanguageService.encloseNamespace(c);function x(s){const{alreadyAdded:d}=s.params,n=e.useBasicFetch(e.ConfigRequests.config());return e.jsxRuntimeExports.jsx(e.Popup,{title:l("title"),closePopup:s.closePopup,children:e.jsxRuntimeExports.jsx(r,{liteUrl:n.data.liteUrl,alreadyAdded:d,onClickClose:s.closePopup})})}exports.TvAlreadyAddedView=x;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { a1 as o, j as e, P as m, L as d, B as a, ao as x, a as h, b as j, x as c } from "./app-2U039aX_.js";
|
|
2
|
+
import { T as l, a as g } from "./TvRequests-Bcy68aT5.js";
|
|
3
|
+
import { t as r } from "./toLocalTime-Bt8Uy4Kq.js";
|
|
4
|
+
const u = "_infoAlert_r916y_1", N = {
|
|
5
|
+
infoAlert: u
|
|
6
|
+
}, s = "tv.broadcastContent", p = d.encloseNamespace(s);
|
|
7
|
+
function A(t) {
|
|
8
|
+
const i = o(l.region(t.region)), n = o(l.dateRange(t.region));
|
|
9
|
+
return /* @__PURE__ */ e.jsxs(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
title: p("title"),
|
|
13
|
+
closePopup: t.closePopup,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ e.jsx("div", { className: `${N.infoAlert} rounded w-100 p-2 mb-4`, children: /* @__PURE__ */ e.jsxs("p", { className: "d-inline fw-semibold mb-0 me-2", children: [
|
|
16
|
+
/* @__PURE__ */ e.jsx(a, { namespace: s, phrase: "programsAvailable" }),
|
|
17
|
+
n.data && g.getFormattedDateRange(
|
|
18
|
+
r(n.data.startDate, i.data.timeZone),
|
|
19
|
+
r(n.data.endDate, i.data.timeZone)
|
|
20
|
+
)
|
|
21
|
+
] }) }),
|
|
22
|
+
/* @__PURE__ */ e.jsx("h2", { className: "h5", children: /* @__PURE__ */ e.jsx(a, { namespace: s, phrase: "subTitle" }) }),
|
|
23
|
+
/* @__PURE__ */ e.jsx("p", { className: "mb-2", children: /* @__PURE__ */ e.jsx(a, { namespace: s, phrase: "description" }) }),
|
|
24
|
+
/* @__PURE__ */ e.jsxs("div", { className: "mb-2", children: [
|
|
25
|
+
/* @__PURE__ */ e.jsx("p", { className: "d-inline", children: /* @__PURE__ */ e.jsx(a, { namespace: s, phrase: "missedProgram" }) }),
|
|
26
|
+
/* @__PURE__ */ e.jsx(
|
|
27
|
+
x,
|
|
28
|
+
{
|
|
29
|
+
appLink: { application: j.EXCHANGE, action: h.Exchange.INDEX },
|
|
30
|
+
className: "text-info",
|
|
31
|
+
onClick: t.closePopup,
|
|
32
|
+
children: /* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(a, { namespace: s, phrase: "exchangeArchive" }) })
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
"."
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ e.jsx("p", { className: "mb-3", children: /* @__PURE__ */ e.jsx(a, { namespace: s, phrase: "emailContent" }) }),
|
|
38
|
+
/* @__PURE__ */ e.jsx(c, { children: /* @__PURE__ */ e.jsx(
|
|
39
|
+
c.Cancel,
|
|
40
|
+
{
|
|
41
|
+
text: p("close"),
|
|
42
|
+
onClick: t.closePopup,
|
|
43
|
+
variant: "link"
|
|
44
|
+
}
|
|
45
|
+
) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
A as TvBroadcastContentView
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./app-DcIbciDa.cjs"),i=require("./TvRequests-l_Xv-rcr.cjs"),o=require("./toLocalTime-DF9SIfIt.cjs"),x="_infoAlert_r916y_1",c={infoAlert:x},s="tv.broadcastContent",r=e.LanguageService.encloseNamespace(s);function l(t){const a=e.useBasicFetch(i.TvRequests.region(t.region)),n=e.useBasicFetch(i.TvRequests.dateRange(t.region));return e.jsxRuntimeExports.jsxs(e.Popup,{title:r("title"),closePopup:t.closePopup,children:[e.jsxRuntimeExports.jsx("div",{className:`${c.infoAlert} rounded w-100 p-2 mb-4`,children:e.jsxRuntimeExports.jsxs("p",{className:"d-inline fw-semibold mb-0 me-2",children:[e.jsxRuntimeExports.jsx(e.Text,{namespace:s,phrase:"programsAvailable"}),n.data&&i.TvUtils.getFormattedDateRange(o.toLocalTime(n.data.startDate,a.data.timeZone),o.toLocalTime(n.data.endDate,a.data.timeZone))]})}),e.jsxRuntimeExports.jsx("h2",{className:"h5",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:s,phrase:"subTitle"})}),e.jsxRuntimeExports.jsx("p",{className:"mb-2",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:s,phrase:"description"})}),e.jsxRuntimeExports.jsxs("div",{className:"mb-2",children:[e.jsxRuntimeExports.jsx("p",{className:"d-inline",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:s,phrase:"missedProgram"})}),e.jsxRuntimeExports.jsx(e.AppLink,{appLink:{application:e.AppChannels.EXCHANGE,action:e.Actions.Exchange.INDEX},className:"text-info",onClick:t.closePopup,children:e.jsxRuntimeExports.jsx("span",{children:e.jsxRuntimeExports.jsx(e.Text,{namespace:s,phrase:"exchangeArchive"})})}),"."]}),e.jsxRuntimeExports.jsx("p",{className:"mb-3",children:e.jsxRuntimeExports.jsx(e.Text,{namespace:s,phrase:"emailContent"})}),e.jsxRuntimeExports.jsx(e.PopupButtons,{children:e.jsxRuntimeExports.jsx(e.PopupButtons.Cancel,{text:r("close"),onClick:t.closePopup,variant:"link"})})]})}exports.TvBroadcastContentView=l;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./app-DcIbciDa.cjs"),s="_channelBadge_1riea_1",n="_small_1riea_4",l={channelBadge:s,small:n};function c(a){return e.jsxRuntimeExports.jsx("div",{className:`${l.channelBadge} ${a.small?l.small:""} ${a.className||""}`,children:e.jsxRuntimeExports.jsx("img",{className:"h-100 align-baseline",src:a.logoUrl})})}exports.TvChannelBadge=c;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { j as l } from "./app-2U039aX_.js";
|
|
2
|
+
const s = "_channelBadge_1riea_1", n = "_small_1riea_4", e = {
|
|
3
|
+
channelBadge: s,
|
|
4
|
+
small: n
|
|
5
|
+
};
|
|
6
|
+
function m(a) {
|
|
7
|
+
return /* @__PURE__ */ l.jsx("div", { className: `${e.channelBadge} ${a.small ? e.small : ""} ${a.className || ""}`, children: /* @__PURE__ */ l.jsx("img", { className: "h-100 align-baseline", src: a.logoUrl }) });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
m as T
|
|
11
|
+
};
|