1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7707],{11658:function(e,i,o){var t,a,r,s,l=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.ELivroMaterialCatalogoTipoMaterial=i.EIdTipoLivroCatalogo=void 0;let n=l(o(81951)),c=l(o(14551)),d=l(o(10101)),u=l(o(5408));class h extends u.default{_materiallabel(){this.livroMaterialCatalogo&&d.default(this.livroMaterialCatalogo,e=>{e.tipoMaterial==s.Professor?e.tipoMaterialLabel="Projetos de leitura":e.tipoMaterial==s.Familia&&(e.tipoMaterialLabel="Leitura em fam\xedlia")})}ehDidatico(){return this.idTipoLivroCatalogo===r.Didatico}ehParadidatico(){return this.idTipoLivroCatalogo===r.Paradidatico}ehDicionario(){return this.idTipoLivroCatalogo===r.Dicionario}getApresentacaoObra(){var e,i,o;let t="";return this.ehDidatico()?this.apresentacaoObra&&!c.default(this.apresentacaoObra)?t=this.apresentacaoObra:(null===(e=this.colecao)||void 0===e?void 0:e.descricaoHtml)&&(t=null===(i=this.colecao)||void 0===i?void 0:i.descricaoHtml):t=null!==(o=this.apresentacaoObra)&&void 0!==o?o:"",t}getLabelAutor(){var e;let i="";return console.log(n.default(this.autores)),this.autores&&this.autores[0].ehObraColetiva&&1==n.default(this.autores)?i=null!==(e=this.autores[0].nome)&&void 0!==e?e:"":n.default(this.autores)>1?i="Sobre os autores":1==n.default(this.autores)&&(i="Sobre o autor"),i}getDescricaoRelease(){return this.descricaoRelease&&!c.default(this.descricaoRelease)?this.descricaoRelease:this.getApresentacaoObra()}getCapaGrandeURL(){var e;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return encodeURI((null===(e=this.imagemCapaGrande)||void 0===e?void 0:e.href)||i)}getCapaPequenaURL(){var e;return encodeURI((null===(e=this.imagemCapaPequena)||void 0===e?void 0:e.href)||"")}getCapaPequenaOuGrandeURL(){var e,i,o;return encodeURI((null===(e=this.imagemCapaPequena)||void 0===e?void 0:e.href)||(null!==(o=null===(i=this.imagemCapaGrande)||void 0===i?void 0:i.href)&&void 0!==o?o:""))}getLabelTipo(){return this.ehDidatico()?"Did\xe1ticos":this.ehParadidatico()?"Literatura":this.ehDicionario()?"Dicion\xe1rios":""}getFrontUrl(){return this.ehDidatico()?"/didaticos/livro/"+this.slugfy():this.ehParadidatico()?"/literatura/livro/"+this.slugfy():this.ehDicionario()?"/dicionarios/livro/"+this.slugfy():"/livro/"+this.slugfy()}getFrontUrlRelease(){return this.ehDidatico()?"/didaticos/livro/release/"+this.slugfy():this.ehParadidatico()?"/literatura/livro/release/"+this.slugfy():this.ehDicionario()?"/dicionarios/livro/release/"+this.slugfy():"/livro/release/"+this.slugfy()}slugfy(){return this.slugAmigavel}constructor(e){super(),this.idLivroCatalogo="",this.titulo="",this.subtitulo="",this.slugAmigavel="",e&&(this._json2this(e),this._materiallabel())}}i.default=h,(t=r=i.EIdTipoLivroCatalogo||(i.EIdTipoLivroCatalogo={})).Didatico="5B3F9DD407D34901B106E5C4B75A15A1",t.Paradidatico="77C55C0DDAD54DC39D77B945BD7FAF8E",t.Dicionario="4ADBF31E00CA46E9933609FFD0C86C21",(a=s=i.ELivroMaterialCatalogoTipoMaterial||(i.ELivroMaterialCatalogoTipoMaterial={}))[a.Professor=0]="Professor",a[a.Familia=1]="Familia"},5408:function(e,i,o){var t;Object.defineProperty(i,"__esModule",{value:!0});let a=(t=o(40284))&&t.__esModule?t:{default:t};class r{_json2this(e){a.default.assign(this,e)}constructor(){}}i.default=r},88122:function(e,i,o){o.d(i,{U:function(){return r}}),o(85893),o(56859),o(45084),o(20306),o(34759),o(30488),o(78742);var t=o(67294);let a=new(o(27172)).Z,r=t.createContext(a);window.appContexto=a},77707:function(e,i,o){o.r(i),o.d(i,{__N_SSP:function(){return v},default:function(){return g}});var t=o(85893),a=o(67294),r=o(96486),s=o.n(r),l=o(88122),n=o(14008),c=o(67245),d=o(67926),u=o(11658),h=o(53400),m=o(47041),v=!0;function g(e){var i,o,r,v,g;if(e.erro&&console.error("Erro ao carregar conte\xfado do backend => ",e.erro),!e.conteudo)return(0,t.jsx)(n.Z,{});a.useContext(l.U).setMenuActive("didaticos");let f=new u.default(e.conteudo),x=[];s().forEach(f.autores,(e,i)=>{x.push(e.nome||"")});let j=[];return s().forEach(f.datasComemorativas,(e,i)=>{j.push(e.dataComemorativa||"")}),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{id:"livroDetalhes
1Release",children:(0,t.jsxs)(m.Z,{children:[(0,t.jsxs)("div",{className:"col-12",children:[(0,t.jsx)("div",{className:"gerarRelease",children:(0,t.jsx)("a",{href:"#",target:"_blank",onClick:()=>window.print(),rel:"noopener noreferrer",children:"Gerar arquivo de release"})}),(null===(i=f.selo)||void 0===i?void 0:i.imagem)?(0,t.jsx)("div",{className:"seloRelease",children:(0,t.jsx)("img",{src:null===(o=f.selo)||void 0===o?void 0:o.imagem.href,alt:""})}):""]}),(0,t.jsxs)("div",{className:"col-12 col-sm-6 descLivro",children:[(0,t.jsx)("div",{className:"capaRelease",children:(0,t.jsx)("img",{src:null===(r=f.imagemCapaGrande)||void 0===r?void 0:r.href,alt:""})}),(0,t.jsxs)("div",{className:"descricao",children:[(0,t.jsx)("h2",{children:f.titulo}),x.length>0?(0,t.jsxs)("p",{children:["de ",s().join(x,", ")]}):"",f.isbn?(0,t.jsxs)(d.ZP,{estilo:d.$c.Padrao,children:[(0,t.jsx)("strong",{children:"ISBN:"})," ",f.isbn]}):"",f.codProduto?(0,t.jsxs)(d.ZP,{estilo:d.$c.Padrao,children:[(0,t.jsx)("strong",{children:"C\xf3digo do produto:"})," ",f.codProduto]}):"",(null===(v=f.formatoCatalogo)||void 0===v?void 0:v.nome)?(0,t.jsxs)(d.ZP,{estilo:d.$c.Padrao,children:[(0,t.jsx)("strong",{children:"Formato"})," ",null===(g=f.formatoCatalogo)||void 0===g?void 0:g.nome]}):"",f.dimensoes?(0,t.jsxs)(d.ZP,{estilo:d.$c.Padrao,children:[(0,t.jsx)("strong",{children:"Dimens\xf5es do produto"})," ",f.dimensoes]}):"",f.qtdPagina?(0,t.jsxs)(d.ZP,{estilo:d.$c.Padrao,children:[(0,t.jsx)("strong",{children:"N\xfamero de p\xe1ginas"})," ",f.qtdPagina]}):"",f.datasComemorativas?(0,t.jsxs)(d.ZP,{estilo:d.$c.Padrao,children:[(0,t.jsxs)("strong",{children:[" ",f.datasComemorativas.length>1?"Datas comemorativas":"Data comemorativa"]})," ",s().join(j,", ")]}):""]})]}),(0,t.jsxs)("div",{className:"col-12 col-sm-6 previaLivro",children:[(0,t.jsx)(h.Z,{livro:f}),(0,t.jsx)(c.Z,{autores:f.autores})]})]})})})}},14194:function(e,i,o){o(67294),i.Z=e=>{let i=e.condition||!1,o=e.children;return!!i&&o}},58280:function(e,i,o){o.d(i,{I:function(){return a}});var t,a,r=o(85893);o(67294),(t=a||(a={}))[t.h1=0]="h1",t[t.h2=1]="h2",t[t.h3=2]="h3",t[t.h4=3]="h4",t[t.h5=4]="h5",t[t.h6=5]="h6",i.Z=e=>[(0,r.jsx)("h1",{children:e.ele}),(0,r.jsx)("h2",{children:e.ele}),(0,r.jsx)("h3",{children:e.ele}),(0,r.jsx)("h4",{children:e.ele}),(0,r.jsx)("h5",{children:e.ele}),(0,r.jsx)("h6",{children:e.ele})][e.tag]},67926:function(e,i,o){o.d(i,{$c:function(){return r},q0:function(){return s}});var t,a,r,s,l=o(85893);o(67294);var n=o(86010);i.ZP=e=>(0,l.jsx)("p",{className:(0,n.Z)("CCorpo",e.estilo?e.estilo:"Padrao",e.alinhamento?e.alinhamento:"Esquerda"),children:e.children}),(t=r||(r={})).Padrao="Padrao",t.Branco="Branco",(a=s||(s={})).Centro="Centro",a.Esquerda="Esquerda",a.DireitaCenter="DireitaCenter"},67541:function(e,i,o){o.d(i,{$c:function(){return r},oq:function(){return s}});var t,a,r,s,l=o(85893);o(67294);var n=o(86010),c=o(58280);i.ZP=e=>(0,l.jsxs)("div",{className:(0,n.Z)("CTituloSubtitulo",e.estilo?e.estilo:"Padrao",e.alinhamento?e.alinhamento:"Centro"),children:[(0,l.jsx)("div",{className:"CTituloSubtitulo_Titulo",children:(0,l.jsx)(c.Z,{tag:e.titulo.tipo||c.I.h1,ele:e.titulo.texto})}),e.subtitulo?(0,l.jsx)("div",{className:"CTituloSubtitulo_Subtitulo",children:(0,l.jsx)(c.Z,{tag:e.subtitulo.tipo||c.I.h2,ele:e.subtitulo.texto})}):null]}),(t=r||(r={})).Padrao="Padrao",t.Branco="Branco",t.RosaBranco="RosaBranco",t.AzulClaroEscuro="AzulClaroEscuro",t.BegeVerde="BegeVerde",t.AmareloBranco="AmareloBranco",t.RosaAmareloBranco="RosaAmareloBranco",(a=s||(s={})).Centro="Centro",a.Esquerda="Esquerda",a.Direita="Direita"},14008:function(e,i,o){var t=o(85893);o(67294),i.Z=()=>(0,t.jsx)(t.Fragment,{children:"404 - N\xe3o encontrado"})},67245:function(e,i,o){o.d(i,{Z:function(){return u}});var t=o(85893);o(67294);var a=o(58280),r=o(67541),s=o(14194),l=o(96486),n=o.n(l),c=o(47041);let d="";function u(e){return!n().isEmpty(e.autores)&&e.autores.length>1?d="Sobre os autores":n().isEmpty(e.autores)||1!=e.autores.length||(d="Sobre o autor"),e.autores.length>0?(0,t.jsx)("section",{id:"CCSobreAutores",children:(0,t.jsx)(c.Z,{children:(0,t.jsx)("div",{className:"wrapSobreAutores",children:e.autores&&e.autores.map((e,i)=>e.ehObraColetiva?(0,t.jsx)(h,{autor:e,obraColetiva:e.ehObraColetiva},"Obracoletiva_"+i):(0,t.jsxs)("div",{children:[0==i?(0,t.jsx)("div",{className:"cabecalho col-12",children:(0,t.jsx)(r.ZP,{titulo:{texto:(0,t.jsx)(t.Fragment,{children:d}),tipo:a.I.h2},estilo:r.$c.Padrao,alinhamento:r.oq.Esquerda})}):(0,t.jsx)("div",{},"cabecalho_"+i),(0,t.jsx)(h,{autor:e})]},"Autores_"+i))})})}):(0,t.jsx)(t.Fragment,{})}function h(e){var i,o;return(0,t.jsxs)(t.Fragment,{children:[e.obraColetiva?(0,t.jsx)("div",{className:"cabecalho col-12",children:(0,t.jsx)(r.ZP,{titulo:{texto:(0,t.jsx)(t.Fragment,{children:e.autor.nome}),tipo:a.I.h2},estilo:r.$c.Padrao,alinhamento:r.oq.Esquerda})}):"",(0,t.jsxs)("div",{className:"sobreAutores-descricao d-flex",children:[(0,t.jsx)(s.Z,{condition:!n().isEmpty(e.autor.imagem),children:(0,t.jsx)("div",{className:"descricao-wrapper-img col-12 col-lg-1",children:(0,t.jsx)("img",{src:null===(i=e.autor.imagem)||void 0===i?void 0:i.href,alt:null===(o=e.autor.imagem)||void 0===o?void 0:o.imageTitle})})}),(0,t.jsxs)("div",{className:"descricao-wrapper col-12 col-lg-11",children:[e.autor.ehObraColetiva?"":(0,t.jsx)("h3",{children:e.autor.nome}),e.autor.miniBiografia?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(v,{c
1onteudo:e.autor.miniBiografia})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(m,{conteudo:e.autor.miniBiografiaHTML?e.autor.miniBiografiaHTML:""})})]})]})]})}function m(e){let i=e.conteudo||"";return(i.match(/ /g)&&(i=i.replace(/ /g," ")),""!=i&&"<p></p>"!=i)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"CCorpo Padrao",dangerouslySetInnerHTML:{__html:i}})}):(0,t.jsx)(t.Fragment,{})}function v(e){var i;let o;let a=(o=(i=e.conteudo)||"").match(/ /g)?o.replace(/ /g," "):i;return""!=a&&" "!=a?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("p",{className:"CCorpo Padrao",dangerouslySetInnerHTML:{__html:a}})}):(0,t.jsx)(t.Fragment,{})}},53400:function(e,i,o){o.d(i,{Z:function(){return l}});var t=o(85893);o(67294);var a=o(47041),r=o(67541),s=o(58280);function l(e){return(0,t.jsx)("section",{id:"CCSobreOLivro",children:(0,t.jsx)(a.Z,{children:(0,t.jsxs)("div",{className:"wrapSobreOLivro",children:[(0,t.jsxs)("div",{id:"sobreOLivro",className:"col-12",children:[(0,t.jsx)("div",{className:"cabecalho",children:(0,t.jsx)(r.ZP,{titulo:{texto:(0,t.jsx)(t.Fragment,{children:"Sobre o livro"}),tipo:s.I.h2},estilo:r.$c.Padrao,alinhamento:r.oq.Esquerda})}),(0,t.jsx)("div",{className:"CCorpo Padrao Esquerda",dangerouslySetInnerHTML:{__html:e.livro.apresentacaoObra||""}})]}),e.premios?(0,t.jsxs)("div",{id:"premiosOLivro",className:"col-12",children:[e.livro.tituloPremio&&(0,t.jsx)("div",{className:"cabecalho",children:(0,t.jsx)(r.ZP,{titulo:{texto:(0,t.jsx)(t.Fragment,{children:e.livro.tituloPremio}),tipo:s.I.h3},estilo:r.$c.Padrao,alinhamento:r.oq.Esquerda})}),(0,t.jsx)("div",{className:"CCorpo Padrao Esquerda",dangerouslySetInnerHTML:{__html:e.livro.descricaoPremio||""}})]}):""]})})})}},27172:function(e,i,o){o.d(i,{Z:function(){return c}});var t,a=o(78742),r=o(89814),s=o(84532),l=o(82647);let n=a.Z.DEBUG;(t||(t={})).MenuActiveSlug="MenuActiveSlug";class c{log(e){n&&console.log(e)}static IsHomol(){return!!window.location.href.includes("homol.moderna")}setMenuActive(e){this._menuActiveSlug=e,s.Z.Criar(s.k.MenuActive_onChange,e)}getMenuActive(){return this._menuActiveSlug}static sanitizeDescription(e,i){let o=(0,l.htmlToText)(e);return i&&o.length>i?o.substring(0,i)+"...":o}static mountPageURL(e){return a.Z.FrontEnd.BaseURLDomain+e}static scroll2(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:150,o=document.getElementById(e);if(o){let e=window.scrollY+o.getBoundingClientRect().top-i;window.scroll({top:e,behavior:"smooth"}),o.focus()}}constructor(){this._storage=void 0,this._menuActiveSlug="",this.appConfig=a.Z,this.EventosHub=s.Z,this.usuario=null,this._storage=window.localStorage,this.usuario=new r.Z(window.document)}}},84532:function(e,i,o){o.d(i,{Z:function(){return r},k:function(){return t}});var t,a=o(87072);(t||(t={})).MenuActive_onChange="MenuActive_onChange";class r{static Criar(e,i){a.Xb.dispatch(e,{event:e,data:i})}static Escutar(e,i){a.Xb.listen(e,i)}}},89814:function(e,i,o){o.d(i,{Z:function(){return n}});var t=o(96486),a=o(78742),r=o(45084),s=o(86339),l=o(20306);class n extends s.Z{atualizar(){return this._lerCookies(),this}async getAvatar(){if(""!==this.AvatarURL.trim())return this.AvatarURL;let e=n.AVATAR_DEFAULT;if(this.ehLogado()){let i=await this.httpGet(a.Z.APIG.USUARIO,{lumSessionId:this.SessionId,lumUserId:this.Id});if(i.data.data){let o=i.data.data;o.fotoPerfilUrl&&""!==o.fotoPerfilUrl&&(e=o.fotoPerfilUrl,this.AvatarURL=e)}}return e}ehLogado(){return""!==this.Login}_lerCookies(){let e=this.cookie.get("lumUserId");""!=e.trim()&&(this.Id=e);let i=this.cookie.get("lumUserSessionId");""!=i.trim()&&(this.SessionId=i);let o=this.cookie.get("lumUserLogin");""!=o.trim()&&"guest"!=o&&(this.Login=o);let a=decodeURIComponent(this.cookie.get("lumUserName"));""!=a.trim()&&"Guest"!=o&&(this.Nome=a.split("+")[0],this.NomeComLimite=this.Nome,this.NomeComLimite=t.truncate(this.NomeComLimite,{length:25}));let r=decodeURIComponent(this.cookie.get("lumUserEmail"));""!=r.trim()&&(this.Email=r)}constructor(e){super(),this.NomeComLimite="",this.Nome="",this.Email="",this.Login="",this.AvatarURL="",this.Id="",this.SessionId="",this.cookie=new r.Z,this.cookie.initClientSide(e),this._lerCookies()}}n.AVATAR_DEFAULT=l.Z.URL("/static/images/avatar-default.png")}}]);
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.