PageSourceSearch

https://www.sino.com/static/js/33.c568286d.chunk.js

js sino.com collected 2026-09-24 09:04:06 UTC 27,334 bytes, 1 lines download raw bytes

1(this["webpackJsonpisobar-sino-website-v2"]=this["webpackJsonpisobar-sino-website-v2"]||[]).push([[33],{1075:function(e,t,a){"use strict";var n=a(406);a.d(t,"a",(function(){return n.a}))},1078:function(e,t,a){"use strict";var n=a(407);a.d(t,"a",(function(){return n.a}))},1082:function(e,t,a){"use strict";var n=a(20),r=a(11),o=a(19),i=a(0),l=a.n(i),c=a(22),s=a.n(c),u=a(8),m=a(1525),d=a(10),p=a(1597),g=a(103),h=a(33),b=a(42),f=a(35),y=s()((function(e){return{root:Object(o.a)({outline:"none",position:"relative",display:"inline-flex",cursor:"pointer"},e.breakpoints.down("xs"),{width:"100%"}),arrow:{position:"absolute",top:0,right:0,height:"100%",borderTopRightRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,backgroundColor:e.palette.primary.main,display:"flex",justifyContent:"center",alignItems:"center"},content:Object(o.a)({outline:"none",paddingRight:24,border:"1px solid "+e.palette.primary.main,borderRadius:e.shape.borderRadius,overflow:"hidden"},e.breakpoints.down("xs"),{width:"100%"}),valueContainer:{height:"100%",display:"flex",alignItems:"center"},value:Object(r.a)(Object(r.a)({},e.typography.h6),{},{lineHeight:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),popover:{"& .MuiPopover-paper":{maxWidth:"100%",border:"1px solid "+e.palette.primary.main},"& .MuiMenuItem-root":{minHeight:36,paddingTop:6,paddingBottom:6}},menuList:{maxHeight:"300px",overflow:"scroll"}}})),v=function(e){var t=y(),a=e.dropdownAlignRight?"right":"left",r=e.borderless,o=e.buttonTitle,c=e.value,s=e.height||34,v=e.width||305,E=e.disableOnClick||!1,w=e.ariaLabel,_=e.px||2,k=Object(i.useRef)(null),O=l.a.useState(null),j=Object(n.a)(O,2),x=j[0],C=j[1],T=l.a.useState(!1),R=Object(n.a)(T,2),L=R[0],I=R[1],P=l.a.useState(0),N=Object(n.a)(P,2),B=N[0],S=N[1],A=Object(i.useRef)(null),M=Object(i.useRef)(null),D=Array.isArray(e.children)?e.children.filter((function(e){return null!=e&&"object"===typeof e})).flat(1):[e.children];Object(f.a)();var W=Object(i.useRef)(null),F=l.a.useState(0),z=Object(n.a)(F,2),U=z[0],H=z[1];Object(i.useLayoutEffect)((function(){if(W&&W.current&&0===U){var e=W.current?W.current.getBoundingClientRect().width:0;H(e)}}),[W,U]),Object(i.useEffect)((function(){var e=function(e){["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)&&I(!1)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]);var q=null;if(Array.isArray(D)){q=D[0].props.value;var G=D.filter((function(e){return e.props.selected}));q=G.length>0?G[0].props.value:D[0].props.value}else q=D.props.value;c&&(q=c);var K=l.a.useState(q),V=Object(n.a)(K,2),Q=V[0],Y=V[1],Z=function(e){I(!1)},J=function(){A&&A.current&&(A.current.scrollTop=B)};return l.a.createElement(l.a.Fragment,null,l.a.createElement(u.a,{ref:W,width:v,height:34,className:Object(d.a)(t.root,e.className),onClick:function(e){C(e.currentTarget);var t=window.innerHeight,a=e.currentTarget.getBoundingClientRect().bottom+300+32;t<a?(g.animateScroll.scrollMore(a-t,{duration:500,smooth:"easeInOutQuint"}),setTimeout((function(){I(!0)}),400)):I(!0)},tabIndex:"0",role:"button","aria-label":w,style:e.style},r?l.a.createElement(u.a,{display:"flex",alignItems:"center"},l.a.createElement(u.a,{mr:1},l.a.createElement(h.a,{variant:"h4",color:"primary",children:o})),L?l.a.createElement(b.k,null):l.a.createElement(b.j,null)):l.a.createElement(l.a.Fragment,null,l.a.createElement(u.a,{width:s,className:t.arrow},l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10.51 7",width:"10.5",height:"7"},l.a.createElement("path",{d:"M10.51,0,5.26,7,0,0Z",fill:"#fff"}))),l.a.createElement("input",{ref:k,name:e.name,type:"hidden",value:Q}),l.a.createElement(u.a,{className:t.content,width:v,height:s},l.a.createElement(u.a,{className:t.valueContainer,px:_,mt:.125},l.a.createElement(u.a,{className:t.value},D.filter((function(e){return e.props.value===Q})).length>0?D.filter((function(e){return e.props.value===Q}))[0].props.children:D[0].props.children))))),l.a.createElement(m.a,{action:M,open:L,anchorEl:x,onClose:Z,anchorOrigin:{vertical:"bottom",horizontal:a},transformOrigin:{vertical:"top",horizontal:a},className:Object(d.a)(t.popover),style:{width:"".concat(U,"px")},onEnter:function(){return J||M.current&&M.current.updatePosition()},onEntering:function(){return M.current&&M.current.updatePosition()},onEntered:function(){return M.current&&M.current.updatePosition()}},l.a.createElement(p.a,{ref:A,className:t.menuList,style:{width:"".concat(U,"px")},onScroll:function(){S(A.current.scrollTop)}},l.a.Children.map(D,(function(t){return l.a.cloneElement(t,{selected:t.props.value===Q,tabIndex:0,onClick:function(){return function(t){Z(),E||t!==Q&&(Y(t),e.onChange&&e.onChange(t))}(t.props.value)}})})))))};a.d(t,"a",(function(){return v}))},1091:function(e,t,a){"use strict";var n=a(408);a.d(t,"a",(function(){return n.a}))},1132:function(e,t,a){"use strict";var n=a(61),r=a(258),o=a(13),i={fetchAllProperty:function(e){return r.a.items().types([o.a.propertyA,o.a.propertyB,o.a.propertyMainlandChina]).languageParameter(e).orderByAscending("elements.property_attribute__rank").depthParameter(6).limitParameter(1e3).toObservable().pipe(Object(n.a)((function(e){return e.items})))},fetchHotelsAndYachtClubList:function(e){return r.a.items().types([o.a.hotelsYachtClub]).languageParameter(e).orderByAscending("elements.name").depthParameter(6).limitParameter(1e3).toObservable().pipe(Object(n.a)((function(e){return e.items})))},fetchMapPropertyList:function(e){return r.a.items().types([o.a.mapProperty]).languageParameter(e).orderByAscending("elements.name").depthParameter(6).limitParameter(1e3).toObservable().pipe(Object(n.a)((function(e){return e.items})))},fetchPropertyContentList:function(e,t,a,i,l,c,s){var u=r.a.items().types([o.a.propertyA,o.a.propertyB,o.a.propertyAdvertisement,o.a.propertyQuote,o.a.propertyMainlandChina]).languageParameter(l).orderByAscending("elements.property_attribute__rank").depthParameter(6).skipParameter(c*s).limitParameter(s);return e&&u.containsFilter("elements.property_attribute__business_category",[e]),t&&u.anyFilter("elements.property_attribute__property_region",t),a&&u.containsFilter("elements.property_attribute__property_type",[a]),i&&u.containsFilter("elements.property_attribute__property_location",[i]),u.toObservable().pipe(Object(n.a)((function(e){return{items:e.items,hasMore:""!==e.pagination.nextPage}})))},fetchPropertyDetail:function(e,t,a){return r.a.items().types([o.a.propertyA,o.a.propertyB]).languageParameter(a).containsFilter("elements.property_attribute__business_category",[e]).equalsFilter("elements.slug",t).depthParameter(6).limitParameter(1).toObservable().pipe(Object(n.a)((function(e){return e.items[0]})))},fetchNextPropertyDetail:function(e,t,a){var i=r.a.items().types([o.a.propertyA,o.a.propertyB]).languageParameter(a).containsFilter("elements.property_attribute__business_category",[e]).greaterThanFilter("elements.property_attribute__rank",t.rank.value).orderByAscending("elements.property_attribute__rank").depthParameter(6).limitParameter(5);return t.propertyType.value.length>0&&i.containsFilter("elements.property_attribute__property_type",[t.propertyType.value[0].codename]),i.toObservable().pipe(Object(n.a)((function(e){return e.items.length>0?e.items[0]:null})))}};t.a=i},1171:function(e,t,a){"use strict";var n=a(19),r=a(11),o=a(0),i=a.n(o),l=a(22),c=a.n(l),s=a(8),u=a(33),m=a(76),d=a(10),p=a(29),g=a(40),h=a(75),b=a(30),f=a(427),y=c()((function(e){return Object(r.a)(Object(r.a)({},Object(b.a)(e)),{},{cardTop:{border:"1px solid "+e.palette.common.borderGrey,borderBottom:"0",borderTopLeftRadius:e.shape.borderRadius2,borderTopRightRadius:e.shape.borderRadius2},cardTopBottom:{border:"1px solid "+e.palette.common.borderGrey,borderRadius:e.shape.borderRadius2},imageContainer:{borderRadius:5,overflow:"hidden"},cardBody:Object(n.a)({},e.breakpoints.down("sm"),{fontSize:"0.875rem"}),cardButton:{backgroundColor:e.palette.primary.main,"& > *":{color:e.palette.common.white}}})}));t.a=function(e){var t=e.title,a=e.subtitle,n=e.thumbnailImagePaddingTop,r=e.thumbnailImage,o=e.body,l=e.buttonTitle,c=e.buttonLink,b=e.buttonGtmClass,v=e.awardList,E=e.onClick,w=y(),_=Object(p.b)().getLocalizedUrl,k=l&&""!==l&&c&&""!==c;return i.a.createElement(s.a,null,i.a.createElement(s.a,{pt:2.5,px:2,className:Object(d.a)(k?w.cardTop:w.cardTopBottom)},i.a.createElement(u.a,{variant:"h3",children:t,className:"uppercase"}),a&&i.a.createElement(s.a,{mt:.5},i.a.createElement(u.a,{variant:"body2",children:a})),i.a.createElement(s.a,{position:"relative",mt:1,className:w.imageContainer,style:{paddingTop:n}},r&&i.a.createElement(h.a,{img:!0,cover:!0,positionAbsolute:!0,width:"100%",height:"100%",src:r,alt:t})),i.a.createElement(s.a,{py:2,minHeight:120,className:w.overflowHidden},i.a.createElement(g.a,{body:o,className:w.cardBody})),v&&i.a.createElement(s.a,{pb:2},i.a.createElement(f.a,{small:!0,awardList:v}))),k&&i.a.createElement(s.a,{width:1,height:50,display:"flex",justifyContent:"center",alignItems:"center",className:Object(d.a)(w.borderRadius2BottomClip,w.cardButton)},i.a.createElement(m.a,{width:"100%",toLink:_(c),title:l,border:!0,iconExternalLink:!0,iconForceWhite:!0,onClick:E,className:b&&b})))}},1532:function(e,t,a){"use strict";a.r(t);var n=a(20),r=a(19),o=a(11),i=a(0),l=a.n(i),c=a(409),s=a(13),u=a(1075),m=a(1091),d=a(22),p=a.n(d),g=a(29),h=a(192),b=a(33),f=a(89),y=a(404),v=a(10),E=a(8),w=a(123),_=a(260),k=a.n(_),O=a(1598),j=a(193),x=a(1345),C=a(76),T=a(1132),R=a(75),L=a(62),I=a(164),P=a(422),N=a(1078),B=a(334),S=a(181),A=a(125),M=a(1082),D=a(27),W=a(35),F=a(30),z=a(42),U=a(1171),H=a(1083),q=a.n(H),G=a(59),K=a(103),V=a(49),Q=a(102),Y=a(14),Z=p()((function(e){return Object(o.a)(Object(o.a)({},Object(F.a)(e)),{},{region:Object(r.a)(Object(r.a)({padding:"0.84375rem 0",width:"100%",textAlign:"center",backgroundColor:e.palette.common.grey,borderRadius:e.shape.borderRadius,fontWeight:e.typography.fontWeightRegular,cursor:"pointer",outline:"none"},e.breakpoints.down("sm"),{padding:"0.84375rem 0.75rem",borderRadius:e.shape.borderRadius2,boxShadow:"0px 3px 6px 0px rgba(0,0,0,0.16)"}),"@media (max-width:419.98px)",{fontSize:"3.5vw"}),regionLeft:Object(r.a)({},e.breakpoints.down("sm"),{borderTopRightRadius:0,borderBottomRightRadius:0}),regionRight:Object(r.a)({},e.breakpoints.down("sm"),{borderTopLeftRadius:0,borderBottomLeftRadius:0}),regionSelected:{backgroundColor:e.palette.primary.main,color:e.palette.common.white,fontWeight:e.typography.fontWeightBold},type:{padding:e.spacing(.5,0),color:e.palette.text.primary,fontWeight:e.typography.fontWeightBold,cursor:"pointer"},typeSelected:{color:e.palette.primary.main,cursor:"default"},typeSelectedIndicator:{position:"absolute",left:0,bottom:0,width:"100%",height:3,backgroundColor:e.palette.primary.main},typeSeparator:{margin:e.spacing(0,3.5),width:1,height:30,backgroundColor:e.palette.common.borderGrey}
1,selectArrowBackground:{position:"absolute",top:0,right:0,width:34,height:"100%",borderTopRightRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,backgroundColor:e.palette.primary.main},list:{overflow:"visible !important"},listItem:{width:"50%","& > *":Object(r.a)({width:"100%",borderRadius:e.shape.borderRadius},e.breakpoints.down("sm"),{borderRadius:e.shape.borderRadius2})},listItemFullWidth:{width:"100%"},listItemMainlandChinaProperty:{overflow:"hidden","& > *":Object(r.a)({paddingTop:105,marginTop:-105},e.breakpoints.down("sm"),{paddingTop:75,marginTop:-75})},propertyItem:Object(r.a)({borderRadius:e.shape.borderRadius,border:"1px solid "+e.palette.common.borderGrey,"& h2":{marginBottom:4},"& p":{color:e.palette.text.primary}},e.breakpoints.down("sm"),{borderRadius:e.shape.borderRadius2,boxShadow:"0px 3px 6px 0px rgba(0,0,0,0.16)"}),propertyImageContainer:Object(r.a)({paddingTop:"62.5%",borderRadius:5,overflow:"hidden"},e.breakpoints.down("sm"),{paddingTop:"62.5%"}),mediaContainer:{width:"100%",height:"100%",borderRadius:e.shape.borderRadius,overflow:"hidden"},advertisementItem:Object(r.a)({paddingTop:220/544*100+"%"},e.breakpoints.down("md"),{paddingTop:270/544*100+"%"}),advertisementItemTitle:{fontWeight:e.typography.fontWeightBold,color:e.palette.common.white},advertisementItemBody:Object(o.a)(Object(o.a)({},e.typography.body1),{},{marginTop:e.spacing(.5),color:e.palette.common.white}),quoteItem:Object(r.a)({paddingTop:290/544*100+"%","& *":{color:e.palette.common.white}},e.breakpoints.down("sm"),{paddingTop:210/326*100+"%"}),mobileAdvertisementItemButton:{borderTop:"1px solid "+e.palette.common.white}})})),J={hong_kong:"hong-kong",mainland_china:"chinese-mainland",mainland_china_and_overseas:"chinese-mainland-and-overseas"},X={for_sale:"-for-sale",for_lease:"-for-lease"},$={page___residential:"retail",page___retail:"offices",page___offices:"industrial",page___industrial:"hotels-and-yacht-club"},ee=function(e){var t=e.codename,a=e.regions,n=e.selectedRegion,r=e.handleSelectRegion,o=Z(),i=Object(g.b)(),c=i.getLocalizedUrl,s=i.getLocalization;return l.a.createElement(h.a,{container:!0,spacing:Object(Y.e)()?2:0},a.map((function(e,a){return l.a.createElement(h.a,{item:!0,xs:6,key:e.name},l.a.createElement(L.b,{to:c("/our-business/".concat(t.replace("page___",""),"/").concat(J[e.codename])),style:{height:"100%"}},l.a.createElement(b.a,{variant:"h3",component:"button",color:"textPrimary",children:s("taxonomy_property_region",e.codename),className:Object(v.a)(o.region,o.h3WithLetterSpacing,0===a&&o.regionLeft,0!==a&&o.regionRight,n===e&&o.regionSelected),onClick:function(){return n!==e&&r(e)},style:{height:"100%"}})))})))},te=function(e){var t=e.propertyMainlandChina,a=Object(g.b)().getLocalization;return l.a.createElement(U.a,{title:t.name.value,subtitle:t.location.value,thumbnailImagePaddingTop:"62.5%",thumbnailImage:t.thumbnailImage.value[0].url,body:t.description.value,buttonTitle:a("our_business","visit_property_website"),buttonLink:t.websiteUrl.value,onClick:function(){return V.a.ourBusinessOutboundLink(t.websiteUrl.value)}})},ae=function(e){e.codename;var t=e.content,a=Z(),n=Object(g.b)().getLocalizedUrl,r=t.title.value,o=t.district.value,i=t.thumbnailImage.value[0].url,c=t.thumbnailImage.value[0].description;return t.listingThumbnailImage.value.length>0&&(i=t.listingThumbnailImage.value[0].url,c=t.listingThumbnailImage.value[0].description||r),l.a.createElement(h.a,{item:!0,xs:12,sm:6,className:a.listItem},l.a.createElement(L.c,{className:"text-decoration-none",to:n(t.getUrl())},l.a.createElement(G.default,null,l.a.createElement(E.a,{component:"figure",position:"relative",className:a.propertyItem},l.a.createElement(E.a,{pt:{xs:2.5,sm:3.25},px:2,pb:2.5,width:1,height:1},l.a.createElement(D.b,null,l.a.createElement(b.a,{variant:"h2",color:"textPrimary",children:r,className:"uppercase"})),l.a.createElement(D.d,null,l.a.createElement(E.a,{mb:.5},l.a.createElement(b.a,{variant:"h3",color:"textPrimary",children:r,className:"uppercase"}))),l.a.createElement(b.a,{variant:"body2",children:o}),l.a.createElement(E.a,{position:"relative",mt:1,className:a.propertyImageContainer},i&&l.a.createElement(R.a,{img:!0,cover:!0,positionAbsolute:!0,width:"100%",height:"100%",src:i,srcset:Q.a.getSrcSet(i,625,390),alt:c})))))))},ne=function(e){var t=e.quote,a=Z();return l.a.createElement(h.a,{item:!0,xs:12,sm:6,className:a.listItem},l.a.createElement(G.default,null,l.a.createElement(E.a,{position:"relative",className:a.quoteItem},l.a.createElement(B.a,{quote:t}))))},re=function(e){var t=e.content,a=e.onExpandCollapse,r=Z(),o=Object(g.b)().getLocalizedUrl,i=t.thumbnailImage.value[0].url,c=t.thumbnailImage.value[0].description,s=t.backgroundColor.value,u=t.title.value,m=t.body.value,d=t.buttonTitle.value,p=t.buttonUrl.value,w=l.a.useState(!1),_=Object(n.a)(w,2),k=_[0],O=_[1];return l.a.createElement(h.a,{item:!0,xs:12,sm:6,className:r.listItem},l.a.createElement(G.default,null,l.a.createElement(f.a,{mdDown:!0},l.a.createElement(E.a,{component:"figure",position:"relative",className:r.advertisementItem},l.a.createElement(E.a,{position:"absolute",width:1,height:1,top:0,left:0,display:"flex"},l.a.createElement(E.a,{position:"relative",width:220/544,height:1,flexShrink:"0"},l.a.createElement(R.a,{img:!0,cover:!0,width:"100%",height:"100%",src:i,srcset:Q.a.getSrcSet(i,220,220),alt:c})),l.a.createElement(E.a,{px:4,width:1,height:1,display:"flex",flexDirection:"column",justifyContent:"center",style:{backgroundColor:s}},l.a.createElement(b.a,{variant:"h3",className:r.advertisementItemTitle,children:u}),""!==m&&l.a.createElement(E.a,{children:m,className:r.advertisementItemBody}),l.a.createElement(E.a,{mt:3},l.a.createElement(C.a,{title:d,toLink:p,white:!0,border:!0,iconExternalLink:!0}
1)))))),l.a.createElement(f.a,{lgUp:!0},l.a.createElement(E.a,{style:{backgroundColor:s},className:r.roundCorner2},l.a.createElement(E.a,{display:"flex",justifyContent:"space-between",alignItems:"center",px:2.5,height:60,onClick:function(){var e;O(!k);var t=0;e=setInterval((function(){a(),(t+=1)>=50&&clearInterval(e)}),10)}},l.a.createElement(b.a,{variant:"h3",className:r.advertisementItemTitle,children:u}),l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6.28",width:"10",height:"6.28"},k?l.a.createElement("path",{d:"M0,6.28,5,0l5,6.28Z",fill:"#fff"}):l.a.createElement("path",{d:"M10,0,5,6.28,0,0Z",fill:"#fff"}))),l.a.createElement(y.a,{in:k},l.a.createElement(E.a,{pb:2,px:2.5,mt:-.5},l.a.createElement(b.a,{className:r.colorWhite,children:m})),l.a.createElement(E.a,{component:"a",href:p.includes("http")?p:"www"===p.substring(0,3)?"http://".concat(p):["/en/","/tc/","/sc/"].indexOf(p.substring(0,4))>=0?p:o(p),target:"_blank",rel:"noopener noreferrer",height:50,display:"flex",justifyContent:"center",alignItems:"center",className:Object(v.a)(r.mobileAdvertisementItemButton,r.textDecorationNone)},l.a.createElement(b.a,{variant:"h4",className:r.colorWhite,children:d}),l.a.createElement(E.a,{ml:1,mt:.25},l.a.createElement(z.r,null))))))))},oe={setShowDisclaimer:S.c};t.default=Object(I.h)(Object(A.b)(null,oe)((function(e){var t=e.location,a=e.history,r=e.codename,d=e.propertyRegion,p=e.propertyType,f=e.setShowDisclaimer,y=e.canonicalPath,_=Z(),C=Object(g.b)(),R=C.language,I=C.localizedStrings,B=C.getLocalization,S=C.getLocalizedUrl,A=l.a.useState({codename:r,shouldReloadContentList:!1,fetchingContentList:!1,selectedRegion:null,selectedType:null,selectedLocation:null,region:null,type:null,location:null,shuffle:null,contentList:null,hasMore:!1}),F=Object(n.a)(A,2),z=F[0],U=F[1],H=Object(i.useRef)(!0),Q=Object(i.useRef)(!1);Object(W.a)();var Y=Object(i.useRef)(null),oe=Object(i.useRef)(null),ie=Object(i.useRef)(null),le=function(){if(window.outerWidth>=768&&oe.current&&ie.current){var e=Y.current;e?e.resetItems():(e=new x.a(oe.current,{itemSelector:"."+_.listItem+", ."+_.listItemFullWidth,sizer:ie.current}),Y.current=e),setTimeout((function(){e.resetItems()}),10)}};window.outerWidth<769&&function(){var e=Y.current;e&&(e.destroy(),Y.current=null)}(),Object(i.useLayoutEffect)((function(){setTimeout((function(){var e=window.scrollY;window.scrollTo(0,e-.1),window.scrollTo(0,e+.1)}),200)}));var ce=function(e,t){return Object(o.a)(Object(o.a)(Object(o.a)({selectedRegion:e,region:e.codename,selectedType:null,type:null,selectedLocation:null,location:null},t?se(t):e.types.length>0?se(e.types[0]):{}),ue(e,null)),{},{contentList:null})},se=function(e){return{selectedType:e,type:e.codename,contentList:null}},ue=function(e,a){var n=a;if(H.current&&e.locations.length>0){var r=q.a.parse(t.search);n=e.locations.find((function(e){return e.codename===r.location}))}return H.current=!1,{selectedLocation:n,location:n?n.codename:"0",contentList:null}};if(c.a.fetchPageDataIfNeeded(s.a.pageT10BusinessCategory,r,R,z,U).subscribe(),!z.pageData)return l.a.createElement(j.a,{mt:5});if(r!==z.codename)return U({}),l.a.createElement(j.a,{mt:5});var me=z.pageData,de=z.regions;if(!de){var pe=(de=me.getPropertyRegionList().map((function(e){var t=e.getName(),a=e.getCodename(),n=e.getPropertyLocationList().map((function(e){return{name:e.name,codename:e.codename}})),r=e.getPropertyTypeList().map((function(e){var t=e.getCodename();return{seoTitle:e.seoTitle,seoDescription:e.seoDescription,seoKeywords:e.seoKeywords,kvImage:e.kvImage,kvImageMobile:e.kvImageMobile,kvVideo:e.kvVideo,kvTitle:e.kvTitle,kvBody:e.kvBody,kvPropertyName:e.kvPropertyName,name:B("our_business",t),codename:t}}));return{kvImage:e.kvImage,kvImageMobile:e.kvImageMobile,kvVideo:e.kvVideo,kvTitle:e.kvTitle,kvBody:e.kvBody,kvPropertyName:e.kvPropertyName,name:t,codename:a,types:r,locations:n}})))[0];d&&de.filter((function(e){return e.codename.includes(d.replace(/-/g,"_"))})).length>0&&(pe=de.filter((function(e){return e.codename.includes(d.replace(/-/g,"_"))}))[0]),p&&pe.types.length>0?U(Object(o.a)(Object(o.a)({},z),{},{regions:de},ce(pe,pe.types.find((function(e){return e.codename===p.replace(/-/g,"_")}))))):U(Object(o.a)(Object(o.a)({},z),{},{regions:de},ce(pe,null)))}var ge=function(){U(Object(o.a)(Object(o.a)({},z),{},{shouldReloadContentList:!1,fetchingContentList:!0}));var e="react-snap-seo"===navigator.userAgent?1e4:12;T.a.fetchPropertyContentList(me.businessCategory.value[0].codename,"0"!==z.regi
1on&&("mainland_china_and_overseas"===z.region?["mainland_china","overseas"]:[z.region]),"0"!==z.type&&z.type,"0"!==z.location&&z.location,R,(z.contentList?z.contentList.length:0)/e,e).subscribe((function(e){var a=z.contentList?z.contentList.concat(e.items):e.items,n=e.hasMore;U((function(e){return Object(o.a)(Object(o.a)({},e),{},{contentList:a,hasMore:n})})),setTimeout((function(){U((function(e){return Object(o.a)(Object(o.a)({},e),{},{fetchingContentList:!1})}))}),1e3),le(),setTimeout((function(){le()}),10),Q.current||(Q.current=!0,t.hash&&setTimeout((function(){K.scroller.scrollTo(t.hash.replace(/#/g,""),{duration:800,smooth:!0})}),1e3))}))};window.onscroll=function(){le()};(z.regions&&!z.contentList&&!z.fetchingContentList||z.shouldReloadContentList)&&ge(),f("for_sale"===z.type);var he=z.selectedRegion,be=z.selectedType,fe=z.contentList;console.log("selectedType",be);var ye=function(){var e=me.businessCategory.value[0].codename,t=he&&he.codename,a=be&&be.codename;return"residential"===e?t?"hong_kong"===t?"for_lease"===a?I.our_business.properties_for_lease_hk:I.our_business.properties_for_sale_hk:I.our_business.properties_for_sale_lease_mainland_and_overseas:I.menu.residential:"retail"===e?t?"hong_kong"===t?I.our_business.retail_leasing_hk:I.our_business.retail_leasing_mainland:I.menu.retail:"offices"===e?t?"hong_kong"===t?I.our_business.offices_leasing_hk:I.our_business.offices_leasing_mainland:I.menu.offices:"industrial"===e?t?I.our_business.industrial_leasing_hk:I.menu.industrial:null};return l.a.createElement("div",{className:"page-t13"},be?l.a.createElement(u.a,{topLevelTitle:B("menu","our_business"),title:""!==be.seoTitle.value?be.seoTitle.value:me.seoTitle.value,description:""!==be.seoDescription.value?be.seoDescription.value:me.seoDescription.value,keywords:""!==be.seoKeywords.value?be.seoKeywords.value:me.seoKeywords.value,overrideTitle:!0,canonicalPath:y}):l.a.createElement(u.a,{pageData:me,topLevelTitle:B("menu","our_business"),canonicalPath:y}),be&&be.kvImage.value.length>0?l.a.createElement(m.a,{pageData:be,imageCaption:be.kvPropertyName.value,topLevelPage:"our-business",overrideBreadcrumbTitle:ye()}):he&&he.kvImage.value.length>0?l.a.createElement(m.a,{pageData:he,imageCaption:he.kvPropertyName.value,topLevelPage:"our-business",overrideBreadcrumbTitle:ye()}):l.a.createElement(m.a,{pageData:me,topLevelPage:"our-business",overrideBreadcrumbTitle:ye()}),he&&l.a.createElement(E.a,{component:"section",my:{xs:7.5,md:12.5}},l.a.createElement(w.a,{fixed:!0},l.a.createElement(G.default,null,de.length>1&&l.a.createElement(ee,{codename:r,regions:de,selectedRegion:he,handleSelectRegion:function(e){U(Object(o.a)(Object(o.a)({},z),{},{shouldReloadContentList:!0},ce(e)))}})),l.a.createElement(G.default,null,l.a.createElement(E.a,{mt:2.5,display:{xs:"block",sm:"flex"},justifyContent:"space-between"},l.a.createElement(E.a,{mb:{xs:3,md:0},mr:{xs:0,sm:2.5,md:0},position:"relative",display:"flex",flexShrink:0},he.types.map((function(e,t){var a=be===e,n=l.a.createElement(E.a,{key:e.name,display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",position:"relative"},l.a.createElement(L.b,{to:S("/our-business/".concat(r.replace("page___",""),"/").concat(J[he.codename],"/").concat(r.replace("page___","")).concat(X[e.codename]))},l.a.createElement(b.a,{component:"button",className:Object(v.a)(_.type,a&&_.typeSelected),children:e.name,onClick:function(){return!a&&function(e){U(Object(o.a)(Object(o.a)({},z),{},{shouldReloadContentList:!0},se(e)))}(e)}}),l.a.createElement(E.a,{component:"span",className:_.typeSelectedIndicator,display:a?"block":"none"}))),i=l.a.createElement(E.a,{key:e.name+"-separator",display:"flex",justifyContent:"center",alignItems:"center"},l.a.createElement("span",{className:_.typeSeparator}));return 0===t?n:[i,n]}))),he.locations&&he.locations.length>0&&l.a.createElement(l.a.Fragment,null,l.a.createElement(M.a,{name:"location",width:window.innerWidth<1166?"100%":void 0,value:z.location,onChange:function(e){return function(e){var n=he.locations.find((function(t){return t.codename===e})),r=Object(o.a)(Object(o.a)({},z),{},{shouldReloadContentList:!0},ue(he,n));U(r);var i=["0"!==e?"location=".concat(e):null].filter((function(e){return e})).join("&");a.replace({pathname:t.pathname,search:""!==i?"?".concat(i):""})}(e)}},l.a.createElement(O.a,{value:"0",selected:!0},B("our_business","all_locations")),he.locations.map((function(e,t){return l.a.createElement(O.a,{key:t,value:e.codename},B("taxonomy_property_location",e.codename))})))))),l.a.createElement(E.a,{mt:5},!fe&&l.a.createElement(j.a,null),l.a.createElement(h.a,{ref:oe,container:!0,spacing:2,className:_.list},fe&&fe.map((function(e,t){switch(e.contentType()){case s.a.propertyA:case s.a.propertyB:return l.a.createElement(ae,{key:t,content:e,codename:r});case s.a.propertyAdvertisement:return l.a.createElement(re,{key:t,content:e,onExpandCollapse:le});case s.a.propertyQuote:return l.a.createElement(ne,{key:t,quote:e.getQuote()});case s.a.propertyMainlandChina:return l.a.createElement(h.a,{key:t,item:!0,xs:12,className:Object(v.a)(_.listItemFullWidth,_.listItemMainlandChinaProperty)},l.a.createElement(K.Element,{name:e.getSlug()},l.a.createElement(G.default,null,l.a.createElement(D.c,null,l.a.createElement(P.a,{propertyMainlandChina:e,mediaAtRight:t%2===1,
1className:_.roundBorder,disableTwoStepAnimation:!0,onClick:function(){return V.a.ourBusinessOutboundLink(e.websiteUrl.value)}})),l.a.createElement(D.g,null,l.a.createElement(te,{propertyMainlandChina:e})))));default:return l.a.createElement("div",null)}})),l.a.createElement(h.a,{ref:ie,item:!0,xs:6,style:{height:0}})),fe&&z.hasMore&&l.a.createElement(E.a,{mt:5,display:"flex",justifyContent:"center"},l.a.createElement(k.a,{partialVisibility:!0,delayedCall:!0,onChange:function(e){e&&!z.fetchingContentList&&ge()}},l.a.createElement(j.a,null)))))),l.a.createElement(E.a,{component:"section",my:{xs:7.5,md:12.5}},l.a.createElement(w.a,{fixed:!0},l.a.createElement(N.a,{toPage:$[r]}))))})))}}]);

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.