1"use strict";(self.webpackChunkPylot_Frontend=self.webpackChunkPylot_Frontend||[]).push([[4767,6895],{16895:(t,l,n)=>{n.r(l),n.d(l,{default:()=>s});var e=n(58168),o=n(53986),c=n(96540),a=n(47767),i=n(52376),r=n(15474),u=n(29255),d=["process","path","url","type","target","isExternal","children","ariaLabel"];const s=function(t){var l,n,s,p,h,f,m,_,A,b=t.process,k=t.path,w=t.url,y=t.type,C=t.target,E=t.isExternal,g=t.children,L=t.ariaLabel,x=(0,o.A)(t,d),M=(0,a.Zp)(),P=!1,B=!1;if(w&&"/"!=w.charAt(0)&&"#"!=w.charAt(0)&&"tel:"!=w.substr(0,4)&&"mailto:"!=w.substr(0,7)?w=null!==(A=w)&&void 0!==A&&A.includes("http")?w:"https://".concat(w):w&&v(w)&&("/"==w.charAt(0)||"#"==w.charAt(0))&&(w="https://".concat(r.A.domain).concat(w)),!w||"/"!=w.charAt(0)&&"#"!=w.charAt(0)||null!=k||null!=x&&null!==(l=x.class)&&void 0!==l&&l.toLowerCase().includes("mvk-absolute")||(k=w),w&&!v(w)&&null!==(n=w)&&void 0!==n&&n.includes("http")&&null!==(s=w)&&void 0!==s&&s.includes(r.A.domain)&&(null==x||null===(p=x.class)||void 0===p||null===(p=p.toLowerCase())||void 0===p||!p.includes("mvk-absolute")))try{var F=new URL(w);k=F.pathname,P=F.hash||!1,B=F.search||!1}catch(t){console.error(t)}if(null!=x&&null!==(h=x.class)&&void 0!==h&&h.toLowerCase().includes("mvk-absolute")&&(w=w.includes("http")?w:"https://".concat(r.A.domain).concat(w)),"_blank"===C&&(E="true"),w&&(null===(f=w)||void 0===f||!f.includes("mypylot"))&&null!==(m=w)&&void 0!==m&&m.includes("http")&&(null===(_=w)||void 0===_||!_.includes(r.A.domain.replace("www.","")))){var T;E="true";var $=Array.isArray(g)?"string"==typeof g[0]?g[0]:null===(T=g[0])||void 0===T||null===(T=T.props)||void 0===T?void 0:T.children:"";x["aria-label"]="".concat($||""," opens in a new tab")}L&&(x["aria-label"]=L),E&&(C=E||"true"==E?"_blank":"_self");var j=function(t){if(t.target.focus(),t.stopPropagation(),t.preventDefault(),b&&b.call(t),k&&E){var l="https://".concat(r.A.domain).concat(k).replace(/\/?$/,"/");window.open(l,C)}else if(k&&"#"==k.charAt(0))(0,u.m)(k,70,"smooth");else if(k)M("".concat(k.replace(/\/?$/,"/")).concat(P||"").concat(B||"")),document.body.scrollTop=0,document.documentElement.scrollTop=0;else if(w&&C){var n;l=null!==(n=w)&&void 0!==n&&n.includes("http")?(0,i.decode)(w):"http://".concat((0,i.decode)(w)),window.open((0,i.decode)(l),C).focus()}else{if(!w)return;var e,o;l=null!==(e=w)&&void 0!==e&&e.includes("http")||null!==(o=w)&&void 0!==o&&o.includes("#")?w:"http://".concat(w),window.location.href=(0,i.decode)(w)}x.closeModal&&x.closeModal(),x.closeBanner&&x.closeBanner()};return"button"==y||"submit"==y||"reset"==y?c.createElement("button",(0,e.A)({type:y,onClick:j},x),g):w&&"mailto:"==w.substr(0,7)?c.createElement("a",(0,e.A)({href:w,target:C},x),g):"anchor"==y?c.createElement("a",(0,e.A)({href:(0,i.decode)(w),target:C,onClick:j},x),g):c.createElement("div",(0,e.A)({onClick:j},x),g)};function v(t){var l;return!!t&&(null==t||null===(l=t.split("/"))||void 0===l||null===(l=l.pop())||void 0===l?void 0:l.indexOf("."))>-1}},64767:(t,l,n)=>{n.r(l),n.d(l,{default:()=>i});var e=n(80296),o=n(96540),c=n(94518),a=n(16895);const i=function(){var t,l,n=(0,o.useContext)(c.lj),i=(0,e.A)(n,1)[0],r=(0,o.useContext)(c.Mc),u=(0,e.A)(r,1)[0],d=(0,o.useState)(!(!i.current_location||null===(t=u[i.current_location])||void 0===t||null===(t=t.mvk_item_content)||void 0===t||null===(t=t.custom_fields)||void 0===t||null===(t=t.contact_info)||void 0===t||!t.phone)&&(null===(l=u[i.current_location])||void 0===l||null===(l=l.mvk_item_content)||void 0===l||null===(l=l.custom_fields)||void 0===l||null===(l=l.contact_info)||void 0===l?void 0:l.phone)),s=(0,e.A)(d,2),v=s[0],p=s[1];return(0,o.useEffect)((function(){var t,l;p(!(!i.current_location||null===(t=u[i.current_location])||void 0===t||null===(t=t.mvk_item_content)||void 0===t||null===(t=t.custom_fields)||void 0===t||null===(t=t.contact_info)||void 0===t||!t.phone)&&(null===(l=u[i.current_location])||void 0===l||null===(l=l.mvk_item_content)||void 0===l||null===(l=l.custom_fields)||void 0===l||null===(l=l.contact_info)||void 0===l?void 0:l.phone))}
1),[i.current_location]),v?o.createElement(a.default,{type:"anchor",class:"location-phone underline body-copy-txt",url:"tel:".concat(v.replace(/[^0-9.]/g,"")),ariaLabel:"call this location"},v):null}}}]); 2//# sourceMappingURL=3ad9abce657b5427ae1f.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.