PageSourceSearch

https://www.gazprombank.ru/_next/c2e2cf5515281430d1da46b535fb5d23/…/static/chunks/19463.34638432bf8b4fb7.js

js gazprombank.ru collected 2026-10-01 10:27:34 UTC 12,330 bytes, 1 lines download raw bytes

1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5c595455-b605-436c-96fe-595aae8a8b17",t._sentryDebugIdIdentifier="sentry-dbid-5c595455-b605-436c-96fe-595aae8a8b17")}()}catch(t){}!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:gpb":!0})}(),("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"edfe07338426f04fb27c8d9998ddcc7423a52ad2"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19463],{13365:t=>{t.exports={tooltip:"ToggleButton_tooltip__ToJa_",shimmer:"ToggleButton_shimmer__9SvVl",timerRotateRight:"ToggleButton_timerRotateRight__UZDZp",timerRotateLeft:"ToggleButton_timerRotateLeft__XWkcE"}},15270:(t,e,l)=>{"use strict";l.d(e,{A:()=>c});var o=l(37876),a=l(11317),s=l(40802),i=l(19232),r=l(51124),n=l.n(r);let c=t=>{let{content:e}=t,l=(0,a.A)().startsWith("mobile");return(0,o.jsx)("div",{className:n().root,children:e&&(0,o.jsx)(s.A,{content:e,offset:[0,12],maxWidth:l?264:350,children:(0,o.jsx)("div",{children:(0,o.jsx)(i.A,{icon:{code:"status-info"}})})})})}},19463:(t,e,l)=>{"use strict";l.r(e),l.d(e,{default:()=>w});var o=l(46045),a=l(16690),s=l(37876),i=l(89482),r=l(61609);let n=(t,e)=>{var l,o;return t.replace("%count%","".concat(null!=(o=null==e||null==(l=e.options)?void 0:l.length)?o:0)).replace("%number%","".concat(e.selectNumber))};function c(t){return{setCardBalance(e){let l=this.getCashbackData(e),s=this.getCashback((0,a._)((0,o._)({},t),{cardBalance:e,cashbackData:l}));return(0,a._)((0,o._)({},t),{cardBalance:e,cashbackData:l,cashback:s})},setGeneralAmount(e){let l=this.getCashback((0,a._)((0,o._)({},t),{generalAmount:e}));return(0,a._)((0,o._)({},t),{generalAmount:e,cashback:l})},setSubscriptionToggle(e){let l=e?"subscriptions":"default",s=this.getCashback((0,a._)((0,o._)({},t),{subscriptionToggle:e})),i=t.variants[l],r=n(t.subscriptionLabel,i);return(0,a._)((0,o._)({},t),{subscriptionToggle:e,variant:l,cashback:s,variantData:i,subscriptionTitle:r})},getCashback(t){let{cashbackData:e,generalAmount:l,subscriptionToggle:o}=t,{rate:a=0,cashbackMaxSub:s=0,cashbackMaxDefault:i=0}=e,r=o?s:i,n=Math.floor(a*l/100);return n>=r?+r:n},getCashbackData(e){var l,o;return null!=(o=null==(l=t.cashbackList)?void 0:l.find(t=>{let{sumMin:l,sumMax:o}=t;return e>=l&&e<=o}))?o:{}}}}var _=l(85757),u=l(29079),d=l(51227),h=l(27442),b=l(97821),m=l(48469),g=l(76214),p=l(15270),f=l(29659),v=l(13294),x=l(19507),C=l(7910),k=l(49651),R=l(46228),A=l(19232),j=l(51194),T=l.n(j);let L=["балл","балла","баллов"],y=t=>{let{cashback:e,maxCashback:l,options:o,subscriptionTitle:a,description:r}=t,n=(0,i.useMemo)(()=>[{label:"Ваш кэшбэк за месяц",value:e,main:!0,suffix:" ".concat((0,x.A)(e,L)),getValueFormat:C.A},{label:"Максимальный кэшбэк",value:l,suffix:" ".concat((0,x.A)(e,L)),getValueFormat:C.A}],[e,l]);return(0,s.jsxs)("div",{className:T().root,children:[(0,s.jsx)(R.A,{results:n}),(0,s.jsx)("span",{className:T().root__divider}),(0,s.jsxs)("div",{className:T().root__subscriptions,children:[(0,s.jsx)(k.A,{variant:"h5",forceTag:"div",children:a}),(0,s.jsx)("div",{className:T().root__list,children:o.map(t=>(0,s.jsxs)("div",{className:T().root__card,children:[(0,s.jsx)("div",{className:T().root__card_icon,style:{"--nx-cashback-level-calc-result-background":t.color},children:(0,s.jsx)(A.A,{icon:t.icon})}),(0,s.jsx)(k.A,{variant:"p1",children:t.label})]},t.id))})]}),(0,s.jsx)(v.A,{classes:{root:T().root__description},description:r})]})};var N=l(31876),D=l.n(N);let w=t=>{var e,l;let{block:x}=t,{button:C,calculator:k,disclaimer:R,description:A,gtmProps:j,isWrapper:T,isVBlockPadding:L,title:N}=x,[w,B]=(0,r.A)(c,(t=>{var e,l,o,a,s,i,r,c,_,u,d,h;let{data:b,fields:m,options:g}=t,p=null!=(i=m.find(t=>"category"===t.code))?i:{},f=b.reduce((t,e)=>{let{cashbackMaxSub:l,cashbackMaxDefault:o}=e;return+o>t.default&&(t.default=+o),+l>t.subscription&&(t.subscription=+l),t},{default:0,subscription:0}),v=!!(null==(e=g[0])?void 0:e.isChecked),x=v?"subscriptions":"default",C={default:{options:null!=(r=null==p||null==(l=p.default)?void 0:l.options)?r:[],selectNumber:null!=(c=null==p||null==(o=p.selectNumber)?void 0:o.default)?c:0,maxCashback:f.default},subscriptions:{options:null!=(_=null==p||null==(a=p.subscription)?void 0:a.options)?_:[],selectNumber:null!=(u=null==p||null==(s=p.selectNumber)?void 0:s.subscription)?u:0,maxCashback:f.subscription}},k=C[x],R=n(null!=(d=null==p?void 0:p.label)?d:"",k);return{cardBalance:0,generalAmount:0,subscriptionToggle:v,cashbackList:b||[],cashbackData:{},cashback:0,variant:x,variants:C,variantData:k,subscriptionLabel:null!=(h=null==p?void 0:p.label)?h:"",subscriptionTitle:R}})(k)),E=(0,i.useMemo)(()=>(0,a._)((0,o._)({},C),{eventAction:(null==C?void 0:C.eventAction)||(null==j?void 0:j.eventAction)||""}),[C,j]);return(0,s.jsxs)(m.A,{isWrapper:T,isVBlockPadding:L,children:[(0,s.jsxs)(b.A,{title:N,isWithBackgroun
1d:!0,children:[(0,s.jsx)(h.A,{title:"Параметры расчета",children:null==k||null==(e=k.fields)?void 0:e.map(t=>{switch(t.code){case"card_balance":return(0,s.jsx)(u.Q,(0,a._)((0,o._)({},(0,_.A)(t)),{rangeValue:w.cardBalance,onChange:B.setCardBalance,isSetDefaultValue:!1}),t.id);case"general_amount":return(0,s.jsx)(u.Q,(0,a._)((0,o._)({},(0,_.A)(t)),{rangeValue:w.generalAmount,onChange:B.setGeneralAmount,isSetDefaultValue:!1}),t.id);default:return null}})}),(null==(l=k.options)?void 0:l.length)&&(0,s.jsx)(h.A,{title:"Дополнительные опции",children:k.options.map(t=>(0,s.jsxs)("div",{className:D().root__discount,children:[(0,s.jsxs)("div",{className:D().root__discount_row,children:[(0,s.jsx)("div",{className:D().root__discount_col,children:(0,s.jsx)(d.A,{checked:w.subscriptionToggle,disabled:t.isDisabled,handleToggle:()=>B.setSubscriptionToggle(!w.subscriptionToggle),"aria-label":t.label})}),t.label&&(0,s.jsx)(g.A,{handleToggle:()=>B.setSubscriptionToggle(!w.subscriptionToggle),label:t.label,disabled:t.isDisabled,informer:t.informer})]}),t.description&&(0,s.jsx)(p.A,{content:t.description})]},t.id))})]}),(0,s.jsxs)(b.A,{children:[(0,s.jsx)(y,{cashback:w.cashback,maxCashback:w.variantData.maxCashback,options:w.variantData.options,subscriptionTitle:w.subscriptionTitle,description:A}),(0,s.jsx)(f.A,{button:E}),(0,s.jsx)(v.A,{description:R})]})]})}},19507:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});let o=(t,e)=>{if(2===e.length){let l=e=>String(t).split("").at(e);return e[+(("1"!==l(-1)||"1"===l(-2))&&"01"!==String(t).slice(-2))]}return e[t%100>4&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]}},29079:(t,e,l)=>{"use strict";l.d(e,{Q:()=>n,A:()=>i});var o=l(46045),a=l(37876),s=l(45313);let i=t=>(0,a.jsx)(s.A,(0,o._)({},t));var r=l(28129);let n=t=>(0,a.jsx)(r.A,(0,o._)({},t))},31876:t=>{t.exports={root__discount:"CashbackLevelCalc_root__discount___eHR4",root__discount_row:"CashbackLevelCalc_root__discount_row__Y9NkP",root__discount_col:"CashbackLevelCalc_root__discount_col__Kgs9h",shimmer:"CashbackLevelCalc_shimmer__Ejk2S",timerRotateRight:"CashbackLevelCalc_timerRotateRight__eVCyk",timerRotateLeft:"CashbackLevelCalc_timerRotateLeft__WrMYX"}},32824:t=>{t.exports={root:"CalculatorInformer_root__hdH4e",shimmer:"CalculatorInformer_shimmer__U4lJl",timerRotateRight:"CalculatorInformer_timerRotateRight__vkti4",timerRotateLeft:"CalculatorInformer_timerRotateLeft__1lG5M"}},51124:t=>{t.exports={root:"CalculatorDiscountsTooltip_root__PKeoG",shimmer:"CalculatorDiscountsTooltip_shimmer__0O7dI",timerRotateRight:"CalculatorDiscountsTooltip_timerRotateRight__WTySO",timerRotateLeft:"CalculatorDiscountsTooltip_timerRotateLeft__aBbdA"}},51194:t=>{t.exports={root__content:"CashbackLevelCalcResult_root__content__aauEK",root__info:"CashbackLevelCalcResult_root__info__hg8zb",root__divider:"CashbackLevelCalcResult_root__divider__GH6eN",root__subscriptions:"CashbackLevelCalcResult_root__subscriptions__jJa0D",root__list:"CashbackLevelCalcResult_root__list__q_8Im",root__card:"CashbackLevelCalcResult_root__card__Jj1Ge",root__card_icon:"CashbackLevelCalcResult_root__card_icon__STQ6y",root__description:"CashbackLevelCalcResult_root__description__WFxKC",shimmer:"CashbackLevelCalcResult_shimmer__uqtiR",timerRotateRight:"CashbackLevelCalcResult_timerRotateRight__bQ1gr",timerRotateLeft:"CashbackLevelCalcResult_timerRotateLeft__jdkjF"}},51227:(t,e,l)=>{"use strict";l.d(e,{d:()=>v,A:()=>b});var o=l(46045),a=l(68946),s=l(37876),i=l(58103),r=l.n(i),n=l(40802),c=l(91521),_=l(19232),u=l(87760),d=l(13365),h=l.n(d);let b=t=>{var{block:e,checked:l=!1,classes:i={},disabled:d=!1,handleToggle:b,label:m,name:g,tooltip:p,rightAddon:f}=t,v=(0,a._)(t,["block","checked","classes","disabled","handleToggle","label","name","tooltip","rightAddon"]);return(0,s.jsx)(u.A,(0,o._)({isBlock:e,isChecked:l,classes:{root:r()(h().root,i.root),wrapper:i.wrapper},isDisabled:d,onToggle:b,label:m?(0,s.jsx)(c.A,{html:m}):"",name:g,addon:p?(0,s.jsx)(n.A,{content:p,offset:[0,12],children:(0,s.jsx)("div",{className:h().tooltip,children:(0,s.jsx)(_.A,{icon:{code:"status-info"}})})}):null,labelAddon:f,"data-test-id":"toggle-button","data-test-state-toggle":l},v))};var m=l(67704),g=l(40097),p=l(78656),f=l.n(p);let v=t=>{var{valueTag:e,description:l}=t,i=(0,a._)(t,["valueTag","description"]);return(0,s.jsxs)("div",{className:f().root,children:[(0,s.jsx)(b,(0,o._)({},i)),l&&(0,s.jsx)("span",{className:f().root__description,children:(0,s.jsx)(g.A,{html:l})}),e&&(0,s.jsx)(m.A,{size:"sm",tag:{name:e},className:f().root__tag})]})}},76214:(t,e,l)=>{"use strict";l.d(e,{A:()=>u});var o=l(37876),a=l(89482),s=l(58103),i=l.n(s),r=l(81485),n=l(91521),c=l(82198),_=l.n(c);let u=t=>{let{handleToggle:e,label:l,disabled:s=!1,informer:c}=t,u=(0,a.useCallback)(t=>{t.target.href||e()},[e]);return(0,o.jsxs)("span",{className:i()(_().root,{[_().disabled]:s}
1),children:[(0,o.jsx)("span",{"data-test-id":"calculator-discounts-label-cursor",className:_().root__cursor,onClick:u,children:(0,o.jsx)(n.A,{html:l})}),(0,o.jsx)(r.A,{informer:c})]})}},78656:t=>{t.exports={root:"ToggleButtonWithTag_root__L3527",root__tag:"ToggleButtonWithTag_root__tag__gTl3o",root__description:"ToggleButtonWithTag_root__description__NYDcB",shimmer:"ToggleButtonWithTag_shimmer__znEqy",timerRotateRight:"ToggleButtonWithTag_timerRotateRight__pbh7X",timerRotateLeft:"ToggleButtonWithTag_timerRotateLeft__dIfL7"}},81485:(t,e,l)=>{"use strict";l.d(e,{A:()=>c});var o=l(37876),a=l(58103),s=l.n(a),i=l(91521),r=l(32824),n=l.n(r);let c=t=>{let{informer:e,classes:l={}}=t;return e?(0,o.jsx)("div",{className:s()(n().root,l.root),children:(0,o.jsx)(i.A,{html:e})}):null}},82198:t=>{t.exports={root:"CalculatorDiscountsLabel_root__J_ERv",disabled:"CalculatorDiscountsLabel_disabled__3cNrF",root__cursor:"CalculatorDiscountsLabel_root__cursor__AVsAy",shimmer:"CalculatorDiscountsLabel_shimmer__O1Cmp",timerRotateRight:"CalculatorDiscountsLabel_timerRotateRight__zFTgd",timerRotateLeft:"CalculatorDiscountsLabel_timerRotateLeft__HKnbP"}},85757:(t,e,l)=>{"use strict";l.d(e,{A:()=>i});var o=l(46045),a=l(16690),s=l(68946);let i=t=>{var e,l,i,r,n,c,_,u,d,h,b,m,g,p,f,{config:v}=t,x=(0,s._)(t,["config"]);return(0,a._)((0,o._)({},x),{max:{value:null!=(b=null==v||null==(e=v.max)?void 0:e.value)?b:0,prefix:(null==x||null==(l=x.max)?void 0:l.prefix)||(null==v||null==(i=v.max)?void 0:i.prefix)||"",postfix:(null==x||null==(r=x.max)?void 0:r.postfix)||(null==v||null==(n=v.max)?void 0:n.postfix)||""},min:{value:null!=(m=null==v||null==(c=v.min)?void 0:c.value)?m:0,prefix:(null==x||null==(_=x.min)?void 0:_.prefix)||(null==v||null==(u=v.min)?void 0:u.prefix)||"",postfix:(null==x||null==(d=x.min)?void 0:d.postfix)||(null==v||null==(h=v.min)?void 0:h.postfix)||""},postfix:null!=(g=null==v?void 0:v.postfix)?g:"",step:null!=(p=null==v?void 0:v.step)?p:1,value:null!=(f=null==v?void 0:v.value)?f:0})}}}]);

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.