"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5569],{91137:function(t,n,e){e.d(n,{m:function(){return r}});var r=function(t){return!!(t&&t.getElementById("ada-entry"))}},75569:function(t,n,e){e.r(n),e.d(n,{AdaChatbotWidgetRenderer:function(){return O}});var r,o,i,c,a=e(95235),u=e(2784),d=e(20406),s=e(8529),l=e(82841),f=e.n(l),b=e(91137),p=e(7328),h=e(11006),g=e(51339),v=h.zo.div(r||(r=(0,p.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n width: 100%;\n background-color: ",";\n height: 180px;\n margin: 0 auto;\n max-width: 1920px;\n"])),function(t){return t.backgroundColor||"#fffffff"}),x=h.zo.h1(o||(o=(0,p.Z)(["\n color: ",";\n"])),function(t){return t.textColor||"#000000"}),m=h.zo.p(i||(i=(0,p.Z)(["\n color: ",";\n"])),function(t){return t.textColor||"#000000"}),w=(0,h.zo)(g.zx)(c||(c=(0,p.Z)(["\n color: white\n border: 2px solid black;\n"]))),k=e(52322),y=function(t){var n,e=u.useState(!1),r=(0,s.Z)(e,2),o=r[0],i=r[1];u.useEffect(function(){if("undefined"!=typeof document){var t=function(){i((0,b.m)(document))};t();var n=new MutationObserver(function(){t()});return n.observe(document.body,{childList:!0,subtree:!0}),function(){return n.disconnect()}}},[]);var c=(n=(0,d.Z)(f().mark(function t(){return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(o&&window.adaEmbed)){t.next=6;break}return t.next=4,window.adaEmbed.triggerCampaign("Specialist_booking");case 4:t.next=7;break;case 6:console.warn("ADA Chatbot is not available.");case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error("Error triggering ADA Chat:",t.t0);case 12:case"end":return t.stop()}},t,null,[[0,9]])})),function(){return n.apply(this,arguments)});return(0,k.jsxs)(v,{backgroundColor:t.backgroundColor,children:[(0,k.jsx)(x,{textColor:t.textColor,children:t.heading}),(0,k.jsx)(m,{children:t.description}),(0,k.jsx)(w,{"data-testid":"ada-chatbot",emphasis:"high",onClick:function(){return c()},children:t.buttonLabel})]})};function C(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}var O=function(t){var n={title:t.title||void 0,heading:t.heading||void 0,description:t.description||void 0,backgroundColor:t.backgroundColor||void 0,textColor:t.textColor||void 0,buttonLabel:t.buttonLabel||void 0,buttonEmphasis:t.buttonEmphasis||void 0};return(0,k.jsx)(y,function(t){for(var n=1;n