"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4314],{95237:function(n,e,t){t.d(e,{w:function(){return V}});var o,r,i,l,a,c,d,u,v,h,s,y,C,x,S,f,b,p=t(8529),g=t(2784),m=t(25237),O=t.n(m),T=t(41857),w=t(28885),k=t(11006),j=t(2243),Z=t(7328),z=t(48840),A=t(87330),I=t(51339),E=k.zo.div(o||(o=(0,Z.Z)(["\n display: none;\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n\n .LPMcontainer.LPMoverlay {\n display: none !important;\n }\n"]))),N=k.zo.div(r||(r=(0,Z.Z)(["\n margin: "," 0;\n border: solid 1px ",";\n width: 100%;\n"])),(0,z.W0)(4),function(n){return n.theme.colors.palette.greys.light}),W=(0,k.iv)(i||(i=(0,Z.Z)(["\n padding: "," ",";\n"])),(0,z.W0)(2),(0,z.W0)(2)),B=k.zo.div(l||(l=(0,Z.Z)(["\n ",";\n background-color: ",";\n display: flex;\n flex-direction: row;\n"])),W,function(n){var e;return(null===(e=n.topContainerStyleOverride)||void 0===e?void 0:e.backgroundColor)||"#eee"}),D=function(n){return function(e){return(0,k.iv)(a||(a=(0,Z.Z)(["\n ","\n background-color: ",";\n border: "," solid\n ",";\n color: ",";\n text-decoration: ",";\n box-shadow: ","\n ","\n ","\n ","\n ",";\n"])),(0,A.xv)("bodyText",e.startChatCTAStyle[n].button.text.style),e.startChatCTAStyle[n].button.backgroundColor,e.startChatCTAStyle[n].button.border.width,e.startChatCTAStyle[n].button.border.color,e.startChatCTAStyle[n].button.text.color,e.startChatCTAStyle[n].button.text.textDecoration,e.startChatCTAStyle[n].button.boxShadow.shadowX,e.startChatCTAStyle[n].button.boxShadow.shadowY,e.startChatCTAStyle[n].button.boxShadow.shadowBlur,e.startChatCTAStyle[n].button.boxShadow.shadowSpread,e.startChatCTAStyle[n].button.boxShadow.shadowColor)}},P=(0,k.iv)(c||(c=(0,Z.Z)(["\n ","\n\n &:hover {\n ","\n }\n\n &:focus {\n ","\n }\n\n &:active {\n ","\n }\n"])),D(I.BN.Default),D(I.BN.Hover),D(I.BN.Focus),D(I.BN.Active)),L=(0,k.zo)(I.zx)(d||(d=(0,Z.Z)(["\n > button {\n ","\n }\n"])),function(n){return n.startChatCTAStyle&&P}),_=k.zo.div(u||(u=(0,Z.Z)(["\n ","\n\n > div {\n border: ",";\n box-shadow: ",";\n background-color: ",";\n &:focus,\n &:focus-within,\n &:hover,\n &:disabled {\n border: ",";\n }\n }\n"])),W,function(n){return n.containerStyleOverride&&n.containerStyleOverride.border},function(n){return n.containerStyleOverride&&n.containerStyleOverride.boxShadow},function(n){return n.containerStyleOverride&&n.containerStyleOverride.backgroundColor},function(n){return n.containerStyleOverride&&n.containerStyleOverride.border}),M=k.zo.p(v||(v=(0,Z.Z)(["\n ",";\n\n margin-bottom: ",";\n"])),function(n){return(0,A.xv)(n.liveChatTextEntry&&n.liveChatTextEntry||"medium1","alternate")},(0,z.W0)(.5)),F=k.zo.p(h||(h=(0,Z.Z)(["\n ",";\n\n margin-bottom: ",";\n"])),(0,A.xv)("bodyText","default"),(0,z.W0)(2)),q=k.zo.div(s||(s=(0,Z.Z)(["\n margin-right: ",";\n width: ",";\n height: ",";\n background-color: ",";\n border-radius: 50%;\n overflow: hidden;\n"])),(0,z.W0)(2),function(n){return n.iconContainerStyleOverride?"".concat(n.iconContainerStyleOverride.width):"48px"},function(n){return n.iconContainerStyleOverride?"".concat(n.iconContainerStyleOverride.height):"48px"},function(n){return n.iconContainerStyleOverride?"".concat(n.iconContainerStyleOverride.color):"unset"}),G=(0,k.iv)(y||(y=(0,Z.Z)(["\n ","\n"])),function(n){return n.chatIconStyleOverride&&"position: ".concat(n.chatIconStyleOverride.position,";\n margin: ").concat(n.chatIconStyleOverride.margin,";\n top: ").concat(n.chatIconStyleOverride.top,";")}),H=k.zo.div(C||(C=(0,Z.Z)(["\n width: ",";\n height: ",";\n background-size: ",";\n background-position: ",";\n background-repeat: no-repeat;\n background-image: url(",");\n ",";\n"])),function(n){return n.chatIconStyleOverride?"".concat(n.chatIconStyleOverride.width):"100%"},function(n){return n.chatIconStyleOverride?"".concat(n.chatIconStyleOverride.height):"100%"},function(n){var e;return(null===(e=n.chatIconStyleOverride)||void 0===e?void 0:e.backgroundSize)||"contain"},function(n){var e;return(null===(e=n.chatIconStyleOverride)||void 0===e?void 0:e.backgroundPosition)||"unset"},function(n){return n.theme.site.favicon},G),X=k.zo.p(x||(x=(0,Z.Z)(["\n ",";\n color: #007831;\n margin-top: ",";\n margin-left: ",";\n"])),function(n){return(0,A.xv)("bodyText",n.onlineTextStyle||"default")},(0,z.W0)(-.55),(0,z.W0)(.5)),Y=k.zo.div(S||(S=(0,Z.Z)(["\n display: flex;\n align-items: flex-end;\n"]))),J=k.zo.p(f||(f=(0,Z.Z)(["\n ",";\n"])),(0,A.xv)("bodyText","default")),K=k.zo.div(b||(b=(0,Z.Z)(["\n display: flex;\n align-items: center;\n"]))),Q=t(52322),R=O()(function(){return Promise.resolve().then(t.bind(t,52332))},{loading:function(){return(0,Q.jsx)("div",{style:{width:24,height:24}})},loadableGenerated:{webpack:function(){return[52332]}}}),U=function(n,e){return n||e},V=(0,k.Zz)(function(n){if(!(0,T.ND)().liveChatEnabled)return null;var e,t,o,r,i,l,a,c={liveChat:(0,w.ag)("component.livechat.title.text"),operators:(0,w.ag)("component.livechat.operators.text"),online:(0,w.ag)("component.livechat.online.text"),connectionTime:(0,w.ag)("component.livechat.info.text"),startChat:(0,w.ag)("component.livechat.chat.button.text")},d=g.useState(!1),u=(0,p.Z)(d,2),v=u[0],h=u[1];return g.useEffect(function(){var n=setInterval(function(){h((0,j.Dh)(document))},2e3);return function(){clearInterval(n)}},[]),(0,Q.jsxs)(g.Fragment,{children:[v&&(0,Q.jsxs)(N,{children:[(0,Q.jsx)(B,{topContainerStyleOverride:U(null===(e=n.theme.pageTheme)||void 0===e||null===(e=e.liveChat)||void 0===e?void 0:e.topContainerStyleOverride,n.topContainerStyleOverride),children:(0,Q.jsxs)(K,{children:[(0,Q.jsx)(q,{iconContainerStyleOverride:U(null===(t=n.theme.pageTheme)||void 0===t||null===(t=t.liveChat)||void 0===t?void 0:t.iconContainerStyleOverride,n.iconContainerStyleOverride),children:n.theme.site.favicon?(0,Q.jsx)(H,{chatIconStyleOverride:U(null===(o=n.theme.pageTheme)||void 0===o||null===(o=o.liveChat)||void 0===o?void 0:o.chatIconStyleOverride,n.chatIconStyleOverride)}):(0,Q.jsx)(R,{})}),(0,Q.jsxs)("div",{children:[(0,Q.jsx)(M,{liveChatTextEntry:U(null===(r=n.theme.pageTheme)||void 0===r||null===(r=r.liveChat)||void 0===r||null===(r=r.liveChatTextEntry)||void 0===r?void 0:r.entry,n.liveChatTextEntry),children:c.liveChat}),(0,Q.jsxs)(Y,{children:[(0,Q.jsx)(J,{children:c.operators}),(0,Q.jsx)(X,{onlineTextStyle:U(null===(i=n.theme.pageTheme)||void 0===i||null===(i=i.liveChat)||void 0===i||null===(i=i.onlineTextStyle)||void 0===i?void 0:i.style,n.onlineTextStyle),children:c.online})]})]})]})}),(0,Q.jsxs)(_,{containerStyleOverride:U(null===(l=n.theme.pageTheme)||void 0===l||null===(l=l.liveChat)||void 0===l?void 0:l.containerStyleOverride,n.containerStyleOverride),children:[(0,Q.jsx)(F,{children:c.connectionTime}),(0,Q.jsx)(L,{startChatCTAStyle:U(null===(a=n.theme.pageTheme)||void 0===a||null===(a=a.liveChat)||void 0===a?void 0:a.startChatCTAStyle,n.startChatCTAStyle),onClick:function(){var n;v&&(0,j.bc)(document)&&(null===(n=(0,j.bc)(document))||void 0===n||n.click())},children:c.startChat})]})]}),(0,Q.jsx)(E,{children:(0,Q.jsx)("div",{className:"lp-panel",children:(0,Q.jsx)("div",{id:"checkout-lpButtonDiv"})})})]})})},4314:function(n,e,t){t.r(e),t.d(e,{LiveChat:function(){return o.w}});var o=t(95237)},2243:function(n,e,t){t.d(e,{Dh:function(){return r},bc:function(){return i}});var o=function(n){return n&&n.querySelector(".LPMcontainer")||null},r=function(n){return!!o(n)},i=function(n){var e;return null===(e=o(n))||void 0===e?void 0:e.childNodes[0]}}}]); //# sourceMappingURL=4314.c15228955fa1a9ef.js.map