1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6858],{92278:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/information/price-comparsion",function(){return t(9444)}])},9444:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return G},default:function(){return O}});var r=t(97458),o=t(52983),i=t(61148),a=t(3913),l=t(52447),s=t(3696),c=t(65411),d=t(92516),u=t(96003),m=t(95036),p=t(38381),h=t(98914),x=t(40269),f=t(12717),Z=t(86952),g=t(13563),v=t(58764),j=t(30053),b=t(1614),y=t(30205),P=t(15421),_=t(34256),k=t(46929),w=t(29004),S=t(29721),W=t(68455),C=t(94608),I=t(87599),M=t(90182),T=t(84303),N=t(76594),D=t(10067),V=t(75742),R=t(37725),H=t(73474),E=t.n(H),Y=t(92494),F=t(51063),L=t(13984),B=t(33146),G=!0;function O(e){let{pricesComparsion:n,serverQuery:t,selectedCurrency:I}=e,{t:M}=(0,Y.$G)(),[T,N]=(0,o.useState)(n),{langCode:D}=(0,L.v9)(x.kQ),V=o.useRef(I),R=o.useRef(t);o.useEffect(()=>{N(n)},[n]);let H=o.useCallback(async(e,n,t,r)=>{var o;let i={...R.current,goodsMotif:e,currency:t};"changeGoods"!==r&&n.length>0?i.weight=n.join(","):delete i.weight,V.current=t,R.current=i,(0,B.Sn)(i);let a=await (0,h.XI)("api/Info/Footer/MatchingPrices/:domainId/:language/:currency","GET",{path:{domainId:null!==(o=i.domainId)&&void 0!==o?o:d.f4.toString(),language:D,currency:t},query:i});N(a)},[D]);return(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(F.PB,{title:M("texts.Page_PriceComparsion_Title"),description:M("texts.Page_PriceComparsion_Description"),noindex:!0,nofollow:!0}),(0,r.jsx)(m.Z,{activeMenu:"informations"}),(0,r.jsxs)("main",{children:[(0,r.jsx)(c.ZP,{title:M("texts.Page_PriceComparsion_Title"),description:M("texts.Page_PriceComparsion_Description")}),(0,r.jsxs)(Z.Z,{sx:{pb:{xs:8,md:16}},children:[(0,r.jsxs)(g.Z,{direction:{md:"row"},justifyContent:"space-between",mt:8,children:[(0,r.jsxs)(X,{children:[(0,r.jsx)(v.Z,{variant:"h5",fontWeight:"bold",children:M("texts.Section_PriceComparsion_Title")}),(0,r.jsx)(A,{...T,selectedCurrency:I,onChange:H})]}),(0,r.jsx)(s.Z,{children:(0,r.jsxs)(a.Z,{sx:{width:"100%"},children:[(0,r.jsx)(v.Z,{variant:"body2",fontWeight:"bold",children:M("texts.Section_PriceComparsion_PricingPeriod")}),E()(T.DateFrom).format("DD. MM. YYYY"),"\xa0",(0,r.jsx)(l.Z,{}),"\xa0",E()(T.DateTo).format("DD. MM. YYYY")]})})]}),T.tables.map((e,n)=>{let t=Object.keys(e.items[0]);return(0,r.jsxs)(j.Z,{component:"section",sx:{mt:8},children:[(0,r.jsx)(v.Z,{variant:"h5",fontWeight:"bold",dangerouslySetInnerHTML:{__html:e.NameTable}}),(0,r.jsxs)(j.Z,{sx:{mt:2},children:[(0,r.jsxs)(b.Z,{sx:{minWidth:650,width:"100%",display:{xs:"none",md:"table"}},children:[(0,r.jsx)(y.Z,{children:(0,r.jsx)(P.Z,{children:t.map((e,n)=>{let t=M("texts.Table_Header_".concat(e));return"Yield"===e&&(t+=" ".concat(V.current)),(0,o.createElement)(_.Z,{...0===n?{width:140}:{},align:n>0?"right":"left",key:n},t)})})}),(0,r.jsx)(k.Z,{children:e.items.map((n,a)=>(0,r.jsx)(P.Z,{children:t.map((t,a)=>{let{decimalsAmount:l,symbol:s}=(0,B.el)(t,{decimals:e.Decimals_Amount,percentageDecimal:e.Decimals_Percentage,percentageHeaders:["YearYield"],symbol:e.Currency});return(0,o.createElement)(_.Z,{...0===a?{component:"th",scope:"row"}:{},align:a>0?"right":"left",key:a},(0,r.jsx)(g.Z,{children:(0,r.jsx)(i.Z,{value:n[t],decimals:"Weight"===t?2:l,symbol:s})}))})},a))})]}),(0,r.jsx)(j.Z,{sx:{display:{md:"none"},["& .".concat(w.Z.root)]:{mt:5,"&:first-of-type":{mt:0}}},children:e.items.map((n,t)=>{let{Weight:a,...l}=n,s=Object.entries(l);return(0,r.jsxs)(b.Z,{children:[(0,r.jsx)(y.Z,{children:(0,r.jsxs)(P.Z,{children:[(0,r.jsx)(_.Z,{children:M("texts.Table_Header_Weight")}),(0,r.jsx)(_.Z,{align:"right",children:(0,r.jsx)(i.Z,{value:a,decimals:2,symbol:"g",typographyProps:{fontWeight:"medium"}})})]})}),(0,r.jsx)(k.Z,{sx:{["& .".concat(S.Z.root,":nth-child(odd)")]:{["& .".concat(W.Z.root)]:{padding:"16px 16px 2px 16px"}},["& .".concat(S.Z.root,":nth-child(even)")]:{["& .".concat(W.Z.root)]:{padding:"2px 16px 16px 16px"}}},children:s.map((n,t)=>{let[a,l]=n,{decimalsAmount:s,symbol:c}=(0,B.el)(a,{decimals:e.Decimals_Amount,percentageDecimal:e.Decimals_Percentage,percentageHeaders:["YearYield"],symbol:e.Currency}),d=M("texts.Table_Header_".concat(a));return"Yield"===a&&(d+=" ".concat(V.current)),(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)(P.Z,{children:(0,r.jsx)(_.Z,{component:"th",scope:"row",colSpan:2,sx:{border:"none"},children:d})}),(0,r.jsx)(P.Z,{children:(0,r.jsx)(_.Z,{align:"right",colSpan:2,children:(0,r.jsx)(g.Z,{children:(0,r.jsx)(i.Z,{value:l,decimals:s,symbol:c})})})})]},t)})})]},t)})})]}),(0,r.jsx)(v.Z,{color:"text.secondary",mt:2,children:M("texts.Table_WithIVat")})]},n)}),(0,r.jsx)(X,{children:(0,r.jsx)(C.Z,{shadowDepth:0,sx:{background:e=>e.vars.palette.background.common,p:2,mt:8},children:(0,r.jsxs)(g.Z,{direction:"row",spacing:2,children:[(0,r.jsx)(f.Z,{color:"secondary"}),(0,r.jsx)(v.Z,{dangerouslySetInnerHTML:{__html:M("texts.Section_PriceComparsion_Text")}})]})})})]})]}),(0,r.jsx)(u.default,{})]})}let z={SurfaceProps:{style:{maxHeight:224}}},A=e=>{var n,t,i,a;let{Currencies:l,goods:s,weight:c,selectedCurrency:d,onChange:u}=e,{t:m}=(0,Y.$G)(),[p,h]=(0,o.useState)(null==s?void 0:s.findIndex(e=>e.Selected)),[x,f]=(0,o.useState)(null!==(a=null==c?void 0:c.filter(e=>e.Selected).map(e=>e.Value))&&void 0!==a?a:[null!==(i=null===(n=c.find(e=>e.Selected))||void 0===n?void 0:n.Value)&&void 0!==i?i:null==c?void 0:null===(t=c[0])||void 0===t?void 0:t.Value]),[Z,v]=(0,o.useState)(d),j=(0,o.useRef)(p);return(0,o.useEffect)(()=>
1{if(p!==j.current){var e,n,t;f([null!==(t=null==c?void 0:null===(e=c.find(e=>e.Selected))||void 0===e?void 0:e.Value)&&void 0!==t?t:null==c?void 0:null===(n=c[0])||void 0===n?void 0:n.Value]),j.current=p}},[c]),(0,o.useEffect)(()=>{var e,n,t,r;f(null!==(r=null==c?void 0:c.filter(e=>e.Selected).map(e=>e.Value))&&void 0!==r?r:[null!==(t=null===(e=c.find(e=>e.Selected))||void 0===e?void 0:e.Value)&&void 0!==t?t:null==c?void 0:null===(n=c[0])||void 0===n?void 0:n.Value]),h(null==s?void 0:s.findIndex(e=>e.Selected))},[s,c]),(0,r.jsxs)(g.Z,{direction:{sm:"row"},spacing:3,mt:3,children:[(0,r.jsxs)(I.Z,{sx:{mt:0,maxWidth:310},fullWidth:!0,children:[(0,r.jsx)(M.Z,{children:m("texts.Goods")}),(0,r.jsx)(T.Z,{value:p,onChange:e=>{let n=e.target.value;h(n);let t=s[n];u(t.GoodsMotif,x,Z,"changeGoods")},MenuProps:z,renderValue:e=>(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:s[e].Name}}),children:s.map((e,n)=>(0,r.jsx)(N.Z,{value:n,dangerouslySetInnerHTML:{__html:e.Name}},e.Name))})]}),(0,r.jsxs)(I.Z,{sx:{maxWidth:275},fullWidth:!0,children:[(0,r.jsx)(M.Z,{children:m("texts.Weight")}),(0,r.jsx)(T.Z,{value:x,multiple:!0,onChange:e=>{let n=e.target.value;f(n),u(s[p].GoodsMotif,n,Z,"changeWeight")},MenuProps:z,renderValue:e=>e.map(e=>{var n;return null===(n=c.find(n=>n.Value===e))||void 0===n?void 0:n.DisplayValue}).join(", "),children:c.map(e=>(0,r.jsxs)(N.Z,{value:e.Value,disabled:1===x.length&&x.includes(e.Value),children:[(0,r.jsx)(D.Z,{checked:x.indexOf(e.Value)>-1}),(0,r.jsx)(V.Z,{primary:e.DisplayValue})]},e.Value))})]}),(0,r.jsxs)(I.Z,{sx:{maxWidth:80},fullWidth:!0,children:[(0,r.jsx)(M.Z,{children:m("texts.Currency")}),(0,r.jsx)(T.Z,{value:Z,onChange:e=>{let n=e.target.value;v(n),u(s[p].GoodsMotif,x,n,"changeCurrency")},MenuProps:z,children:l.map(e=>(0,r.jsx)(N.Z,{value:e,children:e},e))})]})]})},X=(0,R.ZP)(j.Z)(e=>{let{theme:n}=e;return{maxWidth:700,width:"100%",[n.breakpoints.down("md")]:{maxWidth:"100%"}}})},61148:function(e,n,t){"use strict";var r=t(97458),o=t(58764),i=t(33146);n.Z=e=>{let{value:n,decimals:t,symbol:a,type:l="primary",children:s,typographyProps:c}=e,d=n,u="number"==typeof d||!isNaN(Number(d)),m={...c};return u&&(d=(0,i.uf)(d,{decimals:t}).formattedValue),"secondary"===l&&(m={component:"p",variant:"p2",color:"text.secondary"}),(0,r.jsxs)(o.Z,{...m,children:[(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:d}}),u&&(0,r.jsx)(o.Z,{component:"span",variant:"p2",color:"text.secondary",dangerouslySetInnerHTML:{__html:" ".concat(a)}}),s]})}},3696:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(97458),o=t(52983),i=t(41350),a=t(37725),l=t(79272),s=t(11567);function c(e){return(0,s.Z)("FloatingBox",e)}(0,t(39815).Z)("FloatingBox",["root","wrapper","sticky"]);var d=t(87608),u=t.n(d);let m=e=>{let{classes:n}=e;return(0,i.Z)({root:["root"],wrapper:["wrapper"],sticky:["sticky"]},c,n)},p=(0,a.ZP)("div",{name:"FloatingBox",slot:"Root",overridesResolver:(e,n)=>n.root})(e=>{let{theme:n}=e;return{[n.breakpoints.up("md")]:{position:"relative",flex:"0 0 23.5rem",marginLeft:"2.5rem"},[n.breakpoints.down("md")]:{marginTop:32}}}),h=(0,a.ZP)("div",{name:"FloatingBox",slot:"Wrapper",overridesResolver:(e,n)=>n.wrapper})(e=>{let{theme:n}=e;return{[n.breakpoints.up("md")]:{position:"absolute",top:0,left:0,bottom:0,right:0}}}),x=(0,a.ZP)("div",{name:"FloatingBox",slot:"Sticky",overridesResolver:(e,n)=>n.sticky})(e=>{let{theme:n}=e;return{[n.breakpoints.up("md")]:{position:"sticky"},[n.breakpoints.down("md")]:{display:"flex",justifyContent:"space-between"}}}),f=o.forwardRef(function(e,n){let t=(0,l.Z)({props:e,name:"FloatingBox"}),{children:o,sticky:i=70,className:a,...s}=t,c={...t},d=m(c);return(0,r.jsx)(p,{ref:n,classes:u()(d.root,a),...s,children:(0,r.jsx)(h,{className:d.wrapper,children:(0,r.jsx)(x,{className:d.sticky,style:{top:i},children:o})})})});var Z=f},29478:function(e,n,t){"use strict";var r=t(97458),o=t(52983),i=t(41350),a=t(37725),l=t(86952),s=t(58764),c=t(79272),d=t(56761),u=t(98583),m=t(87608),p=t.n(m),h=t(73534),x=t(31274),f=t(92516),Z=t(33146);let g=e=>{let{classes:n,image:t}=e;return(0,i.Z)({root:["root","container"],description:["description"],infoSection:["infoSection"],infoWrapper:["infoWrapper",!!t&&"image"],imageWrapper:["imageWrapper"],label:["label"]},u.l,n)},v=(0,a.ZP)(l.Z,{name:"PageInfo",slot:"Root",overridesResolver:(e,n)=>n.root})(e=>{let{theme:n}=e;return{marginTop:48,[n.breakpoints.down("md")]:{marginTop:8}}}),j=(0,a.ZP)("section",{name:"PageInfo",slot:"InfoSection",overridesResolver:(e,n)=>n.infoSection})(e=>{let{theme:n}=e;return{display:"flex",justifyContent:"space-between",[n.breakpoints.down("md")]:{flexDirection:"column",textAlign:"center"}}}),b=(0,a.ZP)(h.E.div,{name:"PageInfo",slot:"InfoWrapper",overridesResolver:(e,n)=>{let{ownerState:t}=e;return[n.infoWrapper,t.image&&n.image]}})(e=>{let{theme:n}=e;return{[n.breakpoints.up("md")]:{maxWidth:800,["&.".concat(u.Z.image)]:{maxWidth:600}}}}),y=(0,a.ZP)(s.Z,{name:"PageInfo",slot:"Description",overridesResolver:(e,n)=>n.description})(e=>{let{theme:n}=e;return{marginTop:24}}),P=(0,a.ZP)(s.Z,{name:"PageInfo",slot:"Description",overridesResolver:(e,n)=>n.description})({marginBottom:12}),_=(0,a.ZP)(h.E.div,{name:"PageInfo",slot:"ImageWrapper",overridesResolver:(e,n)=>n.imageWrapper})(e=>{let{theme:n}=e;return{position:"relative",width:"100%",maxWidth:450,height:"auto",marginLeft:32,[n.breakpoints.down("md")]:{marginTop:32,marginLeft:0,height:340,maxWidth:"100%"},img:{objectFit:"contain",[n.breakpoints.up("md")]:{objectPosition:"top right"},[n.breakpoints.down("md")]:{objectPosition:"center"}}}}),k=o.forwardRef(function(e,n){let t=(0,c.Z)({props:e,name:"PageInfo"}),{children:i,className:a,title:l,description:u,label:m,image:h,slotProps:k,...w}=t,S=o.useRef(null),W=(0,d.Z)(n,S),C=(0,x.Y)(S,{once:!0,margin:"-15%"}),I=g(t);
1return(0,r.jsx)(v,{component:"section",className:p()(I.root,a),ref:W,...w,children:(0,r.jsxs)(j,{className:I.infoSection,children:[(0,r.jsxs)(b,{ownerState:t,className:I.infoWrapper,variants:f.em.item,initial:"hidden",animate:C||!(0,Z.M2)()?"visible":"hidden",transition:{duration:f.em.baseDuration},children:[m&&(0,r.jsx)(P,{variant:"label",className:I.label,children:m}),(0,r.jsx)(s.Z,{variant:"h2",fontWeight:"bold",component:"h1",children:l}),(0,r.jsx)(y,{variant:"body2",className:I.description,dangerouslySetInnerHTML:{__html:u||""},...null==k?void 0:k.description}),i]}),h&&(0,r.jsx)(_,{variants:f.em.item,initial:"hidden",animate:C||!(0,Z.M2)()?"visible":"hidden",transition:{duration:f.em.baseDuration,delay:f.em.baseDelay},className:I.imageWrapper,children:h})]})})});n.Z=k},65411:function(e,n,t){"use strict";t.d(n,{FQ:function(){return o.Z},ZP:function(){return r.Z}});var r=t(29478),o=t(98583);t(52983)},98583:function(e,n,t){"use strict";t.d(n,{l:function(){return i}});var r=t(11567),o=t(39815);function i(e){return(0,r.Z)("PageInfo",e)}let a=(0,o.Z)("PageInfo",["root","description","container","image","infoSection","infoWrapper","imageWrapper","label"]);n.Z=a},10067:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(35837),o=t(21883),i=t(75737),a=t(7854),l=t(72225),s=t(51865),c=t(52983),d=t(96775),u=t(14781),m=t(97458),p=(0,u.Z)([(0,m.jsx)("path",{d:"M19 21H5a2.006 2.006 0 0 1-2-2V5a2.006 2.006 0 0 1 2-2h14a2.006 2.006 0 0 1 2 2v14a2.006 2.006 0 0 1-2 2Z"}),(0,m.jsx)("path",{fill:"#fff",d:"M10.33 16.33a1.024 1.024 0 0 1-.71-.29l-3.33-3.33A1 1 0 0 1 7.7 11.3l2.63 2.63 5.96-5.96a1 1 0 0 1 1.41 1.41l-6.67 6.67a.982.982 0 0 1-.71.29Z"})],"Checkbox"),h=(0,u.Z)((0,m.jsx)("path",{d:"M19 4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h14m0-1H5a2.006 2.006 0 0 0-2 2v14a2.006 2.006 0 0 0 2 2h14a2.006 2.006 0 0 0 2-2V5a2.006 2.006 0 0 0-2-2Z"}),"CheckboxOutlineBlank"),x=t(37725),f=t(79272),Z=t(69656);function g(e){return(0,Z.Z)("Checkbox",e)}var v=(0,t(4163).Z)("Checkbox",["root","checked","disabled","indeterminate"]),j=["checkedIcon","color","icon","indeterminate","inputProps","className"],b=function(e){var n=e.classes,t=e.indeterminate,r=e.color,o={root:["root",t&&"indeterminate","color".concat((0,a.Z)(r))]},s=(0,l.Z)(o,g,n);return(0,i.Z)({},n,s)},y=(0,x.ZP)(d.Z,{shouldForwardProp:function(e){return(0,x.FO)(e)||"classes"===e},name:"Checkbox",slot:"Root",overridesResolver:function(e,n){var t=e.ownerState;return[n.root,t.indeterminate&&n.indeterminate,"default"!==t.color&&n["color".concat((0,a.Z)(t.color))]]}})(function(e){var n=e.theme,t=e.ownerState;return(0,i.Z)({color:(n.vars||n).palette.input.light,alignItems:"flex-start",marginRight:12,padding:0},t.color&&"default"!==t.color&&(0,o.Z)((0,o.Z)({},"&.".concat(v.checked,", &.").concat(v.indeterminate),{color:(n.vars||n).palette[t.color].main}),"&.".concat(v.disabled),{color:(n.vars||n).palette.action.disabled}))}),P=(0,m.jsx)(p,{}),_=(0,m.jsx)(h,{}),k=c.forwardRef(function(e,n){var t=(0,f.Z)({props:e,name:"Checkbox"}),o=t.checkedIcon,a=t.color,l=t.icon,d=(t.indeterminate,t.inputProps),u=t.className,p=(0,r.Z)(t,j),h=void 0===l?_:l,x=void 0===o?P:o,Z=(0,i.Z)({},t,{color:void 0===a?"primary":a}),g=b(Z);return(0,m.jsx)(y,(0,i.Z)({type:"checkbox",inputProps:d,icon:c.cloneElement(h,{fontSize:h.props.fontSize}),checkedIcon:c.cloneElement(x,{fontSize:x.props.fontSize}),ownerState:Z,ref:n,className:s(g.root,u)},p,{classes:g}))})}},function(e){e.O(0,[6214,4109,9160,7299,4411,7160,1805,6003,9774,2888,179],function(){return e(e.s=92278)}),_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.