@descope/web-components-ui 1.6.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +2024 -1650
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2266 -1619
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1484.js +1 -1
- package/dist/umd/1738.js +1 -0
- package/dist/umd/1902.js +373 -0
- package/dist/umd/404.js +1 -1
- package/dist/umd/4127.js +1 -1
- package/dist/umd/4619.js +1 -1
- package/dist/umd/6050.js +237 -0
- package/dist/umd/{2159.js.LICENSE.txt → 6050.js.LICENSE.txt} +0 -6
- package/dist/umd/8823.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/dist/umd/descope-autocomplete-field.js +1 -0
- package/dist/umd/descope-combo-box.js +7 -7
- package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
- package/dist/umd/descope-hybrid-field-index-js.js +3 -3
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +1 -1
- package/dist/umd/descope-passcode-index-js.js +37 -1
- package/dist/umd/descope-passcode-index-js.js.LICENSE.txt +11 -0
- package/dist/umd/descope-security-questions-setup-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +8 -8
- package/package.json +7 -6
- package/src/mixins/normalizeBooleanAttributesMixin.js +1 -0
- package/src/theme/components/index.js +2 -0
- package/dist/umd/1396.js +0 -37
- package/dist/umd/2159.js +0 -608
- /package/dist/umd/{1396.js.LICENSE.txt → 1902.js.LICENSE.txt} +0 -0
package/dist/umd/6050.js
ADDED
@@ -0,0 +1,237 @@
|
|
1
|
+
/*! For license information please see 6050.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[5691,6050],{91011:(t,e,o)=>{o(73593),o(97612),o(67239),o(34123);var i=o(80704),s=o(57224);const a=s.AH`
|
3
|
+
:host {
|
4
|
+
outline: none;
|
5
|
+
}
|
6
|
+
|
7
|
+
[part='toggle-button']::before {
|
8
|
+
content: var(--lumo-icons-dropdown);
|
9
|
+
}
|
10
|
+
`;(0,s.SF)("vaadin-combo-box",[i.k,a],{moduleId:"lumo-combo-box"}),o(94009);var l=o(98633),r=o(65211),n=o(38785),d=o(14495);class h extends((0,d.y)((0,s.cp)((0,n.v)(l.Pu)))){static get template(){return l.qy`
|
11
|
+
<style>
|
12
|
+
:host {
|
13
|
+
display: block;
|
14
|
+
}
|
15
|
+
|
16
|
+
:host([hidden]) {
|
17
|
+
display: none;
|
18
|
+
}
|
19
|
+
</style>
|
20
|
+
<span part="checkmark" aria-hidden="true"></span>
|
21
|
+
<div part="content">
|
22
|
+
<slot></slot>
|
23
|
+
</div>
|
24
|
+
`}static get is(){return"vaadin-combo-box-item"}}(0,r.X)(h);var p=o(6019),u=o(31146),c=o(31278);const m=s.AH`
|
25
|
+
#overlay {
|
26
|
+
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
27
|
+
}
|
28
|
+
|
29
|
+
[part='content'] {
|
30
|
+
display: flex;
|
31
|
+
flex-direction: column;
|
32
|
+
height: 100%;
|
33
|
+
}
|
34
|
+
`;(0,s.SF)("vaadin-combo-box-overlay",[u.B,m],{moduleId:"vaadin-combo-box-overlay-styles"});class v extends((0,c.p)((0,p.c)((0,n.v)((0,s.cp)(l.Pu))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return l.qy`
|
35
|
+
<div id="backdrop" part="backdrop" hidden></div>
|
36
|
+
<div part="overlay" id="overlay">
|
37
|
+
<div part="loader"></div>
|
38
|
+
<div part="content" id="content"><slot></slot></div>
|
39
|
+
</div>
|
40
|
+
`}}(0,r.X)(v);var b=o(82642);class g extends((0,b.N)(l.Pu)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return l.qy`
|
41
|
+
<style>
|
42
|
+
:host {
|
43
|
+
display: block;
|
44
|
+
min-height: 1px;
|
45
|
+
overflow: auto;
|
46
|
+
|
47
|
+
/* Fixes item background from getting on top of scrollbars on Safari */
|
48
|
+
transform: translate3d(0, 0, 0);
|
49
|
+
|
50
|
+
/* Enable momentum scrolling on iOS */
|
51
|
+
-webkit-overflow-scrolling: touch;
|
52
|
+
|
53
|
+
/* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
|
54
|
+
box-shadow: 0 0 0 white;
|
55
|
+
}
|
56
|
+
|
57
|
+
#selector {
|
58
|
+
border-width: var(--_vaadin-combo-box-items-container-border-width);
|
59
|
+
border-style: var(--_vaadin-combo-box-items-container-border-style);
|
60
|
+
border-color: var(--_vaadin-combo-box-items-container-border-color, transparent);
|
61
|
+
position: relative;
|
62
|
+
}
|
63
|
+
</style>
|
64
|
+
<div id="selector">
|
65
|
+
<slot></slot>
|
66
|
+
</div>
|
67
|
+
`}}(0,r.X)(g);var f=o(27150),_=o(83798),y=o(60354),x=o(21860),w=o(19074),k=o(45446);const C=t=>class extends((0,k.U)(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};var S=o(9685),I=o(79372),F=o(34060);(0,s.SF)("vaadin-combo-box",S.k,{moduleId:"vaadin-combo-box-styles"});class z extends((0,I.K)((0,F.x)(C((0,y.R)((0,s.cp)((0,f.q)(l.Pu))))))){static get is(){return"vaadin-combo-box"}static get template(){return l.qy`
|
68
|
+
<style>
|
69
|
+
:host([opened]) {
|
70
|
+
pointer-events: auto;
|
71
|
+
}
|
72
|
+
</style>
|
73
|
+
|
74
|
+
<div class="vaadin-combo-box-container">
|
75
|
+
<div part="label">
|
76
|
+
<slot name="label"></slot>
|
77
|
+
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
<vaadin-input-container
|
81
|
+
part="input-field"
|
82
|
+
readonly="[[readonly]]"
|
83
|
+
disabled="[[disabled]]"
|
84
|
+
invalid="[[invalid]]"
|
85
|
+
theme$="[[_theme]]"
|
86
|
+
>
|
87
|
+
<slot name="prefix" slot="prefix"></slot>
|
88
|
+
<slot name="input"></slot>
|
89
|
+
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
90
|
+
<div id="toggleButton" part="toggle-button" slot="suffix" aria-hidden="true"></div>
|
91
|
+
</vaadin-input-container>
|
92
|
+
|
93
|
+
<div part="helper-text">
|
94
|
+
<slot name="helper"></slot>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div part="error-message">
|
98
|
+
<slot name="error-message"></slot>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<vaadin-combo-box-overlay
|
103
|
+
id="overlay"
|
104
|
+
opened="[[_overlayOpened]]"
|
105
|
+
loading$="[[loading]]"
|
106
|
+
theme$="[[_theme]]"
|
107
|
+
position-target="[[_positionTarget]]"
|
108
|
+
no-vertical-overlap
|
109
|
+
restore-focus-node="[[inputElement]]"
|
110
|
+
></vaadin-combo-box-overlay>
|
111
|
+
|
112
|
+
<slot name="tooltip"></slot>
|
113
|
+
`}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new x.f(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new w.q(this.inputElement,this._labelController)),this._tooltipController=new _.I(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}(0,r.X)(z)},40200:(t,e,o)=>{o(44497),o(4082),o(19155),o(52301);var i=o(71005),s=o(4749),a=o(57224);const l=a.AH`
|
114
|
+
:host {
|
115
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
116
|
+
color: var(--lumo-body-text-color);
|
117
|
+
font-size: var(--lumo-font-size-m);
|
118
|
+
/* align with text-field height + vertical paddings */
|
119
|
+
line-height: calc(var(--lumo-text-field-size) + 2 * var(--lumo-space-xs));
|
120
|
+
font-family: var(--lumo-font-family);
|
121
|
+
-webkit-font-smoothing: antialiased;
|
122
|
+
-moz-osx-font-smoothing: grayscale;
|
123
|
+
-webkit-tap-highlight-color: transparent;
|
124
|
+
padding: 0;
|
125
|
+
}
|
126
|
+
|
127
|
+
:host::before {
|
128
|
+
margin-top: var(--lumo-space-xs);
|
129
|
+
height: var(--lumo-text-field-size);
|
130
|
+
box-sizing: border-box;
|
131
|
+
display: inline-flex;
|
132
|
+
align-items: center;
|
133
|
+
}
|
134
|
+
|
135
|
+
/* align with text-field label */
|
136
|
+
:host([has-label]) [part='label'] {
|
137
|
+
padding-bottom: calc(0.5em - var(--lumo-space-xs));
|
138
|
+
}
|
139
|
+
|
140
|
+
:host(:not([has-label])) [part='label'],
|
141
|
+
:host(:not([has-label]))::before {
|
142
|
+
display: none;
|
143
|
+
}
|
144
|
+
|
145
|
+
/* align with text-field error message */
|
146
|
+
:host([has-error-message]) [part='error-message']::before {
|
147
|
+
height: calc(0.4em - var(--lumo-space-xs));
|
148
|
+
}
|
149
|
+
|
150
|
+
:host([focused]:not([readonly]):not([disabled])) [part='label'] {
|
151
|
+
color: var(--lumo-primary-text-color);
|
152
|
+
}
|
153
|
+
|
154
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='label'],
|
155
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='helper-text'] {
|
156
|
+
color: var(--lumo-body-text-color);
|
157
|
+
}
|
158
|
+
|
159
|
+
/* Touch device adjustment */
|
160
|
+
@media (pointer: coarse) {
|
161
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='label'] {
|
162
|
+
color: var(--lumo-secondary-text-color);
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
/* Disabled */
|
167
|
+
:host([disabled]) [part='label'] {
|
168
|
+
color: var(--lumo-disabled-text-color);
|
169
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
170
|
+
}
|
171
|
+
|
172
|
+
/* Small theme */
|
173
|
+
:host([theme~='small']) {
|
174
|
+
font-size: var(--lumo-font-size-s);
|
175
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
176
|
+
}
|
177
|
+
|
178
|
+
:host([theme~='small'][has-label]) [part='label'] {
|
179
|
+
font-size: var(--lumo-font-size-xs);
|
180
|
+
}
|
181
|
+
|
182
|
+
:host([theme~='small'][has-label]) [part='error-message'] {
|
183
|
+
font-size: var(--lumo-font-size-xxs);
|
184
|
+
}
|
185
|
+
|
186
|
+
/* When custom-field is used with components without outer margin */
|
187
|
+
:host([theme~='whitespace'][has-label]) [part='label'] {
|
188
|
+
padding-bottom: 0.5em;
|
189
|
+
}
|
190
|
+
`;(0,a.SF)("vaadin-custom-field",[s.Q,i.d,l],{moduleId:"lumo-custom-field"});var r=o(98633),n=o(65211),d=o(27150),h=o(73595),p=o(79258),u=o(7094),c=o(83798),m=o(12850);const v=t=>t.split("\t"),b=t=>t.join("\t"),g=t=>class extends((0,m.Y)((0,h.y)((0,p.f)(t)))){static get properties(){return{name:String,value:{type:String,observer:"__valueChanged",notify:!0},inputs:{type:Array,readOnly:!0},formatValue:{type:Function},parseValue:{type:Function}}}ready(){super.ready(),this.setAttribute("role","group"),this.ariaTarget=this,this.__childrenObserver=new MutationObserver((()=>{this.__setInputsFromSlot()})),this.__setInputsFromSlot(),this.$.slot.addEventListener("slotchange",(()=>{this.__setInputsFromSlot(),(0,u.J$)(this.$.slot).filter((t=>!this.__isInput(t))).forEach((t=>{this.__childrenObserver.observe(t,{childList:!0})}))})),this._tooltipController=new c.I(this),this.addController(this._tooltipController),this._tooltipController.setShouldShow((t=>!(t.inputs||[]).some((t=>t.opened))))}focus(){this.inputs&&this.inputs[0]&&this.inputs[0].focus()}_setFocused(t){super._setFocused(t),t||this.validate()}_shouldRemoveFocus(t){const{relatedTarget:e}=t;return!this.inputs.some((t=>e===(t.focusElement||t)))}checkValidity(){return!(this.inputs.filter((t=>!(t.validate||t.checkValidity).call(t))).length||this.required&&!this.value.trim())}_onKeyDown(t){"Tab"===t.key&&(this.inputs.indexOf(t.target)<this.inputs.length-1&&!t.shiftKey||this.inputs.indexOf(t.target)>0&&t.shiftKey?this.dispatchEvent(new CustomEvent("internal-tab")):this.__setValue())}_onInputChange(t){t.stopPropagation(),this.__setValue(),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{value:this.value}}))}__setValue(){this.__settingValue=!0;const t=this.formatValue||b;this.value=t.apply(this,[this.inputs.map((t=>t.value))]),this.__settingValue=!1}__isInput(t){return!("input"===t.getAttribute("slot")||"textarea"===t.getAttribute("slot"))&&(t.validate||t.checkValidity)}__getInputsFromSlot(){return(0,u.J$)(this.$.slot).filter((t=>this.__isInput(t)))}__setInputsFromSlot(){this._setInputs(this.__getInputsFromSlot()),this.__setValue()}__toggleHasValue(t){this.toggleAttribute("has-value",null!==t&&""!==t.trim())}__valueChanged(t,e){if(this.__settingValue||!this.inputs)return;this.__toggleHasValue(t);const o=(this.parseValue||v).apply(this,[t]);o&&0!==o.length?(this.inputs.forEach(((t,e)=>{t.value=o[e]})),void 0!==e&&this.validate()):console.warn("Value parser has not provided values array")}},f=o(44720).AH`
|
191
|
+
:host {
|
192
|
+
display: inline-flex;
|
193
|
+
}
|
194
|
+
|
195
|
+
:host::before {
|
196
|
+
content: '\\2003';
|
197
|
+
width: 0;
|
198
|
+
display: inline-block;
|
199
|
+
/* Size and position this element on the same vertical position as the input-field element
|
200
|
+
to make vertical align for the host element work as expected */
|
201
|
+
}
|
202
|
+
|
203
|
+
:host([hidden]) {
|
204
|
+
display: none !important;
|
205
|
+
}
|
206
|
+
|
207
|
+
.vaadin-custom-field-container {
|
208
|
+
width: 100%;
|
209
|
+
display: flex;
|
210
|
+
flex-direction: column;
|
211
|
+
}
|
212
|
+
|
213
|
+
.inputs-wrapper {
|
214
|
+
flex: none;
|
215
|
+
}
|
216
|
+
`;(0,a.SF)("vaadin-custom-field",f,{moduleId:"vaadin-custom-field-styles"});class _ extends(g((0,a.cp)((0,d.q)(r.Pu)))){static get is(){return"vaadin-custom-field"}static get template(){return r.qy`
|
217
|
+
<div class="vaadin-custom-field-container">
|
218
|
+
<div part="label" on-click="focus">
|
219
|
+
<slot name="label"></slot>
|
220
|
+
<span part="required-indicator" aria-hidden="true"></span>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
<div class="inputs-wrapper" part="input-fields" on-change="_onInputChange">
|
224
|
+
<slot id="slot"></slot>
|
225
|
+
</div>
|
226
|
+
|
227
|
+
<div part="helper-text">
|
228
|
+
<slot name="helper"></slot>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div part="error-message">
|
232
|
+
<slot name="error-message"></slot>
|
233
|
+
</div>
|
234
|
+
</div>
|
235
|
+
|
236
|
+
<slot name="tooltip"></slot>
|
237
|
+
`}}(0,n.X)(_)}}]);
|
@@ -4,12 +4,6 @@
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
5
5
|
*/
|
6
6
|
|
7
|
-
/**
|
8
|
-
* @license
|
9
|
-
* Copyright (c) 2017 - 2023 Vaadin Ltd.
|
10
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
11
|
-
*/
|
12
|
-
|
13
7
|
/**
|
14
8
|
* @license
|
15
9
|
* Copyright (c) 2019 - 2023 Vaadin Ltd.
|
package/dist/umd/8823.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[8823],{68315:(t,e,s)=>{s.d(e,{q:()=>l});var i=s(18366),r=s(80044),n=s(56376),a=s(87279),o=s(52467);const l=({componentName:t,baseSelector:e=""})=>{class s extends HTMLElement{static get componentName(){return t}#t;#e=!0;get baseSelector(){return e}get baseElement(){return this.#t??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#t||console.warn("missing base element for component",this.localName),this.#t}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#e&&(this.#e=!1,this.init?.())}}return(0,i.Zz)(r.t,a.m,o.y,n.b)(s)}},47511:(t,e,s)=>{s(94720)},38733:(t,e,s)=>{s(28889)},30064:(t,e,s)=>{s.d(e,{qu:()=>i.q});var i=s(68315);s(38733),s(47511)},17166:(t,e,s)=>{s.d(e,{EA:()=>c,Ge:()=>a,Gh:()=>l,Ix:()=>u,mx:()=>n,q:()=>d,xE:()=>h});var i=s(18366),r=s(75777);const n=(t,e,{excludeAttrs:s=[],includeAttrs:i=[]})=>{const r=Array.from(t.attributes).filter((t=>!s.includes(t.name)&&(!i.length||i.includes(t.name)))).map((t=>t.name));e(r),new MutationObserver((t=>{t.forEach((t=>{"attributes"!==t.type||s.includes(t.attributeName)||i.length&&!i.includes(t.attributeName)||e([t.attributeName])}))})).observe(t,{attributes:!0})},a=(t,e)=>{e({addedNodes:Array.from(t.children),removedNodes:[]}),new MutationObserver((t=>{t.forEach((t=>{"childList"!==t.type&&"characterData"!==t.type||e(t)}))})).observe(t,{childList:!0,characterData:!0,subtree:!0})},o=(t,e,s={})=>i=>{i.forEach((i=>{const r=s[i]||i,n=t.getAttribute(i);null!==n?e.getAttribute(r)!==n&&e.setAttribute(r,n):e.removeAttribute(r)}))},l=(t,e,s)=>{n(t,o(t,e),s),n(e,o(e,t),s)},h=t=>(0,i.GL)(r.$m,t),u=(...t)=>`--${(0,i.GL)(...t)}`,c=(t,e,s={})=>{n(t,o(t,e,s.mapAttrs),s)},d=(t,e,s=[])=>{if(!s.length)return;const i=s.reduce(((e,s)=>Object.assign(e,{[s]:{get:()=>t[s],set(e){t[s]=e}}})),{});Object.defineProperties(e,i)}},84342:(t,e,s)=>{function i(t,e={}){const s=new Event(t,e);this[`on${t}`]?.(s),this.dispatchEvent(s)}s.d(e,{r:()=>i})},18823:(t,e,s)=>{s.d(e,{OZ:()=>i.OZ,RF:()=>i.RF,VO:()=>i.VO,mA:()=>i.mA,tQ:()=>i.tQ,tz:()=>i.tz});var i=s(26390)},80044:(t,e,s)=>{s.d(e,{t:()=>i});const i=t=>class extends t{#s(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#s()}}},56376:(t,e,s)=>{s.d(e,{b:()=>i});const i=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}}},42642:(t,e,s)=>{s.d(e,{t:()=>o});var i=s(30064),r=s(18366),n=s(17166),a=s(84342);const o=({componentName:t,wrappedEleName:e,slots:s=[],style:o,excludeAttrsSync:l=[],includeAttrsSync:h=[],includeForwardProps:u=[],delegatesFocus:c=!0})=>{class d extends((0,i.qu)({componentName:t,baseSelector:e})){#i=a.r.bind(this,"blur");#r=a.r.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:c}).innerHTML=`\n\t\t\t<style id="create-proxy">${((0,r.Tn)(o)?o():o)||""}</style>\n\t\t\t<${e}>\n\t\t\t${s.map((t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`)).join("")}\n\t\t\t</${e}>\n\t\t`}init(){super.init?.(),this.baseElement.addEventListener("blur",(t=>{this.#i()})),this.baseElement.addEventListener("focus",(t=>{this.#r()})),(0,n.q)(this.baseElement,this,u),(0,n.Gh)(this.baseElement,this,{excludeAttrs:l,includeAttrs:h})}}return d}},23652:(t,e,s)=>{s.d(e,{AM:()=>c,SR:()=>u,_r:()=>l});var i=s(18366),r=s(17166);const n=(t,e)=>`var(${t}${e?`, ${e}`:""})`;class a{constructor(){this.styleMap=new Map}add(t,e,s){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:s}])}toString(){return Array.from(this.styleMap.entries()).reduce(((t,[e,s])=>`${t}${e} { \n${s.map((({property:t,value:e})=>`${t}: ${e}`)).join(";\n")} \n}\n\n`),"")}}const o=(t,e="fallback")=>(0,i.GL)(t,e),l=(t,e,s)=>{const l=new a,h=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const s=o(e,t?.suffix);return n(s,h(t.fallback,s))};return Object.keys(s).forEach((a=>{const o=((t,e)=>{const s={selector:"",property:(0,i.kW)(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map((t=>({...s,...t}))):[{...s,...e}]:[s]})(a,s[a]),u=(0,r.Ix)(t,a);o.forEach((({selector:t,property:s,important:r,fallback:a})=>{const o=h(a,u);l.add(((t="",e="")=>(0,i.Tn)(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),(0,i.Tn)(s)?s():s,n(u,o)+(r?"!important":""))}))})),l.toString()},h=(t,e,{fallback:s})=>{if(!s)return{};const r=o(e,s.suffix),n=(0,i.dk)(t,s.suffix||"fallback");return{[n]:r,...h(n,r,s)}},u=(t,e)=>Object.keys(e).reduce(((s,i)=>{const n=(0,r.Ix)(t,i);return Object.assign(s,{[i]:n},h(i,n,e[i]))}),{}),c=(t,e)=>Array(e).fill(`.${t}`).join("")},28889:(t,e,s)=>{s.d(e,{R:()=>l});var i=s(75777),r=s(18366),n=s(17166),a=s(49151),o=s(23652);const l=({mappings:t={},componentNameOverride:e=""})=>s=>{const l=e||s.componentName;return class e extends s{static get cssVarList(){return{...s.cssVarList,...(0,o.SR)(l,{...t})}}#n;#a;#o;#l;#h;#u;#c;#d;#m;constructor({getRootElement:t,componentNameSuffix:s="",themeSection:n=i.IM,baseSelector:a}={}){super(),this.#l=s,this.#h=n,this.#c=a??this.baseSelector,this.#m=t,this.#d=Object.keys(e.cssVarList).map((t=>(0,r.GL)("st",s,t)))}get#p(){return a.br.currentTheme?.[l]||""}#g(){this.#a.innerHTML=this.#p[this.#h]}#b(){this.#a=document.createElement("style"),this.#a.id=`style-mixin-theme__${l}`,this.#u.prepend(this.#a),this.#o=a.br.onCurrentThemeChange(this.#g.bind(this)),this.#g()}#E(){if(this.#d.length){this.#n=document.createElement("style"),this.#n.id=`style-mixin-overrides__${l}`;const t=(0,o.AM)(l,i.aE);this.#n.innerText=`:host(${t}) {}`,this.#u.append(this.#n)}}#y(t,e){const s=this.#n?.sheet?.cssRules[0].style;if(!s)return;const i=(0,n.Ix)(l,t.replace(new RegExp("^st-"),""));e?s?.setProperty(i,e):(s?.removeProperty(i),this.removeAttribute(t))}#v(t=[]){let e=!1;t.forEach((t=>{this.#d.includes(t)&&(this.#y(t,this.getAttribute(t)),e=!0)})),e&&(this.#n.innerHTML=this.#n?.sheet?.cssRules[0].cssText)}#f(){if(Object.keys(t).length){const e=document.createElement("style");e.id=`style-mixin-mappings__${l}`,e.innerHTML=(0,o._r)((0,r.GL)(l,this.#l),this.#c,t),this.#u.prepend(e)}}#A(t){(this.#u.classList||this.#u.host.classList).add(t)}async init(){super.init?.(),this.shadowRoot.isConnected&&(this.#u=await(this.#m?.(this))||this.shadowRoot,this.#A(l),this.#f(),this.#b(),this.#E(),(0,n.mx)(this,this.#v.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#o?.()}}}},77040:(t,e,s)=>{s.d(e,{V:()=>i});const i=t=>class extends t{#S=null;static get observedAttributes(){return[...t.observedAttributes||[],"draggable"]}constructor(){super(),this.#S=document.createElement("style"),this.#S.innerText="* { cursor: inherit!important }"}#M(t){t?this.shadowRoot.appendChild(this.#S):this.#S.remove()}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",(t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const s=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",s),t.target.removeEventListener("dragend",s)};t.target.addEventListener("mouseup",s,{once:!0}),t.target.addEventListener("dragend",s,{once:!0})}})),super.init?.()}attributeChangedCallback(t,e,s){super.attributeChangedCallback?.(t,e,s),"draggable"===t&&this.#M("true"===s)}}},87279:(t,e,s)=>{s.d(e,{m:()=>i});const i=t=>class extends t{init(){super.init?.(),this.baseElement.addEventListener("mouseover",(t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",(()=>this.removeAttribute("hover")),{once:!0})}))}}},26390:(t,e,s)=>{s.d(e,{OZ:()=>a.O,RF:()=>i.R,VO:()=>r.V,mA:()=>l.m,tQ:()=>o.t,tz:()=>n.t});var i=s(28889),r=s(77040),n=s(42642),a=s(90435),o=s(80044),l=(s(94720),s(26645))},94720:(t,e,s)=>{s.d(e,{X:()=>a}),s(75318);const i=["required","pattern"],r="data-errormessage-pattern-mismatch",n=Symbol("validationTarget"),a=t=>class extends t{#w=n;static get observedAttributes(){return[...t.observedAttributes||[],...i]}static get formAssociated(){return!0}#x;get internals(){return this.#x}set internals(t){this.#x=t}constructor(){super(),this.#x=this.attachInternals()}get defaultErrorMsgValueMissing(){return"Please fill out this field."}get defaultErrorMsgPatternMismatch(){return"Please match the requested format."}get defaultErrorMsgTooShort(){return`Minimum length is ${this.getAttribute("minlength")}.`}get defaultErrorMsgTooLong(){return`Maximum length is ${this.getAttribute("maxlength")}. `}get defaultErrorMsgRangeUnderflow(){return`At least ${this.getAttribute("min-items-selection")} items are required.`}get defaultErrorMsgRangeOverflow(){return`At most ${this.getAttribute("max-items-selection")} items are allowed.`}get defaultErrorMsgTypeMismatch(){return"Please match the requested type."}getErrorMessage(t){const{valueMissing:e,patternMismatch:s,typeMismatch:i,stepMismatch:n,tooShort:a,tooLong:o,rangeOverflow:l,rangeUnderflow:h,badInput:u,customError:c}=t;switch(!0){case e:return this.getAttribute("data-errormessage-value-missing")||this.defaultErrorMsgValueMissing;case s||n||u:return this.getAttribute(r)||this.defaultErrorMsgPatternMismatch;case i:return this.getAttribute("data-errormessage-type-mismatch")||this.getAttribute(r)||this.defaultErrorMsgTypeMismatch;case a:return this.getAttribute("data-errormessage-pattern-mismatch-too-short")||this.defaultErrorMsgTooShort;case o:return this.getAttribute("data-errormessage-pattern-mismatch-too-long")||this.defaultErrorMsgTooLong;case h:return this.getAttribute("data-errormessage-pattern-range-underflow")||this.defaultErrorMsgRangeUnderflow;case l:return this.getAttribute("data-errormessage-pattern-range-overflow")||this.defaultErrorMsgRangeOverflow;case c:return this.validationMessage;default:return""}}#T(){const t=this.isReadOnly?{}:this.getValidity();this.#x.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#x.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#x.validity.valid}reportValidity(){return this.#x.reportValidity()}get validity(){return this.#x.validity}get validationTarget(){return this.#w===n?this.inputElement:this.#w}set validationTarget(t){this.#w=t}setCustomValidity(t){t?this.#x.setValidity({customError:!0},t,this.validationTarget):(this.#x.setValidity({}),this.#T())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#x.form}attributeChangedCallback(t,e,s){super.attributeChangedCallback?.(t,e,s),i.includes(t)&&this.#T()}init(){super.init?.(),this.addEventListener("change",this.#T),this.addEventListener("invalid",(t=>t.stopPropagation())),this.addEventListener("input",this.#T),setTimeout((()=>this.#T()))}}},52467:(t,e,s)=>{s.d(e,{y:()=>n});var i=s(17166);const r=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options","loading","allow-custom-value"],n=t=>class extends t{init(){super.init?.(),(0,i.mx)(this,(t=>t.forEach((t=>{const e=this.getAttribute(t);(t=>r.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}))),{})}}},26645:(t,e,s)=>{s.d(e,{m:()=>l});var i=s(18366),r=s(17166),n=s(28889),a=s(23652);const o=t=>async e=>{const s=await t(e);return new Promise((t=>{let e=0;const i=()=>{if(e>20)return console.error("could not get shadow root for element",s),void t(s);e++,s?.shadowRoot?t(s.shadowRoot):setTimeout(i)};i()}))},l=({name:t,selector:e,mappings:s={},forward:{attributes:l=[],include:h=!0}={}})=>u=>{const c=t||(t=>t.replace(/[^\w\s]/gi,""))(e),d=(0,n.R)({mappings:s})(u);return class extends d{static get cssVarList(){return{...d.cssVarList,[c]:(0,a.SR)((0,i.GL)(u.componentName,"_"+c),s)}}#C;constructor(){const t=o((async t=>{const s=(t.shadowRoot||t).querySelector(t.baseSelector);return e?(await o((()=>s))(t)).querySelector(e):s}));super({getRootElement:t,componentNameSuffix:"_"+c,themeSection:"@"+c,baseSelector:":host"}),this.#C=t(this).then((t=>t.host))}async#L(){const t=await this.#C;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.();const t=await this.#C;(0,r.EA)(this,t,{[h?"includeAttrs":"excludeAttrs"]:l}),this.#L()}}}},90435:(t,e,s)=>{s.d(e,{O:()=>c});var i=s(18366),r=s(17166),n=s(84342),a=s(94720),o=s(28889);const l=["invalid","required"],h=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},u=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:s="input",triggerValidationEvents:i=[],proxyParentValidation:o=!1})=>u=>class extends((0,a.X)(u)){static get observedAttributes(){return[...u.observedAttributes||[],...l]}#V;#R=n.r.bind(this,"change");constructor(){super(),this.#V=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout((()=>{!this.#V&&console.warn(this.localName,"no input was found")}),0)}get inputElement(){if(this.#V)return this.#V;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#V=h(t)||h(e),this.#V}set inputElement(t){this.#V=t}getValidity(){return this.inputElement?.validity||{}}#$(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#$(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",(t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))})),i.forEach((t=>{this.baseElement?.addEventListener(t,(()=>{this.inputElement?.setCustomValidity("")}))})),setTimeout((()=>{(Array.isArray(s)?s:[s]).forEach((t=>{this.baseElement?.addEventListener(t,(()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#$()}))})),this.baseElement.addEventListener("change",(()=>{this.#R()})),this.addEventListener("invalid",(()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#$()})),t.forEach((t=>{const s=this.querySelector('input[slot="external-input"]')||null,i=e?[this.baseElement,s].filter(Boolean):[];((t,e,s)=>{const i=Array.isArray(e)?e:[e];Object.defineProperty(t,s,{set(t){i.forEach((e=>{e[s]=t}))},get:()=>e[0][s],configurable:!0})})(this,[this.inputElement,...i],t)})),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),(0,r.EA)(this,this.inputElement,{includeAttrs:["inputmode"]})})),o){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,s)=>"function"==typeof t[s]&&"setValidity"===s?(...i)=>{if(3===i.length){const t=i.slice(0,i.length-1);t.push(e.inputElement),e.internals[s](...t)}else e.internals[s](...i);return t[s](...i)}:"function"==typeof t[s]?(...i)=>(e.internals[s](...i),t[s](...i)):t[s]})}}},c=t=>(0,i.Zz)(u(t),(0,o.R)({componentNameOverride:(0,r.xE)("input-wrapper")}))},75777:(t,e,s)=>{s.d(e,{$m:()=>i,IM:()=>n,aE:()=>r});const i="descope",r=3,n="host"},18366:(t,e,s)=>{s.d(e,{GL:()=>r,Tn:()=>o,Zz:()=>a,dk:()=>n,kW:()=>i});const i=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_.]+/g,"-").toLowerCase(),r=(...t)=>i(t.filter((t=>!!t)).join("-")),n=(...t)=>t.filter(Boolean).map(((t,e)=>{return 0===e?t:(s=t).charAt(0).toUpperCase()+s.slice(1);var s})).join(""),a=(...t)=>e=>t.reduceRight(((t,e)=>e(t)),e),o=t=>"function"==typeof t}}]);
|
1
|
+
"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[8823],{68315:(t,e,s)=>{s.d(e,{q:()=>l});var i=s(18366),r=s(80044),n=s(56376),a=s(87279),o=s(52467);const l=({componentName:t,baseSelector:e=""})=>{class s extends HTMLElement{static get componentName(){return t}#t;#e=!0;get baseSelector(){return e}get baseElement(){return this.#t??=this.baseSelector?this.rootElement.querySelector(this.baseSelector):this,this.#t||console.warn("missing base element for component",this.localName),this.#t}get rootElement(){return this.shadowRoot||this}get name(){return this.getAttribute("name")}connectedCallback(){super.connectedCallback?.(),this.rootElement.isConnected&&this.#e&&(this.#e=!1,this.init?.())}}return(0,i.Zz)(r.t,a.m,o.y,n.b)(s)}},47511:(t,e,s)=>{s.d(e,{y:()=>h});var i=s(18366),r=s(84935),n=s(76800),a=s(94720),o=s(52467),l=s(68315);const h=(...t)=>(0,i.Zz)(a.X,r._,o.y,n.j)((0,l.q)(...t))},38733:(t,e,s)=>{s(18366),s(28889),s(68315)},30064:(t,e,s)=>{s.d(e,{qu:()=>i.q,yc:()=>r.y});var i=s(68315),r=(s(38733),s(47511))},84342:(t,e,s)=>{function i(t,e={}){const s=new Event(t,e);this[`on${t}`]?.(s),this.dispatchEvent(s)}s.d(e,{r:()=>i})},18823:(t,e,s)=>{s.d(e,{OZ:()=>i.OZ,RF:()=>i.RF,VO:()=>i.VO,mA:()=>i.mA,tQ:()=>i.tQ,tz:()=>i.tz});var i=s(26390)},84935:(t,e,s)=>{s.d(e,{_:()=>r});var i=s(84342);const r=t=>class extends t{#s=i.r.bind(this,"change");init(){super.init?.(),this.prevValue=this.value,this.addEventListener("change",(t=>{t.stopPropagation()})),this.addEventListener("blur",(()=>{this.value!==this.prevValue&&(this.#s(),this.prevValue=this.value)}))}}},80044:(t,e,s)=>{s.d(e,{t:()=>i});const i=t=>class extends t{#i(){const e=this.localName;if(!t.componentName)throw Error('component name is not defined on super class, make sure you have a static get for "componentName"');if(e!==t.componentName)throw Error(`component name mismatch, expected "${t.componentName}", current "${e}"`)}init(){super.init?.(),this.#i()}}},56376:(t,e,s)=>{s.d(e,{b:()=>i});const i=t=>class extends t{updateComponentsContext(t){this.dispatchEvent(new CustomEvent("components-context",{bubbles:!0,composed:!0,detail:t}))}}},42642:(t,e,s)=>{s.d(e,{t:()=>o});var i=s(30064),r=s(18366),n=s(17166),a=s(84342);const o=({componentName:t,wrappedEleName:e,slots:s=[],style:o,excludeAttrsSync:l=[],includeAttrsSync:h=[],includeForwardProps:u=[],delegatesFocus:c=!0})=>{class d extends((0,i.qu)({componentName:t,baseSelector:e})){#r=a.r.bind(this,"blur");#n=a.r.bind(this,"focus");constructor(){super().attachShadow({mode:"open",delegatesFocus:c}).innerHTML=`\n\t\t\t<style id="create-proxy">${((0,r.Tn)(o)?o():o)||""}</style>\n\t\t\t<${e}>\n\t\t\t${s.map((t=>`<slot ${t?`name="${t}" slot="${t}"`:""}></slot>`)).join("")}\n\t\t\t</${e}>\n\t\t`}init(){super.init?.(),this.baseElement.addEventListener("blur",(t=>{this.#r()})),this.baseElement.addEventListener("focus",(t=>{this.#n()})),(0,n.q)(this.baseElement,this,u),(0,n.Gh)(this.baseElement,this,{excludeAttrs:l,includeAttrs:h})}}return d}},23652:(t,e,s)=>{s.d(e,{AM:()=>c,SR:()=>u,_r:()=>l});var i=s(18366),r=s(17166);const n=(t,e)=>`var(${t}${e?`, ${e}`:""})`;class a{constructor(){this.styleMap=new Map}add(t,e,s){this.styleMap.has(t)||this.styleMap.set(t,[]),this.styleMap.set(t,[...this.styleMap.get(t),{property:e,value:s}])}toString(){return Array.from(this.styleMap.entries()).reduce(((t,[e,s])=>`${t}${e} { \n${s.map((({property:t,value:e})=>`${t}: ${e}`)).join(";\n")} \n}\n\n`),"")}}const o=(t,e="fallback")=>(0,i.GL)(t,e),l=(t,e,s)=>{const l=new a,h=(t,e)=>{if(!t)return"";if("string"==typeof t)return t;const s=o(e,t?.suffix);return n(s,h(t.fallback,s))};return Object.keys(s).forEach((a=>{const o=((t,e)=>{const s={selector:"",property:(0,i.kW)(t)};return e&&Object.keys(e).length?Array.isArray(e)?e.map((t=>({...s,...t}))):[{...s,...e}]:[s]})(a,s[a]),u=(0,r.Ix)(t,a);o.forEach((({selector:t,property:s,important:r,fallback:a})=>{const o=h(a,u);l.add(((t="",e="")=>(0,i.Tn)(e)?e(t):`${t}${/^[A-Za-z]/.test(e)?` ${e}`:e}`)(e,t),(0,i.Tn)(s)?s():s,n(u,o)+(r?"!important":""))}))})),l.toString()},h=(t,e,{fallback:s})=>{if(!s)return{};const r=o(e,s.suffix),n=(0,i.dk)(t,s.suffix||"fallback");return{[n]:r,...h(n,r,s)}},u=(t,e)=>Object.keys(e).reduce(((s,i)=>{const n=(0,r.Ix)(t,i);return Object.assign(s,{[i]:n},h(i,n,e[i]))}),{}),c=(t,e)=>Array(e).fill(`.${t}`).join("")},28889:(t,e,s)=>{s.d(e,{R:()=>l});var i=s(75777),r=s(18366),n=s(17166),a=s(49151),o=s(23652);const l=({mappings:t={},componentNameOverride:e=""})=>s=>{const l=e||s.componentName;return class e extends s{static get cssVarList(){return{...s.cssVarList,...(0,o.SR)(l,{...t})}}#a;#o;#l;#h;#u;#c;#d;#m;#p;constructor({getRootElement:t,componentNameSuffix:s="",themeSection:n=i.IM,baseSelector:a}={}){super(),this.#h=s,this.#u=n,this.#d=a??this.baseSelector,this.#p=t,this.#m=Object.keys(e.cssVarList).map((t=>(0,r.GL)("st",s,t)))}get#g(){return a.br.currentTheme?.[l]||""}#b(){this.#o.innerHTML=this.#g[this.#u]}#E(){this.#o=document.createElement("style"),this.#o.id=`style-mixin-theme__${l}`,this.#c.prepend(this.#o),this.#l=a.br.onCurrentThemeChange(this.#b.bind(this)),this.#b()}#v(){if(this.#m.length){this.#a=document.createElement("style"),this.#a.id=`style-mixin-overrides__${l}`;const t=(0,o.AM)(l,i.aE);this.#a.innerText=`:host(${t}) {}`,this.#c.append(this.#a)}}#y(t,e){const s=this.#a?.sheet?.cssRules[0].style;if(!s)return;const i=(0,n.Ix)(l,t.replace(new RegExp("^st-"),""));e?s?.setProperty(i,e):(s?.removeProperty(i),this.removeAttribute(t))}#f(t=[]){let e=!1;t.forEach((t=>{this.#m.includes(t)&&(this.#y(t,this.getAttribute(t)),e=!0)})),e&&(this.#a.innerHTML=this.#a?.sheet?.cssRules[0].cssText)}#A(){if(Object.keys(t).length){const e=document.createElement("style");e.id=`style-mixin-mappings__${l}`,e.innerHTML=(0,o._r)((0,r.GL)(l,this.#h),this.#d,t),this.#c.prepend(e)}}#S(t){(this.#c.classList||this.#c.host.classList).add(t)}async init(){super.init?.(),this.shadowRoot.isConnected&&(this.#c=await(this.#p?.(this))||this.shadowRoot,this.#S(l),this.#A(),this.#E(),this.#v(),(0,n.mx)(this,this.#f.bind(this),{}))}disconnectedCallback(){super.disconnectedCallback?.(),this.#l?.()}}}},77040:(t,e,s)=>{s.d(e,{V:()=>i});const i=t=>class extends t{#M=null;static get observedAttributes(){return[...t.observedAttributes||[],"draggable"]}constructor(){super(),this.#M=document.createElement("style"),this.#M.innerText="* { cursor: inherit!important }"}#w(t){t?this.shadowRoot.appendChild(this.#M):this.#M.remove()}get isDraggable(){return this.hasAttribute("draggable")&&"false"!==this.getAttribute("draggable")}init(){this.addEventListener("mousedown",(t=>{if(this.isDraggable){const e=this.baseElement.getAttribute("tabindex");this.baseElement.setAttribute("tabindex","-1");const s=()=>{e?this.baseElement.setAttribute("tabindex",e):this.baseElement.removeAttribute("tabindex"),t.target.removeEventListener("mouseup",s),t.target.removeEventListener("dragend",s)};t.target.addEventListener("mouseup",s,{once:!0}),t.target.addEventListener("dragend",s,{once:!0})}})),super.init?.()}attributeChangedCallback(t,e,s){super.attributeChangedCallback?.(t,e,s),"draggable"===t&&this.#w("true"===s)}}},50378:(t,e,s)=>{s(17166)},87279:(t,e,s)=>{s.d(e,{m:()=>i});const i=t=>class extends t{init(){super.init?.(),this.baseElement.addEventListener("mouseover",(t=>{this.setAttribute("hover","true"),t.target.addEventListener("mouseleave",(()=>this.removeAttribute("hover")),{once:!0})}))}}},26390:(t,e,s)=>{s.d(e,{OZ:()=>a.O,RF:()=>i.R,VO:()=>r.V,mA:()=>l.m,tQ:()=>o.t,tz:()=>n.t});var i=s(28889),r=s(77040),n=s(42642),a=s(90435),o=s(80044),l=(s(94720),s(26645));s(52467),s(50378)},76800:(t,e,s)=>{s.d(e,{j:()=>r});var i=s(84342);const r=t=>class extends t{init(){this.#x(),super.init?.()}#x(){["blur","focus","focusin","focusout"].forEach((t=>{this.addEventListener(t,(t=>{t.isTrusted&&t.target===this&&t.stopImmediatePropagation()}))}))}handleFocusEventsDispatching(t){let e;t?.forEach((t=>{t?.addEventListener("focusout",(t=>{t.stopImmediatePropagation(),e=setTimeout((()=>{e=null,i.r.call(this,"blur"),i.r.call(this,"focusout",{bubbles:!0})}))}));const s=t=>{t.stopImmediatePropagation(),clearTimeout(e),e||(i.r.call(this,"focus"),i.r.call(this,"focusin",{bubbles:!0}))};t?.addEventListener("focusin",s),t?.addEventListener("focus",s)}))}handleInputEventDispatching(){let t=this.value;this.addEventListener("input",(e=>{this!==e.target&&(e.stopImmediatePropagation(),t!==this.value&&(t=this.value,i.r.call(this,"input",{bubbles:!0,composed:!0})))}))}}},94720:(t,e,s)=>{s.d(e,{X:()=>a}),s(75318);const i=["required","pattern"],r="data-errormessage-pattern-mismatch",n=Symbol("validationTarget"),a=t=>class extends t{#T=n;static get observedAttributes(){return[...t.observedAttributes||[],...i]}static get formAssociated(){return!0}#V;get internals(){return this.#V}set internals(t){this.#V=t}constructor(){super(),this.#V=this.attachInternals()}get defaultErrorMsgValueMissing(){return"Please fill out this field."}get defaultErrorMsgPatternMismatch(){return"Please match the requested format."}get defaultErrorMsgTooShort(){return`Minimum length is ${this.getAttribute("minlength")}.`}get defaultErrorMsgTooLong(){return`Maximum length is ${this.getAttribute("maxlength")}. `}get defaultErrorMsgRangeUnderflow(){return`At least ${this.getAttribute("min-items-selection")} items are required.`}get defaultErrorMsgRangeOverflow(){return`At most ${this.getAttribute("max-items-selection")} items are allowed.`}get defaultErrorMsgTypeMismatch(){return"Please match the requested type."}getErrorMessage(t){const{valueMissing:e,patternMismatch:s,typeMismatch:i,stepMismatch:n,tooShort:a,tooLong:o,rangeOverflow:l,rangeUnderflow:h,badInput:u,customError:c}=t;switch(!0){case e:return this.getAttribute("data-errormessage-value-missing")||this.defaultErrorMsgValueMissing;case s||n||u:return this.getAttribute(r)||this.defaultErrorMsgPatternMismatch;case i:return this.getAttribute("data-errormessage-type-mismatch")||this.getAttribute(r)||this.defaultErrorMsgTypeMismatch;case a:return this.getAttribute("data-errormessage-pattern-mismatch-too-short")||this.defaultErrorMsgTooShort;case o:return this.getAttribute("data-errormessage-pattern-mismatch-too-long")||this.defaultErrorMsgTooLong;case h:return this.getAttribute("data-errormessage-pattern-range-underflow")||this.defaultErrorMsgRangeUnderflow;case l:return this.getAttribute("data-errormessage-pattern-range-overflow")||this.defaultErrorMsgRangeOverflow;case c:return this.validationMessage;default:return""}}#L(){const t=this.isReadOnly?{}:this.getValidity();this.#V.setValidity(t,this.getErrorMessage(t),this.validationTarget)}get validationMessage(){return this.#V.validationMessage}getValidity(){console.warn("getValidity","is not implemented")}checkValidity(){return this.#V.validity.valid}reportValidity(){return this.#V.reportValidity()}get validity(){return this.#V.validity}get validationTarget(){return this.#T===n?this.inputElement:this.#T}set validationTarget(t){this.#T=t}setCustomValidity(t){t?this.#V.setValidity({customError:!0},t,this.validationTarget):(this.#V.setValidity({}),this.#L())}get isRequired(){return this.hasAttribute("required")&&"false"!==this.getAttribute("required")}get isReadOnly(){return this.hasAttribute("readonly")&&"false"!==this.getAttribute("readonly")}get isDisabled(){return this.hasAttribute("disabled")&&"false"!==this.getAttribute("disabled")}get pattern(){return this.getAttribute("pattern")}get form(){return this.#V.form}attributeChangedCallback(t,e,s){super.attributeChangedCallback?.(t,e,s),i.includes(t)&&this.#L()}init(){super.init?.(),this.addEventListener("change",this.#L),this.addEventListener("invalid",(t=>t.stopPropagation())),this.addEventListener("input",this.#L),setTimeout((()=>this.#L()))}}},52467:(t,e,s)=>{s.d(e,{y:()=>n});var i=s(17166);const r=["readonly","focused","invalid","has-label","required","disabled","checked","has-helper","has-value","step-buttons-visible","hover","has-error-message","focus-ring","opened","active","password-visible","opening","closing","has-no-options","loading","allow-custom-value"],n=t=>class extends t{init(){super.init?.(),(0,i.mx)(this,(t=>t.forEach((t=>{const e=this.getAttribute(t);(t=>r.includes(t))(t)?""===e?this.setAttribute(t,"true"):"false"===e&&this.removeAttribute(t):e||console.debug(`attribute "${t}" has no value, should it be added to the boolean attributes list?`)}))),{})}}},26645:(t,e,s)=>{s.d(e,{m:()=>l});var i=s(18366),r=s(17166),n=s(28889),a=s(23652);const o=t=>async e=>{const s=await t(e);return new Promise((t=>{let e=0;const i=()=>{if(e>20)return console.error("could not get shadow root for element",s),void t(s);e++,s?.shadowRoot?t(s.shadowRoot):setTimeout(i)};i()}))},l=({name:t,selector:e,mappings:s={},forward:{attributes:l=[],include:h=!0}={}})=>u=>{const c=t||(t=>t.replace(/[^\w\s]/gi,""))(e),d=(0,n.R)({mappings:s})(u);return class extends d{static get cssVarList(){return{...d.cssVarList,[c]:(0,a.SR)((0,i.GL)(u.componentName,"_"+c),s)}}#C;constructor(){const t=o((async t=>{const s=(t.shadowRoot||t).querySelector(t.baseSelector);return e?(await o((()=>s))(t)).querySelector(e):s}));super({getRootElement:t,componentNameSuffix:"_"+c,themeSection:"@"+c,baseSelector:":host"}),this.#C=t(this).then((t=>t.host))}async#R(){const t=await this.#C;t.onmouseenter=t=>{t.target.setAttribute("hover","true")},t.onmouseleave=t=>{t.target.removeAttribute("hover")}}async init(){super.init?.();const t=await this.#C;(0,r.EA)(this,t,{[h?"includeAttrs":"excludeAttrs"]:l}),this.#R()}}}},90435:(t,e,s)=>{s.d(e,{O:()=>c});var i=s(18366),r=s(17166),n=s(84342),a=s(94720),o=s(28889);const l=["invalid","required"],h=t=>{if(!t)return;let e=t;for(let t=0;t<10;t++)if([e]=e.assignedElements(),"slot"!==e?.localName)return e},u=({proxyProps:t=[],useProxyTargets:e=!1,inputEvent:s="input",triggerValidationEvents:i=[],proxyParentValidation:o=!1})=>u=>class extends((0,a.X)(u)){static get observedAttributes(){return[...u.observedAttributes||[],...l]}#k;#s=n.r.bind(this,"change");constructor(){super(),this.#k=super.inputElement}warnIfInputElementIsMissing(){clearTimeout(this.inputElementTimerId),this.inputElementTimerId=setTimeout((()=>{!this.#k&&console.warn(this.localName,"no input was found")}),0)}get inputElement(){if(this.#k)return this.#k;this.warnIfInputElementIsMissing();const t=this.baseElement.shadowRoot?.querySelector('slot[name="input"]'),e=this.baseElement.shadowRoot?.querySelector('slot[name="textarea"]');return this.#k=h(t)||h(e),this.#k}set inputElement(t){this.#k=t}getValidity(){return this.inputElement?.validity||{}}#$(){this.setAttribute("error-message",this.validationMessage)}reportValidity=()=>{this.inputElement.setCustomValidity(""),this.setCustomValidity(""),this.checkValidity()||(this.setAttribute("invalid","true"),this.#$(),this.focus())};defaultReportValidity(){return super.reportValidity()}init(){if(super.init?.(),this.baseElement._setInvalid=function(t){!t&&this._shouldSetInvalid(t)&&(this.invalid=t)},this.baseElement.addEventListener("input",(t=>{t.composed||this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))})),i.forEach((t=>{this.baseElement?.addEventListener(t,(()=>{this.inputElement?.setCustomValidity("")}))})),setTimeout((()=>{(Array.isArray(s)?s:[s]).forEach((t=>{this.baseElement?.addEventListener(t,(()=>{this.baseElement.checkValidity()?this.removeAttribute("invalid"):this.#$()}))})),this.baseElement.addEventListener("change",(()=>{this.#s()})),this.addEventListener("invalid",(()=>{this.checkValidity()||this.setAttribute("invalid","true"),this.#$()})),t.forEach((t=>{const s=this.querySelector('input[slot="external-input"]')||null,i=e?[this.baseElement,s].filter(Boolean):[];((t,e,s)=>{const i=Array.isArray(e)?e:[e];Object.defineProperty(t,s,{set(t){i.forEach((e=>{e[s]=t}))},get:()=>e[0][s],configurable:!0})})(this,[this.inputElement,...i],t)})),this.setSelectionRange=this.inputElement.setSelectionRange?.bind(this.inputElement),(0,r.EA)(this,this.inputElement,{includeAttrs:["inputmode"]})})),o){const t=this.inputElement.internals,e=this;this.inputElement.internals=new Proxy(t,{get:(t,s)=>"function"==typeof t[s]&&"setValidity"===s?(...i)=>{if(3===i.length){const t=i.slice(0,i.length-1);t.push(e.inputElement),e.internals[s](...t)}else e.internals[s](...i);return t[s](...i)}:"function"==typeof t[s]?(...i)=>(e.internals[s](...i),t[s](...i)):t[s]})}}},c=t=>(0,i.Zz)(u(t),(0,o.R)({componentNameOverride:(0,r.xE)("input-wrapper")}))}}]);
|