@everymatrix/general-input 1.50.0 → 1.50.1
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/cjs/checkbox-group-input_10.cjs.entry.js +3 -3
- package/dist/cjs/general-input.cjs.entry.js +1 -1
- package/dist/cjs/general-input.cjs.js +2 -2
- package/dist/cjs/{index-d9883885.js → index-01420a64.js} +30 -13
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/toggle-checkbox-input.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/esm/checkbox-group-input_10.entry.js +3 -3
- package/dist/esm/general-input.entry.js +1 -1
- package/dist/esm/general-input.js +3 -3
- package/dist/esm/{index-4afeecb5.js → index-542cff81.js} +30 -13
- package/dist/esm/loader.js +2 -2
- package/dist/esm/toggle-checkbox-input.entry.js +1 -1
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/{p-22d31471.entry.js → p-3cab3b95.entry.js} +1 -1
- package/dist/general-input/p-3ce1e382.js +2 -0
- package/dist/general-input/{p-f0ec256d.entry.js → p-cc4fcb3f.entry.js} +481 -2
- package/dist/general-input/{p-be9966ea.entry.js → p-e5532cb1.entry.js} +1 -1
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/package.json +1 -1
- package/dist/general-input/p-6061c27c.js +0 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-01420a64.js');
|
|
6
6
|
const locale_utils = require('./locale.utils-345d0792.js');
|
|
7
7
|
const tooltipIcon = require('./tooltipIcon-7e9ee226.js');
|
|
8
8
|
|
|
@@ -7067,7 +7067,7 @@ const PropertiesMixin = dedupingMixin(superClass => {
|
|
|
7067
7067
|
* Current Polymer version in Semver notation.
|
|
7068
7068
|
* @type {string} Semver notation of the current version of Polymer.
|
|
7069
7069
|
*/
|
|
7070
|
-
const version = '3.5.
|
|
7070
|
+
const version = '3.5.2';
|
|
7071
7071
|
|
|
7072
7072
|
const builtCSS = window.ShadyCSS && window.ShadyCSS['cssBuild'];
|
|
7073
7073
|
|
|
@@ -8186,7 +8186,7 @@ if (window.Vaadin.developmentMode === undefined) {
|
|
|
8186
8186
|
/* This file is autogenerated from src/vaadin-usage-statistics.tpl.html */
|
|
8187
8187
|
|
|
8188
8188
|
function maybeGatherAndSendStats() {
|
|
8189
|
-
|
|
8189
|
+
/*! vaadin-dev-mode:start
|
|
8190
8190
|
(function () {
|
|
8191
8191
|
'use strict';
|
|
8192
8192
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-01420a64.js');
|
|
6
6
|
const locale_utils = require('./locale.utils-345d0792.js');
|
|
7
7
|
|
|
8
8
|
const generalInputCss = ":host{display:block;height:100%}";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-01420a64.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('general-input.cjs.js', document.baseURI).href));
|
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'general-input';
|
|
|
24
24
|
const BUILD = /* general-input */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -386,17 +386,30 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
386
386
|
if (nonce != null) {
|
|
387
387
|
styleElm.setAttribute("nonce", nonce);
|
|
388
388
|
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
389
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
390
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
391
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
392
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
393
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
394
|
+
} else if ("host" in styleContainerNode) {
|
|
395
|
+
if (supportsConstructableStylesheets) {
|
|
396
|
+
const stylesheet = new CSSStyleSheet();
|
|
397
|
+
stylesheet.replaceSync(style);
|
|
398
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
399
|
+
} else {
|
|
400
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
401
|
+
if (existingStyleContainer) {
|
|
402
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
403
|
+
} else {
|
|
404
|
+
styleContainerNode.prepend(styleElm);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
} else {
|
|
408
|
+
styleContainerNode.append(styleElm);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
412
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
400
413
|
}
|
|
401
414
|
}
|
|
402
415
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -468,7 +481,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
468
481
|
if (memberName === "list") {
|
|
469
482
|
isProp = false;
|
|
470
483
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
471
|
-
elm
|
|
484
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
485
|
+
elm[memberName] = n;
|
|
486
|
+
} else {
|
|
487
|
+
elm.setAttribute(memberName, n);
|
|
488
|
+
}
|
|
472
489
|
}
|
|
473
490
|
} else {
|
|
474
491
|
elm[memberName] = newValue;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-01420a64.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-01420a64.js');
|
|
6
6
|
const locale_utils = require('./locale.utils-345d0792.js');
|
|
7
7
|
const tooltipIcon = require('./tooltipIcon-7e9ee226.js');
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h as h$2, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h as h$2, g as getElement } from './index-542cff81.js';
|
|
2
2
|
import { t as translate$1 } from './locale.utils-0883d9a6.js';
|
|
3
3
|
import { t as tooltipIconSvg } from './tooltipIcon-0a5a06a2.js';
|
|
4
4
|
|
|
@@ -7063,7 +7063,7 @@ const PropertiesMixin = dedupingMixin(superClass => {
|
|
|
7063
7063
|
* Current Polymer version in Semver notation.
|
|
7064
7064
|
* @type {string} Semver notation of the current version of Polymer.
|
|
7065
7065
|
*/
|
|
7066
|
-
const version = '3.5.
|
|
7066
|
+
const version = '3.5.2';
|
|
7067
7067
|
|
|
7068
7068
|
const builtCSS = window.ShadyCSS && window.ShadyCSS['cssBuild'];
|
|
7069
7069
|
|
|
@@ -8182,7 +8182,7 @@ if (window.Vaadin.developmentMode === undefined) {
|
|
|
8182
8182
|
/* This file is autogenerated from src/vaadin-usage-statistics.tpl.html */
|
|
8183
8183
|
|
|
8184
8184
|
function maybeGatherAndSendStats() {
|
|
8185
|
-
|
|
8185
|
+
/*! vaadin-dev-mode:start
|
|
8186
8186
|
(function () {
|
|
8187
8187
|
'use strict';
|
|
8188
8188
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-542cff81.js';
|
|
2
2
|
import { g as getTranslations } from './locale.utils-0883d9a6.js';
|
|
3
3
|
|
|
4
4
|
const generalInputCss = ":host{display:block;height:100%}";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-542cff81.js';
|
|
2
|
+
export { s as setNonce } from './index-542cff81.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'general-input';
|
|
|
2
2
|
const BUILD = /* general-input */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -364,17 +364,30 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
364
364
|
if (nonce != null) {
|
|
365
365
|
styleElm.setAttribute("nonce", nonce);
|
|
366
366
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
367
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
368
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
369
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
370
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
371
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
372
|
+
} else if ("host" in styleContainerNode) {
|
|
373
|
+
if (supportsConstructableStylesheets) {
|
|
374
|
+
const stylesheet = new CSSStyleSheet();
|
|
375
|
+
stylesheet.replaceSync(style);
|
|
376
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
377
|
+
} else {
|
|
378
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
379
|
+
if (existingStyleContainer) {
|
|
380
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
381
|
+
} else {
|
|
382
|
+
styleContainerNode.prepend(styleElm);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
} else {
|
|
386
|
+
styleContainerNode.append(styleElm);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
390
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
378
391
|
}
|
|
379
392
|
}
|
|
380
393
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -446,7 +459,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
446
459
|
if (memberName === "list") {
|
|
447
460
|
isProp = false;
|
|
448
461
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
449
|
-
elm
|
|
462
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
463
|
+
elm[memberName] = n;
|
|
464
|
+
} else {
|
|
465
|
+
elm.setAttribute(memberName, n);
|
|
466
|
+
}
|
|
450
467
|
}
|
|
451
468
|
} else {
|
|
452
469
|
elm[memberName] = newValue;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-542cff81.js';
|
|
2
|
+
export { s as setNonce } from './index-542cff81.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-542cff81.js';
|
|
2
2
|
import { t as translate } from './locale.utils-0883d9a6.js';
|
|
3
3
|
import { t as tooltipIconSvg } from './tooltipIcon-0a5a06a2.js';
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-
|
|
1
|
+
import{p as e,b as l}from"./p-3ce1e382.js";export{s as setNonce}from"./p-3ce1e382.js";import{g as i}from"./p-e1255160.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["p-cc4fcb3f",[[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"select-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]],["p-3cab3b95",[[1,"general-input",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"]}]]],["p-e5532cb1",[[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]]]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as s}from"./p-
|
|
1
|
+
import{r as t,h as i,H as s}from"./p-3ce1e382.js";import{g as e}from"./p-6ca41a3b.js";const a=class{constructor(i){t(this,i),this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1}connectedCallback(){this.translationUrl&&e(this.translationUrl)}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return i("p",null,"The ",this.type," input type is not valid")}}render(){return i(s,{key:"e1c49fc91ead165c05b30c21ac568486e55c8096",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};a.style=":host{display:block;height:100%}";export{a as general_input}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w(v):f.raf(v))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{b(m),b(y),(p=m.length>0)&&f.raf(v)},w=e=>h().then(e),S=$(y,!0),g={},k=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>C,map:()=>O,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return C(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?D(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=D(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},D=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),H={},R=e=>n(e).$hostElement$,L=(e,t,n)=>{const l=R(e);return{emit:e=>T(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},T=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.v,W=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},F=/\s/,q=e=>e?e.split(F):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of z(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),_(null,l,B),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=I(e,l,i),s&&o.appendChild(s);return o["s-hn"]=M,o},J=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=I(null,n,o),i&&(l[o].$=i,Z(r,i,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,i=t.i;null===i?(_(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(Q(h,m,o))X(h,m,o),h=t[++r],m=l[++c];else if(Q(d,y,o))X(d,y,o),d=t[--f],y=l[--p];else if(Q(h,y,o))X(h,y,o),Z(e,h.$,d.$.nextSibling),h=t[++r],y=l[--p];else if(Q(d,m,o))X(d,m,o),Z(e,d.$,h.$),d=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=I(t&&t[c],n,u):(X(i,m,o),t[u]=void 0,s=i.$),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.$.parentNode,s,h.$)}r>f?J(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&K(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1)):e.i!==i&&(l.data=i)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.k),S((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.j&&(e.j.map((([e,t])=>ue(n,e,t))),e.j=void 0),l=ue(n,"componentWillLoad")),le(l,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.O)?n:j(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.C,s=e.M||D(null,null),i=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.M=i,i.$=s.$=l.shadowRoot||l,X(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.t,l=e.k;ue(n,"componentDidRender"),64&e.l||(e.l|=64,ae(t),ue(n,"componentDidLoad"),e.A(t),l||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),w((()=>T(u,"appload",{detail:{namespace:"general-input"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,i;const r=e.prototype;if(t.D||t.H||e.watchers){e.watchers&&!t.H&&(t.H=e.watchers);const c=Object.entries(null!=(o=t.D)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).R.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.R.get(t),u=i.l,a=i.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.D[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.R.set(t,l),a)){if(o.H&&128&u){const e=o.H[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&te(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.H)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.H)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},he=e=>{ue(e,"connectedCallback")},de=e=>{ue(e,"disconnectedCallback")},pe=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),b=a.createElement("style"),v=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],D:l[2],L:l[3]};4&c.l&&(g=!0),c.D=l[2],c.L=l[3],c.P=[],c.H=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,C:n,R:new Map};l.T=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,me(this,e,c.L)),w&&(clearTimeout(w),w=null),S?v.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.C,o=()=>{};if(1&t.l)me(e,t,l.L),(null==t?void 0:t.t)?he(t.t):(null==t?void 0:t.T)&&t.T.then((()=>he(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.k=n);break}}l.D&&Object.entries(l.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(n.H=l.watchers,fe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),he(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.W&&(e.W.map((e=>e())),e.W=void 0),(null==e?void 0:e.t)?de(e.t):(null==e?void 0:e.T)&&e.T.then((()=>de(e.t)))}})()))}componentOnReady(){return n(this).T}};c.N=e[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,fe(a,c,1)))}))})),h.length>0&&(g&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:j(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}S=!1,v.length?v.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ce,30)))},me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=$e(e,n),i=ye(t,o),r=be(n);f.ael(s,l,i,r),(t.W=t.W||[]).push((()=>f.rel(s,l,i,r)))}))},ye=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.j=e.j||[]).push([t,n])}catch(e){s(e)}},$e=(e,t)=>4&t?a:16&t?a.body:e,be=e=>({passive:!!(1&e),capture:!!(2&e)}),ve=e=>f.O=e;export{H,pe as b,L as c,R as g,A as h,h as p,l as r,ve as s}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,g as o}from"./p-
|
|
1
|
+
import{r as t,c as e,h as i,g as o}from"./p-3ce1e382.js";import{t as s}from"./p-6ca41a3b.js";import{t as r}from"./p-2dccd0bf.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
@@ -736,7 +736,486 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
736
736
|
Code distributed by Google as part of the polymer project is also
|
|
737
737
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
738
738
|
*/
|
|
739
|
-
function(t){const e={};for(let i in t){const o=t[i];e[i]="function"==typeof o?{type:o}:o}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=o(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,o(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s})),Ei=window.ShadyCSS&&window.ShadyCSS.cssBuild,Mi=Ht((t=>{const e=Si(Ti(t));function i(t,e,i,o){i.computed&&(i.readOnly=!0),i.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,i.computed,o)),i.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!i.computed):!1===i.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),i.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===i.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),i.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===i.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),i.observer&&t._createPropertyObserver(e,i.observer,o[i.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.
|
|
739
|
+
function(t){const e={};for(let i in t){const o=t[i];e[i]="function"==typeof o?{type:o}:o}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class s extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=o(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,o(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s})),Ei=window.ShadyCSS&&window.ShadyCSS.cssBuild,Mi=Ht((t=>{const e=Si(Ti(t));function i(t,e,i,o){i.computed&&(i.readOnly=!0),i.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,i.computed,o)),i.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!i.computed):!1===i.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),i.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===i.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),i.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===i.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),i.observer&&t._createPropertyObserver(e,i.observer,o[i.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Nt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)i(this.prototype,e,t[e],t)}static createObservers(t,e){const i=this.prototype;for(let o=0;o<t.length;o++)i._createMethodObserver(t[o],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!Bt||Ot)&&(e=Xt.import(t,"template"),Bt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=Et(t.url);else{const t=Xt.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Pt,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let o=e[i];"value"in o&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[i]=o)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return St(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const i=this.importPath;(function(t,e,i,o){if(!Ei){const s=e.content.querySelectorAll("style"),r=ae(e),a=function(t){let e=ie(t);return e?ne(e):[]}(i),n=e.content.firstElementChild;for(let i=0;i<a.length;i++){let s=a[i];s.textContent=t._processStyleText(s.textContent,o),e.content.insertBefore(s,n)}let l=0;for(let e=0;e<r.length;e++){let i=r[e],a=s[l];a!==i?(i=i.cloneNode(!0),a.parentNode.insertBefore(i,a)):l++,i.textContent=t._processStyleText(i.textContent,o)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,i),Vt&&Ei&&It){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,i?Dt(i):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=le(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),qt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=Dt(this.importPath)),Dt(t,e)}static _parseTemplateContent(t,i,o){return i.dynamicFns=i.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,i,o)}static _addTemplatePropertyEffect(t,i,o){return!jt||i in this._properties||o.info.part.signature&&o.info.part.signature.static||o.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,i,o)}}})),Ii=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Pi{constructor(t,e){Oi(t,e);const i=e.reduce(((e,i,o)=>e+Fi(i)+t[o+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Fi(t){if(t instanceof Pi)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const Bi=function(t,...e){Oi(t,e);const i=document.createElement("template");let o=e.reduce(((e,i,o)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Pi)return Fi(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(i)+t[o+1]),t[0]);return Ii&&(o=Ii.createHTML(o)),i.innerHTML=o,i},Oi=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")},Ni=Mi(HTMLElement),ji=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,qi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Li(t,e){if("function"!=typeof t)return;const i=ji.exec(t.toString());if(i)try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function Ri(){
|
|
740
|
+
/*! vaadin-dev-mode:start
|
|
741
|
+
(function () {
|
|
742
|
+
'use strict';
|
|
743
|
+
|
|
744
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
|
745
|
+
return typeof obj;
|
|
746
|
+
} : function (obj) {
|
|
747
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
var classCallCheck = function (instance, Constructor) {
|
|
751
|
+
if (!(instance instanceof Constructor)) {
|
|
752
|
+
throw new TypeError("Cannot call a class as a function");
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
var createClass = function () {
|
|
757
|
+
function defineProperties(target, props) {
|
|
758
|
+
for (var i = 0; i < props.length; i++) {
|
|
759
|
+
var descriptor = props[i];
|
|
760
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
761
|
+
descriptor.configurable = true;
|
|
762
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
763
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
return function (Constructor, protoProps, staticProps) {
|
|
768
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
769
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
770
|
+
return Constructor;
|
|
771
|
+
};
|
|
772
|
+
}();
|
|
773
|
+
|
|
774
|
+
var getPolymerVersion = function getPolymerVersion() {
|
|
775
|
+
return window.Polymer && window.Polymer.version;
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
var StatisticsGatherer = function () {
|
|
779
|
+
function StatisticsGatherer(logger) {
|
|
780
|
+
classCallCheck(this, StatisticsGatherer);
|
|
781
|
+
|
|
782
|
+
this.now = new Date().getTime();
|
|
783
|
+
this.logger = logger;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
createClass(StatisticsGatherer, [{
|
|
787
|
+
key: 'frameworkVersionDetectors',
|
|
788
|
+
value: function frameworkVersionDetectors() {
|
|
789
|
+
return {
|
|
790
|
+
'Flow': function Flow() {
|
|
791
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
|
792
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
|
793
|
+
return window.Vaadin.Flow.clients[key];
|
|
794
|
+
}).filter(function (client) {
|
|
795
|
+
return client.getVersionInfo;
|
|
796
|
+
}).map(function (client) {
|
|
797
|
+
return client.getVersionInfo().flow;
|
|
798
|
+
});
|
|
799
|
+
if (flowVersions.length > 0) {
|
|
800
|
+
return flowVersions[0];
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
'Vaadin Framework': function VaadinFramework() {
|
|
805
|
+
if (window.vaadin && window.vaadin.clients) {
|
|
806
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
|
807
|
+
return client.getVersionInfo;
|
|
808
|
+
}).map(function (client) {
|
|
809
|
+
return client.getVersionInfo().vaadinVersion;
|
|
810
|
+
});
|
|
811
|
+
if (frameworkVersions.length > 0) {
|
|
812
|
+
return frameworkVersions[0];
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
'AngularJs': function AngularJs() {
|
|
817
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
|
818
|
+
return window.angular.version.full;
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
'Angular': function Angular() {
|
|
822
|
+
if (window.ng) {
|
|
823
|
+
var tags = document.querySelectorAll("[ng-version]");
|
|
824
|
+
if (tags.length > 0) {
|
|
825
|
+
return tags[0].getAttribute("ng-version");
|
|
826
|
+
}
|
|
827
|
+
return "Unknown";
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
'Backbone.js': function BackboneJs() {
|
|
831
|
+
if (window.Backbone) {
|
|
832
|
+
return window.Backbone.VERSION;
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
'React': function React() {
|
|
836
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
|
837
|
+
if (!!document.querySelector(reactSelector)) {
|
|
838
|
+
// React does not publish the version by default
|
|
839
|
+
return "unknown";
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
'Ember': function Ember() {
|
|
843
|
+
if (window.Em && window.Em.VERSION) {
|
|
844
|
+
return window.Em.VERSION;
|
|
845
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
|
846
|
+
return window.Ember.VERSION;
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
'jQuery': function (_jQuery) {
|
|
850
|
+
function jQuery() {
|
|
851
|
+
return _jQuery.apply(this, arguments);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
jQuery.toString = function () {
|
|
855
|
+
return _jQuery.toString();
|
|
856
|
+
};
|
|
857
|
+
|
|
858
|
+
return jQuery;
|
|
859
|
+
}(function () {
|
|
860
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
|
861
|
+
return jQuery.prototype.jquery;
|
|
862
|
+
}
|
|
863
|
+
}),
|
|
864
|
+
'Polymer': function Polymer() {
|
|
865
|
+
var version = getPolymerVersion();
|
|
866
|
+
if (version) {
|
|
867
|
+
return version;
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
'LitElement': function LitElement() {
|
|
871
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
|
872
|
+
if (version) {
|
|
873
|
+
return version;
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
'LitHtml': function LitHtml() {
|
|
877
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
|
878
|
+
if (version) {
|
|
879
|
+
return version;
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
'Vue.js': function VueJs() {
|
|
883
|
+
if (window.Vue) {
|
|
884
|
+
return window.Vue.version;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
}, {
|
|
890
|
+
key: 'getUsedVaadinElements',
|
|
891
|
+
value: function getUsedVaadinElements(elements) {
|
|
892
|
+
var version = getPolymerVersion();
|
|
893
|
+
var elementClasses = void 0;
|
|
894
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
|
895
|
+
// Check all locations calling the method getEntries() in
|
|
896
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
|
897
|
+
// Currently it is only used by BootstrapHandler.
|
|
898
|
+
if (version && version.indexOf('2') === 0) {
|
|
899
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
|
900
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
|
901
|
+
return window.Vaadin[c];
|
|
902
|
+
}).filter(function (c) {
|
|
903
|
+
return c.is;
|
|
904
|
+
});
|
|
905
|
+
} else {
|
|
906
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
|
907
|
+
elementClasses = window.Vaadin.registrations || [];
|
|
908
|
+
}
|
|
909
|
+
elementClasses.forEach(function (klass) {
|
|
910
|
+
var version = klass.version ? klass.version : "0.0.0";
|
|
911
|
+
elements[klass.is] = { version: version };
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
}, {
|
|
915
|
+
key: 'getUsedVaadinThemes',
|
|
916
|
+
value: function getUsedVaadinThemes(themes) {
|
|
917
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
|
918
|
+
var theme;
|
|
919
|
+
var version = getPolymerVersion();
|
|
920
|
+
if (version && version.indexOf('2') === 0) {
|
|
921
|
+
// Polymer 2: themes are stored in window.Vaadin
|
|
922
|
+
theme = window.Vaadin[themeName];
|
|
923
|
+
} else {
|
|
924
|
+
// Polymer 3: themes are stored in custom element registry
|
|
925
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
|
926
|
+
}
|
|
927
|
+
if (theme && theme.version) {
|
|
928
|
+
themes[themeName] = { version: theme.version };
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
}, {
|
|
933
|
+
key: 'getFrameworks',
|
|
934
|
+
value: function getFrameworks(frameworks) {
|
|
935
|
+
var detectors = this.frameworkVersionDetectors();
|
|
936
|
+
Object.keys(detectors).forEach(function (framework) {
|
|
937
|
+
var detector = detectors[framework];
|
|
938
|
+
try {
|
|
939
|
+
var version = detector();
|
|
940
|
+
if (version) {
|
|
941
|
+
frameworks[framework] = { version: version };
|
|
942
|
+
}
|
|
943
|
+
} catch (e) {}
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
}, {
|
|
947
|
+
key: 'gather',
|
|
948
|
+
value: function gather(storage) {
|
|
949
|
+
var storedStats = storage.read();
|
|
950
|
+
var gatheredStats = {};
|
|
951
|
+
var types = ["elements", "frameworks", "themes"];
|
|
952
|
+
|
|
953
|
+
types.forEach(function (type) {
|
|
954
|
+
gatheredStats[type] = {};
|
|
955
|
+
if (!storedStats[type]) {
|
|
956
|
+
storedStats[type] = {};
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
|
|
960
|
+
var previousStats = JSON.stringify(storedStats);
|
|
961
|
+
|
|
962
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
|
963
|
+
this.getFrameworks(gatheredStats.frameworks);
|
|
964
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
|
965
|
+
|
|
966
|
+
var now = this.now;
|
|
967
|
+
types.forEach(function (type) {
|
|
968
|
+
var keys = Object.keys(gatheredStats[type]);
|
|
969
|
+
keys.forEach(function (key) {
|
|
970
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
|
971
|
+
storedStats[type][key] = { firstUsed: now };
|
|
972
|
+
}
|
|
973
|
+
// Discards any previously logged version number
|
|
974
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
|
975
|
+
storedStats[type][key].lastUsed = now;
|
|
976
|
+
});
|
|
977
|
+
});
|
|
978
|
+
|
|
979
|
+
var newStats = JSON.stringify(storedStats);
|
|
980
|
+
storage.write(newStats);
|
|
981
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
|
982
|
+
this.logger.debug("New stats: " + newStats);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}]);
|
|
986
|
+
return StatisticsGatherer;
|
|
987
|
+
}();
|
|
988
|
+
|
|
989
|
+
var StatisticsStorage = function () {
|
|
990
|
+
function StatisticsStorage(key) {
|
|
991
|
+
classCallCheck(this, StatisticsStorage);
|
|
992
|
+
|
|
993
|
+
this.key = key;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
createClass(StatisticsStorage, [{
|
|
997
|
+
key: 'read',
|
|
998
|
+
value: function read() {
|
|
999
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
|
1000
|
+
try {
|
|
1001
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
|
1002
|
+
} catch (e) {
|
|
1003
|
+
return {};
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}, {
|
|
1007
|
+
key: 'write',
|
|
1008
|
+
value: function write(data) {
|
|
1009
|
+
localStorage.setItem(this.key, data);
|
|
1010
|
+
}
|
|
1011
|
+
}, {
|
|
1012
|
+
key: 'clear',
|
|
1013
|
+
value: function clear() {
|
|
1014
|
+
localStorage.removeItem(this.key);
|
|
1015
|
+
}
|
|
1016
|
+
}, {
|
|
1017
|
+
key: 'isEmpty',
|
|
1018
|
+
value: function isEmpty() {
|
|
1019
|
+
var storedStats = this.read();
|
|
1020
|
+
var empty = true;
|
|
1021
|
+
Object.keys(storedStats).forEach(function (key) {
|
|
1022
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
|
1023
|
+
empty = false;
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
|
|
1027
|
+
return empty;
|
|
1028
|
+
}
|
|
1029
|
+
}]);
|
|
1030
|
+
return StatisticsStorage;
|
|
1031
|
+
}();
|
|
1032
|
+
|
|
1033
|
+
var StatisticsSender = function () {
|
|
1034
|
+
function StatisticsSender(url, logger) {
|
|
1035
|
+
classCallCheck(this, StatisticsSender);
|
|
1036
|
+
|
|
1037
|
+
this.url = url;
|
|
1038
|
+
this.logger = logger;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
createClass(StatisticsSender, [{
|
|
1042
|
+
key: 'send',
|
|
1043
|
+
value: function send(data, errorHandler) {
|
|
1044
|
+
var logger = this.logger;
|
|
1045
|
+
|
|
1046
|
+
if (navigator.onLine === false) {
|
|
1047
|
+
logger.debug("Offline, can't send");
|
|
1048
|
+
errorHandler();
|
|
1049
|
+
return;
|
|
1050
|
+
}
|
|
1051
|
+
logger.debug("Sending data to " + this.url);
|
|
1052
|
+
|
|
1053
|
+
var req = new XMLHttpRequest();
|
|
1054
|
+
req.withCredentials = true;
|
|
1055
|
+
req.addEventListener("load", function () {
|
|
1056
|
+
// Stats sent, nothing more to do
|
|
1057
|
+
logger.debug("Response: " + req.responseText);
|
|
1058
|
+
});
|
|
1059
|
+
req.addEventListener("error", function () {
|
|
1060
|
+
logger.debug("Send failed");
|
|
1061
|
+
errorHandler();
|
|
1062
|
+
});
|
|
1063
|
+
req.addEventListener("abort", function () {
|
|
1064
|
+
logger.debug("Send aborted");
|
|
1065
|
+
errorHandler();
|
|
1066
|
+
});
|
|
1067
|
+
req.open("POST", this.url);
|
|
1068
|
+
req.setRequestHeader("Content-Type", "application/json");
|
|
1069
|
+
req.send(data);
|
|
1070
|
+
}
|
|
1071
|
+
}]);
|
|
1072
|
+
return StatisticsSender;
|
|
1073
|
+
}();
|
|
1074
|
+
|
|
1075
|
+
var StatisticsLogger = function () {
|
|
1076
|
+
function StatisticsLogger(id) {
|
|
1077
|
+
classCallCheck(this, StatisticsLogger);
|
|
1078
|
+
|
|
1079
|
+
this.id = id;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
createClass(StatisticsLogger, [{
|
|
1083
|
+
key: '_isDebug',
|
|
1084
|
+
value: function _isDebug() {
|
|
1085
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
|
1086
|
+
}
|
|
1087
|
+
}, {
|
|
1088
|
+
key: 'debug',
|
|
1089
|
+
value: function debug(msg) {
|
|
1090
|
+
if (this._isDebug()) {
|
|
1091
|
+
console.info(this.id + ": " + msg);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}]);
|
|
1095
|
+
return StatisticsLogger;
|
|
1096
|
+
}();
|
|
1097
|
+
|
|
1098
|
+
var UsageStatistics = function () {
|
|
1099
|
+
function UsageStatistics() {
|
|
1100
|
+
classCallCheck(this, UsageStatistics);
|
|
1101
|
+
|
|
1102
|
+
this.now = new Date();
|
|
1103
|
+
this.timeNow = this.now.getTime();
|
|
1104
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
|
1105
|
+
this.initialDelay = 24 * 60 * 60;
|
|
1106
|
+
|
|
1107
|
+
this.logger = new StatisticsLogger("statistics");
|
|
1108
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
|
1109
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
|
1110
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
createClass(UsageStatistics, [{
|
|
1114
|
+
key: 'maybeGatherAndSend',
|
|
1115
|
+
value: function maybeGatherAndSend() {
|
|
1116
|
+
var _this = this;
|
|
1117
|
+
|
|
1118
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
|
1119
|
+
return;
|
|
1120
|
+
}
|
|
1121
|
+
this.gatherer.gather(this.storage);
|
|
1122
|
+
setTimeout(function () {
|
|
1123
|
+
_this.maybeSend();
|
|
1124
|
+
}, this.gatherDelay * 1000);
|
|
1125
|
+
}
|
|
1126
|
+
}, {
|
|
1127
|
+
key: 'lottery',
|
|
1128
|
+
value: function lottery() {
|
|
1129
|
+
return true;
|
|
1130
|
+
}
|
|
1131
|
+
}, {
|
|
1132
|
+
key: 'currentMonth',
|
|
1133
|
+
value: function currentMonth() {
|
|
1134
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
|
1135
|
+
}
|
|
1136
|
+
}, {
|
|
1137
|
+
key: 'maybeSend',
|
|
1138
|
+
value: function maybeSend() {
|
|
1139
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
1140
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
|
1141
|
+
|
|
1142
|
+
if (!firstUse) {
|
|
1143
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
|
1144
|
+
firstUse = this.timeNow;
|
|
1145
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
|
1149
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
|
1150
|
+
return;
|
|
1151
|
+
}
|
|
1152
|
+
if (this.currentMonth() <= monthProcessed) {
|
|
1153
|
+
this.logger.debug("This month has already been processed");
|
|
1154
|
+
return;
|
|
1155
|
+
}
|
|
1156
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
|
1157
|
+
// Use random sampling
|
|
1158
|
+
if (this.lottery()) {
|
|
1159
|
+
this.logger.debug("Congratulations, we have a winner!");
|
|
1160
|
+
} else {
|
|
1161
|
+
this.logger.debug("Sorry, no stats from you this time");
|
|
1162
|
+
return;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
this.send();
|
|
1166
|
+
}
|
|
1167
|
+
}, {
|
|
1168
|
+
key: 'send',
|
|
1169
|
+
value: function send() {
|
|
1170
|
+
// Ensure we have the latest data
|
|
1171
|
+
this.gatherer.gather(this.storage);
|
|
1172
|
+
|
|
1173
|
+
// Read, send and clean up
|
|
1174
|
+
var data = this.storage.read();
|
|
1175
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
|
1176
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
|
1177
|
+
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
|
1178
|
+
var self = this;
|
|
1179
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
|
1180
|
+
// Revert the 'month processed' flag
|
|
1181
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
}], [{
|
|
1185
|
+
key: 'version',
|
|
1186
|
+
get: function get$1() {
|
|
1187
|
+
return '2.1.2';
|
|
1188
|
+
}
|
|
1189
|
+
}, {
|
|
1190
|
+
key: 'firstUseKey',
|
|
1191
|
+
get: function get$1() {
|
|
1192
|
+
return 'vaadin.statistics.firstuse';
|
|
1193
|
+
}
|
|
1194
|
+
}, {
|
|
1195
|
+
key: 'monthProcessedKey',
|
|
1196
|
+
get: function get$1() {
|
|
1197
|
+
return 'vaadin.statistics.monthProcessed';
|
|
1198
|
+
}
|
|
1199
|
+
}, {
|
|
1200
|
+
key: 'optOutKey',
|
|
1201
|
+
get: function get$1() {
|
|
1202
|
+
return 'vaadin.statistics.optout';
|
|
1203
|
+
}
|
|
1204
|
+
}]);
|
|
1205
|
+
return UsageStatistics;
|
|
1206
|
+
}();
|
|
1207
|
+
|
|
1208
|
+
try {
|
|
1209
|
+
window.Vaadin = window.Vaadin || {};
|
|
1210
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
|
1211
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
|
1212
|
+
} catch (e) {
|
|
1213
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
}());
|
|
1217
|
+
|
|
1218
|
+
vaadin-dev-mode:end **/}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(qi?!(qi&&Object.keys(qi).map((t=>qi[t])).filter((t=>t.productionMode)).length>0):!Li((function(){return!0})))}catch(t){return!1}}());
|
|
740
1219
|
/**
|
|
741
1220
|
* @license
|
|
742
1221
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as i}from"./p-
|
|
1
|
+
import{r as e,c as t,h as i}from"./p-3ce1e382.js";import{t as o}from"./p-6ca41a3b.js";import{t as s}from"./p-2dccd0bf.js";const l=class{constructor(i){e(this,i),this.sendValidityState=t(this,"sendValidityState",7),this.sendInputValue=t(this,"sendInputValue",7),this.value="",this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return o("requiredError",this.language)}renderLabel(){return i("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},i("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return i("div",{key:"8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},i("div",{key:"18e2ec43ff98738323ddab1e134d6d215978e1c7",class:"togglecheckbox__wrapper--flex"},i("input",{key:"640b3ba4fd34bd813239533236e51f452e735409",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),i("small",{key:"efd70a691559cfa98e93561dd945a0fe92909718",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"e56a8fafa17da25d01f894fe6e6c143c318d2aab",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"8b59366827b8f4f8ca5581203a2dca44ae8132d5",class:"togglecheckbox__tooltip-icon",src:s,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"475e27345b51396c36e78b5a1e06edd980bc3ae1",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((e=>i("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:null==e.placeholder?"":e.placeholder})))))}};l.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';export{l as toggle_checkbox_input}
|
|
@@ -1015,6 +1015,8 @@ export declare namespace JSXBase {
|
|
|
1015
1015
|
autoPlay?: boolean;
|
|
1016
1016
|
autoplay?: boolean | string;
|
|
1017
1017
|
controls?: boolean;
|
|
1018
|
+
controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1019
|
+
controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
|
|
1018
1020
|
crossOrigin?: string;
|
|
1019
1021
|
crossorigin?: string;
|
|
1020
1022
|
loop?: boolean;
|
|
@@ -1564,6 +1566,10 @@ export declare namespace JSXBase {
|
|
|
1564
1566
|
onSubmitCapture?: (event: Event) => void;
|
|
1565
1567
|
onInvalid?: (event: Event) => void;
|
|
1566
1568
|
onInvalidCapture?: (event: Event) => void;
|
|
1569
|
+
onBeforeToggle?: (event: Event) => void;
|
|
1570
|
+
onBeforeToggleCapture?: (event: Event) => void;
|
|
1571
|
+
onToggle?: (event: Event) => void;
|
|
1572
|
+
onToggleCapture?: (event: Event) => void;
|
|
1567
1573
|
onLoad?: (event: Event) => void;
|
|
1568
1574
|
onLoadCapture?: (event: Event) => void;
|
|
1569
1575
|
onError?: (event: Event) => void;
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="undefined"!=typeof window?window:{},u=a.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w(v):f.raf(v))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},v=()=>{b(m),b(y),(p=m.length>0)&&f.raf(v)},w=e=>h().then(e),g=$(y,!0),S={},k=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=A(e,null);return a.u=t,i.length>0&&(a.h=i),a.p=o,a},A=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=e=>n(e).$hostElement$,L=(e,t,n)=>{const l=H(e);return{emit:e=>T(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},T=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.v,W=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},F=/\s/,q=e=>e?e.split(F):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=u.createTextNode(l.i);else if(o=l.$=u.createElement(l.m),_(null,l,B),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);return o["s-hn"]=M,o},J=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=I(null,n,o),r&&(l[o].$=r,Z(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(_(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,a=0,u=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(d,y,o))X(d,y,o),d=t[--f],y=l[--p];else if(Q(h,y,o))X(h,y,o),Z(e,h.$,d.$.nextSibling),h=t[++i],y=l[--p];else if(Q(d,m,o))X(d,m,o),Z(e,d.$,h.$),d=t[--f],m=l[++c];else{for(a=-1,u=i;u<=f;++u)if(t[u]&&null!==t[u].p&&t[u].p===m.p){a=u;break}a>=0?(r=t[a],r.m!==m.m?s=I(t&&t[c],n,a):(X(r,m,o),t[a]=void 0,s=r.$),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.$.parentNode,s,h.$)}i>f?J(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):!n&&null!==o&&K(o,0,o.length-1)):e.i!==r&&(l.data=r)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.k),g((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.j&&(e.j.map((([e,t])=>ae(n,e,t))),e.j=void 0),l=ae(n,"componentWillLoad")),le(l,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:j(u);null!=l&&s.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);re(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},re=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||A(null,null),r=(e=>e&&e.m===D)(t)?t:R(null,null,t);if(M=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.$=s.$=l.shadowRoot||l,X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,l=e.k;ae(n,"componentDidRender"),64&e.l||(e.l|=64,ue(t),ae(n,"componentDidLoad"),e.R(t),l||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>te(e,!1))),e.l&=-517},ce=()=>{ue(u.documentElement),w((()=>T(a,"appload",{detail:{namespace:"general-input"}})))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ue=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,r;const i=e.prototype;if(t.A||t.D||e.watchers){e.watchers&&!t.D&&(t.D=e.watchers);const c=Object.entries(null!=(o=t.A)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).H.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.H.get(t),a=r.l,u=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.A[t][0]),(!(8&a)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.H.set(t,l),u)){if(o.D&&128&a){const e=o.D[t];e&&e.map((e=>{try{u[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&a)&&te(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.D)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.D)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},he=e=>{ae(e,"connectedCallback")},de=e=>{ae(e,"disconnectedCallback")},pe=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=a.customElements,y=u.head,$=y.querySelector("meta[charset]"),b=u.createElement("style"),v=[];let w,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],A:l[2],L:l[3]};4&c.l&&(S=!0),c.A=l[2],c.L=l[3],c.P=[],c.D=null!=(o=l[4])?o:{};const a=c.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,H:new Map};l.T=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,me(this,e,c.L)),w&&(clearTimeout(w),w=null),g?v.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)me(e,t,l.L),(null==t?void 0:t.t)?he(t.t):(null==t?void 0:t.T)&&t.T.then((()=>he(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.k=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.N;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.U}" was not found`);l.isProxied||(n.D=l.watchers,fe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),he(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.k,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.W&&(e.W.map((e=>e())),e.W=void 0),(null==e?void 0:e.t)?de(e.t):(null==e?void 0:e.T)&&e.T.then((()=>de(e.t)))}})()))}componentOnReady(){return n(this).T}};c.N=e[0],p.includes(a)||m.get(a)||(h.push(a),m.define(a,fe(u,c,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.C)?o:j(u);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ce,30)))},me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=$e(e,n),r=ye(t,o),i=be(n);f.ael(s,l,r,i),(t.W=t.W||[]).push((()=>f.rel(s,l,r,i)))}))},ye=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.j=e.j||[]).push([t,n])}catch(e){s(e)}},$e=(e,t)=>4&t?u:16&t?u.body:e,be=e=>({passive:!!(1&e),capture:!!(2&e)}),ve=e=>f.C=e;export{D as H,pe as b,L as c,H as g,R as h,h as p,l as r,ve as s}
|