1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7673],{861:function(e,t,o){"use strict";o.d(t,{FT:function(){return s}});var a=o(7294),r=o(5893);let n=["as","disabled"];function s({tagName:e,disabled:t,href:o,target:a,rel:r,role:n,onClick:s,tabIndex:c=0,type:i}){e||(e=null!=o||null!=a||null!=r?"a":"button");let l={tagName:e};if("button"===e)return[{type:i||"button",disabled:t},l];let d=a=>{var r;if(!t&&("a"!==e||(r=o)&&"#"!==r.trim())||a.preventDefault(),t){a.stopPropagation();return}null==s||s(a)},m=e=>{" "===e.key&&(e.preventDefault(),d(e))};return"a"===e&&(o||(o="#"),t&&(o=void 0)),[{role:null!=n?n:"button",disabled:void 0,tabIndex:t?void 0:c,href:o,target:"a"===e?a:void 0,"aria-disabled":t||void 0,rel:"a"===e?r:void 0,onClick:d,onKeyDown:m},l]}let c=a.forwardRef((e,t)=>{let{as:o,disabled:a}=e,c=function(e,t){if(null==e)return{};var o,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)o=n[a],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,n),[i,{tagName:l}]=s(Object.assign({tagName:o,disabled:a},c));return(0,r.jsx)(l,Object.assign({},c,i,{ref:t}))});c.displayName="Button",t.ZP=c},6772:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliate-office/[id]",function(){return o(7782)}])},9634:function(e,t,o){"use strict";o.d(t,{Z:function(){return f}});var a=o(5893),r=o(7294),n=o(1812),s={src:"/_next/static/media/unknown-user.d159ef5d.svg",height:24,width:24,blurWidth:0,blurHeight:0},c={src:"/_next/static/media/emoji-happy.c5c529d9.svg",height:60,width:60,blurWidth:0,blurHeight:0},i=o(5306),l=o.n(i),d=o(5675),m=o.n(d),u=o(1649),_=o(3037);let h=()=>{let e=(0,u.I0)(),{notifyMsg:t}=(0,u.v9)(e=>e.commonReducer),[o,i]=(0,r.useState)({open:"",message:"",messageType:"",btnType:""});return(0,r.useEffect)(()=>{if(t){let a=t&&!0===t.status?"Success":"User",r=t&&t.message,n=t&&!0===t.status?"".concat(l().sucess_content):"".concat(l().error_content);i({...o,messageType:a,message:r,btnType:n}),setTimeout(()=>{e((0,_.bi)({message:""}))},3e3)}},[t]),(0,a.jsx)(a.Fragment,{children:t&&""!==o.message&&(0,a.jsx)("div",{className:"".concat(l().loginModal," ",["modal"]," ",["show"]),"aria-labelledby":"contained-modal-title-vcenter",centered:!0,style:{display:"block"},children:(0,a.jsx)(n.Z.Dialog,{children:(0,a.jsx)(n.Z.Body,{className:"".concat(["flxrow"]," "),children:(0,a.jsx)("div",{className:"".concat(l().login_content," "),children:(0,a.jsxs)("div",{className:o.btnClass,children:[(0,a.jsx)("div",{className:"".concat(l().Icon," "),children:(0,a.jsx)(m(),{src:"Success"==o.messageType?c:s,alt:"",width:10,height:10})}),(0,a.jsx)("h4",{children:o.message})]})})})})})})};var f=h},3938:function(e,t,o){"use strict";var a=o(5893),r=o(7294),n=o(4853);let s=(0,r.forwardRef)((e,t)=>{let o=(0,r.useRef)(null);return(0,r.useImperativeHandle)(t,()=>({reset:()=>{o.current.reset()}})),(0,a.jsx)(n.Z,{ref:o,...e})});t.Z=s},7782:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return D}});var a=o(5893),r=o(7294),n=o(1163),s=o(7655),c=o(5682),i={src:"/_next/static/media/phone.e6a348a4.svg",height:19,width:19,blurWidth:0,blurHeight:0},l=o(682),d=o(4051),m=o(1555),u=o(7346),_=o(5005),h=o(3938),f=o(1664),v=o.n(f),x=o(5675),g=o.n(x),p=o(9228),N=o.n(p),j=o(6154),y=o(1649),b=o(6627),C=o.n(b),S=o(8716),P=o(9634);let w=()=>{var e,t,o,f,x,p;let b=(0,y.I0)(),w=(0,r.useRef)(null),D=(0,n.useRouter)(),{id:k}=D.query,H=()=>{D.back(-1)},[E,Z]=(0,r.useState)(!1),A=e=>{e&&Z(!0)};(0,r.useEffect)(()=>(document.body.classList.remove("agent-layut"),()=>{document.body.classList.remove("agent-layout")}),[]);let[M,O]=(0,r.useState)(!1),q=()=>{O(!M)},B=()=>{O(!1)},[T,L]=(0,r.useState)(null);(0,r.useEffect)(()=>{k&&j.Z.get("".concat("https://api.brooklynmls.com/api","/Affiliate/officeDetails/").concat(k)).then(e=>{L(e.data)}).catch(e=>{console.error("Error fetching agent details:",e)})},[k]);let[F,I]=(0,r.useState)(!1),[R,K]=(0,r.useState)(!1),[U,V]=(0,r.useState)(!1),[W,X]=(0,r.useState)(!1),[$,Q]=(0,r.useState)(""),[Y,z]=(0,r.useState)(!1),[G,J]=(0,r.useState)(!1),[ee,et]=(0,r.useState)(!1),[eo,ea]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(T){var e;let t={ContactPersonName:"",ContactPersonEmailAddress:"",ContactPersonPhone:"",Note:"",OfficeEmailAddress:(null==T?void 0:null===(e=T.Data)||void 0===e?void 0:e.EmailAddress)||""};Q(t)}},[T]);let er=async e=>{let{name:t,value:o,type:a,checked:r}=e.target,n="Note"==t?o:o.trim();if(Q({...$,[t]:n}),"ContactPersonName"===t)n.length>=1?(I(!0),J(!1)):(I(!1),J(!0));else if("Note"===t)n.length>=1?(K(!0),ea(!1)):(K(!1),ea(!0));else if("ContactPersonEmailAddress"===t){let e=o.indexOf(".");e>=0||e<n.length-2?(V(!0),z(!1)):(V(!1),z(!0))}else"ContactPersonPhone"===t&&(n.length>=1?et(!1):et(!0))},en=async e=>{if(X(!0),e.preventDefault(),!$.ContactPersonName){J(!0),X(!1);return}if(!$.ContactPersonEmailAddress){z(!0),X(!1);return}if(!$.ContactPersonPhone){et(!0),X(!1);return}if(!$.Note){ea(!0),X(!1);return}if(E){let e={ContactPersonName:$.ContactPersonName||"",ContactPersonEmailAddress:$.ContactPersonEmailAddress||"",ContactPersonPhone:$.ContactPersonPhone||"",Note:$.Note||"",OfficeEmailAddress:(null==$?void 0:$.OfficeEmailAddress)||""};b((0,S.Uk)(e,e=>{X(!1),e||Q({ContactPersonName:"",ContactPersonEmailAddress:"",ContactPersonPhone:"",Note:"",OfficeEmailAddress:""})}))}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{handleClick:q,addClass:M,handleRemoveClass:B}),(0,a.jsxs)("section",{className:"".concat(["content_wrapper"]," ").concat([M?"show_menu":""]),children:[(0,a.jsx)("div",{className:"".concat(N().backBtn),children:(0,a.jsx)(l.Z,{children:(0,a.jsxs)("span",{onClick:H,children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",children:(0,a.jsx)("path",{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"})}),"Home Services Directory"]})})}),(0,a.jsxs)("div",{className:"".concat(N().affiliate_detail_wrapper),children:[(0,a.jsx)(l.Z,{children:(0,a.jsxs)(d.Z,{children:[(0,a.jsx)(m.Z,{xl:"8",lg:"8",children:(0,a.jsxs)("div",{className:"".concat(N().affiliate_detail),children:[(0,a.jsx)("h1",{children:(0,a.jsx)(v(),{href:"".concat(null==T?void 0:null===(e=T.Data)||void 0===e?void 0:e.Url),legacyBehavior:!0,children:(0,a.jsx)("a",{target:"_blank",children:null==T?void 0:null===(t=T.Data)||void 0===t?void 0:t.Name})})}),(0,a.jsx)("address",{children:null==T?void 0:null===(o=T.Data)||void 0===o?void 0:o.Address}),(0,a.jsx)("div",{className:"".concat(N().affiliate_contact),children:(0,a.jsx)("p",{children:(0,a.jsxs)(v(),{href:"tel:7184901099",children:[(0,a.jsx)("i",{children:(0,a.jsx)(g(),{src:i})}),null==T?void 0:null===(f=T.Data)||void 0===f?void 0:f.Phone]})})}),(0,a.jsx)("p",{children:null==T?void 0:null===(x=T.Data)||void 0===x?void 0:x.Description})]})}),(null==T?void 0:null===(p=T.Data)||void 0===p?void 0:p.EmailAddress)&&(0,a.jsx)(m.Z,{xl:"4",lg:"4",children:(0,a.jsxs)("div",{className:"".concat(N().agentForm),
1children:[(0,a.jsx)("h5",{children:"Contact us"}),(0,a.jsxs)("form",{action:"",children:[(0,a.jsxs)("div",{className:"".concat(N().input_row),children:[(0,a.jsx)(u.Z.Control,{type:"text",placeholder:"Name",className:"".concat(N()["form-control"]),name:"ContactPersonName",value:null==$?void 0:$.ContactPersonName,onChange:e=>er(e),autocomplete:"off",required:!0}),G&&(0,a.jsx)("p",{className:"".concat(N()["error-message"]),children:"Name is required"})]}),(0,a.jsxs)("div",{className:"".concat(N().input_row),children:[(0,a.jsx)(u.Z.Control,{type:"email",placeholder:"Email address",className:"".concat(N()["form-control"]),name:"ContactPersonEmailAddress",value:null==$?void 0:$.ContactPersonEmailAddress,onChange:e=>er(e),autocomplete:"off",required:!0}),Y&&(0,a.jsx)("p",{className:"".concat(N()["error-message"]),children:"Email is required"})]}),(0,a.jsxs)("div",{className:"".concat(N().input_row),children:[(0,a.jsx)(C(),{mask:"(999) 999-9999",maskChar:"_",type:"tel",placeholder:"Phone",className:"".concat(N()["form-control"]),name:"ContactPersonPhone",value:null==$?void 0:$.ContactPersonPhone,onChange:e=>er(e),autocomplete:"off",required:!0}),ee&&(0,a.jsx)("p",{className:"".concat(N()["error-message"]),children:"Phone is required"})]}),(0,a.jsxs)("div",{className:"".concat(N().input_row),children:[(0,a.jsx)(u.Z.Control,{as:"textarea",placeholder:"Message",className:"".concat(N()["form-control"]),name:"Note",value:null==$?void 0:$.Note,onChange:e=>er(e),autocomplete:"off",required:!0}),eo&&(0,a.jsx)("p",{className:"".concat(N()["error-message"]),children:"Message is required"})]}),(0,a.jsx)("div",{className:"".concat(N().input_row," ").concat(N().reCaptcha),children:(0,a.jsx)(h.Z,{className:"reCaptcha",sitekey:"".concat("6LcNtbgmAAAAANO--H2qVMK0MrWZ6ZJ0wqo4PY2T"),onChange:A,ref:w,value:E,size:"normal"})}),(0,a.jsxs)("div",{className:"".concat(N().input_row),children:[(0,a.jsx)(_.Z,{type:"submit",variant:"custom",className:"".concat(N()["btn-custom"]),onClick:e=>en(e),disabled:!E,children:"Send Message"}),W&&(0,a.jsx)("div",{className:"".concat(N()["loader-1"]," ").concat(N().center),children:(0,a.jsx)("span",{})})]})]})]})})]})}),(0,a.jsx)(P.Z,{})]})]}),(0,a.jsx)(c.Z,{})]})};var D=w},9228:function(e){e.exports={backBtn:"HomeServicesDirectory_backBtn__B9dwj",post_search:"HomeServicesDirectory_post_search__kFbGU","form-control":"HomeServicesDirectory_form-control__DRL_y",login_form:"HomeServicesDirectory_login_form__C58tN",search_content:"HomeServicesDirectory_search_content__M2bOg",market_row:"HomeServicesDirectory_market_row__EQKHo",market_content:"HomeServicesDirectory_market_content__34s7k",pdfbox:"HomeServicesDirectory_pdfbox__VvkZt",brookynbox:"HomeServicesDirectory_brookynbox__QjBE9",findAgentbox:"HomeServicesDirectory_findAgentbox__V9phc",image:"HomeServicesDirectory_image__UyN0V",info:"HomeServicesDirectory_info__WVk5_",learnbox:"HomeServicesDirectory_learnbox__UCGaq",home_directory:"HomeServicesDirectory_home_directory__So2Wj",home_row:"HomeServicesDirectory_home_row__Y6KaF",item:"HomeServicesDirectory_item__AexS8",affiliate_detail_wrapper:"HomeServicesDirectory_affiliate_detail_wrapper__3IrNw",affiliate_contact:"HomeServicesDirectory_affiliate_contact__3BXKB",agentForm:"HomeServicesDirectory_agentForm__7Pa6M",input_row:"HomeServicesDirectory_input_row__nK1CC","btn-custom":"HomeServicesDirectory_btn-custom__cPi7h",reCaptcha:"HomeServicesDirectory_reCaptcha__j_NyS",marketbox:"HomeServicesDirectory_marketbox__BSX15","error-message":"HomeServicesDirectory_error-message__eTCXP"}},5306:function(e){e.exports={loginModal:"LoginModal_loginModal__NVk9Q","modal-body":"LoginModal_modal-body__2ET4Y",login_content:"LoginModal_login_content__q2CNf",Icon:"LoginModal_Icon__dNOI1",error_content:"LoginModal_error_content__if_1m",sucess_content:"LoginModal_sucess_content__D2x7Z"}},5005:function(e,t,o){"use strict";var a=o(4184),r=o.n(a),n=o(7294),s=o(861),c=o(6792),i=o(5893);let l=n.forwardRef(({as:e,bsPrefix:t,variant:o="primary",size:a,active:n=!1,disabled:l=!1,className:d,...m},u)=>{let _=(0,c.vE)(t,"btn"),[h,{tagName:f}]=(0,s.FT)({tagName:e,disabled:l,...m});return(0,i.jsx)(f,{...h,...m,ref:u,disabled:l,className:r()(d,_,n&&"active",o&&`${_}-${o}
1`,a&&`${_}-${a}`,m.href&&l&&"disabled")})});l.displayName="Button",t.Z=l}},function(e){e.O(0,[6814,5675,1664,7346,8085,1812,6532,1683,9727,5682,9774,2888,179],function(){return e(e.s=6772)}),_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.