PageSourceSearch

https://www.uniteltmais.cv/_next/static/chunks/pages/private/home/tv-e78b24a86a033721.js

js uniteltmais.cv collected 2026-10-04 07:07:17 UTC 14,269 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[604],{65541:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/private/home/tv",function(){return l(17667)}])},39571:function(e,n,l){"use strict";var a=l(11527),t=l(84875),s=l.n(t),r=l(19414),i=l.n(r);function c(e){let n=function(e){switch(e){default:case"primary":return"btn-primary";case"secondary":return"btn-grey";case"basic":return"btn-basic";case"basic-white":return"btn-basic-white"}}(e.type),l=function(e){switch(e){default:case"normal":return;case"small":return"btn-sm";case"chip":return"btn-xs"}}(e.size),t=s()("btn",n,l,e.className,"button"===e.as&&e.active&&"active");switch(e.as){case"button":var r;return(0,a.jsx)("button",{type:null!==(r=e.role)&&void 0!==r?r:"button",disabled:e.disabled,"aria-pressed":e.active||void 0,className:t,style:e.style,onClick:e.onClick,children:e.children});case"Link":return(0,a.jsx)(i(),{href:e.href,as:e.linkAs,replace:e.replace,scroll:e.scroll,shallow:e.shallow,locale:e.locale,target:e.target,rel:e.rel,className:t,style:e.style,onClick:e.onClick,children:e.children});case"a":return(0,a.jsx)("a",{href:e.href,target:e.target,rel:e.rel,className:t,style:e.style,onClick:e.onClick,children:e.children})}}c.defaultProps={as:"button"},n.Z=c},51584:function(e,n,l){"use strict";var a=l(11527),t=l(65588),s=l(85545),r=l(84875),i=l.n(r),c=l(50959),o=l(33682),d=l.n(o);let u=c.forwardRef(function(e,n){let{id:l,type:t="text",state:s,sizing:r,addonStart:c,addonEnd:o,className:u,required:m,"aria-invalid":h="error"===s||void 0,...x}=e;return(0,a.jsx)("input",{type:t,ref:n,id:l,className:i()("form-control",{[d().start]:!!c,[d().end]:!!o,"form-control-xs":"chip"===r,"form-control-sm":"small"===r,"is-invalid":"error"===s,"is-valid":"success"===s},u),required:m,"aria-invalid":h,...x})}),m=c.forwardRef(function(e,n){let{id:l,showLabel:r,labelText:o,children:m,required:h,isRequired:x=h,addonStart:p,addonEnd:v,state:f,errorText:g,...b}=e,j=(0,c.useId)(),N=null!=l?l:j;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.l,{id:N,show:r,required:x||h,children:m||o}),p||v?(0,a.jsxs)("div",{className:"position-relative",children:[(0,a.jsx)(u,{ref:n,id:N,state:f,required:h,addonStart:p,addonEnd:v,...b}),p&&(0,a.jsx)("div",{className:i()(d().addon,d().start,"position-absolute top-50 translate-middle-y lh-1"),children:p}),v&&(0,a.jsx)("div",{className:i()(d().addon,d().end,"position-absolute top-50 translate-middle-y lh-1"),children:v})]}):(0,a.jsx)(u,{ref:n,id:N,state:f,required:h,addonStart:p,addonEnd:v,...b}),(0,a.jsx)(t.X,{children:"error"===f&&g})]})});n.Z=m},13090:function(e,n,l){"use strict";var a=l(11527),t=l(84875),s=l.n(t),r=l(50959);function i(e){var n,t;let i=(0,r.useRef)(null),c=(0,r.useRef)(null),o=null===(n=e.animation)||void 0===n||n,d=null===(t=e.centered)||void 0===t||t;(0,r.useEffect)(()=>{var e;if(null===i.current)return;let{Modal:n}=l(983);null!==(e=c.current)&&void 0!==e||(c.current=new n(i.current))},[]);let u=(0,r.useMemo)(()=>e.onHide,[e.onHide]);return(0,r.useEffect)(()=>{if(i.current&&void 0!=u){let e=i.current;return i.current.addEventListener("hidden.bs.modal",u),()=>{e.removeEventListener("hidden.bs.modal",u)}}},[u]),(0,r.useEffect)(()=>{c.current&&(e.show?c.current.show():c.current.hide())},[e.show]),(0,a.jsx)("div",{className:s()("modal",{fade:o}),ref:i,tabIndex:-1,style:"number"==typeof e.size?{"--bs-modal-width":"".concat(e.size,"px")}:void 0,children:(0,a.jsx)("div",{className:s()("modal-dialog",{"modal-dialog-centered":d,"modal-dialog-scrollable":e.scrollable,"modal-sm":"sm"===e.size,"modal-lg":"lg"===e.size,"modal-xl":"xl"===e.size},e.className),children:(0,a.jsx)("div",{className:"modal-content",children:e.children})})})}i.Header=function(e){let{children:n,className:l,...t}=e;return(0,a.jsx)("div",{className:s()("modal-header",l),...t,children:n})},i.Body=function(e){let{children:n,className:l,...t}=e;return(0,a.jsx)("div",{className:s()("modal-body",l),...t,children:n})},i.Footer=function(e){let{children:n,className:l,...t}=e;return(0,a.jsx)("div",{className:s()("modal-footer",l),...t,children:n})},i.Close=function(){return(0,a.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"})},n.Z=i},79955:function(e,n,l){"use strict";l.d(n,{Z:function(){return r}});var a=l(11527),t=l(45770),s=l(11415);function r(e){let{className:n,spaceBetween:l=0,breakpoints:r,children:i}=e,c=[i].flat();return c.length?(0,a.jsx)(s.tq,{className:n,modules:[t.tl,t.pt],autoplay:!0,loop:!0,spaceBetween:l,breakpoints:r,pagination:{enabled:!0,clickable:!0},children:c.map((e,n)=>(0,a.jsx)(s.o5,{className:"h-auto",children:e},n))}):null}},16499:function(e,n,l){"use strict";l.d(n,{pA:function(){return m}});var a=l(11527),t=l(84875),s=l.n(t),r=l(19414),i=l.n(r),c=l(50959),o=l(98583),d=l.n(o);let u=(0,c.createContext)({active:"",vertical:!1,overflow:!1,onSelect:()=>{}});function m(e){let{type:n="a",href:l,homeTv:t=!1,selectKey:r,preventDefault:o="a"===n,external:m,scroll:h,children:x}=e,{active:p,vertical:v,overflow:f,onSelect:g}=(0,c.useContext)(u),b=p===r;return(0,a.jsx)("li",{className:s()("nav-item",{[d().banded]:v&&b,"py-2":!v}),children:"Link"===n&&l?(0,a.jsx)(i(),{href:l,className:s()("nav-link",{active:b,"text-nowrap":f}),onClick:()=>{null==g||g(r)},target:m?"_blank":void 0,scroll:h,children:x}):(0,a.jsx)("a",{href:null!=l?l:"#",className:s()("nav-link",{active:b,"text-nowrap":f,[d()["home-tv"]]:t}),onClick:e=>{o&&e.preventDefault(),null==g||g(r)},target:m?"_blank":void 0,children:x})})}function h(e){let{vertical:n=!1,sizing:l="space-between",className:t="gap-12px px-12",children:r,selectedKey:i,overflow:o=!1,onSelect:d}=e,[m,h]=(0,c.useState)(i),x=(0,c.useCallback)(e=>{h(e),null==d||d(e)},[d]);return(0,a.jsx)("ul",{className:s()("nav nav-pills",{"nav-fill":"fill"===l,"nav-justified":"justified"===l,"justify-content-between":"space-between"===l,"flex-column":n,"flex-nowrap overflow-auto":o},t),children:(0,a.jsx)(u.Provider,{value:{active:m,vertical:n,overflow:o,onSelect:x},children:r})})}h.Item=m,n.ZP=h},65588:function(e,n,l){"use strict";l.d(n,{X:function(){return r}});var a=l(11527),t=l(84875),s=l.n(t);function r(e){let{alwaysShow:n,children:l}=e;return l?(0,a.jsx)("div",{role:"alert",className:s()(n&&"d-block","invali
1d-feedback"),children:l}):null}},85545:function(e,n,l){"use strict";l.d(n,{l:function(){return r}});var a=l(11527),t=l(84875),s=l.n(t);function r(e){let{id:n,show:l=!1,required:t=!1,children:r}=e;return r?(0,a.jsxs)("label",{className:s()("form-label",!l&&"visually-hidden"),htmlFor:n,children:[r,t&&(0,a.jsx)("span",{className:"text-danger",children:"*"})]}):null}},40655:function(e,n,l){"use strict";l.d(n,{Z:function(){return r}});var a=l(11527),t=l(84875),s=l.n(t);function r(e){let{id:n,title:l,className:t="mb-5 mb-lg-64px",variant:r="primary",spacing:i="mb-6",children:c}=e,o=s()({"text-primary":"primary"===r||"secondary"===r,"text-uppercase":"primary"===r},c?i:"mb-0");return(0,a.jsxs)("div",{id:n,className:s()("h6 mw-container-lg mx-auto text-center",t),children:[l&&("primary"===r?(0,a.jsx)("h2",{className:o,children:l}):(0,a.jsx)("h4",{className:o,children:l})),"string"==typeof c?(0,a.jsx)("p",{className:"mb-0",children:c}):c]})}},17667:function(e,n,l){"use strict";l.r(n),l.d(n,{__N_SSP:function(){return E},default:function(){return q}});var a=l(11527),t=l(39571),s=l(66896),r=l(44320),i=l(96532),c=l.n(i),o=l(50959),d=l(82988),u=l.n(d),m=l(4508),h=l.n(m),x=l(84875),p=l.n(x);function v(e){var n,l;return(0,a.jsx)("div",{className:p()((!e.height||!e.width)&&"".concat(h()["discount-image-container"]," overflow-hidden "),"card bg-secondary w-100"),children:e.height&&e.width?(0,a.jsx)(u(),{width:e.width,height:e.height,src:e.imgUrl,alt:null!==(n=e.description)&&void 0!==n?n:""}):(0,a.jsx)(u(),{className:"mw-100 object-fit-cover",fill:!0,src:e.imgUrl,alt:null!==(l=e.description)&&void 0!==l?l:"",sizes:"(max-width:768px) 100vw, (max-width:992px) 50vw, 33vw"})})}function f(e){return(0,a.jsxs)("div",{className:"card bg-secondary px-4 py-5 p-lg-56px",children:[(0,a.jsx)("h5",{className:"mb-4 mb-lg-5",children:e.title}),(0,a.jsx)("div",{className:"row row-cols-3 row-cols-lg-4 row-cols-xl-5 row-cols-xxl-6 g-3 g-lg-5",children:e.channelsData.map(n=>{var l;return(0,a.jsx)("div",{className:"col-auto",children:(0,a.jsx)("div",{className:p()("channel-card channel-clickable rounded d-flex p-2 p-lg-5",{"channel-selected":(null===(l=e.currentChannel)||void 0===l?void 0:l.name)===n.name}),role:"button",onClick:()=>e.onChannelClick&&e.onChannelClick(n),children:(0,a.jsx)("picture",{children:(0,a.jsx)("img",{className:"w-100",src:n.logo,alt:n.name,title:n.name})})})},n.name)})})]})}var g=l(51584),b=l(16499);function j(e){let[n,l]=(0,o.useState)(e.selectedCategoryIndex);return(0,a.jsxs)("div",{className:p()("d-block d-lg-flex gap-3",e.className),children:[(0,a.jsx)(b.ZP,{selectedKey:n,className:"flex-grow-1 flex-nowrap home-tv-channels overflow-auto gap-2 bg-secondary h-100 rounded px-12px mb-3 mb-lg-0",onSelect:function(n){"number"==typeof n&&(l(n),e.onPlanSelect&&e.onPlanSelect(n))},children:e.plans.map(e=>(0,a.jsx)(b.ZP.Item,{selectKey:e.id,homeTv:!0,children:null!=e.type&&null!=e.channelCount?"".concat(e.channelCount," ").concat(e.channelCount>1?"Canais":"Canal"," - ").concat(e.type):""},e.id))}),(0,a.jsx)("div",{className:"w-auto",children:(0,a.jsx)(g.Z,{placeholder:"Pesquisar",onChange:n=>{e.onSearchChange&&e.onSearchChange(n.currentTarget.value)}})})]})}function N(e){return e.normalize("NFD").replace(RegExp("\\p{Diacritic}","gu"),"")}var w=l(13090);function y(e){return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"d-flex flex-wrap",children:[e.channelData.logo&&(0,a.jsx)("div",{className:"col-auto card channel-card p-3 mb-12px p-lg-4",children:(0,a.jsx)("picture",{children:(0,a.jsx)("img",{className:"w-100",src:e.channelData.logo,alt:e.channelData.name})})}),(0,a.jsx)("button",{type:"button",className:"col-auto btn-close ms-auto order-lg-last","data-bs-dismiss":"modal","aria-label":"Close"}),(0,a.jsxs)("div",{className:"col-12 col-lg-auto ms-lg-12px py-12px me-lg-4 text-uppercase",children:[(0,a.jsx)("p",{className:"mb-2",children:e.channelData.name}),e.channelData.slot&&(0,a.jsxs)("p",{className:"mb-2",children:["Posi\xe7\xe3o: ",e.channelData.slot]}),e.channelData.category&&(0,a.jsxs)("p",{className:"mb-2",children:["Tem\xe1tica: ",e.channelData.category]}),e.channelData.language&&(0,a.jsxs)("p",{className:"m-0",children:["Idioma: ",e.channelData.language]})]})]}),e.channelData.description&&(0,a.jsx)("div",{className:"fs-5 mt-2 mt-lg-4",children:e.channelData.description})]})}
1let _=(e,n)=>{let l=e.reduce((e,l)=>{let a=n(l);return e[a]||(e[a]=[]),e[a].push(l),e},{}),a=Object.keys(l),t={};return a.forEach(e=>{t[e]=l[e]}),t};function C(e){let{children:n}=e;return(0,a.jsx)("div",{className:"card bg-secondary text-center text-grey-light p-56px",children:(0,a.jsx)("p",{className:"m-0 my-60px",children:n})})}function k(e){var n,l;let t=(0,o.useMemo)(()=>(function(e){var n,l;let a=e.reduce((e,n)=>(n.plans.forEach(n=>{e[n.id]?e[n.id].channelCount++:e[n.id]={...n,channelCount:1}}),e),{}),t=Object.values(a).sort((e,a)=>(null!==(n=e.sort)&&void 0!==n?n:e.id)-(null!==(l=a.sort)&&void 0!==l?l:a.id));return t})(e.channelsData),[e.channelsData]),[s,r]=(0,o.useState)(""),[i,c]=(0,o.useState)(null!==(l=null===(n=t[0])||void 0===n?void 0:n.id)&&void 0!==l?l:0),[d,u]=(0,o.useState)(null),m=e.channelsData.filter(e=>e.plans.some(e=>e.id===i)),h=s.length>0?m.filter(e=>{let n=N(e.name.toLowerCase()),l=N(s.toLowerCase()).trim();return n.includes(l)}):m,x=_(h,e=>e.category);return(0,a.jsxs)("div",{className:"channel-list pt-3 pt-lg-0",children:[(0,a.jsx)(w.Z,{show:null!==d,onHide:()=>u(null),children:null!==d&&(0,a.jsx)(y,{channelData:d})}),(0,a.jsx)(j,{className:"mb-5",plans:t,selectedCategoryIndex:i,onSearchChange:r,onPlanSelect:c}),(0,a.jsx)("div",{className:"d-flex flex-column gap-5",children:Object.keys(x).length?Object.keys(x).map(e=>(0,a.jsx)(f,{title:e,channelsData:x[e],currentChannel:d,onChannelClick:u},e)):(0,a.jsx)(C,{children:"N\xe3o existe nenhum canal que corresponda \xe0 descri\xe7\xe3o"})})]})}var D=l(79955),S=l(40655),P=l(60015);let Z={breakpoints:{798:{slidesPerView:2,slidesPerGroup:2},1024:{slidesPerView:3,slidesPerGroup:3}}};var E=!0;function q(e){var n,l,i,o,d;let{pageConfig:u,pageData:m,channels:h}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c(),{children:(0,a.jsx)("title",{children:"Unitel T+"})}),(0,a.jsxs)(r.Z,{...u,children:[(null==m?void 0:m.banner)&&(0,a.jsx)(s.Z,{top:m.banner.overline,bottom:(0,a.jsx)(P.Z,{children:m.banner.headline}),imageUrl:m.banner.img.src,imageAlt:m.banner.img.alt,imageSm:null!==(l=null===(n=m.banner.img_sm)||void 0===n?void 0:n.src)&&void 0!==l?l:void 0,imgPosition:null!==(i=m.banner.img_position)&&void 0!==i?i:void 0,imgSmPosition:null!==(o=m.banner.img_sm_position)&&void 0!==o?o:void 0}),(0,a.jsxs)("section",{className:"container my-7 my-lg-144px",children:[m.translations.slogan&&(0,a.jsx)("h2",{className:"text-center text-grey mb-64px",children:m.translations.slogan}),(0,a.jsx)(S.Z,{title:m.translations.highlights_headline,spacing:"mb-12px mb-lg-3",children:(0,a.jsx)(P.Z,{children:m.translations.highlights_content})}),(0,a.jsx)(D.Z,{className:"slider-gap-32px mt-lg-72px",breakpoints:Z.breakpoints,spaceBetween:32,children:m.highlights.map(e=>{let{card:n}=e;return(0,a.jsx)(v,{imgUrl:n.img.src},n.id)})})]}),(0,a.jsxs)("section",{className:"container mt-64px mb-7 my-lg-144px",children:[(0,a.jsxs)(S.Z,{title:m.translations.grid_headline,spacing:"mb-3",children:[(0,a.jsx)(P.Z,{children:m.translations.grid_content}),m.translations.grid_link&&(0,a.jsx)(t.Z,{as:"a",href:m.translations.grid_link,target:"_blank",className:"mt-4",children:null!==(d=m.translations.grid_label)&&void 0!==d?d:"Saber+"})]}),(0,a.jsx)(k,{channelsData:h})]})]})]})}},4508:function(e){e.exports={"discount-image-container":"style_discount-image-container__0G0wu"}},33682:function(e){e.exports={addon:"style_addon__f4Lb_",start:"style_start__8w2Fq",end:"style_end__oeDmr"}},98583:function(e){e.exports={banded:"style_banded__W_lYP","home-tv":"style_home-tv__YD79q"}}},function(e){e.O(0,[1362,4239,983,8990,5970,9774,2888,179],function(){return e(e.s=65541)}),_N_E=e.O()}]);

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.