{"version":3,"sources":["webpack:///./node_modules/@oiz/stzh-components/dist/esm-es5/stzh-input-description-cc38e214.js","webpack:///./node_modules/@oiz/stzh-components/dist/esm-es5/date-adapter-cbc340fa.js","webpack:///./node_modules/@oiz/stzh-components/dist/esm-es5/date-utils-be83fff1.js","webpack:///./node_modules/@oiz/stzh-components/dist/esm-es5/string-utils-f98ee4e8.js","webpack:///./node_modules/@oiz/stzh-components/dist/esm-es5/stzh-datepicker_3.entry.js","webpack:///./node_modules/@oiz/stzh-components/dist/esm-es5/translation-utils-2623783f.js","webpack:///./node_modules/@oiz/stzh-components/dist/esm-es5/utils-51148d9a.js"],"names":["StzhInputDescription","o","t","id","n","classPrefix","i","error","c","description","s","descriptionLong","r","descriptionLongUsed","e","moreInfoButtonLabel","class","concat","length","map","name","variant","type","slot","createGlobalAdapter","a","Date","isNaN","getTime","getDate","toString","getMonth","getFullYear","g","getHours","l","getMinutes","v","monthNames","p","monthNamesShort","u","dayNames","getDay","replace","format","Object","assign","window","stzhComponents","formats","parse","RegExp","match","groups","parseInt","Y","m","j","d","G","H","DaysOfWeek","ISO_DATE_FORMAT","parseISODate","Number","isInteger","createDate","printISODate","isEqual","isEqualMonth","addDays","setDate","startOfWeek","Monday","endOfWeek","startOfMonth","endOfMonth","setMonth","setYear","setFullYear","inRange","clamp","getViewOfMonth","push","getDaysInRange","createParagraphsFromBrs","camelCase","toUpperCase","__awaiter","Promise","h","next","done","value","then","apply","__generator","label","sent","trys","ops","throw","return","Symbol","iterator","this","TypeError","call","pop","StzhDatepicker","stzhChange","onRootFocus","input","setFocus","onInputChange","dateAdapter","calendar","emit","component","valueAsDate","onCalendarChange","detail","popover","hide","calendarMin","calendarMax","calendarIsDateDisabled","readonly","disabled","undefined","invalid","required","showMarker","size","inline","localization","buttonLabel","prototype","createDateFormatters","dateFormatLong","Intl","DateTimeFormat","$locale","day","month","year","valueWatcher","updateButtonAccessibleLabel","getPopover","selectedDateMessage","connectedCallback","componentWillLoad","element","$formats","$globals","componentDidLoad","render","tabindex","onFocus","ref","isDateDisabled","min","max","onStzhChange","noAutocomplete","placement","icon","a11yLabel","defineProperty","get","enumerable","configurable","style","radioCounter","StzhRadio","stzhFocus","stzhBlur","focusedByInput","onInput","checked","originalEvent","FocusEvent","view","bubbles","cancelable","dispatchEvent","onBlur","a11yDescribedby","focus","errorWatcher","_error","JSON","inputId","requiredFieldMarker","optionalFieldMarker","requiredFieldText","optionalFieldText","SELECTOR_RADIO","radiogroupCounter","StzhRadiogroup","_preventUpdateProperties","init","radios","Array","from","querySelectorAll","updateRadiosProperty","radiogroupId","watchValue","watchName","watchDisabled","watchInvalid","watchRequired","legend","hideLegend","direction","checkedRadio","preventUpdateProperties","updateCheckedRadioByValue","preventUpdatePropertiesWatcher","onChange","forEach","indexOf","find","uncheckRadios","componentShouldUpdate","componentDidRender","observer","MutationObserver","observe","childList","subtree","disconnectedCallback","disconnect","SUPPORTED_LANGUAGES","tc","split","trim","fetchTranslations","closest","lang","getLocale","sessionStorage","getItem","version","cacheTranslations","keys","$code","fetch","pathTranslations","ok","json","setItem","stringify","console","hasSlot","querySelector","childNodes","some","nodeType","TEXT_NODE","textContent","ELEMENT_NODE","hasAttribute","setPropsIfNull","getAttribute","isStzhElement","tagName","toLowerCase","nativeCloneNodeFn","Node","cloneNode","cloneElement","appendChild","cloneWrappedStzhElement","children"],"mappings":"6GAAA,oDAEIA,EAAuB,SAAUC,GACnC,IAAIC,EAAID,EAAEE,GACNC,EAAIH,EAAEI,YACNC,EAAIL,EAAEM,MACNC,EAAIP,EAAEQ,YACNC,EAAIT,EAAEU,gBACNC,EAAIX,EAAEY,oBACNC,EAAIb,EAAEc,oBACV,OAAO,YAAE,MAAO,CACdC,MAAO,GAAGC,OAAOb,EAAG,yBACpBD,GAAID,GACH,YAAE,MAAO,CACVc,MAAO,GAAGC,OAAOb,EAAG,YACnBE,EAAEY,OAAS,EAAI,YAAE,KAAM,CACxBF,MAAO,GAAGC,OAAOb,EAAG,iBACnBE,EAA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AC/B,IAAIV,EACAF,EACAU,EAEJ,GAAI+P,EAAc7P,GAEhBZ,EADAE,EAAI6Q,EAAanQ,GAAG,GAEpBF,EAAIE,MACC,CAKL,IAHA,IAAIqB,EADJ/B,EAAIU,EAAEkQ,YAEF/Q,EAAIa,EAEqB,IAAtBb,EAAEmR,SAASlQ,SAAiByP,EAAc1Q,EAAEmR,SAAS,KAAK,CAE/D,IAAI9Q,GADJL,EAAIA,EAAEmR,SAAS,IACLJ,YACV7O,EAAE+O,YAAY5Q,GACd6B,EAAI7B,CACN,CAEIqQ,EAAc1Q,EAAEmR,SAAS,KAC3BlR,EAAI+Q,EAAahR,EAAEmR,SAAS,IAAI,GAChCxQ,EAAIX,EAAEmR,SAAS,GACfjP,EAAE+O,YAAYhR,IAEdE,EAAI6Q,EAAanQ,GAAG,EAExB,CAEA,MAAO,CAACV,EAAGF,EAAGU,EAChB,C","file":"js/6-4a45cff69e14548153c9.chunk.js","sourcesContent":["import { h } from \"./index-319b7c49.js\";\n\nvar StzhInputDescription = function (o) {\n var t = o.id,\n n = o.classPrefix,\n i = o.error,\n c = o.description,\n s = o.descriptionLong,\n r = o.descriptionLongUsed,\n e = o.moreInfoButtonLabel;\n return h(\"div\", {\n class: \"\".concat(n, \"__description-wrapper\"),\n id: t\n }, h(\"div\", {\n class: \"\".concat(n, \"__error\")\n }, i.length > 0 ? h(\"ul\", {\n class: \"\".concat(n, \"__error-list\")\n }, i.map(function (o) {\n return h(\"li\", {\n class: \"\".concat(n, \"__error-listitem\")\n }, o);\n })) : h(\"slot\", {\n name: \"error\"\n })), h(\"div\", {\n class: \"\".concat(n, \"__description\")\n }, h(\"div\", {\n class: \"\".concat(n, \"__description-text\")\n }, c ? c : h(\"slot\", {\n name: \"description\"\n })), r && h(\"div\", {\n class: \"\".concat(n, \"__description-long\")\n }, h(\"stzh-popover\", {\n class: \"\".concat(n, \"__description-long-popover\"),\n variant: \"tooltip\"\n }, h(\"button\", {\n class: \"\".concat(n, \"__description-long-button\"),\n \"aria-label\": e,\n type: \"button\"\n }, h(\"stzh-icon\", {\n class: \"\".concat(n, \"__description-long-icon\"),\n name: \"info-help\"\n })), h(\"div\", {\n slot: \"label\"\n }, c ? c : h(\"slot\", {\n name: \"description\"\n })), h(\"div\", {\n slot: \"content\"\n }, s ? s : h(\"slot\", {\n name: \"description-long\"\n }))))));\n};\n\nexport { StzhInputDescription as S };","var createGlobalAdapter = function (e, a) {\n var r = function (e, r) {\n if (!r || !(r instanceof Date) || isNaN(r.getTime())) {\n return \"\";\n }\n\n var t = r.getDate().toString(10);\n var n = t;\n var o = (r.getMonth() + 1).toString(10);\n var i = o;\n var s = r.getFullYear().toString(10);\n var g = r.getHours().toString(10);\n var l = g;\n var c = r.getMinutes().toString(10);\n var v = a.monthNames[r.getMonth()];\n var p = a.monthNamesShort[r.getMonth()];\n var u = a.dayNames[r.getDay()];\n\n if (r.getMonth() < 9) {\n i = \"0\".concat(i);\n }\n\n if (r.getDate() < 10) {\n n = \"0\".concat(n);\n }\n\n if (r.getHours() < 10) {\n l = \"0\".concat(l);\n }\n\n if (r.getMinutes() < 10) {\n c = \"0\".concat(c);\n }\n\n return e.replace(/\\{j\\}/g, t).replace(/\\{d\\}/g, n).replace(/\\{l\\}/g, u).replace(/\\{n\\}/g, o).replace(/\\{m\\}/g, i).replace(/\\{F\\}/g, v).replace(/\\{M\\}/g, p).replace(/\\{Y\\}/g, s).replace(/\\{H\\}/g, l).replace(/\\{G\\}/g, g).replace(/\\{i\\}/g, c);\n };\n\n var t = function (e, a) {\n if (!a) {\n return;\n }\n\n var r = new RegExp(e);\n var t = a.match(r);\n\n if (t) {\n var n = t.groups;\n var o = parseInt(n.Y || \"\", 10);\n var i = parseInt(n.n || n.m || \"\", 10);\n var s = parseInt(n.j || n.d || \"\", 10);\n var g = parseInt(n.G || n.H || \"\", 10);\n var l = parseInt(n.i || \"\", 10);\n return new Date(!isNaN(o) ? o : null, !isNaN(i) ? i - 1 : null, !isNaN(s) ? s : null, !isNaN(g) ? g : null, !isNaN(l) ? l : null);\n }\n };\n\n var n = {\n format: function (a, t) {\n if (t === void 0) {\n t = \"date\";\n }\n\n var n;\n var o = Object.assign(Object.assign({}, e[t]), ((n = window.stzhComponents) === null || n === void 0 ? void 0 : n.formats[t]) || {});\n\n if (typeof o.format === \"string\") {\n return r(o.format, a);\n } else {\n return o.format(a);\n }\n },\n parse: function (a, r) {\n if (r === void 0) {\n r = \"date\";\n }\n\n var n;\n var o = Object.assign(Object.assign({}, e[r]), ((n = window.stzhComponents) === null || n === void 0 ? void 0 : n.formats[r]) || {});\n\n if (typeof o.parse === \"string\") {\n return t(o.parse, a);\n } else {\n return o.parse(a);\n }\n }\n };\n return n;\n};\n\nexport { createGlobalAdapter as c };","var ISO_DATE_FORMAT = /^(\\d{4})-(\\d{2})-(\\d{2})$/;\nvar DaysOfWeek;\n\n(function (e) {\n e[e[\"Sunday\"] = 0] = \"Sunday\";\n e[e[\"Monday\"] = 1] = \"Monday\";\n e[e[\"Tuesday\"] = 2] = \"Tuesday\";\n e[e[\"Wednesday\"] = 3] = \"Wednesday\";\n e[e[\"Thursday\"] = 4] = \"Thursday\";\n e[e[\"Friday\"] = 5] = \"Friday\";\n e[e[\"Saturday\"] = 6] = \"Saturday\";\n})(DaysOfWeek || (DaysOfWeek = {}));\n\nfunction createDate(e, t, a) {\n var n = parseInt(a, 10);\n var r = parseInt(t, 10);\n var s = parseInt(e, 10);\n var u = Number.isInteger(s) && Number.isInteger(r) && Number.isInteger(n) && r > 0 && r <= 12 && n > 0 && n <= 31 && s > 0;\n\n if (u) {\n return new Date(s, r - 1, n);\n }\n}\n\nfunction parseISODate(e) {\n if (!e) {\n return;\n }\n\n var t = e.match(ISO_DATE_FORMAT);\n\n if (t) {\n return createDate(t[1], t[2], t[3]);\n }\n}\n\nfunction printISODate(e) {\n if (!e) {\n return \"\";\n }\n\n var t = e.getDate().toString(10);\n var a = (e.getMonth() + 1).toString(10);\n var n = e.getFullYear().toString(10);\n\n if (e.getDate() < 10) {\n t = \"0\".concat(t);\n }\n\n if (e.getMonth() < 9) {\n a = \"0\".concat(a);\n }\n\n return \"\".concat(n, \"-\").concat(a, \"-\").concat(t);\n}\n\nfunction isEqual(e, t) {\n if (e == null || t == null) {\n return false;\n }\n\n return isEqualMonth(e, t) && e.getDate() === t.getDate();\n}\n\nfunction isEqualMonth(e, t) {\n if (e == null || t == null) {\n return false;\n }\n\n return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();\n}\n\nfunction addDays(e, t) {\n var a = new Date(e);\n a.setDate(a.getDate() + t);\n return a;\n}\n\nfunction startOfWeek(e, t) {\n if (t === void 0) {\n t = DaysOfWeek.Monday;\n }\n\n var a = new Date(e);\n var n = a.getDay();\n var r = (n < t ? 7 : 0) + n - t;\n a.setDate(a.getDate() - r);\n return a;\n}\n\nfunction endOfWeek(e, t) {\n if (t === void 0) {\n t = DaysOfWeek.Monday;\n }\n\n var a = new Date(e);\n var n = a.getDay();\n var r = (n < t ? -7 : 0) + 6 - (n - t);\n a.setDate(a.getDate() + r);\n return a;\n}\n\nfunction startOfMonth(e) {\n return new Date(e.getFullYear(), e.getMonth(), 1);\n}\n\nfunction endOfMonth(e) {\n return new Date(e.getFullYear(), e.getMonth() + 1, 0);\n}\n\nfunction setMonth(e, t) {\n var a = new Date(e);\n a.setMonth(t);\n return a;\n}\n\nfunction setYear(e, t) {\n var a = new Date(e);\n a.setFullYear(t);\n return a;\n}\n\nfunction inRange(e, t, a) {\n return clamp(e, t, a) === e;\n}\n\nfunction clamp(e, t, a) {\n var n = e.getTime();\n\n if (t && t instanceof Date && n < t.getTime()) {\n return t;\n }\n\n if (a && a instanceof Date && n > a.getTime()) {\n return a;\n }\n\n return e;\n}\n\nfunction getDaysInRange(e, t) {\n var a = [];\n var n = e;\n\n while (!isEqual(n, t)) {\n a.push(n);\n n = addDays(n, 1);\n }\n\n a.push(n);\n return a;\n}\n\nfunction getViewOfMonth(e, t) {\n if (t === void 0) {\n t = DaysOfWeek.Monday;\n }\n\n var a = startOfWeek(startOfMonth(e), t);\n var n = endOfWeek(endOfMonth(e), t);\n return getDaysInRange(a, n);\n}\n\nexport { DaysOfWeek as D, printISODate as a, isEqualMonth as b, inRange as c, clamp as d, addDays as e, endOfWeek as f, getViewOfMonth as g, setMonth as h, isEqual as i, startOfMonth as j, endOfMonth as k, setYear as l, parseISODate as p, startOfWeek as s };","function createParagraphsFromBrs(r) {\n var a = r.replace(/^\\s*(?:<br\\s*\\/?>\\s*)*/i, \"\").replace(/\\s*(?:<br\\s*\\/?>\\s*)*$/i, \"\").replace(/(?:<br\\s*\\/?>\\s*?){2,}/gi, \"</p><p>\");\n return \"<p>\".concat(a, \"</p>\");\n}\n\nfunction camelCase(r) {\n return r.replace(/-([a-z])/g, function (r) {\n return r[1].toUpperCase();\n });\n}\n\nexport { createParagraphsFromBrs as a, camelCase as c };","var __awaiter = this && this.__awaiter || function (t, e, r, i) {\n function o(t) {\n return t instanceof r ? t : new r(function (e) {\n e(t);\n });\n }\n\n return new (r || (r = Promise))(function (r, s) {\n function a(t) {\n try {\n h(i.next(t));\n } catch (e) {\n s(e);\n }\n }\n\n function n(t) {\n try {\n h(i[\"throw\"](t));\n } catch (e) {\n s(e);\n }\n }\n\n function h(t) {\n t.done ? r(t.value) : o(t.value).then(a, n);\n }\n\n h((i = i.apply(t, e || [])).next());\n });\n};\n\nvar __generator = this && this.__generator || function (t, e) {\n var r = {\n label: 0,\n sent: function () {\n if (s[0] & 1) throw s[1];\n return s[1];\n },\n trys: [],\n ops: []\n },\n i,\n o,\n s,\n a;\n return a = {\n next: n(0),\n throw: n(1),\n return: n(2)\n }, typeof Symbol === \"function\" && (a[Symbol.iterator] = function () {\n return this;\n }), a;\n\n function n(t) {\n return function (e) {\n return h([t, e]);\n };\n }\n\n function h(n) {\n if (i) throw new TypeError(\"Generator is already executing.\");\n\n while (a && (a = 0, n[0] && (r = 0)), r) try {\n if (i = 1, o && (s = n[0] & 2 ? o[\"return\"] : n[0] ? o[\"throw\"] || ((s = o[\"return\"]) && s.call(o), 0) : o.next) && !(s = s.call(o, n[1])).done) return s;\n if (o = 0, s) n = [n[0] & 2, s.value];\n\n switch (n[0]) {\n case 0:\n case 1:\n s = n;\n break;\n\n case 4:\n r.label++;\n return {\n value: n[1],\n done: false\n };\n\n case 5:\n r.label++;\n o = n[1];\n n = [0];\n continue;\n\n case 7:\n n = r.ops.pop();\n r.trys.pop();\n continue;\n\n default:\n if (!(s = r.trys, s = s.length > 0 && s[s.length - 1]) && (n[0] === 6 || n[0] === 2)) {\n r = 0;\n continue;\n }\n\n if (n[0] === 3 && (!s || n[1] > s[0] && n[1] < s[3])) {\n r.label = n[1];\n break;\n }\n\n if (n[0] === 6 && r.label < s[1]) {\n r.label = s[1];\n s = n;\n break;\n }\n\n if (s && r.label < s[2]) {\n r.label = s[2];\n r.ops.push(n);\n break;\n }\n\n if (s[2]) r.ops.pop();\n r.trys.pop();\n continue;\n }\n\n n = e.call(t, r);\n } catch (h) {\n n = [6, h];\n o = 0;\n } finally {\n i = s = 0;\n }\n\n if (n[0] & 5) throw n[1];\n return {\n value: n[0] ? n[1] : void 0,\n done: true\n };\n }\n};\n\nimport { r as registerInstance, e as createEvent, h, F as Fragment, c as Host, g as getElement } from \"./index-319b7c49.js\";\nimport { f as fetchTranslations } from \"./translation-utils-2623783f.js\";\nimport { a as printISODate, p as parseISODate } from \"./date-utils-be83fff1.js\";\nimport { c as createGlobalAdapter } from \"./date-adapter-cbc340fa.js\";\nimport { h as hasSlot } from \"./utils-51148d9a.js\";\nimport { S as StzhInputDescription } from \"./stzh-input-description-cc38e214.js\";\nimport { c as camelCase } from \"./string-utils-f98ee4e8.js\";\nvar stzhDatepickerCss = \".sc-stzh-datepicker-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-datepicker-h{display:none}.sc-stzh-datepicker-h *.sc-stzh-datepicker,.sc-stzh-datepicker-h *.sc-stzh-datepicker::before,.sc-stzh-datepicker-h *.sc-stzh-datepicker::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-datepicker-h{width:100%}.stzh-datepicker__popover.sc-stzh-datepicker{--padding:var(--stzh-space-medium);--width:auto}.stzh-datepicker__actions.sc-stzh-datepicker{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.stzh-datepicker__actions.sc-stzh-datepicker:not(:empty){margin-top:var(--stzh-space-xsmall)}\";\n\nvar StzhDatepicker = function () {\n function t(t) {\n var e = this;\n registerInstance(this, t);\n this.stzhChange = createEvent(this, \"stzhChange\", 7);\n\n this.onRootFocus = function () {\n if (e.input) {\n e.input.setFocus();\n }\n };\n\n this.onInputChange = function () {\n var t = e.dateAdapter.parse(e.input.value, \"inputdate\");\n\n if (e.input.value === \"\" || t) {\n var r = printISODate(t);\n\n if (e.calendar) {\n e.calendar.value = r;\n }\n\n e.value = r;\n e.stzhChange.emit({\n component: \"stzh-datepicker\",\n value: e.value,\n valueAsDate: t\n });\n }\n };\n\n this.onCalendarChange = function (t) {\n e.value = t.detail.value;\n e.stzhChange.emit({\n component: \"stzh-datepicker\",\n value: e.value,\n valueAsDate: t.detail.valueAsDate\n });\n\n if (e.input) {\n e.input.value = t.detail.valueAsDate && e.dateAdapter.format(t.detail.valueAsDate, \"inputdate\");\n }\n\n if (e.popover) {\n e.popover.hide();\n }\n };\n\n this.calendarMin = \"\";\n this.calendarMax = \"\";\n\n this.calendarIsDateDisabled = function () {\n return false;\n };\n\n this.name = \"\";\n this.value = \"\";\n this.label = \"\";\n this.readonly = false;\n this.disabled = false;\n this.description = undefined;\n this.descriptionLong = undefined;\n this.error = undefined;\n this.invalid = false;\n this.required = false;\n this.showMarker = false;\n this.size = \"default\";\n this.inline = false;\n this.dateAdapter = undefined;\n this.localization = undefined;\n this.buttonLabel = undefined;\n }\n\n t.prototype.createDateFormatters = function () {\n if (this.localization) {\n this.dateFormatLong = new Intl.DateTimeFormat(this.localization.$locale, {\n day: \"numeric\",\n month: \"long\",\n year: \"numeric\"\n });\n }\n };\n\n t.prototype.valueWatcher = function (t) {\n var e = parseISODate(t);\n\n if (this.calendar) {\n this.calendar.value = t;\n }\n\n if (this.input) {\n this.input.value = this.dateAdapter.format(e, \"inputdate\");\n }\n\n this.updateButtonAccessibleLabel();\n };\n\n t.prototype.setDate = function (t) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (e) {\n this.value = printISODate(t);\n return [2];\n });\n });\n };\n\n t.prototype.getPopover = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (t) {\n return [2, this.popover];\n });\n });\n };\n\n t.prototype.updateButtonAccessibleLabel = function () {\n if (!this.localization) {\n return;\n }\n\n try {\n var t = parseISODate(this.value);\n this.buttonLabel = \"\".concat(this.localization.buttonLabel, \", \").concat(this.localization.selectedDateMessage, \" \").concat(this.dateFormatLong.format(t));\n } catch (e) {\n this.buttonLabel = this.localization.buttonLabel;\n }\n };\n\n t.prototype.connectedCallback = function () {\n this.createDateFormatters();\n };\n\n t.prototype.componentWillLoad = function () {\n return __awaiter(this, void 0, void 0, function () {\n var t;\n return __generator(this, function (e) {\n switch (e.label) {\n case 0:\n if (!!this.localization) return [3, 2];\n t = this;\n return [4, fetchTranslations(this.element, \"datepicker\")];\n\n case 1:\n t.localization = e.sent();\n e.label = 2;\n\n case 2:\n if (!this.dateAdapter) {\n this.dateAdapter = createGlobalAdapter(this.localization.$formats, this.localization.$globals);\n }\n\n return [2];\n }\n });\n });\n };\n\n t.prototype.componentDidLoad = function () {\n this.valueWatcher(this.value);\n };\n\n t.prototype.render = function () {\n var t = this;\n var e = {\n \"stzh-datepicker\": true,\n \"stzh-datepicker--inline\": this.inline\n };\n return h(Host, {\n tabindex: this.disabled ? null : \"-1\",\n onFocus: this.onRootFocus\n }, h(\"div\", {\n class: e\n }, h(\"input\", {\n type: \"hidden\",\n name: this.name,\n value: this.value\n }), this.inline && h(Fragment, null, h(\"stzh-calendar\", {\n ref: function (e) {\n return t.calendar = e;\n },\n isDateDisabled: this.calendarIsDateDisabled,\n min: this.calendarMin,\n max: this.calendarMax,\n onStzhChange: this.onCalendarChange\n }), h(\"div\", {\n class: \"stzh-datepicker__actions\"\n }, h(\"slot\", {\n name: \"action\"\n }))), !this.inline && h(\"stzh-input\", {\n label: this.label,\n ref: function (e) {\n return t.input = e;\n },\n noAutocomplete: true,\n onStzhChange: this.onInputChange,\n readonly: this.readonly,\n disabled: this.disabled,\n description: this.description,\n descriptionLong: this.descriptionLong,\n error: this.error,\n invalid: this.invalid,\n required: this.required,\n showMarker: this.showMarker,\n size: this.size\n }, h(\"stzh-popover\", {\n ref: function (e) {\n return t.popover = e;\n },\n class: \"stzh-datepicker__popover\",\n slot: \"button-right\",\n placement: \"bottom-end\",\n label: this.label\n }, h(\"stzh-button\", {\n variant: \"input\",\n \"icon-only\": true,\n icon: \"calendar\",\n disabled: this.disabled,\n a11yLabel: this.buttonLabel\n }), h(\"div\", {\n slot: \"content\"\n }, h(\"stzh-calendar\", {\n ref: function (e) {\n return t.calendar = e;\n },\n isDateDisabled: this.calendarIsDateDisabled,\n min: this.calendarMin,\n max: this.calendarMax,\n onStzhChange: this.onCalendarChange\n }), h(\"div\", {\n class: \"stzh-datepicker__actions\"\n }, h(\"slot\", {\n name: \"action\"\n })))))));\n };\n\n Object.defineProperty(t.prototype, \"element\", {\n get: function () {\n return getElement(this);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(t, \"watchers\", {\n get: function () {\n return {\n localization: [\"createDateFormatters\"],\n value: [\"valueWatcher\"]\n };\n },\n enumerable: false,\n configurable: true\n });\n return t;\n}();\n\nStzhDatepicker.style = stzhDatepickerCss;\nvar stzhRadioCss = '.sc-stzh-radio-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-radio-h{display:none}.sc-stzh-radio-h *.sc-stzh-radio,.sc-stzh-radio-h *.sc-stzh-radio::before,.sc-stzh-radio-h *.sc-stzh-radio::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-radio-h{display:inline-block}.sc-stzh-radio-h .sc-stzh-radio-s>stzh-text{--color:inherit}.stzh-radio__marker-symbol.sc-stzh-radio{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-radio__marker-text.sc-stzh-radio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radio__description-wrapper.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-radio__error.sc-stzh-radio,.stzh-radio__description.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-radio__error.sc-stzh-radio{color:var(--stzh-color-error)}.stzh-radio__error-list.sc-stzh-radio{list-style:none;margin:0;padding:0}.stzh-radio__description.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-radio__description-long.sc-stzh-radio{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-radio__description-long-popover.sc-stzh-radio{--width:auto;--max-width:27.3125rem}.stzh-radio__description-long-popover[open].sc-stzh-radio:not([open=false]) .stzh-radio__description-long-button.sc-stzh-radio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio__description-long-button.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-radio__description-long-button.sc-stzh-radio:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio.sc-stzh-radio stzh-icon.stzh-radio__description-long-icon.sc-stzh-radio{--size:var(--stzh-icon-size-xsmall)}.stzh-radio--has-error.sc-stzh-radio .stzh-radio__error.sc-stzh-radio,.stzh-radio--has-description.sc-stzh-radio .stzh-radio__description.sc-stzh-radio{margin-top:var(--stzh-space-xxsmall)}.stzh-radio__field-wrapper.sc-stzh-radio{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.stzh-radio__input.sc-stzh-radio{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--stzh-form-input-border-radius)}.stzh-radio__mark.sc-stzh-radio{border:0.0625rem solid var(--stzh-color-grey61);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;-ms-flex-negative:0;flex-shrink:0;border-radius:50%;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:border-color var(--stzh-base-transition-animation-speed);transition:border-color var(--stzh-base-transition-animation-speed)}.stzh-radio__mark.sc-stzh-radio::before{content:\"\"}.stzh-radio__check.sc-stzh-radio{background-color:currentColor;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));width:0.5rem;height:0.5rem;border-radius:50%;opacity:0}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-radio__check.sc-stzh-radio{background-color:ButtonText}}.stzh-radio__label.sc-stzh-radio{display:inline-block;color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);margin-left:var(--stzh-space-small);line-height:1.5rem}.stzh-radio__label.sc-stzh-radio:empty{display:none}.stzh-radio__marker-symbol.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-radio.sc-stzh-radio:hover .stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:focus~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio.sc-stzh-radio:hover .stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:focus:hover~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:focus~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-radio__input.sc-stzh-radio:focus~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{opacity:1}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-error)}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-error)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__field-wrapper.sc-stzh-radio{cursor:not-allowed}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-grey61)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:transparent}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__mark.sc-stzh-radio{background-color:var(--stzh-color-black8)}';\nvar radioCounter = 0;\n\nvar StzhRadio = function () {\n function t(t) {\n var e = this;\n registerInstance(this, t);\n this.stzhChange = createEvent(this, \"stzhChange\", 7);\n this.stzhFocus = createEvent(this, \"stzhFocus\", 7);\n this.stzhBlur = createEvent(this, \"stzhBlur\", 7);\n this.focusedByInput = false;\n\n this.onInput = function (t) {\n e.checked = e.input.checked;\n e.stzhChange.emit({\n component: \"stzh-radio\",\n originalEvent: t,\n value: e.value,\n checked: e.checked\n });\n };\n\n this.onRootFocus = function () {\n if (!e.focusedByInput) {\n e.setFocus();\n }\n\n e.focusedByInput = false;\n };\n\n this.onFocus = function (t) {\n e.focusedByInput = true;\n var r = new FocusEvent(\"focus\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n e.element.dispatchEvent(r);\n e.stzhFocus.emit({\n component: \"stzh-radio\",\n originalEvent: t\n });\n };\n\n this.onBlur = function (t) {\n var r = new FocusEvent(\"blur\", {\n view: window,\n bubbles: false,\n cancelable: false\n });\n e.element.dispatchEvent(r);\n e.stzhBlur.emit({\n component: \"stzh-radio\",\n originalEvent: t\n });\n };\n\n this.localization = undefined;\n this.disabled = false;\n this.name = \"\";\n this.value = \"\";\n this.invalid = false;\n this.required = false;\n this.showMarker = false;\n this.checked = false;\n this.label = \"\";\n this.description = undefined;\n this.descriptionLong = undefined;\n this.error = undefined;\n this.a11yDescribedby = \"\";\n }\n\n t.prototype.setFocus = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (t) {\n this.input.focus();\n return [2];\n });\n });\n };\n\n t.prototype.errorWatcher = function (t) {\n if (typeof t === \"string\") {\n try {\n this._error = JSON.parse(t);\n } catch (e) {\n if (t) {\n this._error = [t];\n } else {\n this._error = [];\n }\n }\n } else if (t) {\n this._error = t;\n } else {\n this._error = [];\n }\n\n this.invalid = this._error.length > 0;\n };\n\n t.prototype.componentWillLoad = function () {\n return __awaiter(this, void 0, void 0, function () {\n var t;\n return __generator(this, function (e) {\n switch (e.label) {\n case 0:\n this.inputId = \"stzh-radio-\".concat(radioCounter++);\n this.errorWatcher(this.error);\n if (!!this.localization) return [3, 2];\n t = this;\n return [4, fetchTranslations(this.element, \"radio\")];\n\n case 1:\n t.localization = e.sent();\n e.label = 2;\n\n case 2:\n return [2];\n }\n });\n });\n };\n\n t.prototype.render = function () {\n var t = this;\n var e = hasSlot(this.element, \"description\") || !!this.description;\n var r = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n var i = hasSlot(this.element, \"error\") || !!this.error;\n var o = {\n \"stzh-radio\": true,\n \"stzh-radio--has-description\": e,\n \"stzh-radio--has-description-long\": r,\n \"stzh-radio--has-error\": i,\n \"stzh-radio--is-required\": this.required,\n \"stzh-radio--is-invalid\": this.invalid,\n \"stzh-radio--is-disabled\": this.disabled\n };\n return h(Host, {\n tabindex: this.disabled ? null : \"-1\",\n onFocus: this.onRootFocus\n }, h(\"div\", {\n class: o\n }, h(\"label\", {\n class: \"stzh-radio__field-wrapper\"\n }, h(\"input\", {\n class: \"stzh-radio__input\",\n ref: function (e) {\n return t.input = e;\n },\n type: \"radio\",\n id: this.inputId,\n name: this.name,\n value: this.value,\n disabled: this.disabled,\n \"aria-describedby\": \"\".concat(this.inputId, \"-description \").concat(this.a11yDescribedby),\n \"aria-required\": this.required ? \"true\" : \"false\",\n \"aria-invalid\": this.invalid ? \"true\" : \"false\",\n checked: this.checked,\n onInput: this.onInput,\n onFocus: this.onFocus,\n onBlur: this.onBlur\n }), h(\"div\", {\n class: \"stzh-radio__mark\"\n }, h(\"div\", {\n class: \"stzh-radio__check\"\n })), h(\"div\", {\n class: \"stzh-radio__label\"\n }, this.label ? this.label : h(\"slot\", null), this.showMarker && h(\"span\", {\n class: \"stzh-radio__marker\"\n }, h(\"span\", {\n class: \"stzh-radio__marker-symbol\",\n \"aria-hidden\": \"true\"\n }, this.required ? this.localization.$globals.requiredFieldMarker : this.localization.$globals.optionalFieldMarker), h(\"span\", {\n class: \"stzh-radio__marker-text\"\n }, this.required ? this.localization.$globals.requiredFieldText : this.localization.$globals.optionalFieldText)))), h(StzhInputDescription, {\n classPrefix: \"stzh-radio\",\n id: \"\".concat(this.inputId, \"-description\"),\n error: this._error,\n description: this.description,\n descriptionLong: this.descriptionLong,\n descriptionLongUsed: r,\n moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel\n })));\n };\n\n Object.defineProperty(t.prototype, \"element\", {\n get: function () {\n return getElement(this);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(t, \"watchers\", {\n get: function () {\n return {\n error: [\"errorWatcher\"]\n };\n },\n enumerable: false,\n configurable: true\n });\n return t;\n}();\n\nStzhRadio.style = stzhRadioCss;\nvar stzhRadiogroupCss = \".sc-stzh-radiogroup-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-radiogroup-h{display:none}.sc-stzh-radiogroup-h *.sc-stzh-radiogroup,.sc-stzh-radiogroup-h *.sc-stzh-radiogroup::before,.sc-stzh-radiogroup-h *.sc-stzh-radiogroup::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-radiogroup-h[direction=vertical] .sc-stzh-radiogroup-s>stzh-radio:not(:last-child){margin-bottom:var(--stzh-space-medium)}.sc-stzh-radiogroup-h[direction=horizontal] .sc-stzh-radiogroup-s>stzh-radio:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-radiogroup.sc-stzh-radiogroup{margin:0;padding:0;border:none}.stzh-radiogroup__marker-symbol.sc-stzh-radiogroup{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-radiogroup__marker-text.sc-stzh-radiogroup{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radiogroup__description-wrapper.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-radiogroup__error.sc-stzh-radiogroup,.stzh-radiogroup__description.sc-stzh-radiogroup{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-radiogroup__error.sc-stzh-radiogroup{color:var(--stzh-color-error)}.stzh-radiogroup__error-list.sc-stzh-radiogroup{list-style:none;margin:0;padding:0}.stzh-radiogroup__description.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-radiogroup__description-long.sc-stzh-radiogroup{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-radiogroup__description-long-popover.sc-stzh-radiogroup{--width:auto;--max-width:27.3125rem}.stzh-radiogroup__description-long-popover[open].sc-stzh-radiogroup:not([open=false]) .stzh-radiogroup__description-long-button.sc-stzh-radiogroup{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radiogroup__description-long-button.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-radiogroup__description-long-button.sc-stzh-radiogroup:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radiogroup.sc-stzh-radiogroup stzh-icon.stzh-radiogroup__description-long-icon.sc-stzh-radiogroup{--size:var(--stzh-icon-size-xsmall)}.stzh-radiogroup--has-error.sc-stzh-radiogroup .stzh-radiogroup__error.sc-stzh-radiogroup,.stzh-radiogroup--has-description.sc-stzh-radiogroup .stzh-radiogroup__description.sc-stzh-radiogroup{margin-top:var(--stzh-space-xxsmall)}.stzh-radiogroup__fields.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column}.stzh-radiogroup__legend.sc-stzh-radiogroup{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);padding:0;margin-bottom:var(--stzh-space-xsmall)}.stzh-radiogroup--hide-legend.sc-stzh-radiogroup .stzh-radiogroup__legend.sc-stzh-radiogroup{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-radiogroup--direction-horizontal.sc-stzh-radiogroup .stzh-radiogroup__fields.sc-stzh-radiogroup{-ms-flex-direction:row;flex-direction:row}\";\nvar SELECTOR_RADIO = \"stzh-radio, stzh-button[type=radio], stzh-card\";\nvar radiogroupCounter = 0;\n\nvar StzhRadiogroup = function () {\n function t(t) {\n var e = this;\n registerInstance(this, t);\n this._preventUpdateProperties = [];\n\n this.init = function () {\n e.radios = Array.from(e.element.querySelectorAll(SELECTOR_RADIO));\n e.updateRadiosProperty(\"show-marker\", false);\n e.updateRadiosProperty(\"a11y-describedby\", \"\".concat(e.radiogroupId, \"-description\"));\n e.watchValue(e.value);\n e.watchName(e.name);\n e.watchDisabled(e.disabled);\n e.watchInvalid(e.invalid);\n e.watchRequired(e.required);\n };\n\n this.localization = undefined;\n this.disabled = false;\n this.name = undefined;\n this.legend = undefined;\n this.hideLegend = false;\n this.invalid = false;\n this.required = false;\n this.showMarker = false;\n this.value = \"\";\n this.direction = \"vertical\";\n this.description = undefined;\n this.descriptionLong = undefined;\n this.error = undefined;\n this.checkedRadio = null;\n this.preventUpdateProperties = [];\n }\n\n t.prototype.watchName = function (t) {\n this.updateRadiosProperty(\"name\", t);\n };\n\n t.prototype.watchDisabled = function (t) {\n this.updateRadiosProperty(\"disabled\", t);\n };\n\n t.prototype.watchInvalid = function (t) {\n this.updateRadiosProperty(\"invalid\", t);\n };\n\n t.prototype.watchRequired = function (t) {\n this.updateRadiosProperty(\"required\", t);\n };\n\n t.prototype.watchValue = function (t) {\n this.updateCheckedRadioByValue(t);\n };\n\n t.prototype.errorWatcher = function (t) {\n if (typeof t === \"string\") {\n try {\n this._error = JSON.parse(t);\n } catch (e) {\n if (t) {\n this._error = [t];\n } else {\n this._error = [];\n }\n }\n } else if (t) {\n this._error = t;\n } else {\n this._error = [];\n }\n\n this.invalid = this._error.length > 0;\n };\n\n t.prototype.preventUpdatePropertiesWatcher = function (t) {\n if (typeof t === \"string\") {\n this._preventUpdateProperties = JSON.parse(t);\n } else {\n this._preventUpdateProperties = t;\n }\n };\n\n t.prototype.onChange = function (t) {\n this.value = t.detail.value;\n };\n\n t.prototype.updateRadiosProperty = function (t, e) {\n var r = this;\n this.radios.forEach(function (i) {\n if (t === \"name\" || r._preventUpdateProperties.indexOf(t) === -1) {\n i[camelCase(t)] = e;\n }\n });\n };\n\n t.prototype.updateCheckedRadioByValue = function (t) {\n this.checkedRadio = this.radios.find(function (e) {\n return e.value === t;\n });\n\n if (this.checkedRadio) {\n this.checkedRadio.checked = true;\n }\n\n this.uncheckRadios();\n };\n\n t.prototype.uncheckRadios = function () {\n var t = this;\n this.radios.forEach(function (e) {\n if (!t.checkedRadio || e !== t.checkedRadio) {\n e.checked = false;\n }\n });\n };\n\n t.prototype.componentWillLoad = function () {\n return __awaiter(this, void 0, void 0, function () {\n var t;\n return __generator(this, function (e) {\n switch (e.label) {\n case 0:\n this.radiogroupId = \"stzh-radiogroup-\".concat(radiogroupCounter++);\n this.errorWatcher(this.error);\n this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);\n if (!!this.localization) return [3, 2];\n t = this;\n return [4, fetchTranslations(this.element, \"radiogroup\")];\n\n case 1:\n t.localization = e.sent();\n e.label = 2;\n\n case 2:\n return [2];\n }\n });\n });\n };\n\n t.prototype.componentShouldUpdate = function (t, e, r) {\n return r !== \"checkedRadio\";\n };\n\n t.prototype.componentDidRender = function () {\n this.init();\n };\n\n t.prototype.connectedCallback = function () {\n if (!this.value) {\n this.radios = Array.from(this.element.querySelectorAll(SELECTOR_RADIO));\n var t = this.radios.find(function (t) {\n return t.checked;\n });\n\n if (t) {\n this.value = t.value;\n }\n }\n\n this.observer = new MutationObserver(this.init);\n this.observer.observe(this.element, {\n childList: true,\n subtree: true\n });\n };\n\n t.prototype.disconnectedCallback = function () {\n if (this.observer) {\n this.observer.disconnect();\n }\n };\n\n t.prototype.render = function () {\n var t;\n var e = hasSlot(this.element, \"description\") || !!this.description;\n var r = hasSlot(this.element, \"description-long\") || !!this.descriptionLong;\n var i = hasSlot(this.element, \"error\") || !!this.error;\n var o = (t = {\n \"stzh-radiogroup\": true,\n \"stzh-radiogroup--has-description\": e,\n \"stzh-radiogroup--has-description-long\": r,\n \"stzh-radiogroup--has-error\": i,\n \"stzh-radiogroup--is-required\": this.required,\n \"stzh-radiogroup--is-disabled\": this.disabled,\n \"stzh-radiogroup--is-invalid\": this.invalid,\n \"stzh-radiogroup--hide-legend\": this.hideLegend\n }, t[\"stzh-radiogroup--direction-\".concat(this.direction)] = !!this.direction, t);\n return h(\"fieldset\", {\n class: o\n }, this.legend && h(\"legend\", {\n class: \"stzh-radiogroup__legend\"\n }, this.legend, this.showMarker && h(\"span\", {\n class: \"stzh-radiogroup__marker\"\n }, h(\"span\", {\n class: \"stzh-radiogroup__marker-symbol\",\n \"aria-hidden\": \"true\"\n }, this.required ? this.localization.$globals.requiredFieldMarker : this.localization.$globals.optionalFieldMarker), h(\"span\", {\n class: \"stzh-radiogroup__marker-text\"\n }, this.required ? this.localization.$globals.requiredFieldText : this.localization.$globals.optionalFieldText))), h(\"div\", {\n class: \"stzh-radiogroup__fields\"\n }, h(\"slot\", null)), h(StzhInputDescription, {\n classPrefix: \"stzh-radiogroup\",\n id: \"\".concat(this.radiogroupId, \"-description\"),\n error: this._error,\n description: this.description,\n descriptionLong: this.descriptionLong,\n descriptionLongUsed: r,\n moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel\n }));\n };\n\n Object.defineProperty(t.prototype, \"element\", {\n get: function () {\n return getElement(this);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(t, \"watchers\", {\n get: function () {\n return {\n name: [\"watchName\"],\n disabled: [\"watchDisabled\"],\n invalid: [\"watchInvalid\"],\n required: [\"watchRequired\"],\n value: [\"watchValue\"],\n error: [\"errorWatcher\"],\n preventUpdateProperties: [\"preventUpdatePropertiesWatcher\"]\n };\n },\n enumerable: false,\n configurable: true\n });\n return t;\n}();\n\nStzhRadiogroup.style = stzhRadiogroupCss;\nexport { StzhDatepicker as stzh_datepicker, StzhRadio as stzh_radio, StzhRadiogroup as stzh_radiogroup };","var __awaiter = this && this.__awaiter || function (t, n, e, r) {\n function o(t) {\n return t instanceof e ? t : new e(function (n) {\n n(t);\n });\n }\n\n return new (e || (e = Promise))(function (e, a) {\n function s(t) {\n try {\n c(r.next(t));\n } catch (n) {\n a(n);\n }\n }\n\n function i(t) {\n try {\n c(r[\"throw\"](t));\n } catch (n) {\n a(n);\n }\n }\n\n function c(t) {\n t.done ? e(t.value) : o(t.value).then(s, i);\n }\n\n c((r = r.apply(t, n || [])).next());\n });\n};\n\nvar __generator = this && this.__generator || function (t, n) {\n var e = {\n label: 0,\n sent: function () {\n if (a[0] & 1) throw a[1];\n return a[1];\n },\n trys: [],\n ops: []\n },\n r,\n o,\n a,\n s;\n return s = {\n next: i(0),\n throw: i(1),\n return: i(2)\n }, typeof Symbol === \"function\" && (s[Symbol.iterator] = function () {\n return this;\n }), s;\n\n function i(t) {\n return function (n) {\n return c([t, n]);\n };\n }\n\n function c(i) {\n if (r) throw new TypeError(\"Generator is already executing.\");\n\n while (s && (s = 0, i[0] && (e = 0)), e) try {\n if (r = 1, o && (a = i[0] & 2 ? o[\"return\"] : i[0] ? o[\"throw\"] || ((a = o[\"return\"]) && a.call(o), 0) : o.next) && !(a = a.call(o, i[1])).done) return a;\n if (o = 0, a) i = [i[0] & 2, a.value];\n\n switch (i[0]) {\n case 0:\n case 1:\n a = i;\n break;\n\n case 4:\n e.label++;\n return {\n value: i[1],\n done: false\n };\n\n case 5:\n e.label++;\n o = i[1];\n i = [0];\n continue;\n\n case 7:\n i = e.ops.pop();\n e.trys.pop();\n continue;\n\n default:\n if (!(a = e.trys, a = a.length > 0 && a[a.length - 1]) && (i[0] === 6 || i[0] === 2)) {\n e = 0;\n continue;\n }\n\n if (i[0] === 3 && (!a || i[1] > a[0] && i[1] < a[3])) {\n e.label = i[1];\n break;\n }\n\n if (i[0] === 6 && e.label < a[1]) {\n e.label = a[1];\n a = i;\n break;\n }\n\n if (a && e.label < a[2]) {\n e.label = a[2];\n e.ops.push(i);\n break;\n }\n\n if (a[2]) e.ops.pop();\n e.trys.pop();\n continue;\n }\n\n i = n.call(t, e);\n } catch (c) {\n i = [6, c];\n o = 0;\n } finally {\n r = a = 0;\n }\n\n if (i[0] & 5) throw i[1];\n return {\n value: i[0] ? i[1] : void 0,\n done: true\n };\n }\n};\n\nvar LANG_DE = \"de\";\nvar LANG_EN = \"en\";\nvar LANG_DEFAULT = LANG_DE;\nvar SUPPORTED_LANGUAGES = [LANG_DE, LANG_EN];\n\nfunction getLocale(t) {\n var n = t.closest(\"[lang]\");\n var e = n && n.lang.split(\"-\")[0];\n\n if (SUPPORTED_LANGUAGES.indexOf(e) === -1 || !e) {\n return LANG_DEFAULT;\n } else {\n return e;\n }\n}\n\nfunction tc(t, n) {\n if (!t) {\n return \"\";\n }\n\n var e = t.split(\"|\");\n var r = e[0].trim();\n\n if (e.length === 3 && n === 1) {\n r = e[1].trim();\n } else if (e.length === 3 && n > 1) {\n r = e[2].trim();\n }\n\n if (e.length === 2 && n !== 1) {\n r = e[1].trim();\n }\n\n return r.replace(/\\{n\\}/gi, n.toString());\n}\n\nfunction fetchTranslations(t, n) {\n return __awaiter(this, void 0, void 0, function () {\n var e, r, o, a, s;\n return __generator(this, function (i) {\n switch (i.label) {\n case 0:\n e = getLocale(t);\n r = JSON.parse(sessionStorage.getItem(\"stzhComponents.v\".concat(window.stzhComponents.version, \".i18n.\").concat(e)));\n\n if (window.stzhComponents.cacheTranslations && window.stzhComponents.version.match(/-dev-snapshot/i) === null && r && Object.keys(r).length > 0) {\n return [2, Object.assign(Object.assign({}, r[n] || {}), {\n $globals: r.$globals,\n $locale: r.$code,\n $formats: r.$formats\n })];\n }\n\n i.label = 1;\n\n case 1:\n i.trys.push([1, 5,, 6]);\n return [4, fetch(\"\".concat(window.stzhComponents.pathTranslations, \"/\").concat(e, \".json\"))];\n\n case 2:\n o = i.sent();\n if (!o.ok) return [3, 4];\n return [4, o.json()];\n\n case 3:\n a = i.sent();\n sessionStorage.setItem(\"stzhComponents.v\".concat(window.stzhComponents.version, \".i18n.\").concat(e), JSON.stringify(a));\n return [2, Object.assign(Object.assign({}, a[n] || {}), {\n $globals: a.$globals,\n $locale: a.$code,\n $formats: a.$formats\n })];\n\n case 4:\n return [3, 6];\n\n case 5:\n s = i.sent();\n console.error(\"Error loading locale: \".concat(e), s);\n return [3, 6];\n\n case 6:\n return [2];\n }\n });\n });\n}\n\nexport { fetchTranslations as f, tc as t };","function hasSlot(e, n) {\n if (n) {\n return e.querySelector('[slot=\"'.concat(n, '\"]')) !== null;\n }\n\n return Array.from(childNodes(e)).some(function (e) {\n if (e.nodeType === e.TEXT_NODE && e.textContent.trim() !== \"\") {\n return true;\n }\n\n if (e.nodeType === e.ELEMENT_NODE) {\n var n = e;\n\n if (!n.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nfunction setPropsIfNull(e, n) {\n Object.keys(n).forEach(function (t) {\n if (e.getAttribute(t) === null) {\n e[t] = n[t];\n }\n });\n}\n\nfunction isStzhElement(e) {\n if (!e || e.nodeType !== 1) {\n return false;\n }\n\n return e.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\nfunction childNodes(e) {\n var n = e.childNodes;\n\n if (e[\"s-sc\"]) {\n var t = [];\n\n for (var r = 0; r < n.length; r++) {\n var l = n[r][\"s-nr\"];\n\n if (l) {\n t.push(l);\n }\n }\n\n return t;\n }\n\n return Array.from(n);\n}\n\nvar nativeCloneNodeFn = Node.prototype.cloneNode;\n\nfunction cloneElement(e, n) {\n var t = nativeCloneNodeFn.call(e, false);\n var r = childNodes(e);\n\n if (n) {\n for (var l = 0; l < r.length; l++) {\n if (r[l].nodeType !== 2) {\n var o = cloneElement(r[l], true);\n t.appendChild(o);\n }\n }\n }\n\n return t;\n}\n\nfunction cloneWrappedStzhElement(e) {\n var n;\n var t;\n var r;\n\n if (isStzhElement(e)) {\n n = cloneElement(e, true);\n t = n;\n r = e;\n } else {\n n = e.cloneNode();\n var l = n;\n var o = e;\n\n while (o.children.length === 1 && !isStzhElement(o.children[0])) {\n o = o.children[0];\n var i = o.cloneNode();\n l.appendChild(i);\n l = i;\n }\n\n if (isStzhElement(o.children[0])) {\n t = cloneElement(o.children[0], true);\n r = o.children[0];\n l.appendChild(t);\n } else {\n n = cloneElement(e, true);\n }\n }\n\n return [n, t, r];\n}\n\nexport { cloneWrappedStzhElement as c, hasSlot as h, isStzhElement as i, setPropsIfNull as s };"],"sourceRoot":""}