PageSourceSearch

https://rublion.ru/_nuxt/BazI9Sis.js

js rublion.ru collected 2026-09-30 17:04:20 UTC 10,170 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`07d2c377-df10-4c82-9a97-b35e473f50a7`,e._sentryDebugIdIdentifier=`sentry-dbid-07d2c377-df10-4c82-9a97-b35e473f50a7`)}catch{}})();import{V as e,p as t}from"./Bs_zNPxE.js";import{F as n,It as r,Lt as i,M as a,Pt as o,Q as s,R as c,_ as l,et as u,f as d,ft as f,g as p,l as m,p as h,u as g,yt as _}from"./tv3I_tEY.js";import{n as v}from"./BXa3Sj-M.js";import{t as y}from"./DEBQCLq4.js";import{n as b}from"#entry";import{t as x}from"./CdpUVxTj.js";var S=v(`productMatrix`,()=>{let{$api:t}=e(),n=f([]);return{productMatrix:n,getProductMatrix:async()=>{try{return n.value=await y(`product-matrix`,async()=>{let{data:e}=await t.lkServer().getProductMatrix();return e.data}),n.value}catch(e){return console.log(e),null}}}}),C={d:[`день`,`дня`,`дней`],w:[`неделя`,`недели`,`недель`],m:[`месяц`,`месяца`,`месяцев`]},w=(e,t)=>{let n=Number(e),r=Number(t);return Number.isFinite(n)&&n>0&&n<=6e4&&Number.isFinite(r)&&r>0&&r!==9&&r!==18},T=e=>Number(e||0).toString().replace(/\B(?=(\d{3})+(?!\d))/g,` `),E=(e,t,n)=>e&&C[t]?n(e,...C[t]):``,D=(e,t)=>e[Object.keys(e).map(Number).sort((e,t)=>e-t).filter(e=>t>=e).pop()]||[],O=e=>{let t=e[0];return typeof t==`string`&&t.match(/_([dwm])$/)?.[1]||``},k=e=>e.map(e=>Number(e.replace(/_[dwm]$/,``))),A=(e,t)=>t<=1?`100%`:`${e/(t-1)*100}%`,j=Array.prototype.slice;function M(e){let t=j.call(arguments,1),n;switch(t.length){case 1:throw Error(`Not enough forms`);case 2:n=e>1?t[1]:t[0];break;default:n=t[N(e)]}return n.replace(/%d/g,e)}function N(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2}function P(){return m(()=>{let e=new Date;return e.setMinutes(e.getMinutes()+15),e.toLocaleTimeString(`ru-RU`,{hour:`2-digit`,minute:`2-digit`})})}var F=(e,t)=>E(e,t,M),I=()=>{let e=x(),t=S(),r=m(()=>t.productMatrix?.summs||[]),i=m(()=>t.productMatrix?.terms||{}),a=f(28e3),o=f(26),c=f(``),l=m(()=>D(i.value,a.value)),u=m(()=>O(l.value)),d=m(()=>k(l.value));s(u,t=>{e.step_1.product_freq=t},{immediate:!0,flush:`sync`});let p=m(()=>r.value.length<=1),h=m(()=>d.value.length<=1),g=m(()=>{let e=r.value.indexOf(Number(a.value));return e===-1?0:e}),_=m(()=>{let e=d.value.indexOf(Number(o.value));return e===-1?0:e}),v=m(()=>F(o.value,u.value)),y=m(()=>F(d.value[0],u.value)),b=m(()=>F(d.value.at(-1),u.value)),C=m(()=>w(a.value,o.value)),E=A;return s(d,e=>{e.length&&!e.includes(Number(o.value))&&(o.value=e.at(-1))}),s([a,o],([t,n])=>{e.step_1.product_summ=t,e.step_1.product_term=n,e.step_1.calc_term_value=n}),n(()=>{e.step_1.product_summ&&(a.value=Number(e.step_1.product_summ));let t=parseInt(e.step_1.calc_term_value,10);t&&(o.value=t),e.step_1.product_summ=a.value,e.step_1.product_term=o.value,e.step_1.calc_term_value=o.value,c.value=P().value}),{summs:r,computedTerms:d,amountFixed:p,termFixed:h,currentValue:a,currentTermValue:o,timeAfter15Min:c,amountIndex:g,termIndex:_,postfixCurrent:v,postfixLeft:y,postfixRight:b,isFree:C,formatSum:T,fillPercent:E,onAmountInput:e=>{let t=r.value[Number(e.target.value)];t!==void 0&&(a.value=t)},onTermInput:e=>{let t=d.value[Number(e.target.value)];t!==void 0&&(o.value=t)}}},L=async()=>{let e=S(),t=()=>Array.isArray(e.productMatrix?.summs)&&e.productMatrix.summs.length>0,r;return n(()=>{if(!t()){e.getProductMatrix();return}r=window.setTimeout(()=>e.getProductMatrix(),5e3)}),a(()=>window.clearTimeout(r)),e},R={class:`hm-calc-control mt-3 rounded-2xl border border-br_line p-4 sm:mt-9 sm:px-5 sm:py-2.5`},z={class:`flex items-baseline justify-between gap-3`},B={class:`text-2xl font-semibold tracking-[-0.04em] text-[#1f1f1f] sm:text-3xl`},V=[`max`,`value`,`disabled`,`aria-valuetext`],H={key:0,class:`mt-2 flex justify-between text-[10px] text-[#938488] sm:mt-3 sm:text-xs`},U={class:`hm-calc-control mt-2 rounded-2xl border border-br_line p-4 sm:mt-3 sm:px-5 sm:py-2.5`},W={class:`flex items-baseline justify-between gap-3`},G={class:`text-xl font-semibold tracking-[-0.03em] text-[#1f1f1f] sm:text-2xl`},K=[`max`,`value`,`disabled`,`aria-valuetext`],q={key:0,class:`mt-2 flex justify-between text-[10px] text-[#938488] sm:mt-3 sm:text-xs`},J=b({__name:`HomeLoanCalc`,props:{flat:Boolean,application:Boolean,showApplyButton:{type:Boolean,default:!0}},async setup(n){let a,s,{$metrika:f,$telemetryLog:m}=e(),v=t();[a,s]=u(()=>L()),await a,s();let{summs:y,computedTerms:b,amountFixed:x,termFixed:S,currentValue:C,currentTermValue:w,amountIndex:T,termIndex:E,postfixCurrent:D,postfixLeft:O,postfixRight:k,formatSum:A,fillPercent:j,onAmountInput:M,onTermInput:N}=I(),P=()=>{m({event_name:`btn_get_money_click`}
1),f.reachGoal(`Get_money_button`),v.push(`/vzyat-v-dolg/`)};return(e,t)=>(c(),h(`div`,{class:o([`hm-calc--hero w-full rounded-[26px] bg-white p-6 shadow-[0_30px_80px_rgba(0,0,0,0.25)] sm:rounded-[30px] sm:p-7 xl:p-10`,{"hm-calc--flat":n.flat,"hm-calc--application":n.application}])},[t[7]||(t[7]=g(`div`,{class:`hm-calc-header flex flex-wrap items-start justify-between gap-x-3 gap-y-2`},[g(`div`,null,[g(`p`,{class:`text-sm font-semibold text-[#6f5d61]`},`Настройте займ`),g(`h2`,{class:`mt-1 whitespace-nowrap font-golos text-lg font-semibold tracking-[-0.04em] text-[#1f1f1f] sm:text-2xl`},` Выберите сумму `)]),g(`span`,{class:`shrink-0 rounded-full bg-br_mint px-2 py-1 text-[9px] font-semibold text-[#ba122b] sm:px-3 sm:py-1.5 sm:text-xs`},` Первый займ — 0% `)],-1)),g(`div`,R,[g(`div`,z,[t[2]||(t[2]=g(`label`,{class:`text-[15px] font-semibold text-[#4d373b] lg:text-base`,for:`hm-amount`},` Сумма `,-1)),g(`strong`,B,i(_(A)(_(C)))+` ₽ `,1)]),g(`div`,{class:`hm-range-wrap mt-4 sm:mt-6`,style:r({"--hm-fill":_(x)?`100%`:_(j)(_(T),_(y).length)})},[g(`input`,{id:`hm-amount`,class:`hm-range`,type:`range`,min:`0`,max:_(x)?1:Math.max(_(y).length-1,0),step:`1`,value:_(x)?1:_(T),disabled:_(x),"aria-valuetext":`${_(A)(_(C))} рублей`,"aria-label":`Сумма займа`,onInput:t[0]||(t[0]=(...e)=>_(M)&&_(M)(...e))},null,40,V),t[3]||(t[3]=g(`span`,{class:`hm-range-thumb`,"aria-hidden":`true`},null,-1))],4),_(y).length?(c(),h(`div`,H,[g(`span`,null,i(_(A)(_(y)[0]))+` ₽`,1),g(`span`,null,i(_(A)(_(y)[_(y).length-1]))+` ₽`,1)])):d(``,!0)]),g(`div`,U,[g(`div`,W,[t[4]||(t[4]=g(`label`,{class:`text-[15px] font-semibold text-[#4d373b] lg:text-base`,for:`hm-term`},` Срок `,-1)),g(`strong`,G,i(_(w))+` `+i(_(D)),1)]),g(`div`,{class:`hm-range-wrap mt-4 sm:mt-6`,style:r({"--hm-fill":new Set(_(b)).size<2?`100%`:_(j)(_(E),_(b).length)})},[g(`input`,{id:`hm-term`,class:`hm-range`,type:`range`,min:`0`,max:new Set(_(b)).size<2?1:Math.max(_(b).length-1,0),step:`1`,value:new Set(_(b)).size<2?1:_(E),disabled:new Set(_(b)).size<2,"aria-valuetext":`${_(w)} ${_(D)}`,"aria-label":`Срок займа`,onInput:t[1]||(t[1]=(...e)=>_(N)&&_(N)(...e))},null,40,K),t[5]||(t[5]=g(`span`,{class:`hm-range-thumb`,"aria-hidden":`true`},null,-1))],4),_(b).length?(c(),h(`div`,q,[g(`span`,null,i(_(b)[0])+` `+i(_(O)),1),g(`span`,null,i(_(b)[_(b).length-1])+` `+i(_(k)),1)])):d(``,!0)]),t[8]||(t[8]=p(`<div class="hm-calc-notes my-3 grid grid-cols-1 gap-2 sm:my-6 sm:grid-cols-2" data-v-353cc730><div class="hm-calc-note flex min-h-[58px] items-center gap-2.5 rounded-2xl bg-[#fff7f6] px-3 py-1.5" data-v-353cc730><span class="hm-calc-note-icon" data-v-353cc730><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-353cc730><line x1="19" y1="5" x2="5" y2="19" data-v-353cc730></line><circle cx="6.5" cy="6.5" r="2.5" data-v-353cc730></circle><circle cx="17.5" cy="17.5" r="2.5" data-v-353cc730></circle></svg></span><div class="min-w-0" data-v-353cc730><span class="block text-[10px] leading-tight text-[#7d6a6f]" data-v-353cc730>Первый займ</span><p class="whitespace-nowrap text-[12px] font-semibold leading-tight text-[#ba122b]" data-v-353cc730> 0 ₽ процентов </p></div></div><div class="hm-calc-note flex min-h-[58px] items-center gap-2.5 rounded-2xl bg-[#fff7f6] px-3 py-1.5" data-v-353cc730><span class="hm-calc-note-icon" data-v-353cc730><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-353cc730><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z" data-v-353cc730></path><path d="M14 2v5a1 1 0 0 0 1 1h5" data-v-353cc730></path><path d="M8 13h8" data-v-353cc730></path><path d="M8 17h5" data-v-353cc730></path></svg></span><div class="min-w-0" data-v-353cc730><span class="block text-[10px] leading-tight text-[#7d6a6f]" data-v-353cc730>Прозрачные условия</span>
1<p class="whitespace-nowrap text-[12px] font-semibold leading-tight text-[#1f1f1f]" data-v-353cc730> Всё видно до подписания </p></div></div></div>`,1)),n.showApplyButton?(c(),h(`button`,{key:0,type:`button`,"data-test":`btn-get-money-main`,class:`hm-calc-button hm-btn-amber h-12 w-full text-sm sm:h-14 sm:text-base`,onClick:P},[l(` Получить `+i(_(A)(_(C)))+` ₽ `,1),t[6]||(t[6]=g(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[g(`path`,{d:`M5 12h14`}),g(`path`,{d:`m12 5 7 7-7 7`})],-1))])):d(``,!0),t[9]||(t[9]=g(`p`,{class:`hm-calc-disclaimer mt-3 flex items-center justify-center gap-1.5 text-center text-[10px] leading-relaxed text-[#938488] sm:mt-4 sm:text-xs`},[g(`svg`,{class:`shrink-0`,width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[g(`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`}),g(`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`})]),l(` Ваши данные защищены. Никаких скрытых платежей. `)],-1))],2))}},[[`__scopeId`,`data-v-353cc730`]]);export{P as n,J as t};

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.