PageSourceSearch

https://frtassets.fotocasa.es/_sui/UserAlertsPage.a9a1ded0.js

js fotocasa.es collected 2026-10-01 10:32:36 UTC 53,284 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[81646],{Bmkx:function(e,n,t){t.r(n)},VPf8:function(e,n,t){t.r(n),t.d(n,{default:function(){return pn}});var a=t("sViW"),r=t("M5j3"),i=t("HnZW"),s=t("5ene"),o=t("jg1C"),l=t("ERkP"),c=t("aWzz"),u=t.n(c),d=t("0bwO"),p=t("pRvs"),m=t("5QG0"),h=t("EtD+"),E=t("kYom"),T=t("KnaF"),_=t("+hKN"),f=t("ogaj"),S=t("OLXX"),A=t("/y3p"),v=t("k0sV"),I=t("6aWq"),R=t("CJ1Y"),y=t("3VjW"),g=t("KWbW"),L="re-AlertCard",x={nearrealtime:"nearrealtime",daily:"daily"},N="724,14,28,173,0,28079,0,0,0",C="0,0,0,0,0,0,0,0,0",O="Mi alerta en fotocasa",j=30,P=function(e){var n=e.searchParams,t=(0,_.s9)(),a=t.culture,r=(0,_.UK)("conservationStatusDictionary","featuresDictionary","propertySubtypesDictionary","transactionTypesDictionary"),i=function(e){var n=e.conservationStatusDictionary,t=e.featuresDictionary,a=e.searchParams,r=e.propertySubtypesDictionary,i=e.transactionTypesDictionary,s=e.i18n,o=[],l=a.conservationStatusIds,c=void 0===l?[]:l,u=a.featureIds,d=void 0===u?[]:u,p=a.isNewConstruction,m=a.isNewConstructionPromotions,h=a.maxBathrooms,E=a.maxPrice,T=a.maxRooms,_=a.maxSurface,f=a.minBathrooms,S=a.minPrice,A=a.minRooms,v=a.minSurface,I=a.propertySubtypeIds,R=void 0===I?[]:I,y=a.propertyTypeId,g=a.transactionTypeId,L=A===T?"":"+",x=f===h?"":"+";if(g){var N=Object.keys(i).find((function(e){return i[e]===g})).toLowerCase(),C=g===i.RENT_WITH_BUY_OPTION;o.push(s.t(C?N.toUpperCase():N))}m?o.push(s.t("INSPIRATIONAL.BLOCKS.NEW_CONSTRUCTION.LITERAL")):(y&&o.push(s.t("BUILDING_TYPE_"+y)),p&&o.push(s.t("FILTER_CONSTRUCTION_TYPE_NEW_CONSTRUCTION"))),(null==R?void 0:R.length)&&R.map((function(e){var n=Object.keys(r).find((function(n){return r[n]===e}));o.push(s.t("FILTER_BUILDING_SUBTYPE_"+n))})),S&&o.push(s.t("from")+" "+s.c(S)+" "),E&&o.push(s.t("to")+" "+s.c(E)+" "),v&&o.push(s.t("from")+" "+v+" m2 "),_&&o.push(s.t("to")+" "+_+" m2"),A&&o.push(A+" "+L+" "+s.t("SAVE_SEARCH.ROOMS")+" "),f&&o.push(f+" "+x+" "+s.t("SAVE_SEARCH.BATHROOMS")+" "),(null==d?void 0:d.length)&&d.map((function(e){var n=Object.keys(t).find((function(n){return t[n]===e}));o.push(s.t("FILTER_EXTRA_"+n))})),(null==c?void 0:c.length)&&c.map((function(e){var t=Object.keys(n).find((function(t){return n[t]===e}));t&&o.push(s.t("FILTER_CONSERVATION_STATUS_"+t))}));var O=o.join(", ");return O.charAt(0).toUpperCase()+O.slice(1).toLowerCase()}({conservationStatusDictionary:r[0],culture:a,featuresDictionary:r[1],searchParams:n,propertySubtypesDictionary:r[2],transactionTypesDictionary:r[3],i18n:t});return(0,o.jsx)("div",{className:L+"-info",children:(0,o.jsx)("div",{className:L+"-description",children:i})})};P.propTypes={searchParams:u().object.isRequired};var b=P,M=t("3Qmm"),D=t("aAtZ"),U=t("PI0R"),F=t("Mosr"),k=t("s1SG"),w=t("Ywar"),Y=t("vIJK"),B=t("MwLz"),V=t("rJsq"),G=function(){},q=function(e){var n=e.exactLabel,t=e.options,a=e.minValue,r=e.maxValue,i=e.onChange,s=void 0===i?G:i,c=(0,_.s9)(),u=(0,l.useState)(a?Number(a):t.data[0]),d=u[0],p=u[1],m=(0,l.useState)(a>0&&a===r),h=m[0],E=m[1];return(0,o.jsxs)("div",{className:"space-y-lg",children:[(0,o.jsx)(V.O,{type:"single",className:"w-full",value:d,onValueChange:function(e){e!==d&&(p(e),s({minValue:e,maxValue:h?e:void 0}))},children:t.data.map((function(e,n){var a=t.literals[n],r=h?a.replace(/\+/g,""):a;return(0,o.jsx)(V.d,{value:e,children:(0,o.jsx)(A.$,{variant:"outlined",intent:"main",size:"lg",className:"w-full",children:c.t(r)})},e)}))}),(0,o.jsxs)("div",{className:"flex items-center gap-md",children:[(0,o.jsx)(Y.S,{id:n,defaultChecked:h,onCheckedChange:function(e){E(e),s({minValue:d,maxValue:e?d:0})}}),(0,o.jsx)(B.J,{htmlFor:n,children:n})]})]})};q.propTypes={exactLabel:u().string,options:u().object,minValue:u().number,maxValue:u().number,onChange:u().func};var H=function(e){var n=e.exactLabel,t=e.options,a=e.minValue,r=e.maxValue,i=e.onMinValueChange,s=void 0===i?G:i,l=e.onMaxValueChange,c=void 0===l?G:l;return(0,o.jsx)(q,{exactLabel:n,maxValue:r,minValue:a,onChange:function(e){var n=e.minValue,t=e.maxValue;s(n),c(t)},options:t})};H.propTypes={exactLabel:u().string,options:u().object,minValue:u().number,maxValue:u().number,onMinValueChange:u().func,onMaxValueChange:u().func};var K=H,W=t("p6nu"),z=t("yvVk"),Q="re-AlertForm",$="FILTER_CONSERVATION_STATUS_NEW_HOME",X=function(){return(0,o.jsx)(z.A,{})},J=function(){},Z=function(e){var n=e.values,t=void 0===n?[]:n,a=e.onChange,r=void 0===a?J:a,s=e.options,l=void 0===s?{}:s,c=(0,_.s9)(),u=function(e){var n=e.option,a=e.isChecked;r(a?t.filter((function(e){return e!==n})):(0,i.A)(t).concat([n]))};return(0,o.jsx)("div",{className:Q+"-extrasWrapper",children:l.data.map((function(e,n){var a=null==t?void 0:t.includes(e);return(0,o.jsx)("div",{className:Q+"-extraCheckbox",children:(0,o.jsx)(W.A,{checked:a,checkedIcon:X,id:"checkbox-"+l.literals[n]+"-"+e,onChange:function(){return u({option:e,isChecked:a})},label:c.t(l.literals[n])})},n)}))})};Z.propTypes={values:u().array,onChange:u().func,options:u().object};var ee=Z,ne=t("974q"),te=t("DPeK"),ae=t("aiFg"),re=t("ArGU"),ie=["id","title","design"],se=(0,l.memo)((function(e){var n=e.id,t=e.title,a=e.design,r=void 0===a?"filled":a,i=(0,ae.A)(e,ie),s=function(e){var n=e.id,t=e.svg,a=e.title;return a&&n?t.replace(/<svg([^>]*)>/,'<svg$1 role="img" aria-labelledby="'+n+'"><title id="'+n+'">'+a+"</title>"):t.replace(/<svg([^>]*)>/,'<svg$1 aria-hidden="true" role="presentation">')}({id:n,svg:'<svg viewBox="0 0 24 24">
1<path d="M23.25 11.288a.75.75 0 0 1 .102 1.493l-.102.007H.75a.75.75 0 0 1-.102-1.493l.102-.007h22.5z"/></svg>',title:t});return(0,o.jsx)(re.Ay,(0,te.A)({design:r},i,{children:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})}))}));se.displayName="MemoSubstractAtomIcon";var oe=se,le=function(){return(0,o.jsx)(z.A,{})},ce=function(){return(0,o.jsx)(oe,{})},ue=function(){},de=function(e){var n=e.namespace,t=void 0===n?"":n,a=e.onChange,r=void 0===a?ue:a,s=e.optionGroup,l=e.options,c=e.secondaryOptions,u=e.values,d=(0,_.s9)(),p=function(e){var n=e.child;if(u.includes(n)){var t=u.filter((function(e){return e!==n}));r(t)}else r((0,i.A)(u).concat([n]))};return l.data.map((function(e,n){var a=s[e];return(0,o.jsx)(ne.A,{checkedIcon:le,id:"subcategoryTypeId-"+n,intermediateIcon:ce,labelParent:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:d.t(l.literals[n]+"_BOLD",{strongStart:"<strong>",strongEnd:"</strong>"})}}),onChangeParent:function(){return function(e){var n=e.parentValue,t=s[n];if(t.every((function(e){return!u.includes(e)})))r((0,i.A)(u).concat((0,i.A)(t)));else{var a=u.filter((function(e){return!t.includes(e)}));r(a)}}({parentValue:e})},children:a.map((function(e){var n=c.data.indexOf(e),a=null==u?void 0:u.includes(e),r=t?t+"-"+e:e;return(0,o.jsx)(W.A,{checked:a,checkedIcon:le,id:r,label:d.t(c.literals[n]),onChange:function(){return p({child:e})}},r)}))},e)}))};de.propTypes={namespace:u().string,onChange:u().func,optionGroup:u().object,options:u().object,secondaryOptions:u().object,values:u().array};var pe=de,me=t("xQVL"),he=function(){},Ee=function(e){var n=e.maxValue,t=e.minValue,a=e.onMaxValueChange,r=void 0===a?he:a,i=e.onMinValueChange,s=void 0===i?he:i,l=e.options,c=(0,_.s9)(),u=l.data[0];return(0,o.jsxs)("div",{className:Q+"-horizontalContainer",children:[(0,o.jsx)(me.A,{label:c.t("FILTERS.MIN"),onChange:function(e,n){var t=n.value;return s(t)},iconArrowDown:(0,o.jsx)(F.A,{}),value:t||u,children:l.data.map((function(e,n){return(0,o.jsx)(M.Ay,{value:e,children:c.t(l.literals[n])},e)}))}),(0,o.jsx)(me.A,{label:c.t("FILTERS.MAX"),onChange:function(e,n){var t=n.value;return r(t)},iconArrowDown:(0,o.jsx)(F.A,{}),value:n||u,children:l.data.map((function(e,n){return(0,o.jsx)(M.Ay,{value:e,children:c.t(l.literals[n])},e)}))})]})};Ee.propTypes={maxValue:u().number,minValue:u().number,onMaxValueChange:u().func,onMinValueChange:u().func,options:u().object};var Te=Ee,_e=function(e){var n=e.title,t=e.children;return e.shouldRender?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:Q+"-fieldTitle",children:n}),t,(0,o.jsx)("div",{className:Q+"-divider"})]}):null};_e.propTypes={title:u().string,children:u().element,shouldRender:u().bool};var fe=_e;function Se(e){var n=e.combinedLocationIds,t=e.conservationStatusIds,a=e.constructionTypeIds,i=void 0===a?[]:a,s=e.featureIds,c=e.onClose,u=void 0===c?function(){}:c,d=e.isNewConstruction,p=e.isOpen,m=e.locationsMultipleDescription,h=e.maxBathrooms,E=e.maxPrice,T=e.maxRooms,S=e.maxSurface,v=e.minBathrooms,I=e.minPrice,R=e.minRooms,y=e.minSurface,g=e.onEdit,L=void 0===g?function(){}:g,x=e.onError,N=void 0===x?function(){}:x,C=e.propertySubtypeIds,O=e.propertyTypeId,j=e.savedSearchId,P=e.transactionTypeId,b=(0,_.Jd)(),Y=(0,_.sn)(),B=(0,_.s9)(),V=(0,f.A)(),G=V.TRACKING_EVENTS,q=V.trackEvent,H=G.SEGMENT,W=(0,l.useState)(),z=W[0],X=W[1],J=(0,l.useState)(O),Z=J[0],ne=J[1],te=(0,_.UK)("loginDictionary","conservationStatusDictionary"),ae=te[0].ERRORS.SERVER_ERROR,re=te[1],ie=b.id,se=(0,l.useReducer)((function(e,n){return(0,r.A)({},e,n)}),{conservationStatusIds:t,constructionTypeIds:i,featureIds:s,maxBathrooms:h,maxPrice:E,maxRooms:T,maxSurface:S,minBathrooms:v,minPrice:I,minRooms:R,minSurface:y,propertySubtypeIds:C,propertyTypeId:O,transactionTypeId:P}),oe=se[0],le=se[1],ce=(0,_.UK)("constructionTypeDictionary","propertySubtypesFromPropertySubtypeGroupsDictionary","propertySubtypeGroupsDictionary","propertySubtypesDictionary"),ue=ce[0],de=ce[1],me=ce[2],he=ce[3],Ee=function(){return{combinedLocationIds:n,constructionTypeIds:oe.constructionTypeIds,conservationStatusIds:oe.conservationStatusIds,featureIds:oe.featureIds,isNewConstruction:d,maxBathrooms:oe.max
1Bathrooms,maxPrice:oe.maxPrice,maxRooms:oe.maxRooms,maxSurface:oe.maxSurface,minBathrooms:oe.minBathrooms,minPrice:oe.minPrice,minRooms:oe.minRooms,minSurface:oe.minSurface,propertySubtypeIds:oe.propertySubtypeIds,propertyTypeId:oe.propertyTypeId,transactionTypeId:oe.transactionTypeId}};(0,l.useEffect)((function(){q({alert_type:"FROM_MY_ACCOUNT",eventName:null==H?void 0:H.ALERT_EDIT_FORM_SHOWED,form_name:"alert_modification_form",transactionId:oe.transactionTypeId})}),[]);var _e={data:[me.FLATS,me.HOUSES],literals:["FILTER_BUILDING_SUBTYPE_GROUP_FLATS","FILTER_BUILDING_SUBTYPE_GROUP_HOUSES"]},Se={data:[he.INTERMEDIATE_FLOOR,he.APARTMENT,he.HOUSE_CHALET,he.SINGLE_FAMILY_SEMI_DETACHED,he.PENTHOUSE,he.DUPLEX_APARTMENT,he.LOFT,he.RURAL_PROPERTY,he.GROUND_FLOOR,he.STUDIO,he.COMMERCIAL_STORE,he.INDUSTRIAL_BUILDING],literals:["FILTER_BUILDING_SUBTYPE_INTERMEDIATE_FLOOR","FILTER_BUILDING_SUBTYPE_APARTMENT","FILTER_BUILDING_SUBTYPE_HOUSE_CHALET","FILTER_BUILDING_SUBTYPE_SINGLE_FAMILY_SEMI_DETACHED","FILTER_BUILDING_SUBTYPE_PENTHOUSE","FILTER_BUILDING_SUBTYPE_DUPLEX_APARTMENT","FILTER_BUILDING_SUBTYPE_LOFT","FILTER_BUILDING_SUBTYPE_RURAL_PROPERTY","FILTER_BUILDING_SUBTYPE_GROUND_FLOOR","FILTER_BUILDING_SUBTYPE_STUDIO","FILTER_BUILDING_SUBTYPE_COMMERCIAL_STORE","FILTER_BUILDING_SUBTYPE_INDUSTRIAL_BUILDING"]},Ae={data:[ue.ALL_CONSTRUCTION_TYPES],literals:["FILTER_CONSTRUCTION_TYPE_ALL"]},ve={data:[ue.SECOND_HAND,ue.NEW_CONSTRUCTION],literals:["FILTER_CONSTRUCTION_TYPE_SECOND_HAND","FILTER_CONSTRUCTION_TYPE_NEW_CONSTRUCTION"]},Ie=function(e){var n=null==e?void 0:e.conservationStatusIds,t=null==n?void 0:n.data.filter((function(e){return e!==re.NEW_HOME})),a=null==n?void 0:n.literals.filter((function(e){return e!==$})),i=(0,r.A)({},e,{conservationStatusIds:{data:t,literals:a}});X((0,r.A)({},i,{constructionTypeIds:ve,constructionTypeGroupIds:Ae,propertySubtypeIds:Se,propertySubtypeGroupIds:_e}))};(0,l.useEffect)((function(){Y.get("filters_search_use_case").execute({searchParams:Ee(),patch:{}}).then((function(e){var n=e.filters;return Ie(n)}))}),[]);var Re=function(e){ne(e.propertyTypeId);var n=(0,r.A)({},Ee(),e);Y.get("filters_search_use_case").execute({searchParams:n,patch:{}}).then((function(e){var n=e.filters,t=e.searchParams;Ie(n),ye({searchParams:t})}))},ye=function(e){var n=e.searchParams,t=n.conservationStatusIds,a=n.featureIds,r=n.maxBathrooms,i=n.maxPrice,s=n.maxRooms,o=n.maxSurface,l=n.minBathrooms,c=n.minPrice,u=n.minRooms,d=n.minSurface,p=n.propertySubtypeIds,m=n.propertyTypeId,h=n.transactionTypeId;le({conservationStatusIds:t,featureIds:a,maxBathrooms:r,maxPrice:i,maxRooms:s,maxSurface:o,minBathrooms:l,minPrice:c,minRooms:u,minSurface:d,propertySubtypeIds:p,propertyTypeId:m,transactionTypeId:h})},ge=(0,l.useCallback)((function(e){return le({constructionTypeIds:e})}),[]);if(!z)return null;var Le;return(0,o.jsx)(D.default,{size:D.MODAL_SIZES.SMALL,isOpen:p,closeOnEscKeyDown:!0,iconClose:(0,o.jsx)(k.A,{}),fitWindow:!0,header:(0,o.jsx)("div",{className:Q+"-title",children:B.t("EDIT_ALERT_FORM.EDIT_TITLE")}),onClose:u,usePortal:!1,isContentless:!0,isPageScrollable:!1,children:(0,o.jsxs)("div",{className:Q,children:[(0,o.jsxs)("div",{className:Q+"-form",children:[(0,o.jsxs)("div",{className:Q+"-locationBox",children:[(0,o.jsx)("div",{className:Q+"-infoIcon",children:(0,o.jsx)(w.A,{size:"medium"})}),B.t("EDIT_ALERT_FORM.EDIT_LOCATION"),m]}),(0,o.jsx)(fe,{shouldRender:Boolean(z.transactionTypeId.data.length),title:B.t("FILTERS.TRANSACTION_TYPE"),children:(0,o.jsx)(U.Ay,{iconArrowDown:(0,o.jsx)(F.A,{}),onChange:function(e,n){var t=n.value;return Re({transactionTypeId:t})},value:oe.transactionTypeId,children:z.transactionTypeId.data.map((function(e,n){return(0,o.jsx)(M.Ay,{value:e,children:B.t(z.transactionTypeId.literals[n])},e)}))})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.propertyTypeId.data.length),title:B.t("FILTERS.PROPERTY_TYPE"),children:(0,o.jsx)(U.Ay,{iconArrowDown:(0,o.jsx)(F.A,{}),onChange:function(e,n){var t=n.value;return Re({propertyTypeId:t})},value:oe.propertyTypeId,children:z.propertyTypeId.data.map((function(e,n){return(0,o.jsx)(M.Ay,{value:e,children:B.t(z.propertyTypeId.literals[n])},e)}))})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.minPrice.data.length),title:B.t("FILTERS.PRICE"),children:(0,o.jsx)(Te,{maxValue:oe.maxPrice,minValue:oe.minPrice,onMaxValueChange:function(e){return le({maxPrice:e})},onMinValueChange:function(e){return le({minPrice:e})},options:z.minPrice})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.propertySubtypeGroupIds.data.length&&2===Z),title:B.t("FILTERS.SUBPROPERTY_TYPE"),children:(0,o.jsx)(pe,{optionGroup:de,options:z.propertySubtypeGroupIds,secondaryOptions:z.propertySubtypeIds,onChange:function(e){return le({propertySubtypeIds:e})},values:oe.propertySubtypeIds})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.propertySubtypeGroupIds.data.length&&2===Z),title:B.t("FILTER_CONSTRUCTION_TYPE"),children:(0,o.jsx)(pe,{namespace:"constructionType",optionGroup:(Le={},Le[ue.ALL_CONSTRUCTION_TYPES]=[ue.SECOND_HAND,ue.NEW_CONSTRUCTION],Le),options:z.constructionTypeGroupIds,secondaryOptions:z.constructionTypeIds,onChange:ge,values:oe.constructionTypeIds})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.minRooms.data.length),title:B.t("FILTERS.ROOMS"),children:(0,o.jsx)(K,{exactLabel:B.t("FILTERS.EXACT_ROOMS"),maxValue:oe.maxRooms,minValue:oe.minRooms,onMaxValueChange:function(e){return le({maxRooms:e})},onMinValueChange:function(e){return le({minRooms:e})},options:z.minRooms})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.minBathrooms.data.length),title:B.t("FILTERS.BATHROOMS"),children:(0,o.jsx)(K,{exactLabel:B.t("FILTERS.EXACT_BATHROOMS"),maxValue:oe.maxBathrooms,minValue:oe.minBathrooms,onMaxValueChange:function(e){return le({maxBathrooms:e})},onMinValueChange:function(e){return le({minBathrooms:e})},options:z.minBathrooms})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.minSurface.data.length),title:B.t("FILTERS.SURFACE"),children:(0,o.jsx)(Te,{maxValue:oe.maxSurface,minValue:oe.minSurface,onMaxValueChange:function(e){return le({maxSurface:e})},onMinValueChange:function(e){return le({minSurface:e})},options:z.minSurface})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.featureIds.data.length),title:B.t("FILTERS.FEATURES"),children:(0,o.jsx)(ee,{options:z.featureIds,onChange:function(e){return le({featureIds:e})},values:oe.featureIds})}),(0,o.jsx)(fe,{shouldRender:Boolean(z.conservationStatusIds.data.length),title:B.t("FILTERS.CONSERVATION_STATUS"),children:(0,o.jsx)(ee,{options:z.conservationStatusIds,onChange:function(e){return le({conservationStatusIds:e})},values:oe.conservationStatusIds})})]}),(0,o.jsxs)("div",{className:"flex justify-between border-t border-solid pt-lg pb-xl pr-xl pl-xl border-sm border-outline",children:[(0,o.jsx)(A.$,{variant:"ghost",onClick:u,children:B.t("CANCEL")}),(0,o.jsx)(A.$,{variant:"solid",onClick:function(e){e.preventDefault(),Y.get("edit_saved_search_use_case").execute({languageId:2,savedSearchId:j,searchParams:Ee(),userId:ie}).then((function(e){q({alert_type:"FROM_MY_ACCOUNT",eventName:null==H?void 0:H.ALERT_EDIT_FORM_SUCCESS,form_name:"alert_modification_form",transactionId:oe.transactionTypeId}),L(e),u()})).catch((function(){q({alert_type:"FROM_MY_ACCOUNT",error_reason:ae,eventName:null==H?void 0:H.ALERT_EDIT_FORM_ERROR,form_name:"alert_modification_form",transactionId:oe.transactionTypeId}),N()}))},children:B.t("SAVE_SEARCH.SAVE_FORM")})]})]})})}
1Se.displayName="AlertForm",Se.propTypes={combinedLocationIds:u().string,conservationStatusIds:u().array,constructionTypeIds:u().array,featureIds:u().array,onClose:u().func,isNewConstruction:u().bool,isOpen:u().bool,locationsMultipleDescription:u().string,maxBathrooms:u().number,maxPrice:u().number,maxRooms:u().number,maxSurface:u().number,minBathrooms:u().number,minPrice:u().number,minRooms:u().number,minSurface:u().number,onEdit:u().func,onError:u().func,propertySubtypeIds:u().array,propertyTypeId:u().number,savedSearchId:u().number,transactionTypeId:u().number};var Ae=t("fPPL"),ve=t("LuR5"),Ie=t("X58v"),Re=t("D62k"),ye=t("+8Zr"),ge=t("J5of"),Le=t("hcqL"),xe=t("3sK9"),Ne=t("6m9K"),Ce=t("z4Aa"),Oe="mailto:?body=",je="https://api.whatsapp.com/send?text=",Pe="http://www.facebook.com/share.php?u=",be="http://twitter.com/share?url=",Me=function(e){var n=e.detailTitle,t=e.features,a=e.setIsOpen,r=e.onTracking,i=e.transactionType,s=e.url,o=(0,ge.EZ)(i),l=o?o+" "+n:n,c=t?l+", "+t:l,u="fotocasa.es - "+n,d=t?u+", "+t:u,p=encodeURIComponent(s);return[{literal:"Email",variant:"outlined",icon:Le.O5,onClick:function(){r({label:"email"}),a(!1)},size:"lg",url:""+Oe+encodeURIComponent(c+", "+s)+"&subject="+encodeURIComponent(n)},{literal:"WhatsApp",variant:"outlined",icon:xe.hM,onClick:function(){r({label:"whatsapp"}),a(!1)},size:"lg",url:""+je+encodeURIComponent(c+", "+s)},{literal:"Facebook",variant:"outlined",icon:Ne.cO,onClick:function(){r({label:"facebook"}),a(!1)},size:"lg",url:""+Pe+p},{literal:"Twitter",variant:"outlined",icon:Ce.Y0,onClick:function(){r({label:"twitter"}),a(!1)},size:"lg",url:""+be+p+"&text="+encodeURIComponent(d)}]},De=function(e){var n=e.bodyShareAlert,t=e.setIsOpen,a=e.subjectShareAlert,r=e.onTracking,i=e.url;return[{literal:"Email",variant:"outlined",icon:Le.O5,onClick:function(){r({label:"email"}),t(!1)},size:"md",url:""+Oe+encodeURIComponent(n+", "+i)+"&subject="+encodeURIComponent(a)},{literal:"WhatsApp",variant:"outlined",icon:xe.hM,onClick:function(){r({label:"whatsapp"}),t(!1)},size:"md",url:""+je+encodeURIComponent(n+", "+i)}]};function Ue(e){var n=e.detailTitle,t=e.features,a=e.isOpen,i=void 0!==a&&a,s=e.isShareAlert,c=void 0!==s&&s,u=e.onClose,d=void 0===u?function(){}:u,p=e.setIsOpen,m=e.onTracking,h=e.title,E=e.transactionType,f=e.url,S=(0,_.s9)(),v=(0,l.useState)(!1),R=v[0],y=v[1];if(!f)return null;var g=S.t("ALERTS.SHARE_ALERT_TITLE"),L=g+": "+n+", "+S.t("ALERTS.SHARE_ALERT_SUBTITLE"),x=c?De({bodyShareAlert:L,setIsOpen:p,subjectShareAlert:g,onTracking:m,url:encodeURIComponent(f)}):Me({detailTitle:n,features:t,setIsOpen:p,transactionType:E,onTracking:m,url:f}),N=c?S.t("ALERTS.SHARE_ALERT"):S.t("SHARE_AD"),C=h||N;return(0,o.jsx)(ye.lG,{open:i,onOpenChange:function(e){e||d()},children:(0,o.jsxs)(ye.ZJ,{children:[(0,o.jsx)(ye.LC,{}),(0,o.jsxs)(ye.Cf,{children:[(0,o.jsx)(ye.De,{"aria-label":S.t("close")}),(0,o.jsx)(ye.c7,{children:(0,o.jsx)(ye.L3,{children:C})}),(0,o.jsxs)(ye.R4,{className:"!pt-none",children:[c&&(0,o.jsx)(ve.A,{detailTitle:n}),(0,o.jsxs)("div",{className:"flex flex-col gap-lg",children:[(0,o.jsx)("p",{className:"text-body-1 mb-none",children:S.t("SELECT_OPTION_TO_SHARE")}),(0,o.jsx)("div",{className:"flex flex-col sm:flex-row gap-md mb-lg",children:x.map((function(e,n){var t=e.icon,a=e.literal,i=e.url,s=(0,T.A)(e,["icon","literal","url"]);return(0,o.jsx)(A.$,(0,r.A)({},s,{asChild:!0,className:"no-underline sm:grow text-body-2",children:(0,o.jsxs)("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:[(0,o.jsx)(I.I,{size:"md",children:(0,o.jsx)(t,{})}),a]})}),n)}))}),(0,o.jsx)("div",{children:(0,o.jsx)(Ie.z,{buttonProps:{leftIcon:R&&(0,o.jsx)(Re.Jl,{})},buttonText:S.t("COPY"),buttonTextAfterCopied:S.t("COPIED"),labelText:S.t("COPY_URL"),onCopy:function(){m({label:"copied_url"}),y(!0),window.setTimeout((function(){return y(!1)}),4e3)},textToCopy:f,timeoutReactivateButton:4e3})})]})]})]})]})})}Ue.displayName="ShareModal",Ue.propTypes={detailTitle:u().string,features:u().string,isOpen:u().bool,isShareAlert:u().bool,onClose:u().func,setIsOpen:u().func,onTracking:u().func,title:u().string,transactionType:u().string,url:u().string.isRequired};var Fe=t("JZTC"),ke=t("iIqQ"),we=t("CVTW"),Ye=t("7ZOQ"),Be=t("+T1+"),Ve=t("Y6/1"),Ge=t("jxLK"),qe=function(e){var n,t=e.icon,a=e.onItemClick,r=e.text;return(0,o.jsxs)(A.$,{className:"w-full flex !justify-start",variant:"ghost",onClick:a,size:"lg",children:[(n=t,(0,o.jsx)(I.I,{children:(0,o.jsx)(n,{})})),(0,o.jsx)("span",{className:"font-regular",children:r})]})};qe.displayName="AlertCardItem",qe.propTypes={icon:u().node,onItemClick:u().func,text:u().string};var He=qe,Ke=function(){};function We(e){var n=e.isAlertFromSearchArea,t=e.onClickChangeFrequency,a=void 0===t?Ke:t,r=e.onClickDelete,i=void 0===r?Ke:r,s=e.onClickEdit,l=void 0===s?Ke:s,c=e.onClickEditName,u=void 0===c?Ke:c,d=e.onClickShare,p=void 0===d?Ke:d,m=e.onClickShowResults,h=void 0===m?Ke:m,E=(0,_.s9)();return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"flex flex-col gap-md min-w-224 md:gap-none py-md pr-lg pl-md",children:[(0,o.jsx)(He,{icon:we.NM,onItemClick:h,text:E.t("ALERTS.SHOW_RESULTS")}),!n&&(0,o.jsx)(He,{icon:Be.gH,onItemClick:l,text:E.t("ALERTS.UPDATE_ALERT")}),(0,o.jsx)(He,{icon:Ge.k_,onItemClick:a,text:E.t("ALERTS.ALERTS_CONFIGURE")}),(0,o.jsx)(He,{icon:Ye.y$,onItemClick:u,text:E.t("ALERTS.NAME_ALERT")}),(0,o.jsx)(He,{icon:Ve.fC,onItemClick:p,text:E.t("ALERTS.SHARE_ALERT")}),(0,o.jsx)(He,{icon:ke.sK,onItemClick:i,text:E.t("USER_ALERT_REMOVE")})]})})}function ze(e){var n=e.handleDelete,t=void 0===n?function(){}:n,a=e.isAlertFromSearchArea,r=e.onClose,i=void 0===r?function(){}:r,s=(0,_.s9)();return(0,o.jsx)(D.default,{closeOnEscKeyDown:!0,closeOnOutsideClick:!0,fitWindow:!0,header:(0,o.jsx)("div",{className:L+"-modal-delete-title",children:s.t("ALERTS.MODAL_DELETE_TITLE")}),iconClose:(0,o.jsx)(k.A,{}),isContentless:!0,isOpen:!0,onClose:i,size:"small",usePortal:!1,isPageScrollable:!1,
1children:(0,o.jsxs)("div",{className:L+"-modal-delete",children:[(0,o.jsx)("div",{className:L+"-modal-delete-subtitle",children:s.t("ALERTS.MODAL_DELETE_SUBTITLE")}),(0,o.jsx)("div",{className:L+"-modal-delete-text",dangerouslySetInnerHTML:{__html:s.t("ALERTS.MODAL_DELETE_DESCRIPTION")}}),(0,o.jsxs)("ul",{className:L+"-modal-delete-list",children:[(0,o.jsx)("li",{className:L+"-modal-delete-list-item",children:s.t("ALERTS.MODAL_DELETE_OPTION_1")}),!a&&(0,o.jsx)("li",{className:L+"-modal-delete-list-item",children:s.t("ALERTS.MODAL_DELETE_OPTION_2")})]}),(0,o.jsxs)("div",{className:L+"-modal-delete-actionButtons",children:[(0,o.jsx)(A.$,{variant:"ghost",onClick:i,children:s.t("CANCEL")}),(0,o.jsx)(A.$,{variant:"solid",onClick:t,children:s.t("ALERTS.MODAL_DELETE_BUTTON_CONFIRM")})]})]})})}We.displayName="AlertCardActionButtons",We.propTypes={isAlertFromSearchArea:u().bool,onClickChangeFrequency:u().func.isRequired,onClickDelete:u().func.isRequired,onClickEdit:u().func.isRequired,onClickEditName:u().func.isRequired,onClickShare:u().func.isRequired,onClickShowResults:u().func.isRequired},ze.displayName="AlertCardDeleteModal",ze.propTypes={handleDelete:u().func,isAlertFromSearchArea:u().bool,onClose:u().func};var Qe=t("6gvC");function $e(e){var n=e.alertTitle,t=e.handleChangeName,a=void 0===t?function(){}:t,r=e.onClose,i=void 0===r?function(){}:r,s=e.searchParams,c=(0,_.s9)(),u=(0,f.A)(),d=u.getTrackingPageType,p=u.TRACKING_EVENTS,m=u.trackEvent,h=p.SEGMENT,E=(0,_.UK)("transactionTypesDictionaryNew")[0],T=null==s?void 0:s.transactionTypeId,S=Object.keys(E).find((function(e){return E[e]===T}))||"UNDEFINED",I=(0,l.useState)(""),R=I[0],y=I[1],g=(0,l.useState)(!1),L=g[0],x=g[1],N=(0,l.useState)(""),C=N[0],O=N[1];(0,l.useEffect)((function(){m({alert_type:"FROM_MY_ACCOUNT",eventName:null==h?void 0:h.ALERT_MODIFICATION_NAME_SHOWED,form_name:"alert_modification_name_form",page_type:d(),transaction:S})}),[]);var P=function(){R?(a({alertName:R}),i()):x(!0)};return(0,o.jsxs)(D.default,{closeOnEscKeyDown:!0,closeOnOutsideClick:!0,fitWindow:!0,header:(0,o.jsx)("div",{className:"text-headline-1",children:c.t("ALERTS.NAME_ALERT")}),iconClose:(0,o.jsx)(k.A,{}),isContentless:!0,isOpen:!0,onClose:i,size:D.MODAL_SIZES.SMALL,usePortal:!1,isPageScrollable:!1,children:[(0,o.jsx)(D.MoleculeModalContent,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"text-body-2 font-bold",children:c.t("ALERTS.NAME_ALERT_SUBTITLE")}),(0,o.jsxs)(v.D0,{children:[(0,o.jsx)(Qe.pd,{id:"alertName",name:"alertName",autoFocus:!0,placeholder:n,onChange:function(e){var n=e.target;y(n.value),x(Boolean(!n.value)),O(n.value)},onKeyDown:function(e){"Enter"===e.key&&P()},maxLength:j,state:L?"error":null}),(0,o.jsxs)("div",{className:"flex justify-between",children:[(0,o.jsx)(v.sk,{children:c.t("ALERTS.NAME_ALERT_MAX_LENGTH")}),(0,o.jsx)(v.M2,{maxLength:j,value:C})]})]})]})}),(0,o.jsx)(D.MoleculeModalFooter,{children:(0,o.jsx)(A.$,{className:"w-full",variant:"solid",onClick:P,children:c.t("ALERTS.NAME_ALERT_SAVE")})})]})}$e.displayName="AlertCardEditNameModal",$e.propTypes={alertTitle:u().string.isRequired,handleChangeName:u().func,onClose:u().func,searchParams:u().object};var Xe=t("xsTg");function Je(e){var n=e.initialFrequencyLabel,t=e.hashId,a=e.onChangeFrequency,i=e.onClose,s=e.onShowErrorNotification,c=e.onShowNotification,u=(0,_.sn)(),d=(0,_.s9)(),p=(0,_.Jd)().id,m=(0,f.A)(),h=m.TRACKING_EVENTS,T=m.trackEvent,S=h.SEGMENT,v=(0,l.useState)(n),I=v[0],R=v[1],y=function(e){null==e||e.preventDefault(),i()},g=function(){T({eventName:null==S?void 0:S.ALERT_CONFIGURATION_ERROR,error_reason:"Server Error",form_name:"alert_frequency_config"}),s()},N=function(e){T({eventName:null==S?void 0:S.ALERT_CONFIGURATION_APPLIED,label:"alert_frequency_config",configuration:I===x.daily?"frequency_to_daily":"frequency_to_default"}),function(e){var n=e===x.nearrealtime?d.t("ALERTS.ALERTS_IMMEDIATELY_FREQUENCY"):d.t("ALERTS.ALERTS_DAILY_FREQUENCY");c({text:n,type:E.QE.success})}(e)},C=function(e){e.preventDefault();var i={frequency:I,hash:t,userId:p},s=n!==I;Promise.all([u.get("change_frequency_alert_use_case").execute((0,r.A)({},i,{channel:1})),u.get("change_frequency_alert_use_case").execute((0,r.A)({},i,{channel:2}))]).then((function(){a(I),s&&N(I)})).catch(g).finally(y)};return(0,o.jsx)(D.default,{closeOnEscKeyDown:!0,closeOnOutsideClick:!0,fitWindow:!0,header:d.t("ALERTS.ALERTS_CONFIGURE_TITLE"),iconClose:(0,o.jsx)(k.A,{}
1),isOpen:!0,onClose:y,usePortal:!0,isPageScrollable:!1,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:L+"-frequency-modal-title",children:d.t("ALERTS.ALERTS_FREQUENCY_MODAL_TITLE")}),(0,o.jsx)("div",{className:L+"-frequency-modal-description",children:d.t("ALERTS.ALERTS_FREQUENCY_MODAL_SUBTITLE")}),(0,o.jsxs)("div",{className:L+"-frequency-radio",onClick:function(){R(x.nearrealtime)},children:[(0,o.jsx)("div",{className:L+"-frequency-radio-input",children:(0,o.jsx)(Xe.A,{checked:I===x.nearrealtime,id:t+"-nearrealtime",label:d.t("ALERTS.ALERTS_FREQUENCY_MODAL_TYPE_IMMEDIATELY"),value:x.nearrealtime})}),(0,o.jsx)("div",{className:L+"-frequency-radio-text",children:d.t("ALERTS.ALERTS_FREQUENCY_MODAL_TYPE_IMMEDIATELY_TEXT")})]}),(0,o.jsx)("div",{className:L+"-separator"}),(0,o.jsxs)("div",{className:L+"-frequency-radio",onClick:function(){R(x.daily)},children:[(0,o.jsx)("div",{className:L+"-frequency-radio-input",children:(0,o.jsx)(Xe.A,{checked:I===x.daily,id:t+"-daily",label:d.t("ALERTS.ALERTS_FREQUENCY_MODAL_TYPE_DAILY"),value:x.daily})}),(0,o.jsx)("div",{className:L+"-frequency-radio-text",children:d.t("ALERTS.ALERTS_FREQUENCY_MODAL_TYPE_DAILY_TEXT")})]}),(0,o.jsxs)("div",{className:"flex justify-end gap-md mt-2xl",children:[(0,o.jsx)(A.$,{variant:"ghost",onClick:y,children:d.t("CANCEL")}),(0,o.jsx)(A.$,{variant:"solid",onClick:C,children:d.t("SAVE_SEARCH.SAVE_FORM")})]})]})})}Je.displayName="AlertCardFrequencyModal",Je.propTypes={initialFrequencyLabel:u().string,hashId:u().string.isRequired,onChangeFrequency:u().func,onClose:u().func,onShowNotification:u().func,onShowErrorNotification:u().func};var Ze=function(){};function en(e){var n=e.alertTitle,t=e.handleModalOpen,i=void 0===t?Ze:t,c=e.hashId,u=e.initialFrequencyLabel,d=e.isAlertFromSearchArea,p=e.isOpenEditAlertModal,m=e.locationsMultipleDescription,h=e.onChangeFrequency,T=void 0===h?Ze:h,S=e.onChangeName,A=void 0===S?Ze:S,v=e.onDelete,g=void 0===v?Ze:v,L=e.onShowErrorNotification,x=void 0===L?Ze:L,N=e.onShowNotification,C=void 0===N?Ze:N,O=e.onUpdateAlertList,j=void 0===O?Ze:O,P=e.onShowResults,b=void 0===P?Ze:P,M=e.savedSearch,D=e.savedSearchId,U=e.searchParams,F=e.setSavedSearch,k=(0,_.sn)(),w=(0,_.s9)(),Y=(0,_.Jd)().id,B=(0,f.A)(),V=B.getTrackingPageType,G=B.TRACKING_EVENTS,q=B.trackEvent,H=G.SEGMENT,K=(0,l.useState)(!1),W=K[0],z=K[1],Q=(0,l.useState)(!1),$=Q[0],X=Q[1],J=(0,l.useState)(!1),Z=J[0],ee=J[1],ne=(0,l.useState)(!1),te=ne[0],ae=ne[1],re=(0,l.useState)(!1),ie=re[0],se=re[1],oe=(0,Ae.N)({searchParams:U,locationsMultipleDescription:m}),le=oe.detailAlertTitle,ce=oe.urlShareAlert,ue=(0,a.A)((function(){return(0,s.YH)(this,(function(e){return z(!1),k.get("get_saved_search_use_case").execute({locale:w.locale,savedSearchId:D,userId:Y}).then((function(e){F(e),i(!0)})),q({eventName:null==H?void 0:H.ALERT_EDIT_BTN_CLICK,label:"alert_edit_button",page_type:V()}),[2]}))})),de=function(){q({channel:"my_account",eventName:null==H?void 0:H.SHARE_ALERT_CLICKED,label:"share_alert_button",page_type:V()}),z(!1),se(!0)},pe=function(){q({eventName:null==H?void 0:H.C_ALERT_EDIT_FREQUENCY,label:"my_alerts_frequency_config"}),q({channel:"my_account",eventName:null==H?void 0:H.PAGE_VIEWED,page_name:"alert_frequency_config",page_type:V()}),z(!1),X(!0)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(y.AM,{open:W,onOpenChange:z,children:[(0,o.jsx)(y.Wv,{asChild:!0,children:(0,o.jsx)(R.K,{"aria-label":"Dropdown",onClick:function(){q({eventName:null==H?void 0:H.ALERT_FEATURES_MODAL_SHOWED,channel:"my_account",label:"show_alert_ads",modal_label:"alert_features_modal",page_type:V()})},shape:"rounded",variant:"ghost",children:(0,o.jsx)(I.I,{children:(0,o.jsx)(Fe.UX,{})})})}),(0,o.jsx)(y.i0,{children:(0,o.jsx)(y.hl,{side:"bottom",align:"end",children:(0,o.jsx)(We,{isAlertFromSearchArea:d,onClickChangeFrequency:pe,onClickDelete:function(){z(!1),ae(!0)},onClickEdit:ue,onClickEditName:function(){z(!1),ee(!0)},onClickShare:de,onClickShowResults:b})})})]}),M&&p&&(0,o.jsx)(Se,(0,r.A)({isOpen:p,locationsMultipleDescription:m,onClose:function(){return i(!1)},onEdit:function(e){j(e),C({text:w.t("ALERTS.ALERTS_EDIT_SUCCESS"),type:E.QE.success})},onError:x,savedSearchId:M.id},M.searchParams)),$&&(0,o.jsx)(Je,{initialFrequencyLabel:u,hashId:c,onChangeFrequency:T,onClose:function(){return X(!1)},onShowNotification:C,onShowErrorNotification:x}),te&&(0,o.jsx)(ze,{handleDelete:function(){ae(!1),g()},isAlertFromSearchArea:d,onClose:function(){return ae(!1)}}),Z&&(0,o.jsx)($e,{alertTitle:n,handleChangeName:A,onClose:function(){return ee(!1)},searchParams:U}),ie&&(0,o.jsx)(Ue,{detailTitle:le,isOpen:!0,isShareAlert:!0,onClose:function(){return se(!1)},setIsOpen:se,onTracking:function(e){var n=e.label;q({channel:"my_account",eventName:null==H?void 0:H.SHARE_ALERT_SUBMIT,label:n,page_type:V()})},url:ce})]})}en.displayName="AlertCardNavigation",en.propTypes={alertTitle:u().string.isRequired,hashId:u().string.isRequired,initialFrequencyLabel:u().string,isAlertFromSearchArea:u().bool,isOpenEditAlertModal:u().bool,locationsMultipleDescription:u().string,onChangeFrequency:u().func.isRequired,onChangeName:u().func.isRequired,onDelete:u().func,onShowErrorNotification:u().func,onShowNotification:u().func,onShowResults:u().func,onUpdateAlertList:u().func,savedSearch:u().object,savedSearchId:u().string.isRequired,searchParams:u().object.isRequired,handleModalOpen:u().func,setSavedSearch:u().func};var nn=function(){};function tn(e){var n=e.customTitle,t=e.hashId,c=e.id,u=e.locationsMultipleDescription,d=e.notification,p=e.onChangeFrequency,m=void 0===p?nn:p,h=e.onDeleteSuccess,E=void 0===h?nn:h,j=e.onShowErrorNotification,P=void 0===j?nn:j,M=e.onShowNotification,D=void 0===M?nn:M,U=e.onUpdateAlertList,F=void 0===U?nn:U,k=e.searchParams,w=e.sessionId,Y=(0,T.A)(e,["customTitle","hashId","id","locationsMultipleDescription","notification","onChangeFrequency","onDeleteSuccess","onShowErrorNotification","onShowNotification","onUpdateAlertList","searchParams","sessionId"]),B=(0,_.sn)(),V=(0,_.s9)(),G=V.culture,q=(0,_.Jd)().id,H=(0,_.UK)("transactionTypesDictionaryNew")[0],K=(0,f.A)(),W=K.getTrackingPageType,z=K.TRACKING_EVENTS,Q=K.trackEvent,$=z.SEGMENT,X=(0,l.useState)(),J=X[0],Z=X[1],ee=(0,l.useState)(Y.channels||[]),ne=ee[0],te=ee[1],ae=(0,l.useState)(!1),re=ae[0],ie=ae[1],se=null==k?void 0:k.transactionTypeId,oe=Object.keys(H).find((function(e){return H[e]===se}))||"UNDEFINED",le={nearrealtime:V.t("ALERTS.ALERTS_FREQUENCY_MODAL_TYPE_IMMEDIATELY"),daily:V.t("ALERTS.ALERTS_FREQUENCY_MODAL_TYPE_DAILY")},ce=function(e){var n=e.notification;return((null==n?void 0:n.length)?n.find((function(e){return e.frequency===x[e.frequency]})):{frequency:x.nearrealtime}).frequency},ue=function(e){var n=e.frequencyValue;return le[n]||le.nearrealtime},de=ce({notification:d}),pe=ue({frequencyValue:de}),me=(0,l.useState)(pe),he=me[0],Ee=me[1];(0,l.useEffect)((function(){te(Y.channels||[])}),[Y.channels]),(0,l.useEffect)((function(){var e=ce({notification:d})===x.daily?V.t("ALERTS.ALERTS_FREQUENCY_MODAL_TYPE_DAILY"):V.t("ALERTS.ALERTS_FREQUENCY_MODAL_TYPE_IMMEDIATELY");Ee(e)}),[d,de]);var Te=function(){var e=(0,r.A)({culture:G},k);if(e.combinedLocationIds===C&&(e.combinedLocationIds=N),k.shapeArea){var n=k.shapeArea.map((function(e){var n=e.lat;return[e.lng,n]}));n[0]!==n[n.length-1]&&n.push(n[0]);var t=n.map((function(e){return e[0]+","+e[1]})).join(";");e.searchArea=t}B.get("generate_search_url_search_use_case").execute((0,r.A)({},e)),Q({eventName:null==$?void 0:$.ALERT_SHOW_ADS_CLICKED,channel:"my_account",label:"show_alert_ads",page_type:W()})},_e=Boolean(null==k?void 0:k.shapeArea),fe=n&&n!==O?n:_e?V.t("SAVE_SEARCH.PERSONALIZED_ZONE"):u,Se=(0,a.A)((function(e){var n,t,a;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return n=ne.includes(e)?ne.filter((function(n){return n!==e})):(0,i.A)(ne).concat([e]),t="phone_off_mail_off",n.includes("EMAIL")&&n.includes("PUSH")?t="phone_on_mail_on":n.includes("EMAIL")?t="phone_off_mail_on":n.includes("PUSH")&&(t="phone_on_mail_off"),te(n),[4,Q({eventName:null==$?void 0:$.ALERT_EDIT_CHANNEL_CLICKED,label:"alert_edit_channel_button",page_type:W(),configuration:t})];case 1:return r.sent(),a=[{op:"replace",path:"/channels/",value:n}],B.get("edit_alert_channels_use_case").execute({savedSearchId:c,userId:q,channels:a}).catch((function(){P()})),[2]}}))}));return(0,o.jsxs)("div",{className:L,children:[(0,o.jsxs)("div",{className:L+"-header",children:[(0,o.jsx)("div",{className:L+"-title",children:fe}),(0,o.jsx)(en,{alertTitle:fe,handleModalOpen:function(e){return ie(e)},hashId:t,initialFrequencyLabel:de,isAlertFromSearchArea:_e,isOpenEditAlertModal:re,locationsMultipleDescription:u,onChangeFrequency:function(e){F({id:c,notification:[{channel:"email",frequency:e},{channel:"push",frequency:e}]}),Ee(ue({frequencyValue:e})),m(e)},onChangeName:function(e){var n=e.alertName;B.get("edit_name_alert_use_case").execute({alertName:n,savedSearchId:c,userId:q}).then((function(){F({id:c,customTitle:n}),D({title:V.t("ALERTS.ALERTS_EDIT_SUCCESS"),description:"",type:"success"}),Q({alert_type:"FROM_MY_ACCOUNT",eventName:null==$?void 0:$.ALERT_MODIFICATION_NAME_SUCCESS,form_name:"alert_name_modified",page_type:W(),transaction:oe})})).catch((function(){P(),Q({alert_type:"FROM_MY_ACCOUNT",error_reason:"server_error",eventName:null==$?void 0:$.ALERT_MODIFICATION_NAME_ERROR,form_name:"alert_name_error",page_type:W(),transaction:oe})}))},onDelete:function(){B.get("delete_saved_alert_use_case").execute({savedSearchId:c,userId:q,sessionId:w}).then((function(){Q({eventName:null==$?void 0:$.ALERT_DELETED}),E({savedSearchId:c})})).catch(P)},onShowErrorNotification:P,onShowNotification:D,onShowResults:Te,onUpdateAlertList:F,savedSearch:J,savedSearchId:c,searchParams:k,setSavedSearch:Z})]}),(0,o.jsx)(b,{searchParams:k}),(0,o.jsxs)("div",{className:L+"-frequency",children:[(0,o.jsxs)(y.AM,{children:[(0,o.jsx)(y.Wv,{asChild:!0,children:(0,o.jsx)(R.K,{size:"sm",variant:"ghost","aria-label":V.t("ALERTS.POPOVER_PUSH_NOTIFICATIONS"),children:(0,o.jsx)(I.I,{children:(0,o.jsx)(S.Vk,{})})})}),(0,o.jsx)(y.i0,{children:(0,o.jsx)(y.hl,{side:"bottom",children:V.t("ALERTS.POPOVER_PUSH_NOTIFICATIONS")})})]}),(0,o.jsx)("h4",{className:L+"-frequency-info",children:V.t("ALERTS.ALERTS_RECEIVE_NEWS")+" "+he.toLowerCase()})]}),(0,o.jsxs)("div",{className:"flex flex-col lg:flex-row lg:justify-between lg:items-center gap-2xl md:gap-lg lg:gap-2xl",children:[(0,o.jsxs)("div",{className:"flex flex-col lg:flex-row lg:justify-between lg:items-center gap-xl lg:gap-md",children:[(0,o.jsx)(v.D0,{children:(0,o.jsxs)("div",{className:"flex items-center my-2 justify-between lg:justify-normal gap-md ",children:[(0,o.jsx)(v.dh,{class:"md:mr-4",children:V.t("ALERTS.ALERTS_CHANNEL_MOBILE")}),(0,o.jsx)(g.d,{onCheckedChange:function(){return Se("PUSH")},checked:ne.includes("PUSH"),size:"sm"})]})}),(0,o.jsx)(v.D0,{children:(0,o.jsxs)("div",{className:"flex items-center justify-between lg:justify-normal gap-md",children:[(0,o.jsx)(v.dh,{class:"md:mr-4",children:V.t("ALERTS.ALERTS_CHANNEL_EMAIL")}),(0,o.jsx)(g.d,{onCheckedChange:function(){return Se("EMAIL")},checked:ne.includes("EMAIL"),size:"sm"})]})})]}),(0,o.jsx)(A.$,{className:"block w-full md:hidden",variant:"outlined",onClick:Te,size:"lg",children:V.t("ALERTS.SHOW_RESULTS")}),(0,o.jsx)(A.$,{className:"hidden w-full md:block",variant:"outlined",onClick:Te,size:"md",children:V.t("ALERTS.SHOW_RESULTS")})]})]})}tn.displayName="AlertCard",tn.propTypes={customTitle:u().string,channels:u().array,hashId:u().string.isRequired,id:u().string.isRequired,locationsMultipleDescription:u().string,notification:u().arrayOf(u().shape({channel:u().string,frequency:u().string})),onChangeFrequency:u().func,onDeleteSuccess:u().func,onShowErrorNotification:u().func,onShowNotification:u().func,onUpdateAlertList:u().func,searchParams:u().object.isRequired,sessionId:u().string};var an=t("TKuW"),rn="re-AlertList",sn={EMPTY_LIST:"https://frtassets.fotocasa.es/statics/img/alert_empty_list.svg",APPLE_STORE:"https://frtassets.fotocasa.es/statics/img/favorites_apple_store.svg",GOOGLE_PLAY:"https://frtassets.fotocasa.es/statics/img/favorites_google_play.svg",QR:"https://frtassets.fotocasa.es/statics/img/favorites_list_qr.jpg"};function on(){var e=(0,_.s9)(),n=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:e.t("ALERTS.ALERTS_EMPTY.VIEW_TEXT_1")+"<a href='"+e.t("ALERTS.ALERTS_EMPTY.VIEW_TEXT_1_LINK")+"'>"+e.t("ALERTS.ALERTS_EMPTY.VIEW_TEXT_1_LINK_TEXT")+"</a>."}}),(0,o.jsx)("p",{children:(0,o.jsx)("strong",{children:e.t("ALERTS.ALERTS_EMPTY.VIEW_TEXT_2")})}),(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:e.t("ALERTS.ALERTS_EMPTY.VIEW_TEXT_3")}})]});return(0,o.jsx)(an.A,{imageSrc:sn.EMPTY_LIST,title:e.t("ALERTS.ALERTS_EMPTY.VIEW_TEXT_1"),userSection:"alerts_page",children:n})}function ln(e){var n=e.alerts,t=e.onShow,a=e.sessionId,s=(0,_.s9)(),c=(0,_.Ul)(),u=(0,l.useState)(n),d=u[0],p=u[1];(0,l.useEffect)((function(){p(n)}),[n]);var m=function(e){var n,a=e.savedSearchId,r=(n=a,d.filter((function(e){return e.id!==n})));
1p(r),t({title:s.t("ALERTS.NOTIFICATION_SUCCESS_REMOVED_TITLE"),description:s.t("ALERTS.ALERTS_DELETE_SUCCESS"),type:E.QE.success}),0===r.length&&(c.metric({name:"user_alerts_load",tags:[{key:"error",value:!1}]}),c.metric({name:"user_alerts_empty",tags:[{key:"empty",value:!0},{key:"reason",value:"last_deleted"},{key:"previous_count",value:d.length}]}))},T=function(){t({title:s.t("ALERTS.NOTIFICATION_ERROR_TITLE"),description:s.t("ALERTS.NOTIFICATION_ERROR_DESCRIPTION"),type:E.QE.error})},f=function(e){var n=d.findIndex((function(n){return n.id===e.id}));if(n>-1){var t=(0,r.A)({},d[n],e),a=(0,i.A)(d.slice(0,n)).concat([t],(0,i.A)(d.slice(n+1,d.length)));p(a)}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h1",{className:rn+"-title",children:d.length?s.t("ALERTS.MY_ALERTS"):s.t("ALERTS.ALERTS_EMPTY.TITLE")}),(0,o.jsx)("h2",{className:rn+"-subtitle",children:(null==d?void 0:d.length)?s.t("ALERTS.NAV_MY_ALERTS_TITLE",{smart_count:(null==d?void 0:d.length)||0}):s.t("ALERTS.ALERTS_EMPTY.SUB_TITLE")}),(null==d?void 0:d.length)?(0,o.jsx)(h.Ay,{gutter:2,children:null==d?void 0:d.map((function(e){return(0,o.jsx)(h.sh,{colSpan:{xxs:12,s:6,xl:4},children:(0,o.jsx)(tn,(0,r.A)({onDeleteSuccess:m,onShowErrorNotification:T,onShowNotification:t,onUpdateAlertList:f,sessionId:a},e),e.id)},e.id)}))}):(0,o.jsx)(on,{})]})}on.displayName="AlertListEmpty",ln.displayName="AlertList",ln.propTypes={alerts:u().array.isRequired,onShow:u().func,sessionId:u().string};var cn=t("cZ61"),un=t("A2hN"),dn=t("fXOh");function pn(e){var n=e.seo,t=(0,l.useState)([]),c=t[0],u=t[1],d=(0,l.useState)(!0),h=d[0],E=d[1],T=(0,_.sn)(),S=(0,_.s9)(),A=(0,_.Ul)(),v=(0,m.KA)().location.pathname,I=S.locale,R=(0,_.Jd)().id,y=(0,f.A)().trackPageView,g=(0,_.UK)("cookies","resourcesHost"),L=g[0],x=g[1],N=(0,_.lT)(L.session.cookieKey);(0,l.useEffect)((function(){y({pathname:v,eventVersion:2})}),[]),(0,l.useEffect)((function(){var e=(0,a.A)((function(){var e,n,t;return(0,s.YH)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,T.get("get_saved_alerts_use_case").execute({userId:R,sessionId:N,locale:I})];case 1:return e=a.sent(),n=e.savedSearches,u(n),E(!1),A.metric({name:"user_alerts_load",tags:[{key:"error",value:!1}]}),A.metric({name:"user_alerts_empty",tags:[{key:"empty",value:0===(null==n?void 0:n.length)}].concat((0,i.A)(0===(null==n?void 0:n.length)?[{key:"reason",value:"no_alerts"}]:[]))}),[3,3];case 2:return t=a.sent(),E(!1),A.metric({name:"user_alerts_load",tags:[{key:"error",value:!0}]}),A.metric({name:"user_alerts_empty",tags:[{key:"empty",value:!0},{key:"reason",value:"load_error"}]}),A.metric({name:"user_alerts_load_errors",tags:[{key:"message",value:(null==t?void 0:t.message)||"Unknown error"}]}),A.error({name:"user_alerts_load_error",message:null==t?void 0:t.message,stack:null==t?void 0:t.stack}),[3,3];case 3:return[2]}}
1))}));e()}),[T,R,N]);return(0,o.jsxs)(cn.A,{isLoading:h,bottomImageProps:{titleTranslationKey:"USER.NAV.YOUR_SEARCHES_LITERAL",altTranslationKey:"USER.NAV.YOUR_SEARCHES_LITERAL",src:x+"/img/alerts_footer.svg"},children:[(0,o.jsx)(p.A,(0,r.A)({},n)),(0,o.jsx)("section",{children:!h&&(0,o.jsx)(ln,{alerts:c,onShow:function(e){var n=e.title,t=e.description,a=e.type;(0,un.oR)({title:n,description:t,status:a})},sessionId:N})})]})}pn.propTypes={seo:u().object},pn.displayName="UserAlertsPage";var mn,hn=(mn=(0,a.A)((function(e){var n,t,a,r,i,o,l,c;return(0,s.YH)(this,(function(s){switch(s.label){case 0:n=e.context,t=n.cookies,a=n.domain,r=n.i18n,i=n.user,o=r.culture,s.label=1;case 1:return s.trys.push([1,4,,5]),[4,a.get("get_head_seo_use_case").execute({culture:o,page:pn.displayName})];case 2:return l=s.sent(),c=null==i?void 0:i.id,[4,a.get("get_contact_details_ads_use_case").execute({cookies:t,userId:c})];case 3:return s.sent(),[2,{seo:l}];case 4:return s.sent(),[2,{seo:{}}];case 5:return[2]}}))})),function(e){return mn.apply(this,arguments)});pn.renderLoading=function(){return(0,o.jsx)(cn.A,{isLoading:!0,bottomImageProps:{titleTranslationKey:"USER.NAV.YOUR_SEARCHES_LITERAL",altTranslationKey:"USER.NAV.YOUR_SEARCHES_LITERAL",src:"https://frtassets.fotocasa.es/statics/img/alerts_footer.svg"}})};var En=(0,dn.O)(hn);pn.getInitialProps=(0,d.sT)(En)},fPPL:function(e,n,t){t.d(n,{A:function(){return E},N:function(){return h}});var a=t("jg1C"),r=t("aWzz"),i=t.n(r),s=t("+hKN"),o=t("6gwc"),l=t("M5j3"),c=t("ERkP"),u=t("bgAr"),d=t.n(u),p=function(e){var n=e.searchParams,t=void 0===n?{}:n,a=e.propertySubtypesDictionary,r=e.transactionTypesDictionary,i=e.i18n,s=[],o=t.isNewConstruction,l=t.isNewConstructionPromotions,c=t.propertySubtypeIds,u=void 0===c?[]:c,d=t.propertyTypeId,p=t.transactionTypeId;if(p){var m=Object.keys(r).find((function(e){return r[e]===p})).toLowerCase(),h=p===r.RENT_WITH_BUY_OPTION;s.push(i.t(h?m.toUpperCase():m))}l?s.push(i.t("INSPIRATIONAL.BLOCKS.NEW_CONSTRUCTION.LITERAL")):(d&&s.push(i.t("BUILDING_TYPE_"+d)),o&&s.push(i.t("FILTER_CONSTRUCTION_TYPE_NEW_CONSTRUCTION"))),(null==u?void 0:u.length)&&u.map((function(e){var n=Object.keys(a).find((function(n){return a[n]===e}));s.push(i.t("FILTER_BUILDING_SUBTYPE_"+n))}));var E=s.join(" ");return E.charAt(0).toUpperCase()+E.slice(1).toLowerCase()},m="sharedBy";function h(e){var n=e.searchParams,t=e.locationsMultipleDescription,a=(0,s.sn)(),r=(0,s.s9)(),i=r.culture,o=(0,s.Jd)().username,u=(0,c.useState)(""),h=u[0],E=u[1],T=(null==n?void 0:n.shapeArea)?r.t("SAVE_SEARCH.PERSONALIZED_ZONE"):t,_=(0,s.UK)("host","propertySubtypesDictionary","transactionTypesDictionary"),f=_[0],S=_[1],A=_[2],v=p({searchParams:n,propertySubtypesDictionary:S,transactionTypesDictionary:A,i18n:r})+" en "+T;return(0,c.useEffect)((function(){var e=(0,l.A)({culture:i},n);a.get("generate_url_share_alert_use_case").execute((0,l.A)({},e)).then((function(e){var n=""+f+e;if(o){var t=d().sanitize(o,{ALLOWED_TAGS:[],ALLOWED_ATTR:[]}),a=encodeURIComponent(t);e.includes("?")?E(n+"&"+m+"="+a):E(n+"?"+m+"="+a)}else E(n)}))}),[]),{detailAlertTitle:v,urlShareAlert:h}}function E(e){var n=e.isFromConfirmationModal,t=void 0!==n&&n,r=e.searchParams,i=e.locationsMultipleDescription,l=e.buttonClassName,c=(0,s.s9)(),u=(0,s.O6)().isMobile,d=h({searchParams:r,locationsMultipleDescription:i}),p=d.detailAlertTitle,m=d.urlShareAlert;return(0,a.jsx)("div",{className:"re-AlertShare",children:(0,a.jsx)(o.A,{detailTitle:p,buttonVariant:t?"outlined":"ghost",buttonSize:t?"md":"lg",isShareAlert:!0,label:u?void 0:c.t("ALERTS.SHARE_ALERT"),url:m,className:l})})}E.displayName="AlertShare",E.propTypes={isFromConfirmationModal:i().bool,searchParams:i().object.isRequired,locationsMultipleDescription:i().string,buttonClassName:i().string}},TKuW:function(e,n,t){t.d(n,{A:function(){return E}});var a=t("jg1C"),r=t("aWzz"),i=t.n(r),s=t("uj98"),o=t("/cNK"),l=t("EtD+"),c=t("+hKN"),u=t("ogaj"),d="re-UserEmptySection",p="https://frtassets.fotocasa.es/statics/img",m={APPLE_STORE:{alt:"Logo de Apple Store",appType:"ios",height:"40",href:"https://itunes.apple.com/es/app/fotocasa/id332699841?mt=8",src:p+"/favorites_apple_store.svg",width:"136"}
1,GOOGLE_PLAY:{alt:"Logo de Google Play",appType:"android",height:"40",href:"https://play.google.com/store/apps/details?id=com.anuntis.fotocasa",src:p+"/favorites_google_play.svg",width:"136"},QR:{src:p+"/favorites_list_qr.jpg"}},h={channel:"my_account",pageType:"my_account"};function E(e){var n=e.children,t=e.imageSrc,r=e.userSection,i=e.title,p=(0,c.s9)(),E=(0,c.O6)(),T=E.isAndroid,_=E.isMobile,f=E.isTablet,S=E.isApple,A=(0,o.A)("(min-width: 840px)"),v=S,I=T&&(_||f),R=(0,u.A)(),y=R.TRACKING_EVENTS,g=R.trackEvent,L=y.SEGMENT,x=function(e){var n=e.appType;g({app_downloaded:n,channel:h.channel,eventName:L.DOWNLOAD_APP,eventVersion:2,label:r,page_type:h.pageType})};return(0,a.jsx)(l.Ay,{justifyContent:"center",children:(0,a.jsxs)(l.sh,{xxs:12,s:8,m:6,xl:4,children:[(0,a.jsx)("img",{alt:i,className:d+"-empty-image",src:t,title:i}),n,(0,a.jsxs)("div",{className:d+"-empty-download",children:[(0,a.jsx)("p",{children:p.t("USER.EMPTY.CAMERA")}),(0,a.jsx)("img",{alt:"QR",className:d+"-empty-qr",height:"136",loading:"lazy",src:m.QR.src,title:"QR",width:"136"}),(0,a.jsx)("p",{children:A?p.t("USER.EMPTY.STORE"):p.t("USER.EMPTY.STORE_MOBILE")}),(0,a.jsxs)("div",{className:d+"-empty-apps",children:[!I&&(0,a.jsx)("a",{href:m.APPLE_STORE.href,rel:"noreferrer",target:"_blank",children:(0,a.jsx)(s.Ay,{alt:m.APPLE_STORE.alt,className:d+"-empty-logo",height:m.APPLE_STORE.height,loading:s.F5.lazy,onClick:function(){return x({appType:m.APPLE_STORE.appType})},src:m.APPLE_STORE.src,title:m.APPLE_STORE.alt,width:m.APPLE_STORE.width})}),!v&&(0,a.jsx)("a",{href:m.GOOGLE_PLAY.href,rel:"noreferrer",target:"_blank",children:(0,a.jsx)(s.Ay,{alt:m.GOOGLE_PLAY.alt,className:d+"-empty-logo",height:m.GOOGLE_PLAY.height,loading:s.F5.lazy,onClick:function(){return x({appType:m.GOOGLE_PLAY.appType})},src:m.GOOGLE_PLAY.src,title:m.GOOGLE_PLAY.alt,width:m.GOOGLE_PLAY.width})})]})]})]})})}E.displayName="UserEmptySection",E.propTypes={children:i().node.isRequired,imageSrc:i().string.isRequired,title:i().string.isRequired,userSection:i().string}},Mosr:function(e,n,t){var a=t("DPeK"),r=t("aiFg"),i=t("ERkP"),s=t("ArGU"),o=t("jg1C"),l=["id","title","design"],c=(0,i.memo)((function(e){var n=e.id,t=e.title,i=e.design,c=void 0===i?"filled":i,u=(0,r.A)(e,l),d=function(e){var n=e.id,t=e.svg,a=e.title;return a&&n?t.replace(/<svg([^>]*)>/,'<svg$1 role="img" aria-labelledby="'+n+'"><title id="'+n+'">'+a+"</title>"):t.replace(/<svg([^>]*)>/,'<svg$1 aria-hidden="true" role="presentation">')}({id:n,svg:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M.22 5.78a.75.75 0 0 1 .976-.072l.084.073L12 16.499 22.72 5.781a.75.75 0 0 1 .977-.073l.084.073a.75.75 0 0 1 .073.976l-.073.084L13.06 17.56a1.499 1.499 0 0 1-2.01.1l-.11-.1L.22 6.841a.75.75 0 0 1 0-1.06z"/></svg>',title:t});return(0,o.jsx)(s.Ay,(0,a.A)({design:c},u,{children:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:d}})}))}));c.displayName="MemoArrowDownAtomIcon",n.A=c},yvVk:function(e,n,t){var a=t("DPeK"),r=t("aiFg"),i=t("ERkP"),s=t("ArGU"),o=t("jg1C"),l=["id","title","design"],c=(0,i.memo)((function(e){var n=e.id,t=e.title,i=e.design,c=void 0===i?"filled":i,u=(0,r.A)(e,l),d=function(e){var n=e.id,t=e.svg,a=e.title;return a&&n?t.replace(/<svg([^>]*)>/,'<svg$1 role="img" aria-labelledby="'+n+'"><title id="'+n+'">'+a+"</title>"):t.replace(/<svg([^>]*)>/,'<svg$1 aria-hidden="true" role="presentation">')}({id:n,svg:'<svg viewBox="0 0 24 24"><path d="M19.2 5.4a1 1 0 0 1 1.669 1.095L20.8 6.6l-9 12a1 1 0 0 1-1.417.187l-.09-.08-5.574-5.222a1 1 0 0 1 1.32-1.497l4.853 4.489L19.2 5.4z"/></svg>',title:t});return(0,o.jsx)(s.Ay,(0,a.A)({design:c},u,{children:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:d}})}))}));c.displayName="MemoCheckAtomIcon",n.A=c},s1SG:function(e,n,t){var a=t("DPeK"),r=t("aiFg"),i=t("ERkP"),s=t("ArGU"),o=t("jg1C"),l=["id","title","design"],c=(0,i.memo)((function(e){var n=e.id,t=e.title,i=e.design,c=void 0===i?"filled":i,u=(0,r.A)(e,l),d=function(e){var n=e.id,t=e.svg,a=e.title;return a&&n?t.replace(/<svg([^>]*)>/,'<svg$1 role="img" aria-labelledby="'+n+'"><title id="'+n+'">'+a+"</title>"):t.replace(/<svg([^>]*)>/,'<svg$1 aria-hidden="true" role="presentation">')}({id:n,svg:'<svg viewBox="0 0 24 24">
1<path d="M19.73 2.855a1 1 0 0 1 1.498 1.32l-.083.094L4.27 21.144a1 1 0 0 1-1.498-1.32l.083-.094L19.73 2.855z"/><path d="M2.855 2.855a1 1 0 0 1 1.32-.084l.095.084L21.145 19.73a1 1 0 0 1-1.32 1.497l-.095-.083L2.855 4.269a1 1 0 0 1 0-1.414z"/></svg>',title:t});return(0,o.jsx)(s.Ay,(0,a.A)({design:c},u,{children:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:d}})}))}));c.displayName="MemoCloseAtomIcon",n.A=c},Ywar:function(e,n,t){var a=t("DPeK"),r=t("aiFg"),i=t("ERkP"),s=t("ArGU"),o=t("jg1C"),l=["id","title","design"],c=(0,i.memo)((function(e){var n=e.id,t=e.title,i=e.design,c=void 0===i?"filled":i,u=(0,r.A)(e,l),d=function(e){var n=e.id,t=e.svg,a=e.title;return a&&n?t.replace(/<svg([^>]*)>/,'<svg$1 role="img" aria-labelledby="'+n+'"><title id="'+n+'">'+a+"</title>"):t.replace(/<svg([^>]*)>/,'<svg$1 aria-hidden="true" role="presentation">')}({id:n,svg:'<svg viewBox="0 0 24 24"><path d="M11.25 9.75a1.5 1.5 0 0 1 1.493 1.356l.007.144V15c0 .38.282.693.648.743l.102.007h.75a.75.75 0 0 1 .102 1.493l-.102.007h-.75a2.25 2.25 0 0 1-2.245-2.096L11.25 15v-3.75h-.75a.75.75 0 0 1-.102-1.493l.102-.007h.75zM11.625 6l.123.007a1.125 1.125 0 1 1-.246 0L11.625 6z"/><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm0 1.5c5.799 0 10.5 4.701 10.5 10.5S17.799 22.5 12 22.5 1.5 17.799 1.5 12 6.201 1.5 12 1.5z"/></svg>',title:t});return(0,o.jsx)(s.Ay,(0,a.A)({design:c},u,{children:(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:d}})}))}));c.displayName="MemoInformationCircleAtomIcon",n.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.