PageSourceSearch

https://property.ca/dist/MobileSearchMainFilters.js?v=ed3e979fc87a

js property.ca collected 2026-10-01 12:22:42 UTC 10,119 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkRealtyCoreApp=self.webpackChunkRealtyCoreApp||[]).push([[32603,38155],{26582:(e,t,i)=>{i.r(t),i.d(t,{default:()=>E});var n=i(61225),o=i(2534),a=i(49430),r=i(87756),l=i(91159),s=i(96540),c=i(76955),d=i(10287),p=i(35350),u=i(27703),f=i(66528),m=i(882),h=i(51055),g=i(47752),b=i(80156);const x=(0,m.keyframes)(["0%{opacity:0;}50%{opacity:0.8;}100%{opacity:1;}"]),y=m.default.div.withConfig({displayName:"styles___MobileSearchMainFilters",componentId:"sc-pn6k84-0"})(["width:100%;display:none;position:absolute;top:",";z-index:1003;animation:",";",";@media screen and (max-width:","){padding:32px 32px 10px;display:flex;left:0;width:100%;","}@media screen and (max-width:","){padding:16px 16px 10px;display:block;left:0;max-width:100% !important;}"],(function(e){let{isMobileApp:t}=e;return t?"0":g.uF}),(function(e){let{miniSideBarVisible:t}=e;return t?`${x} 500ms ease-out 1.2s normal forwards`:"none"}),(function(e){let{miniSideBarVisible:t}=e;return t&&"\n    display: flex !important;\n    left: 120px;\n    opacity: 0;\n    // cannot add animation here\n  "}),g.Ff,(function(e){let{dockIsOpen:t}=e;return t?"":'\n        &:before {\n          content: "";\n          position: absolute;\n          left: 0;\n          top: 0;\n          right: 0;\n          bottom: 0;\n          background-color: rgba(255,255,255,.4);\n          backdrop-filter: grayscale(70%) blur(5px);\n        }\n\n      '}),g.zq),w=(0,m.css)(["border:0px solid white;border-radius:10px;"]),k=m.default.div.withConfig({displayName:"styles___FilterSearchCont",componentId:"sc-pn6k84-1"})(["width:100%;height:54px;position:relative;"]),F=(0,m.default)(h.A).withConfig({displayName:"styles___FilterSearch",componentId:"sc-pn6k84-2"})([""," margin:0 !important;.filterSearchInnerBox{background-color:white;width:100%;","}&.close{width:100%;max-width:100%;height:54px !important;box-shadow:0px 2px 6px rgba(0,0,0,0.25);}&.open{z-index:10000;}"],w,w),S=m.default.span.withConfig({displayName:"styles___Dot",componentId:"sc-pn6k84-3"})(["height:8px;width:8px;background-color:",";border-radius:50%;display:",";position:absolute;right:10px;top:13px;"],b.q5P,(function(e){let{showDot:t}=e;return t?"inline-block":"none"})),C=m.default.div.withConfig({displayName:"styles___AdvancedFiltersCta",componentId:"sc-pn6k84-4"})(['height:54px;position:absolute;right:0px;padding:0 16px;top:0;z-index:1000;display:flex;align-items:center;svg{fill:black;}&:before{content:"";position:absolute;width:1px;height:34px;background-color:grey;left:0px;}']),v=m.default.div.withConfig({displayName:"styles___SpecialFilters",componentId:"sc-pn6k84-5"})(["display:flex;margin-left:16px;top:70px;z-index:1000;> div{&:last-child{margin:0;}}.appDropdownFullPage,.dropdownSliderFullPage{margin-bottom:0;>div{margin-right:0;}&:first-child{margin-right:12px;}.dropdownContainer{position:relative;height:54px;border-radius:10px;border:1px solid white;background-color:white;box-shadow:0px 2px 6px rgba(0,0,0,0.25);}}@media screen and (max-width:","){margin-left:0;margin-top:12px;}"],g.zq),_=function(e){let{offer:t,drawActive:i,setMobileFilterButtonState:n,showMiniSideBar:o,isMobileApp:a,dockIsOpen:r,googleAnalyticsEvent:l,isFilterSearchOpen:m,setFilterSearchOpenState:h,basicFilterKeys:g,specialFilterKeys:b,filterLookup:x,lastSearchObj:w,filterOrders:_}=e;const E="Precon"===t;(0,d.A)({enabled:m,onBackButtonPress:function(){return h(!1)}});const A=(0,f.W)({basicFilterKeys:g,specialFilterKeys:b,filterLookup:x,lastSearchObj:w,filterOrders:_})>0;return i?null:s.createElement(y,{isMobileApp:a,dockIsOpen:r},s.createElement(k,null,s.createElement(F,{fullScreenResults:!0}),s.createElement(C,{isPrecon:E,onClick:function(){n(!0),l({category:"search",action:"[Mobile Advance filters open]"})}},s.createElement(c.A,{name:"#icon-filter",width:24,height:24}),s.createElement(S,{showDot:A}))),s.createElement(v,{miniSideBarVisible:o},s.createElement(u.default,{isBasic:!0,offer:t,orderType:p.b9.SPECIAL,mobileFullPagePopup:!0}),s.createElement(u.default,{isBasic:!0,offer:t,orderType:p.b9.BASIC,mobileFullPagePopup:!0})))},E=(0,n.Ng)((function(e){return{showMiniSideBar:e.searchPage.showMiniSideBar,drawActive:e.searchMap.drawEditorState.drawActive,isMobileApp:e.app.isMobileApp,isFilterSearchOpen:e.app.isFilterSearchOpen,basicFilterKeys:e.searchFilters.basicFilterKeys,specialFilterKeys:e.searchFilters.specialFilterKeys,filterLookup:e.searchFilters.filterLookup,filterOrders:e.searchFilters.filterOrders,lastSearchObj:(0,l.Px)(e)}}),{setMobileFilterButtonState:o.oF,googleAnalyticsEvent:r.K,setFilterSearchOpenState:a.OR})(_)},32603:(e,t,i)=>{i.r(t),i.d(t,{default:()=>x});var n=i(61225),o=i(40119),a=i(96540),r=i(53185),l=i(79130),s=i(19682),c=i(53944),d=i(882),p=i(47752),u=i(80156),f=i(32703);const m=d.default.div.withConfig({displayName:"styles___ListingCountFloatingBar",componentId:"sc-1fw9kca-0"})(["display:flex;align-items:center;position:sticky;width:100%;left:0;bottom:0;height:64px;background:",";box-shadow:",";z-index:100;padding:0 16px;justify-content:flex-end;button{min-width:190px;}span{color:white;}@media screen and (max-width:","){position:fixed;}@media screen and (min-width:","){bottom:",";}",";"],(function(e){let{mobileStyle:t}=e;return t?"transparent":"white"}),(function(e){let{mobileStyle:t}=e;return t?"none":"0 -5px 8px 3px rgba(215,215,215,0.4)"}),p.Ff,p.zq,(function(e){let{haveComparedListings:t}=e;return t?"20px":0}),(function(e){let{mobileStyle:t}=e;return t?`\n    padding: 16px;\n    height: 76px;\n    button {\n      width: 100%;\n      height: 44px;\n      box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.25);\n      background-color: ${u.q5P} !important;\n      border-radius: 10px;\n    }\n    `:""})),h=(0,d.default)(f.A).withConfig({displayName:"styles___ViewListingBtn",componentId:"sc-1fw9kca-1"})(["&:active{background:"," !important;}"],u.kb7),g=(0,d.default)(f.A).withConfig({displayName:"styles___LeftButton",componentId:"sc-1fw9kca-2"})(["text-decoration:underline;margin-left:12px;margin-right:25px;min-width:initial !important;&:hover{cursor:pointer;}"]),b=(0,r.A)((function(e){let{onClickLeftButton:t,onClickListingCountButton:i,leftButtonLabel:n,pagination:o,dockIsOpen:r,isIE:d,isArchive:p,parentContainerRef:u,isLoading:f=!1,haveComparedListings:b,mobileStyle:x,algoliaFeaturedTotal:y,offer:w,algoliaBuildingPagination:k}=e;const F="Precon"===w,S=d&&u&&u.clientWidth,C=F?k?.total:(0,c.a)({total:o?o.total+y:"",limit:s.IW-1,enableLimit:p});return a.createElement(m,{style:{width:S||"100%"},sticky:!d&&r,haveComparedListings:b,mobileStyle:x},x?"":a.createElement(g,{textClickableBtn:!0,onClick:t},n),a.createElement(h,{primary:!0,medium:!0,onClick:i},a.createElement("span",null,f?a.createElement(l.A,null):`View ${C} ${F?"Results":"Listings"}`)))})),x=(0,n.Ng)((function(e){return{dockIsOpen:(0,o.k3)(e),isIE:e.app.isIE,haveComparedListings:e.compare.comparedListingsLength>0,algoliaFeaturedTotal:e.listings.searchAlgoliaFeaturedTotal,algoliaBuildingPagination:e.algoliaBuildingList.pagination}}))(b)},66528:(e,t,i)=>{i.d(t,{A:()=>x,W:()=>b});var n=i(96540),o=i(45316),a=i(35831),r=i(76955),l=i(35350),s=i(45615),c=i(32603),d=i(882),p=i(47752);const u=d.default.div.withConfig({displayName:"styles___FilterView",componentId:"sc-m2vy6q-0"})(["position:relative;overflow-x:hidden;@media screen and (min-width:","){padding-top:12px;}"],p.zq),f=d.default.button.withConfig({displayName:"styles___LargeScreenCloseBtn",componentId:"sc-m2vy6q-1"})(["position:absolute;top:8px;right:14px;padding:8px 8px 6px 8px;border:none;&:hover{cursor:pointer;}@media screen and (max-width:","){display:none;}"],p.Ff),m=d.default.div.withConfig({displayName:"styles___StatusFilter",componentId:"sc-m2vy6q-2"})(["padding-left:24px;max-width:464px;margin-bottom:20px;margin-top:16px;display:none;@media screen and (max-width:","){display:block;}@media screen and (max-width:","){padding-left:0;}"],p.Ff,p.zq),h=d.default.div.withConfig({displayName:"styles___FilterTitle",componentId:"sc-m2vy6q-3"})(["margin-bottom:12px;line-height:22px;font-weight:600;
1"]),g=d.default.div.withConfig({displayName:"styles___ShowFrom768",componentId:"sc-m2vy6q-4"})(["display:",";@media screen and (max-width:","){display:block;}"],(function(e){let{forceShow:t}=e;return t?"block":"none"}),p.zq),b=function(e){let{filterLookup:t={},lastSearchObj:i={},startShowOnMobile:a=!1,basicFilterKeys:r=[],specialFilterKeys:l=[]}=e;const[s,c]=(0,n.useState)(0),d=function(e,t){const i=a?o.A(l,e):o.A([...r,...l],e),n=Object.keys(i).filter((function(e){return t[e]})).length;c(n)};return(0,n.useEffect)((function(){t&&d(t,i)}),[i]),(0,n.useEffect)((function(){t&&d(t,i)}),[t]),s},x=function(e){let{googleAnalyticsEvent:t,toggleMobileFilter:i,filterLookup:d,basicFilterKeys:p,specialFilterKeys:b,offer:x,showMobileVersion:y=!1,selectedMiniSideBarMenuState:w,isForSideBar:k,isArchive:F,isLoading:S=!1,pagination:C}=e;const v=(0,n.useRef)(null),_=(0,n.useRef)(null);(0,n.useEffect)((function(){_.current&&_.current.focus()}),[_.current]);const E=function(){i(!1),w("")};return n.createElement("div",null,n.createElement(u,{ref:v},!k&&n.createElement(f,{ref:_,"aria-label":"Close filter view",onClick:E},n.createElement(r.A,{name:"#icon-slim-close",width:14,height:14})),n.createElement(m,null,n.createElement(h,null,"Listing Status"),n.createElement(s._$,{isBasic:!0,offer:x,orderType:l.b9.SPECIAL})),n.createElement(g,{forceShow:k},n.createElement(s._$,{isForSideBar:k,offer:x,isBasic:!1,orderType:l.b9.BASIC,showMobileVersion:y})),n.createElement(s._$,{isForSideBar:k,offer:x,isBasic:!1,orderType:l.b9.ADVANCED,showMobileVersion:y}),n.createElement("div",{style:{width:"100%",height:"100px"}})),n.createElement(c.default,{parentContainerRef:v&&v.current,leftButtonLabel:"Clear",onClickLeftButton:function(){const e=y?[]:p,i=o.A([...e,...b],d);(0,a.rW)(Object.keys(i)),t({category:"search",action:"[Filter Reset Click]"})},onClickListingCountButton:function(){t({category:"search",action:"[Filter Done Click]"}),E()},isArchive:F,isLoading:S,pagination:C,mobileStyle:y,offer:x}))}}}]);
2//# sourceMappingURL=MobileSearchMainFilters.js.map?v=ed3e979fc87a

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.