1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2103,1173],{60672:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/b2b/_components/TryItAndBookADemoButtons",function(){return r(91622)}])},21170:function(e,t,r){"use strict";r.d(t,{L$:function(){return a},ZP:function(){return f},qE:function(){return i}});var n,o,a,i,s=r(85893),l=r(66393),c=r(99603),d=r(41664),u=r.n(d);(n=a||(a={})).Primary="primary",n.Secondary="secondary",n.Outline="outline",n.Text="text",n.Destructive="destructive",n.White="white",n.Simple="simple",n["Primary-Text"]="primary-text",n["Primary-Text-Delete"]="primary-text-delete",(o=i||(i={})).Small="small",o.Medium="medium",o.Large="large";let m={primary:"bg-primary text-white hover:bg-primary-dark rounded-md",secondary:"bg-gray300 hover:bg-gray-400 focus:bg-gray-400 rounded-md",white:"bg-white text-black rounded-md",outline:"bg-transparent border-2 border-primary rounded-md hover:bg-primary-opacity text-primary",text:"bg-transparent shadow-none hover:underline",destructive:"bg-error hover:bg-error-dark focus:bg-error-dark",simple:"shadow-none py-0 rounded-md hover:shadow-none text-black","primary-text":"cursor-pointer border-0 bg-transparent px-2 py-2.5 shadow-none hover:rounded-md hover:bg-primary hover:bg-opacity-10 hover:text-primary","primary-text-delete":"cursor-pointer border-0 bg-transparent px-2 py-2.5 shadow-none text-error hover:bg-error hover:bg-opacity-10 hover:text-error"},h={small:"p-1 md:text-sm text-xs",medium:"px-3 py-2 md:text-md text-sm",large:"px-4 py-2.5 md:text-lg text-base"};function f(e){let{children:t,onClick:r,variant:n="primary",size:o="medium",value:a,className:i="",disabled:d=!1,loading:f=!1,title:p,childrenLeft:y=!1,type:b="button",href:x,target:g,rel:v,tabIndex:w}=e,k=m[n],j=h[o],E="".concat("rounded-md flex items-center justify-center"," ").concat(k," ").concat(j," ").concat(i," leading-4 h-[45px] cursor-pointer outline-0 disabled:pointer-events-none disabled:bg-gray-400 disabled:text-white");return"link"===b||x?(0,s.jsxs)(u(),{href:x||"",className:"".concat(E," text-center"),target:g,rel:v,children:[y&&t,f?(0,s.jsx)(c.G,{icon:l.AX7,spin:!0,size:"lg"}):(0,s.jsx)("span",{className:"flex h-full items-center justify-center font-semibold",children:a}),!y&&t]}):(0,s.jsx)("button",{tabIndex:w,title:p,type:b,disabled:d||f,className:E,onClick:r,children:f?(0,s.jsx)(c.G,{icon:l.AX7,spin:!0,size:"lg"}):(0,s.jsxs)(s.Fragment,{children:[y&&t,a&&(0,s.jsx)("span",{children:a}),!y&&t]})})}},41173:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r(85893),o=r(67294),a=r(73935),i=r(91651);function s(e){let{isOpen:t,onClose:r}=e,[s,l]=(0,o.useState)(!1),c=async()=>{try{await (0,i.v_)("/events",{event:"HubSpotButtonClicked",properties:{page:location.pathname}})}catch(e){console.error("An error occurred while sending the HubSpot event. Error:",e)}};return((0,o.useEffect)(()=>{t&&c()},[t]),(0,o.useEffect)(()=>
1{l(!0)},[]),(0,o.useEffect)(()=>{if(!s)return;let e="https://js-na2.hsforms.net/forms/embed/242712109.js";if(document.querySelector('script[src="'.concat(e,'"]')))return;let t=document.createElement("script");return t.src=e,t.defer=!0,document.body.appendChild(t),()=>{document.body.contains(t)&&document.body.removeChild(t)}},[s]),(0,o.useEffect)(()=>{if(!s||!t)return;let e=document.querySelector(".hs-form-frame");if(!e)return;let r=e.querySelector("iframe");if(r){let t=r.src,n=r.clientHeight,o=!1,a=setInterval(()=>{let r=e.querySelector("iframe");if(!r||o)return;let i=r.clientHeight;if(n>400&&i<300){window.location.hash="thank-you-b2b",o=!0,clearInterval(a);return}r.src!==t&&((r.src.includes("thank")||r.src.includes("success")||r.src.includes("submitted"))&&(window.location.hash="thank-you-b2b",o=!0,clearInterval(a)),t=r.src),n=i},300);return()=>clearInterval(a)}let n=new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.forEach(t=>{if(t instanceof HTMLElement){var r;((null===(r=t.classList)||void 0===r?void 0:r.contains("submitted-message"))||e.querySelector(".submitted-message"))&&(window.location.hash="thank-you-b2b",n.disconnect())}})})});return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[s,t]),(0,o.useEffect)(()=>{if(t){let e=window.scrollY;document.documentElement.style.overflowY="scroll",document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.width="100%"}else{let e=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",document.documentElement.style.overflowY="",window.scrollTo(0,-1*parseInt(e||"0"))}},[t]),(0,o.useEffect)(()=>{if(!s)return;let e=e=>{"Escape"===e.key&&t&&r()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,r,s]),s)?(0,a.createPortal)((0,n.jsx)("div",{className:"fixed inset-0 z-[9999] overflow-y-auto overflow-x-hidden bg-black/60 p-4 backdrop-blur-sm transition-all duration-300 ".concat(t?"visible opacity-100":"pointer-events-none invisible opacity-0"),role:"dialog","aria-modal":"true","aria-label":"Book a walkthrough form",children:(0,n.jsx)("div",{className:"flex min-h-full items-center justify-center",onClick:e=>e.target===e.currentTarget&&r(),children:(0,n.jsxs)("div",{className:"relative my-8 w-full max-w-2xl rounded-2xl bg-white shadow-2xl transition-all duration-300 ease-out ".concat(t?"translate-y-0 scale-100 opacity-100":"translate-y-8 scale-95 opacity-0"),children:[(0,n.jsx)("button",{onClick:r,className:"absolute right-4 top-4 z-10 flex h-10 w-10 items-center justify-center rounded-full bg-primary-light text-gray-600 transition-all hover:text-gray-900","aria-label":"Close modal",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),(0,n.jsx)("div",{className:"hs-form-frame","data-region":"na2","data-form-id":"8c6a67b4-d1e0-4885-aa98-0b8a2ff45164","data-portal-id":"242712109"})]})})}),document.body):null}},91622:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r(85893),o=r(67294),a=r(21170),i=r(41173);function s(e){let{classes:t}=e,[r,s]=(0,o.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"".concat(t," flex flex-col gap-4 sm:flex-row"),children:(0,n.jsx)(a.ZP,{onClick:()=>{s(!0)},variant:a.L$.Simple,value:"Book a walkthrough",className:"border border-white text-white"})}),(0,n.jsx)(i.default,{isOpen:r,onClose:()=>s(!1)})]})}}},function(e){e.O(0,[1664,2888,9774,179],function(){return e(e.s=60672)}),_N_E=e.O()}]);
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.