PageSourceSearch

https://www.gharnmakaan.com/static/js/3508.02e4ce67.chunk.js

js gharnmakaan.com collected 2026-10-07 08:19:06 UTC 23,659 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgharnmakaan=self.webpackChunkgharnmakaan||[]).push([[3508],{9383:(e,r,i)=>{i.d(r,{A:()=>h});var t=i(5043),n=i(4161),l=i(8669),s=i(35),o=i(5316),a=i(7353),d=i(4496),c=i(579);function x(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return{src:`${e}?w=${r*t}&h=${r*i}&fit=crop&auto=format`,srcSet:`${e}?w=${r*t}&h=${r*i}&fit=crop&auto=format&dpr=2 2x`}}function h(e){let{images:r=[],propertyDetails:i}=e;const[h,u]=t.useState(!1),[m,p]=t.useState(null),g=e=>{p(e),u(!0)},j=r.length-7,A=[{rows:2,cols:2},{rows:1,cols:1},{rows:1,cols:1},{rows:2,cols:1},{rows:1,cols:2}];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(n.A,{sx:{width:"100%",overflow:"hidden",p:1,m:"auto",height:"500px"},variant:"quilted",cols:4,rowHeight:200,children:r.slice(0,7).map(((e,r)=>{const{rows:t,cols:n}=A[r%A.length],s=6===r&&j>0;return(0,c.jsxs)(l.A,{cols:n,rows:t,sx:{cursor:"pointer",overflow:"hidden",borderRadius:2,position:"relative","& img":{transition:"transform 0.4s ease"},"&:hover img":{transform:"scale(1.1)"}},onClick:()=>g(null===e||void 0===e?void 0:e.url),children:[(0,c.jsx)("img",{...x(e.url,200,t,n),alt:`${null===i||void 0===i?void 0:i.propertySubType} for ${"rent/lease"===(null===i||void 0===i?void 0:i.purpose)?"rent":null===i||void 0===i?void 0:i.purpose} in ${null===i||void 0===i?void 0:i.city}`,loading:"lazy",style:{width:"100%",height:"100%"}}),s&&(0,c.jsx)(a.A,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",bgcolor:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center"},onClick:()=>g(null===e||void 0===e?void 0:e.url),children:(0,c.jsxs)(d.A,{variant:"h4",color:"white",fontWeight:"bold",children:["+",j," more"]})})]},null===e||void 0===e?void 0:e.url)}))}),(0,c.jsx)(s.A,{open:h,onClose:()=>{u(!1),p(null)},maxWidth:"lg",children:(0,c.jsx)(o.A,{sx:{p:0},children:(0,c.jsx)("img",{src:m,alt:"Preview",style:{width:"100%",height:"auto",maxHeight:"80vh",borderRadius:"8px"}})})})]})}},6434:(e,r,i)=>{i.d(r,{A:()=>w});var t=i(7353),n=i(8911),l=i(4496),s=i(1596),o=i(6641),a=i(1906),d=i(7392),c=i(1045),x=i(35),h=i(6600),u=i(5316),m=i(7784),p=i(9347),g=i(5043),j=i(5847),A=i(7621),f=i(9389),v=i(9070),b=i(579);const w=e=>{let{id:r}=e;const i=(0,j.zy)().pathname.startsWith("/project"),[w,y]=(0,g.useState)([]),[k,S]=(0,g.useState)(!1),[R,C]=(0,g.useState)(0),[B,P]=(0,g.useState)(""),[$,F]=(0,g.useState)("newest"),[I,D]=(0,g.useState)(0),W=i?`/user/projectReviewandRating/${r}`:`/user/propertyReviewandRating/${r}`,z=i?`/user/get-projectReviewandRating/${r}`:`/user/get-propertyReviewandRating/${r}`,{mutate:U,isLoading:L}=(0,v.L2)("POST",W),{data:T,loading:E}=(0,v.Gs)(["reviews",r],z);(0,g.useEffect)((()=>{var e;!E&&null!==T&&void 0!==T&&null!==(e=T.data)&&void 0!==e&&e.length&&y(T.data)}),[T,E]);const N=w.length>0?w.reduce(((e,r)=>e+(r.rating||0)),0)/w.length:0,H=w.reduce(((e,r)=>{const i=Math.round(2*(r.rating||0))/2;return e[i]=(e[i]||0)+1,e}),{}),M=[...w].sort(((e,r)=>"highest"===$?(r.rating||0)-(e.rating||0):"lowest"===$?(e.rating||0)-(r.rating||0):new Date(r.createdAt)-new Date(e.createdAt))),q=M.slice(I,I+3);return(0,b.jsxs)(t.A,{sx:{p:{xs:1,md:2},my:4,width:"100%",bgcolor:"white",display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,b.jsxs)(n.A,{width:{xs:"100%",sm:"90%",md:"85%"},children:[(0,b.jsx)(l.A,{variant:"h2",mb:2,color:"initial",sx:{fontSize:{xs:"1.2rem",sm:"1.4rem",md:"1.6rem",lg:"1.8rem"},textAlign:{xs:"center",md:"left"}},children:"Rating & Reviews"}),(0,b.jsxs)(s.A,{elevation:0,sx:{width:"100%",p:1,display:"flex",flexDirection:{xs:"column",sm:"row"},gap:3,alignItems:"center"},children:[(0,b.jsxs)(n.A,{alignItems:"center",justifyContent:"center",width:{xs:"100%",sm:"30%"},children:[(0,b.jsx)(l.A,{variant:"h4",fontWeight:"bold",children:N.toFixed(1)}),(0,b.jsx)(o.A,{value:N,precision:1,readOnly:!0,size:"large",sx:{mb:1}}),(0,b.jsx)(l.A,{color:"text.secondary",children:"Average Rating"}),(0,b.jsxs)(l.A,{color:"text.secondary",fontSize:"0.75rem",children:["(Total ",w.length," reviews)"]})]}),(0,b.jsxs)(t.A,{flexGrow:1,width:"100%",children:[(0,b.jsxs)(t.A,{sx:{display:"flex",flexDirection:{xs:"column-reverse",sm:"row"},justifyContent:"space-between",alignItems:{xs:"center",sm:"center"},gap:2,mb:2},children:[(0,b.jsx)(l.A,{variant:"h6",fontWeight:"bold",children:"Rating Breakdown"}),(0,b.jsx)(a.A,{variant:"contained",size:"small",onClick:()=>S(!0),children:"Write a Review"})]}),(0,b.jsx)(n.A,{spacing:1,children:[5,4,3,2,1].map((e=>{const r=H[e]||0,i=w.length>0?r/w.length*100:0;return(0,b.jsxs)(n.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,b.jsxs)(l.A,{variant:"body2",sx:{minWidth:40},children:[e," \u2605"]}),(0,b.jsx)(t.A,{flexGrow:1,height:8,bgcolor:"grey.300",borderRadius:4,children:(0,b.jsx)(t.A,{sx:{height:"100%",width:`${i}%`,bgcolor:"primary.main",borderRadius:4}})}),(0,b.jsx)(l.A,{variant:"body2",sx:{minWidth:20,textAlign:"right"},children:r})]},e)}))})]})]}),(0,b.jsx)(t.A,{width:"100%",children:(0,b.jsxs)(n.A,{direction:"row",alignItems:"center",children:[q.length>0&&(0,b.jsx)(d.A,{onClick:()=>{D((e=>{const r=e-3;return r<0?M.length-(M.length%3||3):r}))},disabled:M.length<=3,sx:{bgcolor:"white",boxShadow:2,mr:1,display:{xs:"none",sm:"inline-flex"}},children:(0,b.jsx)(A.A,{fontSize:"small"})}),(0,b.jsx)(n.A,{direction:"row",spacing:2,sx:{flex:1,p:1,justifyContent:{xs:"flex-start",sm:"center"},width:"100%",overflowX:{xs:"auto",sm:"visible"},scrollSnapType:{xs:"x mandatory",sm:"none"},"&::-webkit-scrollbar":{display:"none"}},children:q.map((e=>{var r,i,a,d;return(0,b.jsxs)(s.A,{elevation:2,sx:{flex:{xs:"0 0 80%",sm:1},p:2,borderRadius:2,display:"flex",flexDirection:"column",gap:1,minWidth:{xs:220,sm:260},scrollSnapAlign:"center"},children:[(0,b.jsxs)(n.A,{direction:"row",spacing:2,alignItems:"center",children:[(0,b.jsx)(c.A,{sx:{bgcolor:"primary.main"},children:(null===(r=e.User)||void 0===r||null===(i=r.fullName)||void 0===i?void 0:i[0])||"U"}),(0,b.jsxs)(t.A,{children:[(0,b.jsx)(l.A,{variant:"subtitle2",fontWeight:"bold",children:(null===e||void 0===e||null===(a=e.User)||void 0===a?void 0:a.fullName)||"Unknown"}),(0,b.jsx)(o.A,{value:e.rating||0,precision:1,readOnly:!0,size:"small"})]})]}),(0,b.jsx)(l.A,{variant:"body2",color:"text.secondary",mt:1,children:(null===(d=e.review)||void 0===d?void 0:d.length)>100?e.review.slice(0,100)+"...":e.review}),(0,b.jsx)(l.A,{variant:"caption",color:"text.disabled",mt:"auto",children:e.createdAt?new Date(e.createdAt).toLocaleDateString():""})]},e.id||Math.random())}))}),q.length>0&&(0,b.jsx)(d.A,{onClick:()=>{D((e=>{const r=e+3;return r>=M.length?0:r}))},disabled:M.length<=3,sx:{bgcolor:"white",boxShadow:2,ml:1,display:{xs:"none",sm:"inline-flex"}},children:(0,b.jsx)(f.A,{fontSize:"small"})})]})})]}),(0,b.jsxs)(x.A,{open:k,onClose:()=>S(!1),maxWidth:"sm",fullWidth:!0,fullScreen:{xs:!0,sm:!1},children:[(0,b.jsx)(h.A,{children:"Share Your Experience"}),(0,b.jsxs)(u.A,{children:[(0,b.jsxs)(t.A,{sx:{my:2},children:[(0,b.jsx)(l.A,{variant:"body1",gutterBottom:!0,children:"Your Rating"}),(0,b.jsx)(o.A,{value:R,precision:1,size:"large",onChange:(e,r)=>C(r)})]}),(0,b.jsx)(m.A,{label:"Your Review",multiline:!0,rows:4,fullWidth:!0,value:B,onChange:e=>P(e.target.value)})]}),(0,b.jsxs)(p.A,{children:[(0,b.jsx)(a.A,{onClick:()=>S(!1),children:"Cancel"}),(0,b.jsx)(a.A,{variant:"contained",onClick:()=>
1{if(!R||!B)return;U({body:{newReview:B,newRating:R}},{onSuccess:()=>{S(!1),C(0),P(""),y((e=>[...e,{review:B,rating:R,createdAt:new Date,User:{fullName:"You"}}]))},onError:e=>console.error("Error submitting review:",e)})},children:"Submit"})]})]})]})}},3508:(e,r,i)=>{i.r(r),i.d(r,{default:()=>te});var t=i(5043),n=i(9070),l=i(5847),s=i(9367),o=i(8293),a=i(4496),d=i(7353),c=i(8911),x=i(1906),h=i(4208),u=i(1828),m=i(4511),p=i(1284),g=i(2110),j=i(6591),A=i(9336),f=i(9650),v=i(1596),b=i(1806),w=i(4882),y=i(8076),k=i(39),S=i(3460),R=i(3845),C=i(889),B=i(6605),P=i(710),$=i(7196),F=i(1462),I=i(579);function D(e){let{fileUrl:r}=e;return(0,I.jsx)("div",{style:{height:"750px",border:"1px solid #ccc",borderRadius:"8px",overflow:"hidden"},children:(0,I.jsx)("iframe",{src:r,title:"PDF Viewer",width:"100%",height:"100%",style:{border:"none"}})})}var W=i(8877),z=i(7962),U=i(2639),L=i(6720),T=i(6240),E=i(1478),N=i(8903),H=i(8920),M=i(1082),q=i(1706),Y=i(5471),_=i(33),O=i(519),Q=i(8222),G=i(8809),K=i(3156),V=i(2993),X=i(7622),Z=i(5193),J=i(9383),ee=i(6434);const re=e=>{let{dealers:r}=e;return r&&0!==r.length?(0,I.jsxs)(d.A,{py:4,bgcolor:"#F1F1F1",sx:{display:"flex",width:"100%",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[(0,I.jsx)(a.A,{variant:"h5",gutterBottom:!0,mb:4,textAlign:"center",fontWeight:"bold",children:"Connect with project dealers directly for inquiries"}),(0,I.jsx)(d.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",gap:3,overflowX:"auto",py:2,px:2,"&::-webkit-scrollbar":{height:8},"&::-webkit-scrollbar-thumb":{backgroundColor:"#888",borderRadius:4}},children:r.map((e=>(0,I.jsxs)(d.A,{sx:{flex:"0 0 auto",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center"},children:[(0,I.jsx)(d.A,{sx:{width:80,height:80,borderRadius:"50%",bgcolor:"#d21919ff",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:32,fontWeight:"bold",mb:2,boxShadow:"0 4px 10px rgba(0,0,0,0.2)"},children:e.name.charAt(0).toUpperCase()}),(0,I.jsx)(a.A,{variant:"subtitle1",fontWeight:"bold",children:e.name}),(0,I.jsx)(a.A,{color:"text.secondary",fontSize:13,children:e.email}),(0,I.jsxs)(a.A,{fontSize:12,children:["Phone: ",e.phone]})]},e.id)))})]}):(0,I.jsx)(a.A,{variant:"h6",align:"center",mt:4,children:"No dealers assigned to this project."})};var ie=i(2443);const te=()=>{var e,r,i,te,ne;const{slug:le}=(0,l.g)(),[se,oe]=(0,t.useState)({}),{data:ae,isLoading:de}=(0,n.Gs)(["projectdata",le],`/user/project/${le}`),[ce,xe]=((0,t.useRef)(),(0,t.useState)([])),[he,ue]=(0,t.useState)(null),[me,pe]=(0,t.useState)(!1),[ge,je]=(0,t.useState)(!1),[Ae,fe]=(0,t.useState)(0),[ve,be]=(0,t.useState)(!1),[we,ye]=(0,t.useState)(0),[ke,Se]=(0,t.useState)(null),Re=(0,T.A)();(0,t.useEffect)((()=>{const e=()=>{const e=[{id:"floorPlans",ref:Ce},{id:"priceList",ref:We},{id:"amenities",ref:Be},{id:"brochure",ref:$e},{id:"builder",ref:Fe},{id:"aboutProject",ref:Ie},{id:"rating",ref:Pe},{id:"faq",ref:De}];let r=null;for(const i of e)if(i.ref.current){i.ref.current.getBoundingClientRect().top<=150&&(r=i.id)}r!==he&&ue(r)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}),[he]),(0,t.useEffect)((()=>{var e;ae&&!de&&(oe(null===ae||void 0===ae?void 0:ae.data),xe(null===ae||void 0===ae||null===(e=ae.data)||void 0===e?void 0:e.ProjectMedia))}),[ae,de]);const Ce=(0,t.useRef)(null),Be=(0,t.useRef)(null),Pe=(0,t.useRef)(null),$e=(0,t.useRef)(null),Fe=(0,t.useRef)(null),Ie=(0,t.useRef)(null),De=(0,t.useRef)(null),We=(0,t.useRef)(null),{projectName:ze,address:Ue,city:Le,amenities:Te=[],floorPlans:Ee=[],description:Ne,brochureUrl:He,developBy:Me,locality:qe,propertySubType:Ye,videoUrl:_e,Dealers:Oe,ProjectMedia:Qe=[]}=se;(0,t.useEffect)((()=>{if(Qe&&Array.isArray(Qe)){var e;const r=(null===(e=Qe.find((e=>1==(null===e||void 0===e?void 0:e.coverImage))))||void 0===e?void 0:e.url)||null;Se(r)}}),[Qe]);const Ge=`https://www.google.com/maps?q=${encodeURIComponent(`${ze||""}, ${qe||""}, ${Le||""}, ${Ue||""}`)}&output=embed`,Ke=Ee.flatMap((e=>e.plans.map((r=>({bhk:e.bhk,area:r.superArea,price:Number(r.price)}))))),Ve=Ee.flatMap((e=>e.plans.map((r=>{var i;return{...r,bhk:e.bhk,imageUrl:(null===(i=r.floorPlanImage)||void 0===i?void 0:i[0])||"/placeholder.png"}})))),Xe=e=>{var r;null===(r=e.current)||void 0===r||r.scrollIntoView({behavior:"smooth",block:"start"})},[Ze,Je]=(0,t.useState)(null);(0,t.useEffect)((()=>{const e=[...new Set(Ke.map((e=>e.bhk)))];(1===e.length||!Ze&&e.length>1)&&Je(e[0])}),[se]);const er=(null===Qe||void 0===Qe?void 0:Qe.map((e=>({src:e.url,type:e.url.includes(".mp4")?"video":"image"}))))||[];if(de||null===se||void 0===se||!se.projectName)return(0,I.jsx)(a.A,{textAlign:"center",mt:4,children:"Loading..."});const rr=[{label:"Configuration",value:[...new Set(Ke.map((e=>e.bhk)))].map((e=>`${e} BHK`)).join(", "),icon:(0,I.jsx)(W.nkH,{})},{label:"Launch Date",value:se.launchDate,icon:(0,I.jsx)(W.y9D,{})},{label:"Total Towers",value:se.tower,icon:(0,I.jsx)(z.O9Z,{})},{label:"Total Units",value:se.totalunits,icon:(0,I.jsx)(U.bWd,{})},{label:"Possession",value:se.possession,icon:(0,I.jsx)(W.y9D,{})},{label:"Project Size",value:`${se.projectArea} ${se.projectAreaUnits}`,icon:(0,I.jsx)($.A8O,{})}],ir=me?Ne:Ne.slice(0,200)+(Ne.length>200?"...":"");const tr=Array.isArray(Te)?Te:"string"===typeof Te?Te.split(","):[];return console.log(ke,"coverimage"),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(s.vd,{children:(0,I.jsxs)(s.mg,{children:[(0,I.jsx)("title",{children:(null===se||void 0===se?void 0:se.meta_title)||ze}),(0,I.jsx)("meta",{name:"description",content:(null===se||void 0===se?void 0:se.meta_description)||(null===Ne||void 0===Ne?void 0:Ne.slice(0,150))}),(0,I.jsx)("meta",{name:"keywords",content:(null===se||void 0===se?void 0:se.meta_keywords)||`${ze}, ${Le}, ${qe}`}),(0,I.jsx)("meta",{name:"robots",content:(null===se||void 0===se?void 0:se.meta_robots)||"index,follow"})]})}),(0,I.jsx)(E.A,{}),(0,I.jsx)(d.A,{onClick:()=>je(!0),sx:{height:"80vh",width:"100%",backgroundImage:`url(${ke||(null===Qe||void 0===Qe||null===(e=Qe[0])||void 0===e?void 0:e.url)||"/placeholder.png"})`,backgroundSize:"cover",backgroundPosition:"center",color:"white",display:"flex",flexDirection:"column",justifyContent:"flex-end",p:1,cursor:"pointer"},children:(0,I.jsxs)(d.A,{sx:{bgcolor:"rgba(0, 0, 0, 0.5)",borderRadius:2,p:2,width:"99%"},children:[(0,I.jsx)(a.A,{variant:"h5",fontWeight:"bold",children:ze}),(0,I.jsxs)(a.A,{variant:"h6",sx:{mt:1,display:"flex",alignItems:"center"},children:[(0,I.jsx)(M.A,{sx:{fontSize:20,mr:1}}),qe,", ",Le]})]})}),(0,I.jsx)(d.A,{sx:{bgcolor:"white",py:1,position:"sticky",top:58,zIndex:10,boxShadow:"0px 2px 4px rgba(0,0,0,0.1)"},children:(0,I.jsxs)(c.A,{direction:"row",spacing:4,sx:{justifyContent:"center",flexWrap:"wrap"},children:[(0,I.jsx)(x.A,{onClick:()=>Xe(Ce),sx:{borderBottom:"floorPlans"===he?"3px solid red":"3px solid transparent",borderRadius:0},children:"Floor Plans"}),(0,I.jsx)(x.A,{onClick:()=>Xe(We),sx:{borderBottom:"priceList"===he?"3px solid red":"3px solid transparent",borderRadius:0},children:"Price and List"}),(0,I.jsx)(x.A,{onClick:()=>Xe(Be),sx:{borderBottom:"amenities"===he?"3px solid red":"3px solid transparent",borderRadius:0},children:"Amenities"}),(0,I.jsx)(x.A,{onClick:()=>Xe($e),sx:{borderBottom:"brochure"===he?"3px solid red":"3px solid transparent",borderRadius:0},children:"Brochure"}),(0,I.jsx)(x.A,{onClick:()=>Xe(Ie),sx:{borderBottom:"aboutProject"===he?"3px solid red":"3px solid transparent",borderRadius:0},children:"About Project"}),(0,I.jsx)(x.A,{onClick:()=>Xe(Pe),sx:{borderBottom:"rating"===he?"3px solid red":"3px solid transparent",borderRadius:0},children:"Rating"}),(0,I.jsx)(x.A,{onClick:()=>Xe(De),sx:{borderBottom:"faq"===he?"3px solid red":"3px solid transparent",borderRadius:0},children:"FAQ"})]})}),(0,I.jsxs)(d.A,{sx:{width:"100%",bgcolor:"#F1F1F1",display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"center",gap:4},children:[(0,I.jsxs)(d.A,{sx:{width:{xs:"100%",md:"55%"},gap:4,display:"flex",flexDirection:"column"},children:[(0,I.jsxs)(c.A,{sx:{mt:4,gap:2,bgcolor:"white",p:{xs:1,md:3}},children:[(0,I.jsxs)(d.A,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[(0,I.jsxs)(d.A,{sx:{maxWidth:"70%",width:"fit-contentt"},children:[(0,I.jsx)(a.A,{variant:"body1",fontSize:"1.5rem",color:"initial",children:ze}),(0,I.jsxs)(a.A,{variant:"body1",color:"initial",children:[" ",(0,I.jsx)(K.sIY,{style:{color:Re.palette.primary.main}})," ",qe,", ",Le]})]}),(0,I.jsx)(x.A,{variant:"outlined",sx:{height:"fit-content"},endIcon:(0,I.jsx)(F.U01,{}),onClick:()=>(()=>{var e;const r=null===se||void 0===se||null===(e=se.Boruchures[0])||void 0===e?void 0:e.borchureUrl,i=document.createElement("a");i.href=r,i.target="_blank",i.download="brochure.pdf",i.click()})(),children:"Brochure"})]}),(0,I.jsxs)(d.A,{children:[(0,I.jsxs)(a.A,{variant:"body1",color:"initial",children:[(0,I.jsx)(L.YHz,{}),se.minPrice," "," - "," ",se.maxPrice]}),(0,I.jsx)(a.A,{variant:"subtitle2",color:"text.secondary",ml:3,children:"PRICE RANGE"})]})]}),(0,I.jsx)(d.A,{sx:{display:"flex",flexDirection:"row",bgcolor:"white",flexWrap:"wrap",width:"100%",gap:6,p:{xs:2,md:4}},children:rr.map(((e,r)=>(0,I.jsxs)(c.A,{direction:"row",spacing:1,alignItems:"center",mb:1,children:[(0,I.jsx)(h.A,{children:e.icon}),(0,I.jsxs)(d.A,{sx:{display:"flex",flexDirection:"column"},children:[(0,I.jsx)(a.A,{variant:"subtitle2",color:"text.secondary",children:e.label}),(0,I.jsx)(a.A,{variant:"body2",children:e.value||"N/A"})]})]},r)))}),(0,I.jsxs)(d.A,{ref:Ce,sx:{width:"100%"},children:[null!==Ee&&void 0!==Ee&&null!==(r=Ee[0])&&void 0!==r&&r.bhk?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)(d.A,{sx:{p:{xs:2,md:4},bgcolor:"white",width:"100%"},children:[(0,I.jsx)(a.A,{variant:"h5",gutterBottom:!0,children:"Price & Configurations"}
1),(0,I.jsx)(u.A,{value:Ze,exclusive:!0,color:"primary",onChange:(e,r)=>{null!==r&&Je(r)},sx:{mb:2},children:[...new Set(Ke.map((e=>e.bhk)))].map((e=>(0,I.jsxs)(m.A,{value:e,children:[e," BHK"]},e)))}),(0,I.jsx)(p.Ay,{container:!0,spacing:2,children:Ke.filter((e=>e.bhk===Ze)).map(((e,r)=>(0,I.jsx)(p.Ay,{item:!0,xs:12,md:4,children:(0,I.jsxs)(g.A,{variant:"outlined",sx:{p:2,background:"linear-gradient(135deg, #ffffffff, #ddf5f8ff)",borderRadius:1,border:"1px solid #c2eaf0ff",color:"black"},children:[(0,I.jsxs)(a.A,{variant:"h6",children:[e.bhk," BHK"]}),(0,I.jsxs)(a.A,{children:["Area: ",e.area," sqft"]}),(0,I.jsxs)(a.A,{children:["Price: \u20b9",e.price.toLocaleString()]})]})},r)))})]}),(0,I.jsxs)(d.A,{sx:{scrollMarginTop:{xs:"80px",sm:"100px"},p:{xs:1,md:3},bgcolor:"white"},children:[(0,I.jsx)(a.A,{variant:"h5",gutterBottom:!0,children:"Floor Plans"}),(0,I.jsx)(p.Ay,{container:!0,spacing:2,children:Ve.filter((e=>e.bhk===Ze)).map(((e,r)=>(0,I.jsx)(p.Ay,{item:!0,xs:12,md:4,children:(0,I.jsxs)(g.A,{sx:{border:"1px solid #ddd",boxShadow:0,p:1},children:[(0,I.jsx)(j.A,{component:"img",height:"180",image:(null===e||void 0===e?void 0:e.floorPlanImage[0])||"/placeholder.png",alt:`Floor Plan ${r+1}`}),(0,I.jsxs)(d.A,{sx:{p:1},children:[(0,I.jsxs)(a.A,{variant:"subtitle1",children:[e.bhk," BHK"]}),(0,I.jsxs)(a.A,{variant:"body2",children:["Furnishing: ",e.furnishingStatus]})]})]})},r)))})]})]}):(0,I.jsx)(d.A,{sx:{p:{xs:2,md:4},bgcolor:"white",width:"100%"},children:"No Florr Plans Availbale"}),(null===Ee||void 0===Ee||null===(i=Ee[0])||void 0===i?void 0:i.bhk)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(A.A,{sx:{my:4}}),(0,I.jsxs)(d.A,{ref:We,sx:{bgcolor:"white",p:{xs:1,md:3}},children:[(0,I.jsx)(a.A,{variant:"h5",gutterBottom:!0,children:"Price & List"}),Ee.map(((e,r)=>(0,I.jsx)(d.A,{sx:{mb:4},children:(0,I.jsx)(f.A,{component:v.A,children:(0,I.jsxs)(b.A,{children:[(0,I.jsx)(w.A,{children:(0,I.jsxs)(y.A,{children:[(0,I.jsx)(k.A,{children:(0,I.jsx)("strong",{children:"Unit Type"})}),(0,I.jsx)(k.A,{children:(0,I.jsx)("strong",{children:"Price"})})]})}),(0,I.jsx)(S.A,{children:e.plans.map(((r,i)=>(0,I.jsxs)(y.A,{children:[(0,I.jsxs)(k.A,{children:[e.bhk," BHK ",Ye," "]}),(0,I.jsx)(k.A,{children:r.price})]},i)))})]})})},r)))]})]}),tr.length>0&&(0,I.jsxs)(I.Fragment,{children:[" ",(0,I.jsx)(A.A,{sx:{my:4}}),(0,I.jsxs)(d.A,{ref:Be,sx:{bgcolor:"white",scrollMarginTop:{xs:"80px",sm:"100px"},p:{xs:1,md:3}},children:[(0,I.jsx)(a.A,{variant:"h5",gutterBottom:!0,children:"Amenities"}),(0,I.jsx)(d.A,{sx:{display:"flex",flexWrap:"wrap",gap:1,mt:1},children:tr.length>0&&(0,I.jsx)(I.Fragment,{children:tr.map(((e,r)=>(0,I.jsx)(R.A,{label:e,variant:"outlined"},r)))})})]})," "]}),(0,I.jsx)(A.A,{sx:{my:4}}),(0,I.jsxs)(d.A,{sx:{mt:2,p:3,bgcolor:"white"},children:[(0,I.jsx)(a.A,{variant:"h4",gutterBottom:!0,children:"View on map"}),(0,I.jsx)("iframe",{title:"map",src:Ge,width:"100%",height:"300",style:{border:0,borderRadius:"8px"},allowFullScreen:!0,loading:"lazy"})]}),_e&&(0,I.jsxs)(d.A,{mt:6,children:[(0,I.jsx)(a.A,{variant:"h4",gutterBottom:!0,children:"Project Video"}),"    ",(0,I.jsx)("iframe",{width:"100%",height:"360",src:function(e){try{let r;if(e.includes("youtu.be"))r=e.split("youtu.be/")[1].split("?")[0];else if(e.includes("youtube.com/watch")){r=new URL(e).searchParams.get("v")}return r?`https://www.youtube.com/embed/${r}`:null}catch(r){return null}}(_e),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})," "]}),ce.length>0&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(a.A,{variant:"h4",mt:6,gutterBottom:!0,children:"Property media Library"}),(0,I.jsx)(J.A,{images:ce})]}),(0,I.jsxs)(d.A,{ref:$e,sx:{scrollMarginTop:{xs:"80px",sm:"100px"},my:4},children:[(0,I.jsx)(a.A,{variant:"h5",gutterBottom:!0,mb:4,children:"View Official Brochure"}),null!==se&&void 0!==se&&null!==(te=se.Boruchures)&&void 0!==te&&null!==(ne=te[0])&&void 0!==ne&&ne.borchureUrl?(0,I.jsx)(D,{fileUrl:se.Boruchures[0].borchureUrl}):(0,I.jsx)(a.A,{children:"No brochure available."})]}),(0,I.jsx)(A.A,{sx:{my:4}}),(0,I.jsxs)(d.A,{ref:Ie,sx:{bgcolor:"white",p:{xs:1,md:3},mb:4},children:[(0,I.jsx)(a.A,{variant:"h5",gutterBottom:!0,children:"About Project"}),(0,I.jsx)(d.A,{sx:{fontSize:"1rem",lineHeight:1.6,"& img":{maxWidth:"100%",height:"auto"},"& p":{marginBottom:"1em"}},dangerouslySetInnerHTML:{__html:function(e){const r=document.createElement("textarea");return r.innerHTML=e,r.value}(ir||"")}}),Ne.length>200&&(0,I.jsx)(x.A,{variant:"text",color:"primary",size:"small",onClick:()=>pe(!me),children:me?"Read Less":"Read More"})]})]})]}),(0,I.jsx)(d.A,{sx:{border:"1px solid lightgray",top:"24%",position:"sticky",width:{xs:"100%",md:"26%"},borderRadius:2,boxShadow:4,mt:4,mb:4,height:"fit-content",bgcolor:"white"},children:(0,I.jsx)(N.A,{id:se.id,property:se,owner:null===se||void 0===se?void 0:se.User})})]}),(0,I.jsx)(re,{dealers:Oe}),(0,I.jsx)(d.A,{ref:Pe,children:(0,I.jsx)(ee.A,{id:se.id})}),(0,I.jsx)(c.A,{width:"100%",justifyContent:"center",alignItems:"center",children:(0,I.jsxs)(d.A,{ref:De,sx:{bgcolor:"white",p:{xs:1,md:3},width:"80%"},children:[(0,I.jsxs)(a.A,{color:"initial",variant:"h4",font:"bold",gutterBottom:!0,sx:{px:{xs:1,md:3}},children:["FAQs about ",se.projectName]}),null!==se&&void 0!==se&&se.FAQs&&se.FAQs.length>0?se.FAQs.map(((e,r)=>
1(0,I.jsxs)(C.A,{elevation:0,children:[(0,I.jsx)(B.A,{elevation:0,evalu:!0,fullWidth:!0,expandIcon:(0,I.jsx)(o.A,{}),"aria-controls":`faq-content-${r}`,id:`faq-header-${r}`,children:(0,I.jsx)(a.A,{variant:"subtitle1",children:e.question})}),(0,I.jsx)(P.A,{children:(0,I.jsx)(a.A,{variant:"body2",color:"text.secondary",children:e.answer})})]},e.id||r))):(0,I.jsx)(a.A,{variant:"body2",color:"text.secondary",children:"No FAQs available"})]})}),(0,I.jsx)(d.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",width:"100%",gap:{sx:2,sm:4},overflowX:"hidden"},children:(0,I.jsx)(Z.default,{breakPoint:3})}),(0,I.jsx)(H.A,{}),(0,I.jsx)(Y.A,{}),ge&&(0,I.jsx)(q.Ay,{open:ge,close:()=>je(!1),slides:er,index:Ae,plugins:[_.A,Q.A,G.A,O.A,V.A,X.A],counter:{container:{style:{top:"unset",bottom:0}}},thumbnails:{position:"bottom"}}),(0,I.jsx)(ie.Ay,{})]})}}}]);
2//# sourceMappingURL=3508.02e4ce67.chunk.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.