PageSourceSearch

https://mbseguros-contempladas.vercel.app/_next/static/chunks/pages/index-8f6bd18745d3f533.js

js mbseguros-contempladas.vercel.app collected 2026-10-03 07:17:37 UTC 45,023 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(8932)}])},8932:function(e,r,n){"use strict";n.r(r),n.d(r,{__N_SSG:function(){return Se},default:function(){return Ce}});var o,t=n(5893),l=n(3238),a=n(2684),i=n(8790),c=n(6723),s=n(894),d=n(8133),u=n(9042),f=n(7294);function p(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function x(e,r){if(null==e)return{};var n,o,t=function(e,r){if(null==e)return{};var n,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function h(e){var r=e.icon,n=e.children,o=x(e,["icon","children"]);return(0,t.jsx)(c.zx,function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){p(e,r,n[r])}))}return e}({px:"10",w:"fit-content",leftIcon:r&&(0,t.jsx)(s.ZP,{as:r,stroke:"#ffffff",fontSize:"lg",fill:"none",mr:"2"}),fontSize:"sm",variant:"outline",borderRadius:"3px",border:"1px"},o,{children:n}))}function b(){return b=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},b.apply(this,arguments)}var m=function(e){return f.createElement("svg",b({"aria-hidden":"true","data-prefix":"fab","data-icon":"whatsapp",className:"whatsapp-white_svg__svg-inline--fa whatsapp-white_svg__fa-whatsapp whatsapp-white_svg__fa-w-14",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),o||(o=f.createElement("path",{fill:"current",d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"})))},g=n(3206),v=n(1613),j=n(6445),y=n(8268);function w(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function S(e,r){if(null==e)return{};var n,o,t=function(e,r){if(null==e)return{};var n,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function C(e){var r=e.icon,n=e.children,o=S(e,["icon","children"]),l="red"===o.colorScheme?"#e53e3e":"green"===o.colorScheme?"#38a169":"blue"===o.colorScheme?"#002d56":"orange"===o.colorScheme?"#dd6b20":"#222222";return(0,t.jsx)(c.zx,function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){w(e,r,n[r])}))}return e}({px:"8",w:"fit-content",borderRadius:"8px",fontWeight:"regular",leftIcon:r&&(0,t.jsx)(s.ZP,{as:r,stroke:"#ffffff",fontSize:"16",fill:"none",mr:"2"}),variant:"solid",fontSize:"sm"},o,{_hover:{boxShadow:"0 8px 20px -8px ".concat(l)},_active:{},children:n}))}var O=n(2028),R=n(8429),k=n(1163);function z(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function F(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);
1"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){z(e,r,n[r])}))}return e}var _="#142952",I="#1A458E",P="#F4C542",W="#F4F6FB",T="#e8edf4",B="'Cabin', -apple-system, system-ui, sans-serif";function N(e){var r=e.reduce((function(e,r){return Math.max(e,parseInt(r.parcelas))}),0),n=Array(r).fill(0);e.forEach((function(e){for(var r=parseInt(e.parcelas),o=parseFloat(e.valor_parcela.replaceAll(".","").replaceAll(",",".")),t=0;t<r;t++)n[t]+=o}));for(var o=[],t=n[0],l=1,a=1;a<=n.length;a++)a!==n.length&&n[a]===t||(o.push({valor:t,mesInicio:l,mesFim:a}),t=n[a],l=a+1);return o}N([{id:"1",administradora:"Admin1",categoria:"Carro",entrada:"5000",parcelas:"36",valor_credito:"30000",valor_parcela:"800",reserva:"5%",taxa:"0.5%",fundo:"1.5%"},{id:"2",administradora:"Admin2",categoria:"Moto",entrada:"2000",parcelas:"24",valor_credito:"10000",valor_parcela:"450",reserva:"5%",taxa:"0.5%",fundo:"1.5%"}]);function E(e){var r=e.isOpen,n=e.handleCloseSumModal,o=e.selectedQuotas,l=e.notFixed,c=void 0!==l&&l,s=((0,k.useRouter)(),(0,a.Sx)({base:!1,lg:!0})),p=(0,f.useState)(!1),x=p[0],h=p[1],b=(0,f.useState)(!1),m=b[0],g=b[1],v=(0,f.useState)(!1),j=v[0],y=v[1],w=(0,f.useState)(!1),S=w[0],z=w[1],E=(0,f.useState)(!1),A=E[0],D=E[1],L=(0,f.useState)(),q=L[0],K=L[1],Z=(0,f.useState)({credit:0,entry:0,deadline:0,parcel:0,debt:0,tax:0,fund:0,security:0}),U=Z[0],V=Z[1];(0,f.useEffect)((function(){var e=o.reduce((function(e,r){return{credit:e.credit+parseFloat(r.valor_credito.replaceAll(".","").replaceAll(",",".")),entry:e.entry+parseFloat(r.entrada.replaceAll(".","").replaceAll(",",".")),deadline:e.deadline+parseInt(r.parcelas),parcel:e.parcel+parseFloat(r.valor_parcela.replaceAll(".","").replaceAll(",",".")),debt:e.debt+parseFloat(r.valor_parcela.replaceAll(".","").replaceAll(",","."))*parseInt(r.parcelas),tax:e.tax+(r.taxa?parseFloat(r.taxa.toString().replaceAll(".","").replaceAll(",",".")):0),fund:e.fund+(r.fundo?parseFloat(r.fundo.toString().replaceAll(".","").replaceAll(",",".")):0),security:e.security+parseFloat(r.valor_parcela.replaceAll(".","").replaceAll(",","."))*parseInt(r.parcelas)*("Ve\xedculo"==r.categoria?88e-5:55e-5)}}),{credit:0,entry:0,deadline:0,parcel:0,debt:0,tax:0,fund:0,security:0});e.deadline=Math.round(e.debt/e.parcel),V(e),K(N(o))}),[o]);var M={bg:W,p:"4",width:"100%",px:"5",borderRadius:"12px",border:"1px solid",borderColor:T};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(O.u_,{id:"sum-modal",isOpen:r,onClose:n,blockScrollOnMount:!c,children:[(0,t.jsx)(O.ZA,{w:"100%",bg:"rgba(20, 41, 82, 0.45)"}),(0,t.jsxs)(O.hz,{w:"100%",maxW:"640px",borderRadius:"20px",fontFamily:B,color:"#2c3e50",boxShadow:"0 20px 60px -20px rgba(20, 41, 82, 0.35)",overflow:"hidden",children:[(0,t.jsx)(O.ol,{borderRadius:"full",color:_,_hover:{bg:W},top:"14px",right:"14px"}),(0,t.jsx)(O.fe,{w:"100%",px:["5","8"],children:(0,t.jsx)(i.Kq,{w:"100%",maxW:"800px",m:"0 auto",py:"10",spacing:"10",children:(0,t.jsxs)(i.Kq,{width:"100%",spacing:"8",children:[(0,t.jsxs)(i.Kq,{spacing:"3",children:[(0,t.jsx)(i.xv,{fontFamily:B,fontSize:"xs",fontWeight:"600",color:I,textTransform:"uppercase",letterSpacing:"0.18em",children:"Soma de contempladas"}),(0,t.jsx)(i.xv,{fontFamily:B,fontSize:["2xl","3xl"],fontWeight:"600",color:_,lineHeight:"1.2",children:"Veja o resultado da soma"}),(0,t.jsx)(i.xu,{w:"48px",h:"3px",bg:P,borderRadius:"full"})]}),s?(0,t.jsxs)(i.Kq,{width:"100%",spacing:"6",children:[(0,t.jsxs)(i.Kq,{justifyContent:"space-between",width:"100%",direction:["column","column","row","row"],children:[(0,t.jsxs)(i.Kq,{width:"48%",children:[(0,t.jsx)(i.xv,{fontWeight:"600",fontSize:"sm",color:I,textTransform:"uppercase",letterSpacing:"0.04em",children:"Cr\xe9dito"}),(0,t.jsx)(i.kC,F({},M,{children:(0,t.jsx)(i.xv,{fontSize:"lg",fontWeight:"600",color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.credit)})}))]}),(0,t.jsxs)(i.Kq,{width:"48%",children:[(0,t.jsx)(i.xv,{fontWeight:"600",fontSize:"sm",color:I,textTransform:"uppercase",letterSpacing:"0.04em",children:"Entrada"}),(0,t.jsx)(i.kC,F({},M,{children:(0,t.jsx)(i.xv,{fontSize:"lg",fontWeight:"600",color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.entry)})}))]})]}),(0,t.jsxs)(i.Kq,{justifyContent:"space-between",width:"100%",direction:["column","column","row","row"],children:[(0,t.jsxs)(i.Kq,{width:"48%",children:[(0,t.jsx)(i.xv,{fontWeight:"600",fontSize:"sm",color:I,textTransform:"uppercase",letterSpacing:"0.04em",children:"Saldo Devedor"}),(0,t.jsx)(i.kC,F({},M,{children:(0,t.jsx)(i.xv,{fontSize:"lg",fontWeight:"600",color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.debt)})}))]}),(0,t.jsxs)(i.Kq,{width:"48%",children:[(0,t.jsx)(i.xv,{fontWeight:"600",fontSize:"sm",color:I,textTransform:"uppercase",letterSpacing:"0.04em",children:"Taxa de Transfer\xeancia"}),(0,t.jsx)(i.kC,F({},M,{children:(0,t.jsx)(i.xv,{fontSize:"lg",fontWeight:"600",color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.tax)})}))]})]}),(0,t.jsxs)(i.Kq,{justifyContent:"space-between",width:"100%",direction:["column","column","row","row"],children:[(0,t.jsxs)(i.Kq,{width:"48%",children:[(0,t.jsx)(i.xv,{fontWeight:"600",fontSize:"sm",color:I,textTransform:"uppercase",letterSpacing:"0.04em",children:"Prazo/Parcelas"}),(0,t.jsx)(i.Kq,F({},M,{children:null===q||void 0===q?void 0:q.map((function(e){return(0,t.jsxs)(i.xv,{fontSize:"md",color:_,children:["Parcela ",e.mesInicio," a ",e.mesFim,":"," ",(0,t.jsx)(i.xv,{as:"span",fontWeight:"600",children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e.valor)})]},"text-".concat(e.mesInicio," a ").concat(e.mesFim))}))}))]}),(0,t.jsxs)(i.Kq,{width:"48%",children:[(0,t.jsx)(i.xv,{fontWeight:"600",fontSize:"sm",color:I,textTransform:"uppercase",letterSpacing:"0.04em",children:"M\xe9dia de Prazo/Parcela"}),(0,t.jsx)(i.kC,F({},M,{children:(0,t.jsxs)(i.xv,{fontSize:"lg",fontWeight:"600",color:_,children:[U.deadline,"x"," ",Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.parcel)]})}))]})]}),(0,t.jsxs)(i.Kq,{justifyContent:"space-between",width:"100%",direction:["column","column","row","row"],children:[(0,t.jsxs)(i.Kq,{width:"48%",children:[(0,t.jsx)(i.xv,{fontWeight:"600",fontSize:"sm",color:I,textTransform:"uppercase",letterSpacing:"0.04em",children:"Seguro de Vida"}),(0,t.jsx)(i.kC,F({},M,{children:(0,t.jsx)(i.xv,{fontSize:"lg",fontWeight:"600",color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.security)})}))]}),(0,t.jsxs)(i.Kq,{width:"48%",children:[(0,t.jsx)(i.xv,{fontWeight:"600",fontSize:"sm",color:I,textTransform:"uppercase",letterSpacing:"0.04em",children:"Fundo Comum"}),(0,t.jsx)(i.kC,F({},M,{children:(0,t.jsx)(i.xv,{fontSize:"lg",fontWeight:"600",color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.fund)})}))]})]})]}):(0,t.jsxs)(u.iA,{borderRadius:"4px",overflow:"hidden",children:[(0,t.jsx)(u.hr,{}),(0,t.jsxs)(u.p3,{fontSize:"sm",children:[(0,t.jsxs)(u.Tr,{children:[(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:"Cr\xe9dito"}),(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.credit)})]}),(0,t.jsxs)(u.Tr,{children:[(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:"Entrada"}),(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.entry)})]}),(0,t.jsxs)(u.Tr,{children:[(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:"Prazo"}),(0,t.jsxs)(u.Td,{bg:W,borderColor:T,color:_,children:[U.deadline,"x"]})]}),null===q||void 0===q?void 0:q.map((function(e){return(0,t.jsxs)(u.Tr,{children:[(0,t.jsxs)(u.Td,{bg:W,borderColor:T,color:_,children:["Parcela ",e.mesInicio," a ",e.mesFim]}),(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e.valor)})]},"".concat(e.mesInicio," a ").concat(e.mesFim))})),(0,t.jsxs)(u.Tr,{children:[(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:"Fundo comum"}),(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.fund)})]}),(0,t.jsxs)(u.Tr,{children:[(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:"Taxa de Transfer\xeancia"}),(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.tax)})]}),(0,t.jsxs)(u.Tr,{children:[(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:"Seguro de vida"}),(0,t.jsx)(u.Td,{bg:W,borderColor:T,color:_,children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.security)})]}),(0,t.jsxs)(u.Tr,{children:[(0,t.jsx)(u.Td,{bg:"gray.200",fontWeight:"bold",children:"Saldo Devedor"}),(0,t.jsx)(u.Td,{bg:"gray.200",fontWeight:"bold",children:Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.debt)})]})]})]}),(0,t.jsx)(R.UQ,{w:"100%",allowToggle:!0,border:"1px solid",borderColor:T,borderRadius:"14px",overflow:"hidden",children:(0,t.jsxs)(R.Qd,{w:"100%",border:"none",children:[(0,t.jsx)("h2",{children:(0,t.jsxs)(R.KF,{_hover:{bg:W},_expanded:{bg:W,color:_},py:"4",px:"5",children:[(0,t.jsx)(i.xu,{flex:"1",textAlign:"left",fontWeight:"600",color:_,fontFamily:B,children:"Cartas Selecionadas"}),(0,t.jsx)(R.XE,{color:_})]})}),(0,t.jsxs)(R.Hk,{pb:4,px:"5",children:[(0,t.jsx)(u.iA,{size:"sm",borderRadius:"4px",overflow:"hidden",maxW:"100%",children:(0,t.jsx)(u.p3,{children:o.map((function(e){return(0,t.jsxs)(u.Tr,{fontSize:"14px",children:[(0,t.jsx)(u.Td,{px:"0",borderColor:T,children:(0,t.jsxs)(i.Kq,{spacing:"0",children:[(0,t.jsx)(i.xv,{fontSize:"11px",color:I,children:e.id}),(0,t.jsx)(i.xv,{color:_,fontWeight:"600",children:e.categoria})]})}),(0,t.jsx)(u.Td,{textAlign:"right",px:"0",borderColor:T,children:(0,t.jsxs)(i.Kq,{spacing:"0",children:[(0,t.jsxs)(i.xv,{fontWeight:"600",color:_,children:["R$ ",e.valor_credito]}),(0,t.jsxs)(i.xv,{fontSize:"11px",color:I,children:[e.parcelas,"x R$ ",e.valor_parcela]})]})})]},e.id)}))})}),o.map((function(e){i.Ug,i.Kq,i.xv,e.id,i.xv,e.categoria,i.Kq,i.xv,e.valor_credito,i.xv,e.parcelas,e.valor_parcela,e.id}))]})]})}),(0,t.jsx)(i.xu,{bg:"#fff",border:"1px solid",borderColor:T,borderRadius:"16px",p:["5","6"],boxShadow:"0 4px 18px rgba(20, 41, 82, 0.04)",children:(0,t.jsxs)(i.Kq,{spacing:"5",children:[(0,t.jsxs)(i.Kq,{spacing:"2",children:[(0,t.jsx)(i.xv,{fontSize:"xs",fontWeight:"600",color:I,textTransform:"uppercase",letterSpacing:"0.18em",fontFamily:B,children:"Compartilhe"}),(0,t.jsx)(i.xu,{w:"32px",h:"3px",bg:P,borderRadius:"full"})]}),(0,t.jsxs)(i.Kq,{spacing:"3",children:[(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:_,onCh
1ange:function(e){var r;return h(null===(r=e.target)||void 0===r?void 0:r.checked)},children:(0,t.jsx)(i.xv,{color:_,fontWeight:"500",children:"Cartas selecionadas"})}),(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:_,onChange:function(e){var r;return y(null===(r=e.target)||void 0===r?void 0:r.checked)},children:(0,t.jsx)(i.xv,{color:_,fontWeight:"500",children:"Saldo devedor"})}),(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:_,onChange:function(e){var r;return g(null===(r=e.target)||void 0===r?void 0:r.checked)},children:(0,t.jsx)(i.xv,{color:_,fontWeight:"500",children:"Entrada"})}),(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:_,onChange:function(e){var r;return z(null===(r=e.target)||void 0===r?void 0:r.checked)},children:(0,t.jsx)(i.xv,{color:_,fontWeight:"500",children:"Taxa de transfer\xeancia"})}),(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:_,onChange:function(e){var r;return D(null===(r=e.target)||void 0===r?void 0:r.checked)},children:(0,t.jsx)(i.xv,{color:_,fontWeight:"500",children:"Fundo comum"})})]}),(0,t.jsx)(C,{size:"lg",onClick:function(){return function(){var e=m?"\nEntrada: ".concat(Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.entry)):"",r=j?"\nSaldo Devedor: ".concat(Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.debt)):"",n="\nSeguro de Vida: ".concat(Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.security)),t=A?"\nFundo Comum: ".concat(Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.fund)):"",l=S?"\nTaxa de transfer\xeancia: ".concat(Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.tax)):"",a=x?o.reduce((function(e,r){return"".concat(e,"\nCarta ").concat(r.id," - ").concat(r.categoria,": R$ ").concat(r.valor_credito," (").concat(r.parcelas,"x R$").concat(r.valor_parcela,")")}),"\nCartas selecionadas:\n"):"",i=q?q.reduce((function(e,r){return"".concat(e,"\n").concat(r.mesInicio," \xe0 ").concat(r.mesFim,": ").concat(Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(r.valor))}),"\nParcelamento:"):"",c="Resultado da Soma das Cartas Contempladas\n\nCr\xe9dito: ".concat(Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(U.credit)," ").concat(e,"\n").concat(i," ").concat(t," ").concat(l," ").concat(r," ").concat(n,"\n        ").concat(a);window.open("https://api.whatsapp.com/send?text=".concat(window.encodeURIComponent(c)))}()},bg:_,color:"#fff",borderRadius:"full",px:"8",fontWeight:"600",fontFamily:B,_hover:{bg:I,boxShadow:"0 8px 20px -8px rgba(20, 41, 82, 0.6)"},children:"Compartilhar"})]})})]})})})]})]})})}var A=n(7116),D=n.n(A),L=n(3461),q=n(9008),K=n(7536),Z=n(5496),U=n(4231),V=n(9762),M=n(4612),X=n(1343),$=function(e,r){return(0,X.toPattern)(e,{pattern:r})},H=function(e,r){return"string"===typeof r?$(e,r||""):function(e,r){return $(e,r.reduce((function(r,n){return e.length<=function(e){return e.replace(/\W/g,"")}(r).length?r:n}),r[0]))}(e,r)};function Q(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function J(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){Q(e,r,n[r])}))}return e}function G(e,r){if(null==e)return{};var n,o,t=function(e,r){if(null==e)return{};var n,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function Y(e){var r=function(){return g?J({},g(n),{value:R,onChange:function(e){var r=z(e.target.value);k(r)}}):{ref:j||void 0,value:R,onChange:function(e){var r=z(e.target.value);k(r),v&&v(r)}}},n=e.name,o=e.type,l=e.icon,a=e.variant,i=void 0===a?"":a,c=e.inputLink,d=e.value,u=void 0===d?"":d,p=e.label,x=void 0===p?"":p,h=e.mask,b=void 0===h?"":h,m=e.register,g=void 0===m?void 0:m,v=e.onChange,j=e.inputRef,y=(e.control,e.error),w=e.maxW,S=e.colorScheme,C=G(e,["
1name","type","icon","variant","inputLink","value","label","mask","register","onChange","inputRef","control","error","maxW","colorScheme"]),O=(0,f.useState)(""),R=O[0],k=O[1],z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(b)if("money"===b);else{var r="phone"===b?"(99) 99999-9999":"cpf"===b?"999.999.999-99":"cnpj"===b?"99.999.999/9999-99":"cep"===b?"99999-999":"cpf-cnpj"===b?e.length<15?"999.999.999-99":"99.999.999/9999-99":"";e=H(e,r)}return k(e),e};(0,f.useEffect)((function(){k(u),v&&v(u)}),[u]);var F=(0,f.useState)(!1);F[0],F[1];return l?(0,t.jsxs)(V.NI,{pos:"relative",isInvalid:!!y,maxW:w,children:[x&&(0,t.jsx)(V.lX,{zIndex:"1",cursor:"text",color:"gray.600",transition:"ease 0.2s",pos:"absolute",fontWeight:"normal",fontSize:""===R?"sm":"10px",top:""===R?"14px":"6px",_focus:{top:"6px",fontSize:"10",color:"white"},left:"55px",children:x}),(0,t.jsxs)(M.BZ,{pos:"relative",children:[(0,t.jsx)(M.Z8,{w:"55px",h:"48px",pointerEvents:"none",children:(0,t.jsx)(s.JO,{as:l,stroke:y?"#e53e3e":""===R?"#a0a3bd":"#7FCEFF",fill:"none",w:"18",h:"18px",strokeWidth:"3"})}),(0,t.jsx)(M.II,J({},r(),{fontWeight:"semibold",pt:"14px",name:n,h:"48px",pl:"55px",type:o,fontSize:"sm",borderColor:"outline"===i?"dark"===S?"gray.700":"gray.400":"transparent",bgColor:"dark"===S?"gray.900":"#eff0f6",_hover:{borderColor:"none",bg:"gray.200"},_focus:{borderColor:"blue.500",boxShadow:"0 3px 10px 0 rgb(34 41 47 / 10%)"},size:"lg",_placeholder:{color:"gray.600"},border:"1px",borderRadius:"8px"},C))]}),!!y&&(0,t.jsx)(V.J1,{fontSize:"11px",children:y.message})]}):(0,t.jsxs)(V.NI,{pos:"relative",isInvalid:!!y,maxW:w,children:[x&&(0,t.jsx)(V.lX,{zIndex:"1",cursor:"text",color:"light"===S?"gray.300":"gray.700",transition:"ease 0.2s",pos:"absolute",fontWeight:"normal",fontSize:""===R?"sm":"10px",top:""===R?"14px":"6px",_focus:{top:"6px",fontSize:"10",color:"light"===S?"white":"black"},left:"17px",children:x}),c&&c,(0,t.jsx)(M.II,J({},r(),{name:n,pt:"14px",h:"48px",pl:"4",type:o,color:"light"===S?"white":"black",fontWeight:"semibold",fontSize:"sm",borderColor:"gray.200",bgColor:"gray.100",size:"lg",_hover:{borderColor:"none",bg:"gray.200"},_focus:{borderColor:"black",boxShadow:"0 3px 10px 0 rgb(34 41 47 / 10%)"},_placeholder:{color:"gray.600"},border:"1px",borderRadius:"8px"},C)),!!y&&(0,t.jsx)(V.J1,{fontSize:"11px",children:y.message})]})}function ee(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function re(e,r){if(null==e)return{};var n,o,t=function(e,r){if(null==e)return{};var n,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function ne(e){var r=e.control,n=e.name,o=e.value,l=e.error,a=e.type,i=e.label,c=re(e,["control","name","value","error","type","label"]);return(0,t.jsx)(K.Qr,{name:n,control:r,defaultValue:o,render:function(e){var r=e.field.ref,s=re(e.field,["ref"]);return(0,t.jsx)(Y,function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){ee(e,r,n[r])}))}return e}({inputRef:r},s,{name:n,type:a,value:o,error:l},c,{label:i}))}})}var oe,te=n(1391);function le(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function ae(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){le(e,r,n[r])}))}return e}function ie(e,r){if(null==e)return{};var n,o,t=function(e,r){if(null==e)return{};var n,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function ce(e){var r=e.name,n=e.children,o=(e.variant,e.selectRef),l=e.value,a=void 0===l?"":l,i=(e.selected,e.error),c=e.register,s=e.onCh
1ange,d=ie(e,["name","children","variant","selectRef","value","selected","error","register","onChange"]),u=(0,f.useState)(""),p=u[0],x=u[1];return(0,f.useEffect)((function(){x(a),s&&s(a)}),[a]),(0,t.jsxs)(V.NI,{pos:"relative",isInvalid:!!i,children:[(0,t.jsx)(te.Ph,ae({className:"blackSelect"},c?ae({},c(r)):{ref:o||void 0,value:p,onChange:function(e){x(e.target.value),s&&s(e.target.value)}},{borderRadius:"8px",h:"50px",fontWeight:p?"semibold":"regular",name:r,fontSize:"sm",borderColor:"#DADADA",bgColor:"gray.100",_hover:{bgColor:"gray.500"},size:"lg",color:p?"white":"gray.100"},d,{children:n})),!!i&&(0,t.jsx)(V.J1,{children:i.message})]})}function se(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function de(e,r){if(null==e)return{};var n,o,t=function(e,r){if(null==e)return{};var n,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function ue(e){var r=e.control,n=e.children,o=e.name,l=e.value,a=e.error,i=de(e,["control","children","name","value","error"]);return(0,t.jsx)(K.Qr,{name:o,control:r,defaultValue:l,render:function(e){var r=e.field.ref,c=de(e.field,["ref"]);return(0,t.jsx)(ce,function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){se(e,r,n[r])}))}return e}({},c,{selectRef:r,name:o,value:l,error:a},i,{children:n}))}})}function fe(){return fe=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fe.apply(this,arguments)}var pe=function(e){return f.createElement("svg",fe({width:"current",height:"current",viewBox:"0 0 18 16",fill:"current",xmlns:"http://www.w3.org/2000/svg"},e),oe||(oe=f.createElement("path",{d:"M15.3 14.222H2.7v.89a.883.883 0 0 1-.264.628.906.906 0 0 1-.636.26H.9a.906.906 0 0 1-.636-.26A.883.883 0 0 1 0 15.11V6.222l2.232-5.145c.139-.32.37-.592.664-.784.295-.191.64-.293.992-.293h10.224c.352 0 .697.102.99.294.295.191.525.464.664.783L18 6.222v8.89a.883.883 0 0 1-.264.628.906.906 0 0 1-.636.26h-.9a.906.906 0 0 1-.636-.26.883.883 0 0 1-.264-.629v-.889ZM16.2 8H1.8v4.444h14.4V8ZM1.958 6.222h14.084l-1.93-4.444H3.889L1.959 6.222Zm2.092 5.334c-.358 0-.701-.14-.955-.391a1.325 1.325 0 0 1 0-1.886 1.359 1.359 0 0 1 1.91 0 1.325 1.325 0 0 1 0 1.886c-.254.25-.597.39-.955.39Zm9.9 0c-.358 0-.701-.14-.955-.391a1.325 1.325 0 0 1 0-1.886 1.359 1.359 0 0 1 1.91 0 1.325 1.325 0 0 1 0 1.886c-.254.25-.597.39-.955.39Z"})))};function xe(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function he(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){xe(e,r,n[r])}))}return e}function be(e,r){if(null==e)return{};var n,o,t=function(e,r){if(null==e)return{};var n,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function me(e){var r=e.tag,n=void 0===r?"grid":r,o=e.children,l=be(e,["tag","children"]);return"flex"===n?(0,t.jsx)(i.kC,he({bg:"white",boxShadow:"sm",p:"9",borderRadius:"4px"},l,{children:o})):(0,t.jsx)(i.P4,he({bg:"white",boxShadow:"sm",p:"9",borderRadius:"4px"},l,{children:o}))}function ge(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=e[n];return o}function ve(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function je(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);
1"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(r){ve(e,r,n[r])}))}return e}function ye(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"===typeof e)return ge(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,r)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var we=U.Ry().shape({credit:U.Rx().nullable(!0).transform((function(e){return""===e||Number.isNaN(e)?null:e})),value:U.Rx().nullable(!0).transform((function(e){return""===e||Number.isNaN(e)?null:e})),deadline:U.Rx().nullable(!0).transform((function(e){return""===e||Number.isNaN(e)?null:e})),segment:U.Z_().nullable(),reserved:U.Z_().nullable(),adm:U.Z_().nullable()}),Se=!0;function Ce(e){var r=e.quotas,n=(0,l.pm)(),o=(0,a.Sx)({base:"9px",md:"sm",lg:""}),p=((0,a.Sx)({base:"sm",md:"sm",lg:""}),(0,a.Sx)({base:!1,lg:!0})),x=((0,f.useRef)(null),(0,f.useState)(r)),b=x[0],w=x[1],S={borderBottom:"1px solid",borderColor:"#e8edf4"},O=(0,f.useState)([]),R=O[0],k=O[1],z=(0,f.useState)([]),F=z[0],_=z[1],I=(0,f.useState)(!0);I[0],I[1];(0,f.useEffect)((function(){window.onload=function(){parent.postMessage(document.body.scrollHeight,"*"),console.log(document.body.scrollHeight)}}),[]);var P=function(e){var n,o;(null===(n=e.target)||void 0===n?void 0:n.checked)?(k(ye(R).concat([null===(o=e.target)||void 0===o?void 0:o.value])),_(ye(F).concat([r.filter((function(r){var n;return r.id===(null===(n=e.target)||void 0===n?void 0:n.value)}))[0]]))):(k(R.filter((function(r){var n;return r!==(null===(n=e.target)||void 0===n?void 0:n.value)}))),_(F.filter((function(r){var n;return r.id!==(null===(n=e.target)||void 0===n?void 0:n.value)}))))},W=function(e,n){e?(k(ye(R).concat([n])),_(ye(F).concat([r.filter((function(e){return e.id===n}))[0]]))):(k(R.filter((function(e){return e!==n}))),_(F.filter((function(e){return e.id!==n}))))},T=function(){return console.log("cotas selecionadas",F),F.length>0},B=(0,f.useState)(!1),N=B[0],A=B[1],U=function(e){window.open("https://api.whatsapp.com/send?phone=551938018465&text=".concat(window.encodeURIComponent("Ol\xe1, tenho interesse na carta de cr\xe9dito N\xb0".concat(e.id," para ").concat(e.categoria," de R$ ").concat(e.valor_credito))))},V=function(){if(T()){var e=F.reduce((function(e,r){return"".concat(e,"Carta ").concat(r.id," - *").concat(r.categoria,"*:\n*Cr\xe9dito: R$ ").concat(r.valor_credito,"* \nPrazo: ").concat(r.parcelas,"x\nParcela: R$").concat(r.valor_parcela,"\nEntrada: R$").concat(r.entrada,"\nSaldo devedor: ").concat(Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(parseFloat(r.valor_parcela.replace(".","").replace(",","."))*parseInt(r.parcelas)),"\n\n")}),"");window.open("https://api.whatsapp.com/send?text=".concat(window.encodeURIComponent(e)))}else n({description:"Nenhuma carta foi selecionada.",status:"warning",variant:"left-accent",duration:9e3,isClosable:!0})},M=(0,f.useRef)(null),X=(0,K.cI)({resolver:(0,Z.X)(we),defaultValues:{credit:0,value:0,deadline:0,segment:"",reserved:"",adm:""}}),$=(0,f.useState)(!1),H=$[0],Q=$[1],J="#142952",G="#1A458E",Y="#fff";return(0,f.useEffect)((function(){var e=function(e){if(e.data&&"openSumModal"===e.data.action)if(F&&F.length>0){console.log("Abrindo modal com cotas selecionadas:",F.length),A(!0),window.parent&&window.parent.postMessage({type:"modalOpen"},"*");var r=document.getElementById("sum-modal");r&&r.scrollIntoView({behavior:"smooth",block:"start"})}else console.log("Nenhuma cota selecionada ao receber mensagem do pai"),n({description:"Nenhuma carta foi selecionada.",status:"warning",variant:"left-accent",duration:9e3,isClosable:!0})};return window.addEventListener("message",e),window.parent&&window.parent.postMessage({type:"iframeReady",hasSelectedQuotas:F.length>0,selectedQuotasCount:F.length},"*"),function(){window.removeEventListener("message",e)}}),[F,n]),(0,t.jsxs)(i.xu,{position:"relative",bg:Y,fontFamily:"'Cabin', -apple-system, system-ui, sans-serif",color:"#2c3e50",children:[(0,t.jsx)(q.default,{children:(0,t.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap"})}),(0,t.jsx)(E,{isOpen:N,handleCloseSumModal:function(){A(!1)},selectedQuotas:F,notFixed:!0}),(0,t.jsx)(i.kC,{flexDir:"column",w:"100%",children:(0,t.jsxs)(i.Kq,{flexDir:"column",w:"100%",maxW:"1120px",m:"0 auto",py:["6","8"],spacing:"10",justifyContent:"space-between",children:[(0,t.jsxs)(i.Kq,{spacing:"4",px:["6","2"],children:[(0,t.jsxs)(i.Ug,{justifyContent:"space-between",alignItems:"center",children:[(0,t.jsxs)(i.Kq,{spacing:"2",children:[(0,t.jsx)(i.xv,{fontSize:["xl","2xl"],color:J,fontWeight:"600",fontFamily:"'Cabin', sans-serif",lineHeight:"1.2",children:"Filtre sua busca"}),(0,t.jsx)(i.xu,{w:"48px",h:"3px",bg:"#F4C542",borderRadius:"full"})]}),!p&&(0,t.jsx)(c.hU,{"aria-label":"Mostrar filtros",borderRadius:"full",icon:(0,t.jsx)(s.JO,{as:g.Z,w:"19px",h:"19px",stroke:H?"#fff":J,fill:"none"}),bg:H?J:"#fff",_hover:{bg:H?G:"#eef1f8"},border:"1px solid",borderColor:H?J:"#e3e8f0",onClick:function(){return Q(!H)}})]}),(p||H&&!p)&&(0,t.jsx)(me,{borderRadius:"20px",boxShadow:"0 4px 24px rgba(20, 41, 82, 0.06)",p:["5","6"],children:(0,t.jsxs)(i.Kq,{direction:["column","column","row"],as:"form",onSubmit:X.handleSubmit((function(e){var n=r;e.credit&&void 0!==e.credit&&(n=n.filter((function(r){var n=parseFloat(r.valor_credito.replace(".","").replace(",","."));return console.log(n,1.05*e.credit),n<1.1*e.credit&&n>.9*e.credit}))),e.value&&void 0!==e.value&&(n=n.filter((function(r){var n=parseFloat(r.entrada.replace(".","").replace(",","."));return n<1.1*e.value&&n>.9*e.value}))),e.deadline&&(n=n.filter((function(r){return parseFloat(r.parcelas)===e.deadline}))),e.segment&&(n=n.filter((function(r){return r.categoria===e.segment}))),e.adm&&(n=n.filter((function(r){return r.administradora===e.adm}))),e.reserved&&(n=n.filter((function(r){return r.reserva===e.reserved}))),w(n)})),children:[(0,t.jsx)(ne,{backgroundColor:"white",borderRadius:"8px",control:X.control,error:X.formState.errors.credit,name:"credit",label:"Cr\xe9dito",type:"text"}),(0,t.jsx)(ne,{backgroundColor:"white",borderRadius:"8px",control:X.control,error:X.formState.errors.value,name:"value",label:"Entrada",type:"text"}),(0,t.jsx)(ne,{backgroundColor:"white",borderRadius:"8px",control:X.control,error:X.formState.errors.deadline,name:"deadline",label:"Prazo",type:"text"}),(0,t.jsx)(ne,{backgroundColor:"white",borderRadius:"8px",control:X.control,error:X.formState.errors.adm,name:"adm",label:"Administradora",type:"text"}),(0,t.jsxs)(ue,{borderRadius:"8px",control:X.control,error:X.formState.errors.segment,h:"48px",name:"segment",w:"100%",fontSize:"sm",placeholder:"Segmento",focusBorderColor:"black",backgroundColor:"#ffffff",variant:"filled",_hover:{bgColor:"gray.200"},size:"lg",color:"gray.700",children:[(0,t.jsx)("option",{value:"Im\xf3vel",children:"Im\xf3vel"}),(0,t.jsx)("option",{value:"Ve\xedculo",children:"Ve\xedculo"})]}),(0,t.jsxs)(ue,{borderRadius:"8px",control:X.control,error:X.formState.errors.reserved,h:"48px",name:"reserved",w:"100%",fontSize:"sm",placeholder:"Todas as cartas",focusBorderColor:"black",backgroundColor:"#ffffff",variant:"filled",_hover:{bgColor:"gray.200"},size:"lg",color:"gray.700",children:[(0,t.jsx)("option",{value:"Dispon\xedvel",children:"Dispon\xedveis"}),(0,t.jsx)("option",{value:"Reservado",children:"Reservadas"})]}),(0,t.jsx)(C,{borderRadius:"full",w:p?"auto":"100%",px:"8",isLoading:X.formState.isSubmitting,type:"submit",h:"48px",backgroundColor:J,color:"#fff",fontWeight:"600",fontFamily:"'Cabin', sans-serif",_hover:{backgroundColor:G,boxShadow:"0 8px 20px -8px rgba(20, 41, 82, 0.6)"},children:"Filtrar"})]})})]}),(0,t.jsxs)(i.Kq,{spacing:"6",px:["0","2","4"],children:[(0,t.jsx)(i.xu,{children:(0,t.jsxs)(i.Ug,{spacing:"3",flexWrap:"wrap",px:["2"],children:[(0,t.jsx)(D(),{trigger:function(){return(0,t.jsx)(h,{px:"5",size:"sm",borderRadius:"full",borderColor:J,color:J,fontWeight:"500",fontFamily:"'Cabin', sans-serif",_hover:{bg:J,color:"#fff",borderColor:J},children:"Imprimir"})},content:function(){return M.current}}),(0,t.jsx)(D(),{trigger:function(){return(0,t.jsx)(h,{borderRadius:"full",px:"5",size:"sm",borderColor:J,color:J,fontWeight:"500",fontFamily:"'Cabin', sans-serif",_hover:{bg:J,color:"#fff",borderColor:J},children:"Gerar PDF"})},content:function(){return M.current}}),(0,t.jsx)(L.CSVLink,{data:r,children:(0,t.jsx)(h,{borderRadius:"full",px:"5",size:"sm",borderColor:J,color:J,fontWeight:"500",fontFamily:"'Cabin', sans-serif",_hover:{bg:J,color:"#fff",borderColor:J},children:"Salvar"})}),(0,t.jsx)(h,{borderRadius:"full",onClick:function(){return V()},px:"5",size:"sm",borderColor:J,color:J,fontWeight:"600",_hover:{bg:J,color:"#fff",borderColor:J},children:"Compartilhar"})]})}),(0,t.jsxs)(i.Kq,{spacing:"0",bg:"#fff",borderRadius:"20px",overflow:"hidden",boxShadow:"0 4px 24px rgba(20, 41, 82, 0.06)",p:["3","4"],children:[(0,t.jsxs)(i.Ug,{justifyContent:"space-between",bg:Y,p:"4",borderRadius:"14px",children:[(0,t.jsxs)(i.Ug,{spacing:["3","5"],children:[(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:J,onChange:function(e){var n;if(null===(n=e.target)||void 0===n?void 0:n.checked){var o=r.map((function(e){return e.id}));k(o),_(r)}else k([""]),_([])},children:(0,t.jsx)(i.xv,{fontSize:o,color:J,fontWeight:"500",children:"Todas"})}),(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:J,onChange:function(e){var n,o=r.filter((function(e){return"Im\xf3vel"===e.categoria})),t=o.map((function(e){return e.id}));if(null===(n=e.target)||void 0===n?void 0:n.checked)k(ye(R).concat(ye(t))),_(ye(F).concat(ye(o)));else{var l=R.map((function(e){return t.includes(e)?"":e}));k(l),_(o.filter((function(e){return"Ve\xedculo"===e.categoria})))}},children:(0,t.jsx)(i.xv,{fontSize:o,color:J,fontWeight:"500",children:"Im\xf3veis"})}),(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:J,onChange:function(e){var n,o=r.filter((function(e){return"Ve\xedculo"===e.categoria})),t=o.map((function(e){return e.id}));if(null===(n=e.target)||void 0===n?void 0:n.checked)k(ye(R).concat(ye(t))),_(ye(F).concat(ye(o)));else{var l=R.map((function(e){return t.includes(e)?"":e}));k(l),_(o.filter((function(e){return"Im\xf3vel"===e.categoria})))}},children:(0,t.jsx)(i.xv,{fontSize:o,color:J,fontWeight:"500",children:"Ve\xedculos"})})]}),(0,t.jsx)(i.Ug,{})]}),(0,t.jsxs)(u.iA,{variant:"simple",ref:M,mt:"2",children:[(0,t.jsx)(u.hr,{children:(0,t.jsxs)(u.Tr,{h:"52px",children:[(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif"}),(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif",children:"Tipo"}),(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif",children:"Valor"}),(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif",children:"Entrada"}),(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif",children:"Prazo"}),(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif",children:"Parcela"}),(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif",children:"Adm"}),(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif",children:p&&"Contato"}),(0,t.jsx)(u.Th,{p:"2px",fontSize:o,color:J,borderColor:"#e8edf4",letterSpacing:"0.04em",fontWeight:"600",fontFamily:"'Cabin', sans-serif",children:p&&"Status"})]})}),(0,t.jsxs)(u.p3,{fontSize:o,fontFamily:"'Cabin', sans-serif",fontWeight:"400",children:[b&&0===b.length&&(0,t.jsx)(i.xv,{children:"Nenhuma cota encontrada."}),b&&b.map((function(e){return(0,t.jsxs)(u.Tr,{minH:"40px",h:p?"58px":"40px",py:"5",cursor:"pointer",transition:"background 0.15s ease",_hover:{bg:"#f7f9fd"},bg:R.includes(e.id)?"rgba(244, 197, 66, 0.08)":"transparent",children:[(0,t.jsx)(u.Td,je({p:"2px"},S,{children:(0,t.jsx)(i.Ug,{children:(0,t.jsx)(d.XZ,{colorScheme:"blue",borderColor:J,isChecked:R.includes(e.id),value:e.id,onChange:P})})})),(0,t.jsx)(u.Td,je({textAlign:"left",p:"2px"},S,{opacity:"Dispon\xedvel"===e.reserva?1:.6,onClick:function(){return W(!R.includes(e.id),e.id)},children:(0,t.jsx)(i.Ug,{children:"Im\xf3vel"===e.categoria?(0,t.jsx)(s.JO,{as:v.Z,stroke:J,w:p?"18px":"14px",h:p?"18px":"14px"}):(0,t.jsx)(s.JO,{as:pe,w:p?"18px":"14px",h:p?"18px":"12px",fill:J})})})),(0,t.jsx)(u.Td,je({p:"2px"},S,{opacity:"Dispon\xedvel"===e.reserva?1:.6,onClick:function(){return W(!R.includes(e.id),e.id)},children:(0,t.jsxs)(i.Ug,{spacing:"1",fontWeight:"600",color:J,children:[(0,t.jsx)("small",{children:"R$"}),(0,t.jsx)(i.xv,{children:e.valor_credito})]})})),(0,t.jsx)(u.Td,je({p:"2px"},S,{opacity:"Dispon\xedvel"===e.reserva?1:.6,onClick:function(){return W(!R.includes(e.id),e.id)},children:(0,t.jsxs)(i.Ug,{spacing:"1",children:[(0,t.jsx)("small",{children:"R$"}),(0,t.jsx)(i.xv,{children:e.entrada})]})})),(0,t.jsxs)(u.Td,je({p:"2px"},S,{opacity:"Dispon\xedvel"===e.reserva?1:.6,onClick:function(){return W(!R.includes(e.id),e.id)},children:[e.parcelas,"x"]})),(0,t.jsx)(u.Td,je({p:"2px"},S,{opacity:"Dispon\xedvel"===e.reserva?1:.6,onClick:function(){return W(!R.includes(e.id),e.id)},children:(0,t.jsxs)(i.Ug,{spacing:"1",children:[(0,t.jsx)("small",{children:"R$"}),(0,t.jsx)(i.xv,{children:e.valor_parcela})]})})),(0,t.jsx)(u.Td,je({p:"2px"},S,{opacity:"Dispon\xedvel"===e.reserva?1:.6,onClick:function(){return W(!R.includes(e.id),e.id)},children:e.administradora})),(0,t.jsx)(u.Td,je({p:"2px"},S,{children:p?(0,t.jsx)(C,{colorScheme:"blue",bg:J,color:"white",borderRadius:"full",fontWeight:"600",fontFamily:"'Cabin', sans-serif",onClick:function(){return U(e)},p:p?"":"2",size:"sm",_hover:{bg:G,boxShadow:"0 8px 16px -8px rgba(20, 41, 82, 0.6)"},isDisabled:"Dispon\xedvel"!==e.reserva,children:"Contatar"}):(0,t.jsx)(c.hU,{borderRadius:"full",onClick:function(){return U(e)},size:"sm",minW:"28px",h:"28px",p:"0",bg:J,color:"#fff",colorScheme:"blue",_hover:{bg:G},"aria-label":"Chamar no whatsapp",icon:(0,t.jsx)(m,{width:"10px",stroke:"#fff",fill:"#fff"}),isDisabled:"Dispon\xedvel"!==e.reserva})})),(0,t.jsx)(u.Td,je({p:"2px"},S,{color:"Dispon\xedvel"===e.reserva?"green.400":"red.400",onClick:function(){return W(!R.includes(e.id),e.id)},children:p?e.reserva:"Dispon\xedvel"===e.reserva?(0,t.jsx)(j.Z,{width:"12px",color:"#48bb78"}):(0,t.jsx)(y.Z,{width:"12px",color:"#DB2C2C"})}))]},e.id)}))]})]}
1),(0,t.jsx)(i.xu,{children:(0,t.jsxs)(i.Ug,{mt:"6",spacing:"3",flexWrap:"wrap",children:[(0,t.jsx)(D(),{trigger:function(){return(0,t.jsx)(h,{px:"5",size:"sm",borderRadius:"full",borderColor:J,color:J,fontWeight:"600",_hover:{bg:J,color:"#fff",borderColor:J},children:"Imprimir"})},content:function(){return M.current}}),(0,t.jsx)(D(),{trigger:function(){return(0,t.jsx)(h,{borderRadius:"full",px:"5",size:"sm",borderColor:J,color:J,fontWeight:"600",_hover:{bg:J,color:"#fff",borderColor:J},children:"Gerar PDF"})},content:function(){return M.current}}),(0,t.jsx)(L.CSVLink,{data:r,children:(0,t.jsx)(h,{borderRadius:"full",px:"5",size:"sm",borderColor:J,color:J,fontWeight:"600",_hover:{bg:J,color:"#fff",borderColor:J},children:"Salvar"})}),(0,t.jsx)(h,{borderRadius:"full",onClick:function(){return V()},px:"5",size:"sm",borderColor:J,color:J,fontWeight:"600",_hover:{bg:J,color:"#fff",borderColor:J},children:"Compartilhar"})]})})]})]})]})}),(0,t.jsx)(i.xu,{position:"fixed",right:"20px",bottom:"20px",zIndex:"2",boxShadow:"lg"})]})}}},function(e){e.O(0,[552,774,888,179],(function(){return r=5301,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.