1(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,,,function(e,t){e.exports=new class{constructor(){this.isLogged=!1,this.pinLock=!0,this.token="",this.uid=null}setPinLock(e){this.pinLock=e}setLogged(e){this.isLogged=e}setToken(e){this.token=e}setUid(e){this.uid=e}isPL(){return this.pinLock}isLoggedIn(){return this.isLogged}getToken(){return this.token}getUid(){return this.uid}}},function(e,t,a){e.exports={controlsWrap:"playerosdfull_controlsWrap__1vdlT",controlsContainerFs:"playerosdfull_controlsContainerFs__NjLge",soButtonsWrap:"playerosdfull_soButtonsWrap__2JBKu",soBtn:"playerosdfull_soBtn__2MGrC",soBtnIcon:"playerosdfull_soBtnIcon__3I6H_",topControlsWrap:"playerosdfull_topControlsWrap__205oC",topBtn:"playerosdfull_topBtn__3nQQX",topBtnActive:"playerosdfull_topBtnActive__3ANjV",topBtnInactive:"playerosdfull_topBtnInactive__1iTI6",topBtnLeft:"playerosdfull_topBtnLeft__1fNbn",topBtnRight:"playerosdfull_topBtnRight__3oZa1",topBtnIcon:"playerosdfull_topBtnIcon__3_nNc",topBtnIconActive:"playerosdfull_topBtnIconActive__2eqIi",topBtnIconInactive:"playerosdfull_topBtnIconInactive__33RyM",ctMain:"playerosdfull_ctMain__2kWT7",ctLogo:"playerosdfull_ctLogo__1Xzj4",ctClockWrap:"playerosdfull_ctClockWrap__osUbx",ctClock:"playerosdfull_ctClock__1VRaf",ctChannelName:"playerosdfull_ctChannelName__1vbrr",ctProgramWrap:"playerosdfull_ctProgramWrap__2mzQV",ctProgramWrapNx:"playerosdfull_ctProgramWrapNx__1UrPy",ctProgram:"playerosdfull_ctProgram__uw7kX",ctProgramNo:"playerosdfull_ctProgramNo__2zUO1",ctProgramNext:"playerosdfull_ctProgramNext__1tXFV",ctProgramHrL:"playerosdfull_ctProgramHrL__2uKkr",ctProgramNextHrL:"playerosdfull_ctProgramNextHrL__3WTkk",ctProgramHrR:"playerosdfull_ctProgramHrR__1BlCl",ctTlWrap:"playerosdfull_ctTlWrap__3RkR2",ctTlCompleted:"playerosdfull_ctTlCompleted__MzBf1",ctTlRemaining:"playerosdfull_ctTlRemaining__35zWP",btnsWrap:"playerosdfull_btnsWrap__3M8RP",nom:"playerosdfull_nom__2pF-v",infoContainer:"playerosdfull_infoContainer__3d3zx",controlsLeft:"playerosdfull_controlsLeft__2likz",controlsRight:"playerosdfull_controlsRight__LtQNu",volumeWrap:"playerosdfull_volumeWrap__2eY5K"}},function(e,t,a){e.exports={heading:"Modal_heading__1RVgH",form:"Modal_form__3shQi",hidden:"Modal_hidden__A3tMn",body:"Modal_body__23IXD",btWrap:"Modal_btWrap__1M_fr",button:"Modal_button__2J4qk",btCancel:"Modal_btCancel__21-vN",btOk:"Modal_btOk__22kdl",disabled:"Modal_disabled__2C5BK",label:"Modal_label__1iuzE",input:"Modal_input__3Lggv",colorRed:"Modal_colorRed__RVCWW",colorBlue:"Modal_colorBlue__3EwPd",modalfreezer:"Modal_modalfreezer__2L_aJ",freezSpinner:"Modal_freezSpinner__1rqkv",mclockwise:"Modal_mclockwise__odEoP","mcounter-clockwise":"Modal_mcounter-clockwise__3fQlW"}},function(e,t,a){e.exports={tmpSpace:"Login_tmpSpace__2csYk",login:"Login_login__3obys",wrap:"Login_wrap__O7YXu",logoWrap:"Login_logoWrap__2qfjF",inner:"Login_inner__1Ibm9",form:"Login_form__11u5D",head:"Login_head__rcq5A",inputWrap:"Login_inputWrap__16kLI",inputWrap2:"Login_inputWrap2__LZcH_",chbxWrap:"Login_chbxWrap__2Mz-s",input:"Login_input__1jjKa",buttonWrap:"Login_buttonWrap__3aFcH",buttonWrapFl:"Login_buttonWrapFl__2mDfu",button:"Login_button__30MgM",buttonPin:"Login_buttonPin__3NGDd",btL:"Login_btL__3FaTZ",btR:"Login_btR__1xh4R",buttonPinCta:"Login_buttonPinCta__3tBgW"}},,function(e,t,a){e.exports={overlay:"sop_overlay__1sIAn",spinner:"sop_spinner__20ClO",clockwise:"sop_clockwise__1GINO",promptBg:"sop_promptBg__12T8W",promptWrap:"sop_promptWrap__1f7oQ",pRow:"sop_pRow__2CzaP",pRowFirst:"sop_pRowFirst__2v7fj",miniWrap:"sop_miniWrap__15X6g",miniTxt:"sop_miniTxt__10iwK",titleTxt:"sop_titleTxt__3QPWM",buttonsWrap:"sop_buttonsWrap__2r0nh",button:"sop_button__2_8b8",btSep:"sop_btSep__eHPJU",btIcon:"sop_btIcon__8OI-d",btText:"sop_btText__20q3Y",closeBtn:"sop_closeBtn__3SbJY",closeIcon:"sop_closeIcon__1Imbk","counter-clockwise":"sop_counter-clockwise__1jUxR"}},function(e,t){e.exports=new class{set(e,t,a){var i=new Date;i.setDate(i.getDate()+a);var s=escape(t)+(null==a?"":"; expires="+i.toUTCString());s+="; path=/",document.cookie=e+"="+s}get(e){var t,a,i,s=document.cookie.split(";");for(t=0;t<s.length;t++)if(a=s[t].substr(0,s[t].indexOf("=")),i=s[t].substr(s[t].indexOf("=")+1),(a=a.replace(/^\s+|\s+$/g,""))===e)return unescape(i);return null}}},function(e,t,a){e.exports={overlay:"styles_overlay__5qc1C",modal:"styles_modal__1qAkk",modalInner:"styles_modalInner__1TJ_Q",closeButton:"styles_closeButton__2z5U4",closeIcon:"styles_closeIcon__CqtBC",header:"styles_header__7sNy5",spinnerWrap:"styles_spinnerWrap__13zq9",container:"styles_container__2Enbm",content:"styles_content__3kKz7",spinner:"styles_spinner__39T4G",epclockwise:"styles_epclockwise__-C9W7",title:"styles_title__b_4Id",date:"styles_date__BkRGo",desc:"styles_desc__3zztq",misc:"styles_misc__3UOG4",transitionEnter:"styles_transitionEnter__EeUzq",transitionEnterActive:"styles_transitionEnterActive__2WSzN",transitionExit:"styles_transitionExit__wmWBF",transitionExitActive:"styles_transitionExitActive__3sxoN","epcounter-clockwise":"styles_epcounter-clockwise__2RzRL"}},function(e,t,a){e.exports={wrapAll:"Epg4_wrapAll__scohl",container:"Epg4_container__3dM_r",logoWrap:"Epg4_logoWrap__uQrln",logo:"Epg4_logo__n-wrp",playIconBt:"Epg4_playIconBt__1BbuM",playIcon:"Epg4_playIcon__-1_S3",logoWrapName:"Epg4_logoWrapName__CqLku",lcn:"Epg4_lcn__34U1D",naviWrap:"Epg4_naviWrap__TTMrm",naviBt:"Epg4_naviBt__2_n7I",left:"Epg4_left__w0fgo",right:"Epg4_r
1ight__2Krak",disabled:"Epg4_disabled__2AgyE",spinWrap:"Epg4_spinWrap__2R4q4",spinner:"Epg4_spinner__3AB3C",xclockwise:"Epg4_xclockwise__3N8Ko","xcounter-clockwise":"Epg4_xcounter-clockwise__2_kIJ"}},function(e,t,a){!function(t){var a=/^\s+/,i=/\s+$/,s=0,n=t.round,r=t.min,o=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||"")instanceof c)return e;if(!(this instanceof c))return new c(e,l);var h=function(e){var s={r:0,g:0,b:0},n=1,l=null,c=null,h=null,d=!1,p=!1;"string"===typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,s=!1;if(I[e])e=I[e],s=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=D.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=D.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=D.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=D.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=D.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=D.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=D.hex8.exec(e))return{r:x(t[1]),g:x(t[2]),b:x(t[3]),a:O(t[4]),format:s?"name":"hex8"};if(t=D.hex6.exec(e))return{r:x(t[1]),g:x(t[2]),b:x(t[3]),format:s?"name":"hex"};if(t=D.hex4.exec(e))return{r:x(t[1]+""+t[1]),g:x(t[2]+""+t[2]),b:x(t[3]+""+t[3]),a:O(t[4]+""+t[4]),format:s?"name":"hex8"};if(t=D.hex3.exec(e))return{r:x(t[1]+""+t[1]),g:x(t[2]+""+t[2]),b:x(t[3]+""+t[3]),format:s?"name":"hex"};return!1}(e));"object"===typeof e&&(A(e.r)&&A(e.g)&&A(e.b)?(m=e.r,u=e.g,g=e.b,s={r:255*T(m,255),g:255*T(u,255),b:255*T(g,255)},d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):A(e.h)&&A(e.s)&&A(e.v)?(l=W(e.s),c=W(e.v),s=function(e,a,i){e=6*T(e,360),a=T(a,100),i=T(i,100);var s=t.floor(e),n=e-s,r=i*(1-a),o=i*(1-n*a),l=i*(1-(1-n)*a),c=s%6;return{r:255*[i,o,r,r,l,i][c],g:255*[l,i,i,o,r,r][c],b:255*[r,r,l,i,i,o][c]}}(e.h,l,c),d=!0,p="hsv"):A(e.h)&&A(e.s)&&A(e.l)&&(l=W(e.s),h=W(e.l),s=function(e,t,a){var i,s,n;function r(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}if(e=T(e,360),t=T(t,100),a=T(a,100),0===t)i=s=n=a;else{var o=a<.5?a*(1+t):a+t-a*t,l=2*a-o;i=r(l,o,e+1/3),s=r(l,o,e),n=r(l,o,e-1/3)}return{r:255*i,g:255*s,b:255*n}}(e.h,l,h),d=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var m,u,g;return n=P(n),{ok:d,format:e.format||p,r:r(255,o(s.r,0)),g:r(255,o(s.g,0)),b:r(255,o(s.b,0)),a:n}}(e);this._originalInput=e,this._r=h.r,this._g=h.g,this._b=h.b,this._a=h.a,this._roundA=n(100*this._a)/100,this._format=l.format||h.format,this._gradientType=l.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=h.ok,this._tc_id=s++}function h(e,t,a){e=T(e,255),t=T(t,255),a=T(a,255);var i,s,n=o(e,t,a),l=r(e,t,a),c=(n+l)/2;if(n===l)i=s=0;else{var h=n-l;switch(s=c>.5?h/(2-n-l):h/(n+l),n){case e:i=(t-a)/h+(t<a?6:0);break;case t:i=(a-e)/h+2;break;case a:i=(e-t)/h+4}i/=6}return{h:i,s:s,l:c}}function d(e,t,a){e=T(e,255),t=T(t,255),a=T(a,255);var i,s,n=o(e,t,a),l=r(e,t,a),c=n,h=n-l;if(s=0===n?0:h/n,n===l)i=0;else{switch(n){case e:i=(t-a)/h+(t<a?6:0);break;case t:i=(a-e)/h+2;break;case a:i=(e-t)/h+4}i/=6}return{h:i,s:s,v:c}}function p(e,t,a,i){var s=[M(n(e).toString(16)),M(n(t).toString(16)),M(n(a).toString(16))];return i&&s[0].charAt(0)===s[0].charAt(1)&&s[1].charAt(0)===s[1].charAt(1)&&s[2].charAt(0)===s[2].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function m(e,t,a,i){return[M(L(i)),M(n(e).toString(16)),M(n(t).toString(16)),M(n(a).toString(16))].join("")}function u(e,t){t=0===t?0:t||10;var a=c(e).toHsl();return a.s-=t/100,a.s=H(a.s),c(a)}function g(e,t){t=0===t?0:t||10;var a=c(e).toHsl();return a.s+=t/100,a.s=H(a.s),c(a)}function v(e){return c(e).desaturate(100)}function y(e,t){t=0===t?0:t||10;var a=c(e).toHsl();return a.l+=t/100,a.l=H(a.l),c(a)}function _(e,t){t=0===t?0:t||10;var a=c(e).toRgb();return a.r=o(0,r(255,a.r-n(-t/100*255))),a.g=o(0,r(255,a.g-n(-t/100*255))),a.b=o(0,r(255,a.b-n(-t/100*255))),c(a)}function f(e,t){t=0===t?0:t||10;var a=c(e).toHsl();return a.l-=t/100,a.l=H(a.l),c(a)}function E(e,t){var a=c(e).toHsl(),i=(a.h+t)%360;return a.h=i<0?360+i:i,c(a)}function C(e){var t=c(e).toHsl();return t.h=(t.h+180)%360,c(t)}function b(e){var t=c(e).toHsl(),a=t.h;return[c(e),c({h:(a+120)%360,s:t.s,l:t.l}),c({h:(a+240)%360,s:t.s,l:t.l})]}function k(e){var t=c(e).toHsl(),a=t.h;return[c(e),c({h:(a+90)%360,s:t.s,l:t.l}),c({h:(a+180)%360,s:t.s,l:t.l}),c({h:(a+270)%360,s:t.s,l:t.l})]}function w(e){var t=c(e).toHsl(),a=t.h;return[c(e),c({h:(a+72)%360,s:t.s,l:t.l}),c({h:(a+216)%360,s:t.s,l:t.l})]}function S(e,t,a){t=t||6,a=a||30;var i=c(e).toHsl(),s=360/a,n=[c(e)];for(i.h=(i.h-(s*t>>1)+720)%360;--t;)i.h=(i.h+s)%360,n.push(c(i));return n}
vendor: 4,894 bytes, line 1
1function N(e,t){t=t||6;for(var a=c(e).toHsv(),i=a.h,s=a.s,n=a.v,r=[],o=1/t;t--;)r.push(c({h:i,s:s,v:n})),n=(n+o)%1;return r}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,a,i,s=this.toRgb();return e=s.r/255,a=s.g/255,i=s.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:t.pow((a+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:t.pow((i+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=n(100*this._a)/100,this},toHsv:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=d(this._r,this._g,this._b),t=n(360*e.h),a=n(100*e.s),i=n(100*e.v);return 1===this._a?"hsv("+t+", "+a+"%, "+i+"%)":"hsva("+t+", "+a+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=n(360*e.h),a=n(100*e.s),i=n(100*e.l);return 1===this._a?"hsl("+t+", "+a+"%, "+i+"%)":"hsla("+t+", "+a+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,a,i,s){var r=[M(n(e).toString(16)),M(n(t).toString(16)),M(n(a).toString(16)),M(L(i))];if(s&&r[0].charAt(0)===r[0].charAt(1)&&r[1].charAt(0)===r[1].charAt(1)&&r[2].charAt(0)===r[2].charAt(1)&&r[3].charAt(0)===r[3].charAt(1))return r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0);return r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return 1===this._a?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(100*T(this._r,255))+"%",g:n(100*T(this._g,255))+"%",b:n(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1===this._a?"rgb("+n(100*T(this._r,255))+"%, "+n(100*T(this._g,255))+"%, "+n(100*T(this._b,255))+"%)":"rgba("+n(100*T(this._r,255))+"%, "+n(100*T(this._g,255))+"%, "+n(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(z[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),a=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var s=c(e);a="#"+m(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+a+")"},toString:function(e){var t=!!e;e=e||this._format;var a=!1,i=this._a<1&&this._a>=0;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(a=this.toRgbString()),"prgb"===e&&(a=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(a=this.toHexString()),"hex3"===e&&(a=this.toHexString(!0)),"hex4"===e&&(a=this.toHex8String(!0)),"hex8"===e&&(a=this.toHex8String()),"name"===e&&(a=this.toName()),"hsl"===e&&(a=this.toHslString()),"hsv"===e&&(a=this.toHsvString()),a||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(e,t){var a=e.apply(null,[this].concat([].slice.call(t)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(f,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(b,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},c.fromRatio=function(e,t){if("object"===typeof e){var a={};for(var i in e)e.hasOwnProperty(i)&&(a[i]="a"===i?e[i]:W(e[i]));e=a}return c(e,t)},c.equals=function(e,t){return!(!e||!t)&&c(e).toRgbString()===c(t).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})}
vendor: 2,406 bytes, line 1
1,c.mix=function(e,t,a){a=0===a?0:a||50;var i=c(e).toRgb(),s=c(t).toRgb(),n=a/100;return c({r:(s.r-i.r)*n+i.r,g:(s.g-i.g)*n+i.g,b:(s.b-i.b)*n+i.b,a:(s.a-i.a)*n+i.a})},c.readability=function(e,a){var i=c(e),s=c(a);return(t.max(i.getLuminance(),s.getLuminance())+.05)/(t.min(i.getLuminance(),s.getLuminance())+.05)},c.isReadable=function(e,t,a){var i,s,n=c.readability(e,t);switch(s=!1,(i=function(e){var t,a;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),a=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==a&&"large"!==a&&(a="small");return{level:t,size:a}}(a)).level+i.size){case"AAsmall":case"AAAlarge":s=n>=4.5;break;case"AAlarge":s=n>=3;break;case"AAAsmall":s=n>=7}return s},c.mostReadable=function(e,t,a){var i,s,n,r,o=null,l=0;s=(a=a||{}).includeFallbackColors,n=a.level,r=a.size;for(var h=0;h<t.length;h++)(i=c.readability(e,t[h]))>l&&(l=i,o=c(t[h]));return c.isReadable(e,o,{level:n,size:r})||!s?o:(a.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],a))};var I=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
10",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=c.hexNames=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&(t[e[a]]=a);return t}(I);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function T(e,a){(function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var i=function(e){return"string"===typeof e&&-1!==e.indexOf("%")}(e);return e=r(a,o(0,parseFloat(e))),i&&(e=parseInt(e*a,10)/100),t.abs(e-a)<1e-6?1:e%a/parseFloat(a)}function H(e){return r(1,o(0,e))}function x(e){return parseInt(e,16)}function M(e){return 1===e.length?"0"+e:""+e}function W(e){return e<=1&&(e=100*e+"%"),e}function L(e){return t.round(255*parseFloat(e)).toString(16)}function O(e){return x(e)/255}var D=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",a="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"
1+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function A(e){return!!D.CSS_UNIT.exec(e)}e.exports?e.exports=c:window.tinycolor=c}(Math)},,,,,function(e,t,a){e.exports={header:"header_header__vJmVO",headerInner:"header_headerInner__3lWBo",headerLeft:"header_headerLeft__3aa_E",headerRight:"header_headerRight__2x4Y1",headerMenu:"header_headerMenu__2Gofi",active:"header_active__-MT5g",icon:"header_icon__ZE0Mg",ddMenu:"header_ddMenu__2jpaH"}},,function(e,t,a){e.exports={container:"Devices_container__3nVzC",table:"Devices_table__1AI7W",thead:"Devices_thead__2cI7k",alignr:"Devices_alignr__1xJC0",delWrapper:"Devices_delWrapper__1CYG_",delIcon:"Devices_delIcon__k4PlX"}},,function(e,t,a){e.exports={wrap:"epgCanal_wrap__3VVRz",header:"epgCanal_header__2jrEC",headButton:"epgCanal_headButton__3OL7g",spinnerWrap:"epgCanal_spinnerWrap__clZXi",spinner:"epgCanal_spinner__RK6qE",cclockwise:"epgCanal_cclockwise__33rs9",infoWrap:"epgCanal_infoWrap__1btyY",epgProgram:"epgCanal_epgProgram__10_cS",pWrap:"epgCanal_pWrap__vNLBs",hour:"epgCanal_hour__1LNY4",title:"epgCanal_title__1qPBP","ccounter-clockwise":"epgCanal_ccounter-clockwise__1m-RN"}},,function(e,t,a){e.exports={subHeader:"LiveTvMain_subHeader__1j2UR",subHeadInner:"LiveTvMain_subHeadInner__1Hvm6",subHeaderRight:"LiveTvMain_subHeaderRight__1pEqt",ctWrap:"LiveTvMain_ctWrap__2CltK",rightColumn:"LiveTvMain_rightColumn__1UExI",ct:"LiveTvMain_ct__22s2U",rightCol:"LiveTvMain_rightCol__3qdyn",chListWrap:"LiveTvMain_chListWrap__2lGTd",chListWrapInner:"LiveTvMain_chListWrapInner__22_4G",videoWrap:"LiveTvMain_videoWrap__3XhnW",vidArea:"LiveTvMain_vidArea__KnDsF",epgArea:"LiveTvMain_epgArea__HAr4b"}},,,,function(e,t,a){e.exports={listContainer:"ChannelList_listContainer__2C-o6",noFavsInfo:"ChannelList_noFavsInfo__TAhke",active:"ChannelList_active__1ZPXe",itemInner:"ChannelList_itemInner__3TGDK",iconWrap:"ChannelList_iconWrap__2-tNY",logoWrap:"ChannelList_logoWrap__34ppW",titleWrap:"ChannelList_titleWrap__3xKSq",titleInnerWrap:"ChannelList_titleInnerWrap__ThFW9",title:"ChannelList_title__1r-dS",titleIcon:"ChannelList_titleIcon__2zSw1",subTitle:"ChannelList_subTitle__o8o4s",lcn:"ChannelList_lcn__3ArBo",thumbVertical:"ChannelList_thumbVertical__1eD7Q",trackVertical:"ChannelList_trackVertical__1IQtH",timelineWrapAll:"ChannelList_timelineWrapAll__2VBQ0",timelineHour:"ChannelList_timelineHour__1R4tS",textHour:"ChannelList_textHour__3JtOA",timelineWrap:"ChannelList_timelineWrap__3aFUk",timelineCompleted:"ChannelList_timelineCompleted__1WAXP",timelineRemaining:"ChannelList_timelineRemaining__3Uc2t",spinnerWrap:"ChannelList_spinnerWrap__1hl9j",spinner:"ChannelList_spinner__2dL1r",cclockwise:"ChannelList_cclockwise__Ptbww","ccounter-clockwise":"ChannelList_ccounter-clockwise__1QhBG"}},function(e,t,a){e.exports={overlay:"player_overlay__21w7E",videoContainer:"player_videoContainer__1OvQe",spinnerSvg:"player_spinnerSvg__1gjyV",rotate:"player_rotate__3JrMz",spinnerPath:"player_spinnerPath___kiVd",dash:"player_dash__2V7s6",infoContainer:"player_infoContainer__161sC",pauseBigIcon:"player_pauseBigIcon__3-ACn",volumeWrap:"player_volumeWrap__3_cJ_",chListWrap:"player_chListWrap__G-sTb",color:"player_color__37Hku"}},function(e,t,a){e.exports={tagsWrap:"channelTags_tagsWrap__1RDPl",tagsInner:"channelTags_tagsInner__3TV62",tagSelect:"channelTags_tagSelect__2QWRI",tagItem:"channelTags_tagItem__2PBz5",selectIconWrap:"channelTags_selectIconWrap__3nBaB",selectIcon:"channelTags_selectIcon__1EuRi"}},function(e,t,a){e.exports={wrapper:"searchbox_wrapper__3GY5V",h1Title:"searchbox_h1Title__WPHCV",btnWrap:"searchbox_btnWrap__2k0_g",button:"searchbox_button__2YpbN",inputWrap:"searchbox_inputWrap__2QzHu",input:"searchbox_input__2QO1q"}},function(e,t,a){e.exports={footer:"footer_footer__2g4_C",buildInfo:"footer_buildInfo__3SkmS",rMenu:"footer_rMenu__2nLZs"}},function(e,t,a){e.exports={spinnerWrap:"epgCanalList_spinnerWrap__3XmWb",spinner:"epgCanalList_spinner__1M7GJ",cclockwise:"epgCanalList_cclockwise__tyO--",pWrap:"epgCanalList_pWrap__2nLA4",hourWrap:"epgCanalList_hourWrap__3nFdY",titleWrap:"epgCanalList_titleWrap__2f0u0",hour:"epgCanalList_hour__1vCv2",noepg:"epgCanalList_noepg__2sOC2","ccounter-clockwise":"epgCanalList_ccounter-clockwise__LZkTF"}},,,,,,,function(e,t,a){e.exports={container:"Pins_container__zWklF",chgPinBtn:"Pins_chgPinBtn__3SDcy",table:"Pins_table__2YT4z",thead:"Pins_thead__1GJYF",alignr:"Pins_alignr__3P6M1",delWrapper:"Pins_delWrapper__9omEk",delIcon:"Pins_delIcon__3Dv0p",formWrap:"Pins_formWrap__3U0DJ"}},,,,,,,,,function(e,t,a){e.exports={toast:"cookieinfo_toast__9tpVP",buttonWrap:"cookieinfo_buttonWrap__3uuvW",button:"cookieinfo_button__3gh5-"}},function(e,t,a){},,,,,function(e,t,a){e.exports={overlay:"style_overlay__2wSCN",spinner:"style_spinner__1953T",clockwise:"style_clockwise__22qdG","counter-clockwise":"style_counter-clockwise__1ktpX"}},function(e,t,a){e.exports=function(e,t){var a=e.requestAnimationFrame||e.setImmediate||function(e){return setTimeout(e,0)};function i(e){Object.prototype.hasOwnProperty.call(e,"data-simple-scrollbar")||Object.defineProperty(e,"data-simple-scrollbar",{value:new r(e)})}function s(i){for(this.target=i,this.direction=e.getComputedStyle(this.target).direction,this.bar='<div class="ss-scroll">',this.wrapper=t.createElement("div"),this.wrapper.setAttribute("class","ss-wrapper"),this.el=t.createElement("div"),this.el.setAttribute("class","ss-content"),"rtl"===this.direction&&this.el.classList.add("rtl"),this.wrapper.appendChild(this.el);this.target.firstChild;)this.el.appendChild(this.target.firstChild);this.target.appendChild(this.wrapper),this.target.insertAdjacentHTML("beforeend",this.bar),this.bar=this.target.lastChild,function(e,i){var s;function n(e){var t=e.pageY-s;s=e.pageY,a(function(){i.el.scrollTop+=t/i.scrollRatio})}function r(){e.classList.remove("ss-grabbed"),t.body.classList.remove("ss-grabbed"),t.removeEventListener("mousemove",n),t.removeEventListener("mouseup",r)}e.addEventListener("mousedown",function(a){return s=a.pageY,e.classList.add("ss-grabbed"),t.body.classList.add("ss-grabbed"),t.addEventListener("mousemove",n),t.addEventListener("mouseup",r),!1})}(this.bar,this),this.moveBar(),e.addEventListener("resize",this.moveBar.bind(this)),this.el.addEventListener("scroll",this.moveBar.bind(this)),this.el.addEventListener("mouseenter",this.moveBar.bind(this)),this.target.classList.add("ss-container");var s=e.getComputedStyle(i);"0px"===s.height&&"0px"!==s["max-height"]&&(i.style.height=s["max-height"])}function n(){for(var e=t.querySelectorAll("*[ss-container]"),a=0;a<e.length;a++)i(e[a])}s.prototype={moveBar:function(e){var t=this.el.scrollHeight,i=this.el.clientHeight,s=this;this.scrollRatio=i/t;var n="rtl"===s.direction,r=n?s.target.clientWidth-s.bar.clientWidth+18:-1*(s.target.clientWidth-s.bar.clientWidth);a(function(){s.scrollRatio>=1?s.bar.classList.add("ss-hidden"):(s.bar.classList.remove("ss-hidden"),s.bar.style.cssText="height:"+Math.max(100*s.scrollRatio,10)+"%; top:"+s.el.scrollTop/t*100+"%;right:"+r+"px;")})}},t.addEventListener("DOMContentLoaded",n),s.initEl=i,s.initAll=n;var r=s;return r}(window,document)},,,,,,,,,,,function(e,t,a){},function(e,t,a){e.exports={clock:"clock_clock__VGj_j"}},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAAA3CAYAAACcjtEfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i
177u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowMTQxMWI2ZS1mNWFhLWQwNGEtOWVlYS0xODhkZDA3OGM0ZDAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MjRBODJDOUM3MEU1MTFFOEEwM0NGRjk5OTY5MERGMzIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MjRBODJDOUI3MEU1MTFFOEEwM0NGRjk5OTY5MERGMzIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTQ0MjY2OWQtMjAwOC05MTRiLWIyODEtMjkxMDU3NWMzMjg2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAxNDExYjZlLWY1YWEtZDA0YS05ZWVhLTE4OGRkMDc4YzRkMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PivlYYAAABF7SURBVHja7F0LeBXVtV57Zs6ZOc8kJ4eEQIAQIgEhELC8rdAq3nrFUqhC+9mK1l65VXzQTyveq9LbfheNBZGHV+j9it6qtT7oBxa1CAjCrUIuKiAEIoQ8gJD36yTnMWced+3JJJkkJ8k5J4QKzp9vseex957XP2uvtfaaA1FVFUyY+LqDMW+BCZOoJkyYRDVhEtWECZOoJkyYRDVhEtWECZOoJkz0Cs68Bd9czJuyvH2ZTvuwqgpOhQGPzEG26ABFCgEvSeCSAIgUhgkBW3ITExqdGCbT3RIzkVeYaziVpLEANoWAHGKgTiRQ6mOVEzWcnF9rkQ9bVLbKx8pBDqlWy0mQqjig2BoAH6NAPReGAFGAGM5pU+F/mUQ1ERsoeUUkEq9yWSmy8AObyi52hq3fKmcDcMgegFJrCKqQfCEi49BMwCVzQ1Mla06mKMzLEp0wJGCr9HHKjmqQ3qnhpL0KqCFTo5q45CTFf73pkuPOzLDlX+uJf8yfEyvhU6EBCmx+qGXDoOiqkBgaqbgi4I4RogC5AVfqbL/n3nGhhCVOlX+9iPg3S0T9tF9EJYR02vF56ggBi0koo1BSUVwGu9bdS59nJleWbvxH3WA870Qs6vvRxXY8/x9cMYRS1ZlYDEIpRDl1KfpEzUdl2hjZ8ywD4pwt7hLYbauEC1xII6JNZSBRZpGgJGJ7CdsXW4NwivfDDnc1TAi6ucWN6Usmhzw3V1ml50Xif147TH80Kj7oHCyeRLkNxRbHdX6MstHUSZeFpGlYzEbJQjmL8p/97VNG/iSr7gXDwfN8gaUq401HIZy2NGpDe4LCtXvfarvW7Q5KYZfCghOXqOlwyN4IBbwPbm1JS1vky3guW0zIOsY3PopVm+Py+pGk92HxGcqiOElq4vLCgULtPm8/RxGNdhKSNIW4f5TFpP1hH3cuY53tcyjmmsCBBHWikD4I2t10ALRvqfblQMLGb7nOw289x4lKyNKcsGcL1nFEm7vHGUg6F4vN38CHTR/0QcP68SvlxNFcO4Na9SQulqBUxExNg7lHCeNlkuZmkYx1e+Fk0i74ErcRHOa5TsSLz9ZtJawV7YYTfCM8l3gcHmnKuWOC6G3MF6ruR+aG1T6OYBz6/yOG4/8F5VfaSNEdwSuMqBVok865Ut8yJOsHBlMgprZ+QWhfHgSuURnM0DWfB4tTdstHNfuTu8RhdtqnA4lfZGmCDQkF8HDTxHsmiamFxy31q9siB9EQdUoMx1yI8gW1ifAh93l3UFtTU+LNKPp9DPtbrbd5AYuH47gfSZfAIcvAoriXKqV4nhl63W1YzO+l7gKsu61L/w1YJPRQ/36s/5Kh7iYslvZQtxHrJsZNHJXqMao3CevmB/26Qm7J2R86rBGeIwMTEKJksSNZT1nqYKujiF3kH/tLQW3a7yfhfAZt2mhsVBLjMX+L8ke8kdYo6v5LlH3ebpqd8Bs9ckFJmonFzwbqQGGrABIKzyfNAVvCnYdbPgO/1AwWYr0k/ZNeGGVDZ+sAfx6O8jVpWYr3IStYbIQwURG1II5z+QnKR3hDk3vRTvRm3xhlf9Ow/tDLTAwP1d4GufcfTFTqGD2tL9PSMlAHkjgOZI7nBfeIp0uCxaQiWAw8Y4tokdLwpYKaVpJkCEsSyIrSyxCPfcsyhEJhrW4kk4RF6onovO3ki3CJXehVnbN705VGom6P83pnoXyiEzIS7olRWy/USxri+o4uLVFo7La6scKlmxhtctvXQKsuw/u5AMufDuRBGD6BsELid4K8MPO8r0AjQ1etRkkWCIagqbkFWCRrUqIbvJ5EsAu8RkQZCdkWg6d0DIZEaPYHweWww/D0NK0ureMPBLsRVkAToIRppGaADW3kHwNhhGhs1Dzd1sqJ45pHoxzCm3sb2kwHDdqU9h+rhvohygbs5wyWZ/R+pD7aHMb6R/S6iXDlg2rRd2CAk4aarazDzqcsrg/VcP5ABbAM30mbyrIEgYAIkyaMgTvm3wRTJ4+HFG8SsCwLLf4AfFVUCqs3vgpfFpwGAYnbjNuuHT0Slt61EL49YzIkJbjAjyQ/frIItry+DXbtOwS8YAWOZXXyEQgSBY6xFZCppNxqVS1pPfkG7UTFB92MD5kO0R+hjI9zyKJmwBzsK1/fdgtKWpd6sk7A7B76+Tb2kYJ9VF0mUoS7mD3FXxOyDnhmm8JaRodtruktdUdBVcLoUnUM+4qsQDgsw9K7fwi/enAJJCa4urXPGJYGm1/ZCqFwWDMLpk4aBy/mrYBRI9Pb6yRgu7RUL1w/LReeXPUivPzGu2C32ZDsrZdnUVko5eqhXg4lu4htSp9E1clajST5Li7SkMd1cVw7vdI1lGz6+n0R6lDvvxTliV4eEB32LldMtxyvOzeC13/VI2xPnKpwMCjYWIbDN9dJm7bg8P3TRbfAqieXtW+rqW2A02fLNFPAm5wI5RXV2jqD5gLVtOtXPdZO0uLSC7B7fz7MmJID48dkgc3GwxPLf4ba9wwcPnoSXE67djQrWquNJADnmHrIULx0OvitPolqICvVrB+iTI3j+q/H9g49/HJLhP00/DS4F6LCZSbqNxYhm2sCkZqdSrAOzUO23WkKo4ZMSUmCRx9Y0vHyHimAlXmb4YvjhSChpvUkJ6CdKkBzS4AasjD/ljkwOmuEVreiqhYeXJEH7+08AFOuGw+vb14F12QO0+zV2+ffCMfQVJAVGU0NtnW2C9tXMj4c/lNzYhpekKyNWNyMkh/nPXDpYZWugTE6GbAS5Zd9tL8Rye4xqTTQRBVGipKfBzncyd+ljs9NN0yFYemp2np1TT089exL8N7uA5pTFRBFKCkrh4KvzoKIpLZaLTB3zrT29vs/+Qz+99BR8A7ywInCYnj73V3t+2bPuA6SkbCSpBiiBETTqujIDYnGmepGViQL9aJ3xOhNU8envof4nwC9B8eN53UryqsmnQaQqLwwxCIHgVMVUA3evqyoMClnTPv6qTMlcOTEafAkJULeUw9CJg7vCtax223w7gf74E9b/wZD01Lb6xeVnMf9Cgg8T5UtnMX1NqQgeZMSnFBb19BJWwaISJ0XV8xE1cnqR7LOi5GsNN/wBpSR/byPi0yiDjBRBV4gjKIN3Z2GWYaAy+XosF
1dxeA+HJdzOwI2zp0HG8A7Fd7b4HFgsHFgtHVTy+4O6GUH/UUEUO4I2LPbBclwE7UZTC3vmozEpxRVhqG7DyhiI+iJEnomi04JfGdapA7Okl35uwnNy0mjEVc4X+hQVza/ojosRoiaX7sBECdKgf9dwvCqrEAx0pGxQx8dqsUAwFIK/5x/TiExjpFp0ADVnSAxrDla7p+92tiVeAypr1Lwd4VEaZw0GQxFsUELbyNHYqAf0ITuS7I/y2t/Xw1tdE4+rUR5B0r3QJrj+6z76olc37yog4lp84Y60SYT9dDJjRQ9tVwzkiclEvigJdmRBF/2EqvBE4dn21exrMmDyhGyorW+Cux94Clat3dJBIJYFn68FSs6Vt28bO3okcCwDdQ0+zd4dl90xF1R2oQK3NwFhO6hH8w141ULfVt/liNXtRPkxyl3QfdrvD0hOsYtZURJFzHLhVUBUGuqaaJBIoC/u7i7bDg206SOpconflSQqrAWMCfd2mwAf7juIxGzU1qm3/psVv4Dvf+8GtFMTwOl0GDhNQEbH6MO9HZmSM6flwuL5N4NgtcL3vjsdbv9+xwz6LqxHCdwW9G8jqlOx4fko5QNJVJoHeT8NRSH5mrD8edeRBGVTD20/6qPvf0YtdNUncOsZaHej1Bnu2UPRZKb1B25L8zHPcI+PJCTTaajWA6O9arVyUHruIry05e0OOy0nG15evxJ2vLEOlv18UafHS2Ok2z/4GE6c1CYStRmpZ55+ELa/9jxsWv3vkJY6SNtOY6tbd+zRXgrGMO1KNXgSOCFEpOPROFOFMVyjH1oTjKkW/WubtkRSjYXWROSjRs2A+0t76Iemv32rr+eI8iX04hFSp9E4onU5fl+I9BaLffRhbFMc4/Ggy/X4dLJe0BNiqEm02zC711vfvn69IEz9ocEp3uoLo0clF5WXAme3tjtWNkGATa+8g9qVh1/ccweSUdC0KZXOVgIDFo7VhvMHVuTBxmcfh/Fjs7ScgFnTOuZRSpCky59aA0UlFzSbt8NAl8GpCjBI8UAzBHv88I+0JQoQQsDElY1YE6fnP/sn17XDh2z0VVXdte33/w0MDtVGFtAYKc2WmpJ7LcydMx3GZo+EBJdTy4yqqanXwlZ7DhyGk1+d1TQktUeHpw+GHy34J5g5dSK4XQ5oamqG/C9OwFvbdmmzWE6HvRPXgqgTMuU0mCPl1pczNVP+58SqopjDUyaubtgJNJeVV70lDM+80zkknW2+UAasYGvXqtTT51gODh89BQc/O65pThqKojFULdVPVrRgP29tdUkoCSsqa+G5DX8Enrfidk6LCNAsK4uFRU3q6HR8pTVpGzKUNBBV6X0RpPJohn4TlxJ5R+i9vV4P+R2Ax3M7OZM/mbCOJv7QWPPB1449XG3ctz57LZ1ipgkaZx4qXH7SuK/W+jiNhtygm1gHksU8Jd5TLKuqU1WG2dPiHnGwZdysWUwZKjOF75TxTENRNgE1LeE1jU2FQc+GEpZqxq5aXCMub9HITLUxdZqsTg4iKXvU1+BVEmCI7A02MM1vyKAG+hz6vxic8YjJrn5ji+ZQ5h2hhtxeaP1dBAr6vf1sJGuVTtK1NFxnCE8tQLLu0klKQ3Jv6+E5imeQrP+mk5Qmle+D1s+jKT5BmYtk9ccz9I++f72mPSv45Jtbho7fOehvm8B2vgAUuxtggP9vB6pN6afZN4i5kKp6/nyerbwXN/m3nljTp0Zda/Ks36DOIY18LDOQlILORz5GBUk60UBSCjoerkO5Vl9/yUBSiieQvC8jWU9DayJPlmEfzTa6Tw9vxYwLjWHN7WZI5R7iGv5mw3XzF/O1ZUDCQVA5AeL/9jSK0Bj+jZLTYZgyuPIcW7FBhLCfIdF9M2Xi0iHS1w6j9DIjwr5rdG1Kjb30CPtHGut1QUa8J8nhsM6xhA7vsrXu/ErRPfhkw8R5QHDYJoo0YDeHDvlJqhtyw2PUZhJYjyT9lOn1G1STqAOFvb1sy4fun5Rr8WTUmjSN6e9d9tEp5P8z1uuC/fGeJBsMtotQebbQUfz5o77MGXWN4+YCyBLNnh4QkrpUB8wUJ4FI5FfPshdW+4mohnB7EHp+ObgIb62J+NGWJvQ6Co0pP6w7U79H0X5PEW3Rizj804g5zYkYppPP+LkO/WDyNWj9Fq0EZSkSuN5gntHndI/uTP0O7dO/9COe1WnZ2lD+vmJxLPdlz93AyKrbcQbNYQl9QI4q+v6FLxX8o8N9opoAM8KTgVO57SXcuWXonhmczJ5NDWL+h2jfXHhuN/5UFfIAbUTF6gTZkbJYdqevsZd/OdR2eg+w/hpQGdRprFUnrBoTQWX8o63SlaEwXhwLaG28Us5ULJeJ1KB0+a20ncc3muEpE1EoWYYFtrn6TUZhysPesc+AbfAsoeQAsDWnULu2aIQlBDWslr/aM2kpPakGpXFSN2rRUXImDJOHVqNN8UI1U/070vqtWvT2tPloTHQfZ6m1Qg5w9WV3MJzjLmnk3KVMcs5ItvYUqL5SUIN1oCpi6++jks5ZUPRnKSk5eRDAq6ZCqpoCKcog4BT2jUbSuFkA68dsHK6RSVQTPZBVs0kvMs2VeYzF9VfC2heyqdMXWRJzc0hLBUCgGq3LRlDlAKrPMDDIUE61AE8EcKpOtEUTwa4K9YwqvydD+J0A8e9CK9WP2+KLUJhPxESvoEO9IhYQMVCgKrBJVch4i9Uz3cJ6J1llNcMiyV6rLAtcWJY5WWm0yNJFosgFihQ81AQN+ahByxUIB+gPrqn9cMhMZ8rElfG+mLfAhElUEyZMopowiWrChElUEyZMopowiWrChElUEyZ6xf8LMADdJ6ex7UIM7wAAAABJRU5ErkJggg=="},function(e,t,a){},function(e,t,a){e.exports={chkbox:"checkboxpin_chkbox__2Ltj5"}},function(e,t,a){e.exports={chkbox:"style_chkbox__14uO_"}},,function(e,t,a){e.exports=a.p+"static/media/logo-login.7e554129.png"},,,function(e,t,a){e.exports=a(128)},,,,,,,,function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){e.exports=a.p+"static/media/karaoke-logo.0ed37d5d.jpg"},function(e,t,a){},,,function(e){e.exports={build:20}},function(e,t,a){},function(e,t,a){},,function(e,t,a){"use strict";a.r(t);var i=a(0),s=a.n(i),n=a(63),r=a.n(n),o=(a(84),a(85),a(74)),l=a(130),c=a(131),h=a(133);a(86),a(87),a(88);var d={main:{products:{}},nowTime:0,epgFetchTime:0,epgReloadTime:3600,epgDs:null,channels:{},nextScreenName:"Main",currentScreenName:"none",currentRoute:"none",host:"https://ott1.satfilm.pl/",token:"a",clockLastHour:null,loginFromStorage:!1,showLogin:null,epgChannelsCache:null,epgTabsCache:null,epgPagesRendered:[],channelIdSelected:0,channelIdSelectedLast:0,karSongIdSelected:0,karSongIdSelected2:0,epg2DataCache:null,videoPosition:0,spinTime:0,eventId:0,onResize:null,epgTimeSpan:0,epgTimeSpanCount:0,epgTimeLast:0,serverTime:0,selTagId:0,selectWidth:0,autoPlay:!1,autoPlayId:0,epgVisible:!1,pinSeen:!1,startOver:!1,channelsLoaded:!1,videoPlayedBefore:!1,onClockChange:null,subHeaderHeight:60,footerHeight:40},p=a(3),m=a.n(p),u=a(9),g=a.n(u);var v=class extends i.Component{constructor(e){super(),this.state={rerender:!1}}componentDidMount(){m.a.isLoggedIn()?this.setState({rerender:!0}):this.autoLogin()}autoLogin(){let e=g.a.get("_ssid"),t=g.a.get("_usid");if(null!==t&&m.a.setUid(t),null===e)return void this.setState({rerender:!0});let a={ulogin:"",upass:"",uid:null!==t?t:"",uuid:e,brand:"na",model:"na",type:"pc",platform:"pc"};const i=Object.keys(a).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(a[e])).join("&");fetch(d.host+"api/app/user/login",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:i}).then(e=>e.json()).then(e=>{"error"===e.status?this.setState({rerender:!0}):"ok"===e.status&&(m.a.setToken(e.token),m.a.setUid(e.uid),m.a.setLogged(!0),this.setState({rerender:!0}))}).catch(e=>{this.setState({rerender:!0})})}render(){return this.state.rerender?m.a.isLoggedIn()?s.a.createElement(l.a,{to:"/telewizja"}):s.a.createElement(l.a,{to:"/kamery"}):s.a.createElement("div",null)}},y=a(12),_=a.n(y);const f="#d9a518",E="#e53935",C="#314d7a",b="#1e2f4a",k="#1e2f4a",w="#4a1e2b",S="#cba214",N="#ac4428",I="#ff1744";
1var z={accentColor:f,buttonColor:E,soIconColor:"#a4cf63",lockIconColor:"#ed3b43",pinIconColor:"#ffd531",homeIconColor:"#E3F2FD",vipIconColor:"#76FF03",buttonColorDark:_()(E).darken(10).toString(),accentColorLight:_()(f).lighten(10).toString(),bgColor:C,bgColorLight:_()(C).lighten(10).toString(),bgColorLightMore:_()(C).lighten(20).toString(),bgColorDark:_()(C).darken(5).toString(),plateColor:k,plateLightColor:_()(k).lighten(50).toString(),plateLightColor2:_()(k).lighten(10).toString(),plateLightColor3:_()(k).lighten(6).toString(),plateLightColor4:_()(k).lighten(3).toString(),plateLightMoreColor:_()(k).lighten(20).toString(),plateLightMoreColor2:_()(k).lighten(30).toString(),plateDarkColor:_()(k).darken(10).toString(),tinyEpgTitleColor:_()(k).lighten(70).toString(),tinyEpgHourColor:_()(k).lighten(50).toString(),tinyEpgSepColor:_()(k).lighten(30).toString(),plateActiveColor:w,channelNameColor:S,headerColor:b,statusBarColor:_()(b).darken(5).toString(),epgLineCompleted:N,epgLineRemaining:_()(k).lighten(10).toString(),epgLineHourColor:_()(k).lighten(50).toString(),alarmIconActive:I,alarmIconDisabled:_()(b).lighten(15).toString(),connectionType:"",cellularNotify:!0,userConf:{allowPacketData:!0,packetDataNotify:!0,epgNotifyTime:15},css:{siteHeaderHeight:76,siteLeftPadRight:15,siteContentPadding:18,siteFooterHeight:25}},P=a(34),T=a(53),H=a.n(T),x=a(47),M=a.n(x);const W={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5},L=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror"],O=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],D=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError"],A="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},R="fullscreenEnabled"in A&&Object.keys(W)||L[0]in A&&L||O[0]in A&&O||D[0]in A&&D||[];var j={requestFullscreen:e=>e[R[W.requestFullscreen]](),requestFullscreenFunction:e=>e[R[W.requestFullscreen]],get exitFullscreen(){return A[R[W.exitFullscreen]].bind(A)},addEventListener:(e,t,a)=>A.addEventListener(R[W[e]],t,a),removeEventListener:(e,t,a)=>A.removeEventListener(R[W[e]],t,a),get fullscreenEnabled(){return Boolean(A[R[W.fullscreenEnabled]])},set fullscreenEnabled(e){},get fullscreenElement(){return A[R[W.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return A[`on${R[W.fullscreenchange]}`.toLowerCase()]},set onfullscreenchange(e){return A[`on${R[W.fullscreenchange]}`.toLowerCase()]=e},get onfullscreenerror(){return A[`on${R[W.fullscreenerror]}`.toLowerCase()]},set onfullscreenerror(e){return A[`on${R[W.fullscreenerror]}`.toLowerCase()]=e}};class V extends i.Component{constructor(e){super(e),this._handleItemPress=(()=>{this.props.item.channel_id!=d.channelIdSelected&&(this.props.item.lock?alert("Brak dost\u0119pu.\nNie posiadasz dost\u0119pu do pakietu: '"+this.props.item.pktname+"'"):this.props.press(this.props.item,this.props.xindex))}),this.epgBusy=!1,this.state={epgListData:null,epgActive:!1,isEpgOpen:!1,selectedId:0}}onEpgPress(e){if(!this.epgBusy){if(this.epgBusy=!0,this.state.isEpgOpen)return this.epgBusy=!1,void this.setState({epgListData:null,epgActive:!1,isEpgOpen:!1});this.setState({epgActive:!0}),this.epgListGet(e)}}epgListGet(e){fetch("http://ott1.satfilm.pl/api/app/epg/list/"+e,null,4).then(e=>e.json()).then(e=>{this.setState({epgListData:e.epg,isEpgOpen:!0}),this.epgBusy=!1}).catch(e=>{console.error(e)})}renderEpgIcon(e){}render(){const e=this.props.item,t=this.props.style,a=this.props.epgitem,i=this.props.epgtime.completed,n=this.props.epgtime.remaining,r=1==e.slcn?e.lcn:"--",o=1===e.epgexists?a.title:this.props.subname.length?this.props.subname:a.title,l=e.channel_id==d.channelIdSelected?t.active:"inactive";let c=null,h=null,p=null,m=null,u=null,g=null,v=null,y={};return e.so&&(u=s.a.createElement("i",{className:`material-icons ${t.titleIcon}`,style:{color:z.soIconColor}},"replay")),e.lock&&(m=s.a.createElement("i",{className:`material-icons ${t.titleIcon}`,style:{color:z.lockIconColor}},"lock")),e.pin&&(p=s.a.createElement("i",{className:`material-icons ${t.titleIcon}`,style:{color:z.pinIconColor}},"vpn_key")),e.home&&(g=s.a.createElement("i",{className:`material-icons ${t.titleIcon}`,style:{color:z.homeIconColor}},"home")),e.vip&&(v=s.a.createElement("i",{className:`material-icons ${t.titleIcon}`,style:{color:z.vipIconColor}},"check_circle")),c=s.a.createElement("div",{className:t.timelineWrapAll},s.a.createElement("div",{className:t.timelineHour},s.a.createElement("span",{className:t.textHour,style:{color:z.epgLineHourColor}},a.start_hh)),s.a.createElement("div",{className:t.timelineWrap,style:{backgroundColor:z.epgLineRemaining}},s.a.createElement("div",{className:t.timelineCompleted,style:{flex:i,backgroundColor:z.epgLineCompleted}}),s.a.createElement("div",{className:t.timelineRemaining,style:{flex:n,backgroundColor:z.epgLineRemaining}})),s.a.createElement("div",{className:t.timelineHour},s.a.createElement("span",{className:t.textHour,style:{color:z.epgLineHourColor}},a.stop_hh))),4==this.props.productId?(c=null,y={justifyContent:"center"}):h=s.a.createElement("div",{className:t.titleInnerWrap},v,m,p,g,u,s.a.createElement("div",{className:t.title,style:{color:z.channelNameColor}},e.channel_name)),s.a.createElement("li",{className:l,style:{borderColor:e.color},onClick:this._handleItemPress},s.a.createElement("div",{className:t.itemInner},s.a.createElement("div",{className:t.logoWrap},s.a.createElement("div",{className:t.iconWrap},s.a.createElement("img",{className:"cli-img",src:e.logo,alt:e.channel_name})),s.a.createElement("div",{className:t.lcn,style:{backgroundColor:z.plateLightColor3}},r)),s.a.createElement("div",{className:t.titleWrap,style:y}
1,h,s.a.createElement("div",{className:t.subTitle},o),c)))}}var B=a(27),F=a.n(B);a(49);class U extends i.Component{constructor(e){super(e),this._isMounted=!1,this.epgtimer=null,this.myChannelsList=null,this.isEpgTrack=!0,this.productId=this.props.productId,this.itemsCount=0,this.time=new Date,this.curSec=0,this.lastSec=this.time.getSeconds(),this.secDelta=0,this.scrollRef=s.a.createRef(),this.scroll=null,this.nowTime=0,0==d.epgTimeLast&&(d.epgTimeLast=Math.round(this.time.getTime()/1e3)),this.state={epgRerender:0,rerender:0,channelIdSelected:0}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,this.epgTimerStop()}renderRow(e,t){const a=d.channels[this.productId].epgTrack[e.channel_id].index,i=d.channels[this.productId].epg[e.channel_id].data[a],n=this.itemsCount===t+1,r={completed:d.channels[this.productId].epgTrack[e.channel_id].completed,remaining:d.channels[this.productId].epgTrack[e.channel_id].remaining};return s.a.createElement(V,{item:e,subname:e.channel_subname,epgitem:i,epgtime:r,xindex:t,lastItem:n,selectedId:this.state.channelIdSelected,press:()=>{this.onItemPress(e,t)},rerender:this.state.epgRerender})}onItemPress(e,t){d.channelIdSelectedLast=d.channelIdSelected,d.channelIdSelected=e.channel_id,this.setState({channelIdSelected:e.channel_id}),this.props.onListItemPress(e,t)}autoPlayPress(e){d.channelIdSelectedLast=0,d.channelIdSelected=e,this.setState({channelIdSelected:e})}toTop(){this.scroll=this.scrollRef.current,this.scroll.scrollToY(0)}listReoffset(e){this.myChannelsList.scrollToIndex({animated:!0,index:e,viewOffset:0,viewPosition:.5})}reset(){d.channelIdSelected=0,this.setState({channelIdSelected:0})}set(e){d.channelIdSelected=e,this.setState({channelIdSelected:e})}updateEpgTimelineFirst(){this.nowTime=d.serverTime,this.updateEpgTimelineDo()}updateEpgTimeline(e){this.updateEpgTimelineDo(),e&&(this.setState({epgRerender:this.state.epgRerender+1}),this.epgTimerStart())}updateEpgTimelineDo(){let e=new Date;const t=Math.round(e.getTime()/1e3);let a,i,s,n,r,o;
1if(a=t-d.epgTimeLast,d.epgTimeLast=t,d.epgTimeSpanCount+=a,d.epgTimeSpanCount>=d.epgTimeSpan)this.refreshEpg();else for(let l=0;l<d.channels[this.productId].data.length;l++)if(0!==(o=d.channels[this.productId].data[l]).epgexists){if(i=d.channels[this.productId].epgTrack[o.channel_id].index,(s=d.channels[this.productId].epg[o.channel_id].data[i]).stop_sec<t){r=d.channels[this.productId].epgTrack[o.channel_id].itemsCount;for(let e=++i;e<r;e++)if((s=d.channels[this.productId].epg[o.channel_id].data[e]).stop_sec>t){d.channels[this.productId].epgTrack[o.channel_id].index=e;break}}n=this.getCurrentTimePercentage(s,t),d.channels[this.productId].epgTrack[o.channel_id].completed=100*n,d.channels[this.productId].epgTrack[o.channel_id].remaining=100*(1-n)}}getCurrentTimePercentage(e,t){return(t-e.start_sec)/(e.stop_sec-e.start_sec)}epgTimerStart(){null!==this.epgtimer&&this.epgTimerStop(),this.epgtimer=setTimeout(()=>{this.updateEpgTimeline(!0)},15e3)}epgTimerStop(){clearTimeout(this.epgtimer),this.epgtimer=null}refreshEpg(){this.epgTimerStop(),fetch(d.host+"api/app/channel/getepg/"+this.productId,null,2).then(e=>e.json()).then(e=>{d.channels[this.productId].epg=e.epg,d.epgTimeSpan=e.ts,d.epgTimeSpanCount=0;let t=new Date;d.epgTimeLast=Math.round(t.getTime()/1e3),this._initEpg(),this.updateEpgTimeline(!0)}).catch(e=>{console.error(e)})}_initEpg(){let e=0;d.channels[this.productId].data.map((t,a)=>{e=d.channels[this.productId].epg[t.channel_id].data.length,d.channels[this.productId].epgTrack[t.channel_id]={index:0,itemsCount:e,completed:0,remaining:0}})}renderChannelList(){let e=this.props.dataSource,t=[];return e.map((e,a)=>{const i=d.channels[this.productId].epgTrack[e.channel_id].index,n=d.channels[this.productId].epg[e.channel_id].data[i],r=this.itemsCount===a+1,o={completed:d.channels[this.productId].epgTrack[e.channel_id].completed,remaining:d.channels[this.productId].epgTrack[e.channel_id].remaining};t.push(s.a.createElement(V,{key:e.channel_id,item:e,subname:e.channel_subname,epgitem:n,epgtime:o,xindex:a,lastItem:r,productId:this.productId,selectedId:this.state.channelIdSelected,press:()=>{this.onItemPress(e,a)},onEpgPress:this.props.onShowEpgPress,onEpgItemPress:this.props.onShowEpgDetailsPress,rerender:this.state.epgRerender,style:F.a}))}),t}renderSpinner(){return s.a.createElement("div",{className:F.a.spinnerWrap},s.a.createElement("div",{className:F.a.spinner}))}render(){this.state.rerender;if(null===this.props.dataSource)return s.a.createElement("div",{className:F.a.spinnerWrap},s.a.createElement("div",{className:F.a.spinner}));const e=this.props.width;let t=null;return this.props.isFavorites&&0==this.props.dataSource.length&&(t=s.a.createElement("div",{className:F.a.noFavsInfo},"Lista ulubionych jest pusta")),s.a.createElement(P.GenericScrollBox,{ref:this.scrollRef,style:{width:e+"px",height:this.props.height+"px"},wheelStepY:150,wheelScrollDurationY:100,trackHoverProximityX:1,trackHoverProximityY:25,disableScrollX:!0,permitHandleDragInterruption:!1},s.a.createElement("div",{className:"scroll-box__viewport"},t,s.a.createElement("ul",{id:"chlist",className:F.a.listContainer},this.renderChannelList())))}}var G=a(64),J=a.n(G),q=(a(61),a(120),a(4)),Y=a.n(q);var Z=class extends i.Component{constructor(e){super(e),this._onClockChange=(e=>{this.setState({time:e})}),this.onContainerMouseOver=(e=>{this.showControls(!0)}),this.onContainerMouseOut=(e=>{this.controlsTimer&&clearTimeout(this.controlsTimer),this.hideControls()}),this.onContainerMouseMove=(e=>{this.controlsTimer&&clearTimeout(this.controlsTimer),this.showControls(!1),this.showCursor(),this.controlsTimer=setTimeout(this.hideControlsAndCursor,this.controlsTimeout)}),this.hideControlsAndCursor=(()=>{this.hideControls(),this.hideCursor()}),this.showControls=(e=>{this.isEpgActive&&e&&(this.state.startOver?this.startOverTrack():this.epgTrack()),this.controlsContainer.style.opacity=1,this.topContainer.style.opacity=1,this.soButtons.style.opacity=1,this.isVisible=!0}),this.hideControls=(()=>{this.controlsContainer.style.opacity=0,this.topContainer.style.opacity=0,this.soButtons.style.opacity=0,this.isVisible=!1}),this.showCursor=(()=>{this.controlsWrap.style.cursor=""}),this.hideCursor=(()=>{this.controlsWrap.style.cursor="none"}),this.onPlayPauseClick=(e=>{e.preventDefault(),this.props.onPlayPauseClick()}),this.onVideoScreenClick=(e=>{e.preventDefault(),this.props.onVideoScreenClick()}),this.onControlsMouseMove=(e=>{e.stopPropagation()}),this.onControlsOver=(()=>{this.controlsTimer&&clearTimeout(this.controlsTimer)}),this.onAllControlsClick=(e=>{e.stopPropagation()}),this.onMuteClick=(e=>{e.preventDefault(),this.props.onMuteClick()}),this.onFullScreenClick=(e=>{e.preventDefault(),this.props.onFullScreenClick()}),this.onVolumeSliderChange=(e=>{let t=this.getDecimal(e);this.props.onVolumeChange(t)}
1),this.onVolumeSliderAfter=(e=>{g.a.set("_vaval",e,365)}),this._favoritesButtonPress=(e=>{if(e.stopPropagation(),this.state.favBusy)return;let t=1==this.state.inFavorites?"del":"add";this.setState({favBusy:!0}),this.controlsTimer&&clearTimeout(this.controlsTimer),this.props.onFavsButtonPress(t)}),this._closeButtonPress=(e=>{e.stopPropagation(),this.props.onClosePress()}),this._onStartOverPress=(()=>{this.props.onStartOverPress()}),this._isMounted=!1,this.productId=e.productId,this.controlsContainer=null,this.controlsTimer=null,this.controlsTimeout=3e3,this.controlsWrap=null,this.topContainer=null,this.soButtons=null,this.epgDs=null,this.epgItemsCount=0,this.epgCurrentIndex=0,this.isEpgActive=!1,this.channelName="",this.startTime=0,this.spinTimeOffset=0,this.pauseTime=0,this.duration=0,this.myDate=null,this.epgNowTitle="",this.epgNextTitle="",this.epgNextStartHH="",this.epgStartHH="",this.epgStopHH="",this.osdCompleted=0,this.osdRemaining=0,this.karaStartHH="00:00",this.karaStopHH="00:00",this.favBusy=!1,this.ctContHeight=130,this.ctContPadV=15,this.ctContPadH=15,this.ctContInHeight=this.ctContHeight-2*this.ctContPadV,this.ctMainPadH=30,this.ctMainMarginR=190,this.ctMainMarginL=100,this.ctLogoLeft=this.ctContPadH,this.ctLogoTop=this.ctContPadV,this.ctLogoWidth=this.ctContInHeight,this.ctLogoHeight=this.ctContInHeight,this.ctClockRight=this.ctContPadH,this.ctClockTop=this.ctContPadV,this.ctClockWidth=this.ctMainMarginL,this.ctClockHeight=this.ctContInHeight,this.ctProgWrapNxLeft=this.ctMainPadH,this.ctChanNameMarBt=8,this.ctProgWrapMarBt=5,this.ctProgMarginH=60,this.ctProgHrWidth=this.ctProgMarginH,this.volumeActualValue=e.actualVolume,this.isVisible=!1,this.state={muted:!1,fullScreen:!1,osdCompleted:0,osdRemaining:0,inFavorites:!1,startOver:!1,startOverMode:"",favBusy:!1,pause:!1,time:null===d.clockLastHour?"--:--":d.clockLastHour}}componentDidMount(){this._isMounted=!0,this.controlsContainer=document.getElementById("controlsContainer"),this.controlsWrap=document.getElementById("controlsWrap"),this.topContainer=document.getElementById("topContainer"),this.soButtons=document.getElementById("soButtons"),d.onClockChange=this._onClockChange}componentDidUpdate(){}componentWillUnmount(){this._isMounted=!1,d.onClockChange=null}paused(e){this.myDate=new Date;let t=Math.round(this.myDate.getTime()/1e3);e?this.pauseTime=t:this.startTime+=t-this.pauseTime,this.setState({pause:e})}muted(e){this.setState({muted:e})}setActualVolume(e){this.volumeActualValue=e}visible(e){e?(this.controlsContainer.style.opacity=1,this.isVisible=!0):(this.controlsContainer.style.opacity=0,this.isVisible=!1)}isVisible(){return this.isVisible}initEpg(e){let t;if(null===e.data?(this.epgDs=null,this.epgItemsCount=0,this.isEpgActive=!1,this.osdCompleted=0,this.osdRemaining=0):(this.epgDs=e.data,this.epgItemsCount=this.epgDs.length,this.isEpgActive=e.active),this.epgCurrentIndex=0,this.channelName=e.channelName,this.isEpgActive){if(d.startOver)return this.epgNowTitle=this.epgDs[0].title,this.duration=this.epgDs[0].duration,t=new Date,this.startTime=Math.round(t.getTime()/1e3),void this.startOverTrack();this.epgDs.length>1?(this.epgNowTitle=this.epgDs[0].title,this.epgNextTitle=this.epgDs[1].title,this.epgNextStartHH=this.epgDs[1].start_hh,this.epgStartHH=this.epgDs[0].start_hh,this.epgStopHH=this.epgDs[0].stop_hh,this.epgTrack()):1==this.epgDs.length?(this.epgNowTitle=this.epgDs[0].title,this.epgNextTitle=null,this.epgNextStartHH=null,this.epgStartHH=this.epgDs[0].start_hh,this.epgStopHH=this.epgDs[0].stop_hh,this.epgTrack()):this.isEpgActive=!1}this.setState({inFavorites:e.fav})}epgTrack(){let e,t,a,i,s;if(this.epgCurrentIndex!=this.epgItemsCount-1){if(e=new Date,t=Math.round(e.getTime()/1e3),s={},this.epgDs[this.epgCurrentIndex].stop<=t)for(let e=0;e<this.epgItemsCount;e++)if(this.epgDs[e].stop>t){this.epgCurrentIndex=e,this.epgNowTitle=this.epgDs[this.epgCurrentIndex].title,this.epgItemsCount>=this.epgCurrentIndex+1?this.epgNextTitle=this.epgDs[this.epgCurrentIndex+1].title:this.epgNextTitle="";break}a=this.epgDs[this.epgCurrentIndex],i=this._getCurrentTimePercentage(a,t),this.osdCompleted=100*i,this.osdRemaining=100*(1-i),s.osdCompleted=this.osdCompleted,s.osdRemaining=this.osdRemaining,this.setState(s)}}_getCurrentTimePercentage(e,t){return(t-e.start)/(e.stop-e.start)}startOverTrack(){let e,t,a,i,s={};e=new Date,t=Math.round(e.getTime()/1e3),this.state.pause||(d.spinTime=t-this.startTime),a=(i=d.spinTime+this.spinTimeOffset)/this.duration,this.osdCompleted=100*a,this.osdRemaining=100*(1-a),s.osdCompleted=this.osdCompleted,s.osdRemaining=this.osdRemaining,this.setState(s)}getDecimal(e){return Number((.001*e*10).toFixed(1))}setFavoritesChange(e){this.setState({inFavorites:e,favBusy:!1})}setFavorites(e){this.setState({inFavorites:e})}setSpinTimeOffset(e){this.spinTimeOffset=e}setStartOverAndMode(e,t){this.setState({startOver:e,startOverMode:t})}render(){const{paused:e,muted:t,infoVisible:a}=this.state,{fullScreen:i}=this.props,n=this.props.item,r=t?"volume_off":"volume_up",o=i?"fullscreen_exit":"fullscreen";let l=null,c=null;l=n.logo;let h=null;h=this.state.startOver?s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:Y.a.ctProgramWrap,style:{marginBottom:this.ctProgWrapMarBt+"px"}},s.a.createElement("div",{className:Y.a.ctProgram,style:{margin:0,padding:0}},this.epgNowTitle)),s.a.createElement("div",{className:Y.a.ctTlWrap},s.a.createElement("div",{className:Y.a.ctTlCompleted,style:{flex:this.osdCompleted}}),s.a.createElement("div",{className:Y.a.ctTlRemaining,style:{flex:this.osdRemaining}}))):s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:Y.a.ctProgramWrap,style:{marginBottom:this.ctProgWrapMarBt+"px"}},s.a.createElement("div",{className:Y.a.ctProgram,style:{margin:`0 ${this.ctProgMarginH}px`}},this.epgNowTitle),s.a.createElement("div",{className:Y.a.ctProgramHrL,style:{width:this.ctProgHrWidth}},this.epgStartHH),s.a.createElement("div",{className:Y.a.ctProgramHrR,style:{width:this.ctProgHrWidth}},this.epgStopHH)),s.a.createElement("div",{className:Y.a.ctTlWrap},s.a.createElement("div",{className:Y.a.ctTlCompleted,style:{flex:this.osdCompleted}}),s.a.createElement("div",{className:Y.a.ctTlRemaining,style:{flex:this.osdRemaining}})),s.a.createElement("div",{className:Y.a.ctProgramWrapNx,style:{left:this.ctProgWrapNxLeft}},s.a.createElement("div",{className:Y.a.ctProgramNext,style:{margin:`0 ${this.ctProgMarginH}px`}},this.epgNextTitle),s.a.createElement("div",{className:Y.a.ctProgramNextHrL,style:{width:this.ctProgHrWidth}},this.epgNextStartHH),s.a.createElement("div",{className:Y.a.ctProgramHrR,style:{width:this.ctProgHrWidth}})));const d=s.a.createElement("div",{className:Y.a.ctProgramWrap,style:{marginBottom:this.ctProgWrapMarBt+"px"}},s.a.createElement("div",{className:Y.a.ctProgramNo},"Brak opis\xf3w"));s.a.Fragment,Y.a.ctProgramWrap,this.ctProgWrapMarBt,Y.a.ctProgram,this.ctProgMarginH,n.title,Y.a.ctProgramHrL,this.ctProgHrWidth,this.karaStartHH,Y.a.ctProgramHrR,this.ctProgHrWidth,n.duration,Y.a.ctTlWrap,Y.a.ctTlCompleted,this.osdCompleted,Y.a.ctTlRemaining,this.osdRemaining,c=this.isEpgActive?h:d;let p=this.state.inFavorites?Y.a.topBtnActive:Y.a.topBtnInactive,m=this.state.inFavorites?Y.a.topBtnIconActive:Y.a.topBtnIconInactive,u=this.state.startOver?"play_circle_filled":"replay",g=this.state.startOver?"OGL\u0104DAJ NA \u017bYWO":"OGL\u0104DAJ OD POCZ\u0104TKU",v=this.state.pause?"play_arrow":"pause",y=this.state.pause?"ODTWARZAJ":"PAUZA",_=this.state.favBusy?`material-icons ${Y.a.topBtnIcon} ${m} sobt-spin`:`material-icons ${Y.a.topBtnIcon} ${m}`,f=s.a.createElement("div",{className:`${Y.a.topBtn} ${Y.a.topBtnLeft} ${p}`,onClick:this._favoritesButtonPress,onMouseOver:this.onControlsOver,onMouseMove:this.onControlsMouseMove},s.a.createElement("i",{className:_},"star")),E=s.a.createElement("div",{className:`${Y.a.topBtn} ${Y.a.topBtnRight} ${Y.a.topBtnInactive}`,onClick:this._closeButtonPress,onMouseOver:this.onControlsOver,onMouseMove:this.onControlsMouseMove},s.a.createElement("i",{className:`material-icons ${Y.a.topBtnIcon}`},"close")),C=null,b=null;return"canplay"==this.state.startOverMode&&(C=s.a.createElement("div",{className:Y.a.soBtn,onClick:this._onStartOverPress,onMouseOver:this.onControlsOver,onMouseMove:this.onControlsMouseMove},s.a.createElement("i",{className:`material-icons ${Y.a.soBtnIcon}`},u),g)),this.state.startOver&&(b=s.a.createElement("div",{className:Y.a.soBtn,onClick:this.onPlayPauseClick,onMouseOver:this.onControlsOver,onMouseMove:this.onControlsMouseMove},s.a.createElement("i",{className:`material-icons ${Y.a.soBtnIcon}`}
1,v),y)),s.a.createElement("div",{id:"controlsWrap",className:Y.a.controlsWrap,onClick:this.onVideoScreenClick,onMouseOver:this.onContainerMouseOver,onMouseOut:this.onContainerMouseOut,onMouseMove:this.onContainerMouseMove},s.a.createElement("div",{id:"topContainer",className:Y.a.topControlsWrap},3==this.productId?f:null,E),s.a.createElement("div",{id:"soButtons",className:Y.a.soButtonsWrap,style:{bottom:`${this.ctContHeight}px`}},C,b),s.a.createElement("div",{id:"controlsContainer",className:Y.a.controlsContainerFs,style:{height:this.ctContHeight,padding:`${this.ctContPadV}px ${this.ctContPadH}px`},onMouseOver:this.onControlsOver,onMouseMove:this.onControlsMouseMove,onClick:this.onAllControlsClick},s.a.createElement("div",{className:Y.a.ctMain,style:{padding:`0 ${this.ctMainPadH}px`,margin:`0 ${this.ctMainMarginR}px 0 ${this.ctMainMarginL}px`}},s.a.createElement("div",{className:Y.a.ctChannelName,style:{marginBottom:this.ctChanNameMarBt+"px"}},n.channel_name),c),s.a.createElement("div",{className:Y.a.ctLogo,style:{left:this.ctLogoLeft,top:this.ctLogoTop,width:this.ctLogoWidth,height:this.ctLogoHeight}},s.a.createElement("img",{src:l,alt:""})),s.a.createElement("div",{className:Y.a.ctClockWrap,style:{right:this.ctClockRight,top:this.ctClockTop,width:this.ctClockWidth,height:this.ctClockHeight}},s.a.createElement("div",{className:Y.a.ctClock},this.state.time),s.a.createElement("div",{className:Y.a.btnsWrap},s.a.createElement("div",{className:Y.a.controlsLeft},s.a.createElement("button",{id:"muteButton",className:"material-icons",onClick:this.onMuteClick},r),s.a.createElement("div",{className:Y.a.volumeWrap},s.a.createElement(J.a,{min:0,max:100,defaultValue:Number(this.volumeActualValue),handleStyle:{borderColor:"#ffffff",cursor:"default"},railStyle:{backgroundColor:"#ebebeb"},trackStyle:{backgroundColor:"#dbdbdb"},onChange:this.onVolumeSliderChange,onAfterChange:this.onVolumeSliderAfter})),s.a.createElement("button",{id:"fullscreenButton",className:"material-icons",style:{margin:0},onClick:this.onFullScreenClick},o))))))}},K=a(65),Q=a(28),X=a.n(Q);a(121);var $=class extends i.Component{constructor(e){super(e),this.onBufferingStateChange=(e=>{this.spinner.style.display=e.buffering?"block":"none"}),this.onPlaying=(()=>{this.spinner.style.display="none"}),this.onError=(e=>{console.error("error"),console.error(e),this.fetchError()}),this._onStartOverPress=(()=>{this.props.onStartOverPress()}),this.onVideoScreenClick=(e=>{}),this.onPlayPauseClick=(e=>{this.onPlayPauseClick_()}),this._onPlayPauseClick=(()=>{this.video.duration&&(this.player.cancelTrickPlay(),this.video.paused?(this.video.play(),this.setState({paused:!1}),this.playerOsd.paused(!1),this._progressTimerStart()):(this.video.pause(),this.setState({paused:!0}),this.playerOsd.paused(!0),this._progressTimerStop()))}),this.onAllControlsClick=(e=>{e.stopPropagation()}),this.onControlsOver=(()=>{this.controlsTimer&&clearTimeout(this.controlsTimer)}),this.onControlsMouseMove=(e=>{e.stopPropagation()}),this.onFullScreenClick=(()=>{j.fullscreenElement?j.exitFullscreen():j.requestFullscreen(this.vidContainer)}),this.onFullscreenChange=(e=>{null===j.fullscreenElement?(this.setState({fullScreen:!1}),this.props.onFullScreen&&this.props.onFullScreen(!1)):(this.setState({fullScreen:!0}),this.props.onFullScreen&&this.props.onFullScreen(!0))}),this.onContainerMouseOver=(e=>{this.showControls()}),this.onContainerMouseOut=(e=>{this.controlsTimer&&clearTimeout(this.controlsTimer),this.hideControls()}),this.onKinoClick=(e=>{this.props.onKinoClick&&(this.setState({kinoMode:!this.state.kinoMode}),this.props.onKinoClick())}),this.onMuteClick=(()=>{this.video.muted?this.unmute():this.mute()}),this.onContainerMouseMove=(e=>{this.controlsTimer&&clearTimeout(this.controlsTimer),this.showControls(),this.showCursor(),this.controlsTimer=setTimeout(this.hideControlsAndCursor,this.controlsTimeout)}),this.hideControlsAndCursor=(()=>{this.hideControls(),this.hideCursor()}),this.hideControls=(()=>{this.playerOsd.visible(!1)}),this.showControls=(()=>{this.playerOsd.visible(!0)}),this.hideCursor=(()=>{this.vidContainer.style.cursor="none"}),this.showCursor=(()=>{this.vidContainer.style.cursor=""}),this.onVolumeSliderChange=(e=>{this.video.volume>0&&0==e?this.mute():0==this.video.volume&&e>0&&this.unmute(),this.video.volume=e}),this.onVolumeSliderAfter=(e=>{g.a.set("_vaval",e,365)}),this._onFavsButtonPress=(e=>{this.props.onFavsButtonPress(this.channel_id,e)}),this._onClosePress=(()=>{this._progressTimerStop(),this.props.onClosePress()}),this._isMounted=!1,this.productId=e.productId,this.streamContainer=null,this.player=null,this.vidRef=s.a.createRef(),this.playerOsd=null,this.channel_id=0,this.vidHelper=null,this.video=null,this.vidContainer=null,this.controlsTimer=null,this.controlsTimeout=3e3,this.volumeActualValue=100,this.item=null,this.epg=null,this.isEpgActive=!0,this.res=null,this.token="dsfdsygf67ewf",4==this.productId?this.token="089d1f7e840e4807a7170cceedf3a9fe":this.token=m.a.getToken(),this.error="unknown",this.errorMsg="Ups, wyst\u0105pi\u0142 b\u0142\u0105d.",this.firsPlay=!1,this.url=null,this.drmEnabled=!1,this.progressTimer=null,this.progresEvent=!1,this.spinner=null,this.inFavorites=!1,this.state={playerVisible:!1,infoVisible:!1,kinoMo
1de:!1,paused:!1,muted:!1,fullScreen:!1}}componentDidMount(){this._isMounted=!0,M.a.polyfill.installAll();let e=g.a.get("_vaval");null!==e&&(this.volumeActualValue=e),j.addEventListener("fullscreenchange",this.onFullscreenChange)}componentDidUpdate(){!1===this.firsPlay&&!0===this.state.playerVisible&&(this.spinner=document.getElementById("bufferingSpinner"),this.vidContainer=document.getElementById("videoContainer"),this.vidHelper=document.getElementById("vidHelper"),this.firsPlay=!0,this._initialPlay())}componentWillUnmount(){this._isMounted=!1,j.removeEventListener("fullscreenchange",this.onFullscreenChange),this._progressTimerStop(),null!==this.player&&this.player.destroy()}initPlayer(){this.video=this.vidRef.current,this.video.volume=this.getDecimal(this.volumeActualValue),this.video.addEventListener("playing",this.onPlaying),this.video.addEventListener("error",this.onError,!0),this.player=new M.a.Player(this.video)}fetchError(){const e=d.host+"api/app/error/get/"+d.channelIdSelected+"/"+this.token;fetch(e,null,55).then(e=>e.json()).then(e=>{this.error=e.error,this.errorMsg=e.msg,this.hideSpinner(),this.setState({infoVisible:!0})}).catch(e=>{this.error="unknown",this.errorMsg="Ups, wyst\u0105pi\u0142 b\u0142\u0105d.",this.hideSpinner(),this.setState({infoVisible:!0})})}hideSpinner(){null!==this.spinner&&(this.spinner.style.display="none")}registerRequestFilter(){let e=this.res.channel.dp.DrmSystem,t=this.res.channel.dp.LoginName,a=this.res.channel.dp.Password,i=this.res.channel.dp.KeyId,s=this.res.channel.dp.UniqueDeviceId,n=this.res.channel.dp.ContentUrl,r=this.res.channel.dp.DeviceTypeName;this.player.getNetworkingEngine().registerRequestFilter(function(o,l,c){if(o!=M.a.net.NetworkingEngine.RequestType.LICENSE)return;const h=new Date,d=h.getFullYear().toString()+"-"+(2==(h.getMonth()+1).toString().length?(h.getMonth()+1).toString():"0"+(h.getMonth()+1).toString())+"-"+(2==h.getDate().toString().length?h.getDate().toString():"0"+h.getDate().toString())+" "+(2==h.getHours().toString().length?h.getHours().toString():"0"+h.getHours().toString())+":"+(2==(5*parseInt(h.getMinutes()/5)).toString().length?(5*parseInt(h.getMinutes()/5)).toString():"0"+(5*parseInt(h.getMinutes()/5)).toString())+":00",p="?PlayState=1&DrmSystem="+e+"&LoginName="+t+"&Password="+a+"&KeyId="+i+"&UniqueDeviceId="+s+"&ContentUrl="+n+"&NowStamp="+K.a.encode(d)+"&DeviceTypeName="+r;l.uris[0]+=p})}_initialPlay(){this.initPlayer(),!0===this.drmEnabled&&(this.player.configure({drm:{servers:{"com.widevine.alpha":this.res.channel.prx}}}),2==this.res.channel.drv&&this.registerRequestFilter()),this.playerOsd.setStartOverAndMode(!1,this.res.channel.som),this.playerOsd.paused(!1),this.playerOsd.setSpinTimeOffset(0),this.playerOsd.initEpg({data:this.epg,active:this.isEpgActive,channelName:this.item.channel_name,fav:this.inFavorites}),this.player.load(this.url+"?tm="+this.token).then(function(){}).catch(this.onError)}play(e,t){this.channel_id=t,null!==this.spinner&&(this.spinner.style.display="block"),this.setState({paused:!1,infoVisible:!1}),this._progressTimerStop();const a=d.host+"api/app/stream/get/"+this.channel_id+"/"+this.token+"/3/?uid="+m.a.getUid();fetch(a).then(e=>e.json()).then(e=>{if(this.res=e,e.channel.pin&&0==d.pinSeen)return null!==this.spinner&&(this.spinner.style.display="none"),void this.props.modalPinShow();0==e.channel.pin&&(d.pinSeen=!1),this.props.showEpgCanal(this.item),this.drmEnabled="yes"===e.channel.drm,this.url=e.channel.url,this.epg=e.epg,this.inFavorites=e.channel.fav,d.videoPlayedBefore=!0,this.firsPlay?(!0===this.drmEnabled&&(this.player.configure({drm:{servers:{"com.widevine.alpha":this.res.channel.prx}}}),2==this.res.channel.drv&&this.registerRequestFilter()),this.playerOsd.setStartOverAndMode(!1,this.res.channel.som),this.playerOsd.paused(!1),this.playerOsd.setSpinTimeOffset(0),this.playerOsd.initEpg({data:this.epg,active:this.isEpgActive,channelName:this.item.channel_name,fav:this.inFavorites}),this.player.load(this.url+"?tm="+this.token).then(function(){}).catch(this.onError)):this.setState({playerVisible:!0})}).catch(e=>{console.error(e)})}playStartOver(e,t){let a=this,i=0;d.startOver=!0,null!==this.spinner&&(this.spinner.style.display="block"),this.setState({paused:!1,infoVisible:!1}),this.drmEnabled="yes"===e.channel.drm,this.url=e.channel.url,this.epg=e.epg,!0===this.drmEnabled&&(this.player.configure({drm:{servers:{"com.widevine.alpha":e.channel.prx}}}),2==e.channel.drv&&this.registerRequestFilter()),this.playerOsd.setStartOverAndMode(!0,this.res.channel.som),this.playerOsd.paused(!1),this.playerOsd.setSpinTimeOffset(0),this.playerOsd.initEpg({data:this.epg,active:this.isEpgActive,channelName:this.item.channel_name,fav:this.inFavorites}),t&&(this.playerOsd.setSpinTimeOffset(e.channel.spt),i=e.channel.pos),this.player.load(this.url+"?tm="+this.token,i).then(function(){a._progressTimerStart()}).catch(this.onError)}_progressTimerStart(){this._progressTimerStop(),this.progressTimer=setTimeout(()=>{this.onProgress()},1e3)}_progressTimerStop(){clearTimeout(this.progressTimer),this.progressTimer=null}onProgress(){d.videoPosition=this.video.currentTime,this._progressTimerStart()}setItem(e){this.item=e,this.isEpgActive=1==e.epgexists}hide(){this.firsPlay=!1,this.setState({playerVisible:!1})}mute(){this.video.muted=!0,this.playerOsd.muted(this.video.muted)}unmute(){this.video.muted=!1,this.playerOsd.muted(this.video.muted)}getDecimal(e){return Number((.001*e*10).toFixed(1))}setFavoritesChange(e){this.playerOsd.setFavoritesChange(e)}renderPauseIcon(){return s.a.createElement("div",{className:X.a.pauseBigIcon},s.a.createElement("i",{className:"material-icons"},"pause_circle_filled"))}renderError(){return s.a.createElement("div",{className:X.a.infoContainer},s.a.createElement("p",null,this.errorMsg))}renderChannelList(){const e=window.screen.height-36-10;return s.a.createElement("div",{className:X.a.chListWrap,style:{width:"400px",height:e+"px"}},s.a.createElement(U,{ref:e=>{this.chlist=e},width:400,height:e,dataSource:this.props.channelListData,fullScreen:!1,productId:this.props.productId,channelIdSelected:this.state.channelIdSelected,onListItemPress:this._channelPress}))}render(){this.props.height;const{paused:e,muted:t,fullScreen:a,infoVisible:i}=this.state;if(!this.state.playerVisible)return s.a.createElement("div",{className:"videoEmptyContainer",style:{width:"100%",height:"100%"}});const n={width:"100%",height:"100%"},r=a?{position:"absolute",top:0,left:0,right:0,bottom:0,width:"100%",height:"100%"}:{width:"100%",height:"100%"};return s.a.createElement("div",{id:"videoContainer",className:X.a.videoContainer,style:n},s.a.createElement("video",{style:r,ref:this.vidRef,autoPlay:!0}),s.a.createElement("div",{id:"vidHelper",style:{width:0,height:0,display:"none",visibility:"hidden"}}),s.a.createElement("div",{id:"bufferingSpinner",className:X.a.overlay},s.a.createElement("svg",{className:X.a.spinnerSvg,viewBox:"25 25 50 50"},s.a.createElement("circle",{className:X.a.spinnerPath,cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"3",strokeMiterlimit:"10"}))),s.a.createElement(Z,{ref:e=>{this.playerOsd=e},onVideoScreenClick:this.onVideoScreenClick,onPlayPauseClick:this._onPlayPauseClick,onMuteClick:this.onMuteClick,onVolumeChange:this.onVolumeSliderChange,onFullScreenClick:this.onFullScreenClick,fullScreen:this.state.fullScreen,actualVolume:this.volumeActualValue,productId:this.productId,onFavsButtonPress:this._onFavsButtonPress,onStartOverPress:this._onStartOverPress,onClosePress:this._onClosePress,item:this.item}),i?this.renderError():null)}},ee=a(26);class te extends i.Component{constructor(e){super(),this.state={maxIsVisible:0},this.onAnimationEndDelayed=(()=>{this.props.onAnimationEnd()}),this.triggerOnEnd=!1}get delay(){return this.props.delay||50}get transitionDuration(){return this.props.transitionDuration||400}componentDidMount(){const e=s.a.Children.count(this.props.children);let t=0;this.interval=setInterval(()=>{++t>e&&(clearInterval(this.interval),this.triggerOnEnd=!0),this.setState({maxIsVisible:t})},this.delay)}componentDidUpdate(){this.triggerOnEnd&&(this.triggerOnEnd=!1,this.props.onAnimationEnd&&setTimeout(this.onAnimationEndDelayed,this.transitionDuration))}componentWillUnmount(){clearInterval(this.interval)}render(){const e=this.transitionDuration;return s.a.createElement("div",null,s.a.Children.map(this.props.children,(t,a)=>s.a.createElement("div",{style:{transition:`opacity ${e}ms, top ${e}ms`,position:"relative",top:this.state.maxIsVisible>a?0:20,opacity:this.state.maxIsVisible>a?1:0}},t)))}}var ae=a(21),ie=a.n(ae);var se=class extends i.Component{constructor(e){super(),this._onProgramClick=(e=>{e.preventDefault();let t=e.currentTarget.dataset.gid,a=e.currentTarget.dataset.wt;this.props.onProgramClick&&this.props.onProgramClick(t,a)}),this.headBtOnClick=(()=>{let e=0,t=0,a=null,i=new ee.a({onComplete:this.onAnimComplete}),s=this.props.vidAreaWidth,n=0,r=null;this.isAnimating||(this.isAnimating=!0,this.state.isOpen?(a="+="+(e=this.props.height-this.headerHeight)+"px",n=this.props.vidAreaHeight+e,this.nevVideAreaHeight=n):(e=0,a="-="+(t=this.props.height-this.headerHeight)+"px",n=this.nevVideAreaHeight-t),r=this.calcVideoSize(s,n,this.props.vidPadTop,this.props.vidPadLeft),i.to("#epgCt",.7,{y:e}).to("#vidAreaWrap",.7,{height:a},"-=0.7").to("#vidWrapper",.7,{width:r[0]+"px",height:r[1]+"px"},"-=0.7"))}),this.onAnimComplete=(()=>{this.isAnimating=!1,this.state.isOpen?this.setState({isOpen:!1}):this.setState({isOpen:!0})}),this.epgCtRef=s.a.createRef(),this.epgCt=null,this.cid=0,this._isMounted=!1,this.programs=[],this.headerHeight=40,this.nevVideAreaHeight=0,this.isAnimating=!1,this.state={visible:e.visible,spinnerVisible:!1,
1channelName:null,noEpg:!1,isOpen:!1}}componentDidMount(){this._isMounted=!0,this.epgCt=this.epgCtRef.current}componentWillUnmount(){this._isMounted=!1}getData(){fetch(d.host+"api/app/tvguide/list/"+this.cid,null,1).then(e=>e.json()).then(e=>{"noepg"===e.status?this.setState({spinnerVisible:!1,noEpg:!0}):this._renderCanalPrograms(e.epg,e.wt)}).catch(e=>{console.error(e)})}setHeight(e){this.setState({height:e})}setChannelName(e){this.setState({channelName:e})}setVidAreaHeight(e){this.nevVideAreaHeight=e}isOpen(){return this.state.isOpen}loadEpg(e){this.cid=e,this.setState({spinnerVisible:!0}),this.getData()}show(){ee.c.to("#epgCt",.5,{opacity:1,visibility:"visible"})}hide(){ee.c.to("#epgCt",.5,{opacity:0,visibility:"hidden"}),this.state.isOpen&&this.headBtOnClick()}getHeaderHeight(){return this.headerHeight}_renderCanalPrograms(e,t){let a=e.length,i=0,n=null;for(this.programs=[],i=0;i<a;i++)n=s.a.createElement("li",{key:e[i].eid+"c"},s.a.createElement("a",{href:"#","data-gid":e[i].eid,"data-wt":t,onClick:this._onProgramClick},s.a.createElement("div",{className:ie.a.pWrap},s.a.createElement("span",{className:ie.a.hour,style:{color:z.channelNameColor}},e[i].start_hh),s.a.createElement("span",{className:ie.a.title},e[i].title)))),this.programs.push(n);this.setState({spinnerVisible:!1,noEpg:!1})}renderSpinner(){return s.a.createElement("div",{className:ie.a.spinnerWrap,style:{width:this.props.width}},s.a.createElement("div",{className:ie.a.spinner}))}renderList(){return this.state.noEpg?s.a.createElement("div",{className:ie.a.infoWrap,style:{width:this.props.width}},s.a.createElement("p",null,"Brak opis\xf3w")):s.a.createElement("div",{key:"j9kfcv"},s.a.createElement("ul",{key:"f53d",className:ie.a.epgProgram},this.programs))}renderHeader(){const e=this.state.isOpen?"expand_more":"expand_less",t=this.props.visible?s.a.createElement("span",{className:ie.a.headButton,style:{width:this.headerHeight,height:this.headerHeight}},s.a.createElement("i",{style:{lineHeight:this.headerHeight+"px"},className:"material-icons"},e)):null;return s.a.createElement("div",{className:ie.a.header,style:{height:this.headerHeight,lineHeight:this.headerHeight+"px"},onClick:this.headBtOnClick},s.a.createElement("h1",null,s.a.createElement("span",null,this.state.channelName)," - program TV"),t)}calcVideoSize(e,t,a,i){let s,n=0;return n=t-2*a,(s=16*Math.round(n/9))>e-2*i&&(s=e-2*i,n=9*Math.round(s/16)),[s,n]}render(){const{width:e,height:t,initialY:a,vidAreaHeight:i,vidPadTop:n,vidPadLeft:r}=this.props,o=t-this.headerHeight;let l=0;this.state.isOpen||(this.calcVideoSize(e,i+t-this.headerHeight,n,r),l=t-this.headerHeight,ee.c.set("#epgCt",{y:l}));const c=this.props.visible?{}:{opacity:0};return Object.assign({},{top:a+"px",width:e+"px",height:t+"px"},c),s.a.createElement("div",{ref:this.epgCtRef,id:"epgCt",className:ie.a.wrap,style:{top:a+"px",width:e+"px",height:t+"px"}},this.renderHeader(),s.a.createElement(P.ScrollBox,{style:{width:e,height:o},disableScrollX:!0,trackHoverProximityY:10,permitHandleDragInterruption:!1},this.state.spinnerVisible?this.renderSpinner():this.renderList()))}},ne=a(15),re=a.n(ne);const oe="function"===typeof re.a.createPortal,le="undefined"!==typeof window;var ce=class extends i.Component{UNSAFE_componentWillMount(){le&&(this.props.container?this.container=this.props.container:(this.container=document.createElement("div"),document.body.appendChild(this.container)),this.renderLayer())}componentDidUpdate(){this.renderLayer()}componentWillUnmount(){oe||re.a.unmountComponentAtNode(this.container),this.props.container||document.body.removeChild(this.container)}renderLayer(){oe||re.a.unstable_renderSubtreeIntoContainer(this,this.props.children,this.container)}render(){return oe?re.a.createPortal(this.props.children,this.container):null}},he=a(54),de=a.n(he);class pe extends i.Component{constructor(e){super()}componentDidMount(){}componentWillUnmount(){}render(){const{container:e,show:t}=this.props;return t?s.a.createElement(ce,{container:e},s.a.createElement("div",{className:de.a.overlay},s.a.createElement("div",{className:de.a.spinner}))):null}}pe.defaultProps={show:!1};var me=pe,ue=a(55),ge=a.n(ue),ve=a(38),ye=a(10),_e=a.n(ye);class fe extends i.Component{constructor(e){super(e),this.onClickCloseIcon=(e=>{this.props.onCloseClick()}),this.closeIcon=(()=>{const{closeIconSize:e}=this.props;return s.a.createElement("button",{className:_e.a.closeButton,style:{width:e,height:e},onClick:this.onClickCloseIcon},s.a.createElement("svg",{className:_e.a.closeIcon,xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 36 36"},s.a.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"})))}),this.handleClickOverlay=(e=>
1{null===this.shouldClose&&(this.shouldClose=!0),this.shouldClose?(this.props.onCloseClick&&this.props.onCloseClick(e),this.props.onCloseClick(),this.shouldClose=null):this.shouldClose=null}),this.handleModalEvent=(()=>{this.shouldClose=!1}),this.handleEntered=(()=>{this.getEpg()}),this._isMounted=!1,this.container=null,this.shouldClose=null,this.gid=e.gid,this.wt=e.wt,this.initScrollBar=!1,this.action="none",this.modalPadding=20,this.state={epg:null}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}componentDidUpdate(){"measure"===this.action&&this.recalculateModal(),this.initScrollBar&&(this.initScrollBar=!1,ge.a.initAll())}recalculateModal(){this.action="none";let e=document.getElementById("m-modal").offsetHeight-document.getElementById("m-head").offsetHeight-this.modalPadding-this.modalPadding,t=document.getElementById("m-content");t.style.height=e+"px",t.scrollHeight>e&&ge.a.initAll()}getEpg(){fetch(d.host+"api/app/tvguide/details/"+this.gid+"/"+this.wt).then(e=>e.json()).then(e=>{this.setState({epg:e})}).catch(e=>{console.error(e)})}messageBox(){const e=this.state.epg;if(this.action="measure",null===e)return null;let t=null,a=null,i=null,n=null,r=null,o=null,l=null;return e.director.length&&(t=s.a.createElement("p",{className:_e.a.misc},s.a.createElement("span",{style:{color:z.epgLineHourColor}},"Re\u017cyseria:")," ",e.director)),e.actor.length&&(a=s.a.createElement("p",{className:_e.a.misc},s.a.createElement("span",{style:{color:z.epgLineHourColor}},"Obsada:")," ",e.actor)),e.year.length&&(i=s.a.createElement("p",{className:_e.a.misc},s.a.createElement("span",{style:{color:z.epgLineHourColor}},"Rok produkcji:")," ",e.year)),e.country.length&&(n=s.a.createElement("p",{className:_e.a.misc},s.a.createElement("span",{style:{color:z.epgLineHourColor}},"Kraj:")," ",e.country)),e.plength.length&&(r=s.a.createElement("p",{className:_e.a.misc},s.a.createElement("span",{style:{color:z.epgLineHourColor}},"Czas trwania:")," ",e.plength," min.")),e.episode.length&&(o=s.a.createElement("p",{className:_e.a.misc},s.a.createElement("span",{style:{color:z.epgLineHourColor}},"Odcinek:")," ",e.episode)),e.presenter.length&&(l=s.a.createElement("p",{className:_e.a.misc},s.a.createElement("span",{style:{color:z.epgLineHourColor}},"Prowadz\u0105cy:")," ",e.presenter)),s.a.createElement("div",{className:_e.a.container},s.a.createElement("div",{id:"m-head",className:_e.a.header},s.a.createElement("p",{className:_e.a.title},e.title),s.a.createElement("p",{className:_e.a.date,style:{color:z.channelNameColor}},e.date," ",s.a.createElement("span",null,"/ ",e.name))),s.a.createElement("div",{id:"m-content","ss-container":"true"},s.a.createElement("p",{className:_e.a.desc},e.desc),r,o,n,i,t,a,l))}renderSpinner(){return s.a.createElement("div",{className:_e.a.spinnerWrap},s.a.createElement("div",{className:_e.a.spinner}))}render(){const{show:e}=this.props;return e?s.a.createElement(ce,null,s.a.createElement(ve.a,{in:!0,appear:!0,classNames:{appear:_e.a.transitionEnter,appearActive:_e.a.transitionEnterActive,enter:_e.a.transitionEnter,enterActive:_e.a.transitionEnterActive,exit:_e.a.transitionExit,exitActive:_e.a.transitionExitActive},timeout:500,onEntered:this.handleEntered},s.a.createElement("div",{onClick:this.handleClickOverlay,className:_e.a.overlay},s.a.createElement("div",{id:"m-modal",className:_e.a.modal,onMouseDown:this.handleModalEvent,onMouseUp:this.handleModalEvent,onClick:this.handleModalEvent},this.closeIcon(),s.a.createElement("div",{className:_e.a.modalInner},null===this.state.epg?this.renderSpinner():this.messageBox()))))):null}}fe.defaultProps={closeIconSize:20};var Ee=fe,Ce=a(45),be=a(22),ke=a.n(be);var we=e=>{let{classes:t,classNames:a,styles:i,closeIconSize:n,closeIconSvgPath:r,onClickCloseIcon:o}=e;return s.a.createElement("button",{className:"closeButton",style:i.closeButton,onClick:o},s.a.createElement("svg",{className:ke()(t.closeIcon,a.closeIcon),style:i.closeIcon,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 36 36"},r))},Se=a(66),Ne=a.n(Se),Ie=a(5),ze=a.n(Ie);class Pe extends i.Component{static getDerivedStateFromProps(e,t){return!t.showPortal&&e.o
1pen?{showPortal:!0,btEditOkDisabled:!0}:null}constructor(e){super(e),this.handleOpen=(()=>{document.addEventListener("keydown",this.handleKeydown)}),this.handleClose=(()=>{document.removeEventListener("keydown",this.handleKeydown)}),this.handleClickOverlay=(e=>{null===this.shouldClose&&(this.shouldClose=!0),this.shouldClose?(this.props.onOverlayClick&&this.props.onOverlayClick(e),this.props.closeOnOverlayClick&&this.props.onClose(e),this.shouldClose=null):this.shouldClose=null}),this.handleClickCloseIcon=(e=>{this.props.onClose(e)}),this.handleKeydown=(e=>{27===e.keyCode&&(this.props.onEscKeyDown&&this.props.onEscKeyDown(e),this.props.closeOnEsc&&this.props.onClose(e))}),this.handleModalEvent=(()=>{this.shouldClose=!1}),this.handleEntered=(()=>{this.props.onEntered&&this.props.onEntered()}),this.handleExited=(()=>{this.props.onExited&&this.props.onExited(),this.setState({showPortal:!1})}),this._handleChange=(e=>{let t={pin:"",btEditOkDisabled:!0},a=e.target.value.replace(/(^\s+)/g,"");a.length<4?t.btEditOkDisabled=!0:!0===this.state.btEditOkDisabled&&(t.btEditOkDisabled=!1),t.pin=a,this.setState(t)}),this.onModalAccept=(()=>{this.state.btEditOkDisabled}),this._submitPinPrompt=(e=>{if(e.preventDefault(),this.state.btEditOkDisabled)return;let t=!1,a="",i=this.state.pin;if(i=i.replace(/\s/gm,""),!0===isNaN(i)&&(t=!0,a="Kod PIN musi si\u0119 sk\u0142ada\u0107 z 4 cyfr."),t)return void alert(a);this.setState({modalFreeze:!0});let s={tk:m.a.getToken(),pn:i};const n=Object.keys(s).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(s[e])).join("&");fetch(d.host+"api/app/config/check-pin",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:n}).then(e=>e.json()).then(e=>{"ok"===e.status?(d.pinSeen=!0,this.setState({modalFreeze:!1}),this.props.onClose2()):"error"===e.status&&(this.setState({modalFreeze:!1}),alert(e.msg))}).catch(e=>{console.error(e),this.setState({modalFreeze:!1})})}),this.unblockScroll=(()=>{document.getElementsByClassName("modal").length}),this.state={showPortal:e.open,modalFreeze:!1,btEditOkDisabled:!0,pin:""},this.shouldClose=null}componentDidMount(){this.props.open&&this.handleOpen()}componentDidUpdate(e,t){t.showPortal&&!this.state.showPortal?this.handleClose():!e.open&&this.props.open&&this.handleOpen()}componentWillUnmount(){this.props.open&&this.handleClose()}reset(){this.setState({modalFreeze:!1,btEditOkDisabled:!0,pin:""})}blockScroll(){}render(){const{open:e,center:t,classNames:a,styles:i,showCloseIcon:n,closeIconSize:r,closeIconSvgPath:o,animationDuration:l}=this.props,{showPortal:c}=this.state;if(!c)return null;const h=!0===this.state.btEditOkDisabled?`${ze.a.disabled}`:"",d=s.a.createElement("div",{className:ze.a.modalfreezer},s.a.createElement("div",{className:ze.a.freezSpinner}));return s.a.createElement(ce,null,s.a.createElement(ve.a,{in:e,appear:!0,classNames:{appear:"transitionEnter",appearActive:"transitionEnterActive",enter:"transitionEnter",enterActive:"transitionEnterActive",exit:"transitionExit",exitActive:"transitionExitActive"},timeout:l,onEntered:this.handleEntered,onExited:this.handleExited},s.a.createElement("div",{className:"overlay",onClick:this.handleClickOverlay,style:i.overlay},s.a.createElement("div",{className:"modal",style:i.modal,onMouseDown:this.handleModalEvent,onMouseUp:this.handleModalEvent,onClick:this.handleModalEvent},s.a.createElement("form",{className:ze.a.form,autoComplete:"off",onSubmit:this._submitPinPrompt},s.a.createElement("h1",{className:ze.a.heading},s.a.createElement("i",{className:`material-icons ${ze.a.colorRed}`},"vpn_key")," ",s.a.createElement("span",null,"Wpisz kod PIN")),s.a.createElement("p",{className:ze.a.body},s.a.createElement("input",{id:"pingo",className:ze.a.hidden,type:"password",name:"pingofake"}),s.a.createElement("input",{type:"password",name:"pingo",placeholder:"wpisz 4 cyfrowy kod PIN",className:ze.a.input,value:this.state.pin,autoComplete:"new-password",autoFocus:!0,maxLength:4,onChange:this._handleChange})),s.a.createElement("div",{className:ze.a.btWrap},s.a.createElement("button",{type:"button",onClick:this.handleClickCloseIcon,className:`${ze.a.button} ${ze.a.btCancel}`},"ANULUJ"),s.a.createElement("button",{type:"submit",className:`${ze.a.button} ${ze.a.btOk} ${h}`},"ZATWIERD\u0179")),this.state.modalFreeze?d:null,n&&s.a.createElement(we,{classes:Ne.a,classNames:a,styles:i,closeIconSize:r,closeIconSvgPath:o,onClickCloseIcon:this.handleClickCloseIcon}))))))}}Pe.defaultProps={closeOnEsc:!0,closeOnOverlayClick:!0,onEntered:null,onExited:null,onEscKeyDown:null,onOverlayClick:null,showCloseIcon:!0,closeIconSize:28,closeIconSvgPath:s.a.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"}),classNames:{},styles:{},children:null,center:!1,animationDuration:500},Object(Ce.a)(Pe);var Te=Pe,He=a(8),xe=a.n(He);const Me=a(123);var We=class extends i.Component{constructor(e){super(),this._onContinuePress=(e=>{this.props.onContinuePress(this.events[e])}),this._onPlayPress=(e=>{this.props.onPlayPress(this.events[e])}),this._onClosePress=(()=>{Me.abort(333),this.props.hidePrompt()}),this.events=null,this.state={visible:!1}}
1componentDidMount(){this.getStreamsInfo()}componentWillUnmount(){}getStreamsInfo(){let e=m.a.getToken(),t=m.a.getUid();Me(d.host+"api/app/stream-user/get-streams-info/?tk="+e+"&uid="+t+"&pid=3&cid="+d.channelIdSelected,null,333).then(e=>e.json()).then(e=>{if("error"==e.status)return alert(e.msg),void this.props.hidePrompt();this.events=e.events,this.setState({visible:!0})}).catch(e=>{})}renderPrompt(){if(null==this.events||0==this.events.length)return null;let e=null,t=null,a=null,i=null,n=this.events[0];return n.channel.cnt&&(a=s.a.createElement("div",{className:xe.a.button,onClick:()=>{this._onContinuePress(0)}},s.a.createElement("i",{className:`material-icons ${xe.a.btIcon}`},"play_circle_filled"),s.a.createElement("span",{className:xe.a.btText},"KONTYNUUJ"))),e=s.a.createElement("div",{className:`${xe.a.pRow} ${xe.a.pRowFirst}`,style:{backgroundColor:z.plateLightColor2}},s.a.createElement("p",{className:xe.a.miniTxt,style:{color:z.accentColor}},"TERAZ:"),s.a.createElement("div",{className:xe.a.miniWrap,style:{borderColor:z.plateLightMoreColor}},s.a.createElement("p",{className:xe.a.titleTxt},n.epg[0].title)),s.a.createElement("div",{className:xe.a.buttonsWrap},s.a.createElement("div",{className:xe.a.button,onClick:()=>{this._onPlayPress(0)}},s.a.createElement("i",{className:`material-icons ${xe.a.btIcon}`},"replay"),s.a.createElement("span",{className:xe.a.btText},"OD POCZ\u0104TKU")),s.a.createElement("div",{className:xe.a.btSep}),a)),this.events.length>1&&((n=this.events[1]).channel.cnt&&(i=s.a.createElement("div",{className:xe.a.button,onClick:()=>{this._onContinuePress(1)}},s.a.createElement("i",{className:`material-icons ${xe.a.btIcon}`},"play_circle_filled"),s.a.createElement("span",{className:xe.a.btText},"KONTYNUUJ"))),t=s.a.createElement("div",{className:xe.a.pRow,style:{backgroundColor:z.plateLightColor2}},s.a.createElement("p",{className:xe.a.miniTxt,style:{color:z.accentColor}},"WCZE\u015aNIEJ:"),s.a.createElement("div",{className:xe.a.miniWrap,style:{borderColor:z.plateLightMoreColor}},s.a.createElement("p",{className:xe.a.titleTxt},n.epg[0].title)),s.a.createElement("div",{className:xe.a.buttonsWrap},s.a.createElement("div",{className:xe.a.button,onClick:()=>{this._onPlayPress(1)}},s.a.createElement("i",{className:`material-icons ${xe.a.btIcon}`},"replay"),s.a.createElement("span",{className:xe.a.btText},"OD POCZ\u0104TKU")),s.a.createElement("div",{className:xe.a.btSep}),i))),s.a.createElement("div",{className:xe.a.promptWrap},e,t,s.a.createElement("div",{className:xe.a.closeBtn,onClick:this._onClosePress},s.a.createElement("i",{className:`material-icons ${xe.a.closeIcon}`},"close")))}renderSpinner(){return s.a.createElement("div",{className:xe.a.spinner})}render(){return s.a.createElement("div",{className:xe.a.overlay},this.state.visible?this.renderPrompt():this.renderSpinner())}},Le=a(29),Oe=a.n(Le);var De=class extends i.Component{constructor(e){super(),this._onTagClick=(e=>{if(this.selTagId==e)return void this.setState({open:!1});this.selTagId=e,d.selTagId=e;let t=this.getTagName();this.setState({selTagName:t,open:!1}),this.props.onSelectChange(e)}),this._toggleSelect=(e=>{e.stopPropagation();let t=!this.state.open;this.setState({open:t}),t?window.addEventListener("click",this.onWindowClick):window.removeEventListener("click",this.onWindowClick)}),this.onWindowClick=(()=>{this.setState({open:!1}),window.removeEventListener("click",this.onWindowClick)}),this.selectRef=s.a.createRef(),this.select=null,this.selTagId=e.selTagId,this.state={selTagName:"",open:!1,fixWidth:!1}}componentDidMount(){this.select=this.selectRef.current,0==d.selectWidth&&(d.selectWidth=this.select.offsetWidth);let e=this.getTagName();this.setState({selTagName:e,fixWidth:!0})}componentWillUnmount(){window.removeEventListener("click",this.onWindowClick)}getTagName(){if(null==this.props.data)return;let e=this.props.data,t=0,a="";for(t=0;t<e.length;t++)if(e[t].id==this.selTagId){a=e[t].name;break}return a}renderTags(){if(null==this.props.data)return null;let e=this.props.data,t=[],a=0,i=null;for(a=0;a<e.length;a++){let n=e[a].id;n!=this.selTagId&&(i=s.a.createElement("div",{key:a+"ct",className:Oe.a.tagItem,onClick:()=>{this._onTagClick(n)}},e[a].name),t.push(i))}return t}render(){let e={},t="";return this.state.open?(e.visibility="visible",t="expand_less"):(e.visibility="hidden",t="expand_more"),this.state.fixWidth&&(e.width=d.selectWidth),s.a.createElement("div",{id:"sbTitle",className:Oe.a.tagsWrap},s.a.createElement("div",{className:Oe.a.tagsInner},s.a.createElement("div",{className:Oe.a.tagItem,style:{width:d.selectWidth},onClick:this._toggleSelect},this.state.selTagName,s.a.createElement("div",{className:Oe.a.selectIconWrap},s.a.createElement("i",{className:`material-icons ${Oe.a.selectIcon}`},t))),s.a.createElement("div",{ref:this.selectRef,className:Oe.a.tagSelect,style:e},this.renderTags())))}},Ae=a(30),Re=a.n(Ae);var je=class extends i.Component{constructor(e){super(e),this.onSearchClick=(e=>{e.preventDefault(),this.setState({inputVal:""});let t=new ee.b({onComplete:this.onShowSearchAnimComplete});t.set("#sbBtnSearch",{display:"none"}),t.set("#sbInputWrap",{display:"block"}
1),t.set("#sbInputWrap",{width:this.inputWidthOpen,opacity:1}),t.set("#sbBtnClose",{display:"block",opacity:1}),t.set("#sbBtnSearch",{display:"none"}),t.set("#sbTitle",{display:"none"})}),this.onCloseClick=(e=>{e.preventDefault();let t=new ee.b({onComplete:this.onHideSearchAnimComplete});t.set("#sbBtnClose",{display:"none"}),t.set("#sbInputWrap",{display:"none"}),t.set("#sbTitle",{display:"block"}),t.set("#sbBtnSearch",{display:"block"})}),this.onShowSearchAnimComplete=(()=>{this.input.focus()}),this.onHideSearchAnimComplete=(()=>{this.props.onClose&&this.props.onClose()}),this._handleInputChange=(e=>{this.setState({inputVal:e.target.value}),this.props.onChange&&this.props.onChange(e.target.value)}),this.inputWidthOpen=0,this.inputWidthClose=1,this.buttonSpacing=16,this.input=null,this.state={inputVal:""}}componentDidMount(){this._isMounted=!0,this.inputWidthOpen=this.props.width-this.props.height}componentDidUpdate(){this.inputWidthOpen=this.props.width-this.props.height}componentWillUnmount(){this._isMounted=!1}render(){const{width:e,height:t,text:a,placeholder:i,showSearchIcon:n}=this.props;this.buttonSpacing;let r=s.a.createElement("div",{id:"sbBtnSearch",className:Re.a.btnWrap},s.a.createElement("button",{className:Re.a.button,onClick:this.onSearchClick},s.a.createElement("i",{className:"material-icons"},"search"))),o=s.a.createElement(De,{data:this.props.tags,onSelectChange:this.props.onSelectChange,selTagId:this.props.selTagId}),l=null,c=null;return n&&(l=r,c=o),s.a.createElement("div",{className:Re.a.wrapper,style:{height:t}},c,l,s.a.createElement("div",{id:"sbInputWrap",className:Re.a.inputWrap,style:{display:"none",width:this.inputWidthClose}},s.a.createElement("input",{ref:e=>{this.input=e},className:Re.a.input,type:"text",value:this.state.inputVal,placeholder:i,onChange:this._handleInputChange})),s.a.createElement("div",{id:"sbBtnClose",className:Re.a.btnWrap,style:{display:"none",opacity:0}},s.a.createElement("button",{className:Re.a.button,onClick:this.onCloseClick},s.a.createElement("i",{className:"material-icons"},"close"))))}},Ve=a(48),Be=a.n(Ve);var Fe=class extends i.Component{constructor(e){super(),this.onButtonClick=(e=>{g.a.set("_cacc",1,180),this.setState({hidden:!0})}),this.state={hidden:!0}}componentDidMount(){null===g.a.get("_cacc")&&this.setState({hidden:!1})}componentWillUnmount(){}render(){return!0===this.state.hidden?null:s.a.createElement("div",{className:Be.a.toast},s.a.createElement("h6",null,"Ta strona wykorzystuje pliki cookie"),s.a.createElement("p",null,"U\u017cywamy informacji zapisanych za pomoc\u0105 plik\xf3w cookies w celu zapewnienia maksymalnej wygody w korzystaniu z naszego serwisu. ",s.a.createElement("a",{href:"/pliki-cookies"},"Dowiedz si\u0119 wi\u0119cej.")),s.a.createElement("div",{className:Be.a.buttonWrap},s.a.createElement("button",{onClick:this.onButtonClick,className:Be.a.button},"OK, rozumiem")))}},Ue=a(67),Ge=a.n(Ue);var Je=class extends i.PureComponent{constructor(e){super(),this.startClock=(()=>{null!==this.timerHandle&&clearTimeout(this.timerHandle),this.addSeconds(),this.toHHMM(),this.timerHandle=setTimeout(this.startClock,3e3)}),this.toHHMM=(()=>{if(!1!==this._isMounted){var e=this.seconds,t=Math.floor(e/3600);e-=3600*t;var a=Math.floor(e/60);e-=60*a,t<10&&(t="0"+t),a<10&&(a="0"+a),e<10&&(e="0"+e),d.clockLastHour=t+":"+a,null!==d.onClockChange&&d.onClockChange(t+":"+a),this.setState({clock:t+":"+a})}}),this._isMounted=!1,this.seconds=0,this.secTotal=0,this.lastMiliSeconds=Date.now(),this.nowMiliSeconds=0,this.timerHandle=null,this.delta=0,this.time=new Date,this.curSec=0,this.lastSec=this.time.getSeconds(),this.secDelta=0,this.startMili=0,this.state={clock:null===d.clockLastHour?"--:--":d.clockLastHour}}componentDidMount(){this._isMounted=!0,this.getTime()}componentWillUnmount(){this._isMounted=!1,this.timerHandle&&clearTimeout(this.timerHandle)}getTime(){fetch(d.host+"api/app/main/gettime",null,1).then(e=>e.json()).then(e=>{this.seconds=Math.round((e.mtime-e.stime)/1e3),this.startMili=e.stime,d.secTotal=e.time/1e3,this.addSeconds(),this.toHHMM(),this.startClock()}).catch(e=>{console.error(e)})}addSeconds(){this.time=new Date,this.curSec=this.time.getSeconds(),this.secDelta=this.curSec-this.lastSec,this.secDelta<0&&(this.secDelta+=60),this.lastSec=this.curSec,this.seconds+=this.secDelta,this.seconds>86400&&(this.seconds=this.seconds-86400)}render(){return s.a.createElement("div",{className:Ge.a.clock},s.a.createElement("span",null,s.a.createElement("i",{className:"material-icons"},"schedule"),this.state.clock))}}
1,qe=a(132),Ye=a(17),Ze=a.n(Ye),Ke=a(68),Qe=a.n(Ke);var Xe=class extends i.Component{constructor(e){super(),this.onDropdownToggleClick=(e=>{e.preventDefault(),e.stopPropagation(),this.dropdownToggle()}),this.onDropdownHelpToggleClick=(e=>{e.preventDefault(),e.stopPropagation(),this.dropdownHelpToggle()}),this.dropdownHide=(e=>{!0===this.isDropdownOpen?(this.isDropdownOpen=!1,this.dropdown.style.display="none"):!0===this.isDropdownHelpOpen&&(this.isDropdownHelpOpen=!1,this.dropdownHelp.style.display="none")}),this.dropdown=null,this.dropdownHelp=null,this.isDropdownOpen=!1,this.isDropdownHelpOpen=!1,this.state={sid:null}}componentDidMount(){this.dropdown=document.getElementById("dropdownMenu"),this.dropdownHelp=document.getElementById("dropdownHelpMenu"),window.addEventListener("click",this.dropdownHide);let e=g.a.get("_ssid");this.setState({sid:e})}dropdownToggle(){!1===this.isDropdownOpen?(this.isDropdownOpen=!0,this.dropdown.style.display="block",this.isDropdownHelpOpen=!1,this.dropdownHelp.style.display="none"):(this.isDropdownOpen=!1,this.dropdown.style.display="none")}dropdownHelpToggle(){!1===this.isDropdownHelpOpen?(this.isDropdownHelpOpen=!0,this.dropdownHelp.style.display="block",this.isDropdownOpen=!1,this.dropdown.style.display="none"):(this.isDropdownHelpOpen=!1,this.dropdownHelp.style.display="none")}renderDropdown(){return s.a.createElement("ul",{id:"dropdownMenu",className:Ze.a.ddMenu},s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:Ze.a.active,to:"/urzadzenia"},"Urz\u0105dzenia")),s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:Ze.a.active,to:"/wyloguj"},"Wyloguj si\u0119")))}renderHelpDropdown(){return s.a.createElement("ul",{id:"dropdownHelpMenu",className:Ze.a.ddMenu},s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:Ze.a.active,to:"/wymagania-techniczne"},"Wymagania techniczne")))}render(){let e=null;return m.a.isLoggedIn()&&(e=s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:Ze.a.active,to:"/wyloguj"},"Wyloguj si\u0119"))),s.a.createElement("header",{className:Ze.a.header},s.a.createElement("div",{className:Ze.a.headerInner},s.a.createElement("div",{className:Ze.a.headerLeft},s.a.createElement("img",{src:Qe.a,alt:""})),s.a.createElement("div",{className:Ze.a.headerRight},s.a.createElement("ul",{className:Ze.a.headerMenu},s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:Ze.a.active,to:"/telewizja"},"Telewizja")),s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:Ze.a.active,to:"/kamery"},"Kamery")),s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:Ze.a.active,to:"/program-tv"},"Program TV")),e))))}},$e=a(31),et=a.n($e);const tt=a(124);var at=class extends i.Component{constructor(e){super()}componentDidMount(){}componentWillUnmount(){}getYear(){return(new Date).getFullYear()}render(){return this.props.hidden?null:s.a.createElement("footer",{className:et.a.footer},"SatFilm GO \xa9 2018 - ",this.getYear()," ",s.a.createElement("span",{className:et.a.buildInfo},"[3.1.0 b",tt.build," ]"),s.a.createElement("ul",{className:et.a.rMenu}," ",s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:et.a.active,to:"/wymagania-techniczne"},s.a.createElement("i",{className:"material-icons"},"keyboard_arrow_right"),"Wymagania techniczne")),s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:et.a.active,to:"/pliki-cookies"},s.a.createElement("i",{className:"material-icons"},"keyboard_arrow_right"),"Pliki Cookies")),s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:et.a.active,to:"/urzadzenia"},s.a.createElement("i",{className:"material-icons"},"keyboard_arrow_right"),"Urz\u0105dzenia")),s.a.createElement("li",null,s.a.createElement(qe.a,{activeClassName:et.a.active,to:"/blokada-pin"},s.a.createElement("i",{className:"material-icons"},"keyboard_arrow_right"),"Blokada rodzicielska"))))}},it=a(23),st=a.n(it);class nt extends i.Component{constructor(e){super(e),this.onDocumentResize=(()=>{this.resize()}),this.getChannelListOnAnimEnd=(()=>{this.getChannelList()}),this._channelPress=((e,t)=>{let a=m.a.getToken(),i=m.a.getUid();d.startOver&&fetch(d.host+"api/app/stream-user/set-position/?tk="+a+"&uid="+i+"&eid="+d.eventId+"&pos="+d.videoPosition+"&widx=0&spt="+d.spinTime,null,23),d.startOver=!1,this.item=e,this.play()}),this._showEpgCanal=(e=>{this.epgCanal.setChannelName(e.channel_name),this.state.epgVisible||3!=this.productId||(this.setState({epgVisible:!0}),this.epgCanal.show()),this.epgCanal.loadEpg(e.channel_id)}),this._onEpgPress=(()=>{}),this._handleEpgItemPress=(()=>{}),this._artistPress=((e,t)=>{}),this._onSongClick=(e=>{}),this.onKinoClick=(()=>{this.setState({kinoMode:!this.state.kinoMode})}),this.onFullScreen=(e=>{this.setState({fullScreen:e})}),this._onProgramClick=((e,t)=>{this.setState({modalVisible:!0,gid:e,wt:t})}),this.onModelCloseClick=(()=>{this.setState({modalVisible:!1,gid:0})}),this.onSearchChange=(e=>{let t=this.fuse.search(e);this.setState({dataSource:t})}),this.onSearchClose=(()=>{this.setState({dataSource:d.channels[this.productId].dataFiltered})}),this.onSearchChangeKar=(e=>{if(this.searchString=e,this.searchString.length>=3){if(this.searchString==this.searchStringOld)return;this.searchStringOld=this.searchString,this.searchIgnition()}}),this.onSearchCloseKar=(()=>{}),this._onFavsButtonPress=((e,t)=>{let a="tk="+encodeURIComponent(m.a.getToken())+"&uid="+encodeURIComponent(m.a.getUid())+"&cid="+encodeURIComponent(e);fetch(d.host+"api/app/favorites/"+t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}).then(e=>e.json()).then(a=>{let i,s;"ok"===a.status?"add"===t?(d.channels[this.productId].favs.push(parseInt(e)),i=!0):(-1!=(s=d.channels[this.productId].favs.indexOf(parseInt(e)))&&d.channels[this.productId].favs.splice(s,1),i=!1):i="add"!==t,this.player.setFavoritesChange(i),this.state.isFavorites&&this.filterTags(-1)})}),this.searchDo=(()=>{}),this._onSelectChange=(e=>{this.filterTags(e)}),this.filterTags=(e=>{let t=d.channels[this.productId].data.length,a=","+e+",",i=[],s=0;if(this.lastTagId=e,0==e)i=d.channels[this.productId].data,this.setState({isFavorites:!1});else if(-1==e)for(this.setState({isFavorites:!0}),s=0;s<t;s++)-1!=d.channels[this.productId].favs.indexOf(d.channels[this.productId].data[s].channel_id)&&i.push(d.channels[this.productId].data[s]);else{for(s=0;s<t;s++)-1!=d.channels[this.productId].data[s].tags.indexOf(a)&&i.push(d.channels[this.productId].data[s]);this.setState({isFavorites:!1})}d.channels[this.productId].dataFiltered=i,this.setState({dataSource:i}),null!=this.chlist&&this.chlist.toTop()}),this._onClosePinModal=(()=>{this.setState({modalPinVisible:!1}),d.videoPlayedBefore?this.chlist.set(d.channelIdSelectedLast):this.listReset()}),this._onClosePinModal2=(()=>{this.setState({modalPinVisible:!1}),this.play()}),this._modalPinShow=(()=>{this.modalPin.reset(),this.setState({modalPinVisible:!0})}),this._onStartOverPress=(()=>{let e=m.a.getToken(),t=m.a.getUid();d.startOver?(fetch(d.host+"api/app/stream-user/set-position/?tk="+e+"&uid="+t+"&eid="+d.eventId+"&pos="+d.videoPosition+"&widx=0&spt="+d.spinTime,null,23),d.startOver=!1,this.player.play(this.item.stream,this.item.channel_id)):this.setState({promptSoVisible:!0})}),this._hideSoPrompt=(()=>{this.setState({promptSoVisible:!1})}),this._onSoPlayPress=(e=>{this.setState({promptSoVisible:!1}),d.eventId=e.channel.eid,this.player.playStartOver(e,!1)}),this._onSoContinuePress=(e=>{this.setState({promptSoVisible:!1}),d.eventId=e.channel.eid,this.player.playStartOver(e,!0)}),this._onClosePress=(()=>{let e=m.a.getToken(),t=m.a.getUid();d.startOver&&fetch(d.host+"api/app/stream-user/set-position/?tk="+e+"&uid="+t+"&eid="+d.eventId+"&pos="+d.videoPosition+"&widx=0&spt="+d.spinTime,null,23),d.startOver=!1,this.chlist.reset(),this.epgCanal.hide(),this.player.hide(),this.setState({epgVisible:!1}),d.videoPlayedBefore=!1}),this.thumbV=(e=>{let{style:t,...a}=e;return s.a.createElement("div",Object.assign({className:"ltv-scroll-thumb",style:{...t}},a))}),this.appRef=s.a.createRef(),this.app=null,this.chListWrapRef=s.a.createRef(),this.chListWrap=null,this.ctRef=s.a.createRef(),this.ct=null,this.modalPin=null,this.videoWrapRef=s.a.createRef(),this.videoWrap=null,this.epgCanal=null,this.chListWrapPadLeft=0,this.chListWrapPadRight=0,this.vidWrapPadTop=0,this.vidWrapPadLeft=0,this.epgHeaderHeight=0,this.ctPadRight=0,this.ctWidth=0,this.appHeight=0,this.contentHeight=0,this.chListWidth=0,this.searchBoxHeight=60,this.vidAreaHeight=0,this.epgAreaHeight=0,this.subHeaderRightPadR=25,this.subHeaderRightPadL=10,this.productId=this.props.pid,this.cache=!1,this.isEpgTrack=!0,this.token=m.a.getToken(),this.uid=m.a.getUid(),this.chlist=null,this.player=null,this.fuse=null,this.ds=null,this.playerWidth=0,this.playerHe
1ight=0,this.rightColWidth=0,this.lastTagId=0,this.isFavorites=!1,this.item="",this.itemsCount=0,this.maxItems=0,this.pageNum=0,this.searchString="",this.searchStringOld="",this.timer=null,this.searchInProgress=!1,this.karSearchMode=!1,this.fuseOptions={shouldSort:!0,threshold:.5,tokenize:!0,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:["channel_name"]},this.getChannelListOnAnimEndFn=this.getChannelListOnAnimEnd,void 0!==d.channels[this.productId]&&!0===d.channels[this.productId].cache&&(this.getChannelListOnAnimEndFn=null),this.ds=null,this.state={dataSource:null,spinnerVisible:!1,playerVisible:!1,epgRerender:0,channelIdSelected:0,kinoMode:!1,fullScreen:!1,modalVisible:!1,epgVisible:!1,promptSoVisible:!1,gid:0,wt:1,isFetchingMore:!1,isFavorites:!1,modalPinVisible:!1,rerender:0}}componentDidMount(){this.app=this.appRef.current,this.ct=this.ctRef.current,this.chListWrap=this.chListWrapRef.current,this.videoWrap=this.videoWrapRef.current,this.epgHeaderHeight=this.epgCanal.getHeaderHeight(),d.karSongIdSelected=0,d.onResize=this.onDocumentResize,this.searchString="",this.searchStringOld="",this.timer=null,this.searchInProgress=!1,this.karSearchMode=!1,this.resize();let e={};3===this.productId?e.title="Telewizja na \u017cywo":4===this.productId&&(e.title="Kamery na \u017cywo"),this.setState(e),this.getChannelList()}componentWillUnmount(){let e=m.a.getToken(),t=m.a.getUid();d.startOver&&fetch(d.host+"api/app/stream-user/set-position/?tk="+e+"&uid="+t+"&eid="+d.eventId+"&pos="+d.videoPosition+"&widx=0&spt="+d.spinTime,null,23),d.startOver=!1,d.pinSeen=!1,d.onResize=null,d.channelIdSelected=0}getStyle(e,t){let a="";return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(e,"").getPropertyValue(t):e.currentStyle&&(t=t.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()}),a=e.currentStyle[t]),a}resize(){let e=this.epgCanal.isOpen();this.appHeight=this.app.clientHeight,this.contentHeight=this.appHeight-d.subHeaderHeight,this.vidAreaHeight=Math.round(.6*this.contentHeight),this.epgAreaHeight=this.contentHeight-this.vidAreaHeight,this.epgCanal.setVidAreaHeight(this.vidAreaHeight+this.epgAreaHeight-this.epgHeaderHeight),this.ctPadRight=parseFloat(this.getStyle(this.ct,"padding-right")),this.ctWidth=this.ct.clientWidth-this.ctPadRight,this.chListWrapPadLeft=parseFloat(this.getStyle(this.chListWrap,"padding-left")),this.chListWrapPadRight=parseFloat(this.getStyle(this.chListWrap,"padding-right")),this.vidWrapPadTop=parseFloat(this.getStyle(this.videoWrap,"padding-top")),this.vidWrapPadLeft=parseFloat(this.getStyle(this.videoWrap,"padding-left")),this.chListWidth=this.ctPadRight-(this.chListWrapPadLeft+this.chListWrapPadRight),this.playerHeight=e?this.contentHeight-this.epgAreaHeight-2*this.vidWrapPadTop:this.contentHeight-this.epgHeaderHeight-2*this.vidWrapPadTop,this.playerWidth=16*Math.round(this.playerHeight/9),this.playerWidth>this.ctWidth-2*this.vidWrapPadLeft&&(this.playerWidth=this.ctWidth-2*this.vidWrapPadLeft,this.playerHeight=9*Math.round(this.playerWidth/16)),this.setState({rerender:this.state.rerender+1})}getChannelList(){if(void 0!==d.channels[this.productId]&&!0===d.channels[this.productId].cache)return this.cache=!0,!0===this.isEpgTrack&&this.chlist.updateEpgTimeline(!0),this.fuse=new H.a(d.channels[this.productId].data,this.fuseOptions),this.setState({dataSource:d.channels[this.productId].dataFiltered,tags:d.channels[this.productId].tags,spinnerVisible:!1,epgRerender:0}),void this.autoPlay();fetch(d.host+"api/app/product/get/"+this.productId+"/?tk="+this.token+"&uid="+this.uid).then(e=>e.json()).then(e=>{d.channels[this.productId]={cache:!0,data:e.canals,epg:e.epg,tags:e.tags,favs:e.favs,pins:e.pins,channelFilter:0,channelFilterIdx:0,epgTimeSpan:e.ts,epgTrack:{}},d.channels[this.productId].dataFiltered=e.canals,d.epgTimeSpan=e.ts,d.serverTime=e.time,d.channelsLoaded=!0,this._initEpg(),!0===this.isEpgTrack&&this.chlist.updateEpgTimelineFirst(),this.ds=d.channels[this.productId].data,this.fuse=new H.a(this.ds,this.fuseOptions),this.setState({tags:d.channels[this.productId].tags,dataSource:this.ds,spinnerVisible:!1,epgRerender:0}),!0===this.isEpgTrack&&this.chlist.epgTimerStart(),this.autoPlay()}).catch(e=>{console.error(e)})}_initEpg(){let e=0;d.channels[this.productId].data.map((t,a)=>{e=d.channels[this.productId].epg[t.channel_id].data.length,d.channels[this.productId].epgTrack[t.channel_id]={index:0,itemsCount:e,completed:0,remaining:0}})}play(){d.autoPlay=!1,d.autoPlayId=0,this.player.setItem(this.item),this.player.play(this.item.stream,this.item.channel_id)}autoPlay(){if(!d.autoPlay)return;let e=0,t=d.channels[3].data.length,a=!1;for(d.startOver=!1,e=0;e<t;e++)if(d.autoPlayId==d.channels[3].data[e].channel_id){this.item=d.channels[3].data[e],a=!0;break}a&&(this.chlist.autoPlayPress(d.autoPlayId),this.play())}searchIgnition(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(this.searchDo,500)}renderStartOverPrompt(){return this.state.promptSoVisible?s.a.createElement(We,{hidePrompt:this._hideSoPrompt,onPlayPress:this._onSoPlayPress,onContinuePress:this._onSoContinuePress}):null}listReset(){this.chlist.reset(),d.videoPlayedBefore=!1}render(){let e=!1;this.epgCanal&&(e=this.epgCanal.isOpen());let t=e?this.contentHeight-this.epgAreaHeight:this.contentHeight-this.epgHeaderHeight,a=null;return 3==this.productId?a="Kana\u0142y TV":4==this.productId&&(a="Kamery"),s.a.createElement("div",{ref:this.appRef,className:"App"},s.a.createElement(Xe,null),s.a.createElement("div",{className:st.a.ctWrap,style:{paddingTop:d.subHeaderHeight}},s.a.createElement("div",{className:st.a.subHeader,style:{height:d.subHeaderHeight}},s.a.createElement("div",{className:st.a.subHeadInner},s.a.createElement("div",{className:"headerLeft"},s.a.createElement("h1",{style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},this.state.title)),s.a.createElement("div",{className:"headerRight",style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},s.a.createElement(Je,null))),s.a.createElement("div",{className:st.a.subHeaderRight,style:{height:d.subHeaderHeight,width:this.ctPadRight,paddingLeft:this.subHeaderRightPadL,paddingRight:this.subHeaderRightPadR}},null!==this.state.dataSource?s.a.createElement(je,{width:this.ctPadRight-(this.subHeaderRightPadL+this.subHeaderRightPadR)+8,height:d.subHeaderHeight,text:a,tags:this.state.tags,placeholder:"Nazwa kana\u0142u",showSearchIcon:4!=this.productId,onChange:this.onSearchChange,onClose:this.onSearchClose,onSelectChange:this._onSelectChange,selTagId:d.selTagId}):null)),s.a.createElement("div",{ref:this.ctRef,className:st.a.ct},s.a.createElement("div",{id:"vidAreaWrap",className:st.a.vidArea,style:{height:t}},s.a.createElement("div",{id:"vidWrapper",ref:this.videoWrapRef,className:st.a.videoWrap,style:{width:this.playerWidth,height:this.playerHe
1ight}},s.a.createElement($,{ref:e=>{this.player=e},show:this.state.playerVisible,height:this.playerHeight,onKinoClick:this.onKinoClick,onFullScreen:this.onFullScreen,channelListData:this.state.dataSource,onFavsButtonPress:this._onFavsButtonPress,onClosePress:this._onClosePress,modalPinShow:this._modalPinShow,showEpgCanal:this._showEpgCanal,onStartOverPress:this._onStartOverPress,productId:this.productId}))),s.a.createElement(se,{ref:e=>{this.epgCanal=e},visible:this.state.epgVisible,onProgramClick:this._onProgramClick,width:this.ctWidth,height:this.epgAreaHeight,initialY:this.vidAreaHeight,vidAreaWidth:this.ctWidth,vidAreaHeight:this.vidAreaHeight,vidPadTop:this.vidWrapPadTop,vidPadLeft:this.vidWrapPadLeft}),s.a.createElement("div",{ref:this.chListWrapRef,className:st.a.chListWrap,style:{width:this.chListWidth+"px"}},s.a.createElement("div",{className:st.a.chListWrapInner,style:{height:this.contentHeight+"px"}},s.a.createElement(U,{ref:e=>{this.chlist=e},width:this.chListWidth,height:this.contentHeight,listWidth:this.chListWidth,dataSource:this.state.dataSource,fullScreen:!1,isFavorites:this.state.isFavorites,productId:this.productId,channelIdSelected:this.state.channelIdSelected,onListItemPress:this._channelPress}))))),this.state.modalVisible?s.a.createElement(Ee,{show:this.state.modalVisible,gid:this.state.gid,wt:this.state.wt,onCloseClick:this.onModelCloseClick}):null,s.a.createElement(Te,{ref:e=>{this.modalPin=e},open:this.state.modalPinVisible,onClose:this._onClosePinModal,onClose2:this._onClosePinModal2,closeIconSize:20,center:!0}),this.renderStartOverPrompt(),s.a.createElement(at,null),s.a.createElement(Fe,null))}}class rt extends i.Component{constructor(e){super(e),this._isMounted=!1}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){return s.a.createElement(nt,{pid:3})}}class ot extends i.Component{render(){return s.a.createElement(nt,{pid:4})}}var lt=a(32),ct=a.n(lt);var ht=class extends i.Component{constructor(e){super(),this._onProgramClick=(e=>{e.preventDefault();let t=e.currentTarget.dataset.gid,a=e.currentTarget.dataset.wt;this.props.onProgramClick&&this.props.onProgramClick(t,a)}),this.cid=e.id,this.status="",this._isMounted=!1,this.programs=[],this.state={spinnerVisible:!0,height:e.height}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}getData(){let e=m.a.getToken();fetch(d.host+"api/app/tvguide/get-channel-epg-wa/"+this.cid+"/24/?tk="+e,null,1).then(e=>e.json()).then(e=>{this.status=e.status,this._renderCanalPrograms(e.epgd)}).catch(e=>{console.error(e)})}setHeight(e){this.setState({height:e})}_renderCanalPrograms(e){let t=e.length,a=0,i=null;for(this.programs=[],a=0;a<t;a++)i=s.a.createElement("li",{key:e[a].id+"e"},s.a.createElement("a",{href:"#","data-gid":e[a].id,"data-wt":e[a].wt,onClick:this._onProgramClick},s.a.createElement("div",{className:ct.a.pWrap},s.a.createElement("div",{className:ct.a.hourWrap},s.a.createElement("span",{className:ct.a.hour,style:{color:z.channelNameColor}},e[a].start_short)),s.a.createElement("div",{className:ct.a.titleWrap},e[a].title)))),this.programs.push(i);this.setState({spinnerVisible:!1})}renderSpinner(){return s.a.createElement("div",{className:ct.a.spinnerWrap},s.a.createElement("div",{className:ct.a.spinner}))}renderList(){return"noepg"==this.status?s.a.createElement("div",{className:ct.a.noepg},"Brak programu TV"):s.a.createElement("div",null,s.a.createElement(te,{transitionDuration:200},s.a.createElement("ul",{className:"epgProgram"},this.programs)))}render(){return s.a.createElement(P.ScrollBox,{style:{width:"240px",height:this.state.height+"px"},disableScrollX:!0,permitHandleDragInterruption:!1},this.state.spinnerVisible?this.renderSpinner():this.renderList())}},dt=a(56),pt=a.n(dt),mt=a(11),ut=a.n(mt);a(125),a(126);class gt extends i.Component{constructor(e){super(),this.cache={},this.onDocumentResize=(()=>{this.resize(!0)}),this.getEpgDataOnAnimEnd=(()=>{this.getEpgData()}),this.getEpgFromCache=(()=>{this.epg=d.epg2DataCache,this.processData()}),this._onPlayPress=(e=>{e.preventDefault();let t=e.currentTarget.dataset.cid,a=0,i=this.channels.length,s=!1,n=null;for(a=0;a<i;a++)if(t==this.channels[a].channel_id){n=this.channels[a],s=!0;break}if(s){if(n.lock)return void alert("Brak dost\u0119pu.\nNie posiadasz dost\u0119pu do pakietu: '"+n.pktname+"'");d.autoPlayId=t,d.autoPlay=!0,this.setState({redirToTv:!0})}}
1),this._addCanalRef=(e=>{let t={ref:e,index:this.canalRefsCount,loaded:!1};this.canalRefs.push(t),this.canalRefsCount++}),this._onProgramClick=((e,t)=>{this.setState({modalVisible:!0,gid:e,wt:t})}),this.setAnimatingStopDelayed=(e=>{this.lazyTimer&&clearTimeout(this.lazyTimer),this.lazyTimer=setTimeout(()=>{this.setAnimatingStop(e)},500)}),this.setAnimatingStop=(e=>{if(this.isAnimating=!1,"right"===e){if(this.rightClickCounter<=this.rightClickCurrent)return;this.canalRefCurIndex<this.canalRefsCount&&(this.rightClickCurrent=this.rightClickCounter,this._getLazyData())}}),this._getLazyData=(()=>{for(let e=0;e<this.listsInContainer&&(this.canalRefs[this.canalRefCurIndex].ref.getData(),this.canalRefs[this.canalRefCurIndex].loaded=!0,this.canalRefCurIndex++,!(this.canalRefCurIndex>=this.canalRefsCount));e++);}),this._rightClick=(e=>{e.preventDefault();let t={},a=0;null!=this.canalObject&&(this.currentVal>=this.canalsTotalWidth-this.containerWidth||this.isAnimating||(this.isAnimating=!0,this.currentVal+=this.scrollStep,this.currentVal>=this.canalsTotalWidth-this.containerWidth?(this.currentVal=this.canalsTotalWidth-this.containerWidth,a=this.posX,this.posX=-this.currentVal,this.posXrest=a-this.posX,t.btRightEnabled=!1):this.posX-=this.scrollStep,!1===this.state.btLeftEnabled&&(t.btLeftEnabled=!0),this.setState(t),this.rightClickCounter++,pt()(this.canalObject,{left:this.posX},{duration:500,complete:this.setAnimatingStopDelayed("right")})))}),this._leftClick=(e=>{e.preventDefault();let t={},a=this.scrollStep;null!=this.canalObject&&(this.currentVal<=0||this.isAnimating||(this.isAnimating=!0,0!==this.posXrest&&(a=this.posXrest,this.posXrest=0),this.currentVal-=a,this.currentVal<=0?(this.currentVal=0,this.posX=0,t.btLeftEnabled=!1):this.posX+=a,!1===this.state.btRightEnabled&&(t.btRightEnabled=!0),this.setState(t),this.rightClickCounter--,pt()(this.canalObject,{left:this.posX},{duration:500,complete:this.setAnimatingStopDelayed("left")})))}),this.onModelCloseClick=(()=>{this.setState({modalVisible:!1,gid:0})}),this.appRef=s.a.createRef(),this.app=null,this._isMounted=!1,this.timerHandle=null,this.lazyTimer=null,this.epg=null,this.logos=[],this.lines=[],this.canals=[],this.channels=[],this.token=m.a.getToken(),this.canalObject=null,this.canalsTotalWidth=0,this.containerWidth=0,this.programWidth=240,this.scrollStep=600,this.listsInContainer=0,this.currentVal=0,this.posX=0,this.posXrest=0,this.rightClickCounter=0,this.rightClickCurrent=0,this.appHeight=0,this.contentHeight=0,this.naviWidth=50,this.reinitScrollBars=!1,this.canalRefs=[],this.canalRefsCount=0,this.canalRefCurIndex=0,this.isAnimating=!1,this.epgTime=0,this.nowTime=0,this.oneMinuteWidth=5,this.tlFrgmentMarginRight=1,this.didUpdate=0,this.getEpgDataOnAnimEndFn=this.getEpgDataOnAnimEnd,this.state={visible:!1,modalVisible:!1,gid:0,wt:1,btRightEnabled:!1,btLeftEnabled:!1,redirToTv:!1,rerender:0}}bind(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];const s=JSON.stringify({methodName:e,args:a});return this.cache[s]||(this.cache[s]=this[e].bind(this,...a)),this.cache[s]}componentDidMount(){this._isMounted=!0,this.app=this.appRef.current,this.resize(!1),d.onResize=this.onDocumentResize,this.loadData()}componentDidUpdate(){if(0==this.canals.length)return;let e=0;if(this.didUpdate>0)this.reinitScrollBars&&(this.reinitScrollBars=!1,this.refreshListsHeight());else{for(this.canalObject=document.getElementById("canalCp"),this.canalsTotalWidth=this.canalObject.scrollWidth,this.measureContainer(),e=0;e<this.listsInContainer;e++)this.canalRefs[e].loaded=!0,this.canalRefCurIndex++,this.canalRefs[e].ref.getData();this.didUpdate++}}componentWillUnmount(){this._isMounted=!1,d.onResize=null,this.lazyTimer&&clearTimeout(this.lazyTimer),this.timerHandle&&clearTimeout(this.timerHandle)}resize(e){this.appHeight=this.app.clientHeight,this.contentHeight=this.appHeight-d.subHeaderHeight;this.measureContainer(),e&&(this.reinitScrollBars=!0,this.setState({rerender:this.state.rerender+1}))}refreshListsHeight(){for(let e=0;e<this.canalRefsCount;e++)this.canalRefs[e].ref.setHeight(this.contentHeight-100)}measureContainer(){this.containerWidth=document.getElementById("prC
1ontainer").clientWidth,this.scrollStep=parseInt(this.containerWidth/this.programWidth,10),this.listsInContainer=this.scrollStep+1,this.scrollStep*=this.programWidth+10}makeEpgTime(){let e=new Date;this.nowTime=Math.round(e.getTime()/1e3),this.epgTime=this.nowTime,this.epgTime-=7200;let t=new Date(1e3*this.epgTime),a=t.getMinutes();a=a<30?0:30;let i=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),a,0,0);this.epgTime=Math.round(i.getTime()/1e3)}loadData(){d.channelsLoaded?(this.channels=d.channels[3].data,this.getEpgData()):this.getChannels()}getChannels(){let e=m.a.getUid();fetch(d.host+"api/app/product/get/3/?tk="+this.token+"&uid="+e).then(e=>e.json()).then(e=>{this.channels=e.canals,this.getEpgData()}).catch(e=>{console.error(e)})}getEpgData(){fetch(d.host+"api/app/tvguide/get-channels-wa/?tk="+this.token,null,1).then(e=>e.json()).then(e=>{this.epg=e,d.epg2DataCache=e,this.processData()}).catch(e=>{console.error(e)})}processData(){let e=this.epg.length,t=0,a=null,i=null,n=this.contentHeight-100;for(t=0;t<e;t++)i=null,this.epg[t].play&&(i=s.a.createElement("a",{className:ut.a.playIconBt,"data-cid":this.epg[t].trid,href:"#",onClick:this._onPlayPress},s.a.createElement("i",{className:`material-icons ${ut.a.playIcon}`},"play_circle_filled"))),a=s.a.createElement("li",{key:"cn"+t.toString(),style:{backgroundColor:z.plateDarkColor}},s.a.createElement("div",{className:ut.a.logoWrap},s.a.createElement("span",{className:ut.a.logo},s.a.createElement("img",{src:this.epg[t].logo,alt:""})),s.a.createElement("div",{className:ut.a.logoWrapName},s.a.createElement("span",{className:ut.a.lcn},this.epg[t].lcn),this.epg[t].name),i),s.a.createElement(ht,{ref:e=>this._addCanalRef(e),id:this.epg[t].id,onProgramClick:this._onProgramClick,height:n})),this.canals.push(a);d.epg2RenderCache=this.canals,this.setState({visible:!0,btRightEnabled:!0})}_onCanalClick2(e,t){e.preventDefault(),this.setState({modalVisible:!0,gid:t})}_renderCanalPrograms(e){let t=e.length,a=0,i=null,n=[];for(a=0;a<t;a++){e[a].id;i=s.a.createElement("li",{key:e[a].id.toString()},s.a.createElement("a",{href:"#","data-gid":e[a].id,onClick:this._onCanalClick},s.a.createElement("div",{className:ut.a.pWrap},s.a.createElement("div",{className:ut.a.hourWrap},s.a.createElement("span",{className:ut.a.hour,style:{color:z.channelNameColor}},e[a].start_short)),s.a.createElement("div",{className:ut.a.titleWrap},e[a].title)))),n.push(i)}return n}navigation(){const{btLeftEnabled:e,btRightEnabled:t}=this.state;let a=!0===e?`${ut.a.naviBt} ${ut.a.left}`:`${ut.a.naviBt} ${ut.a.left} ${ut.a.disabled}`,i=!0===t?`${ut.a.naviBt} ${ut.a.right}`:`${ut.a.naviBt} ${ut.a.right} ${ut.a.disabled}`,n=s.a.createElement("span",{onClick:this._leftClick,className:a},s.a.createElement("i",{className:"material-icons"},"chevron_left")),r=s.a.createElement("span",{onClick:this._rightClick,className:i},s.a.createElement("i",{className:"material-icons"},"chevron_right"));return s.a.createElement(s.a.Fragment,null,n,r)}renderList(){return s.a.createElement("div",{className:ut.a.wrapAll,style:{paddingLeft:this.naviWidth,paddingRight:this.naviWidth}},this.navigation(),s.a.createElement("div",{id:"prContainer",className:ut.a.container,style:{height:this.contentHeight+"px"}},this.canals.length?s.a.createElement("ul",{id:"canalCp",className:"epgCanal"},this.canals):null))}renderSpinner(){return s.a.createElement("div",{className:ut.a.spinWrap},s.a.createElement("div",{className:ut.a.spinner}))}render(){if(this.state.redirToTv)return s.a.createElement(l.a,{to:"/telewizja"});const{visible:e}=this.state;let t=null;return t=0==this.canals.length?this.renderSpinner():null,s.a.createElement("div",{ref:this.appRef,className:"App"},s.a.createElement(Xe,null),s.a.createElement("div",{className:"ctWrap",style:{paddingTop:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeader",style:{height:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeadInner"},s.a.createElement("div",{className:"headerLeft"},s.a.createElement("h1",{style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},"Program TV")),s.a.createElement("div",{className:"headerRight",style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},s.a.createElement(Je,null)))),this.renderList(),t,this.state.modalVisible?s.a.createElement(Ee,{show:this.state.modalVisible,gid:this.state.gid,wt:this.state.wt,onCloseClick:this.onModelCloseClick}):null),s.a.createElement(at,null),s.a.createElement(Fe,null))}}var vt=a(19),yt=a.n(vt);class _t extends i.Component{constructor(e){super(),this._isMounted=!1,this.token=m.a.getToken()}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){return s.a.createElement("div",{className:"App"},s.a.createElement(Xe,null),s.a.createElement("div",{className:"ctWrap",style:{paddingTop:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeader",style:{height:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeadInner"},s.a.createElement("div",{className:"headerLeft"},s.a.createElement("h1",{style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}}
1,"Pliki Cookies")),s.a.createElement("div",{className:"headerRight",style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},s.a.createElement(Je,null)))),s.a.createElement("div",{id:"site-wrap2"},s.a.createElement("div",{className:"siteInfo"},s.a.createElement("h3",null,"Czym s\u0105 cookies (ciasteczka)?"),s.a.createElement("p",null,"To niewielkie informacje, nazywane ciasteczkami (z ang. cookie \u2013 ciastko), wysy\u0142ane przez serwis internetowy, kt\xf3ry odwiedzamy i zapisywane na urz\u0105dzeniu ko\u0144cowym (komputerze, laptopie, smartfonie), z kt\xf3rego korzystamy podczas przegl\u0105dania stron internetowych."),s.a.createElement("p",null,"W \u201ecookies\u201d, sk\u0142adaj\u0105cych si\u0119 z szeregu liter i cyfr, znajduj\u0105 si\u0119 r\xf3\u017cne informacje niezb\u0119dne do prawid\u0142owego funkcjonowania serwis\xf3w internetowych, np. tych wymagaj\u0105cych autoryzacji \u2013 m.in. podczas logowania do konta pocztowego czy sklepu internetowego."),s.a.createElement("p",null,"Wszystkie dzia\u0142aj\u0105ce w internecie serwisy \u2013 wyszukiwarki, strony informacyjne, newsowe, sklepy internetowe, strony urz\u0119d\xf3w pa\u0144stwowych i innych instytucji publicznych, mog\u0105 prawid\u0142owo dzia\u0142a\u0107 dzi\u0119ki wykorzystaniu \u201ecookies\u201d."),s.a.createElement("p",null,"Ciasteczka umo\u017cliwiaj\u0105 tak\u017ce m.in. zapami\u0119tanie naszych preferencji i personalizowanie stron internetowych w zakresie wy\u015bwietlanych tre\u015bci oraz dopasowania reklam. Dzi\u0119ki \u201ecookies\u201d mo\u017cliwe jest te\u017c rejestrowanie produkt\xf3w i us\u0142ug czy g\u0142osowanie w internetowych ankietach."),s.a.createElement("p",null,"Dane osobowe gromadzone przy u\u017cyciu \u201ecookies\u201d mog\u0105 by\u0107 zbierane wy\u0142\u0105cznie w celu wykonywania okre\u015blonych funkcji na rzecz u\u017cytkownika, czyli np. zapami\u0119tania logowania do serwisu czy zapami\u0119tania towar\xf3w dodanych do koszyka w sklepie internetowym. Takie dane s\u0105 zaszyfrowane w spos\xf3b uniemo\u017cliwiaj\u0105cy dost\u0119p do nich osobom nieuprawnionym."),s.a.createElement("h3",null,"Co nam daj\u0105 cookies?"),s.a.createElement("p",null,"Dzi\u0119ki \u201ecookie\u201d korzystanie ze stron internetowych jest \u0142atwiejsze i przyjemniejsze a ich zawarto\u015b\u0107 \u2013 teksty, zdj\u0119cia, ankiety, sondy, ale r\xf3wnie\u017c reklamy \u2013 jest lepiej dopasowana do oczekiwa\u0144 i preferencji ka\u017cdego u\u017cytkownika internetu."),s.a.createElement("p",null,"\u201eCookies\u201d:"),s.a.createElement("ul",null,s.a.createElement("li",null,"umo\u017cliwiaj\u0105 zapami\u0119tywanie naszych odwiedzin na stronie i naszych preferencji dotycz\u0105cych tej strony (m.in. j\u0119zyk strony, jej kolor, uk\u0142ad, rozmieszczenie tre\u015bci);"),s.a.createElement("li",null,"pozwalaj\u0105 sklepom internetowym poleca\u0107 nam produkty zwi\u0105zane z tymi, kt\xf3re zazwyczaj wybieramy, kt\xf3re mog\u0105 nas potencjalnie zainteresowa\u0107;"),s.a.createElement("li",null,"pomagaj\u0105 przechowywa\u0107 towary wrzucone przez nas do zakupowego koszyka w sklepach online;"),s.a.createElement("li",null,"umo\u017cliwiaj\u0105 korzystanie z kont w serwisach;"),s.a.createElement("li",null,"pozwalaj\u0105 by\u0107 zalogowanym do serwisu na ka\u017cdej z dost\u0119pnych w danej witrynie podstron;"),s.a.createElement("li",null,"sprawiaj\u0105, \u017ce nie widzimy wci\u0105\u017c i wci\u0105\u017c tej samej reklamy czy ankiety do wype\u0142nienia;"),s.a.createElement("li",null,"pozwalaj\u0105 na prezentacj\u0119 nam reklam w spos\xf3b uwzgl\u0119dniaj\u0105cy nasze zainteresowania czy miejsce zamieszkania \u2013 w ten spos\xf3b reklamy, dzi\u0119ki kt\xf3rym korzystanie z wielu serwis\xf3w internetowych mo\u017ce by\u0107 bezp\u0142atne, mog\u0105 informowa\u0107 nas o potencjalnie interesuj\u0105cych nas produktach i us\u0142ugach;"),s.a.createElement("li",null,"pozwalaj\u0105 tworzy\u0107 anonimowe statystyki odwiedzalno\u015bci serwis\xf3w.")),s.a.createElement("p",null,"Dzi\u0119ki \u201ecookies\u201d w\u0142a\u015bciciele i wydawcy serwis\xf3w internetowych s\u0105 w stanie oceni\u0107 realne zainteresowanie swoimi serwisami, mog\u0105 lepiej pozna\u0107 oczekiwania i preferencje u\u017cytkownik\xf3w, zrozumie\u0107 spos\xf3b w jaki u\u017cytkownicy korzystaj\u0105 z ich serwis\xf3w oraz, korzystaj\u0105c z najnowszych rozwi\u0105za\u0144 technologicznych, mog\u0105 stale udoskonala\u0107 swoje serwisy internetowe czyni\u0105c je jeszcze przyja\u017aniejszymi i lepiej dostosowanymi do naszych potrzeb."),s.a.createElement("h3",null,"Co powinni\u015bmy wiedzie\u0107 o \u201ecookies\u201d?"),s.a.createElement("p",null,"Nie s\u0142u\u017c\u0105 identyfikacji u\u017cytkownik\xf3w i na ich podstawie w \u017caden spos\xf3b nie jest ustalana czyjakolwiek to\u017csamo\u015b\u
10107;"),s.a.createElement("ul",null,s.a.createElement("li",null,"\u201ecookies\u201d identyfikuj\u0105 dane komputera i przegl\u0105darki u\u017cywanych do przegl\u0105dania stron internetowych \u2013 pozwalaj\u0105 np. dowiedzie\u0107 si\u0119 czy dany komputer ju\u017c odwiedza\u0142 stron\u0119;"),s.a.createElement("li",null,"dane pozyskane z \u201ecookies\u201d nie s\u0105 w \u017caden spos\xf3b \u0142\u0105czone z danymi osobowymi u\u017cytkownik\xf3w pozyskanymi np. podczas rejestracji w serwisach;"),s.a.createElement("li",null,"nie s\u0105 szkodliwe ani dla nas ani dla naszych komputer\xf3w, czy smartfon\xf3w \u2013 nie wp\u0142ywaj\u0105 na spos\xf3b ich dzia\u0142ania;"),s.a.createElement("li",null,"nie powoduj\u0105 zmian konfiguracyjnych w urz\u0105dzeniach ko\u0144cowych, ani w oprogramowaniu zainstalowanym na tych urz\u0105dzeniach;"),s.a.createElement("li",null,"domy\u015blne parametry \u201eciasteczek\u201d pozwalaj\u0105 na odczytanie informacji w nich zawartych jedynie serwerowi, kt\xf3ry je utworzy\u0142;"),s.a.createElement("li",null,"na podstawie naszych zachowa\u0144 na odwiedzanych stronach internetowych przekazuj\u0105 do serwer\xf3w informacje, dzi\u0119ki kt\xf3rym wy\u015bwietlana strona jest lepiej dopasowana do indywidualnych preferencji.")),s.a.createElement("h3",null,"Podstawowe rodzaje ciasteczek"),s.a.createElement("p",null,s.a.createElement("strong",null,"\u201eCookies\u201d sesyjne")," \u2013 s\u0105 to tymczasowe informacje przechowywane w pami\u0119ci przegl\u0105darki do momentu zako\u0144czenia sesji przegl\u0105darki, czyli do momentu jej zamkni\u0119cia. Te cookies s\u0105 obowi\u0105zkowe, aby niekt\xf3re aplikacje lub funkcjonalno\u015bci dzia\u0142a\u0142y poprawnie."),s.a.createElement("p",null,s.a.createElement("strong",null,"\u201eCookies\u201d sta\u0142e")," \u2013 dzi\u0119ki nim korzystanie z cz\u0119sto odwiedzanych stron jest \u0142atwiejsze (np. zapewniaj\u0105 optymaln\u0105 nawigacj\u0119, zapami\u0119tuj\u0105 wybran\u0105 rozdzielczo\u015b\u0107, uk\u0142ad tre\u015bci etc.). Te informacje pozostaj\u0105 pami\u0119ci przegl\u0105darki przez d\u0142u\u017cszy okres. Czas ten zale\u017cy od wyboru, kt\xf3rego mo\u017cna dokona\u0107 w ustawieniach przegl\u0105darki. Ten rodzaj cookies zezwala na przekazywanie informacji na serwer za ka\u017cdym razem, gdy odwiedzana jest dana strona. Sta\u0142e cookies s\u0105 r\xf3wnie\u017c nazywane jako tzw. \u015bledz\u0105ce \u201ecookie\u201d (ang. tracking cookies)."),s.a.createElement("p",null,s.a.createElement("strong",null,"\u201eCookies\u201d podmiot\xf3w zewn\u0119trznych")," \u2013 (ang. third parties cookies) \u2013 to informacje pochodz\u0105ce np. z serwer\xf3w reklamowych, serwer\xf3w firm i dostawc\xf3w us\u0142ug (np. wyszukiwania albo map umieszczanych na stronie) wsp\xf3\u0142pracuj\u0105cych z w\u0142a\u015bcicielem danej strony internetowej. Ten rodzaj cookie pozwala dostosowywa\u0107 reklamy \u2013 dzi\u0119ki kt\xf3rym korzystanie ze stron internetowych mo\u017ce by\u0107 bezp\u0142atne \u2013 do preferencji i zwyczaj\xf3w ich u\u017cytkownik\xf3w. Pozwalaj\u0105 r\xf3wnie\u017c oceni\u0107 skuteczno\u015b\u0107 dzia\u0142a\u0144 reklamowych (np. dzi\u0119ki zliczaniu, ile os\xf3b klikn\u0119\u0142o w dan\u0105 reklam\u0119 i przesz\u0142o na stron\u0119 internetow\u0105 reklamodawcy). Na podstawie informacji pozyskanych z tych cookies mo\u017cna tworzy\u0107 tzw. og\xf3lne profile u\u017cytkownik\xf3w, dzi\u0119ki kt\xf3rym m\u0119\u017cczy\u017ani interesuj\u0105cy si\u0119 finansami i samochodami (odwiedzaj\u0105cy strony o tej tematyce) zobacz\u0105 reklamy dopasowane do ich potencjalnych zainteresowa\u0144, a nie np. reklam\u0119 kobiecych kosmetyk\xf3w."),s.a.createElement("h3",null,"Zarz\u0105dzanie cookies"),s.a.createElement("p",null,"Pami\u0119taj, \u017ce masz mo\u017cliwo\u015b\u0107 samodzielnego zarz\u0105dzania \u201ecookies\u201d. Umo\u017cliwiaj\u0105 to np. przegl\u0105darki internetowe, z kt\xf3rych korzystasz. W najpopularniejszych przegl\u0105darkach masz mo\u017cliwo\u015b\u0107:"),s.a.createElement("ul",null,s.a.createElement("li",null,"zaakceptowania obs\u0142ugi \u201ecookies\u201d, co pozwoli Ci na pe\u0142ne korzystanie z opcji oferowanych przez witryny internetowe;"),s.a.createElement("li",null,"zarz\u0105dzania cookies na poziomie pojedynczych, wybranych przez Ciebie witryn;"),s.a.createElement("li",null,"okre\u015blenia ustawie\u0144 dla r\xf3\u017cnych typ\xf3w \u201ecookie\u201d, na przyk\u0142ad akceptowania plik\xf3w trwa\u0142ych jako sesyjnych itp.;"),s.a.createElement("li",null,"blokowania lub usuwania cookies.")),s.a.createElement("p",null,"Efektem zmiany ustawie\u0144 w przegl\u0105darce, w zale\u017cno\u015bci od wybranej opcji, mo\u017ce by\u0107 utrata mo\u017cliwo\u015bci korzystania z niekt\xf3rych serwis\xf3w i us\u0142ug lub z niekt\xf3rych funkcji w nich dost\u0119pnych."),s.a.createElement("p",null,s.a.createElement("span",{className:"small"},"\u017br\xf3d\u0142o: ",s.a.createElement("a",{href:"http://www.wszystkoociasteczkach.pl",target:"_blank"},"www.wszystkoociasteczkach.pl")))))),s.a.createElement(at,null))}}class ft extends i.Component{constructor(e){super(),this._isMounted=!1,this.token=m.a.getToken()}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){return s.a.createElement("div",{className:"App"},s.a.createElement(Xe,null),s.a.createElement("div",{className:"ctWrap",style:{paddingTop:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeader",style:{height:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeadInner"},s.a.createElement("div",{className:"headerLeft"},s.a.createElement("h1",{style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},"Wymagania techniczne")),s.a.createElement("div",{className:"headerRight",style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},s.a.createElement(Je,null)))),s.a.createElement("div",{id:"site-wrap2"},s.a.createElement("div",{className:"siteInfo"},s.a.createElement("p",null,"Do prawid\u0142owego dzia\u0142ania us\u0142ugi SatFilm GO, powinny zosta\u0107 spe\u0142nione nast\u0119puj\u0105ce wymagania:"),s.a.createElement("p",null,s.a.createElement("strong",null,"Komputer (PC lub Laptop):")),s.a.createElement("ul",null,s.a.createElement("li",null,"dost\u0119p do sieci Internet o szybko\u015bci transmisji
1nie mniejszej ni\u017c 1 Mb/s"),s.a.createElement("li",null,"procesor o szybko\u015bci taktowania min. 1,6GHz, pami\u0119\u0107 RAM min. 4 GB, karta graficzna ze wsparciem dla sprz\u0119towej akceleracji dekodowania wideo"),s.a.createElement("li",null,"system operacyjny: Windows 10 lub nowszy, Mac OS X 13.7 lub nowszy, Linux"),s.a.createElement("li",null,"przegl\u0105darka internetowa (w najnowszej dost\u0119pnej wersji): Mozilla Firefox, Chrome lub Opera"),s.a.createElement("li",null,"w\u0142\u0105czona obs\u0142uga plik\xf3w Cookies oraz JavaScript w przegl\u0105darce internetowej")),s.a.createElement("p",null,s.a.createElement("strong",null,"Smartfon lub Tablet:")),s.a.createElement("ul",null,s.a.createElement("li",null,"dost\u0119p do sieci Internet o szybko\u015bci transmisji nie mniejszej ni\u017c 1 Mb/s"),s.a.createElement("li",null,"system operacyjny: Android w wersji 11 lub nowszy, iOS w wersji 15.8.1 lub nowszy"),s.a.createElement("li",null,"wsparcie i obs\u0142uga Google Widevine Modular DRM"),s.a.createElement("li",null,"zablokowane uprawnienia superu\u017cytkownika (tzw. root w systemie Android lub jailbreak w systemie iOS)"),s.a.createElement("li",null,"zainstalowana aplikacja SatFilm GO")),s.a.createElement("p",null)))),s.a.createElement(at,null),s.a.createElement(Fe,null))}}var Et=e=>{let{classes:t,classNames:a,styles:i,closeIconSize:n,closeIconSvgPath:r,onClickCloseIcon:o}=e;return s.a.createElement("button",{className:"closeButton",style:i.closeButton,onClick:o},s.a.createElement("svg",{className:ke()(t.closeIcon,a.closeIcon),style:i.closeIcon,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 36 36"},r))},Ct=a(69),bt=a.n(Ct);class kt extends i.Component{static getDerivedStateFromProps(e,t){return!t.showPortal&&e.open?{showPortal:!0}:null}constructor(e){super(e),this.handleOpen=(()=>{document.addEventListener("keydown",this.handleKeydown)}),this.handleClose=(()=>{document.removeEventListener("keydown",this.handleKeydown)}),this.handleClickOverlay=(e=>{null===this.shouldClose&&(this.shouldClose=!0),this.shouldClose?(this.props.onOverlayClick&&this.props.onOverlayClick(e),this.props.closeOnOverlayClick&&this.props.onClose(e),this.shouldClose=null):this.shouldClose=null}),this.handleClickCloseIcon=(e=>{this.props.onClose(e)}),this.handleKeydown=(e=>{27===e.keyCode&&(this.props.onEscKeyDown&&this.props.onEscKeyDown(e),this.props.closeOnEsc&&this.props.onClose(e))}),this.handleModalEvent=(()=>{this.shouldClose=!1}),this.handleEntered=(()=>{this.props.onEntered&&this.props.onEntered()}),this.handleExited=(()=>{this.props.onExited&&this.props.onExited(),this.setState({showPortal:!1})}),this.unblockScroll=(()=>{document.getElementsByClassName("modal").length}),this.state={showPortal:e.open},this.shouldClose=null}componentDidMount(){this.props.open&&this.handleOpen()}componentDidUpdate(e,t){t.showPortal&&!this.state.showPortal?this.handleClose():!e.open&&this.props.open&&this.handleOpen()}componentWillUnmount(){this.props.open&&this.handleClose()}blockScroll(){}render(){const{open:e,center:t,classNames:a,styles:i,showCloseIcon:n,closeIconSize:r,closeIconSvgPath:o,animationDuration:l}=this.props,{showPortal:c}=this.state;return c?s.a.createElement(ce,null,s.a.createElement(ve.a,{in:e,appear:!0,classNames:{appear:"transitionEnter",appearActive:"transitionEnterActive",enter:"transitionEnter",enterActive:"transitionEnterActive",exit:"transitionExit",exitActive:"transitionExitActive"},timeout:l,onEntered:this.handleEntered,onExited:this.handleExited},s.a.createElement("div",{className:"overlay",onClick:this.handleClickOverlay,style:i.overlay},s.a.createElement("div",{className:"modal",style:i.modal,onMouseDown:this.handleModalEvent,onMouseUp:this.handleModalEvent,onClick:this.handleModalEvent},this.props.children,n&&s.a.createElement(Et,{classes:bt.a,classNames:a,styles:i,closeIconSize:r,closeIconSvgPath:o,onClickCloseIcon:this.handleClickCloseIcon}))))):null}}kt.defaultProps={closeOnEsc:!0,closeOnOverlayClick:!0,onEntered:null,onExited:null,onEscKeyDown:null,onOverlayClick:null,showCloseIcon:!0,closeIconSize:28,closeIconSvgPath:s.a.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"}),classNames:{},styles:{},children:null,center:!1,animationDuration:500},Object(Ce.a)(kt);var wt=kt;class St extends i.Component{constructor(e){super(),this.selDevice=(e=>{this.modalOpen||(this.selDeviceId=e,this.showModal())}),this.editDevice=(e=>{this.selDeviceId=e,this.showEditModal()}),this.onCloseModal=(()=>{this.setState({modalDelOpen:!1})}),this.onExitedModal=(()=>{this.selDeviceId=0,this.modalOpen=!1}),this.onCloseModalDel=(()=>{this.setState({modalDelOpen:!1}),0!==this.selDeviceId&&this.deleteDevice()}),this.onModalEditAccept=(()=>{!0!==this.state.btEditOkDisabled&&0!==this.selDeviceId&&(this.setState({modalEditFreeze:!0}
1),this.renameDevice())}),this.onCloseErrorModal=(()=>{this.errorModalMessage="",this.setState({modalErrorOpen:!1})}),this.onCloseEditModal=(()=>{!0!==this.state.modalEditFreeze&&(this.selDeviceId=0,this.setState({modalEditOpen:!1}))}),this._handleNameChange=(e=>{let t={deviceName:""},a=e.target.value.replace(/(^\s+)/g,"");0==a.length?t.btEditOkDisabled=!0:!0===this.state.btEditOkDisabled&&(t.btEditOkDisabled=!1),t.deviceName=a,this.setState(t)}),this._isMounted=!1,this.selDeviceId=0,this.errorModalMessage="",this.devices=null,this.deviceId=0,this.deviceIndex=0,this.modalOpen=!1,this.modalEditOpen=!1,this.token=m.a.getToken(),this.state={devices:null,opts:null,modalDelOpen:!1,modalErrorOpen:!1,modalEditOpen:!1,modalEditFreeze:!1,deviceName:"",btEditOkDisabled:!1,redirectToLogout:!1}}componentDidMount(){this._isMounted=!0,this.modalOpen=!1,this.getDevices()}componentWillUnmount(){this._isMounted=!1}getDevices(){let e=m.a.getUid();fetch(d.host+"api/app/devices/get/"+this.token+"/"+e).then(e=>e.json()).then(e=>{this.devices=e.devices,this.setState({devices:e.devices,opts:e.options})}).catch(e=>{console.error(e)})}deleteDevice(){let e={im:this.selDeviceId,ti:this.token,dx:m.a.getUid()};const t=Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&");fetch(d.host+"api/app/devices/del",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:t}).then(e=>e.json()).then(e=>{"ok"===e.status?this.selDeviceId!=this.deviceId?(this.selDeviceId=0,this.getDevices()):(this.selDeviceId=0,this.setState({redirectToLogout:!0})):"error"===e.status&&(e.msg.length?this.errorModalMessage=e.msg:this.errorModalMessage="Ups. Wyst\u0105pi\u0142 nieznany b\u0142\u0105d.",this.setState({modalErrorOpen:!0}))}).catch(e=>{console.error(e)})}renameDevice(){let e={im:this.selDeviceId,ti:this.token,nm:this.state.deviceName,dx:m.a.getUid()};const t=Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&");fetch(d.host+"api/app/devices/rename",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:t}).then(e=>e.json()).then(e=>{"ok"===e.status?(this.selDeviceId=0,this.devices[this.deviceIndex].name=this.state.deviceName,this.setState({devices:this.devices,modalEditOpen:!1})):"error"===e.status&&(this.selDeviceId=0,e.msg.length?this.errorModalMessage=e.msg:this.errorModalMessage="Ups. Wyst\u0105pi\u0142 nieznany b\u0142\u0105d.",this.setState({modalEditOpen:!1,modalErrorOpen:!0}))}).catch(e=>{console.error(e)})}renderDevices(){if(null==this.state.devices)return null;let e=this.state.devices;return s.a.createElement("div",{id:"devicesContainer",className:yt.a.container},s.a.createElement("table",{className:yt.a.table},s.a.createElement("thead",null,s.a.createElement("tr",{className:yt.a.thead},s.a.createElement("th",{width:"70%"},"Nazwa"),s.a.createElement("th",{width:"20%"},"Data rejestracji"),s.a.createElement("th",{width:"5%",className:yt.a.alignr}),s.a.createElement("th",{width:"5%",className:yt.a.alignr}))),s.a.createElement("tbody",null,e.map((e,t)=>{let a=e.priority,i="";null!==e.brand&&(i=e.brand+" "),1==e.myself&&(this.deviceId=a);let n=s.a.createElement("span",{className:yt.a.delIcon,title:"Usu\u0144",value:a,onClick:()=>this.selDevice(a)},s.a.createElement("i",{className:"material-icons"},"clear")),r=s.a.createElement("span",{className:yt.a.delIcon,title:"Zmie\u0144 nazw\u0119",value:a,onClick:()=>this.editDevice(a)},s.a.createElement("i",{className:"material-icons"},"edit"));return s.a.createElement("tr",{key:a},s.a.createElement("td",null,e.name),s.a.createElement("td",null,e.rdate),s.a.createElement("td",{className:yt.a.alignr},r),s.a.createElement("td",{className:yt.a.alignr},n))}))))}showModal(){this.modalOpen=!0,this.setState({modalDelOpen:!0})}showEditModal(){let e="";for(let t=0;t<this.devices.length;t++)if(this.devices[t].priority==this.selDeviceId){this.deviceIndex=t,e=this.devices[t].name;break}this.setState({modalEditOpen:!0,btEditOkDisabled:!1,modalEditFreeze:!1,deviceName:e})}render(){if(!0===this.state.redirectToLogout)return s.a.createElement(l.a,{to:"/wyloguj"});let e=4,t=2;null!==this.state.opts&&(e=this.state.opts.adv_max_reg_devs,t=this.state.opts.adv_max_online_devs);let a=null;this.selDeviceId==this.deviceId&&(a=s.a.createElement("p",{className:ze.a.body},"Uwaga! Pr\xf3bujesz usun\u0105\u0107 urz\u0105dzenie na kt\xf3rym w\u0142a\u015bnie pracujesz, zostanie
1sz automatycznie wylogowany w momencie jego usuni\u0119cia."));const i=!0===this.state.btEditOkDisabled?`${ze.a.disabled}`:"",n=s.a.createElement("div",{className:ze.a.modalfreezer},s.a.createElement("div",{className:ze.a.freezSpinner}));return s.a.createElement("div",{className:"App"},s.a.createElement(Xe,null),s.a.createElement("div",{className:"ctWrap",style:{paddingTop:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeader",style:{height:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeadInner"},s.a.createElement("div",{className:"headerLeft"},s.a.createElement("h1",{style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},"Urz\u0105dzenia")),s.a.createElement("div",{className:"headerRight",style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},s.a.createElement(Je,null)))),s.a.createElement("div",{id:"site-wrap2"},s.a.createElement("div",{className:"siteInfo"},s.a.createElement("p",null,"Poni\u017cej znajduje si\u0119 lista Twoich zarejestrowanych urz\u0105dze\u0144.",s.a.createElement("br",null),"Maksymalna liczba urz\u0105dze\u0144, kt\xf3re mo\u017cesz zarejestrowa\u0107 wynosi: ",e,", mo\u017cesz korzysta\u0107 z aplikacji na ",t," urz\u0105dzeniach jednocze\u015bnie.",s.a.createElement("br",null),"Mo\u017cesz usun\u0105\u0107 jedno urz\u0105dzenie w ci\u0105gu danego miesi\u0105ca kalendarzowego.")),s.a.createElement("div",{className:"siteContent"},this.renderDevices()),s.a.createElement(wt,{open:this.state.modalDelOpen,onClose:this.onCloseModal,onExited:this.onExitedModal,closeIconSize:20,center:!0},s.a.createElement("h1",{className:ze.a.heading},s.a.createElement("i",{className:`material-icons ${ze.a.colorRed}`},"warning")," ",s.a.createElement("span",null,"Usuwanie urz\u0105dzenia")),a,s.a.createElement("p",{className:ze.a.body},"Czy chcesz usun\u0105\u0107 wybrane urz\u0105dzenie?"),s.a.createElement("div",{className:ze.a.btWrap},s.a.createElement("button",{type:"button",onClick:this.onCloseModal,className:`${ze.a.button} ${ze.a.btCancel}`},"ANULUJ"),s.a.createElement("button",{type:"button",onClick:this.onCloseModalDel,className:`${ze.a.button} ${ze.a.btOk}`},"USU\u0143"))),s.a.createElement(wt,{open:this.state.modalEditOpen,onClose:this.onCloseEditModal,closeIconSize:20,center:!0},s.a.createElement("h1",{className:ze.a.heading},s.a.createElement("i",{className:`material-icons ${ze.a.colorBlue}`},"info")," ",s.a.createElement("span",null,"Zmie\u0144 nazw\u0119 urz\u0105dzenia")),s.a.createElement("p",{className:ze.a.body},s.a.createElement("label",{className:ze.a.label},"Nazwa:"),s.a.createElement("input",{type:"text",autoFocus:!0,className:ze.a.input,value:this.state.deviceName,maxLength:48,onChange:this._handleNameChange})),s.a.createElement("div",{className:ze.a.btWrap},s.a.createElement("button",{type:"button",onClick:this.onCloseEditModal,className:`${ze.a.button} ${ze.a.btCancel}`},"ANULUJ"),s.a.createElement("button",{type:"button",onClick:this.onModalEditAccept,className:`${ze.a.button} ${ze.a.btOk} ${i}`},"ZMIE\u0143")),this.state.modalEditFreeze?n:null),s.a.createElement(wt,{open:this.state.modalErrorOpen,onClose:this.onCloseErrorModal,closeIconSize:20,center:!0},s.a.createElement("h1",{className:ze.a.heading},s.a.createElement("i",{className:"material-icons"},"warning")," ",s.a.createElement("span",null,"Wyst\u0105pi\u0142 b\u0142\u0105d")),s.a.createElement("p",{className:ze.a.body},this.errorModalMessage),s.a.createElement("div",{className:ze.a.btWrap},s.a.createElement("button",{type:"button",onClick:this.onCloseErrorModal,className:`${ze.a.button} ${ze.a.btOk}`},"OK"))),s.a.createElement("div",{id:"siteFooter"})),s.a.createElement(me,{show:!1})),s.a.createElement(at,null),s.a.createElement(Fe,null))}}var Nt=a(70),It=a.n(Nt);var zt=class extends i.Component{constructor(e){super(e),this.toggle=(()=>{this.disabled||(this.state.checked,this.setState({checked:!this.state.checked}),this.props.onCheck(this.props.idx,this.props.cid))}),this._isMounted=!1,this.disabled=e.disabled,this.state={checked:e.checked}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){const{color:e}=this.props;let t=this.state.checked?"check_box":"check_box_outline_blank",a=this.disabled?.6:1;return s.a.createElement("span",{className:It.a.chkbox,style:{color:e,opacity:a},onClick:this.toggle},s.a.createElement("i",{className:"material-icons"},t))}},Pt=a(39),Tt=a.n(Pt),Ht=a(6),xt=a.n(Ht);class Mt extends i.Component{constructor(e){super(),this._handlePin1Change=(e=>{this.setState({pinValue:e.target.value})}),this._handlePin2Change=(e=>
1{this.setState({pin2Value:e.target.value})}),this._handleSubmit=(e=>{e.preventDefault();let t=this.state.pinValue,a=this.state.pin2Value,i={};if(0==t.length||0==a.length)return void alert("Wype\u0142nij obydwa pola formularza.");if(4!=t.length||4!=a.length)return void alert("Kod PIN musi si\u0119 sk\u0142ada\u0107 z 4 cyfr.");if(isNaN(t)||isNaN(a))return void alert("Kod PIN musi si\u0119 sk\u0142ada\u0107 z 4 cyfr.");if(t!=a)return void alert("Obydwa wpisane kody PIN musz\u0105 byc identyczne.");this.setState({spinnerVisible:!0}),i.tk=this.token,i.pn=t;const s=Object.keys(i).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(i[e])).join("&");fetch(d.host+"api/app/config/set-pin",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:s}).then(e=>e.json()).then(e=>{"ok"==e.status?(alert("Kod PIN zosta\u0142 zmieniony."),this.setState({spinnerVisible:!1,mode:"list"})):(alert("B\u0142\u0105d","Wyst\u0105pi\u0142 nieznany b\u0142\u0105d."),this.setState({spinnerVisible:!1}))}).catch(e=>{console.error(e)})}),this._onChangePinPress=(()=>{this.setState({mode:"chgpin",pinValue:"",pin2Value:""})}),this._onPinCancelPress=(e=>{this.setState({mode:"list"})}),this._onCheck=((e,t)=>{let a,i=this.state.canals,s=i[e].pin;s?-1!=(a=this.pins.indexOf(parseInt(t)))&&this.pins.splice(a,1):this.pins.push(parseInt(t)),i[e].pin=!s,this.setState({canals:i}),d.channelsLoaded&&(d.channels[3].data[e].pin=i[e].pin,d.channels[3].pins=this.pins),this.savePinChannels()}),this.onCloseErrorModal=(()=>{this.errorModalMessage="",this.setState({modalErrorOpen:!1})}),this._isMounted=!1,this.token=m.a.getToken(),this.pins=[],this.state={canals:null,
1spinnerVisible:!0,redirectToLogout:!1,mode:"list",pinValue:"",pin2Value:""}}componentDidMount(){this._isMounted=!0,this.getChannels()}componentWillUnmount(){this._isMounted=!1,m.a.setPinLock(!0)}getChannels(){let e=m.a.getUid();fetch(d.host+"api/app/product/get/3/?tk="+this.token+"&uid="+e).then(e=>e.json()).then(e=>{this.pins=e.pins,this.setState({canals:e.canals,spinnerVisible:!1})}).catch(e=>{console.error(e)})}renderChannels(){if(null==this.state.canals)return null;let e=this.state.canals;return s.a.createElement("div",{className:"siteContent"},s.a.createElement("div",{id:"devicesContainer",className:Tt.a.container},s.a.createElement("table",{className:Tt.a.table},s.a.createElement("thead",null,s.a.createElement("tr",{className:Tt.a.thead},s.a.createElement("th",{width:"5%"},"LCN"),s.a.createElement("th",{width:"5%"},"PIN"),s.a.createElement("th",{width:"90%"},"Kana\u0142"))),s.a.createElement("tbody",null,e.map((e,t)=>{let a=null,i=!1,n=!1;return e.pin&&(i=!0),e.pinl&&(n=!0),e.lock||(a=s.a.createElement("tr",{key:"ch"+e.channel_id},s.a.createElement("td",null,e.lcn),s.a.createElement("td",null,s.a.createElement(zt,{idx:t,cid:e.channel_id,onCheck:this._onCheck,checked:i,disabled:n,color:"#ffffff"})),s.a.createElement("td",null,e.channel_name))),a})))))}renderInfo(){return s.a.createElement("div",{className:"siteInfo"},s.a.createElement("p",null,"Zaznacz kana\u0142y, kt\xf3re chcesz zabezpieczy\u0107 kodem PIN."),s.a.createElement("button",{type:"button",className:Tt.a.chgPinBtn,onClick:this._onChangePinPress},"Zmie\u0144 kod PIN"))}renderForm(){return s.a.createElement("div",{className:xt.a.wrap},s.a.createElement("div",{className:xt.a.inner},s.a.createElement("form",{className:xt.a.form,onSubmit:this._handleSubmit},s.a.createElement("div",{className:xt.a.head},"ZMIANA KODU PIN"),s.a.createElement("div",{className:xt.a.inputWrap},s.a.createElement("input",{className:xt.a.input,type:"password",id:"",name:"sfgochpin",value:this.state.pinValue,placeholder:"Nowy kod PIN (4 cyfry)",maxLength:"4",onChange:this._handlePin1Change})),s.a.createElement("div",{className:xt.a.inputWrap2},s.a.createElement("input",{className:xt.a.input,type:"password",id:"",name:"sfgochpin2",value:this.state.pin2Value,placeholder:"Powt\xf3rz nowy kod PIN",maxLength:"4",onChange:this._handlePin2Change})),s.a.createElement("div",{className:xt.a.buttonWrapFl},s.a.createElement("button",{type:"button",className:`${xt.a.buttonPin} ${xt.a.btL}`,onClick:this._onPinCancelPress},"Anuluj"),s.a.createElement("button",{type:"submit",className:`${xt.a.buttonPin} ${xt.a.btR} ${xt.a.buttonPinCta}`},"Zmie\u0144 PIN")))))}savePinChannels(){let e={tk:this.token,pn:JSON.stringify(this.pins)};const t=Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&");fetch(d.host+"api/app/config/save-pins",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:t}).then(e=>e.json()).then(e=>{}).catch(e=>{console.error(e)})}render(){return!0===this.state.redirectToLogout?s.a.createElement(l.a,{to:"/wyloguj"}):s.a.createElement("div",{className:"App"},s.a.createElement(Xe,null),s.a.createElement("div",{className:"ctWrap",style:{paddingTop:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeader",style:{height:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeadInner"},s.a.createElement("div",{className:"headerLeft"},s.a.createElement("h1",{style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},"Blokada rodzicielska")),s.a.createElement("div",{className:"headerRight",style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},s.a.createElement(Je,null)))),s.a.createElement("div",{id:"site-wrap2"},"list"==this.state.mode?this.renderInfo():null,"list"==this.state.mode?this.renderChannels():null,"chgpin"==this.state.mode?this.renderForm():null,s.a.createElement("div",{id:"siteFooter"})),s.a.createElement(me,{show:this.state.spinnerVisible})),s.a.createElement(at,null),s.a.createElement(Fe,null))}}class Wt extends i.Component{constructor(e){super(),this._handlePinChange=(e=>{this.setState({pinValue:e.target.value})}),this._handleSubmit=(e=>{console.log("_handleSubmit"),e.preventDefault();let t=this.state.pinValue,a={};if(0==t.length)return void alert("Wprowad\u017a kod PIN.");if(4!=t.length)return void alert("Kod PIN musi si\u0119 sk\u0142ada\u0107 z 4 cyfr.");if(isNaN(t))return void alert("Kod PIN musi si\u0119 sk\u0142ada\u0107 z 4 cyfr.");this.setState({spinnerVisible:!0}),a.tk=this.token,a.pn=t;const i=Object.keys(a).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(a[e])).join("&");fetch(d.host+"api/app/config/check-pin",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:i}).then(e=>e.json()).then(e=>{"ok"===e.status?(m.a.setPinLock(!1),this.setState({spinnerVisible:!1,redirect:!0})):"error"===e.status&&(this.setState({spinnerVisible:!1}),alert("B\u0142\u0105d",e.msg))}).catch(e=>{console.error(e),this.setState({spinnerVisible:!1})})}),this._onChangePinPress=(()=>{this.setState({mode:"chgpin",pinValue:"",pin2Value:""})}),this._onPinCancelPress=(e=>{this.props.history.goBack()}),this._onCheck=((e,t)=>{let a,i=this.state.canals,s=i[e].pin;s?-1!=(a=this.pins.indexOf(parseInt(t)))&&this.pins.splice(a,1):this.pins.push(parseInt(t)),i[e].pin=!s,this.setState({canals:i}),d.channelsLoaded&&(d.channels[3].data[e].pin=i[e].pin,d.channels[3].pins=this.pins),this.savePinChannels()}),this.onCloseErrorModal=(()=>
1{this.errorModalMessage="",this.setState({modalErrorOpen:!1})}),this._isMounted=!1,this.token=m.a.getToken(),this.pins=[],this.state={canals:null,spinnerVisible:!1,redirect:!1,mode:"list",pinValue:"",pin2Value:""}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}renderForm(){return s.a.createElement("div",{className:xt.a.wrap},s.a.createElement("div",{className:xt.a.inner},s.a.createElement("form",{className:xt.a.form,onSubmit:this._handleSubmit},s.a.createElement("div",{className:xt.a.head},"WPROWAD\u0179 KOD PIN"),s.a.createElement("div",{className:xt.a.inputWrap},s.a.createElement("input",{className:xt.a.input,type:"password",id:"",name:"sfgoentpin",value:this.state.pinValue,placeholder:"",maxLength:"4",onChange:this._handlePinChange})),s.a.createElement("div",{className:xt.a.buttonWrapFl},s.a.createElement("button",{type:"button",className:`${xt.a.buttonPin} ${xt.a.btL}`,onClick:this._onPinCancelPress},"Anuluj"),s.a.createElement("button",{type:"submit",className:`${xt.a.buttonPin} ${xt.a.btR} ${xt.a.buttonPinCta}`},"Zatwierd\u017a")))))}savePinChannels(){let e={tk:this.token,pn:JSON.stringify(this.pins)};const t=Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&");fetch(d.host+"api/app/config/save-pins",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:t}).then(e=>e.json()).then(e=>{}).catch(e=>{console.error(e)})}render(){return!0===this.state.redirect?s.a.createElement(l.a,{to:"/blokada-pin"}):s.a.createElement("div",{className:"App"},s.a.createElement(Xe,null),s.a.createElement("div",{className:"ctWrap",style:{paddingTop:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeader",style:{height:d.subHeaderHeight}},s.a.createElement("div",{className:"subHeadInner"},s.a.createElement("div",{className:"headerLeft"},s.a.createElement("h1",{style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},"Blokada rodzicielska")),s.a.createElement("div",{className:"headerRight",style:{height:d.subHeaderHeight,lineHeight:d.subHeaderHeight+"px"}},s.a.createElement(Je,null)))),s.a.createElement("div",{id:"site-wrap2"},this.renderForm(),s.a.createElement("div",{id:"siteFooter"})),s.a.createElement(me,{show:this.state.spinnerVisible})),s.a.createElement(at,null),s.a.createElement(Fe,null))}}var Lt=a(7),Ot=a(42),Dt=a(71),At=a.n(Dt);var Rt=Object(Ot.a)(class extends i.Component{constructor(e){super(e),this.checked=!1,this.toggle=(()=>{this.checked=!this.checked,this.props.onCheck(this.checked)}),Object(Lt.i)(this,{checked:Lt.j}),this._isMounted=!1}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}render(){const{label:e,color:t}=this.props,a=this.checked?"check_box":"check_box_outline_blank";return s.a.createElement("span",{className:At.a.chkbox,style:{color:t},onClick:this.toggle},s.a.createElement("i",{className:"material-icons"},a),s.a.createElement("b",null,e))}}),jt=a(73),Vt=a.n(jt);var Bt=Object(Ot.a)(class extends i.Component{constructor(e){super(e),this.inVals={loginValue:"",passwordValue:""},this.showLoginForm=!1,this.redirectToSite=!1,this.spinnerVisible=!1,this._handleSubmit=(e=>{if(e.preventDefault(),0===this.inVals.loginValue.length||0===this.inVals.passwordValue.length)return void alert("Wpisz ID Abonenta oraz Has\u0142o.");this.spinnerVisible=!0;let t=g.a.get("_usid"),a={ulogin:this.inVals.loginValue,upass:this.inVals.passwordValue,uid:null!==t?t:"",uuid:"",brand:"na",model:"na",type:"pc",platform:"pc"};const i=Object.keys(a).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(a[e])).join("&");fetch(d.host+"api/app/user/login",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:i}).then(e=>e.json()).then(e=>{"error"===e.status?(this.spinnerVisible=!1,alert(e.msg)):"ok"===e.status&&(g.a.set("_usid",e.uid,365),m.a.setToken(e.token),!0===this.checkBoxChecked?g.a.set("_ssid",e.uuid,180):g.a.set("_ssid",e.uuid),m.a.setLogged(!0),m.a.setUid(e.uid),this.redirectToSite=!0)}).catch(e=>{})}),this._onCheckBoxCheck=(e=>{this.checkBoxChecked=e}),this._handleLoginChange=(e=>{this.inVals.loginValue=e.target.value}),this._handlePasswordChange=(e=>{this.inVals.passwordValue=e.target.value}),this.renderLoginForm=(()=>!1===this.showLoginForm?null:s.a.createElement("div",{className:xt.a.wrap},s.a.createElement("div",{className:xt.a.logoWrap},s.a.createElement("img",{src:Vt.a,alt:""})),s.a.createElement("div",{className:xt.a.inner},s.a.createElement("form",{className:xt.a.form,onSubmit:this._handleSubmit},s.a.createElement("div",{className:xt.a.head},"LOGOWANIE"),s.a.createElement("div",{className:xt.a.inputWrap},s.a.createElement("input",{className:xt.a.input,type:"text",id:"",name:"",value:this.inVals.loginValue,placeholder:"ID Abonenta",onChange:this._handleLoginChange})),s.a.createElement("div",{className:xt.a.inputWrap2},s.a.createElement("input",{className:xt.a.input,type:"password",id:"",name:"",value:this.inVals.passwordValue,placeholder:"Has\u0142o do E-BOA",onCh
1ange:this._handlePasswordChange})),s.a.createElement("div",{className:xt.a.chbxWrap},s.a.createElement(Rt,{label:"zapami\u0119taj mnie",onCheck:this._onCheckBoxCheck,color:"#aaaaaa"})),s.a.createElement("div",{className:xt.a.buttonWrap},s.a.createElement("button",{className:xt.a.button},"Zaloguj si\u0119")))),s.a.createElement(Fe,null))),Object(Lt.i)(this,{showLoginForm:Lt.j,redirectToSite:Lt.j,spinnerVisible:Lt.j,inVals:Lt.j}),this.checkBoxChecked=!1}componentDidMount(){this.autoLogin()}componentWillUnmount(){}autoLogin(){let e=g.a.get("_ssid");if(null===e)return void(this.showLoginForm=!0);this.spinnerVisible=!0;let t=g.a.get("_usid"),a={ulogin:this.inVals.loginValue,upass:this.inVals.passwordValue,uid:null!==t?t:"",uuid:e,brand:"na",model:"na",type:"pc",platform:"pc"};const i=Object.keys(a).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(a[e])).join("&");fetch(d.host+"api/app/user/login",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:i}).then(e=>e.json()).then(e=>{"error"===e.status?(this.spinnerVisible=!1,this.showLoginForm=!0,alert(e.msg)):"ok"===e.status&&(m.a.setToken(e.token),m.a.setUid(e.uid),m.a.setLogged(!0),this.redirectToSite=!0)}).catch(e=>{this.showLoginForm=!0})}render(){const{from:e}=this.props.location.state||{from:{pathname:"/telewizja"}};if(!0===this.redirectToSite)return s.a.createElement(l.a,{to:e});const t=this.spinnerVisible;return s.a.createElement("div",{className:xt.a.login},s.a.createElement(Xe,null),this.renderLoginForm(),s.a.createElement(at,null),s.a.createElement(me,{show:t}))}});class Ft extends i.Component{constructor(e){super(e),d.channels=null,d.channels={},g.a.set("_ssid","",-1),m.a.setLogged(!1)}render(){return s.a.createElement(l.a,{to:"/login"})}}const Ut=e=>{let{component:t,...a}=e;return s.a.createElement(o.a,Object.assign({},a,{render:e=>m.a.isLoggedIn()?s.a.createElement(t,e):s.a.createElement(l.a,{to:{pathname:"/login",state:{from:e.location}}})}))},Gt=e=>{let{component:t,...a}=e;return s.a.createElement(o.a,Object.assign({},a,{render:e=>m.a.isPL()?s.a.createElement(l.a,{to:{pathname:"/pin",state:{from:e.location}}}):s.a.createElement(t,e)}))};var Jt=class extends i.Component{constructor(e){super(),this.onResizeDo=(()=>{null!==d.onResize&&d.onResize()}),this.throttleTimer=null,this.throttleTimeout=500,this.onResize=this.debounce(this.onResizeDo,250)}componentDidMount(){this.setUid(),window.addEventListener("resize",this.onResize)}componentWillUnmount(){window.removeEventListener("resize",this.onResize)}setUid(){let e=g.a.get("_usid");null==e&&(e=this.makeUid(32)),g.a.set("_usid",e,365),m.a.setUid(e),console.log("setUid")}makeUid(e){let t="",a="abcdefghijklmnopqrstuvwxyz0123456789",i=a.length;for(let s=0;s<e;s++)t+=a.charAt(Math.floor(Math.random()*i));return t}debounce(e,t,a){var i;return function(){var s=this,n=arguments,r=a&&!i;clearTimeout(i),i=setTimeout(function(){i=null,a||e.apply(s,n)},t),r&&e.apply(s,n)}}render(){return s.a.createElement(c.a,null,s.a.createElement(h.a,null,s.a.createElement(o.a,{exact:!0,path:"/",component:v}),s.a.createElement(Ut,{path:"/telewizja",component:rt}),s.a.createElement(o.a,{path:"/kamery",component:ot}),s.a.createElement(Ut,{path:"/program-tv",component:gt}),s.a.createElement(Ut,{path:"/urzadzenia",component:St}),s.a.createElement(Gt,{path:"/blokada-pin",component:Mt}),s.a.createElement(o.a,{path:"/login",component:Bt}),s.a.createElement(o.a,{path:"/pin",component:Wt}),s.a.createElement(o.a,{path:"/wyloguj",component:Ft}),s.a.createElement(o.a,{path:"/pliki-cookies",component:_t}),s.a.createElement(o.a,{path:"/wymagania-techniczne",component:ft})))}};r.a.createRoot(document.getElementById("sfgo")).render(s.a.createElement(Jt,null))}],[[76,1,2]]]); 2//# sourceMappingURL=main.95091f8a.chunk.js.map
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.