/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
const a=a=>{if(!a.validators)return a.runValidation({validators:[],form:a.form});const r=a.event.async,n=r?void 0:{fn:a.validators.onMount,cause:"mount"},o={fn:r?a.validators.onChangeAsync:a.validators.onChange,cause:"change"},t={fn:r?a.validators.onBlurAsync:a.validators.onBlur,cause:"blur"},e={fn:r?a.validators.onSubmitAsync:a.validators.onSubmit,cause:"submit"},i=r?void 0:{fn:()=>{},cause:"server"};switch(a.event.type){case"mount":return a.runValidation({validators:[n],form:a.form});case"submit":return a.runValidation({validators:[o,t,e,i],form:a.form});case"server":return a.runValidation({validators:[],form:a.form});case"blur":return a.runValidation({validators:[t,i],form:a.form});case"change":return a.runValidation({validators:[o,i],form:a.form});default:throw new Error(`Unknown validation event type: ${a.event.type}`)}};export{a as defaultValidationLogic};