diff --git a/108-60d66d3f4b4894b28855.js b/108-60d66d3f4b4894b28855.js new file mode 100644 index 00000000..cb406b6f --- /dev/null +++ b/108-60d66d3f4b4894b28855.js @@ -0,0 +1,3 @@ +/*! For license information please see 108-60d66d3f4b4894b28855.js.LICENSE.txt */ +"use strict";(self.webpackChunkargo=self.webpackChunkargo||[]).push([[108],{1108:function(e,t,n){n.r(t),n.d(t,{renderImageToString:function(){return p},swapPlaceholderImage:function(){return f}});var r=n(2532),o=n(6540),a=n(5848);n(5147);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(452).then(n.t.bind(n,1452,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.qV)(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)))))}},7633:function(e,t,n){var r=n(6540);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n