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_createElementBlock","state","_hoisted_2","_createElementVNode","form","textHtml","_Fragment","_renderList","_createBlock","_resolveDynamicComponent","getComponentName","values","serverModelState","validations","onFieldChanged","privacyPolicyUrl","_createTextVNode","_createCommentVNode","_createVNode","submit","_withCtx","_toDisplayString","submitButtonText","successMessageHtml","close","errorMessageHtml","CustomFormRegistry","register","serverType","componentName","component","defaultValue","_fieldTypeComponentMappings","set","name","registerAsync","componentLoader","defineAsyncComponent","get","getComponent","getComponents","components","Map","customFormRegistry","t","FieldWidth","TextFieldType","CustomFormField","Vue","columnWidthClass","field","width","ThreeQuarters","Half","OneQuarter","Full","fieldType","hasErrors","isDirty","isValid","labelColor","fieldMessage","errors","push","getErrors","serverErrorMessages","serverState","undefined","join","hint","setDirty","onInput","value","modelValue","$emit","createValidator","data","required","test","enforce","isNotEmpty","emits","_normalizeClass","inputType","TextField","type","Email","isEmail","Number","isNumeric","render","MultilineTextField","GroupTitle","isChecked","CheckboxField","equals","valueAsArray","onCheckboxInput","CheckboxGroupField","Array","isArray","fieldValue","args","newValues","includes","Set","filter","s","RadioGroupField","condition","SelectField","RichtextContent","then","m","UploadField","EventRegistrationField","CustomForm","Mustache","Object","assign","metadata","length","mounted","response","ky","formId","json","initializeValueDictionary","initializeValidation","plausible","props","title","e","validate","fieldComponents","validator","ensureMetadata","payload","transactionId","post","throwHttpErrors","ok","status","reset","window","location","href","document","endsWith","slice","create","fieldName","only","fields","default"],"ignoreList":[0,3],"sources":["../../../node_modules/mustache/mustache.mjs","../../../Scripts/custom-form/custom-form.html?vue-htmltemplate","../../../Scripts/custom-form/registry.ts","../../../node_modules/n4s/dist/es/email.production.js","../../../Scripts/custom-form/models.ts","../../../Scripts/custom-form/custom-form-field.ts","../../../Scripts/custom-form/fields/text-field.html?vue-htmltemplate","../../../Scripts/custom-form/fields/text-field.ts","../../../Scripts/custom-form/fields/multiline-text-field.html?vue-htmltemplate","../../../Scripts/custom-form/fields/multiline-text-field.ts","../../../Scripts/custom-form/fields/group-title.html?vue-htmltemplate","../../../Scripts/custom-form/fields/group-title.ts","../../../Scripts/custom-form/fields/checkbox-field.html?vue-htmltemplate","../../../Scripts/custom-form/fields/checkbox-field.ts","../../../Scripts/custom-form/fields/checkbox-group-field.html?vue-htmltemplate","../../../Scripts/custom-form/fields/checkbox-group-field.ts","../../../Scripts/custom-form/fields/radio-group-field.html?vue-htmltemplate","../../../Scripts/custom-form/fields/radio-group-field.ts","../../../Scripts/custom-form/fields/select-field.html?vue-htmltemplate","../../../Scripts/custom-form/fields/select-field.ts","../../../Scripts/custom-form/fields/richtext-content.html?vue-htmltemplate","../../../Scripts/custom-form/fields/richtext-content.ts","../../../Scripts/custom-form/custom-form.ts"],"sourcesContent":["/*!\n * mustache.js - Logic-less {{mustache}} templates with JavaScript\n * http://github.com/janl/mustache.js\n */\n\nvar objectToString = Object.prototype.toString;\nvar isArray = Array.isArray || function isArrayPolyfill (object) {\n return objectToString.call(object) === '[object Array]';\n};\n\nfunction isFunction (object) {\n return typeof object === 'function';\n}\n\n/**\n * More correct typeof string handling array\n * which normally returns typeof 'object'\n */\nfunction typeStr (obj) {\n return isArray(obj) ? 'array' : typeof obj;\n}\n\nfunction escapeRegExp (string) {\n return string.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, '\\\\$&');\n}\n\n/**\n * Null safe way of checking whether or not an object,\n * including its prototype, has a given property\n */\nfunction hasProperty (obj, propName) {\n return obj != null && typeof obj === 'object' && (propName in obj);\n}\n\n/**\n * Safe way of detecting whether or not the given thing is a primitive and\n * whether it has the given property\n */\nfunction primitiveHasOwnProperty (primitive, propName) {\n return (\n primitive != null\n && typeof primitive !== 'object'\n && primitive.hasOwnProperty\n && primitive.hasOwnProperty(propName)\n );\n}\n\n// Workaround for https://issues.apache.org/jira/browse/COUCHDB-577\n// See https://github.com/janl/mustache.js/issues/189\nvar regExpTest = RegExp.prototype.test;\nfunction testRegExp (re, string) {\n return regExpTest.call(re, string);\n}\n\nvar nonSpaceRe = /\\S/;\nfunction isWhitespace (string) {\n return !testRegExp(nonSpaceRe, string);\n}\n\nvar entityMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '/': '/',\n '`': '`',\n '=': '='\n};\n\nfunction escapeHtml (string) {\n return String(string).replace(/[&<>\"'`=\\/]/g, function fromEntityMap (s) {\n return entityMap[s];\n });\n}\n\nvar whiteRe = /\\s*/;\nvar spaceRe = /\\s+/;\nvar equalsRe = /\\s*=/;\nvar curlyRe = /\\s*\\}/;\nvar tagRe = /#|\\^|\\/|>|\\{|&|=|!/;\n\n/**\n * Breaks up the given `template` string into a tree of tokens. If the `tags`\n * argument is given here it must be an array with two string values: the\n * opening and closing tags used in the template (e.g. [ \"<%\", \"%>\" ]). Of\n * course, the default is to use mustaches (i.e. mustache.tags).\n *\n * A token is an array with at least 4 elements. The first element is the\n * mustache symbol that was used inside the tag, e.g. \"#\" or \"&\". If the tag\n * did not contain a symbol (i.e. {{myValue}}) this element is \"name\". For\n * all text that appears outside a symbol this element is \"text\".\n *\n * The second element of a token is its \"value\". For mustache tags this is\n * whatever else was inside the tag besides the opening symbol. For text tokens\n * this is the text itself.\n *\n * The third and fourth elements of the token are the start and end indices,\n * respectively, of the token in the original template.\n *\n * Tokens that are the root node of a subtree contain two more elements: 1) an\n * array of tokens in the subtree and 2) the index in the original template at\n * which the closing tag for that section begins.\n *\n * Tokens for partials also contain two more elements: 1) a string value of\n * indendation prior to that tag and 2) the index of that tag on that line -\n * eg a value of 2 indicates the partial is the third tag on this line.\n */\nfunction parseTemplate (template, tags) {\n if (!template)\n return [];\n var lineHasNonSpace = false;\n var sections = []; // Stack to hold section tokens\n var tokens = []; // Buffer to hold the tokens\n var spaces = []; // Indices of whitespace tokens on the current line\n var hasTag = false; // Is there a {{tag}} on the current line?\n var nonSpace = false; // Is there a non-space char on the current line?\n var indentation = ''; // Tracks indentation for tags that use it\n var tagIndex = 0; // Stores a count of number of tags encountered on a line\n\n // Strips all whitespace tokens array for the current line\n // if there was a {{#tag}} on it and otherwise only space.\n function stripSpace () {\n if (hasTag && !nonSpace) {\n while (spaces.length)\n delete tokens[spaces.pop()];\n } else {\n spaces = [];\n }\n\n hasTag = false;\n nonSpace = false;\n }\n\n var openingTagRe, closingTagRe, closingCurlyRe;\n function compileTags (tagsToCompile) {\n if (typeof tagsToCompile === 'string')\n tagsToCompile = tagsToCompile.split(spaceRe, 2);\n\n if (!isArray(tagsToCompile) || tagsToCompile.length !== 2)\n throw new Error('Invalid tags: ' + tagsToCompile);\n\n openingTagRe = new RegExp(escapeRegExp(tagsToCompile[0]) + '\\\\s*');\n closingTagRe = new RegExp('\\\\s*' + escapeRegExp(tagsToCompile[1]));\n closingCurlyRe = new RegExp('\\\\s*' + escapeRegExp('}' + tagsToCompile[1]));\n }\n\n compileTags(tags || mustache.tags);\n\n var scanner = new Scanner(template);\n\n var start, type, value, chr, token, openSection;\n while (!scanner.eos()) {\n start = scanner.pos;\n\n // Match any text between tags.\n value = scanner.scanUntil(openingTagRe);\n\n if (value) {\n for (var i = 0, valueLength = value.length; i < valueLength; ++i) {\n chr = value.charAt(i);\n\n if (isWhitespace(chr)) {\n spaces.push(tokens.length);\n indentation += chr;\n } else {\n nonSpace = true;\n lineHasNonSpace = true;\n indentation += ' ';\n }\n\n tokens.push([ 'text', chr, start, start + 1 ]);\n start += 1;\n\n // Check for whitespace on the current line.\n if (chr === '\\n') {\n stripSpace();\n indentation = '';\n tagIndex = 0;\n lineHasNonSpace = false;\n }\n }\n }\n\n // Match the opening tag.\n if (!scanner.scan(openingTagRe))\n break;\n\n hasTag = true;\n\n // Get the tag type.\n type = scanner.scan(tagRe) || 'name';\n scanner.scan(whiteRe);\n\n // Get the tag value.\n if (type === '=') {\n value = scanner.scanUntil(equalsRe);\n scanner.scan(equalsRe);\n scanner.scanUntil(closingTagRe);\n } else if (type === '{') {\n value = scanner.scanUntil(closingCurlyRe);\n scanner.scan(curlyRe);\n scanner.scanUntil(closingTagRe);\n type = '&';\n } else {\n value = scanner.scanUntil(closingTagRe);\n }\n\n // Match the closing tag.\n if (!scanner.scan(closingTagRe))\n throw new Error('Unclosed tag at ' + scanner.pos);\n\n if (type == '>') {\n token = [ type, value, start, scanner.pos, indentation, tagIndex, lineHasNonSpace ];\n } else {\n token = [ type, value, start, scanner.pos ];\n }\n tagIndex++;\n tokens.push(token);\n\n if (type === '#' || type === '^') {\n sections.push(token);\n } else if (type === '/') {\n // Check section nesting.\n openSection = sections.pop();\n\n if (!openSection)\n throw new Error('Unopened section \"' + value + '\" at ' + start);\n\n if (openSection[1] !== value)\n throw new Error('Unclosed section \"' + openSection[1] + '\" at ' + start);\n } else if (type === 'name' || type === '{' || type === '&') {\n nonSpace = true;\n } else if (type === '=') {\n // Set the tags for the next time around.\n compileTags(value);\n }\n }\n\n stripSpace();\n\n // Make sure there are no open sections when we're done.\n openSection = sections.pop();\n\n if (openSection)\n throw new Error('Unclosed section \"' + openSection[1] + '\" at ' + scanner.pos);\n\n return nestTokens(squashTokens(tokens));\n}\n\n/**\n * Combines the values of consecutive text tokens in the given `tokens` array\n * to a single token.\n */\nfunction squashTokens (tokens) {\n var squashedTokens = [];\n\n var token, lastToken;\n for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) {\n token = tokens[i];\n\n if (token) {\n if (token[0] === 'text' && lastToken && lastToken[0] === 'text') {\n lastToken[1] += token[1];\n lastToken[3] = token[3];\n } else {\n squashedTokens.push(token);\n lastToken = token;\n }\n }\n }\n\n return squashedTokens;\n}\n\n/**\n * Forms the given array of `tokens` into a nested tree structure where\n * tokens that represent a section have two additional items: 1) an array of\n * all tokens that appear in that section and 2) the index in the original\n * template that represents the end of that section.\n */\nfunction nestTokens (tokens) {\n var nestedTokens = [];\n var collector = nestedTokens;\n var sections = [];\n\n var token, section;\n for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) {\n token = tokens[i];\n\n switch (token[0]) {\n case '#':\n case '^':\n collector.push(token);\n sections.push(token);\n collector = token[4] = [];\n break;\n case '/':\n section = sections.pop();\n section[5] = token[2];\n collector = sections.length > 0 ? sections[sections.length - 1][4] : nestedTokens;\n break;\n default:\n collector.push(token);\n }\n }\n\n return nestedTokens;\n}\n\n/**\n * A simple string scanner that is used by the template parser to find\n * tokens in template strings.\n */\nfunction Scanner (string) {\n this.string = string;\n this.tail = string;\n this.pos = 0;\n}\n\n/**\n * Returns `true` if the tail is empty (end of string).\n */\nScanner.prototype.eos = function eos () {\n return this.tail === '';\n};\n\n/**\n * Tries to match the given regular expression at the current position.\n * Returns the matched text if it can match, the empty string otherwise.\n */\nScanner.prototype.scan = function scan (re) {\n var match = this.tail.match(re);\n\n if (!match || match.index !== 0)\n return '';\n\n var string = match[0];\n\n this.tail = this.tail.substring(string.length);\n this.pos += string.length;\n\n return string;\n};\n\n/**\n * Skips all text until the given regular expression can be matched. Returns\n * the skipped string, which is the entire tail if no match can be made.\n */\nScanner.prototype.scanUntil = function scanUntil (re) {\n var index = this.tail.search(re), match;\n\n switch (index) {\n case -1:\n match = this.tail;\n this.tail = '';\n break;\n case 0:\n match = '';\n break;\n default:\n match = this.tail.substring(0, index);\n this.tail = this.tail.substring(index);\n }\n\n this.pos += match.length;\n\n return match;\n};\n\n/**\n * Represents a rendering context by wrapping a view object and\n * maintaining a reference to the parent context.\n */\nfunction Context (view, parentContext) {\n this.view = view;\n this.cache = { '.': this.view };\n this.parent = parentContext;\n}\n\n/**\n * Creates a new context using the given view with this context\n * as the parent.\n */\nContext.prototype.push = function push (view) {\n return new Context(view, this);\n};\n\n/**\n * Returns the value of the given name in this context, traversing\n * up the context hierarchy if the value is absent in this context's view.\n */\nContext.prototype.lookup = function lookup (name) {\n var cache = this.cache;\n\n var value;\n if (cache.hasOwnProperty(name)) {\n value = cache[name];\n } else {\n var context = this, intermediateValue, names, index, lookupHit = false;\n\n while (context) {\n if (name.indexOf('.') > 0) {\n intermediateValue = context.view;\n names = name.split('.');\n index = 0;\n\n /**\n * Using the dot notion path in `name`, we descend through the\n * nested objects.\n *\n * To be certain that the lookup has been successful, we have to\n * check if the last object in the path actually has the property\n * we are looking for. We store the result in `lookupHit`.\n *\n * This is specially necessary for when the value has been set to\n * `undefined` and we want to avoid looking up parent contexts.\n *\n * In the case where dot notation is used, we consider the lookup\n * to be successful even if the last \"object\" in the path is\n * not actually an object but a primitive (e.g., a string, or an\n * integer), because it is sometimes useful to access a property\n * of an autoboxed primitive, such as the length of a string.\n **/\n while (intermediateValue != null && index < names.length) {\n if (index === names.length - 1)\n lookupHit = (\n hasProperty(intermediateValue, names[index])\n || primitiveHasOwnProperty(intermediateValue, names[index])\n );\n\n intermediateValue = intermediateValue[names[index++]];\n }\n } else {\n intermediateValue = context.view[name];\n\n /**\n * Only checking against `hasProperty`, which always returns `false` if\n * `context.view` is not an object. Deliberately omitting the check\n * against `primitiveHasOwnProperty` if dot notation is not used.\n *\n * Consider this example:\n * ```\n * Mustache.render(\"The length of a football field is {{#length}}{{length}}{{/length}}.\", {length: \"100 yards\"})\n * ```\n *\n * If we were to check also against `primitiveHasOwnProperty`, as we do\n * in the dot notation case, then render call would return:\n *\n * \"The length of a football field is 9.\"\n *\n * rather than the expected:\n *\n * \"The length of a football field is 100 yards.\"\n **/\n lookupHit = hasProperty(context.view, name);\n }\n\n if (lookupHit) {\n value = intermediateValue;\n break;\n }\n\n context = context.parent;\n }\n\n cache[name] = value;\n }\n\n if (isFunction(value))\n value = value.call(this.view);\n\n return value;\n};\n\n/**\n * A Writer knows how to take a stream of tokens and render them to a\n * string, given a context. It also maintains a cache of templates to\n * avoid the need to parse the same template twice.\n */\nfunction Writer () {\n this.templateCache = {\n _cache: {},\n set: function set (key, value) {\n this._cache[key] = value;\n },\n get: function get (key) {\n return this._cache[key];\n },\n clear: function clear () {\n this._cache = {};\n }\n };\n}\n\n/**\n * Clears all cached templates in this writer.\n */\nWriter.prototype.clearCache = function clearCache () {\n if (typeof this.templateCache !== 'undefined') {\n this.templateCache.clear();\n }\n};\n\n/**\n * Parses and caches the given `template` according to the given `tags` or\n * `mustache.tags` if `tags` is omitted, and returns the array of tokens\n * that is generated from the parse.\n */\nWriter.prototype.parse = function parse (template, tags) {\n var cache = this.templateCache;\n var cacheKey = template + ':' + (tags || mustache.tags).join(':');\n var isCacheEnabled = typeof cache !== 'undefined';\n var tokens = isCacheEnabled ? cache.get(cacheKey) : undefined;\n\n if (tokens == undefined) {\n tokens = parseTemplate(template, tags);\n isCacheEnabled && cache.set(cacheKey, tokens);\n }\n return tokens;\n};\n\n/**\n * High-level method that is used to render the given `template` with\n * the given `view`.\n *\n * The optional `partials` argument may be an object that contains the\n * names and templates of partials that are used in the template. It may\n * also be a function that is used to load partial templates on the fly\n * that takes a single argument: the name of the partial.\n *\n * If the optional `config` argument is given here, then it should be an\n * object with a `tags` attribute or an `escape` attribute or both.\n * If an array is passed, then it will be interpreted the same way as\n * a `tags` attribute on a `config` object.\n *\n * The `tags` attribute of a `config` object must be an array with two\n * string values: the opening and closing tags used in the template (e.g.\n * [ \"<%\", \"%>\" ]). The default is to mustache.tags.\n *\n * The `escape` attribute of a `config` object must be a function which\n * accepts a string as input and outputs a safely escaped string.\n * If an `escape` function is not provided, then an HTML-safe string\n * escaping function is used as the default.\n */\nWriter.prototype.render = function render (template, view, partials, config) {\n var tags = this.getConfigTags(config);\n var tokens = this.parse(template, tags);\n var context = (view instanceof Context) ? view : new Context(view, undefined);\n return this.renderTokens(tokens, context, partials, template, config);\n};\n\n/**\n * Low-level method that renders the given array of `tokens` using\n * the given `context` and `partials`.\n *\n * Note: The `originalTemplate` is only ever used to extract the portion\n * of the original template that was contained in a higher-order section.\n * If the template doesn't use higher-order sections, this argument may\n * be omitted.\n */\nWriter.prototype.renderTokens = function renderTokens (tokens, context, partials, originalTemplate, config) {\n var buffer = '';\n\n var token, symbol, value;\n for (var i = 0, numTokens = tokens.length; i < numTokens; ++i) {\n value = undefined;\n token = tokens[i];\n symbol = token[0];\n\n if (symbol === '#') value = this.renderSection(token, context, partials, originalTemplate, config);\n else if (symbol === '^') value = this.renderInverted(token, context, partials, originalTemplate, config);\n else if (symbol === '>') value = this.renderPartial(token, context, partials, config);\n else if (symbol === '&') value = this.unescapedValue(token, context);\n else if (symbol === 'name') value = this.escapedValue(token, context, config);\n else if (symbol === 'text') value = this.rawValue(token);\n\n if (value !== undefined)\n buffer += value;\n }\n\n return buffer;\n};\n\nWriter.prototype.renderSection = function renderSection (token, context, partials, originalTemplate, config) {\n var self = this;\n var buffer = '';\n var value = context.lookup(token[1]);\n\n // This function is used to render an arbitrary template\n // in the current context by higher-order sections.\n function subRender (template) {\n return self.render(template, context, partials, config);\n }\n\n if (!value) return;\n\n if (isArray(value)) {\n for (var j = 0, valueLength = value.length; j < valueLength; ++j) {\n buffer += this.renderTokens(token[4], context.push(value[j]), partials, originalTemplate, config);\n }\n } else if (typeof value === 'object' || typeof value === 'string' || typeof value === 'number') {\n buffer += this.renderTokens(token[4], context.push(value), partials, originalTemplate, config);\n } else if (isFunction(value)) {\n if (typeof originalTemplate !== 'string')\n throw new Error('Cannot use higher-order sections without the original template');\n\n // Extract the portion of the original template that the section contains.\n value = value.call(context.view, originalTemplate.slice(token[3], token[5]), subRender);\n\n if (value != null)\n buffer += value;\n } else {\n buffer += this.renderTokens(token[4], context, partials, originalTemplate, config);\n }\n return buffer;\n};\n\nWriter.prototype.renderInverted = function renderInverted (token, context, partials, originalTemplate, config) {\n var value = context.lookup(token[1]);\n\n // Use JavaScript's definition of falsy. Include empty arrays.\n // See https://github.com/janl/mustache.js/issues/186\n if (!value || (isArray(value) && value.length === 0))\n return this.renderTokens(token[4], context, partials, originalTemplate, config);\n};\n\nWriter.prototype.indentPartial = function indentPartial (partial, indentation, lineHasNonSpace) {\n var filteredIndentation = indentation.replace(/[^ \\t]/g, '');\n var partialByNl = partial.split('\\n');\n for (var i = 0; i < partialByNl.length; i++) {\n if (partialByNl[i].length && (i > 0 || !lineHasNonSpace)) {\n partialByNl[i] = filteredIndentation + partialByNl[i];\n }\n }\n return partialByNl.join('\\n');\n};\n\nWriter.prototype.renderPartial = function renderPartial (token, context, partials, config) {\n if (!partials) return;\n var tags = this.getConfigTags(config);\n\n var value = isFunction(partials) ? partials(token[1]) : partials[token[1]];\n if (value != null) {\n var lineHasNonSpace = token[6];\n var tagIndex = token[5];\n var indentation = token[4];\n var indentedValue = value;\n if (tagIndex == 0 && indentation) {\n indentedValue = this.indentPartial(value, indentation, lineHasNonSpace);\n }\n var tokens = this.parse(indentedValue, tags);\n return this.renderTokens(tokens, context, partials, indentedValue, config);\n }\n};\n\nWriter.prototype.unescapedValue = function unescapedValue (token, context) {\n var value = context.lookup(token[1]);\n if (value != null)\n return value;\n};\n\nWriter.prototype.escapedValue = function escapedValue (token, context, config) {\n var escape = this.getConfigEscape(config) || mustache.escape;\n var value = context.lookup(token[1]);\n if (value != null)\n return (typeof value === 'number' && escape === mustache.escape) ? String(value) : escape(value);\n};\n\nWriter.prototype.rawValue = function rawValue (token) {\n return token[1];\n};\n\nWriter.prototype.getConfigTags = function getConfigTags (config) {\n if (isArray(config)) {\n return config;\n }\n else if (config && typeof config === 'object') {\n return config.tags;\n }\n else {\n return undefined;\n }\n};\n\nWriter.prototype.getConfigEscape = function getConfigEscape (config) {\n if (config && typeof config === 'object' && !isArray(config)) {\n return config.escape;\n }\n else {\n return undefined;\n }\n};\n\nvar mustache = {\n name: 'mustache.js',\n version: '4.2.0',\n tags: [ '{{', '}}' ],\n clearCache: undefined,\n escape: undefined,\n parse: undefined,\n render: undefined,\n Scanner: undefined,\n Context: undefined,\n Writer: undefined,\n /**\n * Allows a user to override the default caching strategy, by providing an\n * object with set, get and clear methods. This can also be used to disable\n * the cache by setting it to the literal `undefined`.\n */\n set templateCache (cache) {\n defaultWriter.templateCache = cache;\n },\n /**\n * Gets the default or overridden caching object from the default writer.\n */\n get templateCache () {\n return defaultWriter.templateCache;\n }\n};\n\n// All high-level mustache.* functions use this writer.\nvar defaultWriter = new Writer();\n\n/**\n * Clears all cached templates in the default writer.\n */\nmustache.clearCache = function clearCache () {\n return defaultWriter.clearCache();\n};\n\n/**\n * Parses and caches the given template in the default writer and returns the\n * array of tokens it contains. Doing this ahead of time avoids the need to\n * parse templates on the fly as they are rendered.\n */\nmustache.parse = function parse (template, tags) {\n return defaultWriter.parse(template, tags);\n};\n\n/**\n * Renders the `template` with the given `view`, `partials`, and `config`\n * using the default writer.\n */\nmustache.render = function render (template, view, partials, config) {\n if (typeof template !== 'string') {\n throw new TypeError('Invalid template! Template should be a \"string\" ' +\n 'but \"' + typeStr(template) + '\" was given as the first ' +\n 'argument for mustache#render(template, view, partials)');\n }\n\n return defaultWriter.render(template, view, partials, config);\n};\n\n// Export the escaping function so that the user may override it.\n// See https://github.com/janl/mustache.js/issues/244\nmustache.escape = escapeHtml;\n\n// Export these mainly for testing, but also for advanced usage.\nmustache.Scanner = Scanner;\nmustache.Context = Context;\nmustache.Writer = Writer;\n\nexport default mustache;\n","
\n\t
\n\t\t

{{ form.title }}

\n\t\t
\n\n\t\t
\n\t\t\t\n\n\t\t\t
Informationen zum Umgang mit den übermittelten Daten finden Sie in unserer Datenschutzerklärung.
\n\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t{{ submitButtonText }}\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
\n\n\t\n\t\t
\n\t\tSchliessen\n\t\n\n\t\n\t\t
\n\t\tSchliessen\n\t\n\n\t\n\t\t
\n\t\t\t

Leider funktioniert das Formular nicht

\n\t\t\t

Wir wurden bereits über das Problem informiert und werden es möglichst schnell beheben.

\n\t\t\t

Wenn Sie uns etwas mitteilen möchten, erreichen Sie uns über mail@trans-fair.ch oder 033 334 04 44.

\n\t\t
\n\t\tSchliessen\n\t
\n\n\t\n
\n","import { defineComponent, defineAsyncComponent } from \"vue\";\nimport type { AsyncComponentLoader, Component } from \"vue\";\n\ninterface ComponentData {\n\tname: string;\n\tcomponent: Component | AsyncComponentLoader;\n\tdefaultValue: any;\n}\n\nclass CustomFormRegistry {\n\tprivate _fieldTypeComponentMappings = new Map();\n\n\tregister(serverType: string, componentName: string, component: Component, defaultValue: any = null) {\n\t\tthis._fieldTypeComponentMappings.set(serverType, { name: componentName, component, defaultValue: defaultValue });\n\t}\n\n\tregisterAsync(serverType: string, componentName: string, componentLoader: AsyncComponentLoader, defaultValue: any = null) {\n\t\tthis._fieldTypeComponentMappings.set(serverType, { name: componentName, component: defineAsyncComponent(componentLoader), defaultValue: defaultValue });\n\t}\n\n\tgetComponentName(serverType: string) {\n\t\treturn this._fieldTypeComponentMappings.get(serverType)?.name;\n\t}\n\n\tgetComponent(serverType: string) {\n\t\treturn this._fieldTypeComponentMappings.get(serverType);\n\t}\n\n\tgetComponents() {\n\t\tlet components: { [name: string]: Component | AsyncComponentLoader } = {};\n\t\tfor (let { name, component } of this._fieldTypeComponentMappings.values()) {\n\t\t\tcomponents[name] = component;\n\t\t}\n\t\treturn components;\n\t}\n}\n\nexport const customFormRegistry = new CustomFormRegistry();\n","import{enforce as t}from\"n4s\";function e(t){return e=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},e(t)}function n(t){if(!(\"string\"==typeof t||t instanceof String)){var n=e(t);throw null===t?n=\"null\":\"object\"===n&&(n=t.constructor.name),new TypeError(\"Expected a string but received a \".concat(n))}}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t}function o(t){return o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},o(t)}function i(t,e){var r,i;n(t),\"object\"===o(e)?(r=e.min||0,i=e.max):(r=arguments[1],i=arguments[2]);var a=encodeURI(t).split(/%..|./).length-1;return a>=r&&(void 0===i||a<=i)}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};var c=\"(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\",l=\"(\".concat(c,\"[.]){3}\").concat(c),u=new RegExp(\"^\".concat(l,\"$\")),f=\"(?:[0-9a-fA-F]{1,4})\",s=new RegExp(\"^(\"+\"(?:\".concat(f,\":){7}(?:\").concat(f,\"|:)|\")+\"(?:\".concat(f,\":){6}(?:\").concat(l,\"|:\").concat(f,\"|:)|\")+\"(?:\".concat(f,\":){5}(?::\").concat(l,\"|(:\").concat(f,\"){1,2}|:)|\")+\"(?:\".concat(f,\":){4}(?:(:\").concat(f,\"){0,1}:\").concat(l,\"|(:\").concat(f,\"){1,3}|:)|\")+\"(?:\".concat(f,\":){3}(?:(:\").concat(f,\"){0,2}:\").concat(l,\"|(:\").concat(f,\"){1,4}|:)|\")+\"(?:\".concat(f,\":){2}(?:(:\").concat(f,\"){0,3}:\").concat(l,\"|(:\").concat(f,\"){1,5}|:)|\")+\"(?:\".concat(f,\":){1}(?:(:\").concat(f,\"){0,4}:\").concat(l,\"|(:\").concat(f,\"){1,6}|:)|\")+\"(?::((?::\".concat(f,\"){0,5}:\").concat(l,\"|(?::\").concat(f,\"){1,7}|:))\")+\")(%[0-9a-zA-Z-.:]{1,})?$\");function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";return n(t),(e=String(e))?\"4\"===e?u.test(t):\"6\"===e&&s.test(t):_(t,4)||_(t,6)}var x={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:\"\",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},d=/^([^\\x00-\\x1F\\x7F-\\x9F\\cX]+)$)/g,\"\"),c.endsWith(\" \")&&(c=c.slice(0,-1)),!function(t){var e=t.replace(/^\"(.+)\"$/,\"$1\");if(!e.trim())return!1;if(/[\\.\";<>]/.test(e)){if(e===t)return!1;if(e.split('\"').length!==e.split('\\\\\"').length)return!1}return!0}(c))return!1}else if(e.require_display_name)return!1}if(!e.ignore_max_length&&t.length>254)return!1;var l=t.split(\"@\"),u=l.pop(),f=u.toLowerCase();if(e.host_blacklist.includes(f))return!1;if(e.host_whitelist.length>0&&!e.host_whitelist.includes(f))return!1;var s=l.join(\"@\");if(e.domain_specific_validation&&(\"gmail.com\"===f||\"googlemail.com\"===f)){var y=(s=s.toLowerCase()).split(\"+\")[0];if(!i(y.replace(/\\./g,\"\"),{min:6,max:30}))return!1;for(var b=y.split(\".\"),v=0;v63&&!e.ignore_max_length||!/^[a-z_\\u00a1-\\uffff0-9-]+$/i.test(t)||/[\\uff01-\\uff5e]/.test(t)||/^-|-$/.test(t)||!e.allow_underscores&&/_/.test(t))}))}(u,{require_tld:e.require_tld,ignore_max_length:e.ignore_max_length})){if(!e.allow_ip_domain)return!1;if(!_(u)){if(!u.startsWith(\"[\")||!u.endsWith(\"]\"))return!1;var w=u.slice(1,-1);if(0===w.length||!_(w))return!1}}if('\"'===s[0])return s=s.slice(1,s.length-1),e.allow_utf8_local_part?h.test(s):p.test(s);for(var $=e.allow_utf8_local_part?F:g,D=s.split(\".\"),S=0;S extends Vue {\n\tisDirty: boolean = false;\n\n\t@Prop() form: Form;\n\t@Prop() field: TField;\n\t@Prop() values: any;\n\t@Prop() modelValue: TFieldValue;\n\t@Prop() serverState: any;\n\t@Prop() validations: SuiteResult;\n\n\tget columnWidthClass(): string {\n\t\tswitch (this.field.width) {\n\t\t\tcase FieldWidth.ThreeQuarters:\n\t\t\t\treturn \"is-three-quarters\";\n\t\t\tcase FieldWidth.Half:\n\t\t\t\treturn \"is-half\";\n\t\t\tcase FieldWidth.OneQuarter:\n\t\t\t\treturn \"is-one-quarter\";\n\t\t\tcase FieldWidth.Full:\n\t\t\tdefault:\n\t\t\t\treturn \"is-full\";\n\t\t}\n\t}\n\n\tget fieldType(): string | undefined {\n\t\tif (this.validations.hasErrors(this.field.name) && this.isDirty) {\n\t\t\treturn \"is-danger\";\n\t\t} else if (this.validations.isValid(this.field.name)) {\n\t\t\treturn \"is-success\";\n\t\t}\n\t}\n\n\tget labelColor(): string | undefined {\n\t\tif (this.validations.hasErrors(this.field.name)) {\n\t\t\treturn \"has-text-danger\";\n\t\t}\n\t}\n\n\tget fieldMessage(): string | null {\n\t\tif (this.validations.hasErrors(this.field.name)) {\n\t\t\tlet errors = [];\n\n\t\t\terrors.push(this.validations.getErrors(this.field.name));\n\n\t\t\tlet serverErrorMessages = this.serverState[this.field.name];\n\t\t\tif (serverErrorMessages !== undefined) {\n\t\t\t\terrors.push(...serverErrorMessages);\n\t\t\t}\n\n\t\t\treturn errors.join(\", \");\n\t\t} else {\n\t\t\treturn this.field.hint;\n\t\t}\n\t}\n\n\tsetDirty() {\n\t\tthis.isDirty = true;\n\t}\n\n\tonInput(value: TFieldValue | null) {\n\t\tif ((value != null && value !== \"\") || (this.modelValue != null || this.modelValue !== \"\")) {\n\t\t\tthis.setDirty();\n\t\t}\n\t\tthis.$emit(\"update:modelValue\", value);\n\t}\n\n\tcreateValidator(data: any): void {\n\t\tif (this.field.required) {\n\t\t\ttest(this.field.name, \"Bitte füllen Sie dieses Feld aus.\", () => {\n\t\t\t\tenforce(data[this.field.name]).isNotEmpty();\n\t\t\t});\n\t\t}\n\t}\n}\n","
\n \n \n \n
\n","import { Vue, Component, Prop, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\nimport { enforce, test } from \"vest\";\nimport \"vest/enforce/email\";\n\nimport { CustomFormField } from \"../custom-form-field\";\nimport { TextFieldType } from \"../models\";\n\nimport { render } from \"./text-field.html\";\n\n\n@Component({\n\trender\n})\nexport class TextField extends CustomFormField {\n\tget inputType(): string {\n\t\tswitch (this.field.type) {\n\t\t\tcase \"dateTime\":\n\t\t\t\treturn \"datetime-local\";\n\t\t}\n\t\treturn this.field.type ?? \"text\";\n\t}\n\n\tcreateValidator(data: any) {\n\t\tif (this.field.required) {\n\t\t\ttest(this.field.name, \"Bitte füllen Sie dieses Feld aus.\", () => {\n\t\t\t\tenforce(data[this.field.name]).isNotEmpty();\n\t\t\t});\n\t\t}\n\t\tif (this.field.type === TextFieldType.Email) {\n\t\t\ttest(this.field.name, \"Bitte geben Sie eine gültige E-Mail-Adresse an.\", () => {\n\t\t\t\tenforce(data[this.field.name]).isEmail();\n\t\t\t});\n\t\t}\n\t\tif (this.field.type === TextFieldType.Number) {\n\t\t\ttest(this.field.name, \"Bitte geben Sie eine Zahl ein.\", () => {\n\t\t\t\tenforce(data[this.field.name]).isNumeric();\n\t\t\t});\n\t\t}\n\t}\n}\n","
\n \n \n \n
\n","import { Vue, Component, Prop, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\nimport { CustomFormField } from \"../custom-form-field\";\n\nimport { render } from \"./multiline-text-field.html\";\n\n\n@Component({\n\trender\n})\nexport class MultilineTextField extends CustomFormField {\n}\n","
\n\t

{{ field.label }}

\n
\n","import { Vue, Component, Prop, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\nimport { CustomFormField } from \"../custom-form-field\";\n\nimport { render } from \"./group-title.html\";\n\n\n@Component({\n\trender\n})\nexport class GroupTitle extends CustomFormField {\n}\n","
\n\t
\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t
\n
\n","import { Vue, Component, Prop, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\n\nimport { CustomFormField } from \"../custom-form-field\";\nimport { render } from \"./checkbox-field.html\";\nimport { enforce, test } from \"vest\";\n\n@Component({\n\trender\n})\nexport class CheckboxField extends CustomFormField {\n\tget isChecked() {\n\t\treturn this.modelValue === true;\n\t}\n\n\tcreateValidator(data: any) {\n\t\tif (this.field.required) {\n\t\t\ttest(this.field.name, \"Dieses Feld muss aktiviert sein, um das Formular abschicken zu können.\", () => {\n\t\t\t\tenforce(data[this.field.name]).equals(true);\n\t\t\t});\n\t\t}\n\t}\n}\n","
\n \n
\n {{ fieldValue }}\n
\n
\n
\n","import { Vue, Component, Prop, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\nimport { enforce, test } from \"vest\";\nimport { CustomFormField } from \"../custom-form-field\";\n\nimport { render } from \"./checkbox-group-field.html\";\n\n@Component({\n\trender\n})\nexport class CheckboxGroupField extends CustomFormField {\n\tget valueAsArray(): string[] {\n\t\tif (!Array.isArray(this.modelValue)) {\n\t\t\treturn [];\n\t\t}\n\t\treturn this.modelValue;\n\t}\n\n\n\tcreateValidator(data: any) {\n\t\tif (this.field.required) {\n\t\t\ttest(this.field.name, \"Bitte wählen Sie eine oder mehrere Optionen aus.\", () => {\n\t\t\t\tenforce(data[this.field.name]).isArray().isNotEmpty();\n\t\t\t});\n\t\t}\n\t}\n\n\tonCheckboxInput(fieldValue: string, args: string[]) {\n\t\tlet newValues: string[];\n\n\t\tif (args.includes(fieldValue)) {\n\t\t\tnewValues = [...new Set([...this.valueAsArray, fieldValue])];\n\t\t} else {\n\t\t\tnewValues = this.valueAsArray.filter(s => s !== fieldValue);\n\t\t}\n\n\t\tthis.$emit(\"update:modelValue\", newValues);\n\t}\n}\n","
\n \n
\n Keine Auswahl\n {{ fieldValue }}\n
\n
\n
\n","import { Vue, Component, Prop, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\nimport { enforce, test } from \"vest\";\nimport { CustomFormField } from \"../custom-form-field\";\n\nimport { render } from \"./radio-group-field.html\";\n\n@Component({\n\trender\n})\nexport class RadioGroupField extends CustomFormField {\n\tcreateValidator(data: any) {\n\t\tif (this.field.required) {\n\t\t\ttest(this.field.name, \"Bitte wählen Sie eine Option aus.\", () => {\n\t\t\t\tenforce(data[this.field.name]).condition(value => this.field.values?.includes(value)).isNotEmpty();\n\t\t\t});\n\t\t}\n\t}\n}\n","
\n \n \n \n \n \n \n
\n","import { Vue, Component, Prop, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\nimport { CustomFormField } from \"../custom-form-field\";\n\nimport { render } from \"./select-field.html\";\nimport { enforce, test } from \"vest\";\n\n\n@Component({\n\trender\n})\nexport class SelectField extends CustomFormField {\n\tcreateValidator(data: any) {\n\t\tif (this.field.required) {\n\t\t\ttest(this.field.name, \"Bitte wählen Sie eine Option aus.\", () => {\n\t\t\t\tenforce(data[this.field.name]).isNotEmpty();\n\t\t\t});\n\t\t}\n\t}\n}\n","
\n","import { Vue, Component, Prop, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\nimport { CustomFormField } from \"../custom-form-field\";\n\nimport { render } from \"./richtext-content.html\";\n\n\n@Component({\n\trender\n})\nexport class RichtextContent extends CustomFormField {\n}\n","import { Vue, Component, Prop, Ref, Watch, Setup } from \"@wagich/vue-facing-decorator-metadata\";\nimport ky from \"ky\";\nimport Mustache from \"mustache\";\n\nimport { render } from \"./custom-form.html\";\nimport type { FormField, Form } from \"./models\";\nimport { customFormRegistry } from \"./registry\";\nimport { CustomFormField } from \"./custom-form-field\";\nimport { TextField } from \"./fields/text-field\";\nimport { MultilineTextField } from \"./fields/multiline-text-field\";\nimport { GroupTitle } from \"./fields/group-title\";\nimport { CheckboxField } from \"./fields/checkbox-field\";\nimport { CheckboxGroupField } from \"./fields/checkbox-group-field\";\nimport { RadioGroupField } from \"./fields/radio-group-field\";\nimport { SelectField } from \"./fields/select-field\";\nimport { RichtextContent } from \"./fields/richtext-content\";\nimport { create, each, enforce, only, test, type Suite, type SuiteResult } from \"vest\";\n\ncustomFormRegistry.register(\"Bluc.Forms.Models.FormGroupTitle, Bluc.Forms.Models\", \"GroupTitle\", GroupTitle);\ncustomFormRegistry.register(\"Bluc.Forms.Models.FormRichtextContent, Bluc.Forms.Models\", \"RichtextContent\", RichtextContent);\ncustomFormRegistry.register(\"Bluc.Forms.Models.TextFormField, Bluc.Forms.Models\", \"TextField\", TextField, \"\");\ncustomFormRegistry.register(\"Bluc.Forms.Models.MultilineTextFormField, Bluc.Forms.Models\", \"MultilineTextField\", MultilineTextField, \"\");\ncustomFormRegistry.register(\"Bluc.Forms.Models.CheckboxFormField, Bluc.Forms.Models\", \"CheckboxField\", CheckboxField, false);\ncustomFormRegistry.register(\"Bluc.Forms.Models.CheckboxGroupFormField, Bluc.Forms.Models\", \"CheckboxGroupField\", CheckboxGroupField);\ncustomFormRegistry.register(\"Bluc.Forms.Models.RadioGroupFormField, Bluc.Forms.Models\", \"RadioGroupField\", RadioGroupField, []);\ncustomFormRegistry.register(\"Bluc.Forms.Models.SelectFormField, Bluc.Forms.Models\", \"SelectField\", SelectField, []);\ncustomFormRegistry.registerAsync(\"Bluc.Forms.Models.UploadFormField, Bluc.Forms.Models\", \"UploadField\",\n\t() => import(\"./fields/upload-field\").then(m => m.UploadField));\ncustomFormRegistry.registerAsync(\"Transfair.Models.EventRegistrationFormField, Transfair\", \"EventRegistrationField\",\n\t() => import(\"./fields/event-registration-field\").then(m => m.EventRegistrationField));\n\nenum State {\n\tLoading = \"loading\",\n\tReady = \"ready\",\n\tActionSuccess = \"actionSuccess\",\n\tActionError = \"actionError\",\n\tError = \"error\",\n}\n\n\n@Component({\n\trender,\n\tcomponents: customFormRegistry.getComponents()\n})\nexport class CustomForm extends Vue {\n\tform: Form | null = null;\n\tvalues: any = {};\n\tvalidator: Suite void> = null!;\n\tvalidations: SuiteResult = null!;\n\tstate: State = State.Loading;\n\tserverModelState: { [fieldName: string]: string[]; } = {};\n\tisInitialized: boolean;\n\n\t@Ref(\"fieldComponents\") fieldComponents: CustomFormField[];\n\t@Prop({ required: true }) formId: string;\n\t@Prop({ type: Object, default: {} }) metadata: { [key: string]: any };\n\n\tget successMessageHtml(): string {\n\t\treturn Mustache.render(this.form?.successMessageHtml ?? \"\", Object.assign({}, this.metadata, this.values));\n\t}\n\tget errorMessageHtml(): string {\n\t\treturn Mustache.render(this.form?.errorMessageHtml ?? \"\", Object.assign({}, this.metadata, this.values));\n\t}\n\tget textHtml(): string {\n\t\treturn Mustache.render(this.form?.textHtml ?? \"\", this.metadata);\n\t}\n\tget submitButtonText(): string {\n\t\tif (this.form != null && this.form.submitButtonText != null && this.form.submitButtonText.length > 0) {\n\t\t\treturn this.form.submitButtonText;\n\t\t}\n\t\treturn \"Absenden\";\n\t}\n\tget privacyPolicyUrl(): string | undefined {\n\t\treturn this.form?.privacyPolicyUrl;\n\t}\n\n\tasync mounted() {\n\t\ttry {\n\t\t\tlet response = await ky.get(`/api/custom-form/${this.formId}`);\n\t\t\tlet form = await response.json
();\n\n\t\t\tthis.initializeValueDictionary(form);\n\t\t\tthis.initializeValidation(form);\n\t\t\tthis.form = form;\n\n\t\t\tthis.state = State.Ready;\n\n\t\t\ttry {\n\t\t\t\tplausible(\"Formular geöffnet\", { props: { \"Formular\": form.title } });\n\t\t\t} catch { }\n\t\t} catch (e) {\n\t\t\tthis.state = State.Error;\n\t\t}\n\t}\n\n\tgetComponentName(field: FormField): string | undefined {\n\t\treturn customFormRegistry.getComponentName(field.fieldType);\n\t}\n\n\tonFieldChanged(field: FormField) {\n\t\tif (this.serverModelState[field.name] !== undefined) {\n\t\t\tdelete this.serverModelState[field.name];\n\t\t}\n\t\tthis.validate(field.name);\n\t}\n\n\tvalidate(field?: string): boolean {\n\t\tif (this.form == null || this.fieldComponents == null) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfor (let component of this.fieldComponents) {\n\t\t\tif (field == null || component.field.name === field) {\n\t\t\t\tcomponent.setDirty();\n\t\t\t}\n\t\t}\n\t\tthis.validations = this.validator(this.values, field);\n\n\t\treturn this.validations.isValid();\n\t}\n\n\tasync submit() {\n\t\tthis.serverModelState = {};\n\t\tif (!this.validate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.state = State.Loading;\n\n\t\ttry {\n\t\t\tthis.ensureMetadata();\n\n\t\t\tlet payload = {\n\t\t\t\ttransactionId: this.form?.transactionId,\n\t\t\t\tdata: this.values,\n\t\t\t\tmetadata: this.metadata,\n\t\t\t};\n\n\t\t\tlet response = await ky.post(`/api/custom-form/${this.formId}`, {\n\t\t\t\tjson: payload,\n\t\t\t\tthrowHttpErrors: false\n\t\t\t});\n\n\t\t\tif (response.ok) {\n\t\t\t\tthis.state = State.ActionSuccess;\n\n\t\t\t\ttry {\n\t\t\t\t\tplausible(\"Formular abgeschickt\", { props: { \"Formular\": this.form!.title } });\n\t\t\t\t} catch { }\n\t\t\t}\n\t\t\telse if (response.status === 400) {\n\t\t\t\tthis.state = State.Ready;\n\t\t\t\tthis.serverModelState = await response.json();\n\n\t\t\t} else {\n\t\t\t\tthis.state = State.ActionError;\n\t\t\t}\n\n\t\t} catch (e) {\n\t\t\tthis.state = State.ActionError;\n\t\t}\n\t}\n\n\tasync reset() {\n\t\tthis.state = State.Ready;\n\t\tif (this.form != null) {\n\t\t\tthis.initializeValueDictionary(this.form);\n\t\t\tthis.initializeValidation(this.form);\n\t\t}\n\t}\n\n\tclose() {\n\t\tthis.$emit(\"close\");\n\t}\n\n\tprivate ensureMetadata() {\n\t\t// use readable, german keys because this will be output 1:1 to the user\n\t\t// keys should be valid mustache variable names (no spaces)\n\n\t\tthis.metadata[\"QuelleUrl\"] = window.location.href;\n\n\t\tlet title = document.title;\n\t\t// remove standard suffix\n\t\tif (title.endsWith(\"| TRANSfair\")) {\n\t\t\ttitle = title.slice(0, -12);\n\t\t}\n\t\tthis.metadata[\"Quelle\"] = title;\n\t}\n\n\tprivate initializeValidation(form: Form) {\n\t\tthis.validator = create((data: any, fieldName: string | undefined = undefined) => {\n\t\t\tonly(fieldName);\n\n\t\t\tfor (let component of this.fieldComponents) {\n\t\t\t\tcomponent.createValidator(data);\n\t\t\t}\n\t\t});\n\t\tthis.validations = this.validator.get();\n\t}\n\n\tprivate initializeValueDictionary(form: Form) {\n\t\tfor (let field of form.fields) {\n\t\t\tif (field.name != null) {\n\t\t\t\tlet component = customFormRegistry.getComponent(field.fieldType);\n\t\t\t\tthis.values[field.name] = component?.defaultValue;\n\t\t\t}\n\t\t}\n\t}\n}\n"],"file":"assets/custom-form-CAu3oGOe.js"}