1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2254],{13951:()=>{},62254:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var l=n(95155),i=n(12115),r=n(95696),d=n(91285),a=n(13951),o=n.n(a),u=n(2305),s=n(72470),c=n.n(s);let b=(0,u.Tp)(c()),m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l={},i={};return Object.entries(t).forEach(t=>{let[n,i]=t;if(!i)return;let r=i.replace(/\{(.*?)\}/g,(t,n)=>{var l;return null!=(l=e[n])?l:""}).trim();r&&(l[n]=r)}),Object.entries(n).forEach(t=>{let[n,l]=t,r=e[n];null!=r&&""!==r&&(i[l]=r)}),Object.keys(i).length>0&&(l.customAnswers=i),l},f=e=>{let{item:t,calendlyBtnDisabled:n=!1}=e,{calendly:a}=t.fields.custom||{},{calendlyUrl:s,calendlyType:c="Inline embed",calendlyBtnLabel:f="Book a call",calendlyFields:w,calendlyCustomFields:g}=a||{},[v,h]=(0,i.useState)(!1),y=(0,i.useRef)(null),C=(0,i.useRef)(!1),p=(0,i.useCallback)(()=>{try{let e=r.A.getCookie("_leadData");return e?JSON.parse(e):{}}catch(e){return{}}},[]),k=(0,i.useMemo)(()=>m(p(),w,g),[p,w,g]);return((0,i.useEffect)(()=>{let e=()=>h(!0);return window.addEventListener("form:submitted",e),()=>window.removeEventListener("form:submitted",e)},[]),(0,i.useEffect)(()=>{if(!v||"Inline embed"!==c||!s||C.current)return;let e=()=>{var e;if(!y.current||!(null==(e=window.Calendly)?void 0:e.initInlineWidget))return;let t=document.getElementById("calendly-inline-widget");t&&(C.current=!0,window.Calendly.initInlineWidget({url:s,prefill:k,parentElement:t}))};d.A.loadCalendlyAssets(()=>{requestAnimationFrame(e)})},[v,c,s,k]),s&&v)?(0,l.jsxs)(l.Fragment,{children:["Inline embed"===c&&(0,l.jsx)("div",{ref:y,className:(0,u.tW)(o(),"styledCalendly","calendly-inline-widget"),"data-auto-load":"false",id:"calendly-inline-widget"}),"Inline embed"!==c&&(0,l.jsx)("div",{className:"w-100 mx-auto d-flex justify-content-center customButton",children:(0,l.jsx)("button",{className:b("btn styledButton buttonText primary"),style:{"--btnHeight":"var(--btnHeight-md)","--btnPadding":"var(--btnPadding-md)","--btnFontSize":"var(--btnFontSize-md)","--btnColor":"var(--btnColor-heritage-blue)","--btnHoverColor":"var(--btnHoverColor-heritage-blue)",width:"initial"},onClick:()=>{var e;(null==(e=window.Calendly)?void 0:e.initPopupWidget)?window.Calendly.initPopupWidget({url:s,prefill:k}):window.open(s,"_blank")},disabled:n,children:(0,l.jsx)("span",{className:"buttonText",children:f})})})]}):null}}}]);
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.