1"use strict";(self.webpackChunkPylot_Frontend=self.webpackChunkPylot_Frontend||[]).push([[6229,8610],{28610:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(82284),i=n(58168),o=n(53986),a=n(96540),c=n(85692),s=n(15474),l=["data","imageWidth","imageHeight","forceLoad"],u=function(e){var t=null,n=[];if("object"===(0,r.A)(e)&&null!==e)for(var i in e)if(!i.includes("width")&&!i.includes("height")){var o=e["".concat(i,"-width")],a=e["".concat(i,"-height")];if(n.includes("".concat(o,"x").concat(a)))continue;n.push("".concat(o,"x").concat(a)),e[i].includes("http")||(e[i]="https://".concat(s.A.domain).concat(e[i])),s.A.preview.enabled&&(e[i]=e[i].replace("/".concat(s.A.preview.decodeContent,"/uploads/sites/"),"/media/v1/"));var c="".concat(e[i]," ").concat(o,"w");t=t?t.concat(", ",c):c}return t};const d=function(e){var t,n=e.data,r=e.imageWidth,d=e.imageHeight,h=e.forceLoad,g=(0,o.A)(e,l);if(!n)return null;var f=(0,c.Wx)({triggerOnce:!0,fallbackInView:!0}),v=f.ref,p=f.inView;if("number"==typeof n||Array.isArray(n)||"string"==typeof n)return console.log("image data is in id, or array format",n),null;null!==(t=n.url)&&void 0!==t&&t.includes("http")||(n.url="https://".concat(s.A.domain).concat(n.url)),s.A.preview.enabled&&(n.url=n.url.replace("/".concat(s.A.preview.decodeContent,"/uploads/sites/"),"/media/v1/"));var w=r||(n.width?n.width:"auto"),y=d||(n.height?n.height:100);return a.createElement("img",(0,i.A)({ref:v,loading:p?null:"lazy",src:p||h?n.url:null,alt:n.alt?n.alt:"",role:n.alt?null:"presentation",title:n.alt?n.title:null,srcset:"svg+xml"!==n.subtype&&p||h?u(n.sizes):"",width:w,height:y},g))}},85692:(e,t,n)=>{n.d(t,{Wx:()=>l});var r=n(96540),i=(Object.defineProperty,new Map),o=new WeakMap,a=0,c=void 0;function s(e,t,n={},r=c){if(void 0===window.IntersectionObserver&&void 0!==r){const i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:s,observer:l,elements:u}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(o.has(n)||(a+=1,o.set(n,a.toString())),o.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=i.get(t);if(!n){const r=new Map;let o;const a=new IntersectionObserver((t=>{t.forEach((t=>{var n;const i=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach((e=>{e(i,t)}))}))}),e);o=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},i.set(t,n)}return n}(n),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),l.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),l.unobserve(e)),0===u.size&&(l.disconnect(),i.delete(s))}}function l({threshold:e,delay:t,trackVisibility:n,rootMargin:i,root:o,triggerOnce:a,skip:c,initialInView:l,fallbackInView:u,onChange:d}={}){var h;const[g,f]=r.useState(null),v=r.useRef(d),[p,w]=r.useState({inView:!!l,entry:void 0});v.current=d,r.useEffect((()=>{if(c||!g)return;let r;return r=s(g,((e,t)=>{w({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&a&&r&&(r(),r=void 0)}),{root:o,rootMargin:i,threshold:e,trackVisibility:n,delay:t},u),()=>{r&&r()}}),[Array.isArray(e)?e.toString():e,g,o,i,a,c,n,u,t]);const y=null==(h=p.entry)?void 0:h.target,b=r.useRef(void 0);g||!y||a||c||b.current===y||(b.current=y,w({inView:!!l,entry:void 0}));const m=[f,p.inView,p.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}r.Component}}]); 2//# sourceMappingURL=270768045c81539df58c.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.