PageSourceSearch

https://www.soderbergpartners.se/build/client/static/js/KeyFigure.78e6c34a.js

js soderbergpartners.se collected 2026-09-24 19:44:23 UTC 17,025 bytes, 2 lines download raw bytes

vendor: 5,444 bytes, line 1
1(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[1540],{9837(t,e){!function(t){"use strict";var e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.apply(this,arguments)},n=function(){function t(t,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){i.startTime||(i.startTime=t);var e=t-i.startTime;i.remaining=i.duration-e,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(e,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(e,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(e/i.duration);var n=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=n?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),e<i.duration?i.rAF=requestAnimationFrame(i.count):null!==i.finalEndVal?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(t){var e,n,r,s,o=t<0?"-":"";e=Math.abs(t).toFixed(i.options.decimalPlaces);var a=(e+="").split(".");if(n=a[0],r=a.length>1?i.options.decimal+a[1]:"",i.options.useGrouping){s="";for(var l=3,u=0,c=0,h=n.length;c<h;++c)i.options.useIndianSeparators&&4===c&&(l=2,u=1),0!==c&&u%l==0&&(s=i.options.separator+s),u++,s=n[h-c-1]+s;n=s}return i.options.numerals&&i.options.numerals.length&&(n=n.replace(/[0-9]/g,function(t){return i.options.numerals[+t]}),r=r.replace(/[0-9]/g,function(t){return i.options.numerals[+t]})),o+i.options.prefix+n+r+i.options.suffix},this.easeOutExpo=function(t,e,n,r){return n*(1-Math.pow(2,-10*t/r))*1024/1023+e},this.options=e(e({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof t?document.getElementById(t):t,n=null==n?this.parse(this.el.innerHTML):n,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(t){return t()})},this.handleScroll(this)))}return t.prototype.handleScroll=function(t){if(t&&window&&!t.once){var e=window.innerHeight+window.scrollY,n=t.el.getBoundingClientRect(),r=n.top+window.pageYOffset,i=n.top+n.height+window.pageYOffset;i<e&&i>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>i||r>e)&&!t.paused&&t.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var n=this.countDown?1:-1;this.endVal=t+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e;if(this.el){var n=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.
1innerHTML=n}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t.prototype.parse=function(t){var e=function(t){return t.replace(/([.,'\xa0 ])/g,"\\$1")},n=e(this.options.separator),r=e(this.options.decimal),i=t.replace(new RegExp(n,"g"),"").replace(new RegExp(r,"g"),".");return parseFloat(i)},t}();t.CountUp=n}(e)},15032(t,e,n){"use strict";var r=n(25500),i=n(9837);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function l(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function c(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;function f(t){var e=r.useRef(t);return d(function(){e.current=t}),r.useCallback(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.current.apply(void 0,n)},[])}var m=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],g={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},y=function(t){var e=Object.fromEntries(Object.entries(t).filter(function(t){return void 0!==h(t,2)[1]})),n=r.useMemo(function(){return o(o({},g),e)},[t]),s=n.ref,a=n.startOnMount,l=n.enableReinitialize,u=n.delay,p=n.onEnd,d=n.onStart,y=n.onPauseResume,b=n.onReset,v=n.onUpdate,V=c(n,m),w=r.useRef(),O=r.useRef(),E=r.useRef(!1),S=f(function(){return function(t,e){var n=e.decimal,r=e.decimals,s=e.duration,o=e.easingFn,a=e.end,l=e.formattingFn,u=e.numerals,c=e.prefix,h=e.separator,p=e.start,d=e.suffix,f=e.useEasing,m=e.useGrouping,g=e.useIndianSeparators,y=e.enableScrollSpy,b=e.scrollSpyDelay,v=e.scrollSpyOnce,V=e.plugin;
1return new i.CountUp(t,a,{startVal:p,duration:s,decimal:n,decimalPlaces:r,easingFn:o,formattingFn:l,numerals:u,separator:h,prefix:c,suffix:d,plugin:V,useEasing:f,useIndianSeparators:g,useGrouping:m,enableScrollSpy:y,scrollSpyDelay:b,scrollSpyOnce:v})}("string"===typeof s?s:s.current,V)}),A=f(function(t){var e=w.current;if(e&&!t)return e;var n=S();return w.current=n,n}),F=f(function(){var t=function(){return A(!0).start(function(){null===p||void 0===p||p({pauseResume:I,reset:j,start:C,update:x})})};u&&u>0?O.current=setTimeout(t,1e3*u):t(),null===d||void 0===d||d({pauseResume:I,reset:j,update:x})}),I=f(function(){A().pauseResume(),null===y||void 0===y||y({reset:j,start:C,update:x})}),j=f(function(){A().el&&(O.current&&clearTimeout(O.current),A().reset(),null===b||void 0===b||b({pauseResume:I,start:C,update:x}))}),x=f(function(t){A().update(t),null===v||void 0===v||v({pauseResume:I,reset:j,start:C})}),C=f(function(){j(),F()}),k=f(function(t){a&&(t&&j(),F())});return r.useEffect(function(){E.current?l&&k(!0):(E.current=!0,k())},[l,E,k,u,t.start,t.suffix,t.prefix,t.duration,t.separator,t.decimals,t.decimal,t.formattingFn]),r.useEffect(function(){return function(){j()}},[j]),{start:C,pauseResume:I,reset:j,update:x,getCountUp:A}},b=["className","redraw","containerProps","children","style"];e.S9=y},13172(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>d});var r=n(25500),i=n(15032),s=n(83914),o=n(19228),a=n(97050),l=n(49524),u=n(57983),c=n(39987),h=n(11840);const p=({id:t,className:e,contentId:n,keyFigure:p,text:d,start:f=0,delay:m=0,icon:g="office",suffix:y,disableThousandsSeparator:b=!1})=>{const v=(0,a.A)(),V=(0,r.useRef)(null);switch((0,o.dv)()){case"XL":case"L":case"M":g=`${g}70`;break;default:g=`${g}56`}const w=p&&p%1!==0?2:0,O=(0,r.useCallback)(t=>{const[e,n]=t.toFixed(w).split("."),r=b?e:(t=>{let e="";for(let n=0;n<t.length;n++)n>0&&(t.length-n)%3===0&&(e+=" "),e+=t[n];return e})(e);return`${n?`${r}.${n}`:r}${null!==y&&void 0!==y?y:""}`},[w,b,y]),{start:E,reset:S}=(0,i.S9)({ref:V,duration:1,start:f,decimals:w,end:p||0,startOnMount:!1,enableScrollSpy:!1,delay:m,formattingFn:O}),{ref:A,inView:F}=(0,s.Wx)({triggerOnce:!0}),I=(0,r.useCallback)(t=>{V.current=t,A(t)},[A]);return(0,l.A)(()=>{v||window.matchMedia("(prefers-reduced-motion: reduce)").matches||S()},[]),(0,r.useEffect)(()=>{!v&&F&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches||E())},[F,v,E]),(0,h.jsxs)(c.mc,{id:t,...(0,u.C0)(n),className:e,children:[(0,h.jsx)(c.In,{icon:g},`Icon-${g}`),(v||p)&&(0,h.jsx)(c.wN,{...(0,u.d8)("KeyFigure"),ref:v?void 0:I,children:p?O(p):""}),(v||d)&&(0,h.jsxs)(c.EY,{...(0,u.d8)("Text"),children:[" ",d||""]})]})},d=(0,r.memo)(p)},83914(t,e,n){"use strict";var r;n.d(e,{Wx:()=>g,pL:()=>m});var i,s=n(25500),o=Object.defineProperty,a=(t,e,n)=>((t,e,n)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!==typeof e?e+"":e,n),l=new Map,u=new WeakMap,c=0;function h(t){return Object.keys(t).sort().filter(e=>void 0!==t[e]).map(e=>{return`${e}_${"root"===e?(n=t.root,n?(u.has(n)||(c+=1,u.set(n,c.toString())),u.get(n)):"0"):t[e]}`;var n}).toString()}function p(t,e,n={},r=i){if("undefined"===typeof window.IntersectionObserver&&void 0!==r){const i=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:"number"===typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:s,observer:o,elements:a}=function(t){const e=h(t);let n=l.get(e);if(!n){const r=new Map;let i;const s=new IntersectionObserver(e=>{e.forEach(e=>{var n;const s=e.isIntersecting&&i.some(t=>e.intersectionRatio>=t);t.trackVisibility&&"undefined"===typeof e.isVisible&&(e.isVisible=s),[...null!=(n=r.get(e.target))?n:[]].forEach(t=>{t(s,e)})})},t);i=s.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:s,elements:r},l.set(e,n)}return n}(n),u=a.get(t)||[];return a.has(t)||a.set(t,u),u.push(e),o.observe(t),function(){u.splice(u.indexOf(e),1),0===u.length&&(a.delete(t),o.unobserve(t)),0===a.size&&(o.disconnect(),l.delete(s))}}var d,f,m=class extends s.Component{constructor(t){super(t),a(this,"node",null),a(this,"_unobserveCb",null),a(this,"lastInView"),a(this,"handleNode",t=>{this.node&&(this.unobserve(),t||this.props.triggerOnce||this.props.skip||(this.setState({inView:!!this.props.initialInView,entry:void 0}),this.lastInView=this.props.initialInView)),this.node=t||null,this.observeNode()}),a(this,"handleChange",(t,e)=>{const n=this.lastInView;this.lastInView=t,(void 0!==n||t)&&(t&&this.props.triggerOnce&&this.unobserve(),function(t){return"function"!==typeof t.children}(this.props)||this.setState({inView:t,entry:e}),this.props.onChange&&this.props.onChange(t,e))}),this.state={inView:!!t.initialInView,entry:void 0},this.lastInView=t.initialInView}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(t){t.rootMargin===this.props.rootMargin&&t.root===this.props.root&&t.threshold===this.props.threshold&&t.skip===this.props.skip&&t.trackVisibility===this.props.trackVisibility&&t.delay===this.props.delay||(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;const{threshold:t,root:e,rootMargin:n,trackVisibility:r,delay:i,fallbackInView:s}=this.props;void 0===this.lastInView&&(this.lastInView=this.props.initialInView),this._unobserveCb=p(this.node,this.handleChange,{threshold:t,root:e,rootMargin:n,trackVisibility:r,delay:i},s)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:t}=this.props;if("function"===typeof t){const{inView:e,entry:n}=this.state;return t({inView:e,entry:n,ref:this.handleNode})}const{as:e,triggerOnce:n,threshold:r,root:i,rootMargin:o,onChange:a,skip:l,trackVisibility:u,delay:c,initialInView:h,fallbackInView:p,...d}=this.props;return s.createElement(e||"div",{ref:this.handleNode,...d},t)}};function g({threshold:t,delay:e,trackVisibility:n,rootMargin:r,root:i,triggerOnce:o,skip:a,initialInView:l,fallbackInView:u,onChange:c}={}){var h;const[d,f]=s.useState(null),m=s.useRef(c),g=s.useRef(l),[y,b]=s.useState({inView:!!l,entry:void 0});m.current=c,s.useEffect(()=>{if(void 0===g.current&&(g.current=l),a||!d)return;let s;return s=p(d,(t,e)=>{const n=g.current;g.current=t,(void 0!==n||t)&&(b({inView:t,entry:e}),m.current&&m.current(t,e),e.isIntersecting&&o&&s&&(s(),s=void 0))},{root:i,rootMargin:r,threshold:t,trackVisibility:n,delay:e},u),()=>{s&&s()}},[Array.isArray(t)?t.toString():t,d,i,r,o,a,n,u,e]);const v=null==(h=y.entry)?void 0:h.target,V=s.useRef(void 0);d||!v||o||a||V.current===v||(V.current=v,b({inView:!!l,entry:void 0}),g.current=l);const w=[f,y.inView,y.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}null!=(f=null!=(d="useInsertionEffect"in(r||(r=n.t(s,2)))?s.useInsertionEffect:void 0)?d:s.useLayoutEffect)||s.useEffect}}]);
2//# sourceMappingURL=KeyFigure.78e6c34a.js.map

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.