1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91722],{574875:function(e,t,o){o.d(t,{M:function(){return l}});var n,i=o(279585);function r(e,t,o){o.set(e&&t?e/t:0)}var s=o(1050),c=o(252628),a=!1;function l(){return n||(n={scrollX:(0,i.B)(0),scrollY:(0,i.B)(0),scrollXProgress:(0,i.B)(0),scrollYProgress:(0,i.B)(0)}),(0,c.L)(function(){a||function(){if(a=!0,"undefined"!=typeof window){var e,t,o=(e=n,(t=function(){var t={xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight},o=t.xOffset,n=t.yOffset,i=t.xMaxOffset,s=t.yMaxOffset;e.scrollX.set(o),e.scrollY.set(n),r(o,i,e.scrollXProgress),r(n,s,e.scrollYProgress)})(),t);(0,s.E)(window,"scroll",o,{passive:!0}),(0,s.E)(window,"resize",o)}}()},[]),n}},291722:function(e,t,o){o.r(t),o.d(t,{default:function(){return C}});var n=o(759499),i=o(704730),r=o(667294),s=o(574875),c=o(384441),a=o(199100),l=o(899531),f=o(814141),d=o(470850),u=(0,f.ZP)(d.E.div).withConfig({displayName:"styled__CtaWidgetStyled",componentId:"sc-1qoltf5-0"})([".CtaWidgetContainer > div{background:",";}",""],function(e){return e.elementThemeVariables.background},function(e){return e.themeStyles}),h=(0,f.ZP)(d.E.div).withConfig({displayName:"styled__CtaWidgetContainer",componentId:"sc-1qoltf5-1"})([""]),g=o(744980),b=o(649332),m=o(667297),p=o(267533),w=o(995952),y=o(785893),O=["themeProps","webFormName","buttonLabel","title","body","logo","effect","highlight","showOnScroll","scrollPosition","layoutProps","isEditMode"];function P(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function v(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?P(Object(o),!0).forEach(function(t){(0,n.Z)(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):P(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var C=function(e){var t=e.themeProps,o=e.webFormName,n=void 0===o?"quote":o,f=e.buttonLabel,d=e.title,P=e.body,C=e.logo,j=e.effect,x=e.highlight,k=e.showOnScroll,W=void 0===k||k,_=e.scrollPosition,E=void 0===_?500:_,N=e.layoutProps,S=void 0===N?{}:N,M=e.isEditMode,B=(0,i.Z)(e,O),Y=(0,l.qt)().l,q=(0,a.bl)(),T=q.componentStyles,X=q.themeVariables,Z=(0,s.M)().scrollY,D=(0,r.useState)(M),H=D[0],L=D[1],V=(0,r.useRef)({});(0,r.useEffect)(function(){return Z.onChange(function(e){W&&e>E&&!(0,g.HP)("CtaWidgetShown")&&(F(),(0,g.fe)("CtaWidgetShown",!0))})},[Z]);var z={horizontal:{show:{effect:{y:0,width:400,opacity:1},transition:{type:"spring",damping:40,stiffness:300}},hide:{effect:{y:"10%",width:400,opacity:0}}}}[j||"horizontal"],F=(0,r.useCallback)(function(){return L(!0)},[]),I=(0,r.useCallback)(function(){return L(!1)},[]),Q=T.CtaWidget,R=(0,w.su)(Q.CtaWidget,t,X);return(0,y.jsxs)(u,v(v(v({},t),S),{},{className:"CtaWidget ".concat(H?"is-open":"is-closed"),themeStyles:R.styles,elementThemeVariables:R.elementThemeVariables,highlight:void 0===x?"theme":x,show:H,ref:V,children:[(0,y.jsx)(c.M,{children:H&&(0,y.jsxs)(h,{className:"CtaWidgetContainer",initial:z.hide.effect,exit:z.hide.effect,animate:z.show.effect,transition:z.show.transition,children:[(0,y.jsx)(p.default,{className:"Widget__close",value:"falTimes",onClick:I}),n&&(0,y.jsx)(m.default,{themeProps:v(v({},t),{},{elementTheme:"primary"}),contentProps:{title:B["title_".concat(Y)]||d,body:B["body_".concat(Y)]||P,icon:C,hasIcon:C},webFormName:n})]})}),(0,y.jsx)(b.Z,{themeProps:v(v({},t),{},{iconBackground:S.iconBackground,widgetPosition:S.widgetPosition,variantName:"ctaWidget"}),label:B["buttonLabel_".concat(Y)]||(void 0===f?"i18n.crm.requestQuote":f),icon:C,isHighlight:!0,onClick:F})]}))}}}]);
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.