1(this["webpackJsonpproject-sunset-cliffs"]=this["webpackJsonpproject-sunset-cliffs"]||[]).push([[16],{1751:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var i=function(e,t){if(e){var a=t.current?t.current.offsetTop-100:0;window.scrollTo({top:a,behavior:"smooth"})}}},1752:function(e,t,a){"use strict";a.d(t,"b",(function(){return j})),a.d(t,"a",(function(){return d}));var i=a(3),n=a.n(i),s=a(1760),c=a(1743),r=a(19),o=a(8),l=a(116),p=a(33),u=a.n(p),b=a(0),d=function(e){var t=e.onClick,a=Object(r.b)();return Object(b.jsx)("div",{className:n()("is-hidden-mobile",u.a.mapCloseBtn),children:Object(b.jsx)(s.b,{icon:Object(b.jsx)(c.c,{}),onClick:function(){a.send(o.b.Interaction.SELECT_CLICK,Object(l.a)({section_name:"MapViewToggle",map_enabled:!1})),t()},size:"default"})})},j=function(e){var t=e.onClick,a=Object(r.b)();return Object(b.jsx)("div",{className:n()(u.a.mapViewBtn,"is-flex is-justify-content-center is-hidden-mobile"),children:Object(b.jsx)(s.a,{label:"Map view",onClick:function(){a.send(o.b.Interaction.SELECT_CLICK,Object(l.a)({section_name:"MapViewToggle",map_enabled:!0})),t()},startIcon:Object(b.jsx)(c.e,{size:"large"}),variant:"primary",style:{backgroundColor:"#2D2D2D"}})})}},1950:function(e,t,a){"use strict";a.r(t);var i=a(5),n=a(12),s=a(14),c=a(27),r=a(28),o=a(1),l=a(53),p=a(7),u=a(3),b=a.n(u),d=a(1759),j=a(92),h=a(165),f=a(167),O=a(232),g=a(403),m=a(231),M=a(4),v=a(6),x=a(62),C=a(267),w=a(50),y=a(15),V=a(1057),N=a(1067),P=a(95),k=a(33),I=a.n(k),R=a(38),D=a(108),S=a(1751),F=a(1752),T=a(32),E=a(39),L=a(0),_=Object(w.a)(l.j,Object(p.c)((function(e,t){var a=new y.a(t.location).getFilter(M.y.PAGE),i=Object(x.b)(a,{ui:"introOffersResultsPage"})(e),n=i.isFetching,s=i.currentPage,c=i.found,r=i.pageIds;return{isMapVisible:e.map.isVisible,isMobileMapVisible:e.map.isVisibleMobile,isFetching:n,currentPage:s,found:c,introOfferIds:r}}),(function(e,t){return{fetchData:function(a){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e(Object(C.c)(new y.a(t.location),a,i,M.q))},toggleMapVisibility:function(t){return e(Object(D.b)(t))},toggleMobileMapVisibility:function(t){return e(Object(D.c)(t))}}})),v.a,P.a),z=function(e){Object(c.a)(a,e);var t=Object(r.a)(a);function a(){var e;Object(n.a)(this,a);for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return(e=t.call.apply(t,[this].concat(s))).mapViewRef=Object(o.createRef)(),e.handlePageChange=function(t){var a=e.props,i=a.location,n=a.history,s=new y.a(i);s.set(M.y.PAGE,t.toString()),n.push("".concat(i.pathname,"?").concat(s.toParamsString()))},e.handleMapViewClick=function(){(0,e.props.toggleMapVisibility)(!0)},e.handleMapClose=function(){(0,e.props.toggleMapVisibility)(!1)},e.handleTouchMapViewClick=function(){(0,e.props.toggleMobileMapVisibility)(!0)},e.handleTouchMapClose=function(){(0,e.props.toggleMobileMapVisibility)(!1)},e.renderHeader=function(){var t=e.props,a=t.currentPage,i=t.found;return Object(L.jsxs)("div",{className:"pb-4",children:[Object(L.jsx)(j.d,{className:b()(I.a.breadcrumbs,"p-0"),currentPage:a,pageSize:M.k,totalItems:i}),Object(L.jsx)("div",{className:"is-flex is-align-items-center is-justify-content-space-between",children:Object(L.jsx)("div",{className:"is-flex is-flex-direction-column",children:Object(L.jsx)(O.a,{className:b()(I.a.searchSummary,"m-0 pl-0")})})})]})},e.renderMap=function(t){var a=t?e.handleMapClose:e.handleTouchMapClose;return Object(L.jsxs)(L.Fragment,{children:[Object(L.jsx)(F.a,{onClick:a}),Object(L.jsx)(V.a,{})]})},e}return Object(s.a)(a,[{key:"componentDidMount",value:function(){var e=this.props,t=e.currentPage;(0,e.fetchData)(t,!0),this.handleMapClose(),T.A.addNewPath(T.l)}},{key:"componentDidUpdate",value:function(e){this.props.isFetching||(Object(S.a)(this.props.isMobileMapVisible,this.mapViewRef),Object(g.a)({history:this.props.history,location:this.props.location,prevLocation:e.location,currentPageData:this.props.introOfferIds,currentPageNumber:this.props.currentPage,totalResults:this.props.found||0,fetchData:this.props.fetchData}),e.isFetching&&!Object(E.isEqual)(e.introOfferIds,this.props.introOfferIds)&&this.props.introOfferResultsViewed(this.props.found))}},{key:"render",value:function(){var e,t,a=this,n=this.props,s=n.isMapVisible,c=n.isMobileMapVisible,r=n.introOfferIds,o=n.currentPage,l=n.found,p=n.isFetching,u=n.i18n,g=b()(I.a.mapNew,(e={},Object(i.a)(e,I.a.mapHidden,!s),Object(i.a)(e,I.a.mapFull,c),e)),v=b()(I.a.results,(t={},Object(i.a)(t,I.a.resultsWithMapNew,s),Object(i.a)(t,I.a.filterV2ResultsNoMap,!s),Object(i.a)(t,I.a.resultsHidden,c),Object(i.a)(t,I.a.dealsResultsWrapperNew,!s),Object(i.a)(t,I.a.dealsListResultsWrapperNew,s),t));return Object(L.jsxs)("div",{"data-name":"Section.SearchResults",children:[Object(L.jsx)(f.a,{getDescription:function(e,t){var a=l||"many";return u.text("IntroOfferResultsPage.Meta.Description","We have found ".concat(a," ").concat(e," near you in ").concat(t,"."))}}),Object(L.jsx)(d.a,{filters:[M.y.DISTANCE,M.y.PRICE],dataName:"IntroOfferResultsPage",renderHeader:this.renderHeader,hideInfiniteMile:!0,isFetching:p,children:Object(L.jsx)(R.a,{query:"(max-width: 1100px)",children:function(e){var t=!e;return Object(L.jsxs)("main",{children:[Object(L.jsx)("div",{className:b()(g),ref:a.mapViewRef,children:(s||c)&&a.renderMap(t)}),Object(L.jsxs)("div",{className:b()(v,"p-0"),children:[Object(L.jsxs)("div",{className:"is-hidden-tablet",children:[Object(L.jsx)(j.d,{className:I.a.breadcrumbs,currentPage:o,pageSize:M.k,totalItems:l}),Object(L.jsx)(O.a,{className:I.a.searchSummary})]}),!p&&r.length<=0?Object(L.jsx)("div",{className:I.a.resultsList,children:Object(L.jsx)(h.a,{className:I.a.standardPadding})}):Object(L.jsxs)(L.Fragment,{children:[Object(L.jsx)(N.a,{isFetching:p,isMapVisible:s,ids:r}
1),!p&&!s&&!c&&Object(L.jsx)(F.b,{onClick:t?a.handleMapViewClick:a.handleTouchMapViewClick}),!p&&l&&l>M.k&&Object(L.jsx)(m.a,{currentPage:o,pageSize:M.k,totalItems:l,onPageChange:a.handlePageChange})]})]})]})}})})]})}}]),a}(o.Component);t.default=_(z)}}]); 2//# sourceMappingURL=16.11bb38d3.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.