1"use strict";(globalThis.webpackChunksfra_boilerplate=globalThis.webpackChunksfra_boilerplate||[]).push([[5687],{7452:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});const r=function(e){return class extends e{handleSubmit(){return super.handleSubmit()}}}},3773:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});const r=function(e){return class extends e{warningShown=!1;ready=!1;initialValues={};prefs(){return{warningMessage:"",warningRef:"phoneMarketingWarning",hasSmsOptIn:!1,...super.prefs()}}init(){super.init(),setTimeout((()=>{this.ready=!0,this.refreshInitialValues()}))}refreshInitialValues(){this.getFields().forEach((e=>{this.initialValues[e.getName()]=e.ref("field").val()||""}))}showMarketingWarning(){this.ready&&!this.warningShown&&this.prefs().hasSmsOptIn&&(this.warningShown=!0,this.eventBus().emit("alert.inline.show",this.prefs().warningMessage,!1,this.prefs().warningRef,"m-warning"))}onSubmitted(e){if(e&&!e.success&&!e.redirectUrl){const s=e.fields||e.fieldErrors;if(s&&Object.keys(s).length)return this.eventBus().emit("alert.hide.toast.inline"),void Object.entries(s).forEach(((e,s)=>{let[t,r]=e;this.getById(t,(e=>{this.setFieldError(e,r),0===s&&e.setFocus()}))}));if(e.errorMessage&&500!==e.errorCode)return this.eventBus().emit("alert.hide.toast.inline"),this.getFields().forEach((s=>this.setFieldError(s,e.errorMessage))),void this.eventBus().emit("analytics.error.message",e.errorMessage)}this.warningShown=!1,super.onSubmitted(e),e&&e.success&&this.refreshInitialValues()}setFieldError(e,s){e.setError(s),e.ref("errorFeedback").setHtml(s)}handleCancel(){this.getFields().forEach((e=>{e.setValue(this.initialValues[e.getName()]||"",!0),e.clearError()})),this.eventBus().emit("alert.hide.toast.inline"),this.warningShown=!1}handleSubmit(){return super.handleSubmit()}}}}}]);
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.