1import{a as q}from"./chunk-X5TXF7G6.js";import"./chunk-BR6CE2KN.js";import{b as W}from"./chunk-ZO7MWZV5.js";import{c as $}from"./chunk-NWZAAD6C.js";import"./chunk-E5C3DMEE.js";import"./chunk-QZTWUFVX.js";import"./chunk-MS4AQ6UA.js";import{a as U}from"./chunk-DTBZ7U2G.js";import{c as G}from"./chunk-LR32ZC3B.js";import"./chunk-MRUXXFZZ.js";import"./chunk-ZK2UVZHG.js";import"./chunk-YCWVNKHW.js";import"./chunk-IKP3GIDA.js";import{a as z}from"./chunk-6FDE4EML.js";import{$a as D,$b as L,Va as A,ab as j,b as B,lb as F,oc as N,wc as R}from"./chunk-UMFZ3LLX.js";import"./chunk-BWEGVNY2.js";import"./chunk-AG6QEAUI.js";import{d as H}from"./chunk-SAUKD7DD.js";import{Gc as I,Jb as v,Lb as S,Mc as E,Nb as k,Nc as V,Ob as T,Pb as M,Qb as l,Qc as p,Rb as a,Rc as d,Sb as r,Tb as f,_b as x,db as i,dc as P,fc as s,nb as y,oa as _,ob as g,pa as C,sc as O,tc as c,ub as b,uc as u,vc as h}from"./chunk-KKSGD2T6.js";import"./chunk-EQDQRRRY.js";var X=t=>({"open-selection-list":t}),Y=(t,m)=>({number:t,productPackageName:m});function Z(t,m){if(t&1&&(a(0,"div",0),f(1,"mat-progress-spinner",2),r()),t&2){let e=s();i(),l("mode",e.commonService.mode)("strokeWidth",2)("diameter",80)}}function ee(t,m){if(t&1&&(a(0,"mat-option",11)(1,"mat-radio-button",14),c(2),r()()),t&2){let e=m.$implicit,n=s(2);l("value",e),i(),l("checked",((n.streamingService.selectedPromotionValue==null?null:n.streamingService.selectedPromotionValue.serviceId)||(n.streamingService.selectedPromotionValue==null?null:n.streamingService.selectedPromotionValue.contractNo))===((e==null?null:e.serviceId)||(e==null?null:e.contractNo))),i(),h(" ",n.trs.trsTsParams("skyShowtime.addonsForThe",V(3,Y,(e==null?null:e.msisdn)||(e==null?null:e.contractNo),e==null?null:e.productPackageName))," ")}}function te(t,m){if(t&1&&f(0,"app-sky-showtime-card",15),t&2){let e=s(3);l("showtimeData",e.streamingService==null?null:e.streamingService.showtimeData)}}function ie(t,m){if(t&1&&v(0,te,1,1,"app-sky-showtime-card",15),t&2){let e=s(2);S(e.streamingService.isShowtimeActivated?-1:0)}}function ne(t,m){t&1&&(a(0,"h3",21),c(1),p(2,"translate"),r(),a(3,"p",22),c(4),p(5,"translate"),r()),t&2&&(i(),u(d(2,2,"skyShowtime.showtimeSuccessChanged")),i(3),u(d(5,4,"skyShowtime.showtimeSuccessChangedDesc")))}function oe(t,m){t&1&&(a(0,"h3",21),c(1),p(2,"translate"),r(),a(3,"p",22),c(4),p(5,"translate"),r()),t&2&&(i(),u(d(2,2,"skyShowtime.showtimeSuccessActivated")),i(3),u(d(5,4,"skyShowtime.showtimeSuccessActivatedDesc")))}function ae(t,m){if(t&1){let e=x();a(0,"div",13)(1,"div",16)(2,"div",17),f(3,"img",18),r(),v(4,ne,6,6)(5,oe,6,6),a(6,"div",19)(7,"button",20),P("click",function(){_(e);let o=s(2);return C(o.streamingService.navigateToLink(o.streamingService.streamingData==null?null:o.streamingService.streamingData.link))}),c(8),p(9,"translate"),r()()()()}if(t&2){let e=s(2);i(4),S(e.streamingService!=null&&e.streamingService.streamingChangeAction?4:5),i(3),l("disabled",!e.streamingService.isStreamingLinkAvailable),i(),h(" ",d(9,3,"skyShowtime.continueToSkyShowtime")," ")}}function re(t,m){if(t&1){let e=x();a(0,"div",1)(1,"div",3)(2,"p",4),c(3),p(4,"translate"),r(),a(5,"div",5)(6,"mat-form-field",6)(7,"mat-select",7),P("selectionChange",function(o){_(e);let w=s();return C(w.onContractChange(o.value))})("opened",function(){_(e);let o=s();return C(o.isSelectOpen=!0)})("closed",function(){_(e);let o=s();return C(o.isSelectOpen=!1)}),a(8,"mat-option",8)(9,"p",9),c(10),p(11,"translate"),r(),a(12,"p",10),c(13),p(14,"translate"),r()(),T(15,ee,3,6,"mat-option",11,k),r()()(),a(17,"div",12),v(18,ie,1,1),v(19,ae,10,5,"div",13),r()()()}if(t&2){let e=s();i(3),u(d(4,12,"skyShowtime.selectLines")),i(4),l("value",e.streamingService.selectedPromotionValue)("panelClass","cm-select nd-select"),i(),l("value",null),i(2),h(" ",d(11,14,"skyShowtime.contractSelection")," "),i(3),h(" ",d(14,16,"skyShowtime.selectContractSelection")," "),i(2),M(e.streamingService.streamingPromotionsContracts),i(2),O(I("result-content-wrapper ",e.getStreamingPromotionsContractsClass())),l("ngClass",E(18,X,e.isSelectOpen)),i(),S(e.streamingService.isShowtimeLoaded?18:-1),i(),S(e.streamingService.isShowtimeActivated?19:-1)}}var J=(()=>{class t{constructor(e,n,o,w,K,Q){this.streamingService=e,this.commonService=n,this.customerService=o,this.b2bDashboardService=w,this.renderer=K,this.trs=Q,this.isSelectOpen=!1,this.commonService.isPageTitleActivated=!0,this.commonService.isBackButtonActivated=!0,this.commonService.setPageTitle(this.trs.trsTs("skyShowtime.mainTitle"),"sky-showtime")}ngOnInit(){this.renderer.addClass(document.body,"showtime-page-body"),B.showStreamingTileCard&&!this.b2bDashboardService.isCustomerB2BUser()&&this.customerService?.hasResidentialCustomer()&&this.commonService.hasInvoices&&this.streamingService.getStreamingPromotion()}onContractChange(e){this.streamingService.isShowtimeActivated=!1,this.streamingService.selectedPromotionValue=e,console.log("Selected contract object:",e),this.streamingService.loadShowtime(e)}getStreamingPromotionsContractsClass(){let e=this.streamingService.streamingPromotionsContracts.length;if(e>5)return"more-than-five";switch(e){case 2:return"two-items";case 3:return"three-items";case 4:return"four-items";case 5:return"five-items";default:return""}}ngOnDestroy(){this.commonService.pageTitle="",this.commonService.setPageTitle("",""),this.commonService.isPageSubtitleActivated=!1,this.renderer.removeClass(document.body,"showtime-page-body"),this.streamingService.isShowtimeActivated=!1}static{this.\u0275fac=function(n){return new(n||t)(g($),g(R),g(N),g(L),g(y),g(F))}}static{this.\u0275cmp=b({type:t,selectors:[["app-streaming-home-page"]],decls:2,vars:2,consts:[[1,"page-spinner"],[1,"streaming-page"],[3,"mode","strokeWidth","diameter"],[1,"container"],[1,"mb-5"],[1,"mb-10"],["appearance","fill",1,"select-type","um-pages","select-type-v3","select-with-label","select-with-radio","reset-margin"],["disableOptionCentering","",3,"selectionChange","opened","closed","value","panelClass"],["disabled","",3,"value"],[1,"disabled-option-p","font-size-14","font-bold","lh-1-2"],[1,"disabled-option-p","font-size-14","font-regular","lh-1"],[3,"value"],[3,"ngClass"],[1,"container-460"],[1,"variant-type-v3","v4-only-dot","um-pages","not-absolute",3,"checked"],[3,"showtimeData"],[1,"continue-to-showtime-content","text-align-center","mt-60"],[1,"logo-wrap","mb
1-16"],["src","assets/img/showtime-logo.svg","alt","logo"],[1,"button-wrapper"],[1,"radius30","btn-7-v3","bg-black","with-hover",3,"click","disabled"],[1,"font-size-16","mb-16"],[1,"font-medium","font-size-14","mb-30"]],template:function(n,o){n&1&&(v(0,Z,2,3,"div",0),v(1,re,20,20,"div",1)),n&2&&(S(!o.streamingService.isShowtimeLoaded||!o.streamingService.isStreamingPromotionLoaded?0:-1),i(),S(o.streamingService.isStreamingPromotionLoaded&&o.streamingService.selectedPromotionValue?1:-1))},dependencies:[z,A,U,G,W,H,q,j,D],styles:[".showtime-page-body{overflow-y:scroll} .streaming-page .mat-mdc-form-field.um-pages.select-type-v3.select-with-label .mat-mdc-select-value{position:static} .streaming-page .mat-mdc-form-field.um-pages.select-type-v3.select-with-label .mat-mdc-select-trigger{min-height:70px!important}.streaming-page[_ngcontent-%COMP%] .result-content-wrapper[_ngcontent-%COMP%]{transition:all .1s}.streaming-page[_ngcontent-%COMP%] .result-content-wrapper.open-selection-list[_ngcontent-%COMP%]{padding-top:150px}.streaming-page[_ngcontent-%COMP%] .result-content-wrapper.open-selection-list.two-items[_ngcontent-%COMP%]{padding-top:170px}.streaming-page[_ngcontent-%COMP%] .result-content-wrapper.open-selection-list.three-items[_ngcontent-%COMP%]{padding-top:210px}.streaming-page[_ngcontent-%COMP%] .result-content-wrapper.open-selection-list.four-items[_ngcontent-%COMP%], .streaming-page[_ngcontent-%COMP%] .result-content-wrapper.open-selection-list.five-items[_ngcontent-%COMP%]{padding-top:260px}.streaming-page[_ngcontent-%COMP%] .result-content-wrapper.open-selection-list.more-than-five[_ngcontent-%COMP%]{padding-top:300px}"]})}}return t})();var ye=[{path:"",component:J}];export{ye as STREAMING_HOME_PAGE_ROUTES};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.