(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[298],{6299:function(e,t,n){Promise.resolve().then(n.bind(n,5213))},5213:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r,l=n(7437),i=n(6648),o=n(7138),s=n(2265);function a(e="https://app.cal.com/embed/embed.js"){var t;let n,r;/*!  Copying ends here. */return t=window,n=function(e,t){e.q.push(t)},r=t.document,t.Cal=t.Cal||function(){let l=t.Cal,i=arguments;if(l.loaded||(l.ns={},l.q=l.q||[],r.head.appendChild(r.createElement("script")).src=e,l.loaded=!0),"init"===i[0]){let e=function(){n(e,arguments)},t=i[1];e.q=e.q||[],"string"==typeof t?(l.ns[t]=l.ns[t]||e,n(l.ns[t],i),n(l,["initNamespace",t])):n(l,i);return}n(l,i)},window.Cal}a.toString();var c={exports:{}},f={};c.exports=function(){if(r)return f;r=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,l=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(t,r,o){var s,a={},c=null,f=null;for(s in void 0!==o&&(c=""+o),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(f=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(a[s]=r[s]);if(t&&t.defaultProps)for(s in r=t.defaultProps)void 0===a[s]&&(a[s]=r[s]);return{$$typeof:e,type:t,key:c,ref:f,props:a,_owner:l.current}}return f.Fragment=t,f.jsx=o,f.jsxs=o,f}();let u=c.exports.jsx,d=function(e){let{calLink:t,calOrigin:n,namespace:r="",config:l,initConfig:i={},embedJsUrl:o,...c}=e;if(!t)throw Error("calLink is required");let f=(0,s.useRef)(!1),d=function(e){let[t,n]=(0,s.useState)();return(0,s.useEffect)(()=>{n(()=>a(e))},[]),t}(o),m=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!d||f.current||!m.current)return;f.current=!0;let e=m.current;r?(d("init",r,{...i,origin:n}),d.ns[r]("inline",{elementOrSelector:e,calLink:t,config:l})):(d("init",{...i,origin:n}),d("inline",{elementOrSelector:e,calLink:t,config:l}))},[d,t,l,r,n,i]),d?u("div",{ref:m,...c}):null};var m=n(6130);function h(){return(0,l.jsx)("main",{className:"flex flex-col items-center min-h-screen bg-green-900",children:(0,l.jsxs)("div",{className:"flex flex-col items-start w-[900px] max-w-full overflow-hidden px-2 md:px-8 py-8",children:[(0,l.jsx)(o.default,{href:"/",className:"mb-4",children:(0,l.jsx)("span",{className:"text-md text-white",children:"< Home"})}),(0,l.jsxs)("div",{className:"bg-white rounded-md p-6",children:[(0,l.jsx)(i.default,{src:"/logo_black.png",alt:"Chatting",className:"flex-shrink-0 flex-grow-0 w-[50px] h-[50px] mb-4",width:50,height:50,objectFit:"contain"}),(0,l.jsx)("h1",{className:"w-full text-start text-3xl md:text-5xl font-extrabold text-slate-800",style:{lineHeight:1},children:"Book a free demo"}),(0,l.jsx)("h2",{className:"text-start text-lg md:text-xl mt-2 opacity-80 text-slate-800",children:"Schedule a personalized demo to discover how HappySupport can transform your customer support experience."}),(0,l.jsx)("div",{className:"w-full flex justify-center mt-6",children:(0,l.jsx)(m.ErrorBoundary,{errorComponent:()=>(0,l.jsx)("div",{children:(0,l.jsxs)("p",{children:["Sorry, we couldn't load the calendar. Please contact us at ",(0,l.jsx)("a",{href:"mailto:hi@gysinn.com",children:"hi@gysinn.com"})," to book a demo."]})}),children:(0,l.jsx)(d,{calLink:"niklasgysinn/happy-support",style:{width:"100%",height:"100%",overflow:"scroll"},config:{layout:"month_view",theme:"light"}})})})]})]})})}}},function(e){e.O(0,[231,974,971,23,744],function(){return e(e.s=6299)}),_N_E=e.O()}]);