1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8661],{39931:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/inspector/MiscQuestions/[id]",function(){return n(20274)}])},64289:function(e,i,n){"use strict";var t=n(3247),d=n(15311),l=n(64344);function o(){let e=(0,t._)(["\n width: 100%;\n height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n"]);return o=function(){return e},e}let r=(0,n(84819).ZP)("div")(o());i.Z=function(){return(0,d.jsx)(r,{children:(0,d.jsx)(l.Z,{})})}},20274:function(e,i,n){"use strict";n.r(i),n.d(i,{__N_SSP:function(){return N},default:function(){return E}});var t=n(15311),d=n(41953),l=n(23262),o=n(5762),r=n(20132),s=n(33326),a=n.n(s),u=n(6634),x=n(54001),p=n(82570),c=n(10796),h=n(37637),v=n(64289),g=n(72155),j=n(91054),f=n(8487),m=n(28500),y=n(52691),N=!0;function E(){let e=(0,o.useRouter)(),[i,n]=(0,r.useState)({}),{data:s,isLoading:N}=(0,d.s9)(e.query.id),E=(e,i,t)=>{n(n=>({...n,[e]:{response:i,otherNotes:t}}))},C=(e,i,t)=>{n(n=>({...n,[e]:{response:i,otherNotes:t}}))},R=(e,i,t)=>{n(n=>({...n,[e]:{response:i,otherNotes:t}}))};(0,r.useEffect)(()=>{let e={};null==s||s.forEach(i=>{i.questions.forEach(i=>{let n=i.id.toString(),t=i.response,d=i.otherNotes;!0===t&&null!==t&&(e[n]={response:t,otherNotes:d})})}),n(e)},[s]);let{mutate:_}=(0,d.j_)(()=>{e.push({pathname:"/inspector/summary/[id]",query:{id:e.query.id}})},()=>{f.Am.error((0,t.jsx)(j.Z,{text:(0,t.jsx)(m.Z,{i18nKey:"LANDLORD:RFTA_ERROR_ON_SAVE"})}))}),b=(0,u.Z)(y.r.breakpoints.down("sm")),Z=(0,u.Z)("(min-width: 320px) and (max-width: ".concat(y.r.breakpoints.values.lg,"px)"));return N?(0,t.jsx)(v.Z,{}):(0,t.jsxs)("div",{children:[(0,t.jsx)(a(),{children:(0,t.jsx)("title",{children:"Misc - Inspector "})}),(0,t.jsx)(l.UU,{children:(0,t.jsx)(x.ZP,{container:!0,justifyContent:"center",alignItems:"center",flexDirection:"column",sx:{width:"100%",marginTop:b?"20px":"40px"},children:(0,t.jsx)(x.ZP,{item:!0,xs:12,sm:12,md:12,lg:12,children:(0,t.jsx)(p.Z,{sx:{width:Z?"100%":"1100px",borderRadius:4,marginBottom:"60px",paddingBottom:"20px",margin:"0px auto"},children:(0,t.jsxs)(c.Z,{sx:{overflow:"auto",padding:"20px"},children:[(0,t.jsx)(g.pY,{onClick:()=>{e.push({pathname:"/inspector/view/[id]",query:{id:e.query.id}})}}),(0,t.jsx)("div",{style:{display:"flex",justifyContent:"center",fontSize:b?"28px":"34px",color:"#26284e",fontWeight:700,alignItems:"center",marginTop:"40px",lineHeight:"normal"},children:(0,t.jsx)("p",{children:"Questions to ask the Tenant (Optional)"})}),null==s?void 0:s.map(e=>{var n;return(0,t.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,t.jsx)("h3",{children:e.categoryName}),null===(n=e.questions)||void 0===n?void 0:n.map(e=>{var n,d,l,o,r,s,a,u,x,p,c,v;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{children:[(null==e?void 0:e.id)!==42&&(null==e?void 0:e.id)!==43&&(null==e?void 0:e.id)!==44&&(null==e?void 0:e.id)!==45&&(null==e?void 0:e.id)!==46&&(null==e?void 0:e.id)!==47&&(null==e?void 0:e.id)!==48&&(null==e?void 0:e.id)!==49&&(0,t.jsx)(g.x1,{style:{margin:"10px 20px 0px 20px"},checked:void 0!==i&&!!(null===(n=i[e.id])||void 0===n?void 0:n.response),onChange:i=>R(e.id,null==i?void 0:i.target.checked,"")}),e.question]}),42===e.id&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(g.RG,{defaultValue:"0",customlabel:"LANDLORD:SELECT_PROPERTY_NAME",value:i&&(null===(d=i[e.id])||void 0===d?void 0:d.otherNotes)?null===(l=i[e.id])||void 0===l?void 0:l.otherNotes:"0",onChange:i=>C(e.id,!0,i.target.value),children:[(0,t.jsx)(h.Z,{value:"0",children:"Select"}),(0,t.jsx)(h.Z,{value:"1",children:"Yes"}),(0,t.jsx)(h.Z,{value:"2",children:"No"})]})}),46===e.id&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(g.RG,{defaultValue:"0",customlabel:"LANDLORD:SELECT_PROPERTY_NAME",value:i&&i[e.id]?null===(o=i[e.id])||void 0===o?void 0:o.otherNotes:"0",onChange:i=>C(e.id,!0,i.target.value),children:[(0,t.jsx)(h.Z,{value:"0",children:"Select "}),(0,t.jsx)(h.Z,{value:"1",children:"Owner"}),(0,t.jsx)(h.Z,{value:"2",children:"Tenant"})]})}),47===e.id&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(g.RG,{defaultValue:"0",customlabel:"LANDLORD:SELECT_PROPERTY_NAME",value:i&&i[e.id]?null===(r=i[e.id])||void 0===r?void 0:r.otherNotes:"0",onChange:i=>C(e.id,!0,i.target.value),children:[(0,t.jsx)(h.Z,{value:"0",children:"Select"}),(0,t.jsx)(h.Z,{value:"1",children:"Owner"}),(0,t.jsx)(h.Z,{value:"2",children:"Tenant"})]})})," ",48===e.id&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(g.RG,{defaultValue:"0",customlabel:"LANDLORD:SELECT_PROPERTY_NAME",value:i&&i[e.id]?null===(s=i[e.id])||void 0===s?void 0:s.otherNotes:"0",onChange:i=>C(e.id,!0,i.target.value),children:[(0,t.jsx)(h.Z,{value:"0",children:"Select"}),(0,t.jsx)(h.Z,{value:"1",children:"Owner"}),(0,t.jsx)(h.Z,{value:"2",children:"Tenant"})]})}),49===e.id&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("input",{style:{padding:"16.5px 14px",height:"50px",borderRadius:"16px",fontSize:"20px",color:"#26284E",fontWeight:"400",borderColor:"#585A79",width:b?"90%":"40%",display:"block",margin:"20px 0px"},type:"text",value:!0!=i[e.id]?null===(a=i[e.id])||void 0===a?void 0:a.otherNotes:"",onCh
1ange:i=>E(e.id,!0,i.target.value)})}),e.question.toLowerCase().includes("specify")&&i&&(null===(u=i[e.id])||void 0===u?void 0:u.response)&&![45,49].includes(e.id)&&(0,t.jsx)("input",{style:{padding:"16.5px 14px",height:"50px",borderRadius:"16px",fontSize:"20px",color:"#26284E",fontWeight:"400",borderColor:"#585A79",width:b?"90%":"40%",margin:b?"20px 0px 0px 0px":"0px 0px 0px 20px"},type:"text",value:(null===(x=i[e.id])||void 0===x?void 0:x.otherNotes)||"",onChange:i=>E(e.id,!0,i.target.value)}),(null==e?void 0:e.id)===43&&void 0!==i&&(0,t.jsx)("input",{style:{padding:"16.5px 14px",height:"50px",borderRadius:"16px",fontSize:"20px",color:"#26284E",fontWeight:"400",borderColor:"#585A79",width:b?"90%":"40%",display:"block",margin:"20px 0px"},type:"text",value:!0!=i[e.id]?null===(p=i[e.id])||void 0===p?void 0:p.otherNotes:"",onChange:i=>E(e.id,!0,i.target.value)}),(null==e?void 0:e.id)===44&&void 0!==i&&(0,t.jsx)("input",{style:{padding:"16.5px 14px",height:"50px",borderRadius:"16px",fontSize:"20px",color:"#26284E",fontWeight:"400",borderColor:"#585A79",width:b?"90%":"40%",display:"block",margin:"20px 0px"},type:"text",value:!0!=i[e.id]?null===(c=i[e.id])||void 0===c?void 0:c.otherNotes:"",onChange:i=>E(e.id,!0,i.target.value)}),(null==e?void 0:e.id)===45&&void 0!==i&&(0,t.jsx)("input",{style:{padding:"16.5px 14px",height:"50px",borderRadius:"16px",fontSize:"20px",color:"#26284E",fontWeight:"400",borderColor:"#585A79",width:b?"90%":"40%",display:"block",margin:"20px 0px"},type:"text",value:!0!=i[e.id]?null===(v=i[e.id])||void 0===v?void 0:v.otherNotes:"",onChange:i=>E(e.id,!0,i.target.value)})]},e.id)})]},e.id)}),(0,t.jsx)("div",{style:{display:"flex",justifyContent:"center",margin:"15px 0px"},children:(0,t.jsx)(g.MG,{size:"small",onClick:n=>{n.preventDefault(),_({formattedData:Object.keys(i).map(e=>{var n,t;let d=parseInt(e,10);return{tenantQuestionID:d,response:null===(n=i[d])||void 0===n?void 0:n.response,otherNotes:null===(t=i[d])||void 0===t?void 0:t.otherNotes}}),inspectionId:e.query.id})},style:{padding:"20px"},children:"Save and Continue"})})]})})})})})]})}}},function(e){e.O(0,[6637,8753,3268,608,2888,9774,179],function(){return e(e.s=39931)}),_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.