PageSourceSearch

https://www.kelisto.es/assets-pf/_next/static/chunks/pages/hipotecas-variables-f5b961cf3659eb4c.js

js kelisto.es collected 2026-10-03 19:06:07 UTC 12,142 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[428],{46287:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hipotecas-variables",function(){return o(43401)}])},93721:function(e,t,o){"use strict";o.d(t,{Z:function(){return _}});var a,r,i=o(52322),s=o(37493),n=o(33244),l=o(67193),m=o(5632),c=o(99967),p=o(84127),g=o(71977),u=o(41581),d=o(2784),v=o(21146),f=o(15),b=o(24087);(a=r||(r={})).PROPERTY_VALUE="propertyValue",a.SAVING_AMOUNT="savingAmount",a.TERM_CONTAINS="termContains",a.PRODUCT_NAME="productName",a.PROPERTY_TYPE="propertyType",a.BANKS="banks",a.SORT_BY="sortBy",a.PAGE="page",a.COMPARABLE="comparable";let h={mortgages:{activeTab:0},[n._H.FIXED]:{activeTab:1},[n._H.VARIABLE]:{activeTab:2},[n._H.MIXED]:{activeTab:3}},T=[(0,s.uJ)("hipotecas"),(0,s.uJ)("hipotecas-fijas"),(0,s.uJ)("hipotecas-variables"),(0,s.uJ)("hipotecas-mixtas")],x=e=>({propertyValue:"property_value",savingAmount:"saving_amount",termContains:"term_contains",productName:"product_name",propertyType:"property_type",banks:"banks"})[e],y=e=>{let{propertyValue:t,savingAmount:o,termContains:a,productName:r,propertyType:i,banks:s}=e||{};return{parsedPropertyValue:t?Number(t):null,parsedSavingAmount:o?Number(o):null,parsedTermContains:a?Number(a):null,parsedProductName:r?r.split(","):null,parsedPropertyType:i,parsedBanks:s?s.split(","):null}},A=e=>{let{item:t,initialFilters:o}=e,{parsedPropertyValue:a,parsedSavingAmount:r,parsedTermContains:i,parsedProductName:s,parsedPropertyType:l,parsedBanks:m}=y(o),c=[];return!t&&s&&(c=s),t===n._H.FIXED&&c.push(n._H.FIXED),t===n._H.VARIABLE&&c.push(n._H.VARIABLE),t===n._H.MIXED&&c.push(n._H.MIXED),{propertyValue:a||187500,savingAmount:r||37500,termContains:i||25,productName:c,propertyType:l||"primary_residence",banks:m||[],sortBy:"+apr,-rating",page:1,comparable:!0}},k=e=>{let{formMethods:t,item:o,providers:a}=e,{t:r}=l.i18n,{getValues:i,setValue:s,watch:n}=t,m=n("propertyValue"),c=n("savingAmount"),p=e=>e/m,g=e=>e?Number(e.split("€")[0].replaceAll(".","")):void 0,d=[{type:"input",name:"propertyValue",blockTitle:r("mortgages:comparator.titles.property-value"),min:0,max:2e6,step:1e4,suffix:"€",onBlur:e=>{let t=g(e);(t<i("savingAmount")||!t)&&s("savingAmount",0),(t<0||!t)&&s("propertyValue",0),t>2e6&&s("propertyValue",2e6)},onChangeSlider:e=>{e<i("savingAmount")&&s("savingAmount",e)}},{type:"input",name:"savingAmount",blockTitle:r("mortgages:comparator.titles.savings-provided"),min:0,max:m?Math.max(m,0):0,step:1e4,suffix:"€ (".concat((e=>{if(0===m||isNaN(m))return"0%";let t=100*p(e);return t>100?"100%":(0,u.r)({value:t})})(c),")"),tooltip:r("mortgages:comparator.tooltips.savings-tooltip"),helpMessage:r("mortgages:comparator.savings-reminder"),onBlur:e=>{let t=g(e);t<0&&s("savingAmount",0),t>Math.max(m,0)&&s("savingAmount",Math.max(m,0))},onClickError:()=>{s("savingAmount",.2*m)}},{type:"input",name:"termContains",blockTitle:r("mortgages:comparator.titles.term"),min:5,max:40,step:1,suffix:" ".concat(r("common:years")),onBlur:e=>{let t=g(e);t<5&&s("termContains",5),t>40&&s("termContains",40)}}
1,{type:"checkbox",name:"productName",blockTitle:r("mortgages:comparator.titles.mortgage-type"),checkOptions:[{label:r("mortgages:comparator.mortgage-types-options.fixed"),value:"fixed_mortgage",id:"fixed-mortgage"},{label:r("mortgages:comparator.mortgage-types-options.variable"),value:"variable_mortgage",id:"variable-mortgage"},{label:r("mortgages:comparator.mortgage-types-options.mixed"),value:"mixed_mortgage",id:"mixed-mortgage"}],direction:"row"},{type:"select",name:"propertyType",blockTitle:r("mortgages:comparator.titles.house-type"),selectOptions:[{label:r("mortgages:comparator.house-types-options.primary-residence"),value:"primary_residence"},{label:r("mortgages:comparator.house-types-options.second-home"),value:"second_home"}]},{type:"checkbox",name:"banks",blockTitle:r("mortgages:comparator.titles.provider-banks"),checkOptions:a.map(e=>{let{name:t,slug:o}=e;return{label:t,value:o,id:"".concat(o,"-provider")}}),direction:"column"}];return o?d.filter(e=>"productName"!==e.name):d};function _(e){let{type:t,initialFilters:o,initialOfferCards:a,banksProviders:r,paginationData:y,trackingData:_}=e,{t:C}=(0,l.$G)(["common","mortgages"]),E=(0,m.useRouter)(),{handleChangeQueryFilter:L}=(0,c.n9)(),{activeTab:P}=h[t],R="mortgages"!==t?t:"",{methods:I,defaultData:N,filterFields:M}=(0,c.S5)({item:R,initialFilters:o,externalData:{providers:r},getDefaultFiltersData:A,getFiltersFields:k}),[w,O]=(0,d.useState)(N),B=e=>{_&&(0,v.L9)({eventName:v.DI,trackingData:_}),E.push(e)},D=e=>{let{name:t,value:o}=e;(0,v.L9)({eventName:v.dQ,trackingData:{..._,filter:x(t),value:o}})},S=[{title:C("mortgages:title-link"),icon:g.PJ.MORTGAGES},{title:C("mortgages:fixed-title"),icon:g.PJ.MORTGAGES_FIXED},{title:C("mortgages:variable-title"),icon:g.PJ.MORTGAGES_VARIABLE},{title:C("mortgages:mixed-title"),icon:g.PJ.MORTGAGES_MIXED}];return(0,i.jsx)(c.s2,{methods:I,filterFields:M,defaultData:A({item:R}),comparatorOffersUseCase:e=>(0,n.XH)({filters:e}),filterText:C("common:filter"),modalCtaText:C("common:apply-configuration"),showMoreText:C("common:show-more"),resetFiltersText:C("mortgages:comparator.reset-filters-text"),noResultsTitle:C("common:errors.comparator-no-resuls-title"),noResultsExtraInfo:{extraTitle:C("mortgages:comparator.extra-info-no-results.title"),extraSubtitle:C("mortgages:comparator.extra-info-no-results.subtitle"),extraCtaText:C("common:analyze-my-case"),extraCtaUrl:(0,s.We)("proceso-hipoteca-ayuda?section=".concat(_.section))},noResultsCtaText:C("common:errors.comparator-no-results-cta-text"),tabConfig:S,activeTab:P,tabContentProps:{leftText:C("mortgages:comparator.tab-heading"),value:(0,u.d)({amount:w.propertyValue-w.savingAmount,decimalDigits:0}),modalLinkText:C("common:see-calculation"),showMoreText:C("common:show-more"),orderByLabel:C("common:sort-by"),orderByAlone:C("common:sort-by-alone"),orderText:C("common:apr"),offersOrderTitle:C("common:offers-order"),orderOptions:[{label:C("common:apr"),value:"+apr,-rating"}],optionsDescriptions:[C("mortgages:comparator.tooltips.order-by-apr-tooltip")],modalTitle:C("mortgages:example-modal.loan-breakdown"),modalContent:(0,i.jsx)(b.Z,{housePrice:w.propertyValue,savingAmount:w.savingAmount,purchaseCostConfig:[{label:C("mortgages:example-modal.notary"),value:737},{label:C("mortgages:example-modal.registration"),value:525},{label:C("mortgages:example-modal.agency"),value:300}],legalTexts:[C("mortgages:example-modal.legal-text-remember"),C("mortgages:example-modal.legal-text-mortgage-expenses"),C("mortgages:example-modal.legal-text-annotation")]}),trackingData:_},tabsColor:g.wL.VERTICAL_PF,onChangeTab:e=>B(T[e]),presenterParams:{productName:"mortgages",pageSection:v.DX,homePrice:15e4,withLabelItem:"mortgages"===t,trackingData:_},initialOfferCards:a,paginationData:y,presenterFactory:f.Z,OfferCardComponent:p.Z,onChangeFilter:e=>{let{name:t,value:o,isMultiple:a}=e;D({name:t,value:o}),L({name:x(t),value:o,isMultiple:a})},onAfertSubmitCallback:O})}},43401:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return T}});var a=o(52322),r=o(37493),i=o(33244),s=o(67193),n=o(5632),l=o(99967),m=o(75544),c=o(71977),p=o(2784),g=o(21146),u=o(94201),d=o(90663),v=o(15),f=o(36211),b=o(24849),h=o(93721),T=!0;t.default=e=>{let{pageContent:t,companyRating:o,topOffers:T,offersList:x,viewport:y,propertyValue:A,savingAmount:k,termContains:_,propertyType:C,banks:E}=e,{t:L}=(0,s.$G)(["common","mortgages"]),P=(0,n.useRouter)(),R=(0,p.useMemo)(()=>({section:g.DX,product:g.b$,subproduct:g.GR,item:g.QI}),[]);(0,p.useEffect)(()=>{(0,g.L9)({eventName:g.lo,trackingData:R})},[R]);let{seoMetadataContent:I,heroContent:N,logosContent:M,tocContent:w,otherProductsContent:O,newsAreaContent:B}=new d.Z({productName:i.gz.MORTGAGES,productTitle:L("mortgages:offer-detail.mortgages-comparator"),productTitleShort:L("mortgages:title-link"),productUrl:"hipotecas",itemTitle:L("mortgages:variable-title"),pageContent:r.OX.fromPrimitive(t),trackingData:R}).getContent(),D=(null==I?void 0:I.seoMetadataTitle)?"".concat(null==I?void 0:I.seoMetadataTitle," (").concat((0,l.AB)(),") | Kelisto"):L("mortgages:variable-mortgages-item.metadata.title",{currentMonthYear:(0,l.AB)()}),S=(null==I?void 0:I.seoMetadataDescription)?I.seoMetadataDescription:L("mortgages:variable-mortgages-item.metadata.description"),G=N.title?"".concat(N.title," (").concat((0,l.AB)(),")"):"",J=i.cJ.fromPrimitive(x),V=(0,v.Z)({productName:"mortgages",trackingData:R,offers:J.offers,pageSection:g.DX,homePrice:15e4}),F=(0,f.Z)({productName:"mortgages",name:L("mortgages:variable-mortgages-item.hero-title-fallback"),description:L("mortgages:variable-mortgages-item.hero-subtitle-fallback"),image:"http://kelisto.es/static-assets-pf/images/mortgages/hero/comparator-mortgages.jpg",ratingValue:o.average,reviewCount:o.count,offers:x.offers}),X=(null==M?void 0:M.title)||"",j=(null==M?void 0:M.logosGroup)||[],H=O.title,Z=O.links,U=L("mortgages:product-links.title-product-items"),Y=[{iconColor:c.wL.VERTICAL_PF,icon:c.PJ.MORTGAGES_FIXED,title:L("mortgages:fixed-title"),href:(0,r.uJ)("hipotecas-fijas"),onClick:e=>{e.preventDefault(),(0,g.L9)({eventName:g.eR,trackingData:R}),P.push((0,r.uJ)("hipotecas-fijas"))}},{iconColor:c.wL.VERTICAL_PF,icon:c.PJ.MORTGAGES_MIXED,title:L("mortgages:mixed-mortgages-item.title"),href:(0,r.uJ)("hipotecas-mixtas"),onClick:e=>{e.preventDefault(),(0,g.L9)({eventName:g.eR,trackingData:R}),P.push((0,r.uJ)("hipotecas-mixtas"))}},{iconColor:c.wL.VERTICAL_PF,icon:c.PJ.MORTGAGES_SUBROGATION,title:L("mortgages:subrogation-title"),href:(0,r.uJ)("subrogacion-hipotecas"),onClick:e=>{e.preventDefault(),(0,g.L9)({eventName:g.eR,trackingData:R}),window.location.href=(0,r.uJ)("subrogacion-hipotecas")}},{iconColor:c.wL.VERTICAL_PF,icon:c.PJ.MORTGAGES_SUBROGATION,title:L("mortgages:simulator-title"),href:(0,r.uJ)("simulador-de-hipotecas"),onClick:e=>{e.preventDefault(),(0,g.L9)({eventName:g.eR,trackingData:R}),P.push((0,r.uJ)("simulador-de-hipotecas"))}}],z=(null==w?void 0:w.title)||"",W=(null==w?void 0:w.content)||[],$=(null==B?void 0:B.newsAreaTitle)||L("common:news-list.title-fallback",{subproduct:"hipotecas"}),K=null==B?void 0:B.firstBlock,Q=null==B?void 0:B.secondBlock,q=null==B?void 0:B.thirdBlock,ee=(null==K?void 0:K.links)||[],et=(null==K?void 0:K.title)||"",eo=(null==Q?void 0:Q.links)||[],ea=(null==Q?void 0:Q.title)||"",er=(null==q?void 0:q.links)||[],ei=(null==q?void 0:q.title)||"",es=T.map(e=>i.n5.fromPrimitive({offer:e})),en=(0,b.Z)({productName:"mortgages",homePrice:15e4,withLabelItem:!1,withFulfillingLabel:!0,trackingData:R,pageSection:g.uF,offers:es}),el=(0,a.jsx)(h.Z,{type:i._H.VARIABLE,initialFilters:{propertyValue:A,savingAmount:k,termContains:_,propertyType:C,banks:E},initialOfferCards:V,banksProviders:x.providers,paginationData:x.pagination,trackingData:R});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.Z,{companyRating:o,stickyLink:(0,r.We)("proceso-hipoteca-ayuda?section=".concat(R.section)),trackingData:R,titleMetadata:D,descriptionMetadata:S,canonicalUrl:(0,r.uJ)("hipotecas-variables"),heroTitle:G,heroButtonText:L("common:analyze-my-case"),heroButtonLink:(0,r.We)("proceso-hipoteca-ayuda?section=".concat(R.section)),heroDesktopImgSrc:"/static-assets-pf/images/mortgages/hero/comparator-mortgages.jpg",heroMobileImgSrc:"/static-assets-pf/images/mortgages/hero/comparator-mortgages-mobile.jpg",heroAltImg:L("mortgages:hero-title-fallback"),heroIcon:c.PJ.MORTGAGES_VARIABLE,breadcrumbs:N.breadcrumbs,topOffersList:en,comparatorSection:el,otherItemsTitle:U,productItems:Y,providersTitle:X,providersItems:j,providersButtonText:L("common:providers-button-text"),providersButtonHref:(0,r.uJ)("finanzas/bancos"),legalText:L("mortgages:legal-text"),tocTitle:z,tocItems:W,otherProductsTitle:H,otherProducts:Z,newsListTitle:$,newsListMostPopularTitle:ea,newsListMostPopularLinks:eo,newsListBestBuysTitle:et,newsListBestBuysLinks:ee,newsListGenericTitle:ei,newsListGenericLinks:er,viewport:y}),F&&(0,a.jsx)(m.Z,{...F})]})}}},function(e){e.O(0,[1915,965,9126,1893,4120,6600,7530,15,7835,4087,4849,2888,9774,179],function(){return e(e.s=46287)}),_N_E=e.O()}]);

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.