PageSourceSearch

https://najlepsze.smaker.pl/_static/_next/static/chunks/pages/cps/widgets-f8ad262f73511f11.js

js smaker.pl collected 2026-10-02 03:07:36 UTC 8,084 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69213,42718,28362],{84234:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cps/widgets",function(){return t(62271)}])},42718:function(e,r,t){"use strict";t.r(r),t.d(r,{Record:function(){return d},RecordGroup:function(){return c}});var n=t(74512),i=t(22467),s=t(45399),a=t(29200),o=t(38080),l=t.n(o);t(92275);let d=e=>{let{size:r="medium",variant:t="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(r,"-").concat(o?"strong":"normal")],className:(0,s.c)("record","ids-record","ids-record--".concat(r),"ids-record--".concat(t),c),...m,...p,children:[d&&(0,n.jsx)(d,{size:"xsmall"===r?"small":r}),(0,n.jsx)("span",{children:u})]})},c=e=>{let{direction:r="vertical",density:t="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(r),"ids-record-group--".concat(t),"ids-record-group--".concat(i),a),style:o,children:l})}},28362:function(e,r,t){"use strict";t.r(r),t.d(r,{WalorTrendCard:function(){return f},formatPlLocale:function(){return m},getBackground:function(){return u},getTrendClassnameForColor:function(){return p}});var n=t(74512),i=t(22467),s=t(29200);t(69342);var a=t(11432),o=t(42718),l=t(45399),d=t(10921),c=t(30540);let u=(e,r)=>e>0?(0,l.c)("ids-walor-trend-card-bg-profit",r&&"ids-walor-trend-card-bg-profit--mobile"):e<0?(0,l.c)("ids-walor-trend-card-bg-loss",r&&"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,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return"decimal"===r?Intl.NumberFormat("pl-PL",{style:"decimal",minimumFractionDigits:t}).format(Number(e)):"percent"===r?"".concat(Intl.NumberFormat("pl-PL",{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t}).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:r="medium",price:t,unit:d,valueChange:f,percentageChange:x,lastUpdate:h,fractionDigits:w,backgroundColor:y,...v}=e,j=(0,i.DH)("walor-trend-card",v),{t:b}=(0,c.$G)("walorTrendCard"),C="small"===r,z=void 0===y?u(x,C):void 0;return(0,n.jsxs)(a.WrapperGroup,{className:z,align:"start",backgroundColor:y,...j,...v,children:[(0,n.jsxs)(a.WrapperGroup,{gapVertical:C?"5xsmall":"2xsmall",children:[(0,n.jsx)(o.Record,{size:"large",children:(0,n.jsxs)(s.Title,{preset:C?"ids-typeset-title--preset-medium ids-typeset-title--preset-medium-strong":"ids-typeset-title--preset-large ids-typeset-title--preset-large-strong",children:[m(t,"decimal",null==w?void 0:w.price)," ",d]})}),(0,n.jsxs)(a.WrapperGroup,{gapHorizontal:C?"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:C?"large":"2xlarge",children:m(f,"decimal",null==w?void 0:w.valueChange)})}),(0,n.jsx)(o.Record,{style:{alignItems:"center",justifyItems:"center"},icon:()=>g(x),size:"large",children:(0,n.jsx)(s.Text,{size:C?"large":"2xlarge",weight:"bold",className:"".concat(p(x)),children:m(x,"percent",null==w?void 0:w.percentageChange)})})]})]}),(0,n.jsx)(o.Record,{size:C?"xsmall":"small",variant:"secondary",children:(0,n.jsxs)(s.Text,{size:C?"xsmall":"small",weight:"semibold",children:[b("lastUpdate"),":"," ",(0,l.p6)(h,{timeZone:"Europe/Warsaw",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"})]})})]})}},85711:function(e,r,t){"use strict";t.r(r),t.d(r,{HeadAdapter:function(){return o},LinkAdapter:function(){return a},deviceType:function(){return d},useRouter:function(){return l}});var n=t(74512),i=t(32735),s=t(57063);let a=e=>{let{children:r,href:t,...i}=e;return(0,n.jsx)(s.rU,{to:t,...i,children:r})},o=e=>{let{children:r}=e;(0,i.useEffect)(()=>{console.warn("HeadAdapter needs to be implemented")},[])},l=()=>{let[e,r]=(0,i.useState)("");return(0,i.useEffect)(()=>{r(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,r,t){"use strict";t.d(r,{N:function(){return i}});var n=t(32735);let i=e=>{(0,n.useEffect)(()=>
1{if(!e.current)return;let r=()=>{if(!e.current||!window.parent||!window.parent.postMessage)return;let r=e.current.offsetHeight;window.parent.postMessage(r,"*")},t=new ResizeObserver(r);return t.observe(e.current),window.addEventListener("resize",r),r(),()=>{t.disconnect(),window.removeEventListener("resize",r)}},[e])}},30540:function(e,r,t){"use strict";t.d(r,{bd:function(){return g},$G:function(){return m}});var n=t(74512),i=t(32735);let s=/%\{([a-zA-Z0-9_.]*)}/g,a=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),o=(e,r)=>r.split(".").reduce((e,r)=>a(e)?e[r]:void 0,e),l=e=>null==e||"object"==typeof e?"":String(e),d=function(e){for(var r=arguments.length,t=Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];if(!e)return"";if(0===t.length)return e;let[i]=t,d=0;return e.replace(s,(e,r)=>r&&a(i)?l(o(i,r)):l(t[d++]))},c=(e,r)=>{if(!r||"object"!=typeof e||null===e)return;let t=r.split(".").reduce((e,r)=>{if("object"==typeof e&&null!==e)return e[r]},e);return"string"==typeof t?t: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:r,dictionary:t}=p(),n=e?t[e]:t;return{t:(0,i.useCallback)(function(t){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,t);return"string"!=typeof o?(console.warn('[i18n] Missing key "'.concat(t,'" in namespace "').concat(String(e),'" for lang "').concat(r,'"')),t):d(o,...s)},[n,e,r])}},g=e=>{let{lang:r,dictionary:t,children:s}=e,a=(0,i.useMemo)(()=>({lang:r,dictionary:t}),[r,t]);return(0,n.jsx)(u.Provider,{value:a,children:s})}},62271:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return p},default:function(){return m}});var n=t(74512),i=t(32735),s=t(11432),a=t(28362),o=t(87915),l=t(30540),d=t(63312),c=t(56334),u=t(85711);t(89533);var p=!0;function m(e){let{item:r,lang:t,dictionary:p}=e,m=(0,i.useRef)(null);return(0,d.N)(m),(0,n.jsx)(l.bd,{lang:t,dictionary:p,children:(0,n.jsx)(c.fn,{implementations:u,deviceType:u.deviceType(),children:(0,n.jsx)("div",{ref:m,children:(0,n.jsx)(s.WrapperContainer,{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:r.name}),(0,n.jsx)(a.WalorTrendCard,{size:"small",gapVertical:"small",justify:"start",padding:"large",price:r.price,unit:r.unit,percentageChange:r.percentageChange,valueChange:r.valueChange,fractionDigits:{price:2},lastUpdate:r.lastUpdate,mode:"neutral-weak",backgroundColor:!0})]})})})})})}},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"}},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=84234)}),_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.