1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["temp_js_components_forms_js_inputHandler_alpine_js"],{1136:function(e,t,i){i.r(t),i.d(t,{default:function(){return r}});var s=i(4942);function r(e,t,i,r,n){var o,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=arguments.length>6?arguments[6]:void 0;return o={},(0,s.Z)(o,e,u),(0,s.Z)(o,"valid",!1),(0,s.Z)(o,"wasFocused",!1),(0,s.Z)(o,"isFocused",!1),(0,s.Z)(o,"typeMismatch",!0),(0,s.Z)(o,"valueMissing",!0),(0,s.Z)(o,"outputText",""),(0,s.Z)(o,"isFileSelected",!1),(0,s.Z)(o,"setFile",(function(e){var t=e.target.files[0];t?(this.fileName=t.name,this.isFileSelected=!0):(this.fileName="",this.isFileSelected=!1)})),(0,s.Z)(o,"getFileName",(function(){return this.fileName})),(0,s.Z)(o,"clearFile",(function(){this.fileName="",this.isFileSelected=!1,this.valid=!1,document.getElementById(e).value=null})),(0,s.Z)(o,"errorMessage",(function(){return"email"==r?this.valueMissing?i:n:this.hasServerError()?this.getServerError():i}
1)),(0,s.Z)(o,"anyChecked",(function(){var e=document.getElementById(t);new FormData(e).has(a)?this.valid=!0:this.valid=!1})),(0,s.Z)(o,"hideDescription",(function(){switch(r){case"email":return Boolean(!this.valid&&this.wasFocused&&!this.isFocused||this.typeMismatch&&this.wasFocused&&!this.isFocused||!this.valid&&!this.isFocused&&this.$store.forms.submissionAttempted[t]||this.hasServerError()&&!this.isFocused);case"checkbox":case"select":case"upload":default:return Boolean(!this.valid&&this.wasFocused&&!this.isFocused||!this.valid&&!this.isFocused&&this.$store.forms.submissionAttempted[t]||this.hasServerError()&&!this.isFocused);case"choice-group":return Boolean(!this.valid&&this.wasFocused&&!this.isFocused||!this.valid&&!this.isFocused&&this.$store.forms.submissionAttempted[t])}})),(0,s.Z)(o,"hideError",(function(){return Boolean(!this.hideDescription())})),(0,s.Z)(o,"validateField",(function(){var t=document.getElementById(e);this.typeMismatch=t.validity.typeMismatch,this.valueMissing=t.validity.valueMissing,this.valid=t.checkValidity()})),(0,s.Z)(o,"validateChoice",(function(){var t=document.getElementById(e);this.valid=t.checkValidity()})),(0,s.Z)(o,"validateUpload",(function(){var t=document.getElementById(e);this.valid=t.checkValidity()})),(0,s.Z)(o,"hasServerError",(function(){var e;return Boolean(null===(e=this.$store.forms.serverErrorFields[t])||void 0===e?void 0:e[a])})),(0,s.Z)(o,"getServerError",(function(){var e=this.$store.forms.serverErrorFields[t][a];return this.$store.forms.errorMessages[e]})),o}},4942:function(e,t,i){i.d(t,{Z:function(){return r}});var s=i(9142);function r(e,t,i){return(t=(0,s.Z)(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},9142:function(e,t,i){i.d(t,{Z:function(){return r}});var s=i(1002);function r(e){var t=function(e,t){if("object"!=(0,s.Z)(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=(0,s.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,s.Z)(t)?t:String(t)}},1002:function(e,t,i){function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}i.d(t,{Z:function(){return s}})}}]);
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.