1"use strict";(self.webpackChunkkeeperweb=self.webpackChunkkeeperweb||[]).push([[40938],{10844:function(e,t,s){s.d(t,{I:function(){return d}});var a=s(96540),n=s(80278),i=s(50887),r=s(24631),o=s(33265),l=s(95908),c=s(82818),p=s(6930);class d extends a.Component{get forceUS(){return!0}get useRecaptcha(){return!0}get defaultEndpoint(){return""}initialState(){return{}}constructor(e){super(e),this.locale=window.localStorage.getItem("keeper_locale")||"en_US",this.hubspotFormID="",this.onError=e=>{this.form.error=""!==e?e:n.Ay.t("unexpected_error"),this.forceUpdate()},this.form=new i.l(this,this.forceUS),this.useRecaptcha&&(this.recaptcha=new r.a(this)),this.state=Object.assign({endpoint:window.keeperPreload.apiEndpoint+this.defaultEndpoint},this.initialState())}componentDidUpdate(e,t){o.UI.getInstance().refreshMaterialDesign()}prependPageLead(e){l.F.getInstance().prependLead("pageKey",c.P.getInstance().getPageKey()+" | "+e)}dispatchSubmitEvent(){var e;(null===(e=this.formRef)||void 0===e?void 0:e.current)&&this.formRef.current.dispatchEvent(new Event("submit",{cancelable:!0}))}sanitizeEmployeeCount(e){e.companyNumEmployees||(e.companyNumEmployees="5")}buildRequest(){return Object.assign(Object.assign(Object.assign({},this.hubspotFormID?l.F.getInstance().getHubspotParams(p.r,this.hubspotFormID):{}),c.P.getInstance().getDefaultParams()),this.state)}}},40938:function(e,t,s){s.r(t),s.d(t,{BetaTestingSignupBusiness:function(){return u},default:function(){return h}});var a=s(96540),n=s(80278),i=s(33265);class r extends a.Component{constructor(e){super(e),this.generateRadios=()=>{let e=[];return this.props.options.map(t=>{e.push(a.createElement("label",{className:"mdl-radio mdl-js-radio mdl-js-ripple-effect",key:t.value,htmlFor:`radio_${this.props.group_id}_${t.value}`},a.createElement("input",{type:"radio",id:`radio_${this.props.group_id}_${t.value}`,className:"mdl-radio__button",name:this.props.group_id,value:t.value,checked:this.state.value===t.value,"aria-describedby":this.props.error?`radio_${this.props.group_id}-error`:void 0,onChange:e=>this.onChangeUpdateBoth(e,!0)}),a.createElement("span",{className:"mdl-radio__label"},t.label)))}),e},this.generateOptions=()=>{let e=[];return this.props.options.map(t=>{e.push(a.createElement("option",{key:t.value,value:t.value},t.label))}),e},this.state={value:this.props.defaultValue||e.options[0].value}}componentDidMount(){i.UI.getInstance().dropdown(this.refs.selector," ","field dropdown"),$(this.refs.selector).on("change",e=>{this.onChangeUpdateBoth(e,!1)})}onChangeUpdateBoth(e,t){!0===t?this.propChange(e.target.value):this.propChange(e.target.selectedOptions[0].value)}propChange(e){this.props.change(e),this.setState({value:e})}render(){return a.createElement("fieldset",null,a.createElement("legend",{className:"sr-only"},this.props.defaultOptionLabel||n.Ay.t("website_select_a_category")),a.createElement("div",{className:"desktop radio-nav",id:"radio_"+this.props.group_id},this.generateRadios()),a.createElement("div",{className:"mobile radio-nav",id:"select_"+this.props.group_id},a.createElement("select",{id:`select_input_${this.props.group_id}`,className:"field dropdown",ref:"selector",defaultValue:this.state.value,"aria-invalid":this.props.error?"true":void 0,"aria-describedby":this.props.error?`radio_${this.props.group_id}-error`:void 0,onChange:e=>this.onChangeUpdateBoth(e,!0)},this.generateOptions()),a.createElement("label",{className:"keeper-md optionSelected",htmlFor:`select_input_${this.props.group_id}`},this.props.defaultOptionLabel||n.Ay.t("website_select_a_category"))),a.createElement("span",{id:`radio_${this.props.group_id}-error`,className:"mdl-textfield__error",role:"alert","aria-live":"polite"},this.props.error))}}var o=s(78874),l=s(45543),c=s(4976),p=s(44992),d=s(10844);class u extends d.I{get forceUS(){return!1}constructor(e){super(e),this.name="BetaTestingSignupBusiness",this.products=[{label:n.Ay.t("website_nav_business"),value:"business"},{label:n.Ay.t("website_nav_enterprise"),value:"enterprise"},{label:"MSP",value:"msp"}],this.onSubmit=e=>{e&&e.preventDefault(),this.form.isValid()&&this.prependPageLead("(Contact Personal)"),this.form.submit(this.buildRequest())},this.onSuccess=e=>{p.h.getInstance().thankyou("contact",["s=beta"])},this.onValidate=()=>!0,this.render=()=>a.createElement("form",{noValidate:!0,className:"materialDesign",name:this.name,"data-testid":"beta-testing-business-form"},a.createElement("div",{className:"productType"},a.createElement(r,{group_id:"productType",defaultValue:this.state.product,change:this.onProductChange.bind(this),options:this.products}),"business"==this.state.products,"enterprise"==this.state.products,"msp"==this.state.products),a.createElement("div",{className:"gridRow"},p.h.getInstance().localizeNameOrder([a.createElement(c.MK,{component:this}),a.createElement(c.yf,{component:this})]).map((e,t)=>a.createElement("div",{key:t,className:"colMobileFull colHalf"},e))),a.createElement("div",{className:"colFull"}
1,a.createElement(c.Ps,{component:this})),a.createElement("div",{className:"colFull"},a.createElement("fieldset",{className:"products",name:"products"},a.createElement("label",{htmlFor:"products",className:"setPlatform"},n.Ay.t("website_set_platform")),a.createElement("div",{className:"productsList"},a.createElement(o.Y,Object.assign({},this.props,{isInlineBlock:!0,is_field_required:!1,change:e=>this.updateValue("ios",e.target.checked),name:"ios",label:"iOS"})),a.createElement(o.Y,Object.assign({},this.props,{isInlineBlock:!0,is_field_required:!1,change:e=>this.updateValue("android",e.target.checked),name:"android",label:"Android"})),a.createElement(o.Y,Object.assign({},this.props,{isInlineBlock:!0,is_field_required:!1,change:e=>this.updateValue("ssoOnPrem",e.target.checked),name:"sso_on_prem",label:"SSO On-Prem"})),a.createElement(o.Y,Object.assign({},this.props,{isInlineBlock:!0,is_field_required:!1,change:e=>this.updateValue("macDesktopApp",e.target.checked),name:"macDesktopApp",label:"Mac Desktop App"})),a.createElement(o.Y,Object.assign({},this.props,{isInlineBlock:!0,is_field_required:!1,change:e=>this.updateValue("windowsDesktopApp",e.target.checked),name:"windowsDesktopApp",label:"Windows Desktop App"})),a.createElement(o.Y,Object.assign({},this.props,{isInlineBlock:!0,is_field_required:!1,change:e=>this.updateValue("adminConsole",e.target.checked),name:"admin_console",label:"Admin Console"})),a.createElement(o.Y,Object.assign({},this.props,{isInlineBlock:!0,is_field_required:!1,change:e=>this.updateValue("extensions",e.target.checked),name:"extensions",label:n.Ay.t("website_browser_extension")})),a.createElement(o.Y,Object.assign({},this.props,{isInlineBlock:!0,is_field_required:!1,change:e=>this.updateValue("ssoConnectCloud",e.target.checked),name:"ssoConnectCloud",label:n.Ay.t("website_sso_connect_cloud_r")}))))),a.createElement("div",{className:"colFull text-center"},a.createElement(c.ML,{component:this,is_field_required:!0})),a.createElement("div",{className:"colFull text-center"},a.createElement(c.q2,{component:this}),a.createElement(c.wX,{component:this}),a.createElement(c.SO,{component:this}),a.createElement(c.XT,{component:this,label:n.Ay.t("website_submit"),disabled:!this.form.isFilled()})),a.createElement("div",{className:"colFull"},a.createElement(c.bx,{component:this}))),this.state={endpoint:window.keeperPreload.apiEndpoint+"/bi_api/v1/beta_program",ios:!1,android:!1,macDesktopApp:!1,windowsDesktopApp:!1,extensions:!1,ssoOnPrem:!1,ssoConnectCloud:!1,adminConsole:!1,product:"business"}}componentDidMount(){l.W.setup(this)}componentWillUnmount(){l.W.teardown(this)}onProductChange(e){this.setState({product:e})}updateValue(e,t){this.setState({[e]:t})}}var h=u},78874:function(e,t,s){s.d(t,{Y:function(){return r}});var a=s(96540),n=s(64067),i=s(27601);const r=e=>{const t=a.useRef(null),s=a.useRef(null),r=a.useRef(null),o=a.useId(),l=e.id||e.name||o,c=`${l}-error`;if((0,i.jk)(t,s,r,c,e.error),e.hide)return null;let p="mdl-checkbox mdl-js-checkbox";return e.isInlineBlock&&(p+=" mdl-checkbox-inline-block"),a.createElement("label",{ref:t,className:p,htmlFor:l},a.createElement("input",Object.assign({ref:s},!1!==e.is_field_required&&{"data-required":!0},{onChange:e.change,onBlur:e.blur,className:"mdl-checkbox__input",type:"checkbox",name:e.name,id:l,pattern:e.pattern,autoComplete:e.autoComplete,checked:e.checked,"data-testid":e.testId})),a.createElement("span",{className:"mdl-checkbox__label"},n.M.parseAllowedHtml(e.label)),a.createElement("span",{ref:r,id:c,className:"mdl-checkbox__error",role:"alert","aria-live":"polite"}))}}}]);
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.