@optionfactory/ful 0.17.0 → 0.18.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/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
  - Import the lib via CDN:
3
3
 
4
4
  ```html
5
- <script src="https://cdn.jsdelivr.net/gh/optionfactory/ful@0.14/dist/ful.iife.min.js" integrity="sha384-tnaLEOaFOlvTibbbsE2P8yWswV+E5cTEN6Db4ebyaFFSIKlVHuJXUL7H+LznprEs" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
5
+ <script src="https://cdn.jsdelivr.net/npm/@optionfactory/ful@{VERSION}/dist/ful.iife.min.js" integrity="sha384-{INTEGRITY}" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
6
6
  ```
7
7
 
8
8
  ```html
9
- <script src="https://cdn.jsdelivr.net/gh/optionfactory/ful@0.14/dist/ful-client-errors.iife.min.js" integrity="sha384-GtbY0v/5p/HeOA2Q/f5E/QFFPw2uSl7fMX3tgT6pUm7va2OHwx3xwDvGVJ992KRt" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
9
+ <script src=""https://cdn.jsdelivr.net/npm/@optionfactory/ful@{VERSION}/dist/ful-client-errors.iife.min.js" integrity="sha384-{INTEGRITY}" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
10
10
 
11
11
  ```
package/dist/ful.iife.js CHANGED
@@ -517,12 +517,11 @@ var ful = (function (exports) {
517
517
  const token = await response.json();
518
518
  return new AuthorizationCodeFlowSession(this.clientId, token, this.tokenUri, this.logoutUri, this.redirectUri);
519
519
  }
520
-
521
520
  async ensureLoggedIn() {
522
521
  const url = new URL(window.location.href);
523
522
  const code = url.searchParams.get("code");
524
- if (code) {
525
- //if callback from keycloak
523
+ if (code && this.storage.load(AuthorizationCodeFlow.PKCE_AND_STATE_KEY)) {
524
+ //if callback from keycloak and we have our state still stored
526
525
  const state = url.searchParams.get("state");
527
526
  return await this._tokenExchange(code, state);
528
527
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ful.iife.js","sources":["../src/bindings.mjs","../src/encodings.mjs","../src/forms.mjs","../src/http-client.mjs","../src/storage.mjs","../src/oauth-authorization-code.mjs","../src/timing.mjs","../src/wizard.mjs","../src/app.mjs"],"sourcesContent":["/* global CSS */\n\nfunction extract(extractors, el) {\n const maybeExtractor = extractors[el.dataset['bindExtractor']] || extractors[el.dataset['bindProvide']];\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['bindType'] === 'boolean' ? el.value === 'true' : el.value;\n }\n if (el.getAttribute('type') === 'checkbox') {\n return el.checked;\n }\n if (el.dataset['bindType'] === 'boolean') {\n return !el.value ? null : el.value === 'true';\n }\n return el.value || null;\n}\n\nfunction mutate(mutators, el, raw, key, values) {\n const maybeMutator = mutators[el.dataset['bindMutator']] || mutators[el.dataset['bindProvide']];\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 el.value = raw;\n}\n\n\nfunction 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\nclass Bindings {\n\n constructor( {extractors, mutators, ignoredChildrenSelector, valueHoldersSelector}) {\n this.extractors = extractors || {};\n this.mutators = mutators || {};\n this.valueHoldersSelector = valueHoldersSelector || 'input[name], select[name], textarea[name]';\n this.ignoredChildrenSelector = ignoredChildrenSelector || '.d-none';\n }\n setValues(el, values) {\n for (let k in values) {\n if (!values.hasOwnProperty(k)) {\n continue;\n }\n Array.from(el.querySelectorAll(`[name='${CSS.escape(k)}']`)).forEach((el) => {\n mutate(this.mutators, el, values[k], k, values);\n });\n }\n }\n getValues(el) {\n return Array.from(el.querySelectorAll(this.valueHoldersSelector))\n .filter((el) => {\n if (el.dataset['bindInclude'] === 'never') {\n return false;\n }\n return el.dataset['bindInclude'] === 'always' || el.closest(this.ignoredChildrenSelector) === null;\n })\n .reduce((result, el) => {\n return providePath(result, el.getAttribute('name'), extract(this.extractors, el));\n }, {});\n }\n}\n\n\n\nexport { Bindings };","\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 };","/* global Infinity, CSS */\n\n\nclass Form {\n constructor(el, bindings, {globalErrorsEl, fieldContainerSelector, errorClass, hideClass}) {\n this.el = el;\n this.bindings = bindings;\n this.globalErrorsEl = globalErrorsEl;\n this.fieldContainerSelector = fieldContainerSelector !== undefined ? fieldContainerSelector : Form.DEFAULT_FIELD_CONTAINER_SELECTOR;\n this.errorClass = errorClass || Form.DEFAULT_ERROR_CLASS;\n this.hideClass = hideClass || Form.DEFAULT_HIDE_CLASS;\n }\n setValues(values) {\n return this.bindings.setValues(this.el, values);\n }\n getValues() {\n return this.bindings.getValues(this.el);\n }\n setErrors(errors, scrollFirstErrorIntoView, context) {\n\n this.clearErrors();\n errors\n .map(this.mapError ? this.mapError : (e) => e)\n .filter((e) => e.type === 'FIELD_ERROR' || e.type === 'INVALID_FORMAT')\n .forEach((e) => {\n const name = e.context.replace(\"[\", \".\").replace(\"].\", \".\");\n Array.from(this.el.querySelectorAll(`[name='${CSS.escape(name)}']`))\n .map(el => this.fieldContainerSelector ? el.closest(this.fieldContainerSelector) : el)\n .filter(el => el !== null)\n .forEach(label => {\n label.classList.add(this.errorClass);\n label.dataset['error'] = e.reason;\n });\n });\n if (this.globalErrorsEl) {\n const globalErrors = errors.filter((e) => e.type !== 'FIELD_ERROR' && e.type !== 'INVALID_FORMAT');\n this.globalErrorsEl.innerHTML = globalErrors.map(e => e.reason).join(\"\\n\");\n if (globalErrors.length !== 0) {\n this.globalErrorsEl.classList.remove(this.hideClass);\n }\n }\n if (!scrollFirstErrorIntoView) {\n return;\n }\n const yOffsets = Array.from(this.el.querySelectorAll('.${CSS.escape(this.errorClass)}'))\n .map((label) => label.getBoundingClientRect().y + window.scrollY);\n const firstErrorScrollY = Math.min(...yOffsets);\n if (firstErrorScrollY !== Infinity) {\n window.scroll(window.scrollX, firstErrorScrollY > 100 ? firstErrorScrollY - 100 : 0);\n }\n }\n clearErrors() {\n this.el.querySelectorAll(`.${CSS.escape(this.errorClass)}`).forEach(l => l.classList.remove(this.errorClass));\n if (this.globalErrorsEl) {\n this.globalErrorsEl.innerHTML = '';\n this.globalErrorsEl.classList.add(this.hideClass);\n }\n }\n}\n\nForm.DEFAULT_FIELD_CONTAINER_SELECTOR = 'label';\nForm.DEFAULT_ERROR_CLASS = 'has-error';\nForm.DEFAULT_HIDE_CLASS = 'd-none';\n\n\n/*\n export function forms() {\n }\n \n forms.dropContext = function (context) {\n return function (e) {\n if (e.context && e.context.indexOf(context) === 0) {\n e.context = e.context.substring(context.length);\n }\n return e;\n };\n };\n \n \n Dom.ready(() => {\n document.querySelectorAll('label:not([data-error])').forEach(el => {\n el.dataset['error'] = \"Il valore inserito non è valido\";\n });\n });\n \n Dom.ready(() => {\n Dom.on(document.body, 'change', '[data-pattern]', {}, evt => {\n const el = evt.srcElement;\n const pattern = el.dataset['pattern'];\n const matches = el.value.match(pattern);\n const label = el.closest('label');\n if(label === null){\n return;\n }\n label.classList[matches ? 'remove' : 'add']('has-error'); \n });\n });\n */\nexport { Form };","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 before(request) {\n const separator = request.resource.startsWith(\"/\") ? \"\" : \"/\";\n request.resource = this.context + separator + request.resource;\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 before(request) {\n const headers = new Headers(request.options.headers);\n headers.set(this.k, this.v);\n request.options.headers = headers;\n }\n}\n\nclass RedirectOnUnauthorizedInterceptor {\n constructor(redirectUri) {\n this.redirectUri = redirectUri;\n }\n after(request, response) {\n if (response.status !== 401) {\n return;\n }\n window.location.href = 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 HttpClient {\n static builder() {\n return new HttpClientBuilder();\n }\n constructor( {interceptors}){\n this.interceptors = interceptors || [];\n }\n async fetch(resource, options) {\n const is = this.interceptors.concat(options.interceptors || []);\n const request = {resource, options};\n await is.forEach(async (i) => {\n if (!i.before) {\n return;\n }\n await i.before(request);\n });\n const response = await fetch(request.resource, request.options);\n await is.forEach(async (i) => {\n if (!i.after) {\n return;\n }\n await i.after(request, response);\n });\n\n return response;\n }\n async json(resource, options) {\n try {\n const response = await this.fetch(resource, options);\n if (!response.ok) {\n const message = await response.text();\n throw Failure.fromResponse(response.status, message);\n }\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 async form(resource, options, uiOptions) {\n const ui = uiOptions || {};\n ui.buttons?.forEach(el => {\n el.setAttribute(\"disabled\", \"disabled\");\n if (ui.loader) {\n el.dataset['oldContent'] = el.innerHTML;\n el.innerHTML = ui.loader;\n }\n });\n try {\n const r = await this.json(resource, options);\n ui.form?.clearErrors();\n return r;\n } catch (e) {\n ui.form?.setErrors(e.problems);\n throw e;\n } finally {\n ui.buttons?.forEach(el => {\n el.removeAttribute(\"disabled\");\n el.innerHTML = el.dataset['oldContent'];\n delete el.dataset['oldContent'];\n });\n }\n }\n}\n\n\n\nexport { HttpClient, Failure };\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 authUri = new URL(\"protocol/openid-connect/auth\", realmBaseUrl);\n const tokenUri = new URL(\"protocol/openid-connect/token\", realmBaseUrl);\n const logoutUri = new URL(\"protocol/openid-connect/logout\", realmBaseUrl);\n const scope = \"openid profile\";\n return new AuthorizationCodeFlow(clientId, scope, authUri, tokenUri, logoutUri, redirectUri); \n }\n constructor(clientId, scope, authUri, tokenUri, logoutUri, redirectUri) {\n this.clientId = clientId;\n this.scope = scope;\n this.authUri = authUri;\n this.tokenUri = tokenUri;\n this.logoutUri = logoutUri;\n this.redirectUri = redirectUri;\n this.storage = new SessionStorage(clientId);\n }\n async _auth() {\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(this.authUri);\n url.searchParams.set(\"client_id\", this.clientId);\n url.searchParams.set(\"redirect_uri\", this.redirectUri);\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 window.location = url;\n }\n async _tokenExchange(code, state) {\n window.history.replaceState('', \"\", this.redirectUri);\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.tokenUri, {\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.redirectUri]\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.tokenUri, this.logoutUri, this.redirectUri);\n }\n\n async ensureLoggedIn() {\n const url = new URL(window.location.href);\n const code = url.searchParams.get(\"code\");\n if (code) {\n //if callback from keycloak\n const state = url.searchParams.get(\"state\");\n return await this._tokenExchange(code, state);\n }\n //if not authorized\n await this._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 return {\n header: JSON.parse(atob(rawHeader)),\n payload: JSON.parse(atob(rawPayload)),\n signature: signature\n };\n } \n constructor(clientId, token, tokenUri, logoutUri, redirectUri) {\n this.clientId = clientId;\n this.token = token;\n this.tokenUri = tokenUri;\n this.logoutUri = logoutUri;\n this.redirectUri = redirectUri;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(token.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(token.refresh_token);\n this.refreshCallback = null;\n }\n onRefresh(callback) {\n this.refreshCallback = callback;\n }\n async refresh() {\n const response = await fetch(this.tokenUri, {\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.code + \": \" + response.text());\n }\n const token = await response.json();\n this.token = token;\n this.accessToken = this._parseToken(token.access_token);\n this.refreshToken = this._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.logoutUri);\n url.searchParams.set(\"post_logout_redirect_uri\", this.redirectUri);\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 before(request) {\n await this.session.refreshIf(this.gracePeriodBefore);\n const headers = new Headers(request.options.headers);\n headers.set(\"Authorization\", this.session.bearerToken());\n return request;\n }\n async after(request, response) {\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 Wizard {\n constructor(el) {\n this.el = el;\n this.progress = [...el.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.el.querySelector('section.current') === null) {\n const firstSection = this.el.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.el.querySelector('section.current');\n currentSection.classList.remove(\"current\");\n currentSection.nextElementSibling.classList.add('current');\n\n this.el.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.el.querySelector('section.current');\n currentSection.classList.remove(\"current\");\n currentSection.previousElementSibling.classList.add('current');\n this.el.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.el.querySelector('section.current');\n currentSection?.classList.remove(\"current\");\n const nthSection = this.el.querySelector(`section:nth-child(${+n})`);\n nthSection.classList.add('current');\n this.el.dispatchEvent(new CustomEvent('wizard:activate', {\n bubbles: true,\n cancelable: true\n }));\n }\n}\n\n\n\n\nexport { Wizard };\n","class App {\n constructor() {\n this.configurers = [];\n this.initializers = [];\n this.handlers = [];\n this.running = false;\n document.addEventListener(\"DOMContentLoaded\", async () => {\n await Promise.all(this.configurers);\n await Promise.all(this.initializers.map(h => Promise.resolve(h())));\n await Promise.all(this.handlers.map(h => Promise.resolve(h())));\n });\n }\n configure(cb) {\n this.configurers.push(Promise.resolve(cb()));\n return this;\n }\n initialize(cb) {\n this.initializers.push(cb);\n return this;\n }\n ready(cb) {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AC,GAAG,CAAC,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAChF,YAAY,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5E,SAAS,CAAC,CAAC;IACX,KAAK;IACL,IAAI,SAAS,CAAC,EAAE,EAAE;IAClB,QAAQ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACrD,QAAQ,OAAO,IAAI,CAAC;IACpB,KAAK;IACL,IAAI,UAAU,CAAC,EAAE,EAAE;IACnB,QAAQ,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnC,QAAQ,OAAO,IAAI,CAAC;IACpB,KAAK;IACL,IAAI,KAAK,CAAC,EAAE,EAAE;IACd,QAAQ,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/B,QAAQ,OAAO,IAAI,CAAC;IACpB,KAAK;IACL;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ful.iife.js","sources":["../src/bindings.mjs","../src/encodings.mjs","../src/forms.mjs","../src/http-client.mjs","../src/storage.mjs","../src/oauth-authorization-code.mjs","../src/timing.mjs","../src/wizard.mjs","../src/app.mjs"],"sourcesContent":["/* global CSS */\n\nfunction extract(extractors, el) {\n const maybeExtractor = extractors[el.dataset['bindExtractor']] || extractors[el.dataset['bindProvide']];\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['bindType'] === 'boolean' ? el.value === 'true' : el.value;\n }\n if (el.getAttribute('type') === 'checkbox') {\n return el.checked;\n }\n if (el.dataset['bindType'] === 'boolean') {\n return !el.value ? null : el.value === 'true';\n }\n return el.value || null;\n}\n\nfunction mutate(mutators, el, raw, key, values) {\n const maybeMutator = mutators[el.dataset['bindMutator']] || mutators[el.dataset['bindProvide']];\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 el.value = raw;\n}\n\n\nfunction 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\nclass Bindings {\n\n constructor( {extractors, mutators, ignoredChildrenSelector, valueHoldersSelector}) {\n this.extractors = extractors || {};\n this.mutators = mutators || {};\n this.valueHoldersSelector = valueHoldersSelector || 'input[name], select[name], textarea[name]';\n this.ignoredChildrenSelector = ignoredChildrenSelector || '.d-none';\n }\n setValues(el, values) {\n for (let k in values) {\n if (!values.hasOwnProperty(k)) {\n continue;\n }\n Array.from(el.querySelectorAll(`[name='${CSS.escape(k)}']`)).forEach((el) => {\n mutate(this.mutators, el, values[k], k, values);\n });\n }\n }\n getValues(el) {\n return Array.from(el.querySelectorAll(this.valueHoldersSelector))\n .filter((el) => {\n if (el.dataset['bindInclude'] === 'never') {\n return false;\n }\n return el.dataset['bindInclude'] === 'always' || el.closest(this.ignoredChildrenSelector) === null;\n })\n .reduce((result, el) => {\n return providePath(result, el.getAttribute('name'), extract(this.extractors, el));\n }, {});\n }\n}\n\n\n\nexport { Bindings };","\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 };","/* global Infinity, CSS */\n\n\nclass Form {\n constructor(el, bindings, {globalErrorsEl, fieldContainerSelector, errorClass, hideClass}) {\n this.el = el;\n this.bindings = bindings;\n this.globalErrorsEl = globalErrorsEl;\n this.fieldContainerSelector = fieldContainerSelector !== undefined ? fieldContainerSelector : Form.DEFAULT_FIELD_CONTAINER_SELECTOR;\n this.errorClass = errorClass || Form.DEFAULT_ERROR_CLASS;\n this.hideClass = hideClass || Form.DEFAULT_HIDE_CLASS;\n }\n setValues(values) {\n return this.bindings.setValues(this.el, values);\n }\n getValues() {\n return this.bindings.getValues(this.el);\n }\n setErrors(errors, scrollFirstErrorIntoView, context) {\n\n this.clearErrors();\n errors\n .map(this.mapError ? this.mapError : (e) => e)\n .filter((e) => e.type === 'FIELD_ERROR' || e.type === 'INVALID_FORMAT')\n .forEach((e) => {\n const name = e.context.replace(\"[\", \".\").replace(\"].\", \".\");\n Array.from(this.el.querySelectorAll(`[name='${CSS.escape(name)}']`))\n .map(el => this.fieldContainerSelector ? el.closest(this.fieldContainerSelector) : el)\n .filter(el => el !== null)\n .forEach(label => {\n label.classList.add(this.errorClass);\n label.dataset['error'] = e.reason;\n });\n });\n if (this.globalErrorsEl) {\n const globalErrors = errors.filter((e) => e.type !== 'FIELD_ERROR' && e.type !== 'INVALID_FORMAT');\n this.globalErrorsEl.innerHTML = globalErrors.map(e => e.reason).join(\"\\n\");\n if (globalErrors.length !== 0) {\n this.globalErrorsEl.classList.remove(this.hideClass);\n }\n }\n if (!scrollFirstErrorIntoView) {\n return;\n }\n const yOffsets = Array.from(this.el.querySelectorAll('.${CSS.escape(this.errorClass)}'))\n .map((label) => label.getBoundingClientRect().y + window.scrollY);\n const firstErrorScrollY = Math.min(...yOffsets);\n if (firstErrorScrollY !== Infinity) {\n window.scroll(window.scrollX, firstErrorScrollY > 100 ? firstErrorScrollY - 100 : 0);\n }\n }\n clearErrors() {\n this.el.querySelectorAll(`.${CSS.escape(this.errorClass)}`).forEach(l => l.classList.remove(this.errorClass));\n if (this.globalErrorsEl) {\n this.globalErrorsEl.innerHTML = '';\n this.globalErrorsEl.classList.add(this.hideClass);\n }\n }\n}\n\nForm.DEFAULT_FIELD_CONTAINER_SELECTOR = 'label';\nForm.DEFAULT_ERROR_CLASS = 'has-error';\nForm.DEFAULT_HIDE_CLASS = 'd-none';\n\n\n/*\n export function forms() {\n }\n \n forms.dropContext = function (context) {\n return function (e) {\n if (e.context && e.context.indexOf(context) === 0) {\n e.context = e.context.substring(context.length);\n }\n return e;\n };\n };\n \n \n Dom.ready(() => {\n document.querySelectorAll('label:not([data-error])').forEach(el => {\n el.dataset['error'] = \"Il valore inserito non è valido\";\n });\n });\n \n Dom.ready(() => {\n Dom.on(document.body, 'change', '[data-pattern]', {}, evt => {\n const el = evt.srcElement;\n const pattern = el.dataset['pattern'];\n const matches = el.value.match(pattern);\n const label = el.closest('label');\n if(label === null){\n return;\n }\n label.classList[matches ? 'remove' : 'add']('has-error'); \n });\n });\n */\nexport { Form };","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 before(request) {\n const separator = request.resource.startsWith(\"/\") ? \"\" : \"/\";\n request.resource = this.context + separator + request.resource;\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 before(request) {\n const headers = new Headers(request.options.headers);\n headers.set(this.k, this.v);\n request.options.headers = headers;\n }\n}\n\nclass RedirectOnUnauthorizedInterceptor {\n constructor(redirectUri) {\n this.redirectUri = redirectUri;\n }\n after(request, response) {\n if (response.status !== 401) {\n return;\n }\n window.location.href = 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 HttpClient {\n static builder() {\n return new HttpClientBuilder();\n }\n constructor( {interceptors}){\n this.interceptors = interceptors || [];\n }\n async fetch(resource, options) {\n const is = this.interceptors.concat(options.interceptors || []);\n const request = {resource, options};\n await is.forEach(async (i) => {\n if (!i.before) {\n return;\n }\n await i.before(request);\n });\n const response = await fetch(request.resource, request.options);\n await is.forEach(async (i) => {\n if (!i.after) {\n return;\n }\n await i.after(request, response);\n });\n\n return response;\n }\n async json(resource, options) {\n try {\n const response = await this.fetch(resource, options);\n if (!response.ok) {\n const message = await response.text();\n throw Failure.fromResponse(response.status, message);\n }\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 async form(resource, options, uiOptions) {\n const ui = uiOptions || {};\n ui.buttons?.forEach(el => {\n el.setAttribute(\"disabled\", \"disabled\");\n if (ui.loader) {\n el.dataset['oldContent'] = el.innerHTML;\n el.innerHTML = ui.loader;\n }\n });\n try {\n const r = await this.json(resource, options);\n ui.form?.clearErrors();\n return r;\n } catch (e) {\n ui.form?.setErrors(e.problems);\n throw e;\n } finally {\n ui.buttons?.forEach(el => {\n el.removeAttribute(\"disabled\");\n el.innerHTML = el.dataset['oldContent'];\n delete el.dataset['oldContent'];\n });\n }\n }\n}\n\n\n\nexport { HttpClient, Failure };\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 authUri = new URL(\"protocol/openid-connect/auth\", realmBaseUrl);\n const tokenUri = new URL(\"protocol/openid-connect/token\", realmBaseUrl);\n const logoutUri = new URL(\"protocol/openid-connect/logout\", realmBaseUrl);\n const scope = \"openid profile\";\n return new AuthorizationCodeFlow(clientId, scope, authUri, tokenUri, logoutUri, redirectUri); \n }\n constructor(clientId, scope, authUri, tokenUri, logoutUri, redirectUri) {\n this.clientId = clientId;\n this.scope = scope;\n this.authUri = authUri;\n this.tokenUri = tokenUri;\n this.logoutUri = logoutUri;\n this.redirectUri = redirectUri;\n this.storage = new SessionStorage(clientId);\n }\n async _auth() {\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(this.authUri);\n url.searchParams.set(\"client_id\", this.clientId);\n url.searchParams.set(\"redirect_uri\", this.redirectUri);\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 window.location = url;\n }\n async _tokenExchange(code, state) {\n window.history.replaceState('', \"\", this.redirectUri);\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.tokenUri, {\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.redirectUri]\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.tokenUri, this.logoutUri, this.redirectUri);\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._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 return {\n header: JSON.parse(atob(rawHeader)),\n payload: JSON.parse(atob(rawPayload)),\n signature: signature\n };\n } \n constructor(clientId, token, tokenUri, logoutUri, redirectUri) {\n this.clientId = clientId;\n this.token = token;\n this.tokenUri = tokenUri;\n this.logoutUri = logoutUri;\n this.redirectUri = redirectUri;\n this.accessToken = AuthorizationCodeFlowSession.parseToken(token.access_token);\n this.refreshToken = AuthorizationCodeFlowSession.parseToken(token.refresh_token);\n this.refreshCallback = null;\n }\n onRefresh(callback) {\n this.refreshCallback = callback;\n }\n async refresh() {\n const response = await fetch(this.tokenUri, {\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.code + \": \" + response.text());\n }\n const token = await response.json();\n this.token = token;\n this.accessToken = this._parseToken(token.access_token);\n this.refreshToken = this._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.logoutUri);\n url.searchParams.set(\"post_logout_redirect_uri\", this.redirectUri);\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 before(request) {\n await this.session.refreshIf(this.gracePeriodBefore);\n const headers = new Headers(request.options.headers);\n headers.set(\"Authorization\", this.session.bearerToken());\n return request;\n }\n async after(request, response) {\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 Wizard {\n constructor(el) {\n this.el = el;\n this.progress = [...el.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.el.querySelector('section.current') === null) {\n const firstSection = this.el.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.el.querySelector('section.current');\n currentSection.classList.remove(\"current\");\n currentSection.nextElementSibling.classList.add('current');\n\n this.el.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.el.querySelector('section.current');\n currentSection.classList.remove(\"current\");\n currentSection.previousElementSibling.classList.add('current');\n this.el.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.el.querySelector('section.current');\n currentSection?.classList.remove(\"current\");\n const nthSection = this.el.querySelector(`section:nth-child(${+n})`);\n nthSection.classList.add('current');\n this.el.dispatchEvent(new CustomEvent('wizard:activate', {\n bubbles: true,\n cancelable: true\n }));\n }\n}\n\n\n\n\nexport { Wizard };\n","class App {\n constructor() {\n this.configurers = [];\n this.initializers = [];\n this.handlers = [];\n this.running = false;\n document.addEventListener(\"DOMContentLoaded\", async () => {\n await Promise.all(this.configurers);\n await Promise.all(this.initializers.map(h => Promise.resolve(h())));\n await Promise.all(this.handlers.map(h => Promise.resolve(h())));\n });\n }\n configure(cb) {\n this.configurers.push(Promise.resolve(cb()));\n return this;\n }\n initialize(cb) {\n this.initializers.push(cb);\n return this;\n }\n ready(cb) {\n this.handlers.push(cb);\n return this;\n }\n}\n\nexport { App };\n"],"names":[],"mappings":";;;IAAA;AACA;IACA,SAAS,OAAO,CAAC,UAAU,EAAE,EAAE,EAAE;IACjC,IAAI,MAAM,cAAc,GAAG,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,IAAI,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;IAC5G,IAAI,IAAI,cAAc,EAAE;IACxB,QAAQ,OAAO,cAAc,CAAC,EAAE,CAAC,CAAC;IAClC,KAAK;IACL,IAAI,IAAI,EAAE,CAAC,YAAY,CAAC,MAAM,CAA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C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACrD,QAAQ,OAAO,IAAI,CAAC;IACpB,KAAK;IACL,IAAI,UAAU,CAAC,EAAE,EAAE;IACnB,QAAQ,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnC,QAAQ,OAAO,IAAI,CAAC;IACpB,KAAK;IACL,IAAI,KAAK,CAAC,EAAE,EAAE;IACd,QAAQ,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/B,QAAQ,OAAO,IAAI,CAAC;IACpB,KAAK;IACL;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- var ful=function(e){"use strict";function t(e,t,r,s,i){const o=e[t.dataset.bindMutator]||e[t.dataset.bindProvide];o?o(t,r,s,i):"radio"!==t.getAttribute("type")?"checkbox"!==t.getAttribute("type")?t.value=r:t.checked=r:t.checked=t.getAttribute("value")===r}class r{static encode(e,t){const s=t||r.URL_SAFE,i=e.byteLength,o=new Uint8Array(e);let n="";for(let e=0;e<i;e+=3){n+=s[o[e]>>2]+s[(3&o[e])<<4|o[e+1]>>4]+s[(15&o[e+1])<<2|o[e+2]>>6]+s[63&o[e+2]]}return i%3==2?n=n.substring(0,n.length-1):i%3==1&&(n=n.substring(0,n.length-2)),n}static decode(e,t){const s=t||r.URL_SAFE;let i=Math.floor(.75*e.length);for(let t=0;t!==e.length&&"="===e[e.length-t-1];++t)--i;const o=new Uint8Array(i);let n=0,a=0;for(;n<.75*e.length;){const t=s.indexOf(e.charAt(a++)),r=s.indexOf(e.charAt(a++)),i=s.indexOf(e.charAt(a++)),c=s.indexOf(e.charAt(a++));o[n++]=t<<2|r>>4,o[n++]=(15&r)<<4|i>>2,o[n++]=(3&i)<<6|c}return o.buffer}}r.STANDARD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r.URL_SAFE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";class s{constructor(e,t,{globalErrorsEl:r,fieldContainerSelector:i,errorClass:o,hideClass:n}){this.el=e,this.bindings=t,this.globalErrorsEl=r,this.fieldContainerSelector=void 0!==i?i:s.DEFAULT_FIELD_CONTAINER_SELECTOR,this.errorClass=o||s.DEFAULT_ERROR_CLASS,this.hideClass=n||s.DEFAULT_HIDE_CLASS}setValues(e){return this.bindings.setValues(this.el,e)}getValues(){return this.bindings.getValues(this.el)}setErrors(e,t,r){if(this.clearErrors(),e.map(this.mapError?this.mapError:e=>e).filter((e=>"FIELD_ERROR"===e.type||"INVALID_FORMAT"===e.type)).forEach((e=>{const t=e.context.replace("[",".").replace("].",".");Array.from(this.el.querySelectorAll(`[name='${CSS.escape(t)}']`)).map((e=>this.fieldContainerSelector?e.closest(this.fieldContainerSelector):e)).filter((e=>null!==e)).forEach((t=>{t.classList.add(this.errorClass),t.dataset.error=e.reason}))})),this.globalErrorsEl){const t=e.filter((e=>"FIELD_ERROR"!==e.type&&"INVALID_FORMAT"!==e.type));this.globalErrorsEl.innerHTML=t.map((e=>e.reason)).join("\n"),0!==t.length&&this.globalErrorsEl.classList.remove(this.hideClass)}if(!t)return;const s=Array.from(this.el.querySelectorAll(".${CSS.escape(this.errorClass)}")).map((e=>e.getBoundingClientRect().y+window.scrollY)),i=Math.min(...s);i!==1/0&&window.scroll(window.scrollX,i>100?i-100:0)}clearErrors(){this.el.querySelectorAll(`.${CSS.escape(this.errorClass)}`).forEach((e=>e.classList.remove(this.errorClass))),this.globalErrorsEl&&(this.globalErrorsEl.innerHTML="",this.globalErrorsEl.classList.add(this.hideClass))}}s.DEFAULT_FIELD_CONTAINER_SELECTOR="label",s.DEFAULT_ERROR_CLASS="has-error",s.DEFAULT_HIDE_CLASS="d-none";class i{constructor(){const e=document.querySelector("meta[name='context']").getAttribute("content");this.context=e.endsWith("/")?e.substring(0,e.length-1):e}before(e){const t=e.resource.startsWith("/")?"":"/";e.resource=this.context+t+e.resource}}class o{constructor(){this.k=document.querySelector("meta[name='_csrf_header']").getAttribute("content"),this.v=document.querySelector("meta[name='_csrf']").getAttribute("content")}before(e){const t=new Headers(e.options.headers);t.set(this.k,this.v),e.options.headers=t}}class n{constructor(e){this.redirectUri=e}after(e,t){401===t.status&&(window.location.href=redirectUri)}}class a extends Error{static parseProblems(e,t){const r=[{type:"GENERIC_PROBLEM",context:null,reason:`${e}: ${t}`,details:null}];try{return t?JSON.parse(t):r}catch(e){return r}}static fromResponse(e,t){return new a(e,a.parseProblems(e,t))}constructor(e,t){super(JSON.stringify(t)),this.name=`Failure:${e}`,this.status=e,this.problems=t}}class c{constructor(){this.interceptors=[]}withContext(){return this.interceptors.push(new i),this}withCsrfToken(){return this.interceptors.push(new o),this}withRedirectOnUnauthorized(e){return this.interceptors.push(new n(e)),this}withInterceptors(...e){return this.interceptors.push(...e),this}build(){const e=this.interceptors;return new l({interceptors:e})}}class l{static builder(){return new c}constructor({interceptors:e}){this.interceptors=e||[]}async fetch(e,t){const r=this.interceptors.concat(t.interceptors||[]),s={resource:e,options:t};await r.forEach((async e=>{e.before&&await e.before(s)}));const i=await fetch(s.resource,s.options);return await r.forEach((async e=>{e.after&&await e.after(s,i)})),i}async json(e,t){try{const r=await this.fetch(e,t);if(!r.ok){const e=await r.text();throw a.fromResponse(r.status,e)}const s=await r.text();return s?JSON.parse(s):void 0}catch(e){if(e instanceof a)throw e;throw new a(0,[{type:"CONNECTION_PROBLEM",context:null,reason:e.message,details:null}])}}async form(e,t,r){const s=r||{};s.buttons?.forEach((e=>{e.setAttribute("disabled","disabled"),s.loader&&(e.dataset.oldContent=e.innerHTML,e.innerHTML=s.loader)}));try{const r=await this.json(e,t);return s.form?.clearErrors(),r}catch(e){throw s.form?.setErrors(e.problems),e}finally{s.buttons?.forEach((e=>{e.removeAttribute("disabled"),e.innerHTML=e.dataset.oldContent,delete e.dataset.oldContent}))}}}class h{constructor(e,t){this.prefix=e,this.storage=t}save(e,t){this.storage.setItem(`${this.prefix}-${e}`,JSON.stringify(t))}load(e){const t=this.storage.getItem(`${this.prefix}-${e}`);return void 0===t?void 0:JSON.parse(t)}remove(e){this.storage.removeItem(`${this.prefix}-${e}`)}pop(e){const t=this.load(e);return this.remove(e),t}}class u extends h{constructor(e){super(e,sessionStorage)}}class d{static forKeycloak(e,t,r){const s=new URL("protocol/openid-connect/auth",t),i=new URL("protocol/openid-connect/token",t),o=new URL("protocol/openid-connect/logout",t);return new d(e,"openid profile",s,i,o,r)}constructor(e,t,r,s,i,o){this.clientId=e,this.scope=t,this.authUri=r,this.tokenUri=s,this.logoutUri=i,this.redirectUri=o,this.storage=new u(e)}async _auth(){const e=r.encode(crypto.getRandomValues(new Uint8Array(32)).buffer),t=r.encode(await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e))),s=this.clientId+r.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);this.storage.save(d.PKCE_AND_STATE_KEY,{state:s,verifier:e});const i=new URL(this.authUri);i.searchParams.set("client_id",this.clientId),i.searchParams.set("redirect_uri",this.redirectUri),i.searchParams.set("response_type","code"),i.searchParams.set("scope",this.scope),i.searchParams.set("state",s),i.searchParams.set("code_challenge",t),i.searchParams.set("code_challenge_method","S256"),window.location=i}async _tokenExchange(e,t){window.history.replaceState("","",this.redirectUri);const r=this.storage.pop(d.PKCE_AND_STATE_KEY);if(r.state!==t)throw new Error("State mismatch");const s=await fetch(this.tokenUri,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["code",e],["grant_type","authorization_code"],["code_verifier",r.verifier],["state",r.state],["redirect_uri",this.redirectUri]])});if(!s.ok){const e=await s.text();throw new Error("Error:"+s.status+": "+e)}const i=await s.json();return new f(this.clientId,i,this.tokenUri,this.logoutUri,this.redirectUri)}async ensureLoggedIn(){const e=new URL(window.location.href),t=e.searchParams.get("code");if(t){const r=e.searchParams.get("state");return await this._tokenExchange(t,r)}return await this._auth(),null}}d.PKCE_AND_STATE_KEY="state-and-verifier";class f{static parseToken(e){const[t,r,s]=e.split(".");return{header:JSON.parse(atob(t)),payload:JSON.parse(atob(r)),signature:s}}constructor(e,t,r,s,i){this.clientId=e,this.token=t,this.tokenUri=r,this.logoutUri=s,this.redirectUri=i,this.accessToken=f.parseToken(t.access_token),this.refreshToken=f.parseToken(t.refresh_token),this.refreshCallback=null}onRefresh(e){this.refreshCallback=e}async refresh(){const e=await fetch(this.tokenUri,{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(!e.ok)throw new Error("Error:"+e.code+": "+e.text());const t=await e.json();this.token=t,this.accessToken=this._parseToken(t.access_token),this.refreshToken=this._parseToken(t.refresh_token),this.refreshCallback&&this.refreshCallback(this.token,this.accessToken,this.refreshToken)}shouldBeRefreshed(e){const t=(new Date).getTime(),r=1e3*this.refreshToken.payload.exp;return!(t>r)&&t-e>r}async refreshIf(e){this.shouldBeRefreshed(e)&&await this.refresh()}logout(){const e=new URL(this.logoutUri);e.searchParams.set("post_logout_redirect_uri",this.redirectUri),e.searchParams.set("id_token_hint",this.token.id_token),window.location=e}bearerToken(){return`Bearer ${this.token.access_token}`}interceptor(e,t){return new p(this,e,t)}}class p{constructor(e,t,r){this.session=e,this.gracePeriodBefore=t||2e3,this.gracePeriodAfter=r||3e4}async before(e){await this.session.refreshIf(this.gracePeriodBefore);return new Headers(e.options.headers).set("Authorization",this.session.bearerToken()),e}async after(e,t){return await this.session.refreshIf(this.gracePeriodAfter),t}}const E={sleep:e=>new Promise((t=>setTimeout(t,e))),DEBOUNCE_DEFAULT:0,DEBOUNCE_IMMEDIATE:1,debounce(e,t,r){let s=null,i=[],o=0,n=r||E.DEBOUNCE_DEFAULT;const a=()=>{const r=(new Date).getTime()-o;e>r?s=setTimeout(a,e-r):(s=null,n!==E.DEBOUNCE_IMMEDIATE&&t(...i),null===s&&(i=[]))};return function(){i=arguments,o=(new Date).getTime(),null===s&&(s=setTimeout(a,e),n===E.DEBOUNCE_IMMEDIATE&&t(...i))}},THROTTLE_DEFAULT:0,THROTTLE_NO_LEADING:1,THROTTLE_NO_TRAILING:2,throttle(e,t,r){let s=null,i=[],o=0,n=r||E.THROTTLE_DEFAULT;const a=()=>{o=n&E.THROTTLE_NO_LEADING?0:(new Date).getTime(),s=null,t(...i),null===s&&(i=[])};return function(){const r=(new Date).getTime();!o&&n&E.THROTTLE_NO_LEADING&&(o=r);const c=e-(r-o);i=arguments,c<=0||c>e?(null!==s&&(clearTimeout(s),s=null),o=r,t(...i),null===s&&(i=[])):null!==s||n&E.THROTTLE_NO_TRAILING||(s=setTimeout(a,c))}}};return e.App=class{constructor(){this.configurers=[],this.initializers=[],this.handlers=[],this.running=!1,document.addEventListener("DOMContentLoaded",(async()=>{await Promise.all(this.configurers),await Promise.all(this.initializers.map((e=>Promise.resolve(e())))),await Promise.all(this.handlers.map((e=>Promise.resolve(e()))))}))}configure(e){return this.configurers.push(Promise.resolve(e())),this}initialize(e){return this.initializers.push(e),this}ready(e){return this.handlers.push(e),this}},e.AuthorizationCodeFlow=d,e.AuthorizationCodeFlowInterceptor=p,e.AuthorizationCodeFlowSession=f,e.Base64=r,e.Bindings=class{constructor({extractors:e,mutators:t,ignoredChildrenSelector:r,valueHoldersSelector:s}){this.extractors=e||{},this.mutators=t||{},this.valueHoldersSelector=s||"input[name], select[name], textarea[name]",this.ignoredChildrenSelector=r||".d-none"}setValues(e,r){for(let s in r)r.hasOwnProperty(s)&&Array.from(e.querySelectorAll(`[name='${CSS.escape(s)}']`)).forEach((e=>{t(this.mutators,e,r[s],s,r)}))}getValues(e){return Array.from(e.querySelectorAll(this.valueHoldersSelector)).filter((e=>"never"!==e.dataset.bindInclude&&("always"===e.dataset.bindInclude||null===e.closest(this.ignoredChildrenSelector)))).reduce(((e,t)=>function(e,t,r){const s=t.split(".").map((e=>e.match(/^[0-9]+$/)?+e:e));let i=e,o=null;for(let t=0;;++t){const n=s[t],a=s[t-1];if(Number.isInteger(n)&&!Array.isArray(i)&&(null!==o?o[a]=i=[]:e=i=[]),t===s.length-1)return i[n]=void 0!==r?r:n in i?i[n]:null,e;void 0===i[n]&&(i[n]={}),o=i,i=i[n]}}(e,t.getAttribute("name"),function(e,t){const r=e[t.dataset.bindExtractor]||e[t.dataset.bindProvide];if(r)return r(t);if("radio"===t.getAttribute("type")){if(!t.checked)return;return"boolean"===t.dataset.bindType?"true"===t.value:t.value}return"checkbox"===t.getAttribute("type")?t.checked:"boolean"===t.dataset.bindType?t.value?"true"===t.value:null:t.value||null}(this.extractors,t))),{})}},e.Failure=a,e.Form=s,e.Hex=class{static decode(e){if(e.length%2!=0)throw new Error("invalid length");const t=e.length/2;return new Uint8Array(t).map(((t,r)=>{const s=2*r,i=e.substring(s,s+2);return parseInt(i,16)}))}static encode(e,t){return Array.from(e).map((e=>e.toString(16))).map((e=>t?e.toUpperCase():e)).map((e=>e.padStart(2,0))).join("")}},e.HttpClient=l,e.LocalStorage=class extends h{constructor(e){super(e,localStorage)}},e.SessionStorage=u,e.VersionedStorage=class{constructor(e,t,r){this.storage=e,this.key=t,this.dataSupplier=r,this.cache=null}async load(e){const t=this.storage.load(this.key);if(t&&t.revision===e)return void(this.cache=t.value);const r=await this.dataSupplier(e,this.key);this.storage.save(this.key,{revision:e,value:r}),this.cache=r}data(){return this.cache}},e.Wizard=class{constructor(e){if(this.el=e,this.progress=[...e.children].filter((e=>e.matches("header,ol,ul"))),this.progress.forEach((e=>{const t=[...e.children];void 0===t.filter((e=>e.matches(".active")))[0]&&t.length>0&&t[0].classList.add("active")})),null===this.el.querySelector("section.current")){const e=this.el.querySelector("section:first-of-type");null!==e&&e.classList.add("current")}}next(){this.progress.forEach((e=>{const t=[...e.children].filter((e=>e.matches(".active")))[0];t?.classList.remove("active"),t?.nextElementSibling?.classList.add("active")}));const e=this.el.querySelector("section.current");e.classList.remove("current"),e.nextElementSibling.classList.add("current"),this.el.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}prev(){this.progress.forEach((e=>{const t=[...e.children].filter((e=>e.matches(".active")))[0];t?.classList.remove("active"),t?.previousElementSibling?.classList.add("active")}));const e=this.el.querySelector("section.current");e.classList.remove("current"),e.previousElementSibling.classList.add("current"),this.el.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}moveTo=function(e){this.progress.forEach((t=>{[...t.children].filter((e=>e.matches(".active")))[0]?.classList.remove("active"),t.children[+e]?.classList.add("active")}));this.el.querySelector("section.current")?.classList.remove("current");this.el.querySelector(`section:nth-child(${+e})`).classList.add("current"),this.el.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}},e.timing=E,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
1
+ var ful=function(e){"use strict";function t(e,t,r,s,i){const o=e[t.dataset.bindMutator]||e[t.dataset.bindProvide];o?o(t,r,s,i):"radio"!==t.getAttribute("type")?"checkbox"!==t.getAttribute("type")?t.value=r:t.checked=r:t.checked=t.getAttribute("value")===r}class r{static encode(e,t){const s=t||r.URL_SAFE,i=e.byteLength,o=new Uint8Array(e);let n="";for(let e=0;e<i;e+=3){n+=s[o[e]>>2]+s[(3&o[e])<<4|o[e+1]>>4]+s[(15&o[e+1])<<2|o[e+2]>>6]+s[63&o[e+2]]}return i%3==2?n=n.substring(0,n.length-1):i%3==1&&(n=n.substring(0,n.length-2)),n}static decode(e,t){const s=t||r.URL_SAFE;let i=Math.floor(.75*e.length);for(let t=0;t!==e.length&&"="===e[e.length-t-1];++t)--i;const o=new Uint8Array(i);let n=0,a=0;for(;n<.75*e.length;){const t=s.indexOf(e.charAt(a++)),r=s.indexOf(e.charAt(a++)),i=s.indexOf(e.charAt(a++)),c=s.indexOf(e.charAt(a++));o[n++]=t<<2|r>>4,o[n++]=(15&r)<<4|i>>2,o[n++]=(3&i)<<6|c}return o.buffer}}r.STANDARD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r.URL_SAFE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";class s{constructor(e,t,{globalErrorsEl:r,fieldContainerSelector:i,errorClass:o,hideClass:n}){this.el=e,this.bindings=t,this.globalErrorsEl=r,this.fieldContainerSelector=void 0!==i?i:s.DEFAULT_FIELD_CONTAINER_SELECTOR,this.errorClass=o||s.DEFAULT_ERROR_CLASS,this.hideClass=n||s.DEFAULT_HIDE_CLASS}setValues(e){return this.bindings.setValues(this.el,e)}getValues(){return this.bindings.getValues(this.el)}setErrors(e,t,r){if(this.clearErrors(),e.map(this.mapError?this.mapError:e=>e).filter((e=>"FIELD_ERROR"===e.type||"INVALID_FORMAT"===e.type)).forEach((e=>{const t=e.context.replace("[",".").replace("].",".");Array.from(this.el.querySelectorAll(`[name='${CSS.escape(t)}']`)).map((e=>this.fieldContainerSelector?e.closest(this.fieldContainerSelector):e)).filter((e=>null!==e)).forEach((t=>{t.classList.add(this.errorClass),t.dataset.error=e.reason}))})),this.globalErrorsEl){const t=e.filter((e=>"FIELD_ERROR"!==e.type&&"INVALID_FORMAT"!==e.type));this.globalErrorsEl.innerHTML=t.map((e=>e.reason)).join("\n"),0!==t.length&&this.globalErrorsEl.classList.remove(this.hideClass)}if(!t)return;const s=Array.from(this.el.querySelectorAll(".${CSS.escape(this.errorClass)}")).map((e=>e.getBoundingClientRect().y+window.scrollY)),i=Math.min(...s);i!==1/0&&window.scroll(window.scrollX,i>100?i-100:0)}clearErrors(){this.el.querySelectorAll(`.${CSS.escape(this.errorClass)}`).forEach((e=>e.classList.remove(this.errorClass))),this.globalErrorsEl&&(this.globalErrorsEl.innerHTML="",this.globalErrorsEl.classList.add(this.hideClass))}}s.DEFAULT_FIELD_CONTAINER_SELECTOR="label",s.DEFAULT_ERROR_CLASS="has-error",s.DEFAULT_HIDE_CLASS="d-none";class i{constructor(){const e=document.querySelector("meta[name='context']").getAttribute("content");this.context=e.endsWith("/")?e.substring(0,e.length-1):e}before(e){const t=e.resource.startsWith("/")?"":"/";e.resource=this.context+t+e.resource}}class o{constructor(){this.k=document.querySelector("meta[name='_csrf_header']").getAttribute("content"),this.v=document.querySelector("meta[name='_csrf']").getAttribute("content")}before(e){const t=new Headers(e.options.headers);t.set(this.k,this.v),e.options.headers=t}}class n{constructor(e){this.redirectUri=e}after(e,t){401===t.status&&(window.location.href=redirectUri)}}class a extends Error{static parseProblems(e,t){const r=[{type:"GENERIC_PROBLEM",context:null,reason:`${e}: ${t}`,details:null}];try{return t?JSON.parse(t):r}catch(e){return r}}static fromResponse(e,t){return new a(e,a.parseProblems(e,t))}constructor(e,t){super(JSON.stringify(t)),this.name=`Failure:${e}`,this.status=e,this.problems=t}}class c{constructor(){this.interceptors=[]}withContext(){return this.interceptors.push(new i),this}withCsrfToken(){return this.interceptors.push(new o),this}withRedirectOnUnauthorized(e){return this.interceptors.push(new n(e)),this}withInterceptors(...e){return this.interceptors.push(...e),this}build(){const e=this.interceptors;return new l({interceptors:e})}}class l{static builder(){return new c}constructor({interceptors:e}){this.interceptors=e||[]}async fetch(e,t){const r=this.interceptors.concat(t.interceptors||[]),s={resource:e,options:t};await r.forEach((async e=>{e.before&&await e.before(s)}));const i=await fetch(s.resource,s.options);return await r.forEach((async e=>{e.after&&await e.after(s,i)})),i}async json(e,t){try{const r=await this.fetch(e,t);if(!r.ok){const e=await r.text();throw a.fromResponse(r.status,e)}const s=await r.text();return s?JSON.parse(s):void 0}catch(e){if(e instanceof a)throw e;throw new a(0,[{type:"CONNECTION_PROBLEM",context:null,reason:e.message,details:null}])}}async form(e,t,r){const s=r||{};s.buttons?.forEach((e=>{e.setAttribute("disabled","disabled"),s.loader&&(e.dataset.oldContent=e.innerHTML,e.innerHTML=s.loader)}));try{const r=await this.json(e,t);return s.form?.clearErrors(),r}catch(e){throw s.form?.setErrors(e.problems),e}finally{s.buttons?.forEach((e=>{e.removeAttribute("disabled"),e.innerHTML=e.dataset.oldContent,delete e.dataset.oldContent}))}}}class h{constructor(e,t){this.prefix=e,this.storage=t}save(e,t){this.storage.setItem(`${this.prefix}-${e}`,JSON.stringify(t))}load(e){const t=this.storage.getItem(`${this.prefix}-${e}`);return void 0===t?void 0:JSON.parse(t)}remove(e){this.storage.removeItem(`${this.prefix}-${e}`)}pop(e){const t=this.load(e);return this.remove(e),t}}class u extends h{constructor(e){super(e,sessionStorage)}}class d{static forKeycloak(e,t,r){const s=new URL("protocol/openid-connect/auth",t),i=new URL("protocol/openid-connect/token",t),o=new URL("protocol/openid-connect/logout",t);return new d(e,"openid profile",s,i,o,r)}constructor(e,t,r,s,i,o){this.clientId=e,this.scope=t,this.authUri=r,this.tokenUri=s,this.logoutUri=i,this.redirectUri=o,this.storage=new u(e)}async _auth(){const e=r.encode(crypto.getRandomValues(new Uint8Array(32)).buffer),t=r.encode(await crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e))),s=this.clientId+r.encode(crypto.getRandomValues(new Uint8Array(16)).buffer);this.storage.save(d.PKCE_AND_STATE_KEY,{state:s,verifier:e});const i=new URL(this.authUri);i.searchParams.set("client_id",this.clientId),i.searchParams.set("redirect_uri",this.redirectUri),i.searchParams.set("response_type","code"),i.searchParams.set("scope",this.scope),i.searchParams.set("state",s),i.searchParams.set("code_challenge",t),i.searchParams.set("code_challenge_method","S256"),window.location=i}async _tokenExchange(e,t){window.history.replaceState("","",this.redirectUri);const r=this.storage.pop(d.PKCE_AND_STATE_KEY);if(r.state!==t)throw new Error("State mismatch");const s=await fetch(this.tokenUri,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams([["client_id",this.clientId],["code",e],["grant_type","authorization_code"],["code_verifier",r.verifier],["state",r.state],["redirect_uri",this.redirectUri]])});if(!s.ok){const e=await s.text();throw new Error("Error:"+s.status+": "+e)}const i=await s.json();return new f(this.clientId,i,this.tokenUri,this.logoutUri,this.redirectUri)}async ensureLoggedIn(){const e=new URL(window.location.href),t=e.searchParams.get("code");if(t&&this.storage.load(d.PKCE_AND_STATE_KEY)){const r=e.searchParams.get("state");return await this._tokenExchange(t,r)}return await this._auth(),null}}d.PKCE_AND_STATE_KEY="state-and-verifier";class f{static parseToken(e){const[t,r,s]=e.split(".");return{header:JSON.parse(atob(t)),payload:JSON.parse(atob(r)),signature:s}}constructor(e,t,r,s,i){this.clientId=e,this.token=t,this.tokenUri=r,this.logoutUri=s,this.redirectUri=i,this.accessToken=f.parseToken(t.access_token),this.refreshToken=f.parseToken(t.refresh_token),this.refreshCallback=null}onRefresh(e){this.refreshCallback=e}async refresh(){const e=await fetch(this.tokenUri,{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(!e.ok)throw new Error("Error:"+e.code+": "+e.text());const t=await e.json();this.token=t,this.accessToken=this._parseToken(t.access_token),this.refreshToken=this._parseToken(t.refresh_token),this.refreshCallback&&this.refreshCallback(this.token,this.accessToken,this.refreshToken)}shouldBeRefreshed(e){const t=(new Date).getTime(),r=1e3*this.refreshToken.payload.exp;return!(t>r)&&t-e>r}async refreshIf(e){this.shouldBeRefreshed(e)&&await this.refresh()}logout(){const e=new URL(this.logoutUri);e.searchParams.set("post_logout_redirect_uri",this.redirectUri),e.searchParams.set("id_token_hint",this.token.id_token),window.location=e}bearerToken(){return`Bearer ${this.token.access_token}`}interceptor(e,t){return new p(this,e,t)}}class p{constructor(e,t,r){this.session=e,this.gracePeriodBefore=t||2e3,this.gracePeriodAfter=r||3e4}async before(e){await this.session.refreshIf(this.gracePeriodBefore);return new Headers(e.options.headers).set("Authorization",this.session.bearerToken()),e}async after(e,t){return await this.session.refreshIf(this.gracePeriodAfter),t}}const E={sleep:e=>new Promise((t=>setTimeout(t,e))),DEBOUNCE_DEFAULT:0,DEBOUNCE_IMMEDIATE:1,debounce(e,t,r){let s=null,i=[],o=0,n=r||E.DEBOUNCE_DEFAULT;const a=()=>{const r=(new Date).getTime()-o;e>r?s=setTimeout(a,e-r):(s=null,n!==E.DEBOUNCE_IMMEDIATE&&t(...i),null===s&&(i=[]))};return function(){i=arguments,o=(new Date).getTime(),null===s&&(s=setTimeout(a,e),n===E.DEBOUNCE_IMMEDIATE&&t(...i))}},THROTTLE_DEFAULT:0,THROTTLE_NO_LEADING:1,THROTTLE_NO_TRAILING:2,throttle(e,t,r){let s=null,i=[],o=0,n=r||E.THROTTLE_DEFAULT;const a=()=>{o=n&E.THROTTLE_NO_LEADING?0:(new Date).getTime(),s=null,t(...i),null===s&&(i=[])};return function(){const r=(new Date).getTime();!o&&n&E.THROTTLE_NO_LEADING&&(o=r);const c=e-(r-o);i=arguments,c<=0||c>e?(null!==s&&(clearTimeout(s),s=null),o=r,t(...i),null===s&&(i=[])):null!==s||n&E.THROTTLE_NO_TRAILING||(s=setTimeout(a,c))}}};return e.App=class{constructor(){this.configurers=[],this.initializers=[],this.handlers=[],this.running=!1,document.addEventListener("DOMContentLoaded",(async()=>{await Promise.all(this.configurers),await Promise.all(this.initializers.map((e=>Promise.resolve(e())))),await Promise.all(this.handlers.map((e=>Promise.resolve(e()))))}))}configure(e){return this.configurers.push(Promise.resolve(e())),this}initialize(e){return this.initializers.push(e),this}ready(e){return this.handlers.push(e),this}},e.AuthorizationCodeFlow=d,e.AuthorizationCodeFlowInterceptor=p,e.AuthorizationCodeFlowSession=f,e.Base64=r,e.Bindings=class{constructor({extractors:e,mutators:t,ignoredChildrenSelector:r,valueHoldersSelector:s}){this.extractors=e||{},this.mutators=t||{},this.valueHoldersSelector=s||"input[name], select[name], textarea[name]",this.ignoredChildrenSelector=r||".d-none"}setValues(e,r){for(let s in r)r.hasOwnProperty(s)&&Array.from(e.querySelectorAll(`[name='${CSS.escape(s)}']`)).forEach((e=>{t(this.mutators,e,r[s],s,r)}))}getValues(e){return Array.from(e.querySelectorAll(this.valueHoldersSelector)).filter((e=>"never"!==e.dataset.bindInclude&&("always"===e.dataset.bindInclude||null===e.closest(this.ignoredChildrenSelector)))).reduce(((e,t)=>function(e,t,r){const s=t.split(".").map((e=>e.match(/^[0-9]+$/)?+e:e));let i=e,o=null;for(let t=0;;++t){const n=s[t],a=s[t-1];if(Number.isInteger(n)&&!Array.isArray(i)&&(null!==o?o[a]=i=[]:e=i=[]),t===s.length-1)return i[n]=void 0!==r?r:n in i?i[n]:null,e;void 0===i[n]&&(i[n]={}),o=i,i=i[n]}}(e,t.getAttribute("name"),function(e,t){const r=e[t.dataset.bindExtractor]||e[t.dataset.bindProvide];if(r)return r(t);if("radio"===t.getAttribute("type")){if(!t.checked)return;return"boolean"===t.dataset.bindType?"true"===t.value:t.value}return"checkbox"===t.getAttribute("type")?t.checked:"boolean"===t.dataset.bindType?t.value?"true"===t.value:null:t.value||null}(this.extractors,t))),{})}},e.Failure=a,e.Form=s,e.Hex=class{static decode(e){if(e.length%2!=0)throw new Error("invalid length");const t=e.length/2;return new Uint8Array(t).map(((t,r)=>{const s=2*r,i=e.substring(s,s+2);return parseInt(i,16)}))}static encode(e,t){return Array.from(e).map((e=>e.toString(16))).map((e=>t?e.toUpperCase():e)).map((e=>e.padStart(2,0))).join("")}},e.HttpClient=l,e.LocalStorage=class extends h{constructor(e){super(e,localStorage)}},e.SessionStorage=u,e.VersionedStorage=class{constructor(e,t,r){this.storage=e,this.key=t,this.dataSupplier=r,this.cache=null}async load(e){const t=this.storage.load(this.key);if(t&&t.revision===e)return void(this.cache=t.value);const r=await this.dataSupplier(e,this.key);this.storage.save(this.key,{revision:e,value:r}),this.cache=r}data(){return this.cache}},e.Wizard=class{constructor(e){if(this.el=e,this.progress=[...e.children].filter((e=>e.matches("header,ol,ul"))),this.progress.forEach((e=>{const t=[...e.children];void 0===t.filter((e=>e.matches(".active")))[0]&&t.length>0&&t[0].classList.add("active")})),null===this.el.querySelector("section.current")){const e=this.el.querySelector("section:first-of-type");null!==e&&e.classList.add("current")}}next(){this.progress.forEach((e=>{const t=[...e.children].filter((e=>e.matches(".active")))[0];t?.classList.remove("active"),t?.nextElementSibling?.classList.add("active")}));const e=this.el.querySelector("section.current");e.classList.remove("current"),e.nextElementSibling.classList.add("current"),this.el.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}prev(){this.progress.forEach((e=>{const t=[...e.children].filter((e=>e.matches(".active")))[0];t?.classList.remove("active"),t?.previousElementSibling?.classList.add("active")}));const e=this.el.querySelector("section.current");e.classList.remove("current"),e.previousElementSibling.classList.add("current"),this.el.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}moveTo=function(e){this.progress.forEach((t=>{[...t.children].filter((e=>e.matches(".active")))[0]?.classList.remove("active"),t.children[+e]?.classList.add("active")}));this.el.querySelector("section.current")?.classList.remove("current");this.el.querySelector(`section:nth-child(${+e})`).classList.add("current"),this.el.dispatchEvent(new CustomEvent("wizard:activate",{bubbles:!0,cancelable:!0}))}},e.timing=E,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
2
2
  //# sourceMappingURL=ful.iife.min.js.map