@optionfactory/ful 0.37.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ful.iife.js +54 -36
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +54 -36
- package/dist/ful.mjs.map +1 -1
- package/package.json +1 -1
package/dist/ful.iife.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ful.iife.js","sources":["../src/encodings.mjs","../src/http-client.mjs","../src/storage.mjs","../src/oauth-authorization-code.mjs","../src/timing.mjs","../src/elements/elements.mjs","../src/elements/form.mjs","../src/elements/input.mjs","../src/elements/select.mjs","../src/elements/radio.mjs","../src/elements/spinner.mjs","../src/elements/wizard.mjs"],"sourcesContent":["\n\nclass Base64 {\n static encode(arrayBuffer, dialect) {\n const d = dialect || Base64.URL_SAFE;\n const len = arrayBuffer.byteLength;\n const view = new Uint8Array(arrayBuffer);\n let res = '';\n for (let i = 0; i < len; i += 3) {\n const v1 = d[view[i] >> 2];\n const v2 = d[((view[i] & 3) << 4) | (view[i + 1] >> 4)];\n const v3 = d[((view[i + 1] & 15) << 2) | (view[i + 2] >> 6)];\n const v4 = d[view[i + 2] & 63];\n res += v1 + v2 + v3 + v4;\n }\n if (len % 3 === 2) {\n res = res.substring(0, res.length - 1);\n } else if (len % 3 === 1) {\n res = res.substring(0, res.length - 2);\n }\n return res;\n }\n static decode(str, dialect) {\n const d = dialect || Base64.URL_SAFE;\n let nbytes = Math.floor(str.length * 0.75);\n for (let i = 0; i !== str.length; ++i) {\n if (str[str.length - i - 1] !== '=') {\n break;\n }\n --nbytes;\n }\n const view = new Uint8Array(nbytes);\n\n let vi = 0;\n let si = 0;\n while (vi < str.length * 0.75) {\n const v1 = d.indexOf(str.charAt(si++));\n const v2 = d.indexOf(str.charAt(si++));\n const v3 = d.indexOf(str.charAt(si++));\n const v4 = d.indexOf(str.charAt(si++));\n view[vi++] = (v1 << 2) | (v2 >> 4);\n view[vi++] = ((v2 & 15) << 4) | (v3 >> 2);\n view[vi++] = ((v3 & 3) << 6) | v4;\n }\n\n return view.buffer;\n }\n}\n\nBase64.STANDARD = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nBase64.URL_SAFE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';\n\n\nclass Hex {\n static decode(hex) {\n if (hex.length % 2 !== 0) {\n throw new Error(\"invalid length\");\n }\n const lenInBytes = hex.length / 2;\n return new Uint8Array(lenInBytes).map((e, i) => {\n const offset = i * 2;\n const octet = hex.substring(offset, offset + 2);\n return parseInt(octet, 16);\n });\n }\n static encode(bytes, upper) {\n return Array.from(bytes)\n .map(b => b.toString(16))\n .map(b => upper ? b.toUpperCase() : b)\n .map(o => o.padStart(2, 0))\n .join('');\n }\n}\n\nexport { Base64, Hex };","class ContextInterceptor {\n constructor() {\n const context = document.querySelector(\"meta[name='context']\").getAttribute(\"content\");\n this.context = context.endsWith(\"/\") ? context.substring(0, context.length - 1) : context;\n }\n async intercept(request, chain){\n const separator = request.resource.startsWith(\"/\") ? \"\" : \"/\";\n request.resource = this.context + separator + request.resource;\n return await chain.proceed(request);\n }\n}\n\nclass CsrfTokenInterceptor {\n constructor() {\n this.k = document.querySelector(\"meta[name='_csrf_header']\").getAttribute(\"content\");\n this.v = document.querySelector(\"meta[name='_csrf']\").getAttribute(\"content\");\n }\n async intercept(request, chain){\n const headers = new Headers(request.options.headers);\n headers.set(this.k, this.v);\n request.options.headers = headers;\n return await chain.proceed(request);\n }\n}\n\nclass RedirectOnUnauthorizedInterceptor {\n constructor(redirectUri) {\n this.redirectUri = redirectUri;\n }\n async intercept(request, chain){\n const response = await chain.proceed(request);\n if (response.status !== 401) {\n return response;\n }\n window.location.href = this.redirectUri;\n }\n}\n\nclass Failure extends Error {\n static parseProblems(status, text) {\n const def = [{\n type: \"GENERIC_PROBLEM\",\n context: null,\n reason: `${status}: ${text}`,\n details: null\n }];\n try {\n return text ? JSON.parse(text) : def;\n } catch (e) {\n return def;\n }\n }\n static fromResponse(status, text) {\n return new Failure(status, Failure.parseProblems(status, text));\n }\n constructor(status, problems) {\n super(JSON.stringify(problems));\n this.name = `Failure:${status}`;\n this.status = status;\n this.problems = problems;\n }\n}\n\nclass HttpClientBuilder {\n constructor() {\n this.interceptors = [];\n }\n withContext() {\n this.interceptors.push(new ContextInterceptor());\n return this;\n }\n withCsrfToken() {\n this.interceptors.push(new CsrfTokenInterceptor());\n return this;\n }\n withRedirectOnUnauthorized(redirectUri) {\n this.interceptors.push(new RedirectOnUnauthorizedInterceptor(redirectUri));\n return this;\n }\n withInterceptors(...interceptors) {\n this.interceptors.push(...interceptors);\n return this;\n }\n build() {\n const interceptors = this.interceptors;\n return new HttpClient({interceptors});\n }\n}\n\nclass HttpCall {\n async intercept(request, chain){\n return await fetch(request.resource, request.options);\n } \n}\n\nclass HttpInterceptorChain {\n constructor(interceptors, current){\n this.interceptors = interceptors;\n this.current = current;\n }\n async proceed(request){\n const interceptor = this.interceptors[this.current];\n return await interceptor.intercept(request, new HttpInterceptorChain(this.interceptors, this.current + 1));\n }\n}\n\n\nclass HttpClient {\n static builder() {\n return new HttpClientBuilder();\n }\n constructor({interceptors}){\n this.interceptors = interceptors || [];\n }\n async exchange(resource, options) {\n const opts = options || {};\n const interceptors = [...this.interceptors, ...opts.interceptors || [], new HttpCall()];\n const chain = new HttpInterceptorChain(interceptors, 0);\n return await chain.proceed({resource, options: opts});\n }\n async fetch(resource, options) {\n const response = await this.exchange(resource, options);\n if (!response.ok) {\n const message = await response.text();\n throw Failure.fromResponse(response.status, message);\n } \n return response;\n }\n async json(resource, options) {\n try {\n const response = await this.fetch(resource, options);\n const text = await response.text();\n return text ? JSON.parse(text) : undefined;\n } catch (e) {\n if (e instanceof Failure) {\n throw e;\n }\n throw new Failure(0, [{\n type: \"CONNECTION_PROBLEM\",\n context: null,\n reason: e.message,\n details: null\n }]);\n }\n }\n}\n\nfunction jsonRequest(method, body, headers){\n return {\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers\n },\n method: method,\n body: JSON.stringify(body) \n }\n}\nfunction jsonPost(body, headers){\n return jsonRequest('POST', body, headers);\n}\nfunction jsonPut(body, headers){\n return jsonRequest('PUT', body, headers);\n}\nfunction jsonPatch(body, headers){\n return jsonRequest('PATCH', body, headers);\n}\n\n\nexport { HttpClient, Failure, jsonRequest, jsonPost, jsonPut, jsonPatch };\n","\nclass Storage {\n constructor(prefix, storage) {\n this.prefix = prefix;\n this.storage = storage;\n }\n save(k, v) {\n this.storage.setItem(`${this.prefix}-${k}`, JSON.stringify(v));\n }\n load(k) {\n const got = this.storage.getItem(`${this.prefix}-${k}`);\n return got === undefined ? undefined : JSON.parse(got);\n }\n remove(k) {\n this.storage.removeItem(`${this.prefix}-${k}`);\n }\n pop(k) {\n const decoded = this.load(k);\n this.remove(k);\n return decoded;\n }\n}\n\nclass LocalStorage extends Storage {\n constructor(prefix) {\n super(prefix, localStorage);\n }\n}\n\nclass SessionStorage extends Storage {\n constructor(prefix) {\n super(prefix, sessionStorage);\n }\n}\n\nclass VersionedStorage {\n constructor(storage, key, dataSupplier){\n this.storage = storage;\n this.key = key;\n this.dataSupplier = dataSupplier;\n this.cache = null;\n \n }\n async load(revision){\n const saved = this.storage.load(this.key);\n if (!!saved && saved.revision === revision) {\n this.cache = saved.value;\n return;\n }\n const freshData = await this.dataSupplier(revision, this.key);\n this.storage.save(this.key, {\n revision: revision,\n value: freshData\n });\n this.cache = freshData;\n }\n data(){\n return this.cache;\n }\n}\n\n\n\nexport {LocalStorage, SessionStorage, VersionedStorage};","import { Base64 } from \"./encodings.mjs\";\nimport { SessionStorage } from \"./storage.mjs\";\n\n\nclass AuthorizationCodeFlow {\n static forKeycloak(clientId, realmBaseUrl, redirectUri){\n const scope = \"openid profile\";\n return new AuthorizationCodeFlow(clientId, scope, {\n auth: new URL(\"protocol/openid-connect/auth\", realmBaseUrl),\n token: new URL(\"protocol/openid-connect/token\", realmBaseUrl),\n logout: new URL(\"protocol/openid-connect/logout\", realmBaseUrl),\n registration: new URL(\"protocol/openid-connect/registrations\", realmBaseUrl),\n redirect: redirectUri\n }); \n }\n constructor(clientId, scope, {auth, token, registration, logout, redirect}) {\n this.storage = new SessionStorage(clientId);\n this.clientId = clientId;\n this.scope = scope;\n this.uri = {auth, token, registration, logout, redirect};\n }\n async action(uri, additionalParams){\n const pkceVerifier = Base64.encode(crypto.getRandomValues(new Uint8Array(32)).buffer);\n const pkceChallenge = Base64.encode(await crypto.subtle.digest(\"SHA-256\", new TextEncoder().encode(pkceVerifier)));\n const state = this.clientId + Base64.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);\n this.storage.save(AuthorizationCodeFlow.PKCE_AND_STATE_KEY, {\n state: state,\n verifier: pkceVerifier\n });\n const url = new URL(uri);\n url.searchParams.set(\"client_id\", this.clientId);\n url.searchParams.set(\"redirect_uri\", this.uri.redirect);\n url.searchParams.set(\"response_type\", 'code');\n url.searchParams.set(\"scope\", this.scope);\n url.searchParams.set(\"state\", state);\n url.searchParams.set(\"code_challenge\", pkceChallenge);\n url.searchParams.set(\"code_challenge_method\", 'S256');\n Object.entries(additionalParams || {}).forEach(kv => {\n url.searchParams.set(kv[0], kv[1]);\n });\n window.location = url;\n }\n async registration(additionalParams){\n await this.action(this.uri.registration, additionalParams);\n }\n async applicationInitiatedAction(kcAction){\n await this.action(this.uri.auth, {\n kc_action: kcAction\n });\n }\n async _tokenExchange(code, state) {\n window.history.replaceState('', \"\", this.uri.redirect);\n const stateAndVerifier = this.storage.pop(AuthorizationCodeFlow.PKCE_AND_STATE_KEY);\n if (stateAndVerifier.state !== state) {\n throw new Error(\"State mismatch\");\n }\n const response = await fetch(this.uri.token, {\n method: \"POST\",\n headers: {\n \"Content-Type\": 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams([\n [\"client_id\", this.clientId],\n [\"code\", code],\n [\"grant_type\", \"authorization_code\"],\n [\"code_verifier\", stateAndVerifier.verifier],\n [\"state\", stateAndVerifier.state],\n [\"redirect_uri\", this.uri.redirect]\n ])\n });\n if (!response.ok) {\n const text = await response.text();\n throw new Error(\"Error:\" + response.status + \": \" + text);\n }\n const token = await response.json();\n return new AuthorizationCodeFlowSession(this.clientId, token, this.uri);\n }\n async ensureLoggedIn() {\n const url = new URL(window.location.href);\n const code = url.searchParams.get(\"code\");\n if (code && this.storage.load(AuthorizationCodeFlow.PKCE_AND_STATE_KEY)) {\n //if callback from keycloak and we have our state still stored\n const state = url.searchParams.get(\"state\");\n return await this._tokenExchange(code, state);\n }\n //if not authorized\n await this.action(this.uri.auth, {});\n return null;\n }\n}\nAuthorizationCodeFlow.PKCE_AND_STATE_KEY = \"state-and-verifier\";\n\nclass AuthorizationCodeFlowSession {\n static parseToken(token) {\n const [rawHeader, rawPayload, signature] = token.split(\".\");\n const ut8decoder = new TextDecoder(\"utf-8\");\n return {\n header: JSON.parse(ut8decoder.decode(Base64.decode(rawHeader, Base64.STANDARD))),\n payload: JSON.parse(ut8decoder.decode(Base64.decode(rawPayload, Base64.STANDARD))),\n signature: signature\n };\n } \n constructor(clientId, t, {token, logout, redirect}) {\n this.clientId = clientId;\n this.token = t;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(t.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(t.refresh_token);\n this.uri = { token, logout, redirect }\n this.refreshCallback = null;\n }\n onRefresh(callback) {\n this.refreshCallback = callback;\n }\n async refresh() {\n const response = await fetch(this.uri.token, {\n method: \"POST\",\n headers: {\n \"Content-Type\": 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams([\n [\"client_id\", this.clientId],\n [\"grant_type\", \"refresh_token\"],\n [\"refresh_token\", this.token.refresh_token]\n ])\n });\n if (!response.ok) {\n throw new Error(\"Error:\" + response.status + \": \" + response.text());\n }\n const token = await response.json();\n this.token = token;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(token.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(token.refresh_token);\n if (this.refreshCallback) {\n this.refreshCallback(this.token, this.accessToken, this.refreshToken);\n }\n }\n shouldBeRefreshed(gracePeriod) {\n const now = new Date().getTime();\n const refreshTokenExpiresAt = this.refreshToken.payload.exp * 1000;\n const expired = now > refreshTokenExpiresAt;\n const shouldRefresh = now - gracePeriod > refreshTokenExpiresAt;\n return !expired && shouldRefresh;\n }\n async refreshIf(gracePeriod) {\n if (!this.shouldBeRefreshed(gracePeriod)) {\n return;\n }\n await this.refresh();\n }\n logout() {\n const url = new URL(this.uri.logout);\n url.searchParams.set(\"post_logout_redirect_uri\", this.uri.redirect);\n url.searchParams.set(\"id_token_hint\", this.token.id_token);\n window.location = url;\n }\n\n bearerToken() {\n return `Bearer ${this.token.access_token}`;\n }\n \n interceptor(gracePeriodBefore, gracePeriodAfter){\n return new AuthorizationCodeFlowInterceptor(this, gracePeriodBefore, gracePeriodAfter); \n }\n}\n\nclass AuthorizationCodeFlowInterceptor {\n constructor(session, gracePeriodBefore, gracePeriodAfter) {\n this.session = session;\n this.gracePeriodBefore = gracePeriodBefore || 2000;\n this.gracePeriodAfter = gracePeriodAfter || 30000;\n }\n async intercept(request, chain) {\n await this.session.refreshIf(this.gracePeriodBefore);\n const headers = new Headers(request.options.headers);\n headers.set(\"Authorization\", this.session.bearerToken());\n request.options.headers = headers;\n const response = await chain.proceed(request);\n await this.session.refreshIf(this.gracePeriodAfter);\n return response;\n }\n}\n\n\nexport {AuthorizationCodeFlow, AuthorizationCodeFlowSession, AuthorizationCodeFlowInterceptor };","\nconst timing = {\n sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n DEBOUNCE_DEFAULT: 0,\n DEBOUNCE_IMMEDIATE: 1,\n debounce(timeoutMs, func, options) {\n let tid = null;\n let args = [];\n let previousTimestamp = 0;\n let opts = options || timing.DEBOUNCE_DEFAULT;\n\n const later = () => {\n const elapsed = new Date().getTime() - previousTimestamp;\n if (timeoutMs > elapsed) {\n tid = setTimeout(later, timeoutMs - elapsed);\n return;\n }\n tid = null;\n if (opts !== timing.DEBOUNCE_IMMEDIATE) {\n func(...args);\n }\n // This check is needed because `func` can recursively invoke `debounced`.\n if (tid === null) {\n args = [];\n }\n };\n\n return function () {\n args = arguments;\n previousTimestamp = new Date().getTime();\n if (tid === null) {\n tid = setTimeout(later, timeoutMs);\n if (opts === timing.DEBOUNCE_IMMEDIATE) {\n func(...args);\n }\n }\n };\n },\n THROTTLE_DEFAULT: 0,\n THROTTLE_NO_LEADING: 1,\n THROTTLE_NO_TRAILING: 2,\n throttle(timeoutMs, func, options) {\n let tid = null;\n let args = [];\n let previousTimestamp = 0;\n let opts = options || timing.THROTTLE_DEFAULT;\n\n const later = () => {\n previousTimestamp = (opts & timing.THROTTLE_NO_LEADING) ? 0 : new Date().getTime();\n tid = null;\n func(...args);\n if (tid === null) {\n args = [];\n }\n };\n\n return function () {\n const now = new Date().getTime();\n if (!previousTimestamp && (opts & timing.THROTTLE_NO_LEADING)) {\n previousTimestamp = now;\n }\n const remaining = timeoutMs - (now - previousTimestamp);\n args = arguments;\n if (remaining <= 0 || remaining > timeoutMs) {\n if (tid !== null) {\n clearTimeout(tid);\n tid = null;\n }\n previousTimestamp = now;\n func(...args);\n if (tid === null) {\n args = [];\n }\n } else if (tid === null && !(opts & timing.THROTTLE_NO_TRAILING)) {\n tid = setTimeout(later, remaining);\n }\n };\n\n }\n};\n\n\nexport { timing };","class Fragments {\n static fromHtml(...html) {\n const el = document.createElement('div');\n el.innerHTML = html.join(\"\");\n const fragment = new DocumentFragment();\n Array.from(el.childNodes).forEach(node => {\n fragment.appendChild(node);\n });\n return fragment;\n } \n static toHtml(fragment) {\n var r = document.createElement(\"root\");\n r.appendChild(fragment);\n return r.innerHTML;\n }\n static from(...nodes) {\n const fragment = new DocumentFragment();\n for (let i = 0; i !== nodes.length; ++i) {\n fragment.appendChild(nodes[i]);\n }\n return fragment;\n }\n static fromChildNodes(el) {\n const nodes = Array.from(el.childNodes);\n const fragment = new DocumentFragment();\n for (let i = 0; i !== nodes.length; ++i) {\n fragment.appendChild(nodes[i]);\n }\n return fragment;\n }\n}\n\nclass Attributes {\n static id = 0;\n static uid(prefix) {\n return `${prefix}-${++Attributes.id}`;\n }\n static asBoolean(value) {\n return value !== null && value !== undefined && value !== false;\n }\n static defaultValue(el, k, v) {\n if (!el.hasAttribute(k)) {\n el.setAttribute(k, v);\n }\n return el.getAttribute(k);\n }\n static forward(prefix, from, to) {\n from.getAttributeNames()\n .filter(a => a.startsWith(prefix))\n .forEach(a => {\n const target = a.substring(prefix.length);\n if (target === 'class') {\n to.classList.add(...from.getAttribute(prefix + \"class\").split(\" \").filter(a => a.length));\n return;\n }\n to.setAttribute(target, from.getAttribute(a))\n });\n }\n}\n\nclass Slots {\n static from(el) {\n const namedSlots = Array.from(el.childNodes)\n .filter(el => el.matches && el.matches('[slot]'))\n .map(el => {\n el.remove();\n const slot = el.getAttribute(\"slot\");\n el.removeAttribute(\"slot\");\n return [slot, el];\n });\n const slotted = Object.fromEntries(namedSlots);\n slotted.default = new DocumentFragment();\n slotted.default.append(...el.childNodes);\n return slotted;\n }\n}\n\nconst Templated = (SuperClass, template) => {\n return class extends SuperClass {\n rendered_;\n get rendered() {\n return this.rendered_;\n }\n async connectedCallback() {\n if (this.rendered_) {\n return;\n }\n const slotted = Slots.from(this);\n const fragment = await Promise.resolve(this.render(slotted, template));\n this.innerHTML = '';\n if (fragment) {\n this.appendChild(fragment);\n }\n this.rendered_ = true;\n }\n };\n}\n\nconst Stateful = (SuperClass, flags, others) => {\n\n const all = [].concat(flags).concat(others || []);\n\n return class extends SuperClass {\n static get observedAttributes() {\n return all;\n }\n constructor(...args) {\n super(...args);\n this.internals_ = this.internals_ || this.attachInternals();\n for (const flag of flags) {\n Object.defineProperty(this, flag, {\n get() {\n return this.hasAttribute(flag);\n },\n set(value) {\n //see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet#using_double_dash_prefixed_idents\n if (Attributes.asBoolean(value)) {\n this.internals_.states.add(`--${flag}`);\n this.setAttribute(flag, '');\n return;\n }\n this.internals_.states.delete(`--${flag}`);\n this.removeAttribute(flag);\n }\n });\n }\n }\n attributeChangedCallback(name, oldValue, newValue) {\n if (oldValue === newValue) {\n return;\n }\n this[name] = newValue;\n const method = this[`on${name.charAt(0).toUpperCase()}${name.substr(1).toLowerCase()}Changed`];\n method?.call(this, newValue, oldValue);\n }\n };\n}\n\nexport { Fragments, Attributes, Slots, Templated, Stateful };\n","/* global Infinity, CSS */\n\nimport { Failure } from \"../http-client.mjs\";\nimport { Templated } from \"./elements.mjs\"\n\nclass Form extends Templated(HTMLElement) {\n static MUTATORS = {};\n static EXTRACTORS = {};\n static VALUE_HOLDERS_SELECTOR = '[name]';\n static IGNORED_CHILDREN_SELECTOR = '.d-none, [hidden]';\n\n render(slotted, template) {\n const form = document.createElement('form');\n form.append(slotted.default);\n form.addEventListener('submit', async (e) => {\n e.preventDefault();\n this.spinner(true);\n try {\n if (this.submitter) {\n await this.submitter(this.getValues(), this);\n }\n } catch (e) {\n if (e instanceof Failure) {\n this.setErrors(e.problems);\n return;\n }\n throw e;\n } finally {\n this.spinner(false)\n }\n })\n return form;\n }\n spinner(spin) {\n this.querySelectorAll('ful-spinner').forEach(el => {\n el.hidden = !spin;\n })\n this.querySelectorAll('[type=submit],[type=reset]').forEach(el => {\n el.disabled = spin;\n })\n }\n setValues(values) {\n for (let k in values) {\n if (!values.hasOwnProperty(k)) {\n continue;\n }\n Array.from(this.querySelectorAll(`[name='${CSS.escape(k)}']`)).forEach((el) => {\n Form.mutate(Form.MUTATORS, el, values[k], k, values);\n });\n }\n }\n getValues() {\n return Array.from(this.querySelectorAll(Form.VALUE_HOLDERS_SELECTOR))\n .filter((el) => {\n if (el.dataset['fulBindInclude'] === 'never') {\n return false;\n }\n return el.dataset['fulBindInclude'] === 'always' || el.closest(Form.IGNORED_CHILDREN_SELECTOR) === null;\n })\n .reduce((result, el) => {\n return Form.providePath(result, el.getAttribute('name'), Form.extract(Form.EXTRACTORS, el));\n }, {});\n }\n setErrors(errors, scroll) {\n this.clearErrors();\n errors\n .filter((e) => e.type === 'FIELD_ERROR' || e.type === 'INVALID_FORMAT')\n .forEach((e) => {\n const name = e.context.replace(\"[\", \".\").replace(\"].\", \".\");\n //TODO: match [name=] ful-validation-target and [name=]:not(:has(ful-validation-target))\n //\n this.querySelectorAll(`[name='${CSS.escape(name)}']`)\n .forEach(input => input.classList.add('is-invalid'));\n this.querySelectorAll(`ful-field-error[field='${CSS.escape(name)}']`)\n .forEach(el => el.innerText = e.reason);\n });\n this.querySelectorAll(\"ful-errors\")\n .forEach(el => {\n const globalErrors = errors.filter((e) => e.type !== 'FIELD_ERROR' && e.type !== 'INVALID_FORMAT');\n el.innerHTML = globalErrors.map(e => e.reason).join(\"\\n\");\n if (globalErrors.length !== 0) {\n el.removeAttribute('hidden');\n }\n })\n\n if (!scroll) {\n return;\n }\n const ys = Array.from(this.querySelectorAll('ful-field-error'))\n .map(el => el.getBoundingClientRect().y + window.scrollY)\n const miny = Math.min(...ys);\n if (miny !== Infinity) {\n window.scroll(window.scrollX, miny > 100 ? miny - 100 : 0);\n }\n }\n clearErrors() {\n this.querySelectorAll('.is-invalid')\n .forEach(el => el.classList.remove('is-invalid'));\n this.querySelectorAll(\"ful-errors\")\n .forEach(el => {\n el.innerHTML = '';\n el.setAttribute('hidden', '');\n });\n }\n static extract(extractors, el) {\n const maybeExtractor = extractors[el.dataset['fulBindExtractor']] || extractors[el.dataset['fulBindProvide']];\n if (maybeExtractor) {\n return maybeExtractor(el);\n }\n if (el.getAttribute('type') === 'radio') {\n if (!el.checked) {\n return undefined;\n }\n return el.dataset['fulBindType'] === 'boolean' ? el.value === 'true' : el.value;\n }\n if (el.getAttribute('type') === 'checkbox') {\n return el.checked;\n }\n if (el.dataset['fulBindType'] === 'boolean') {\n return !el.value ? null : el.value === 'true';\n }\n if (el.getValue) {\n return el.getValue();\n }\n return el.value || null;\n }\n static mutate(mutators, el, raw, key, values) {\n const maybeMutator = mutators[el.dataset['fulBindMutator']] || mutators[el.dataset['fulBindProvide']];\n if (maybeMutator) {\n maybeMutator(el, raw, key, values);\n return;\n }\n if (el.getAttribute('type') === 'radio') {\n el.checked = el.getAttribute('value') === raw;\n return;\n }\n if (el.getAttribute('type') === 'checkbox') {\n el.checked = raw;\n return;\n }\n if (el.setValue) {\n el.setValue(raw);\n return;\n }\n el.value = raw;\n }\n\n static providePath(result, path, value) {\n const keys = path.split(\".\").map((k) => k.match(/^[0-9]+$/) ? +k : k);\n let current = result;\n let previous = null;\n for (let i = 0; ; ++i) {\n const ckey = keys[i];\n const pkey = keys[i - 1];\n if (Number.isInteger(ckey) && !Array.isArray(current)) {\n if (previous !== null) {\n previous[pkey] = current = [];\n } else {\n result = current = [];\n }\n }\n if (i === keys.length - 1) {\n //when value is undefined we only want to define the property if it's not defined \n current[ckey] = value !== undefined ? value : (ckey in current ? current[ckey] : null);\n return result;\n }\n if (current[ckey] === undefined) {\n current[ckey] = {};\n }\n previous = current;\n current = current[ckey];\n }\n }\n static custom(tagName, configuration) {\n customElements.define(tagName, class extends Form {\n constructor() {\n super(configuration);\n }\n });\n }\n}\n\nexport { Form };\n","import { Attributes, Templated } from \"./elements.mjs\"\n\nconst ful_input_ec = globalThis.ec || ftl.EvaluationContext.configure({\n\n});\n\nconst ful_input_template_ = globalThis.ful_input_template || ftl.Template.fromHtml(`\n <label data-tpl-for=\"id\" class=\"form-label\">{{{{ slotted.default }}}}</label>\n <div class=\"input-group\">\n <span data-tpl-if=\"slotted.ibefore\" class=\"input-group-text\">{{{{ slotted.ibefore }}}}</span>\n <div data-tpl-if=\"slotted.before\" data-tpl-remove=\"tag\">{{{{ slotted.before }}}}</div>\n {{{{ slotted.input }}}} \n <div data-tpl-if=\"slotted.after\" data-tpl-remove=\"tag\">{{{{ slotted.after }}}}</div>\n <span data-tpl-if=\"slotted.iafter\" class=\"input-group-text\">{{{{ slotted.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n`, ful_input_ec);\n\nclass Input extends Templated(HTMLElement, ful_input_template_) {\n render(slotted, template) {\n const input = slotted.input = slotted.input || (() => {\n const el = document.createElement(\"input\")\n el.classList.add(\"form-control\");\n return el;\n })();\n const id = input.getAttribute('id') || this.getAttribute('input-id') || Attributes.uid('ful-input');\n Attributes.forward('input-', this, slotted.input)\n Attributes.defaultValue(slotted.input, \"id\", id);\n Attributes.defaultValue(slotted.input, \"type\", \"text\");\n Attributes.defaultValue(slotted.input, \"placeholder\", \" \");\n const name = input.getAttribute('name');\n return template.render({ id, name, slotted });\n }\n static configure() {\n customElements.define('ful-input', Input);\n }\n}\n\nexport { Input };\n","import { Fragments, Attributes, Templated } from \"./elements.mjs\"\n/**\n * <script src=\"tom-select.complete.js\"></script>\n * <link href=\"tom-select.bootstrap5.css\" rel=\"stylesheet\" />\n */\nconst ful_select_ec = globalThis.ec || ftl.EvaluationContext.configure({\n\n});\n\nconst ful_select_template_ = globalThis.ful_select_template || ftl.Template.fromHtml(`\n <label data-tpl-for=\"tsId\" class=\"form-label\">{{{{ slotted.default }}}}</label>\n {{{{ input }}}}\n <div class=\"input-group\">\n <span data-tpl-if=\"slotted.ibefore\" class=\"input-group-text\">{{{{ slotted.ibefore }}}}</span>\n <div data-tpl-if=\"slotted.before\" data-tpl-remove=\"tag\">{{{{ slotted.before }}}}</div>\n {{{{ slotted.input }}}} \n <div data-tpl-if=\"slotted.after\" data-tpl-remove=\"tag\">{{{{ slotted.after }}}}</div>\n <span data-tpl-if=\"slotted.iafter\" class=\"input-group-text\">{{{{ slotted.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error> \n`, ful_select_ec);\n\n\nclass Select extends Templated(HTMLElement, ful_select_template_) {\n constructor(tsConfig) {\n super();\n this.tsConfig = tsConfig;\n }\n render(slotted, template) {\n const type = this.getAttribute(\"type\") || 'local';\n const remote = type != 'local';\n const loadOnce = this.getAttribute('load') != 'always';\n\n const input = slotted.input = slotted.input || (() => {\n return document.createElement(\"select\");\n })();\n const id = input.getAttribute('id') || this.getAttribute('input-id') || Attributes.uid('ful-select');\n const tsId = `${id}-ts-control`;\n Attributes.forward('input-', this, input)\n Attributes.defaultValue(input, \"id\", id);\n Attributes.defaultValue(input, \"placeholder\", \" \");\n const name = input.getAttribute('name');\n input.setValue = this.setValue.bind(this);\n input.getValue = this.getValue.bind(this);\n\n //tomselect needs the input to have a parent.\n //se we move the input to a fragment\n slotted.input = Fragments.from(input);\n\n this.loaded = !remote;\n\n const tsDefaultConfig = {\n render: {\n loading: () => '<ful-spinner class=\"centered p-2\"></ful-spinner>'\n }\n }\n\n\n this._remote = remote;\n // we need to await this load in setValue when remote is configured and the option\n // is not loaded yet.\n // tomselect settings.load does not retun a promise as it wraps the configured load function\n // with a debouncer\n this._unwrappedRemoteLoad = async (query, callback) => {\n\n if (!remote || remote && loadOnce && this.loaded) {\n callback();\n return;\n }\n const type = query && query.hasOwnProperty('byId') ? 'id' : 'query';\n const qvalue = type === 'id' ? query.byId : query;\n const data = await (this.loader ? this.loader(qvalue, type) : []);\n if(type !== 'id'){\n this.loaded = true;\n }\n callback(data);\n };\n\n\n this.ts = new TomSelect(input, Object.assign(remote ? {\n preload: 'focus',\n load: this._unwrappedRemoteLoad,\n shouldLoad: (query) => this.shouldLoad ? this.shouldLoad(query) : true\n } : {}, tsDefaultConfig, this.tsConfig));\n console.log(\"ts created\");\n //we remove the input to move it\n input.remove();\n\n return template.render({ id, tsId, name, input, slotted });\n }\n async setValue(v) {\n if(this._remote){\n await this._unwrappedRemoteLoad({byId: v}, this.ts.loadCallback.bind(this.ts));\n }\n this.ts.setValue(v);\n }\n getValue() {\n const v = this.ts.getValue();\n return v === '' ? null : v;\n }\n static custom(tagName, configuration) {\n customElements.define(tagName, class extends Select {\n constructor() {\n super(configuration);\n }\n });\n }\n static configure() {\n return Select.custom('ful-select');\n }\n\n}\n\nexport { Select };\n","import { Attributes, Fragments, Stateful, Templated } from \"./elements.mjs\"\n\n\n\n\n\nconst ful_radiogroup_ec = globalThis.ec || ftl.EvaluationContext.configure({\n\n});\n\nconst ful_radiougroup_template_ = globalThis.ful_radiogroup_template || ftl.Template.fromHtml(`\n <fieldset>\n <legend class=\"form-label\">\n {{{{ slotted.default }}}}\n </legend>\n <header data-tpl-if=\"slotted.header\">\n {{{{ slotted.header }}}}\n </header>\n <section>\n <label data-tpl-each=\"inputsAndLabels\" data-tpl-var=\"ial\">\n {{{{ ial[0] }}}}\n {{{{ ial[1] }}}}\n </label>\n </section>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n </fieldset>\n`, ful_radiogroup_ec);\n\n\nclass RadioGroup extends Stateful(Templated(HTMLElement, ful_radiougroup_template_), ['disabled']) {\n render(slotted, template) { \n const name = this.getAttribute('input-name') || Attributes.uid('ful-radiogroup');\n const radioEls = Array.from(slotted.default.querySelectorAll('ful-radio'));\n const inputsAndLabels = radioEls.map(el => {\n const input = document.createElement('input');\n input.setAttribute('type', 'radio');\n Attributes.forward('input-', this, input);\n Attributes.forward('', el, input);\n Attributes.defaultValue(input, 'name', name);\n const label = Fragments.fromChildNodes(el);\n return [input, label];\n });\n radioEls.forEach(el => el.remove());\n \n const fragment = template.render({\n name: name,\n slotted: slotted,\n inputsAndLabels: inputsAndLabels\n });\n return fragment;\n }\n static configure() {\n customElements.define('ful-radio-group', RadioGroup);\n } \n}\n\n\nexport { RadioGroup };","import { Attributes, Fragments, Templated } from \"./elements.mjs\"\n\n\n\nconst ful_spinner_ec = globalThis.ec || ftl.EvaluationContext.configure({\n\n});\n\nconst ful_spinner_template_ = globalThis.ful_spinner_template || ftl.Template.fromHtml(`\n <div class=\"ful-spinner-wrapper\">\n <div class=\"ful-spinner-text\">{{{{ slotted.default }}}}</div>\n <div class=\"ful-spinner-icon\"></div>\n </div>\n`, ful_spinner_ec);\n\n\nclass Spinner extends Templated(HTMLElement, ful_spinner_template_) {\n render(slotted, template) {\n return template.render({ slotted });\n }\n static configure() {\n customElements.define('ful-spinner', Spinner);\n }\n}\n\nexport { Spinner };","class Wizard extends HTMLElement {\n constructor() {\n super();\n this.progress = [...this.children].filter(e => e.matches(\"header,ol,ul\"));\n\n this.progress.forEach(p => {\n const children = [...p.children];\n const current = children.filter(e => e.matches(\".active\"))[0];\n if (current === undefined && children.length > 0) {\n children[0].classList.add('active');\n }\n });\n if (this.querySelector('section.current') === null) {\n const firstSection = this.querySelector('section:first-of-type');\n if (firstSection !== null) {\n firstSection.classList.add('current');\n }\n }\n }\n next() {\n this.progress.forEach(p => {\n const children = [...p.children];\n const current = children.filter(e => e.matches(\".active\"))[0];\n current?.classList.remove('active');\n current?.nextElementSibling?.classList.add('active');\n });\n const currentSection = this.querySelector('section.current');\n currentSection.classList.remove(\"current\");\n currentSection.nextElementSibling.classList.add('current');\n\n this.dispatchEvent(new CustomEvent('wizard:activate', {\n bubbles: true,\n cancelable: true\n }));\n\n }\n prev() {\n this.progress.forEach(p => {\n const children = [...p.children];\n const current = children.filter(e => e.matches(\".active\"))[0];\n current?.classList.remove('active');\n current?.previousElementSibling?.classList.add('active');\n });\n const currentSection = this.querySelector('section.current');\n currentSection.classList.remove(\"current\");\n currentSection.previousElementSibling.classList.add('current');\n this.dispatchEvent(new CustomEvent('wizard:activate', {\n bubbles: true,\n cancelable: true\n }));\n }\n moveTo = function (n) {\n this.progress.forEach(p => {\n const children = [...p.children];\n const current = children.filter(e => e.matches(\".active\"))[0];\n current?.classList.remove('active');\n p.children[+n]?.classList.add('active');\n });\n const currentSection = this.querySelector('section.current');\n currentSection?.classList.remove(\"current\");\n const nthSection = this.querySelector(`section:nth-child(${+n})`);\n nthSection.classList.add('current');\n this.dispatchEvent(new CustomEvent('wizard:activate', {\n bubbles: true,\n cancelable: true\n }));\n }\n static custom(tagName, configuration) {\n customElements.define(tagName, class extends Wizard {\n constructor() {\n super(configuration);\n }\n });\n }\n static configure() {\n return Wizard.custom('ful-wizard');\n }\n}\n\n\n\n\nexport { Wizard };\n"],"names":[],"mappings":";;;IAEA,MAAM,MAAM,CAAC;IACb,IAAI,OAAO,MAAM,CAAC,WAAW,EAAE,OAAO,EAAE;IACxC,QAAQ,MAAM,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC;IAC7C,QAAQ,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC;IAC3C,QAAQ,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC;IACjD,QAAQ,IAAI,GAAG,GAAG,EAAE,CAAC;IACrB,QAAQ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE;IACzC,YAAY,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,YAAY,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpE,YAAY,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACzE,YAAY,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3C,YAAY,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GA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","../src/timing.mjs","../src/elements/elements.mjs","../src/elements/form.mjs","../src/elements/input.mjs","../src/elements/select.mjs","../src/elements/radio.mjs","../src/elements/spinner.mjs","../src/elements/wizard.mjs"],"sourcesContent":["\n\nclass Base64 {\n static encode(arrayBuffer, dialect) {\n const d = dialect || Base64.URL_SAFE;\n const len = arrayBuffer.byteLength;\n const view = new Uint8Array(arrayBuffer);\n let res = '';\n for (let i = 0; i < len; i += 3) {\n const v1 = d[view[i] >> 2];\n const v2 = d[((view[i] & 3) << 4) | (view[i + 1] >> 4)];\n const v3 = d[((view[i + 1] & 15) << 2) | (view[i + 2] >> 6)];\n const v4 = d[view[i + 2] & 63];\n res += v1 + v2 + v3 + v4;\n }\n if (len % 3 === 2) {\n res = res.substring(0, res.length - 1);\n } else if (len % 3 === 1) {\n res = res.substring(0, res.length - 2);\n }\n return res;\n }\n static decode(str, dialect) {\n const d = dialect || Base64.URL_SAFE;\n let nbytes = Math.floor(str.length * 0.75);\n for (let i = 0; i !== str.length; ++i) {\n if (str[str.length - i - 1] !== '=') {\n break;\n }\n --nbytes;\n }\n const view = new Uint8Array(nbytes);\n\n let vi = 0;\n let si = 0;\n while (vi < str.length * 0.75) {\n const v1 = d.indexOf(str.charAt(si++));\n const v2 = d.indexOf(str.charAt(si++));\n const v3 = d.indexOf(str.charAt(si++));\n const v4 = d.indexOf(str.charAt(si++));\n view[vi++] = (v1 << 2) | (v2 >> 4);\n view[vi++] = ((v2 & 15) << 4) | (v3 >> 2);\n view[vi++] = ((v3 & 3) << 6) | v4;\n }\n\n return view.buffer;\n }\n}\n\nBase64.STANDARD = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nBase64.URL_SAFE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';\n\n\nclass Hex {\n static decode(hex) {\n if (hex.length % 2 !== 0) {\n throw new Error(\"invalid length\");\n }\n const lenInBytes = hex.length / 2;\n return new Uint8Array(lenInBytes).map((e, i) => {\n const offset = i * 2;\n const octet = hex.substring(offset, offset + 2);\n return parseInt(octet, 16);\n });\n }\n static encode(bytes, upper) {\n return Array.from(bytes)\n .map(b => b.toString(16))\n .map(b => upper ? b.toUpperCase() : b)\n .map(o => o.padStart(2, 0))\n .join('');\n }\n}\n\nexport { Base64, Hex };","class ContextInterceptor {\n constructor() {\n const context = document.querySelector(\"meta[name='context']\").getAttribute(\"content\");\n this.context = context.endsWith(\"/\") ? context.substring(0, context.length - 1) : context;\n }\n async intercept(request, chain){\n const separator = request.resource.startsWith(\"/\") ? \"\" : \"/\";\n request.resource = this.context + separator + request.resource;\n return await chain.proceed(request);\n }\n}\n\nclass CsrfTokenInterceptor {\n constructor() {\n this.k = document.querySelector(\"meta[name='_csrf_header']\").getAttribute(\"content\");\n this.v = document.querySelector(\"meta[name='_csrf']\").getAttribute(\"content\");\n }\n async intercept(request, chain){\n const headers = new Headers(request.options.headers);\n headers.set(this.k, this.v);\n request.options.headers = headers;\n return await chain.proceed(request);\n }\n}\n\nclass RedirectOnUnauthorizedInterceptor {\n constructor(redirectUri) {\n this.redirectUri = redirectUri;\n }\n async intercept(request, chain){\n const response = await chain.proceed(request);\n if (response.status !== 401) {\n return response;\n }\n window.location.href = this.redirectUri;\n }\n}\n\nclass Failure extends Error {\n static parseProblems(status, text) {\n const def = [{\n type: \"GENERIC_PROBLEM\",\n context: null,\n reason: `${status}: ${text}`,\n details: null\n }];\n try {\n return text ? JSON.parse(text) : def;\n } catch (e) {\n return def;\n }\n }\n static fromResponse(status, text) {\n return new Failure(status, Failure.parseProblems(status, text));\n }\n constructor(status, problems) {\n super(JSON.stringify(problems));\n this.name = `Failure:${status}`;\n this.status = status;\n this.problems = problems;\n }\n}\n\nclass HttpClientBuilder {\n constructor() {\n this.interceptors = [];\n }\n withContext() {\n this.interceptors.push(new ContextInterceptor());\n return this;\n }\n withCsrfToken() {\n this.interceptors.push(new CsrfTokenInterceptor());\n return this;\n }\n withRedirectOnUnauthorized(redirectUri) {\n this.interceptors.push(new RedirectOnUnauthorizedInterceptor(redirectUri));\n return this;\n }\n withInterceptors(...interceptors) {\n this.interceptors.push(...interceptors);\n return this;\n }\n build() {\n const interceptors = this.interceptors;\n return new HttpClient({interceptors});\n }\n}\n\nclass HttpCall {\n async intercept(request, chain){\n return await fetch(request.resource, request.options);\n } \n}\n\nclass HttpInterceptorChain {\n constructor(interceptors, current){\n this.interceptors = interceptors;\n this.current = current;\n }\n async proceed(request){\n const interceptor = this.interceptors[this.current];\n return await interceptor.intercept(request, new HttpInterceptorChain(this.interceptors, this.current + 1));\n }\n}\n\n\nclass HttpClient {\n static builder() {\n return new HttpClientBuilder();\n }\n constructor({interceptors}){\n this.interceptors = interceptors || [];\n }\n async exchange(resource, options) {\n const opts = options || {};\n const interceptors = [...this.interceptors, ...opts.interceptors || [], new HttpCall()];\n const chain = new HttpInterceptorChain(interceptors, 0);\n return await chain.proceed({resource, options: opts});\n }\n async fetch(resource, options) {\n const response = await this.exchange(resource, options);\n if (!response.ok) {\n const message = await response.text();\n throw Failure.fromResponse(response.status, message);\n } \n return response;\n }\n async json(resource, options) {\n try {\n const response = await this.fetch(resource, options);\n const text = await response.text();\n return text ? JSON.parse(text) : undefined;\n } catch (e) {\n if (e instanceof Failure) {\n throw e;\n }\n throw new Failure(0, [{\n type: \"CONNECTION_PROBLEM\",\n context: null,\n reason: e.message,\n details: null\n }]);\n }\n }\n}\n\nfunction jsonRequest(method, body, headers){\n return {\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers\n },\n method: method,\n body: JSON.stringify(body) \n }\n}\nfunction jsonPost(body, headers){\n return jsonRequest('POST', body, headers);\n}\nfunction jsonPut(body, headers){\n return jsonRequest('PUT', body, headers);\n}\nfunction jsonPatch(body, headers){\n return jsonRequest('PATCH', body, headers);\n}\n\n\nexport { HttpClient, Failure, jsonRequest, jsonPost, jsonPut, jsonPatch };\n","\nclass Storage {\n constructor(prefix, storage) {\n this.prefix = prefix;\n this.storage = storage;\n }\n save(k, v) {\n this.storage.setItem(`${this.prefix}-${k}`, JSON.stringify(v));\n }\n load(k) {\n const got = this.storage.getItem(`${this.prefix}-${k}`);\n return got === undefined ? undefined : JSON.parse(got);\n }\n remove(k) {\n this.storage.removeItem(`${this.prefix}-${k}`);\n }\n pop(k) {\n const decoded = this.load(k);\n this.remove(k);\n return decoded;\n }\n}\n\nclass LocalStorage extends Storage {\n constructor(prefix) {\n super(prefix, localStorage);\n }\n}\n\nclass SessionStorage extends Storage {\n constructor(prefix) {\n super(prefix, sessionStorage);\n }\n}\n\nclass VersionedStorage {\n constructor(storage, key, dataSupplier){\n this.storage = storage;\n this.key = key;\n this.dataSupplier = dataSupplier;\n this.cache = null;\n \n }\n async load(revision){\n const saved = this.storage.load(this.key);\n if (!!saved && saved.revision === revision) {\n this.cache = saved.value;\n return;\n }\n const freshData = await this.dataSupplier(revision, this.key);\n this.storage.save(this.key, {\n revision: revision,\n value: freshData\n });\n this.cache = freshData;\n }\n data(){\n return this.cache;\n }\n}\n\n\n\nexport {LocalStorage, SessionStorage, VersionedStorage};","import { Base64 } from \"./encodings.mjs\";\nimport { SessionStorage } from \"./storage.mjs\";\n\n\nclass AuthorizationCodeFlow {\n static forKeycloak(clientId, realmBaseUrl, redirectUri){\n const scope = \"openid profile\";\n return new AuthorizationCodeFlow(clientId, scope, {\n auth: new URL(\"protocol/openid-connect/auth\", realmBaseUrl),\n token: new URL(\"protocol/openid-connect/token\", realmBaseUrl),\n logout: new URL(\"protocol/openid-connect/logout\", realmBaseUrl),\n registration: new URL(\"protocol/openid-connect/registrations\", realmBaseUrl),\n redirect: redirectUri\n }); \n }\n constructor(clientId, scope, {auth, token, registration, logout, redirect}) {\n this.storage = new SessionStorage(clientId);\n this.clientId = clientId;\n this.scope = scope;\n this.uri = {auth, token, registration, logout, redirect};\n }\n async action(uri, additionalParams){\n const pkceVerifier = Base64.encode(crypto.getRandomValues(new Uint8Array(32)).buffer);\n const pkceChallenge = Base64.encode(await crypto.subtle.digest(\"SHA-256\", new TextEncoder().encode(pkceVerifier)));\n const state = this.clientId + Base64.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);\n this.storage.save(AuthorizationCodeFlow.PKCE_AND_STATE_KEY, {\n state: state,\n verifier: pkceVerifier\n });\n const url = new URL(uri);\n url.searchParams.set(\"client_id\", this.clientId);\n url.searchParams.set(\"redirect_uri\", this.uri.redirect);\n url.searchParams.set(\"response_type\", 'code');\n url.searchParams.set(\"scope\", this.scope);\n url.searchParams.set(\"state\", state);\n url.searchParams.set(\"code_challenge\", pkceChallenge);\n url.searchParams.set(\"code_challenge_method\", 'S256');\n Object.entries(additionalParams || {}).forEach(kv => {\n url.searchParams.set(kv[0], kv[1]);\n });\n window.location = url;\n }\n async registration(additionalParams){\n await this.action(this.uri.registration, additionalParams);\n }\n async applicationInitiatedAction(kcAction){\n await this.action(this.uri.auth, {\n kc_action: kcAction\n });\n }\n async _tokenExchange(code, state) {\n window.history.replaceState('', \"\", this.uri.redirect);\n const stateAndVerifier = this.storage.pop(AuthorizationCodeFlow.PKCE_AND_STATE_KEY);\n if (stateAndVerifier.state !== state) {\n throw new Error(\"State mismatch\");\n }\n const response = await fetch(this.uri.token, {\n method: \"POST\",\n headers: {\n \"Content-Type\": 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams([\n [\"client_id\", this.clientId],\n [\"code\", code],\n [\"grant_type\", \"authorization_code\"],\n [\"code_verifier\", stateAndVerifier.verifier],\n [\"state\", stateAndVerifier.state],\n [\"redirect_uri\", this.uri.redirect]\n ])\n });\n if (!response.ok) {\n const text = await response.text();\n throw new Error(\"Error:\" + response.status + \": \" + text);\n }\n const token = await response.json();\n return new AuthorizationCodeFlowSession(this.clientId, token, this.uri);\n }\n async ensureLoggedIn() {\n const url = new URL(window.location.href);\n const code = url.searchParams.get(\"code\");\n if (code && this.storage.load(AuthorizationCodeFlow.PKCE_AND_STATE_KEY)) {\n //if callback from keycloak and we have our state still stored\n const state = url.searchParams.get(\"state\");\n return await this._tokenExchange(code, state);\n }\n //if not authorized\n await this.action(this.uri.auth, {});\n return null;\n }\n}\nAuthorizationCodeFlow.PKCE_AND_STATE_KEY = \"state-and-verifier\";\n\nclass AuthorizationCodeFlowSession {\n static parseToken(token) {\n const [rawHeader, rawPayload, signature] = token.split(\".\");\n const ut8decoder = new TextDecoder(\"utf-8\");\n return {\n header: JSON.parse(ut8decoder.decode(Base64.decode(rawHeader, Base64.STANDARD))),\n payload: JSON.parse(ut8decoder.decode(Base64.decode(rawPayload, Base64.STANDARD))),\n signature: signature\n };\n } \n constructor(clientId, t, {token, logout, redirect}) {\n this.clientId = clientId;\n this.token = t;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(t.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(t.refresh_token);\n this.uri = { token, logout, redirect }\n this.refreshCallback = null;\n }\n onRefresh(callback) {\n this.refreshCallback = callback;\n }\n async refresh() {\n const response = await fetch(this.uri.token, {\n method: \"POST\",\n headers: {\n \"Content-Type\": 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams([\n [\"client_id\", this.clientId],\n [\"grant_type\", \"refresh_token\"],\n [\"refresh_token\", this.token.refresh_token]\n ])\n });\n if (!response.ok) {\n throw new Error(\"Error:\" + response.status + \": \" + response.text());\n }\n const token = await response.json();\n this.token = token;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(token.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(token.refresh_token);\n if (this.refreshCallback) {\n this.refreshCallback(this.token, this.accessToken, this.refreshToken);\n }\n }\n shouldBeRefreshed(gracePeriod) {\n const now = new Date().getTime();\n const refreshTokenExpiresAt = this.refreshToken.payload.exp * 1000;\n const expired = now > refreshTokenExpiresAt;\n const shouldRefresh = now - gracePeriod > refreshTokenExpiresAt;\n return !expired && shouldRefresh;\n }\n async refreshIf(gracePeriod) {\n if (!this.shouldBeRefreshed(gracePeriod)) {\n return;\n }\n await this.refresh();\n }\n logout() {\n const url = new URL(this.uri.logout);\n url.searchParams.set(\"post_logout_redirect_uri\", this.uri.redirect);\n url.searchParams.set(\"id_token_hint\", this.token.id_token);\n window.location = url;\n }\n\n bearerToken() {\n return `Bearer ${this.token.access_token}`;\n }\n \n interceptor(gracePeriodBefore, gracePeriodAfter){\n return new AuthorizationCodeFlowInterceptor(this, gracePeriodBefore, gracePeriodAfter); \n }\n}\n\nclass AuthorizationCodeFlowInterceptor {\n constructor(session, gracePeriodBefore, gracePeriodAfter) {\n this.session = session;\n this.gracePeriodBefore = gracePeriodBefore || 2000;\n this.gracePeriodAfter = gracePeriodAfter || 30000;\n }\n async intercept(request, chain) {\n await this.session.refreshIf(this.gracePeriodBefore);\n const headers = new Headers(request.options.headers);\n headers.set(\"Authorization\", this.session.bearerToken());\n request.options.headers = headers;\n const response = await chain.proceed(request);\n await this.session.refreshIf(this.gracePeriodAfter);\n return response;\n }\n}\n\n\nexport {AuthorizationCodeFlow, AuthorizationCodeFlowSession, AuthorizationCodeFlowInterceptor };","\nconst timing = {\n sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n DEBOUNCE_DEFAULT: 0,\n DEBOUNCE_IMMEDIATE: 1,\n debounce(timeoutMs, func, options) {\n let tid = null;\n let args = [];\n let previousTimestamp = 0;\n let opts = options || timing.DEBOUNCE_DEFAULT;\n\n const later = () => {\n const elapsed = new Date().getTime() - previousTimestamp;\n if (timeoutMs > elapsed) {\n tid = setTimeout(later, timeoutMs - elapsed);\n return;\n }\n tid = null;\n if (opts !== timing.DEBOUNCE_IMMEDIATE) {\n func(...args);\n }\n // This check is needed because `func` can recursively invoke `debounced`.\n if (tid === null) {\n args = [];\n }\n };\n\n return function () {\n args = arguments;\n previousTimestamp = new Date().getTime();\n if (tid === null) {\n tid = setTimeout(later, timeoutMs);\n if (opts === timing.DEBOUNCE_IMMEDIATE) {\n func(...args);\n }\n }\n };\n },\n THROTTLE_DEFAULT: 0,\n THROTTLE_NO_LEADING: 1,\n THROTTLE_NO_TRAILING: 2,\n throttle(timeoutMs, func, options) {\n let tid = null;\n let args = [];\n let previousTimestamp = 0;\n let opts = options || timing.THROTTLE_DEFAULT;\n\n const later = () => {\n previousTimestamp = (opts & timing.THROTTLE_NO_LEADING) ? 0 : new Date().getTime();\n tid = null;\n func(...args);\n if (tid === null) {\n args = [];\n }\n };\n\n return function () {\n const now = new Date().getTime();\n if (!previousTimestamp && (opts & timing.THROTTLE_NO_LEADING)) {\n previousTimestamp = now;\n }\n const remaining = timeoutMs - (now - previousTimestamp);\n args = arguments;\n if (remaining <= 0 || remaining > timeoutMs) {\n if (tid !== null) {\n clearTimeout(tid);\n tid = null;\n }\n previousTimestamp = now;\n func(...args);\n if (tid === null) {\n args = [];\n }\n } else if (tid === null && !(opts & timing.THROTTLE_NO_TRAILING)) {\n tid = setTimeout(later, remaining);\n }\n };\n\n }\n};\n\n\nexport { timing };","class Fragments {\n static fromHtml(...html) {\n const el = document.createElement('div');\n el.innerHTML = html.join(\"\");\n const fragment = new DocumentFragment();\n Array.from(el.childNodes).forEach(node => {\n fragment.appendChild(node);\n });\n return fragment;\n } \n static toHtml(fragment) {\n var r = document.createElement(\"root\");\n r.appendChild(fragment);\n return r.innerHTML;\n }\n static from(...nodes) {\n const fragment = new DocumentFragment();\n for (let i = 0; i !== nodes.length; ++i) {\n fragment.appendChild(nodes[i]);\n }\n return fragment;\n }\n static fromChildNodes(el) {\n const nodes = Array.from(el.childNodes);\n const fragment = new DocumentFragment();\n for (let i = 0; i !== nodes.length; ++i) {\n fragment.appendChild(nodes[i]);\n }\n return fragment;\n }\n}\n\nclass Attributes {\n static id = 0;\n static uid(prefix) {\n return `${prefix}-${++Attributes.id}`;\n }\n static asBoolean(value) {\n return value !== null && value !== undefined && value !== false;\n }\n static defaultValue(el, k, v) {\n if (!el.hasAttribute(k)) {\n el.setAttribute(k, v);\n }\n return el.getAttribute(k);\n }\n static forward(prefix, from, to) {\n from.getAttributeNames()\n .filter(a => a.startsWith(prefix))\n .forEach(a => {\n const target = a.substring(prefix.length);\n if (target === 'class') {\n to.classList.add(...from.getAttribute(prefix + \"class\").split(\" \").filter(a => a.length));\n return;\n }\n to.setAttribute(target, from.getAttribute(a))\n });\n }\n}\n\nclass Slots {\n static from(el) {\n const namedSlots = Array.from(el.childNodes)\n .filter(el => el.matches && el.matches('[slot]'))\n .map(el => {\n el.remove();\n const slot = el.getAttribute(\"slot\");\n el.removeAttribute(\"slot\");\n return [slot, el];\n });\n const slotted = Object.fromEntries(namedSlots);\n slotted.default = new DocumentFragment();\n slotted.default.append(...el.childNodes);\n return slotted;\n }\n}\n\nconst Templated = (SuperClass, template) => {\n return class extends SuperClass {\n rendered_;\n get rendered() {\n return this.rendered_;\n }\n async connectedCallback() {\n if (this.rendered_) {\n return;\n }\n const slotted = Slots.from(this);\n const fragment = await Promise.resolve(this.render(slotted, template));\n this.innerHTML = '';\n if (fragment) {\n this.appendChild(fragment);\n }\n this.rendered_ = true;\n }\n };\n}\n\nconst Stateful = (SuperClass, flags, others) => {\n\n const all = [].concat(flags).concat(others || []);\n\n return class extends SuperClass {\n static get observedAttributes() {\n return all;\n }\n constructor(...args) {\n super(...args);\n this.internals_ = this.internals_ || this.attachInternals();\n for (const flag of flags) {\n Object.defineProperty(this, flag, {\n get() {\n return this.hasAttribute(flag);\n },\n set(value) {\n //see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet#using_double_dash_prefixed_idents\n if (Attributes.asBoolean(value)) {\n this.internals_.states.add(`--${flag}`);\n this.setAttribute(flag, '');\n return;\n }\n this.internals_.states.delete(`--${flag}`);\n this.removeAttribute(flag);\n }\n });\n }\n }\n attributeChangedCallback(name, oldValue, newValue) {\n if (oldValue === newValue) {\n return;\n }\n this[name] = newValue;\n const method = this[`on${name.charAt(0).toUpperCase()}${name.substr(1).toLowerCase()}Changed`];\n method?.call(this, newValue, oldValue);\n }\n };\n}\n\nexport { Fragments, Attributes, Slots, Templated, Stateful };\n","/* global Infinity, CSS */\n\nimport { Failure } from \"../http-client.mjs\";\nimport { Templated } from \"./elements.mjs\"\n\nfunction flatten(obj, prefix) {\n return Object.keys(obj).reduce((acc, k) => {\n const pre = prefix.length ? prefix + '.' : '';\n if (typeof obj[k] === 'object' && obj[k] !== null) {\n Object.assign(acc, flatten(obj[k], pre + k));\n } else {\n acc[pre + k] = obj[k];\n }\n return acc;\n }, {});\n}\n\n\n\nclass Form extends Templated(HTMLElement) {\n static MUTATORS = {};\n static EXTRACTORS = {};\n static VALUE_HOLDERS_SELECTOR = '[name]';\n static IGNORED_CHILDREN_SELECTOR = '.d-none, [hidden]';\n\n render(slotted, template) {\n const form = document.createElement('form');\n form.append(slotted.default);\n form.addEventListener('submit', async (e) => {\n e.preventDefault();\n this.spinner(true);\n try {\n if (this.submitter) {\n await this.submitter(this.getValues(), this);\n }\n } catch (e) {\n if (e instanceof Failure) {\n this.setErrors(e.problems);\n return;\n }\n throw e;\n } finally {\n this.spinner(false)\n }\n })\n return form;\n }\n spinner(spin) {\n this.querySelectorAll('ful-spinner').forEach(el => {\n el.hidden = !spin;\n })\n this.querySelectorAll('[type=submit],[type=reset]').forEach(el => {\n el.disabled = spin;\n })\n }\n setValues(values) {\n for (const [flattenedKey, value] of Object.entries(flatten(values, ''))) {\n Array.from(this.querySelectorAll(`[name='${CSS.escape(flattenedKey)}']`)).forEach((el) => {\n Form.mutate(Form.MUTATORS, el, value, flattenedKey);\n });\n }\n }\n getValues() {\n return Array.from(this.querySelectorAll(Form.VALUE_HOLDERS_SELECTOR))\n .filter((el) => {\n if (el.dataset['fulBindInclude'] === 'never') {\n return false;\n }\n return el.dataset['fulBindInclude'] === 'always' || el.closest(Form.IGNORED_CHILDREN_SELECTOR) === null;\n })\n .reduce((result, el) => {\n return Form.providePath(result, el.getAttribute('name'), Form.extract(Form.EXTRACTORS, el));\n }, {});\n }\n setErrors(errors) {\n this.clearErrors();\n errors\n .filter((e) => e.type === 'FIELD_ERROR' || e.type === 'INVALID_FORMAT')\n .forEach((e) => {\n const name = e.context.replace(\"[\", \".\").replace(\"].\", \".\");\n this.querySelectorAll(`[name='${CSS.escape(name)}'] [ful-validation-target],[name='${CSS.escape(name)}']:not(:has([ful-validation-target]))`)\n .forEach(input => input.classList.add('is-invalid'));\n this.querySelectorAll(`ful-field-error[field='${CSS.escape(name)}']`)\n .forEach(el => el.innerText = e.reason);\n });\n this.querySelectorAll(\"ful-errors\")\n .forEach(el => {\n const globalErrors = errors.filter((e) => e.type !== 'FIELD_ERROR' && e.type !== 'INVALID_FORMAT');\n el.innerHTML = globalErrors.map(e => e.reason).join(\"\\n\");\n if (globalErrors.length !== 0) {\n el.removeAttribute('hidden');\n }\n })\n\n if (!this.hasAttribute('scroll-on-error')) {\n return;\n }\n const ys = Array.from(this.querySelectorAll('ful-field-error'))\n .map(el => el.getBoundingClientRect().y + window.scrollY)\n const miny = Math.min(...ys);\n if (miny !== Infinity) {\n window.scroll(window.scrollX, miny > 100 ? miny - 100 : 0);\n }\n }\n clearErrors() {\n this.querySelectorAll('.is-invalid')\n .forEach(el => el.classList.remove('is-invalid'));\n this.querySelectorAll(\"ful-errors\")\n .forEach(el => {\n el.innerHTML = '';\n el.setAttribute('hidden', '');\n });\n }\n static extract(extractors, el) {\n const maybeExtractor = extractors[el.dataset['fulBindExtractor']] || extractors[el.dataset['fulBindProvide']];\n if (maybeExtractor) {\n return maybeExtractor(el);\n }\n if (el.getAttribute('type') === 'radio') {\n if (!el.checked) {\n return undefined;\n }\n return el.dataset['fulBindType'] === 'boolean' ? el.value === 'true' : el.value;\n }\n if (el.getAttribute('type') === 'checkbox') {\n return el.checked;\n }\n if (el.dataset['fulBindType'] === 'boolean') {\n return !el.value ? null : el.value === 'true';\n }\n return el.value || null;\n }\n static mutate(mutators, el, raw, flattenedKey) {\n const maybeMutator = mutators[el.dataset['fulBindMutator']] || mutators[el.dataset['fulBindProvide']];\n if (maybeMutator) {\n maybeMutator(el, raw, flattenedKey);\n return;\n }\n if (el.getAttribute('type') === 'radio') {\n el.checked = el.getAttribute('value') === raw;\n return;\n }\n if (el.getAttribute('type') === 'checkbox') {\n el.checked = raw;\n return;\n }\n el.value = raw;\n }\n\n static providePath(result, path, value) {\n const keys = path.split(\".\").map((k) => k.match(/^[0-9]+$/) ? +k : k);\n let current = result;\n let previous = null;\n for (let i = 0; ; ++i) {\n const ckey = keys[i];\n const pkey = keys[i - 1];\n if (Number.isInteger(ckey) && !Array.isArray(current)) {\n if (previous !== null) {\n previous[pkey] = current = [];\n } else {\n result = current = [];\n }\n }\n if (i === keys.length - 1) {\n //when value is undefined we only want to define the property if it's not defined \n current[ckey] = value !== undefined ? value : (ckey in current ? current[ckey] : null);\n return result;\n }\n if (current[ckey] === undefined) {\n current[ckey] = {};\n }\n previous = current;\n current = current[ckey];\n }\n }\n static custom(tagName, configuration) {\n customElements.define(tagName, class extends Form {\n constructor() {\n super(configuration);\n }\n });\n }\n}\n\nexport { Form };\n","import { Attributes, Templated } from \"./elements.mjs\"\n\nconst ful_input_ec = globalThis.ec || ftl.EvaluationContext.configure({\n\n});\n\nconst ful_input_template_ = globalThis.ful_input_template || ftl.Template.fromHtml(`\n <label data-tpl-for=\"id\" class=\"form-label\">{{{{ slotted.default }}}}</label>\n <div class=\"input-group\">\n <span data-tpl-if=\"slotted.ibefore\" class=\"input-group-text\">{{{{ slotted.ibefore }}}}</span>\n <div data-tpl-if=\"slotted.before\" data-tpl-remove=\"tag\">{{{{ slotted.before }}}}</div>\n {{{{ slotted.input }}}} \n <div data-tpl-if=\"slotted.after\" data-tpl-remove=\"tag\">{{{{ slotted.after }}}}</div>\n <span data-tpl-if=\"slotted.iafter\" class=\"input-group-text\">{{{{ slotted.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n`, ful_input_ec);\n\nclass Input extends Templated(HTMLElement, ful_input_template_) {\n render(slotted, template) {\n const input = this.input = slotted.input = slotted.input || (() => {\n const el = document.createElement(\"input\")\n el.classList.add(\"form-control\");\n return el;\n })();\n input.setAttribute('ful-validation-target', '');\n \n const id = input.getAttribute('id') || this.getAttribute('input-id') || Attributes.uid('ful-input');\n Attributes.forward('input-', this, slotted.input)\n Attributes.defaultValue(slotted.input, \"id\", id);\n Attributes.defaultValue(slotted.input, \"type\", \"text\");\n Attributes.defaultValue(slotted.input, \"placeholder\", \" \");\n const name = this.getAttribute('name');\n return template.render({ id, name, slotted });\n }\n get value(){\n return this.input.value;\n }\n set value(value){\n this.input.value = value;\n }\n static configure() {\n customElements.define('ful-input', Input);\n }\n}\n\nexport { Input };\n","import { Fragments, Attributes, Templated } from \"./elements.mjs\"\n/**\n * <script src=\"tom-select.complete.js\"></script>\n * <link href=\"tom-select.bootstrap5.css\" rel=\"stylesheet\" />\n */\nconst ful_select_ec = globalThis.ec || ftl.EvaluationContext.configure({\n\n});\n\nconst ful_select_template_ = globalThis.ful_select_template || ftl.Template.fromHtml(`\n <label data-tpl-for=\"tsId\" class=\"form-label\">{{{{ slotted.default }}}}</label>\n {{{{ input }}}}\n <div class=\"input-group\">\n <span data-tpl-if=\"slotted.ibefore\" class=\"input-group-text\">{{{{ slotted.ibefore }}}}</span>\n <div data-tpl-if=\"slotted.before\" data-tpl-remove=\"tag\">{{{{ slotted.before }}}}</div>\n {{{{ slotted.input }}}} \n <div data-tpl-if=\"slotted.after\" data-tpl-remove=\"tag\">{{{{ slotted.after }}}}</div>\n <span data-tpl-if=\"slotted.iafter\" class=\"input-group-text\">{{{{ slotted.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error> \n`, ful_select_ec);\n\n\nclass Select extends Templated(HTMLElement, ful_select_template_) {\n constructor(tsConfig) {\n super();\n this.tsConfig = tsConfig;\n }\n render(slotted, template) {\n const type = this.getAttribute(\"type\") || 'local';\n const remote = type != 'local';\n const loadOnce = this.getAttribute('load') != 'always';\n const name = this.getAttribute('name');\n const input = slotted.input = slotted.input || (() => {\n return document.createElement(\"select\");\n })();\n input.setAttribute('ful-validation-target', '');\n\n const id = input.getAttribute('id') || this.getAttribute('input-id') || Attributes.uid('ful-select');\n const tsId = `${id}-ts-control`;\n Attributes.forward('input-', this, input)\n Attributes.defaultValue(input, \"id\", id);\n Attributes.defaultValue(input, \"placeholder\", \" \");\n\n //tomselect needs the input to have a parent.\n //se we move the input to a fragment\n slotted.input = Fragments.from(input);\n\n this.loaded = !remote;\n\n const tsDefaultConfig = {\n render: {\n loading: () => '<ful-spinner class=\"centered p-2\"></ful-spinner>'\n }\n }\n\n\n this._remote = remote;\n // we need to await this load in setValue when remote is configured and the option\n // is not loaded yet.\n // tomselect settings.load does not retun a promise as it wraps the configured load function\n // with a debouncer\n this._unwrappedRemoteLoad = async (query, callback) => {\n\n if (!remote || remote && loadOnce && this.loaded) {\n callback();\n return;\n }\n const type = query && query.hasOwnProperty('byId') ? 'id' : 'query';\n const qvalue = type === 'id' ? query.byId : query;\n const data = await (this.loader ? this.loader(qvalue, type) : []);\n if(type !== 'id'){\n this.loaded = true;\n }\n callback(data);\n };\n\n\n this.ts = new TomSelect(input, Object.assign(remote ? {\n preload: 'focus',\n load: this._unwrappedRemoteLoad,\n shouldLoad: (query) => this.shouldLoad ? this.shouldLoad(query) : true\n } : {}, tsDefaultConfig, this.tsConfig));\n //we remove the input to move it\n input.remove();\n return template.render({ id, tsId, name, input, slotted });\n }\n set value(v) {\n (async () => {\n if(this._remote){\n await this._unwrappedRemoteLoad({byId: v}, this.ts.loadCallback.bind(this.ts));\n }\n this.ts.setValue(v);\n })();\n }\n get value() {\n const v = this.ts.getValue();\n return v === '' ? null : v;\n }\n static custom(tagName, configuration) {\n customElements.define(tagName, class extends Select {\n constructor() {\n super(configuration);\n }\n });\n }\n static configure() {\n return Select.custom('ful-select');\n }\n\n}\n\nexport { Select };\n","import { Attributes, Fragments, Stateful, Templated } from \"./elements.mjs\"\n\n\n\n\n\nconst ful_radiogroup_ec = globalThis.ec || ftl.EvaluationContext.configure({\n\n});\n\nconst ful_radiougroup_template_ = globalThis.ful_radiogroup_template || ftl.Template.fromHtml(`\n <fieldset>\n <legend class=\"form-label\">\n {{{{ slotted.default }}}}\n </legend>\n <header data-tpl-if=\"slotted.header\">\n {{{{ slotted.header }}}}\n </header>\n <section>\n <label data-tpl-each=\"inputsAndLabels\" data-tpl-var=\"ial\">\n {{{{ ial[0] }}}}\n {{{{ ial[1] }}}}\n </label>\n </section>\n <ful-field-error data-tpl-if=\"name\" data-tpl-field=\"name\"></ful-field-error>\n </fieldset>\n`, ful_radiogroup_ec);\n\n\nclass RadioGroup extends Stateful(Templated(HTMLElement, ful_radiougroup_template_), ['disabled']) {\n render(slotted, template) { \n const name = this.getAttribute('name') || Attributes.uid('ful-radiogroup');\n const radioEls = Array.from(slotted.default.querySelectorAll('ful-radio'));\n const inputsAndLabels = radioEls.map(el => {\n const input = document.createElement('input');\n input.setAttribute('type', 'radio');\n Attributes.forward('input-', this, input);\n Attributes.forward('', el, input);\n input.setAttribute('name', `${name}-ignore`);\n input.setAttribute('ful-validation-target', '');\n input.dataset['fulBindInclude'] = 'never';\n const label = Fragments.fromChildNodes(el);\n return [input, label];\n });\n radioEls.forEach(el => el.remove());\n \n const fragment = template.render({\n name: name,\n slotted: slotted,\n inputsAndLabels: inputsAndLabels\n });\n return fragment;\n }\n get value() {\n const checked = this.querySelector('input[type=radio]:checked');\n return checked ? checked.value : null;\n }\n set value(value){\n this.querySelector(`input[type=radio][value=${CSS.escape(value)}]`).checked = true;\n }\n static configure() {\n customElements.define('ful-radio-group', RadioGroup);\n } \n}\n\n\nexport { RadioGroup };","import { Attributes, Fragments, Templated } from \"./elements.mjs\"\n\n\n\nconst ful_spinner_ec = globalThis.ec || ftl.EvaluationContext.configure({\n\n});\n\nconst ful_spinner_template_ = globalThis.ful_spinner_template || ftl.Template.fromHtml(`\n <div class=\"ful-spinner-wrapper\">\n <div class=\"ful-spinner-text\">{{{{ slotted.default }}}}</div>\n <div class=\"ful-spinner-icon\"></div>\n </div>\n`, ful_spinner_ec);\n\n\nclass Spinner extends Templated(HTMLElement, ful_spinner_template_) {\n render(slotted, template) {\n return template.render({ slotted });\n }\n static configure() {\n customElements.define('ful-spinner', Spinner);\n }\n}\n\nexport { Spinner };","class Wizard extends HTMLElement {\n constructor() {\n super();\n this.progress = [...this.children].filter(e => e.matches(\"header,ol,ul\"));\n\n this.progress.forEach(p => {\n const children = [...p.children];\n const current = children.filter(e => e.matches(\".active\"))[0];\n if (current === undefined && children.length > 0) {\n children[0].classList.add('active');\n }\n });\n if (this.querySelector('section.current') === null) {\n const firstSection = this.querySelector('section:first-of-type');\n if (firstSection !== null) {\n firstSection.classList.add('current');\n }\n }\n }\n next() {\n this.progress.forEach(p => {\n const children = [...p.children];\n const current = children.filter(e => e.matches(\".active\"))[0];\n current?.classList.remove('active');\n current?.nextElementSibling?.classList.add('active');\n });\n const currentSection = this.querySelector('section.current');\n currentSection.classList.remove(\"current\");\n currentSection.nextElementSibling.classList.add('current');\n\n this.dispatchEvent(new CustomEvent('wizard:activate', {\n bubbles: true,\n cancelable: true\n }));\n\n }\n prev() {\n this.progress.forEach(p => {\n const children = [...p.children];\n const current = children.filter(e => e.matches(\".active\"))[0];\n current?.classList.remove('active');\n current?.previousElementSibling?.classList.add('active');\n });\n const currentSection = this.querySelector('section.current');\n currentSection.classList.remove(\"current\");\n currentSection.previousElementSibling.classList.add('current');\n this.dispatchEvent(new CustomEvent('wizard:activate', {\n bubbles: true,\n cancelable: true\n }));\n }\n moveTo = function (n) {\n this.progress.forEach(p => {\n const children = [...p.children];\n const current = children.filter(e => e.matches(\".active\"))[0];\n current?.classList.remove('active');\n p.children[+n]?.classList.add('active');\n });\n const currentSection = this.querySelector('section.current');\n currentSection?.classList.remove(\"current\");\n const nthSection = this.querySelector(`section:nth-child(${+n})`);\n nthSection.classList.add('current');\n this.dispatchEvent(new CustomEvent('wizard:activate', {\n bubbles: true,\n cancelable: true\n }));\n }\n static custom(tagName, configuration) {\n customElements.define(tagName, class extends Wizard {\n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return n%3==2?a=a.substring(0,a.length-1):n%3==1&&(a=a.substring(0,a.length-2)),a}static decode(t,r){const s=r||e.URL_SAFE;let n=Math.floor(.75*t.length);for(let e=0;e!==t.length&&"="===t[t.length-e-1];++e)--n;const i=new Uint8Array(n);let a=0,o=0;for(;a<.75*t.length;){const e=s.indexOf(t.charAt(o++)),r=s.indexOf(t.charAt(o++)),n=s.indexOf(t.charAt(o++)),c=s.indexOf(t.charAt(o++));i[a++]=e<<2|r>>4,i[a++]=(15&r)<<4|n>>2,i[a++]=(3&n)<<6|c}return i.buffer}}e.STANDARD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.URL_SAFE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";class r{constructor(){const t=document.querySelector("meta[name='context']").getAttribute("content");this.context=t.endsWith("/")?t.substring(0,t.length-1):t}async intercept(t,e){const r=t.resource.startsWith("/")?"":"/";return t.resource=this.context+r+t.resource,await e.proceed(t)}}class s{constructor(){this.k=document.querySelector("meta[name='_csrf_header']").getAttribute("content"),this.v=document.querySelector("meta[name='_csrf']").getAttribute("content")}async intercept(t,e){const r=new Headers(t.options.headers);return r.set(this.k,this.v),t.options.headers=r,await e.proceed(t)}}class n{constructor(t){this.redirectUri=t}async intercept(t,e){const r=await e.proceed(t);if(401!==r.status)return r;window.location.href=this.redirectUri}}class i extends Error{static parseProblems(t,e){const r=[{type:"GENERIC_PROBLEM",context:null,reason:`${t}: ${e}`,details:null}];try{return e?JSON.parse(e):r}catch(t){return r}}static fromResponse(t,e){return new i(t,i.parseProblems(t,e))}constructor(t,e){super(JSON.stringify(e)),this.name=`Failure:${t}`,this.status=t,this.problems=e}}class a{constructor(){this.interceptors=[]}withContext(){return this.interceptors.push(new r),this}withCsrfToken(){return this.interceptors.push(new s),this}withRedirectOnUnauthorized(t){return this.interceptors.push(new n(t)),this}withInterceptors(...t){return this.interceptors.push(...t),this}build(){const t=this.interceptors;return new l({interceptors:t})}}class o{async intercept(t,e){return await fetch(t.resource,t.options)}}class c{constructor(t,e){this.interceptors=t,this.current=e}async proceed(t){const e=this.interceptors[this.current];return await e.intercept(t,new c(this.interceptors,this.current+1))}}class l{static builder(){return new a}constructor({interceptors:t}){this.interceptors=t||[]}async exchange(t,e){const r=e||{},s=[...this.interceptors,...r.interceptors||[],new o],n=new c(s,0);return await n.proceed({resource:t,options:r})}async fetch(t,e){const r=await this.exchange(t,e);if(!r.ok){const t=await r.text();throw i.fromResponse(r.status,t)}return r}async json(t,e){try{const r=await this.fetch(t,e),s=await r.text();return s?JSON.parse(s):void 0}catch(t){if(t instanceof i)throw t;throw new i(0,[{type:"CONNECTION_PROBLEM",context:null,reason:t.message,details:null}])}}}function u(t,e,r){return{headers:{"Content-Type":"application/json",...r},method:t,body:JSON.stringify(e)}}class d{constructor(t,e){this.prefix=t,this.storage=e}save(t,e){this.storage.setItem(`${this.prefix}-${t}`,JSON.stringify(e))}load(t){const e=this.storage.getItem(`${this.prefix}-${t}`);return void 0===e?void 0:JSON.parse(e)}remove(t){this.storage.removeItem(`${this.prefix}-${t}`)}pop(t){const e=this.load(t);return this.remove(t),e}}class h extends d{constructor(t){super(t,sessionStorage)}}class f{static forKeycloak(t,e,r){return new f(t,"openid profile",{auth:new URL("protocol/openid-connect/auth",e),token:new URL("protocol/openid-connect/token",e),logout:new URL("protocol/openid-connect/logout",e),registration:new URL("protocol/openid-connect/registrations",e),redirect:r})}constructor(t,e,{auth:r,token:s,registration:n,logout:i,redirect:a}){this.storage=new h(t),this.clientId=t,this.scope=e,this.uri={auth:r,token:s,registration:n,logout:i,redirect:a}}async action(t,r){const s=e.encode(crypto.getRandomValues(new Uint8Array(32)).buffer),n=e.encode(await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(s))),i=this.clientId+e.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);this.storage.save(f.PKCE_AND_STATE_KEY,{state:i,verifier:s});const a=new URL(t);a.searchParams.set("client_id",this.clientId),a.searchParams.set("redirect_uri",this.uri.redirect),a.searchParams.set("response_type","code"),a.searchParams.set("scope",this.scope),a.searchParams.set("state",i),a.searchParams.set("code_challenge",n),a.searchParams.set("code_challenge_method","S256"),Object.entries(r||{}).forEach((t=>{a.searchParams.set(t[0],t[1])})),window.location=a}async registration(t){await this.action(this.uri.registration,t)}async applicationInitiatedAction(t){await this.action(this.uri.auth,{kc_action:t})}async _tokenExchange(t,e){window.history.replaceState("","",this.uri.redirect);const r=this.storage.pop(f.PKCE_AND_STATE_KEY);if(r.state!==e)throw new Error("State mismatch");const s=await fetch(this.uri.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["code",t],["grant_type","authorization_code"],["code_verifier",r.verifier],["state",r.state],["redirect_uri",this.uri.redirect]])});if(!s.ok){const t=await s.text();throw new Error("Error:"+s.status+": "+t)}const n=await s.json();return new p(this.clientId,n,this.uri)}async ensureLoggedIn(){const t=new URL(window.location.href),e=t.searchParams.get("code");if(e&&this.storage.load(f.PKCE_AND_STATE_KEY)){const r=t.searchParams.get("state");return await this._tokenExchange(e,r)}return await this.action(this.uri.auth,{}),null}}f.PKCE_AND_STATE_KEY="state-and-verifier";class p{static parseToken(t){const[r,s,n]=t.split("."),i=new TextDecoder("utf-8");return{header:JSON.parse(i.decode(e.decode(r,e.STANDARD))),payload:JSON.parse(i.decode(e.decode(s,e.STANDARD))),signature:n}}constructor(t,e,{token:r,logout:s,redirect:n}){this.clientId=t,this.token=e,this.accessToken=p.parseToken(e.access_token),this.refreshToken=p.parseToken(e.refresh_token),this.uri={token:r,logout:s,redirect:n},this.refreshCallback=null}onRefresh(t){this.refreshCallback=t}async refresh(){const t=await fetch(this.uri.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["grant_type","refresh_token"],["refresh_token",this.token.refresh_token]])});if(!t.ok)throw new Error("Error:"+t.status+": "+t.text());const e=await t.json();this.token=e,this.accessToken=p.parseToken(e.access_token),this.refreshToken=p.parseToken(e.refresh_token),this.refreshCallback&&this.refreshCallback(this.token,this.accessToken,this.refreshToken)}shouldBeRefreshed(t){const e=(new Date).getTime(),r=1e3*this.refreshToken.payload.exp;return!(e>r)&&e-t>r}async refreshIf(t){this.shouldBeRefreshed(t)&&await this.refresh()}logout(){const t=new URL(this.uri.logout);t.searchParams.set("post_logout_redirect_uri",this.uri.redirect),t.searchParams.set("id_token_hint",this.token.id_token),window.location=t}bearerToken(){return`Bearer ${this.token.access_token}`}interceptor(t,e){return new m(this,t,e)}}class m{constructor(t,e,r){this.session=t,this.gracePeriodBefore=e||2e3,this.gracePeriodAfter=r||3e4}async intercept(t,e){await this.session.refreshIf(this.gracePeriodBefore);const r=new Headers(t.options.headers);r.set("Authorization",this.session.bearerToken()),t.options.headers=r;const s=await e.proceed(t);return await this.session.refreshIf(this.gracePeriodAfter),s}}const g={sleep:t=>new Promise((e=>setTimeout(e,t))),DEBOUNCE_DEFAULT:0,DEBOUNCE_IMMEDIATE:1,debounce(t,e,r){let s=null,n=[],i=0,a=r||g.DEBOUNCE_DEFAULT;const o=()=>{const r=(new Date).getTime()-i;t>r?s=setTimeout(o,t-r):(s=null,a!==g.DEBOUNCE_IMMEDIATE&&e(...n),null===s&&(n=[]))};return function(){n=arguments,i=(new Date).getTime(),null===s&&(s=setTimeout(o,t),a===g.DEBOUNCE_IMMEDIATE&&e(...n))}},THROTTLE_DEFAULT:0,THROTTLE_NO_LEADING:1,THROTTLE_NO_TRAILING:2,throttle(t,e,r){let s=null,n=[],i=0,a=r||g.THROTTLE_DEFAULT;const o=()=>{i=a&g.THROTTLE_NO_LEADING?0:(new Date).getTime(),s=null,e(...n),null===s&&(n=[])};return function(){const r=(new Date).getTime();!i&&a&g.THROTTLE_NO_LEADING&&(i=r);const c=t-(r-i);n=arguments,c<=0||c>t?(null!==s&&(clearTimeout(s),s=null),i=r,e(...n),null===s&&(n=[])):null!==s||a&g.THROTTLE_NO_TRAILING||(s=setTimeout(o,c))}}};class E{static fromHtml(...t){const e=document.createElement("div");e.innerHTML=t.join("");const r=new DocumentFragment;return Array.from(e.childNodes).forEach((t=>{r.appendChild(t)})),r}static toHtml(t){var e=document.createElement("root");return e.appendChild(t),e.innerHTML}static from(...t){const e=new DocumentFragment;for(let r=0;r!==t.length;++r)e.appendChild(t[r]);return e}static fromChildNodes(t){const e=Array.from(t.childNodes),r=new DocumentFragment;for(let t=0;t!==e.length;++t)r.appendChild(e[t]);return r}}class w{static id=0;static uid(t){return`${t}-${++w.id}`}static asBoolean(t){return null!=t&&!1!==t}static defaultValue(t,e,r){return t.hasAttribute(e)||t.setAttribute(e,r),t.getAttribute(e)}static forward(t,e,r){e.getAttributeNames().filter((e=>e.startsWith(t))).forEach((s=>{const n=s.substring(t.length);"class"!==n?r.setAttribute(n,e.getAttribute(s)):r.classList.add(...e.getAttribute(t+"class").split(" ").filter((t=>t.length)))}))}}class b{static from(t){const e=Array.from(t.childNodes).filter((t=>t.matches&&t.matches("[slot]"))).map((t=>{t.remove();const e=t.getAttribute("slot");return t.removeAttribute("slot"),[e,t]})),r=Object.fromEntries(e);return r.default=new DocumentFragment,r.default.append(...t.childNodes),r}}const T=(t,e)=>class extends t{rendered_;get rendered(){return this.rendered_}async connectedCallback(){if(this.rendered_)return;const t=b.from(this),r=await Promise.resolve(this.render(t,e));this.innerHTML="",r&&this.appendChild(r),this.rendered_=!0}},A=(t,e,r)=>{const s=[].concat(e).concat(r||[]);return class extends t{static get observedAttributes(){return s}constructor(...t){super(...t),this.internals_=this.internals_||this.attachInternals();for(const t of e)Object.defineProperty(this,t,{get(){return this.hasAttribute(t)},set(e){if(w.asBoolean(e))return this.internals_.states.add(`--${t}`),void this.setAttribute(t,"");this.internals_.states.delete(`--${t}`),this.removeAttribute(t)}})}attributeChangedCallback(t,e,r){if(e===r)return;this[t]=r;const s=this[`on${t.charAt(0).toUpperCase()}${t.substr(1).toLowerCase()}Changed`];s?.call(this,r,e)}}};class v extends(T(HTMLElement)){static MUTATORS={};static EXTRACTORS={};static VALUE_HOLDERS_SELECTOR="[name]";static IGNORED_CHILDREN_SELECTOR=".d-none, [hidden]";render(t,e){const r=document.createElement("form");return r.append(t.default),r.addEventListener("submit",(async t=>{t.preventDefault(),this.spinner(!0);try{this.submitter&&await this.submitter(this.getValues(),this)}catch(t){if(t instanceof i)return void this.setErrors(t.problems);throw t}finally{this.spinner(!1)}})),r}spinner(t){this.querySelectorAll("ful-spinner").forEach((e=>{e.hidden=!t})),this.querySelectorAll("[type=submit],[type=reset]").forEach((e=>{e.disabled=t}))}setValues(t){for(let e in t)t.hasOwnProperty(e)&&Array.from(this.querySelectorAll(`[name='${CSS.escape(e)}']`)).forEach((r=>{v.mutate(v.MUTATORS,r,t[e],e,t)}))}getValues(){return Array.from(this.querySelectorAll(v.VALUE_HOLDERS_SELECTOR)).filter((t=>"never"!==t.dataset.fulBindInclude&&("always"===t.dataset.fulBindInclude||null===t.closest(v.IGNORED_CHILDREN_SELECTOR)))).reduce(((t,e)=>v.providePath(t,e.getAttribute("name"),v.extract(v.EXTRACTORS,e))),{})}setErrors(t,e){if(this.clearErrors(),t.filter((t=>"FIELD_ERROR"===t.type||"INVALID_FORMAT"===t.type)).forEach((t=>{const e=t.context.replace("[",".").replace("].",".");this.querySelectorAll(`[name='${CSS.escape(e)}']`).forEach((t=>t.classList.add("is-invalid"))),this.querySelectorAll(`ful-field-error[field='${CSS.escape(e)}']`).forEach((e=>e.innerText=t.reason))})),this.querySelectorAll("ful-errors").forEach((e=>{const r=t.filter((t=>"FIELD_ERROR"!==t.type&&"INVALID_FORMAT"!==t.type));e.innerHTML=r.map((t=>t.reason)).join("\n"),0!==r.length&&e.removeAttribute("hidden")})),!e)return;const r=Array.from(this.querySelectorAll("ful-field-error")).map((t=>t.getBoundingClientRect().y+window.scrollY)),s=Math.min(...r);s!==1/0&&window.scroll(window.scrollX,s>100?s-100:0)}clearErrors(){this.querySelectorAll(".is-invalid").forEach((t=>t.classList.remove("is-invalid"))),this.querySelectorAll("ful-errors").forEach((t=>{t.innerHTML="",t.setAttribute("hidden","")}))}static extract(t,e){const r=t[e.dataset.fulBindExtractor]||t[e.dataset.fulBindProvide];if(r)return r(e);if("radio"===e.getAttribute("type")){if(!e.checked)return;return"boolean"===e.dataset.fulBindType?"true"===e.value:e.value}return"checkbox"===e.getAttribute("type")?e.checked:"boolean"===e.dataset.fulBindType?e.value?"true"===e.value:null:e.getValue?e.getValue():e.value||null}static mutate(t,e,r,s,n){const i=t[e.dataset.fulBindMutator]||t[e.dataset.fulBindProvide];i?i(e,r,s,n):"radio"!==e.getAttribute("type")?"checkbox"!==e.getAttribute("type")?e.setValue?e.setValue(r):e.value=r:e.checked=r:e.checked=e.getAttribute("value")===r}static providePath(t,e,r){const s=e.split(".").map((t=>t.match(/^[0-9]+$/)?+t:t));let n=t,i=null;for(let e=0;;++e){const a=s[e],o=s[e-1];if(Number.isInteger(a)&&!Array.isArray(n)&&(null!==i?i[o]=n=[]:t=n=[]),e===s.length-1)return n[a]=void 0!==r?r:a in n?n[a]:null,t;void 0===n[a]&&(n[a]={}),i=n,n=n[a]}}static custom(t,e){customElements.define(t,class extends v{constructor(){super(e)}})}}const y=globalThis.ec||ftl.EvaluationContext.configure({}),_=globalThis.ful_input_template||ftl.Template.fromHtml('\n <label data-tpl-for="id" class="form-label">{{{{ slotted.default }}}}</label>\n <div class="input-group">\n <span data-tpl-if="slotted.ibefore" class="input-group-text">{{{{ slotted.ibefore }}}}</span>\n <div data-tpl-if="slotted.before" data-tpl-remove="tag">{{{{ slotted.before }}}}</div>\n {{{{ slotted.input }}}} \n <div data-tpl-if="slotted.after" data-tpl-remove="tag">{{{{ slotted.after }}}}</div>\n <span data-tpl-if="slotted.iafter" class="input-group-text">{{{{ slotted.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n',y);class L extends(T(HTMLElement,_)){render(t,e){const r=t.input=t.input||(()=>{const t=document.createElement("input");return t.classList.add("form-control"),t})(),s=r.getAttribute("id")||this.getAttribute("input-id")||w.uid("ful-input");w.forward("input-",this,t.input),w.defaultValue(t.input,"id",s),w.defaultValue(t.input,"type","text"),w.defaultValue(t.input,"placeholder"," ");const n=r.getAttribute("name");return e.render({id:s,name:n,slotted:t})}static configure(){customElements.define("ful-input",L)}}const S=globalThis.ec||ftl.EvaluationContext.configure({}),k=globalThis.ful_select_template||ftl.Template.fromHtml('\n <label data-tpl-for="tsId" class="form-label">{{{{ slotted.default }}}}</label>\n {{{{ input }}}}\n <div class="input-group">\n <span data-tpl-if="slotted.ibefore" class="input-group-text">{{{{ slotted.ibefore }}}}</span>\n <div data-tpl-if="slotted.before" data-tpl-remove="tag">{{{{ slotted.before }}}}</div>\n {{{{ slotted.input }}}} \n <div data-tpl-if="slotted.after" data-tpl-remove="tag">{{{{ slotted.after }}}}</div>\n <span data-tpl-if="slotted.iafter" class="input-group-text">{{{{ slotted.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error> \n',S);class R extends(T(HTMLElement,k)){constructor(t){super(),this.tsConfig=t}render(t,e){const r="local"!=(this.getAttribute("type")||"local"),s="always"!=this.getAttribute("load"),n=t.input=t.input||document.createElement("select"),i=n.getAttribute("id")||this.getAttribute("input-id")||w.uid("ful-select"),a=`${i}-ts-control`;w.forward("input-",this,n),w.defaultValue(n,"id",i),w.defaultValue(n,"placeholder"," ");const o=n.getAttribute("name");n.setValue=this.setValue.bind(this),n.getValue=this.getValue.bind(this),t.input=E.from(n),this.loaded=!r;return this._remote=r,this._unwrappedRemoteLoad=async(t,e)=>{if(!r||r&&s&&this.loaded)return void e();const n=t&&t.hasOwnProperty("byId")?"id":"query",i="id"===n?t.byId:t,a=await(this.loader?this.loader(i,n):[]);"id"!==n&&(this.loaded=!0),e(a)},this.ts=new TomSelect(n,Object.assign(r?{preload:"focus",load:this._unwrappedRemoteLoad,shouldLoad:t=>!this.shouldLoad||this.shouldLoad(t)}:{},{render:{loading:()=>'<ful-spinner class="centered p-2"></ful-spinner>'}},this.tsConfig)),console.log("ts created"),n.remove(),e.render({id:i,tsId:a,name:o,input:n,slotted:t})}async setValue(t){this._remote&&await this._unwrappedRemoteLoad({byId:t},this.ts.loadCallback.bind(this.ts)),this.ts.setValue(t)}getValue(){const t=this.ts.getValue();return""===t?null:t}static custom(t,e){customElements.define(t,class extends R{constructor(){super(e)}})}static configure(){return R.custom("ful-select")}}const x=globalThis.ec||ftl.EvaluationContext.configure({}),C=globalThis.ful_radiogroup_template||ftl.Template.fromHtml('\n <fieldset>\n <legend class="form-label">\n {{{{ slotted.default }}}}\n </legend>\n <header data-tpl-if="slotted.header">\n {{{{ slotted.header }}}}\n </header>\n <section>\n <label data-tpl-each="inputsAndLabels" data-tpl-var="ial">\n {{{{ ial[0] }}}}\n {{{{ ial[1] }}}}\n </label>\n </section>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n </fieldset>\n',x);class O extends(A(T(HTMLElement,C),["disabled"])){render(t,e){const r=this.getAttribute("input-name")||w.uid("ful-radiogroup"),s=Array.from(t.default.querySelectorAll("ful-radio")),n=s.map((t=>{const e=document.createElement("input");e.setAttribute("type","radio"),w.forward("input-",this,e),w.forward("",t,e),w.defaultValue(e,"name",r);return[e,E.fromChildNodes(t)]}));s.forEach((t=>t.remove()));return e.render({name:r,slotted:t,inputsAndLabels:n})}static configure(){customElements.define("ful-radio-group",O)}}const I=globalThis.ec||ftl.EvaluationContext.configure({}),N=globalThis.ful_spinner_template||ftl.Template.fromHtml('\n <div class="ful-spinner-wrapper">\n <div class="ful-spinner-text">{{{{ slotted.default }}}}</div>\n <div class="ful-spinner-icon"></div>\n </div>\n',I);class D extends(T(HTMLElement,N)){render(t,e){return e.render({slotted:t})}static configure(){customElements.define("ful-spinner",D)}}class P extends HTMLElement{constructor(){if(super(),this.progress=[...this.children].filter((t=>t.matches("header,ol,ul"))),this.progress.forEach((t=>{const e=[...t.children];void 0===e.filter((t=>t.matches(".active")))[0]&&e.length>0&&e[0].classList.add("active")})),null===this.querySelector("section.current")){const t=this.querySelector("section:first-of-type");null!==t&&t.classList.add("current")}}next(){this.progress.forEach((t=>{const e=[...t.children].filter((t=>t.matches(".active")))[0];e?.classList.remove("active"),e?.nextElementSibling?.classList.add("active")}));const t=this.querySelector("section.current");t.classList.remove("current"),t.nextElementSibling.classList.add("current"),this.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}prev(){this.progress.forEach((t=>{const e=[...t.children].filter((t=>t.matches(".active")))[0];e?.classList.remove("active"),e?.previousElementSibling?.classList.add("active")}));const t=this.querySelector("section.current");t.classList.remove("current"),t.previousElementSibling.classList.add("current"),this.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}moveTo=function(t){this.progress.forEach((e=>{const r=[...e.children].filter((t=>t.matches(".active")))[0];r?.classList.remove("active"),e.children[+t]?.classList.add("active")}));const e=this.querySelector("section.current");e?.classList.remove("current");this.querySelector(`section:nth-child(${+t})`).classList.add("current"),this.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))};static custom(t,e){customElements.define(t,class extends P{constructor(){super(e)}})}static configure(){return P.custom("ful-wizard")}}return t.Attributes=w,t.AuthorizationCodeFlow=f,t.AuthorizationCodeFlowInterceptor=m,t.AuthorizationCodeFlowSession=p,t.Base64=e,t.Failure=i,t.Form=v,t.Fragments=E,t.Hex=class{static decode(t){if(t.length%2!=0)throw new Error("invalid length");const e=t.length/2;return new Uint8Array(e).map(((e,r)=>{const s=2*r,n=t.substring(s,s+2);return parseInt(n,16)}))}static encode(t,e){return Array.from(t).map((t=>t.toString(16))).map((t=>e?t.toUpperCase():t)).map((t=>t.padStart(2,0))).join("")}},t.HttpClient=l,t.Input=L,t.LocalStorage=class extends d{constructor(t){super(t,localStorage)}},t.RadioGroup=O,t.Select=R,t.SessionStorage=h,t.Slots=b,t.Spinner=D,t.Stateful=A,t.Templated=T,t.VersionedStorage=class{constructor(t,e,r){this.storage=t,this.key=e,this.dataSupplier=r,this.cache=null}async load(t){const e=this.storage.load(this.key);if(e&&e.revision===t)return void(this.cache=e.value);const r=await this.dataSupplier(t,this.key);this.storage.save(this.key,{revision:t,value:r}),this.cache=r}data(){return this.cache}},t.Wizard=P,t.jsonPatch=function(t,e){return u("PATCH",t,e)},t.jsonPost=function(t,e){return u("POST",t,e)},t.jsonPut=function(t,e){return u("PUT",t,e)},t.jsonRequest=u,t.timing=g,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
1
|
+
var ful=function(t){"use strict";class e{static encode(t,r){const s=r||e.URL_SAFE,n=t.byteLength,i=new Uint8Array(t);let a="";for(let t=0;t<n;t+=3){a+=s[i[t]>>2]+s[(3&i[t])<<4|i[t+1]>>4]+s[(15&i[t+1])<<2|i[t+2]>>6]+s[63&i[t+2]]}return n%3==2?a=a.substring(0,a.length-1):n%3==1&&(a=a.substring(0,a.length-2)),a}static decode(t,r){const s=r||e.URL_SAFE;let n=Math.floor(.75*t.length);for(let e=0;e!==t.length&&"="===t[t.length-e-1];++e)--n;const i=new Uint8Array(n);let a=0,o=0;for(;a<.75*t.length;){const e=s.indexOf(t.charAt(o++)),r=s.indexOf(t.charAt(o++)),n=s.indexOf(t.charAt(o++)),c=s.indexOf(t.charAt(o++));i[a++]=e<<2|r>>4,i[a++]=(15&r)<<4|n>>2,i[a++]=(3&n)<<6|c}return i.buffer}}e.STANDARD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.URL_SAFE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";class r{constructor(){const t=document.querySelector("meta[name='context']").getAttribute("content");this.context=t.endsWith("/")?t.substring(0,t.length-1):t}async intercept(t,e){const r=t.resource.startsWith("/")?"":"/";return t.resource=this.context+r+t.resource,await e.proceed(t)}}class s{constructor(){this.k=document.querySelector("meta[name='_csrf_header']").getAttribute("content"),this.v=document.querySelector("meta[name='_csrf']").getAttribute("content")}async intercept(t,e){const r=new Headers(t.options.headers);return r.set(this.k,this.v),t.options.headers=r,await e.proceed(t)}}class n{constructor(t){this.redirectUri=t}async intercept(t,e){const r=await e.proceed(t);if(401!==r.status)return r;window.location.href=this.redirectUri}}class i extends Error{static parseProblems(t,e){const r=[{type:"GENERIC_PROBLEM",context:null,reason:`${t}: ${e}`,details:null}];try{return e?JSON.parse(e):r}catch(t){return r}}static fromResponse(t,e){return new i(t,i.parseProblems(t,e))}constructor(t,e){super(JSON.stringify(e)),this.name=`Failure:${t}`,this.status=t,this.problems=e}}class a{constructor(){this.interceptors=[]}withContext(){return this.interceptors.push(new r),this}withCsrfToken(){return this.interceptors.push(new s),this}withRedirectOnUnauthorized(t){return this.interceptors.push(new n(t)),this}withInterceptors(...t){return this.interceptors.push(...t),this}build(){const t=this.interceptors;return new l({interceptors:t})}}class o{async intercept(t,e){return await fetch(t.resource,t.options)}}class c{constructor(t,e){this.interceptors=t,this.current=e}async proceed(t){const e=this.interceptors[this.current];return await e.intercept(t,new c(this.interceptors,this.current+1))}}class l{static builder(){return new a}constructor({interceptors:t}){this.interceptors=t||[]}async exchange(t,e){const r=e||{},s=[...this.interceptors,...r.interceptors||[],new o],n=new c(s,0);return await n.proceed({resource:t,options:r})}async fetch(t,e){const r=await this.exchange(t,e);if(!r.ok){const t=await r.text();throw i.fromResponse(r.status,t)}return r}async json(t,e){try{const r=await this.fetch(t,e),s=await r.text();return s?JSON.parse(s):void 0}catch(t){if(t instanceof i)throw t;throw new i(0,[{type:"CONNECTION_PROBLEM",context:null,reason:t.message,details:null}])}}}function u(t,e,r){return{headers:{"Content-Type":"application/json",...r},method:t,body:JSON.stringify(e)}}class d{constructor(t,e){this.prefix=t,this.storage=e}save(t,e){this.storage.setItem(`${this.prefix}-${t}`,JSON.stringify(e))}load(t){const e=this.storage.getItem(`${this.prefix}-${t}`);return void 0===e?void 0:JSON.parse(e)}remove(t){this.storage.removeItem(`${this.prefix}-${t}`)}pop(t){const e=this.load(t);return this.remove(t),e}}class h extends d{constructor(t){super(t,sessionStorage)}}class f{static forKeycloak(t,e,r){return new f(t,"openid profile",{auth:new URL("protocol/openid-connect/auth",e),token:new URL("protocol/openid-connect/token",e),logout:new URL("protocol/openid-connect/logout",e),registration:new URL("protocol/openid-connect/registrations",e),redirect:r})}constructor(t,e,{auth:r,token:s,registration:n,logout:i,redirect:a}){this.storage=new h(t),this.clientId=t,this.scope=e,this.uri={auth:r,token:s,registration:n,logout:i,redirect:a}}async action(t,r){const s=e.encode(crypto.getRandomValues(new Uint8Array(32)).buffer),n=e.encode(await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(s))),i=this.clientId+e.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);this.storage.save(f.PKCE_AND_STATE_KEY,{state:i,verifier:s});const a=new URL(t);a.searchParams.set("client_id",this.clientId),a.searchParams.set("redirect_uri",this.uri.redirect),a.searchParams.set("response_type","code"),a.searchParams.set("scope",this.scope),a.searchParams.set("state",i),a.searchParams.set("code_challenge",n),a.searchParams.set("code_challenge_method","S256"),Object.entries(r||{}).forEach((t=>{a.searchParams.set(t[0],t[1])})),window.location=a}async registration(t){await this.action(this.uri.registration,t)}async applicationInitiatedAction(t){await this.action(this.uri.auth,{kc_action:t})}async _tokenExchange(t,e){window.history.replaceState("","",this.uri.redirect);const r=this.storage.pop(f.PKCE_AND_STATE_KEY);if(r.state!==e)throw new Error("State mismatch");const s=await fetch(this.uri.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["code",t],["grant_type","authorization_code"],["code_verifier",r.verifier],["state",r.state],["redirect_uri",this.uri.redirect]])});if(!s.ok){const t=await s.text();throw new Error("Error:"+s.status+": "+t)}const n=await s.json();return new p(this.clientId,n,this.uri)}async ensureLoggedIn(){const t=new URL(window.location.href),e=t.searchParams.get("code");if(e&&this.storage.load(f.PKCE_AND_STATE_KEY)){const r=t.searchParams.get("state");return await this._tokenExchange(e,r)}return await this.action(this.uri.auth,{}),null}}f.PKCE_AND_STATE_KEY="state-and-verifier";class p{static parseToken(t){const[r,s,n]=t.split("."),i=new TextDecoder("utf-8");return{header:JSON.parse(i.decode(e.decode(r,e.STANDARD))),payload:JSON.parse(i.decode(e.decode(s,e.STANDARD))),signature:n}}constructor(t,e,{token:r,logout:s,redirect:n}){this.clientId=t,this.token=e,this.accessToken=p.parseToken(e.access_token),this.refreshToken=p.parseToken(e.refresh_token),this.uri={token:r,logout:s,redirect:n},this.refreshCallback=null}onRefresh(t){this.refreshCallback=t}async refresh(){const t=await fetch(this.uri.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["grant_type","refresh_token"],["refresh_token",this.token.refresh_token]])});if(!t.ok)throw new Error("Error:"+t.status+": "+t.text());const e=await t.json();this.token=e,this.accessToken=p.parseToken(e.access_token),this.refreshToken=p.parseToken(e.refresh_token),this.refreshCallback&&this.refreshCallback(this.token,this.accessToken,this.refreshToken)}shouldBeRefreshed(t){const e=(new Date).getTime(),r=1e3*this.refreshToken.payload.exp;return!(e>r)&&e-t>r}async refreshIf(t){this.shouldBeRefreshed(t)&&await this.refresh()}logout(){const t=new URL(this.uri.logout);t.searchParams.set("post_logout_redirect_uri",this.uri.redirect),t.searchParams.set("id_token_hint",this.token.id_token),window.location=t}bearerToken(){return`Bearer ${this.token.access_token}`}interceptor(t,e){return new m(this,t,e)}}class m{constructor(t,e,r){this.session=t,this.gracePeriodBefore=e||2e3,this.gracePeriodAfter=r||3e4}async intercept(t,e){await this.session.refreshIf(this.gracePeriodBefore);const r=new Headers(t.options.headers);r.set("Authorization",this.session.bearerToken()),t.options.headers=r;const s=await e.proceed(t);return await this.session.refreshIf(this.gracePeriodAfter),s}}const g={sleep:t=>new Promise((e=>setTimeout(e,t))),DEBOUNCE_DEFAULT:0,DEBOUNCE_IMMEDIATE:1,debounce(t,e,r){let s=null,n=[],i=0,a=r||g.DEBOUNCE_DEFAULT;const o=()=>{const r=(new Date).getTime()-i;t>r?s=setTimeout(o,t-r):(s=null,a!==g.DEBOUNCE_IMMEDIATE&&e(...n),null===s&&(n=[]))};return function(){n=arguments,i=(new Date).getTime(),null===s&&(s=setTimeout(o,t),a===g.DEBOUNCE_IMMEDIATE&&e(...n))}},THROTTLE_DEFAULT:0,THROTTLE_NO_LEADING:1,THROTTLE_NO_TRAILING:2,throttle(t,e,r){let s=null,n=[],i=0,a=r||g.THROTTLE_DEFAULT;const o=()=>{i=a&g.THROTTLE_NO_LEADING?0:(new Date).getTime(),s=null,e(...n),null===s&&(n=[])};return function(){const r=(new Date).getTime();!i&&a&g.THROTTLE_NO_LEADING&&(i=r);const c=t-(r-i);n=arguments,c<=0||c>t?(null!==s&&(clearTimeout(s),s=null),i=r,e(...n),null===s&&(n=[])):null!==s||a&g.THROTTLE_NO_TRAILING||(s=setTimeout(o,c))}}};class b{static fromHtml(...t){const e=document.createElement("div");e.innerHTML=t.join("");const r=new DocumentFragment;return Array.from(e.childNodes).forEach((t=>{r.appendChild(t)})),r}static toHtml(t){var e=document.createElement("root");return e.appendChild(t),e.innerHTML}static from(...t){const e=new DocumentFragment;for(let r=0;r!==t.length;++r)e.appendChild(t[r]);return e}static fromChildNodes(t){const e=Array.from(t.childNodes),r=new DocumentFragment;for(let t=0;t!==e.length;++t)r.appendChild(e[t]);return r}}class E{static id=0;static uid(t){return`${t}-${++E.id}`}static asBoolean(t){return null!=t&&!1!==t}static defaultValue(t,e,r){return t.hasAttribute(e)||t.setAttribute(e,r),t.getAttribute(e)}static forward(t,e,r){e.getAttributeNames().filter((e=>e.startsWith(t))).forEach((s=>{const n=s.substring(t.length);"class"!==n?r.setAttribute(n,e.getAttribute(s)):r.classList.add(...e.getAttribute(t+"class").split(" ").filter((t=>t.length)))}))}}class w{static from(t){const e=Array.from(t.childNodes).filter((t=>t.matches&&t.matches("[slot]"))).map((t=>{t.remove();const e=t.getAttribute("slot");return t.removeAttribute("slot"),[e,t]})),r=Object.fromEntries(e);return r.default=new DocumentFragment,r.default.append(...t.childNodes),r}}const v=(t,e)=>class extends t{rendered_;get rendered(){return this.rendered_}async connectedCallback(){if(this.rendered_)return;const t=w.from(this),r=await Promise.resolve(this.render(t,e));this.innerHTML="",r&&this.appendChild(r),this.rendered_=!0}},A=(t,e,r)=>{const s=[].concat(e).concat(r||[]);return class extends t{static get observedAttributes(){return s}constructor(...t){super(...t),this.internals_=this.internals_||this.attachInternals();for(const t of e)Object.defineProperty(this,t,{get(){return this.hasAttribute(t)},set(e){if(E.asBoolean(e))return this.internals_.states.add(`--${t}`),void this.setAttribute(t,"");this.internals_.states.delete(`--${t}`),this.removeAttribute(t)}})}attributeChangedCallback(t,e,r){if(e===r)return;this[t]=r;const s=this[`on${t.charAt(0).toUpperCase()}${t.substr(1).toLowerCase()}Changed`];s?.call(this,r,e)}}};function T(t,e){return Object.keys(t).reduce(((r,s)=>{const n=e.length?e+".":"";return"object"==typeof t[s]&&null!==t[s]?Object.assign(r,T(t[s],n+s)):r[n+s]=t[s],r}),{})}class y extends(v(HTMLElement)){static MUTATORS={};static EXTRACTORS={};static VALUE_HOLDERS_SELECTOR="[name]";static IGNORED_CHILDREN_SELECTOR=".d-none, [hidden]";render(t,e){const r=document.createElement("form");return r.append(t.default),r.addEventListener("submit",(async t=>{t.preventDefault(),this.spinner(!0);try{this.submitter&&await this.submitter(this.getValues(),this)}catch(t){if(t instanceof i)return void this.setErrors(t.problems);throw t}finally{this.spinner(!1)}})),r}spinner(t){this.querySelectorAll("ful-spinner").forEach((e=>{e.hidden=!t})),this.querySelectorAll("[type=submit],[type=reset]").forEach((e=>{e.disabled=t}))}setValues(t){for(const[e,r]of Object.entries(T(t,"")))Array.from(this.querySelectorAll(`[name='${CSS.escape(e)}']`)).forEach((t=>{y.mutate(y.MUTATORS,t,r,e)}))}getValues(){return Array.from(this.querySelectorAll(y.VALUE_HOLDERS_SELECTOR)).filter((t=>"never"!==t.dataset.fulBindInclude&&("always"===t.dataset.fulBindInclude||null===t.closest(y.IGNORED_CHILDREN_SELECTOR)))).reduce(((t,e)=>y.providePath(t,e.getAttribute("name"),y.extract(y.EXTRACTORS,e))),{})}setErrors(t){if(this.clearErrors(),t.filter((t=>"FIELD_ERROR"===t.type||"INVALID_FORMAT"===t.type)).forEach((t=>{const e=t.context.replace("[",".").replace("].",".");this.querySelectorAll(`[name='${CSS.escape(e)}'] [ful-validation-target],[name='${CSS.escape(e)}']:not(:has([ful-validation-target]))`).forEach((t=>t.classList.add("is-invalid"))),this.querySelectorAll(`ful-field-error[field='${CSS.escape(e)}']`).forEach((e=>e.innerText=t.reason))})),this.querySelectorAll("ful-errors").forEach((e=>{const r=t.filter((t=>"FIELD_ERROR"!==t.type&&"INVALID_FORMAT"!==t.type));e.innerHTML=r.map((t=>t.reason)).join("\n"),0!==r.length&&e.removeAttribute("hidden")})),!this.hasAttribute("scroll-on-error"))return;const e=Array.from(this.querySelectorAll("ful-field-error")).map((t=>t.getBoundingClientRect().y+window.scrollY)),r=Math.min(...e);r!==1/0&&window.scroll(window.scrollX,r>100?r-100:0)}clearErrors(){this.querySelectorAll(".is-invalid").forEach((t=>t.classList.remove("is-invalid"))),this.querySelectorAll("ful-errors").forEach((t=>{t.innerHTML="",t.setAttribute("hidden","")}))}static extract(t,e){const r=t[e.dataset.fulBindExtractor]||t[e.dataset.fulBindProvide];if(r)return r(e);if("radio"===e.getAttribute("type")){if(!e.checked)return;return"boolean"===e.dataset.fulBindType?"true"===e.value:e.value}return"checkbox"===e.getAttribute("type")?e.checked:"boolean"===e.dataset.fulBindType?e.value?"true"===e.value:null:e.value||null}static mutate(t,e,r,s){const n=t[e.dataset.fulBindMutator]||t[e.dataset.fulBindProvide];n?n(e,r,s):"radio"!==e.getAttribute("type")?"checkbox"!==e.getAttribute("type")?e.value=r:e.checked=r:e.checked=e.getAttribute("value")===r}static providePath(t,e,r){const s=e.split(".").map((t=>t.match(/^[0-9]+$/)?+t:t));let n=t,i=null;for(let e=0;;++e){const a=s[e],o=s[e-1];if(Number.isInteger(a)&&!Array.isArray(n)&&(null!==i?i[o]=n=[]:t=n=[]),e===s.length-1)return n[a]=void 0!==r?r:a in n?n[a]:null,t;void 0===n[a]&&(n[a]={}),i=n,n=n[a]}}static custom(t,e){customElements.define(t,class extends y{constructor(){super(e)}})}}const _=globalThis.ec||ftl.EvaluationContext.configure({}),S=globalThis.ful_input_template||ftl.Template.fromHtml('\n <label data-tpl-for="id" class="form-label">{{{{ slotted.default }}}}</label>\n <div class="input-group">\n <span data-tpl-if="slotted.ibefore" class="input-group-text">{{{{ slotted.ibefore }}}}</span>\n <div data-tpl-if="slotted.before" data-tpl-remove="tag">{{{{ slotted.before }}}}</div>\n {{{{ slotted.input }}}} \n <div data-tpl-if="slotted.after" data-tpl-remove="tag">{{{{ slotted.after }}}}</div>\n <span data-tpl-if="slotted.iafter" class="input-group-text">{{{{ slotted.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n',_);class L extends(v(HTMLElement,S)){render(t,e){const r=this.input=t.input=t.input||(()=>{const t=document.createElement("input");return t.classList.add("form-control"),t})();r.setAttribute("ful-validation-target","");const s=r.getAttribute("id")||this.getAttribute("input-id")||E.uid("ful-input");E.forward("input-",this,t.input),E.defaultValue(t.input,"id",s),E.defaultValue(t.input,"type","text"),E.defaultValue(t.input,"placeholder"," ");const n=this.getAttribute("name");return e.render({id:s,name:n,slotted:t})}get value(){return this.input.value}set value(t){this.input.value=t}static configure(){customElements.define("ful-input",L)}}const k=globalThis.ec||ftl.EvaluationContext.configure({}),R=globalThis.ful_select_template||ftl.Template.fromHtml('\n <label data-tpl-for="tsId" class="form-label">{{{{ slotted.default }}}}</label>\n {{{{ input }}}}\n <div class="input-group">\n <span data-tpl-if="slotted.ibefore" class="input-group-text">{{{{ slotted.ibefore }}}}</span>\n <div data-tpl-if="slotted.before" data-tpl-remove="tag">{{{{ slotted.before }}}}</div>\n {{{{ slotted.input }}}} \n <div data-tpl-if="slotted.after" data-tpl-remove="tag">{{{{ slotted.after }}}}</div>\n <span data-tpl-if="slotted.iafter" class="input-group-text">{{{{ slotted.iafter }}}}</span>\n </div>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error> \n',k);class C extends(v(HTMLElement,R)){constructor(t){super(),this.tsConfig=t}render(t,e){const r="local"!=(this.getAttribute("type")||"local"),s="always"!=this.getAttribute("load"),n=this.getAttribute("name"),i=t.input=t.input||document.createElement("select");i.setAttribute("ful-validation-target","");const a=i.getAttribute("id")||this.getAttribute("input-id")||E.uid("ful-select"),o=`${a}-ts-control`;E.forward("input-",this,i),E.defaultValue(i,"id",a),E.defaultValue(i,"placeholder"," "),t.input=b.from(i),this.loaded=!r;return this._remote=r,this._unwrappedRemoteLoad=async(t,e)=>{if(!r||r&&s&&this.loaded)return void e();const n=t&&t.hasOwnProperty("byId")?"id":"query",i="id"===n?t.byId:t,a=await(this.loader?this.loader(i,n):[]);"id"!==n&&(this.loaded=!0),e(a)},this.ts=new TomSelect(i,Object.assign(r?{preload:"focus",load:this._unwrappedRemoteLoad,shouldLoad:t=>!this.shouldLoad||this.shouldLoad(t)}:{},{render:{loading:()=>'<ful-spinner class="centered p-2"></ful-spinner>'}},this.tsConfig)),i.remove(),e.render({id:a,tsId:o,name:n,input:i,slotted:t})}set value(t){(async()=>{this._remote&&await this._unwrappedRemoteLoad({byId:t},this.ts.loadCallback.bind(this.ts)),this.ts.setValue(t)})()}get value(){const t=this.ts.getValue();return""===t?null:t}static custom(t,e){customElements.define(t,class extends C{constructor(){super(e)}})}static configure(){return C.custom("ful-select")}}const x=globalThis.ec||ftl.EvaluationContext.configure({}),O=globalThis.ful_radiogroup_template||ftl.Template.fromHtml('\n <fieldset>\n <legend class="form-label">\n {{{{ slotted.default }}}}\n </legend>\n <header data-tpl-if="slotted.header">\n {{{{ slotted.header }}}}\n </header>\n <section>\n <label data-tpl-each="inputsAndLabels" data-tpl-var="ial">\n {{{{ ial[0] }}}}\n {{{{ ial[1] }}}}\n </label>\n </section>\n <ful-field-error data-tpl-if="name" data-tpl-field="name"></ful-field-error>\n </fieldset>\n',x);class I extends(A(v(HTMLElement,O),["disabled"])){render(t,e){const r=this.getAttribute("name")||E.uid("ful-radiogroup"),s=Array.from(t.default.querySelectorAll("ful-radio")),n=s.map((t=>{const e=document.createElement("input");e.setAttribute("type","radio"),E.forward("input-",this,e),E.forward("",t,e),e.setAttribute("name",`${r}-ignore`),e.setAttribute("ful-validation-target",""),e.dataset.fulBindInclude="never";return[e,b.fromChildNodes(t)]}));s.forEach((t=>t.remove()));return e.render({name:r,slotted:t,inputsAndLabels:n})}get value(){const t=this.querySelector("input[type=radio]:checked");return t?t.value:null}set value(t){this.querySelector(`input[type=radio][value=${CSS.escape(t)}]`).checked=!0}static configure(){customElements.define("ful-radio-group",I)}}const N=globalThis.ec||ftl.EvaluationContext.configure({}),D=globalThis.ful_spinner_template||ftl.Template.fromHtml('\n <div class="ful-spinner-wrapper">\n <div class="ful-spinner-text">{{{{ slotted.default }}}}</div>\n <div class="ful-spinner-icon"></div>\n </div>\n',N);class P extends(v(HTMLElement,D)){render(t,e){return e.render({slotted:t})}static configure(){customElements.define("ful-spinner",P)}}class U extends HTMLElement{constructor(){if(super(),this.progress=[...this.children].filter((t=>t.matches("header,ol,ul"))),this.progress.forEach((t=>{const e=[...t.children];void 0===e.filter((t=>t.matches(".active")))[0]&&e.length>0&&e[0].classList.add("active")})),null===this.querySelector("section.current")){const t=this.querySelector("section:first-of-type");null!==t&&t.classList.add("current")}}next(){this.progress.forEach((t=>{const e=[...t.children].filter((t=>t.matches(".active")))[0];e?.classList.remove("active"),e?.nextElementSibling?.classList.add("active")}));const t=this.querySelector("section.current");t.classList.remove("current"),t.nextElementSibling.classList.add("current"),this.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}prev(){this.progress.forEach((t=>{const e=[...t.children].filter((t=>t.matches(".active")))[0];e?.classList.remove("active"),e?.previousElementSibling?.classList.add("active")}));const t=this.querySelector("section.current");t.classList.remove("current"),t.previousElementSibling.classList.add("current"),this.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}moveTo=function(t){this.progress.forEach((e=>{const r=[...e.children].filter((t=>t.matches(".active")))[0];r?.classList.remove("active"),e.children[+t]?.classList.add("active")}));const e=this.querySelector("section.current");e?.classList.remove("current");this.querySelector(`section:nth-child(${+t})`).classList.add("current"),this.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))};static custom(t,e){customElements.define(t,class extends U{constructor(){super(e)}})}static configure(){return U.custom("ful-wizard")}}return t.Attributes=E,t.AuthorizationCodeFlow=f,t.AuthorizationCodeFlowInterceptor=m,t.AuthorizationCodeFlowSession=p,t.Base64=e,t.Failure=i,t.Form=y,t.Fragments=b,t.Hex=class{static decode(t){if(t.length%2!=0)throw new Error("invalid length");const e=t.length/2;return new Uint8Array(e).map(((e,r)=>{const s=2*r,n=t.substring(s,s+2);return parseInt(n,16)}))}static encode(t,e){return Array.from(t).map((t=>t.toString(16))).map((t=>e?t.toUpperCase():t)).map((t=>t.padStart(2,0))).join("")}},t.HttpClient=l,t.Input=L,t.LocalStorage=class extends d{constructor(t){super(t,localStorage)}},t.RadioGroup=I,t.Select=C,t.SessionStorage=h,t.Slots=w,t.Spinner=P,t.Stateful=A,t.Templated=v,t.VersionedStorage=class{constructor(t,e,r){this.storage=t,this.key=e,this.dataSupplier=r,this.cache=null}async load(t){const e=this.storage.load(this.key);if(e&&e.revision===t)return void(this.cache=e.value);const r=await this.dataSupplier(t,this.key);this.storage.save(this.key,{revision:t,value:r}),this.cache=r}data(){return this.cache}},t.Wizard=U,t.jsonPatch=function(t,e){return u("PATCH",t,e)},t.jsonPost=function(t,e){return u("POST",t,e)},t.jsonPut=function(t,e){return u("PUT",t,e)},t.jsonRequest=u,t.timing=g,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
|
|
2
2
|
//# sourceMappingURL=ful.iife.min.js.map
|