1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76956,42718,28362],{54772:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cps/widgets-short",function(){return r(39475)}])},42718:function(e,t,r){"use strict";r.r(t),r.d(t,{Record:function(){return d},RecordGroup:function(){return c}});var n=r(74512),i=r(22467),s=r(45399),a=r(29200),o=r(38080),l=r.n(o);r(92275);let d=e=>{let{size:t="medium",variant:r="primary",strong:o,icon:d,className:c,children:u,...p}=e,m=(0,i.DH)("record",p);return(0,n.jsxs)(a.Text,{component:"div",preset:l()["".concat(t,"-").concat(o?"strong":"normal")],className:(0,s.c)("record","ids-record","ids-record--".concat(t),"ids-record--".concat(r),c),...m,...p,children:[d&&(0,n.jsx)(d,{size:"xsmall"===t?"small":t}),(0,n.jsx)("span",{children:u})]})},c=e=>{let{direction:t="vertical",density:r="normal",wrap:i="wrap",className:a,style:o,children:l}=e;return(0,n.jsx)("div",{className:(0,s.c)("record-group","ids-record-group","ids-record-group--".concat(t),"ids-record-group--".concat(r),"ids-record-group--".concat(i),a),style:o,children:l})}},28362:function(e,t,r){"use strict";r.r(t),r.d(t,{WalorTrendCard:function(){return f},formatPlLocale:function(){return m},getBackground:function(){return u},getTrendClassnameForColor:function(){return p}});var n=r(74512),i=r(22467),s=r(29200);r(69342);var a=r(11432),o=r(42718),l=r(45399),d=r(10921),c=r(30540);let u=(e,t)=>e>0?(0,l.c)("ids-walor-trend-card-bg-profit",t&&"ids-walor-trend-card-bg-profit--mobile"):e<0?(0,l.c)("ids-walor-trend-card-bg-loss",t&&"ids-walor-trend-card-bg-loss--mobile"):"ids-walor-trend-card-bg-neutral",p=e=>e>0?"form-message ids-walor-trend-card-success-color":e<0?"form-message ids-walor-trend-card-danger-color":"form-message ids-walor-trend-card-default-color",m=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return"decimal"===t?Intl.NumberFormat("pl-PL",{style:"decimal",minimumFractionDigits:r}).format(Number(e)):"percent"===t?"".concat(Intl.NumberFormat("pl-PL",{style:"decimal",minimumFractionDigits:r,maximumFractionDigits:r}).format(Math.abs(e)),"%"):Intl.NumberFormat("pl-PL").format(e)},g=e=>e>0?(0,n.jsx)(d.ArrowFacedUpRightIcon,{size:"large",className:p(e)}):e<0?(0,n.jsx)(d.ArrowFacedDownRightIcon,{size:"large",className:p(e)}):null,f=e=>{let{size:t="medium",price:r,unit:d,valueChange:f,percentageChange:h,lastUpdate:x,fractionDigits:w,backgroundColor:v,...y}=e,j=(0,i.DH)("walor-trend-card",y),{t:b}=(0,c.$G)("walorTrendCard"),_="small"===t,C=void 0===v?u(h,_):void 0;return(0,n.jsxs)(a.WrapperGroup,{className:C,align:"start",backgroundColor:v,...j,...y,children:[(0,n.jsxs)(a.WrapperGroup,{gapVertical:_?"5xsmall":"2xsmall",children:[(0,n.jsx)(o.Record,{size:"large",children:(0,n.jsxs)(s.Title,{preset:_?"ids-typeset-title--preset-medium ids-typeset-title--preset-medium-strong":"ids-typeset-title--preset-large ids-typeset-title--preset-large-strong",children:[m(r,"decimal",null==w?void 0:w.price)," ",d]})}),(0,n.jsxs)(a.WrapperGroup,{gapHorizontal:_?"medium":"large",wrap:"nowrap",layout:"flex",direction:"row",children:[(0,n.jsx)(o.Record,{size:"large",style:{alignSelf:"center"},children:(0,n.jsx)(s.Text,{weight:"bold",size:_?"large":"2xlarge",children:m(f,"decimal",null==w?void 0:w.valueChange)})}),(0,n.jsx)(o.Record,{style:{alignItems:"center",justifyItems:"center"},icon:()=>g(h),size:"large",children:(0,n.jsx)(s.Text,{size:_?"large":"2xlarge",weight:"bold",className:"".concat(p(h)),children:m(h,"percent",null==w?void 0:w.percentageChange)})})]})]}),(0,n.jsx)(o.Record,{size:_?"xsmall":"small",variant:"secondary",children:(0,n.jsxs)(s.Text,{size:_?"xsmall":"small",weight:"semibold",children:[b("lastUpdate"),":"," ",(0,l.p6)(x,{timeZone:"Europe/Warsaw",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"})]})})]})}},85711:function(e,t,r){"use strict";r.r(t),r.d(t,{HeadAdapter:function(){return o},LinkAdapter:function(){return a},deviceType:function(){return d},useRouter:function(){return l}});var n=r(74512),i=r(32735),s=r(57063);let a=e=>{let{children:t,href:r,...i}=e;return(0,n.jsx)(s.rU,{to:r,...i,children:t})},o=e=>{let{children:t}=e;(0,i.useEffect)(()=>{console.warn("HeadAdapter needs to be implemented")},[])},l=()=>{let[e,t]=(0,i.useState)("");return(0,i.useEffect)(()=>{t(window.location.href)},[]),{asPath:e}},d=()=>{let e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)||/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"mobile":"desktop"}},63312:function(e,t,r){"use strict";r.d(t,{N:function(){return i}});var n=r(32735);let i=e=>{(0,n.useEffect)(()=>
1{if(!e.current)return;let t=()=>{if(!e.current||!window.parent||!window.parent.postMessage)return;let t=e.current.offsetHeight;window.parent.postMessage(t,"*")},r=new ResizeObserver(t);return r.observe(e.current),window.addEventListener("resize",t),t(),()=>{r.disconnect(),window.removeEventListener("resize",t)}},[e])}},30540:function(e,t,r){"use strict";r.d(t,{bd:function(){return g},$G:function(){return m}});var n=r(74512),i=r(32735);let s=/%\{([a-zA-Z0-9_.]*)}/g,a=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),o=(e,t)=>t.split(".").reduce((e,t)=>a(e)?e[t]:void 0,e),l=e=>null==e||"object"==typeof e?"":String(e),d=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!e)return"";if(0===r.length)return e;let[i]=r,d=0;return e.replace(s,(e,t)=>t&&a(i)?l(o(i,t)):l(r[d++]))},c=(e,t)=>{if(!t||"object"!=typeof e||null===e)return;let r=t.split(".").reduce((e,t)=>{if("object"==typeof e&&null!==e)return e[t]},e);return"string"==typeof r?r:void 0},u=(0,i.createContext)(void 0),p=()=>{let e=(0,i.useContext)(u);if(!e)throw Error("useI18nContext must be used within an I18nProvider");return e},m=e=>{let{lang:t,dictionary:r}=p(),n=e?r[e]:r;return{t:(0,i.useCallback)(function(r){for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];let o=c(n,r);return"string"!=typeof o?(console.warn('[i18n] Missing key "'.concat(r,'" in namespace "').concat(String(e),'" for lang "').concat(t,'"')),r):d(o,...s)},[n,e,t])}},g=e=>{let{lang:t,dictionary:r,children:s}=e,a=(0,i.useMemo)(()=>({lang:t,dictionary:r}),[t,r]);return(0,n.jsx)(u.Provider,{value:a,children:s})}},39475:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return f},default:function(){return h}});var n=r(74512),i=r(32735),s=r(11432),a=r(28362),o=r(87915),l=r(63312),d=r(30540);r(89533);var c=r(56334),u=r(85711),p=r(20964),m=r.n(p);let g=(e,t,r)=>
1{let[n,s]=(0,i.useState)(0),[a,o]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{if(!e.length)return;let n=setInterval(()=>{o(!1);let t=setTimeout(()=>{s(t=>(t+1)%e.length),o(!0)},r);return()=>clearTimeout(t)},t);return()=>clearInterval(n)},[e.length,t,r]),{currentItem:e[n],isVisible:a}};var f=!0;function h(e){let{items:t,lang:r,dictionary:p}=e,f=(0,i.useRef)(null),{currentItem:h,isVisible:x}=g(t,6e3,50);return((0,l.N)(f),h)?(0,n.jsx)(d.bd,{lang:r,dictionary:p,children:(0,n.jsx)(c.fn,{implementations:u,deviceType:u.deviceType(),children:(0,n.jsx)("div",{ref:f,children:(0,n.jsx)(s.WrapperContainer,{className:"".concat(m().widgetWrapper," ").concat(x?m().active:""),paddingHorizontal:!1,paddingTop:!1,paddingBottom:!1,marginBottom:!1,width:"full-desktop-limited",children:(0,n.jsxs)(s.WrapperGroup,{gapVertical:"medium",colSpan:12,children:[(0,n.jsx)(o.BlockHeader,{headerTag:"h2",size:"medium",showDivider:!1,children:h.name}),(0,n.jsx)(a.WalorTrendCard,{size:"small",gapVertical:"small",justify:"start",padding:"large",price:h.price,unit:h.unit,percentageChange:h.percentageChange,valueChange:h.valueChange,fractionDigits:{price:2},lastUpdate:h.lastUpdate,mode:"neutral-weak",backgroundColor:!0})]})})})})}):null}},38080:function(e){e.exports={"xsmall-normal":"ids-typeset-text--preset-xsmall","xsmall-strong":"ids-typeset-text--preset-xsmall ids-typeset-text--preset-xsmall-strong","small-normal":"ids-typeset-text--preset-small","small-strong":"ids-typeset-text--preset-small ids-typeset-text--preset-small-strong","medium-normal":"ids-typeset-text--preset-medium","medium-strong":"ids-typeset-text--preset-medium ids-typeset-text--preset-medium-strong","large-normal":"ids-typeset-text--preset-large","large-strong":"ids-typeset-text--preset-large ids-typeset-text--preset-large-strong"}},20964:function(e){e.exports={widgetWrapper:"widgets-short_widgetWrapper__K4tMn",active:"widgets-short_active__B8vXA",fadeInOut:"widgets-short_fadeInOut__LiHI7"}},92275:function(){},69342:function(){},89533:function(){}},function(e){e.O(0,[72744,60063,57998,77003,64617,55905,23854,39459,33754,92888,49774,40179],function(){return e(e.s=54772)}),_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.