1"use strict";(self.webpackChunkPylot_Frontend=self.webpackChunkPylot_Frontend||[]).push([[1244,6229,8610],{11244:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var i=n(96540),o=n(52376),r=n(28610),l=i.lazy((function(){return Promise.all([n.e(982),n.e(6188),n.e(7169),n.e(5260)]).then(n.bind(n,47169))}));const a=function(e){var t=e.apiKey,n=e.settings,a=e.type;if(!t)return console.log("No Service Titan API Key for ".concat(a)),null;(0,i.useEffect)((function(){var e=document.getElementById("se-widget-embed");if(!e||e.getAttribute("data-api-key")!==t){e&&e.remove();var i=document.getElementById("se-widget-iframe-container");i&&i.remove();var o=document.createElement("script");return o.id="se-widget-embed",o.src="https://embed.scheduleengine.net/schedule-engine-v3.js",o.setAttribute("data-api-key",t),o.setAttribute("data-defer","true"),o.async=!0,o.onload=function(){console.log("ScheduleEngine script loaded successfully."),1==(null==n?void 0:n.autoopen)&&window.setTimeout((function(){c()}),2e3)},o.onerror=function(){console.error("Failed to load ScheduleEngine script.")},document.head.appendChild(o),function(){var e=document.getElementById("se-widget-embed");e&&e.remove();var t=document.getElementById("se-widget-iframe-container");t&&t.remove()}}1==(null==n?void 0:n.autoopen)&&window.setTimeout((function(){c()}),2e3)}),[t]);var c=function(){window.ScheduleEngine?window.ScheduleEngine.show():console.error("ScheduleEngine is not available. Ensure the script has loaded.")};switch(a){case"bottom-mobile-bar":return i.createElement("a",{className:"se-widget-button",onClick:c},(null==n?void 0:n.button_icon)&&i.createElement(r.default,{data:null==n?void 0:n.button_icon}),(0,o.decode)(null==n?void 0:n.link_text));case"quick-links":return i.createElement("a",{className:"se-widget-button",onClick:c},(0,o.decode)(null==n?void 0:n.link_text));default:return i.createElement(l,{className:"se-widget-button",title:null==n?void 0:n.link_text,buttonFunction:"styled",frontIcon:null!=n&&n.button_icon?null==n?void 0:n.button_icon:null,type:null==n?void 0:n.button_style,tone:null==n?void 0:n.background_value,onClick:c})}}},28610:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var i=n(82284),o=n(58168),r=n(53986),l=n(96540),a=n(85692),c=n(15474),s=["data","imageWidth","imageHeight","forceLoad"],u=function(e){var t=null,n=[];if("object"===(0,i.A)(e)&&null!==e)for(var o in e)if(!o.includes("width")&&!o.includes("height")){var r=e["".concat(o,"-width")],l=e["".concat(o,"-height")];if(n.includes("".concat(r,"x").concat(l)))continue;n.push("".concat(r,"x").concat(l)),e[o].includes("http")||(e[o]="https://".concat(c.A.domain).concat(e[o])),c.A.preview.enabled&&(e[o]=e[o].replace("/".concat(c.A.preview.decodeContent,"/uploads/sites/"),"/media/v1/"));var a="".concat(e[o]," ").concat(r,"w");t=t?t.concat(", ",a):a}return t};const d=function(e){var t,n=e.data,i=e.imageWidth,d=e.imageHeight,g=e.forceLoad,h=(0,r.A)(e,s);if(!n)return null;var v=(0,a.Wx)({triggerOnce:!0,fallbackInView:!0}),f=v.ref,m=v.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(c.A.domain).concat(n.url)),c.A.preview.enabled&&(n.url=n.url.replace("/".concat(c.A.preview.decodeContent,"/uploads/sites/"),"/media/v1/"));var b=i||(n.width?n.width:"auto"),w=d||(n.height?n.height:100);return l.createElement("img",(0,o.A)({ref:f,loading:m?null:"lazy",src:m||g?n.url:null,alt:n.alt?n.alt:"",role:n.alt?null:"presentation",title:n.alt?n.title:null,srcset:"svg+xml"!==n.subtype&&m||g?u(n.sizes):"",width:b,height:w},h))}},85692:(e,t,n)=>{n.d(t,{Wx:()=>s});var i=n(96540),o=(Object.defineProperty,new Map),r=new WeakMap,l=0,a=void 0;function c(e,t,n={},i=a){if(void 0===window.IntersectionObserver&&void 0!==i){const o=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:c,observer:s,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?(r.has(n)||(l+=1,r.set(n,l.toString())),r.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=o.get(t);if(!n){const i=new Map;let r;const l=new IntersectionObserver((t=>{t.forEach((t=>{var n;const o=t.isIntersecting&&r.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(n=i.get(t.target))||n.forEac
vendor: 1,138 bytes, lines 1-2
1h((e=>{e(o,t)}))}))}),e);r=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:i},o.set(t,n)}return n}(n),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),s.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),s.unobserve(e)),0===u.size&&(s.disconnect(),o.delete(c))}}function s({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:r,triggerOnce:l,skip:a,initialInView:s,fallbackInView:u,onChange:d}={}){var g;const[h,v]=i.useState(null),f=i.useRef(d),[m,b]=i.useState({inView:!!s,entry:void 0});f.current=d,i.useEffect((()=>{if(a||!h)return;let i;return i=c(h,((e,t)=>{b({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&l&&i&&(i(),i=void 0)}),{root:r,rootMargin:o,threshold:e,trackVisibility:n,delay:t},u),()=>{i&&i()}}),[Array.isArray(e)?e.toString():e,h,r,o,l,a,n,u,t]);const w=null==(g=m.entry)?void 0:g.target,p=i.useRef(void 0);h||!w||l||a||p.current===w||(p.current=w,b({inView:!!s,entry:void 0}));const y=[v,m.inView,m.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}i.Component}}]); 2//# sourceMappingURL=da503c1b2ec367ff40ad.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.