1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1750],{77383:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/nutri/central_de_conteudos/study",function(){return n(17575)}])},60728:function(e,i,n){"use strict";n.d(i,{Dl:function(){return b},Iw:function(){return w},Kr:function(){return a},Ly:function(){return y},SN:function(){return j},Sm:function(){return c},U8:function(){return x},UY:function(){return h},_C:function(){return f},c7:function(){return o},g7:function(){return s},n6:function(){return r},oT:function(){return v},qA:function(){return u},tn:function(){return g},vX:function(){return p},wP:function(){return d},xY:function(){return l},xu:function(){return m}});var t=n(15437);let o=t.ZP.div.withConfig({componentId:"sc-2f894e69-0"})(["width:100%;overflow-x:hidden;"]),d=t.ZP.p.withConfig({componentId:"sc-2f894e69-1"})(["font-size:1rem;font-weight:600;color:#1F1E30;line-height:1.4;@media (max-width:600px){font-size:0.9rem;}"]),r=t.ZP.div.withConfig({componentId:"sc-2f894e69-2"})(["display:flex;background-color:#F3F4F9;border-radius:20px;padding:30px;margin-bottom:20px;@media (max-width:900px){padding:24px;border-radius:18px;}@media (max-width:600px){padding:20px;border-radius:16px;}"]),a=t.ZP.div.withConfig({componentId:"sc-2f894e69-3"})(["background-color:#F3F4F9;border-radius:20px;display:flex;flex-direction:column;gap:20px;overflow:hidden;@media (max-width:900px){border-radius:18px;}@media (max-width:600px){border-radius:16px;gap:16px;}"]),s=t.ZP.h1.withConfig({componentId:"sc-2f894e69-4"})(["font-size:24px;font-weight:500;width:100%;color:#1C1B1F;font-family:'Lato',sans-serif;@media (max-width:768px){font-size:22px;}@media (max-width:600px){font-size:20px;}"]),c=t.ZP.div.withConfig({componentId:"sc-2f894e69-5"})(["display:grid;grid-template-columns:1fr 1fr;border-radius:20px;overflow:hidden;@media (max-width:1000px){grid-template-columns:1.2fr 0.8fr;}@media (max-width:800px){grid-template-columns:1fr;}"]),l=t.ZP.div.withConfig({componentId:"sc-2f894e69-6"})(["display:flex;justify-content:center;align-items:center;size:100%;width:100%;overflow:hidden;"]),p=t.ZP.div.withConfig({componentId:"sc-2f894e69-7"})(["display:flex;flex-direction:column;gap:10px;min-width:0;"]),x=t.ZP.img.withConfig({componentId:"sc-2f894e69-8"})(["size:100%;cursor:pointer;max-height:600px;max-width:100%;object-fit:contain;@media (max-width:900px){max-height:420px;}@media (max-width:600px){max-height:320px;}"]),f=t.ZP.div.withConfig({componentId:"sc-2f894e69-9"})(["display:flex;flex-direction:row;gap:10px;padding:20px;cursor:pointer;justify-content:flex-start;align-items:center;font-family:'Lato',sans-serif;font-size:20px;@media (max-width:900px){padding:18px;font-size:18px;}@media (max-width:600px){padding:16px;font-size:16px;}"]),u=t.ZP.div.withConfig({componentId:"sc-2f894e69-10"})(["display:flex;flex-direction:column;color:#1C1B1F;font-family:'Lato',sans-serif;background-color:#FFF;padding:50px;gap:10px;max-height:auto;justify-content:center;align-items:center;min-width:0;@media (min-width:1300px){padding:60px;}@media (max-width:1000px){padding:30px;}@media (max-width:800px){padding:28px;}@media (max-width:600px){padding:22px;}"]),m=t.ZP.p.withConfig({componentId:"sc-2f894e69-11"})(["font-size:20px;font-weight:600;align-self:flex-start;line-height:1.25;@media (min-width:1300px){font-size:24px;}@media (max-width:600px){font-size:18px;}"]),h=t.ZP.p.withConfig({componentId:"sc-2f894e69-12"})(["font-size:16px;line-height:1.5;overflow-wrap:anywhere;@media (min-width:1300px){font-size:20px;}@media (max-width:600px){font-size:14px;}"]),g=t.ZP.img.withConfig({componentId:"sc-2f894e69-13"})(["width:100%;height:100%;object-fit:cover;@media (max-width:800px){display:none;}"]),w=t.ZP.div.withConfig({componentId:"sc-2f894e69-14"})(["display:flex;flex-direction:column;padding:20px;min-width:0;@media (max-width:900px){padding:18px;}@media (max-width:600px){padding:14px;}"]),v=t.ZP.div.withConfig({componentId:"sc-2f894e69-15"})(["display:flex;flex-direction:row;width:100%;justify-content:space-between;align-items:center;gap:12px;@media (max-width:600px){align-items:flex-start;}"]),b=t.ZP.div.withConfig({componentId:"sc-2f894e69-16"})(["display:flex;flex-direction:row;gap:10px;flex-shrink:0;"]),j=t.ZP.div.withConfig({componentId:"sc-2f894e69-17"})(["display:flex;justify-content:center;align-items:center;background-color:#1C1B1F;align-self:self-end;border-radius:50%;padding:5px;cursor:pointer;flex-shrink:0;"]);t.ZP.div.withConfig({componentId:"sc-2f894e69-18"})(["width:100%;min-width:0;"]);let y=t.ZP.div.withConfig({componentId:"sc-2f894e69-19"})(["display:flex;flex-direction:row;width:100%;justify-content:space-between;position:relative;gap:10px;min-width:0;@media (max-width:600px){align-items:flex-start;}"]);t.ZP.div.withConfig({componentId:"sc-2f894e69-20"})(["position:absolute;top:0;left:calc(40% + 8px);background-color:#FFF;border:1px solid #82A3AD;border-radius:10px;padding:10px;min-width:140px;z-index:99;display:flex;flex-direction:column;gap:10px;color:#1C1B1F;font-family:'Lato',sans-serif;font-size:14px;font-weight:600;
1@media (max-width:900px){left:auto;right:0;}@media (max-width:600px){min-width:130px;font-size:13px;}"]),t.ZP.p.withConfig({componentId:"sc-2f894e69-21"})(["cursor:pointer;padding:5px;&:hover{background-color:#82A3AD;border-radius:5px;color:#FFF;}"]),t.ZP.p.withConfig({componentId:"sc-2f894e69-22"})(["cursor:pointer;padding:5px;&:hover{background-color:#82A3AD;border-radius:5px;color:#FFF;}"]),t.ZP.p.withConfig({componentId:"sc-2f894e69-23"})(["cursor:pointer;padding:5px;&:hover{background-color:#82A3AD;border-radius:5px;color:#FFF;}"])},17575:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return T}});var t=n(85893),o=n(67294),d=n(60728),r=n(71175),a=n(42365),s=n(44932),c=n(93915),l=n(81963),p=n(51365),x=n(92141),f=n(90368),u=n(11163),m=n(28045),h=n(55678),g=n(15437);let w=g.ZP.div.withConfig({componentId:"sc-3322d95e-0"})(["display:grid;grid-template-columns:360px 1fr;gap:20px;width:100%;@media (max-width:1000px){grid-template-columns:1fr;}"]),v=g.ZP.div.withConfig({componentId:"sc-3322d95e-1"})(["display:flex;flex-direction:column;gap:10px;"]),b=g.ZP.p.withConfig({componentId:"sc-3322d95e-2"})(["color:#212121;font-size:22px;font-weight:700;margin-bottom:10px;"]),j=g.ZP.div.withConfig({componentId:"sc-3322d95e-3"})(["display:flex;align-items:center;gap:16px;background-color:",";border-radius:14px;padding:16px;cursor:",";opacity:",";box-shadow:",";transition:0.2s ease;&:hover{background-color:",";}"],e=>{let{$active:i}=e;return i?"#E8EEF0":"#FFF"},e=>{let{$disabled:i}=e;return i?"not-allowed":"pointer"},e=>{let{$disabled:i}=e;return i?.55:1},e=>{let{$active:i}=e;return i?"0px 4px 12px rgba(0, 0, 0, 0.12)":"none"},e=>{let{$disabled:i}=e;return i?"#FFF":"#E8EEF0"}),y=g.ZP.div.withConfig({componentId:"sc-3322d95e-4"})(["display:flex;align-items:center;justify-content:center;min-width:48px;width:48px;height:48px;border-radius:6px;background-color:#EEF3F5;"]),C=g.ZP.div.withConfig({componentId:"sc-3322d95e-5"})(["display:flex;flex-direction:column;gap:8px;min-width:0;"]),F=g.ZP.p.withConfig({componentId:"sc-3322d95e-6"})(["color:#212121;font-size:16px;font-weight:700;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;"]),P=g.ZP.p.withConfig({componentId:"sc-3322d95e-7"})(["color:#212121;font-size:14px;font-weight:300;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),Z=g.ZP.div.withConfig({componentId:"sc-3322d95e-8"})(["display:grid;grid-template-columns:1fr 150px;gap:24px;background-color:#E8EEF0;border-radius:14px;padding:24px;min-height:720px;@media (max-width:1000px){grid-template-columns:1fr;}"]),k=g.ZP.div.withConfig({componentId:"sc-3322d95e-9"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;"]),I=g.ZP.div.withConfig({componentId:"sc-3322d95e-10"})(["width:min(100%,620px);min-height:640px;max-height:720px;background-color:#FFF;border-radius:14px;padding:24px;display:flex;align-items:center;justify-content:center;color:#212121;overflow:auto;"]),z=g.ZP.p.withConfig({componentId:"sc-3322d95e-11"})(["font-size:20px;font-weight:700;text-align:center;"]);g.ZP.p.withConfig({componentId:"sc-3322d95e-12"})(["font-size:16px;font-weight:300;text-align:center;"]);let E=g.ZP.p.withConfig({componentId:"sc-3322d95e-13"})(["font-size:14px;font-weight:300;line-height:1.7;margin-top:24px;overflow-wrap:anywhere;"]),_=g.ZP.div.withConfig({componentId:"sc-3322d95e-14"})(["display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px;font-size:14px;button{border:none;background-color:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;}button:disabled{opacity:0.35;cursor:not-allowed;}span{background-color:#FFF;padding:6px 10px;border-radius:6px;}"]),A=g.ZP.div.withConfig({componentId:"sc-3322d95e-15"})(["display:flex;flex-direction:column;gap:18px;align-items:center;@media (max-width:1000px){display:none;}"]),S=g.ZP.div.withConfig({componentId:"sc-3322d95e-16"})(["display:flex;gap:18px;justify-content:center;margin-bottom:16px;"]),L=g.ZP.button.withConfig({componentId:"sc-3322d95e-17"})(["width:36px;height:36px;border-radius:50%;border:none;background-color:#1F1E30;color:#FFF;display:flex;align-items:center;justify-content:center;cursor:pointer;&:disabled{opacity:0.45;cursor:not-allowed;}"]),N=g.ZP.div.withConfig({componentId:"sc-3322d95e-18"})(["width:120px;min-height:170px;background-color:#FFF;border-radius:8px;border:",";overflow:hidden;cursor:pointer;canvas{width:100% !important;height:auto !important;}"],e=>{let{$active:i}=e;return i?"2px solid #1F1E30":"none"}),q=g.ZP.img.withConfig({componentId:"sc-3322d95e-19"})(["width:100%;height:100%;object-fit:cover;"]);var B=n(32191),D=n(56117),M=n(59037);n(40001),n(90690);var O=n(43034);B.default.GlobalWorkerOptions.workerSrc="//unpkg.com/pdfjs-dist@".concat(B.default.version,"/build/pdf.worker.min.js");var T=()=>{let[e,i]=(0,o.useState)(!1),{setModalOpen:n,setModalContent:g}=(0,m.Z)(),[B,T]=(0,o.useState)([]),[$,Y]=(0,o.useState)([]),[R,U]=(0,o.useState)({}),[V,W]=(0,o.useState)({}),[X,K]=(0,o.useState)(null),G=(0,u.useRouter)(),[H,J]=(0,o.useState)(null),[Q,ee]=(0,o.useState)(1),[ei,en]=(0,o.useState)(0),[et,eo]=(0,o.useState)(1),ed=(null==H?void 0:H.kind_extension)==="pdf",er=(null==H?void 0:H.kind_extension)==="image",ea=(null==H?void 0:H.kind_extension)==="video",es=e=>!!(null==e?void 0:e.locked),ec=!!H&&!es(H);async function el(){K(await (0,O.Z)("frontWeb/study-woman.png"))}let ep=e=>{var i;return e&&((null==e?void 0:e.filePreview)||(null==e?void 0:null===(i=e.file)||void 0===i?void 0:i.url)||e.link||e.extra_url)||null},ex=ep(H),ef=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{i(!0);let a=await (0,r.Bx)("api","v1","nutri_modules?category=study&page=".concat(e));if(200===a.status){var n,t,o,d;let i=a.data,r=null!==(o=null!==(t=null==i?void 0:i.items)&&void 0!==t?t:null==i?void 0:i.modules)&&void 0!==o?o:[],s=r.flatMap(e=>{var i;return(null!==(i=e.nutri_extra_files)&&void 0!==i?i:[]).map(i=>({...i,moduleId:e.id}))}),c=null!==(d=null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.pagination)&&void 0!==d?d:{};1===e?(T(r),Y(s)):(T(e=>[...e,...r]),Y(e=>[...e,...s])),U(c),W(e=>{let i={...e};for(let e of r){let n=e.id,t=i[n]?{...i[n]}:{};
1e.nutri_extra_files.forEach((e,i)=>{"number"!=typeof t[e.id]&&(t[e.id]="number"==typeof e.position?e.position:i)}),i[n]=t}return i})}}catch(e){h.Am.error("Erro ao buscar m\xf3dulos de conte\xfados")}finally{i(!1)}};return(0,o.useEffect)(()=>{if($.length>0&&!H){let e=$.find(e=>!e.locked);J(null!=e?e:$[0])}},[$,H]),(0,o.useEffect)(()=>{ef(1,!1),el()},[]),(0,o.useEffect)(()=>{ee(1),eo(1),en(0)},[null==H?void 0:H.id]),(0,t.jsxs)(d.c7,{children:[(0,t.jsx)(d.n6,{children:(0,t.jsx)(d.g7,{children:"Central de Recursos/Estudos"})}),(0,t.jsxs)(d.Kr,{children:[(0,t.jsxs)(d._C,{onClick:()=>G.push("/nutri/central_de_conteudos"),children:[(0,t.jsx)(a.Y,{color:"#1C1B1F",size:24}),(0,t.jsx)(d.wP,{style:{color:"#1C1B1F"},children:"Voltar"})]}),(0,t.jsxs)(d.Sm,{children:[(0,t.jsxs)(d.qA,{children:[(0,t.jsx)(d.xu,{children:"Eleve seu aprendizado com conte\xfados de qualidade"}),(0,t.jsx)(d.UY,{children:"Aprofunde seus conhecimentos e esteja sempre atualizado! Aqui, voc\xea tem acesso a uma curadoria de artigos sobre temas relevantes para sua \xe1rea. Explore conte\xfados confi\xe1veis que unem teoria e pr\xe1tica, ampliando seu repert\xf3rio com dicas validadas e tend\xeancias do mercado. O aprendizado \xe9 cont\xednuo e o conhecimento certo pode transformar seus resultados!"})]}),(0,t.jsx)(d.tn,{src:X})]}),(0,t.jsx)(d.Iw,{children:0===B.length?(0,t.jsx)(d.wP,{children:"Sem arquivo enviado"}):(0,t.jsxs)(w,{children:[(0,t.jsxs)(v,{children:[(0,t.jsx)(b,{children:"Documentos"}),$.map(e=>(0,t.jsxs)(j,{$active:(null==H?void 0:H.id)===e.id,$disabled:e.locked,onClick:()=>{if(J(e),e.locked){if(e.has_feature){h.Am.info("Este conte\xfado ainda est\xe1 bloqueado. Falta(m) ".concat(e.remaining_days," dia(s) para conseguir acess\xe1-lo"));return}h.Am.info("Este conte\xfado est\xe1 bloqueado para seu plano.")}},children:[(0,t.jsx)(y,{children:(0,t.jsx)(s.z,{size:24,color:"#1C1B1F"})}),(0,t.jsxs)(C,{children:[(0,t.jsx)(F,{children:e.title}),(0,t.jsxs)(P,{children:["Descri\xe7\xe3o: ",e.description||"Sem descri\xe7\xe3o"]})]})]},e.id))]}),(0,t.jsxs)(Z,{children:[(0,t.jsxs)(k,{children:[(0,t.jsx)(I,{children:H&&es(H)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(z,{children:"Conte\xfado bloqueado"})}):H&&ex?(0,t.jsxs)(t.Fragment,{children:[ed&&(0,t.jsx)(D.Z,{file:ex,onLoadSuccess:e=>{let{numPages:i}=e;en(i),ee(1)},loading:(0,t.jsx)(d.wP,{children:"Carregando documento..."}),error:(0,t.jsx)(d.wP,{children:"N\xe3o foi poss\xedvel carregar o PDF."}),children:(0,t.jsx)(M.Z,{pageNumber:Q,scale:et,renderAnnotationLayer:!0,renderTextLayer:!0})}),er&&(0,t.jsx)("img",{src:ex,alt:H.title,style:{maxWidth:"100%",transform:"scale(".concat(et,")"),transformOrigin:"center",transition:"transform 0.2s ease"}}),ea&&(0,t.jsx)("video",{src:ex,controls:!0,style:{width:"100%",maxHeight:"620px",borderRadius:12,transform:"scale(".concat(et,")"),transformOrigin:"center",transition:"transform 0.2s ease"}}),!ed&&!er&&!ea&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z,{children:H.title}),(0,t.jsx)(E,{children:"Tipo de conte\xfado n\xe3o suportado para preview."})]})]}):H?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z,{children:H.title}),(0,t.jsx)(E,{children:"Arquivo indispon\xedvel."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(z,{children:"Selecione um documento"}),(0,t.jsx)(E,{children:"Escolha um item na lista para visualizar o conte\xfado."})]})}),(0,t.jsxs)(_,{children:[(0,t.jsx)("button",{type:"button",disabled:!ec||!ed||Q<=1,onClick:()=>ee(e=>Math.max(e-1,1)),children:(0,t.jsx)(a.Y,{size:20})}),(0,t.jsx)("span",{children:ed&&ei>0?"".concat(Q,"/").concat(ei):"1/1"}),(0,t.jsx)("button",{type:"button",disabled:!ec||!ed||Q>=ei,onClick:()=>ee(e=>Math.min(e+1,ei)),children:(0,t.jsx)(c.L,{size:20})}),(0,t.jsx)("button",{type:"button",disabled:!ec||et<=.6,onClick:()=>eo(e=>Math.max(Number((e-.1).toFixed(1)),.6)),children:(0,t.jsx)(l.V,{size:20})}),(0,t.jsxs)("span",{children:[Math.round(100*et),"%"]}),(0,t.jsx)("button",{type:"button",disabled:!ec||et>=2,onClick:()=>eo(e=>Math.min(Number((e+.1).toFixed(1)),2)),children:(0,t.jsx)(p.p,{size:20})})]})]}),(0,t.jsxs)(A,{children:[(0,t.jsxs)(S,{children:[(0,t.jsx)(L,{disabled:!ec,onClick:()=>
1{if(!ec)return;let e=ep(H);e&&window.open(e,"_blank")},children:(0,t.jsx)(x.V,{size:18})}),(0,t.jsx)(L,{disabled:!ec,onClick:()=>{ec&&ep(H)},children:(0,t.jsx)(f.$,{size:18})})]}),ec&&H&&ex&&(0,t.jsxs)(t.Fragment,{children:[ed&&Array.from({length:ei||0}).map((e,i)=>{let n=i+1;return(0,t.jsx)(N,{$active:Q===n,onClick:()=>ee(n),children:(0,t.jsx)(D.Z,{file:ex,children:(0,t.jsx)(M.Z,{pageNumber:n,width:110,renderAnnotationLayer:!1,renderTextLayer:!1})})},n)}),er&&(0,t.jsx)(N,{$active:!0,children:(0,t.jsx)(q,{src:ex,alt:H.title})}),ea&&(0,t.jsx)(N,{$active:!0,children:(0,t.jsx)("video",{src:ex,muted:!0,style:{width:"100%",height:"100%",objectFit:"cover"}})})]})]})]})]})})]})]})}},93414:function(){},70172:function(){},2001:function(){},33779:function(){},82258:function(){}},function(e){e.O(0,[4577,3480,9774,2888,179],function(){return e(e.s=77383)}),_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.