PageSourceSearch

https://lmimobiliaria.com.br/_next/static/chunks/5889.d30cabafc2e6b90d.js

js lmimobiliaria.com.br collected 2026-10-03 18:21:32 UTC 5,552 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5889],{75889:(e,l,a)=>{a.r(l),a.d(l,{AppPhoneInput:()=>d});var n=a(37876),t=a(14232),o=a(98477),i=a(50162),p=a(23759),r=a(35893);a(36820);var u=a(68252);let s=(e,l,a)=>{if(!e)return"";if(!l){let l=e.replace(/\D/g,"");return a?l.slice(0,16):l}let n=e.replace(/\D/g,""),t=a?n.slice(0,16):n;return t?"+".concat(t):""},c=(e,l)=>{try{let a=(0,i.lq)(e,l);if(a&&a.isValid())return a.number}catch(e){}return""},d=e=>{let{value:l,onChange:a,label:d,error:h,helperText:m,containerClassName:v,labelClassName:_,inputClassName:g,inputStyle:y,width_max:j,inputHeight:x,errorClassName:b,helperTextClassName:f,semPais:C=!1,includeCountryCode:N=!0,limitMaxLength:B=!0,onValidityChange:k,id:w,required:P,disabled:L,defaultCountry:M="BR",international:D=!0,numberInputProps:E,countryCallingCodeEditable:q=!1,placeholder:A,autoComplete:F,...S}=e,I=C||!N,K=m?"".concat(w||"phone","-helper"):void 0,R=h?"".concat(w||"phone","-error"):void 0,V=e=>{let l=s(e||"",N,B);if(a(l),k){let e=l.replace(/\D/g,"");k(N?(0,i.g0)(l):e.length>=10&&e.length<=16)}},W=()=>{if(!l){null==k||k(!1);return}if(N){let e=c(l,M);e?(a(e),null==k||k(!0)):(a(""),null==k||k(!1));return}let e=s(l,!1,B);a(e);let n=e.replace(/\D/g,"");null==k||k(n.length>=10&&n.length<=16)},z=["app-phone-input__input",g].filter(Boolean).join(" "),G=!N&&I?(0,u.Fp)(l||""):l||"";(0,t.useEffect)(()=>{if(k){if(l){let e=l.replace(/\D/g,"");k(N?(0,i.g0)(l):e.length>=10&&e.length<=16)}else k(!1)}},[l,N,k]);let H={...E,className:[null==E?void 0:E.className,z].filter(Boolean).join(" "),style:{...null==E?void 0:E.style,...y},inputMode:"tel","aria-invalid":!!h,"aria-describedby":h?R:K,onBlur:e=>{var l;null==E||null===(l=E.onBlur)||void 0===l||l.call(E,e),W()},maxLength:B?17:void 0},J={...j?{maxWidth:"".concat(j,"%")}:{},...null!=x?{"--app-phone-input-height":"number"==typeof x?"".concat(x,"px"):x}:{}};return(0,n.jsxs)("div",{className:["app-phone-input",v,I&&"app-phone-input--no-country",h&&"app-phone-input--error"].filter(Boolean).join(" "),style:J,children:[d&&(0,n.jsx)("label",{className:["app-phone-input__label",_].filter(Boolean).join(" "),htmlFor:w,children:d}),(0,n.jsx)("div",{className:"app-phone-input__control-wrapper",children:I?N?(0,n.jsx)(r.Ay,{id:w,className:z,disabled:L,required:P,country:M,international:!!N&&D,withCountryCallingCode:N,limitMaxLength:B,placeholder:A,autoComplete:F,value:l||"",inputMode:"tel","aria-invalid":!!h,"aria-describedby":h?R:K,style:y,onBlur:W,onChange:e=>{V(e)}}):(0,n.jsx)("input",{id:w,className:z,disabled:L,required:P,placeholder:A,autoComplete:F,value:G,inputMode:"tel",type:"tel","aria-invalid":!!h,"aria-describedby":h?R:K,style:y,maxLength:B?15:void 0,onBlur:W,onChange:e=>V(e.target.value)}):(0,n.jsx)(i.Ay,{id:w,disabled:L,required:P,className:"app-phone-input__control",defaultCountry:N?M:void 0,international:!!N&&D,withCountryCallingCode:N,placeholder:A,autoComplete:F,value:l||void 0,onChange:V,numberInputProps:H,flags:p.Ay,limitMaxLength:B,countryCallingCodeEditable:q,countrySelectComponent:e=>{let{value:l,onChange:a,options:p,iconComponent:r,className:u}=e,[s,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)(""),m=(0,t.useMemo)(()=>{if(!p)return[];let e=d.trim().toLowerCase();return e?p.filter(l=>{let a=(l.label||"").toLowerCase(),n=(l.value||"").toLowerCase();return a.includes(e)||n.includes(e)}):p},[p,d]),v=(null==p?void 0:p.find(e=>e.value===l))||(null==p?void 0:p[0]),_=s?(0,n.jsx)("div",{className:"app-phone-input__modal-overlay",onClick:()=>c(!1),children:(0,n.jsxs)("div",{className:"app-phone-input__modal",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"app-phone-input__modal-header",children:[(0,n.jsx)("h4",{children:"Escolha o pa\xeds"}),(0,n.jsx)("button",{type:"button",className:"app-phone-input__modal-close",onClick:()=>c(!1),children:"\xd7"})]}),(0,n.jsx)("div",{className:"app-phone-input__modal-search",children:(0,n.jsx)("input",{type:"text",placeholder:"Busque pelo nome ou c\xf3digo",value:d,onChange:e=>h(e.target.value)})}),(0,n.jsx)("div",{className:"app-phone-input__modal-list",children:null==m?void 0:m.map(e=>(0,n.jsxs)("button",{type:"button",className:"app-phone-input__modal-item",onClick:()=>{null==a||a(e.value),c(!1),h("")},children:[r&&e.value&&(0,n.jsx)("span",{className:"app-phone-input__modal-flag",children:(0,n.jsx)(r,{country:e.value,label:e.label||e.value||"Pa\xeds",countryName:e.label||e.value||"Pa\xeds"})}),(0,n.jsx)("span",{className:"app-phone-input__modal-label",children:e.label}),e.value&&(0,n.jsxs)("span",{className:"app-phone-input__modal-ddd",children:["+",(0,i.Ko)(e.value)]})]},e.value||e.label))})]})}):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{type:"button",className:["app-phone-input__country-trigger",u].filter(
1Boolean).join(" "),onClick:()=>c(!0),children:[r&&(null==v?void 0:v.value)&&(0,n.jsx)("span",{className:"app-phone-input__country-flag",children:(0,n.jsx)(r,{country:v.value,label:v.label||v.value||"Pa\xeds",countryName:v.label||v.value||"Pa\xeds"})}),(0,n.jsx)("span",{className:"app-phone-input__country-arrow",children:"▼"}),(0,n.jsx)("span",{className:"app-phone-input__country-sep","aria-hidden":"true"})]}),"undefined"!=typeof document&&_?o.createPortal(_,document.body):_]})},...S})}),h?(0,n.jsx)("p",{className:["app-phone-input__error",b].filter(Boolean).join(" "),id:R,children:h}):m?(0,n.jsx)("p",{className:["app-phone-input__helper",f].filter(Boolean).join(" "),id:K,children:m}):null]})}}}]);
2//# sourceMappingURL=5889.d30cabafc2e6b90d.js.map

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.