PageSourceSearch

https://owp.klarna.com/static/features-klarnaMarketing-view-components-core-Typography-Typography-6cf6259c.js

js klarna.com collected 2026-10-01 08:32:19 UTC 3,997 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[86918],{54918(e,t,r){r.r(t),r.d(t,{default:()=>u}),r(27495),r(18111),r(61701),r(42762),r(25440);var n=r(74848);r(62953),r(18237);var l=r(22751),o=r(96540);let i=(e,t)=>e+1>=t.length?0:e+1,a={display:"inline-block",position:"relative",whiteSpace:"nowrap",transition:"width 0.25s",verticalAlign:"baseline","& .r-txt":{top:0,left:0,position:"absolute",opacity:0},"&.type--blur-out .r-txt":{transform:"translateY(-75%)",filter:"blur(20px)",transition:"filter 0.75s, opacity 0.75s 0.25s, transform 0.75s"},"&.type--swipe-up":{overflow:"hidden",position:"relative",verticalAlign:"bottom",lineHeight:"inherit"},"&.type--swipe-up .r-txt":{transform:"translateY(-100%)",transition:"opacity 0s 1s, transform 0.75s"},"&.type--blur-out .r-next":{transform:"translateY(25%)",filter:"none"},"&.type--swipe-up .r-next":{transform:"translateY(100%)",opacity:1},"&.rotating-text .r-active":{transform:"translateY(0)",opacity:1},"&.type--blur-out .r-active":{opacity:1,filter:"none",transitionDelay:"0.075s"},"& .hidden":{color:"transparent",opacity:0}},s=({texts:e,type:t="swipe-up",duration:r=3,pause:s=!1})=>{let[c,p]=(0,o.useState)(0),[u,y]=(0,o.useState)(1),f=1e3*r,b=(0,o.useRef)(null),O=()=>{b.current&&(clearInterval(b.current),b.current=null)};(0,o.useEffect)(()=>(s?(p(e.length-1),y(0),O()):b.current=setInterval(()=>{document.hidden||(p(t=>i(t,e)),y(t=>i(t,e)))},f),O),[f,s,e]);let d=e.reduce((e,t)=>t.length>e.length?t:e,"");return(0,n.jsxs)(l.H,{tag:"span",webOnlyProps:{className:`rotating-text type--${t}`,css:a},children:[(0,n.jsx)(l.H,{tag:"span",webOnlyProps:{className:"hidden"},children:d}),e.map((e,t)=>(0,n.jsx)(l.H,{tag:"span",webOnlyProps:{className:`r-txt ${t===c?"r-active":""} ${t===u?"r-next":""}`},children:e},t))]})};var c=r(78039);let p=/\[([^\]]+)\]/,u=e=>{var t,r,l;let{children:o,color:i,colorSecondary:a}=e,u=function(e,t){if(null==e)return{};var r,n,l,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),l=0;l<r.length;l++)n=r[l],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,t){if(null==e)return{};var r,n,l={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r]);return l}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),l=0;l<r.length;l++)n=r[l],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["children","color","colorSecondary"]),y="string"==typeof o&&o.includes("\\"),f="",b=y?o.split(/(\\)/).map(e=>(f+=e,"\\"===e?(0,n.jsx)("br",{},`br-${f}`):e)):o,O="string"==typeof b&&b.split(p);if(O&&O.length>1){let e=O[1].split("|").map(e=>e.trim()),r=parseInt(null==(t=O[2])?void 0:t.replace("/",""));r&&O.splice(2,1),b=O.map(t=>t.includes("|")?(0,n.jsx)(s,{duration:r||3,texts:e},t):t)}if(a&&"string"==typeof b&&b.includes("__")){let e=b.split("__"),t="",r=!1;b=e.map(e=>{t+=`__${e}`;let l=r;return r=!r,(0,n.jsx)(c.A,{as:"span",className:l?"color-secondary-segment":void 0,color:l?a:i,display:"inline",variant:u.variant,children:e},t)})}return(0,n.jsx)(c.A,(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},u),l=l={color:i,children:b},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}
1)(Object(l)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(l,e))}),r))}}}]);

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.