var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); "use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4843],{74843:function(e,t,n){n.d(t,{Yn:function(){return q}}),n(41539),n(81299),n(12419),n(47941),n(82526),n(57327),n(88449),n(2490),n(59849),n(57658),n(15581),n(34514),n(54747),n(49337);var o=n(15671),r=n(43144),i=n(97326),s=n(60136),c=n(82963),a=n(61120),l=n(4942),u=n(53229),p=(n(92222),n(15218),n(29254),n(68309),n(38880),n(87363)),h=n(63487),d=n(24695),f=n(50439),v=n(18444),y=n(46127),b=n(62912),g=n(34536),O=n(85906),m=n(14134),k=n(30633),j=n(86265),x=n(34741),C=n(78251),w=n(26e3),Z=n(88359),B=n(35421),T=n(71810),P=n(5196),E=n(15403),D=n(26320),N=function(e){return e.Base="base",e.Hover="hover",e.Active="active",e}({}),S=function(e){return e.Text="text",e.Icon="icon",e.IconText="icon-text",e}({}),R=n(94855);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z,A,_=function(e,t){var n,o=e.fontSettings,r=e.backgroundColor,i=e.borderRadius,s=e.border,c=e.shadow;return n={},(0,l.Z)(n,"--font-family-".concat(t),o.font),(0,l.Z)(n,"--font-weight-".concat(t),o.weight),(0,l.Z)(n,"--color-".concat(t),o.color),(0,l.Z)(n,"--background-color-".concat(t),r),(0,l.Z)(n,"--border-radius-".concat(t),i),(0,l.Z)(n,"--border-".concat(t),s),(0,l.Z)(n,"--shadow-".concat(t),c),n},K=function(e,t){var n,o=e.url,r=e.opacity;return n={},(0,l.Z)(n,"--icon-url-".concat(t),o?"url(".concat(o,")"):"none"),(0,l.Z)(n,"--icon-opacity-".concat(t),r),n},H=n(85893);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F="lc-button2",V=(0,m.Z)(F),M=(A=function(e){(0,s.Z)(h,e);var t,n,u=(t=h,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=(0,a.Z)(t);if(n){var r=(0,a.Z)(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return(0,c.Z)(this,e)});function h(){var e;(0,o.Z)(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=u.call.apply(u,[this].concat(n)),(0,l.Z)((0,i.Z)(e),"state",{isEditable:!1,link:""}),(0,l.Z)((0,i.Z)(e),"buttonRef",p.createRef()),e}return(0,r.Z)(h,[{key:"componentDidMount",value:function(){var e,t;this.setState({isEditable:(0,g.Hr)()}),null===(e=this.buttonRef)||void 0===e||null===(t=e.current)||void 0===t||t.addEventListener("keypress",this.handleKeypressed)}},{key:"componentWillUnmount",value:function(){var e;null===(e=this.buttonRef.current)||void 0===e||e.removeEventListener("keypress",this.handleKeypressed)}},{key:"shouldRenderIcon",get:function(){return this.props.customTheme.contentType!==S.Text}},{key:"shouldRenderText",get:function(){return this.props.customTheme.contentType!==S.Icon}},{key:"cssVariables",get:function(){var e,t,n,o,r=this.props,i=r.buttonSizes,s=r.customTheme.styles;return Q(Q(Q({},(t=(e=s).base,n=e.hover,o=e.active,I(I(I({},_(t,N.Base)),_(n||t,N.Hover)),_(o||n||t,N.Active)))),function(e){var t=e.base,n=e.hover,o=e.active,r=t.icon,i=null==n?void 0:n.icon,s=null==o?void 0:o.icon;return r?I(I(I({},K(r,N.Base)),K(i||r,N.Hover)),K(s||i||r,N.Active)):{}}(s)),function(e){return{"--sizes-width":"".concat(e.width,"px"),"--sizes-height":"".concat(e.height,"px"),"--sizes-padding-left":"".concat((0,R.v)(e.paddingLeft)),"--sizes-padding-right":"".concat((0,R.v)(e.paddingRight)),"--sizes-font-size":"".concat((0,R.v)(e.fontSize)),"--sizes-letter-spacing":"".concat((0,R.v)(e.letterSpacing)),"--sizes-icon-height":"".concat(e.iconHeight,"px"),"--sizes-icon-offset":"".concat(e.iconOffset,"px")}}(i))}},{key:"buttonClasses",get:function(){var e,t,n=this.props,o=n.actionType,r=n.className,i=n.buttonSizes.widthType,s=n.customTheme,c=s.animation,a=s.styles;return V({size:i,animation:null!=c&&c,layout:this.shouldRenderText&&null!==(e=null===(t=a.base.icon)||void 0===t?void 0:t.layout)&&void 0!==e&&e,type:null!=o&&o}).mix(r||"")()}},{key:"isNativeButton",get:function(){var e=this.props.actionType;return e&&[D.Q.SUBMIT,D.Q.BUTTON].indexOf(e)>-1}},{key:"render",value:function(){var e=this.props,t=e.anchor,n=e.actionType,o=e.link,r=e.disabled,i=e.name,s=e.value,c=e.events,a=e.withSmoothScroll,l=this.state.isEditable,u=o&&n===D.Q.LINK||t&&n===D.Q.ANCHOR&&"#"!==t?{}:{role:"button",tabIndex:0,ref:this.buttonRef};if(l)return(0,H.jsx)("div",Q(Q({className:this.buttonClasses,role:"button",style:this.cssVariables},u),{},{children:this.renderContent()}));if(this.isNativeButton)return(0,H.jsx)("button",Q(Q({type:n===D.Q.SUBMIT?"submit":"button",onClick:this.onButtonClick,className:this.buttonClasses,style:this.cssVariables,disabled:r,name:i,value:s},u),{},{children:this.renderContent()}));var p=n===D.Q.LINK,h=!!p&&this.props.isNewPage,d=p?this.state.link||o:t;return(0,H.jsx)("span",Q(Q({style:this.cssVariables},u),{},{children:(0,H.jsx)(w.h,{withSmoothScroll:a,className:this.buttonClasses,url:d,target:h?Z.U.Blank:Z.U.Self,onClick:this.onLinkClick,events:c,children:this.renderContent()})}))}},{key:"renderButtonIcon",value:function(){var e,t,n=this.props.customTheme,o=n.styles,r=n.contentType,i=o.hover,s=o.active;return(0,H.jsxs)("span",{className:V("icon")((0,l.Z)({},r,!0))(),children:[(null==s||null===(e=s.icon)||void 0===e?void 0:e.url)&&(0,H.jsx)("span",{className:V("image")({active:!0})()}),(null==i||null===(t=i.icon)||void 0===t?void 0:t.url)&&(0,H.jsx)("span",{className:V("image")({hover:!0})()}),(0,H.jsx)("span",{className:V("image")({base:!0})()})]})}},{key:"renderContent",value:function(){return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{className:V("under")()}),(0,H.jsxs)("span",{className:V("text")(),children:[this.shouldRenderIcon&&this.renderButtonIcon(),this.shouldRenderText&&this.getEditableComponent()]})]})}},{key:"handleBlur",value:function(){var e=this.props.onBlur;e&&e({isButtonBlur:!0})}},{key:"onLinkClick",value:function(e){var t=this.props,n=t.onClick,o=t.anchor;o&&E.Z.showSectionByAnchor(o.substr(1)),n&&n(e)}},{key:"onButtonClick",value:function(e){var t=this.props,n=t.onClick,o=t.events;n&&n(e),o&&B.Z.execute(T.TD.OnClick,o,{nativeEvent:e})}},{key:"handleKeypressed",value:function(e){var t=this.props,n=t.onClick,o=t.events;if("Enter"===e.code&&n){if(n(e),!o)return;B.Z.execute(T.TD.OnClick,o,{nativeEvent:e})}}},{key:"getEditableComponent",value:function(){var e=this.props,t=e.label,n=e.liveEditId,o=e.onChange,r=e.onFocus,i={align:b.Ab.CENTER,liveEditId:n,onFocus:r,onBlur:this.handleBlur,tag:"span"};return(0,H.jsx)(C.E,Q(Q({onChange:o},i),t))}}]),h}(p.Component),(0,l.Z)(A,"defaultProps",{events:[],actionType:D.Q.LINK,disabled:!1}),z=A,(0,u.Z)(z.prototype,"handleBlur",[O.a],Object.getOwnPropertyDescriptor(z.prototype,"handleBlur"),z.prototype),(0,u.Z)(z.prototype,"onLinkClick",[O.a],Object.getOwnPropertyDescriptor(z.prototype,"onLinkClick"),z.prototype),(0,u.Z)(z.prototype,"onButtonClick",[O.a],Object.getOwnPropertyDescriptor(z.prototype,"onButtonClick"),z.prototype),(0,u.Z)(z.prototype,"handleKeypressed",[O.a],Object.getOwnPropertyDescriptor(z.prototype,"handleKeypressed"),z.prototype),z),W=(0,h.qC)((0,f.$)("LcButton2"),(0,y.K)((function(e){return{browserPreset:(0,d.y0)(e).browserPreset,bannerid:(0,d.y0)(e).bannerid,browserType:(0,d.y0)(e).browserType}})),j.b,x.F,k.W,(0,v.u)(F))(M);function q(e){return(0,H.jsx)(P.x,{events:e.events,children:(0,H.jsx)(W,Q({},e))})}}}]); } /* FILE ARCHIVED ON 19:39:13 May 18, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:38:32 Nov 17, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.495 exclusion.robots: 0.033 exclusion.robots.policy: 0.024 esindex: 0.009 cdx.remote: 9.147 LoadShardBlock: 62.669 (3) PetaboxLoader3.datanode: 129.18 (5) load_resource: 339.834 (2) PetaboxLoader3.resolve: 193.124 (2) */