PageSourceSearch

https://frtassets.fotocasa.es/_sui/ShareFavoritesListPage.92c8aa63.js

js fotocasa.es collected 2026-09-24 09:01:27 UTC 23,854 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[87078],{"0dWw":function(e,t,i){i.r(t)},HQhC:function(e,t,i){i.r(t),i.d(t,{default:function(){return ye}});var a=i("sViW"),s=i("M5j3"),r=i("HnZW"),n=i("5ene"),o=i("jg1C"),l=i("aWzz"),c=i.n(l),d=i("pRvs"),u=i("ERkP"),p=i("O94r"),m=i.n(p),g=i("4Wi6"),h=i("KnaF"),v=i("/cNK"),f=i("5QG0"),A=i("XE1D"),y=i("+hKN"),x="re-CardDescription";function L(e){var t=e.description,i=e.isCompact,a=e.isUltraCompact,s=e.isTwoLines,r=(0,y.s9)(),n=(0,u.useRef)(null),l=(0,v.A)("(max-width:600px)"),c=t;if(s)if(l)c=c?c.slice(0,100)+"... ":"";else{var d=a?60:i?100:160;c=c?c.slice(0,d)+"... ":""}var p,g,h=function(){return(0,o.jsx)("span",{className:m()(x+"-link"),children:r.t("read all description")})};return(0,o.jsxs)("p",{ref:n,className:m()(x,(p={},p[x+"--isTwoLines"]=s,p)),children:[(0,o.jsxs)("span",{className:m()(x+"-text",(g={},g[x+"-text--isTwoLines"]=s,g)),children:[c,s&&h()]}),!s&&h()]})}L.displayName="CardDescription",L.propTypes={description:c().string,isCompact:c().bool,isTwoLines:c().bool,isUltraCompact:c().bool};var T=i("n8ni"),E="re-CardFeaturesWithIcons",P=E+"-wrapper",b=E+"-feature",_=["rooms","bathrooms","toilets","surface","floor","elevator","parking","terrace","swimming_pool","balcony","heating","air_conditioner"];function S(e){var t=e.features,i=void 0===t?[]:t,a=e.oneLine,s=void 0!==a&&a,r=e.isTwoLinesSmall,n=void 0!==r&&r,l=e.isPromotion,c=e.otherFeaturesCount,d=void 0===c?0:c,p=(0,y.s9)(),g={MEDIUM:(0,v.A)("(max-width: 839px)"),LARGE:(0,v.A)("(min-width: 1600px)")},h=(0,u.useState)(d),f=h[0],A=h[1],x=function(e){var t=e.extraFeature,i=e.features,a=e.isLargeScreen,s=e.isMediumScreen,r=e.oneLine,n=i.findIndex((function(e){return"heater"===e.key}));n>0&&(i[n].key="heating");var o=_.map((function(e){return i.find((function(t){return t.key===e}))})).filter((function(e){return!!e}));
1return r&&s?o.slice(0,6):r&&!a?o.slice(0,3):r?o.slice(0,4):s?o.slice(0,6):a?o.slice(0,t?7:8):o.slice(0,6)}({features:i,extraFeature:f>0,isLargeScreen:g.LARGE,isMediumScreen:g.MEDIUM,oneLine:s});(0,u.useEffect)((function(){var e=s?4:i.filter((function(e){return!x.find((function(t){return t.key===e.key}))})).length;A(d+e)}),[i,x,s,d]);var L=function(e,t,i){return i&&i&&i!==t?i+" - "+p.t(e.toUpperCase(),t):p.t(e.toUpperCase(),t)},E=function(e,t,i){switch(e){case"rooms":case"bathrooms":return L(e,t,i);case"surface":return function(e,t,i){var a=p.t("to"),s=p.t("from")+" "+p.t(e.toUpperCase(),i),r=t?a+" "+p.t(e.toUpperCase(),t):"";return i?i!==t&&t?i+" - "+p.t(e.toUpperCase(),t):s:r}(e,t,i);default:return""}},S=g.LARGE?4:3;return(0,o.jsxs)("ul",{className:m()(P,l&&P+"--isPromotion",x.length>S&&P+"--isTwoLines",n&&P+"--isTwoLinesSmall"),children:[x.map((function(e){var t=e.key,i=e.maxValue,a=e.minValue,s=e.value;if(!(t&&(+s||+i||+a)))return null;var r=function(e){var t=e.key,i=e.value,a=e.maxValue,s=e.minValue;return l?E(t,a,s):"bathrooms"===t||"surface"===t||"rooms"===t?p.t(t.toUpperCase(),i):"floor"===t?i<21?p.t("FLOOR_"+i):p.t("FLOOR_N_CARD"):p.t(("FEATURES."+t).toUpperCase())}({key:t,value:s,maxValue:i,minValue:a});return(0,o.jsx)("li",{className:m()(b,l&&b+"--isPromotion"),children:(0,o.jsx)("span",{className:b+"-icon "+b+"-icon--"+t,children:r})},t)})),g.LARGE&&f>0&&!s&&(0,o.jsx)("li",{className:b,children:(0,o.jsx)(T.Ay,{label:"+"+f+" extras",size:"small"})})]})}S.displayName="CardFeaturesWithIcons",S.propTypes={features:c().array,oneLine:c().bool,isPromotion:c().bool,isTwoLinesSmall:c().bool,otherFeaturesCount:c().number};var N=i("GYoZ"),j=i("8qwj"),C=i("o1GQ");function w(e){var t=e.to,i=e.isWidget,a=e.children,r=(0,h.A)(e,["to","isWidget","children"]);return(0,o.jsx)(o.Fragment,{children:i?(0,o.jsx)("a",(0,s.A)({href:t},r,{children:a})):(0,o.jsx)(f.N_,(0,s.A)({to:t},r,{children:a}))})}w.displayName="SharedRealEstateLink",w.propTypes={to:c().string.isRequired,isWidget:c().bool,children:c().any};var I="re-CardPromotionLogo",R={DEFAULT:[92,48],COLLAGE:[56,32]};function F(e){var t=e.clientAlias,i=e.clientUrl,a=e.isMobilePosition,r=e.isNotStandardSizedLogo,n=e.isPackMapCompact,l=void 0!==n&&n,c=e.isPinchedLogo,d=void 0===c||c,u=e.isPromotionBanner,p=e.isUnlinkedLogo,g=e.isWidget,h=void 0!==g&&g,v=e.promotionLogo,f=e.className,A=void 0===f?"":f,x=(0,y.s9)(),L=(0,y.O6)().isMobile;if(!v||!p&&!i)return null;var T,E=p&&t,P=d?(0,o.jsx)(C.A,(0,s.A)({},function(e){var t=e.isPackMapCompact,i=e.isPromotionBanner,a=e.isMobile,s=i&&a||t?R.COLLAGE:R.DEFAULT;return{pinchWidth:s[0],pinchHeight:s[1]}}({isPackMapCompact:l,isPromotionBanner:u,isMobile:L}),{alt:E||x.t("CARD_CLIENT_LOGO_ALT",{clientAlias:t}),src:v,title:E||x.t("CARD_CLIENT_LOGO_TITLE",{clientAlias:t})})):(0,o.jsx)("img",{alt:E||x.t("CARD_CLIENT_LOGO_ALT",{clientAlias:t}),loading:"lazy",src:v,title:E||x.t("CARD_CLIENT_LOGO_TITLE",{clientAlias:t})});return(0,o.jsx)("div",{"data-testid":"CardPromotionLogo",className:m()(I,(T={},T[I+"--isNotStandardSizedLogo"]=r,T[I+"--isUnlinkedLogo"]=p,T[I+"--isPackMapCompact"]=l,T[I+"--isPromotionBanner"]=u,T[I+"--isMobilePosition"]=a,T),A),children:p?P:(0,o.jsx)(w,{className:I+"-link",isWidget:h,to:i,target:"_blank",children:P})})}F.displayName="CardPromotionLogo",F.propTypes={clientAlias:c().string.isRequired,clientUrl:c().string,isMobilePosition:c().bool,isNotStandardSizedLogo:c().bool,isPackMapCompact:c().bool,isPinchedLogo:c().bool,isPromotionBanner:c().bool,isUnlinkedLogo:c().bool,isWidget:c().bool,onClick:c().func,promotionLogo:c().string,className:c().string};var O=i("llBw"),k=i("ogaj"),U="re-CardPackBasic",D=function(){},G={MOBILE:{WIDTH:412,HEIGHT:257},DESKTOP:{WIDTH:412,HEIGHT:257}};function M(e){var t,i=e.extraButtons,a=e.hasSharebutton,r=void 0!==a&&a,n=e.isDiscardedUserPage,l=void 0!==n&&n,c=e.isUnlinkedLogo,d=void 0!==c&&c,p=e.isWidget,g=void 0!==p&&p,x=(e.onDiscard,e.onRecovery),T=void 0===x?D:x,E=e.showRecovery,P=void 0!==E&&E,b=e.showFav,_=void 0===b||b,C=e.showFavoriteDate,I=void 0!==C&&C,R=(0,h.A)(e,["extraButtons","hasSharebutton","isDiscardedUserPage","isUnlinkedLogo","isWidget","onDiscard","onRecovery","showRecovery","showFav","showFavoriteDate"]),M=R.content,H=R.customLink,W=void 0===H?null:H,B=R.detail,V=void 0===B?{}:B,z=R.id,Y=R.imageMeta,q=R.isCompleted,K=R.isFaved,Z=R.isFromFeaturedPromotion,X=void 0!==Z&&Z,Q=R.isHighlighted,$=R.isNewConstruction,J=R.isNewConstructionPromotionsPage,ee=void 0!==J&&J,te=R.isOnline,ie=R.isOpportunity,ae=R.onClick,se=void 0===ae?D:ae,re=R.openInANewWindow,ne=void 0!==re&&re,oe
1=R.promotionId,le=(0,y.s9)().culture,ce=(0,f.KA)(),de=(0,v.A)("(max-width:600px)"),ue=(0,v.A)("(min-width:760px)"),pe=(0,u.useState)(K),me=pe[0],ge=pe[1],he=(0,u.useState)(!1),ve=he[0],fe=he[1],Ae=!te&&(Q||ie),ye=0===z&&oe>0,xe=W||V[le]||"#",Le={onClick:function(e){e.preventDefault(),fe(!0),se(e),ne?window.open(xe,"_blank"):requestAnimationFrame((function(){setTimeout((function(){ce.push(xe)}),0)}))},target:ne?"_blank":void 0,title:Y,to:xe},Te=de?G.MOBILE:G.DESKTOP,Ee={LARGE:(0,v.A)("(max-width: 1600px)"),MEDIUM:(0,v.A)("(max-width: 839px)"),SMALL:(0,v.A)("(max-width: 479px)")},Pe=(0,u.useRef)(!1),be=(0,k.A)(),_e=be.TRACKING_EVENTS,Se=be.trackEvent,Ne=be.getTrackingPageType,je=_e.SEGMENT,Ce="list"===Ne(),we=(0,u.useRef)(null),Ie=$&&!Pe.current&&!ee&&!X&&Ce;return(0,u.useEffect)((function(){if(Ie){var e=new IntersectionObserver((function(e){e[0].isIntersecting&&(Se({id:""+z,eventName:null==je?void 0:je.NC_CARD_SHOWED,eventVersion:3,component_label:"card_on_showed",channel:"ads",page_type:Ne(),pack_type:"Basic",promotion_id:oe,sell_type:"NEW_CONSTRUCTION"}),Pe.current=!0)}),{rootMargin:de?"-100px":"-90px"});return e.observe(we.current),function(){e.disconnect()}}}),[Ie]),(0,o.jsxs)("article",{className:m()(U,(t={},t[U+"--blurAfterClick"]=ve,t[U+"--isFeatured"]=Ae,t)),ref:we,children:[(0,o.jsx)(w,(0,s.A)({},Le,{className:U+"-slider",isWidget:g,children:(0,o.jsx)(j.A,(0,s.A)({},R,{isPackBasic:!0,multimediaCounter:!0,multimediaLabels:!0,isCompleted:q,pinchHeight:Te.HEIGHT,pinchWidth:Te.WIDTH}))})),(0,o.jsxs)("div",{className:"flex flex-col px-sm md:px-lg py-md md:py-lg",children:[(0,o.jsx)("div",{className:U+"-info",children:M||(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(F,(0,s.A)({},R,{isUnlinkedLogo:d,isWidget:g})),(0,o.jsxs)(w,(0,s.A)({},Le,{className:U+"-info-container",isWidget:g,children:[(0,o.jsx)(N.A,(0,s.A)({},R,{longTitle:!0})),(0,o.jsx)(S,(0,s.A)({},R,{isPromotion:ye,oneLine:!0})),(0,o.jsx)(L,(0,s.A)({},R,{isTwoLines:!0,isCompact:!0,isUltraCompact:ue&&Ee.LARGE})),(0,o.jsx)(O.A,(0,s.A)({},R,{showFavoriteDate:I}))]}))]})}),!M&&(0,o.jsx)(A.A,(0,s.A)({},R,{design:{mail:Ee.SMALL?"outlined":"solid",phone:Ee.SMALL?"solid":"outlined",favorite:"ghost",share:"ghost"},onlyIcons:{favorite:!!i||Ee.LARGE,discarded:!!i||Ee.LARGE,share:!!i||Ee.LARGE},onlyTextProps:{phone:Ee.SMALL},isDiscardedUserPage:l,isFaved:me,isPackBasic:!0,onFav:function(e){ge(null==e?void 0:e.isFaved)},onRecovery:T,showRecovery:P,showShareButton:r,showFavs:_,children:i}))]})]})}M.displayName="CardPackBasic",M.propTypes={extraButtons:c().node,hasSharebutton:c().bool,isFaved:c().bool,isDiscardedUserPage:c().bool,isUnlinkedLogo:c().bool,isWidget:c().bool,onDiscard:c().func,onRecovery:c().func,realEstate:c().object,showRecovery:c().bool,showFav:c().bool,showFavoriteDate:c().bool};var H=M,W=i("ppqU"),B=i("Fd3L"),V="re-FavoriteListShareList",z={HUG:{src:"https://frtassets.fotocasa.es/statics/img/favorites_list_hug.svg",alt:"Persona abrazando iconos de Fotocasa"},EMPTY_LIST:{alt:"Favorito resaltado de una lista de favoritos",height:"260",src:"https://frtassets.fotocasa.es/statics/img/favorites_list_empty.svg",width:"373"},APPLE_STORE:{src:"https://frtassets.fotocasa.es/statics/img/favorites_apple_store.svg",alt:"Logo de Apple Store"},GOOGLE_PLAY:{src:"https://frtassets.fotocasa.es/statics/img/favorites_google_play.svg",alt:"Logo de Google Play"},QR:{src:"https://frtassets.fotocasa.es/statics/img/favorites_list_qr.jpg",alt:"Código QR"}},Y={APPS:{APPLE_STORE:"https://itunes.apple.com/es/app/fotocasa/id332699841?mt=8",GOOGLE_PLAY:"https://play.google.com/store/apps/details?id=com.anuntis.fotocasa"}},q=20;function K(){var e=(0,y.s9)();return(0,o.jsxs)("article",{className:V+"-download",children:[(0,o.jsx)("img",{alt:z.HUG.alt,className:V+"-image",decoding:"async",loading:"lazy",src:z.HUG.src,title:z.HUG.alt}),(0,o.jsxs)("div",{className:V+"-apps",children:[(0,o.jsx)("h3",{className:V+"-h3",children:e.t("FAVOURITES.FAVOURITES_ALERT_TITLE")}),(0,o.jsx)("p",{children:e.t("FAVOURITES.FAVOURITES_APPS_TITLE")}),(0,o.jsx)("a",{className:V+"-link",href:Y.APPS,rel:"noreferrer",target:"_blank",title:z.APPLE_STORE.alt,children:(0,o.jsx)("img",{alt:z.APPLE_STORE.alt,className:V+"-apps-logo",decoding:"async",loading:"lazy",src:z.APPLE_STORE.src,title:z.APPLE_STORE.alt})}),(0,o.jsx)("a",{className:V+"-link",href:Y.APPS,rel:"noreferrer",target:"_blank",title:z.GOOGLE_PLAY.alt,children:(0,o.jsx)("img",{alt:z.GOOGLE_PLAY.alt,className:V+"-apps-logo",decoding:"async",loading:"lazy",src:z.GOOGLE_PLAY.src,title:z.GOOGLE_PLAY.alt})})]})]})}K.displayName="FavoritesDownload";var Z=i("ImjI"),X=i("8pil"),Q=i("9ich");function $(e){var t=e.design,i=void 0===t?"outline":t,a=e.onPagination,s=e.nextButtonText,r=e.page,n=e.prevButtonText,l=e.size,c=void 0===l?"small":l,d=e.totalPages;return(0,o.jsx)(Z.Ay,{hideDisabled:!0,nextButtonIcon:Q.A,nextButtonText:s,nonSelectedPageButtonDesign:i,onSelectNext:a,onSelectPage:a,onSelectPrev:a,page:r,prevButtonIcon:X.A,prevButtonText:n,size:c,showEdges:!0,totalPages:d,prevButtonDesign:i,nextButtonDesign:i})}$.displayName="FavoritesPagination",$.propTypes={design:c().string,onPagination:c().func.isRequired,nextButtonText:c().string,page:c().number.isRequired,prevButtonText:c().string,
1size:c().string,totalPages:c().number.isRequired};var J=i("uj98"),ee=i("EtD+"),te=i("/y3p");function ie(){var e=(0,y.s9)(),t=(0,f.KA)(),i=(0,k.A)(),a=i.TRACKING_EVENTS,s=i.trackEvent,r=a.SEGMENT;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(ee.Ay,{justifyContent:"center",children:(0,o.jsxs)(ee.sh,{xxs:12,s:8,m:6,xl:4,children:[(0,o.jsx)("div",{className:V+"-empty-imageWrapper",children:(0,o.jsx)(J.Ay,{alt:z.EMPTY_LIST.alt,className:V+"-empty-image",height:z.EMPTY_LIST.height,src:z.EMPTY_LIST.src,title:z.EMPTY_LIST.alt,width:z.EMPTY_LIST.width})}),(0,o.jsx)("h2",{className:V+"-subTitle",children:e.t("FAVOURITES.EMPTY.VIEW_TEXT_10")}),(0,o.jsx)("p",{children:e.t("FAVOURITES.EMPTY.VIEW_TEXT_9")}),(0,o.jsx)(te.$,{"aria-label":e.t("FAVOURITES.EMPTY.VIEW_TEXT_6"),className:V+"-empty-button w-full",variant:"solid",intent:"basic",size:"lg",onClick:function(){s({channel:"my_account",eventName:r.NEW_SEARCH_BUTTON_CLICKED,label:"start_new_search",page_type:"my_account"}),t.push("/")},children:e.t("FAVOURITES.EMPTY.VIEW_TEXT_6")})]})})})}function ae(e){e.count;var t=e.onChanges,i=e.PAGE_SIZE,a=(0,y.UK)("sortTypesNumbers")[0],s=(0,u.useState)("favoriteDate"),r=s[0],n=s[1],o=(0,u.useState)(1),l=o[0],c=o[1],d=(0,u.useState)(!1),p=d[0],m=d[1],g=function(e){var i=e.sort,s=e.page,r=e.ascending,n=e.pageSize,o=a[i];t({sort:o,page:s,ascending:r,pageSize:n})};return{ascending:p,page:l,pageSize:i,sort:r,onPagination:function(e,t){var a=t.page;e.preventDefault(),a!==l&&(c(a),g({sort:r,page:a,ascending:p,pageSize:i}),window.scroll(0,0))},onSort:function(e){var t=e.split(","),a=t[0],s=t[1];s="true"===s,a===r&&s===p||(n(a),m(s),c(1),g({sort:a,page:1,ascending:s,pageSize:i}),window.scroll(0,0))}}}ie.displayName="EmptyList",ie.propTypes={},ae.displayName="useFavoritesGrid",ae.propTypes={onPagination:c().func,onSort:c().func};var se,re="loading",ne="error",oe="success",le="fetching",ce="loading",de="error",ue="success",pe="replace",me="reset",ge={status:re,data:null,error:null,isFetching:!1},he=function(e,t){switch(t.type){case le:return(0,s.A)({},e,{isFetching:!0});case ce:return(0,s.A)({},ge,{isFetching:!0,data:e.data});case de:return(0,s.A)({},ge,{status:ne,error:t.payload.error,data:e.data});case ue:return(0,s.A)({},ge,{status:oe,data:t.payload.data});case pe:return(0,s.A)({},ge,{status:oe,data:t.payload.isHard?t.payload.data:(0,s.A)({},e.data,t.payload.data)});case me:return(0,s.A)({},ge,{status:t.payload.initialStatus});default:return e}},ve=function(e,t){var i=void 0===t?{}:t,r=i.initialStatus,o=i.initialData,l=i.onSuccess,c=i.onError,d=(0,u.useReducer)(he,function(e){var t=e.initialData,i=e.initialStatus,a="function"==typeof t?t():t;return{status:void 0!==a?oe:i||ge.status,data:a,error:null}}({initialStatus:r,initialData:o})),p=d[0],m=p.status,g=p.data,v=d[1],f=(0,h.A)(d[0],["status","data"]),A=(0,u.useRef)(e),y=(0,u.useRef)(l),x=(0,u.useRef)(c),L=(0,u.useRef)(!1),T=(0,u.useCallback)((0,a.A)((function(){var e,t,i,a,s,r=arguments;return(0,n.YH)(this,(function(n){switch(n.label){case 0:for(e=r.length,t=new Array(e),i=0;i<e;i++)t[i]=r[i];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(a=A).current.apply(a,t)];case 2:return s=n.sent(),L.current?(v({type:ue,payload:{data:s}}),y.current&&y.current(s),[3,4]):[2];case 3:return function(e){v({type:de,payload:{error:e}}),x.current&&x.current(e)}(n.sent()),[3,4];case 4:return[2]}}
1))})),[]),E=(0,u.useCallback)((0,a.A)((function(){var e,t,i,a=arguments;return(0,n.YH)(this,(function(s){for(e=a.length,t=new Array(e),i=0;i<e;i++)t[i]=a[i];return v({type:le}),T.apply(void 0,t),[2]}))})),[T]),P=(0,u.useCallback)((0,a.A)((function(){var e,t,i,a=arguments;return(0,n.YH)(this,(function(s){for(e=a.length,t=new Array(e),i=0;i<e;i++)t[i]=a[i];return v({type:ce}),T.apply(void 0,t),[2]}))})),[T]),b=(0,u.useCallback)((function(e,t){v({type:pe,payload:{data:e,isHard:t}})}),[]),_=(0,u.useCallback)((function(){v({type:me,payload:{initialStatus:r}})}),[r]);return(0,u.useEffect)((function(){return L.current=!0,function(){L.current=!1}}),[]),(0,u.useEffect)((function(){A.current=e}),[e]),(0,u.useEffect)((function(){y.current=l}),[l]),(0,u.useEffect)((function(){x.current=c}),[c]),(0,s.A)({status:m,reset:_,replace:b,refresh:E,refetch:P,data:g,isLoading:m===re,isError:m===ne,isSuccess:m===oe},f)},fe=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i=[]);var a=t.refetchInterval,n=t.isExecuteOnMountDisabled,o=(0,h.A)(t,["refetchInterval","isExecuteOnMountDisabled"]),l=ve(e,o),c=l.data,d=l.refetch,p=(0,h.A)(l,["data","refetch"]),m=(0,u.useRef)(void 0!==c||n);return(0,u.useEffect)((function(){var e;return m.current||d(),a&&(e=setInterval((function(){document.hidden||d()}),a)),function(){a&&clearInterval(e)}}),[d,a,n].concat((0,r.A)(i))),(0,s.A)({refetch:d,data:c},p)};function Ae(e){var t=e.initialSharedFavoritesList,i=e.paramL,a=e.paramH,r=e.location,n=(0,y.s9)(),l="re-FavoriteListShareList",c=(0,y.sn)(),d=(0,k.A)().trackPageView,p=fe((function(e){return c.get("get_shared_favorites_list_use_case").execute((0,s.A)({paramL:i,paramH:a,culture:n.culture},e))}),{initialData:t}),h=p.data,v=p.refetch,f=h.multimedia,A=void 0===f?[]:f,x=h.paginatedFavorites,L=h.sharedUrl,T=void 0===L?"":L,E=h.title,P=void 0===E?"":E,b=ae({count:null==x?void 0:x.count,onChanges:v,PAGE_SIZE:q}),_=b.onPagination,S=b.onSort,N=b.page,j=b.sort,C=b.ascending,w=x.count,I=void 0===w?0:w,R=x.favorites,F=void 0===R?[]:R,O=0===I;(0,u.useEffect)((function(){var e=r.pathname;d({pageNumber:N,sortOrderDesc:!1===C,sortType:j,pathname:e,eventVersion:"2",favouritesListId:i,realEstates:null==F?void 0:F.map((function(e){return(0,s.A)({},e.realEstate,{id:e.realEstate.propertyId})}))})}),[F]);var U=(0,g.A)({offset:"-24px",once:!1}),D=U[0],G=U[1],M=m()(l+"-header",!D&&"isSticky");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:l+"-refSticky",ref:G}),(0,o.jsxs)("div",{className:l,children:[(0,o.jsxs)("div",{className:M,children:[(0,o.jsxs)("h1",{className:l+"-titlePage",children:[P," (",I,")"]}),(0,o.jsxs)("div",{className:l+"-navWrapper",children:[(0,o.jsx)("div",{className:l+"-actionButtons",children:(0,o.jsx)(W.Ay,{listTitle:P,mode:W.NB.SHARE,multimedia:A,sharedUrl:T})}),(0,o.jsx)("div",{className:l+"-sortWrapper",children:(0,o.jsx)(B.A,{onSort:S})})]})]}),O&&(0,o.jsx)(ie,{}),!O&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("section",{className:l+"-list",children:F.map((function(e){var t=e.realEstate;return(0,u.createElement)(H,(0,s.A)({},t,{id:t.propertyId,isCompact:!0,showFav:!1,key:t.id||t.propertyId}))}))}),(0,o.jsx)("nav",{className:l+"-pagination",children:(0,o.jsx)($,{page:N,onPagination:_,nextButtonText:n.t("PAGINATION.NEXT"),prevButtonText:n.t("PAGINATION.PREV"),totalPages:Math.ceil(I/q)||0})}),(0,o.jsx)(K,{})]}),(0,o.jsx)("div",{className:l+"-footerPage",children:(0,o.jsx)("img",{alt:n.t("USER.NAV.YOUR_FAVORITES_LITERAL"),className:l+"-imageFooterPage",decoding:"async",fetchpriority:"low",height:"174",loading:"lazy",src:"https://frtassets.fotocasa.es/statics/img/user_favorites_footer2.svg",title:n.t("USER.NAV.YOUR_FAVORITES_LITERAL"),width:"800"})})]})]})}function ye(e){var t=e.sharedFavoritesList,i=e.paramL,a=e.paramH,r=e.seo,n=e.location;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("header",{children:(0,o.jsx)(d.A,(0,s.A)({},r))}),(0,o.jsx)(Ae,{initialSharedFavoritesList:t,paramL:i,paramH:a,location:n})]})}Ae.displayName="FavoriteListShareList",Ae.propTypes={initialSharedFavoritesList:c().object.isRequired,paramL:c().string.isRequired,paramH:c().string.isRequired,location:c().object.isRequired},ye.getInitialProps=(se=(0,a.A)((function(e){var t,i,a,o,l,c,d,u,p,m,g,h;return(0,n.YH)(this,(function(n){switch(n.label){case 0:t=e.context,i=e.routeInfo,a=i.location.query,o=a.l,l=a.h,c=t.domain,d=t.i18n,u=d.culture,n.label=1;case 1:return n.trys.push([1,4,,5]),[4,c.get("get_shared_favorites_list_use_case").execute({paramL:o,paramH:l,culture:u})];case 2:return p=n.sent(),[4,c.get("get_head_seo_use_case").execute({culture:u,page:ye.displayName,options:{listTitle:null==p?void 0:p.title}})];case 3:return m=n.sent(),g=function(){return(null==p?void 0:p.multimedia.length)?(null==p?void 0:p.multimedia[0].split("?"))[0]+"?rule=f_640x480_jpg_70":""},h=(0,s.A)({},m,{meta:(0,r.A)(m.meta).concat([{property:"og:image",content:g()}])}),[2,{paramL:o,paramH:l,sharedFavoritesList:p,seo:h}];case 4:return n.sent(),[2,{__HTTP__:{notFound:!0}}];case 5:return[2]}}
1))})),function(e){return se.apply(this,arguments)}),ye.propTypes={sharedFavoritesList:c().object,paramL:c().string,paramH:c().string,seo:c().object,location:c().object},ye.displayName="ShareFavoritesListPage"},GYoZ:function(e,t,i){i.d(t,{A:function(){return u}});var a=i("M5j3"),s=i("jg1C"),r=i("aWzz"),n=i.n(r),o=i("NSCZ"),l=i("S4sv"),c=i("R0gk"),d="re-CardHeader";function u(e){var t=e.big,i=void 0!==t&&t,r=e.showOnlyUbicationText,n=void 0!==r&&r,u=e.isPackPremium,p=void 0!==u&&u,m=e.longTitle,g=void 0!==m&&m,h=e.showStatus,v=void 0!==h&&h,f=e.showTimeAgo,A=void 0!==f&&f,y=e.withoutPriceReduction,x=void 0!==y&&y;return(0,s.jsxs)("h3",{className:d,children:[(0,s.jsx)(c.A,(0,a.A)({},e,{big:i,showOnlyUbicationText:n,longTitle:g})),(0,s.jsx)(o.A,(0,a.A)({},e,{isPackPremium:p,withoutPriceReduction:x,showTimeAgo:A})),v&&e.statusId&&(0,s.jsx)("span",{className:d+"-realEstateStatus",children:(0,s.jsx)(l.A,{statusId:e.statusId})})]})}u.displayName="CardHeader",u.propTypes={big:n().bool,buildingSubtype:n().string,buildingType:n().string,date:n().object,dateOriginal:n().object,id:n().number,isCollageAllUCanEat:n().bool,isFeatured:n().bool,isNewConstruction:n().bool,showOnlyUbicationText:n().bool,isPrioritaryProduct:n().bool,isPromotion:n().bool,longTitle:n().bool,location:n().string,minPrice:n().number,periodicityId:n().number,price:n().oneOfType([n().number,n().string]),promotionId:n().number,rawPrice:n().number,reducedPrice:n().number,showPrice:n().bool,showStatus:n().bool,statusId:n().number,withoutPriceReduction:n().bool}},Y5Yh:function(e,t,i){i.d(t,{A:function(){return c}});var a=i("jg1C"),s=i("aWzz"),r=i.n(s),n=i("5T47"),o=i("+hKN"),l=function(e){var t=e.currencySymbol,i=e.price,a=i+" "+t;return"number"==typeof i?a:i.includes(t)?i:a};function c(e){var t,i,s,r=e.minPrice,c=void 0!==r&&r,d=e.periodicityClassName,u=e.periodicityId,p=e.price,m=void 0===p?0:p,g=e.priceClassName,h=e.showPrice,v=void 0===h||h,f=(0,o.s9)(),A=(0,o.UK)("periodicityDictionary","currencySymbol"),y=A[0],x=A[1],L=c||m,T=!v||!L,E=function(e){var t=e.periodicity,i=" /"+f.t(t).toLowerCase();return(0,a.jsx)("span",{className:d,children:i})};return(0,a.jsx)("span",{className:g,children:T?f.t("ask the price"):(t=y[u],i=u&&t,s=l({price:L,currencySymbol:x}),(0,a.jsxs)(a.Fragment,{children:[!!c&&f.t("from"),""+(0,n.O)({value:s}),!!i&&E({periodicity:t})]}))})}c.displayName="SharedPrice",c.propTypes={minPrice:r().oneOfType([r().number,r().bool]),periodicityClassName:r().string,periodicityId:r().number,price:r().oneOfType([r().number,r().string]),priceClassName:r().string,showPrice:r().bool}},ZxsG:function(e,t,i){var a=i("DPeK"),s=i("aiFg"),r=i("ERkP"),n=i("ArGU"),o=i("jg1C"),l=["id","title","design"],c=(0,r.memo)((function(e){var t=e.id,i=e.title,r=e.design,c=void 0===r?"filled":r,d=(0,s.A)(e,l),u=function(e){var t=e.id,i=e.svg,a=e.title;return a&&t?i.replace(/<svg([^>]*)>/,'<svg$1 role="img" aria-labelledby="'+t+'"><title id="'+t+'">'+a+"</title>"):i.replace(/<svg([^>]*)>/,'<svg$1 aria-hidden="true" role="presentation">')}({id:t,svg:'<svg viewBox="0 0 24 24"><path d="M12.353 4.502h-.34C8.133 4.435 3.81 6.871.623 10.38a2.414 2.414 0 0 0-.001 3.232c3.092 3.406 7.236 5.81 11.055 5.884h.336c3.884.067 8.182-2.377 11.366-5.882.83-.92.83-2.314.002-3.232-3.085-3.392-7.248-5.797-11.028-5.88zm-.674 1.5h.655c3.293.074 7.104 2.275 9.935 5.388.31.344.31.872-.002 1.219-2.83 3.115-6.61 5.31-9.943 5.388l-.311.001c-3.432.057-7.36-2.177-10.279-5.391a.912.912 0 0 1 .002-1.22C4.57 8.268 8.37 6.08 11.68 6.002z"/><path d="M12 7.499a4.5 4.5 0 1 0 .238.006L12 7.5zm0 1.5a2.999 2.999 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>',title:i});return(0,o.jsx)(n.Ay,(0,a.A)({design:c},d,{children:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:u}})}))}));c.displayName="MemoViewOnAtomIcon",t.A=c}}]);

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.