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]="e74cd5f6-3ba6-4b3c-81e8-d07d52932c54",t._sentryDebugIdIdentifier="sentry-dbid-e74cd5f6-3ba6-4b3c-81e8-d07d52932c54")}()}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:"6f4f1cf6ea1ccca0f0421e130d7ade767db4cf5d"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82921],{1697:(t,e,l)=>{"use strict";l.d(e,{A:()=>i});var o=l(28486),r=l(41888);let i=(t,e)=>!t||!e||Array.isArray(t)?Array.isArray(e)?e[0]:e||"":Array.isArray(e)?(0,r.A)((0,o.A)(t),e):e},4399:(t,e,l)=>{"use strict";l.d(e,{A:()=>a});var o=l(48011),r=l(79638),i=l(96600),n=l(60517);let a=(t,e)=>{let l=(0,o.wA)();(0,i.A)(()=>{l((0,n.YD)({code:t}))},()=>{l((0,n.xt)())}),(0,r.A)(()=>{l((0,n.YD)({values:e}))},500,[e])}},13365:t=>{t.exports={tooltip:"ToggleButton_tooltip__ToJa_",shimmer:"ToggleButton_shimmer__9SvVl",timerRotateRight:"ToggleButton_timerRotateRight__UZDZp",timerRotateLeft:"ToggleButton_timerRotateLeft__XWkcE"}},14942:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});let o=t=>t.toString().replace(/\./g,",")},15185:t=>{t.exports={root__rate:"CalculatorDiscounts_root__rate__EY_6M",root__row_wrapper:"CalculatorDiscounts_root__row_wrapper__XKRsu",root__row:"CalculatorDiscounts_root__row__vsOmz",root__col:"CalculatorDiscounts_root__col__w77Ft",root__link:"CalculatorDiscounts_root__link__TuP9N",shimmer:"CalculatorDiscounts_shimmer__FH9eO",timerRotateRight:"CalculatorDiscounts_timerRotateRight__85fNM",timerRotateLeft:"CalculatorDiscounts_timerRotateLeft__yqNxx"}},15270:(t,e,l)=>{"use strict";l.d(e,{A:()=>u});var o=l(37876),r=l(11317),i=l(40802),n=l(19232),a=l(51124),s=l.n(a);let u=t=>{let{content:e}=t,l=(0,r.A)().startsWith("mobile");return(0,o.jsx)("div",{className:s().root,children:e&&(0,o.jsx)(i.A,{content:e,offset:[0,12],maxWidth:l?264:350,children:(0,o.jsx)("div",{children:(0,o.jsx)(n.A,{icon:{code:"status-info"}})})})})}},28486:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});let o=t=>"number"==typeof t?t:parseInt(t.replace(/[^0-9]/g,""),10)},29079:(t,e,l)=>{"use strict";l.d(e,{Q:()=>s,A:()=>n});var o=l(46045),r=l(37876),i=l(45313);let n=t=>(0,r.jsx)(i.A,(0,o._)({},t));var a=l(28129);let s=t=>(0,r.jsx)(a.A,(0,o._)({},t))},32824:t=>{t.exports={root:"CalculatorInformer_root__hdH4e",shimmer:"CalculatorInformer_shimmer__U4lJl",timerRotateRight:"CalculatorInformer_timerRotateRight__vkti4",timerRotateLeft:"CalculatorInformer_timerRotateLeft__1lG5M"}},34804:(t,e,l)=>{"use strict";l.d(e,{A:()=>h});var o=l(46045),r=l(37876),i=l(89482),n=l(16690);let a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2?arguments[2]:void 0;return t.map(t=>{var r;let i=t.entityId,a=e.find(t=>t.toString()===(null==i?void 0:i.toString())),s=(null==l||null==(r=l.entityId)?void 0:r.toString())===(null==i?void 0:i.toString());return(0,o._)((0,n._)((0,o._)({},t),{isChecked:s?!(null==l?void 0:l.isChecked):t.isChecked}),!a||(null==l?void 0:l.isChecked)?{}:{isChecked:!1})})},s=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reverse().reduce((t,l)=>{let{entityId:o,isChecked:r}=l;if(r){var i,n;let l=String(null!=o?o:""),r=null!=(n=null==e||null==(i=e[l])?void 0:i.conflictIds)?n:[];return[...t.filter(t=>t!==l),...r.map(String)]}return t},[])};var u=l(67704),d=l(51227),c=l(40802),_=l(27442),f=l(76214),g=l(15270),m=l(15185),v=l.n(m);let h=(0,i.memo)(t=>{let{title:e="ÐополниÑелÑнÑе опÑии",discounts:l,discountData:n=null,setDiscounts:m,setLocalStorage:h=()=>{},isRateShow:p=!1}=t,x=(0,i.useCallback)(t=>()=>{var e,o;if(!n)return;let r=null==l?void 0:l.find(e=>String(null==e?void 0:e.entityId)===String(t)),i=a(l,null!=(o=null==n||null==(e=n[t])?void 0:e.conflictIds)?o:[],r);m(i,t),h(i)},[l,n,m,h]);(0,i.useEffect)(()=>
1{if(!n)return;let t=s(null==l?void 0:l.map(t=>{let e=(null==t?void 0:t.entityId)||"";return(0,o._)({},t,(null==n?void 0:n[e])?{isHidden:n[e].isHidden,isDisabled:n[e].isDisabled}:{isHidden:!1})}),n),e=a(l,t);m(e),h(e)},[n]);let b=(0,i.useMemo)(()=>null==l?void 0:l.some(t=>t.description),[l]);return(null==l?void 0:l.length)&&l.filter(t=>!t.isHidden).length?(0,r.jsx)(_.A,{title:e,isContentGap:!1,children:null==l?void 0:l.map(t=>{let{entityId:e="",description:l,isChecked:o,isDisabled:i,isHidden:a,label:s,informer:_}=t,m=null==n?void 0:n[e],h=(null==m?void 0:m.action)==="minus"?"-":"+";if(a)return null;let A=p&&(null==m?void 0:m.value)?(0,r.jsx)("div",{className:v().root__rate,children:(0,r.jsx)(u.A,{size:"sm",tag:{name:"".concat(h).concat(null==m?void 0:m.value,"%"),colorSchema:(null==m?void 0:m.increaseTheme)||"green"}},m.entityId)}):null;return(0,r.jsxs)("div",{className:v().root__row_wrapper,children:[(0,r.jsxs)("div",{"data-test-id":"calculator-discounts-row",className:v().root__row,children:[(0,r.jsx)("div",{className:v().root__col,children:(0,r.jsx)(d.A,{checked:o,handleToggle:x(e),disabled:i,"aria-label":s})}),s&&(0,r.jsx)(f.A,{handleToggle:x(e),label:s,disabled:i,informer:_})]}),A?(t=>(null==m?void 0:m.hint)?(0,r.jsx)(c.A,{content:m.hint,children:t}):t)(A):null,b&&(0,r.jsx)(g.A,{content:l})]},e)})}):null})},36459:(t,e,l)=>{"use strict";l.d(e,{KZ:()=>u,On:()=>s,p2:()=>d});var o=l(46045),r=l(16690),i=l(68946),n=l(1697),a=l(7910);function s(t,e,l){var n,a,s,u,d,c,_,f,g,m,v,h,p,x,b,{config:A}=t,y=(0,i._)(t,["config"]);return(0,r._)((0,o._)({},y),{max:{value:null!=(v=e||(null==A||null==(n=A.max)?void 0:n.value))?v:0,prefix:(null==y||null==(a=y.max)?void 0:a.prefix)||(null==A||null==(s=A.max)?void 0:s.prefix),postfix:(null==y||null==(u=y.max)?void 0:u.postfix)||(null==A||null==(d=A.max)?void 0:d.postfix)||""},min:{value:null!=(h=l||(null==A||null==(c=A.min)?void 0:c.value))?h:0,prefix:(null==y||null==(_=y.min)?void 0:_.prefix)||(null==A||null==(f=A.min)?void 0:f.prefix),postfix:(null==y||null==(g=y.min)?void 0:g.postfix)||(null==A||null==(m=A.min)?void 0:m.postfix)||""},postfix:null!=(p=null==A?void 0:A.postfix)?p:"",step:null!=(x=null==A?void 0:A.step)?x:1,value:null!=(b=null==A?void 0:A.value)?b:0})}function u(t,e,l){let o=t.postfix||l,r=e.postfix||l;return["".concat(t.prefix," ").concat((0,a.A)(t.value)," ").concat((0,n.A)(t.value,o)),"".concat(e.prefix," ").concat((0,a.A)(e.value)," ").concat((0,n.A)(e.value,r))]}function d(t,e,l){return!l||l<t?t:l>e?e:l}},39167:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});let o=(t,e)=>{if(!t||!t.length||!e)return{};let l=t.find(t=>t.termMin<=e&&t.termMax>=e);return null!=l?l:{}}},41888:(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]]}},45776:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});let o=(t,e,l)=>{if(!t||!t.length)return[0,0];let o=t[0][e],r=t[0][l];return t.forEach(t=>{o>t[e]&&(o=t[e]),r<t[l]&&(r=t[l])}),[o,r]}},51124:t=>{t.exports={root:"CalculatorDiscountsTooltip_root__PKeoG",shimmer:"CalculatorDiscountsTooltip_shimmer__0O7dI",timerRotateRight:"CalculatorDiscountsTooltip_timerRotateRight__WTySO",timerRotateLeft:"CalculatorDiscountsTooltip_timerRotateLeft__aBbdA"}},51227:(t,e,l)=>{"use strict";l.d(e,{d:()=>x,A:()=>g});var o=l(46045),r=l(68946),i=l(37876),n=l(58103),a=l.n(n),s=l(40802),u=l(91521),d=l(19232),c=l(87760),_=l(13365),f=l.n(_);let g=t=>{var{block:e,checked:l=!1,classes:n={},disabled:_=!1,handleToggle:g,label:m,name:v,tooltip:h,rightAddon:p}=t,x=(0,r._)(t,["block","checked","classes","disabled","handleToggle","label","name","tooltip","rightAddon"]);return(0,i.jsx)(c.A,(0,o._)({isBlock:e,isChecked:l,classes:{root:a()(f().root,n.root),wrapper:n.wrapper},isDisabled:_,onToggle:g,label:m?(0,i.jsx)(u.A,{html:m}):"",name:v,addon:h?(0,i.jsx)(s.A,{content:h,offset:[0,12],children:(0,i.jsx)("div",{className:f().tooltip,children:(0,i.jsx)(d.A,{icon:{code:"status-info"}})})}):null,labelAddon:p,"data-test-id":"toggle-button","data-test-state-toggle":l},x))};var m=l(67704),v=l(40097),h=l(78656),p=l.n(h);let x=t=>{var{valueTag:e,description:l}=t,n=(0,r._)(t,["valueTag","description"]);return(0,i.jsxs)("div",{className:p().root,children:[(0,i.jsx)(g,(0,o._)({},n)),l&&(0,i.jsx)("span",{className:p().root__description,children:(0,i.jsx)(v.A,{html:l})}),e&&(0,i.jsx)(m.A,{size:"sm",tag:{name:e},className:p().root__tag})]})}},53778:(t,e,l)=>{"use strict";l.d(e,{A:()=>
1o});let o=(t,e,l,o)=>t&&t.length?t.filter(t=>t[l]<=e&&t[o]>=e):[]},75695:(t,e,l)=>{"use strict";l.d(e,{A:()=>o});let o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t;return e.forEach(t=>{var e,l,r,i;switch(null==t?void 0:t.action){case"-":case"minus":o-=parseFloat(String(null!=(e=null==t?void 0:t.value)?e:0));break;case"+":case"plus":o+=parseFloat(String(null!=(l=null==t?void 0:t.value)?l:0));break;case"/":o/=parseFloat(String(null!=(r=null==t?void 0:t.value)?r:1));break;case"*":o*=parseFloat(String(null!=(i=null==t?void 0:t.value)?i:1))}}),+o.toFixed(l)}},76214:(t,e,l)=>{"use strict";l.d(e,{A:()=>c});var o=l(37876),r=l(89482),i=l(58103),n=l.n(i),a=l(81485),s=l(91521),u=l(82198),d=l.n(u);let c=t=>{let{handleToggle:e,label:l,disabled:i=!1,informer:u}=t,c=(0,r.useCallback)(t=>{t.target.href||e()},[e]);return(0,o.jsxs)("span",{className:n()(d().root,{[d().disabled]:i}),children:[(0,o.jsx)("span",{"data-test-id":"calculator-discounts-label-cursor",className:d().root__cursor,onClick:c,children:(0,o.jsx)(s.A,{html:l})}),(0,o.jsx)(a.A,{informer:u})]})}},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:()=>u});var o=l(37876),r=l(58103),i=l.n(r),n=l(91521),a=l(32824),s=l.n(a);let u=t=>{let{informer:e,classes:l={}}=t;return e?(0,o.jsx)("div",{className:i()(s().root,l.root),children:(0,o.jsx)(n.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"}}}]);
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.