1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`39b274ad-2c22-4fc8-b8aa-3aab11f84709`,e._sentryDebugIdIdentifier=`sentry-dbid-39b274ad-2c22-4fc8-b8aa-3aab11f84709`)}catch{}})();import{bt as e}from"./BhNZ2RMv.js";import{n as t}from"./CzSa2gbi.js";var n=function(e){return e.SET_FIELD=`setField`,e.SET_CHECKBOX=`setCheckbox`,e.SET_FILE=`setFile`,e.SET_FIELD_PROPS=`setFieldProps`,e.CHECK_VALIDATION=`checkValidation`,e.SET_MULTIPLE_FIELDS=`setMultipleFields`,e.RESET_FORM=`resetForm`,e}({}),r=e=>e,i=e=>{r=e},a={isRequired:e=>e.required&&!e.inputProps.modelValue?.toString().trim()?(e.inputProps.errorText=r(`common.validation.error.required`),!1):!0,isValidEmail:e=>{let t=e.inputProps.modelValue?.toString().trim();return t?t.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)?!0:(e.inputProps.errorText=`Bitte geben Sie einen gültige e-Mail Adressen Format an.`,!1):!0},isValidZip:e=>{let t=e.inputProps.modelValue?.toString().trim();return t?t.match(/^[\p{L}\p{N}][\p{L}\p{N}\s-]{0,11}$/u)?!0:(e.inputProps.errorText=r(`common.validation.error.zip`),!1):!0},isValidUstid:e=>e.inputProps.modelValue?.toString().match(/^(ATU\d{8}|BE[01]\d{9}|BG\d{9,10}|HR\d{11}|(CY)?\d{8}[A-Z]|CZ\d{8,10}|DE\d{9}|DK\d{8}|EE\d{9}|FI\d{8}|FR[0-9A-Z]{2}\d{9}|EL\d{9}|HU\d{8}|IE(\d{7}[A-Z]{1,2}|\d[A-Z]\d{5}[A-Z])|IT\d{11}|LV\d{11}|LT(\d{9}|\d{12})|LU\d{8}|MT\d{8}|NL\d{9}B\d{2}|PL\d{10}|PT\d{9}|RO\d{2,10}|SK\d{10}|SI\d{8}|ES[A-Z](\d{8}|\d{7}[A-Z])|SE\d{12}|GB(\d{9}|\d{12}|GD[0-4]\d{2}|HA[5-9]\d{2}))$/)?!0:(e.inputProps.errorText=r(`common.validation.error.vatId`),!1),isValidPhone:e=>e.inputProps.modelValue?.toString().match(/^(\+)[1-9][0-9 \-]{3,40}$/)?!0:(e.inputProps.errorText=r(`common.validation.error.phone`),!1),isValidPassword:e=>{let t=e.inputProps.modelValue?.toString()||``;return t.length<8?(e.inputProps.errorText=r(`common.validation.error.passwordMinLength`,{minLength:8}),!1):/[A-Z]/.test(t)?/[a-z]/.test(t)?/\d/.test(t)?/[\p{P}\p{S}]/u.test(t)?(e.inputProps.errorText=void 0,!0):(e.inputProps.errorText=r(`common.validation.error.passwordSpecialChar`),!1):(e.inputProps.errorText=r(`common.validation.error.passwordDigit`),!1):(e.inputProps.errorText=r(`common.validation.error.passwordLowercase`),!1):(e.inputProps.errorText=r(`common.validation.error.passwordUppercase`),!1)},isCheckboxCLicked:e=>e.required&&e.inputProps.checked===!1?(e.inputProps.errorText=r(`common.validation.error.required`),!1):!0,isAtLeast18YearsOld:e=>{let t=e.inputProps.modelValue?.toString().trim();if(!t)return!0;let n=new Date(t);if(Number.isNaN(n.getTime()))return e.inputProps.errorText=r(`common.validation.error.birthday`),!1;let i=new Date;return n>new Date(i.getFullYear()-18,i.getMonth(),i.getDate())?(e.inputProps.errorText=r(`common.validation.error.ageMin`,{minAge:18}),!1):!0},isValidUrl:e=>{try{let t=new URL(String(e.inputProps.modelValue));if(t.protocol!==`http:`&&t.protocol!==`https:`)throw Error();return!0}catch{return e.inputProps.errorText=r(`common.validation.error.url`),!1}}},o=e=>{i(e)};function s(e){let t=!0,n=e.validationChecks?[...e.validationChecks]:[];e.inputProps.checked&&e.required?n.push(`isCheckboxCLicked`):e.required&&n.push(`isRequired`);for(let r of n){let n=a[r];n?n(e)||(t=!1):console.warn(`Validierungsfunktion "${r}" wurde nicht gefunden.`)}return t&&(e.inputProps.errorText=void 0),t}function c(e){let t=!0;for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];r&&(s(r)||(t=!1))}return t}function l(r){let i=e(structuredClone(r));try{let{t:e}=t();o(e)}catch{}function a(e){switch(e.type){case n.SET_FIELD:{let{key:t,value:n}=e.payload,r=i.fields[t];r&&(r.inputProps.modelValue=n,s(r));break}case n.SET_CHECKBOX:{let{key:t,value:n}=e.payload,r=i.fields[t];r&&(r.inputProps.checked=n,s(r));break}case n.SET_FILE:{let{key:t,file:n}=e.payload,r=i.fields[t];r&&(r.fileValue=n,s(r));break}case n.SET_FIELD_PROPS:{let{key:t,props:n}=e.payload,r=i.fields[t];r&&(r.inputProps={...r.inputProps,...n},s(r));break}case n.SET_MULTIPLE_FIELDS:for(let{key:t,props:n}of e.payload.fields){let e=i.fields[t];e&&(e.inputProps={...e.inputProps,...n},s(e))}break;case n.CHECK_VALIDATION:{let e=c(i.fields);i.formIsValid=e;break}case n.RESET_FORM:{let e=structuredClone(r);i.formIsValid=e.formIsValid;for(let t in i.fields)t in e.fields||delete i.fields[t];for(let[t,n]of Object.entries(e.fields))i.fields[t]=n;break}}}return{state:i,dispatch:a}}export{n,l as t};
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.