https://www.lelloimoveis.com.br/_next/static/chunks/pages/cancelam…/[idSchedule]-b7ce1c3f5d83c8bf.js
1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="769ca0f6-6751-45c8-8558-f27a2a7bd8e0",e._sentryDebugIdIdentifier="sentry-dbid-769ca0f6-6751-45c8-8558-f27a2a7bd8e0")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7101],{15312:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>el});var a,n,r,o=i(37876),s=i(48230),l=i.n(s),d=i(16461),p=i(58016),c=i(61734),m=i(97376),g=i(93285),h=i(71614),f=i(77328),x=i.n(f),u=i(89099),b=i(14232),v=i(60929),w=i(41582);function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}let C=(0,b.forwardRef)(({title:e,titleId:t,...i},n)=>b.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",viewBox:"0 0 32 32",ref:n,"aria-labelledby":t},i),e?b.createElement("title",{id:t},e):null,a||(a=b.createElement("g",{stroke:"#353A40",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},b.createElement("path",{d:"M24 8 8 24M8 8l16 16"})))));function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}let k=(0,b.forwardRef)(({title:e,titleId:t,...i},a)=>b.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",ref:a,"aria-labelledby":t},i),e?b.createElement("title",{id:t},e):null,n||(n=b.createElement("path",{stroke:"#5c0521",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 5H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2M16 3v4M8 3v4M4 11h16"}))));var A=i(33179),P=i(16164);let L=i.p+"static/media/visit-icon.1201b94c.svg",N=i.p+"static/media/visit-icon-mobile.51168419.svg";var I=i(6999),R=i(97719),S=i(18827);function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}let O=(0,b.forwardRef)(({title:e,titleId:t,...i},a)=>b.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24",ref:a,"aria-labelledby":t},i),e?b.createElement("title",{id:t},e):null,r||(r=b.createElement("path",{stroke:"#1B1D20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 9-6 6-6-6"})))),T=(0,S.Ay)(O).withConfig({componentId:"sc-3ebe5fff-0"})(["transform:rotate(270deg);height:24px;"]),$=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-1"})(["display:flex;position:relative;max-width:1366px;height:768px;margin:0 auto;width:100%;@media (max-width:768px){height:auto;width:375px !important;margin:0 auto;flex-direction:column;align-items:center;padding:0;}"]);S.Ay.div.withConfig({componentId:"sc-3ebe5fff-2"})(["flex:1;display:flex;flex-direction:column;width:100%;max-width:100%;@media (max-width:768px){width:100%;}"]),S.Ay.div.withConfig({componentId:"sc-3ebe5fff-3"})(["flex:1;padding-right:2rem;width:100%;@media (max-width:768px){padding-right:0;width:100%;}"]);let z=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-4"})(["margin-bottom:1.5rem;margin-top:2rem;margin-left:222.3px;@media (max-width:768px){margin-left:",";margin-bottom:64px;}@media (min-width:769px) and (max-width:1024px){width:20rem;}"],e=>e.selectedReason?"12px !important":"11px"),B=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-5"})(["width:502.5px;max-height:193px;margin-left:224px;@media (min-width:769px) and (max-width:1024px){margin-left:81.5px !important;}"]),_=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-6"})(["width:350px;@media (max-width:768px){width:100%;min-width:350px !important;margin-right:13px !important;}@media (min-width:769px) and (max-width:1024px){max-width:300px !important;}"]),D=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-7"})(["margin-bottom:1.5rem;margin-top:",";margin-left:",";@media (max-width:768px){display:none;}"],e=>e.firstScreen?"98px !important":"4rem",e=>e.firstScreen?"150px !important":"0"),M=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-8"})(["margin-bottom:0.5rem;width:354px;margin-left:",";h3{margin-right:0.5rem;font-size:1.2rem;font-weight:bold;}p{font-size:1rem;}@media (max-width:768px){h3{margin-left:2px;}margin-bottom:0;width:284px;}"],e=>e.selectedReason?"1px !important":"0");S.Ay.div.withConfig({componentId:"sc-3ebe5fff-9"})(["display:flex;gap:1rem;justify-content:space-between;margin-top:40px;width:100%;flex-wrap:wrap;button{padding:12px 16px;font-size:1rem;border-radius:8px;font-weight:bold;flex:1;max-width:202px;height:48px;box-sizing:border-box;font-size:18px;font-weight:400;}@media (max-width:768px){justify-content:space-between;button{width:48%;}}@media (max-width:360px){button{width:100%;}}"]);let q=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-10"})(["display:flex;width:384px;gap:",";height:48px !important;align-items:center;margin-top:",";margin-left:",";justify-content:space-between;@media (max-width:768px){justify-content:space-between;width:351px;margin-inline:12px;margin-top:",";margin-bottom:32px;gap:1.625rem;}@media (min-width:769px) and (max-width:1024px){width:20rem;}"],e=>e.lastScreen?"2.6rem":"1.625rem",e=>e.firstScreen?"32px":"64px",e=>e.firstScreen?"150px":e.cancelScreen||e.lastScreen?"222.3px":"0",e=>e.lastScreen?"64px":"0");S.Ay.div.withConfig({componentId:"sc-3ebe5fff-11"})(["display:none;align-items:center;margin-top:",";justify-items:space-between;@media (max-width:768px){justify-content:space-between;width:100%;width:351px;display:flex;margin-left:12px !important;margin-top:64px !important;margin-bottom:32px !important;}"],e=>e.firstScreen?"32px !important":"64px !important");let V=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-12"})(["img{width:350px;height:336.99px !important;flex-shrink:0;background-color:white;margin-top:26px;}margin-left:",";@media (max-width:768px){justify-content:center;margin-top:20px;
1display:flex;justify-content:center;align-items:center;margin:0 auto !important;img{width:233px !important;height:207px !important;margin-left:69px;margin-right:73px;margin-top:48px;}}@media (min-width:769px) and (max-width:1024px){margin-left:",";}"],e=>e.isFirstScreen?"253.2px !important":"0",e=>e.isFirstScreen?"110.7px !important":"0"),H=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-13"})(["margin-top:24px;margin-left:222.3px;@media (max-width:768px){margin-inline:16px;margin-bottom:32px;}"]),F=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-14"})(["display:flex;align-items:center;padding-right:19.2px;padding-left:31.2px;background-color:var(--Primaria-Branco,#fff);border:1px solid var(--Text-Paragraph-05,#c5ced7);cursor:pointer;font-weight:500;font-size:16px;color:#333;flex-shrink:0;width:343px;min-height:69px;height:auto;border-radius:0;justify-content:space-between;&:hover{background-color:#f5f5f5;}&:first-child{border-radius:8px 8px 0 0;}&:last-child{border-bottom:1px solid var(--Text-Paragraph-05,#c5ced7);border-radius:0 0 8px 8px;}svg{color:#7a7a7a;transform:rotate(270deg);}@media (max-width:768px){padding:0 16px;width:100%;}"]),W=S.Ay.span.withConfig({componentId:"sc-3ebe5fff-15"})(["display:block;max-width:85%;white-space:normal;word-wrap:break-word;line-height:21px;min-height:21px;"]),J=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-16"})(["background-color:rgba(195,236,237,0.3);border-radius:8px;padding:1rem;margin-bottom:2rem;width:381px;margin-top:32px;margin-left:1px;p{font-size:1rem;margin-bottom:0.5rem;width:231.63px;}a{font-size:1rem;font-weight:bold;color:#c20332;text-decoration:underline;}@media (max-width:768px){width:352px !important;height:116px;margin-right:11px;padding:0;padding-top:15px;p{width:214px;height:42px;margin-left:26px;margin-top:0 !important;margin-bottom:20px !important;}a{margin-left:26px;margin-bottom:18px;width:319px !important;height:'21px !important';}}@media (min-width:769px) and (max-width:1024px){width:100%;}"]);S.Ay.textarea.withConfig({componentId:"sc-3ebe5fff-17"})(["width:100%;height:96px;padding:1rem;border:1px solid #e5e5e5;border-radius:8px;margin-bottom:1rem;resize:none;"]),(0,S.Ay)(R.A).withConfig({componentId:"sc-3ebe5fff-18"})(["display:flex;flex-wrap:wrap;gap:",";width:100%;max-width:1366px;box-sizing:border-box;background-color:black;@media (max-width:768px){flex-direction:column;gap:1rem;padding:0;margin:0;}@media (max-width:360px){gap:0.5rem;}"],({isCarousel:e})=>e?"3.2rem":"3.7rem");let U=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-19"})(["display:flex;align-items:center;justify-content:flex-start;width:384px;max-width:100%;height:102px;background-color:#ffe6d2;border-radius:8px;gap:16px;padding:16px;margin-top:",";margin-left:222.3px;margin-bottom:",";p{margin:0;color:#333;font-size:16px;font-weight:500;}@media (max-width:768px){display:none;}"],e=>"carrousel"===e.variant?"134px":"131px",e=>"carrousel"===e.variant?"4rem":"0");S.Ay.div.withConfig({componentId:"sc-3ebe5fff-20"})(["display:flex;align-items:center;justify-content:flex-start;width:384px;max-width:100%;height:102px;background-color:#ffe6d2;border-radius:8px;gap:16px;padding:16px;margin-top:134px;margin-bottom:4rem;margin-left:189px;p{margin:0;color:#333;font-size:16px;font-weight:500;}@media (max-width:768px){display:none;}"]);let Z=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-21"})(["display:none;align-items:center;justify-content:flex-start;width:384px;max-width:100%;height:102px;background-color:#ffe6d2;border-radius:8px;gap:16px;padding:16px;margin-top:85px;p{margin:0;color:#333;font-size:16px;font-weight:500;}@media (max-width:768px){display:flex;margin-top:32px;width:100%;margin-left:12px !important;width:351px;}"]);S.Ay.div.withConfig({componentId:"sc-3ebe5fff-22"})(["display:none;align-items:center;justify-content:flex-start;width:384px;max-width:100%;height:102px;background-color:#ffe6d2;border-radius:8px;gap:16px;padding:16px;margin-top:107px;margin-bottom:4rem;p{margin:0;color:#333;font-size:16px;font-weight:500;}@media (max-width:768px){display:flex;margin-top:32px;width:100%;}"]);let K=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-23"})(["margin-top:5px;svg{fill:none !important;path{fill:none !important;}}"]);S.Ay.div.withConfig({componentId:"sc-3ebe5fff-24"})(["svg{fill:#8a99a8 !important;path{fill:#8a99a8 !important;}}"]);let Q=S.Ay.button.withConfig({componentId:"sc-3ebe5fff-25"})(["position:absolute;top:0;background:none;border:none;right:0;padding:0;cursor:pointer;z-index:100;margin-top:38px;margin-right:26px;@media (max-width:768px){margin-top:22px;margin-right:12px;right:0;}"]),X=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-26"})(["","{max-width:610px;text-align:center;}"],I.Pi),Y=S.Ay.h1.withConfig({componentId:"sc-3ebe5fff-27"})(["width:612px;height:32px;flex-shrink:0;color:var(--Text-Paragraph-02,#353a40);font-family:'Anek Latin',sans-serif;font-size:24px;font-style:normal;font-weight:700;line-height:130%;margin-bottom:0;margin-top:38px;margin-left:224px;@media (max-width:768px){width:",";height:",";text-align:start;font-size:20px !important;align-content:start;margin-left:15px;margin-top:22px;width:243px;}@media (min-width:769px) and (max-width:1024px){margin-left:",";}"],e=>e.isFirstScreen?"282px !important":e.isCancelScreen?"264px !important":e.isLastScreen?"224px !important":"243px",e=>e.isConfirmation?"52px !important":"26px",e=>e.isFirstScreen?"110.7px !important":(e.isCancelScreen,"81.5px !important")),G=S.Ay.h1.withConfig({componentId:"sc-3ebe5fff-28"})(["width:",";color:var(--Text-Paragraph-02,#353a40);font-family:'Anek Latin',sans-serif;font-size:",";font-weight:700;font-style:normal;margin-left:",";@media (min-width:769px){margin-top:",";margin-top:57px;}@media (max-width:768px){width:264px;text-align:start;font-size:",";align-content:start;margin-left:15px !important;margin-top:'32px !important';margin-left:",";margin-bottom:",";}"],e=>e.isConfirmation?"177px !important":"264px",e=>e.isConfirmation?"16px !important":"18px",e=>e.isCancelPage||e.isLastPage||e.isConfirmation?"222.3px !important":"0",e=>e.isCancelPage||e.isLastPage||e.isConfirmation?"96px !important":"0",e=>e.isConfirmation?"16px !important":"18px !important",e=>e.isLastPage?"11px !important":e.isConfirmation?"12px !important":"15px",e=>e.isLastPage?"16px !important":""),ee=S.Ay.p.withConfig({componentId:"sc-3ebe5fff-29"})(["width:448px;height:62px;flex-shrink:0;color:var(--Text-Paragraph-02,#353a40);font-family:'Anek Latin',sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:130%;margin-top:64px;margin-bottom:32px;margin-left:",";@media (max-width:768px){width:339px;font-size:16px;margin-top:48px;margin-left:12px;margin-right:24px;margin-bottom:32px;}"],e=>e.firstScreen?"150px":"0"),et=S.Ay.p.withConfig({componentId:"sc-3ebe5fff-30"})(["width:351px;height:21px;top:133px;left:758px;gap:0px;opacity:0px;margin-top:16px;font-family:Anek Latin;font-size:16px;font-weight:400;line-height:20.8px;text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none;margin-left:222.3px !important;@media (max-width:768px){margin-left:11px !important;}@media (min-width:769px) and (max-width:1024px){width:20rem;}"]),ei=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-31"})(["margin-top:",";margin-left:",";margin-right:",";width:",";height:438px;@media (min-width:769px) and (max-width:1024px){margin-left:115px !important;}"],e=>e.isMobile?"32px":"64px",e=>e.isMobile?"12px":"224px",e=>e.isMobile?"12px":"224px",e=>e.isMobile?"351px":"468px"),ea=S.Ay.p.withConfig({componentId:"sc-3ebe5fff-32"})(["width:",";height:",";flex-shrink:0;color:var(--Text-Paragraph-02,#353a40);font-family:'Anek Latin',sans-serif;font-size:18px;font-style:normal;font-weight:400;line-height:130%;margin-top:24px;margin-bottom:2rem;margin-left:224px !important;@media (max-width:768px){width:",";text-align:start;font-size:18px !important;align-content:start;margin-left:12px !important;font-size:16px !important;margin-top:",";margin-left:",";}@media (min-width:769px) and (max-width:1024px){margin-left:81.5px !important;}"],e=>e.isConfirmation?"460px !important":"470px",e=>e.isConfirmation?"43px":"41px",e=>e.isConfirmation?"339px !important":"351px",e=>e.isConfirmation?"32px !important":"24px",e=>e.isConfirmation?"12px !important":"15px"),en=S.Ay.div.withConfig({componentId:"sc-3ebe5fff-33"})(["width:24px;height:24px;flex-shrink:0;margin-right:8px;svg{path{fill:#8a99a8 !important;}}"]),er=S.Ay.h3.withConfig({componentId:"sc-3ebe5fff-34"})(["font-family:'Anek Latin',sans-serif;font-size:14px !important;font-weight:500;line-height:130%;color:#8a99a8;display:flex;align-items:center;width:",";height:24px;"],e=>e.width?`${e.width}px`:"123px"),eo=S.Ay.p.withConfig({componentId:"sc-3ebe5fff-35"})(["font-family:'Anek Latin',sans-serif;font-size:18px !important;font-weight:500;line-height:130%;
1color:#1b1d20;margin-bottom:1rem;margin-top:8px;width:",";height:auto;@media (max-width:768px){margin-left:3px;}"],e=>e.width?`${e.width}px`:"320px");(0,S.Ay)(eo).withConfig({componentId:"sc-3ebe5fff-36"})(["margin-bottom:24px !important;width:",";height:auto;"],e=>e.width?e.width:"320px"),S.Ay.button.withConfig({componentId:"sc-3ebe5fff-37"})(["width:",";padding-inline:0 !important;font-size:18px;font-weight:400;@media (min-width:769px){width:",";}"],e=>e.isMinhasVisitas?"177px !important":"202.85px !important",e=>e.isMinhasVisitas?"193.64px !important":"221.4px !important"),S.Ay.button.withConfig({componentId:"sc-3ebe5fff-38"})(["width:",";padding-inline:0 !important;font-size:18px;font-weight:400;font-family:Anek Latin;line-height:23.4px;border:1px solid rgb(194,3,50,1);@media (max-width:768px){width:",";}"],e=>e.isMinhasVisitas?"145.5px !important":"136px !important",e=>e.isMinhasVisitas?"133px !important":"124.15px !important");let es=w.zQ.pick(["idReason"]),el=()=>{let e=(0,u.useRouter)(),t=Number(e.query.idSchedule),i=Number(e.query.id),a="aluguel"===e.query.interest?"rent":"buy",n=Number.isFinite(t)&&Number.isFinite(i),{data:r}=(0,h.ru)(i,!!i),{data:s}=(0,h.U7)({interest:a,statusReason:1,statusSchedule:4,motivoLiberado:1}),[f,y]=(0,b.useState)(1),[j,I]=(0,b.useState)(null),[R,S]=(0,b.useState)(null),[E,O]=(0,b.useState)(!1),[el,ed]=(0,b.useState)(!1),[ep,ec]=(0,b.useState)(!1),{mutate:em}=(0,h.ts)(),{getFieldProps:eg,handleSubmit:eh,setFieldValue:ef,errors:ex,touched:eu}=(0,h.Zr)({initialValues:{idReason:"",textReason:""},validationSchema:es,onSubmit:({idReason:e,textReason:i})=>{n&&em({idReason:Number(e),status:4,note:i,interest:a,id:t},{onSuccess:()=>{(()=>{let e="rent"===a?"aluguel":"venda";c.push({event:`visita_cancelada_${e}`})})(),O(!0),y(4)}})}});(0,b.useEffect)(()=>{let e=()=>{let e=window.innerWidth;ed(e<=768),ec(e>768&&e<=1024)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),(0,b.useEffect)(()=>{window.scrollTo({top:0})},[f]);let{userInfo:eb}=(0,h.kH)((0,b.useCallback)(e=>({userInfo:e.userInfo}),[])),{id:ev}=eb,{data:ew}=(0,h.nu)({userId:ev}),ey=ew?.find(e=>e?.idImovel===r?.idImovel),eC=ey?.dataAgendada?(0,w.sO)(ey.dataAgendada.toString()):{},ej=[51,75,67],ek=el?"":ep?"300px":67===R?"412px":"100%";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x(),{children:(0,o.jsx)("title",{children:"Cancelamento de Visita | Lello Im\xf3veis"})}),(0,o.jsxs)(X,{children:[1===f&&(0,o.jsxs)($,{children:[(0,o.jsxs)(v.A,{xs:12,lg:5,style:{padding:0},children:[(0,o.jsx)(Y,{"data-testid":"cancel-visit-page-heading-nao-consegue-realizar-visita",isFirstScreen:!0,children:"N\xe3o consegue realizar a visita?"}),(0,o.jsx)(V,{"data-testid":"cancel-visit-page-image-cancelar-visita",isFirstScreen:!0,children:(0,o.jsx)("img",{src:el?N:L,alt:"Cancelar visita"})})]}),(0,o.jsxs)(v.A,{xs:12,lg:5,style:{padding:0},children:[(0,o.jsxs)(D,{firstScreen:!0,children:[(0,o.jsxs)(M,{"data-testid":"cancel-visit-page-calendar-data-e-hor\xe1rio:",children:[(0,o.jsxs)(er,{children:[(0,o.jsx)(en,{children:(0,o.jsx)(A.A,{width:24,height:24,fill:"#8a99a8"})}),"Data e hor\xe1rio:"]}),(0,o.jsxs)(eo,{width:351,children:[(0,w.ZH)(eC?.weekday),", ",eC?.day," de ",eC?.month," \xe0s"," ",ey?.horaAgendada]})]}),(0,o.jsxs)(M,{"data-testid":"cancel-visit-page-map-pin-endereco",children:[(0,o.jsxs)(er,{width:93,children:[(0,o.jsx)(en,{children:(0,o.jsx)(P.A,{className:"me-2",fill:"#8A99A8"})}),"Endere\xe7o:"]}),(0,o.jsxs)(eo,{children:[r?.endereco,", ",r?.bairro,", ",r?.cidade]})]})]}),(0,o.jsx)(ee,{"data-testid":"cancel-visit-page-subtitle-para-cancelar",firstScreen:!0,children:"Para cancelar, basta clicar no bot\xe3o abaixo. Mas lembre-se que \xe9 poss\xedvel reagendar em novo hor\xe1rio e realizar a visita normalmente!"}),(0,o.jsxs)(q,{firstScreen:!0,children:[(0,o.jsx)(d.$,{"data-testid":"cancel-visit-page-button-cancelar",type:"button",variant:"outlined",className:"px-5",onClick:()=>y(2),children:"Cancelar"}),(0,o.jsx)(d.$,{asChild:!0,fullWidth:!0,"data-testid":"cancel-visit-page-button-reagendar",type:"button",children:(0,o.jsx)(l(),{href:`/reagendamento-de-visita/${i}/${"buy"===a?"comprar":"aluguel"}/${t}`,children:"Reagendar"})})]})]}),(0,o.jsx)(Q,{firstScreen:!0,type:"button",onClick:()=>e.back(),children:(0,o.jsx)(C,{})})]}),2===f&&(0,o.jsxs)($,{children:[(0,o.jsxs)(v.A,{xs:12,lg:5,style:{padding:0},children:[(0,o.jsx)(Y,{"data-testid":"cancel-visit-page-heading-cancelar-visita",isCancelScreen:!0,children:"Cancelar visita"}),(0,o.jsx)(ea,{"data-testid":"cancel-visit-page-subtitle-lembre-se",children:"Lembre-se que o seu cancelamento impacta nos planos de corretores e do pr\xf3prio propriet\xe1rio."}),window.innerWidth>768&&(0,o.jsx)(B,{children:(0,o.jsx)(m.a,{imageSrc:r?.fotos[0].enderecoFoto,imageAlt:r?.fotos[0].descricaoFoto,realtyType:r?.tipoImovel,metering:r?.metragemPrincipal,street:r?.endereco,district:r?.bairro,city:r?.cidade,state:r?.uf,price:"rent"===a?r?.valorLocacao:r?.valorVenda,room:r?.quantidadeDormitorios,bathroom:r?.quantidadeBanheiros,parkingSpace:r?.quantidadeVagas,interest:a,link:r?(0,w.cV)(r,a):"/",className:"mb-4"})})]}),(0,o.jsxs)(v.A,{xs:12,lg:5,style:{padding:0},children:[(0,o.jsx)(G,{"data-testid":"cancel-visit-page-heading-qual-o-motivo-cancelamento",isCancelPage:!0,children:"Qual o motivo do cancelamento?"}),(0,o.jsxs)(H,{children:[s?.map(({id:e,descricao:t},i)=>(0,o.jsxs)(F,{"data-testid":`cancel-visit-page-container-motivos-${i}`,onClick:()=>{ef("idReason",e),S(e),I(t),y(3)},children:[(0,o.jsx)(W,{children:t}),(0,o.jsx)(T,{})]},e)),ex.idReason&&eu.idReason&&(0,o.jsx)("p",{className:"text-primary","aria-invalid":"true",children:ex.idReason})]})]}),(0,o.jsx)(Q,{firstScreen:!0,type:"button",onClick:()=>e.back(),children:(0,o.jsx)(C,{})})]}),3===f&&(()=>{let s="",l=!1;switch(R){case 47:s="Tem certeza que n\xe3o deseja reagendar a visita?";break;case 51:case 75:s="Sua visita foi cancelada.";break;case 63:case 32:case 76:s="Poderia nos contar o motivo da desist\xeancia?",l=!0;break;case 67:s="Poderia nos contar quais s\xe3o as caracter\xedsticas que busca?",l=!0;break;default:s=""}return(0,o.jsxs)($,{children:[(0,o.jsxs)(v.A,{xs:12,lg:5,style:{padding:0},children:[(0,o.jsx)(Y,{"data-testid":"cancel-visit-page-heading-realmente-cancelar-a-visita",isConfirmation:!0,children:"Voc\xea realmente deseja cancelar a visita?"}),(0,o.jsx)(ea,{"data-testid":"cancel-visit-page-subtitle-seu-cancelamento",isConfirmation:!0,children:"Seu cancelamento pode diminuir as chances de fechar neg\xf3cio rapidamente."}),!el&&window.innerWidth>768&&(0,o.jsx)(B,{children:(0,o.jsx)(m.a,{imageSrc:r?.fotos[0].enderecoFoto,imageAlt:r?.fotos[0].descricaoFoto,realtyType:r?.tipoImovel,metering:r?.metragemPrincipal,street:r?.endereco,district:r?.bairro,city:r?.cidade,state:r?.uf,price:"rent"===a?r?.valorLocacao:r?.valorVenda,room:r?.quantidadeDormitorios,bathroom:r?.quantidadeBanheiros,parkingSpace:r?.quantidadeVagas,interest:a,link:r?(0,w.cV)(r,a):"/",className:"mb-4"})})]}),(0,o.jsxs)(v.A,{xs:12,lg:5,style:{padding:0},children:[(0,o.jsx)(G,{"data-testid":"cancel-visit-page-heading-motivo-do-cancelamento",isConfirmation:!0,children:"Motivo do cancelamento:"}),(0,o.jsx)(et,{"data-testid":"cancel-visit-page-heading-motivo-do-cancelamento",selectedReasonId:47===R,children:j}),(0,o.jsxs)(z,{selectedReason:!0,children:[(0,o.jsxs)(M,{"data-testid":"cancel-visit-page-detalhes-visita-e-data",selectedReason:!0,children:[(0,o.jsx)("h3",{className:"d-flex align-items-center text-neutral f-4 w-full",children:"Detalhes da visita"}),(0,o.jsxs)("div",{className:"d-flex align-items-center text-neutral fw-medium f-3",style:{marginTop:16},children:[(0,o.jsx)(en,{children:(0,o.jsx)(A.A,{fill:"#8a99a8"})})," ","Data e hor\xe1rio:"]}),(0,o.jsxs)(eo,{children:[(0,w.ZH)(eC?.weekday),", ",eC?.day," de ",eC?.month," \xe0s"," ",ey?.horaAgendada]})]}),47===R&&(0,o.jsxs)(J,{"data-testid":"cancel-visit-page-info-box-reagendar-visita",children:[(0,o.jsx)("p",{children:(0,o.jsx)("b",{children:s})}),(0,o.jsx)("a",{href:`/reagendamento-de-visita/${i}/${"buy"===a?"comprar":"aluguel"}/${t}`,children:"Reagendar visita"})]}),l&&(0,o.jsxs)("div",{"data-testid":"cancel-visit-page-area-motivos-message",style:{marginTop:32,marginRight:14,width:ek},children:[(0,o.jsx)("span",{className:"font-bold",style:{fontWeight:"bold",display:"block",marginBottom:8},children:s}),(0,o.jsx)(_,{"data-testid":"cancel-visit-page-area-motivos",children:(0,o.jsx)(p.T,{name:"textReason",placeholder:"Digite o motivo...",value:eg("textReason").value,onChange:eg("textReason").onChange,onBlur:eg("textReason").onBlur,rows:5,maxLength:600,className:"mb-6"})})]})]}),(0,o.jsxs)(q,{cancelScreen:!0,children:[(0,o.jsx)(d.$,{"data-testid":"cancel-visit-page-button-voltar",type:"button",variant:"outlined",onClick:()=>y(2),children:"Voltar"}),(0,o.jsx)(d.$,{"data-testid":"cancel-visit-page-button-cancelar-visita",type:"button",onClick:eh,disabled:!n,children:"Cancelar visita"})]})]}),(0,o.jsx)(Q,{firstScreen:!0,type:"button",onClick:()=>e.back(),children:(0,o.jsx)(C,{})})]})})(),4===f&&(()=>{let t=null!=R&&ej.includes(R);return(0,o.jsxs)($,{children:[(0,o.jsxs)(v.A,{xs:12,lg:5,style:{padding:0},children:[(0,o.jsx)(Y,{"data-testid":"cancel-visit-page-heading-visita-foi-cancelada",isFirstScreen:!0,children:"A visita foi cancelada"}),(0,o.jsxs)(Z,{"data-testid":"cancel-visit-page-subtitle-ja-avisamos-a-desistencia",children:[(0,o.jsx)(K,{children:(0,o.jsx)(k,{width:32,height:32})}),(0,o.jsx)("p",{style:{color:"#353A40"},children:"Sua visita foi cancelada e j\xe1 avisamos a desist\xeancia ao corretor e ao propriet\xe1rio."})]}),t?(0,o.jsxs)(ei,{isMobile:el,children:[(0,o.jsx)(g.u,{title:"Visitar outros im\xf3veis",realtyData:r,interest:51===R?"buy":a,isReserved:!0,cancelled:!0}),el&&(0,o.jsx)("div",{"data-testid":"cancel-visit-page-similars-button-ver-mais",style:{textAlign:"right"},children:(0,o.jsx)(l(),{href:`/${51===R||"buy"===a?"venda":"aluguel"}/${r?.finalidadeResidencial?"residencial":"comercial"}`,children:(0,o.jsx)("span",{style:{fontWeight:"500",color:"primary",textDecoration:"underline"},children:"Ver mais"})})})]}):window.innerWidth>768&&(0,o.jsx)("div",{style:{width:"502.5px",maxHeight:"193px",marginTop:64,marginLeft:224},children:(0,o.jsx)(m.a,{imageSrc:r?.fotos[0].enderecoFoto,imageAlt:r?.fotos[0].descricaoFoto,realtyType:r?.tipoImovel,metering:r?.metragemPrincipal,street:r?.endereco,district:r?.bairro,city:r?.cidade,state:r?.uf,price:"rent"===a?r?.valorLocacao:r?.valorVenda,room:r?.quantidadeDormitorios,bathroom:r?.quantidadeBanheiros,parkingSpace:r?.quantidadeVagas,interest:a,link:r?(0,w.cV)(r,a):"/",className:"mb-4"})})]}),(0,o.jsx)(v.A,{xs:12,lg:5,style:{padding:0},children:t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(U,{"data-testid":"cancel-visit-page-recomendation-banner-ja-avisamos",variant:"carrousel",children:[(0,o.jsx)(K,{children:(0,o.jsx)(k,{width:32,height:32,fill:"#5C0521"})}),(0,o.jsx)("p",{style:{color:"#353A40"},children:"Sua visita foi cancelada e j\xe1 avisamos a desist\xeancia ao corretor e ao propriet\xe1rio."})]}),(0,o.jsxs)(q,{lastScreen:!0,children:[(0,o.jsx)(l(),{href:"/minhas-visitas",passHref:!0,children:(0,o.jsx)(d.$,{"data-testid":"cancel-visit-page-button-minhas-visitas",type:"button",variant:"outlined",isMinhasVisitas:!0,children:"Minhas visitas"})}),(0,o.jsx)(l(),{href:`/${51===R||"buy"===a?"venda":"aluguel"}/${r?.finalidadeResidencial?"residencial":"comercial"}`,passHref:!0,children:(0,o.jsx)(d.$,{"data-testid":"cancel-visit-page-button-buscar-imoveis",type:"button",isMinhasVisitas:!0,children:"Buscar im\xf3veis"})})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(U,{"data-testid":"cancel-visit-page-recomendation-visit-ja-avisamos",variant:"lastScreen",children:[(0,o.jsx)(K,{children:(0,o.jsx)(k,{width:32,height:32,fill:"#5C0521"})}),(0,o.jsx)("p",{style:{color:"#353A40"},children:"Sua visita foi cancelada e j\xe1 avisamos a desist\xeancia ao corretor e ao propriet\xe1rio."})]}),(0,o.jsxs)(q,{lastScreen:!0,children:[(0,o.jsx)(l(),{href:"/minhas-visitas",passHref:!0,children:(0,o.jsx)(d.$,{"data-testid":"cancel-visit-page-button-minhas-visitas",type:"button",variant:"outlined",isMinhasVisitas:!0,children:"Minhas visitas"})}),(0,o.jsx)("a",{href:`/${51===R||"buy"===a?"venda":"aluguel"}/${r?.finalidadeResidencial?"residencial":"comercial"}`,children:(0,o.jsx)(d.$,{"data-testid":"cancel-visit-page-button-buscar-imoveis",type:"button",isMinhasVisitas:!0,children:"Buscar im\xf3veis"})})]})]})}),(0,o.jsx)(Q,{firstScreen:!0,type:"button",onClick:()=>e.back(),children:(0,o.jsx)(C,{})})]})})()]})]})}},16164:(e,t,i)=>{"use strict";i.d(t,{A:()=>
1o});var a,n=i(14232);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}let o=(0,n.forwardRef)(({title:e,titleId:t,...i},o)=>n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",ref:o,"aria-labelledby":t},i),e?n.createElement("title",{id:t},e):null,a||(a=n.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M11.16 2.047c-1.86.158-3.556.891-5.122 2.216C4.659 5.429 3.583 7.292 3.186 9.2c-.137.658-.163.957-.161 1.82.002.766.016.955.106 1.46.29 1.614.866 2.903 1.862 4.16.325.41 4.659 4.788 5.087 5.139.329.269.697.469 1.08.588.434.134 1.246.134 1.68 0a3.2 3.2 0 0 0 1.08-.588c.421-.345 4.758-4.724 5.088-5.139 1.029-1.291 1.612-2.637 1.897-4.38.088-.534.1-1.942.021-2.44-.167-1.061-.415-1.867-.848-2.76-.775-1.596-1.894-2.82-3.443-3.764-1.624-.99-3.496-1.417-5.475-1.249m2.05 2.051c2.174.402 4.049 1.789 5.012 3.706.519 1.034.776 2.068.777 3.137.003 1.627-.546 3.217-1.532 4.439-.089.11-1.216 1.259-2.504 2.554-2.55 2.562-2.53 2.545-2.963 2.545s-.413.017-2.963-2.545c-1.288-1.295-2.415-2.444-2.504-2.554-1.354-1.678-1.86-4.022-1.318-6.1.738-2.824 3.018-4.833 5.945-5.239.388-.054 1.641-.019 2.05.057m-1.832 2.96c-2.084.324-3.585 2.285-3.343 4.367.256 2.204 2.224 3.792 4.39 3.54 2.204-.256 3.792-2.224 3.54-4.39-.265-2.284-2.331-3.868-4.587-3.517m1.114 2.002c.126.032.323.107.438.165.269.136.709.576.845.845a2.05 2.05 0 0 1 0 1.86c-.136.269-.576.709-.845.845a2.05 2.05 0 0 1-1.86 0c-.269-.136-.709-.576-.845-.845a2.05 2.05 0 0 1 0-1.86c.137-.27.576-.709.846-.845a2.08 2.08 0 0 1 1.421-.165"}))))},22573:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/cancelamento-de-visita/[id]/[interest]/[idSchedule]",function(){return i(15312)}])},33179:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a,n=i(14232);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}let o=(0,n.forwardRef)(({title:e,titleId:t,...i},o)=>n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",ref:o,"aria-labelledby":t},i),e?n.createElement("title",{id:t},e):null,a||(a=n.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M7.59 2.064a.9.9 0 0 0-.328.197C7.054 2.469 7 2.705 7 3.407V4h-.61c-1.243.001-1.789.198-2.49.9-.519.519-.749.956-.859 1.633-.055.338-.055 12.596 0 12.934.11.677.34 1.114.859 1.633s.956.749 1.633.859c.338.055 12.596.055 12.934 0 .677-.11 1.114-.34 1.633-.859s.749-.956.859-1.633c.055-.338.055-12.596 0-12.934-.11-.677-.34-1.114-.859-1.633-.701-.702-1.247-.899-2.49-.9H17v-.593c0-.702-.054-.938-.261-1.146-.344-.343-1.134-.343-1.478 0-.207.208-.261.444-.261 1.146V4H9v-.593c0-.702-.054-.938-.261-1.146-.241-.241-.732-.325-1.149-.197M7 6.593c0 .702.054.938.261 1.146.344.343 1.134.343 1.478 0C8.946 7.531 9 7.295 9 6.593V6h6v.593c0 .702.054.938.261 1.146.344.343 1.134.343 1.478 0 .207-.208.261-.444.261-1.15v-.596l.65.014c.627.013.657.017.839.124.103.061.236.173.294.25.208.273.213.319.215 2.029L19 10H4.997l.011-1.65.012-1.65.111-.189c.125-.213.318-.375.539-.454.098-.035.353-.054.74-.055L7 6zm11.991 9.057-.011 3.65-.111.189a1.04 1.04 0 0 1-.539.454c-.222.079-12.438.079-12.66 0a1.04 1.04 0 0 1-.539-.454L5.02 19.3l-.011-3.65L4.998 12h14.004zM7.59 14.064a.9.9 0 0 0-.328.197C7.023 14.499 7 14.655 7 16c0 1.344.024 1.501.261 1.739.238.237.395.261 1.739.261s1.501-.024 1.739-.261c.237-.238.261-.395.261-1.739s-.024-1.501-.261-1.739c-.239-.239-.393-.261-1.756-.258-.935.002-1.245.016-1.393.061"}))))},75223:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var a=i(15039),n=i.n(a),r=i(14232),o=i(44935),s=i(55440),l=i(37876);function d({min:e,now:t,max:i,label:a,visuallyHidden:r,striped:o,animated:s,className:d,style:p,variant:c,bsPrefix:m,...g},h){return(0,l.jsx)("div",{ref:h,...g,role:"progressbar",className:n()(d,`${m}-bar`,{[`bg-${c}`]:c,[`${m}-bar-animated`]:s,[`${m}-bar-striped`]:s||o}),style:{width:`${Math.round((t-e)/(i-e)*1e5)/1e3}%`,...p},"aria-valuenow":t,"aria-valuemin":e,"aria-valuemax":i,children:r?(0,l.jsx)("span",{className:"visually-hidden",children:a}):a})}let p=r.forwardRef(({isChild:e=!1,...t},i)=>{let a={min:0,max:100,animated:!1,visuallyHidden:!1,striped:!1,...t};if(a.bsPrefix=(0,o.oU)(a.bsPrefix,"progress"),e)return d(a,i);let{min:p,now:c,max:m,label:g,visuallyHidden:h,striped:f,animated:x,bsPrefix:u,variant:b,className:v,children:w,...y}=a;return(0,l.jsx)("div",{ref:i,...y,className:n()(v,u),children:w?(0,s.Tj)(w,e=>(0,r.cloneElement)(e,{isChild:!0})):d({min:p,now:c,max:m,label:g,visuallyHidden:h,striped:f,animated:x,bsPrefix:u,variant:b},i)})});p.displayName="ProgressBar";let c=p},91238:function(e,t,i){let a;a=i(14232),e.exports=(()=>{var e={703:(e,t,i)=>{"use strict";var a=i(414);function n(){}function r(){}r.resetWarningCache=n,e.exports=function(){function e(e,t,i,n,r,o){if(o!==a){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
1:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:n};return i.PropTypes=i,i}},697:(e,t,i)=>{e.exports=i(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{"use strict";e.exports=a}},t={};function i(a){var n=t[a];if(void 0!==n)return n.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.r(n),i.d(n,{default:()=>b});var e=i(98),t=i.n(e),a=i(697),r=i.n(a);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(this,arguments)}var s=function(e){var i=e.pageClassName,a=e.pageLinkClassName,n=e.page,r=e.selected,s=e.activeClassName,l=e.activeLinkClassName,d=e.getEventListener,p=e.pageSelectedHandler,c=e.href,m=e.extraAriaContext,g=e.pageLabelBuilder,h=e.rel,f=e.ariaLabel||"Page "+n+(m?" "+m:""),x=null;return r&&(x="page",f=e.ariaLabel||"Page "+n+" is your current page",i=void 0!==i?i+" "+s:s,void 0!==a?void 0!==l&&(a=a+" "+l):a=l),t().createElement("li",{className:i},t().createElement("a",o({rel:h,role:c?void 0:"button",className:a,href:c,tabIndex:r?"-1":"0","aria-label":f,"aria-current":x,onKeyPress:p},d(p)),g(n)))};function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(this,arguments)}s.propTypes={pageSelectedHandler:r().func.isRequired,selected:r().bool.isRequired,pageClassName:r().string,pageLinkClassName:r().string,activeClassName:r().string,activeLinkClassName:r().string,extraAriaContext:r().string,href:r().string,ariaLabel:r().string,page:r().number.isRequired,getEventListener:r().func.isRequired,pageLabelBuilder:r().func.isRequired,rel:r().string};var d=function(e){var i=e.breakLabel,a=e.breakAriaLabel,n=e.breakClassName,r=e.breakLinkClassName,o=e.breakHandler,s=e.getEventListener;return t().createElement("li",{className:n||"break"},t().createElement("a",l({className:r,role:"button",tabIndex:"0","aria-label":a,onKeyPress:o},s(o)),i))};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!=e?e:t}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(this,arguments)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}d.propTypes={breakLabel:r().oneOfType([r().string,r().node]),breakAriaLabel:r().string,breakClassName:r().string,breakLinkClassName:r().string,breakHandler:r().func.isRequired,getEventListener:r().func.isRequired};var u=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&g(r,e);var i,a,n=(a=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(e=a?Reflect.construct(t,arguments,f(this).constructor):t.apply(this,arguments),e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return h(this)});function r(e){var i;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),x(h(i=n.call(this,e)),"handlePreviousPage",function(e){var t=i.state.selected;i.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})}),x(h(i),"handleNextPage",function(e){var t=i.state.selected,a=i.props.pageCount;i.handleClick(e,null,t<a-1?t+1:void 0,{isNext:!0})}),x(h(i),"handlePageSelected",function(e,t){if(i.state.selected===e)return i.callActiveCallback(e),void i.handleClick(t,null,void 0,{isActive:!0});i.handleClick(t,null,e)}),x(h(i),"handlePageChange",function(e){i.state.selected!==e&&(i.setState({selected:e}),i.callCallback(e))}),x(h(i),"getEventListener",function(e){return x({},i.props.eventListener,e)}),x(h(i),"handleClick",function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n.isPrevious,o=n.isNext,s=n.isBreak,l=n.isActive;e.preventDefault?e.preventDefault():e.returnValue=!1;var d=i.state.selected,p=i.props.onClick,c=a;if(p){var m=p({index:t,selected:d,nextSelectedPage:a,event:e,isPrevious:void 0!==r&&r,isNext:void 0!==o&&o,isBreak:void 0!==s&&s,isActive:void 0!==l&&l});if(!1===m)return;Number.isInteger(m)&&(c=m)}void 0!==c&&i.handlePageChange(c)}),x(h(i),"handleBreakClick",function(e,t){var a=i.state.selected;i.handleClick(t,e,a<e?i.getForwardJump():i.getBackwardJump(),{isBreak:!0})}),x(h(i),"callCallback",function(e){void 0!==i.props.onPageChange&&"function"==typeof i.props.onPageChange&&i.props.onPageChange({selected:e})}),x(h(i),"callActiveCallback",function(e){void 0!==i.props.onPageActive&&"function"==typeof i.props.onPageActive&&i.props.onPageActive({selected:e})}),x(h(i),"getElementPageRel",function(e){var t=i.state.selected,a=i.props,n=a.nextPageRel,r=a.prevPageRel,o=a.selectedPageRel;return t-1===e?r:t===e?o:t+1===e?n:void 0}),x(h(i),"pagination",function(){var e=[],a=i.props,n=a.pageRangeDisplayed,r=a.pageCount,o=a.marginPagesDisplayed,s=a.breakLabel,l=a.breakClassName,p=a.breakLinkClassName,c=a.breakAriaLabels,m=i.state.selected;if(r<=n)for(var g=0;g<r;g++)e.push(i.getPageElement(g));else{var h=n/2,f=n-h;m>r-n/2?h=n-(f=r-m):m<n/2&&(f=n-(h=m));var x,u,b=function(e){return i.getPageElement(e)},v=[];for(x=0;x<r;x++){var w=x+1;if(w<=o)v.push({type:"page",index:x,display:b(x)});else if(w>r-o)v.push({type:"page",index:x,display:b(x)});else if(x>=m-h&&x<=m+(0===m&&n>1?f-1:f))v.push({type:"page",index:x,display:b(x)});else if(s&&v.length>0&&v[v.length-1].display!==u&&(n>0||o>0)){var y=x<m?c.backward:c.forward;u=t().createElement(d,{key:x,breakAriaLabel:y,breakLabel:s,breakClassName:l,breakLinkClassName:p,breakHandler:i.handleBreakClick.bind(null,x),getEventListener:i.getEventListener}),v.push({type:"break",index:x,display:u})}}v.forEach(function(t,i){var a=t;"break"===t.type&&v[i-1]&&"page"===v[i-1].type&&v[i+1]&&"page"===v[i+1].type&&v[i+1].index-v[i-1].index<=2&&(a={type:"page",index:t.index,display:b(t.index)}),e.push(a.display)})}return e}),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(e.initialPage,") and forcePage (").concat(e.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),i.state={selected:e.initialPage?e.initialPage:e.forcePage?e.forcePage:0},i}return i=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,i=e.disableInitialCallback,a=e.extraAriaContext,n=e.pageCount,r=e.forcePage;void 0===t||i||this.callCallback(t),a&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(n)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(n,"). Did you forget a Math.ceil()?")),void 0!==t&&t>n-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(t," > ").concat(n-1,").")),void 0!==r&&r>n-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(r," > ").concat(n-1,")."))}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage}
1)),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var e=this.state.selected,t=this.props,i=t.pageCount,a=e+t.pageRangeDisplayed;return a>=i?i-1:a}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"getElementHref",value:function(e){var t=this.props,i=t.hrefBuilder,a=t.pageCount,n=t.hrefAllControls;if(i)return n||e>=0&&e<a?i(e+1,a,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(e){var t=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var i=this.props.ariaLabelBuilder(e+1,t);return this.props.extraAriaContext&&!t&&(i=i+" "+this.props.extraAriaContext),i}}},{key:"getPageElement",value:function(e){var i=this.state.selected,a=this.props,n=a.pageClassName,r=a.pageLinkClassName,o=a.activeClassName,l=a.activeLinkClassName,d=a.extraAriaContext,p=a.pageLabelBuilder;return t().createElement(s,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:i===e,rel:this.getElementPageRel(e),pageClassName:n,pageLinkClassName:r,activeClassName:o,activeLinkClassName:l,extraAriaContext:d,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:p,getEventListener:this.getEventListener})}},{key:"render",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var i=this.props,a=i.disabledClassName,n=i.disabledLinkClassName,r=i.pageCount,o=i.className,s=i.containerClassName,l=i.previousLabel,d=i.previousClassName,c=i.previousLinkClassName,g=i.previousAriaLabel,h=i.prevRel,f=i.nextLabel,x=i.nextClassName,u=i.nextLinkClassName,b=i.nextAriaLabel,v=i.nextRel,w=this.state.selected,y=0===w,C=w===r-1,j="".concat(p(d)).concat(y?" ".concat(p(a)):""),k="".concat(p(x)).concat(C?" ".concat(p(a)):""),A="".concat(p(c)).concat(y?" ".concat(p(n)):""),P="".concat(p(u)).concat(C?" ".concat(p(n)):"");return t().createElement("ul",{className:o||s,role:"navigation","aria-label":"Pagination"},t().createElement("li",{className:j},t().createElement("a",m({className:A,href:this.getElementHref(w-1),tabIndex:y?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":y?"true":"false","aria-label":g,rel:h},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),t().createElement("li",{className:k},t().createElement("a",m({className:P,href:this.getElementHref(w+1),tabIndex:C?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":C?"true":"false","aria-label":b,rel:v},this.getEventListener(this.handleNextPage)),f)))}}],function(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r}(e.Component);x(u,"propTypes",{pageCount:r().number.isRequired,pageRangeDisplayed:r().number,marginPagesDisplayed:r().number,previousLabel:r().node,previousAriaLabel:r().string,prevPageRel:r().string,prevRel:r().string,nextLabel:r().node,nextAriaLabel:r().string,nextPageRel:r().string,nextRel:r().string,breakLabel:r().oneOfType([r().string,r().node]),breakAriaLabels:r().shape({forward:r().string,backward:r().string}),hrefBuilder:r().func,hrefAllControls:r().bool,onPageChange:r().func,onPageActive:r().func,onClick:r().func,initialPage:r().number,forcePage:r().number,disableInitialCallback:r().bool,containerClassName:r().string,className:r().string,pageClassName:r().string,pageLinkClassName:r().string,pageLabelBuilder:r().func,activeClassName:r().string,activeLinkClassName:r().string,previousClassName:r().string,nextClassName:r().string,previousLinkClassName:r().string,nextLinkClassName:r().string,disabledClassName:r().string,disabledLinkClassName:r().string,breakClassName:r().string,breakLinkClassName:r().string,extraAriaContext:r().string,ariaLabelBuilder:r().func,eventListener:r().str
1ing,renderOnZeroPageCount:r().func,selectedPageRel:r().string}),x(u,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});let b=u})(),n})()},93285:(e,t,i)=>{"use strict";i.d(t,{u:()=>m});var a=i(37876),n=i(9954),r=i(71614),o=i(18827),s=i(64372);let l=o.Ay.div.withConfig({componentId:"sc-95da55c9-0"})([""]),d=o.Ay.div.withConfig({componentId:"sc-95da55c9-1"})(["display:flex;gap:1rem;width:100%;overflow-x:auto;@supports (-moz-appearance:none){scrollbar-width:thin;}padding-bottom:1rem;@media (min-width:768px){&::-webkit-scrollbar{width:16px;background-color:#fff;}&::-webkit-scrollbar-track{border-radius:10px;background-color:#f2f2f2;}&::-webkit-scrollbar-thumb{background-color:#909090;border-radius:20px;width:8px;border:5px solid #f2f2f2;box-shadow:inset 2px 1px 0 #f2f2f2,inset -2px 1px 0 #f2f2f2;-webkit-box-shadow:inset 2px 1px 0 #f2f2f2,inset -2px 1px 0 #f2f2f2;}&::-webkit-scrollbar-button{width:0;height:0;display:none;}&::-webkit-scrollbar-corner{background-color:transparent;}}"," @media (max-width:768px){height:",";","}"],e=>e.cancelled&&(0,o.AH)(["margin-top:32px !important;"]),e=>e.cancelled?"350px":"auto",e=>e.cancelled&&(0,o.AH)(["margin-top:34px !important;"])),p=(0,o.Ay)(n.jr).withConfig({componentId:"sc-95da55c9-2"})(["display:block;height:100%;min-width:306px;max-width:306px;",""],(0,s.Ay)("xl")` 2 min-width: 306px; 3 max-width: 306px; 4 `),c=(0,o.Ay)(n.jr).withConfig({componentId:"sc-95da55c9-3"})(["display:block;height:100%;min-width:306px;max-width:306px;box-shadow:0px 3px 6px #00000029;",";"],(0,s.Ay)("xl")` 5 min-width: 306px; 6 max-width: 306px; 7 `),m=({realtyData:e,interest:t,isReserved:i,title:o,cancelled:s})=>{let{data:m,isLoading:g}=(0,r.KT)({id:e?.idImovel,interest:t,maxResults:4},{refetchOnWindowFocus:!1}),h=e?.finalidadeComercial===1?2:1,{data:f,isLoading:x}=(0,r.ai)("rent"===t?2:1,h,e?.cidade,e?.tipoImovel,13,4),u=(t=[])=>{let i=t.filter(t=>t.idImovel!==e?.idImovel);if(0===i.length&&(!f?.list||x))return[];let a=4-i.length;if(a>0&&!x){let t=f?.list?.filter(t=>t.idImovel!==e?.idImovel&&!i.some(e=>e.idImovel===t.idImovel))||[];i.push(...t.slice(0,a))}return i},b=u(m);return(0,a.jsxs)(l,{children:[b.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{"data-testid":`visit-similar-realties-heading-${o||"Confira im\xf3veis similares"}`,className:"text-neutral-dark f-5 fw-bold mb-5",children:o||"Confira im\xf3veis similares"}),(0,a.jsx)(d,{className:`mb-lg-0 ${!o?"mb-6":"mb-0"}`,cancelled:!0,style:s?{marginTop:"34px"}:void 0,children:i?u(m).map((e,i)=>(0,a.jsx)(c,{"data-testid":`visit-similar-realties-custom-card-reserved-${i}`,item:e,typeRealty:t,architect:e?.arquitetoDeBolso},e.idImovel)):u(m).map((e,i)=>(0,a.jsx)(p,{"data-testid":`visit-similar-realties-custom-card-min-width-${i}`,item:e,typeRealty:t,architect:e?.arquitetoDeBolso},e.idImovel))})]}),(g||!s&&x)&&(0,a.jsx)(n.Rh,{isLoading:!0,className:"w-100 mt-5"})]})}},97376:(e,t,i)=>{"use strict";i.d(t,{a:()=>h});var a=i(37876),n=i(67909),r=i(41582),o=i(8447),s=i(18827),l=i(64372);let d=s.Ay.article.withConfig({componentId:"sc-f485568a-0"})(["background-color:",";border-bottom-left-radius:",";border-top-left-radius:",";display:flex;flex-wrap:nowrap;font-size:",";overflow:hidden;position:relative;"," .badge{background-color:",";color:",";left:",";position:absolute;top:",";}"],({theme:e})=>e.themeColors.neutralLightest,({theme:e})=>e.borderR.small,({theme:e})=>e.borderR.small,({theme:e})=>e.fonts["2"],({$shouldHaveMinHeight:e})=>e&&(0,s.AH)(["min-height:193px;max-width:469px;",""],(0,l.Ay)("lg")` 8 margin-left: 10px; 9 `),({theme:e})=>e.themeColors.primary,({theme:e})=>e.themeColors.neutralLightest,({theme:e})=>e.spacers["2"],({theme:e})=>e.spacers["2"]),p=s.Ay.div.withConfig({componentId:"sc-f485568a-1"})(["border:1px solid var(--bs-neutral-medium);border-bottom-right-radius:",";border-left:none;border-top-right-radius:",";color:",";display:flex;flex:1;flex-direction:column;flex-wrap:nowrap;overflow:hidden;padding-left:8px;padding-right:8px;padding-top:16.4px;padding-bottom:16px;"," strong{color:",";font-size:",";line-height:1;}#address-street{height:72px;margin-top:6.5px !important;white-space:pre-wrap;word-wrap:break-word;","}"],({theme:e})=>e.borderR.small,({theme:e})=>e.borderR.small,({theme:e})=>e.themeColors.neutralDark,(0,l.Ay)("lg")` 10 padding-left: 16px; 11 padding-top: 12.2px; 12 `,({theme:e})=>e.themeColors.neutralDarkest,({theme:e})=>e.fonts["2"],(0,l.Ay)("lg")` 13 margin-top: 5.8px !important; 14 `),c=s.Ay.div.withConfig({componentId:"sc-f485568a-2"})(["max-height:193px;overflow:hidden;position:relative;width:145px;border-bottom-right-radius:8px;border-top-right-radius:8px;"," ",""],(0,l.Ay)("lg")` 15 width: 199px; 16 border-bottom-right-radius: 0px; 17 border-top-right-radius: 0px; 18 `,({$isLoading:e})=>
18e&&(0,s.AH)(["span{display:block;border-top-right-radius:0;border-bottom-right-radius:0;height:100%;}"])),m=s.Ay.div.withConfig({componentId:"sc-f485568a-3"})(["flex-wrap:wrap;column-gap:1rem;visibility:hidden;",""],(0,l.Ay)("lg")` 19 visibility: visible; 20 margin-top: 13px; 21 `),g=s.Ay.div.withConfig({componentId:"sc-f485568a-4"})(["margin-top:8px;display:flex;max-height:34px;"," .text-aluguel{font-family:'Anek Latin';font-weight:700;font-size:14px !important;line-height:130%;}.text-real{font-family:Anek Latin;font-weight:700;font-size:18px !important;line-height:130%;","}"],(0,l.Ay)("lg")` 22 display: block; 23 `,(0,l.Ay)("lg")` 24 margin-left: 5px; 25 `),h=({imageSrc:e,imageAlt:t,realtyType:i,metering:s,street:l,district:h,city:f,state:x,price:u,room:b,bathroom:v,parkingSpace:w,interest:y,className:C,link:j,addressWrapperClassName:k="mt-1",shouldHaveMinHeight:A=!0,isLoading:P,isErrorImage:L,...N})=>{let I=0!==b?b:"",R=0!==v?v:"",S=0!==w?w:"";return P?(0,a.jsx)(o.B,{...N}):(0,a.jsx)(d,{$shouldHaveMinHeight:A,className:C,...N,children:(0,a.jsxs)("a",{className:"d-flex w-100",rel:"noreferrer",href:j,children:[(0,a.jsx)(c,{style:{filter:L?"grayscale(100%)":"none"},children:(0,a.jsx)(n.ImageWithError,{"data-testid":`visit-layout-image-${t}-${y}`,alt:t,src:e,objectFit:"cover",layout:"fill",sizes:"(max-width: 767px) 145px, 199px"})}),(0,a.jsxs)(p,{"data-testid":"visit-layout-schedule-card",children:[(0,a.jsxs)("div",{children:[s&&i&&(0,a.jsx)("div",{className:"content-strong",children:(0,a.jsxs)("strong",{"data-testid":`visit-layout-schedule-heading-${i}-${s}m`,className:"line-height mb-0 text-neutral",id:"address-street",children:[i," - ",s,"m",(0,a.jsx)("sup",{children:"2"})]})}),(0,a.jsxs)("div",{"data-testid":"visit-layout-schedule-address-street",className:k,id:"address-street",children:[l,", ",h,",",f&&x&&(0,a.jsxs)(a.Fragment,{children:[" ",f," - ",x]})]})]}),(0,a.jsxs)(g,{children:[null!=u&&(0,a.jsxs)("strong",{"data-testid":`visit-layout-schedule-price-${u}`,className:"text-rent",children:["rent"===y?"Aluguel":"Venda"," ",(0,a.jsx)("span",{className:"text-real",children:(0,r.eR)(u)})]}),(0,a.jsxs)(m,{"data-testid":"visit-layout-schedule-content-itens",className:"text-neutral fw-bold w-100 d-block",style:{justifyContent:"flex-start"},children:[""!==I&&(0,a.jsx)("span",{style:{flex:1,marginRight:"10px"},children:`${I} ${1===b?"quarto":"quartos"}`}),""!==R&&(0,a.jsx)("span",{style:{flex:1,marginRight:"10px"},children:`${R} ${1===v?"banheiro":"banheiros"}`}),""!==S&&(0,a.jsx)("span",{style:{flex:1,marginRight:"10px"},children:`${S} ${1===w?"vaga":"vagas"}`})]})]})]})]})})}}},e=>{e.O(0,[4597,5697,9962,8649,7470,2524,1983,5950,4587,7298,2303,8505,9839,7389,9233,6074,1556,9830,7616,6336,6164,8619,7909,636,6593,8792],()=>e(e.s=22573)),_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.