1"use strict";(self.webpackChunkkeeperweb=self.webpackChunkkeeperweb||[]).push([[33197],{10844:function(e,t,n){n.d(t,{I:function(){return d}});var a=n(96540),i=n(80278),o=n(50887),s=n(24631),l=n(33265),c=n(95908),r=n(82818),m=n(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:i.Ay.t("unexpected_error"),this.forceUpdate()},this.form=new o.l(this,this.forceUS),this.useRecaptcha&&(this.recaptcha=new s.a(this)),this.state=Object.assign({endpoint:window.keeperPreload.apiEndpoint+this.defaultEndpoint},this.initialState())}componentDidUpdate(e,t){l.UI.getInstance().refreshMaterialDesign()}prependPageLead(e){c.F.getInstance().prependLead("pageKey",r.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?c.F.getInstance().getHubspotParams(m.r,this.hubspotFormID):{}),r.P.getInstance().getDefaultParams()),this.state)}}},33197:function(e,t,n){n.r(t),n.d(t,{SwitchToKeeperPopup:function(){return u}});var a=n(96540),i=n(80278),o=n(20839),s=n(79313),l=n(4976),c=n(45543),r=n(27162),m=n(33613),d=n(95908),h=n(10844),p=n(44992);class u extends h.I{constructor(e){super(e),this.name="SwitchToKeeperPopup",this.hubspotFormID="2c9ace13-2d70-4f88-8e04-7ae44ce58ca8",this._dialog=null,this._onDialogToggle=e=>{if("closed"!==e.newState)return;$("#switchToKeeperForm form .fs-dropdown").removeClass("fs-dropdown-focus");const t=`[name='${this.name}'] [name='companyNumEmployees']`;$(t).val(String(l.ye[0].value)).trigger("change"),$(t).parent().siblings("label").removeClass("optionSelected"),$("#switchToKeeperForm form .mdl-textfield").removeClass("is-invalid").removeClass("is-dirty")},this.onSubmit=e=>{e&&e.preventDefault(),this.form.isValid()&&this.prependPageLead("(LastPass to Keeper Switch Popup)");const t=this.buildRequest();this.sanitizeEmployeeCount(t),this.form.submit(t)},this.onValidate=()=>!0,this.onSuccess=e=>{this.sendAnalytics(),o._.getInstance().setSession("keeper_trial_email",(this.state.email||"").toLowerCase());let t=!1;e.hashedEmail&&(d.F.getInstance().b2bLeadConversionEvent(this.name,e.hashedEmail),t=!0),e.encrypted_rakuten_email&&!s.a.getInstance().hasAlreadyTriggeredPixel()?s.a.getInstance().getAffiliateEncryptedToken(e.encrypted_rakuten_email,this.state.email,e=>{s.a.getInstance().affiliateConversion(e.affiliate_quote_id,e.affiliate_email,"B2B"),setTimeout(()=>p.h.getInstance().thankyou("contact",["s=c"],this.form.getDataRegion()),1e3)}):t?setTimeout(()=>p.h.getInstance().thankyou("contact",["s=c"],this.form.getDataRegion()),1e3):p.h.getInstance().thankyou("contact",["s=c"],this.form.getDataRegion())},this.render=()=>a.createElement("form",{noValidate:!0,className:"materialDesign",name:this.name,"data-testid":"switch-to-keeper-form"},a.createElement("div",{className:"popupHeader"},a.createElement("div",null,a.createElement("h3",null,i.Ay.t("website_1239")),a.createElement("p",null,i.Ay.t("website_1240")))),a.createElement("div",{className:"gridRow"},a.createElement("div",{className:"colMobileFull colHalf"},a.createElement(l.k8,{component:this})),a.createElement("div",{className:"colMobileFull colHalf"},a.createElement(l.pc,{component:this}))),a.createElement("div",{className:"gridRow"},p.h.getInstance().localizeNameOrder([a.createElement(l.MK,{component:this}),a.createElement(l.yf,{component:this})]).map((e,t)=>a.createElement("div",{key:t,className:"colMobileFull colHalf"},e))),a.createElement("div",{className:"gridRow"},a.createElement("div",{className:"colMobileFull colHalf"},a.createElement(l.TP,{component:this})),a.createElement("div",{className:"colMobileFull colHalf"},a.createElement(l.bc,{id:"phone",component:this,label:i.Ay.t("website_direct_phone_number"),is_field_required:!1})),a.createElement("div",{className:"colMobileFull colHalf"},a.createElement(l.lK,{component:this})),a.createElement("div",{className:"colMobileFull colHalf"},a.createElement(l.tB,{component:this,label:i.Ay.t("website_company_
1slash_organization")})),a.createElement("div",{className:"colMobileFull colHalf"},a.createElement(l.Jy,{component:this})),a.createElement("div",{className:"colMobileFull colHalf"},a.createElement(l.EQ,{component:this}))),a.createElement("div",{className:"gridRow"},a.createElement("div",{className:"colFull text-center"},a.createElement(l.ML,{component:this,is_field_required:!0}))),a.createElement("div",{className:"gridRow"},a.createElement("div",{className:"colFull"},a.createElement(l.q2,{component:this}),a.createElement(l.wX,{component:this}),a.createElement(l.SO,{component:this}),a.createElement(l.XT,{component:this,label:i.Ay.t("website_submit"),disabled:!this.form.isFilled()}))),a.createElement("div",{className:"gridRow error-notice show"},a.createElement("div",{className:"colFull"},a.createElement(l.bx,{component:this})))),this.state={endpoint:window.keeperPreload.apiEndpoint+"/bi_api/v1/forms/white_paper"}}componentDidMount(){var e;c.W.setup(this,!0),$(document).on(`hubspot_autofill_complete.${this.name}`,()=>{(0,r.B)(this.name,"hubspot_autofilled")}),this._dialog=document.getElementById("SwitchToKeeperPopup"),null===(e=this._dialog)||void 0===e||e.addEventListener("toggle",this._onDialogToggle)}componentWillUnmount(){var e;c.W.teardown(this),$(document).off(`hubspot_autofill_complete.${this.name}`),null===(e=this._dialog)||void 0===e||e.removeEventListener("toggle",this._onDialogToggle)}sendAnalytics(){(0,m.R)({event:"mql-button-clicked",email:this.state.email})}}t.default=u},27162:function(e,t,n){n.d(t,{B:function(){return i}});class a{constructor(e,t,n){this.hitType="event",this.eventCategory=e,this.eventAction=t,this.eventLabel=n}}const i=(e,t,n)=>{const i=new a(e,t,n),o=()=>{"undefined"!=typeof gtag&>ag("event",i.eventAction,{event_category:i.eventCategory,event_label:i.eventLabel})};"undefined"==typeof gtag?"complete"===document.readyState?setTimeout(o,1e3):window.addEventListener("load",o,{once:!0}):o()}},33613:function(e,t,n){n.d(t,{R:function(){return a}});const a=e=>{!0===window.hasGTMLoaded&&window.dataLayer.push(e)}}}]);
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.