/*! For license information please see 6731-6823c53de5016b89319d.js.LICENSE.txt */ "use strict";(self.webpackChunkcredera_rebrand=self.webpackChunkcredera_rebrand||[]).push([[6731],{96731:function(e,t,n){n.r(t),n.d(t,{renderImageToString:function(){return p},swapPlaceholderImage:function(){return f}});var r=n(38032),o=n(67294),a=n(97762);n(92369);let l;const i=new WeakMap,u=navigator.connection||navigator.mozConnection||navigator.webkitConnection,s=["image","loading","isLoading","isLoaded","imgClassName","imgStyle","objectPosition","backgroundColor","objectFit"];function c(e,t){e.style.opacity="1",t&&(t.style.opacity="0")}function d(e,t,n,r,o,a){const l=e.querySelector("[data-main-image]"),i=e.querySelector("[data-placeholder-image]"),u=n.has(t);function s(e){this.removeEventListener("load",s);const t=e.currentTarget,n=new Image;n.src=t.currentSrc,n.decode?n.decode().then((()=>{c(this,i),null==o||o({wasCached:u})})).catch((e=>{c(this,i),null==a||a(e)})):(c(this,i),null==o||o({wasCached:u}))}return l.addEventListener("load",s),null==r||r({wasCached:u}),Array.from(l.parentElement.children).forEach((e=>{const t=e.getAttribute("data-src"),n=e.getAttribute("data-srcset");t&&(e.removeAttribute("data-src"),e.setAttribute("src",t)),n&&(e.removeAttribute("data-srcset"),e.setAttribute("srcset",n))})),n.add(t),l.complete&&s.call(l,{currentTarget:l}),()=>{l&&l.removeEventListener("load",s)}}function f(e,t,o,a,s,c,f){if(!(0,r.h)()){let r;const m=(g=()=>{r=d(e,t,o,s,c,f)},"IntersectionObserver"in window?(l||(l=new IntersectionObserver((e=>{e.forEach((e=>{var t;e.isIntersecting&&(null==(t=i.get(e.target))||t(),i.delete(e.target))}))}),{rootMargin:"4g"!==(null==u?void 0:u.effectiveType)||null!=u&&u.saveData?"2500px":"1250px"})),function(e){return i.set(e,g),l.observe(e),function(){l&&e&&(i.delete(e),l.unobserve(e))}}):function(){return g(),function(){}}),b=m(e);var p,h;return"objectFit"in document.documentElement.style||(e.dataset.objectFit=null!=(p=a.objectFit)?p:"cover",e.dataset.objectPosition=""+(null!=(h=a.objectPosition)?h:"50% 50%"),async function(e){"objectFitPolyfill"in window||await n.e(4843).then(n.t.bind(n,54843,23)),window.objectFitPolyfill(e)}(e)),()=>{r&&r(),b()}}var g;return d(e,t,o,s,c,f)}function p(e){let{image:t,loading:n="lazy",isLoading:l,isLoaded:i,imgClassName:u,imgStyle:c={},objectPosition:d,backgroundColor:f,objectFit:p="cover"}=e,h=(0,r._)(e,s);const{width:g,height:m,layout:b,images:y,placeholder:v,backgroundColor:S}=t;return c=(0,r.a)({objectFit:p,objectPosition:d,backgroundColor:f},c),(0,a.uS)(o.createElement(r.L,{layout:b,width:g,height:m},o.createElement(r.P,(0,r.a)({},(0,r.g)(v,i,b,g,m,S,p,d))),o.createElement(r.M,(0,r.a)({},h,{width:g,height:m,className:u},(0,r.b)(l,i,y,n,c)))))}},87774:function(e,t,n){var r=n(67294);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n