1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82],{1175:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Paginate=void 0,n.Paginate=function(e){var n,t,a=e.totalItems,i=e.currentPage,r=e.pageSize,o=void 0===r?40:r,l=e.maxPages,s=void 0===l?3:l,c=e.hasNextPage,u=e.hasPreviousPage,d=Math.ceil(a/o),p=void 0===i?1:i;if(p<1?p=1:p>d&&(p=d),d<=s)n=1,t=d;else{var h=Math.floor(s/2),g=Math.ceil(s/2)-1;p<=h?(n=1,t=s):p+g>=d?(n=d-s+1,t=d):(n=p-h,t=p+g)}var m=(p-1)*o;return{page:p,pages:Array.from(Array(t+1-n).keys()).map(function(e){return n+e}),endPage:t,pageSize:o,endIndex:Math.min(m+o-1,a-1),startPage:n,totalPages:d,startIndex:m,totalItems:a,hasNextPage:c,hasPreviousPage:u}}},5881:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createRouterBuild=void 0,n.createRouterBuild=function(e){var n=e.query;return{addRouteParam:function(t,a){n[t]?n[t]="".concat(n[t],",").concat(a):n[t]=a,e.push({pathname:e.pathname,query:n},void 0,{shallow:!1})},updateRouteParam:function(t,a){n[t]=a,e.push({pathname:e.pathname,query:n},void 0,{shallow:!1,scroll:!1})},removeRouteParam:function(t,a){var i=n[t];if("string"==typeof i){var r=i.split(","),o=r.findIndex(function(e){return e===a.toString()});-1!==o&&r.splice(o,1),r.length>0?n[t]=r.join(","):delete n[t]}e.push({pathname:e.pathname,query:n},void 0,{shallow:!1})},addRoutePath:function(t,a){var i=n[t];"string"!=typeof i&&void 0!==i&&i.push(a),n[t]=i,e.push({pathname:e.pathname,query:n},void 0,{shallow:!1})},updateRoutePath:function(t,a){n[t]=a.split("/"),e.push({pathname:e.pathname,query:n},void 0,{shallow:!1})},removeRoutePath:function(t,a){var i=n[t];if("string"!=typeof i&&void 0!==i){var r=i.findIndex(function(e){return e===a.toString()});-1!==r&&i.splice(r,1)}n[t]=i,e.push({pathname:e.pathname,query:n},void 0,{shallow:!1})},switchRoute:function(t,a,i,r){delete n[i];var o=Object.assign(r,n);e.push({pathname:"/".concat(t,"/").concat(a),query:o},void 0,{shallow:!1})}}}},4792:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sobre-nos/corpo-clinico",function(){return t(7795)}])},2692:function(e,n,t){"use strict";t.d(n,{j:function(){return banner_Banner},b:function(){return equip_list_EquipList}});var a=t(5893),i=t(2784),r=t(5591),o=t(4095),l=t(2729),s=t(8458);function _templateObject(){let e=(0,l._)(["\n width: 100%;\n padding: 8% 0 6%;\n display: flex;\n align-items: center;\n background-size: cover;\n justify-content: center;\n background-repeat: no-repeat;\n background-position: center center;\n background-image: url('/images/bg.jpg');\n\n .container {\n gap: 30px;\n display: flex;\n align-items: center;\n flex-direction: column;\n }\n\n .box-content {\n gap: 30px;\n width: 40%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n\n .title {\n line-height: 1.2;\n text-align: center;\n color: ",";\n }\n\n .description {\n color: ",";\n }\n\n .button {\n width: 50%;\n min-width: 180px;\n }\n\n .box-image {\n width: 55%;\n aspect-ratio: 810/600;\n\n > div {\n width: 100%;\n }\n }\n\n // Responsives\n\n @media only screen and (max-width: 650px) {\n padding: 12% 0;\n }\n"]);return _templateObject=function(){return e},e}let c=s.default.section.withConfig({componentId:"sc-5267c398-0"})(_templateObject(),e=>e.theme.white,e=>e.theme.white);function banner_Banner(){let{headerHeight:e}=(0,r.useHeader)();return(0,a.jsx)(i.Error,{name:"Banner",children:(0,a.jsx)(c,{style:{marginTop:"".concat(e,"px")},children:(0,a.jsxs)(i.Container,{children:[(0,a.jsx)(o.cI,{list:[{label:"In\xedcio",url:"/"},{label:"Sobre n\xf3s",url:"/sobre-nos"},{label:"Corpo Cl\xednico"}],isBg:!0}),(0,a.jsx)("h1",{className:"font-64 title",children:"Corpo Cl\xednico"})]})})})}var u=t(1163),d=t(7294),p=t(5881),h=t(1175),g=t(3073),m=t(5604),f=t(9734),x=t(1574);function styles_templateObject(){let e=(0,l._)(["\n padding: 5% 0;\n\n .container {\n gap: 30px;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n }\n\n .equip-grid {\n gap: 1.5vw;\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n }\n\n .card-equip {\n gap: 10px;\n padding: 6%;\n width: 100%;\n display: flex;\n border-radius: 20px;\n flex-direction: column;\n background-color: ",";\n filter: drop-shadow(0px 0px 2.5px rgba(0, 0, 0, 0.16));\n\n h2 {\n color: ",";\n }\n\n span {\n color: ",";\n }\n }\n\n .box-filter {\n width: 50%;\n min-width: 300px;\n }\n\n .select-component > div {\n gap: 10px;\n width: 100%;\n display: flex;
1\n align-items: center;\n flex-direction: column;\n justify-content: center;\n }\n\n // Responsives\n\n @media only screen and (max-width: 1200px) {\n .container {\n gap: 15px;\n }\n\n .equip-grid {\n grid-template-columns: repeat(2, 1fr);\n }\n }\n\n @media only screen and (max-width: 500px) {\n .equip-grid {\n gap: 15px;\n grid-template-columns: 1fr;\n }\n\n .card-equip {\n border-radius: 10px;\n }\n }\n"]);return styles_templateObject=function(){return e},e}let v=s.default.section.withConfig({componentId:"sc-91542f3b-0"})(styles_templateObject(),e=>e.theme.white,e=>e.theme.primaryColor,e=>e.theme.secondaryColor);function equip_list_EquipList(e){let{equipList:n}=e,t=(0,u.useRouter)(),r=(0,p.createRouterBuild)(t),[o,l]=(0,d.useState)({label:"",value:""}),s=t.query.url,c=function(){var e;let n=(0,f.ZP)("/Equipe/getall",()=>x.api.get("/Equipe/getall"),{revalidateIfStale:!0,revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1});return null===(e=n.data)||void 0===e?void 0:e.data}(),b=null==c?void 0:c.items.map(e=>({label:e.epescialidade,value:e.epescialidadeUrl})).filter((e,n,t)=>{let a=t.findIndex(n=>n.label===e.label&&n.value===e.value);return a===n}),handleSearch=e=>{""!==e&&t.push("/sobre-nos/corpo-clinico/especialidade/".concat(encodeURIComponent(e)))};(0,d.useEffect)(()=>{s&&(null==b?void 0:b.some(e=>s===e.value))&&(()=>{let e=b.find(e=>s===e.value);e&&l({label:e.label,value:e.value})})()},[s]);let[P,y]=(0,d.useState)(null);return(0,d.useEffect)(()=>{n&&y((0,h.Paginate)({totalItems:n.pageTotal,currentPage:0>=Number(t.query.page)||!t.query.page?1:Number(t.query.page),pageSize:n.pageSize,hasNextPage:n.hasNextPage,hasPreviousPage:n.hasPreviousPage}))},[n,t.query]),(0,a.jsx)(i.Error,{name:"EquipList",children:(0,a.jsxs)(v,{children:[(0,a.jsxs)(i.Container,{children:[b&&(0,a.jsx)("div",{className:"box-filter",children:(0,a.jsx)(m.Form,{placeholder:" ",className:"search-box",onSubmit:handleSearch,initialData:{filter:o.value},children:(0,a.jsx)(m.Select,{name:"filter",placeholder:"Selecione",optionsSelect:b,label:"Selecione uma especialidade",onChange:e=>handleSearch(e.target.value)})})}),(0,a.jsx)("div",{className:"equip-grid",children:n.items.map(e=>(0,a.jsxs)("div",{className:"card-equip",children:[(0,a.jsx)("h2",{className:"font-24",children:e.titulo}
1),(0,a.jsx)("span",{className:"font-16-bold",children:e.subtitulo}),(0,a.jsx)("div",{className:"font-16 description",dangerouslySetInnerHTML:{__html:e.descricao}})]},e.id))})]}),P&&(0,a.jsx)(g.Pagination,{pages:P.pages,currentPage:P.page,hasNextPage:P.hasNextPage,hasPreviousPage:P.hasPreviousPage,onSelect:e=>r.updateRouteParam("page",e.toString())})]})})}},7795:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return s},default:function(){return EquipPage}});var a=t(5893),i=t(9008),r=t.n(i),o=t(4935),l=t(2692),s=!0;function EquipPage(e){let{pageContent:n}=e;return(0,a.jsxs)(o.A,{children:[(0,a.jsx)(r(),{children:(0,a.jsx)("title",{children:"Corpo Cl\xednico"})}),(0,a.jsx)(l.j,{}),n&&n.items&&n.items.length>0&&(0,a.jsx)(l.b,{equipList:n})]})}}},function(e){e.O(0,[786,604,935,774,888,179],function(){return e(e.s=4792)}),_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.