1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[605],{20640:function(e,n,r){"use strict";var t=r(11742),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var r,o,i,s,l,c,d,u,x=!1;n||(n={}),i=n.debug||!1;try{if(l=t(),c=document.createRange(),d=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(r){if(r.stopPropagation(),n.format){if(r.preventDefault(),void 0===r.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var t=a[n.format]||a.default;window.clipboardData.setData(t,e)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,e)}n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))}),document.body.appendChild(u),c.selectNodeContents(u),d.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");x=!0}catch(h){i&&console.error("unable to copy using execCommand: ",h),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),x=!0}catch(p){i&&console.error("unable to copy using clipboardData: ",p),i&&console.error("falling back to prompt"),r="message"in n?n.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,o),window.prompt(s,e)}}finally{d&&("function"==typeof d.removeRange?d.removeRange(c):d.removeAllRanges()),u&&document.body.removeChild(u),l()}return x}},54133:function(e,n,r){"use strict";r.d(n,{PO:function(){return J},VM:function(){return b},Cj:function(){return Q},Fq:function(){return $}});var t=r(41799),a=r(69396),o=r(828),i=r(85893),s=r(4453),l=r(23100),c=r(36979),d=r(76684),u=r(14418),x=r(88911),p=r(29222),h=r(56877),g=r(11163),f=r(67294),m=r(89583),y=r(75424),j=r(33206),v=r(33901),b=function(e){var n=(0,g.useRouter)(),r=j.VC.CdnURL;(0,o.Z)((0,s.a)(["(min-width: 320px)"]),1)[0];var b=e.id,w=e.banner,k=e.channel,_=e.title,S=e.avatar,z=e.description,D=e.parental_rating,L=e.parental_description,R=null!=w?w:null==k?void 0:k.banner,U=null!=S?S:null==k?void 0:k.avatar,T=(0,f.useCallback)(function(){n.push({pathname:"/[business]/video/[id]/watch",query:(0,a.Z)((0,t.Z)({},n.query),{id:b})})},[b,n]);return R||U?(0,i.jsx)(l.xu,{position:"relative",sx:(0,t.Z)({background:"url(".concat(r).concat(R,")")},C.backgroundOver),children:(0,i.jsxs)(c.W,{as:d.K,maxW:"6xl",spacing:1,py:20,children:[(0,i.jsx)(l.xu,{children:(0,i.jsx)(v.oH,{width:240,height:240,alt:"avatar",loading:"lazy",placeholder:"blur",blurDataURL:r+U,src:U})}),(0,i.jsx)(y.nw,{parental:null!=D?D:"",ratings:L}),(0,i.jsxs)(l.xu,{py:4,zIndex:1,children:[(0,i.jsx)(u.X,{color:"white",children:_}),z&&(0,i.jsx)(x.x,{color:"gray.300",sx:{width:{lg:"50%",md:"60%"}},dangerouslySetInnerHTML:{__html:z}})]}),(0,i.jsx)(d.K,{direction:"row",spacing:2,children:(0,i.jsx)(p.z,{size:"lg",leftIcon:(0,i.jsx)(h.J,{as:m.gmG}),onClick:T,variant:"solid",children:"Assistir"})})]})}):(0,i.jsx)(l.xu,{})},C={backgroundOver:{backgroundPosition:"top right",backgroundSize:"cover",backgroundRepeat:"no-repeat",minHeight:"50vh","&::before":{content:'""',display:"block",position:"absolute",width:"calc(100% + 1px)",height:"calc(100% + 1px)",backgroundImage:"linear-gradient(180deg,rgba(31,31,31,0) 35%,#101727),linear-gradient(180deg,rgba(0,0,0,.5) 5%,transparent 20%),linear-gradient(270deg,transparent 30%,#101727 80%)"}}},w=r(54641),k=r(97822),_=r(39849),S=r(55227),z=r(92495),D=r(35059),L=r(91639),R=r(33179),U=r(51337),[T,W]=(0,S.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),I=(0,D.G)(function(e,n){let r=(0,L.jC)("List",e),{children:t,styleType:a="none",stylePosition:o,spacing:s,...l}=(0,R.Lr)(e),c=(0,z.W)(t);return(0,i.jsx)(T,{value:r,children:(0,i.jsx)(U.m.ul,{ref:n,listStyleType:a,listStylePosition:o,role:"list",__css:{...r.container,...s?{"& > *:not(style) ~ *:not(style)":{mt:s}}:{}},...l,children:c})})});I.displayName="List",(0,D.G)((e,n)=>{let{as:r,...t}=e;return(0,i.jsx)(I,{ref:n,as:"ol",styleType:"decimal",marginStart:"1em",...t})}).displayName="OrderedList",(0,D.G)(function(e,n){let{as:r,...t}=e;return(0,i.jsx)(I,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...t})}).displayName="UnorderedList";var N=(0,D.G)(function(e,n){let r=W();return(0,i.jsx)(U.m.li,{ref:n,...e,__css:r.item})});N.displayName="ListItem",(0,D.G)(function(e,n){let r=W();return(0,i.jsx)(h.J,{ref:n,role:"presentation",...e,__css:r.icon})}).displayName="ListIcon";var E=r(41689),M=r(30518),Z=r(20640),H=r.n(Z),A=r(84956),q=function(e){void 0===e&&(e={});var n=(0,f.useState)(e),r=n[0],t=n[1];return[r,(0,f.useCallback)(function(e){t(function(n){return Object.assign({},n,e instanceof Function?e(n):e)})},[])]},P=function(){var e,n=(0,A.Z)(),r=q({value:void 0,error:void 0,noUserInteraction:!0}),t=r[0],a=r[1];
1return[t,(0,f.useCallback)(function(e){if(n())try{if("string"!=typeof e&&"number"!=typeof e){var r,t,o=Error("Cannot copy typeof "+typeof e+" to clipboard, must be a string");a({value:e,error:o,noUserInteraction:!0});return}if(""===e){var o=Error("Cannot copy empty string to clipboard.");a({value:e,error:o,noUserInteraction:!0});return}t=e.toString(),r=H()(t),a({value:t,error:void 0,noUserInteraction:r})}catch(i){a({value:t,error:i,noUserInteraction:r})}},[])]},O=function(e,n){var r,t=(r=(0,f.useRef)(!0)).current?(r.current=!1,!0):r.current;(0,f.useEffect)(function(){if(!t)return e()},n)},G=r(5434),K=r(86501),J=function(e){var n=(0,g.useRouter)(),r=(0,o.Z)(P(),2),t=r[0],a=r[1],s=e.title,m=e.category,j=e.channel,v=e.payload,b=e.description,C=e.video_date,S=e.parental_description,z=e.parental_rating;O(function(){t.error?K.ZP.error("Ops! falha ao copiar."):K.ZP.success("Link copiado!")},[t]);var D=(0,f.useCallback)(function(){a(window.location.href)},[n]);return(0,i.jsx)(l.xu,{position:"relative",children:(0,i.jsxs)(c.W,{as:d.K,maxW:"6xl",spacing:1,children:[(0,i.jsxs)(w.U,{spacing:4,py:10,children:[(0,i.jsx)(k.i,{borderColor:"gray.700"}),(0,i.jsx)(u.X,{size:"md",color:"gray.500",children:"Detalhes"}),(0,i.jsx)(k.i,{borderColor:"gray.700"})]}),(0,i.jsxs)(_.M,{columns:{sm:2,md:3},children:[(0,i.jsxs)(I,{spacing:3,color:"gray.400",children:[(0,i.jsxs)(N,{children:[(0,i.jsx)(x.x,{children:"Data"}),(0,i.jsx)(E.C,{variant:"outline",p:2,fontSize:"sm",borderRadius:6,fontWeight:"bold",color:"gray.200",children:(0,M.AH)(C)})]}),(0,i.jsxs)(N,{children:[(0,i.jsx)(x.x,{children:"T\xedtulo"}),(0,i.jsx)(x.x,{fontWeight:"bold",color:"gray.200",children:s})]}),b&&(0,i.jsxs)(N,{children:[(0,i.jsx)(x.x,{children:"Descri\xe7\xe3o"}),(0,i.jsx)(x.x,{fontWeight:"500",color:"gray.200",dangerouslySetInnerHTML:{__html:"".concat(b)}})]}),(0,i.jsxs)(N,{mb:4,children:[(0,i.jsx)(x.x,{children:"Classifica\xe7\xe3o"}),(0,i.jsx)(y.nw,{size:"sm",variant:"outline",parental:String(z),ratings:S})]})]}),(0,i.jsxs)(I,{spacing:3,color:"gray.400",children:[(0,i.jsxs)(N,{children:[(0,i.jsx)(x.x,{children:"Categoria"}),(0,i.jsx)(x.x,{fontWeight:"bold",textTransform:"capitalize",color:"gray.200",children:String(null==m?void 0:m.name).toLowerCase()})]}),(0,i.jsxs)(N,{children:[(0,i.jsx)(x.x,{children:"Programa"}),(0,i.jsx)(x.x,{fontWeight:"bold",textTransform:"capitalize",color:"gray.200",children:String(null==j?void 0:j.name).toLowerCase()})]}),(0,i.jsxs)(N,{children:[(0,i.jsx)(x.x,{children:"Tempo"}),(0,i.jsx)(x.x,{fontWeight:"bold",color:"gray.200",children:(0,M.sg)(null==v?void 0:v.length)})]})]}),(0,i.jsx)(I,{spacing:3,color:"gray.400",children:(0,i.jsxs)(N,{children:[(0,i.jsx)(x.x,{children:"Compartilhar"}),(0,i.jsx)(p.z,{mt:2,size:"sm",leftIcon:(0,i.jsx)(h.J,{as:G.KQY,fontSize:24}),variant:"outline",colorScheme:"green",onClick:D,children:"Copiar Link"})]})})]})]})})},V=r(33838),X=r(7754),Y=r(62861),F=function(e){var n=j.VC.CdnURL,r=(0,g.useRouter)(),o=e.id,s=e.title,c=e.description,d=e.payload_id;return(0,i.jsx)(v.pt,{href:{pathname:"/[business]/video/[id]",query:(0,a.Z)((0,t.Z)({},r.query),{id:o})},passHref:!0,children:(0,i.jsxs)(l.xu,{children:[(0,i.jsxs)(l.xu,{as:V.r,className:"link-border",children:[(0,i.jsx)(X.M,{className:"overlay",children:(0,i.jsx)(h.J,{as:G.Nhx,fontSize:48,color:"pink.500"})}),(0,i.jsx)(v.oH,{unoptimized:!0,width:272,height:180,alt:s,loading:"lazy",placeholder:"blur",blurDataURL:"".concat(n,"/").concat(d,"/thumbnail.jpg"),src:"".concat(n,"/").concat(d,"/thumbnail.jpg")})]}),(0,i.jsx)(w.U,{spacing:4,children:(0,i.jsxs)(l.xu,{py:4,children:[(0,i.jsx)(x.x,{fontSize:12,color:"gray.200",children:s}),(0,i.jsx)(x.x,{color:"gray.100",fontWeight:"bold",textTransform:"capitalize",dangerouslySetInnerHTML:{__html:"".concat(null!=c?c:"")}})]})})]})})},Q=function(e){var n=(0,f.useState)(null),r=n[0],a=n[1];return((0,Y.aw)({id:e.channel_id,videoWhere:{id:{_neq:e.id}}},{onSuccess:function(e){if(null==e?void 0:e.channel_by_pk){var n;a(null===(n=e.channel_by_pk)||void 0===n?void 0:n.videos)}}}),r)?(0,i.jsx)(f.Fragment,{children:(0,i.jsx)(l.xu,{background:"dark",py:10,children:(0,i.jsxs)(d.K,{as:c.W,maxW:"6xl",spacing:10,children:[(0,i.jsx)(u.X,{color:"gray.400",textTransform:"capitalize",children:"Recomendado"}),(0,i.jsx)(_.M,{columns:[2,3,3,4],spacing:4,children:null==r?void 0:r.map(function(e,n){return(0,i.jsx)(F,(0,t.Z)({},e),n)})})]})})}):(0,i.jsx)(y.l3,{})},B=function(e){var n=j.VC.CdnURL,r=(0,g.useRouter)(),o=e.id,s=e.title,c=e.description,d=e.payload_id;return(0,i.jsx)(v.pt,{href:{pathname:"/[business]/video/[id]/watch",query:(0,a.Z)((0,t.Z)({},r.query),{id:o})},passHref:!0,children:(0,i.jsxs)(l.xu,{children:[(0,i.jsxs)(l.xu,{as:V.r,className:"link-border",children:[(0,i.jsx)(X.M,{className:"overlay",children:(0,i.jsx)(h.J,{as:G.Nhx,fontSize:48,color:"pink.500"})}),(0,i.jsx)(v.oH,{unoptimized:!0,width:272,height:180,alt:s,loading:"lazy",placeholder:"blur",blurDataURL:"".concat(n,"/").concat(d,"/thumbnail.jpg"),src:"".concat(n,"/").concat(d,"/thumbnail.jpg")})]}),(0,i.jsx)(w.U,{spacing:4,children:(0,i.jsxs)(l.xu,{py:4,children:[(0,i.jsx)(x.x,{fontSize:12,color:"gray.200",children:s}),(0,i.jsx)(x.x,{color:"gray.100",fontWeight:"bold",textTransform:"capitalize",dangerouslySetInnerHTML:{__html:"".concat(null!=c?c:"")}})]})})]})})},$=function(e){var n=(0,f.useState)(null),r=n[0],a=n[1];return((0,Y.aw)({id:e.channel_id,videoWhere:{id:{_neq:e.id}}},{onSuccess:function(e){if(null==e?void 0:e.channel_by_pk){var n;a(null===(n=e.channel_by_pk)||void 0===n?void 0:n.videos)}}}),r)?(0,i.jsx)(f.Fragment,{children:(0,i.jsx)(l.xu,{background:"dark",py:10,children:(0,i.jsxs)(d.K,{as:c.W,maxW:"6xl",spacing:10,children:[(0,i.jsx)(u.X,{color:"gray.400",textTransform:"capitalize",children:"Outros V\xeddeos"}),(0,i.jsx)(_.M,{columns:[2,3,3,4],spacing:4,children:null==r?void 0:r.map(function(e,n){return(0,i.jsx)(B,(0,t.Z)({},e),n)})})]})})}):(0,i.jsx)(y.l3,{})}},30518:function(e,n,r){"use strict";r.d(n,{AH:function(){return d},sg:function(){return u}}),r(58267),r(1630),r(57971),r(19123);var t,a=r(30381),o=r.n(a),i=r(86455),s=r.n(i),l=r(77630),c=r.n(l);o().locale("pt-br"),c()(s());var d=function(e,n){return o()(e).format(null!==(t=null==n?void 0:n.format)&&void 0!==t?t:"DD/MM/YYYY")},u=function(e){var n=o().duration(e,"seconds"),r=n.hours(),t=n.minutes(),a=n.seconds(),i=[];return r>0&&i.push(r+(1===r?"h":"hs")),t>0&&i.push("".concat(t,"min")),a>0&&i.push("".concat(a,"s")),i.join(" ")}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,r=[],t=0;t<e.rangeCount;t++)r.push(e.getRangeAt(t));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(n){e.addRange(n)}),n&&n.focus()}}},12482:function(){}}]);
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.